@db-ux/wc-core-components 3.1.20 → 4.0.1
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 +16 -0
- package/dist/cjs/db-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/db-accordion.cjs.entry.js +2 -2
- package/dist/cjs/db-badge.cjs.entry.js +2 -2
- package/dist/cjs/db-brand.cjs.entry.js +2 -2
- package/dist/cjs/db-button.cjs.entry.js +2 -2
- package/dist/cjs/db-card.cjs.entry.js +2 -2
- package/dist/cjs/db-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.cjs.js.map +1 -1
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +5 -15
- package/dist/cjs/db-custom-select-form-field.cjs.entry.js +2 -2
- package/dist/cjs/db-custom-select.cjs.entry.js +10 -10
- package/dist/cjs/db-custom-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-divider.cjs.entry.js +2 -2
- package/dist/cjs/db-drawer.cjs.entry.js +2 -2
- package/dist/cjs/db-header.cjs.entry.js +2 -2
- package/dist/cjs/db-icon.cjs.entry.js +2 -2
- package/dist/cjs/db-infotext.cjs.entry.js +2 -2
- package/dist/cjs/db-link.cjs.entry.js +2 -2
- package/dist/cjs/db-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/db-navigation.cjs.entry.js +2 -2
- package/dist/cjs/db-notification.cjs.entry.js +2 -2
- package/dist/cjs/db-page.cjs.entry.js +2 -2
- package/dist/cjs/db-popover.cjs.entry.js +3 -3
- package/dist/cjs/db-radio.cjs.entry.js +2 -2
- package/dist/cjs/db-section.cjs.entry.js +2 -2
- package/dist/cjs/db-select.cjs.entry.js +2 -2
- package/dist/cjs/db-stack.cjs.entry.js +2 -2
- package/dist/cjs/db-switch.cjs.entry.js +70 -5
- package/dist/cjs/db-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/db-tab-item_3.cjs.entry.js +8 -8
- package/dist/cjs/db-tabs.cjs.entry.js +4 -4
- package/dist/cjs/db-textarea.cjs.entry.js +4 -4
- package/dist/cjs/db-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/db-ux.cjs.js +3 -3
- package/dist/cjs/db-ux.cjs.js.map +1 -1
- package/dist/cjs/{document-click-listener-CKUiT8IL.js → document-click-listener-DGna8oDJ.js} +3 -3
- package/dist/cjs/{document-click-listener-CKUiT8IL.js.map → document-click-listener-DGna8oDJ.js.map} +1 -1
- package/dist/cjs/{document-scroll-listener-BlwNKh0i.js → document-scroll-listener-BBXRu9dN.js} +3 -3
- package/dist/cjs/{document-scroll-listener-BlwNKh0i.js.map → document-scroll-listener-BBXRu9dN.js.map} +1 -1
- package/dist/cjs/{index-DjV59BYq.js → index-Bm2Cw2rz.js} +22 -2
- package/dist/cjs/index-Bm2Cw2rz.js.map +1 -0
- package/dist/cjs/{index-BKsFzv8w.js → index-Cn0jjcY0.js} +7 -4
- package/dist/{esm/index-Bxi-mtJ7.js.map → cjs/index-Cn0jjcY0.js.map} +1 -1
- package/dist/cjs/index.cjs.js +7 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/custom-select/custom-select.js +9 -9
- package/dist/collection/components/custom-select/custom-select.js.map +1 -1
- package/dist/collection/components/custom-select/model.js.map +1 -1
- package/dist/collection/components/input/input.js +4 -14
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/input/model.js.map +1 -1
- package/dist/collection/components/switch/model.js.map +1 -1
- package/dist/collection/components/switch/switch.js +260 -51
- package/dist/collection/components/switch/switch.js.map +1 -1
- package/dist/collection/components/tab-item/tab-item.js +2 -2
- package/dist/collection/components/tab-list/tab-list.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +2 -2
- package/dist/collection/components/tabs/tabs.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/shared/model.js +1 -0
- package/dist/collection/shared/model.js.map +1 -1
- package/dist/collection/utils/index.js +19 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/custom-elements.json +329 -132
- package/dist/db-ux/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.esm.js.map +1 -1
- package/dist/db-ux/db-custom-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-switch.entry.esm.js.map +1 -1
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/db-ux.esm.js.map +1 -1
- package/dist/db-ux/index.esm.js +1 -1
- package/dist/db-ux/index.esm.js.map +1 -1
- package/dist/db-ux/p-0530a878.entry.js +2 -0
- package/dist/db-ux/{p-2c457e48.entry.js.map → p-0530a878.entry.js.map} +1 -1
- package/dist/db-ux/{p-3390e528.entry.js → p-09bedc1a.entry.js} +2 -2
- package/dist/db-ux/{p-75d3a947.entry.js → p-0c4d5d88.entry.js} +2 -2
- package/dist/db-ux/p-38d2dfea.entry.js +2 -0
- package/dist/db-ux/p-38d2dfea.entry.js.map +1 -0
- package/dist/db-ux/{p-31b7ea66.entry.js → p-3cb7ff97.entry.js} +2 -2
- package/dist/db-ux/{p-1a7001bb.entry.js → p-45ca9947.entry.js} +2 -2
- package/dist/db-ux/p-4769ec6d.entry.js +2 -0
- package/dist/db-ux/{p-950bf6ab.entry.js.map → p-4769ec6d.entry.js.map} +1 -1
- package/dist/db-ux/{p-56488bc3.entry.js → p-68bc689b.entry.js} +2 -2
- package/dist/db-ux/p-71a9c2c9.entry.js +2 -0
- package/dist/db-ux/p-7c27fe0d.entry.js +2 -0
- package/dist/db-ux/{p-72bd1665.entry.js.map → p-7c27fe0d.entry.js.map} +1 -1
- package/dist/db-ux/{p-82083293.entry.js → p-807ad902.entry.js} +2 -2
- package/dist/db-ux/{p-b3ccfc6a.entry.js → p-82311da9.entry.js} +2 -2
- package/dist/db-ux/{p-cd51d733.entry.js → p-82369b8d.entry.js} +2 -2
- package/dist/db-ux/{p-43be6218.entry.js → p-85ad9dfb.entry.js} +2 -2
- package/dist/db-ux/{p-1c50fd87.entry.js → p-870bb35b.entry.js} +2 -2
- package/dist/db-ux/{p-2bc4be80.entry.js → p-88e27985.entry.js} +2 -2
- package/dist/db-ux/{p-a7a0c5a3.entry.js → p-9ce7a144.entry.js} +2 -2
- package/dist/db-ux/p-BMfF_eQJ.js +2 -0
- package/dist/db-ux/{p-BRouKtF5.js.map → p-BMfF_eQJ.js.map} +1 -1
- package/dist/db-ux/p-BX4jNwUm.js +2 -0
- package/dist/db-ux/{p-BwSmFFdU.js.map → p-BX4jNwUm.js.map} +1 -1
- package/dist/db-ux/p-DhKljLRG.js +2 -0
- package/dist/db-ux/p-DhKljLRG.js.map +1 -0
- package/dist/db-ux/{p-Bxi-mtJ7.js → p-_OYZj_2L.js} +2 -2
- package/dist/db-ux/{p-Bxi-mtJ7.js.map → p-_OYZj_2L.js.map} +1 -1
- package/dist/db-ux/p-a334df8c.entry.js +2 -0
- package/dist/db-ux/{p-d0a2e1d4.entry.js → p-b1be4ba0.entry.js} +2 -2
- package/dist/db-ux/{p-c9b2b24e.entry.js → p-b2acf6bd.entry.js} +2 -2
- package/dist/db-ux/{p-da7e3ac7.entry.js → p-b63d89c7.entry.js} +2 -2
- package/dist/db-ux/{p-132ee89d.entry.js → p-ca3555c1.entry.js} +2 -2
- package/dist/db-ux/p-ce826494.entry.js +2 -0
- package/dist/db-ux/{p-90f21d44.entry.js.map → p-ce826494.entry.js.map} +1 -1
- package/dist/db-ux/{p-26e115a8.entry.js → p-cf9785fe.entry.js} +2 -2
- package/dist/db-ux/{p-1f490d67.entry.js → p-d17fe729.entry.js} +2 -2
- package/dist/db-ux/{p-53c419b0.entry.js → p-d93934d2.entry.js} +2 -2
- package/dist/db-ux/p-eab5ef6f.entry.js +2 -0
- package/dist/db-ux/p-eab5ef6f.entry.js.map +1 -0
- package/dist/db-ux/{p-364cc533.entry.js → p-eabd7598.entry.js} +2 -2
- package/dist/db-ux/p-f2483bef.entry.js +2 -0
- package/dist/db-ux/{p-fbf46ee6.entry.js.map → p-f2483bef.entry.js.map} +1 -1
- package/dist/db-ux/{p-963fde68.entry.js → p-f30ec184.entry.js} +2 -2
- package/dist/db-ux/p-f30ec184.entry.js.map +1 -0
- package/dist/esm/db-accordion-item.entry.js +2 -2
- package/dist/esm/db-accordion.entry.js +2 -2
- package/dist/esm/db-badge.entry.js +2 -2
- package/dist/esm/db-brand.entry.js +2 -2
- package/dist/esm/db-button.entry.js +2 -2
- package/dist/esm/db-card.entry.js +2 -2
- package/dist/esm/db-checkbox.entry.js +2 -2
- package/dist/esm/db-custom-select-dropdown.db-custom-select-list.db-custom-select-list-item.db-input.db-tag.entry.js.map +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +5 -15
- package/dist/esm/db-custom-select-form-field.entry.js +2 -2
- package/dist/esm/db-custom-select.entry.js +10 -10
- package/dist/esm/db-custom-select.entry.js.map +1 -1
- package/dist/esm/db-divider.entry.js +2 -2
- package/dist/esm/db-drawer.entry.js +2 -2
- package/dist/esm/db-header.entry.js +2 -2
- package/dist/esm/db-icon.entry.js +2 -2
- package/dist/esm/db-infotext.entry.js +2 -2
- package/dist/esm/db-link.entry.js +2 -2
- package/dist/esm/db-navigation-item.entry.js +2 -2
- package/dist/esm/db-navigation.entry.js +2 -2
- package/dist/esm/db-notification.entry.js +2 -2
- package/dist/esm/db-page.entry.js +2 -2
- package/dist/esm/db-popover.entry.js +3 -3
- package/dist/esm/db-radio.entry.js +2 -2
- package/dist/esm/db-section.entry.js +2 -2
- package/dist/esm/db-select.entry.js +2 -2
- package/dist/esm/db-stack.entry.js +2 -2
- package/dist/esm/db-switch.entry.js +70 -5
- package/dist/esm/db-switch.entry.js.map +1 -1
- package/dist/esm/db-tab-item_3.entry.js +8 -8
- package/dist/esm/db-tabs.entry.js +4 -4
- package/dist/esm/db-textarea.entry.js +4 -4
- package/dist/esm/db-tooltip.entry.js +3 -3
- package/dist/esm/db-ux.js +4 -4
- package/dist/esm/db-ux.js.map +1 -1
- package/dist/esm/{document-click-listener-B4S1N-ro.js → document-click-listener-D1ZXrKSx.js} +3 -3
- package/dist/esm/{document-click-listener-B4S1N-ro.js.map → document-click-listener-D1ZXrKSx.js.map} +1 -1
- package/dist/esm/{document-scroll-listener-DC7DAxof.js → document-scroll-listener-DF6f0ByI.js} +3 -3
- package/dist/esm/{document-scroll-listener-DC7DAxof.js.map → document-scroll-listener-DF6f0ByI.js.map} +1 -1
- package/dist/esm/{index-YECpAE3G.js → index-DhKljLRG.js} +22 -3
- package/dist/esm/index-DhKljLRG.js.map +1 -0
- package/dist/esm/{index-Bxi-mtJ7.js → index-_OYZj_2L.js} +7 -4
- package/dist/{cjs/index-BKsFzv8w.js.map → esm/index-_OYZj_2L.js.map} +1 -1
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/custom-select/custom-select.d.ts +1 -1
- package/dist/types/components/custom-select/model.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +0 -1
- package/dist/types/components/input/model.d.ts +0 -1
- package/dist/types/components/switch/model.d.ts +7 -3
- package/dist/types/components/switch/switch.d.ts +19 -4
- package/dist/types/components.d.ts +14 -4
- package/dist/types/shared/model.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +2 -1
- package/dist/types/utils/index.d.ts +10 -0
- package/dist/vscode.html-custom-data.json +48 -23
- package/dist/web-types.json +96 -40
- package/package.json +4 -4
- package/dist/cjs/index-DjV59BYq.js.map +0 -1
- package/dist/db-ux/p-07a7eb33.entry.js +0 -2
- package/dist/db-ux/p-2c457e48.entry.js +0 -2
- package/dist/db-ux/p-69a7e5f9.entry.js +0 -2
- package/dist/db-ux/p-72bd1665.entry.js +0 -2
- package/dist/db-ux/p-90f21d44.entry.js +0 -2
- package/dist/db-ux/p-950bf6ab.entry.js +0 -2
- package/dist/db-ux/p-963fde68.entry.js.map +0 -1
- package/dist/db-ux/p-BRouKtF5.js +0 -2
- package/dist/db-ux/p-BwSmFFdU.js +0 -2
- package/dist/db-ux/p-YECpAE3G.js +0 -2
- package/dist/db-ux/p-YECpAE3G.js.map +0 -1
- package/dist/db-ux/p-a5b542fa.entry.js +0 -2
- package/dist/db-ux/p-a5b542fa.entry.js.map +0 -1
- package/dist/db-ux/p-ad8ff0ae.entry.js +0 -2
- package/dist/db-ux/p-ad8ff0ae.entry.js.map +0 -1
- package/dist/db-ux/p-fbf46ee6.entry.js +0 -2
- package/dist/esm/index-YECpAE3G.js.map +0 -1
- /package/dist/db-ux/{p-3390e528.entry.js.map → p-09bedc1a.entry.js.map} +0 -0
- /package/dist/db-ux/{p-75d3a947.entry.js.map → p-0c4d5d88.entry.js.map} +0 -0
- /package/dist/db-ux/{p-31b7ea66.entry.js.map → p-3cb7ff97.entry.js.map} +0 -0
- /package/dist/db-ux/{p-1a7001bb.entry.js.map → p-45ca9947.entry.js.map} +0 -0
- /package/dist/db-ux/{p-56488bc3.entry.js.map → p-68bc689b.entry.js.map} +0 -0
- /package/dist/db-ux/{p-07a7eb33.entry.js.map → p-71a9c2c9.entry.js.map} +0 -0
- /package/dist/db-ux/{p-82083293.entry.js.map → p-807ad902.entry.js.map} +0 -0
- /package/dist/db-ux/{p-b3ccfc6a.entry.js.map → p-82311da9.entry.js.map} +0 -0
- /package/dist/db-ux/{p-cd51d733.entry.js.map → p-82369b8d.entry.js.map} +0 -0
- /package/dist/db-ux/{p-43be6218.entry.js.map → p-85ad9dfb.entry.js.map} +0 -0
- /package/dist/db-ux/{p-1c50fd87.entry.js.map → p-870bb35b.entry.js.map} +0 -0
- /package/dist/db-ux/{p-2bc4be80.entry.js.map → p-88e27985.entry.js.map} +0 -0
- /package/dist/db-ux/{p-a7a0c5a3.entry.js.map → p-9ce7a144.entry.js.map} +0 -0
- /package/dist/db-ux/{p-69a7e5f9.entry.js.map → p-a334df8c.entry.js.map} +0 -0
- /package/dist/db-ux/{p-d0a2e1d4.entry.js.map → p-b1be4ba0.entry.js.map} +0 -0
- /package/dist/db-ux/{p-c9b2b24e.entry.js.map → p-b2acf6bd.entry.js.map} +0 -0
- /package/dist/db-ux/{p-da7e3ac7.entry.js.map → p-b63d89c7.entry.js.map} +0 -0
- /package/dist/db-ux/{p-132ee89d.entry.js.map → p-ca3555c1.entry.js.map} +0 -0
- /package/dist/db-ux/{p-26e115a8.entry.js.map → p-cf9785fe.entry.js.map} +0 -0
- /package/dist/db-ux/{p-1f490d67.entry.js.map → p-d17fe729.entry.js.map} +0 -0
- /package/dist/db-ux/{p-53c419b0.entry.js.map → p-d93934d2.entry.js.map} +0 -0
- /package/dist/db-ux/{p-364cc533.entry.js.map → p-eabd7598.entry.js.map} +0 -0
|
@@ -165,7 +165,6 @@ export namespace Components {
|
|
|
165
165
|
interface DbCustomSelect {
|
|
166
166
|
"amountText": DBCustomSelectProps["amountText"];
|
|
167
167
|
"ariaDescribedBy": DBCustomSelectProps["ariaDescribedBy"];
|
|
168
|
-
"ariaListLabel": DBCustomSelectProps["ariaListLabel"];
|
|
169
168
|
"className": DBCustomSelectProps["className"];
|
|
170
169
|
/**
|
|
171
170
|
* @default "Clear selection"
|
|
@@ -179,6 +178,7 @@ export namespace Components {
|
|
|
179
178
|
"id": DBCustomSelectProps["id"];
|
|
180
179
|
"invalidMessage": DBCustomSelectProps["invalidMessage"];
|
|
181
180
|
"label": DBCustomSelectProps["label"];
|
|
181
|
+
"listLabel": DBCustomSelectProps["listLabel"];
|
|
182
182
|
"loadingText": DBCustomSelectProps["loadingText"];
|
|
183
183
|
"message": DBCustomSelectProps["message"];
|
|
184
184
|
"messageIcon": DBCustomSelectProps["messageIcon"];
|
|
@@ -478,19 +478,24 @@ export namespace Components {
|
|
|
478
478
|
"checked": DBSwitchProps["checked"];
|
|
479
479
|
"className": DBSwitchProps["className"];
|
|
480
480
|
"disabled": DBSwitchProps["disabled"];
|
|
481
|
-
"emphasis": DBSwitchProps["emphasis"];
|
|
482
481
|
"icon": DBSwitchProps["icon"];
|
|
483
482
|
"iconLeading": DBSwitchProps["iconLeading"];
|
|
484
483
|
"iconTrailing": DBSwitchProps["iconTrailing"];
|
|
485
484
|
"id": DBSwitchProps["id"];
|
|
485
|
+
"invalidMessage": DBSwitchProps["invalidMessage"];
|
|
486
486
|
"label": DBSwitchProps["label"];
|
|
487
|
+
"message": DBSwitchProps["message"];
|
|
488
|
+
"messageIcon": DBSwitchProps["messageIcon"];
|
|
487
489
|
"name": DBSwitchProps["name"];
|
|
488
490
|
"required": DBSwitchProps["required"];
|
|
489
491
|
"showLabel": DBSwitchProps["showLabel"];
|
|
492
|
+
"showMessage": DBSwitchProps["showMessage"];
|
|
490
493
|
"showRequiredAsterisk": DBSwitchProps["showRequiredAsterisk"];
|
|
491
494
|
"size": DBSwitchProps["size"];
|
|
495
|
+
"validMessage": DBSwitchProps["validMessage"];
|
|
492
496
|
"validation": DBSwitchProps["validation"];
|
|
493
497
|
"value": DBSwitchProps["value"];
|
|
498
|
+
"variant": DBSwitchProps["variant"];
|
|
494
499
|
"visualAid": DBSwitchProps["visualAid"];
|
|
495
500
|
}
|
|
496
501
|
interface DbTabItem {
|
|
@@ -1232,7 +1237,6 @@ declare namespace LocalJSX {
|
|
|
1232
1237
|
interface DbCustomSelect {
|
|
1233
1238
|
"amountText"?: DBCustomSelectProps["amountText"];
|
|
1234
1239
|
"ariaDescribedBy"?: DBCustomSelectProps["ariaDescribedBy"];
|
|
1235
|
-
"ariaListLabel"?: DBCustomSelectProps["ariaListLabel"];
|
|
1236
1240
|
"className"?: DBCustomSelectProps["className"];
|
|
1237
1241
|
/**
|
|
1238
1242
|
* @default "Clear selection"
|
|
@@ -1246,6 +1250,7 @@ declare namespace LocalJSX {
|
|
|
1246
1250
|
"id"?: DBCustomSelectProps["id"];
|
|
1247
1251
|
"invalidMessage"?: DBCustomSelectProps["invalidMessage"];
|
|
1248
1252
|
"label"?: DBCustomSelectProps["label"];
|
|
1253
|
+
"listLabel"?: DBCustomSelectProps["listLabel"];
|
|
1249
1254
|
"loadingText"?: DBCustomSelectProps["loadingText"];
|
|
1250
1255
|
"message"?: DBCustomSelectProps["message"];
|
|
1251
1256
|
"messageIcon"?: DBCustomSelectProps["messageIcon"];
|
|
@@ -1566,22 +1571,27 @@ declare namespace LocalJSX {
|
|
|
1566
1571
|
"checked"?: DBSwitchProps["checked"];
|
|
1567
1572
|
"className"?: DBSwitchProps["className"];
|
|
1568
1573
|
"disabled"?: DBSwitchProps["disabled"];
|
|
1569
|
-
"emphasis"?: DBSwitchProps["emphasis"];
|
|
1570
1574
|
"icon"?: DBSwitchProps["icon"];
|
|
1571
1575
|
"iconLeading"?: DBSwitchProps["iconLeading"];
|
|
1572
1576
|
"iconTrailing"?: DBSwitchProps["iconTrailing"];
|
|
1573
1577
|
"id"?: DBSwitchProps["id"];
|
|
1578
|
+
"invalidMessage"?: DBSwitchProps["invalidMessage"];
|
|
1574
1579
|
"label"?: DBSwitchProps["label"];
|
|
1580
|
+
"message"?: DBSwitchProps["message"];
|
|
1581
|
+
"messageIcon"?: DBSwitchProps["messageIcon"];
|
|
1575
1582
|
"name"?: DBSwitchProps["name"];
|
|
1576
1583
|
"onBlur"?: (event: DbSwitchCustomEvent<any>) => void;
|
|
1577
1584
|
"onChange"?: (event: DbSwitchCustomEvent<any>) => void;
|
|
1578
1585
|
"onFocus"?: (event: DbSwitchCustomEvent<any>) => void;
|
|
1579
1586
|
"required"?: DBSwitchProps["required"];
|
|
1580
1587
|
"showLabel"?: DBSwitchProps["showLabel"];
|
|
1588
|
+
"showMessage"?: DBSwitchProps["showMessage"];
|
|
1581
1589
|
"showRequiredAsterisk"?: DBSwitchProps["showRequiredAsterisk"];
|
|
1582
1590
|
"size"?: DBSwitchProps["size"];
|
|
1591
|
+
"validMessage"?: DBSwitchProps["validMessage"];
|
|
1583
1592
|
"validation"?: DBSwitchProps["validation"];
|
|
1584
1593
|
"value"?: DBSwitchProps["value"];
|
|
1594
|
+
"variant"?: DBSwitchProps["variant"];
|
|
1585
1595
|
"visualAid"?: DBSwitchProps["visualAid"];
|
|
1586
1596
|
}
|
|
1587
1597
|
interface DbTabItem {
|
|
@@ -308,6 +308,8 @@ export type FormCheckProps = {
|
|
|
308
308
|
};
|
|
309
309
|
export declare const LabelVariantList: readonly ["above", "floating"];
|
|
310
310
|
export type LabelVariantType = (typeof LabelVariantList)[number];
|
|
311
|
+
export declare const LabelVariantHorizontalList: readonly ["leading", "trailing"];
|
|
312
|
+
export type LabelVariantHorizontalType = (typeof LabelVariantHorizontalList)[number];
|
|
311
313
|
export declare const AutoCompleteList: readonly ["off", "on", "name", "honorific-prefix", "given-name", "additional-name", "family-name", "honorific-suffix", "nickname", "email", "username", "new-password", "current-password", "one-time-code", "organization-title", "organization", "street-address", "shipping", "billing", "address-line1", "address-line2", "address-line3", "address-level4", "address-level3", "address-level2", "address-level1", "country", "country-name", "postal-code", "cc-name", "cc-given-name", "cc-additional-name", "cc-family-name", "cc-number", "cc-exp", "cc-exp-month", "cc-exp-year", "cc-csc", "cc-type", "transaction-currency", "transaction-amount", "language", "bday", "bday-day", "bday-month", "bday-year", "sex", "tel", "tel-country-code", "tel-national", "tel-area-code", "tel-local", "tel-extension", "impp", "url", "photo", "webauthn"];
|
|
312
314
|
export type AutoCompleteType = (typeof AutoCompleteList)[number];
|
|
313
315
|
export type FormMessageProps = {
|
|
@@ -338,8 +338,9 @@ export declare function forceUpdate(ref: any): void;
|
|
|
338
338
|
* @returns the rendering ref
|
|
339
339
|
*/
|
|
340
340
|
export declare function getRenderingRef(): any;
|
|
341
|
-
export interface HTMLStencilElement extends HTMLElement {
|
|
341
|
+
export interface HTMLStencilElement extends Omit<HTMLElement, 'autocorrect'> {
|
|
342
342
|
componentOnReady(): Promise<this>;
|
|
343
|
+
autocorrect: 'on' | 'off';
|
|
343
344
|
}
|
|
344
345
|
/**
|
|
345
346
|
* Schedules a DOM-write task. The provided callback will be executed
|
|
@@ -10,6 +10,16 @@ export type ClassNameArg = string | {
|
|
|
10
10
|
export declare const cls: (...args: ClassNameArg[]) => string;
|
|
11
11
|
export declare const isArrayOfStrings: (value: unknown) => value is string[];
|
|
12
12
|
export declare const hasVoiceOver: () => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Determines if the current browser is Safari running on an iOS device.
|
|
15
|
+
*
|
|
16
|
+
* This function checks the user agent string to verify both iOS platform
|
|
17
|
+
* (iPad, iPhone, or iPod) and Safari browser, excluding other browsers
|
|
18
|
+
* such as Chrome, Firefox, Opera, and Edge on iOS.
|
|
19
|
+
*
|
|
20
|
+
* @returns {boolean} `true` if the browser is Safari on iOS, otherwise `false`.
|
|
21
|
+
*/
|
|
22
|
+
export declare const isIOSSafari: () => boolean;
|
|
13
23
|
export declare const delay: (fn: () => void, ms: number) => Promise<unknown>;
|
|
14
24
|
/**
|
|
15
25
|
* Some frameworks like stencil would not add "true" as value for a prop
|
|
@@ -1268,7 +1268,7 @@
|
|
|
1268
1268
|
"values": []
|
|
1269
1269
|
},
|
|
1270
1270
|
{
|
|
1271
|
-
"name": "
|
|
1271
|
+
"name": "list-label",
|
|
1272
1272
|
"description": "Overwrite the default aria-label (props.label) for the custom-select-list",
|
|
1273
1273
|
"values": []
|
|
1274
1274
|
},
|
|
@@ -2259,6 +2259,45 @@
|
|
|
2259
2259
|
"description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
2260
2260
|
"values": []
|
|
2261
2261
|
},
|
|
2262
|
+
{
|
|
2263
|
+
"name": "validation",
|
|
2264
|
+
"description": "Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.",
|
|
2265
|
+
"values": [
|
|
2266
|
+
{ "name": "invalid" },
|
|
2267
|
+
{ "name": "valid" },
|
|
2268
|
+
{ "name": "no-validation" }
|
|
2269
|
+
]
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
"name": "required",
|
|
2273
|
+
"description": "When the required attribute specified, the user will be required to fill the form element before submitting the form.\nThe form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).",
|
|
2274
|
+
"values": []
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"name": "message",
|
|
2278
|
+
"description": "Optional helper message for form components",
|
|
2279
|
+
"values": []
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
"name": "show-message",
|
|
2283
|
+
"description": "Enables or disables the visibility of the message.",
|
|
2284
|
+
"values": []
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
"name": "valid-message",
|
|
2288
|
+
"description": "Helper message for valid form components",
|
|
2289
|
+
"values": []
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
"name": "invalid-message",
|
|
2293
|
+
"description": "Helper message for invalid form components",
|
|
2294
|
+
"values": []
|
|
2295
|
+
},
|
|
2296
|
+
{
|
|
2297
|
+
"name": "checked",
|
|
2298
|
+
"description": "Define the radio or checkbox elements checked state",
|
|
2299
|
+
"values": []
|
|
2300
|
+
},
|
|
2262
2301
|
{
|
|
2263
2302
|
"name": "visual-aid",
|
|
2264
2303
|
"description": "Add additional icons to indicate active/inactive state.",
|
|
@@ -2275,9 +2314,9 @@
|
|
|
2275
2314
|
"values": []
|
|
2276
2315
|
},
|
|
2277
2316
|
{
|
|
2278
|
-
"name": "
|
|
2279
|
-
"description": "
|
|
2280
|
-
"values": [{ "name": "
|
|
2317
|
+
"name": "variant",
|
|
2318
|
+
"description": "Change the variant of the label to float or hidden",
|
|
2319
|
+
"values": [{ "name": "above" }, { "name": "floating" }]
|
|
2281
2320
|
},
|
|
2282
2321
|
{
|
|
2283
2322
|
"name": "show-required-asterisk",
|
|
@@ -2289,11 +2328,6 @@
|
|
|
2289
2328
|
"description": "React specific for adding className to the component.",
|
|
2290
2329
|
"values": []
|
|
2291
2330
|
},
|
|
2292
|
-
{
|
|
2293
|
-
"name": "checked",
|
|
2294
|
-
"description": "Define the radio or checkbox elements checked state",
|
|
2295
|
-
"values": []
|
|
2296
|
-
},
|
|
2297
2331
|
{
|
|
2298
2332
|
"name": "value",
|
|
2299
2333
|
"description": "The value property is to receive results from the native form element.",
|
|
@@ -2304,25 +2338,11 @@
|
|
|
2304
2338
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
2305
2339
|
"values": []
|
|
2306
2340
|
},
|
|
2307
|
-
{
|
|
2308
|
-
"name": "validation",
|
|
2309
|
-
"description": "Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.",
|
|
2310
|
-
"values": [
|
|
2311
|
-
{ "name": "invalid" },
|
|
2312
|
-
{ "name": "valid" },
|
|
2313
|
-
{ "name": "no-validation" }
|
|
2314
|
-
]
|
|
2315
|
-
},
|
|
2316
2341
|
{
|
|
2317
2342
|
"name": "name",
|
|
2318
2343
|
"description": "The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.",
|
|
2319
2344
|
"values": []
|
|
2320
2345
|
},
|
|
2321
|
-
{
|
|
2322
|
-
"name": "required",
|
|
2323
|
-
"description": "When the required attribute specified, the user will be required to fill the form element before submitting the form.\nThe form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).",
|
|
2324
|
-
"values": []
|
|
2325
|
-
},
|
|
2326
2346
|
{
|
|
2327
2347
|
"name": "icon-leading",
|
|
2328
2348
|
"description": "Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.",
|
|
@@ -2342,6 +2362,11 @@
|
|
|
2342
2362
|
"name": "label",
|
|
2343
2363
|
"description": "The label attribute specifies the caption of the form element.",
|
|
2344
2364
|
"values": []
|
|
2365
|
+
},
|
|
2366
|
+
{
|
|
2367
|
+
"name": "message-icon",
|
|
2368
|
+
"description": "Set/overwrite icon for helper message for form components",
|
|
2369
|
+
"values": [{ "name": "IconTypes" }]
|
|
2345
2370
|
}
|
|
2346
2371
|
],
|
|
2347
2372
|
"references": []
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@db-ux/wc-core-components",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.1",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -2217,7 +2217,7 @@
|
|
|
2217
2217
|
"value": { "type": "string" }
|
|
2218
2218
|
},
|
|
2219
2219
|
{
|
|
2220
|
-
"name": "
|
|
2220
|
+
"name": "list-label",
|
|
2221
2221
|
"description": "Overwrite the default aria-label (props.label) for the custom-select-list",
|
|
2222
2222
|
"value": { "type": "string" }
|
|
2223
2223
|
},
|
|
@@ -2474,7 +2474,7 @@
|
|
|
2474
2474
|
"type": "string"
|
|
2475
2475
|
},
|
|
2476
2476
|
{
|
|
2477
|
-
"name": "
|
|
2477
|
+
"name": "listLabel",
|
|
2478
2478
|
"description": "Overwrite the default aria-label (props.label) for the custom-select-list",
|
|
2479
2479
|
"type": "string"
|
|
2480
2480
|
},
|
|
@@ -4380,6 +4380,41 @@
|
|
|
4380
4380
|
"description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
4381
4381
|
"value": { "type": "string" }
|
|
4382
4382
|
},
|
|
4383
|
+
{
|
|
4384
|
+
"name": "validation",
|
|
4385
|
+
"description": "Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.",
|
|
4386
|
+
"value": { "type": "\"invalid\" | \"valid\" | \"no-validation\"" }
|
|
4387
|
+
},
|
|
4388
|
+
{
|
|
4389
|
+
"name": "required",
|
|
4390
|
+
"description": "When the required attribute specified, the user will be required to fill the form element before submitting the form.\nThe form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).",
|
|
4391
|
+
"value": { "type": "boolean | string" }
|
|
4392
|
+
},
|
|
4393
|
+
{
|
|
4394
|
+
"name": "message",
|
|
4395
|
+
"description": "Optional helper message for form components",
|
|
4396
|
+
"value": { "type": "string" }
|
|
4397
|
+
},
|
|
4398
|
+
{
|
|
4399
|
+
"name": "show-message",
|
|
4400
|
+
"description": "Enables or disables the visibility of the message.",
|
|
4401
|
+
"value": { "type": "boolean | string" }
|
|
4402
|
+
},
|
|
4403
|
+
{
|
|
4404
|
+
"name": "valid-message",
|
|
4405
|
+
"description": "Helper message for valid form components",
|
|
4406
|
+
"value": { "type": "string" }
|
|
4407
|
+
},
|
|
4408
|
+
{
|
|
4409
|
+
"name": "invalid-message",
|
|
4410
|
+
"description": "Helper message for invalid form components",
|
|
4411
|
+
"value": { "type": "string" }
|
|
4412
|
+
},
|
|
4413
|
+
{
|
|
4414
|
+
"name": "checked",
|
|
4415
|
+
"description": "Define the radio or checkbox elements checked state",
|
|
4416
|
+
"value": { "type": "boolean | string" }
|
|
4417
|
+
},
|
|
4383
4418
|
{
|
|
4384
4419
|
"name": "visual-aid",
|
|
4385
4420
|
"description": "Add additional icons to indicate active/inactive state.",
|
|
@@ -4396,9 +4431,9 @@
|
|
|
4396
4431
|
"value": { "type": "boolean | string" }
|
|
4397
4432
|
},
|
|
4398
4433
|
{
|
|
4399
|
-
"name": "
|
|
4400
|
-
"description": "
|
|
4401
|
-
"value": { "type": "\"
|
|
4434
|
+
"name": "variant",
|
|
4435
|
+
"description": "Change the variant of the label to float or hidden",
|
|
4436
|
+
"value": { "type": "\"above\" | \"floating\"" }
|
|
4402
4437
|
},
|
|
4403
4438
|
{
|
|
4404
4439
|
"name": "show-required-asterisk",
|
|
@@ -4410,11 +4445,6 @@
|
|
|
4410
4445
|
"description": "React specific for adding className to the component.",
|
|
4411
4446
|
"value": { "type": "string" }
|
|
4412
4447
|
},
|
|
4413
|
-
{
|
|
4414
|
-
"name": "checked",
|
|
4415
|
-
"description": "Define the radio or checkbox elements checked state",
|
|
4416
|
-
"value": { "type": "boolean | string" }
|
|
4417
|
-
},
|
|
4418
4448
|
{
|
|
4419
4449
|
"name": "value",
|
|
4420
4450
|
"description": "The value property is to receive results from the native form element.",
|
|
@@ -4425,21 +4455,11 @@
|
|
|
4425
4455
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
4426
4456
|
"value": { "type": "boolean | string" }
|
|
4427
4457
|
},
|
|
4428
|
-
{
|
|
4429
|
-
"name": "validation",
|
|
4430
|
-
"description": "Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.",
|
|
4431
|
-
"value": { "type": "\"invalid\" | \"valid\" | \"no-validation\"" }
|
|
4432
|
-
},
|
|
4433
4458
|
{
|
|
4434
4459
|
"name": "name",
|
|
4435
4460
|
"description": "The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.",
|
|
4436
4461
|
"value": { "type": "string" }
|
|
4437
4462
|
},
|
|
4438
|
-
{
|
|
4439
|
-
"name": "required",
|
|
4440
|
-
"description": "When the required attribute specified, the user will be required to fill the form element before submitting the form.\nThe form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).",
|
|
4441
|
-
"value": { "type": "boolean | string" }
|
|
4442
|
-
},
|
|
4443
4463
|
{
|
|
4444
4464
|
"name": "icon-leading",
|
|
4445
4465
|
"description": "Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.",
|
|
@@ -4459,6 +4479,11 @@
|
|
|
4459
4479
|
"name": "label",
|
|
4460
4480
|
"description": "The label attribute specifies the caption of the form element.",
|
|
4461
4481
|
"value": { "type": "string" }
|
|
4482
|
+
},
|
|
4483
|
+
{
|
|
4484
|
+
"name": "message-icon",
|
|
4485
|
+
"description": "Set/overwrite icon for helper message for form components",
|
|
4486
|
+
"value": { "type": "IconTypes" }
|
|
4462
4487
|
}
|
|
4463
4488
|
],
|
|
4464
4489
|
"slots": [{ "name": "children", "description": "default slot" }],
|
|
@@ -4483,6 +4508,41 @@
|
|
|
4483
4508
|
"description": "[ID](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id) of the component, generated automatically for some components as a fallback if unset.",
|
|
4484
4509
|
"type": "string"
|
|
4485
4510
|
},
|
|
4511
|
+
{
|
|
4512
|
+
"name": "validation",
|
|
4513
|
+
"description": "Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.",
|
|
4514
|
+
"type": "\"invalid\" | \"valid\" | \"no-validation\""
|
|
4515
|
+
},
|
|
4516
|
+
{
|
|
4517
|
+
"name": "required",
|
|
4518
|
+
"description": "When the required attribute specified, the user will be required to fill the form element before submitting the form.\nThe form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).",
|
|
4519
|
+
"type": "boolean | string"
|
|
4520
|
+
},
|
|
4521
|
+
{
|
|
4522
|
+
"name": "message",
|
|
4523
|
+
"description": "Optional helper message for form components",
|
|
4524
|
+
"type": "string"
|
|
4525
|
+
},
|
|
4526
|
+
{
|
|
4527
|
+
"name": "showMessage",
|
|
4528
|
+
"description": "Enables or disables the visibility of the message.",
|
|
4529
|
+
"type": "boolean | string"
|
|
4530
|
+
},
|
|
4531
|
+
{
|
|
4532
|
+
"name": "validMessage",
|
|
4533
|
+
"description": "Helper message for valid form components",
|
|
4534
|
+
"type": "string"
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
"name": "invalidMessage",
|
|
4538
|
+
"description": "Helper message for invalid form components",
|
|
4539
|
+
"type": "string"
|
|
4540
|
+
},
|
|
4541
|
+
{
|
|
4542
|
+
"name": "checked",
|
|
4543
|
+
"description": "Define the radio or checkbox elements checked state",
|
|
4544
|
+
"type": "boolean | string"
|
|
4545
|
+
},
|
|
4486
4546
|
{
|
|
4487
4547
|
"name": "visualAid",
|
|
4488
4548
|
"description": "Add additional icons to indicate active/inactive state.",
|
|
@@ -4499,9 +4559,9 @@
|
|
|
4499
4559
|
"type": "boolean | string"
|
|
4500
4560
|
},
|
|
4501
4561
|
{
|
|
4502
|
-
"name": "
|
|
4503
|
-
"description": "
|
|
4504
|
-
"type": "\"
|
|
4562
|
+
"name": "variant",
|
|
4563
|
+
"description": "Change the variant of the label to float or hidden",
|
|
4564
|
+
"type": "\"above\" | \"floating\""
|
|
4505
4565
|
},
|
|
4506
4566
|
{
|
|
4507
4567
|
"name": "showRequiredAsterisk",
|
|
@@ -4513,11 +4573,6 @@
|
|
|
4513
4573
|
"description": "React specific for adding className to the component.",
|
|
4514
4574
|
"type": "string"
|
|
4515
4575
|
},
|
|
4516
|
-
{
|
|
4517
|
-
"name": "checked",
|
|
4518
|
-
"description": "Define the radio or checkbox elements checked state",
|
|
4519
|
-
"type": "boolean | string"
|
|
4520
|
-
},
|
|
4521
4576
|
{
|
|
4522
4577
|
"name": "value",
|
|
4523
4578
|
"description": "The value property is to receive results from the native form element.",
|
|
@@ -4528,21 +4583,11 @@
|
|
|
4528
4583
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
4529
4584
|
"type": "boolean | string"
|
|
4530
4585
|
},
|
|
4531
|
-
{
|
|
4532
|
-
"name": "validation",
|
|
4533
|
-
"description": "Marks an input element as invalid (red) / valid (green) / no-validation (grey). Overwrites the :user-valid selector.",
|
|
4534
|
-
"type": "\"invalid\" | \"valid\" | \"no-validation\""
|
|
4535
|
-
},
|
|
4536
4586
|
{
|
|
4537
4587
|
"name": "name",
|
|
4538
4588
|
"description": "The name attribute gives the name of the form control, as used in form submission and in the form element's elements object.",
|
|
4539
4589
|
"type": "string"
|
|
4540
4590
|
},
|
|
4541
|
-
{
|
|
4542
|
-
"name": "required",
|
|
4543
|
-
"description": "When the required attribute specified, the user will be required to fill the form element before submitting the form.\nThe form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).",
|
|
4544
|
-
"type": "boolean | string"
|
|
4545
|
-
},
|
|
4546
4591
|
{
|
|
4547
4592
|
"name": "iconLeading",
|
|
4548
4593
|
"description": "Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.",
|
|
@@ -4563,7 +4608,18 @@
|
|
|
4563
4608
|
"description": "The label attribute specifies the caption of the form element.",
|
|
4564
4609
|
"type": "string"
|
|
4565
4610
|
},
|
|
4566
|
-
{
|
|
4611
|
+
{
|
|
4612
|
+
"name": "messageIcon",
|
|
4613
|
+
"description": "Set/overwrite icon for helper message for form components",
|
|
4614
|
+
"type": "IconTypes"
|
|
4615
|
+
},
|
|
4616
|
+
{ "name": "_id" },
|
|
4617
|
+
{ "name": "_messageId" },
|
|
4618
|
+
{ "name": "_validMessageId" },
|
|
4619
|
+
{ "name": "_invalidMessageId" },
|
|
4620
|
+
{ "name": "_invalidMessage" },
|
|
4621
|
+
{ "name": "_descByIds" },
|
|
4622
|
+
{ "name": "_voiceOverFallback", "type": "string" }
|
|
4567
4623
|
],
|
|
4568
4624
|
"events": [
|
|
4569
4625
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/wc-core-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Stencil components for @db-ux/core-components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@custom-elements-manifest/analyzer": "0.10.10",
|
|
37
|
-
"@stencil/core": "4.38.
|
|
37
|
+
"@stencil/core": "4.38.1",
|
|
38
38
|
"cem-plugin-expanded-types": "1.4.0",
|
|
39
39
|
"custom-element-jet-brains-integration": "1.7.0",
|
|
40
40
|
"custom-element-vs-code-integration": "1.5.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"web-types": "./dist/web-types.json",
|
|
48
48
|
"customElements": "dist/custom-elements.json",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@db-ux/core-components": "
|
|
51
|
-
"@db-ux/core-foundations": "
|
|
50
|
+
"@db-ux/core-components": "4.0.1",
|
|
51
|
+
"@db-ux/core-foundations": "4.0.1"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-DjV59BYq.js","sources":["src/utils/index.ts"],"sourcesContent":["import { ClickEvent, GeneralKeyboardEvent } from '../shared/model';\nexport const uuid = () => {\n if (typeof window !== 'undefined') {\n if (window.crypto?.randomUUID) {\n return window.crypto.randomUUID();\n } else if (window.crypto?.getRandomValues) {\n return window.crypto.getRandomValues(new Uint32Array(3)).join('-');\n }\n }\n return Math.random().toString().substring(2);\n};\nexport const addAttributeToChildren = (element: Element, attribute: {\n key: string;\n value: string;\n}) => {\n const children = element.children;\n Object.values(children).forEach((child: Element) => {\n child.setAttribute(attribute.key, attribute.value);\n if (child.children.length > 0) {\n addAttributeToChildren(child, attribute);\n }\n });\n};\nexport type ClassNameArg = string | {\n [key: string]: boolean | undefined;\n} | undefined;\nexport const cls = (...args: ClassNameArg[]) => {\n let result = '';\n for (const arg of args) {\n if (arg) {\n if (typeof arg === 'string') {\n result += `${arg} `;\n } else {\n for (const key in arg) {\n if (arg[key]) {\n result += `${key} `;\n }\n }\n }\n }\n }\n return result.trim();\n};\nexport const isArrayOfStrings = (value: unknown): value is string[] => Array.isArray(value) && value.every(item => typeof item === 'string');\nconst appleOs = ['Mac', 'iPhone', 'iPad', 'iPod'];\nexport const hasVoiceOver = (): boolean => typeof window !== 'undefined' && appleOs.some(os => window.navigator.userAgent.includes(os));\nexport const delay = (fn: () => void, ms: number) => new Promise(() => setTimeout(fn, ms));\n\n/**\n * Some frameworks like stencil would not add \"true\" as value for a prop\n * if it is used in a framework like angular e.g.: [disabled]=\"myDisabledProp\"\n * @param originBool Some boolean to convert to string\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getBooleanAsString = (originBool?: boolean | string): any => {\n if (originBool === undefined || originBool === null) return;\n if (typeof originBool === 'string') {\n return String(Boolean(originBool));\n }\n return String(originBool);\n};\nexport const getBoolean = (originBool?: boolean | string, propertyName?: string): boolean | undefined => {\n if (originBool === undefined || originBool === null) return;\n if (typeof originBool === 'string' && propertyName) {\n return Boolean(propertyName === originBool || originBool);\n }\n return Boolean(originBool);\n};\nexport const getNumber = (originNumber?: number | string, alternativeNumber?: number | string): number | undefined => {\n if ((originNumber === undefined || originNumber === null) && (alternativeNumber === undefined || alternativeNumber === null)) {\n return;\n }\n return Number(originNumber ?? alternativeNumber);\n};\n\n/**\n * Retrieves the input value based on the provided value and input type.\n *\n * If the input type is \"number\" or \"range\", the value is processed as a number.\n * Otherwise, the value is returned as-is.\n *\n * @param value - The input value, which can be a number, string, or undefined.\n * @param inputType - The type of the input, such as \"number\", \"range\", or other string types.\n * @returns The processed input value as a string, number, or undefined.\n */\nexport const getInputValue = (value?: number | string, inputType?: string): string | number | undefined => {\n return inputType && ['number', 'range'].includes(inputType) ? getNumber(value) : value;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const getHideProp = (show?: boolean | string): any => {\n if (show === undefined || show === null) {\n return undefined;\n }\n return getBooleanAsString(!Boolean(show));\n};\nexport const stringPropVisible = (givenString?: string, showString?: boolean | string) => {\n if (showString === undefined) {\n return !!givenString;\n } else {\n return Boolean(showString) && Boolean(givenString);\n }\n};\nexport const getSearchInput = (element: HTMLElement): HTMLInputElement | null => element.querySelector<HTMLInputElement>(`input[type=\"search\"]`);\nexport const getOptionKey = (option: {\n id?: string;\n value?: string | number | string[] | undefined;\n}, prefix: string) => {\n const key = option.id ?? option.value ?? uuid();\n return `${prefix}${key}`;\n};\nexport const isKeyboardEvent = <T,>(event?: ClickEvent<T> | GeneralKeyboardEvent<T>): event is GeneralKeyboardEvent<T> => (event as GeneralKeyboardEvent<T>).key !== undefined"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-Bxi-mtJ7.js";import{g as i,c as a}from"./p-YECpAE3G.js";const o=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const o=s.item(a);if(o&&(o.name.startsWith("data-")||o.name.startsWith("aria-"))){t.setAttribute(o.name,o.value);i.removeAttribute(o.name)}if(o&&o.name==="class"){const s=o.value.includes("hydrated");const a=o.value.replace("hydrated","").trim();const n=t.getAttribute("class");t.setAttribute(o.name,`${n?`${n} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(o.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-infotext")}render(){var t;return s("span",{key:"c126d11d979284931006fa76b2a6a49e396f394c",class:a("db-infotext",this.className),ref:t=>{this._ref=t},id:this.id,"data-icon":this.icon,"data-semantic":this.semantic,"data-size":this.size,"data-show-icon-leading":i((t=this.showIcon)!==null&&t!==void 0?t:true)},this.text?this.text:s("slot",null))}};export{o as db_infotext};
|
|
2
|
-
//# sourceMappingURL=p-07a7eb33.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as i,c as s,h as t,F as h}from"./p-Bxi-mtJ7.js";import{l as e,g as a,h as l,f as d,i as n,k as o,a as c}from"./p-DC9V_oNU.js";import{h as u,d as r,s as f,u as v,b,g as p,j as m,c as y}from"./p-YECpAE3G.js";const k=class{constructor(t){i(this,t);this.click=s(this,"click");this.input=s(this,"input");this.change=s(this,"change");this.blur=s(this,"blur");this.focus=s(this,"focus");this._id=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._invalidMessage=undefined;this._placeholderId="";this._descByIds=undefined;this._value="";this.initialized=false;this._voiceOverFallback=""}hasValidState(){var i;return!!((i=this.validMessage)!==null&&i!==void 0?i:this.validation==="valid")}handleValidation(){var i,s,t,h;if(!((i=this._ref)===null||i===void 0?void 0:i.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;this._invalidMessage=this.invalidMessage||((s=this._ref)===null||s===void 0?void 0:s.validationMessage)||e;if(u()){this._voiceOverFallback=this._invalidMessage;r((()=>this._voiceOverFallback=""),1e3)}}else if(this.hasValidState()&&((t=this._ref)===null||t===void 0?void 0:t.validity.valid)&&this.required){this._descByIds=this._validMessageId;if(u()){this._voiceOverFallback=(h=this.validMessage)!==null&&h!==void 0?h:o;r((()=>this._voiceOverFallback=""),1e3)}}else if(f(this.message,this.showMessage)){this._descByIds=this._messageId}else if(this.placeholder){this._descByIds=this._placeholderId}else{this._descByIds=undefined}}handleClick(i){if(this.click){this.click.emit(i)}}handleInput(i){if(this.input){this.input.emit(i)}this.handleValidation()}handleChange(i){if(this.change){this.change.emit(i)}this.handleValidation()}handleBlur(i){if(this.blur){this.blur.emit(i)}}handleFocus(i){if(this.focus){this.focus.emit(i)}}getOptionLabel(i){var s,t;return(s=i.label)!==null&&s!==void 0?s:(t=i.value)===null||t===void 0?void 0:t.toString()}enableAttributePassing(i,s){const t=i===null||i===void 0?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let h=0;h<s.length;h++){const e=s.item(h);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){i.setAttribute(e.name,e.value);t.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const h=e.value.replace("hydrated","").trim();const a=i.getAttribute("class");i.setAttribute(e.name,`${a?`${a} `:""}${h}`);if(s){t.setAttribute("class","hydrated")}else{t.removeAttribute(e.name)}}}}}watch0Fn(){var i;this._invalidMessage=this.invalidMessage||((i=this._ref)===null||i===void 0?void 0:i.validationMessage)||e}watch0(){this.watch0Fn()}watch1Fn(){if(this._id&&this.initialized){const i=this._id+d;const s=this._id+n;this._messageId=i;this._validMessageId=this._id+a;this._invalidMessageId=this._id+l;this._placeholderId=s;if(f(this.message,this.showMessage)){this._descByIds=i}else if(this.placeholder){this._descByIds=s}else{this._descByIds=undefined}this.handleValidation();this.initialized=false}}watch1(){this.watch1Fn()}watch2Fn(){this._value=this.value}watch2(){this.watch2Fn()}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-select");this.initialized=true;const s=(i=this.id)!==null&&i!==void 0?i:`select-${v()}`;this._id=s;this._messageId=s+d;this._validMessageId=s+a;this._invalidMessageId=s+l;this._placeholderId=s+n;this._invalidMessage=this.invalidMessage||e;this.watch0Fn();this.watch1Fn();this.watch2Fn()}render(){var i,s,e,a,l;return t("div",{key:"3c3bb0ec9b5e040323211dc012ae9ef2f18edd28",class:y("db-select",this.className),"data-variant":this.variant,"data-hide-label":m(this.showLabel),"data-hide-asterisk":m(this.showRequiredAsterisk),"data-icon":this.icon,"data-show-icon":p(this.showIcon)},t("label",{key:"42de14ce2de05affc0178480c3b07383c1582d32",htmlFor:this._id},(i=this.label)!==null&&i!==void 0?i:c),t("select",{key:"6de35614bc8874be81ac0e92897f3ab97f42a93c","aria-invalid":this.validation==="invalid","data-custom-validity":this.validation,ref:i=>{this._ref=i},required:b(this.required,"required"),disabled:b(this.disabled,"disabled"),id:this._id,name:this.name,size:this.size,value:(s=this.value)!==null&&s!==void 0?s:this._value,autocomplete:this.autocomplete,multiple:this.multiple,onInput:i=>this.handleInput(i),onClick:i=>this.handleClick(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),"aria-describedby":(e=this.ariaDescribedBy)!==null&&e!==void 0?e:this._descByIds},this.variant==="floating"||this.placeholder?t("option",{class:"placeholder",value:""}):null,((a=this.options)===null||a===void 0?void 0:a.length)?(l=this.options)===null||l===void 0?void 0:l.map((i=>{var s;return t(h,null,i.options?t("optgroup",{label:this.getOptionLabel(i),key:undefined},(s=i.options)===null||s===void 0?void 0:s.map((i=>t("option",{value:i.value,selected:i.selected,disabled:i.disabled,key:undefined},this.getOptionLabel(i))))):t("option",{value:i.value,disabled:i.disabled,selected:i.selected,key:undefined},this.getOptionLabel(i)))})):t("slot",null)),this.placeholder?t("span",{class:"db-select-placeholder",id:this._placeholderId},this.placeholder):null,f(this.message,this.showMessage)?t("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?t("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||o):null,t("db-infotext",{key:"c33aafbbf890e84ba036622a9579e1be2a8be812",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),t("span",{key:"86b74ac1a6764783339bda2d0413f71f1d1cff0a","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{_ref:["watch0"],invalidMessage:["watch0"],_id:["watch1"],initialized:["watch1"],value:["watch2"]}}};export{k as db_select};
|
|
2
|
-
//# sourceMappingURL=p-2c457e48.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-Bxi-mtJ7.js";import{c as i}from"./p-YECpAE3G.js";const a=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const d=s.item(a);if(d&&(d.name.startsWith("data-")||d.name.startsWith("aria-"))){t.setAttribute(d.name,d.value);i.removeAttribute(d.name)}if(d&&d.name==="class"){const s=d.value.includes("hydrated");const a=d.value.replace("hydrated","").trim();const r=t.getAttribute("class");t.setAttribute(d.name,`${r?`${r} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(d.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-divider")}render(){return s("div",{key:"0e9bf54bcd77ec1c324eb6300162bbf8c67b8c16",class:i("db-divider",this.className),ref:t=>{this._ref=t},id:this.id,"data-margin":this.margin,"data-variant":this.variant,"data-emphasis":this.emphasis,"data-width":this.width})}};export{a as db_divider};
|
|
2
|
-
//# sourceMappingURL=p-69a7e5f9.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,F as a}from"./p-Bxi-mtJ7.js";import{n}from"./p-DC9V_oNU.js";import{u as h,d as e,b as o,g as d,c as l}from"./p-YECpAE3G.js";import{N as r}from"./p-sP2NlPcu.js";import"./p-G-TursYV.js";const c=class{constructor(s){i(this,s);this.click=t(this,"click");this.initialized=false;this.hasAreaPopup=false;this.hasSubNavigation=true;this.isSubNavigationExpanded=false;this.autoClose=false;this.subNavigationId="sub-navigation-"+h();this.navigationItemSafeTriangle=undefined}handleNavigationItemClick(i){var t;if(((t=i===null||i===void 0?void 0:i.target)===null||t===void 0?void 0:t.nodeName)==="A"){this.autoClose=true;void e((()=>{this.autoClose=false}),1e3)}}handleClick(i){if(this.click){i.stopPropagation();this.click.emit(i)}if(this.hasAreaPopup){this.isSubNavigationExpanded=true}}handleBackClick(i){i.stopPropagation();this.isSubNavigationExpanded=false}enableAttributePassing(i,t){const s=i===null||i===void 0?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let a=0;a<t.length;a++){const n=t.item(a);if(n&&(n.name.startsWith("data-")||n.name.startsWith("aria-"))){i.setAttribute(n.name,n.value);s.removeAttribute(n.name)}if(n&&n.name==="class"){const t=n.value.includes("hydrated");const a=n.value.replace("hydrated","").trim();const h=i.getAttribute("class");i.setAttribute(n.name,`${h?`${h} `:""}${a}`);if(t){s.setAttribute("class","hydrated")}else{s.removeAttribute(n.name)}}}}}watch0Fn(){if(this.subNavigationExpanded!==undefined){this.isSubNavigationExpanded=!!o(this.subNavigationExpanded,"subNavigationExpanded")}}watch0(){this.watch0Fn()}watch1Fn(){var i;if(this.initialized&&this._ref){const t=this._ref.querySelector("menu");if(t){if(((i=t.children)===null||i===void 0?void 0:i.length)>0){this.hasAreaPopup=true;if(!this.navigationItemSafeTriangle){this.navigationItemSafeTriangle=new r(this._ref,t)}}else{this.hasSubNavigation=false}}}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-navigation-item");this.initialized=true;this.watch0Fn();this.watch1Fn()}render(){var i;return s("li",{key:"d00b7b4852a729301d545abaf1a65cd3e0cdcee7",class:l("db-navigation-item",this.className),ref:i=>{this._ref=i},id:this.id,onMouseOver:()=>{var i;return(i=this.navigationItemSafeTriangle)===null||i===void 0?void 0:i.enableFollow()},onMouseLeave:()=>{var i;return(i=this.navigationItemSafeTriangle)===null||i===void 0?void 0:i.disableFollow()},onMouseMove:i=>{var t;return(t=this.navigationItemSafeTriangle)===null||t===void 0?void 0:t.followByMouseEvent(i)},"data-width":this.width,"data-icon":this.icon,"data-show-icon":d(this.showIcon),"data-active":this.active,"data-wrap":d(this.wrap),"aria-disabled":d(this.disabled)},!this.hasSubNavigation?this.text?this.text:s("slot",null):null,this.hasSubNavigation?s(a,null,s("button",{class:"db-navigation-item-expand-button","aria-haspopup":this.hasAreaPopup,"aria-expanded":this.isSubNavigationExpanded,disabled:o(this.disabled,"disabled"),onClick:i=>this.handleClick(i)},this.text?this.text:s("slot",null)),s("menu",{class:"db-sub-navigation","data-force-close":this.autoClose,id:this.subNavigationId,onClick:i=>this.handleNavigationItemClick(i)},this.hasAreaPopup?s("div",{class:"db-mobile-navigation-back"},s("db-button",{icon:"arrow_left",variant:"ghost",id:this.backButtonId,onClick:i=>this.handleBackClick(i)},(i=this.backButtonText)!==null&&i!==void 0?i:n)):null,s("slot",{name:"subNavigation"}))):null)}static get watchers(){return{subNavigationExpanded:["watch0"],initialized:["watch1"],_ref:["watch1"]}}};export{c as db_navigation_item};
|
|
2
|
-
//# sourceMappingURL=p-72bd1665.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-Bxi-mtJ7.js";import{l as h,g as a,h as e,f as d,k as l,b as n,r,a as c}from"./p-DC9V_oNU.js";import{h as o,d as u,s as f,u as v,e as b,b as m,j as p,c as y}from"./p-YECpAE3G.js";const w=class{constructor(s){i(this,s);this.input=t(this,"input");this.change=t(this,"change");this.blur=t(this,"blur");this.focus=t(this,"focus");this._id=undefined;this._messageId=undefined;this._validMessageId=undefined;this._invalidMessageId=undefined;this._invalidMessage=undefined;this._descByIds=undefined;this._value="";this._voiceOverFallback=""}hasValidState(){var i;return!!((i=this.validMessage)!==null&&i!==void 0?i:this.validation==="valid")}handleValidation(){var i,t,s,a;if(!((i=this._ref)===null||i===void 0?void 0:i.validity.valid)||this.validation==="invalid"){this._descByIds=this._invalidMessageId;this._invalidMessage=this.invalidMessage||((t=this._ref)===null||t===void 0?void 0:t.validationMessage)||h;if(o()){this._voiceOverFallback=this._invalidMessage;u((()=>this._voiceOverFallback=""),1e3)}}else if(this.hasValidState()&&((s=this._ref)===null||s===void 0?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength)){this._descByIds=this._validMessageId;if(o()){this._voiceOverFallback=(a=this.validMessage)!==null&&a!==void 0?a:l;u((()=>this._voiceOverFallback=""),1e3)}}else if(f(this.message,this.showMessage)){this._descByIds=this._messageId}else{this._descByIds=undefined}}handleInput(i){if(this.input){this.input.emit(i)}this.handleValidation()}handleChange(i){if(this.change){this.change.emit(i)}this.handleValidation()}handleBlur(i){if(this.blur){this.blur.emit(i)}}handleFocus(i){if(this.focus){this.focus.emit(i)}}enableAttributePassing(i,t){const s=i===null||i===void 0?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const a=t.item(h);if(a&&(a.name.startsWith("data-")||a.name.startsWith("aria-"))){i.setAttribute(a.name,a.value);s.removeAttribute(a.name)}if(a&&a.name==="class"){const t=a.value.includes("hydrated");const h=a.value.replace("hydrated","").trim();const e=i.getAttribute("class");i.setAttribute(a.name,`${e?`${e} `:""}${h}`);if(t){s.setAttribute("class","hydrated")}else{s.removeAttribute(a.name)}}}}}watch0Fn(){var i;this._invalidMessage=this.invalidMessage||((i=this._ref)===null||i===void 0?void 0:i.validationMessage)||h}watch0(){this.watch0Fn()}watch1Fn(){if(this._id){const i=this._id+d;this._messageId=i;this._validMessageId=this._id+a;this._invalidMessageId=this._id+e;if(f(this.message,this.showMessage)){this._descByIds=i}this.handleValidation()}}watch1(){this.watch1Fn()}watch2Fn(){this._value=this.value}watch2(){this.watch2Fn()}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-textarea");const t=(i=this.id)!==null&&i!==void 0?i:`textarea-${v()}`;this._id=t;this._messageId=t+d;this._validMessageId=t+a;this._invalidMessageId=t+e;this._invalidMessage=this.invalidMessage||h;this.watch0Fn();this.watch1Fn();this.watch2Fn()}render(){var i,t,h,a,e;return s("div",{key:"987c1133ee1ad412b77c27c5fc77735548bb4470",class:y("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":p(this.showRequiredAsterisk),"data-hide-label":p(this.showLabel)},s("label",{key:"e487aa66097f32caaf8cb5dd4c63ca1a9d67f37d",htmlFor:this._id},(i=this.label)!==null&&i!==void 0?i:c),s("textarea",{key:"69434958df4127fe56b66df8bf57ee8b2d3e78ce","aria-invalid":this.validation==="invalid","data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":p((t=this.showResizer)!==null&&t!==void 0?t:true),disabled:m(this.disabled,"disabled"),required:m(this.required,"required"),readOnly:m(this.readOnly,"readOnly")||m(this.readonly,"readonly"),form:this.form,maxLength:b(this.maxLength,this.maxlength),minLength:b(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:(h=this.value)!==null&&h!==void 0?h:this._value,"aria-describedby":(a=this.ariaDescribedBy)!==null&&a!==void 0?a:this._descByIds,placeholder:(e=this.placeholder)!==null&&e!==void 0?e:n,rows:b(this.rows,r),cols:b(this.cols)}),f(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||l):null,s("db-infotext",{key:"e1ae4a692e1e3a115354185b0b712bfcb5c2238e",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"1190dd7dbb597fb65cd0d83cc4770c5d5f11af27","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{_ref:["watch0"],invalidMessage:["watch0"],_id:["watch1"],value:["watch2"]}}};export{w as db_textarea};
|
|
2
|
-
//# sourceMappingURL=p-90f21d44.entry.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-Bxi-mtJ7.js";import{g as a,b as e,c,u as d}from"./p-YECpAE3G.js";import{D as h}from"./p-DC9V_oNU.js";const n=class{constructor(i){t(this,i);this.change=s(this,"change");this._selected=false;this._name=undefined;this.initialized=false}handleNameAttribute(){if(this._ref){const t=this._ref.setAttribute;this._ref.setAttribute=(s,i)=>{t.call(this._ref,s,i);if(s==="name"){this._name=i}}}}handleChange(t){var s;t.stopPropagation();if(this.change){this.change.emit(t)}const i=(s=t.target)===null||s===void 0?void 0:s["checked"];this._selected=a(i)}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const c=t.getAttribute("class");t.setAttribute(e.name,`${c?`${c} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}watch0Fn(){if(this.initialized&&this._ref){if(this.active){this._ref.click()}this.initialized=false}}watch0(){this.watch0Fn()}watch1Fn(){if(this.name){this._name=this.name}}watch1(){this.watch1Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tab-item");this.initialized=true;this.watch0Fn();this.watch1Fn()}render(){var t,s;return i("li",{key:"783a7b85f5d5c48bc86890a70e0f7ba497c78357",class:c("db-tab-item",this.className),role:"none"},i("label",{key:"1691dfe198cbbfc943ee15e8a98a5bfa8d2c38c9",htmlFor:this.id,"data-icon":(t=this.iconLeading)!==null&&t!==void 0?t:this.icon,"data-icon-trailing":this.iconTrailing,"data-show-icon":a((s=this.showIconLeading)!==null&&s!==void 0?s:this.showIcon),"data-show-icon-trailing":a(this.showIconTrailing),"data-no-text":a(this.noText)},i("input",{key:"c84dbf7eecd6fca414d44f99789f31e7343be32a",type:"radio",role:"tab",disabled:e(this.disabled,"disabled"),"aria-selected":this._selected,checked:e(this.checked,"checked"),ref:t=>{this._ref=t},name:this._name,id:this.id,onInput:t=>this.handleChange(t)}),this.label?this.label:null,i("slot",{key:"c18d88865dc6cb537ce846d7eb290cfc6408be88"})))}static get watchers(){return{_ref:["watch0"],initialized:["watch0"],name:["watch1"]}}};const o=class{constructor(s){t(this,s);this._id=h}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const c=t.getAttribute("class");t.setAttribute(e.name,`${c?`${c} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tab-list");this._id=this.id||"tab-list-"+d()}render(){return i("div",{key:"d65855c3e219394e145bb6472be44efd8ad2f5c6",class:c("db-tab-list",this.className),ref:t=>{this._ref=t},id:this._id},i("ul",{key:"df0a48deba8650387cf824fd339094ab5a8afd32",role:"tablist"},i("slot",{key:"56597cc2c3b344fdf4c9be7784a6b57b6f3b1f7e"})))}};const l=class{constructor(s){t(this,s)}enableAttributePassing(t,s){const i=t===null||t===void 0?void 0:t.closest(s);if(t&&i){const s=i.attributes;for(let a=0;a<s.length;a++){const e=s.item(a);if(e&&(e.name.startsWith("data-")||e.name.startsWith("aria-"))){t.setAttribute(e.name,e.value);i.removeAttribute(e.name)}if(e&&e.name==="class"){const s=e.value.includes("hydrated");const a=e.value.replace("hydrated","").trim();const c=t.getAttribute("class");t.setAttribute(e.name,`${c?`${c} `:""}${a}`);if(s){i.setAttribute("class","hydrated")}else{i.removeAttribute(e.name)}}}}}componentDidLoad(){this.enableAttributePassing(this._ref,"db-tab-panel")}render(){return i("section",{key:"e2118080ba0bc2b7cecd50029131ca3faeb77a36",class:c("db-tab-panel",this.className),role:"tabpanel",ref:t=>{this._ref=t},id:this.id},this.content?this.content:null,i("slot",{key:"2b4cb8605b0dcd313f5dfb2aeac063074b0249ae"}))}};export{n as db_tab_item,o as db_tab_list,l as db_tab_panel};
|
|
2
|
-
//# sourceMappingURL=p-950bf6ab.entry.js.map
|