@ui5/webcomponents 2.27.0-rc.1 → 2.27.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/AvatarBadge.d.ts +16 -0
- package/dist/AvatarBadge.js +6 -0
- package/dist/AvatarBadge.js.map +1 -1
- package/dist/CardHeaderTemplate.js +6 -5
- package/dist/CardHeaderTemplate.js.map +1 -1
- package/dist/DateTimeInput.d.ts +6 -0
- package/dist/DateTimeInput.js +11 -0
- package/dist/DateTimeInput.js.map +1 -1
- package/dist/Filters.js +1 -1
- package/dist/Filters.js.map +1 -1
- package/dist/List.js +4 -1
- package/dist/List.js.map +1 -1
- package/dist/ListItem.d.ts +4 -4
- package/dist/ListItem.js +6 -6
- package/dist/ListItem.js.map +1 -1
- package/dist/NumberInput.d.ts +1 -1
- package/dist/NumberInput.js +1 -1
- package/dist/NumberInput.js.map +1 -1
- package/dist/TableHeaderCell.d.ts +3 -0
- package/dist/TableHeaderCell.js +16 -0
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderCellTemplate.js +3 -15
- package/dist/TableHeaderCellTemplate.js.map +1 -1
- package/dist/TableHeaderRow.d.ts +2 -0
- package/dist/TableHeaderRow.js +6 -0
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableHeaderRowTemplate.js +6 -7
- package/dist/TableHeaderRowTemplate.js.map +1 -1
- package/dist/TableRow.d.ts +2 -0
- package/dist/TableRow.js +6 -0
- package/dist/TableRow.js.map +1 -1
- package/dist/TableRowActionBase.d.ts +3 -1
- package/dist/TableRowActionBase.js +8 -0
- package/dist/TableRowActionBase.js.map +1 -1
- package/dist/TableRowBase.d.ts +1 -0
- package/dist/TableRowBase.js +3 -0
- package/dist/TableRowBase.js.map +1 -1
- package/dist/TableRowTemplate.js +6 -11
- package/dist/TableRowTemplate.js.map +1 -1
- package/dist/TableSelection.d.ts +5 -0
- package/dist/TableSelection.js +11 -0
- package/dist/TableSelection.js.map +1 -1
- package/dist/TableSelectionBase.d.ts +13 -0
- package/dist/TableSelectionBase.js +18 -0
- package/dist/TableSelectionBase.js.map +1 -1
- package/dist/TableSelectionMulti.d.ts +5 -0
- package/dist/TableSelectionMulti.js +12 -0
- package/dist/TableSelectionMulti.js.map +1 -1
- package/dist/TableSelectionSingle.d.ts +2 -0
- package/dist/TableSelectionSingle.js +4 -0
- package/dist/TableSelectionSingle.js.map +1 -1
- package/dist/TimePicker.d.ts +10 -0
- package/dist/TimePicker.js +51 -11
- package/dist/TimePicker.js.map +1 -1
- package/dist/TimePickerPopoverTemplate.js +1 -1
- package/dist/TimePickerPopoverTemplate.js.map +1 -1
- package/dist/TimePickerTemplate.js +1 -1
- package/dist/TimePickerTemplate.js.map +1 -1
- package/dist/Tokenizer.d.ts +6 -0
- package/dist/Tokenizer.js +27 -10
- package/dist/Tokenizer.js.map +1 -1
- package/dist/Toolbar.d.ts +27 -0
- package/dist/Toolbar.js +102 -20
- package/dist/Toolbar.js.map +1 -1
- package/dist/ToolbarItemBase.d.ts +51 -0
- package/dist/ToolbarItemBase.js +89 -0
- package/dist/ToolbarItemBase.js.map +1 -1
- package/dist/css/themes/AvatarBadge.css +1 -1
- package/dist/css/themes/CardHeader.css +1 -1
- package/dist/custom-elements-internal.json +161 -21
- package/dist/custom-elements.json +152 -19
- package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cnr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_id.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_mk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
- package/dist/generated/i18n/i18n-defaults.d.ts +3 -1
- package/dist/generated/i18n/i18n-defaults.js +6 -4
- package/dist/generated/i18n/i18n-defaults.js.map +1 -1
- package/dist/generated/themes/AvatarBadge.css.d.ts +1 -1
- package/dist/generated/themes/AvatarBadge.css.js +1 -1
- package/dist/generated/themes/AvatarBadge.css.js.map +1 -1
- package/dist/generated/themes/CardHeader.css.d.ts +1 -1
- package/dist/generated/themes/CardHeader.css.js +1 -1
- package/dist/generated/themes/CardHeader.css.js.map +1 -1
- package/dist/types/ListItemType.d.ts +2 -1
- package/dist/types/ListItemType.js +2 -1
- package/dist/types/ListItemType.js.map +1 -1
- package/dist/vscode.html-custom-data.json +38 -8
- package/dist/web-types.json +76 -16
- package/package.json +9 -9
- package/src/CardHeaderTemplate.tsx +19 -20
- package/src/TableHeaderCellTemplate.tsx +4 -16
- package/src/TableHeaderRowTemplate.tsx +15 -15
- package/src/TableRowTemplate.tsx +10 -20
- package/src/TimePickerPopoverTemplate.tsx +1 -0
- package/src/TimePickerTemplate.tsx +1 -0
- package/src/i18n/messagebundle.properties +6 -0
- package/src/i18n/messagebundle_ar.properties +13 -6
- package/src/i18n/messagebundle_bg.properties +13 -6
- package/src/i18n/messagebundle_ca.properties +13 -6
- package/src/i18n/messagebundle_cnr.properties +13 -6
- package/src/i18n/messagebundle_cs.properties +13 -6
- package/src/i18n/messagebundle_cy.properties +13 -6
- package/src/i18n/messagebundle_da.properties +13 -6
- package/src/i18n/messagebundle_de.properties +13 -6
- package/src/i18n/messagebundle_el.properties +13 -6
- package/src/i18n/messagebundle_en.properties +11 -6
- package/src/i18n/messagebundle_en_GB.properties +13 -6
- package/src/i18n/messagebundle_en_US_sappsd.properties +13 -6
- package/src/i18n/messagebundle_en_US_saprigi.properties +6 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +13 -6
- package/src/i18n/messagebundle_es.properties +13 -6
- package/src/i18n/messagebundle_es_MX.properties +13 -6
- package/src/i18n/messagebundle_et.properties +13 -6
- package/src/i18n/messagebundle_fi.properties +13 -6
- package/src/i18n/messagebundle_fr.properties +13 -6
- package/src/i18n/messagebundle_fr_CA.properties +13 -6
- package/src/i18n/messagebundle_hi.properties +13 -6
- package/src/i18n/messagebundle_hr.properties +13 -6
- package/src/i18n/messagebundle_hu.properties +13 -6
- package/src/i18n/messagebundle_id.properties +13 -6
- package/src/i18n/messagebundle_it.properties +13 -6
- package/src/i18n/messagebundle_iw.properties +13 -6
- package/src/i18n/messagebundle_ja.properties +13 -6
- package/src/i18n/messagebundle_kk.properties +13 -6
- package/src/i18n/messagebundle_ko.properties +13 -6
- package/src/i18n/messagebundle_lt.properties +13 -6
- package/src/i18n/messagebundle_lv.properties +13 -6
- package/src/i18n/messagebundle_mk.properties +13 -6
- package/src/i18n/messagebundle_ms.properties +13 -6
- package/src/i18n/messagebundle_nl.properties +13 -6
- package/src/i18n/messagebundle_no.properties +13 -6
- package/src/i18n/messagebundle_pl.properties +13 -6
- package/src/i18n/messagebundle_pt.properties +13 -6
- package/src/i18n/messagebundle_pt_PT.properties +13 -6
- package/src/i18n/messagebundle_ro.properties +13 -6
- package/src/i18n/messagebundle_ru.properties +13 -6
- package/src/i18n/messagebundle_sh.properties +13 -6
- package/src/i18n/messagebundle_sk.properties +13 -6
- package/src/i18n/messagebundle_sl.properties +13 -6
- package/src/i18n/messagebundle_sr.properties +13 -6
- package/src/i18n/messagebundle_sv.properties +13 -6
- package/src/i18n/messagebundle_th.properties +13 -6
- package/src/i18n/messagebundle_tr.properties +13 -6
- package/src/i18n/messagebundle_uk.properties +13 -6
- package/src/i18n/messagebundle_vi.properties +13 -6
- package/src/i18n/messagebundle_zh_CN.properties +13 -6
- package/src/i18n/messagebundle_zh_TW.properties +13 -6
- package/src/themes/AvatarBadge.css +12 -0
- package/src/themes/CardHeader.css +12 -14
package/dist/AvatarBadge.d.ts
CHANGED
|
@@ -61,10 +61,26 @@ declare class AvatarBadge extends UI5Element {
|
|
|
61
61
|
* - `Negative` - Red, used for error/rejected states
|
|
62
62
|
* - `Information` - Blue, used for informational states
|
|
63
63
|
*
|
|
64
|
+
* **Note:** `state` takes precedence over `colorScheme`. When `state` is set
|
|
65
|
+
* to any value other than `None`, the semantic styling applies and `colorScheme` is ignored.
|
|
66
|
+
*
|
|
64
67
|
* @default "None"
|
|
65
68
|
* @public
|
|
66
69
|
*/
|
|
67
70
|
state: `${ValueState}`;
|
|
71
|
+
/**
|
|
72
|
+
* Defines the color scheme of the badge using the indication color palette.
|
|
73
|
+
*
|
|
74
|
+
* Available options are `"1"` through `"10"`, matching the indication colors.
|
|
75
|
+
*
|
|
76
|
+
* **Note:** `state` takes precedence - when `state` is set to any value other than `None`,
|
|
77
|
+
* the semantic state styling applies and `colorScheme` is ignored.
|
|
78
|
+
*
|
|
79
|
+
* @default undefined
|
|
80
|
+
* @public
|
|
81
|
+
* @since 2.27.0
|
|
82
|
+
*/
|
|
83
|
+
colorScheme?: string;
|
|
68
84
|
/**
|
|
69
85
|
* @private
|
|
70
86
|
*/
|
package/dist/AvatarBadge.js
CHANGED
|
@@ -58,6 +58,9 @@ let AvatarBadge = class AvatarBadge extends UI5Element {
|
|
|
58
58
|
* - `Negative` - Red, used for error/rejected states
|
|
59
59
|
* - `Information` - Blue, used for informational states
|
|
60
60
|
*
|
|
61
|
+
* **Note:** `state` takes precedence over `colorScheme`. When `state` is set
|
|
62
|
+
* to any value other than `None`, the semantic styling applies and `colorScheme` is ignored.
|
|
63
|
+
*
|
|
61
64
|
* @default "None"
|
|
62
65
|
* @public
|
|
63
66
|
*/
|
|
@@ -108,6 +111,9 @@ __decorate([
|
|
|
108
111
|
__decorate([
|
|
109
112
|
property()
|
|
110
113
|
], AvatarBadge.prototype, "state", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
property()
|
|
116
|
+
], AvatarBadge.prototype, "colorScheme", void 0);
|
|
111
117
|
__decorate([
|
|
112
118
|
property({ type: Boolean })
|
|
113
119
|
], AvatarBadge.prototype, "invalid", void 0);
|
package/dist/AvatarBadge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarBadge.js","sourceRoot":"","sources":["../src/AvatarBadge.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,QAAQ,MAAM,qDAAqD,CAAC;AAC3E,OAAO,WAAW,MAAM,sDAAsD,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AACtG,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,WAAW;AACX,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAE3D,SAAS;AACT,OAAO,cAAc,MAAM,uCAAuC,CAAC;AAEnE,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAE1E,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAQH,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QA0BC
|
|
1
|
+
{"version":3,"file":"AvatarBadge.js","sourceRoot":"","sources":["../src/AvatarBadge.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OA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Element from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport property from \"@ui5/webcomponents-base/dist/decorators/property.js\";\nimport jsxRenderer from \"@ui5/webcomponents-base/dist/renderer/JsxRenderer.js\";\nimport { getIconData, getIconDataSync } from \"@ui5/webcomponents-base/dist/asset-registries/Icons.js\";\nimport { getI18nBundle } from \"@ui5/webcomponents-base/dist/i18nBundle.js\";\n\n// Template\nimport AvatarBadgeTemplate from \"./AvatarBadgeTemplate.js\";\n\n// Styles\nimport AvatarBadgeCss from \"./generated/themes/AvatarBadge.css.js\";\n\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\n\nconst ICON_NOT_FOUND = \"ICON_NOT_FOUND\";\n\n/**\n * @class\n * ### Overview\n *\n * The `ui5-avatar-badge` component is used to display a badge on top of `ui5-avatar` component.\n * The badge can display an icon and supports different states for visual affordance.\n *\n * ### Usage\n *\n * The badge should be used as a child element of `ui5-avatar` in the `badge` slot.\n *\n * ```html\n * <ui5-avatar>\n * <ui5-avatar-badge icon=\"edit\" slot=\"badge\"></ui5-avatar-badge>\n * </ui5-avatar>\n * ```\n *\n * ### Keyboard Handling\n *\n * The badge does not receive keyboard focus.\n *\n * ### ES6 Module Import\n * `import \"@ui5/webcomponents/dist/AvatarBadge.js\";`\n *\n * @constructor\n * @extends UI5Element\n * @since 2.19.0\n * @public\n */\n@customElement({\n\ttag: \"ui5-avatar-badge\",\n\tlanguageAware: true,\n\trenderer: jsxRenderer,\n\tstyles: AvatarBadgeCss,\n\ttemplate: AvatarBadgeTemplate,\n})\nclass AvatarBadge extends UI5Element {\n\t/**\n\t * Defines the icon name to be displayed inside the badge.\n\t *\n\t * **Note:** You should import the desired icon first, then use its name as \"icon\".\n\t *\n\t * `import \"@ui5/webcomponents-icons/dist/{icon_name}.js\"`\n\t *\n\t * @default undefined\n\t * @public\n\t */\n\t@property()\n\ticon?: string;\n\n\t/**\n\t * Defines the tooltip text of the badge icon.\n\t *\n\t * **Note:** If not provided, the badge uses the icon accessible name.\n\t * If no icon accessible name is available, a generic fallback text is used.\n\t * @default undefined\n\t * @public\n\t * @since 2.22.0\n\t */\n\t@property()\n\ttooltip?: string;\n\n\t/**\n\t * Defines the state of the badge, which determines its styling.\n\t *\n\t * Available options:\n\t * - `None` (default) - Standard appearance\n\t * - `Positive` - Green, used for success/approved states\n\t * - `Critical` - Orange, used for warning states\n\t * - `Negative` - Red, used for error/rejected states\n\t * - `Information` - Blue, used for informational states\n\t *\n\t * **Note:** `state` takes precedence over `colorScheme`. When `state` is set\n\t * to any value other than `None`, the semantic styling applies and `colorScheme` is ignored.\n\t *\n\t * @default \"None\"\n\t * @public\n\t */\n\t@property()\n\tstate: `${ValueState}` = ValueState.None;\n\n\t/**\n\t * Defines the color scheme of the badge using the indication color palette.\n\t *\n\t * Available options are `\"1\"` through `\"10\"`, matching the indication colors.\n\t *\n\t * **Note:** `state` takes precedence - when `state` is set to any value other than `None`,\n\t * the semantic state styling applies and `colorScheme` is ignored.\n\t *\n\t * @default undefined\n\t * @public\n\t * @since 2.27.0\n\t */\n\t@property()\n\tcolorScheme?: string;\n\n\t/**\n\t * @private\n\t */\n\t@property({ type: Boolean })\n\tinvalid = false;\n\n\t/**\n\t * @private\n\t */\n\t@property({ noAttribute: true })\n\teffectiveTooltip?: string;\n\n\tasync onBeforeRendering() {\n\t\tconst icon = this.icon;\n\t\tif (!icon) {\n\t\t\tthis.invalid = true;\n\t\t\tthis.effectiveTooltip = undefined;\n\t\t\treturn;\n\t\t}\n\n\t\tconst iconData = getIconDataSync(icon) || await getIconData(icon);\n\t\tthis.invalid = !iconData || iconData === ICON_NOT_FOUND;\n\n\t\tif (this.invalid) {\n\t\t\tthis.effectiveTooltip = undefined;\n\t\t} else if (this.tooltip) {\n\t\t\t// User-provided tooltip takes precedence\n\t\t\tthis.effectiveTooltip = this.tooltip;\n\t\t} else if (iconData && iconData !== ICON_NOT_FOUND && iconData.accData) {\n\t\t\t// Use the icon's registered i18n label (e.g., message-error -> \"Error\")\n\t\t\tif (iconData.packageName) {\n\t\t\t\tconst i18nBundle = await getI18nBundle(iconData.packageName);\n\t\t\t\tthis.effectiveTooltip = i18nBundle.getText(iconData.accData) || undefined;\n\t\t\t} else {\n\t\t\t\tthis.effectiveTooltip = iconData.accData.defaultText || undefined;\n\t\t\t}\n\t\t} else {\n\t\t\t// Derive from icon name (e.g., \"edit\" -> \"Edit\")\n\t\t\tthis.effectiveTooltip = icon.charAt(0).toUpperCase() + icon.slice(1);\n\t\t}\n\t}\n}\n\nAvatarBadge.define();\n\nexport default AvatarBadge;\n"]}
|
|
@@ -7,10 +7,11 @@ export default function CardHeaderTemplate() {
|
|
|
7
7
|
"ui5-card-header--active": this.interactive && this._headerActive,
|
|
8
8
|
"ui5-card-header-ff": isFirefox(),
|
|
9
9
|
}, part: "root", onClick: this._click, onKeyDown: this._keydown, onKeyUp: this._keyup, children: [_jsxs("div", { class: "ui5-card-header-focusable-element", "aria-labelledby": this.ariaLabelledBy, "aria-roledescription": this.ariaRoleDescription, role: this.ariaRoleFocusableElement, "data-sap-focus-ref": true, tabindex: 0, children: [this.hasAvatar &&
|
|
10
|
-
_jsx("div", { id: `${this._id}-avatar`, class: "ui5-card-header-avatar", "aria-label": this.ariaCardAvatarLabel, children: _jsx("slot", { name: "avatar" }) }), _jsxs("div", { class: "ui5-card-header-text", children: [
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
_jsx("div", { id: `${this._id}-avatar`, class: "ui5-card-header-avatar", "aria-label": this.ariaCardAvatarLabel, children: _jsx("slot", { name: "avatar" }) }), _jsxs("div", { class: "ui5-card-header-text", children: [this.titleText &&
|
|
11
|
+
_jsx("div", { id: `${this._id}-title`, class: "ui5-card-header-title", part: "title", role: "heading", "aria-level": 3, children: this.titleText }), this.subtitleText &&
|
|
12
|
+
_jsx("div", { id: `${this._id}-subtitle`, class: "ui5-card-header-subtitle", part: "subtitle", children: this.subtitleText })] })] }), (this.hasAction || this.additionalText) &&
|
|
13
|
+
_jsxs("div", { class: "ui5-card-header-action-and-additional-text", onFocusIn: this._actionsFocusin, onFocusOut: this._actionsFocusout, children: [this.hasAction &&
|
|
14
|
+
_jsx("slot", { name: "action" }), this.additionalText &&
|
|
15
|
+
_jsx("div", { class: "ui5-card-header-additionalText", children: _jsx("span", { id: `${this._id}-additionalText`, part: "additional-text", dir: "auto", children: this.additionalText }) })] })] }));
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=CardHeaderTemplate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardHeaderTemplate.js","sourceRoot":"","sources":["../src/CardHeaderTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AAEnE,MAAM,CAAC,OAAO,UAAU,kBAAkB;IACzC,OAAO,CACN,eACC,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,UAAU,EACzB,KAAK,EAAE;YACN,iBAAiB,EAAE,IAAI;YACvB,8BAA8B,EAAE,IAAI,CAAC,WAAW;YAChD,yBAAyB,EAAE,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,aAAa;YACjE,oBAAoB,EAAE,SAAS,EAAE;SACjC,EACD,IAAI,EAAC,MAAM,EACX,OAAO,EAAE,IAAI,CAAC,MAAM,EACpB,SAAS,EAAE,IAAI,CAAC,QAAQ,EACxB,OAAO,EAAE,IAAI,CAAC,MAAM,aAEpB,eACC,KAAK,EAAC,mCAAmC,qBACxB,IAAI,CAAC,cAAc,0BACd,IAAI,CAAC,mBAAmB,EAC9C,IAAI,EAAE,IAAI,CAAC,wBAAwB,8BAEnC,QAAQ,EAAE,CAAC,aAEV,IAAI,CAAC,SAAS;wBACd,cAAK,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,SAAS,EAAE,KAAK,EAAC,wBAAwB,gBAAa,IAAI,CAAC,mBAAmB,YACjG,eAAM,IAAI,EAAC,QAAQ,GAAQ,GACtB,EAGP,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AAK,EAAC,0BAA0B,EAAC,IAAI,EAAC,UAAU,YAAE,IAAI,CAAC,YAAY,GAAO,IAEvG,IACD,EAEL,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,cAAc,CAAC;gBACvC,eACC,KAAK,EAAC,4CAA4C,EAClD,SAAS,EAAE,IAAI,CAAC,eAAe,EAC/B,UAAU,EAAE,IAAI,CAAC,gBAAgB,aAEhC,IAAI,CAAC,SAAS;4BACd,eAAM,IAAI,EAAC,QAAQ,GAAQ,EAE3B,IAAI,CAAC,cAAc;4BACnB,cAAK,KAAK,EAAC,gCAAgC,YAC1C,eAAM,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,iBAAiB,EAAE,IAAI,EAAC,iBAAiB,EAAC,GAAG,EAAC,MAAM,YAAE,IAAI,CAAC,cAAc,GAAQ,GACjG,IAEF,IAEF,CACN,CAAC;AACH,CAAC","sourcesContent":["import type CardHeader from \"./CardHeader.js\";\nimport { isFirefox } from \"@ui5/webcomponents-base/dist/Device.js\";\n\nexport default function CardHeaderTemplate(this: CardHeader) {\n\treturn (\n\t\t<div\n\t\t\tid={`${this._id}--header`}\n\t\t\tclass={{\n\t\t\t\t\"ui5-card-header\": true,\n\t\t\t\t\"ui5-card-header--interactive\": this.interactive,\n\t\t\t\t\"ui5-card-header--active\": this.interactive && this._headerActive,\n\t\t\t\t\"ui5-card-header-ff\": isFirefox(),\n\t\t\t}}\n\t\t\tpart=\"root\"\n\t\t\tonClick={this._click}\n\t\t\tonKeyDown={this._keydown}\n\t\t\tonKeyUp={this._keyup}\n\t\t>\n\t\t\t<div\n\t\t\t\tclass=\"ui5-card-header-focusable-element\"\n\t\t\t\taria-labelledby={this.ariaLabelledBy}\n\t\t\t\taria-roledescription={this.ariaRoleDescription}\n\t\t\t\trole={this.ariaRoleFocusableElement}\n\t\t\t\tdata-sap-focus-ref\n\t\t\t\ttabindex={0}\n\t\t\t>\n\t\t\t\t{this.hasAvatar &&\n\t\t\t\t\t<div id={`${this._id}-avatar`} class=\"ui5-card-header-avatar\" aria-label={this.ariaCardAvatarLabel}>\n\t\t\t\t\t\t<slot name=\"avatar\"></slot>\n\t\t\t\t\t</div>\n\t\t\t\t}\n\n\t\t\t\t<div class=\"ui5-card-header-text\">\n\t\t\t\t\t{this.titleText &&\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tid={`${this._id}-title`}\n\t\t\t\t\t\t\tclass=\"ui5-card-header-title\"\n\t\t\t\t\t\t\tpart=\"title\"\n\t\t\t\t\t\t\trole=\"heading\"\n\t\t\t\t\t\t\taria-level={3}\n\t\t\t\t\t\t>{this.titleText}</div>\n\t\t\t\t\t}\n\n\t\t\t\t\t{this.subtitleText &&\n\t\t\t\t\t\t<div id={`${this._id}-subtitle`} class=\"ui5-card-header-subtitle\" part=\"subtitle\">{this.subtitleText}</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t{(this.hasAction || this.additionalText) &&\n\t\t\t\t<div\n\t\t\t\t\tclass=\"ui5-card-header-action-and-additional-text\"\n\t\t\t\t\tonFocusIn={this._actionsFocusin}\n\t\t\t\t\tonFocusOut={this._actionsFocusout}\n\t\t\t\t>\n\t\t\t\t\t{this.hasAction &&\n\t\t\t\t\t\t<slot name=\"action\"></slot>\n\t\t\t\t\t}\n\t\t\t\t\t{this.additionalText &&\n\t\t\t\t\t\t<div class=\"ui5-card-header-additionalText\">\n\t\t\t\t\t\t\t<span id={`${this._id}-additionalText`} part=\"additional-text\" dir=\"auto\">{this.additionalText}</span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t);\n}\n"]}
|
package/dist/DateTimeInput.d.ts
CHANGED
|
@@ -18,6 +18,12 @@ declare class DateTimeInput extends Input {
|
|
|
18
18
|
*/
|
|
19
19
|
get hasValueStateMessage(): boolean;
|
|
20
20
|
get _isMobileDevice(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Placeholder must not remain on the native input when a value is present,
|
|
23
|
+
* so screen readers (e.g. JAWS) do not announce it together with the value.
|
|
24
|
+
* @override
|
|
25
|
+
*/
|
|
26
|
+
get _placeholder(): string | undefined;
|
|
21
27
|
/**
|
|
22
28
|
* Override to handle nested slot structure from DatePicker -> DateTimeInput slot forwarding.
|
|
23
29
|
* Assumes DateTimeInput always has slot-within-slot structure for valueStateMessage.
|
package/dist/DateTimeInput.js
CHANGED
|
@@ -36,6 +36,17 @@ let DateTimeInput = class DateTimeInput extends Input {
|
|
|
36
36
|
get _isMobileDevice() {
|
|
37
37
|
return !isDesktop() && (isPhone() || isTablet());
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Placeholder must not remain on the native input when a value is present,
|
|
41
|
+
* so screen readers (e.g. JAWS) do not announce it together with the value.
|
|
42
|
+
* @override
|
|
43
|
+
*/
|
|
44
|
+
get _placeholder() {
|
|
45
|
+
if (this.value) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
return super._placeholder;
|
|
49
|
+
}
|
|
39
50
|
/**
|
|
40
51
|
* Override to handle nested slot structure from DatePicker -> DateTimeInput slot forwarding.
|
|
41
52
|
* Assumes DateTimeInput always has slot-within-slot structure for valueStateMessage.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimeInput.js","sourceRoot":"","sources":["../src/DateTimeInput.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,aAAa,MAAM,0DAA0D,CAAC;AACrF,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAE1E,SAAS;AACT,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAEtF;;;;;;;GAOG;AAKH,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,KAAK;IAAjC;;QAEC,iCAA4B,GAA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,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;QAClF,CAAC;QAED,mFAAmF;QACnF,IAAI,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;YACnC,MAAM,SAAS,GAAG,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;YAC5C,IAAI,SAAS,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;gBAClC,MAAM,aAAa,GAAI,SAA6B,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;gBACtF,MAAM,WAAW,GAAG,aAAa;qBAC/B,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC;qBACnC,IAAI,CAAC,GAAG,CAAC;qBACT,IAAI,EAAE,CAAC;gBACT,OAAO,WAAW,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;YAClE,CAAC;YACD,gCAAgC;YAChC,OAAO,GAAG,UAAU,IAAI,SAAS,CAAC,WAAW,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9D,CAAC;QAED,OAAO,UAAU,CAAC;IACnB,CAAC;CACD,CAAA;AA/DA;IADC,QAAQ,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;mEACK;AAFhC,aAAa;IAJlB,aAAa,CAAC;QACd,GAAG,EAAE,oBAAoB;KACzB,CAAC;GAEI,aAAa,CAiElB;AAED,aAAa,CAAC,MAAM,EAAE,CAAC;AAEvB,eAAe,aAAa,CAAC","sourcesContent":["import customElement from \"@ui5/webcomponents-base/dist/decorators/customElement.js\";\nimport ValueState from \"@ui5/webcomponents-base/dist/types/ValueState.js\";\n\n// Styles\nimport Input from \"./Input.js\";\nimport { property } from \"@ui5/webcomponents-base/dist/decorators.js\";\nimport { isDesktop, isPhone, isTablet } from \"@ui5/webcomponents-base/dist/Device.js\";\n\n/**\n * Extention of the UI5 Input, so we do not modify Input's private properties within the datetime components.\n * Intended to be used for the DateTime components.\n *\n * @class\n * @extends Input\n * @private\n */\n@customElement({\n\ttag: \"ui5-datetime-input\",\n})\n\nclass DateTimeInput extends Input {\n\t@property({ noAttribute: true })\n\t_shouldOpenValueStatePopover = false;\n\n\t/**\n\t * Prevents the value state message popover from appearing when a responsive popover (like time selection) is open\n\t * since the responsive popover already includes the necessary information in its header.\n\t *\n\t * @protected\n\t * @override\n\t */\n\tget hasValueStateMessage() {\n\t\treturn this._shouldOpenValueStatePopover && super.hasValueStateMessage && !this._isMobileDevice;\n\t}\n\n\tget _isMobileDevice() {\n\t\treturn !isDesktop() && (isPhone() || isTablet());\n\t}\n\n\t/**\n\t * Placeholder must not remain on the native input when a value is present,\n\t * so screen readers (e.g. JAWS) do not announce it together with the value.\n\t * @override\n\t */\n\tget _placeholder() {\n\t\tif (this.value) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn super._placeholder;\n\t}\n\n\t/**\n\t * Override to handle nested slot structure from DatePicker -> DateTimeInput slot forwarding.\n\t * Assumes DateTimeInput always has slot-within-slot structure for valueStateMessage.\n\t * @override\n\t */\n\tget ariaValueStateHiddenText(): string | undefined {\n\t\tif (!this.hasValueState) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst valueState = this.valueState !== ValueState.None ? this.valueStateTypeMappings[this.valueState] : \"\";\n\n\t\tif (this.shouldDisplayDefaultValueStateMessage) {\n\t\t\treturn this.valueStateText ? `${valueState} ${this.valueStateText}` : valueState;\n\t\t}\n\n\t\t// Handle the specific nested slot case: outer slot -> inner slot -> actual content\n\t\tif (this.valueStateMessage.length) {\n\t\t\tconst outerSlot = this.valueStateMessage[0];\n\t\t\tif (outerSlot.tagName === \"SLOT\") {\n\t\t\t\tconst assignedNodes = (outerSlot as HTMLSlotElement).assignedNodes({ flatten: true });\n\t\t\t\tconst textContent = assignedNodes\n\t\t\t\t\t.map(node => node.textContent || \"\")\n\t\t\t\t\t.join(\" \")\n\t\t\t\t\t.trim();\n\t\t\t\treturn textContent ? `${valueState} ${textContent}` : valueState;\n\t\t\t}\n\t\t\t// Fallback for non-slot content\n\t\t\treturn `${valueState} ${outerSlot.textContent || \"\"}`.trim();\n\t\t}\n\n\t\treturn valueState;\n\t}\n}\n\nDateTimeInput.define();\n\nexport default DateTimeInput;\n"]}
|
package/dist/Filters.js
CHANGED
|
@@ -7,7 +7,7 @@ const StartsWithPerTerm = (value, items, propName) => {
|
|
|
7
7
|
return items.filter(item => {
|
|
8
8
|
const text = item[propName];
|
|
9
9
|
reg.lastIndex = 0;
|
|
10
|
-
return reg.test(text.toLowerCase());
|
|
10
|
+
return reg.test((text ?? "").toLowerCase());
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
const StartsWith = (value, items, propName) => items.filter(item => (item[propName] || "").toLowerCase().startsWith(value.toLowerCase()));
|
package/dist/Filters.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Filters.js","sourceRoot":"","sources":["../src/Filters.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,qBAAqB,CAAC;AAExC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAC5C,OAAO,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAI,KAAa,EAAE,KAAe,EAAE,QAAgB,EAAE,EAAE;IACjF,MAAM,GAAG,GAAG,IAAI,MAAM,CAAC,UAAU,YAAY,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAE7E,OAAO,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAC1B,MAAM,IAAI,GAAG,IAAI,CAAC,QAA6B,CAAW,CAAC;QAE3D,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;QAElB,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AAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AAC5M,MAAM,IAAI,GAAG,CAAI,CAAS,EAAE,KAAe,EAAY,EAAE,CAAC,KAAK,CAAC;AAEhE,OAAO,EACN,iBAAiB,EACjB,UAAU,EACV,QAAQ,EACR,IAAI,GACJ,CAAC","sourcesContent":["const escapeReg = /[[\\]{}()*+?.\\\\^$|]/g;\n\nconst escapeRegExp = (str: string): string => {\n\treturn str.replace(escapeReg, \"\\\\$&\");\n};\n\nconst StartsWithPerTerm = <T>(value: string, items: Array<T>, propName: string) => {\n\tconst reg = new RegExp(`(^|\\\\s)${escapeRegExp(value.toLowerCase())}.*`, \"g\");\n\n\treturn items.filter(item => {\n\t\tconst text = item[propName as keyof typeof item] as string;\n\n\t\treg.lastIndex = 0;\n\n\t\treturn reg.test((text ?? \"\").toLowerCase());\n\t});\n};\n\nconst StartsWith = <T>(value: string, items: Array<T>, propName: string): Array<T> => items.filter(item => (item[propName as keyof typeof item] as string || \"\").toLowerCase().startsWith(value.toLowerCase()));\nconst Contains = <T>(value: string, items: Array<T>, propName: string): Array<T> => items.filter(item => (item[propName as keyof typeof item] as string || \"\").toLowerCase().includes(value.toLowerCase()));\nconst None = <T>(_: string, items: Array<T>): Array<T> => items;\n\nexport {\n\tStartsWithPerTerm,\n\tStartsWith,\n\tContains,\n\tNone,\n};\n"]}
|
package/dist/List.js
CHANGED
|
@@ -924,7 +924,10 @@ let List = List_1 = class List extends UI5Element {
|
|
|
924
924
|
}
|
|
925
925
|
onItemPress(e) {
|
|
926
926
|
const pressedItem = e.detail.item;
|
|
927
|
-
if
|
|
927
|
+
// if InactiveSelectable - don't fire the public "item-click" event
|
|
928
|
+
// we fall through to the selection code below
|
|
929
|
+
const isInactiveSelectable = pressedItem.isInactiveSelectable;
|
|
930
|
+
if (!isInactiveSelectable && !this.fireDecoratorEvent("item-click", { item: pressedItem })) {
|
|
928
931
|
return;
|
|
929
932
|
}
|
|
930
933
|
if (this.selectionMode !== ListSelectionMode.Delete) {
|