@sellmate/design-system 1.27.0 → 1.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{component.field-YIQ9TAhV.js → component.field-C7it8cZm.js} +2 -2
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-BTqAmfdr.js → index-DsYLSqCp.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- 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-button_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +1 -1
- 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 +7 -3
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{sd-date-picker.config-CtXmufyj.js → sd-date-picker.config-De7ahWIs.js} +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +25 -29
- 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 +3 -3
- package/dist/cjs/sd-field_3.cjs.entry.js +18 -12
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +1 -1
- package/dist/cjs/sd-guide.cjs.entry.js +1 -1
- package/dist/cjs/sd-key-value-table.cjs.entry.js +1 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +23 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +15 -10
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- 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 +7 -7
- package/dist/cjs/sd-select_3.cjs.entry.js +9 -9
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +7 -7
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +5 -5
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-CiM3irtY.js → tooltipArrow-FLiD3ceS.js} +1 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +2 -2
- package/dist/collection/components/sd-field/sd-field.css +5 -0
- package/dist/collection/components/sd-field/sd-field.js +30 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +2 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +14 -17
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -0
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- 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 +22 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.config.js +1 -1
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +5 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.config.js +1 -0
- package/dist/collection/components/sd-pagination/sd-pagination.css +1 -1
- package/dist/collection/components/sd-pagination/sd-pagination.js +4 -3
- package/dist/collection/components/sd-popup/sd-popup.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-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 +4 -4
- 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/index.js +1 -1
- package/dist/components/{p-P6SE7iQV.js → p--AZbwi7P.js} +1 -1
- package/dist/components/{p-B7Fy6FMY.js → p-BFy8txYj.js} +1 -1
- package/dist/components/{p-C-xm1A4R.js → p-BHNytAtJ.js} +1 -1
- package/dist/components/{p-BIFt5zIX.js → p-BOJALVxB.js} +1 -1
- package/dist/components/{p-DJsKwChT.js → p-BQqXWtI6.js} +1 -1
- package/dist/components/{p-DTEO2eLq.js → p-BU1H7ElF.js} +1 -1
- package/dist/components/{p-DObwsGYE.js → p-BV4cnHWn.js} +1 -1
- package/dist/components/p-BZdgdRXJ.js +1 -0
- package/dist/components/{p-CJYl_ssf.js → p-BaRjXqSM.js} +1 -1
- package/dist/components/{p-CDiIm8f6.js → p-Bk6aI8rL.js} +1 -1
- package/dist/components/p-BxphFsxh.js +1 -0
- package/dist/components/{p-CygiHfH3.js → p-CIPPETF-.js} +1 -1
- package/dist/components/{p-B8qPlbcL.js → p-CJcs7kNH.js} +1 -1
- package/dist/components/{p-CrpzIzUy.js → p-CV5LiFKt.js} +1 -1
- package/dist/components/{p-BsJ3_flK.js → p-CiTn4ZiI.js} +1 -1
- package/dist/components/p-CmK45nj3.js +1 -0
- package/dist/components/{p-DuMx_9he.js → p-Cok_EW_N.js} +1 -1
- package/dist/components/{p-DHINsZ60.js → p-CvSPsoRb.js} +1 -1
- package/dist/components/{p-BeR_5Fwe.js → p-CwwJD-NF.js} +1 -1
- package/dist/components/{p-BKBd44No.js → p-D7XGOtx0.js} +1 -1
- package/dist/components/{p-D60P6BdJ.js → p-DMrzTImA.js} +1 -1
- package/dist/components/{p-BJoG95Kt.js → p-DT-e9J59.js} +1 -1
- package/dist/components/{p-B0NEmngm.js → p-DTb2c83G.js} +1 -1
- package/dist/components/{p-DYHntcvV.js → p-DVq9oE_p.js} +1 -1
- package/dist/components/p-DYp8I4VH.js +1 -0
- package/dist/components/{p-V8hUcpnj.js → p-DeXLIS7e.js} +1 -1
- package/dist/components/{p-BOJJ_sQS.js → p-DjKOoQuF.js} +1 -1
- package/dist/components/{p-7NIombHr.js → p-DkaajrxX.js} +1 -1
- package/dist/components/p-DmC83_E9.js +1 -0
- package/dist/components/{p-DgK8EUjx.js → p-DnxEeX9I.js} +1 -1
- package/dist/components/{p-CHvrvQsZ.js → p-DsQQFJ8o.js} +1 -1
- package/dist/components/{p-CD0706HD.js → p-Du_Yc-lW.js} +1 -1
- package/dist/components/{p-BL9Vy4Fd.js → p-Dy6LmOzw.js} +1 -1
- package/dist/components/p-NeXvaRu7.js +1 -0
- package/dist/components/{p-Dv7x-UAd.js → p-PvltLPHp.js} +1 -1
- package/dist/components/{p-BKg1YV-H.js → p-SROa9QCy.js} +1 -1
- package/dist/components/{p-BArxAQLx.js → p-hP1aeMuZ.js} +1 -1
- package/dist/components/p-jwusYvH0.js +1 -0
- 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-checkbox.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-box.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-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.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/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-93c7c640.entry.js → p-06b56059.entry.js} +1 -1
- package/dist/design-system/{p-8e428210.entry.js → p-07755193.entry.js} +1 -1
- package/dist/design-system/{p-ef60be0f.entry.js → p-147e0413.entry.js} +1 -1
- package/dist/design-system/{p-59ecccb2.entry.js → p-26297c6e.entry.js} +1 -1
- package/dist/design-system/{p-089235d2.entry.js → p-270c8529.entry.js} +1 -1
- package/dist/design-system/{p-d6bb5c82.entry.js → p-459a408f.entry.js} +1 -1
- package/dist/design-system/{p-e0d4193a.entry.js → p-49b1636a.entry.js} +1 -1
- package/dist/design-system/{p-c561595a.entry.js → p-5142cd06.entry.js} +1 -1
- package/dist/design-system/p-51c7839c.entry.js +1 -0
- package/dist/design-system/{p-df3faae8.entry.js → p-55c8ce37.entry.js} +1 -1
- package/dist/design-system/p-5aa5aec3.entry.js +1 -0
- package/dist/design-system/{p-b6a139b7.entry.js → p-5f1dae23.entry.js} +1 -1
- package/dist/design-system/p-5f5f2fbe.entry.js +1 -0
- package/dist/design-system/{p-36275d32.entry.js → p-65285327.entry.js} +1 -1
- package/dist/design-system/{p-f43dd680.entry.js → p-6aec5853.entry.js} +1 -1
- package/dist/design-system/{p-a2796cd6.entry.js → p-7540f591.entry.js} +1 -1
- package/dist/design-system/{p-63804698.entry.js → p-761c008c.entry.js} +1 -1
- package/dist/design-system/{p-c5bd0dc9.entry.js → p-80abdfe7.entry.js} +1 -1
- package/dist/design-system/{p-12eabcc9.entry.js → p-839e6b5a.entry.js} +1 -1
- package/dist/design-system/{p-d7e1a303.entry.js → p-8ac340db.entry.js} +1 -1
- package/dist/design-system/{p-d87b75ff.entry.js → p-8c1a9374.entry.js} +1 -1
- package/dist/design-system/{p-e0fa6937.entry.js → p-947dcc28.entry.js} +1 -1
- package/dist/design-system/{p-9991485c.entry.js → p-9603971e.entry.js} +1 -1
- package/dist/design-system/{p-9adb306b.entry.js → p-9825e76c.entry.js} +1 -1
- package/dist/design-system/{p-b0b9995e.entry.js → p-9c0d3011.entry.js} +1 -1
- package/dist/design-system/{p-C2-fl-Dc.js → p-B-LOf2aM.js} +1 -1
- package/dist/design-system/p-BZg-6aSz.js +2 -0
- package/dist/design-system/{p-d24F7UcR.js → p-D2S9Zafz.js} +1 -1
- package/dist/design-system/{p-BOJJ_sQS.js → p-DjKOoQuF.js} +1 -1
- package/dist/design-system/{p-4f4b3dab.entry.js → p-a4e1dd8c.entry.js} +1 -1
- package/dist/design-system/{p-b8394ddb.entry.js → p-b84f5550.entry.js} +1 -1
- package/dist/design-system/{p-29b84d12.entry.js → p-b86a69ce.entry.js} +1 -1
- package/dist/design-system/{p-669dfbe4.entry.js → p-b9387621.entry.js} +1 -1
- package/dist/design-system/p-cb0cbcb0.entry.js +1 -0
- package/dist/design-system/{p-030b0602.entry.js → p-d790fbb8.entry.js} +1 -1
- package/dist/design-system/{p-ceda6367.entry.js → p-dae6914d.entry.js} +1 -1
- package/dist/design-system/{p-024c1605.entry.js → p-ddb9a2c4.entry.js} +1 -1
- package/dist/design-system/{p-0dfdcfed.entry.js → p-dfa16f49.entry.js} +1 -1
- package/dist/design-system/{p-e2dabf85.entry.js → p-e63bf0e1.entry.js} +1 -1
- package/dist/design-system/p-edfb5c83.entry.js +1 -0
- package/dist/design-system/{p-f7123e89.entry.js → p-efc55114.entry.js} +1 -1
- package/dist/design-system/p-fd671afe.entry.js +1 -0
- package/dist/design-system/{p-2b2aaa32.entry.js → p-fe2b853f.entry.js} +1 -1
- package/dist/design-system/{p-3f347a3a.entry.js → p-ff9ccbf6.entry.js} +1 -1
- package/dist/esm/{component.field-BOJJ_sQS.js → component.field-DjKOoQuF.js} +2 -2
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-BwIs2-fm.js → index-BZg-6aSz.js} +1 -1
- package/dist/esm/loader.js +3 -3
- 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-button_2.entry.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +3 -3
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +1 -1
- 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 +7 -3
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{sd-date-picker.config-6dvDZPGx.js → sd-date-picker.config-D-ks6qNf.js} +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +25 -29
- 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 +3 -3
- package/dist/esm/sd-field_3.entry.js +18 -12
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +1 -1
- package/dist/esm/sd-guide.entry.js +1 -1
- package/dist/esm/sd-key-value-table.entry.js +1 -1
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +23 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination_4.entry.js +15 -10
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popup.entry.js +2 -2
- 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 +7 -7
- package/dist/esm/sd-select_3.entry.js +9 -9
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-table.entry.js +7 -7
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +5 -5
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{tooltipArrow-CJxhdfqT.js → tooltipArrow-BAi-pktU.js} +1 -1
- package/dist/types/components/sd-field/sd-field.d.ts +5 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +1 -1
- package/dist/types/components/sd-loading-container/sd-loading-container.d.ts +6 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +2 -0
- package/dist/types/components/sd-pagination/sd-pagination.config.d.ts +1 -0
- package/dist/types/components.d.ts +13 -2
- package/hydrate/index.js +117 -85
- package/hydrate/index.mjs +117 -85
- package/package.json +1 -1
- package/dist/components/p-Bcp4vs0m.js +0 -1
- package/dist/components/p-BuubsWWz.js +0 -1
- package/dist/components/p-CbsRJTHs.js +0 -1
- package/dist/components/p-KSTsd4qM.js +0 -1
- package/dist/components/p-b9Q4MYgR.js +0 -1
- package/dist/components/p-hd2Gc2Z3.js +0 -1
- package/dist/components/p-mbe7jmT5.js +0 -1
- package/dist/design-system/p-0f3d40f2.entry.js +0 -1
- package/dist/design-system/p-6324bbde.entry.js +0 -1
- package/dist/design-system/p-66cb4a7c.entry.js +0 -1
- package/dist/design-system/p-7e1f14a6.entry.js +0 -1
- package/dist/design-system/p-8d340091.entry.js +0 -1
- package/dist/design-system/p-9860b9d9.entry.js +0 -1
- package/dist/design-system/p-BwIs2-fm.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h, c as createEvent, F as Fragment } from './index-
|
|
2
|
-
import { f as fieldTokens } from './component.field-
|
|
3
|
-
import { T as TooltipArrow } from './tooltipArrow-
|
|
1
|
+
import { r as registerInstance, a as getElement, h, c as createEvent, F as Fragment } from './index-BZg-6aSz.js';
|
|
2
|
+
import { f as fieldTokens } from './component.field-DjKOoQuF.js';
|
|
3
|
+
import { T as TooltipArrow } from './tooltipArrow-BAi-pktU.js';
|
|
4
4
|
|
|
5
5
|
const FIELD_ADDON_ALIGN_MAP = {
|
|
6
6
|
start: 'flex-start',
|
|
@@ -28,7 +28,7 @@ const FIELD_LABEL_SIZE_MAP = {
|
|
|
28
28
|
},
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--readonly .sd-field__wrapper .sd-field__control{background-color:var(--sd-system-color-field-bg-read-only);color:var(--sd-system-color-field-text-read-only)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;flex-shrink:0;width:var(--sd-field-label-width, auto);height:var(--sd-field-label-height);margin-right:var(--sd-field-label-margin-right)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;gap:var(--sd-field-addon-gap);align-items:center;justify-content:var(--sd-field-addon-justify, flex-start);white-space:nowrap;box-sizing:border-box;flex-shrink:0;width:var(--sd-field-addon-width, auto);padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px)}sd-field .sd-field__wrapper{width:100%;display:flex;align-items:flex-start;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__main{flex:1;min-width:0;display:flex;flex-direction:column}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:var(--sd-field-wrapper-height);display:flex;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-field-control-radius);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error .sd-field__wrapper .sd-field__control:not(:hover){border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field:not(.sd-field--disabled):not(.sd-field--readonly) .sd-field__wrapper .sd-field__control:hover{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--focus:not(.sd-field--readonly) .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field .sd-field__error-message{color:var(--sd-field-error-message-color);font-size:var(--sd-field-error-message-font-size);line-height:var(--sd-field-error-message-line-height);margin-top:var(--sd-field-message-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-field-hint-color);font-size:var(--sd-field-hint-font-size);line-height:var(--sd-field-hint-line-height);margin-top:var(--sd-field-message-gap)}`;
|
|
31
|
+
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--readonly .sd-field__wrapper .sd-field__control{background-color:var(--sd-system-color-field-bg-read-only);color:var(--sd-system-color-field-text-read-only)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;flex-shrink:0;width:var(--sd-field-label-width, auto);height:var(--sd-field-label-height);margin-right:var(--sd-field-label-margin-right)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;gap:var(--sd-field-addon-gap);align-items:center;justify-content:var(--sd-field-addon-justify, flex-start);white-space:nowrap;box-sizing:border-box;flex-shrink:0;width:var(--sd-field-addon-width, auto);padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px)}sd-field .sd-field__wrapper{width:100%;display:flex;align-items:flex-start;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__main{flex:1;min-width:0;display:flex;flex-direction:column}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:var(--sd-field-wrapper-height);display:flex;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-field-control-radius);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error .sd-field__wrapper .sd-field__control:not(:hover){border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field:not(.sd-field--disabled):not(.sd-field--readonly) .sd-field__wrapper .sd-field__control:hover{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--focus:not(.sd-field--readonly) .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--borderless .sd-field__wrapper .sd-field__control,sd-field .sd-field.sd-field--borderless.sd-field--error .sd-field__wrapper .sd-field__control:not(:hover),sd-field .sd-field.sd-field--borderless.sd-field--pass .sd-field__wrapper .sd-field__control,sd-field .sd-field.sd-field--borderless:not(.sd-field--disabled):not(.sd-field--readonly) .sd-field__wrapper .sd-field__control:hover,sd-field .sd-field.sd-field--borderless.sd-field--focus:not(.sd-field--readonly) .sd-field__wrapper .sd-field__control{border-color:transparent !important;background:transparent !important;box-shadow:none !important}sd-field .sd-field .sd-field__error-message{color:var(--sd-field-error-message-color);font-size:var(--sd-field-error-message-font-size);line-height:var(--sd-field-error-message-line-height);margin-top:var(--sd-field-message-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-field-hint-color);font-size:var(--sd-field-hint-font-size);line-height:var(--sd-field-hint-line-height);margin-top:var(--sd-field-message-gap)}`;
|
|
32
32
|
|
|
33
33
|
const FORM_PARENT_TAGS = [
|
|
34
34
|
'sd-input',
|
|
@@ -70,6 +70,11 @@ const SdField = class {
|
|
|
70
70
|
width = '';
|
|
71
71
|
/** 필드 크기 */
|
|
72
72
|
size = 'sm';
|
|
73
|
+
/**
|
|
74
|
+
* 테두리 박스 제거 (inline 컨트롤용) — border/배경/hover·focus 강조만 사라지고
|
|
75
|
+
* label·hint·errorMessage 등 나머지 필드 구성은 그대로 동작한다.
|
|
76
|
+
*/
|
|
77
|
+
borderless = false;
|
|
73
78
|
// props - label
|
|
74
79
|
/** 레이블 텍스트 */
|
|
75
80
|
label = '';
|
|
@@ -237,18 +242,19 @@ const SdField = class {
|
|
|
237
242
|
: {}),
|
|
238
243
|
}
|
|
239
244
|
: {};
|
|
240
|
-
return (h("div", { key: '
|
|
245
|
+
return (h("div", { key: 'bce0bc8ccc19e41c2a61980bd12f07d7f8838569', class: {
|
|
241
246
|
'sd-field': true,
|
|
242
247
|
'sd-field--has-label': this.label !== '',
|
|
243
248
|
'sd-field--has-addon': addon !== '',
|
|
249
|
+
'sd-field--borderless': this.borderless,
|
|
244
250
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
245
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '
|
|
251
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: 'c6c4e3ec6e018ebd0dc6fbbae5fbaef4ea6503e5', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: 'bd778a24325412924e0a331db592535e4b4e542b', class: "sd-field__main" }, h("div", { key: '485cfbdbfa7299cb27d84e61306d6e2cf196d071', class: {
|
|
246
252
|
'sd-field__control': true,
|
|
247
253
|
'sd-field__control--has-addon': addon !== '',
|
|
248
254
|
}, style: this.width !== '' && this.width !== 0
|
|
249
255
|
? { width: typeof this.width === 'number' ? `${this.width}px` : this.width }
|
|
250
|
-
: {} }, addon && (h("div", { key: '
|
|
251
|
-
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: '
|
|
256
|
+
: {} }, addon && (h("div", { key: '510238ac22b7e923724cc20abf2541adbddcb594', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: '2cca5b62cbe56050acd536764c33cbc3009f740b', name: this.icon.name, size: this.icon.size ??
|
|
257
|
+
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: '470c0d559409a11f1c5650e88a50555a4656d3f9' })), 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))))));
|
|
252
258
|
}
|
|
253
259
|
renderLabel(label) {
|
|
254
260
|
if (label == null || label === '')
|
|
@@ -259,7 +265,7 @@ const SdField = class {
|
|
|
259
265
|
};
|
|
260
266
|
SdField.style = sdFieldCss();
|
|
261
267
|
|
|
262
|
-
const sdFloatingPortalCss = () => `.sd-floating-menu{width:fit-content;padding:12px 16px;border-radius:6px;font-size:12px;font-weight:500;line-height:20px;position:relative;box-sizing:border-box;background:var(--sd-floating-bg, #07284A);color:var(--sd-floating-content, #FFFFFF);animation:sd-floating-fade-in 0.35s ease-out}.sd-floating-menu--top{animation-name:sd-floating-slide-top}.sd-floating-menu--bottom{animation-name:sd-floating-slide-bottom}.sd-floating-menu--left{animation-name:sd-floating-slide-left}.sd-floating-menu--right{animation-name:sd-floating-slide-right}.sd-floating-menu .sd-floating-menu__arrow{color:var(--sd-floating-bg, #07284A)}.sd-floating-menu--default{background:var(--sd-floating-bg, #07284A);color:var(--sd-floating-content, #FFFFFF);font-weight:500}.sd-floating-menu--default .sd-floating-menu__arrow{color:var(--sd-floating-bg, #07284A)}.sd-floating-menu--danger{background:var(--sd-floating-bg, #FCE6E6);color:var(--sd-floating-content, #FB4444);font-weight:700}.sd-floating-menu--danger .sd-floating-menu__arrow{color:var(--sd-floating-bg, #FCE6E6)}.sd-floating-menu--warning{background:var(--sd-floating-bg, #FEF1EA);color:var(--sd-floating-content, #FF6B00);font-weight:700}.sd-floating-menu--warning .sd-floating-menu__arrow{color:var(--sd-floating-bg, #FEF1EA)}.sd-floating-menu--accent{background:var(--sd-floating-bg, #E6F1FF);color:var(--sd-floating-content, #0075FF);font-weight:700}.sd-floating-menu--accent .sd-floating-menu__arrow{color:var(--sd-floating-bg, #E6F1FF)}.sd-floating-menu__arrow{position:absolute;display:flex;width:16px;height:12px}.sd-floating-menu__arrow svg{width:100%;height:100%}.sd-floating-menu__arrow--top{bottom:-12px;left:50%;transform:translateX(-50%)}.sd-floating-menu__arrow--bottom{top:-12px;left:50%;transform:translateX(-50%) rotate(180deg)}.sd-floating-menu__arrow--left{right:-12px;top:50%;transform:translateY(-50%) rotate(-90deg)}.sd-floating-menu__arrow--right{left:-12px;top:50%;transform:translateY(-50%) rotate(90deg)}.sd-floating-menu__content{font-size:12px;line-height:20px}.sd-floating-menu__content .sd-floating-menu__title{font-size:14px;font-weight:700;line-height:24px;margin-bottom:4px}.sd-floating-menu__content .sd-floating-menu__messages{font-weight:500}.sd-floating-menu__content .sd-floating-menu__buttons{margin-top:12px;display:flex;gap:8px;align-items:center;justify-content:flex-end}.sd-floating-menu__content .sd-floating-menu__buttons--with-link{justify-content:space-between}.sd-floating-menu--popover{padding:16px 20px}.sd-floating-menu--popover .sd-floating-menu__content{gap:4px}.sd-floating-menu--popover .sd-floating-menu__title{font-size:14px;font-weight:700;line-height:24px}.sd-floating-menu--popover .sd-floating-menu__messages{font-size:12px;font-weight:500;line-height:20px}.sd-floating-menu--closing{animation:sd-floating-fade-out 0.15s ease-in forwards}.sd-floating-menu--closing.sd-floating-menu--top{animation-name:sd-floating-slide-out-top}.sd-floating-menu--closing.sd-floating-menu--bottom{animation-name:sd-floating-slide-out-bottom}.sd-floating-menu--closing.sd-floating-menu--left{animation-name:sd-floating-slide-out-left}.sd-floating-menu--closing.sd-floating-menu--right{animation-name:sd-floating-slide-out-right}.sd-floating-menu--has-close .sd-floating-menu__content{padding-right:28px}.sd-floating-menu__close-button{position:absolute;top:12px;right:12px}@keyframes sd-floating-fade-out{from{opacity:1}to{opacity:0}}@keyframes sd-floating-slide-out-top{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(4px)}}@keyframes sd-floating-slide-out-bottom{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}@keyframes sd-floating-slide-out-left{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(4px)}}@keyframes sd-floating-slide-out-right{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-4px)}}@keyframes sd-floating-fade-in{from{opacity:0}to{opacity:1}}@keyframes sd-floating-slide-top{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes sd-floating-slide-bottom{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes sd-floating-slide-left{from{opacity:0;transform:translateX(4px)}to{opacity:1;transform:translateX(0)}}@keyframes sd-floating-slide-right{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:translateX(0)}}`;
|
|
268
|
+
const sdFloatingPortalCss = () => `.sd-floating-menu{width:fit-content;padding:12px 16px;border-radius:6px;font-size:12px;font-weight:500;line-height:20px;position:relative;box-sizing:border-box;background:var(--sd-floating-bg, #07284A);color:var(--sd-floating-content, #FFFFFF);box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);animation:sd-floating-fade-in 0.35s ease-out}.sd-floating-menu--top{animation-name:sd-floating-slide-top}.sd-floating-menu--bottom{animation-name:sd-floating-slide-bottom}.sd-floating-menu--left{animation-name:sd-floating-slide-left}.sd-floating-menu--right{animation-name:sd-floating-slide-right}.sd-floating-menu .sd-floating-menu__arrow{color:var(--sd-floating-bg, #07284A)}.sd-floating-menu--default{background:var(--sd-floating-bg, #07284A);color:var(--sd-floating-content, #FFFFFF);font-weight:500}.sd-floating-menu--default .sd-floating-menu__arrow{color:var(--sd-floating-bg, #07284A)}.sd-floating-menu--danger{background:var(--sd-floating-bg, #FCE6E6);color:var(--sd-floating-content, #FB4444);font-weight:700}.sd-floating-menu--danger .sd-floating-menu__arrow{color:var(--sd-floating-bg, #FCE6E6)}.sd-floating-menu--warning{background:var(--sd-floating-bg, #FEF1EA);color:var(--sd-floating-content, #FF6B00);font-weight:700}.sd-floating-menu--warning .sd-floating-menu__arrow{color:var(--sd-floating-bg, #FEF1EA)}.sd-floating-menu--accent{background:var(--sd-floating-bg, #E6F1FF);color:var(--sd-floating-content, #0075FF);font-weight:700}.sd-floating-menu--accent .sd-floating-menu__arrow{color:var(--sd-floating-bg, #E6F1FF)}.sd-floating-menu__arrow{position:absolute;display:flex;width:16px;height:12px}.sd-floating-menu__arrow svg{width:100%;height:100%}.sd-floating-menu__arrow--top{bottom:-12px;left:50%;transform:translateX(-50%)}.sd-floating-menu__arrow--bottom{top:-12px;left:50%;transform:translateX(-50%) rotate(180deg)}.sd-floating-menu__arrow--left{right:-12px;top:50%;transform:translateY(-50%) rotate(-90deg)}.sd-floating-menu__arrow--right{left:-12px;top:50%;transform:translateY(-50%) rotate(90deg)}.sd-floating-menu__content{font-size:12px;line-height:20px}.sd-floating-menu__content .sd-floating-menu__title{font-size:14px;font-weight:700;line-height:24px;margin-bottom:4px}.sd-floating-menu__content .sd-floating-menu__messages{font-weight:500}.sd-floating-menu__content .sd-floating-menu__buttons{margin-top:12px;display:flex;gap:8px;align-items:center;justify-content:flex-end}.sd-floating-menu__content .sd-floating-menu__buttons--with-link{justify-content:space-between}.sd-floating-menu--popover{padding:16px 20px}.sd-floating-menu--popover .sd-floating-menu__content{gap:4px}.sd-floating-menu--popover .sd-floating-menu__title{font-size:14px;font-weight:700;line-height:24px}.sd-floating-menu--popover .sd-floating-menu__messages{font-size:12px;font-weight:500;line-height:20px}.sd-floating-menu--closing{animation:sd-floating-fade-out 0.15s ease-in forwards}.sd-floating-menu--closing.sd-floating-menu--top{animation-name:sd-floating-slide-out-top}.sd-floating-menu--closing.sd-floating-menu--bottom{animation-name:sd-floating-slide-out-bottom}.sd-floating-menu--closing.sd-floating-menu--left{animation-name:sd-floating-slide-out-left}.sd-floating-menu--closing.sd-floating-menu--right{animation-name:sd-floating-slide-out-right}.sd-floating-menu--has-close .sd-floating-menu__content{padding-right:28px}.sd-floating-menu__close-button{position:absolute;top:12px;right:12px}@keyframes sd-floating-fade-out{from{opacity:1}to{opacity:0}}@keyframes sd-floating-slide-out-top{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(4px)}}@keyframes sd-floating-slide-out-bottom{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-4px)}}@keyframes sd-floating-slide-out-left{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(4px)}}@keyframes sd-floating-slide-out-right{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-4px)}}@keyframes sd-floating-fade-in{from{opacity:0}to{opacity:1}}@keyframes sd-floating-slide-top{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes sd-floating-slide-bottom{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@keyframes sd-floating-slide-left{from{opacity:0;transform:translateX(4px)}to{opacity:1;transform:translateX(0)}}@keyframes sd-floating-slide-right{from{opacity:0;transform:translateX(-4px)}to{opacity:1;transform:translateX(0)}}`;
|
|
263
269
|
|
|
264
270
|
const SdFloatingPopover = class {
|
|
265
271
|
constructor(hostRef) {
|
|
@@ -439,7 +445,7 @@ const SdFloatingPopover = class {
|
|
|
439
445
|
}
|
|
440
446
|
}
|
|
441
447
|
render() {
|
|
442
|
-
return h("slot", { key: '
|
|
448
|
+
return h("slot", { key: '487d3c23320bd5f44492e3fb84e3cb357605de39' });
|
|
443
449
|
}
|
|
444
450
|
};
|
|
445
451
|
SdFloatingPopover.style = sdFloatingPortalCss();
|
|
@@ -615,7 +621,7 @@ const SdTooltip = class {
|
|
|
615
621
|
const bodyHTML = this.message && this.message.length > 0
|
|
616
622
|
? this.message.map(line => `<div>${line}</div>`).join('')
|
|
617
623
|
: this.slotContentHTML;
|
|
618
|
-
return (h(Fragment, { key: '
|
|
624
|
+
return (h(Fragment, { key: '682acd0035e35645b1ddcb5b9bfa796f135d26ce' }, h("div", { key: '63550c550389759026812d624bfb8fc152a61dfa', ref: el => (this.triggerEl = el), class: triggerClasses, ...divTrigger }, anchorMode ? (h("slot", { name: "anchor" })) : hasLabel ? (h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-tooltip", ...buttonClickTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (h("sd-floating-portal", { key: '84c71d8f766d79831e262810918085de1cb76a69', parentRef: anchorMode ? this.triggerEl : this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, h("div", { key: '622676ac69e0563623a7dfa6ebb9f8d0b8d7761d', ref: el => (this.menuEl = el), class: {
|
|
619
625
|
'sd-floating-menu': true,
|
|
620
626
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
621
627
|
[`sd-floating-menu--${placement}`]: true,
|
|
@@ -623,7 +629,7 @@ const SdTooltip = class {
|
|
|
623
629
|
}, style: {
|
|
624
630
|
'--sd-floating-bg': typeConfig.bg,
|
|
625
631
|
'--sd-floating-content': typeConfig.content,
|
|
626
|
-
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, h("i", { key: '
|
|
632
|
+
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, h("i", { key: 'e81b686f152e408e7affc9181e2a19cb0aece8cd', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: 'a91ee4a5c1b2564b63d061c32f5013be6f28b0d0' })), h("div", { key: '77671787b0ee0beb851c7a35a04f8df826b268a8', class: "sd-floating-menu__content", innerHTML: bodyHTML }), this.useClose && (h("sd-ghost-button", { key: '74e41984b8589dba31feb6f269c4ce7ed8fe3c6f', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xxs", onClick: () => this.closeTooltip() })))))));
|
|
627
633
|
}
|
|
628
634
|
};
|
|
629
635
|
SdTooltip.style = sdTooltipCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h } from './index-BZg-6aSz.js';
|
|
2
2
|
import { s as systemTokens } from './system-BJfiMC9H.js';
|
|
3
3
|
import { s as sanitizeInlineHtml } from './sanitize-inline-html-BE4tnQ2Z.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BZg-6aSz.js';
|
|
2
2
|
import { s as systemTokens } from './system-BJfiMC9H.js';
|
|
3
3
|
import { t as tableTokens } from './component.table-D9tQwTWy.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-BZg-6aSz.js';
|
|
2
2
|
import { p as progressTokens } from './component.progress-BG5nGnBi.js';
|
|
3
3
|
import { s as systemTokens } from './system-BJfiMC9H.js';
|
|
4
4
|
|
|
@@ -50,7 +50,7 @@ const SdLinearProgress = class {
|
|
|
50
50
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
51
51
|
};
|
|
52
52
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '8d19b1c846b14994eceb6381802b19fa92a241cb', style: hostStyle }, h("div", { key: '23d3e839b1e64a81ae86e994bf77a0e9bf53e870', class: "sd-linear-progress__track" }, h("div", { key: '92ea4d28c312e639ec038002beeea60ab39e42bb', class: "sd-linear-progress__fill", style: fillStyle }), !this.indeterminate && (h("span", { key: 'd65a8726f14302260d0fad1b3a16ba7e8588530f', class: "sd-linear-progress__value sd-linear-progress__value--on-track" }, valueText)), !this.indeterminate && (h("span", { key: '522efd6e3b6f6bbfcb8044113d2e2ae37da84dd6', class: "sd-linear-progress__value sd-linear-progress__value--on-fill", style: valueOnFillStyle }, valueText))), this.label && h("span", { key: '2933b26dc95c1962dc19829f9bf1d8e62d71b0c4', class: "sd-linear-progress__label" }, this.label)));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
SdLinearProgress.style = sdLinearProgressCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-BZg-6aSz.js';
|
|
2
2
|
|
|
3
3
|
const sdLoadingContainerCss = () => `sd-loading-container .sd-loading-container{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:var(--sd-loading-container-z-index, 999);opacity:0;visibility:hidden;transition:opacity 0.2s ease, visibility 0s linear 0.2s;pointer-events:none}sd-loading-container .sd-loading-container--visible{opacity:1;visibility:visible;transition:opacity 0.2s ease, visibility 0s linear 0s;pointer-events:auto}sd-loading-container .sd-loading-container__backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.4)}sd-loading-container .sd-loading-container__content{position:relative;display:flex;flex-direction:column;align-items:center;gap:16px}sd-loading-container .sd-loading-container__message{margin:0;color:#ffffff;font-size:14px;font-weight:500;line-height:22px;text-align:center;max-width:400px;word-break:keep-all}`;
|
|
4
4
|
|
|
@@ -8,20 +8,40 @@ const SdLoadingContainer = class {
|
|
|
8
8
|
}
|
|
9
9
|
visible = false;
|
|
10
10
|
message = '';
|
|
11
|
+
prevBodyOverflow = null;
|
|
11
12
|
/** 로딩 오버레이를 표시합니다. */
|
|
12
13
|
async show(options = {}) {
|
|
13
14
|
this.message = options.message ?? '';
|
|
14
15
|
this.visible = true;
|
|
16
|
+
this.lockScroll();
|
|
15
17
|
}
|
|
16
18
|
/** 로딩 오버레이를 숨깁니다. */
|
|
17
19
|
async hide() {
|
|
18
20
|
this.visible = false;
|
|
21
|
+
this.unlockScroll();
|
|
22
|
+
}
|
|
23
|
+
disconnectedCallback() {
|
|
24
|
+
this.unlockScroll();
|
|
25
|
+
}
|
|
26
|
+
/** 오버레이 표시 중 배경 스크롤을 차단합니다. */
|
|
27
|
+
lockScroll() {
|
|
28
|
+
if (this.prevBodyOverflow !== null)
|
|
29
|
+
return;
|
|
30
|
+
this.prevBodyOverflow = document.body.style.overflow;
|
|
31
|
+
document.body.style.overflow = 'hidden';
|
|
32
|
+
}
|
|
33
|
+
/** 배경 스크롤 차단을 해제합니다. */
|
|
34
|
+
unlockScroll() {
|
|
35
|
+
if (this.prevBodyOverflow === null)
|
|
36
|
+
return;
|
|
37
|
+
document.body.style.overflow = this.prevBodyOverflow;
|
|
38
|
+
this.prevBodyOverflow = null;
|
|
19
39
|
}
|
|
20
40
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: '7abf314b6518ab7e6ba0ef60236a8ca6846b0cf4', class: {
|
|
22
42
|
'sd-loading-container': true,
|
|
23
43
|
'sd-loading-container--visible': this.visible,
|
|
24
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
44
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '5c049ffd686654fb4c63bba829bcbe4968285a74', class: "sd-loading-container__backdrop" }), h("div", { key: '21c50b87eac65eedfe2ae475eda2c04a9b2f781d', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: '1dd29e83461be200d3d23037fc8965dbba675e77', indeterminate: true, type: "inverse" }), this.message && h("p", { key: 'deb08b4813d784cf47f43648e8187b22b143dfd5', class: "sd-loading-container__message" }, this.message))));
|
|
25
45
|
}
|
|
26
46
|
};
|
|
27
47
|
SdLoadingContainer.style = sdLoadingContainerCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h } from './index-BZg-6aSz.js';
|
|
2
2
|
import { u as unregisterModal, r as registerModal, s as setModalInteractive, i as isTopInteractiveModal, a as requestCloseForModal } from './modal-stack-DRVnqiWc.js';
|
|
3
3
|
|
|
4
4
|
const sdModalContainerCss = () => `sd-modal-container{display:block}sd-modal-container .sd-modal-container{position:fixed;inset:0;z-index:var(--sd-modal-container-z-index, 997);pointer-events:none}sd-modal-container .sd-modal-container__layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}sd-modal-container .sd-modal-container__backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.4);opacity:0;transition:opacity 0.3s ease-out;pointer-events:none}sd-modal-container .sd-modal-container__backdrop--visible{opacity:1;pointer-events:auto}sd-modal-container .sd-modal-container__modal{position:relative;z-index:1;opacity:0;transform:scale(0);pointer-events:auto;transition:opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)}sd-modal-container .sd-modal-container__modal--visible{opacity:1;transform:scale(1)}sd-modal-container .sd-modal-container__modal--shake{animation:modal-shake 0.3s ease-out}@keyframes modal-shake{0%,100%{transform:scale(1)}25%{transform:scale(1.03)}50%{transform:scale(0.97)}75%{transform:scale(1.01)}}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement, H as Host } from './index-BZg-6aSz.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
3
|
import { a as TABLE_SELECTABLE_COLUMN_WIDTH, r as resolveTableIconColor, e as resolveSortIconName, c as TABLE_BORDER, f as TABLE_HEADER_RESIZING_BAR, g as TABLE_HEADER_TYPOGRAPHY, h as TABLE_HEADER_COLORS, i as TABLE_HEADER_LAYOUT, T as TABLE_BODY_LAYOUT, j as TABLE_SEPARATOR, b as TABLE_BODY_TYPOGRAPHY } from './sd-table.config-BbIWNUE2.js';
|
|
4
4
|
import './component.table-D9tQwTWy.js';
|
|
@@ -32,6 +32,9 @@ const pagination = {
|
|
|
32
32
|
hover: "#004290",
|
|
33
33
|
selected: "#004290"
|
|
34
34
|
}
|
|
35
|
+
},
|
|
36
|
+
simple: {
|
|
37
|
+
gap: "8"
|
|
35
38
|
}
|
|
36
39
|
};
|
|
37
40
|
var paginationTokens = {
|
|
@@ -44,6 +47,7 @@ const PAGINATION_LAYOUT = {
|
|
|
44
47
|
radius: `${paginationTokens.pagination.radius}px`,
|
|
45
48
|
gap: `${paginationTokens.pagination.gap}px`,
|
|
46
49
|
moveGap: `${paginationTokens.pagination.move.gap}px`,
|
|
50
|
+
simpleGap: `${paginationTokens.pagination.simple.gap}px`,
|
|
47
51
|
iconSize: Number(paginationTokens.pagination.icon),
|
|
48
52
|
};
|
|
49
53
|
const PAGINATION_TYPOGRAPHY = {
|
|
@@ -63,7 +67,7 @@ const PAGINATION_COLORS = {
|
|
|
63
67
|
iconDefault: '#888888',
|
|
64
68
|
};
|
|
65
69
|
|
|
66
|
-
const sdPaginationCss = () => `sd-pagination{display:inline-flex}.sd-pagination{display:inline-flex;align-items:center;gap:var(--sd-pagination-gap);font-family:var(--sd-pagination-font-family)}.sd-pagination__group{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap);min-width:calc(var(--sd-pagination-height) * 2 + var(--sd-pagination-move-gap))}.sd-pagination__group--prev{justify-content:flex-end}.sd-pagination__group--next{justify-content:flex-start}.sd-pagination__numbers{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap)}.sd-pagination__nav{display:inline-flex;align-items:center;justify-content:center;width:var(--sd-pagination-height);height:var(--sd-pagination-height);padding:0;background:transparent;border:0;border-radius:var(--sd-pagination-radius);cursor:pointer;outline:none}.sd-pagination__nav:hover{background-color:var(--sd-pagination-bg-hover)}.sd-pagination__item{display:inline-flex;align-items:center;justify-content:center;width:var(--sd-pagination-item-width);height:var(--sd-pagination-height);padding:0 var(--sd-pagination-padding-x);background:transparent;border:0;border-radius:var(--sd-pagination-radius);color:var(--sd-pagination-content);font-size:var(--sd-pagination-font-size);font-weight:var(--sd-pagination-font-weight-default);line-height:var(--sd-pagination-line-height);cursor:pointer;outline:none;box-sizing:border-box}.sd-pagination__item:hover{background-color:var(--sd-pagination-bg-hover);color:var(--sd-pagination-content-hover)}.sd-pagination__item--selected{background-color:var(--sd-pagination-bg-selected);color:var(--sd-pagination-content-selected);font-weight:var(--sd-pagination-font-weight-selected)}.sd-pagination__item--selected:hover{background-color:var(--sd-pagination-bg-selected);color:var(--sd-pagination-content-selected)}.sd-pagination__info{display:inline-flex;align-items:center;gap:var(--sd-pagination-
|
|
70
|
+
const sdPaginationCss = () => `sd-pagination{display:inline-flex}.sd-pagination{display:inline-flex;align-items:center;gap:var(--sd-pagination-gap);font-family:var(--sd-pagination-font-family)}.sd-pagination__group{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap);min-width:calc(var(--sd-pagination-height) * 2 + var(--sd-pagination-move-gap))}.sd-pagination__group--prev{justify-content:flex-end}.sd-pagination__group--next{justify-content:flex-start}.sd-pagination__numbers{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap)}.sd-pagination__nav{display:inline-flex;align-items:center;justify-content:center;width:var(--sd-pagination-height);height:var(--sd-pagination-height);padding:0;background:transparent;border:0;border-radius:var(--sd-pagination-radius);cursor:pointer;outline:none}.sd-pagination__nav:hover{background-color:var(--sd-pagination-bg-hover)}.sd-pagination__item{display:inline-flex;align-items:center;justify-content:center;width:var(--sd-pagination-item-width);height:var(--sd-pagination-height);padding:0 var(--sd-pagination-padding-x);background:transparent;border:0;border-radius:var(--sd-pagination-radius);color:var(--sd-pagination-content);font-size:var(--sd-pagination-font-size);font-weight:var(--sd-pagination-font-weight-default);line-height:var(--sd-pagination-line-height);cursor:pointer;outline:none;box-sizing:border-box}.sd-pagination__item:hover{background-color:var(--sd-pagination-bg-hover);color:var(--sd-pagination-content-hover)}.sd-pagination__item--selected{background-color:var(--sd-pagination-bg-selected);color:var(--sd-pagination-content-selected);font-weight:var(--sd-pagination-font-weight-selected)}.sd-pagination__item--selected:hover{background-color:var(--sd-pagination-bg-selected);color:var(--sd-pagination-content-selected)}.sd-pagination__info{display:inline-flex;align-items:center;gap:var(--sd-pagination-simple-gap);height:var(--sd-pagination-height);padding:0 var(--sd-pagination-padding-x);color:var(--sd-pagination-content);font-size:var(--sd-pagination-font-size);font-weight:var(--sd-pagination-font-weight-default);line-height:var(--sd-pagination-line-height)}.sd-pagination__current{color:var(--sd-pagination-content-selected);font-weight:var(--sd-pagination-font-weight-selected)}`;
|
|
67
71
|
|
|
68
72
|
const PER_PAGE = 10;
|
|
69
73
|
const BUTTON_WIDTH = {
|
|
@@ -144,6 +148,7 @@ const SdPagination = class {
|
|
|
144
148
|
'--sd-pagination-radius': PAGINATION_LAYOUT.radius,
|
|
145
149
|
'--sd-pagination-gap': PAGINATION_LAYOUT.gap,
|
|
146
150
|
'--sd-pagination-move-gap': PAGINATION_LAYOUT.moveGap,
|
|
151
|
+
'--sd-pagination-simple-gap': PAGINATION_LAYOUT.simpleGap,
|
|
147
152
|
'--sd-pagination-font-family': PAGINATION_TYPOGRAPHY.fontFamily,
|
|
148
153
|
'--sd-pagination-font-size': PAGINATION_TYPOGRAPHY.fontSize,
|
|
149
154
|
'--sd-pagination-line-height': PAGINATION_TYPOGRAPHY.lineHeight,
|
|
@@ -156,13 +161,13 @@ const SdPagination = class {
|
|
|
156
161
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
157
162
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
158
163
|
};
|
|
159
|
-
return (h("div", { key: '
|
|
164
|
+
return (h("div", { key: '2e5fdcc2d6a426be32128960131db2ed51674939', class: {
|
|
160
165
|
'sd-pagination': true,
|
|
161
166
|
'sd-pagination--simple': this.simple,
|
|
162
|
-
}, style: cssVars }, h("div", { key: '
|
|
167
|
+
}, style: cssVars }, h("div", { key: 'a83ee12c1af9ca41e3a5773fcd840200fcb873e2', 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: {
|
|
163
168
|
'sd-pagination__item': true,
|
|
164
169
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
165
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
170
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '3c98ea6c1bf5bea43baaa73a2a7db5c4fe1404e5', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
166
171
|
}
|
|
167
172
|
};
|
|
168
173
|
SdPagination.style = sdPaginationCss();
|
|
@@ -218,9 +223,9 @@ const SdTbody = class {
|
|
|
218
223
|
}
|
|
219
224
|
}
|
|
220
225
|
render() {
|
|
221
|
-
return (h(Host, { key: '
|
|
226
|
+
return (h(Host, { key: '6d4bea755b962e2f5b9f37129d0b03fd7f997e93', slot: `${this.tableId}-body` }, h("tbody", { key: '11543f7ea385458bcb57ae4e62bfd258bacb9e01', class: { tbody: true } }, [
|
|
222
227
|
this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
223
|
-
h("slot", { key: '
|
|
228
|
+
h("slot", { key: '515aa270f49dfd20f78de1d11c3c5b914cfda792' }),
|
|
224
229
|
this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
225
230
|
])));
|
|
226
231
|
}
|
|
@@ -478,16 +483,16 @@ const SdThead = class {
|
|
|
478
483
|
'--table-border-color': TABLE_BORDER.color,
|
|
479
484
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
480
485
|
};
|
|
481
|
-
return (h(Host, { key: '
|
|
486
|
+
return (h(Host, { key: 'ec85c86aa6d93e5a2405262809bf790fbb12ee79', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '8afbdf4d81ebb649e262baa6da8ce3a1eca31e15', class: {
|
|
482
487
|
'thead': true,
|
|
483
488
|
'thead--sticky': this._stickyHeader,
|
|
484
|
-
} }, h("tr", { key: '
|
|
489
|
+
} }, h("tr", { key: '9643f19e95aa00f5bb5d6462ecb0da4ca95c3dcc', class: "tr" }, this._selectable && (h("th", { key: '6d87ceb557e61454eaf0acf492234788bfd99235', class: {
|
|
485
490
|
'th': true,
|
|
486
491
|
'th--selected': true,
|
|
487
492
|
'sticky-left': true,
|
|
488
493
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
489
494
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
490
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
495
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'c2dc4e112510bb9ab13109fd966cd0485588835a', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), h("div", { key: '478a665c0d06efc829e4f2818be4be1b43e44708', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
|
|
491
496
|
'th': true,
|
|
492
497
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
493
498
|
'sticky-left': true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h, F as Fragment } from './index-
|
|
2
|
-
import { T as TooltipArrow } from './tooltipArrow-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h, F as Fragment } from './index-BZg-6aSz.js';
|
|
2
|
+
import { T as TooltipArrow } from './tooltipArrow-BAi-pktU.js';
|
|
3
3
|
|
|
4
4
|
const popover = {
|
|
5
5
|
"default": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BZg-6aSz.js';
|
|
2
2
|
import { o as overlayTokens } from './component.overlay-De0OtxK5.js';
|
|
3
3
|
import { s as systemTokens } from './system-BJfiMC9H.js';
|
|
4
4
|
|
|
@@ -102,7 +102,7 @@ const SdPopup = class {
|
|
|
102
102
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
103
103
|
...this.submitButtonProps,
|
|
104
104
|
};
|
|
105
|
-
return (h("div", { key: '
|
|
105
|
+
return (h("div", { key: 'cc0381250b37b498e93fd7f8d932ad95ff802bcc', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: '07b4378a9c8d292f73e0a6307ec2b6335087cc9f', class: "sd-popup__header" }, h("h2", { key: 'a17318a803d2d825e0a85f43ff436944424bb213', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'f2147c40fbd425565f6e61e62e2da2d97eacb27a', class: "sd-popup__body" }, h("slot", { key: '5600679290a775e53e838fd5ea2d9cfc1008130f' })), this.useFooter && (h("footer", { key: '2bfa07724438b8afa03a0654359ab760498ef7dc', class: "sd-popup__footer" }, h("div", { key: 'd70c88b18b23bd8d1b3f6d4899d65b25e378b9aa', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '42d7108b390bf460398dcbc128a837784ba5c544', name: "footer-left" })), h("sd-button", { key: '0525a19c52caef0dcaf0eb2783391132d53d18db', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
SdPopup.style = sdPopupCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BZg-6aSz.js';
|
|
2
2
|
import { g as LIST_ITEM_LAYOUT, i as isHtmlLabel, h as LIST_ITEM_TYPOGRAPHY, j as LIST_ITEM_COLORS, k as SEARCH_DEBOUNCE_MS } from './sd-select.config-D6ktrl7E.js';
|
|
3
3
|
import { s as sanitizeInlineHtml } from './sanitize-inline-html-BE4tnQ2Z.js';
|
|
4
4
|
import './component.listItem-U8VaRj9c.js';
|
|
@@ -86,7 +86,7 @@ const SdSelectListItem = class {
|
|
|
86
86
|
return (
|
|
87
87
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
88
88
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
89
|
-
h("div", { key: '
|
|
89
|
+
h("div", { key: 'dd2c4cbd210ed70c00a954a9c6da6923ea76c91e', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
90
90
|
'sd-select-list-item': true,
|
|
91
91
|
'sd-select-list-item--group': isGroup,
|
|
92
92
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -96,7 +96,7 @@ const SdSelectListItem = class {
|
|
|
96
96
|
'sd-select-list-item--focused': this.isFocused,
|
|
97
97
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
98
98
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
99
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
99
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '18fb5ec3ccd00aa34c974975324bb214aa4d38f8', 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: '70ee48fdece9e38db3bf9450a5d82ad6db4ec985', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -153,15 +153,15 @@ const SdSelectListItemSearch = class {
|
|
|
153
153
|
clearTimeout(this.debounceTimer);
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return (h("div", { key: '
|
|
156
|
+
return (h("div", { key: '951bb1f2507918c057bb88bd8254a8b4bc4b6018', class: {
|
|
157
157
|
'sd-select-list-item-search': true,
|
|
158
158
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
159
|
-
} }, h("div", { key: '
|
|
159
|
+
} }, h("div", { key: '32164db917f4ccadb301c00e77d8296d0ef59e7d', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '9493497b5b8b7274c31bac9e865a1949c0cd4493', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: '3917e46b5e6ad55ab7481655fe31d7a3b29632f6', ref: el => {
|
|
160
160
|
this.inputEl = el;
|
|
161
|
-
}, 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: '
|
|
161
|
+
}, 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: '93c11a138545e9480aae3dd0ed961fe613fc1b14', type: "button", class: {
|
|
162
162
|
'sd-select-list-item-search__clear': true,
|
|
163
163
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
164
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
164
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: 'dead91d16ab3af88a4a94ee061b9ca1c1336f2f7', name: "close", size: 12, color: "#888888" })))));
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-BZg-6aSz.js';
|
|
2
2
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
3
|
import { c as countLeaves, S as SEARCH_THRESHOLD, f as filterTree, i as isHtmlLabel, e as extractText, E as EMPTY_MESSAGE, L as LIST_BOX_LAYOUT, a as SELECT_COLORS, b as SELECT_TYPOGRAPHY, d as SELECT_LAYOUT } from './sd-select.config-D6ktrl7E.js';
|
|
4
4
|
import { s as sanitizeInlineHtml } from './sanitize-inline-html-BE4tnQ2Z.js';
|
|
@@ -294,15 +294,15 @@ const SdSelect = class {
|
|
|
294
294
|
this.closeDropdown();
|
|
295
295
|
},
|
|
296
296
|
};
|
|
297
|
-
return (h("sd-field", { key: '
|
|
297
|
+
return (h("sd-field", { key: '426e5777a976da591726108e8a19c27822151c34', 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: () => {
|
|
298
298
|
this.hovered = true;
|
|
299
299
|
}, onMouseLeave: () => {
|
|
300
300
|
this.hovered = false;
|
|
301
|
-
} }, h("div", { key: '
|
|
301
|
+
} }, h("div", { key: '2e47d100a63bd6445f452701409cf05efabb30e0', class: "sd-select", ref: el => {
|
|
302
302
|
this.triggerRef = el;
|
|
303
|
-
} }, h("sd-select-trigger", { key: '
|
|
303
|
+
} }, h("sd-select-trigger", { key: '65763371f56bae558f927189931b567e5ca73df6', ref: el => {
|
|
304
304
|
this.triggerComponentRef = el;
|
|
305
|
-
}, 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: '
|
|
305
|
+
}, 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: '98518c875649c8e38c15565d9bfccf9c0b0eeb9a', ...portalProps }, h("sd-select-listbox", { key: 'be8e2c814bd30a57ee20b0a0b378f3809ffef26a', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.dropdownWidth || this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
306
306
|
}
|
|
307
307
|
static get watchers() { return {
|
|
308
308
|
"isOpen": [{
|
|
@@ -679,9 +679,9 @@ const SdSelectListbox = class {
|
|
|
679
679
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
680
680
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
681
681
|
};
|
|
682
|
-
return (h("div", { key: '
|
|
682
|
+
return (h("div", { key: '0e322ab6384a37b9ea83883e8012799f157ec833', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: '12d35a6ab654d4ce0cf504c0d1b1b6e4cc7eac78', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: 'ba99682e9c486fe0efa02a888166a06a600c189e', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
683
683
|
this.listEl = el;
|
|
684
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
684
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: '8f66c32cc3f8287d04ad7081e71903ccb4467b4f', 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) })))))));
|
|
685
685
|
}
|
|
686
686
|
static get watchers() { return {
|
|
687
687
|
"searchKeyword": [{
|
|
@@ -749,7 +749,7 @@ const SdSelectTrigger = class {
|
|
|
749
749
|
? SELECT_COLORS.icon.disabled
|
|
750
750
|
: SELECT_COLORS.icon.default,
|
|
751
751
|
};
|
|
752
|
-
return (h("div", { key: '
|
|
752
|
+
return (h("div", { key: 'a261a38ab844572d693bdb736e8c6c5df8b2b0c6', ref: el => {
|
|
753
753
|
this.triggerEl = el;
|
|
754
754
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
755
755
|
'sd-select-trigger': true,
|
|
@@ -760,7 +760,7 @@ const SdSelectTrigger = class {
|
|
|
760
760
|
e.preventDefault();
|
|
761
761
|
this.handleClick();
|
|
762
762
|
}
|
|
763
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
763
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'c8255f624c101fa984d7dc081231f0ce957f8707', 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: 'bf2145a098a31eba8a5210eb265fb252b84c9e0b', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
764
764
|
'sd-select-trigger__icon': true,
|
|
765
765
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
766
766
|
} }))));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BZg-6aSz.js';
|
|
2
2
|
|
|
3
3
|
var switchTokens = {
|
|
4
4
|
"switch": {
|
|
@@ -107,7 +107,7 @@ const SdSwitch = class {
|
|
|
107
107
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
108
108
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
109
109
|
};
|
|
110
|
-
return (h("label", { key: '
|
|
110
|
+
return (h("label", { key: 'dded99ece17ee7308da9c7183a725493f705caf2', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: '8ca9b17fbbd97cdfe351f06fa5dba7efb22faf39', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: 'dffb2503df8755076218fc24ce974ed5cccb37c3', class: "sd-switch__track" }, h("div", { key: '52b8d7b125bf3a2fdddbcfe4690933432cb0ff29', class: "sd-switch__knob" })), this.label && h("span", { key: 'e4e62e02aa1d7336bf1de5add45ed0b2dbecbcd1', class: "sd-switch__label" }, this.label)));
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-BZg-6aSz.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
3
|
import { T as TABLE_BODY_LAYOUT, a as TABLE_SELECTABLE_COLUMN_WIDTH, b as TABLE_BODY_TYPOGRAPHY, c as TABLE_BORDER, d as TABLE_RADIUS } from './sd-table.config-BbIWNUE2.js';
|
|
4
4
|
import './component.table-D9tQwTWy.js';
|
|
@@ -878,25 +878,25 @@ const SdTable = class {
|
|
|
878
878
|
'--table-selectable-width': `${TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
879
879
|
'--table-host-height': hostHeight,
|
|
880
880
|
};
|
|
881
|
-
return (h(Host, { key: '
|
|
881
|
+
return (h(Host, { key: 'b90b9865f78c2b42c3c13ad27ed968dd97827eb6', style: hostStyle }, h("div", { key: '2eb291b03b219a3abb4da5967c6d0f43195b458e', class: "sd-table__container", style: {
|
|
882
882
|
'--table-width': this.width,
|
|
883
883
|
'--pagination-height': `${paginationHeight}px`,
|
|
884
|
-
} }, h("div", { key: '
|
|
884
|
+
} }, h("div", { key: '999feaffbf82db9233416a1d66974e8859b9b3a0', class: {
|
|
885
885
|
'sd-table__wrapper': true,
|
|
886
886
|
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
887
887
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
888
|
-
} }, h("div", { key: '
|
|
888
|
+
} }, h("div", { key: 'ff0a04325ab9fe1ba5e6b25f52bb8265226fbba4', class: {
|
|
889
889
|
'sd-table__scroll-container': true,
|
|
890
890
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
891
891
|
'sd-table__scroll-container--no-data': isNoData,
|
|
892
|
-
} }, this.isLoading && (h("div", { key: '
|
|
892
|
+
} }, this.isLoading && (h("div", { key: '1a4dbf4a721240b3395230997c18c8ef989bbffc', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '793a6772ef4c792e7f50c2ad90d43bdfbdde11a0', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: '13b76f695edddfa3d4a13bcb1091f95cafb1ae17', class: "sd-table__no-data-header-overlay" }), h("div", { key: 'f271bfa20d06cba0cc6c5fe6b5af5c874c1e0682', class: "sd-table__no-data" }, h("div", { key: '6791f70e0b4cd1226bdcc16414249ad178b70396', class: "sd-table__no-data-content", ref: el => {
|
|
893
893
|
this.noDataContentEl = el;
|
|
894
894
|
if (el)
|
|
895
895
|
this.syncNoDataContentObserver();
|
|
896
|
-
} }, h("slot", { key: '
|
|
896
|
+
} }, h("slot", { key: '9cba0ff5c5ea3b4c78ccdb961de9cfe3ef2ac1e9', name: "no-data" }, h("span", { key: '1022372f37f1564b0d636c888a17cb5ab5ac2e35' }, this.resolvedNoDataLabel)))))), h("table", { key: 'e3d8c7dec8b3c76896b3063266dd5450bbfa7c13', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
897
897
|
this.pagination.rowsPerPage > 0 &&
|
|
898
898
|
this.rowCount > 0 &&
|
|
899
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
899
|
+
!this.useVirtualScroll && (h("div", { key: '5410b53a9182f97406a0992464bc3435eb8439b1', class: "sd-table__pagination" }, h("sd-pagination", { key: 'aa237fe475797dd626856f5335395bdfa870f6db', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: 'd2b98c053c6d63f0bbea73d66779dfa5c1828b5a', value: this.useInternalPagination
|
|
900
900
|
? this.innerRowsPerPage
|
|
901
901
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
902
902
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BZg-6aSz.js';
|
|
2
2
|
|
|
3
3
|
const tab = {
|
|
4
4
|
main: {
|
|
@@ -205,7 +205,7 @@ const SdTabs = class {
|
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
render() {
|
|
208
|
-
return (h("div", { key: '
|
|
208
|
+
return (h("div", { key: 'd5df329922f73444775ec827ce8cf3850c369131', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
209
209
|
const badgeName = this.getBadgeName(tab);
|
|
210
210
|
return (h("div", { key: `tab-${index}`, 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 => {
|
|
211
211
|
if (e.key === 'Enter' || e.key === ' ') {
|