@politiet/sheriff-web-components 2.4.3 → 2.5.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/custom-elements.json +331 -0
- package/dist/frameworks/preact.d.ts +7 -1
- package/dist/frameworks/preact.d.ts.map +1 -1
- package/dist/frameworks/react.d.ts +7 -1
- package/dist/frameworks/react.d.ts.map +1 -1
- package/dist/frameworks/solidjs.d.ts +2 -0
- package/dist/frameworks/solidjs.d.ts.map +1 -1
- package/dist/frameworks/svelte.d.ts +2 -0
- package/dist/frameworks/svelte.d.ts.map +1 -1
- package/dist/frameworks/vue.d.ts +2 -0
- package/dist/frameworks/vue.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/mixins/sds-event-dispatcher-mixin.d.ts +9 -0
- package/dist/mixins/sds-event-dispatcher-mixin.d.ts.map +1 -0
- package/dist/mixins/sds-event-dispatcher-mixin.js +69 -0
- package/dist/mixins/sds-event-dispatcher-mixin.js.map +1 -0
- package/dist/react-wrappers/SDSStepperStepWrapper.d.ts +3 -0
- package/dist/react-wrappers/SDSStepperStepWrapper.d.ts.map +1 -0
- package/dist/react-wrappers/SDSStepperStepWrapper.js +10 -0
- package/dist/react-wrappers/SDSStepperStepWrapper.js.map +1 -0
- package/dist/react-wrappers/SDSStepperWrapper.d.ts +6 -0
- package/dist/react-wrappers/SDSStepperWrapper.d.ts.map +1 -0
- package/dist/react-wrappers/SDSStepperWrapper.js +12 -0
- package/dist/react-wrappers/SDSStepperWrapper.js.map +1 -0
- package/dist/react-wrappers/SDSTextFieldWrapper.d.ts +2 -0
- package/dist/react-wrappers/SDSTextFieldWrapper.d.ts.map +1 -1
- package/dist/react-wrappers/SDSTextFieldWrapper.js +1 -0
- package/dist/react-wrappers/SDSTextFieldWrapper.js.map +1 -1
- package/dist/react-wrappers/index.d.ts +2 -0
- package/dist/react-wrappers/index.d.ts.map +1 -1
- package/dist/react-wrappers/index.js +2 -0
- package/dist/react-wrappers/index.js.map +1 -1
- package/dist/sds-alert/sds-alert.component.d.ts +2 -1
- package/dist/sds-alert/sds-alert.component.d.ts.map +1 -1
- package/dist/sds-alert/sds-alert.component.js +3 -5
- package/dist/sds-alert/sds-alert.component.js.map +1 -1
- package/dist/sds-button/sds-button.component.d.ts +2 -1
- package/dist/sds-button/sds-button.component.d.ts.map +1 -1
- package/dist/sds-button/sds-button.component.js +5 -17
- package/dist/sds-button/sds-button.component.js.map +1 -1
- package/dist/sds-checkbox/sds-checkbox.d.ts +2 -1
- package/dist/sds-checkbox/sds-checkbox.d.ts.map +1 -1
- package/dist/sds-checkbox/sds-checkbox.js +5 -4
- package/dist/sds-checkbox/sds-checkbox.js.map +1 -1
- package/dist/sds-checkbox-group/sds-checkbox-group.d.ts +2 -1
- package/dist/sds-checkbox-group/sds-checkbox-group.d.ts.map +1 -1
- package/dist/sds-checkbox-group/sds-checkbox-group.js +3 -5
- package/dist/sds-checkbox-group/sds-checkbox-group.js.map +1 -1
- package/dist/sds-chip/sds-chip.d.ts +2 -1
- package/dist/sds-chip/sds-chip.d.ts.map +1 -1
- package/dist/sds-chip/sds-chip.js +4 -9
- package/dist/sds-chip/sds-chip.js.map +1 -1
- package/dist/sds-details/sds-details.d.ts +3 -1
- package/dist/sds-details/sds-details.d.ts.map +1 -1
- package/dist/sds-details/sds-details.js +3 -6
- package/dist/sds-details/sds-details.js.map +1 -1
- package/dist/sds-dialog/sds-dialog.d.ts +2 -1
- package/dist/sds-dialog/sds-dialog.d.ts.map +1 -1
- package/dist/sds-dialog/sds-dialog.js +3 -5
- package/dist/sds-dialog/sds-dialog.js.map +1 -1
- package/dist/sds-icon/sds-icon.styles.d.ts.map +1 -1
- package/dist/sds-icon/sds-icon.styles.js +2 -1
- package/dist/sds-icon/sds-icon.styles.js.map +1 -1
- package/dist/sds-notification/sds-notification.d.ts +2 -1
- package/dist/sds-notification/sds-notification.d.ts.map +1 -1
- package/dist/sds-notification/sds-notification.js +3 -5
- package/dist/sds-notification/sds-notification.js.map +1 -1
- package/dist/sds-radio/sds-radio.d.ts +2 -1
- package/dist/sds-radio/sds-radio.d.ts.map +1 -1
- package/dist/sds-radio/sds-radio.js +5 -4
- package/dist/sds-radio/sds-radio.js.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.d.ts +2 -1
- package/dist/sds-radio-group/sds-radio-group.d.ts.map +1 -1
- package/dist/sds-radio-group/sds-radio-group.js +3 -2
- package/dist/sds-radio-group/sds-radio-group.js.map +1 -1
- package/dist/sds-select/sds-select.d.ts +2 -1
- package/dist/sds-select/sds-select.d.ts.map +1 -1
- package/dist/sds-select/sds-select.js +6 -5
- package/dist/sds-select/sds-select.js.map +1 -1
- package/dist/sds-stepper/sds-stepper.d.ts +33 -0
- package/dist/sds-stepper/sds-stepper.d.ts.map +1 -0
- package/dist/sds-stepper/sds-stepper.js +81 -0
- package/dist/sds-stepper/sds-stepper.js.map +1 -0
- package/dist/sds-stepper/sds-stepper.styles.d.ts +2 -0
- package/dist/sds-stepper/sds-stepper.styles.d.ts.map +1 -0
- package/dist/sds-stepper/sds-stepper.styles.js +37 -0
- package/dist/sds-stepper/sds-stepper.styles.js.map +1 -0
- package/dist/sds-stepper-step/sds-stepper-step.d.ts +27 -0
- package/dist/sds-stepper-step/sds-stepper-step.d.ts.map +1 -0
- package/dist/sds-stepper-step/sds-stepper-step.js +70 -0
- package/dist/sds-stepper-step/sds-stepper-step.js.map +1 -0
- package/dist/sds-stepper-step/sds-stepper-step.styles.d.ts +2 -0
- package/dist/sds-stepper-step/sds-stepper-step.styles.d.ts.map +1 -0
- package/dist/sds-stepper-step/sds-stepper-step.styles.js +261 -0
- package/dist/sds-stepper-step/sds-stepper-step.styles.js.map +1 -0
- package/dist/sds-switch/sds-switch.d.ts +2 -1
- package/dist/sds-switch/sds-switch.d.ts.map +1 -1
- package/dist/sds-switch/sds-switch.js +5 -13
- package/dist/sds-switch/sds-switch.js.map +1 -1
- package/dist/sds-textarea/sds-textarea.d.ts +3 -1
- package/dist/sds-textarea/sds-textarea.d.ts.map +1 -1
- package/dist/sds-textarea/sds-textarea.js +15 -5
- package/dist/sds-textarea/sds-textarea.js.map +1 -1
- package/dist/sds-textfield/sds-textfield.d.ts +3 -1
- package/dist/sds-textfield/sds-textfield.d.ts.map +1 -1
- package/dist/sds-textfield/sds-textfield.js +28 -16
- package/dist/sds-textfield/sds-textfield.js.map +1 -1
- package/dist/sheriff-web-components.js +421 -114
- package/package.json +26 -26
- package/web-types.json +346 -141
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@politiet/sheriff-web-components",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.5.0",
|
|
5
5
|
"framework": "web-components",
|
|
6
6
|
"description-markup": "markdown",
|
|
7
7
|
"contributions": {
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"value": {
|
|
183
183
|
"type": "() => void",
|
|
184
184
|
"required": true,
|
|
185
|
-
"default": "\"() => {\\n\\t\\tthis.
|
|
185
|
+
"default": "\"() => {\\n\\t\\tthis.dispatchSheriffEvent('sds-remove');\\n\\t}\""
|
|
186
186
|
},
|
|
187
187
|
"source": {
|
|
188
188
|
"module": "./src/sds-alert/sds-alert.ts",
|
|
@@ -220,11 +220,6 @@
|
|
|
220
220
|
"symbol": "SDSAlert._renderRemoveButton"
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
],
|
|
224
|
-
"events": [
|
|
225
|
-
{
|
|
226
|
-
"name": "sds-remove"
|
|
227
|
-
}
|
|
228
223
|
]
|
|
229
224
|
}
|
|
230
225
|
},
|
|
@@ -611,7 +606,7 @@
|
|
|
611
606
|
"value": {
|
|
612
607
|
"type": "(event: MouseEvent) => void",
|
|
613
608
|
"required": true,
|
|
614
|
-
"default": "\"(event: MouseEvent) => {\\n\\t\\tevent.preventDefault();\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tswitch (this.type) {\\n\\t\\t\\t\\tcase 'submit': {\\n\\t\\t\\t\\t\\tconst
|
|
609
|
+
"default": "\"(event: MouseEvent) => {\\n\\t\\tevent.preventDefault();\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tswitch (this.type) {\\n\\t\\t\\t\\tcase 'submit': {\\n\\t\\t\\t\\t\\tconst shouldSubmit = this.dispatchSheriffEvent('submit');\\n\\n\\t\\t\\t\\t\\tif (shouldSubmit) {\\n\\t\\t\\t\\t\\t\\tif (this.form) {\\n\\t\\t\\t\\t\\t\\t\\tconst root = this.getRootNode() as Document | ShadowRoot;\\n\\t\\t\\t\\t\\t\\t\\tconst formElement: HTMLFormElement | null = root.querySelector(`form#${this.form}`);\\n\\t\\t\\t\\t\\t\\t\\tformElement?.requestSubmit();\\n\\t\\t\\t\\t\\t\\t} else if (this.internals.form) {\\n\\t\\t\\t\\t\\t\\t\\tthis.internals.form.requestSubmit();\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tcase 'reset': {\\n\\t\\t\\t\\t\\tconst shouldReset = this.dispatchSheriffEvent('reset');\\n\\n\\t\\t\\t\\t\\tif (shouldReset) {\\n\\t\\t\\t\\t\\t\\tif (this.form) {\\n\\t\\t\\t\\t\\t\\t\\tconst root = this.getRootNode() as Document | ShadowRoot;\\n\\t\\t\\t\\t\\t\\t\\tconst formElement: HTMLFormElement | null = root.querySelector(`form#${this.form}`);\\n\\t\\t\\t\\t\\t\\t\\tformElement?.reset();\\n\\t\\t\\t\\t\\t\\t} else if (this.internals.form) {\\n\\t\\t\\t\\t\\t\\t\\tthis.internals.form.reset();\\n\\t\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t\\tbreak;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\tdefault:\\n\\t\\t\\t\\t\\tthis.dispatchSheriffEvent('click');\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\""
|
|
615
610
|
},
|
|
616
611
|
"source": {
|
|
617
612
|
"module": "./src/sds-button/sds-button.ts",
|
|
@@ -631,17 +626,6 @@
|
|
|
631
626
|
"symbol": "SDSButton.internals"
|
|
632
627
|
}
|
|
633
628
|
}
|
|
634
|
-
],
|
|
635
|
-
"events": [
|
|
636
|
-
{
|
|
637
|
-
"name": "submit"
|
|
638
|
-
},
|
|
639
|
-
{
|
|
640
|
-
"name": "reset"
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
"name": "click"
|
|
644
|
-
}
|
|
645
629
|
]
|
|
646
630
|
}
|
|
647
631
|
},
|
|
@@ -1024,7 +1008,7 @@
|
|
|
1024
1008
|
"value": {
|
|
1025
1009
|
"type": "(event: CustomEvent<any>) => void",
|
|
1026
1010
|
"required": true,
|
|
1027
|
-
"default": "\"(event: CustomEvent): void => {\\n\\t\\tconst checkbox = event.target as HTMLInputElement;\\n\\t\\tconst value = checkbox.value;\\n\\t\\tconst isChecked = checkbox.checked;\\n\\n\\t\\tthis._selectedValues = isChecked ? [...this._selectedValues, value] : this._selectedValues.filter((v) => v !== value);\\n\\n\\t\\tthis.
|
|
1011
|
+
"default": "\"(event: CustomEvent): void => {\\n\\t\\tconst checkbox = event.target as HTMLInputElement;\\n\\t\\tconst value = checkbox.value;\\n\\t\\tconst isChecked = checkbox.checked;\\n\\n\\t\\tthis._selectedValues = isChecked ? [...this._selectedValues, value] : this._selectedValues.filter((v) => v !== value);\\n\\n\\t\\tthis.dispatchSheriffEvent('sds-update');\\n\\t}\""
|
|
1028
1012
|
},
|
|
1029
1013
|
"source": {
|
|
1030
1014
|
"module": "./src/sds-checkbox-group/sds-checkbox-group.ts",
|
|
@@ -1058,11 +1042,6 @@
|
|
|
1058
1042
|
"symbol": "SDSCheckboxGroup.value"
|
|
1059
1043
|
}
|
|
1060
1044
|
}
|
|
1061
|
-
],
|
|
1062
|
-
"events": [
|
|
1063
|
-
{
|
|
1064
|
-
"name": "sds-update"
|
|
1065
|
-
}
|
|
1066
1045
|
]
|
|
1067
1046
|
}
|
|
1068
1047
|
},
|
|
@@ -1533,7 +1512,7 @@
|
|
|
1533
1512
|
"value": {
|
|
1534
1513
|
"type": "(event: Event) => void",
|
|
1535
1514
|
"required": true,
|
|
1536
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (this.disabled || this.readOnly) {\\n\\t\\t\\t(event.target as HTMLInputElement).checked = this.checked;\\n\\t\\t\\tevent.preventDefault();\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tconst elem = event.target as HTMLInputElement;\\n\\t\\tthis.checked = elem.checked;\\n\\t\\tthis.internals.setFormValue(elem.checked ? elem.value : null);\\n\\t\\tthis._validate();\\n\\t\\tthis.
|
|
1515
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (this.disabled || this.readOnly) {\\n\\t\\t\\t(event.target as HTMLInputElement).checked = this.checked;\\n\\t\\t\\tevent.preventDefault();\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tconst elem = event.target as HTMLInputElement;\\n\\t\\tthis.checked = elem.checked;\\n\\t\\tthis.internals.setFormValue(elem.checked ? elem.value : null);\\n\\t\\tthis._validate();\\n\\t\\tthis.dispatchSheriffEvent('change');\\n\\t}\""
|
|
1537
1516
|
},
|
|
1538
1517
|
"source": {
|
|
1539
1518
|
"module": "./src/sds-checkbox/sds-checkbox.ts",
|
|
@@ -1547,7 +1526,7 @@
|
|
|
1547
1526
|
"value": {
|
|
1548
1527
|
"type": "(event: FocusEvent) => void",
|
|
1549
1528
|
"required": true,
|
|
1550
|
-
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.
|
|
1529
|
+
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.dispatchSheriffEvent('focus');\\n\\t}\""
|
|
1551
1530
|
},
|
|
1552
1531
|
"source": {
|
|
1553
1532
|
"module": "./src/sds-checkbox/sds-checkbox.ts",
|
|
@@ -1561,7 +1540,7 @@
|
|
|
1561
1540
|
"value": {
|
|
1562
1541
|
"type": "(event: FocusEvent) => void",
|
|
1563
1542
|
"required": true,
|
|
1564
|
-
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.
|
|
1543
|
+
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.dispatchSheriffEvent('blur');\\n\\t}\""
|
|
1565
1544
|
},
|
|
1566
1545
|
"source": {
|
|
1567
1546
|
"module": "./src/sds-checkbox/sds-checkbox.ts",
|
|
@@ -1594,17 +1573,6 @@
|
|
|
1594
1573
|
"symbol": "SDSCheckbox.internals"
|
|
1595
1574
|
}
|
|
1596
1575
|
}
|
|
1597
|
-
],
|
|
1598
|
-
"events": [
|
|
1599
|
-
{
|
|
1600
|
-
"name": "change"
|
|
1601
|
-
},
|
|
1602
|
-
{
|
|
1603
|
-
"name": "focus"
|
|
1604
|
-
},
|
|
1605
|
-
{
|
|
1606
|
-
"name": "blur"
|
|
1607
|
-
}
|
|
1608
1576
|
]
|
|
1609
1577
|
}
|
|
1610
1578
|
},
|
|
@@ -1898,7 +1866,7 @@
|
|
|
1898
1866
|
"value": {
|
|
1899
1867
|
"type": "(event: Event) => void",
|
|
1900
1868
|
"required": true,
|
|
1901
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.preventDefault();\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tif (this.disabled || this.readonly) return;\\n\\t\\tthis.checked = !this.checked;\\n\\t\\tthis.internals.setFormValue(this.checked ? this.value ?? 'on' : null);\\n\\t\\tthis.
|
|
1869
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.preventDefault();\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tif (this.disabled || this.readonly) return;\\n\\t\\tthis.checked = !this.checked;\\n\\t\\tthis.internals.setFormValue(this.checked ? this.value ?? 'on' : null);\\n\\t\\tthis.dispatchSheriffEvent('change');\\n\\t}\""
|
|
1902
1870
|
},
|
|
1903
1871
|
"source": {
|
|
1904
1872
|
"module": "./src/sds-chip/sds-chip.ts",
|
|
@@ -1912,7 +1880,7 @@
|
|
|
1912
1880
|
"value": {
|
|
1913
1881
|
"type": "() => void",
|
|
1914
1882
|
"required": true,
|
|
1915
|
-
"default": "\"() => {\\n\\t\\tif (this.disabled || this.readonly) return;\\n\\t\\tthis.
|
|
1883
|
+
"default": "\"() => {\\n\\t\\tif (this.disabled || this.readonly) return;\\n\\t\\tthis.dispatchSheriffEvent('sds-remove');\\n\\t}\""
|
|
1916
1884
|
},
|
|
1917
1885
|
"source": {
|
|
1918
1886
|
"module": "./src/sds-chip/sds-chip.ts",
|
|
@@ -1946,14 +1914,6 @@
|
|
|
1946
1914
|
"symbol": "SDSChip.internals"
|
|
1947
1915
|
}
|
|
1948
1916
|
}
|
|
1949
|
-
],
|
|
1950
|
-
"events": [
|
|
1951
|
-
{
|
|
1952
|
-
"name": "change"
|
|
1953
|
-
},
|
|
1954
|
-
{
|
|
1955
|
-
"name": "sds-remove"
|
|
1956
|
-
}
|
|
1957
1917
|
]
|
|
1958
1918
|
}
|
|
1959
1919
|
},
|
|
@@ -2090,18 +2050,13 @@
|
|
|
2090
2050
|
"value": {
|
|
2091
2051
|
"type": "(event: Event) => void",
|
|
2092
2052
|
"required": true,
|
|
2093
|
-
"default": "\"(event: Event) => {\\n\\t\\tconst details = event.currentTarget as HTMLDetailsElement;\\n\\t\\tif (this.open !== details.open) {\\n\\t\\t\\tthis.open = details.open;\\n\\t\\t}\\n\\n\\t\\tthis.
|
|
2053
|
+
"default": "\"(event: Event) => {\\n\\t\\tconst details = event.currentTarget as HTMLDetailsElement;\\n\\t\\tif (this.open !== details.open) {\\n\\t\\t\\tthis.open = details.open;\\n\\t\\t}\\n\\n\\t\\tthis.dispatchSheriffEvent('sds-toggle', { open: details.open });\\n\\t}\""
|
|
2094
2054
|
},
|
|
2095
2055
|
"source": {
|
|
2096
2056
|
"module": "./src/sds-details/sds-details.ts",
|
|
2097
2057
|
"symbol": "SDSDetails._handleToggle"
|
|
2098
2058
|
}
|
|
2099
2059
|
}
|
|
2100
|
-
],
|
|
2101
|
-
"events": [
|
|
2102
|
-
{
|
|
2103
|
-
"name": "sds-toggle"
|
|
2104
|
-
}
|
|
2105
2060
|
]
|
|
2106
2061
|
}
|
|
2107
2062
|
},
|
|
@@ -2274,7 +2229,7 @@
|
|
|
2274
2229
|
"value": {
|
|
2275
2230
|
"type": "() => void",
|
|
2276
2231
|
"required": true,
|
|
2277
|
-
"default": "\"(): void => {\\n\\t\\tthis.open = false;\\n\\t\\tthis.
|
|
2232
|
+
"default": "\"(): void => {\\n\\t\\tthis.open = false;\\n\\t\\tthis.dispatchSheriffEvent('sds-close');\\n\\t}\""
|
|
2278
2233
|
},
|
|
2279
2234
|
"source": {
|
|
2280
2235
|
"module": "./src/sds-dialog/sds-dialog.ts",
|
|
@@ -2323,11 +2278,6 @@
|
|
|
2323
2278
|
"symbol": "SDSDialog._handleAutoFocus"
|
|
2324
2279
|
}
|
|
2325
2280
|
}
|
|
2326
|
-
],
|
|
2327
|
-
"events": [
|
|
2328
|
-
{
|
|
2329
|
-
"name": "sds-close"
|
|
2330
|
-
}
|
|
2331
2281
|
]
|
|
2332
2282
|
}
|
|
2333
2283
|
},
|
|
@@ -2773,18 +2723,13 @@
|
|
|
2773
2723
|
"value": {
|
|
2774
2724
|
"type": "() => void",
|
|
2775
2725
|
"required": true,
|
|
2776
|
-
"default": "\"() => {\\n\\t\\tthis.
|
|
2726
|
+
"default": "\"() => {\\n\\t\\tthis.dispatchSheriffEvent('sds-remove');\\n\\t}\""
|
|
2777
2727
|
},
|
|
2778
2728
|
"source": {
|
|
2779
2729
|
"module": "./src/sds-notification/sds-notification.ts",
|
|
2780
2730
|
"symbol": "SDSNotification._remove"
|
|
2781
2731
|
}
|
|
2782
2732
|
}
|
|
2783
|
-
],
|
|
2784
|
-
"events": [
|
|
2785
|
-
{
|
|
2786
|
-
"name": "sds-remove"
|
|
2787
|
-
}
|
|
2788
2733
|
]
|
|
2789
2734
|
}
|
|
2790
2735
|
},
|
|
@@ -3111,7 +3056,7 @@
|
|
|
3111
3056
|
"value": {
|
|
3112
3057
|
"type": "(event: Event) => void",
|
|
3113
3058
|
"required": true,
|
|
3114
|
-
"default": "\"(event: Event): void => {\\n\\t\\tconst target = event.composedPath().find((el) => el instanceof HTMLElement && el.tagName === 'SDS-RADIO') as HTMLElement & { value: string };\\n\\n\\t\\tif (target) {\\n\\t\\t\\tthis._selectedValue = target.getAttribute('value') || null;\\n\\t\\t\\tthis.
|
|
3059
|
+
"default": "\"(event: Event): void => {\\n\\t\\tconst target = event.composedPath().find((el) => el instanceof HTMLElement && el.tagName === 'SDS-RADIO') as HTMLElement & { value: string };\\n\\n\\t\\tif (target) {\\n\\t\\t\\tthis._selectedValue = target.getAttribute('value') || null;\\n\\t\\t\\tthis.dispatchSheriffEvent('sds-update');\\n\\t\\t}\\n\\t}\""
|
|
3115
3060
|
},
|
|
3116
3061
|
"source": {
|
|
3117
3062
|
"module": "./src/sds-radio-group/sds-radio-group.ts",
|
|
@@ -3145,11 +3090,6 @@
|
|
|
3145
3090
|
"symbol": "SDSRadioGroup.value"
|
|
3146
3091
|
}
|
|
3147
3092
|
}
|
|
3148
|
-
],
|
|
3149
|
-
"events": [
|
|
3150
|
-
{
|
|
3151
|
-
"name": "sds-update"
|
|
3152
|
-
}
|
|
3153
3093
|
]
|
|
3154
3094
|
}
|
|
3155
3095
|
},
|
|
@@ -3700,7 +3640,7 @@
|
|
|
3700
3640
|
"value": {
|
|
3701
3641
|
"type": "(event: Event) => void",
|
|
3702
3642
|
"required": true,
|
|
3703
|
-
"default": "\"(event: Event) => {\\n\\t\\tif (this.disabled || this.readOnly) {\\n\\t\\t\\t(event.target as HTMLInputElement).checked = this.checked ?? false;\\n\\t\\t\\tevent.preventDefault();\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tconst elem = event.target as HTMLInputElement;\\n\\t\\tthis.checked = elem.checked;\\n\\t\\tif (this.checked) {\\n\\t\\t\\tthis._uncheckSiblings();\\n\\t\\t}\\n\\t\\tthis._updateGroupValidation();\\n\\t\\tthis.
|
|
3643
|
+
"default": "\"(event: Event) => {\\n\\t\\tif (this.disabled || this.readOnly) {\\n\\t\\t\\t(event.target as HTMLInputElement).checked = this.checked ?? false;\\n\\t\\t\\tevent.preventDefault();\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tconst elem = event.target as HTMLInputElement;\\n\\t\\tthis.checked = elem.checked;\\n\\t\\tif (this.checked) {\\n\\t\\t\\tthis._uncheckSiblings();\\n\\t\\t}\\n\\t\\tthis._updateGroupValidation();\\n\\t\\tthis.dispatchSheriffEvent('change');\\n\\t}\""
|
|
3704
3644
|
},
|
|
3705
3645
|
"source": {
|
|
3706
3646
|
"module": "./src/sds-radio/sds-radio.ts",
|
|
@@ -3714,7 +3654,7 @@
|
|
|
3714
3654
|
"value": {
|
|
3715
3655
|
"type": "(event: Event) => void",
|
|
3716
3656
|
"required": true,
|
|
3717
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.
|
|
3657
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.dispatchSheriffEvent('focus');\\n\\t}\""
|
|
3718
3658
|
},
|
|
3719
3659
|
"source": {
|
|
3720
3660
|
"module": "./src/sds-radio/sds-radio.ts",
|
|
@@ -3728,7 +3668,7 @@
|
|
|
3728
3668
|
"value": {
|
|
3729
3669
|
"type": "(event: Event) => void",
|
|
3730
3670
|
"required": true,
|
|
3731
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.
|
|
3671
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.dispatchSheriffEvent('blur');\\n\\t}\""
|
|
3732
3672
|
},
|
|
3733
3673
|
"source": {
|
|
3734
3674
|
"module": "./src/sds-radio/sds-radio.ts",
|
|
@@ -3816,17 +3756,6 @@
|
|
|
3816
3756
|
"symbol": "SDSRadio.internals"
|
|
3817
3757
|
}
|
|
3818
3758
|
}
|
|
3819
|
-
],
|
|
3820
|
-
"events": [
|
|
3821
|
-
{
|
|
3822
|
-
"name": "change"
|
|
3823
|
-
},
|
|
3824
|
-
{
|
|
3825
|
-
"name": "focus"
|
|
3826
|
-
},
|
|
3827
|
-
{
|
|
3828
|
-
"name": "blur"
|
|
3829
|
-
}
|
|
3830
3759
|
]
|
|
3831
3760
|
}
|
|
3832
3761
|
},
|
|
@@ -4276,7 +4205,7 @@
|
|
|
4276
4205
|
"value": {
|
|
4277
4206
|
"type": "(event: Event) => void",
|
|
4278
4207
|
"required": true,
|
|
4279
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tif (!(event.target instanceof HTMLSelectElement)) return;\\n\\n\\t\\tif (this.disabled || this.readOnly) {\\n\\t\\t\\tevent.target.value = this.value ?? '';\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tthis.value = event.target.value;\\n\\n\\t\\tthis._setFormValue(this.value);\\n\\t\\tthis.updateValidity();\\n\\n\\t\\tthis.
|
|
4208
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tif (!(event.target instanceof HTMLSelectElement)) return;\\n\\n\\t\\tif (this.disabled || this.readOnly) {\\n\\t\\t\\tevent.target.value = this.value ?? '';\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tthis.value = event.target.value;\\n\\n\\t\\tthis._setFormValue(this.value);\\n\\t\\tthis.updateValidity();\\n\\n\\t\\tthis.dispatchSheriffEvent('input');\\n\\t\\tthis.dispatchSheriffEvent('change');\\n\\t}\""
|
|
4280
4209
|
},
|
|
4281
4210
|
"source": {
|
|
4282
4211
|
"module": "./src/sds-select/sds-select.ts",
|
|
@@ -4290,7 +4219,7 @@
|
|
|
4290
4219
|
"value": {
|
|
4291
4220
|
"type": "(event: FocusEvent) => void",
|
|
4292
4221
|
"required": true,
|
|
4293
|
-
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.
|
|
4222
|
+
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.dispatchSheriffEvent('focus');\\n\\t}\""
|
|
4294
4223
|
},
|
|
4295
4224
|
"source": {
|
|
4296
4225
|
"module": "./src/sds-select/sds-select.ts",
|
|
@@ -4304,7 +4233,7 @@
|
|
|
4304
4233
|
"value": {
|
|
4305
4234
|
"type": "(event: FocusEvent) => void",
|
|
4306
4235
|
"required": true,
|
|
4307
|
-
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.
|
|
4236
|
+
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.dispatchSheriffEvent('blur');\\n\\t}\""
|
|
4308
4237
|
},
|
|
4309
4238
|
"source": {
|
|
4310
4239
|
"module": "./src/sds-select/sds-select.ts",
|
|
@@ -4338,19 +4267,328 @@
|
|
|
4338
4267
|
"symbol": "SDSSelect.internals"
|
|
4339
4268
|
}
|
|
4340
4269
|
}
|
|
4341
|
-
]
|
|
4342
|
-
|
|
4270
|
+
]
|
|
4271
|
+
}
|
|
4272
|
+
},
|
|
4273
|
+
{
|
|
4274
|
+
"name": "sds-stepper-step",
|
|
4275
|
+
"source": {
|
|
4276
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4277
|
+
"symbol": "SDSStepperStep"
|
|
4278
|
+
},
|
|
4279
|
+
"attributes": [
|
|
4280
|
+
{
|
|
4281
|
+
"name": "complete",
|
|
4282
|
+
"required": false,
|
|
4283
|
+
"priority": "normal",
|
|
4284
|
+
"value": {
|
|
4285
|
+
"type": [
|
|
4286
|
+
"boolean",
|
|
4287
|
+
"undefined"
|
|
4288
|
+
],
|
|
4289
|
+
"required": false,
|
|
4290
|
+
"default": "false"
|
|
4291
|
+
},
|
|
4292
|
+
"source": {
|
|
4293
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4294
|
+
"symbol": "SDSStepperStep.complete"
|
|
4295
|
+
}
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
"name": "interactive",
|
|
4299
|
+
"required": false,
|
|
4300
|
+
"priority": "normal",
|
|
4301
|
+
"value": {
|
|
4302
|
+
"type": [
|
|
4303
|
+
"boolean",
|
|
4304
|
+
"undefined"
|
|
4305
|
+
],
|
|
4306
|
+
"required": false,
|
|
4307
|
+
"default": "false"
|
|
4308
|
+
},
|
|
4309
|
+
"source": {
|
|
4310
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4311
|
+
"symbol": "SDSStepperStep.interactive"
|
|
4312
|
+
}
|
|
4313
|
+
},
|
|
4314
|
+
{
|
|
4315
|
+
"name": "active",
|
|
4316
|
+
"required": false,
|
|
4317
|
+
"priority": "normal",
|
|
4318
|
+
"value": {
|
|
4319
|
+
"type": [
|
|
4320
|
+
"boolean",
|
|
4321
|
+
"undefined"
|
|
4322
|
+
],
|
|
4323
|
+
"required": false,
|
|
4324
|
+
"default": "false"
|
|
4325
|
+
},
|
|
4326
|
+
"source": {
|
|
4327
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4328
|
+
"symbol": "SDSStepperStep.active"
|
|
4329
|
+
}
|
|
4330
|
+
}
|
|
4331
|
+
],
|
|
4332
|
+
"js": {
|
|
4333
|
+
"properties": [
|
|
4343
4334
|
{
|
|
4344
|
-
"name": "
|
|
4335
|
+
"name": "styles",
|
|
4336
|
+
"required": false,
|
|
4337
|
+
"priority": "normal",
|
|
4338
|
+
"value": {
|
|
4339
|
+
"type": "CSSResult[]",
|
|
4340
|
+
"required": true,
|
|
4341
|
+
"default": "[\"styles\"]"
|
|
4342
|
+
},
|
|
4343
|
+
"source": {
|
|
4344
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4345
|
+
"symbol": "SDSStepperStep.styles"
|
|
4346
|
+
}
|
|
4345
4347
|
},
|
|
4346
4348
|
{
|
|
4347
|
-
"name": "
|
|
4349
|
+
"name": "shadowRootOptions",
|
|
4350
|
+
"required": false,
|
|
4351
|
+
"priority": "normal",
|
|
4352
|
+
"value": {
|
|
4353
|
+
"type": "ShadowRootInit",
|
|
4354
|
+
"required": true,
|
|
4355
|
+
"default": "{\"delegatesFocus\":true}"
|
|
4356
|
+
},
|
|
4357
|
+
"source": {
|
|
4358
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4359
|
+
"symbol": "SDSStepperStep.shadowRootOptions"
|
|
4360
|
+
}
|
|
4348
4361
|
},
|
|
4349
4362
|
{
|
|
4350
|
-
"name": "
|
|
4363
|
+
"name": "complete",
|
|
4364
|
+
"required": false,
|
|
4365
|
+
"priority": "normal",
|
|
4366
|
+
"value": {
|
|
4367
|
+
"type": [
|
|
4368
|
+
"boolean",
|
|
4369
|
+
"undefined"
|
|
4370
|
+
],
|
|
4371
|
+
"required": false,
|
|
4372
|
+
"default": "false"
|
|
4373
|
+
},
|
|
4374
|
+
"source": {
|
|
4375
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4376
|
+
"symbol": "SDSStepperStep.complete"
|
|
4377
|
+
}
|
|
4378
|
+
},
|
|
4379
|
+
{
|
|
4380
|
+
"name": "interactive",
|
|
4381
|
+
"required": false,
|
|
4382
|
+
"priority": "normal",
|
|
4383
|
+
"value": {
|
|
4384
|
+
"type": [
|
|
4385
|
+
"boolean",
|
|
4386
|
+
"undefined"
|
|
4387
|
+
],
|
|
4388
|
+
"required": false,
|
|
4389
|
+
"default": "false"
|
|
4390
|
+
},
|
|
4391
|
+
"source": {
|
|
4392
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4393
|
+
"symbol": "SDSStepperStep.interactive"
|
|
4394
|
+
}
|
|
4395
|
+
},
|
|
4396
|
+
{
|
|
4397
|
+
"name": "active",
|
|
4398
|
+
"required": false,
|
|
4399
|
+
"priority": "normal",
|
|
4400
|
+
"value": {
|
|
4401
|
+
"type": [
|
|
4402
|
+
"boolean",
|
|
4403
|
+
"undefined"
|
|
4404
|
+
],
|
|
4405
|
+
"required": false,
|
|
4406
|
+
"default": "false"
|
|
4407
|
+
},
|
|
4408
|
+
"source": {
|
|
4409
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4410
|
+
"symbol": "SDSStepperStep.active"
|
|
4411
|
+
}
|
|
4351
4412
|
},
|
|
4352
4413
|
{
|
|
4353
|
-
"name": "
|
|
4414
|
+
"name": "_handleClick",
|
|
4415
|
+
"required": false,
|
|
4416
|
+
"priority": "lowest",
|
|
4417
|
+
"value": {
|
|
4418
|
+
"type": "(event: MouseEvent) => void",
|
|
4419
|
+
"required": true,
|
|
4420
|
+
"default": "\"(event: MouseEvent) => {\\n\\t\\tevent.preventDefault();\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tthis.dispatchSheriffEvent('_sds-step-clicked');\\n\\t}\""
|
|
4421
|
+
},
|
|
4422
|
+
"source": {
|
|
4423
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4424
|
+
"symbol": "SDSStepperStep._handleClick"
|
|
4425
|
+
}
|
|
4426
|
+
},
|
|
4427
|
+
{
|
|
4428
|
+
"name": "_renderNonInteractiveStep",
|
|
4429
|
+
"required": false,
|
|
4430
|
+
"priority": "lowest",
|
|
4431
|
+
"value": {
|
|
4432
|
+
"type": "() => TemplateResult<1>",
|
|
4433
|
+
"required": true,
|
|
4434
|
+
"default": "\"() => {\\n\\t\\treturn html`<div class=\\\"sds-stepper-step__step--static\\\">\\n\\t\\t\\t<span class=\\\"sds-stepper-step__counter\\\"></span>\\n\\t\\t\\t<div class=\\\"sds-stepper-step__label\\\"><slot></slot></div>\\n\\t\\t</div>`;\\n\\t}\""
|
|
4435
|
+
},
|
|
4436
|
+
"source": {
|
|
4437
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4438
|
+
"symbol": "SDSStepperStep._renderNonInteractiveStep"
|
|
4439
|
+
}
|
|
4440
|
+
},
|
|
4441
|
+
{
|
|
4442
|
+
"name": "_renderInteractiveStep",
|
|
4443
|
+
"required": false,
|
|
4444
|
+
"priority": "lowest",
|
|
4445
|
+
"value": {
|
|
4446
|
+
"type": "() => TemplateResult<1>",
|
|
4447
|
+
"required": true,
|
|
4448
|
+
"default": "\"() => {\\n\\t\\treturn html`<button type=\\\"button\\\" role=\\\"tab\\\" aria-selected=\\\"${this.active ? 'true' : 'false'}\\\" id=\\\"button\\\" class=\\\"sds-stepper-step__step\\\" @click=\\\"${this._handleClick}\\\">\\n\\t\\t\\t<span class=\\\"sds-stepper-step__counter\\\"></span>\\n\\t\\t\\t<div class=\\\"sds-stepper-step__label\\\"><slot></slot></div>\\n\\t\\t</button>`;\\n\\t}\""
|
|
4449
|
+
},
|
|
4450
|
+
"source": {
|
|
4451
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4452
|
+
"symbol": "SDSStepperStep._renderInteractiveStep"
|
|
4453
|
+
}
|
|
4454
|
+
},
|
|
4455
|
+
{
|
|
4456
|
+
"name": "internals",
|
|
4457
|
+
"required": false,
|
|
4458
|
+
"priority": "normal",
|
|
4459
|
+
"value": {
|
|
4460
|
+
"type": "ElementInternals",
|
|
4461
|
+
"required": true
|
|
4462
|
+
},
|
|
4463
|
+
"source": {
|
|
4464
|
+
"module": "./src/sds-stepper-step/sds-stepper-step.ts",
|
|
4465
|
+
"symbol": "SDSStepperStep.internals"
|
|
4466
|
+
}
|
|
4467
|
+
}
|
|
4468
|
+
]
|
|
4469
|
+
}
|
|
4470
|
+
},
|
|
4471
|
+
{
|
|
4472
|
+
"name": "sds-stepper",
|
|
4473
|
+
"source": {
|
|
4474
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4475
|
+
"symbol": "SDSStepper"
|
|
4476
|
+
},
|
|
4477
|
+
"attributes": [
|
|
4478
|
+
{
|
|
4479
|
+
"name": "orientation",
|
|
4480
|
+
"required": false,
|
|
4481
|
+
"priority": "normal",
|
|
4482
|
+
"value": {
|
|
4483
|
+
"kind": "plain",
|
|
4484
|
+
"type": "\"horizontal\" | \"vertical\" | undefined",
|
|
4485
|
+
"required": true,
|
|
4486
|
+
"default": "\"horizontal\""
|
|
4487
|
+
},
|
|
4488
|
+
"source": {
|
|
4489
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4490
|
+
"symbol": "SDSStepper.orientation"
|
|
4491
|
+
}
|
|
4492
|
+
}
|
|
4493
|
+
],
|
|
4494
|
+
"js": {
|
|
4495
|
+
"properties": [
|
|
4496
|
+
{
|
|
4497
|
+
"name": "styles",
|
|
4498
|
+
"required": false,
|
|
4499
|
+
"priority": "normal",
|
|
4500
|
+
"value": {
|
|
4501
|
+
"type": "CSSResult[]",
|
|
4502
|
+
"required": true,
|
|
4503
|
+
"default": "[\"styles\"]"
|
|
4504
|
+
},
|
|
4505
|
+
"source": {
|
|
4506
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4507
|
+
"symbol": "SDSStepper.styles"
|
|
4508
|
+
}
|
|
4509
|
+
},
|
|
4510
|
+
{
|
|
4511
|
+
"name": "orientation",
|
|
4512
|
+
"required": false,
|
|
4513
|
+
"priority": "normal",
|
|
4514
|
+
"value": {
|
|
4515
|
+
"kind": "plain",
|
|
4516
|
+
"type": "\"horizontal\" | \"vertical\" | undefined",
|
|
4517
|
+
"required": true,
|
|
4518
|
+
"default": "\"horizontal\""
|
|
4519
|
+
},
|
|
4520
|
+
"source": {
|
|
4521
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4522
|
+
"symbol": "SDSStepper.orientation"
|
|
4523
|
+
}
|
|
4524
|
+
},
|
|
4525
|
+
{
|
|
4526
|
+
"name": "steps",
|
|
4527
|
+
"required": false,
|
|
4528
|
+
"priority": "lowest",
|
|
4529
|
+
"value": {
|
|
4530
|
+
"type": "SDSStepperStep[]",
|
|
4531
|
+
"required": true
|
|
4532
|
+
},
|
|
4533
|
+
"source": {
|
|
4534
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4535
|
+
"symbol": "SDSStepper.steps"
|
|
4536
|
+
}
|
|
4537
|
+
},
|
|
4538
|
+
{
|
|
4539
|
+
"name": "_setActiveStep",
|
|
4540
|
+
"required": false,
|
|
4541
|
+
"priority": "lowest",
|
|
4542
|
+
"value": {
|
|
4543
|
+
"type": "(steps: SDSStepperStep[], activeIndex: number) => void",
|
|
4544
|
+
"required": true,
|
|
4545
|
+
"default": "\"(steps: SDSStepperStep[], activeIndex: number): void => {\\n\\t\\tsteps.forEach((step, index) => {\\n\\t\\t\\tstep.active = index === activeIndex;\\n\\t\\t});\\n\\t}\""
|
|
4546
|
+
},
|
|
4547
|
+
"source": {
|
|
4548
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4549
|
+
"symbol": "SDSStepper._setActiveStep"
|
|
4550
|
+
}
|
|
4551
|
+
},
|
|
4552
|
+
{
|
|
4553
|
+
"name": "_handleChildClick",
|
|
4554
|
+
"required": false,
|
|
4555
|
+
"priority": "lowest",
|
|
4556
|
+
"value": {
|
|
4557
|
+
"type": "(event: MouseEvent) => void",
|
|
4558
|
+
"required": true,
|
|
4559
|
+
"default": "\"(event: MouseEvent) => {\\n\\t\\tevent.preventDefault();\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tconst step: SDSStepperStep | undefined = event.composedPath().find((n): n is SDSStepperStep => n instanceof SDSStepperStep);\\n\\n\\t\\tif (!step) return;\\n\\n\\t\\tconst index = this.steps.indexOf(step);\\n\\t\\tif (index === -1) return;\\n\\n\\t\\tthis._setActiveStep(this.steps, index);\\n\\t\\tthis.dispatchSheriffEvent('change', { index });\\n\\t}\""
|
|
4560
|
+
},
|
|
4561
|
+
"source": {
|
|
4562
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4563
|
+
"symbol": "SDSStepper._handleChildClick"
|
|
4564
|
+
}
|
|
4565
|
+
},
|
|
4566
|
+
{
|
|
4567
|
+
"name": "role",
|
|
4568
|
+
"required": false,
|
|
4569
|
+
"priority": "normal",
|
|
4570
|
+
"value": {
|
|
4571
|
+
"type": "string",
|
|
4572
|
+
"required": true,
|
|
4573
|
+
"default": "\"tablist\""
|
|
4574
|
+
},
|
|
4575
|
+
"source": {
|
|
4576
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4577
|
+
"symbol": "SDSStepper.role"
|
|
4578
|
+
}
|
|
4579
|
+
},
|
|
4580
|
+
{
|
|
4581
|
+
"name": "internals",
|
|
4582
|
+
"required": false,
|
|
4583
|
+
"priority": "normal",
|
|
4584
|
+
"value": {
|
|
4585
|
+
"type": "ElementInternals",
|
|
4586
|
+
"required": true
|
|
4587
|
+
},
|
|
4588
|
+
"source": {
|
|
4589
|
+
"module": "./src/sds-stepper/sds-stepper.ts",
|
|
4590
|
+
"symbol": "SDSStepper.internals"
|
|
4591
|
+
}
|
|
4354
4592
|
}
|
|
4355
4593
|
]
|
|
4356
4594
|
}
|
|
@@ -4669,7 +4907,7 @@
|
|
|
4669
4907
|
"value": {
|
|
4670
4908
|
"type": "(event: Event) => void",
|
|
4671
4909
|
"required": true,
|
|
4672
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tconst elem = event.target as HTMLInputElement;\\n\\t\\t\\tthis.checked = elem.checked;\\n\\t\\t\\tthis.internals.setFormValue(this.checked ? 'on' : 'off');\\n\\t\\t\\tthis.
|
|
4910
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tconst elem = event.target as HTMLInputElement;\\n\\t\\t\\tthis.checked = elem.checked;\\n\\t\\t\\tthis.internals.setFormValue(this.checked ? 'on' : 'off');\\n\\t\\t\\tthis.dispatchSheriffEvent('change');\\n\\t\\t}\\n\\t}\""
|
|
4673
4911
|
},
|
|
4674
4912
|
"source": {
|
|
4675
4913
|
"module": "./src/sds-switch/sds-switch.ts",
|
|
@@ -4683,7 +4921,7 @@
|
|
|
4683
4921
|
"value": {
|
|
4684
4922
|
"type": "(event: Event) => void",
|
|
4685
4923
|
"required": true,
|
|
4686
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tthis.
|
|
4924
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tthis.dispatchSheriffEvent('focus');\\n\\t\\t}\\n\\t}\""
|
|
4687
4925
|
},
|
|
4688
4926
|
"source": {
|
|
4689
4927
|
"module": "./src/sds-switch/sds-switch.ts",
|
|
@@ -4697,7 +4935,7 @@
|
|
|
4697
4935
|
"value": {
|
|
4698
4936
|
"type": "(event: Event) => void",
|
|
4699
4937
|
"required": true,
|
|
4700
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled && !this.disabled) {\\n\\t\\t\\tthis.
|
|
4938
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled && !this.disabled) {\\n\\t\\t\\tthis.dispatchSheriffEvent('blur');\\n\\t\\t}\\n\\t}\""
|
|
4701
4939
|
},
|
|
4702
4940
|
"source": {
|
|
4703
4941
|
"module": "./src/sds-switch/sds-switch.ts",
|
|
@@ -4744,17 +4982,6 @@
|
|
|
4744
4982
|
"symbol": "SDSSwitch.internals"
|
|
4745
4983
|
}
|
|
4746
4984
|
}
|
|
4747
|
-
],
|
|
4748
|
-
"events": [
|
|
4749
|
-
{
|
|
4750
|
-
"name": "change"
|
|
4751
|
-
},
|
|
4752
|
-
{
|
|
4753
|
-
"name": "focus"
|
|
4754
|
-
},
|
|
4755
|
-
{
|
|
4756
|
-
"name": "blur"
|
|
4757
|
-
}
|
|
4758
4985
|
]
|
|
4759
4986
|
}
|
|
4760
4987
|
},
|
|
@@ -5561,7 +5788,7 @@
|
|
|
5561
5788
|
"value": {
|
|
5562
5789
|
"type": "(event: InputEvent) => void",
|
|
5563
5790
|
"required": true,
|
|
5564
|
-
"default": "\"(event: InputEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (this.disabled || !(event.target instanceof HTMLTextAreaElement)) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tthis.value = event.target.value;\\n\\t\\tthis.internals.setFormValue(this.value === '' ? null : this.value);\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.
|
|
5791
|
+
"default": "\"(event: InputEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (this.disabled || !(event.target instanceof HTMLTextAreaElement)) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tthis.value = event.target.value;\\n\\t\\tthis.internals.setFormValue(this.value === '' ? null : this.value);\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.dispatchSheriffEvent(event.type);\\n\\t}\""
|
|
5565
5792
|
},
|
|
5566
5793
|
"source": {
|
|
5567
5794
|
"module": "./src/sds-textarea/sds-textarea.ts",
|
|
@@ -5575,7 +5802,7 @@
|
|
|
5575
5802
|
"value": {
|
|
5576
5803
|
"type": "(event: Event) => void",
|
|
5577
5804
|
"required": true,
|
|
5578
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tthis.
|
|
5805
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tthis.dispatchSheriffEvent('select');\\n\\t\\t}\\n\\t}\""
|
|
5579
5806
|
},
|
|
5580
5807
|
"source": {
|
|
5581
5808
|
"module": "./src/sds-textarea/sds-textarea.ts",
|
|
@@ -5589,7 +5816,7 @@
|
|
|
5589
5816
|
"value": {
|
|
5590
5817
|
"type": "(event: FocusEvent) => void",
|
|
5591
5818
|
"required": true,
|
|
5592
|
-
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.
|
|
5819
|
+
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.dispatchSheriffEvent('focus');\\n\\t}\""
|
|
5593
5820
|
},
|
|
5594
5821
|
"source": {
|
|
5595
5822
|
"module": "./src/sds-textarea/sds-textarea.ts",
|
|
@@ -5603,7 +5830,7 @@
|
|
|
5603
5830
|
"value": {
|
|
5604
5831
|
"type": "(event: FocusEvent) => void",
|
|
5605
5832
|
"required": true,
|
|
5606
|
-
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.
|
|
5833
|
+
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.dispatchSheriffEvent('blur');\\n\\t}\""
|
|
5607
5834
|
},
|
|
5608
5835
|
"source": {
|
|
5609
5836
|
"module": "./src/sds-textarea/sds-textarea.ts",
|
|
@@ -5655,17 +5882,6 @@
|
|
|
5655
5882
|
"symbol": "SDSTextArea.internals"
|
|
5656
5883
|
}
|
|
5657
5884
|
}
|
|
5658
|
-
],
|
|
5659
|
-
"events": [
|
|
5660
|
-
{
|
|
5661
|
-
"name": "select"
|
|
5662
|
-
},
|
|
5663
|
-
{
|
|
5664
|
-
"name": "focus"
|
|
5665
|
-
},
|
|
5666
|
-
{
|
|
5667
|
-
"name": "blur"
|
|
5668
|
-
}
|
|
5669
5885
|
]
|
|
5670
5886
|
}
|
|
5671
5887
|
},
|
|
@@ -6276,7 +6492,7 @@
|
|
|
6276
6492
|
"value": {
|
|
6277
6493
|
"type": "(event: InputEvent) => void",
|
|
6278
6494
|
"required": true,
|
|
6279
|
-
"default": "\"(event: InputEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (this.disabled || !(event.target instanceof HTMLInputElement)) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tthis.value = event.target.value;\\n\\t\\tthis.internals.setFormValue(this.value === '' ? null : this.value);\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.
|
|
6495
|
+
"default": "\"(event: InputEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (this.disabled || !(event.target instanceof HTMLInputElement)) {\\n\\t\\t\\treturn;\\n\\t\\t}\\n\\n\\t\\tthis.value = event.target.value;\\n\\t\\tthis.internals.setFormValue(this.value === '' ? null : this.value);\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.dispatchSheriffEvent(event.type);\\n\\t}\""
|
|
6280
6496
|
},
|
|
6281
6497
|
"source": {
|
|
6282
6498
|
"module": "./src/sds-textfield/sds-textfield.ts",
|
|
@@ -6290,7 +6506,7 @@
|
|
|
6290
6506
|
"value": {
|
|
6291
6507
|
"type": "(event: Event) => void",
|
|
6292
6508
|
"required": true,
|
|
6293
|
-
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tthis.
|
|
6509
|
+
"default": "\"(event: Event) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tif (!this.disabled) {\\n\\t\\t\\tthis.dispatchSheriffEvent('select');\\n\\t\\t}\\n\\t}\""
|
|
6294
6510
|
},
|
|
6295
6511
|
"source": {
|
|
6296
6512
|
"module": "./src/sds-textfield/sds-textfield.ts",
|
|
@@ -6304,7 +6520,7 @@
|
|
|
6304
6520
|
"value": {
|
|
6305
6521
|
"type": "(event: FocusEvent) => void",
|
|
6306
6522
|
"required": true,
|
|
6307
|
-
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.
|
|
6523
|
+
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.dispatchSheriffEvent('focus');\\n\\t}\""
|
|
6308
6524
|
},
|
|
6309
6525
|
"source": {
|
|
6310
6526
|
"module": "./src/sds-textfield/sds-textfield.ts",
|
|
@@ -6318,7 +6534,7 @@
|
|
|
6318
6534
|
"value": {
|
|
6319
6535
|
"type": "(event: FocusEvent) => void",
|
|
6320
6536
|
"required": true,
|
|
6321
|
-
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.
|
|
6537
|
+
"default": "\"(event: FocusEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\t\\tthis.updateValidity();\\n\\t\\tthis.dispatchSheriffEvent('blur');\\n\\t}\""
|
|
6322
6538
|
},
|
|
6323
6539
|
"source": {
|
|
6324
6540
|
"module": "./src/sds-textfield/sds-textfield.ts",
|
|
@@ -6332,7 +6548,7 @@
|
|
|
6332
6548
|
"value": {
|
|
6333
6549
|
"type": "(event: KeyboardEvent) => void",
|
|
6334
6550
|
"required": true,
|
|
6335
|
-
"default": "\"(event: KeyboardEvent) => {\\n\\t\\
|
|
6551
|
+
"default": "\"(event: KeyboardEvent) => {\\n\\t\\tevent.stopImmediatePropagation();\\n\\n\\t\\tconst shouldContinue = this.dispatchKeyboardEvent('keydown', event);\\n\\n\\t\\tif (!shouldContinue) return;\\n\\n\\t\\tif (event.key === 'Enter') {\\n\\t\\t\\tconst form = this.internals?.form;\\n\\n\\t\\t\\tif (form?.requestSubmit) {\\n\\t\\t\\t\\t// Try to use requestSubmit as this will run form validation before submitting\\n\\t\\t\\t\\t// https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit#usage_notes\\n\\t\\t\\t\\tform.requestSubmit();\\n\\t\\t\\t} else {\\n\\t\\t\\t\\tform?.submit();\\n\\t\\t\\t}\\n\\t\\t}\\n\\t}\""
|
|
6336
6552
|
},
|
|
6337
6553
|
"source": {
|
|
6338
6554
|
"module": "./src/sds-textfield/sds-textfield.ts",
|
|
@@ -6384,17 +6600,6 @@
|
|
|
6384
6600
|
"symbol": "SDSTextField.internals"
|
|
6385
6601
|
}
|
|
6386
6602
|
}
|
|
6387
|
-
],
|
|
6388
|
-
"events": [
|
|
6389
|
-
{
|
|
6390
|
-
"name": "select"
|
|
6391
|
-
},
|
|
6392
|
-
{
|
|
6393
|
-
"name": "focus"
|
|
6394
|
-
},
|
|
6395
|
-
{
|
|
6396
|
-
"name": "blur"
|
|
6397
|
-
}
|
|
6398
6603
|
]
|
|
6399
6604
|
}
|
|
6400
6605
|
}
|