@db-ux/wc-core-components 2.4.0 → 2.4.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/dist/cjs/db-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/db-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/db-checkbox.entry.cjs.js.map +1 -1
- 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 +3 -3
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js.map +1 -1
- package/dist/cjs/db-navigation-item.cjs.entry.js +6 -5
- package/dist/cjs/db-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/db-navigation-item.entry.cjs.js.map +1 -1
- package/dist/cjs/db-radio.cjs.entry.js +2 -2
- package/dist/cjs/db-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/db-radio.entry.cjs.js.map +1 -1
- package/dist/cjs/db-select.cjs.entry.js +4 -4
- package/dist/cjs/db-select.cjs.entry.js.map +1 -1
- package/dist/cjs/db-select.entry.cjs.js.map +1 -1
- package/dist/cjs/db-switch.cjs.entry.js +2 -18
- package/dist/cjs/db-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/db-switch.entry.cjs.js.map +1 -1
- package/dist/cjs/db-textarea.cjs.entry.js +3 -3
- package/dist/cjs/db-textarea.cjs.entry.js.map +1 -1
- package/dist/cjs/db-textarea.entry.cjs.js.map +1 -1
- package/dist/cjs/db-ux.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +23 -23
- package/dist/collection/components/checkbox/checkbox.js.map +1 -1
- package/dist/collection/components/input/input.js +28 -28
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/navigation-item/navigation-item.js +7 -6
- package/dist/collection/components/navigation-item/navigation-item.js.map +1 -1
- package/dist/collection/components/radio/radio.js +27 -27
- package/dist/collection/components/radio/radio.js.map +1 -1
- package/dist/collection/components/select/select.js +24 -24
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/switch/model.js.map +1 -1
- package/dist/collection/components/switch/switch.js +50 -70
- package/dist/collection/components/switch/switch.js.map +1 -1
- package/dist/collection/components/textarea/textarea.js +28 -28
- package/dist/collection/components/textarea/textarea.js.map +1 -1
- package/dist/collection/shared/model.js.map +1 -1
- package/dist/custom-elements.json +291 -307
- package/dist/db-ux/db-checkbox.entry.esm.js.map +1 -1
- 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-navigation-item.entry.esm.js.map +1 -1
- package/dist/db-ux/db-radio.entry.esm.js.map +1 -1
- package/dist/db-ux/db-select.entry.esm.js.map +1 -1
- package/dist/db-ux/db-switch.entry.esm.js.map +1 -1
- package/dist/db-ux/db-textarea.entry.esm.js.map +1 -1
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/index.esm.js.map +1 -1
- package/dist/db-ux/{p-51f991c4.entry.js → p-2d389152.entry.js} +2 -2
- package/dist/db-ux/{p-51f991c4.entry.js.map → p-2d389152.entry.js.map} +1 -1
- package/dist/db-ux/p-684d11af.entry.js +2 -0
- package/dist/db-ux/p-684d11af.entry.js.map +1 -0
- package/dist/db-ux/{p-016e21b6.entry.js → p-77e5189c.entry.js} +2 -2
- package/dist/db-ux/{p-016e21b6.entry.js.map → p-77e5189c.entry.js.map} +1 -1
- package/dist/db-ux/{p-2f87bffd.entry.js → p-7ee7a06d.entry.js} +2 -2
- package/dist/db-ux/{p-2f87bffd.entry.js.map → p-7ee7a06d.entry.js.map} +1 -1
- package/dist/db-ux/p-81a85032.entry.js +2 -0
- package/dist/db-ux/{p-a258be18.entry.js.map → p-81a85032.entry.js.map} +1 -1
- package/dist/db-ux/p-90eef6ac.entry.js +2 -0
- package/dist/db-ux/p-90eef6ac.entry.js.map +1 -0
- package/dist/db-ux/{p-518d1a26.entry.js → p-fdb8daba.entry.js} +2 -2
- package/dist/db-ux/{p-518d1a26.entry.js.map → p-fdb8daba.entry.js.map} +1 -1
- package/dist/esm/db-checkbox.entry.js +2 -2
- package/dist/esm/db-checkbox.entry.js.map +1 -1
- 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 +3 -3
- package/dist/esm/db-custom-select-dropdown_5.entry.js.map +1 -1
- package/dist/esm/db-navigation-item.entry.js +7 -6
- package/dist/esm/db-navigation-item.entry.js.map +1 -1
- package/dist/esm/db-radio.entry.js +3 -3
- package/dist/esm/db-radio.entry.js.map +1 -1
- package/dist/esm/db-select.entry.js +4 -4
- package/dist/esm/db-select.entry.js.map +1 -1
- package/dist/esm/db-switch.entry.js +3 -19
- package/dist/esm/db-switch.entry.js.map +1 -1
- package/dist/esm/db-textarea.entry.js +3 -3
- package/dist/esm/db-textarea.entry.js.map +1 -1
- package/dist/esm/db-ux.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/checkbox/checkbox.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +1 -1
- package/dist/types/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/types/components/radio/radio.d.ts +1 -1
- package/dist/types/components/select/select.d.ts +1 -1
- package/dist/types/components/switch/model.d.ts +1 -3
- package/dist/types/components/switch/switch.d.ts +2 -5
- package/dist/types/components/textarea/textarea.d.ts +1 -1
- package/dist/types/shared/model.d.ts +1 -1
- package/dist/vscode.html-custom-data.json +35 -35
- package/dist/web-types.json +71 -72
- package/package.json +4 -4
- package/dist/db-ux/p-11228e58.entry.js +0 -2
- package/dist/db-ux/p-11228e58.entry.js.map +0 -1
- package/dist/db-ux/p-3cd03681.entry.js +0 -2
- package/dist/db-ux/p-3cd03681.entry.js.map +0 -1
- package/dist/db-ux/p-a258be18.entry.js +0 -2
package/dist/web-types.json
CHANGED
|
@@ -788,6 +788,11 @@
|
|
|
788
788
|
"description": "The size attribute changes the font-size and other related sizes of the component.",
|
|
789
789
|
"value": { "type": "\"small\" | \"medium\"" }
|
|
790
790
|
},
|
|
791
|
+
{
|
|
792
|
+
"name": "show-required-asterisk",
|
|
793
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
794
|
+
"value": { "type": "boolean | string" }
|
|
795
|
+
},
|
|
791
796
|
{
|
|
792
797
|
"name": "show-label",
|
|
793
798
|
"description": "Enables/disables the visibility of the label",
|
|
@@ -808,11 +813,6 @@
|
|
|
808
813
|
"description": "The value property is to receive results from the native form element.",
|
|
809
814
|
"value": { "type": "any" }
|
|
810
815
|
},
|
|
811
|
-
{
|
|
812
|
-
"name": "show-required-asterisk",
|
|
813
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
814
|
-
"value": { "type": "boolean | string" }
|
|
815
|
-
},
|
|
816
816
|
{
|
|
817
817
|
"name": "aria-described-by",
|
|
818
818
|
"description": "Overwrites auto handling for aria-describedby.",
|
|
@@ -901,6 +901,11 @@
|
|
|
901
901
|
"description": "The size attribute changes the font-size and other related sizes of the component.",
|
|
902
902
|
"type": "\"small\" | \"medium\""
|
|
903
903
|
},
|
|
904
|
+
{
|
|
905
|
+
"name": "showRequiredAsterisk",
|
|
906
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
907
|
+
"type": "boolean | string"
|
|
908
|
+
},
|
|
904
909
|
{
|
|
905
910
|
"name": "showLabel",
|
|
906
911
|
"description": "Enables/disables the visibility of the label",
|
|
@@ -921,11 +926,6 @@
|
|
|
921
926
|
"description": "The value property is to receive results from the native form element.",
|
|
922
927
|
"type": "any"
|
|
923
928
|
},
|
|
924
|
-
{
|
|
925
|
-
"name": "showRequiredAsterisk",
|
|
926
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
927
|
-
"type": "boolean | string"
|
|
928
|
-
},
|
|
929
929
|
{
|
|
930
930
|
"name": "ariaDescribedBy",
|
|
931
931
|
"description": "Overwrites auto handling for aria-describedby.",
|
|
@@ -1302,6 +1302,11 @@
|
|
|
1302
1302
|
"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.",
|
|
1303
1303
|
"value": { "type": "IconTypes" }
|
|
1304
1304
|
},
|
|
1305
|
+
{
|
|
1306
|
+
"name": "show-required-asterisk",
|
|
1307
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
1308
|
+
"value": { "type": "boolean | string" }
|
|
1309
|
+
},
|
|
1305
1310
|
{
|
|
1306
1311
|
"name": "label",
|
|
1307
1312
|
"description": "The label attribute specifies the caption of the form element.",
|
|
@@ -1334,11 +1339,6 @@
|
|
|
1334
1339
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
1335
1340
|
"value": { "type": "boolean | string" }
|
|
1336
1341
|
},
|
|
1337
|
-
{
|
|
1338
|
-
"name": "show-required-asterisk",
|
|
1339
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
1340
|
-
"value": { "type": "boolean | string" }
|
|
1341
|
-
},
|
|
1342
1342
|
{
|
|
1343
1343
|
"name": "step",
|
|
1344
1344
|
"description": "Sets [step value](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).",
|
|
@@ -1523,6 +1523,11 @@
|
|
|
1523
1523
|
"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.",
|
|
1524
1524
|
"type": "IconTypes"
|
|
1525
1525
|
},
|
|
1526
|
+
{
|
|
1527
|
+
"name": "showRequiredAsterisk",
|
|
1528
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
1529
|
+
"type": "boolean | string"
|
|
1530
|
+
},
|
|
1526
1531
|
{
|
|
1527
1532
|
"name": "label",
|
|
1528
1533
|
"description": "The label attribute specifies the caption of the form element.",
|
|
@@ -1553,11 +1558,6 @@
|
|
|
1553
1558
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
1554
1559
|
"type": "boolean | string"
|
|
1555
1560
|
},
|
|
1556
|
-
{
|
|
1557
|
-
"name": "showRequiredAsterisk",
|
|
1558
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
1559
|
-
"type": "boolean | string"
|
|
1560
|
-
},
|
|
1561
1561
|
{
|
|
1562
1562
|
"name": "step",
|
|
1563
1563
|
"description": "Sets [step value](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/step).",
|
|
@@ -3712,6 +3712,11 @@
|
|
|
3712
3712
|
"description": "Enables/disables the visibility of the label",
|
|
3713
3713
|
"value": { "type": "boolean | string" }
|
|
3714
3714
|
},
|
|
3715
|
+
{
|
|
3716
|
+
"name": "show-required-asterisk",
|
|
3717
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
3718
|
+
"value": { "type": "boolean | string" }
|
|
3719
|
+
},
|
|
3715
3720
|
{
|
|
3716
3721
|
"name": "classname",
|
|
3717
3722
|
"description": "React specific for adding className to the component.",
|
|
@@ -3752,11 +3757,6 @@
|
|
|
3752
3757
|
"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`).",
|
|
3753
3758
|
"value": { "type": "boolean | string" }
|
|
3754
3759
|
},
|
|
3755
|
-
{
|
|
3756
|
-
"name": "show-required-asterisk",
|
|
3757
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
3758
|
-
"value": { "type": "boolean | string" }
|
|
3759
|
-
},
|
|
3760
3760
|
{
|
|
3761
3761
|
"name": "label",
|
|
3762
3762
|
"description": "The label attribute specifies the caption of the form element.",
|
|
@@ -3800,6 +3800,11 @@
|
|
|
3800
3800
|
"description": "Enables/disables the visibility of the label",
|
|
3801
3801
|
"type": "boolean | string"
|
|
3802
3802
|
},
|
|
3803
|
+
{
|
|
3804
|
+
"name": "showRequiredAsterisk",
|
|
3805
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
3806
|
+
"type": "boolean | string"
|
|
3807
|
+
},
|
|
3803
3808
|
{
|
|
3804
3809
|
"name": "className",
|
|
3805
3810
|
"description": "React specific for adding className to the component.",
|
|
@@ -3836,11 +3841,6 @@
|
|
|
3836
3841
|
"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`).",
|
|
3837
3842
|
"type": "boolean | string"
|
|
3838
3843
|
},
|
|
3839
|
-
{
|
|
3840
|
-
"name": "showRequiredAsterisk",
|
|
3841
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
3842
|
-
"type": "boolean | string"
|
|
3843
|
-
},
|
|
3844
3844
|
{
|
|
3845
3845
|
"name": "label",
|
|
3846
3846
|
"description": "The label attribute specifies the caption of the form element.",
|
|
@@ -3984,6 +3984,11 @@
|
|
|
3984
3984
|
"description": "Enables/disables the visibility of the label",
|
|
3985
3985
|
"value": { "type": "boolean | string" }
|
|
3986
3986
|
},
|
|
3987
|
+
{
|
|
3988
|
+
"name": "show-required-asterisk",
|
|
3989
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
3990
|
+
"value": { "type": "boolean | string" }
|
|
3991
|
+
},
|
|
3987
3992
|
{
|
|
3988
3993
|
"name": "icon",
|
|
3989
3994
|
"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.",
|
|
@@ -3999,11 +4004,6 @@
|
|
|
3999
4004
|
"description": "The label attribute specifies the caption of the form element.",
|
|
4000
4005
|
"value": { "type": "string" }
|
|
4001
4006
|
},
|
|
4002
|
-
{
|
|
4003
|
-
"name": "show-required-asterisk",
|
|
4004
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
4005
|
-
"value": { "type": "boolean | string" }
|
|
4006
|
-
},
|
|
4007
4007
|
{
|
|
4008
4008
|
"name": "disabled",
|
|
4009
4009
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
@@ -4132,6 +4132,11 @@
|
|
|
4132
4132
|
"description": "Enables/disables the visibility of the label",
|
|
4133
4133
|
"type": "boolean | string"
|
|
4134
4134
|
},
|
|
4135
|
+
{
|
|
4136
|
+
"name": "showRequiredAsterisk",
|
|
4137
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
4138
|
+
"type": "boolean | string"
|
|
4139
|
+
},
|
|
4135
4140
|
{
|
|
4136
4141
|
"name": "icon",
|
|
4137
4142
|
"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.",
|
|
@@ -4147,11 +4152,6 @@
|
|
|
4147
4152
|
"description": "The label attribute specifies the caption of the form element.",
|
|
4148
4153
|
"type": "string"
|
|
4149
4154
|
},
|
|
4150
|
-
{
|
|
4151
|
-
"name": "showRequiredAsterisk",
|
|
4152
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
4153
|
-
"type": "boolean | string"
|
|
4154
|
-
},
|
|
4155
4155
|
{
|
|
4156
4156
|
"name": "disabled",
|
|
4157
4157
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
@@ -4338,11 +4338,6 @@
|
|
|
4338
4338
|
"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.",
|
|
4339
4339
|
"value": { "type": "string" }
|
|
4340
4340
|
},
|
|
4341
|
-
{
|
|
4342
|
-
"name": "checked",
|
|
4343
|
-
"description": "Define the radio or checkbox elements checked state",
|
|
4344
|
-
"value": { "type": "boolean | string" }
|
|
4345
|
-
},
|
|
4346
4341
|
{
|
|
4347
4342
|
"name": "visual-aid",
|
|
4348
4343
|
"description": "Add additional icons to indicate active/inactive state.",
|
|
@@ -4363,11 +4358,21 @@
|
|
|
4363
4358
|
"description": "The emphasis attribute divides in between a weak or strong importance.",
|
|
4364
4359
|
"value": { "type": "\"weak\" | \"strong\"" }
|
|
4365
4360
|
},
|
|
4361
|
+
{
|
|
4362
|
+
"name": "show-required-asterisk",
|
|
4363
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
4364
|
+
"value": { "type": "boolean | string" }
|
|
4365
|
+
},
|
|
4366
4366
|
{
|
|
4367
4367
|
"name": "classname",
|
|
4368
4368
|
"description": "React specific for adding className to the component.",
|
|
4369
4369
|
"value": { "type": "string" }
|
|
4370
4370
|
},
|
|
4371
|
+
{
|
|
4372
|
+
"name": "checked",
|
|
4373
|
+
"description": "Define the radio or checkbox elements checked state",
|
|
4374
|
+
"value": { "type": "boolean | string" }
|
|
4375
|
+
},
|
|
4371
4376
|
{
|
|
4372
4377
|
"name": "value",
|
|
4373
4378
|
"description": "The value property is to receive results from the native form element.",
|
|
@@ -4403,11 +4408,6 @@
|
|
|
4403
4408
|
"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`).",
|
|
4404
4409
|
"value": { "type": "boolean | string" }
|
|
4405
4410
|
},
|
|
4406
|
-
{
|
|
4407
|
-
"name": "show-required-asterisk",
|
|
4408
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
4409
|
-
"value": { "type": "boolean | string" }
|
|
4410
|
-
},
|
|
4411
4411
|
{
|
|
4412
4412
|
"name": "icon",
|
|
4413
4413
|
"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.",
|
|
@@ -4446,11 +4446,6 @@
|
|
|
4446
4446
|
"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.",
|
|
4447
4447
|
"type": "string"
|
|
4448
4448
|
},
|
|
4449
|
-
{
|
|
4450
|
-
"name": "checked",
|
|
4451
|
-
"description": "Define the radio or checkbox elements checked state",
|
|
4452
|
-
"type": "boolean | string"
|
|
4453
|
-
},
|
|
4454
4449
|
{
|
|
4455
4450
|
"name": "visualAid",
|
|
4456
4451
|
"description": "Add additional icons to indicate active/inactive state.",
|
|
@@ -4471,11 +4466,21 @@
|
|
|
4471
4466
|
"description": "The emphasis attribute divides in between a weak or strong importance.",
|
|
4472
4467
|
"type": "\"weak\" | \"strong\""
|
|
4473
4468
|
},
|
|
4469
|
+
{
|
|
4470
|
+
"name": "showRequiredAsterisk",
|
|
4471
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
4472
|
+
"type": "boolean | string"
|
|
4473
|
+
},
|
|
4474
4474
|
{
|
|
4475
4475
|
"name": "className",
|
|
4476
4476
|
"description": "React specific for adding className to the component.",
|
|
4477
4477
|
"type": "string"
|
|
4478
4478
|
},
|
|
4479
|
+
{
|
|
4480
|
+
"name": "checked",
|
|
4481
|
+
"description": "Define the radio or checkbox elements checked state",
|
|
4482
|
+
"type": "boolean | string"
|
|
4483
|
+
},
|
|
4479
4484
|
{
|
|
4480
4485
|
"name": "value",
|
|
4481
4486
|
"description": "The value property is to receive results from the native form element.",
|
|
@@ -4507,11 +4512,6 @@
|
|
|
4507
4512
|
"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`).",
|
|
4508
4513
|
"type": "boolean | string"
|
|
4509
4514
|
},
|
|
4510
|
-
{
|
|
4511
|
-
"name": "showRequiredAsterisk",
|
|
4512
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
4513
|
-
"type": "boolean | string"
|
|
4514
|
-
},
|
|
4515
4515
|
{
|
|
4516
4516
|
"name": "icon",
|
|
4517
4517
|
"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.",
|
|
@@ -4527,8 +4527,7 @@
|
|
|
4527
4527
|
"description": "The label attribute specifies the caption of the form element.",
|
|
4528
4528
|
"type": "string"
|
|
4529
4529
|
},
|
|
4530
|
-
{ "name": "_id" }
|
|
4531
|
-
{ "name": "_checked", "type": "boolean" }
|
|
4530
|
+
{ "name": "_id" }
|
|
4532
4531
|
],
|
|
4533
4532
|
"events": [
|
|
4534
4533
|
{
|
|
@@ -4995,6 +4994,11 @@
|
|
|
4995
4994
|
"description": "Change the variant of the label to float or hidden",
|
|
4996
4995
|
"value": { "type": "\"above\" | \"floating\"" }
|
|
4997
4996
|
},
|
|
4997
|
+
{
|
|
4998
|
+
"name": "show-required-asterisk",
|
|
4999
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
5000
|
+
"value": { "type": "boolean | string" }
|
|
5001
|
+
},
|
|
4998
5002
|
{
|
|
4999
5003
|
"name": "show-label",
|
|
5000
5004
|
"description": "Enables/disables the visibility of the label",
|
|
@@ -5027,11 +5031,6 @@
|
|
|
5027
5031
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
5028
5032
|
"value": { "type": "boolean | string" }
|
|
5029
5033
|
},
|
|
5030
|
-
{
|
|
5031
|
-
"name": "show-required-asterisk",
|
|
5032
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
5033
|
-
"value": { "type": "boolean | string" }
|
|
5034
|
-
},
|
|
5035
5034
|
{
|
|
5036
5035
|
"name": "read-only",
|
|
5037
5036
|
"description": "The disabled attribute can be set to keep a user from edit on the form element",
|
|
@@ -5186,6 +5185,11 @@
|
|
|
5186
5185
|
"description": "Change the variant of the label to float or hidden",
|
|
5187
5186
|
"type": "\"above\" | \"floating\""
|
|
5188
5187
|
},
|
|
5188
|
+
{
|
|
5189
|
+
"name": "showRequiredAsterisk",
|
|
5190
|
+
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
5191
|
+
"type": "boolean | string"
|
|
5192
|
+
},
|
|
5189
5193
|
{
|
|
5190
5194
|
"name": "showLabel",
|
|
5191
5195
|
"description": "Enables/disables the visibility of the label",
|
|
@@ -5216,11 +5220,6 @@
|
|
|
5216
5220
|
"description": "The disabled attribute can be set to keep a user from clicking on the form element.",
|
|
5217
5221
|
"type": "boolean | string"
|
|
5218
5222
|
},
|
|
5219
|
-
{
|
|
5220
|
-
"name": "showRequiredAsterisk",
|
|
5221
|
-
"description": "This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').\nIt allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.\nBy default, its value is `true`, so the asterisk is shown when `required` is set.",
|
|
5222
|
-
"type": "boolean | string"
|
|
5223
|
-
},
|
|
5224
5223
|
{
|
|
5225
5224
|
"name": "readOnly",
|
|
5226
5225
|
"description": "The disabled attribute can be set to keep a user from edit on the form element",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/wc-core-components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "Stencil components for @db-ux/core-components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"mv:dist": "cpr dist ../../build-outputs/wc-core-components/dist -o",
|
|
26
26
|
"mv:package.json": "cpr package.json ../../build-outputs/wc-core-components/package.json -o",
|
|
27
27
|
"mv:readme": "cpr README.md ../../build-outputs/wc-core-components/README.md -o",
|
|
28
|
-
"postbuild": "npm-run-all
|
|
28
|
+
"postbuild": "npm-run-all --parallel build:* --parallel mv:*",
|
|
29
29
|
"start": "stencil build --watch"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"web-types": "./dist/web-types.json",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@db-ux/core-components": "2.4.
|
|
46
|
-
"@db-ux/core-foundations": "2.4.
|
|
45
|
+
"@db-ux/core-components": "2.4.2",
|
|
46
|
+
"@db-ux/core-foundations": "2.4.2"
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as i,c as s,h as t}from"./p-CK6m6IJ4.js";import{b as a,u as h,j as e,g as d,c}from"./p-YECpAE3G.js";const l=class{constructor(t){i(this,t);this.change=s(this,"change");this.blur=s(this,"blur");this.focus=s(this,"focus");this._id=undefined;this._checked=false}handleChange(i){var s;if(this.change){this.change.emit(i)}this._checked=(s=i.target)===null||s===void 0?void 0:s["checked"]}handleBlur(i){if(this.blur){this.blur.emit(i)}}handleFocus(i){if(this.focus){this.focus.emit(i)}}enableAttributePassing(i,s){const t=i===null||i===void 0?void 0:i.closest(s);if(i&&t){const s=t.attributes;for(let a=0;a<s.length;a++){const h=s.item(a);if(h&&(h.name.startsWith("data-")||h.name.startsWith("aria-"))){i.setAttribute(h.name,h.value);t.removeAttribute(h.name)}if(h&&h.name==="class"){const s=h.value.includes("hydrated");const a=h.value.replace("hydrated","").trim();const e=i.getAttribute("class");i.setAttribute(h.name,`${e?`${e} `:""}${a}`);if(s){t.setAttribute("class","hydrated")}else{t.removeAttribute(h.name)}}}}}watch0Fn(){if(this.checked!==undefined&&this.checked!==null){this._checked=a(this.checked)}}watch0(){this.watch0Fn()}componentDidLoad(){var i;this.enableAttributePassing(this._ref,"db-switch");this._id=(i=this.id)!==null&&i!==void 0?i:`switch-${h()}`;this.watch0Fn()}render(){var i;return t("label",{key:"69aa49920b6a66b9b63743e2d586f1a0a8b32ac1",class:c("db-switch",this.className),"data-visual-aid":d(this.visualAid),"data-size":this.size,"data-hide-label":e(this.showLabel),"data-emphasis":this.emphasis,htmlFor:this._id},t("input",{key:"aef4871ab05cecd7047944c2102e220fd4371394",type:"checkbox",role:"switch",id:this._id,"aria-checked":d(this._checked),ref:i=>{this._ref=i},checked:a(this.checked,"checked"),value:this.value,disabled:a(this.disabled,"disabled"),"aria-describedby":(i=this.describedbyid)!==null&&i!==void 0?i:this.ariaDescribedBy,"aria-invalid":this.validation==="invalid","data-custom-validity":this.validation,name:this.name,required:a(this.required,"required"),"data-hide-asterisk":e(this.showRequiredAsterisk),"data-aid-icon":this.icon,"data-aid-icon-after":this.iconAfter,onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i)}),this.label?this.label:t("slot",null))}static get watchers(){return{checked:["watch0"]}}};export{l as db_switch};
|
|
2
|
-
//# sourceMappingURL=p-11228e58.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DBSwitch","constructor","hostRef","this","_id","undefined","_checked","handleChange","event","change","emit","_a","target","handleBlur","blur","handleFocus","focus","enableAttributePassing","element","customElementSelector","parent","closest","attributes","i","length","attr","item","name","startsWith","setAttribute","value","removeAttribute","isWebComponent","includes","replace","trim","currentClass","getAttribute","watch0Fn","checked","getBoolean","watch0","componentDidLoad","_ref","id","uuid","render","h","key","class","cls","className","getBooleanAsString","visualAid","size","getHideProp","showLabel","emphasis","htmlFor","type","role","ref","el","disabled","describedbyid","ariaDescribedBy","validation","required","showRequiredAsterisk","icon","iconAfter","onChange","onBlur","onFocus","label"],"sources":["src/components/switch/switch.tsx"],"sourcesContent":["import { ChangeEvent, InteractionEvent } from \"../../shared/model\";\nimport {\n cls,\n getBoolean,\n getBooleanAsString,\n getHideProp,\n uuid,\n} from \"../../utils\";\nimport {\n handleFrameworkEventAngular,\n handleFrameworkEventVue,\n} from \"../../utils/form-components\";\nimport { DBSwitchProps, DBSwitchState } from \"./model\";\n\nimport {\n Component,\n h,\n Fragment,\n Watch,\n Event,\n EventEmitter,\n Prop,\n State,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n\n */\n @Component({\n tag: \"db-switch\",\n})\nexport class DBSwitch {\n private _ref!: HTMLInputElement | any;\n @Prop() id: DBSwitchProps[\"id\"];\n @Prop() checked: DBSwitchProps[\"checked\"];\n @Event() change: EventEmitter<\n Parameters<Required<DBSwitchProps>[\"onChange\"]>[number]\n > | void;\n @Event() blur: EventEmitter<\n Parameters<Required<DBSwitchProps>[\"onBlur\"]>[number]\n > | void;\n @Event() focus: EventEmitter<\n Parameters<Required<DBSwitchProps>[\"onFocus\"]>[number]\n > | void;\n @Prop() visualAid: DBSwitchProps[\"visualAid\"];\n @Prop() size: DBSwitchProps[\"size\"];\n @Prop() showLabel: DBSwitchProps[\"showLabel\"];\n @Prop() emphasis: DBSwitchProps[\"emphasis\"];\n @Prop({attribute: \"classname\"}) className: DBSwitchProps[\"className\"];\n @Prop() value: DBSwitchProps[\"value\"];\n @Prop() disabled: DBSwitchProps[\"disabled\"];\n @Prop() describedbyid: DBSwitchProps[\"describedbyid\"];\n @Prop() ariaDescribedBy: DBSwitchProps[\"ariaDescribedBy\"];\n @Prop() validation: DBSwitchProps[\"validation\"];\n @Prop() name: DBSwitchProps[\"name\"];\n @Prop() required: DBSwitchProps[\"required\"];\n @Prop() showRequiredAsterisk: DBSwitchProps[\"showRequiredAsterisk\"];\n @Prop() icon: DBSwitchProps[\"icon\"];\n @Prop() iconAfter: DBSwitchProps[\"iconAfter\"];\n @Prop() label: DBSwitchProps[\"label\"];\n @State() _id = undefined;\n @State() _checked = false;\n\n handleChange(event: ChangeEvent<HTMLInputElement>) {\n if (this.change) {\n this.change.emit(event);\n }\n\n // We have different ts types in different frameworks, so we need to use any here\n this._checked = (event.target as any)?.[\"checked\"];\n }\n handleBlur(event: InteractionEvent<HTMLInputElement>) {\n if (this.blur) {\n this.blur.emit(event);\n }\n }\n handleFocus(event: InteractionEvent<HTMLInputElement>) {\n if (this.focus) {\n this.focus.emit(event);\n }\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLInputElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n if (this.checked !== undefined && this.checked !== null) {\n this._checked = getBoolean(this.checked);\n }\n }\n\n @Watch(\"checked\")\n watch0() {\n this.watch0Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-switch\");\n this._id = this.id ?? `switch-${uuid()}`;\n this.watch0Fn();\n }\n\n render() {\n return (\n <label\n class={cls(\"db-switch\", this.className)}\n data-visual-aid={getBooleanAsString(this.visualAid)}\n data-size={this.size}\n data-hide-label={getHideProp(this.showLabel)}\n data-emphasis={this.emphasis}\n htmlFor={this._id}\n >\n <input\n type=\"checkbox\"\n role=\"switch\"\n id={this._id}\n aria-checked={getBooleanAsString(this._checked)}\n ref={(el: any) => {\n this._ref = el;\n }}\n checked={getBoolean(this.checked, \"checked\")}\n value={this.value}\n disabled={getBoolean(this.disabled, \"disabled\")}\n aria-describedby={this.describedbyid ?? this.ariaDescribedBy}\n aria-invalid={this.validation === \"invalid\"}\n data-custom-validity={this.validation}\n name={this.name}\n required={getBoolean(this.required, \"required\")}\n data-hide-asterisk={getHideProp(this.showRequiredAsterisk)}\n data-aid-icon={this.icon}\n data-aid-icon-after={this.iconAfter}\n onChange={(event) => this.handleChange(event)}\n onBlur={(event) => this.handleBlur(event)}\n onFocus={(event) => this.handleFocus(event)}\n />\n {this.label ? this.label : <slot></slot>}\n </label>\n );\n }\n}\n"],"mappings":"mHAiCaA,EAAQ,MAHpB,WAAAC,CAAAC,G,2FAgCUC,KAAGC,IAAGC,UACNF,KAAQG,SAAG,KAmHrB,CAjHC,YAAAC,CAAaC,G,MACX,GAAIL,KAAKM,OAAQ,CACfN,KAAKM,OAAOC,KAAKF,E,CAInBL,KAAKG,UAAYK,EAAAH,EAAMI,UAAc,MAAAD,SAAA,SAAAA,EAAG,U,CAE1C,UAAAE,CAAWL,GACT,GAAIL,KAAKW,KAAM,CACbX,KAAKW,KAAKJ,KAAKF,E,EAGnB,WAAAO,CAAYP,GACV,GAAIL,KAAKa,MAAO,CACdb,KAAKa,MAAMN,KAAKF,E,EASZ,sBAAAS,CACNC,EACAC,GAEA,MAAMC,EAASF,IAAO,MAAPA,SAAO,SAAPA,EAASG,QAAQF,GAChC,GAAID,GAAWE,EAAQ,CACrB,MAAME,EAAaF,EAAOE,WAC1B,IAAK,IAAIC,EAAI,EAAGA,EAAID,EAAWE,OAAQD,IAAK,CAC1C,MAAME,EAAOH,EAAWI,KAAKH,GAC7B,GACEE,IACCA,EAAKE,KAAKC,WAAW,UAAYH,EAAKE,KAAKC,WAAW,UACvD,CACAV,EAAQW,aAAaJ,EAAKE,KAAMF,EAAKK,OACrCV,EAAOW,gBAAgBN,EAAKE,K,CAE9B,GAAIF,GAAQA,EAAKE,OAAS,QAAS,CACjC,MAAMK,EAAiBP,EAAKK,MAAMG,SAAS,YAC3C,MAAMH,EAAQL,EAAKK,MAAMI,QAAQ,WAAY,IAAIC,OACjD,MAAMC,EAAelB,EAAQmB,aAAa,SAC1CnB,EAAQW,aACNJ,EAAKE,KACL,GAAGS,EAAe,GAAGA,KAAkB,KAAKN,KAE9C,GAAIE,EAAgB,CAElBZ,EAAOS,aAAa,QAAS,W,KACxB,CACLT,EAAOW,gBAAgBN,EAAKE,K,KAOtC,QAAAW,GACE,GAAInC,KAAKoC,UAAYlC,WAAaF,KAAKoC,UAAY,KAAM,CACvDpC,KAAKG,SAAWkC,EAAWrC,KAAKoC,Q,EAKpC,MAAAE,GACEtC,KAAKmC,U,CAGP,gBAAAI,G,MACEvC,KAAKc,uBAAuBd,KAAKwC,KAAM,aACvCxC,KAAKC,KAAMO,EAAAR,KAAKyC,MAAE,MAAAjC,SAAA,EAAAA,EAAI,UAAUkC,MAChC1C,KAAKmC,U,CAGP,MAAAQ,G,MACE,OACEC,EACE,SAAAC,IAAA,2CAAAC,MAAOC,EAAI,YAAa/C,KAAKgD,WAAU,kBACtBC,EAAmBjD,KAAKkD,WAC9B,YAAAlD,KAAKmD,KAAI,kBACHC,EAAYpD,KAAKqD,WACnB,gBAAArD,KAAKsD,SACpBC,QAASvD,KAAKC,KAEd2C,EACE,SAAAC,IAAA,2CAAAW,KAAK,WACLC,KAAK,SACLhB,GAAIzC,KAAKC,IAAG,eACEgD,EAAmBjD,KAAKG,UACtCuD,IAAMC,IACJ3D,KAAKwC,KAAOmB,CAAE,EAEhBvB,QAASC,EAAWrC,KAAKoC,QAAS,WAClCT,MAAO3B,KAAK2B,MACZiC,SAAUvB,EAAWrC,KAAK4D,SAAU,YAAW,oBAC7BpD,EAAAR,KAAK6D,iBAAa,MAAArD,SAAA,EAAAA,EAAIR,KAAK8D,gBAAe,eAC9C9D,KAAK+D,aAAe,UAAS,uBACrB/D,KAAK+D,WAC3BvC,KAAMxB,KAAKwB,KACXwC,SAAU3B,EAAWrC,KAAKgE,SAAU,YAAW,qBAC3BZ,EAAYpD,KAAKiE,sBACtB,gBAAAjE,KAAKkE,KACC,sBAAAlE,KAAKmE,UAC1BC,SAAW/D,GAAUL,KAAKI,aAAaC,GACvCgE,OAAShE,GAAUL,KAAKU,WAAWL,GACnCiE,QAAUjE,GAAUL,KAAKY,YAAYP,KAEtCL,KAAKuE,MAAQvE,KAAKuE,MAAQ3B,EAAa,a","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,F as a}from"./p-CK6m6IJ4.js";import{n as h}from"./p-DC9V_oNU.js";import{u as n,d as e,b as o,g as d,j as l,c as r}from"./p-YECpAE3G.js";import{i as c,N as u}from"./p-DdyDId49.js";import"./p-CifCRcqG.js";const v=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-"+n();this.navigationItemSafeTriangle=undefined}handleNavigationItemClick(i){if(c(i)){this.autoClose=true;e((()=>{this.autoClose=false}),300)}}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 h=t.item(a);if(h&&(h.name.startsWith("data-")||h.name.startsWith("aria-"))){i.setAttribute(h.name,h.value);s.removeAttribute(h.name)}if(h&&h.name==="class"){const t=h.value.includes("hydrated");const a=h.value.replace("hydrated","").trim();const n=i.getAttribute("class");i.setAttribute(h.name,`${n?`${n} `:""}${a}`);if(t){s.setAttribute("class","hydrated")}else{s.removeAttribute(h.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 u(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:"218eb176a93b6dd47a7766a1b4641a290bdfb17a",class:r("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-hide-icon":l(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-auto-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:h)):null,s("slot",{name:"subNavigation"}))):null)}static get watchers(){return{subNavigationExpanded:["watch0"],initialized:["watch1"],_ref:["watch1"]}}};export{v as db_navigation_item};
|
|
2
|
-
//# sourceMappingURL=p-3cd03681.entry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DBNavigationItem","constructor","hostRef","this","initialized","hasAreaPopup","hasSubNavigation","isSubNavigationExpanded","autoClose","subNavigationId","uuid","navigationItemSafeTriangle","undefined","handleNavigationItemClick","event","isEventTargetNavigationItem","delay","handleClick","click","stopPropagation","emit","handleBackClick","enableAttributePassing","element","customElementSelector","parent","closest","attributes","i","length","attr","item","name","startsWith","setAttribute","value","removeAttribute","isWebComponent","includes","replace","trim","currentClass","getAttribute","watch0Fn","subNavigationExpanded","getBoolean","watch0","watch1Fn","_ref","subNavigationSlot","querySelector","_a","children","NavigationItemSafeTriangle","watch1","componentDidLoad","render","h","key","class","cls","className","ref","el","id","onMouseOver","enableFollow","onMouseLeave","disableFollow","onMouseMove","followByMouseEvent","width","icon","getHideProp","showIcon","active","getBooleanAsString","wrap","disabled","text","Fragment","onClick","variant","backButtonId","backButtonText","DEFAULT_BACK"],"sources":["src/components/navigation-item/navigation-item.tsx"],"sourcesContent":["import { DEFAULT_BACK } from \"../../shared/constants\";\nimport { ClickEvent } from \"../../shared/model\";\nimport {\n cls,\n delay,\n getBoolean,\n getBooleanAsString,\n getHideProp,\n uuid,\n} from \"../../utils\";\nimport {\n isEventTargetNavigationItem,\n NavigationItemSafeTriangle,\n} from \"../../utils/navigation\";\nimport { DBButton } from \"../button/button\";\nimport { DBNavigationItemProps, DBNavigationItemState } from \"./model\";\n\nimport {\n Component,\n h,\n Fragment,\n Watch,\n Event,\n EventEmitter,\n Prop,\n State,\n} from \"@stencil/core\";\n\n\n/**\n * @slot children - This is a default/unnamed slot\n * @slot subNavigation - TODO: Add description for slotSubNavigation\n */\n @Component({\n tag: \"db-navigation-item\",\n})\nexport class DBNavigationItem {\n private _ref!: HTMLLIElement | any;\n @Prop() subNavigationExpanded: DBNavigationItemProps[\"subNavigationExpanded\"];\n @Event() click: EventEmitter<\n Parameters<Required<DBNavigationItemProps>[\"onClick\"]>[number]\n > | void;\n @Prop() id: DBNavigationItemProps[\"id\"];\n @Prop({attribute: \"classname\"}) className: DBNavigationItemProps[\"className\"];\n @Prop() width: DBNavigationItemProps[\"width\"];\n @Prop() icon: DBNavigationItemProps[\"icon\"];\n @Prop() showIcon: DBNavigationItemProps[\"showIcon\"];\n @Prop() active: DBNavigationItemProps[\"active\"];\n @Prop() wrap: DBNavigationItemProps[\"wrap\"];\n @Prop() disabled: DBNavigationItemProps[\"disabled\"];\n @Prop() text: DBNavigationItemProps[\"text\"];\n @Prop() backButtonId: DBNavigationItemProps[\"backButtonId\"];\n @Prop() backButtonText: DBNavigationItemProps[\"backButtonText\"];\n @State() initialized = false;\n @State() hasAreaPopup = false;\n @State() hasSubNavigation = true;\n @State() isSubNavigationExpanded = false;\n @State() autoClose = false;\n @State() subNavigationId = \"sub-navigation-\" + uuid();\n @State() navigationItemSafeTriangle = undefined;\n\n handleNavigationItemClick(event: unknown) {\n if (isEventTargetNavigationItem(event)) {\n this.autoClose = true;\n delay(() => {\n this.autoClose = false;\n }, 300);\n }\n }\n handleClick(event: ClickEvent<HTMLButtonElement> | any) {\n if (this.click) {\n event.stopPropagation();\n this.click.emit(event);\n }\n if (this.hasAreaPopup) {\n this.isSubNavigationExpanded = true;\n }\n }\n handleBackClick(event: ClickEvent<HTMLButtonElement> | any) {\n event.stopPropagation();\n this.isSubNavigationExpanded = false;\n }\n\n /**\n * Passes `aria-*`, `data-*` & `class` attributes to correct child. Used in angular and stencil.\n * @param element the ref for the component\n * @param customElementSelector the custom element like `my-component`\n */\n private enableAttributePassing(\n element: HTMLElement | null,\n customElementSelector: string\n ) {\n const parent = element?.closest(customElementSelector);\n if (element && parent) {\n const attributes = parent.attributes;\n for (let i = 0; i < attributes.length; i++) {\n const attr = attributes.item(i);\n if (\n attr &&\n (attr.name.startsWith(\"data-\") || attr.name.startsWith(\"aria-\"))\n ) {\n element.setAttribute(attr.name, attr.value);\n parent.removeAttribute(attr.name);\n }\n if (attr && attr.name === \"class\") {\n const isWebComponent = attr.value.includes(\"hydrated\");\n const value = attr.value.replace(\"hydrated\", \"\").trim();\n const currentClass = element.getAttribute(\"class\");\n element.setAttribute(\n attr.name,\n `${currentClass ? `${currentClass} ` : \"\"}${value}`\n );\n if (isWebComponent) {\n // Stencil is using this class for lazy loading component\n parent.setAttribute(\"class\", \"hydrated\");\n } else {\n parent.removeAttribute(attr.name);\n }\n }\n }\n }\n }\n\n watch0Fn() {\n if (this.subNavigationExpanded !== undefined) {\n this.isSubNavigationExpanded = !!getBoolean(\n this.subNavigationExpanded,\n \"subNavigationExpanded\"\n );\n }\n }\n\n @Watch(\"subNavigationExpanded\")\n watch0() {\n this.watch0Fn();\n }\n\n watch1Fn() {\n if (this.initialized && this._ref) {\n const subNavigationSlot = this._ref.querySelector(\"menu\");\n if (subNavigationSlot) {\n if (subNavigationSlot.children?.length > 0) {\n this.hasAreaPopup = true;\n if (!this.navigationItemSafeTriangle) {\n this.navigationItemSafeTriangle = new NavigationItemSafeTriangle(\n this._ref,\n subNavigationSlot\n );\n }\n } else {\n this.hasSubNavigation = false;\n }\n }\n }\n }\n\n @Watch(\"initialized\")\n @Watch(\"_ref\")\n watch1() {\n this.watch1Fn();\n }\n\n componentDidLoad() {\n this.enableAttributePassing(this._ref, \"db-navigation-item\");\n this.initialized = true;\n this.watch0Fn();\n this.watch1Fn();\n }\n\n render() {\n return (\n <li\n class={cls(\"db-navigation-item\", this.className)}\n ref={(el: any) => {\n this._ref = el;\n }}\n id={this.id}\n onMouseOver={() => this.navigationItemSafeTriangle?.enableFollow()}\n onMouseLeave={() => this.navigationItemSafeTriangle?.disableFollow()}\n onMouseMove={(event) =>\n this.navigationItemSafeTriangle?.followByMouseEvent(event)\n }\n data-width={this.width}\n data-icon={this.icon}\n data-hide-icon={getHideProp(this.showIcon)}\n data-active={this.active}\n data-wrap={getBooleanAsString(this.wrap)}\n aria-disabled={getBooleanAsString(this.disabled)}\n >\n {!this.hasSubNavigation ? this.text ? this.text : <slot></slot> : null}\n {this.hasSubNavigation ? (\n <Fragment>\n <button\n class=\"db-navigation-item-expand-button\"\n aria-haspopup={this.hasAreaPopup}\n aria-expanded={this.isSubNavigationExpanded}\n disabled={getBoolean(this.disabled, \"disabled\")}\n onClick={(event) => this.handleClick(event)}\n >\n {this.text ? this.text : <slot></slot>}\n </button>\n <menu\n class=\"db-sub-navigation\"\n data-auto-close={this.autoClose}\n id={this.subNavigationId}\n onClick={(event) => this.handleNavigationItemClick(event)}\n >\n {this.hasAreaPopup ? (\n <div class=\"db-mobile-navigation-back\">\n <db-button\n icon=\"arrow_left\"\n variant=\"ghost\"\n id={this.backButtonId}\n onClick={(event) => this.handleBackClick(event)}\n >\n {this.backButtonText ?? DEFAULT_BACK}\n </db-button>\n </div>\n ) : null}\n <slot name=\"subNavigation\"></slot>\n </menu>\n </Fragment>\n ) : null}\n </li>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-CK6m6IJ4.js";import{l as h,g as a,h as e,f as d,k as l,b as n,r as c,a as r}from"./p-DC9V_oNU.js";import{h as o,d as f,s as u,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="";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;f((()=>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;f((()=>this._voiceOverFallback=""),1e3)}}else if(u(this.message,this.showMessage)){this._descByIds=this._messageId}else{this._descByIds=""}}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(u(this.message,this.showMessage)){this._descByIds=i}}}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:"22cba979c0bfa7ec50663be4f4d9404e6c6f1e26",class:y("db-textarea",this.className),"data-variant":this.variant,"data-hide-label":p(this.showLabel)},s("label",{key:"e98eabd338059357c24c32a79bebf84a0ad944ad",htmlFor:this._id},(i=this.label)!==null&&i!==void 0?i:r),s("textarea",{key:"14f6cd83396c4f5a67b23d9c1a56e201d11b277f","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"),"data-hide-asterisk":p(this.showRequiredAsterisk),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,c),cols:b(this.cols)}),u(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:"55b697bc428fce94d92b1527f6bc11fc5322b1e6",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"d3ff952f73c0aa1cb2acb53f0f3cffcfb028de05","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-a258be18.entry.js.map
|