@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
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const tab = {
|
|
6
6
|
main: {
|
|
@@ -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: 'd5df329922f73444775ec827ce8cf3850c369131', 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 === ' ') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
|
|
6
6
|
const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
|
|
@@ -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: '2fce45ffda30fd75a0c0ef2ff0de5896c409c108', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '3e2131547d544d01c745017f3375a26df35a9d6e' })));
|
|
171
171
|
}
|
|
172
172
|
static get watchers() { return {
|
|
173
173
|
"field": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_DURATION = 4000;
|
|
6
6
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -161,9 +161,9 @@ const SdToastContainer = class {
|
|
|
161
161
|
'top-left': { top: '20px', left: '20px' },
|
|
162
162
|
'top-center': { top: '20px', left: '50%', transform: 'translateX(-50%)' },
|
|
163
163
|
'top-right': { top: '20px', right: '20px' },
|
|
164
|
-
'bottom-left': { bottom: '
|
|
165
|
-
'bottom-center': { bottom: '
|
|
166
|
-
'bottom-right': { bottom: '
|
|
164
|
+
'bottom-left': { bottom: '100px', left: '20px' },
|
|
165
|
+
'bottom-center': { bottom: '100px', left: '50%', transform: 'translateX(-50%)' },
|
|
166
|
+
'bottom-right': { bottom: '100px', right: '20px' },
|
|
167
167
|
};
|
|
168
168
|
return { ...base, ...posMap[position] };
|
|
169
169
|
}
|
|
@@ -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: '17526924c57e06a77725f66233f5b5360097fac0', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
247
247
|
this.expanded = true;
|
|
248
248
|
this.pauseTimers();
|
|
249
249
|
}, onMouseLeave: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const toast = {
|
|
6
6
|
icon: "16",
|
|
@@ -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: '124b32e52e9dfd7a09ac67ffb8032bf2217e9c05', 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: '54eddcc1fe8a0eab427a084e589c0f9a2e0412bf', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '0ff05c4e7cb8dda2f2732cd09bfc586cb21020b6', class: "sd-toast__icon" }, index.h("sd-icon", { key: '41e1e259ef605454ee680bbd3228c418f013283e', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '7db4e1bc0ce80bd1887476ac728a7999cb4fee93', class: "sd-toast__content" }, index.h("span", { key: '88925dfa075a5da813466a74a0f5fa4cb61e3bc9', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '068aaf887a6fe8c18f7db6e513778d862e09bd56', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: 'fb066d2cfaad7668aec48caafc6eb6d6e19ebaee', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: 'e610479efe5034a222aa98d19232682243214ee0', 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();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const toggle = {
|
|
6
6
|
height: "28",
|
|
@@ -123,7 +123,7 @@ const SdToggle = class {
|
|
|
123
123
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
124
124
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
125
125
|
};
|
|
126
|
-
return (index.h("label", { key: '
|
|
126
|
+
return (index.h("label", { key: '2b988ca6148da376d9af21538b03764423cb3a0a', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: 'b1bd161b88a627ba296197902d46181925511c70', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
129
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DsYLSqCp.js');
|
|
4
4
|
|
|
5
5
|
const TooltipArrow = (props) => (index.h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, index.h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
6
6
|
|
|
@@ -54,8 +54,8 @@ export const DROPDOWN_CHEVRON_ICON_SIZE = {
|
|
|
54
54
|
// 버튼 자체의 min-width (px). split 여부에 따라 chevron 버튼이 추가되므로 별도 값을 지정.
|
|
55
55
|
// TODO: 디자인 토큰으로 관리될 때 대체 예정
|
|
56
56
|
export const DROPDOWN_BUTTON_MIN_WIDTH = {
|
|
57
|
-
xs: { default:
|
|
58
|
-
sm: { default:
|
|
57
|
+
xs: { default: 64, split: 72 },
|
|
58
|
+
sm: { default: 72, split: 88 },
|
|
59
59
|
md: { default: 100, split: 106 },
|
|
60
60
|
};
|
|
61
61
|
export const DROPDOWN_DISABLED_BACKGROUND = buttonTokens.button.bg.disabled;
|
|
@@ -112,6 +112,11 @@ sd-field .sd-field.sd-field--focus:not(.sd-field--readonly) .sd-field__wrapper .
|
|
|
112
112
|
border: 1px solid var(--sd-system-color-field-border-focus) !important;
|
|
113
113
|
box-shadow: 0px 0px 4px 0px rgba(0, 113, 255, 0.4);
|
|
114
114
|
}
|
|
115
|
+
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 {
|
|
116
|
+
border-color: transparent !important;
|
|
117
|
+
background: transparent !important;
|
|
118
|
+
box-shadow: none !important;
|
|
119
|
+
}
|
|
115
120
|
sd-field .sd-field .sd-field__error-message {
|
|
116
121
|
color: var(--sd-field-error-message-color);
|
|
117
122
|
font-size: var(--sd-field-error-message-font-size);
|
|
@@ -38,6 +38,11 @@ export class SdField {
|
|
|
38
38
|
width = '';
|
|
39
39
|
/** 필드 크기 */
|
|
40
40
|
size = 'sm';
|
|
41
|
+
/**
|
|
42
|
+
* 테두리 박스 제거 (inline 컨트롤용) — border/배경/hover·focus 강조만 사라지고
|
|
43
|
+
* label·hint·errorMessage 등 나머지 필드 구성은 그대로 동작한다.
|
|
44
|
+
*/
|
|
45
|
+
borderless = false;
|
|
41
46
|
// props - label
|
|
42
47
|
/** 레이블 텍스트 */
|
|
43
48
|
label = '';
|
|
@@ -205,18 +210,19 @@ export class SdField {
|
|
|
205
210
|
: {}),
|
|
206
211
|
}
|
|
207
212
|
: {};
|
|
208
|
-
return (h("div", { key: '
|
|
213
|
+
return (h("div", { key: 'bce0bc8ccc19e41c2a61980bd12f07d7f8838569', class: {
|
|
209
214
|
'sd-field': true,
|
|
210
215
|
'sd-field--has-label': this.label !== '',
|
|
211
216
|
'sd-field--has-addon': addon !== '',
|
|
217
|
+
'sd-field--borderless': this.borderless,
|
|
212
218
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
213
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '
|
|
219
|
+
}, 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: {
|
|
214
220
|
'sd-field__control': true,
|
|
215
221
|
'sd-field__control--has-addon': addon !== '',
|
|
216
222
|
}, style: this.width !== '' && this.width !== 0
|
|
217
223
|
? { width: typeof this.width === 'number' ? `${this.width}px` : this.width }
|
|
218
|
-
: {} }, addon && (h("div", { key: '
|
|
219
|
-
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: '
|
|
224
|
+
: {} }, addon && (h("div", { key: '510238ac22b7e923724cc20abf2541adbddcb594', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: '2cca5b62cbe56050acd536764c33cbc3009f740b', name: this.icon.name, size: this.icon.size ??
|
|
225
|
+
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))))));
|
|
220
226
|
}
|
|
221
227
|
renderLabel(label) {
|
|
222
228
|
if (label == null || label === '')
|
|
@@ -488,6 +494,26 @@ export class SdField {
|
|
|
488
494
|
"attribute": "size",
|
|
489
495
|
"defaultValue": "'sm'"
|
|
490
496
|
},
|
|
497
|
+
"borderless": {
|
|
498
|
+
"type": "boolean",
|
|
499
|
+
"mutable": false,
|
|
500
|
+
"complexType": {
|
|
501
|
+
"original": "boolean",
|
|
502
|
+
"resolved": "boolean",
|
|
503
|
+
"references": {}
|
|
504
|
+
},
|
|
505
|
+
"required": false,
|
|
506
|
+
"optional": false,
|
|
507
|
+
"docs": {
|
|
508
|
+
"tags": [],
|
|
509
|
+
"text": "\uD14C\uB450\uB9AC \uBC15\uC2A4 \uC81C\uAC70 (inline \uCEE8\uD2B8\uB864\uC6A9) \u2014 border/\uBC30\uACBD/hover\u00B7focus \uAC15\uC870\uB9CC \uC0AC\uB77C\uC9C0\uACE0\nlabel\u00B7hint\u00B7errorMessage \uB4F1 \uB098\uBA38\uC9C0 \uD544\uB4DC \uAD6C\uC131\uC740 \uADF8\uB300\uB85C \uB3D9\uC791\uD55C\uB2E4."
|
|
510
|
+
},
|
|
511
|
+
"getter": false,
|
|
512
|
+
"setter": false,
|
|
513
|
+
"reflect": false,
|
|
514
|
+
"attribute": "borderless",
|
|
515
|
+
"defaultValue": "false"
|
|
516
|
+
},
|
|
491
517
|
"label": {
|
|
492
518
|
"type": "string",
|
|
493
519
|
"mutable": false,
|
|
@@ -12,7 +12,7 @@ sd-file-picker {
|
|
|
12
12
|
|
|
13
13
|
.sd-file-picker__chip-list {
|
|
14
14
|
display: flex;
|
|
15
|
-
flex-
|
|
15
|
+
flex-flow: row wrap;
|
|
16
16
|
gap: 8px;
|
|
17
17
|
margin-top: 8px;
|
|
18
18
|
}
|
|
@@ -90,15 +90,12 @@ sd-file-picker {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.sd-file-picker--inline .sd-file-picker__content {
|
|
93
|
-
border: none;
|
|
94
|
-
background-color: transparent;
|
|
95
93
|
padding: 0;
|
|
96
|
-
height: auto;
|
|
97
94
|
}
|
|
98
95
|
.sd-file-picker--inline .sd-file-picker__text {
|
|
99
96
|
color: var(--sd-file-picker-placeholder-color);
|
|
100
97
|
}
|
|
101
|
-
.sd-file-picker--inline:
|
|
98
|
+
.sd-file-picker--inline:not(.sd-file-picker--inline-disabled) .sd-file-picker__content:hover .sd-file-picker__text {
|
|
102
99
|
color: var(--sd-file-picker-text-color);
|
|
103
100
|
}
|
|
104
101
|
.sd-file-picker--inline .sd-file-picker__text--active {
|
|
@@ -9,7 +9,7 @@ export class SdFilePicker {
|
|
|
9
9
|
placeholder = 'Click to upload';
|
|
10
10
|
/** 비활성 상태 여부 */
|
|
11
11
|
disabled = false;
|
|
12
|
-
/** sd-field
|
|
12
|
+
/** 인라인 표시 — sd-field 테두리 박스만 사라지고 label/rules/hint 는 그대로 동작 */
|
|
13
13
|
inline = false;
|
|
14
14
|
/** 다중 파일 선택 여부 */
|
|
15
15
|
multiple = false;
|
|
@@ -170,14 +170,10 @@ export class SdFilePicker {
|
|
|
170
170
|
this.fileInputRef?.click();
|
|
171
171
|
};
|
|
172
172
|
hasFiles() {
|
|
173
|
-
if (this.multiple)
|
|
174
|
-
return false;
|
|
175
|
-
if (!this.internalValue)
|
|
176
|
-
return false;
|
|
177
173
|
if (Array.isArray(this.internalValue)) {
|
|
178
174
|
return this.internalValue.length > 0;
|
|
179
175
|
}
|
|
180
|
-
return
|
|
176
|
+
return !!this.internalValue;
|
|
181
177
|
}
|
|
182
178
|
hasChips() {
|
|
183
179
|
return Array.isArray(this.internalValue) && this.internalValue.length > 0;
|
|
@@ -185,6 +181,9 @@ export class SdFilePicker {
|
|
|
185
181
|
getDisplayText() {
|
|
186
182
|
if (!this.hasFiles())
|
|
187
183
|
return this.placeholder ?? 'Click to upload';
|
|
184
|
+
if (this.multiple && Array.isArray(this.internalValue)) {
|
|
185
|
+
return this.internalValue.map(f => f.name).join(', ');
|
|
186
|
+
}
|
|
188
187
|
return this.internalValue?.name || (this.placeholder ?? 'Click to upload');
|
|
189
188
|
}
|
|
190
189
|
handleChipRemove = (index) => {
|
|
@@ -226,23 +225,21 @@ export class SdFilePicker {
|
|
|
226
225
|
'--sd-system-size-field-sm-height': `${FILE_PICKER_LAYOUT.height}px`,
|
|
227
226
|
'--sd-system-radius-field-sm': `${FILE_PICKER_LAYOUT.radius}px`,
|
|
228
227
|
};
|
|
229
|
-
const content = (h("div", { role: "button", tabindex: this.disabled ? -1 : 0, class: "sd-file-picker__content", onClick: this.handleClick, onKeyDown: e => {
|
|
228
|
+
const content = (h("div", { key: 'f686c8d06b3dbecc037e21f41e7f307d08349e8b', role: "button", tabindex: this.disabled ? -1 : 0, class: "sd-file-picker__content", onClick: this.handleClick, onKeyDown: e => {
|
|
230
229
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
231
230
|
e.preventDefault();
|
|
232
231
|
this.handleClick();
|
|
233
232
|
}
|
|
234
|
-
} }, h("input", { ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder ?? 'Click to upload' }), h("sd-icon", { name: "attachFile", size: Number(FILE_PICKER_LAYOUT.iconSize), color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { ref: el => (this.fileNamesRef = el), class: {
|
|
233
|
+
} }, h("input", { key: 'a519e5a7c253d9d9bba21401b2f83092aa8a3a91', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder ?? 'Click to upload' }), h("sd-icon", { key: 'b9e7548365f1d54957b6e575d3532a833e301a98', name: "attachFile", size: Number(FILE_PICKER_LAYOUT.iconSize), color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: 'cb28d1c3abf0e9c30454f01bb8c81cb0ea4477af', ref: el => (this.fileNamesRef = el), class: {
|
|
235
234
|
'sd-file-picker__text': true,
|
|
236
235
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
237
236
|
'sd-file-picker__text--active': hasFiles,
|
|
238
|
-
} }, displayText), !this.disabled && hasFiles && (h("sd-ghost-button", { icon: "close", size: "xxs", ariaLabel: "clear", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { class: "sd-file-picker__tooltip" }, displayText))));
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
return (h("div", { class: "sd-file-picker__wrapper", style: cssVars }, h("sd-field", { 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content), this.renderChipList()));
|
|
237
|
+
} }, displayText), !this.disabled && hasFiles && (h("sd-ghost-button", { key: 'c97d7c306ef2087a9874a16b6e485a94c7cc571f', icon: "close", size: "xxs", ariaLabel: "clear", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { key: '293a4c75766be383a4ad6f79052111c09608e0e2', class: "sd-file-picker__tooltip" }, displayText))));
|
|
238
|
+
return (h("div", { key: '4e25add1b74a232e8786efca26f87ccb5d48f19d', class: {
|
|
239
|
+
'sd-file-picker__wrapper': true,
|
|
240
|
+
'sd-file-picker--inline': this.inline,
|
|
241
|
+
'sd-file-picker--inline-disabled': this.inline && this.disabled,
|
|
242
|
+
}, style: cssVars }, h("sd-field", { key: 'fda8f53237f5efb4f1dec906d87851dd10c03593', borderless: this.inline, 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content), this.renderChipList()));
|
|
246
243
|
}
|
|
247
244
|
static get is() { return "sd-file-picker"; }
|
|
248
245
|
static get originalStyleUrls() {
|
|
@@ -332,7 +329,7 @@ export class SdFilePicker {
|
|
|
332
329
|
"optional": false,
|
|
333
330
|
"docs": {
|
|
334
331
|
"tags": [],
|
|
335
|
-
"text": "sd-field \
|
|
332
|
+
"text": "\uC778\uB77C\uC778 \uD45C\uC2DC \u2014 sd-field \uD14C\uB450\uB9AC \uBC15\uC2A4\uB9CC \uC0AC\uB77C\uC9C0\uACE0 label/rules/hint \uB294 \uADF8\uB300\uB85C \uB3D9\uC791"
|
|
336
333
|
},
|
|
337
334
|
"getter": false,
|
|
338
335
|
"setter": false,
|
|
@@ -173,7 +173,7 @@ export class SdFloatingPopover {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return h("slot", { key: '
|
|
176
|
+
return h("slot", { key: '487d3c23320bd5f44492e3fb84e3cb357605de39' });
|
|
177
177
|
}
|
|
178
178
|
static get is() { return "sd-floating-portal"; }
|
|
179
179
|
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: '972d5e17746dc16d4e20b18bd278410fe9c13878', 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: '31e5f2aa7a2f0acaa0bfda8b9bfb94e2d6a98ebe', class: "sd-input__content" }, h("slot", { key: '8230767a7311121fca1d3a1d64be5a04fc3c38aa', name: "prefix" }), h("input", { key: '2961c50e416a08988d3d80022883eab696de2c7c', 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: '6862a98c1254979e0700cd8b18b61517a4c7386a', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: '9aa967f89fa448df98079ba1b16fe4ea4ef81c0e', 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: '2dd03b4920f2e84932c6e8ddb8bbdea2070b070f', 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;
|
|
@@ -31,7 +31,7 @@ export class SdLinearProgress {
|
|
|
31
31
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
32
32
|
};
|
|
33
33
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
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)));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "sd-linear-progress"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -2,20 +2,40 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
export class SdLoadingContainer {
|
|
3
3
|
visible = false;
|
|
4
4
|
message = '';
|
|
5
|
+
prevBodyOverflow = null;
|
|
5
6
|
/** 로딩 오버레이를 표시합니다. */
|
|
6
7
|
async show(options = {}) {
|
|
7
8
|
this.message = options.message ?? '';
|
|
8
9
|
this.visible = true;
|
|
10
|
+
this.lockScroll();
|
|
9
11
|
}
|
|
10
12
|
/** 로딩 오버레이를 숨깁니다. */
|
|
11
13
|
async hide() {
|
|
12
14
|
this.visible = false;
|
|
15
|
+
this.unlockScroll();
|
|
16
|
+
}
|
|
17
|
+
disconnectedCallback() {
|
|
18
|
+
this.unlockScroll();
|
|
19
|
+
}
|
|
20
|
+
/** 오버레이 표시 중 배경 스크롤을 차단합니다. */
|
|
21
|
+
lockScroll() {
|
|
22
|
+
if (this.prevBodyOverflow !== null)
|
|
23
|
+
return;
|
|
24
|
+
this.prevBodyOverflow = document.body.style.overflow;
|
|
25
|
+
document.body.style.overflow = 'hidden';
|
|
26
|
+
}
|
|
27
|
+
/** 배경 스크롤 차단을 해제합니다. */
|
|
28
|
+
unlockScroll() {
|
|
29
|
+
if (this.prevBodyOverflow === null)
|
|
30
|
+
return;
|
|
31
|
+
document.body.style.overflow = this.prevBodyOverflow;
|
|
32
|
+
this.prevBodyOverflow = null;
|
|
13
33
|
}
|
|
14
34
|
render() {
|
|
15
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '7abf314b6518ab7e6ba0ef60236a8ca6846b0cf4', class: {
|
|
16
36
|
'sd-loading-container': true,
|
|
17
37
|
'sd-loading-container--visible': this.visible,
|
|
18
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
38
|
+
}, "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))));
|
|
19
39
|
}
|
|
20
40
|
static get is() { return "sd-loading-container"; }
|
|
21
41
|
static get originalStyleUrls() {
|
|
@@ -21,7 +21,7 @@ export const LOADING_MODAL_TYPOGRAPHY = {
|
|
|
21
21
|
lineHeight: Number(modalTokens.modal.loading.message.typography.lineHeight),
|
|
22
22
|
};
|
|
23
23
|
export const LOADING_MODAL_DEFAULT_MESSAGE = {
|
|
24
|
-
loading: '
|
|
24
|
+
loading: '작업 진행중...',
|
|
25
25
|
error: '작업에 실패하였습니다. 다시 시도해 주세요.',
|
|
26
26
|
};
|
|
27
27
|
export const LOADING_MODAL_DEFAULT_BUTTON_LABEL = {
|
|
@@ -26,6 +26,10 @@ export class SdLoadingModal {
|
|
|
26
26
|
get resolvedButtonLabel() {
|
|
27
27
|
return this.buttonLabel || LOADING_MODAL_DEFAULT_BUTTON_LABEL[this.resolvedState];
|
|
28
28
|
}
|
|
29
|
+
/** error 상태에서는 버튼이 필수로 표시됩니다. */
|
|
30
|
+
get showButton() {
|
|
31
|
+
return this.useButton || this.resolvedState === 'error';
|
|
32
|
+
}
|
|
29
33
|
handleClick = () => {
|
|
30
34
|
this.click.emit();
|
|
31
35
|
};
|
|
@@ -54,7 +58,7 @@ export class SdLoadingModal {
|
|
|
54
58
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
55
59
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
56
60
|
};
|
|
57
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '01bd677e5ef79c7fba151be5d4fb28f4de53c063', style: hostStyle }, h("div", { key: 'f1062845695886535ee1d96613db83e1a8da4b88', class: "sd-loading-modal" }, h("div", { key: 'c1ca61a82f105e5582719375506634a2ee5a538f', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: '60039cb0c90b9450355c6545a82301797c0b65bc', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.showButton && (h("div", { key: '0f00c197e0f320ffb2a8bebe4418307639d5ee09', class: "sd-loading-modal__button" }, h("sd-button", { key: '6d8f96e681843afe1590f9a9fcc18c4668f64d22', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
58
62
|
}
|
|
59
63
|
static get is() { return "sd-loading-modal"; }
|
|
60
64
|
static get originalStyleUrls() {
|
|
@@ -314,15 +314,15 @@ export class SdNumberInput {
|
|
|
314
314
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
315
315
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
316
316
|
};
|
|
317
|
-
return (h("sd-field", { key: '
|
|
317
|
+
return (h("sd-field", { key: '391ac51b1c7844a81664907af4e7c063d6c4c5e4', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '7bdc01654f679228c9893d4438daa0a8324b1e56', class: {
|
|
318
318
|
'sd-number-input__content': true,
|
|
319
319
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
320
|
-
} }, this.useButton && (h("button", { key: '
|
|
320
|
+
} }, this.useButton && (h("button", { key: '57819a2fbc917ebf6fdf640e4226443cf6d138b1', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '05c900ee4b9ccb0f2b8bf5a555f5586fe91c3c53', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
321
321
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
322
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '
|
|
322
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: 'e406fa40696f58e4a8ad4f2be2a33ecfc2f4ff3a', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: '3df235c03deac87a615d295d65473a487155f07c', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
323
323
|
textAlign: this.useButton ? 'center' : 'right',
|
|
324
324
|
...this.inputStyle,
|
|
325
|
-
} }), this.inputSuffix && h("span", { key: '
|
|
325
|
+
} }), this.inputSuffix && h("span", { key: 'b23bd9594ca53147d628d97b8a99512d0ecc6c82', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: 'c4757ac52cccab448a91458ca66e7de29b5d4b5d', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '45eadd745300df1f9bec18d7a9d6367f25ee53b7', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
326
326
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
327
327
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
328
328
|
}
|
|
@@ -5,6 +5,7 @@ export const PAGINATION_LAYOUT = {
|
|
|
5
5
|
radius: `${paginationTokens.pagination.radius}px`,
|
|
6
6
|
gap: `${paginationTokens.pagination.gap}px`,
|
|
7
7
|
moveGap: `${paginationTokens.pagination.move.gap}px`,
|
|
8
|
+
simpleGap: `${paginationTokens.pagination.simple.gap}px`,
|
|
8
9
|
iconSize: Number(paginationTokens.pagination.icon),
|
|
9
10
|
};
|
|
10
11
|
export const PAGINATION_TYPOGRAPHY = {
|
|
@@ -75,7 +75,7 @@ sd-pagination {
|
|
|
75
75
|
.sd-pagination__info {
|
|
76
76
|
display: inline-flex;
|
|
77
77
|
align-items: center;
|
|
78
|
-
gap: var(--sd-pagination-
|
|
78
|
+
gap: var(--sd-pagination-simple-gap);
|
|
79
79
|
height: var(--sd-pagination-height);
|
|
80
80
|
padding: 0 var(--sd-pagination-padding-x);
|
|
81
81
|
color: var(--sd-pagination-content);
|
|
@@ -75,6 +75,7 @@ export class SdPagination {
|
|
|
75
75
|
'--sd-pagination-radius': PAGINATION_LAYOUT.radius,
|
|
76
76
|
'--sd-pagination-gap': PAGINATION_LAYOUT.gap,
|
|
77
77
|
'--sd-pagination-move-gap': PAGINATION_LAYOUT.moveGap,
|
|
78
|
+
'--sd-pagination-simple-gap': PAGINATION_LAYOUT.simpleGap,
|
|
78
79
|
'--sd-pagination-font-family': PAGINATION_TYPOGRAPHY.fontFamily,
|
|
79
80
|
'--sd-pagination-font-size': PAGINATION_TYPOGRAPHY.fontSize,
|
|
80
81
|
'--sd-pagination-line-height': PAGINATION_TYPOGRAPHY.lineHeight,
|
|
@@ -87,13 +88,13 @@ export class SdPagination {
|
|
|
87
88
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
88
89
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
89
90
|
};
|
|
90
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: '2e5fdcc2d6a426be32128960131db2ed51674939', class: {
|
|
91
92
|
'sd-pagination': true,
|
|
92
93
|
'sd-pagination--simple': this.simple,
|
|
93
|
-
}, style: cssVars }, h("div", { key: '
|
|
94
|
+
}, 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: {
|
|
94
95
|
'sd-pagination__item': true,
|
|
95
96
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
96
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
97
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '3c98ea6c1bf5bea43baaa73a2a7db5c4fe1404e5', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
97
98
|
}
|
|
98
99
|
static get is() { return "sd-pagination"; }
|
|
99
100
|
static get originalStyleUrls() {
|
|
@@ -40,7 +40,7 @@ export class SdPopup {
|
|
|
40
40
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
41
41
|
...this.submitButtonProps,
|
|
42
42
|
};
|
|
43
|
-
return (h("div", { key: '
|
|
43
|
+
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() })))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "sd-popup"; }
|
|
46
46
|
static get originalStyleUrls() {
|
|
@@ -78,7 +78,7 @@ export class SdSelectListItem {
|
|
|
78
78
|
return (
|
|
79
79
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
80
80
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
81
|
-
h("div", { key: '
|
|
81
|
+
h("div", { key: 'dd2c4cbd210ed70c00a954a9c6da6923ea76c91e', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
82
82
|
'sd-select-list-item': true,
|
|
83
83
|
'sd-select-list-item--group': isGroup,
|
|
84
84
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -88,7 +88,7 @@ export class SdSelectListItem {
|
|
|
88
88
|
'sd-select-list-item--focused': this.isFocused,
|
|
89
89
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
90
90
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
91
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
91
|
+
}, 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, ")"))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "sd-select-list-item"; }
|
|
94
94
|
static get originalStyleUrls() {
|