-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui5-view-settings-dialog): introduce filter section (#3616)
- Loading branch information
Showing
12 changed files
with
693 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{>include "../../main/src/StandardListItem.hbs"}} | ||
|
||
{{#*inline "listItemContent"}} | ||
<span part="title" class="ui5-li-title">{{text}}</span> | ||
{{#if additionalText}} | ||
<span part="additional-text" class="ui5-li-additional-text">{{additionalText}}</span> | ||
{{/if}} | ||
{{/inline}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js"; | ||
import ListItem from "@ui5/webcomponents/dist/ListItem.js"; | ||
import FilterItemTemplate from "./generated/templates/FilterItemTemplate.lit.js"; | ||
|
||
import FilterItemCSS from "./generated/themes/FilterItem.css.js"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
const metadata = { | ||
tag: "ui5-filter-item", | ||
managedSlots: true, | ||
properties: /** @lends sap.ui.webcomponents.fiori.FilterItem.prototype */ { | ||
/** | ||
* Defines the text of the component. | ||
* | ||
* @type {String} | ||
* @defaultvalue "" | ||
* @public | ||
*/ | ||
text: { | ||
type: String, | ||
}, | ||
|
||
/** | ||
* Defines the additional text of the component. | ||
* | ||
* @type {String} | ||
* @defaultvalue "" | ||
* @private | ||
*/ | ||
additionalText: { | ||
type: String, | ||
}, | ||
}, | ||
slots: /** @lends sap.ui.webcomponents.fiori.FilterItem.prototype */ { | ||
/** | ||
* Defines the <code>values</code> list. | ||
* @type {ui5-filter-item-option} | ||
* @slot values | ||
* @public | ||
*/ | ||
values: { | ||
type: HTMLElement, | ||
}, | ||
}, | ||
events: /** @lends sap.ui.webcomponents.fiori.FilterItem.prototype */ { | ||
// | ||
}, | ||
}; | ||
|
||
/** | ||
* @class | ||
* | ||
* <h3 class="comment-api-title">Overview</h3> | ||
* | ||
* | ||
* <h3>Usage</h3> | ||
* | ||
* For the <code>ui5-filter-item</code> | ||
* <h3>ES6 Module Import</h3> | ||
* | ||
* <code>import @ui5/webcomponents-fiori/dist/FilterItem.js";</code> | ||
* | ||
* @constructor | ||
* @author SAP SE | ||
* @alias sap.ui.webcomponents.fiori.FilterItem | ||
* @extends ListItem | ||
* @since 1.0.0-rc.16 | ||
* @tagname ui5-filter-item | ||
* @public | ||
*/ | ||
class FilterItem extends ListItem { | ||
static get metadata() { | ||
return metadata; | ||
} | ||
|
||
static get render() { | ||
return litRender; | ||
} | ||
|
||
static get styles() { | ||
return [ListItem.styles, FilterItemCSS]; | ||
} | ||
|
||
static get template() { | ||
return FilterItemTemplate; | ||
} | ||
} | ||
|
||
FilterItem.define(); | ||
|
||
export default FilterItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
const metadata = { | ||
tag: "ui5-filter-item-option", | ||
properties: /** @lends sap.ui.webcomponents.fiori.FilterItemOption.prototype */ { | ||
/** | ||
* Defines the text of the component. | ||
* | ||
* @public | ||
* @type {String} | ||
* @defaultvalue "" | ||
*/ | ||
text: { | ||
type: String, | ||
}, | ||
|
||
/** | ||
* Defines whether the option is selected | ||
* | ||
* @public | ||
* @type {Boolean} | ||
* @defaultvalue false | ||
*/ | ||
selected: { | ||
type: Boolean, | ||
}, | ||
}, | ||
slots: /** @lends sap.ui.webcomponents.fiori.FilterItemOption.prototype */ { | ||
// | ||
}, | ||
events: /** @lends sap.ui.webcomponents.fiori.FilterItemOption.prototype */ { | ||
// | ||
}, | ||
}; | ||
|
||
/** | ||
* @class | ||
* | ||
* <h3 class="comment-api-title">Overview</h3> | ||
* | ||
* | ||
* <h3>Usage</h3> | ||
* | ||
* For the <code>ui5-filter-item-option</code> | ||
* <h3>ES6 Module Import</h3> | ||
* | ||
* <code>import @ui5/webcomponents-fiori/dist/FilterItemOption.js";</code> | ||
* | ||
* @constructor | ||
* @author SAP SE | ||
* @alias sap.ui.webcomponents.fiori.FilterItemOption | ||
* @extends UI5Element | ||
* @since 1.0.0-rc.16 | ||
* @tagname ui5-filter-item-option | ||
* @public | ||
*/ | ||
class FilterItemOption extends UI5Element { | ||
static get metadata() { | ||
return metadata; | ||
} | ||
} | ||
|
||
FilterItemOption.define(); | ||
|
||
export default FilterItemOption; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
const metadata = { | ||
tag: "ui5-sort-item", | ||
properties: /** @lends sap.ui.webcomponents.fiori.SortItem.prototype */ { | ||
/** | ||
* Defines the text of the component. | ||
* | ||
* @type {String} | ||
* @defaultvalue "" | ||
* @public | ||
*/ | ||
text: { | ||
type: String, | ||
}, | ||
|
||
/** | ||
* Defines if the component is selected. | ||
* @type {Boolean} | ||
* @defaultvalue false | ||
* @public | ||
*/ | ||
selected: { | ||
type: Boolean, | ||
}, | ||
}, | ||
slots: /** @lends sap.ui.webcomponents.fiori.SortItem.prototype */ { | ||
// | ||
}, | ||
events: /** @lends sap.ui.webcomponents.fiori.SortItem.prototype */ { | ||
// | ||
}, | ||
}; | ||
|
||
/** | ||
* @class | ||
* | ||
* <h3 class="comment-api-title">Overview</h3> | ||
* | ||
* | ||
* <h3>Usage</h3> | ||
* | ||
* For the <code>ui5-sort-item</code> | ||
* <h3>ES6 Module Import</h3> | ||
* | ||
* <code>import @ui5/webcomponents-fiori/dist/SortItem.js";</code> | ||
* | ||
* @constructor | ||
* @author SAP SE | ||
* @alias sap.ui.webcomponents.fiori.SortItem | ||
* @extends UI5Element | ||
* @since 1.0.0-rc.16 | ||
* @tagname ui5-sort-item | ||
* @public | ||
*/ | ||
class SortItem extends UI5Element { | ||
static get metadata() { | ||
return metadata; | ||
} | ||
} | ||
|
||
SortItem.define(); | ||
|
||
export default SortItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.