@sellmate/design-system 1.23.0 → 1.24.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-action-modal.cjs.entry.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-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 +4 -4
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- 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 +10 -10
- 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 +1 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +20 -12
- 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-popover.cjs.entry.js +3 -3
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.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 +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-text-link.cjs.entry.js +22 -4
- 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/components/sd-action-modal/sd-action-modal.js +1 -1
- 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-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.js +1 -1
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +4 -4
- 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.css +4 -4
- package/dist/collection/components/sd-field/sd-field.js +5 -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 +4 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -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-popover/sd-popover.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +15 -7
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.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.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.css +17 -0
- package/dist/collection/components/sd-text-link/sd-text-link.js +46 -3
- 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-Btpf6Xpg.js → p-0U99W-3Z.js} +1 -1
- package/dist/components/{p-kDokArZu.js → p-1cW-9wVB.js} +1 -1
- package/dist/components/{p-4I0LJNSg.js → p-B8uvCE1e.js} +1 -1
- package/dist/components/{p-IMWw_SJ1.js → p-BZUlNC0d.js} +1 -1
- package/dist/components/{p-DgZ_vzrA.js → p-BoH7ykYx.js} +1 -1
- package/dist/components/{p-C2cNc56z.js → p-BoPkOevJ.js} +1 -1
- package/dist/components/{p-BYgT6mRD.js → p-Bqfoe_ek.js} +1 -1
- package/dist/components/{p-BFMUpKa2.js → p-BtVuPyhl.js} +1 -1
- package/dist/components/{p-CpBPNHYe.js → p-C-Cje7aS.js} +1 -1
- package/dist/components/p-C4_oeGm-.js +1 -0
- package/dist/components/p-C5uz_eFs.js +1 -0
- package/dist/components/{p-Dj1iJxUT.js → p-CBXH-GWN.js} +1 -1
- package/dist/components/{p-DfKZyde8.js → p-CNwoxvpg.js} +1 -1
- package/dist/components/{p-DnHzWLdY.js → p-Ck2aozmE.js} +1 -1
- package/dist/components/{p-BwgUEhOa.js → p-CtNDxhxx.js} +1 -1
- package/dist/components/{p-ClBvavih.js → p-D-a6H314.js} +1 -1
- package/dist/components/p-D6noGX38.js +1 -0
- package/dist/components/{p-CGJ1L8_Y.js → p-D8T1XeGP.js} +1 -1
- package/dist/components/{p-BJMpxQSk.js → p-DMvWCQfX.js} +1 -1
- package/dist/components/{p-2-7UYvqL.js → p-DNRm9_Bv.js} +1 -1
- package/dist/components/{p-BLsuwMw4.js → p-DPmMT-y0.js} +1 -1
- package/dist/components/p-D_SxeDkS.js +1 -0
- package/dist/components/{p-lL2VxD2V.js → p-DcJ7u2_W.js} +1 -1
- package/dist/components/{p-C_g09O6z.js → p-DyfR6eGl.js} +1 -1
- package/dist/components/{p-BRKeMTWI.js → p-Fwb7LRwv.js} +1 -1
- package/dist/components/{p-iORPryb0.js → p-PMD-Col0.js} +1 -1
- package/dist/components/{p-BUB0CcPo.js → p-PXhjh7pH.js} +1 -1
- package/dist/components/{p-DDahT3Mp.js → p-Ycs3I9cT.js} +1 -1
- package/dist/components/{p-BDm6daTX.js → p-fzFFhJlr.js} +1 -1
- package/dist/components/{p-C9rjLN0u.js → p-h9_f4fUW.js} +1 -1
- package/dist/components/{p-CZpcFpSk.js → p-qbClgrdG.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-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.js +1 -1
- 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-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.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-text-link.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-0d5d2723.entry.js +1 -0
- package/dist/design-system/{p-1e9793d6.entry.js → p-210123b1.entry.js} +1 -1
- package/dist/design-system/{p-578683b5.entry.js → p-21d8f192.entry.js} +1 -1
- package/dist/design-system/p-2fb9a5e6.entry.js +1 -0
- package/dist/design-system/{p-b29569d7.entry.js → p-3b71d1d4.entry.js} +1 -1
- package/dist/design-system/{p-64d63a3f.entry.js → p-43d521c4.entry.js} +1 -1
- package/dist/design-system/{p-45651573.entry.js → p-5a67c40d.entry.js} +1 -1
- package/dist/design-system/{p-86e54f19.entry.js → p-5b184e17.entry.js} +1 -1
- package/dist/design-system/{p-43316703.entry.js → p-6b20c76b.entry.js} +1 -1
- package/dist/design-system/{p-e897484c.entry.js → p-6f77fc76.entry.js} +1 -1
- package/dist/design-system/{p-586602a8.entry.js → p-74e605c0.entry.js} +1 -1
- package/dist/design-system/{p-b2ef677a.entry.js → p-8001447c.entry.js} +1 -1
- package/dist/design-system/{p-f280e59d.entry.js → p-8862e3e3.entry.js} +1 -1
- package/dist/design-system/{p-93f876ce.entry.js → p-90a360ca.entry.js} +1 -1
- package/dist/design-system/{p-1e1a5c69.entry.js → p-9afc1f7c.entry.js} +1 -1
- package/dist/design-system/{p-6cd3da51.entry.js → p-9b53de38.entry.js} +1 -1
- package/dist/design-system/{p-a5fe8b9a.entry.js → p-9ea2fbec.entry.js} +1 -1
- package/dist/design-system/{p-d10efe7e.entry.js → p-a1438f7d.entry.js} +1 -1
- package/dist/design-system/{p-956956af.entry.js → p-a49cf337.entry.js} +1 -1
- package/dist/design-system/{p-e018fdb1.entry.js → p-a505459f.entry.js} +1 -1
- package/dist/design-system/{p-df5e8dba.entry.js → p-a8d69ab2.entry.js} +1 -1
- package/dist/design-system/{p-e94bd6d7.entry.js → p-b4df75b9.entry.js} +1 -1
- package/dist/design-system/p-ba5bb1ee.entry.js +1 -0
- package/dist/design-system/{p-8101c564.entry.js → p-c7ff7bc8.entry.js} +1 -1
- package/dist/design-system/{p-b7e80770.entry.js → p-c8e86fb4.entry.js} +1 -1
- package/dist/design-system/{p-496d3684.entry.js → p-cb63d4cf.entry.js} +1 -1
- package/dist/design-system/p-d4097b87.entry.js +1 -0
- package/dist/design-system/{p-60f3ce4f.entry.js → p-d6329729.entry.js} +1 -1
- package/dist/design-system/{p-9b7d3077.entry.js → p-e77fe58a.entry.js} +1 -1
- package/dist/design-system/{p-43c79402.entry.js → p-f1e0ba30.entry.js} +1 -1
- package/dist/design-system/{p-3c4b57b5.entry.js → p-f418055d.entry.js} +1 -1
- package/dist/design-system/{p-c4c81918.entry.js → p-f9c0013c.entry.js} +1 -1
- package/dist/design-system/{p-a42bcc11.entry.js → p-fb609583.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-action-modal.entry.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-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 +4 -4
- package/dist/esm/sd-chip.entry.js +1 -1
- 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 +10 -10
- 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 +1 -1
- package/dist/esm/sd-field_3.entry.js +8 -8
- package/dist/esm/sd-ghost-button_3.entry.js +20 -12
- 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-popover.entry.js +3 -3
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.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 +1 -1
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-text-link.entry.js +23 -5
- 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-text-link/sd-text-link.d.ts +8 -0
- package/dist/types/components.d.ts +9 -0
- package/hydrate/index.js +129 -101
- package/hydrate/index.mjs +129 -101
- package/package.json +1 -1
- package/dist/components/p-BdFwmTyS.js +0 -1
- package/dist/components/p-BeKMwT89.js +0 -1
- package/dist/components/p-ChwRSZ6R.js +0 -1
- package/dist/components/p-Dn93jl-w.js +0 -1
- package/dist/design-system/p-7233ffb7.entry.js +0 -1
- package/dist/design-system/p-829b7e4f.entry.js +0 -1
- package/dist/design-system/p-b1f4e1e5.entry.js +0 -1
- package/dist/design-system/p-ccbf8687.entry.js +0 -1
|
@@ -109,7 +109,7 @@ const SdSwitch = class {
|
|
|
109
109
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
110
110
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
111
111
|
};
|
|
112
|
-
return (index.h("label", { key: '
|
|
112
|
+
return (index.h("label", { key: 'f63559e7ee0523e475e26e80bc568d9b79f03c2a', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, index.h("input", { key: 'f1d0697ba500514923aeb6d514761641e34e6080', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), index.h("div", { key: '988ccaf702365c76c76e11246e5de7035509cfa0', class: "sd-switch__track" }, index.h("div", { key: '5a413a7e89054f5f93821f098f4d3173c09ce180', class: "sd-switch__knob" })), this.label && index.h("span", { key: 'b1674d9039d0d1e9dc9c01525fc2e6b97c139ed1', class: "sd-switch__label" }, this.label)));
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -880,25 +880,25 @@ const SdTable = class {
|
|
|
880
880
|
'--table-selectable-width': `${sdTable_config.TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
881
881
|
'--table-host-height': hostHeight,
|
|
882
882
|
};
|
|
883
|
-
return (index.h(index.Host, { key: '
|
|
883
|
+
return (index.h(index.Host, { key: '288633055ee4be465a96964b11d6c032fecd603f', style: hostStyle }, index.h("div", { key: 'ab9878f8515bddc3058aafb1806310677fc9f360', class: "sd-table__container", style: {
|
|
884
884
|
'--table-width': this.width,
|
|
885
885
|
'--pagination-height': `${paginationHeight}px`,
|
|
886
|
-
} }, index.h("div", { key: '
|
|
886
|
+
} }, index.h("div", { key: '9f7f16a5cbf27f32a2209586f5b2604066bba4b4', class: {
|
|
887
887
|
'sd-table__wrapper': true,
|
|
888
888
|
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
889
889
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
890
|
-
} }, index.h("div", { key: '
|
|
890
|
+
} }, index.h("div", { key: 'c16e48a6dc55ddcf398a7053a93d6e1595fc83da', class: {
|
|
891
891
|
'sd-table__scroll-container': true,
|
|
892
892
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
893
893
|
'sd-table__scroll-container--no-data': isNoData,
|
|
894
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
894
|
+
} }, this.isLoading && (index.h("div", { key: '1bc3cd25cbd34d912aee00dc43ad961f442a8d2a', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: '3c157990784d6f9e58fef6ff0e6b36ffd87d3a0d', indeterminate: true }))), isNoData && (index.h(index.h.Fragment, null, index.h("div", { key: 'ebb3e4560cc9729d496110e4f159a25737e26bca', class: "sd-table__no-data-header-overlay" }), index.h("div", { key: 'c9b02b2aef01542a2fe5be0578d31ce72566bff6', class: "sd-table__no-data" }, index.h("div", { key: '6ab6d9b90ef703b4865eedbf19deff2a04e9d278', class: "sd-table__no-data-content", ref: el => {
|
|
895
895
|
this.noDataContentEl = el;
|
|
896
896
|
if (el)
|
|
897
897
|
this.syncNoDataContentObserver();
|
|
898
|
-
} }, index.h("slot", { key: '
|
|
898
|
+
} }, index.h("slot", { key: '072b90261f1a0817ccc20d8d5d5346bdcd223304', name: "no-data" }, index.h("span", { key: 'bbef2b4c13f8cf7736f02b11d149fe00af3cb567' }, this.resolvedNoDataLabel)))))), index.h("table", { key: '2d7beab7b8fd42f5bfc4b2b5c9538e6cd7a08b2a', class: this.tableClasses }, this.autoThead ? (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-thead", { rows: this.rows ?? [] }))) : (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
899
899
|
this.pagination.rowsPerPage > 0 &&
|
|
900
900
|
this.rowCount > 0 &&
|
|
901
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
901
|
+
!this.useVirtualScroll && (index.h("div", { key: 'ee81359d024a466a2730c2e7df7a4a0f2b319de3', class: "sd-table__pagination" }, index.h("sd-pagination", { key: '069c72080181324d82c9ef207398e11d7766cb34', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (index.h("sd-select", { key: 'ce1798a0c99cff78318087d25bfc1ece86993e4a', value: this.useInternalPagination
|
|
902
902
|
? this.innerRowsPerPage
|
|
903
903
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
904
904
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -207,7 +207,7 @@ const SdTabs = class {
|
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
render() {
|
|
210
|
-
return (index.h("div", { key: '
|
|
210
|
+
return (index.h("div", { key: 'c824bcceda28b2591d57e713ae49f5f8260043c4', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
211
211
|
const badgeName = this.getBadgeName(tab);
|
|
212
212
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
213
213
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -167,7 +167,7 @@ const SdTd = class {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
render() {
|
|
170
|
-
return (index.h(index.Host, { key: '
|
|
170
|
+
return (index.h(index.Host, { key: 'a8b2ea05cfaa821b1e4766657cce6a2b7a399881', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '7fa181915d15192257bc38500787207810ec2739' })));
|
|
171
171
|
}
|
|
172
172
|
static get watchers() { return {
|
|
173
173
|
"field": [{
|
|
@@ -111,7 +111,7 @@ const TEXT_LINK_COLORS = {
|
|
|
111
111
|
icon: textLinkTokens.textLink.icon,
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
const sdTextLinkCss = () => `sd-text-link{display:inline-flex}sd-text-link .sd-text-link{display:inline-flex;align-items:center;gap:var(--sd-text-link-gap);cursor:pointer;user-select:none}sd-text-link .sd-text-link__label{font-size:var(--sd-text-link-font-size, 12px);line-height:var(--sd-text-link-line-height, 20px);text-decoration:var(--sd-text-link-text-decoration);color:var(--sd-text-link-color, inherit)}sd-text-link .sd-text-link:not(.sd-text-link--disabled):hover .sd-text-link__label{text-decoration:underline}sd-text-link .sd-text-link--disabled{cursor:not-allowed}`;
|
|
114
|
+
const sdTextLinkCss = () => `sd-text-link{display:inline-flex}sd-text-link .sd-text-link{position:relative;display:inline-flex;align-items:center;gap:var(--sd-text-link-gap);cursor:pointer;user-select:none}sd-text-link .sd-text-link__label{font-size:var(--sd-text-link-font-size, 12px);line-height:var(--sd-text-link-line-height, 20px);text-decoration:var(--sd-text-link-text-decoration);color:var(--sd-text-link-color, inherit)}sd-text-link .sd-text-link:not(.sd-text-link--disabled):hover .sd-text-link__label{text-decoration:underline}sd-text-link .sd-text-link--disabled{cursor:not-allowed}sd-text-link .sd-text-link sd-portal{position:absolute;width:0;height:0;overflow:hidden}.sd-text-link__tooltip-inner{display:inline-flex;white-space:nowrap;transform:translateX(-50%)}[data-align=right] .sd-text-link__tooltip-inner{transform:none}`;
|
|
115
115
|
|
|
116
116
|
const SdTextLink = class {
|
|
117
117
|
constructor(hostRef) {
|
|
@@ -134,6 +134,10 @@ const SdTextLink = class {
|
|
|
134
134
|
disabled = false;
|
|
135
135
|
/** 텍스트 크기 */
|
|
136
136
|
size = 'sm';
|
|
137
|
+
/** 호버 시 표시할 툴팁 텍스트 */
|
|
138
|
+
tooltipText;
|
|
139
|
+
get hostEl() { return index.getElement(this); }
|
|
140
|
+
isTooltipOpen = false;
|
|
137
141
|
/** 클릭 시 발생합니다. */
|
|
138
142
|
click;
|
|
139
143
|
handleClick = () => {
|
|
@@ -141,6 +145,18 @@ const SdTextLink = class {
|
|
|
141
145
|
return;
|
|
142
146
|
this.click.emit();
|
|
143
147
|
};
|
|
148
|
+
handleMouseEnter = () => {
|
|
149
|
+
this.isTooltipOpen = true;
|
|
150
|
+
};
|
|
151
|
+
handleMouseLeave = () => {
|
|
152
|
+
this.isTooltipOpen = false;
|
|
153
|
+
};
|
|
154
|
+
handleFocus = () => {
|
|
155
|
+
this.isTooltipOpen = true;
|
|
156
|
+
};
|
|
157
|
+
handleBlur = () => {
|
|
158
|
+
this.isTooltipOpen = false;
|
|
159
|
+
};
|
|
144
160
|
render() {
|
|
145
161
|
const sizeConfig = TEXT_LINK_SIZE_CONFIG[this.size] ?? TEXT_LINK_SIZE_CONFIG.sm;
|
|
146
162
|
const typo = this.underline ? sizeConfig.typography.underline : sizeConfig.typography.default;
|
|
@@ -156,7 +172,9 @@ const SdTextLink = class {
|
|
|
156
172
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
157
173
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
158
174
|
};
|
|
159
|
-
|
|
175
|
+
const tooltipText = (this.tooltipText ?? '').trim();
|
|
176
|
+
const hasTooltip = tooltipText.length > 0;
|
|
177
|
+
return (index.h("span", { key: 'd9653ed47a77fb5c00dc57f8f7cc2b4dc9035ca4', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
160
178
|
'sd-text-link': true,
|
|
161
179
|
'sd-text-link--disabled': this.disabled,
|
|
162
180
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -164,13 +182,13 @@ const SdTextLink = class {
|
|
|
164
182
|
e.preventDefault();
|
|
165
183
|
this.handleClick();
|
|
166
184
|
}
|
|
167
|
-
} }, this.icon && (index.h("sd-icon", { key: '
|
|
185
|
+
}, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (index.h("sd-portal", { key: '62b3cb48c5b5fa6eb0b2b2962ef6c78bac5ac545', parentRef: this.hostEl, open: true, offset: [this.hostEl.offsetWidth / 2, 4], placement: "top" }, index.h("div", { key: '5a428366f5bc2f8686a78fc73d91517ccca13eb9', class: "sd-text-link__tooltip-inner", "aria-hidden": "true" }, index.h("sd-tag", { key: '3416662595e9bfd164279e684e2ead9d1575a9d8', name: "square_xs_grey", label: tooltipText })))), this.icon && (index.h("sd-icon", { key: '5056f0c55ebe92963e856f2970cfd74143876cfb', name: this.icon, size: sizeConfig.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: '6cf8474ba642c9ec3dc5952c5530f9ba15046053', class: labelClassName }, this.label), this.rightArrow && this.rightArrow !== 'none' && (index.h("span", { key: '17a74ec3a3e1a26f18b73f7d4816ea0aee0cb22c', class: "sd-text-link__arrow", style: {
|
|
168
186
|
width: `${TEXT_LINK_ARROW.arrowFrame}px`,
|
|
169
187
|
height: `${TEXT_LINK_ARROW.arrowFrame}px`,
|
|
170
188
|
display: 'inline-flex',
|
|
171
189
|
alignItems: 'center',
|
|
172
190
|
justifyContent: 'center',
|
|
173
|
-
} }, index.h("sd-icon", { key: '
|
|
191
|
+
} }, index.h("sd-icon", { key: 'ed0a6bf8b678a93fa8a0da907efb0cbf60427738', name: this.rightArrow === 'chevron' ? 'chevronRight' : 'caretRight', size: TEXT_LINK_ARROW.arrowIconSize, color: arrowColor })))));
|
|
174
192
|
}
|
|
175
193
|
};
|
|
176
194
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -243,7 +243,7 @@ const SdToastContainer = class {
|
|
|
243
243
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
244
244
|
const indexMap = new Map();
|
|
245
245
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
246
|
-
return (index.h("div", { key: '
|
|
246
|
+
return (index.h("div", { key: '6a6db296cca6ee2b3f1f5ba1b2014f3787fd6ee0', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
247
247
|
this.expanded = true;
|
|
248
248
|
this.pauseTimers();
|
|
249
249
|
}, onMouseLeave: () => {
|
|
@@ -93,12 +93,12 @@ const SdToast = class {
|
|
|
93
93
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
94
94
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
95
95
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
96
|
-
return (index.h("div", { key: '
|
|
96
|
+
return (index.h("div", { key: '240ed7553fa03d18bb4384b1192d16a821be5832', style: {
|
|
97
97
|
'--sd-toast-bg': typeConfig.bg,
|
|
98
98
|
'--sd-toast-text': typeConfig.content,
|
|
99
99
|
'--sd-toast-icon': iconColor,
|
|
100
100
|
'--sd-toast-link': linkColor,
|
|
101
|
-
} }, index.h("div", { key: '
|
|
101
|
+
} }, index.h("div", { key: 'bdb9a45473dcab86e2dd8bb6321e7b717f93b784', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '2a02e47336cd6a46c7cc3560f3f82d4f10a3d211', class: "sd-toast__icon" }, index.h("sd-icon", { key: '872cfb213c3a080fc1e5458ce53efa04c1fa8840', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '3a22f7518f63676e22c4faeb76873c31d6cf6b11', class: "sd-toast__content" }, index.h("span", { key: 'dd6a533b60c07bdcbdc80090d61bdf29b8879609', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '45efddf62b906e8f0b2136ad3d1131204d0b9125', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '3729f4f21ba7e59c2702137053de946e284b226a', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: 'd7f0f670aef527be6253cd70bd2b19a900ccaddd', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
SdToast.style = sdToastCss();
|
|
@@ -124,7 +124,7 @@ const SdToggle = class {
|
|
|
124
124
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
125
125
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
126
126
|
};
|
|
127
|
-
return (index.h("label", { key: '
|
|
127
|
+
return (index.h("label", { key: 'f5bc6364e15bfd720d639959d4b8eca1faf022ff', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: 'e6046c1887bac5fc46dfe94d065c4e782090997f', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
SdToggle.style = sdToggleCss();
|
|
@@ -45,7 +45,7 @@ export class SdActionModal {
|
|
|
45
45
|
if (this.height != null && this.height !== '') {
|
|
46
46
|
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
47
47
|
}
|
|
48
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: '19ea6ad7ef8aeb5fc4a8537e388542c6c2244c71', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, h("header", { key: 'd56e8c35c88b3f4c2f279ee7e8b2f92c9e9760c5', class: "sd-action-modal__header" }, h("h2", { key: '50e3334be477751314febff5b29103cc7600201e', class: "sd-action-modal__title" }, this.modalTitle), h("div", { key: 'bc95f535e273ad97f820d548647601897b6d4253', class: "sd-action-modal__header-sub" }, h("slot", { key: '332a0923092c0ecec193d774f9b77316d41cd97c', name: "header-sub-title" })), h("sd-ghost-button", { key: '56127a67e0130b9639b7b9146604ce09f9d48e16', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: '22668cbe686a310e829c9d6052cec4b62a7bd194', class: "sd-action-modal__body" }, h("slot", { key: '58621eddef8c7423620a41a3c8c52b128554946e', name: "body" })), (this.buttonProps != null || this.buttonProps != undefined) && (h("footer", { key: '6c5ed286a5cfa39a1a46da606fee61767199344c', class: "sd-action-modal__footer" }, h("div", { key: 'ea0f414e3a1aecd3b150f93d544b801d633793c8', class: "sd-action-modal__footer-sub" }, h("slot", { key: '171f7df6863e49565e9bf0d7193e7c39c05462b5', name: "bottom-sub-content" })), h("sd-button", { key: '919ec31d0ab1c60fb1f186c6c404ba9452ff0dbb', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() })))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "sd-action-modal"; }
|
|
51
51
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SdBadge {
|
|
|
5
5
|
color = 'blue';
|
|
6
6
|
render() {
|
|
7
7
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
8
|
-
return (h("div", { key: '
|
|
8
|
+
return (h("div", { key: '2531ebcfe66e33f8ac31be0299865ee8aa45ed17', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, h("div", { key: 'a8ddd518167b90fedb4d6d26cc28b17082f5fe0b', class: "sd-badge__dot" })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "sd-badge"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -135,7 +135,7 @@ export class SdBarcodeInput {
|
|
|
135
135
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
136
136
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
137
137
|
};
|
|
138
|
-
return (h("sd-field", { key: '
|
|
138
|
+
return (h("sd-field", { key: '79dd05ab7f39104c2aa54c44a71cc3fe4cf7870f', 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, 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: '5470e7e6ddff60239bf1d42d78843f807a72c07b', class: "sd-barcode-input__content" }, h("slot", { key: 'ab15a2e5a9287f3c124f48f89610ab55c898b76e', name: "prefix" }), h("input", { key: 'e2edbbcfb70ec035e68735c4de7792d6c8ef177f', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", 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 }), h("slot", { key: 'd2065cad4d491747a2a61b60b2bb10a7ef5b18d9', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: '2b88fe6fd8c1c013c60b50584721a7c4d4f3bef5', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
139
139
|
if (this.disabled)
|
|
140
140
|
return;
|
|
141
141
|
this.internalValue = '';
|
|
@@ -179,7 +179,7 @@ export class SdCalendar {
|
|
|
179
179
|
const eventMap = this.eventMap;
|
|
180
180
|
const legend = this.legendItems;
|
|
181
181
|
const hasEvents = (this.events?.length ?? 0) > 0;
|
|
182
|
-
return (h("div", { key: '
|
|
182
|
+
return (h("div", { key: '317beb7cdffbba8982306539441fec46e6330d82', class: { 'sd-calendar': true, 'sd-calendar--elevated': this.elevated }, style: cssVars }, h("div", { key: '0d9e1084ee0bff994b4a00b7f2d490c0e101aa16', class: "sd-calendar__header" }, h("div", { key: '8d82438f1820721fcbcd14cf42c1ae00b3a517d9', class: "sd-calendar__nav-group" }, h("sd-ghost-button", { key: '4e3391c57c0fdf3ad95b82d82c7a130c3202229d', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: '6a7cbfb0069dd1d29e195cc09a9c55a8ae52aa40', class: "sd-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: '239d5e623f830e8ceeb069e78126175772af48de', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: '24362199d36afc204eebe5c5f14a41705f6782d9', class: "sd-calendar__divider", "aria-hidden": "true" }), h("div", { key: '7aa04fa1fbb355d8b3fae4cca011999b4f7f5850', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, h("sd-ghost-button", { key: 'ea5d0129d4f7eecaeff5793460363e2f15c238b8', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '7a3879edb74cb71c46fc500d7c230c21e19042c4', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: '7532053f6607d9e4940403f22fd32994128fc457', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: 'ef59638defed69c325e49fc71ca0cc73a7d778bf', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-calendar__week-cell" }, label)))), h("div", { key: '0205b10254c75567336bc7e4ed8a26d2227ecb33', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
183
183
|
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
184
184
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
185
185
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -192,8 +192,8 @@ export class SdCalendar {
|
|
|
192
192
|
'sd-calendar__day--disabled': isDisabled,
|
|
193
193
|
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, h("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), hasEvents && (h("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents?.map((ev, i) => (h("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
194
194
|
})), legend.length > 0 && [
|
|
195
|
-
h("span", { key: '
|
|
196
|
-
h("div", { key: '
|
|
195
|
+
h("span", { key: 'a06b1cd9ec93891e3762f6334949cd23b643290f', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
196
|
+
h("div", { key: '8dc6bd2495ab471b56ed6fa252c9e0ad5ebe8341', class: "sd-calendar__legend" }, legend.map(item => (h("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, h("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), h("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
197
197
|
]));
|
|
198
198
|
}
|
|
199
199
|
static get is() { return "sd-calendar"; }
|
|
@@ -51,7 +51,7 @@ export class SdCallout {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const showTitle = this.type === 'danger';
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '6f1f3f4b05febbac7fcfe163d641beca60a67ddb', class: "sd-callout", style: this.calloutStyle, role: "note" }, showTitle && this.renderTitle(), h("div", { key: '2e0c4050c4ed2d353cd270420abfbd6aac014015', class: "sd-callout__body" }, this.renderBody())));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "sd-callout"; }
|
|
57
57
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SdCard {
|
|
|
5
5
|
/** 카드 루트 엘리먼트에 추가할 클래스 */
|
|
6
6
|
sdClass = '';
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Fragment, { key: '
|
|
8
|
+
return (h(Fragment, { key: 'c8835377275c2bed1a193eaf0a1db0c1c6fde960' }, h("div", { key: '37cec8daa273881a40258f632109d9490e5c6978', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: 'b1b485f3cfe056db25c79bbe15420484e61e5d1a' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "sd-card"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -234,7 +234,7 @@ export class SdChip {
|
|
|
234
234
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
235
235
|
'--sd-chip-line-height': typography.lineHeight,
|
|
236
236
|
};
|
|
237
|
-
return (h("span", { key: '
|
|
237
|
+
return (h("span", { key: '2cd717bc842330a28bbc89a662deda16f59106ee', class: {
|
|
238
238
|
'sd-chip': true,
|
|
239
239
|
[`sd-chip--${state}`]: true,
|
|
240
240
|
'sd-chip--disabled': this.disabled,
|
|
@@ -432,7 +432,7 @@ export class SdChipInput {
|
|
|
432
432
|
fontFamily: CHIP_INPUT_SUGGESTIONS.itemFontFamily,
|
|
433
433
|
color: CHIP_INPUT_SUGGESTIONS.emptyColor,
|
|
434
434
|
};
|
|
435
|
-
return (h("sd-field", { key: '
|
|
435
|
+
return (h("sd-field", { key: 'bab9babd5b7eca9dd7885bf58a6f024315a37083', name: this.name, label: this.label, labelWidth: this.labelWidth, hint: this.hint, errorMessage: this.errorMessage, rules: [this.duplicateRule, ...(this.rules ?? [])], error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, width: this.width, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: 'c16e35b63fdf9f5c1927a5b9057d21f8b0e46139', class: "sd-chip-input", ref: el => (this.chipInputRef = el), onClick: this.handleContainerClick }, (this.internalValues ?? []).map((value, i) => (h("sd-chip", { key: i, value: value, error: this.getChipError(i), disabled: this.getChipDisabled(i), editable: false, onSdRemove: () => this.handleChipRemove(i) }))), !isMaxReached && (h("div", { key: '1332b6fad4f0b739c069f7bccd3dcbfc5c875f50', class: {
|
|
436
436
|
'sd-chip-input__field': true,
|
|
437
437
|
'sd-chip-input__field--filled': this.inputValue !== '',
|
|
438
438
|
'sd-chip-input__field--empty': this.inputValue === '' && this.internalValues.length > 0 && !this.focused,
|
|
@@ -440,12 +440,12 @@ export class SdChipInput {
|
|
|
440
440
|
? this.inputValue
|
|
441
441
|
: this.internalValues.length === 0
|
|
442
442
|
? this.placeholder
|
|
443
|
-
: '' }, h("input", { key: '
|
|
443
|
+
: '' }, h("input", { key: '35f295a0a24099e20bd26bb1d2e3a185bd8c25d8', ref: el => (this.inputEl = el), class: "sd-chip-input__input", placeholder: this.internalValues.length === 0 ? this.placeholder : '', disabled: this.disabled, size: 1, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }))), showResetArea && (
|
|
444
444
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
445
|
-
h("div", { key: '
|
|
445
|
+
h("div", { key: 'b39992f79810a813ede76ce872ebe9c31519dbb4', class: "sd-chip-input__reset",
|
|
446
446
|
// 리셋 버튼 클릭 시 input blur → portal unmount → refocus → 새 portal mount로
|
|
447
447
|
// 두 wrapper가 body에 잠깐 겹치는 타이밍 이슈를 방지한다.
|
|
448
|
-
onMouseDown: e => e.preventDefault() }, this.inputValue === '' && h("span", { key: '
|
|
448
|
+
onMouseDown: e => e.preventDefault() }, this.inputValue === '' && h("span", { key: '937540ca5cc07803909bfc09292d585551be303d', class: "sd-chip-input__divider" }), this.maxCount != null && (h("span", { key: 'a3f869713a596bbddaaccfcd5a4e9b4cdf1c46ea', class: "sd-chip-input__max-count" }, "\uCD5C\uB300 ", this.maxCount, "\uAC1C")), this.useReset && this.internalValues.length > 0 && (h("sd-text-link", { key: '802b77a069e80168a71fa59a32e18fd2987a295c', icon: "reset", iconColor: CHIP_INPUT_RESET.iconColor, label: "\uC785\uB825 \uCD08\uAE30\uD654", underline: true, disabled: this.disabled, style: { '--sd-text-link-color': CHIP_INPUT_RESET.labelColor }, onSdClick: this.handleResetInput })))), showDropdown && (h("sd-portal", { key: '78a2efd9e4f499b8f6596895c713ca98db92f90c', open: showDropdown, parentRef: this.chipInputRef ?? null, viewportPadding: SdChipInput.SUGGESTIONS_VIEWPORT_PADDING, onSdClose: this.closeSuggestions }, h("div", { key: 'c001a796c5a256507a558ca9f01839c70f19ad2b', class: "sd-chip-input__suggestions", role: "listbox", style: suggestionBoxStyle }, isDropdownLoading && (h("div", { key: 'b69431229b2deb89281b4520cacd585c04335c7d', class: "sd-chip-input__suggestions-empty", style: suggestionEmptyStyle }, "\uBD88\uB7EC\uC624\uB294 \uC911...")), showRecommendations ? (h("div", { style: {
|
|
449
449
|
display: 'flex',
|
|
450
450
|
flexWrap: 'wrap',
|
|
451
451
|
gap: '8px',
|
|
@@ -31,7 +31,7 @@ export class SdCircleProgress {
|
|
|
31
31
|
}
|
|
32
32
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
33
33
|
const showPercent = !this.indeterminate;
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'b5b95509acbc4ce797cb30163e9e732cb4497ccc', style: hostStyle }, h("svg", { key: 'dc0ad68b03996e71c5d60fbc98a5ee017dcf1442', 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: '48f479dfe00730a41fc4020c2c4c42e14c54c42e', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: '2d2a54ff75db11c87e21a7953d3580832e4511be', 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: '8c393fe080a5d893bdbb90670bdba0cf76a285f6', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && h("span", { key: '2bbad3b1a3ab35696b62e97c9627a152ae8f7bf6', class: "sd-circle-progress__label" }, this.label)));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "sd-circle-progress"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -88,9 +88,9 @@ export class SdConfirmModal {
|
|
|
88
88
|
const type = this.resolvedType;
|
|
89
89
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
90
90
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
91
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: 'e8fcb4879a5a9f2b3bf41753e4cc511e710db1f6', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: 'a8595db97066963534d0ee5529f39481ed1e6c27', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '3b5cf4842176f6c039ecb64ec7942e7cb5a6f1ac', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: '6f7032707292e71e0f8adc655ce88487c08e1b8d', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), h("div", { key: 'e21c66301b368ffd989063aaf9826e023de71925', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '3965561001b0520f491cac833bba3cfe92d7a200', 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: 'dc2c38a945493e42d451e4fa3d3ebaa6dca75e4a', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
92
92
|
this.customContentRef = el;
|
|
93
|
-
} })) : (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: '
|
|
93
|
+
} })) : (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: 'ae35e60d69047547d159a452b838c8fc57a3e1a4', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) })))))), h("div", { key: '3bd41c58539faade80e61fac6a91a4ab318bbe88', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button", { key: '177fba6b79a23c80b1037d3af4872c58a598aa33', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button", { key: 'b332d980d9236c584ebca47f89fc2d9b217c0bfd', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "sd-confirm-modal"; }
|
|
96
96
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js
CHANGED
|
@@ -38,7 +38,7 @@ export class SdDatePickerTrigger {
|
|
|
38
38
|
? DATEPICKER_COLORS.icon.disabled
|
|
39
39
|
: DATEPICKER_COLORS.icon.default,
|
|
40
40
|
};
|
|
41
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: 'bd454879eb1a8f40f32e0131b3f2884bbf02b888', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
42
42
|
'sd-date-picker-trigger': true,
|
|
43
43
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
44
44
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -46,7 +46,7 @@ export class SdDatePickerTrigger {
|
|
|
46
46
|
e.preventDefault();
|
|
47
47
|
this.handleClick();
|
|
48
48
|
}
|
|
49
|
-
} }, h("sd-icon", { key: '
|
|
49
|
+
} }, h("sd-icon", { key: '1c1d87b067a98d98d85a6c3e544a389b3b965715', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: 'da87df624c173336d434bd943c6fcce5e86feb03', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "sd-date-picker-trigger"; }
|
|
52
52
|
static get originalStyleUrls() {
|
|
@@ -116,9 +116,9 @@ export class SdDatePicker {
|
|
|
116
116
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
117
117
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
118
118
|
};
|
|
119
|
-
return (h("sd-field", { key: '
|
|
119
|
+
return (h("sd-field", { key: 'd40168072c744016d87e7e812b781f7cfeacbc0f', 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: '75a6029631b17e71ce9ba984cb0804d4f0e4b003', class: "sd-date-picker", ref: el => {
|
|
120
120
|
this.triggerRef = el;
|
|
121
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
121
|
+
} }, h("sd-date-picker-trigger", { key: '50239daa174a49c306cd79633fc2b26756650b39', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '6b2bc9b10b5337b24ba2403a1a3dc29cf8c49007', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-calendar", { key: '04274e5bd12c2a3a9c0b6879c49fae4b547e5670', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "sd-date-picker"; }
|
|
124
124
|
static get originalStyleUrls() {
|
|
@@ -244,7 +244,7 @@ export class SdDateRangePickerCalendar {
|
|
|
244
244
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
245
245
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
246
246
|
};
|
|
247
|
-
return (h(Fragment, { key: '
|
|
247
|
+
return (h(Fragment, { key: 'a32cc455c1d5fda2754a64374daa6cd664ccf811' }, h("div", { key: 'beaaa15519e87cf3543981c4b902fe000c945d57', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: '54ac87b736bd35236b900ca0b34940a82017b0ec', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: 'f4b585c6a6b680591de74c0f31801578df6629c9', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
248
248
|
}
|
|
249
249
|
static get is() { return "sd-date-range-picker-calendar"; }
|
|
250
250
|
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: '2708ce362531fa5f3658280ba77733c5f9fb8fa6', style: hostStyle }, h("hr", { key: 'e38476a897aa2bae6500316d5961fc9d6d18780d', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "sd-divider"; }
|
|
13
13
|
static get originalStyleUrls() {
|
|
@@ -12,7 +12,7 @@ sd-dropdown-button {
|
|
|
12
12
|
.sd-dropdown-button__trigger {
|
|
13
13
|
--sd-dropdown-button-height: var(--sd-button-button-md-height, 36px);
|
|
14
14
|
--sd-dropdown-button-padding-x: var(--sd-button-button-md-padding-x, 20px);
|
|
15
|
-
--sd-dropdown-button-gap: var(--sd-button-button-md-gap,
|
|
15
|
+
--sd-dropdown-button-gap: var(--sd-button-button-dropdown-md-gap, 16px);
|
|
16
16
|
--sd-dropdown-button-font-family: var(--sd-button-button-md-typography-font-family, inherit);
|
|
17
17
|
--sd-dropdown-button-font-size: var(--sd-button-button-md-typography-font-size, 12px);
|
|
18
18
|
--sd-dropdown-button-font-weight: var(--sd-button-button-md-typography-font-weight, 500);
|
|
@@ -59,7 +59,7 @@ sd-dropdown-button {
|
|
|
59
59
|
.sd-dropdown-button__trigger--xs {
|
|
60
60
|
--sd-dropdown-button-height: var(--sd-button-button-xs-height, 24px);
|
|
61
61
|
--sd-dropdown-button-padding-x: var(--sd-button-button-xs-padding-x, 8px);
|
|
62
|
-
--sd-dropdown-button-gap: var(--sd-button-button-xs-gap,
|
|
62
|
+
--sd-dropdown-button-gap: var(--sd-button-button-dropdown-xs-gap, 6px);
|
|
63
63
|
--sd-dropdown-button-font-family: var(--sd-button-button-xs-typography-font-family, inherit);
|
|
64
64
|
--sd-dropdown-button-font-size: var(--sd-button-button-xs-typography-font-size, 12px);
|
|
65
65
|
--sd-dropdown-button-font-weight: var(--sd-button-button-xs-typography-font-weight, 500);
|
|
@@ -71,7 +71,7 @@ sd-dropdown-button {
|
|
|
71
71
|
.sd-dropdown-button__trigger--sm {
|
|
72
72
|
--sd-dropdown-button-height: var(--sd-button-button-sm-height, 28px);
|
|
73
73
|
--sd-dropdown-button-padding-x: var(--sd-button-button-sm-padding-x, 12px);
|
|
74
|
-
--sd-dropdown-button-gap: var(--sd-button-button-sm-gap,
|
|
74
|
+
--sd-dropdown-button-gap: var(--sd-button-button-dropdown-sm-gap, 8px);
|
|
75
75
|
--sd-dropdown-button-font-family: var(--sd-button-button-sm-typography-font-family, inherit);
|
|
76
76
|
--sd-dropdown-button-font-size: var(--sd-button-button-sm-typography-font-size, 12px);
|
|
77
77
|
--sd-dropdown-button-font-weight: var(--sd-button-button-sm-typography-font-weight, 500);
|
|
@@ -83,7 +83,7 @@ sd-dropdown-button {
|
|
|
83
83
|
.sd-dropdown-button__trigger--md {
|
|
84
84
|
--sd-dropdown-button-height: var(--sd-button-button-md-height, 36px);
|
|
85
85
|
--sd-dropdown-button-padding-x: var(--sd-button-button-md-padding-x, 20px);
|
|
86
|
-
--sd-dropdown-button-gap: var(--sd-button-button-md-gap,
|
|
86
|
+
--sd-dropdown-button-gap: var(--sd-button-button-dropdown-md-gap, 16px);
|
|
87
87
|
--sd-dropdown-button-font-family: var(--sd-button-button-md-typography-font-family, inherit);
|
|
88
88
|
--sd-dropdown-button-font-size: var(--sd-button-button-md-typography-font-size, 16px);
|
|
89
89
|
--sd-dropdown-button-font-weight: var(--sd-button-button-md-typography-font-weight, 500);
|
|
@@ -205,21 +205,21 @@ export class SdField {
|
|
|
205
205
|
: {}),
|
|
206
206
|
}
|
|
207
207
|
: {};
|
|
208
|
-
return (h("div", { key: '
|
|
208
|
+
return (h("div", { key: '45a5353fb451aa829092ca34f3212d6e62f1843a', class: {
|
|
209
209
|
'sd-field': true,
|
|
210
210
|
'sd-field--has-label': this.label !== '',
|
|
211
211
|
'sd-field--has-addon': addon !== '',
|
|
212
212
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
213
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '
|
|
213
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '75f3be0dae03f292b66980b7c92d574bd0bda988', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '69b9827a2599a2e01fad26224b4b9800fde6e347', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
214
214
|
? {
|
|
215
215
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
216
216
|
flex: 'none',
|
|
217
217
|
}
|
|
218
|
-
: {} }, h("div", { key: '
|
|
218
|
+
: {} }, h("div", { key: 'ba0e98fd309c32ee73b2ba92f956358d51790f58', class: {
|
|
219
219
|
'sd-field__control': true,
|
|
220
220
|
'sd-field__control--has-addon': addon !== '',
|
|
221
|
-
} }, addon && (h("div", { key: '
|
|
222
|
-
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: '
|
|
221
|
+
} }, addon && (h("div", { key: '8f941150147145368d340c4be0e3636ef67060c3', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: '78d5d092094c0f3e8562127d77821dadb2a21b6a', name: this.icon.name, size: this.icon.size ??
|
|
222
|
+
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: 'b494ab4550ae739096957cad46cb95a8c71f5a0b' })), 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))))));
|
|
223
223
|
}
|
|
224
224
|
renderLabel(label) {
|
|
225
225
|
if (label == null || label === '')
|
|
@@ -173,7 +173,7 @@ export class SdFloatingPopover {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return h("slot", { key: '
|
|
176
|
+
return h("slot", { key: 'a560d8d46ef03688ce16a984c54ae23f740e7ef8' });
|
|
177
177
|
}
|
|
178
178
|
static get is() { return "sd-floating-portal"; }
|
|
179
179
|
static get originalStyleUrls() {
|
|
@@ -66,7 +66,7 @@ export class SdGhostButton {
|
|
|
66
66
|
const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
|
|
67
67
|
const tooltipText = (this.tooltipText ?? '').trim();
|
|
68
68
|
const hasTooltip = tooltipText.length > 0;
|
|
69
|
-
return (h("button", { key: '
|
|
69
|
+
return (h("button", { key: '9d2d352d36c7c34c67d8c57de6236d72727bd078', class: {
|
|
70
70
|
'sd-ghost-button': true,
|
|
71
71
|
'sd-ghost-button--disabled': this.disabled,
|
|
72
72
|
}, type: "button", "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : undefined, "aria-label": accessibleName, style: {
|
|
@@ -75,7 +75,7 @@ export class SdGhostButton {
|
|
|
75
75
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
|
|
76
76
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
77
77
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
78
|
-
}, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (h("sd-portal", { key: '
|
|
78
|
+
}, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (h("sd-portal", { key: '1a73fb53be28a622d03e4f20be0b30e0e76bccd4', parentRef: this.hostEl, open: true, offset: [sizeConfig.size / 2, 4], placement: "top" }, h("div", { key: 'e4a349dbfbf2fd16eed9a46f5e2ed43935212cfe', class: "sd-ghost-button__tooltip-inner", "aria-hidden": "true" }, h("sd-tag", { key: '4aa1525a6da6ee72daf1815f1440d665bd1cf2c8', name: "square_xs_grey", label: tooltipText })))), h("sd-icon", { key: '4caac22d0d888c1998032697043e3a3761e012aa', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "sd-ghost-button"; }
|
|
81
81
|
static get originalStyleUrls() {
|
|
@@ -152,12 +152,12 @@ export class SdInput {
|
|
|
152
152
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
153
153
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
154
154
|
};
|
|
155
|
-
return (h("sd-field", { key: '
|
|
155
|
+
return (h("sd-field", { key: '6dda00aedca8b7020960de585e27477b7ee104e7', 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: 'ee4b9368d04388c5679943df7c380c879130a07d', class: "sd-input__content" }, h("slot", { key: 'ba1737093bb22f790ab9ea4677966daf718cae01', name: "prefix" }), h("input", { key: '94961d388267f7b84ac9b5c1e7a5b10a803266c7', 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: '1d5a1319d8f216d637eb546665e16be4dab1f2a8', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: '901716b67a34eefc41bb497b86bb658207f79046', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
156
156
|
if (this.disabled || this.readonly)
|
|
157
157
|
return;
|
|
158
158
|
this.internalValue = '';
|
|
159
159
|
await this.formField?.sdValidate();
|
|
160
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
160
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '5b7e03060d88fee8256cdf9aba66d3e3eed36cdc', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
161
161
|
if (this.disabled || this.readonly)
|
|
162
162
|
return;
|
|
163
163
|
this.passwordVisible = !this.passwordVisible;
|