@sellmate/design-system 1.0.0 → 1.0.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/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_6.cjs.entry.js +6 -6
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-field_3.cjs.entry.js +10 -10
- package/dist/cjs/sd-file-picker.cjs.entry.js +4 -5
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-spinner_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-number-input.cjs.entry.js +4 -4
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-group.cjs.entry.js +8 -36
- package/dist/cjs/sd-radio.cjs.entry.js +41 -0
- package/dist/cjs/sd-select-dropdown_3.cjs.entry.js +6 -6
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-multiple.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-table.cjs.entry.js +4 -4
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-message.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
- package/dist/collection/components/sd-field/sd-field.css +1 -1
- package/dist/collection/components/sd-field/sd-field.js +7 -7
- package/dist/collection/components/sd-field/sd-field.js.map +1 -1
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +2 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +3 -23
- package/dist/collection/components/sd-file-picker/sd-file-picker.js.map +1 -1
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +1 -1
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js.map +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-radio/sd-radio.css +59 -0
- package/dist/collection/components/sd-radio/sd-radio.js +151 -0
- package/dist/collection/components/sd-radio/sd-radio.js.map +1 -0
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.css +20 -19
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.js +3 -3
- package/dist/collection/components/sd-radio-button-group/sd-radio-button-group.js.map +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.css +34 -38
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +17 -50
- package/dist/collection/components/sd-radio-group/sd-radio-group.js.map +1 -1
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
- package/dist/collection/components/sd-select/sd-select.js +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-table/sd-table.js +4 -4
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +1 -1
- package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
- package/dist/collection/components/sd-toast-message/sd-toast-message.js +2 -2
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +1 -1
- package/dist/components/{p-RhBqdixM.js → p-9E-u4GN-.js} +11 -11
- package/dist/components/{p-RhBqdixM.js.map → p-9E-u4GN-.js.map} +1 -1
- package/dist/components/{p-CdGD6AqM.js → p-B-HVIIWo.js} +3 -3
- package/dist/components/{p-CdGD6AqM.js.map → p-B-HVIIWo.js.map} +1 -1
- package/dist/components/{p-D54IEoI6.js → p-B9qGa5dx.js} +8 -8
- package/dist/components/{p-D54IEoI6.js.map → p-B9qGa5dx.js.map} +1 -1
- package/dist/components/p-BBVGfsbU.js +62 -0
- package/dist/components/p-BBVGfsbU.js.map +1 -0
- package/dist/components/{p-JF61vPAh.js → p-BsBjOh8u.js} +5 -5
- package/dist/components/{p-JF61vPAh.js.map → p-BsBjOh8u.js.map} +1 -1
- package/dist/components/{p-CpRkV7pg.js → p-COJpIimp.js} +14 -14
- package/dist/components/p-COJpIimp.js.map +1 -0
- package/dist/components/{p-s4Mg_xSz.js → p-CZ0RizvY.js} +13 -13
- package/dist/components/{p-s4Mg_xSz.js.map → p-CZ0RizvY.js.map} +1 -1
- package/dist/components/{p-CVMprLsE.js → p-CmghyzXg.js} +3 -3
- package/dist/components/{p-CVMprLsE.js.map → p-CmghyzXg.js.map} +1 -1
- package/dist/components/{p-DxSmO6Tr.js → p-CuHSbj5E.js} +5 -5
- package/dist/components/{p-DxSmO6Tr.js.map → p-CuHSbj5E.js.map} +1 -1
- package/dist/components/{p-DdKGhMHk.js → p-D1kEesx2.js} +3 -3
- package/dist/components/{p-DdKGhMHk.js.map → p-D1kEesx2.js.map} +1 -1
- package/dist/components/{p-zvZtN3nR.js → p-DBzZUOVq.js} +7 -7
- package/dist/components/{p-zvZtN3nR.js.map → p-DBzZUOVq.js.map} +1 -1
- package/dist/components/{p-D2movWkD.js → p-DYLnDz12.js} +14 -14
- package/dist/components/{p-D2movWkD.js.map → p-DYLnDz12.js.map} +1 -1
- package/dist/components/{p-7xekTQRB.js → p-Dtljyq_t.js} +5 -5
- package/dist/components/{p-7xekTQRB.js.map → p-Dtljyq_t.js.map} +1 -1
- package/dist/components/{p-DnQF6htq.js → p-Sw7TJWkF.js} +3 -3
- package/dist/components/{p-DnQF6htq.js.map → p-Sw7TJWkF.js.map} +1 -1
- package/dist/components/{p-DssRJcAn.js → p-VrppUi4Q.js} +3 -3
- package/dist/components/{p-DssRJcAn.js.map → p-VrppUi4Q.js.map} +1 -1
- package/dist/components/{p-UZEmuyIR.js → p-ldcuoYNT.js} +3 -3
- package/dist/components/{p-UZEmuyIR.js.map → p-ldcuoYNT.js.map} +1 -1
- package/dist/components/{p-DbebUQwg.js → p-o-oFeHDX.js} +3 -3
- package/dist/components/{p-DbebUQwg.js.map → p-o-oFeHDX.js.map} +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-date-picker.js +8 -8
- package/dist/components/sd-date-range-picker.js +9 -9
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +5 -7
- package/dist/components/sd-file-picker.js.map +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-guide.js +5 -5
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-spinner.js +1 -1
- package/dist/components/sd-modal-card.js +2 -2
- package/dist/components/sd-number-input.js +5 -5
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +5 -5
- package/dist/components/sd-popover.js.map +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +2 -2
- package/dist/components/sd-radio-button-group.js +4 -4
- package/dist/components/sd-radio-button-group.js.map +1 -1
- package/dist/components/sd-radio-group.js +16 -39
- package/dist/components/sd-radio-group.js.map +1 -1
- package/dist/components/sd-radio.d.ts +11 -0
- package/dist/components/sd-radio.js +9 -0
- package/dist/components/sd-radio.js.map +1 -0
- package/dist/components/sd-select-dropdown.js +1 -1
- package/dist/components/sd-select-multiple-group.js +11 -11
- package/dist/components/sd-select-multiple.js +12 -12
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select-search-input.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table.js +18 -18
- package/dist/components/sd-tabs.js +2 -2
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-textarea.js +2 -2
- package/dist/components/sd-toast-message.js +4 -4
- package/dist/components/sd-toggle-button.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-d77422e4.entry.js → p-06b1b928.entry.js} +2 -2
- package/dist/design-system/{p-f254b09a.entry.js → p-0a80eff0.entry.js} +2 -2
- package/dist/design-system/p-0a9f4be0.entry.js +2 -0
- package/dist/design-system/p-0a9f4be0.entry.js.map +1 -0
- package/dist/design-system/p-0e12f7b6.entry.js +2 -0
- package/dist/design-system/{p-f3287206.entry.js → p-12c9cfda.entry.js} +2 -2
- package/dist/design-system/{p-02e23509.entry.js → p-17f36d15.entry.js} +2 -2
- package/dist/design-system/{p-9d2459ed.entry.js → p-1a5c8581.entry.js} +2 -2
- package/dist/design-system/{p-0d3f019d.entry.js → p-206de2a1.entry.js} +2 -2
- package/dist/design-system/p-29a9975a.entry.js +2 -0
- package/dist/design-system/p-29a9975a.entry.js.map +1 -0
- package/dist/design-system/{p-ac29c52c.entry.js → p-43b9fd6b.entry.js} +2 -2
- package/dist/design-system/p-694c9cc9.entry.js +2 -0
- package/dist/design-system/p-694c9cc9.entry.js.map +1 -0
- package/dist/design-system/p-7a18002e.entry.js +2 -0
- package/dist/design-system/p-7a18002e.entry.js.map +1 -0
- package/dist/design-system/{p-0a2f733d.entry.js → p-82356c0a.entry.js} +2 -2
- package/dist/design-system/{p-811c5aa4.entry.js → p-86830071.entry.js} +2 -2
- package/dist/design-system/{p-6277b220.entry.js → p-97d0ce6e.entry.js} +2 -2
- package/dist/design-system/p-9a68ab88.entry.js +2 -0
- package/dist/design-system/{p-c3061828.entry.js.map → p-9a68ab88.entry.js.map} +1 -1
- package/dist/design-system/{p-686958c5.entry.js → p-9fdf431c.entry.js} +2 -2
- package/dist/design-system/{p-c25c4bd6.entry.js → p-b521ce06.entry.js} +2 -2
- package/dist/design-system/p-cdd7880f.entry.js +2 -0
- package/dist/design-system/p-cdd7880f.entry.js.map +1 -0
- package/dist/design-system/{p-2400d67b.entry.js → p-dc2f4b2f.entry.js} +2 -2
- package/dist/design-system/{p-388d5b9f.entry.js → p-f43b8c46.entry.js} +2 -2
- package/dist/design-system/{p-652c4d37.entry.js → p-f8e3d576.entry.js} +2 -2
- package/dist/design-system/{p-a7d4c6bd.entry.js → p-f9bc026f.entry.js} +2 -2
- package/dist/design-system/{p-4d7bb5b6.entry.js → p-fca80354.entry.js} +2 -2
- package/dist/design-system/p-ff131fbc.entry.js +2 -0
- package/dist/design-system/p-ff131fbc.entry.js.map +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-button_6.entry.js +6 -6
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +1 -1
- package/dist/esm/sd-date-range-picker.entry.js +2 -2
- package/dist/esm/sd-field_3.entry.js +10 -10
- package/dist/esm/sd-file-picker.entry.js +4 -5
- package/dist/esm/sd-file-picker.entry.js.map +1 -1
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-loading-spinner_2.entry.js +2 -2
- package/dist/esm/sd-number-input.entry.js +4 -4
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popover.entry.js.map +1 -1
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-radio-button-group.entry.js +4 -4
- package/dist/esm/sd-radio-button-group.entry.js.map +1 -1
- package/dist/esm/sd-radio-group.entry.js +8 -36
- package/dist/esm/sd-radio-group.entry.js.map +1 -1
- package/dist/esm/sd-radio.entry.js +39 -0
- package/dist/esm/sd-radio.entry.js.map +1 -0
- package/dist/esm/sd-select-dropdown_3.entry.js +6 -6
- package/dist/esm/sd-select-multiple-group.entry.js +1 -1
- package/dist/esm/sd-select-multiple.entry.js +1 -1
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-table.entry.js +4 -4
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +1 -1
- package/dist/esm/sd-toast-message.entry.js +2 -2
- package/dist/esm/sd-toggle-button.entry.js +1 -1
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +0 -1
- package/dist/types/components/sd-radio/sd-radio.d.ts +12 -0
- package/dist/types/components/sd-radio-group/sd-radio-group.d.ts +3 -8
- package/dist/types/components.d.ts +63 -18
- package/hydrate/index.js +119 -101
- package/hydrate/index.mjs +119 -101
- package/package.json +2 -2
- package/dist/components/p-CpRkV7pg.js.map +0 -1
- package/dist/design-system/p-15dd1289.entry.js +0 -2
- package/dist/design-system/p-15dd1289.entry.js.map +0 -1
- package/dist/design-system/p-216c6543.entry.js +0 -2
- package/dist/design-system/p-216c6543.entry.js.map +0 -1
- package/dist/design-system/p-282f4087.entry.js +0 -2
- package/dist/design-system/p-53972259.entry.js +0 -2
- package/dist/design-system/p-53972259.entry.js.map +0 -1
- package/dist/design-system/p-b0277422.entry.js +0 -2
- package/dist/design-system/p-b0277422.entry.js.map +0 -1
- package/dist/design-system/p-c3061828.entry.js +0 -2
- package/dist/design-system/p-cde56c79.entry.js +0 -2
- package/dist/design-system/p-cde56c79.entry.js.map +0 -1
- /package/dist/design-system/{p-d77422e4.entry.js.map → p-06b1b928.entry.js.map} +0 -0
- /package/dist/design-system/{p-f254b09a.entry.js.map → p-0a80eff0.entry.js.map} +0 -0
- /package/dist/design-system/{p-282f4087.entry.js.map → p-0e12f7b6.entry.js.map} +0 -0
- /package/dist/design-system/{p-f3287206.entry.js.map → p-12c9cfda.entry.js.map} +0 -0
- /package/dist/design-system/{p-02e23509.entry.js.map → p-17f36d15.entry.js.map} +0 -0
- /package/dist/design-system/{p-9d2459ed.entry.js.map → p-1a5c8581.entry.js.map} +0 -0
- /package/dist/design-system/{p-0d3f019d.entry.js.map → p-206de2a1.entry.js.map} +0 -0
- /package/dist/design-system/{p-ac29c52c.entry.js.map → p-43b9fd6b.entry.js.map} +0 -0
- /package/dist/design-system/{p-0a2f733d.entry.js.map → p-82356c0a.entry.js.map} +0 -0
- /package/dist/design-system/{p-811c5aa4.entry.js.map → p-86830071.entry.js.map} +0 -0
- /package/dist/design-system/{p-6277b220.entry.js.map → p-97d0ce6e.entry.js.map} +0 -0
- /package/dist/design-system/{p-686958c5.entry.js.map → p-9fdf431c.entry.js.map} +0 -0
- /package/dist/design-system/{p-c25c4bd6.entry.js.map → p-b521ce06.entry.js.map} +0 -0
- /package/dist/design-system/{p-2400d67b.entry.js.map → p-dc2f4b2f.entry.js.map} +0 -0
- /package/dist/design-system/{p-388d5b9f.entry.js.map → p-f43b8c46.entry.js.map} +0 -0
- /package/dist/design-system/{p-652c4d37.entry.js.map → p-f8e3d576.entry.js.map} +0 -0
- /package/dist/design-system/{p-a7d4c6bd.entry.js.map → p-f9bc026f.entry.js.map} +0 -0
- /package/dist/design-system/{p-4d7bb5b6.entry.js.map → p-fca80354.entry.js.map} +0 -0
package/hydrate/index.mjs
CHANGED
|
@@ -3792,7 +3792,7 @@ class SdBadge {
|
|
|
3792
3792
|
label = '';
|
|
3793
3793
|
render() {
|
|
3794
3794
|
const resolvedColor = resolveColor(this.color);
|
|
3795
|
-
return (hAsync(Host, { key: '
|
|
3795
|
+
return (hAsync(Host, { key: '8eb13329f88c90812a23ba041a5700380094bacc', style: { '--sd-badge-color': resolvedColor } }, hAsync("div", { key: 'aab9f3bf7db3938719b67caca19bc8df9afceb95', class: `sd-badge sd-badge--${this.size}` }, hAsync("div", { key: '0ecea50ca06c4c9925ccb4bcde1faa0f85289c29', class: "sd-badge__dot" }), hAsync("div", { key: '8458b333558c33d7950ccb4354a7207e4d059671', class: "sd-badge__label" }, this.label))));
|
|
3796
3796
|
}
|
|
3797
3797
|
static get style() { return sdBadgeCss(); }
|
|
3798
3798
|
static get cmpMeta() { return {
|
|
@@ -3889,7 +3889,7 @@ class SdCard {
|
|
|
3889
3889
|
bordered = true;
|
|
3890
3890
|
cardClassName = '';
|
|
3891
3891
|
render() {
|
|
3892
|
-
return (hAsync(Host, { key: '
|
|
3892
|
+
return (hAsync(Host, { key: '3182001dcfc5347e3995a31d8e333e01f285df5a', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.cardClassName}` }, hAsync("slot", { key: 'e2824b9cd65b9c4ba668f7f3ba933a361405b822' })));
|
|
3893
3893
|
}
|
|
3894
3894
|
static get style() { return sdCardCss(); }
|
|
3895
3895
|
static get cmpMeta() { return {
|
|
@@ -4203,7 +4203,7 @@ class SdDatePicker {
|
|
|
4203
4203
|
this.isOpen = false;
|
|
4204
4204
|
};
|
|
4205
4205
|
render() {
|
|
4206
|
-
return (hAsync(Host, { key: '
|
|
4206
|
+
return (hAsync(Host, { key: '9e98df6d7c18ca302385b2305ad1224819f51a48', class: { 'sd-date-picker': true, 'sd-date-picker--disabled': this.disabled } }, hAsync("sd-input", { key: '647c796797c4fca9d1d7560258acb0ad0529aa4b', ref: el => (this.inputEl = el), value: this.value, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-picker__input", onClick: () => this.openMenu() }, hAsync("sd-icon", { key: 'ee168dc3a5494de5140f524bacf65cfe8b92c666', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (hAsync("sd-portal", { key: '9edef448710cb08c9c80ce5d70e23fc286eff656', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, hAsync("div", { key: 'f717e1a9505ebe9b991707f45fc374cf456dfb87', class: "sd-date-picker__menu" }, hAsync("div", { key: '597e7523a0ee808e13c7ce54983abb391f27b259', class: "sd-date-picker__header" }, hAsync("div", { key: 'f46e44f7336d6332190d5c92b654faa34da71fcb', class: "year-nav" }, hAsync("button", { key: 'c2e849c39d6ffcc144fb5cac20224f497f3698b8', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, hAsync("sd-icon", { key: '454a351069797007019657f1239aab5f2b0be482', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("span", { key: '7cd18da8a3e2220b583f0cb35eca4096f8770275', class: "year-nav__current" }, this.currentYear), hAsync("button", { key: 'd589b992604fcd958a342de1cfa548a2cee51c36', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, hAsync("sd-icon", { key: 'fca1aecf9cfcfe0aa350cfe7a39837524aeebf4f', name: "arrowRight", size: "12", color: "#CCCCCC" }))), hAsync("div", { key: '2d62f23c487d673e0efcfa8bacff56f8076c90de', class: "month-nav" }, hAsync("button", { key: '83149c7f67f68972b662981464db444e75cf3513', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, hAsync("sd-icon", { key: '039d63c5770614e29305ecda288d7f26ec2f74cc', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("span", { key: '97be0d41c505853e6ebb3f5481b81e6f3f1694c2', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), hAsync("button", { key: '02f53526b005c29a7118f3a7bf93691262c57421', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, hAsync("sd-icon", { key: '16552dcf8dea941badad716f90c86f968cfdf312', name: "arrowRight", size: "12", color: "#CCCCCC" })))), hAsync("div", { key: 'c4e35720676d4fc0bd7b8903082f24f00b34036d', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("div", { key: day, class: "day" }, day)))), hAsync("div", { key: 'b69032b67e0bcc6885a789c2ce1b181abf68979a', class: "sd-date-picker__body" }, [
|
|
4207
4207
|
...this.calendar.prevMonthDays,
|
|
4208
4208
|
...this.calendar.days,
|
|
4209
4209
|
...this.calendar.afterMonthDays,
|
|
@@ -4395,10 +4395,10 @@ class SdDateRangePicker {
|
|
|
4395
4395
|
this.setHoverDate(hoverDate);
|
|
4396
4396
|
}
|
|
4397
4397
|
render() {
|
|
4398
|
-
return (hAsync(Host, { key: '
|
|
4398
|
+
return (hAsync(Host, { key: '475b3135158233bce6f200f47c860790b3b68933', class: {
|
|
4399
4399
|
'sd-date-range-picker': true,
|
|
4400
4400
|
'sd-date-range-picker--disabled': this.disabled,
|
|
4401
|
-
} }, hAsync("sd-input", { key: '
|
|
4401
|
+
} }, hAsync("sd-input", { key: 'c6cd9405fbcc12fc772720a64b979b6ad88fe51c', ref: el => (this.inputEl = el), value: !!this.dateRange[0] ? `${this.dateRange[0]} ~ ${this.dateRange[1]}` : '', label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, placeholder: this.placeholder, inputClass: "sd-date-range-picker__input", onClick: () => this.openMenu() }, hAsync("sd-icon", { key: '75abee918222b6e5123d3aef220f1f54cbcd63eb', slot: "prefix", name: "date", size: "16", color: this.disabled ? 'grey_65' : 'grey_70', class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (hAsync("sd-portal", { key: '87025f908882e4199336c053f8d80de32e43764b', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.closeMenu }, hAsync("div", { key: '28c20713fe1c90610a85ca957a3cf11eb919f322', class: "sd-date-range-picker__menu" }, hAsync("div", { key: '3bfdbd8cbdc09ea4b63bf8d90e90f9b41411d2e6', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, hAsync("button", { key: 'a553069fe691b3a2498c2d4d6479746eac6e57de', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, hAsync("sd-icon", { key: '8781d59f7a8e5f3207f989c54bd5dbfcec53c616', name: "arrowLeft", size: "12", color: "#CCCCCC" })), hAsync("div", { key: '9453881cff191a277235e99a1f7c1846ddb4fb27', class: "header-label" }, this.prevYear), hAsync("button", { key: '0dcd78e180e6c57cdc6be30cd5715beec902b826', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, hAsync("sd-icon", { key: '84165b81ceba4f9da6858cea81ca0c166acc5709', name: "arrowRight", size: "12", color: "#CCCCCC" }))), hAsync("div", { key: '7f57af4b26543946d4cddd2a8dff4e679c8e84da', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (hAsync(Fragment, null, index === 1 && hAsync("div", { class: "separator" }), hAsync("div", { key: index, class: "calendar-container" }, hAsync("div", { class: "calendar-header" }, hAsync("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, hAsync("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
4402
4402
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
4403
4403
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), hAsync("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (hAsync("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), hAsync("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (hAsync("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date === this.formatDate(index, Number(day))), type: this.getDateBoxType(this.formatDate(index, Number(day))), isToday: today === this.formatDate(index, Number(day)), disabled: !day ? true : this.isDisabledDate(this.formatDate(index, Number(day))), inRange: this.isDateInRange(this.formatDate(index, Number(day))), isStartDate: this.dateRange[0] === this.formatDate(index, Number(day)), isEndDate: this.dateRange[1] === this.formatDate(index, Number(day)), onClick: () => this.handleDateClick(index, Number(day)), onMouseOver: () => this.handleDateHover(index, Number(day)) }))))))))))))));
|
|
4404
4404
|
}
|
|
@@ -4428,7 +4428,7 @@ class SdDateRangePicker {
|
|
|
4428
4428
|
}; }
|
|
4429
4429
|
}
|
|
4430
4430
|
|
|
4431
|
-
const sdFieldCss = () => `.sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:
|
|
4431
|
+
const sdFieldCss = () => `.sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}.sd-field *:focus,.sd-field *:focus-visible,.sd-field *:focus-within{outline:none !important}.sd-field:not(.sd-field--disabled):hover .sd-field__control{border:1px solid #0075ff !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}.sd-field.sd-field--disabled{cursor:not-allowed}.sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}.sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#cccccc;color:#888888;cursor:not-allowed !important}.sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#eeeeee;border-color:#cccccc;color:#888888;cursor:not-allowed !important}.sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;margin-right:12px}.sd-field--has-label .sd-field__wrapper .sd-field__label__required-icon{margin-right:4px}.sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:12px;line-height:20px;color:#333333;white-space:nowrap}.sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:2px}.sd-field--has-label-inside .sd-field__wrapper .sd-field__label{margin-right:0;display:flex;align-items:center;justify-content:center;padding:3px 12px;border:1px solid #cccccc;border-right:none;border-radius:4px 0 0 4px;border-color:#aaaaaa;background-color:#f6f6f6}.sd-field__wrapper{width:var(--field-width, 200px);height:28px;display:flex;align-items:center;flex-flow:row nowrap;position:relative;color:#333333;cursor:pointer;-webkit-user-select:none;user-select:none}.sd-field__wrapper .sd-field__control{position:relative;width:100%;height:100%;display:flex;flex:1;border:1px solid #aaaaaa;border-radius:4px;background:white}.sd-field__wrapper .sd-field__control--label-inside{border-top-left-radius:0px;border-bottom-left-radius:0px}.sd-field--error:not(:hover) .sd-field__wrapper .sd-field__control{border:1px solid #fb4444 !important}.sd-field.sd-field--focus .sd-field__wrapper .sd-field__control,.sd-field.sd-field--hover .sd-field__wrapper .sd-field__control{border:1px solid #0075ff !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}.sd-field .sd-field__error-message{color:#fb4444;font-size:12px;line-height:20px;margin-top:4px}`;
|
|
4432
4432
|
|
|
4433
4433
|
const FORM_PARENT_TAGS = [
|
|
4434
4434
|
'sd-select',
|
|
@@ -4495,10 +4495,10 @@ class SdField {
|
|
|
4495
4495
|
return null;
|
|
4496
4496
|
}
|
|
4497
4497
|
registerToForm() {
|
|
4498
|
-
if (!this.rules || this.rules.length === 0) {
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
}
|
|
4498
|
+
// if (!this.rules || this.rules.length === 0) {
|
|
4499
|
+
// console.warn('[sd-form-field] rules prop is required for sd-form integration');
|
|
4500
|
+
// return;
|
|
4501
|
+
// }
|
|
4502
4502
|
const formEl = this.el.closest('sd-form');
|
|
4503
4503
|
if (!formEl)
|
|
4504
4504
|
return;
|
|
@@ -4547,15 +4547,15 @@ class SdField {
|
|
|
4547
4547
|
}
|
|
4548
4548
|
}
|
|
4549
4549
|
render() {
|
|
4550
|
-
return (hAsync(Host, { key: '
|
|
4550
|
+
return (hAsync(Host, { key: '8d4368c9802a01a58872ae1467d6183bb6a1d1d3', class: {
|
|
4551
4551
|
'sd-field': true,
|
|
4552
4552
|
'sd-field--has-label': !!this.label,
|
|
4553
4553
|
'sd-field--has-label-inside': !!this.label && this.insideLabel,
|
|
4554
4554
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
4555
|
-
} }, hAsync("div", { key: '
|
|
4555
|
+
} }, hAsync("div", { key: '86a8ae1ee6f2b56bbff2a0dda2f4c87e8cec74bd', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: 'c32b068f6459d326af29e2666a3ff17882c02c11', class: {
|
|
4556
4556
|
'sd-field__control': true,
|
|
4557
4557
|
'sd-field__control--label-inside ': !!this.label && this.insideLabel,
|
|
4558
|
-
} }, hAsync("slot", { key: '
|
|
4558
|
+
} }, hAsync("slot", { key: 'a636756df1b20b4fa0b785cba57e96a7695ff103' }))), this.errorMsg && hAsync("div", { key: 'da410dd97d83a910d6819410878349144ed1af0e', class: "sd-field__error-message" }, this.errorMsg)));
|
|
4559
4559
|
}
|
|
4560
4560
|
renderLabel(label) {
|
|
4561
4561
|
if (!label)
|
|
@@ -4591,7 +4591,7 @@ class SdField {
|
|
|
4591
4591
|
}; }
|
|
4592
4592
|
}
|
|
4593
4593
|
|
|
4594
|
-
const sdFilePickerCss = () => `sd-file-picker{display:inline-flex}.sd-file-picker{display:inline-flex;align-items:center;max-width:var(--picker-width, 100%);height:28px;gap:8px;padding:4px 8px;border:1px solid #aaaaaa;border-radius:4px;background-color:#ffffff;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;vertical-align:middle}.sd-file-picker__text{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;font-size:12px;line-height:20px;color:#aaaaaa}.sd-file-picker__text--active{color:#222222}.sd-file-picker__text--placeholder{color:#aaaaaa}.sd-file-picker__icon{flex-shrink:0}.sd-file-picker__clear-icon{flex-shrink:0;cursor:pointer;transition:opacity 0.2s ease}.sd-file-picker__clear-icon:hover{opacity:0.7}.sd-file-picker__input{display:none}.sd-file-picker__tooltip{position:absolute;top:calc(100% - 4px);left:50%;transform:translate(-50%);z-index:1000;white-space:nowrap;padding:8px 12px;background:rgba(0, 0, 0, 0.8);color:white;font-size:12px;line-height:18px;border-radius:4px;pointer-events:none}.sd-file-picker:hover:not(.sd-file-picker--inline):not(.sd-file-picker--disabled){background-color:#f6f6f6}.sd-file-picker--active:not(.sd-file-picker--inline):not(.sd-file-picker--disabled){background-color:#ffffff}.sd-file-picker--active:not(.sd-file-picker--inline):not(.sd-file-picker--disabled) .sd-file-picker__text{color:#222222}.sd-file-picker--disabled:not(.sd-file-picker--inline){background-color:#eeeeee;border-color:#cccccc;cursor:not-allowed !important}.sd-file-picker--disabled:not(.sd-file-picker--inline) .sd-file-picker__text{color:#888888}.sd-file-picker--inline{border:none;background-color:transparent;padding:0;height:auto}.sd-file-picker--inline .sd-file-picker__text{color:#aaaaaa}.sd-file-picker--inline:hover:not(.sd-file-picker--disabled) .sd-file-picker__text{color:#737373}.sd-file-picker--inline.sd-file-picker--active:not(.sd-file-picker--disabled) .sd-file-picker__text--active{color:#222222}.sd-file-picker--inline.sd-file-picker--disabled .sd-file-picker__text{color:#cccccc}`;
|
|
4594
|
+
const sdFilePickerCss = () => `sd-file-picker{display:inline-flex;width:100%}.sd-file-picker{display:inline-flex;width:100%;align-items:center;max-width:var(--picker-width, 100%);height:28px;gap:8px;padding:4px 8px;border:1px solid #aaaaaa;border-radius:4px;background-color:#ffffff;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;vertical-align:middle}.sd-file-picker__text{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400;font-size:12px;line-height:20px;color:#aaaaaa}.sd-file-picker__text--active{color:#222222}.sd-file-picker__text--placeholder{color:#aaaaaa}.sd-file-picker__icon{flex-shrink:0}.sd-file-picker__clear-icon{flex-shrink:0;cursor:pointer;transition:opacity 0.2s ease}.sd-file-picker__clear-icon:hover{opacity:0.7}.sd-file-picker__input{display:none}.sd-file-picker__tooltip{position:absolute;top:calc(100% - 4px);left:50%;transform:translate(-50%);z-index:1000;white-space:nowrap;padding:8px 12px;background:rgba(0, 0, 0, 0.8);color:white;font-size:12px;line-height:18px;border-radius:4px;pointer-events:none}.sd-file-picker:hover:not(.sd-file-picker--inline):not(.sd-file-picker--disabled){background-color:#f6f6f6}.sd-file-picker--active:not(.sd-file-picker--inline):not(.sd-file-picker--disabled){background-color:#ffffff}.sd-file-picker--active:not(.sd-file-picker--inline):not(.sd-file-picker--disabled) .sd-file-picker__text{color:#222222}.sd-file-picker--disabled:not(.sd-file-picker--inline){background-color:#eeeeee;border-color:#cccccc;cursor:not-allowed !important}.sd-file-picker--disabled:not(.sd-file-picker--inline) .sd-file-picker__text{color:#888888}.sd-file-picker--inline{border:none;background-color:transparent;padding:0;height:auto}.sd-file-picker--inline .sd-file-picker__text{color:#aaaaaa}.sd-file-picker--inline:hover:not(.sd-file-picker--disabled) .sd-file-picker__text{color:#737373}.sd-file-picker--inline.sd-file-picker--active:not(.sd-file-picker--disabled) .sd-file-picker__text--active{color:#222222}.sd-file-picker--inline.sd-file-picker--disabled .sd-file-picker__text{color:#cccccc}`;
|
|
4595
4595
|
|
|
4596
4596
|
class SdFilePicker {
|
|
4597
4597
|
constructor(hostRef) {
|
|
@@ -4605,7 +4605,6 @@ class SdFilePicker {
|
|
|
4605
4605
|
inline = false;
|
|
4606
4606
|
multiple = false;
|
|
4607
4607
|
accept;
|
|
4608
|
-
width;
|
|
4609
4608
|
internalValue = null;
|
|
4610
4609
|
hovered = false;
|
|
4611
4610
|
showTooltip = false;
|
|
@@ -4690,15 +4689,15 @@ class SdFilePicker {
|
|
|
4690
4689
|
render() {
|
|
4691
4690
|
const hasFiles = this.hasFiles();
|
|
4692
4691
|
const displayText = this.getDisplayText();
|
|
4693
|
-
return (hAsync("div", { key: '
|
|
4692
|
+
return (hAsync("div", { key: 'a41d17071dc1c54af38a25c143f7df3a2f8d8f83', class: {
|
|
4694
4693
|
'sd-file-picker': true,
|
|
4695
4694
|
[this.getStatusClass()]: true,
|
|
4696
4695
|
'sd-file-picker--inline': this.inline,
|
|
4697
|
-
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("input", { key: '
|
|
4696
|
+
}, onClick: this.handleClick, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("input", { key: '31bd3ccd4fc132037b67d189478af6dcb5bf9c4a', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder }), hAsync("sd-icon", { key: 'a422d6902ec05313365d2832f1f77e7100dcf9c7', name: "attachFile", size: 16, color: this.getIconColor(), class: "sd-file-picker__icon" }), hAsync("div", { key: 'c0ef65e1d2f5e2eea86d4047b990932d711e68bb', ref: el => (this.fileNamesRef = el), class: {
|
|
4698
4697
|
'sd-file-picker__text': true,
|
|
4699
4698
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
4700
4699
|
'sd-file-picker__text--active': hasFiles,
|
|
4701
|
-
} }, displayText), !this.disabled && hasFiles && (hAsync("sd-icon", { key: '
|
|
4700
|
+
} }, displayText), !this.disabled && hasFiles && (hAsync("sd-icon", { key: 'b57318271a1282655a6c7f90247f6e6a1813bceb', name: "close", size: 12, color: "#888888", class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (hAsync("div", { key: 'cc913b203d72fb0240ea22d7d266953c5ef31476', class: "sd-file-picker__tooltip" }, displayText))));
|
|
4702
4701
|
}
|
|
4703
4702
|
static get watchers() { return {
|
|
4704
4703
|
"value": ["valueChanged"]
|
|
@@ -4714,7 +4713,6 @@ class SdFilePicker {
|
|
|
4714
4713
|
"inline": [4],
|
|
4715
4714
|
"multiple": [4],
|
|
4716
4715
|
"accept": [1],
|
|
4717
|
-
"width": [8],
|
|
4718
4716
|
"internalValue": [32],
|
|
4719
4717
|
"hovered": [32],
|
|
4720
4718
|
"showTooltip": [32]
|
|
@@ -4876,7 +4874,7 @@ class SdFloatingPopover {
|
|
|
4876
4874
|
this.close.emit();
|
|
4877
4875
|
}
|
|
4878
4876
|
render() {
|
|
4879
|
-
return hAsync("slot", { key: '
|
|
4877
|
+
return hAsync("slot", { key: '770ec3be9d1e2b830eaebfde37a664feafc3da3b' });
|
|
4880
4878
|
}
|
|
4881
4879
|
static get style() { return sdFloatingPortalCss(); }
|
|
4882
4880
|
static get cmpMeta() { return {
|
|
@@ -5031,9 +5029,9 @@ class SdGuide {
|
|
|
5031
5029
|
};
|
|
5032
5030
|
render() {
|
|
5033
5031
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
5034
|
-
return (hAsync(Host, { key: '
|
|
5032
|
+
return (hAsync(Host, { key: '3e9133e450e136c9fb34e5107d2f7fc41ee9b8fe', style: {
|
|
5035
5033
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
5036
|
-
} }, hAsync("sd-button", { key: '
|
|
5034
|
+
} }, hAsync("sd-button", { key: '9d7180ecba36835ea168f1744600447249566e4f', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: this.label || GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (hAsync("sd-portal", { key: '0e1bd7d6d660ae241a335da1a86c2f00974a0474', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: 'ca98debbce9293bb484511e4ff61c81e81278ca9', style: { position: 'absolute', width: '0px', height: '0px' } }, hAsync("div", { key: 'edbdd10359823ff83b381f8dd36103439a96bb0d', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, hAsync("sd-button", { key: '5422758a3fc4d1580355f483bfdf5701e5480e20', class: "sd-guide__popup__close", icon: "close", color: "grey_65", size: "md", variant: "ghost", noHover: true, onClick: this.closeDropdown }), hAsync("div", { key: '10f3b78d9b18961680df80a2a11f036404ce9cfb', class: "sd-guide__popup__header" }, hAsync("sd-icon", { key: '75f0a7094b5c02ae9f0c174f02414bc4a2175863', name: "helpOutline", size: 24, color: "green_65" }), hAsync("h3", { key: '5f0beea41676ea92a7fdeea7ad63aa10882da241', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), hAsync("ul", { key: 'd3f018859c31e5aa0ae3e55dd0be9bedc4d33e25', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
5037
5035
|
}
|
|
5038
5036
|
// 현재 2depth까지만 스타일 적용
|
|
5039
5037
|
renderListItem(message, depth = 0) {
|
|
@@ -7078,7 +7076,7 @@ class SdIcon {
|
|
|
7078
7076
|
}
|
|
7079
7077
|
render() {
|
|
7080
7078
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
7081
|
-
return (hAsync("i", { key: '
|
|
7079
|
+
return (hAsync("i", { key: '1c418bee61e2b1e7286c15cb489953cd6969639c', class: this.getIconClasses(), style: this.iconStyle }, hAsync(IconComponent, { key: 'cf93af4d1a911a6da2bef0cdfea104cb74627ec8', color: this.resolvedColor })));
|
|
7082
7080
|
}
|
|
7083
7081
|
static get style() { return sdIconCss(); }
|
|
7084
7082
|
static get cmpMeta() { return {
|
|
@@ -7241,7 +7239,7 @@ class SdInput {
|
|
|
7241
7239
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
7242
7240
|
}
|
|
7243
7241
|
: {};
|
|
7244
|
-
return (hAsync("sd-field", { key: '
|
|
7242
|
+
return (hAsync("sd-field", { key: '1ea8809ec8f05e9713b26022014400811f3c4da2', name: this.name, label: this.label, insideLabel: this.insideLabel, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: inputWidth, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("label", { key: 'f0f266bf75953342785b8296e40f7ca86018a75d', class: "sd-input__content", style: { width: '100%' } }, hAsync("slot", { key: '2fa7295a91e35292d794879432195e9cb76bce1a', name: "prefix" }), hAsync("input", { key: '5529de166855c571c385fb479f6dbfec148a6771', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: '5ae1f154e1ac870c8629ebf4b2007274d591018d', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-icon", { key: '57f515d933010326bd7f64ef74beb37df3fa7ba7', name: "close", color: "grey_65", size: "16", class: "sd-input__clear-icon", onClick: async () => {
|
|
7245
7243
|
this.internalValue = '';
|
|
7246
7244
|
await this.formField?.sdValidate();
|
|
7247
7245
|
} })))));
|
|
@@ -7300,7 +7298,7 @@ class SdLoadingSpinner {
|
|
|
7300
7298
|
return resolveColor(this.color);
|
|
7301
7299
|
}
|
|
7302
7300
|
render() {
|
|
7303
|
-
return (hAsync(Host, { key: '
|
|
7301
|
+
return (hAsync(Host, { key: '90e8d5b70e299835006b59d8240e0e0a526c14f7' }, hAsync("svg", { key: '22c2e6c4a638440fd97abc82ebcba99a26a6e13c', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, hAsync("circle", { key: '41470486ab808e13a8d9fa0815b1a26436d6ca79', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
7304
7302
|
}
|
|
7305
7303
|
static get style() { return sdLoadingSpinnerCss(); }
|
|
7306
7304
|
static get cmpMeta() { return {
|
|
@@ -7616,17 +7614,17 @@ class SdNumberInput {
|
|
|
7616
7614
|
const inputStyles = {
|
|
7617
7615
|
textAlign: this.useButton ? 'center' : 'right',
|
|
7618
7616
|
};
|
|
7619
|
-
return (hAsync(Host, { key: '
|
|
7617
|
+
return (hAsync(Host, { key: '808776f5dac544141ffd67482d23a9e04c410900', style: inputWidth, onFocus: this.handleFocus, onBlur: this.handleBlur }, this.useButton ? 'use buttons' : 'dont use buttons', this.label && hAsync("div", { key: '0c4ebbbfbe31d9d01f1652e7a2135e56c7d8bbb1', class: "sd-number-input__label" }, this.label), hAsync("label", { key: 'c25ba6871d48f13a082f04a42e0d412e806031fc', class: {
|
|
7620
7618
|
'sd-number-input': true,
|
|
7621
7619
|
[this.getInputStatus()]: true,
|
|
7622
7620
|
'sd-number-input--with-buttons': this.useButton,
|
|
7623
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("input", { key: '
|
|
7621
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, hAsync("input", { key: 'f2c88d5209f1886de1c7f89af8e7b1778bdc2ac1', ref: el => (this.nativeEl = el), class: `sd-number-input__input ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, style: inputStyles }), this.useButton && (hAsync("div", { key: '4c66e1a5b8880fed901aa6656e2e49ce817ae991', class: "sd-number-input__buttons" }, hAsync("button", { key: '39e2935eae836c7f209deebaa2c5ad79d8643920', type: "button", class: {
|
|
7624
7622
|
'sd-number-input__button': true,
|
|
7625
7623
|
'sd-number-input__button--decrement': true,
|
|
7626
|
-
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '
|
|
7624
|
+
}, disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: 'a81ba14b5ebc2a46a2349fbb2de1015a2e1894a1', name: "minus", size: 12, color: this.isDecrementDisabled() ? '#CCCCCC' : '#2D8DFF' })), hAsync("button", { key: '2f2e8948470c699124b99e6862bf112bb79d7721', type: "button", class: {
|
|
7627
7625
|
'sd-number-input__button': true,
|
|
7628
7626
|
'sd-number-input__button--increment': true,
|
|
7629
|
-
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: '
|
|
7627
|
+
}, disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: 'c269060a857285fa060d4c4971235cc9fb4e991a', name: "add", size: 12, color: this.isIncrementDisabled() ? '#CCCCCC' : '#2D8DFF' })))))));
|
|
7630
7628
|
}
|
|
7631
7629
|
static get watchers() { return {
|
|
7632
7630
|
"value": ["valueChanged"],
|
|
@@ -7740,12 +7738,12 @@ class SdPagination {
|
|
|
7740
7738
|
}
|
|
7741
7739
|
}
|
|
7742
7740
|
render() {
|
|
7743
|
-
return (hAsync("div", { key: '
|
|
7741
|
+
return (hAsync("div", { key: '7498d55ef3206deb0c3feb22cd1da426f754eb05', class: this.paginationClasses }, hAsync("div", { key: '60918ebae391824240a8c182360751426c07c69c', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "pagination-info" }, hAsync("span", { class: "current-page" }, this.currentPage), hAsync("span", null, "/"), hAsync("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
7744
7742
|
'pagination-btn': true,
|
|
7745
7743
|
'pagination-btn--selected': this.currentPage === n,
|
|
7746
7744
|
}, disabled: this.currentPage === n, style: {
|
|
7747
7745
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
7748
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
7746
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: 'c827cf8b7d8d8013b85487891fc768dcbe172be9', class: "append-btns" }, this.renderNextButtons())));
|
|
7749
7747
|
}
|
|
7750
7748
|
static get style() { return sdPaginationCss(); }
|
|
7751
7749
|
static get cmpMeta() { return {
|
|
@@ -7799,11 +7797,11 @@ class SdPopover {
|
|
|
7799
7797
|
this.showPopover = false;
|
|
7800
7798
|
};
|
|
7801
7799
|
render() {
|
|
7802
|
-
return (hAsync(Fragment, { key: '
|
|
7800
|
+
return (hAsync(Fragment, { key: '56f328cfb09847d3f5968c4ed73f805f5666e258' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (hAsync("sd-floating-portal", { key: '8b6a8ce42c1464780fb089098fdda82600eefc86', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, hAsync("div", { key: '0cbeee5bb4a514bc2e1009d5d97c27fd8a309fd2', class: {
|
|
7803
7801
|
'sd-floating-menu': true,
|
|
7804
7802
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
7805
7803
|
[this.menuClass]: !!this.menuClass,
|
|
7806
|
-
} }, hAsync("i", { key: '
|
|
7804
|
+
} }, hAsync("i", { key: 'd8f244e430aaacaaa4b124d4ae613546ca3cb04a', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: 'b5a9d9878144eb0a6093a05e0c5287d2721304d8' })), hAsync("div", { key: '919c8ea1a1421f9db1b8f002704cb443e69b27dd', class: "sd-floating-menu__content" }, this.menuTitle && hAsync("div", { key: '3a1bd157db78b03e894dd9234b15a1e0a42a20ad', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (hAsync("div", { key: '775a8c45c194fce139b78bdea6cf3ea7e1d6aebd', class: "sd-floating-menu__messages" }, this.messages.map(message => (hAsync("div", null, message))))), this.buttons.length > 0 && (hAsync("div", { key: '1da478df75490f7ba81a8463cbbeea26c6cff64d', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (hAsync("sd-button", { ...button })))))), this.useClose && (hAsync("button", { key: 'ce75525effbcc448900cbea452a9787f66447444', title: "close", class: "sd-floating-menu__close-button", onClick: () => this.handleClose() }, hAsync("sd-icon", { key: '2dc6e721412c49ff91ea60e2355be1f0143fc7fb', name: "close", size: "12", color: "gery_55" }))))))));
|
|
7807
7805
|
}
|
|
7808
7806
|
static get watchers() { return {
|
|
7809
7807
|
"show": ["watchShowHandler"]
|
|
@@ -7954,7 +7952,7 @@ class SdPortal {
|
|
|
7954
7952
|
this.close.emit();
|
|
7955
7953
|
}
|
|
7956
7954
|
render() {
|
|
7957
|
-
return hAsync("slot", { key: '
|
|
7955
|
+
return hAsync("slot", { key: '6181685d61b1e95116316b72208702597bba2b8e' });
|
|
7958
7956
|
}
|
|
7959
7957
|
static get cmpMeta() { return {
|
|
7960
7958
|
"$flags$": 772,
|
|
@@ -8011,10 +8009,10 @@ class SdProgress {
|
|
|
8011
8009
|
return this.statusColor[this.progressStatus];
|
|
8012
8010
|
}
|
|
8013
8011
|
render() {
|
|
8014
|
-
return (hAsync(Host, { key: '
|
|
8012
|
+
return (hAsync(Host, { key: '8990c8a3fb4c8bf0cb32dd4310e1e99519fca550', style: {
|
|
8015
8013
|
'--progress-color': this.progressColor,
|
|
8016
8014
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
8017
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '
|
|
8015
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '50a4d45d8658eec2b0d949b201fbf55b0d3615a4', class: "sd-progress__label" }, this.label)));
|
|
8018
8016
|
}
|
|
8019
8017
|
renderBarProgress() {
|
|
8020
8018
|
return (hAsync("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, hAsync("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
|
|
@@ -8045,7 +8043,55 @@ class SdProgress {
|
|
|
8045
8043
|
}; }
|
|
8046
8044
|
}
|
|
8047
8045
|
|
|
8048
|
-
const
|
|
8046
|
+
const sdRadioCss = () => `sd-radio{display:inline-flex}sd-radio.sd-radio{cursor:pointer}sd-radio.sd-radio label{display:flex;align-items:center;gap:8px;cursor:pointer}sd-radio.sd-radio label input{position:relative;appearance:none;margin:0;width:16px;height:16px;border:1px solid #888888;border-radius:50%;accent-color:#0075ff;background-color:white;cursor:pointer}sd-radio.sd-radio label input:checked{border-color:#0075ff;background-color:white}sd-radio.sd-radio label input:checked::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;background-color:#0075ff}sd-radio.sd-radio label input:disabled{border-color:#cccccc;background-color:#eeeeee}sd-radio.sd-radio label input:disabled:checked::before{background-color:#cccccc}sd-radio.sd-radio label input:not(:disabled):hover{border-color:#0075ff;background-color:#d9eaff}sd-radio.sd-radio--disabled{cursor:not-allowed !important}sd-radio.sd-radio--disabled label{cursor:not-allowed !important}sd-radio.sd-radio--disabled label input{cursor:not-allowed !important}`;
|
|
8047
|
+
|
|
8048
|
+
class SdRadio {
|
|
8049
|
+
constructor(hostRef) {
|
|
8050
|
+
registerInstance(this, hostRef);
|
|
8051
|
+
this.update = createEvent(this, "sdUpdate");
|
|
8052
|
+
}
|
|
8053
|
+
value;
|
|
8054
|
+
disabled = false;
|
|
8055
|
+
val;
|
|
8056
|
+
label;
|
|
8057
|
+
update;
|
|
8058
|
+
getRadioClasses() {
|
|
8059
|
+
const classes = [
|
|
8060
|
+
'sd-radio',
|
|
8061
|
+
String(this.val) === String(this.value) ? 'sd-radio--selected' : 'sd-radio--unselected',
|
|
8062
|
+
];
|
|
8063
|
+
if (this.disabled) {
|
|
8064
|
+
classes.push('sd-radio--disabled');
|
|
8065
|
+
}
|
|
8066
|
+
return classes.join(' ');
|
|
8067
|
+
}
|
|
8068
|
+
handleRadioChange(detail) {
|
|
8069
|
+
if (this.disabled)
|
|
8070
|
+
return;
|
|
8071
|
+
console.log('detail', detail);
|
|
8072
|
+
this.value = this.val;
|
|
8073
|
+
this.update.emit(this.value);
|
|
8074
|
+
}
|
|
8075
|
+
render() {
|
|
8076
|
+
return (hAsync(Host, { key: 'f288b8077193d0c1614b3c25fb9f3ebbedf0f9be', "aria-label": this.val || 'radio option', "aria-checked": String(this.val) === String(this.value) ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', class: this.getRadioClasses() }, hAsync("label", { key: `radio-${this.val}` }, hAsync("input", { key: '0f5e1cad59ec2a2c20247bec1341e58b11477699', type: "radio", name: this.val, value: String(this.val), checked: String(this.val) === String(this.value), disabled: this.disabled, onInput: ({ detail }) => this.handleRadioChange(detail) }), this.val && hAsync("span", { key: '47fd723d1ec6c6124d01341f7edbe945061dc348', class: "sd-radio-group__label" }, this.label || this.val))));
|
|
8077
|
+
}
|
|
8078
|
+
static get style() { return sdRadioCss(); }
|
|
8079
|
+
static get cmpMeta() { return {
|
|
8080
|
+
"$flags$": 768,
|
|
8081
|
+
"$tagName$": "sd-radio",
|
|
8082
|
+
"$members$": {
|
|
8083
|
+
"value": [1544],
|
|
8084
|
+
"disabled": [4],
|
|
8085
|
+
"val": [1],
|
|
8086
|
+
"label": [1]
|
|
8087
|
+
},
|
|
8088
|
+
"$listeners$": undefined,
|
|
8089
|
+
"$lazyBundleId$": "-",
|
|
8090
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
8091
|
+
}; }
|
|
8092
|
+
}
|
|
8093
|
+
|
|
8094
|
+
const sdRadioButtonGroupCss = () => `sd-radio-button-group{display:inline-flex}sd-radio-button-group.sd-radio-button-group{flex-flow:row nowrap;gap:0}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option{display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid #cccccc;background-color:white;color:#333333;font-weight:400;transition:all 0.2s ease;position:relative;-webkit-user-select:none;user-select:none}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option input{display:none}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option:not(:first-child){margin-left:-1px}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option:first-child{border-radius:4px 0 0 4px}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option:last-child{border-radius:0 4px 4px 0}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option:only-child{border-radius:4px}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option::after{content:attr(data-label);position:absolute;font-weight:400;transition:font-weight 0.2s ease}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option:not(sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option--disabled):not(sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option--selected):hover{background-color:#0075ff;color:white;border-color:#0075ff;z-index:2}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option:not(sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option--disabled):not(sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option--selected):hover::after{font-weight:500}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option--selected{border-color:#0075ff;color:#0075ff;background-color:white;z-index:1}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option--disabled{background-color:#e1e1e1;border-color:#cccccc;color:#888888;cursor:not-allowed}sd-radio-button-group.sd-radio-button-group .sd-radio-button-group__option:has(input:disabled){cursor:not-allowed}sd-radio-button-group.sd-radio-button-group__label{-webkit-user-select:none;user-select:none;font-weight:500;visibility:hidden}sd-radio-button-group.sd-radio-button-group--sm .sd-radio-button-group__option{padding:4px 12px;font-size:12px;line-height:20px}sd-radio-button-group.sd-radio-button-group--md .sd-radio-button-group__option{padding:4px 20px;font-size:16px;line-height:26px}`;
|
|
8049
8095
|
|
|
8050
8096
|
class SdRadioButtonGroup {
|
|
8051
8097
|
constructor(hostRef) {
|
|
@@ -8088,10 +8134,10 @@ class SdRadioButtonGroup {
|
|
|
8088
8134
|
}
|
|
8089
8135
|
groupName = this.name || `sd-radio-button-group-${crypto.randomUUID()}`;
|
|
8090
8136
|
render() {
|
|
8091
|
-
return (hAsync(
|
|
8137
|
+
return (hAsync(Host, { key: '32517b5b2ead37b85464a19dbb944eb2a3b65a90', class: this.getGroupClasses(), role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.radioOptions.map(option => {
|
|
8092
8138
|
const isSelected = this.isOptionSelected(option);
|
|
8093
8139
|
const isDisabled = this.isOptionDisabled(option);
|
|
8094
|
-
return (hAsync("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option),
|
|
8140
|
+
return (hAsync("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, hAsync("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-button-group__label" }, option.label)));
|
|
8095
8141
|
})));
|
|
8096
8142
|
}
|
|
8097
8143
|
static get style() { return sdRadioButtonGroupCss(); }
|
|
@@ -8111,7 +8157,7 @@ class SdRadioButtonGroup {
|
|
|
8111
8157
|
}; }
|
|
8112
8158
|
}
|
|
8113
8159
|
|
|
8114
|
-
const sdRadioGroupCss = () => `sd-radio
|
|
8160
|
+
const sdRadioGroupCss = () => `sd-radio{display:inline-flex}sd-radio.sd-radio{cursor:pointer}sd-radio.sd-radio label{display:flex;align-items:center;gap:8px;cursor:pointer}sd-radio.sd-radio label input{position:relative;appearance:none;margin:0;width:16px;height:16px;border:1px solid #888888;border-radius:50%;accent-color:#0075ff;background-color:white;cursor:pointer}sd-radio.sd-radio label input:checked{border-color:#0075ff;background-color:white}sd-radio.sd-radio label input:checked::before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;background-color:#0075ff}sd-radio.sd-radio label input:disabled{border-color:#cccccc;background-color:#eeeeee}sd-radio.sd-radio label input:disabled:checked::before{background-color:#cccccc}sd-radio.sd-radio label input:not(:disabled):hover{border-color:#0075ff;background-color:#d9eaff}sd-radio.sd-radio--disabled{cursor:not-allowed !important}sd-radio.sd-radio--disabled label{cursor:not-allowed !important}sd-radio.sd-radio--disabled label input{cursor:not-allowed !important}sd-radio-group{display:inline-block}sd-radio-group .sd-radio-group{display:flex}sd-radio-group .sd-radio-group--vertical{flex-direction:column;gap:8px}sd-radio-group .sd-radio-group--horizontal{flex-direction:row;align-items:center;gap:20px}`;
|
|
8115
8161
|
|
|
8116
8162
|
class SdRadioGroup {
|
|
8117
8163
|
constructor(hostRef) {
|
|
@@ -8122,52 +8168,24 @@ class SdRadioGroup {
|
|
|
8122
8168
|
radioOptions = [];
|
|
8123
8169
|
direction = 'vertical';
|
|
8124
8170
|
disabled = false;
|
|
8125
|
-
|
|
8126
|
-
selectedValue;
|
|
8171
|
+
groupName;
|
|
8127
8172
|
change;
|
|
8128
|
-
componentWillLoad() {
|
|
8129
|
-
if (this.value) {
|
|
8130
|
-
this.selectedValue = this.value;
|
|
8131
|
-
}
|
|
8132
|
-
}
|
|
8133
8173
|
valueChanged(newValue) {
|
|
8134
|
-
this.
|
|
8174
|
+
this.value = newValue;
|
|
8135
8175
|
}
|
|
8136
|
-
handleRadioChange = (optionValue
|
|
8137
|
-
if (this.disabled
|
|
8176
|
+
handleRadioChange = (optionValue) => {
|
|
8177
|
+
if (this.disabled)
|
|
8138
8178
|
return;
|
|
8139
|
-
this.selectedValue = optionValue;
|
|
8140
8179
|
this.value = optionValue;
|
|
8141
|
-
this.change
|
|
8180
|
+
this.change?.emit(optionValue);
|
|
8142
8181
|
};
|
|
8143
|
-
isOptionSelected(option) {
|
|
8144
|
-
return this.selectedValue === option.value;
|
|
8145
|
-
}
|
|
8146
|
-
isOptionDisabled(option) {
|
|
8147
|
-
return this.disabled || !!option.disabled;
|
|
8148
|
-
}
|
|
8149
|
-
getRadioClasses(option) {
|
|
8150
|
-
const classes = [
|
|
8151
|
-
'sd-radio-group__option',
|
|
8152
|
-
this.isOptionSelected(option)
|
|
8153
|
-
? 'sd-radio-group__option--selected'
|
|
8154
|
-
: 'sd-radio-group__option--unselected',
|
|
8155
|
-
];
|
|
8156
|
-
if (this.isOptionDisabled(option)) {
|
|
8157
|
-
classes.push('sd-radio-group__option--disabled');
|
|
8158
|
-
}
|
|
8159
|
-
return classes.join(' ');
|
|
8160
|
-
}
|
|
8161
8182
|
getGroupClasses() {
|
|
8162
8183
|
const classes = ['sd-radio-group', `sd-radio-group--${this.direction}`];
|
|
8163
8184
|
return classes.join(' ');
|
|
8164
8185
|
}
|
|
8165
8186
|
render() {
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
const isSelected = this.isOptionSelected(option);
|
|
8169
|
-
const isDisabled = this.isOptionDisabled(option);
|
|
8170
|
-
return (hAsync("label", { key: `radio-${index}`, class: this.getRadioClasses(option), role: "radio", "aria-checked": isSelected.toString(), "aria-disabled": isDisabled.toString(), "aria-label": option.label || 'radio option' }, hAsync("input", { type: "radio", name: groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-group__label" }, option.label)));
|
|
8187
|
+
return (hAsync("div", { key: '264fed43fa10c8869762dab2b0530989e7901178', class: this.getGroupClasses(), role: "radiogroup" }, this.radioOptions.map(option => {
|
|
8188
|
+
return (hAsync("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: this.value, label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
8171
8189
|
})));
|
|
8172
8190
|
}
|
|
8173
8191
|
static get watchers() { return {
|
|
@@ -8182,8 +8200,7 @@ class SdRadioGroup {
|
|
|
8182
8200
|
"radioOptions": [1040],
|
|
8183
8201
|
"direction": [1],
|
|
8184
8202
|
"disabled": [4],
|
|
8185
|
-
"
|
|
8186
|
-
"selectedValue": [32]
|
|
8203
|
+
"groupName": [1, "group-name"]
|
|
8187
8204
|
},
|
|
8188
8205
|
"$listeners$": undefined,
|
|
8189
8206
|
"$lazyBundleId$": "-",
|
|
@@ -8444,7 +8461,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
8444
8461
|
}
|
|
8445
8462
|
};
|
|
8446
8463
|
render() {
|
|
8447
|
-
return (hAsync("sd-field", { key: '
|
|
8464
|
+
return (hAsync("sd-field", { key: '5c638efb68498690a30a855e3a337fac0e6e7810', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, useLabelRequired: this.useLabelRequired, insideLabel: this.insideLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: 'e14a4f235235fdafa94f645eac0c18091080c8e9', class: {
|
|
8448
8465
|
'sd-select': true,
|
|
8449
8466
|
'sd-select--disabled': this.disabled,
|
|
8450
8467
|
'sd-select--error': !!this.error,
|
|
@@ -8662,10 +8679,10 @@ class SdSelectDropdown {
|
|
|
8662
8679
|
this.isScrolled = scrollTop > 0;
|
|
8663
8680
|
};
|
|
8664
8681
|
render() {
|
|
8665
|
-
return (hAsync(Host, { key: '
|
|
8682
|
+
return (hAsync(Host, { key: 'bfb74ca8fece27f39c48185cd087ee1efaf52cd9', style: this.dropdownSize }, hAsync("div", { key: 'c1c9f7cf52432c48e080969d2324676310d7e7f9', class: {
|
|
8666
8683
|
'sd-select-dropdown': true,
|
|
8667
8684
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
8668
|
-
}, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (hAsync("sd-select-search-input", { key: '
|
|
8685
|
+
}, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (hAsync("sd-select-search-input", { key: 'c5d42ef925fba369b5b0361b7327fa3a1954d602', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (hAsync("slot", { name: `option-${option.value}` }, hAsync("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (hAsync("slot", { name: "option-placeholder" }, hAsync("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder))))));
|
|
8669
8686
|
}
|
|
8670
8687
|
static get watchers() { return {
|
|
8671
8688
|
"filteredOptions": ["filteredOptionsChanged"],
|
|
@@ -8847,7 +8864,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
8847
8864
|
this.handleOptionSelection(option);
|
|
8848
8865
|
};
|
|
8849
8866
|
render() {
|
|
8850
|
-
return (hAsync("sd-field", { key: '
|
|
8867
|
+
return (hAsync("sd-field", { key: '67a0bebbd4ad8ae405db1c9c1d0b9701a9b904f8', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: 'aa86839508c103bbe70287877020ec3eb82b7190', class: {
|
|
8851
8868
|
'sd-select-multiple': true,
|
|
8852
8869
|
'sd-select-multiple--open': this.isOpen,
|
|
8853
8870
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -9307,7 +9324,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
9307
9324
|
});
|
|
9308
9325
|
}
|
|
9309
9326
|
render() {
|
|
9310
|
-
return (hAsync("sd-field", { key: '
|
|
9327
|
+
return (hAsync("sd-field", { key: 'd809854ea5ad2aeebe2c6ffbedba19d6b62bb7be', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, useLabelRequired: this.useLabelRequired, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: '9db18413433f62c0530c6189cbcd6e11e12fc8ae', class: {
|
|
9311
9328
|
'sd-select-multiple-group': true,
|
|
9312
9329
|
'sd-select-multiple-group--open': this.isOpen,
|
|
9313
9330
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
@@ -9431,7 +9448,7 @@ class SdSelectOption {
|
|
|
9431
9448
|
}
|
|
9432
9449
|
};
|
|
9433
9450
|
render() {
|
|
9434
|
-
return (hAsync(Host, { key: '
|
|
9451
|
+
return (hAsync(Host, { key: '8324a5b292d922c4ba1104fe245863321fd222d4' }, hAsync("div", { key: 'ead9b6abf8193019d3f97dd5a1ea67ea9a735c01', class: {
|
|
9435
9452
|
'sd-select__option': true,
|
|
9436
9453
|
'sd-select__option--selected': this.isSelected,
|
|
9437
9454
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -9517,7 +9534,7 @@ class SdSelectOptionGroup {
|
|
|
9517
9534
|
}
|
|
9518
9535
|
};
|
|
9519
9536
|
render() {
|
|
9520
|
-
return (hAsync("div", { key: '
|
|
9537
|
+
return (hAsync("div", { key: 'd9b8a7728bd175b90cf39a8d293ab86010e39302', class: {
|
|
9521
9538
|
'sd-select__option-group': true,
|
|
9522
9539
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
9523
9540
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -9526,10 +9543,10 @@ class SdSelectOptionGroup {
|
|
|
9526
9543
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
9527
9544
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
9528
9545
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
9529
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '
|
|
9546
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '9c4d02a88c42f2cd7c84bf9a44bc871bb021a26b', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (hAsync("sd-checkbox", { key: '7a40633ffff063a0a75359127a1ccd4d86b4a163', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
9530
9547
|
e.preventDefault();
|
|
9531
9548
|
this.handleClick(this.option, this.isSelected, e);
|
|
9532
|
-
} })), hAsync("span", { key: '
|
|
9549
|
+
} })), hAsync("span", { key: '825638fd80e7cc41b7c0ba7af39b34df453ef729', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (hAsync("span", { key: 'fe7149a3e3a8bc94bf434b065133ba26a1698778', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
9533
9550
|
}
|
|
9534
9551
|
static get style() { return sdSelectOptionGroupCss(); }
|
|
9535
9552
|
static get cmpMeta() { return {
|
|
@@ -9578,17 +9595,17 @@ class SdSelectSearchInput {
|
|
|
9578
9595
|
input?.focus({ preventScroll: true });
|
|
9579
9596
|
}
|
|
9580
9597
|
render() {
|
|
9581
|
-
return (hAsync("div", { key: '
|
|
9598
|
+
return (hAsync("div", { key: '82fd2b838c46c47b51b93a23e5a837708fb944b1', class: {
|
|
9582
9599
|
'sd-select-search-input': true,
|
|
9583
9600
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
9584
|
-
}, onClick: event => event.stopPropagation() }, hAsync("sd-input", { key: '
|
|
9601
|
+
}, onClick: event => event.stopPropagation() }, hAsync("sd-input", { key: 'fc0821ce63f445bed3dfce51668ece1831914f86', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
9585
9602
|
this.searchInput.emit(String(event?.detail));
|
|
9586
9603
|
}, onSdFocus: () => {
|
|
9587
9604
|
this.searchFocus.emit();
|
|
9588
9605
|
}, onKeyDown: event => {
|
|
9589
9606
|
if (event.code === 'Enter')
|
|
9590
9607
|
event.stopPropagation();
|
|
9591
|
-
} }, hAsync("sd-icon", { key: '
|
|
9608
|
+
} }, hAsync("sd-icon", { key: '6a9b19f5910132be045e3a2cc33546307e3d5cb9', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
9592
9609
|
}
|
|
9593
9610
|
static get style() { return sdSelectSearchInputCss(); }
|
|
9594
9611
|
static get cmpMeta() { return {
|
|
@@ -10251,16 +10268,16 @@ class SdTable {
|
|
|
10251
10268
|
}, "aria-hidden": "true" }, hAsync("div", { class: "sd-table__skeleton-cell" })));
|
|
10252
10269
|
}
|
|
10253
10270
|
render() {
|
|
10254
|
-
return (hAsync(Host, { key: '
|
|
10271
|
+
return (hAsync(Host, { key: 'd9944a23c05504be55e6ac1926c0982967ea26c3' }, hAsync("div", { key: 'ab16b21be017394b9be38c65c31ffafcfb5d1699', class: "sd-table__wrapper", style: {
|
|
10255
10272
|
'--table-width': this.width,
|
|
10256
10273
|
'--table-height': this.height,
|
|
10257
|
-
} }, hAsync("div", { key: '
|
|
10274
|
+
} }, hAsync("div", { key: 'fe5bc2a359a2c100432213679e897b01b5c14c52', class: "sd-table__container", style: {
|
|
10258
10275
|
'--table-container-height': `calc(${this.height} - ${this.pagination && this.innerRows.length > 0 ? 48 : 0}px)`,
|
|
10259
|
-
} }, hAsync("div", { key: '
|
|
10276
|
+
} }, hAsync("div", { key: '61a7e17e93ce3427c65fc9e3dece30838720640d', class: {
|
|
10260
10277
|
'sd-table__middle': true,
|
|
10261
10278
|
'sd-table__middle--scrollable': this.paginatedRows.length > 0,
|
|
10262
10279
|
'sd-table__middle--loading': this.isLoading,
|
|
10263
|
-
} }, this.isLoading && (hAsync("div", { key: '
|
|
10280
|
+
} }, this.isLoading && (hAsync("div", { key: 'ad87480a5c5e62330fe21a03d16b4d2c61f144dc', class: "sd-table__middle--loading__spinner" }, hAsync("sd-loading-spinner", { key: 'd1232190a8b326504f6d016fb72ac706a25a3697' }))), hAsync("table", { key: 'a24fe9f8fca8fac2f80c23662311baf332abe508', part: "table", class: this.sdTableClasses }, this.renderHead(), this.renderBody())), !this.paginatedRows.length && (hAsync("div", { key: '6efc9f3210295cd98b2a3ce550df4c9af99d8d2a', class: "sd-table__bottom" }, hAsync("div", { key: 'c568913f977026f3be8c7bec8a6ee448ad1e5a33', class: "sd-table__no-data" }, hAsync("slot", { key: '5906d9ad73bb4ab7311ab5b78b91d877653e2031', name: "no-data" }, this.noDataLabel))))), this.pagination && this.innerRows.length > 0 && (hAsync("div", { key: 'f736e90da9697044655d02dc0f2bfa2c19538d50', class: "sd-table__pagination" }, hAsync("sd-pagination", { key: '2f4cda699cecb5289f5de73c72038a4b4ae316e7', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (hAsync("sd-select", { key: '9b7853ce859b3b5129fb459dddfea97fc75ffe78', value: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", onSdUpdate: (e) => this.changeRowsPerPage(e.detail.value) })))))));
|
|
10264
10281
|
}
|
|
10265
10282
|
static get watchers() { return {
|
|
10266
10283
|
"columns": ["handleColumnsChange"],
|
|
@@ -10364,7 +10381,7 @@ class SdTabs {
|
|
|
10364
10381
|
return { bgColor: '#E5E5E5', textColor: '#737373' };
|
|
10365
10382
|
}
|
|
10366
10383
|
render() {
|
|
10367
|
-
return (hAsync("div", { key: '
|
|
10384
|
+
return (hAsync("div", { key: '94f5cca8addf2b30907ba17a1b729c4904fd42cf', class: this.getContainerClasses() }, this.tabs.map((tab, index) => {
|
|
10368
10385
|
const badgeColors = this.getBadgeColors(tab);
|
|
10369
10386
|
return (hAsync("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, hAsync("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && (hAsync("sd-tag", { size: this.size, label: tab.badge.toString(), bgColor: badgeColors.bgColor, textColor: badgeColors.textColor, rounded: false }))));
|
|
10370
10387
|
})));
|
|
@@ -10431,7 +10448,7 @@ class SdTag {
|
|
|
10431
10448
|
}
|
|
10432
10449
|
render() {
|
|
10433
10450
|
const tagClasses = this.getTagClasses();
|
|
10434
|
-
return (hAsync("span", { key: '
|
|
10451
|
+
return (hAsync("span", { key: '44457ea67e6c6bc78f134df71beb8d16cc069f41', class: tagClasses, style: {
|
|
10435
10452
|
'--tag-bg-color': this.bgColor,
|
|
10436
10453
|
'--tag-text-color': this.textColor,
|
|
10437
10454
|
}, "aria-label": this.label || 'tag' }, this.renderContent()));
|
|
@@ -10544,10 +10561,10 @@ class SdTextarea {
|
|
|
10544
10561
|
}
|
|
10545
10562
|
: {};
|
|
10546
10563
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
10547
|
-
return (hAsync(Host, { key: '
|
|
10564
|
+
return (hAsync(Host, { key: 'e7dcaad4d684e27a8407bb8f577f8b77be9af07c', style: textareaWidth, class: {
|
|
10548
10565
|
'sd-textarea': true,
|
|
10549
10566
|
[this.getTextareaStatus()]: true,
|
|
10550
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("div", { key: '
|
|
10567
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("div", { key: '8c7eb8c3859467d50455a6158db3f06940233d5e', class: "sd-textarea__content" }, hAsync("textarea", { key: 'e0f6d9157c8742d6c7936576e0790c8d468768c3', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (hAsync("div", { key: '4638ad00f1101c84614c9eb3cc0eb31e539d3e03', class: "sd-textarea__footer" }, this.helpText !== undefined && hAsync("span", { key: '6761ae655b4298a6b4154e4f2b8a8883b1eeaa70', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && hAsync("span", { key: 'dc74b623c8469312b805970c42d0c38c9b2d95ad', class: "sd-textarea__counter" }, maxLengthCounter)))));
|
|
10551
10568
|
}
|
|
10552
10569
|
static get watchers() { return {
|
|
10553
10570
|
"value": ["valueChanged"],
|
|
@@ -10625,10 +10642,10 @@ class SdToastMessage {
|
|
|
10625
10642
|
background: resolveColor(colorTokens.background),
|
|
10626
10643
|
text: resolveColor(colorTokens.text),
|
|
10627
10644
|
};
|
|
10628
|
-
return (hAsync(Host, { key: '
|
|
10645
|
+
return (hAsync(Host, { key: '6b1a8a827b4e1a09ef648f83ef707a7020b953ee', style: {
|
|
10629
10646
|
'--sd-toast-bg': colors.background,
|
|
10630
10647
|
'--sd-toast-text': colors.text,
|
|
10631
|
-
} }, hAsync("div", { key: '
|
|
10648
|
+
} }, hAsync("div", { key: 'd442a1ae33c605af863d014e61eaf0a26ba991f7', class: this.getContainerClasses(), role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (hAsync("div", { key: '477651acf80d39aecf5b47d79955aaa990815821', class: "sd-toast-message__icon" }, hAsync("sd-icon", { key: '8563a3a93cdf4e42df02b2e42305f0cba843b6e0', name: this.icon, size: 16, color: colors.text }))), hAsync("div", { key: 'ff283cf84d91688ab29a70c96e19122d3c2a48bf', class: "sd-toast-message__content" }, hAsync("span", { key: '96fa4dbf914710e1dbd5df0df860bb3b912370d9', class: "sd-toast-message__message" }, this.message)), this.link && (hAsync("a", { key: '824c896f3483d19bf6d0e1f233576101a45a123b', href: this.link, class: "sd-toast-message__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (hAsync("sd-button", { key: '74797bcfb36d5f04bcfead15cb431c709ec4654e', class: `sd-toast-message__button ${this.type === 'basicLight' ? 'text-white' : ''}`, label: this.buttonLabel, variant: "primary", color: this.type === 'basicLight' ? 'oceanblue_75' : 'white', size: "sm", onClick: this.handleButtonClick, style: this.type !== 'basicLight' ? { '--button-text-color': resolveColor('grey_95') } : {} })), this.useClose && (hAsync("button", { key: '1aa66861462bd07f5cc76e8fdaa4e24d2adeff25', type: "button", class: "sd-toast-message__close", onClick: this.handleClose, "aria-label": "Close", title: "Close" }, hAsync("sd-icon", { key: '8b8ecf1a65ae6c4ac0f8132d1f19800960244828', name: "close", size: 12, color: colors.text }))))));
|
|
10632
10649
|
}
|
|
10633
10650
|
static get style() { return sdToastMessageCss(); }
|
|
10634
10651
|
static get cmpMeta() { return {
|
|
@@ -10685,7 +10702,7 @@ class SdToggle {
|
|
|
10685
10702
|
this.change.emit(newValue);
|
|
10686
10703
|
};
|
|
10687
10704
|
render() {
|
|
10688
|
-
return (hAsync("label", { key: '
|
|
10705
|
+
return (hAsync("label", { key: 'c874dbaa2a3f3743b7f3c93a6af4efd63660f3b2', "aria-label": this.label || 'toggle', class: this.toggleClasses }, hAsync("input", { key: 'da204ac9048128501f68b3dac55c9b30bbc0cd83', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), this.label && hAsync("span", { key: '5eeb06d12bf94610a10e6000a7d0f3c750bb918f', class: "sd-toggle__label" }, this.label), hAsync("div", { key: 'bf0dd0fab7ced78f4a5728d4d1b9c8995ad1130a', class: "sd-toggle__track" }, hAsync("div", { key: '92c08a823a1b9d28814e812b7660d33ea7238a32', class: "sd-toggle__thumb" }))));
|
|
10689
10706
|
}
|
|
10690
10707
|
static get style() { return sdToggleCss(); }
|
|
10691
10708
|
static get cmpMeta() { return {
|
|
@@ -10741,7 +10758,7 @@ class SdToggleButton {
|
|
|
10741
10758
|
this.change.emit(newValue);
|
|
10742
10759
|
};
|
|
10743
10760
|
render() {
|
|
10744
|
-
return (hAsync("label", { key: '
|
|
10761
|
+
return (hAsync("label", { key: '56d11c1aad1514aa11919403e81d8b4959b1bf82', class: this.buttonClasses, "aria-label": this.label || 'toggle button' }, this.label, hAsync("input", { key: 'c4316f336ea6f27b90b437e39f0410f3da052a79', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
10745
10762
|
}
|
|
10746
10763
|
static get style() { return sdToggleButtonCss(); }
|
|
10747
10764
|
static get cmpMeta() { return {
|
|
@@ -10852,6 +10869,7 @@ registerComponents([
|
|
|
10852
10869
|
SdPopover,
|
|
10853
10870
|
SdPortal,
|
|
10854
10871
|
SdProgress,
|
|
10872
|
+
SdRadio,
|
|
10855
10873
|
SdRadioButtonGroup,
|
|
10856
10874
|
SdRadioGroup,
|
|
10857
10875
|
SdSelect,
|