@sellmate/design-system 1.9.0 → 1.10.0
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-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/{sd-button.config-WeoddlTQ.js → sd-button.config-eTAJM2iW.js} +17 -3
- package/dist/cjs/sd-button_2.cjs.entry.js +6 -5
- package/dist/cjs/sd-calendar_2.cjs.entry.js +5 -5
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +274 -0
- package/dist/cjs/sd-chip.cjs.entry.js +14 -84
- package/dist/cjs/sd-chip.config-DiLoRpct.js +71 -0
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +9 -5
- package/dist/cjs/sd-field_3.cjs.entry.js +9 -8
- package/dist/cjs/sd-ghost-button_2.cjs.entry.js +407 -0
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tabs.cjs.entry.js +5 -2
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- 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-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button/sd-button.config.js +9 -1
- package/dist/collection/components/sd-button/sd-button.css +6 -5
- package/dist/collection/components/sd-button/sd-button.js +5 -4
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.config.js +0 -1
- package/dist/collection/components/sd-chip/sd-chip.css +5 -0
- package/dist/collection/components/sd-chip/sd-chip.js +7 -5
- package/dist/collection/components/sd-chip-input/sd-chip-input.config.js +48 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +92 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +709 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +3 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +4 -0
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +5 -3
- package/dist/collection/components/sd-field/sd-field.js +6 -5
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +21 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +27 -2
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.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 +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.css +27 -0
- package/dist/collection/components/sd-tabs/sd-tabs.js +24 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/{p-CnCH_nnG.js → p-0KaFFbD8.js} +1 -1
- package/dist/components/{p-B3vmDhWb.js → p-4XivETkt.js} +1 -1
- package/dist/components/p-AmkZCF9y.js +1 -0
- package/dist/components/p-BA8i1i5_.js +1 -0
- package/dist/components/{p-7TYtYYrb.js → p-BcsFHQH8.js} +1 -1
- package/dist/components/{p-C_RL1gZR.js → p-BnaD56dI.js} +1 -1
- package/dist/components/p-Bq9q5LoZ.js +1 -0
- package/dist/components/p-BwUUaGFU.js +1 -0
- package/dist/components/{p-C2LhOf89.js → p-CJdrq8cV.js} +1 -1
- package/dist/components/{p-Due8URWT.js → p-CJr5BdNN.js} +1 -1
- package/dist/components/p-CWlwx4xx.js +1 -0
- package/dist/components/p-CWz_dfBG.js +1 -0
- package/dist/components/{p-PDLDFsH7.js → p-CjVOfLam.js} +1 -1
- package/dist/components/{p-BaOCZ7B6.js → p-Ck9bJZTm.js} +1 -1
- package/dist/components/{p-BS1cT5dG.js → p-CkQzw2e0.js} +1 -1
- package/dist/components/p-CqvS2J1B.js +1 -0
- package/dist/components/p-CyGi6aGo.js +1 -0
- package/dist/components/p-Cz9ralVS.js +1 -0
- package/dist/components/{p-C8MKSPNX.js → p-D4TisqIF.js} +1 -1
- package/dist/components/{p-B5XCkCeg.js → p-D5O7fZYw.js} +1 -1
- package/dist/components/{p-BDUIw6As.js → p-DApxX0af.js} +1 -1
- package/dist/components/p-DR0N8_Vt.js +1 -0
- package/dist/components/p-DUhqd8c7.js +1 -0
- package/dist/components/{p-DLNwV8Wa.js → p-DmbwfZF7.js} +1 -1
- package/dist/components/p-Dp6NByuZ.js +1 -0
- package/dist/components/{p-CwUPCrDk.js → p-Dt9-l05k.js} +1 -1
- package/dist/components/{p-J57vnHhu.js → p-DwU-e9i1.js} +1 -1
- package/dist/components/{p-BnJJAhY6.js → p-Dwl1u73P.js} +1 -1
- package/dist/components/{p-yTY5CmAx.js → p-NaAHdFVI.js} +1 -1
- package/dist/components/{p-B8Z5qc_1.js → p-jtJFHONo.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-chip-input.d.ts +11 -0
- package/dist/components/sd-chip-input.js +1 -0
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.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-6716691b.entry.js → p-0ac4d17b.entry.js} +1 -1
- package/dist/design-system/{p-19d47ac2.entry.js → p-12c1ddfc.entry.js} +1 -1
- package/dist/design-system/{p-8926c5ec.entry.js → p-15518cf5.entry.js} +1 -1
- package/dist/design-system/{p-de743615.entry.js → p-20ebfd9e.entry.js} +1 -1
- package/dist/design-system/{p-11e99ac5.entry.js → p-24cb3aef.entry.js} +1 -1
- package/dist/design-system/p-2f53e2f9.entry.js +1 -0
- package/dist/design-system/{p-3eb72b33.entry.js → p-36b8f224.entry.js} +1 -1
- package/dist/design-system/{p-86db28ce.entry.js → p-3bd59260.entry.js} +1 -1
- package/dist/design-system/p-4fd59127.entry.js +1 -0
- package/dist/design-system/{p-95cce55d.entry.js → p-5b2dd552.entry.js} +1 -1
- package/dist/design-system/p-5deefcbc.entry.js +1 -0
- package/dist/design-system/{p-e1ef1eb8.entry.js → p-6ebd85ae.entry.js} +1 -1
- package/dist/design-system/p-798c0f9b.entry.js +1 -0
- package/dist/design-system/p-7ca9a6c9.entry.js +1 -0
- package/dist/design-system/{p-5b7ea330.entry.js → p-9f899376.entry.js} +1 -1
- package/dist/design-system/p-9ff473b2.entry.js +1 -0
- package/dist/design-system/p-DDj5KTBF.js +1 -0
- package/dist/design-system/p-DjcjlPt7.js +1 -0
- package/dist/design-system/p-a1f248ed.entry.js +1 -0
- package/dist/design-system/{p-1dd139cb.entry.js → p-a9892cbe.entry.js} +1 -1
- package/dist/design-system/{p-39a2bf05.entry.js → p-acaaf137.entry.js} +1 -1
- package/dist/design-system/{p-06344171.entry.js → p-b1d1f1d3.entry.js} +1 -1
- package/dist/design-system/{p-4ca63a2d.entry.js → p-b495f26c.entry.js} +1 -1
- package/dist/design-system/{p-362ac234.entry.js → p-b63c672a.entry.js} +1 -1
- package/dist/design-system/{p-b3b46576.entry.js → p-bbae006c.entry.js} +1 -1
- package/dist/design-system/p-bbb51afa.entry.js +1 -0
- package/dist/design-system/p-d40ffa84.entry.js +1 -0
- package/dist/design-system/{p-acfe5585.entry.js → p-e4944ae6.entry.js} +1 -1
- package/dist/design-system/{p-a0607a9f.entry.js → p-e5f1156c.entry.js} +1 -1
- package/dist/design-system/p-f462bc54.entry.js +1 -0
- package/dist/design-system/{p-21f654e3.entry.js → p-f8b6b169.entry.js} +1 -1
- package/dist/design-system/{p-a0daadc8.entry.js → p-fcd3961f.entry.js} +1 -1
- 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-barcode-input.entry.js +1 -1
- package/dist/esm/{sd-button.config-CdRvJ-Uc.js → sd-button.config-DjcjlPt7.js} +16 -3
- package/dist/esm/sd-button_2.entry.js +6 -5
- package/dist/esm/sd-calendar_2.entry.js +5 -5
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +272 -0
- package/dist/esm/sd-chip.config-DDj5KTBF.js +67 -0
- package/dist/esm/sd-chip.entry.js +9 -79
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-picker_7.entry.js +9 -9
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +9 -5
- package/dist/esm/sd-field_3.entry.js +9 -8
- package/dist/esm/sd-ghost-button_2.entry.js +404 -0
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +8 -8
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-tabs.entry.js +5 -2
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/types/components/sd-button/sd-button.config.d.ts +10 -2
- package/dist/types/components/sd-chip/sd-chip.config.d.ts +0 -1
- package/dist/types/components/sd-chip-input/sd-chip-input.config.d.ts +34 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +53 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +9 -1
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +1 -0
- package/dist/types/components/sd-tabs/sd-tabs.d.ts +1 -0
- package/dist/types/components.d.ts +210 -0
- package/hydrate/index.js +449 -121
- package/hydrate/index.mjs +449 -121
- package/package.json +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +0 -179
- package/dist/cjs/sd-tag.cjs.entry.js +0 -227
- package/dist/components/p-B8QZRiYH.js +0 -1
- package/dist/components/p-BYgOJUk0.js +0 -1
- package/dist/components/p-BmmIQQlT.js +0 -1
- package/dist/components/p-CMUpMkva.js +0 -1
- package/dist/components/p-CeoBnd3w.js +0 -1
- package/dist/components/p-CpdFMy8s.js +0 -1
- package/dist/components/p-CqcGVHzJ.js +0 -1
- package/dist/components/p-CtxH9xQc.js +0 -1
- package/dist/components/p-DEfG8t7h.js +0 -1
- package/dist/components/p-DGCbSjhn.js +0 -1
- package/dist/components/p-DLeITJ-j.js +0 -1
- package/dist/components/p-DqXt80Qn.js +0 -1
- package/dist/design-system/p-0a225a4a.entry.js +0 -1
- package/dist/design-system/p-17d8457d.entry.js +0 -1
- package/dist/design-system/p-2bd09b2f.entry.js +0 -1
- package/dist/design-system/p-515e837b.entry.js +0 -1
- package/dist/design-system/p-5ee1e5e6.entry.js +0 -1
- package/dist/design-system/p-79e73305.entry.js +0 -1
- package/dist/design-system/p-97b16b63.entry.js +0 -1
- package/dist/design-system/p-CdRvJ-Uc.js +0 -1
- package/dist/design-system/p-a39016ac.entry.js +0 -1
- package/dist/design-system/p-d9c1ec16.entry.js +0 -1
- package/dist/design-system/p-de565b9f.entry.js +0 -1
- package/dist/esm/sd-ghost-button.entry.js +0 -177
- package/dist/esm/sd-tag.entry.js +0 -225
|
@@ -27,7 +27,7 @@ export class SdCircleProgress {
|
|
|
27
27
|
}
|
|
28
28
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
29
29
|
const showPercent = !this.indeterminate;
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '46d74c0edb5a5e8cd0472c83efc45a0efaf353b4', style: hostStyle }, h("svg", { key: '34117c89eb180370a215807e614ad08f4f72b517', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '08ac6f011b6a4b6744ddcf437b1e0a5b96abfc6e', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: '5ae0a53ce10bd5a8b2f316ebd00d3ee28c4336d6', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle })), showPercent && (h("span", { key: 'fd52ee1947d41b2117c9ea6e4cc9a448799342e3', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && h("span", { key: 'a58776c4ef67eb900eba97ff4fed138c8f5e8452', class: "sd-circle-progress__label" }, this.label)));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "sd-circle-progress"; }
|
|
33
33
|
static get originalStyleUrls() {
|
|
@@ -73,9 +73,9 @@ export class SdConfirmModal {
|
|
|
73
73
|
const type = this.resolvedType;
|
|
74
74
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
75
75
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
76
|
-
return (h("div", { key: '
|
|
76
|
+
return (h("div", { key: '4d3ce0662b2d860a4ed6ae3c8177ae75dae4fb92', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: '7c406d59c2470b610a187bf45aa5cd4ab5c6b26b', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '10e3d2c8a87a728df4e3f3be7dfab96475738e2b', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: '9cc844c8cefb2fd0dc96871b55fc1c7c6e41c526', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), h("div", { key: 'bbaa81a02c067d66c4cc19cf805b7a6939231311', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '31734f096eee6e6a9be770eafa43066c8e763608', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) }))))), this.showContentBox && (h("div", { key: 'a10838fb7c7081fdaa85cdaa33f92ef30c00a888', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
77
77
|
this.customContentRef = el;
|
|
78
|
-
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '
|
|
78
|
+
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '540f3bb73aa61a1a2a041eba9a22a198c7772914', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) })))))), h("div", { key: '1944aeb4d140c779d0af1304160a86c5056335a8', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button", { key: 'efd463686d98e9d2edc3e1cd7b4f54d8da4fef56', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button", { key: 'b9033fb98acf3de36b7fb3e1969ccf5a7becef39', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "sd-confirm-modal"; }
|
|
81
81
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js
CHANGED
|
@@ -33,7 +33,7 @@ export class SdDatePickerTrigger {
|
|
|
33
33
|
? DATEPICKER_COLORS.icon.disabled
|
|
34
34
|
: DATEPICKER_COLORS.icon.default,
|
|
35
35
|
};
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: '87ada0414ffc6404b27cf4a41ba7c9cb9903f498', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
37
37
|
'sd-date-picker-trigger': true,
|
|
38
38
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
39
39
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -41,7 +41,7 @@ export class SdDatePickerTrigger {
|
|
|
41
41
|
e.preventDefault();
|
|
42
42
|
this.handleClick();
|
|
43
43
|
}
|
|
44
|
-
} }, h("sd-icon", { key: '
|
|
44
|
+
} }, h("sd-icon", { key: 'e8eee3ed97ab7344e7658b7b22bc91f11aa0b068', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: 'ea25a13a72d00ca31fcddaf0183b520175ef7d93', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "sd-date-picker-trigger"; }
|
|
47
47
|
static get originalStyleUrls() {
|
|
@@ -93,9 +93,9 @@ export class SdDatePicker {
|
|
|
93
93
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
94
94
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
95
95
|
};
|
|
96
|
-
return (h("sd-field", { key: '
|
|
96
|
+
return (h("sd-field", { key: 'baa957e5534b6587da2ef067ecad4a0934693800', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '652f9f5c6bd5c6ee58f3c89eee45325a98234ac0', class: "sd-date-picker", ref: el => {
|
|
97
97
|
this.triggerRef = el;
|
|
98
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
98
|
+
} }, h("sd-date-picker-trigger", { key: '7b0f81badbcf7ca283afd274b4572e4a6eaa590b', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '65fbe892e4cdd9d643b5000d69220b5e28972902', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-calendar", { key: 'e9187264f336295907f1d5574810df4a07a0f114', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "sd-date-picker"; }
|
|
101
101
|
static get originalStyleUrls() {
|
|
@@ -239,7 +239,7 @@ export class SdDateRangePickerCalendar {
|
|
|
239
239
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
240
240
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
241
241
|
};
|
|
242
|
-
return (h(Fragment, { key: '
|
|
242
|
+
return (h(Fragment, { key: '91ba95cf0786d59363ac6b72e9c8f91d1802feee' }, h("div", { key: '98f66737a15e5c3129dd20f674736115a4fad42e', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: 'd9f326b485864484ed786cb172d3bd33136987ea', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: 'df7d835ac0da6788f08c7963ed04ed98b7fd6091', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
243
243
|
}
|
|
244
244
|
static get is() { return "sd-date-range-picker-calendar"; }
|
|
245
245
|
static get originalStyleUrls() {
|
|
@@ -7,7 +7,7 @@ export class SdDivider {
|
|
|
7
7
|
const hostStyle = {
|
|
8
8
|
'--sd-divider-color': DIVIDER_COLORS.default,
|
|
9
9
|
};
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '8282aae8e5cd26630c54f4347cd26f544672d15d', style: hostStyle }, h("hr", { key: '94df7dc7465b05ecad6527da2c008a4ff503f034', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "sd-divider"; }
|
|
13
13
|
static get originalStyleUrls() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import buttonTokens from "../../tokens/generated/component.button.json";
|
|
2
2
|
import systemTokens from "../../tokens/generated/system.json";
|
|
3
|
-
import { BUTTON_CONFIG, PRESET_BORDER_COLORS as BUTTON_PRESET_BORDER_COLORS,
|
|
3
|
+
import { BUTTON_CONFIG, PRESET_BORDER_COLORS as BUTTON_PRESET_BORDER_COLORS, PRESET_TEXT_COLORS as BUTTON_PRESET_TEXT_COLORS, PRESET_ICON_COLORS as BUTTON_PRESET_ICON_COLORS, PRESET_HOVER_BACKGROUNDS as BUTTON_PRESET_HOVER_BACKGROUNDS, getPresetName, } from "../sd-button/sd-button.config";
|
|
4
4
|
// lazy IIFE 로 평가를 한 단계 안으로 옮겨 ban-side-effects 룰의 top-level call 검출을 회피한다.
|
|
5
5
|
// (런타임 동작은 동일하다 — 모듈 로딩 시점에 한 번 실행됨.)
|
|
6
6
|
export const DROPDOWN_BUTTON_CONFIG = (() => {
|
|
@@ -8,7 +8,8 @@ export const DROPDOWN_BUTTON_CONFIG = (() => {
|
|
|
8
8
|
return Object.fromEntries(names.map(name => [name, BUTTON_CONFIG[name]]));
|
|
9
9
|
})();
|
|
10
10
|
export const PRESET_HOVER_BACKGROUNDS = BUTTON_PRESET_HOVER_BACKGROUNDS;
|
|
11
|
-
export const
|
|
11
|
+
export const PRESET_TEXT_COLORS = BUTTON_PRESET_TEXT_COLORS;
|
|
12
|
+
export const PRESET_ICON_COLORS = BUTTON_PRESET_ICON_COLORS;
|
|
12
13
|
export const PRESET_BORDER_COLORS = BUTTON_PRESET_BORDER_COLORS;
|
|
13
14
|
export const PRESET_DIVIDER_COLORS = {
|
|
14
15
|
primary: buttonTokens.button.dropdown.brand.strong.split,
|
|
@@ -21,11 +21,14 @@ sd-dropdown-button {
|
|
|
21
21
|
--sd-dropdown-button-bg-hover: #004177;
|
|
22
22
|
--sd-dropdown-button-border: transparent;
|
|
23
23
|
--sd-dropdown-button-content: #FFFFFF;
|
|
24
|
+
--sd-dropdown-button-icon: var(--sd-dropdown-button-content);
|
|
24
25
|
--sd-dropdown-button-current-content: var(--sd-dropdown-button-content);
|
|
26
|
+
--sd-dropdown-button-current-icon: var(--sd-dropdown-button-icon);
|
|
25
27
|
--sd-dropdown-button-divider: #006AC1;
|
|
26
28
|
--sd-dropdown-button-accent: #0075FF;
|
|
27
29
|
--sd-dropdown-button-disabled-bg: var(--sd-button-button-bg-disabled, #E1E1E1);
|
|
28
30
|
--sd-dropdown-button-disabled-content: var(--sd-button-button-text-disabled, #888888);
|
|
31
|
+
--sd-dropdown-button-disabled-icon: var(--sd-button-button-icon-disabled, #BBBBBB);
|
|
29
32
|
--sd-dropdown-button-disabled-border: var(--sd-button-button-border-disabled, #CCCCCC);
|
|
30
33
|
display: inline-flex;
|
|
31
34
|
align-items: stretch;
|
|
@@ -94,6 +97,7 @@ sd-dropdown-button {
|
|
|
94
97
|
border-color: var(--sd-dropdown-button-disabled-border);
|
|
95
98
|
background: var(--sd-dropdown-button-disabled-bg);
|
|
96
99
|
--sd-dropdown-button-current-content: var(--sd-dropdown-button-disabled-content);
|
|
100
|
+
--sd-dropdown-button-current-icon: var(--sd-dropdown-button-disabled-icon);
|
|
97
101
|
cursor: not-allowed;
|
|
98
102
|
}
|
|
99
103
|
|
|
@@ -2,7 +2,7 @@ import { h, } from "@stencil/core";
|
|
|
2
2
|
import { BaseDropdownEvent } from "../../utils/base-dropdown-event";
|
|
3
3
|
import { sanitizeInlineHtml } from "../../utils/html/sanitize-inline-html";
|
|
4
4
|
import { BUTTON_FOCUS_RING_COLOR } from "../sd-button/sd-button.config";
|
|
5
|
-
import { DROPDOWN_BUTTON_CONFIG, DROPDOWN_CHEVRON_ICON_SIZE, DROPDOWN_DISABLED_BACKGROUND, DROPDOWN_DISABLED_BORDER, DROPDOWN_DISABLED_TEXT, getDropdownButtonPreset, isDropdownButtonName, PRESET_BORDER_COLORS,
|
|
5
|
+
import { DROPDOWN_BUTTON_CONFIG, DROPDOWN_CHEVRON_ICON_SIZE, DROPDOWN_DISABLED_BACKGROUND, DROPDOWN_DISABLED_BORDER, DROPDOWN_DISABLED_ICON, DROPDOWN_DISABLED_TEXT, getDropdownButtonPreset, isDropdownButtonName, PRESET_BORDER_COLORS, PRESET_TEXT_COLORS, PRESET_ICON_COLORS, PRESET_DIVIDER_COLORS, PRESET_HOVER_BACKGROUNDS, PRESET_MENU_ITEM_ACTIVE_BACKGROUNDS, PRESET_MENU_ITEM_ACTIVE_COLORS, PRESET_MENU_ITEM_COLORS, } from "./sd-dropdown-button.config";
|
|
6
6
|
export class SdDropdownButton extends BaseDropdownEvent {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -175,11 +175,13 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
175
175
|
'--sd-dropdown-button-bg': config.color,
|
|
176
176
|
'--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
177
177
|
'--sd-dropdown-button-border': PRESET_BORDER_COLORS[preset],
|
|
178
|
-
'--sd-dropdown-button-content':
|
|
178
|
+
'--sd-dropdown-button-content': PRESET_TEXT_COLORS[preset],
|
|
179
|
+
'--sd-dropdown-button-icon': PRESET_ICON_COLORS[preset],
|
|
179
180
|
'--sd-dropdown-button-divider': PRESET_DIVIDER_COLORS[preset],
|
|
180
181
|
'--sd-dropdown-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
181
182
|
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
182
183
|
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_TEXT,
|
|
184
|
+
'--sd-dropdown-button-disabled-icon': DROPDOWN_DISABLED_ICON,
|
|
183
185
|
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
184
186
|
};
|
|
185
187
|
}
|
|
@@ -218,7 +220,7 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
218
220
|
return (h("span", { class: {
|
|
219
221
|
'sd-dropdown-button__trigger-icon': true,
|
|
220
222
|
'sd-dropdown-button__trigger-icon--open': this.isOpen && !this.split,
|
|
221
|
-
}, "aria-hidden": "true" }, h("sd-icon", { name: iconName, size: DROPDOWN_CHEVRON_ICON_SIZE[size], color: "var(--sd-dropdown-button-current-
|
|
223
|
+
}, "aria-hidden": "true" }, h("sd-icon", { name: iconName, size: DROPDOWN_CHEVRON_ICON_SIZE[size], color: "var(--sd-dropdown-button-current-icon)" })));
|
|
222
224
|
}
|
|
223
225
|
render() {
|
|
224
226
|
const { config, preset } = this.resolvedConfig;
|
|
@@ -10,6 +10,7 @@ const FORM_PARENT_TAGS = [
|
|
|
10
10
|
'sd-file-picker',
|
|
11
11
|
'sd-date-picker',
|
|
12
12
|
'sd-date-range-picker',
|
|
13
|
+
'sd-chip-input',
|
|
13
14
|
];
|
|
14
15
|
export class SdField {
|
|
15
16
|
el;
|
|
@@ -172,21 +173,21 @@ export class SdField {
|
|
|
172
173
|
: {}),
|
|
173
174
|
}
|
|
174
175
|
: {};
|
|
175
|
-
return (h("div", { key: '
|
|
176
|
+
return (h("div", { key: 'b2a4122378dd725d8b392b89ae44669f097ff767', class: {
|
|
176
177
|
'sd-field': true,
|
|
177
178
|
'sd-field--has-label': this.label !== '',
|
|
178
179
|
'sd-field--has-addon': addon !== '',
|
|
179
180
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
180
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: '
|
|
181
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, h("div", { key: 'ae6ead740a745248f89a3b9049480954091f5991', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '42699ddc5eb366d035986274dcf3ae7c17396e9c', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
181
182
|
? {
|
|
182
183
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
183
184
|
flex: 'none',
|
|
184
185
|
}
|
|
185
|
-
: {} }, h("div", { key: '
|
|
186
|
+
: {} }, h("div", { key: 'f8c058d44411d27997e90bf3627a4b905f1a6112', class: {
|
|
186
187
|
'sd-field__control': true,
|
|
187
188
|
'sd-field__control--has-addon': addon !== '',
|
|
188
|
-
} }, addon && (h("div", { key: '
|
|
189
|
-
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '
|
|
189
|
+
} }, addon && (h("div", { key: '86592d8a5046853eef3392e598c23d6348313e56', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: '147082f30f173615e9a4253e99eabae868960f6f', name: this.icon.name, size: this.icon.size ??
|
|
190
|
+
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: 'a91c7c8ab0075f0cc1d2169b201bf37900872b99' })), this.errorMsg !== '' || this.errorMessage !== '' ? (h("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && h("div", { class: "sd-field__hint" }, this.hint))))));
|
|
190
191
|
}
|
|
191
192
|
renderLabel(label) {
|
|
192
193
|
if (label == null || label === '')
|
|
@@ -153,7 +153,7 @@ export class SdFloatingPopover {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return h("slot", { key: '
|
|
156
|
+
return h("slot", { key: '7153fca24fbba922c0dd667bc3bf2314a551f750' });
|
|
157
157
|
}
|
|
158
158
|
static get is() { return "sd-floating-portal"; }
|
|
159
159
|
static get originalStyleUrls() {
|
|
@@ -40,4 +40,25 @@ sd-ghost-button {
|
|
|
40
40
|
}
|
|
41
41
|
.sd-ghost-button--disabled {
|
|
42
42
|
cursor: not-allowed;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sd-ghost-button__tooltip {
|
|
46
|
+
position: absolute;
|
|
47
|
+
left: 50%;
|
|
48
|
+
bottom: calc(100% + 4px);
|
|
49
|
+
transform: translateX(-50%) translateY(4px);
|
|
50
|
+
z-index: 1;
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
opacity: 0;
|
|
54
|
+
visibility: hidden;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.sd-ghost-button--with-tooltip:hover:not(.sd-ghost-button--disabled) .sd-ghost-button__tooltip,
|
|
60
|
+
.sd-ghost-button--with-tooltip:focus-visible:not(.sd-ghost-button--disabled) .sd-ghost-button__tooltip {
|
|
61
|
+
opacity: 1;
|
|
62
|
+
visibility: visible;
|
|
63
|
+
transform: translateX(-50%) translateY(0);
|
|
43
64
|
}
|
|
@@ -5,6 +5,7 @@ export class SdGhostButton {
|
|
|
5
5
|
size = 'sm';
|
|
6
6
|
intent = 'default';
|
|
7
7
|
ariaLabel = '';
|
|
8
|
+
tooltipLabel = '';
|
|
8
9
|
disabled = false;
|
|
9
10
|
click;
|
|
10
11
|
hasWarnedMissingAriaLabel = false;
|
|
@@ -12,6 +13,7 @@ export class SdGhostButton {
|
|
|
12
13
|
this.size ??= 'sm';
|
|
13
14
|
this.intent ??= 'default';
|
|
14
15
|
this.ariaLabel ??= '';
|
|
16
|
+
this.tooltipLabel ??= '';
|
|
15
17
|
}
|
|
16
18
|
handleClick = (event) => {
|
|
17
19
|
if (this.disabled) {
|
|
@@ -42,16 +44,19 @@ export class SdGhostButton {
|
|
|
42
44
|
? GHOST_BUTTON_DISABLED_COLORS[intent]
|
|
43
45
|
: GHOST_BUTTON_CONTENT_COLORS[intent];
|
|
44
46
|
const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
|
|
45
|
-
|
|
47
|
+
const tooltipLabel = (this.tooltipLabel ?? '').trim();
|
|
48
|
+
const hasTooltip = tooltipLabel.length > 0;
|
|
49
|
+
return (h("button", { key: 'fafdeaa60205f0190cc592ac8fdacbf140e28d6c', class: {
|
|
46
50
|
'sd-ghost-button': true,
|
|
47
51
|
'sd-ghost-button--disabled': this.disabled,
|
|
52
|
+
'sd-ghost-button--with-tooltip': hasTooltip,
|
|
48
53
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
49
54
|
'--sd-ghost-button-size': `${sizeConfig.size}px`,
|
|
50
55
|
'--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS[size]}px`,
|
|
51
56
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
|
|
52
57
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
53
58
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
54
|
-
}, onClick: this.handleClick }, h("sd-icon", { key: '
|
|
59
|
+
}, onClick: this.handleClick }, hasTooltip && (h("span", { key: '57425145ccc76a0bf960377cb13ba06e37195fa3', class: "sd-ghost-button__tooltip", "aria-hidden": "true" }, h("sd-tag", { key: '9d097c96d701431ac92aa7fb305c418bb570bc16', name: "square_xs_grey", label: tooltipLabel }))), h("sd-icon", { key: '4b186b2fd33c70f4b47a2c736a53e1ac37bc2ebc', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
55
60
|
}
|
|
56
61
|
static get is() { return "sd-ghost-button"; }
|
|
57
62
|
static get originalStyleUrls() {
|
|
@@ -164,6 +169,26 @@ export class SdGhostButton {
|
|
|
164
169
|
"attribute": "aria-label",
|
|
165
170
|
"defaultValue": "''"
|
|
166
171
|
},
|
|
172
|
+
"tooltipLabel": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"mutable": false,
|
|
175
|
+
"complexType": {
|
|
176
|
+
"original": "string",
|
|
177
|
+
"resolved": "string",
|
|
178
|
+
"references": {}
|
|
179
|
+
},
|
|
180
|
+
"required": false,
|
|
181
|
+
"optional": false,
|
|
182
|
+
"docs": {
|
|
183
|
+
"tags": [],
|
|
184
|
+
"text": ""
|
|
185
|
+
},
|
|
186
|
+
"getter": false,
|
|
187
|
+
"setter": false,
|
|
188
|
+
"reflect": false,
|
|
189
|
+
"attribute": "tooltip-label",
|
|
190
|
+
"defaultValue": "''"
|
|
191
|
+
},
|
|
167
192
|
"disabled": {
|
|
168
193
|
"type": "boolean",
|
|
169
194
|
"mutable": false,
|
|
@@ -112,12 +112,12 @@ export class SdInput {
|
|
|
112
112
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
113
113
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
114
114
|
};
|
|
115
|
-
return (h("sd-field", { key: '
|
|
115
|
+
return (h("sd-field", { key: 'fce402fae267b5700501e44935f23bebc28efb62', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'f7d8f95cf5ee38a7aa2e44940ba39b9eb001064c', class: "sd-input__content" }, h("slot", { key: '23f1f770a268a0798293420ce0df9e5cc94e07b2', name: "prefix" }), h("input", { key: 'b8c041cc4a8761cf1cf93a8d1af139cd7720d2d8', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '5a288d50726b21c156da480937b9759e6c76d33a', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: 'b5315624a6fd5fdcb70526b1abea4fbac83641c1', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
116
116
|
if (this.disabled || this.readonly)
|
|
117
117
|
return;
|
|
118
118
|
this.internalValue = '';
|
|
119
119
|
await this.formField?.sdValidate();
|
|
120
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
120
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '5ae70d65c531db0bc57d17f85c328a275f7aab2b', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
121
121
|
if (this.disabled || this.readonly)
|
|
122
122
|
return;
|
|
123
123
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -28,7 +28,7 @@ export class SdLinearProgress {
|
|
|
28
28
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
29
29
|
};
|
|
30
30
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '49452751b0aaf5e6b49d809272620cf4b198ecc1', style: hostStyle }, h("div", { key: 'aec62dae8fa8d4a9d6e64e305fadc63836a1fef6', class: 'sd-linear-progress__track' }, h("div", { key: '0f7cce4cf0ebe6ce40cc127ab8b91fdaf88440cc', class: 'sd-linear-progress__fill', style: fillStyle }), !this.indeterminate && (h("span", { key: 'af2f415ba6cc27c209eed2ff38b02ce58f81a861', class: 'sd-linear-progress__value sd-linear-progress__value--on-track' }, valueText)), !this.indeterminate && (h("span", { key: '2c21c62faf93ee809ae6fa098f7bf88e20447ca8', class: 'sd-linear-progress__value sd-linear-progress__value--on-fill', style: valueOnFillStyle }, valueText))), this.label && h("span", { key: '571c78db5fc8d7a6e4db2ed78e8c75c8be953e2f', class: 'sd-linear-progress__label' }, this.label)));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "sd-linear-progress"; }
|
|
34
34
|
static get originalStyleUrls() {
|
|
@@ -10,10 +10,10 @@ export class SdLoadingContainer {
|
|
|
10
10
|
this.visible = false;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("div", { key: '
|
|
13
|
+
return (h("div", { key: '314f23e9da2ec850d62b4d4e347055669841c1fe', class: {
|
|
14
14
|
'sd-loading-container': true,
|
|
15
15
|
'sd-loading-container--visible': this.visible,
|
|
16
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
16
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '541eb68218969c73e52bc8cbdb79171ee0ba908e', class: "sd-loading-container__backdrop" }), h("div", { key: '95192e0c936419248c46a57acb4c5ab63465a2f5', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '5584a90aa595d3eaffc3597604a9dc359b22bcaf', indeterminate: true, type: "inverse" }), this.message && (h("p", { key: 'e9dc0afbe43a318d7e776dd2f0bafa68ebe8536e', class: "sd-loading-container__message" }, this.message)))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "sd-loading-container"; }
|
|
19
19
|
static get originalStyleUrls() {
|
|
@@ -46,7 +46,7 @@ export class SdLoadingModal {
|
|
|
46
46
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
47
47
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
48
48
|
};
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '17636253239532d90e596f20d84795fe2e65508d', style: hostStyle }, h("div", { key: '2f925afceca4102049d7876ab4d1e33fa1ef5ef7', class: "sd-loading-modal" }, h("div", { key: '0598cff340210ca9ec5e28fb1992cbbc1b8e5a06', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: '3d699238c19ee66fd3afc72194133a865501cc08', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (h("div", { key: 'd454a168360cd23a3e71482d67ee81d8eabdec58', class: "sd-loading-modal__button" }, h("sd-button", { key: '0aa26dc830d1c4827f2ee0ca0bfdf4bb8cd2c9f5', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "sd-loading-modal"; }
|
|
52
52
|
static get originalStyleUrls() {
|
|
@@ -275,15 +275,15 @@ export class SdNumberInput {
|
|
|
275
275
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
276
276
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
277
277
|
};
|
|
278
|
-
return (h("sd-field", { key: '
|
|
278
|
+
return (h("sd-field", { key: '53c6935bbf98ed1eb0f28d6bed675ea369b0b2bc', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '8f0da8b179cd3946d625ab6b525a2ffd614a5333', class: {
|
|
279
279
|
'sd-number-input__content': true,
|
|
280
280
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
281
|
-
} }, this.useButton && (h("button", { key: '
|
|
281
|
+
} }, this.useButton && (h("button", { key: '1be42c16d5e671c567d4768f505c2c17c50f1b60', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'dc074328208c8da2ee43ea2cb03dbc838b7d46c9', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
282
282
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
283
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '
|
|
283
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '84896d40d79e936480052ab45d618cd73550ee87', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: 'f2c8995b6c059c2a4130018b2ff0c7eabcd7abfb', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${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, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
284
284
|
textAlign: this.useButton ? 'center' : 'right',
|
|
285
285
|
...this.inputStyle,
|
|
286
|
-
} }), this.inputSuffix && h("span", { key: '
|
|
286
|
+
} }), this.inputSuffix && h("span", { key: 'd6b1ca9f5991f1b2382dd4a35ae4f20832192e3c', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: '56a59f94ca27e8ef4255cabdd5fe003c602bb8d6', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '1b8fca91e893b5ade47ed63db4d4d54933c94e53', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
287
287
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
288
288
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
289
289
|
}
|
|
@@ -83,13 +83,13 @@ export class SdPagination {
|
|
|
83
83
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
84
84
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
85
85
|
};
|
|
86
|
-
return (h("div", { key: '
|
|
86
|
+
return (h("div", { key: 'abfac6b075ce59ac37f747bf15729bf3879b1749', class: {
|
|
87
87
|
'sd-pagination': true,
|
|
88
88
|
'sd-pagination--simple': this.simple,
|
|
89
|
-
}, style: cssVars }, h("div", { key: '
|
|
89
|
+
}, style: cssVars }, h("div", { key: '6c8a3eb2ad708649054068a671cf156fe154fae3', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
90
90
|
'sd-pagination__item': true,
|
|
91
91
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
92
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
92
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'f0013d0057e6addb6a7fae39ebddd2c4f7af5bd0', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "sd-pagination"; }
|
|
95
95
|
static get originalStyleUrls() {
|
|
@@ -36,7 +36,7 @@ export class SdPopup {
|
|
|
36
36
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
37
37
|
...this.submitButtonProps,
|
|
38
38
|
};
|
|
39
|
-
return (h("div", { key: '
|
|
39
|
+
return (h("div", { key: 'ea933af50e1ad1a29cf8d73ce70222e2f44c0bb5', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: '50f1773d911175182888a98a0759b8d3d8829d2f', class: "sd-popup__header" }, h("h2", { key: '4e21a73a6e26388c6b1c814a91ee8a79bf57c576', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'dd6ace33c6d8b3e20c0c85c95580efbf8ad6747c', class: "sd-popup__body" }, h("slot", { key: 'e40fbea5b93016131df544f32b74676d2892204e' })), this.useFooter && (h("footer", { key: '96b27f465a804859a15e9105fcd64c7205bc2143', class: "sd-popup__footer" }, h("div", { key: '6715ba330610850ea235ddde5f2da00584204286', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '092aca3ad212b7218ce4ba247b78b7b45d9e4299', name: "footer-left" })), h("sd-button", { key: '290cd49879cc4868be69ceb60567eab57b5f26fe', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "sd-popup"; }
|
|
42
42
|
static get originalStyleUrls() {
|
|
@@ -220,7 +220,7 @@ export class SdPortal {
|
|
|
220
220
|
this.close.emit();
|
|
221
221
|
}
|
|
222
222
|
render() {
|
|
223
|
-
return h("slot", { key: '
|
|
223
|
+
return h("slot", { key: 'f7b160cb574608fa16f6edd27d259b85787e6144' });
|
|
224
224
|
}
|
|
225
225
|
static get is() { return "sd-portal"; }
|
|
226
226
|
static get properties() {
|
|
@@ -71,7 +71,7 @@ export class SdSelectListItem {
|
|
|
71
71
|
return (
|
|
72
72
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
73
73
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
74
|
-
h("div", { key: '
|
|
74
|
+
h("div", { key: '55ebe094653cb89d5c70916c3e0a2f4ccb5551f8', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
75
75
|
'sd-select-list-item': true,
|
|
76
76
|
'sd-select-list-item--group': isGroup,
|
|
77
77
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -81,7 +81,7 @@ export class SdSelectListItem {
|
|
|
81
81
|
'sd-select-list-item--focused': this.isFocused,
|
|
82
82
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
83
83
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
84
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
84
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'f636931bc20264db98e521b11b819610cda764cd', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: '89750bc08c03915b738da390f4255e7451aa9d6d', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
85
85
|
}
|
|
86
86
|
static get is() { return "sd-select-list-item"; }
|
|
87
87
|
static get originalStyleUrls() {
|
|
@@ -41,15 +41,15 @@ export class SdSelectListItemSearch {
|
|
|
41
41
|
clearTimeout(this.debounceTimer);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '6cf78c7d616dc21a7a6e806c184322d12cacb50d', class: {
|
|
45
45
|
'sd-select-list-item-search': true,
|
|
46
46
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
47
|
-
} }, h("div", { key: '
|
|
47
|
+
} }, h("div", { key: 'dd9fa44fed1f3ec7a222dacaa710cdf32ddbe6fc', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '2d65a81b7b6160ac4e93016adea0da43d5d01ec8', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: '0d5c4bb09778518aa17a210a2d1a9eb620a1dd7b', ref: el => {
|
|
48
48
|
this.inputEl = el;
|
|
49
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
49
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'e9708437f310788bf8b9a4d358dea9b83cc88ed8', type: "button", class: {
|
|
50
50
|
'sd-select-list-item-search__clear': true,
|
|
51
51
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
52
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
52
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: 'ed8b1c93809f823205f357b059a8b556e0278b1c', name: "close", size: 12, color: "#888888" })))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "sd-select-list-item-search"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -351,9 +351,9 @@ export class SdSelectListbox {
|
|
|
351
351
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
352
352
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
353
353
|
};
|
|
354
|
-
return (h("div", { key: '
|
|
354
|
+
return (h("div", { key: '6c2cbad13f8aaa8c0552068c7cbc35a147bee77d', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: '052d783e27e2458aa397c77fe891dad4a440f09e', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: 'bba95f3c4475d01a65562ba079c8666e3325195d', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
355
355
|
this.listEl = el;
|
|
356
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
356
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: '2f55bbacbed71952903599db0739773176ac55fd', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
357
357
|
}
|
|
358
358
|
static get is() { return "sd-select-listbox"; }
|
|
359
359
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,7 +43,7 @@ export class SdSelectTrigger {
|
|
|
43
43
|
? SELECT_COLORS.icon.disabled
|
|
44
44
|
: SELECT_COLORS.icon.default,
|
|
45
45
|
};
|
|
46
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: 'b5a4f750c00889d0d9b985211063fc6b20bc2e38', ref: el => {
|
|
47
47
|
this.triggerEl = el;
|
|
48
48
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
49
49
|
'sd-select-trigger': true,
|
|
@@ -54,7 +54,7 @@ export class SdSelectTrigger {
|
|
|
54
54
|
e.preventDefault();
|
|
55
55
|
this.handleClick();
|
|
56
56
|
}
|
|
57
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
57
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'be0b61c0550618602ef016504fa1672f7520fa93', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: '9d60c3eeae54ce6ed9609534e3530d0349d1a3ff', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
58
58
|
'sd-select-trigger__icon': true,
|
|
59
59
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
60
60
|
} }))));
|
|
@@ -253,15 +253,15 @@ export class SdSelect {
|
|
|
253
253
|
this.closeDropdown();
|
|
254
254
|
},
|
|
255
255
|
};
|
|
256
|
-
return (h("sd-field", { key: '
|
|
256
|
+
return (h("sd-field", { key: 'd3c3175067494715963592806a150bebadd8970c', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
257
257
|
this.hovered = true;
|
|
258
258
|
}, onMouseLeave: () => {
|
|
259
259
|
this.hovered = false;
|
|
260
|
-
} }, h("div", { key: '
|
|
260
|
+
} }, h("div", { key: 'c291b661a968375c341d26ac48f7ff7fd4947e3e', class: "sd-select", ref: el => {
|
|
261
261
|
this.triggerRef = el;
|
|
262
|
-
} }, h("sd-select-trigger", { key: '
|
|
262
|
+
} }, h("sd-select-trigger", { key: '45da184f72f989d9c6be05479fec7a616f168ddf', ref: el => {
|
|
263
263
|
this.triggerComponentRef = el;
|
|
264
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '
|
|
264
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'bd7a612cf9ef74e157336a8de0170cebb61074dc', ...portalProps }, h("sd-select-listbox", { key: '8117fab3ef6b2f5f77e74a234c6b21dfc2549df1', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
265
265
|
}
|
|
266
266
|
static get is() { return "sd-select"; }
|
|
267
267
|
static get originalStyleUrls() {
|
|
@@ -40,7 +40,7 @@ export class SdSwitch {
|
|
|
40
40
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
41
41
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
42
42
|
};
|
|
43
|
-
return (h("label", { key: '
|
|
43
|
+
return (h("label", { key: '54ebe92b29a80537e2e4380ffe096a252f883d10', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: 'd18abbbf293434f07ae7dfa18b983b47cac1b774', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '76fef910e632b541c0b33c508e6001529df5614f', class: "sd-switch__track" }, h("div", { key: 'a66f4ecca5787f00febe19216a93ec62916e0541', class: "sd-switch__knob" })), this.label && h("span", { key: '948d2b7afc6e171ee329752cb85f8e361f6bbed8', class: "sd-switch__label" }, this.label)));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "sd-switch"; }
|
|
46
46
|
static get originalStyleUrls() {
|