@sellmate/design-system 1.22.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-C-F-JEv_.js → index-BuaQW9U4.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-callout.cjs.entry.js +2 -2
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +25 -7
- package/dist/cjs/sd-chip.cjs.entry.js +6 -4
- package/dist/cjs/{sd-chip.config-DiLoRpct.js → sd-chip.config-DCNCzV8s.js} +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +11 -11
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +2 -2
- package/dist/cjs/sd-divider.cjs.entry.js +2 -2
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-field_3.cjs.entry.js +10 -10
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +22 -14
- 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 +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +9 -9
- package/dist/cjs/sd-popover.cjs.entry.js +5 -5
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio.cjs.entry.js +2 -2
- 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 +23 -5
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-26hYtSrD.js → tooltipArrow-VQq73W83.js} +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.js +24 -2
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +23 -5
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +4 -4
- package/dist/collection/components/sd-field/sd-field.js +5 -5
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.css +4 -0
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +3 -3
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +15 -7
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.css +17 -0
- package/dist/collection/components/sd-text-link/sd-text-link.js +46 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BXRgi3NZ.js → p-0U99W-3Z.js} +1 -1
- package/dist/components/{p-DlXBFtBO.js → p-1cW-9wVB.js} +1 -1
- package/dist/components/p-B3bERWUt.js +1 -0
- package/dist/components/{p-B-Igud6n.js → p-B8uvCE1e.js} +1 -1
- package/dist/components/{p-DFbj6d3L.js → p-BZUlNC0d.js} +1 -1
- package/dist/components/{p-CCO1WtEj.js → p-BnhzUsGP.js} +1 -1
- package/dist/components/{p-CHxVi6l1.js → p-BoH7ykYx.js} +1 -1
- package/dist/components/{p-Bric-SEs.js → p-BoPkOevJ.js} +1 -1
- package/dist/components/{p-B12iH3Zk.js → p-Bqfoe_ek.js} +1 -1
- package/dist/components/{p-BwTsP0Ak.js → p-BtVuPyhl.js} +1 -1
- package/dist/components/{p-Cdzn78dP.js → p-C-Cje7aS.js} +1 -1
- package/dist/components/{p-D7StBSjK.js → p-C3rOud8J.js} +1 -1
- package/dist/components/p-C4_oeGm-.js +1 -0
- package/dist/components/p-C5uz_eFs.js +1 -0
- package/dist/components/{p-BFlmHQm9.js → p-CBXH-GWN.js} +1 -1
- package/dist/components/{p-CCCwPJ5p.js → p-CEVDmQdt.js} +1 -1
- package/dist/components/{p-CwSlRPMm.js → p-CNwoxvpg.js} +1 -1
- package/dist/components/{p-B2bF2KlS.js → p-CaQ-qyG-.js} +1 -1
- package/dist/components/{p-B0myARGe.js → p-Ck2aozmE.js} +1 -1
- package/dist/components/{p-OjchKJGr.js → p-CtNDxhxx.js} +1 -1
- package/dist/components/{p-mcMbSkii.js → p-D-a6H314.js} +1 -1
- package/dist/components/{p-BpQwjSB8.js → p-D3dq5pt5.js} +1 -1
- package/dist/components/p-D6noGX38.js +1 -0
- package/dist/components/{p-JMuxVcTW.js → p-D8T1XeGP.js} +1 -1
- package/dist/components/{p-Cj_1bYZF.js → p-DMvWCQfX.js} +1 -1
- package/dist/components/{p-C1QezE7u.js → p-DNRm9_Bv.js} +1 -1
- package/dist/components/{p-vPS2GNz3.js → p-DPmMT-y0.js} +1 -1
- package/dist/components/p-D_SxeDkS.js +1 -0
- package/dist/components/{p-Co2ThnbG.js → p-DcJ7u2_W.js} +1 -1
- package/dist/components/{p-kRH2GOb0.js → p-DyfR6eGl.js} +1 -1
- package/dist/components/{p-ZvP2Ce6J.js → p-Fwb7LRwv.js} +1 -1
- package/dist/components/{p-Bm3NWPaP.js → p-PMD-Col0.js} +1 -1
- package/dist/components/{p-BpjmheLG.js → p-PXhjh7pH.js} +1 -1
- package/dist/components/p-Ycs3I9cT.js +1 -0
- package/dist/components/{p-YCGkwgiM.js → p-fzFFhJlr.js} +1 -1
- package/dist/components/{p-58DLP3IW.js → p-h9_f4fUW.js} +1 -1
- package/dist/components/{p-FrqOl9KZ.js → p-qbClgrdG.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-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-0d5d2723.entry.js +1 -0
- package/dist/design-system/{p-2ba0b35a.entry.js → p-12e7b9fc.entry.js} +1 -1
- package/dist/design-system/p-210123b1.entry.js +1 -0
- package/dist/design-system/{p-68687503.entry.js → p-21d8f192.entry.js} +1 -1
- package/dist/design-system/{p-ce83eca1.entry.js → p-2646a746.entry.js} +1 -1
- package/dist/design-system/p-2fb9a5e6.entry.js +1 -0
- package/dist/design-system/{p-abcc9367.entry.js → p-3b71d1d4.entry.js} +1 -1
- package/dist/design-system/{p-4f69fde0.entry.js → p-43d521c4.entry.js} +1 -1
- package/dist/design-system/{p-d5b535ad.entry.js → p-4d68b0a8.entry.js} +1 -1
- package/dist/design-system/{p-bfba449b.entry.js → p-5a67c40d.entry.js} +1 -1
- package/dist/design-system/p-5b184e17.entry.js +1 -0
- package/dist/design-system/{p-99f33027.entry.js → p-6b20c76b.entry.js} +1 -1
- package/dist/design-system/{p-9a010c12.entry.js → p-6f77fc76.entry.js} +1 -1
- package/dist/design-system/{p-ce5df7ef.entry.js → p-74e605c0.entry.js} +1 -1
- package/dist/design-system/{p-4bbc894b.entry.js → p-754c11a8.entry.js} +1 -1
- package/dist/design-system/{p-a80cc067.entry.js → p-8001447c.entry.js} +1 -1
- package/dist/design-system/{p-7c507d39.entry.js → p-83a86e6d.entry.js} +1 -1
- package/dist/design-system/{p-c93c623f.entry.js → p-8862e3e3.entry.js} +1 -1
- package/dist/design-system/{p-4eeca0cb.entry.js → p-90a360ca.entry.js} +1 -1
- package/dist/design-system/{p-90436be8.entry.js → p-9761ef4a.entry.js} +1 -1
- package/dist/design-system/{p-ccc85130.entry.js → p-9afc1f7c.entry.js} +1 -1
- package/dist/design-system/{p-563a8242.entry.js → p-9b53de38.entry.js} +1 -1
- package/dist/design-system/{p-ff726fad.entry.js → p-9ea2fbec.entry.js} +1 -1
- package/dist/design-system/{p-C7HJ-NfO.js → p-BZ5lcC25.js} +1 -1
- package/dist/{components/p-BRmilX-4.js → design-system/p-GXE2lEVj.js} +1 -1
- package/dist/design-system/{p-DDj5KTBF.js → p-ITP9Focx.js} +1 -1
- package/dist/design-system/{p-b881bbb6.entry.js → p-a1438f7d.entry.js} +1 -1
- package/dist/design-system/{p-14447dd5.entry.js → p-a49cf337.entry.js} +1 -1
- package/dist/design-system/{p-fc65bbe2.entry.js → p-a505459f.entry.js} +1 -1
- package/dist/design-system/{p-274dbc65.entry.js → p-a8d69ab2.entry.js} +1 -1
- package/dist/design-system/{p-552acf98.entry.js → p-b4df75b9.entry.js} +1 -1
- package/dist/design-system/p-ba5bb1ee.entry.js +1 -0
- package/dist/design-system/{p-2df32f8c.entry.js → p-c79bf2eb.entry.js} +1 -1
- package/dist/design-system/{p-ac81b46e.entry.js → p-c7ff7bc8.entry.js} +1 -1
- package/dist/design-system/p-c8e86fb4.entry.js +1 -0
- package/dist/design-system/{p-88926a42.entry.js → p-cb63d4cf.entry.js} +1 -1
- package/dist/design-system/p-d4097b87.entry.js +1 -0
- package/dist/design-system/{p-9dc0c2f9.entry.js → p-d6329729.entry.js} +1 -1
- package/dist/design-system/{p-50b5cf37.entry.js → p-e77fe58a.entry.js} +1 -1
- package/dist/design-system/{p-e310f188.entry.js → p-f1e0ba30.entry.js} +1 -1
- package/dist/design-system/{p-a71a8b31.entry.js → p-f418055d.entry.js} +1 -1
- package/dist/design-system/{p-6d8a4a23.entry.js → p-f9c0013c.entry.js} +1 -1
- package/dist/design-system/{p-c684cd96.entry.js → p-fb609583.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-C7HJ-NfO.js → index-BZ5lcC25.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +2 -2
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +2 -2
- package/dist/esm/sd-button_2.entry.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +6 -6
- package/dist/esm/sd-callout.entry.js +2 -2
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +1 -1
- package/dist/esm/sd-chip-input.entry.js +25 -7
- package/dist/esm/{sd-chip.config-DDj5KTBF.js → sd-chip.config-ITP9Focx.js} +1 -1
- package/dist/esm/sd-chip.entry.js +6 -4
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +4 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +11 -11
- package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
- package/dist/esm/sd-divider.entry.js +2 -2
- package/dist/esm/sd-dropdown-button.entry.js +2 -2
- package/dist/esm/sd-field_3.entry.js +10 -10
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +22 -14
- 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 +3 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination_4.entry.js +9 -9
- package/dist/esm/sd-popover.entry.js +5 -5
- package/dist/esm/sd-popup.entry.js +2 -2
- package/dist/esm/sd-radio-button.entry.js +2 -2
- package/dist/esm/sd-radio.entry.js +2 -2
- 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 +23 -5
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{tooltipArrow-Bgf3crs7.js → tooltipArrow-ByHjyr3Z.js} +1 -1
- package/dist/types/components/sd-chip/sd-chip.d.ts +2 -0
- package/dist/types/components/sd-text-link/sd-text-link.d.ts +8 -0
- package/dist/types/components.d.ts +20 -0
- package/hydrate/index.js +155 -106
- package/hydrate/index.mjs +155 -106
- package/package.json +1 -1
- package/dist/components/p-CEKu7cxA.js +0 -1
- package/dist/components/p-Cjf8PHEl.js +0 -1
- package/dist/components/p-Du_qPqW-.js +0 -1
- package/dist/components/p-DzAvlr8W.js +0 -1
- package/dist/components/p-S2-XqY2R.js +0 -1
- package/dist/design-system/p-2ca4902b.entry.js +0 -1
- package/dist/design-system/p-35da166a.entry.js +0 -1
- package/dist/design-system/p-35e1e2fa.entry.js +0 -1
- package/dist/design-system/p-4bc0ce52.entry.js +0 -1
- package/dist/design-system/p-4c1559c8.entry.js +0 -1
- package/dist/design-system/p-52e88677.entry.js +0 -1
- package/dist/design-system/p-DUyBmuH_.js +0 -1
- package/dist/design-system/p-e7d4b78e.entry.js +0 -1
|
@@ -432,7 +432,7 @@ export class SdChipInput {
|
|
|
432
432
|
fontFamily: CHIP_INPUT_SUGGESTIONS.itemFontFamily,
|
|
433
433
|
color: CHIP_INPUT_SUGGESTIONS.emptyColor,
|
|
434
434
|
};
|
|
435
|
-
return (h("sd-field", { key: '
|
|
435
|
+
return (h("sd-field", { key: 'bab9babd5b7eca9dd7885bf58a6f024315a37083', name: this.name, label: this.label, labelWidth: this.labelWidth, hint: this.hint, errorMessage: this.errorMessage, rules: [this.duplicateRule, ...(this.rules ?? [])], error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, width: this.width, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: 'c16e35b63fdf9f5c1927a5b9057d21f8b0e46139', class: "sd-chip-input", ref: el => (this.chipInputRef = el), onClick: this.handleContainerClick }, (this.internalValues ?? []).map((value, i) => (h("sd-chip", { key: i, value: value, error: this.getChipError(i), disabled: this.getChipDisabled(i), editable: false, onSdRemove: () => this.handleChipRemove(i) }))), !isMaxReached && (h("div", { key: '1332b6fad4f0b739c069f7bccd3dcbfc5c875f50', class: {
|
|
436
436
|
'sd-chip-input__field': true,
|
|
437
437
|
'sd-chip-input__field--filled': this.inputValue !== '',
|
|
438
438
|
'sd-chip-input__field--empty': this.inputValue === '' && this.internalValues.length > 0 && !this.focused,
|
|
@@ -440,12 +440,30 @@ export class SdChipInput {
|
|
|
440
440
|
? this.inputValue
|
|
441
441
|
: this.internalValues.length === 0
|
|
442
442
|
? this.placeholder
|
|
443
|
-
: '' }, h("input", { key: '
|
|
443
|
+
: '' }, h("input", { key: '35f295a0a24099e20bd26bb1d2e3a185bd8c25d8', ref: el => (this.inputEl = el), class: "sd-chip-input__input", placeholder: this.internalValues.length === 0 ? this.placeholder : '', disabled: this.disabled, size: 1, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }))), showResetArea && (
|
|
444
444
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
445
|
-
h("div", { key: '
|
|
445
|
+
h("div", { key: 'b39992f79810a813ede76ce872ebe9c31519dbb4', class: "sd-chip-input__reset",
|
|
446
446
|
// 리셋 버튼 클릭 시 input blur → portal unmount → refocus → 새 portal mount로
|
|
447
447
|
// 두 wrapper가 body에 잠깐 겹치는 타이밍 이슈를 방지한다.
|
|
448
|
-
onMouseDown: e => e.preventDefault() }, this.inputValue === '' && h("span", { key: '
|
|
448
|
+
onMouseDown: e => e.preventDefault() }, this.inputValue === '' && h("span", { key: '937540ca5cc07803909bfc09292d585551be303d', class: "sd-chip-input__divider" }), this.maxCount != null && (h("span", { key: 'a3f869713a596bbddaaccfcd5a4e9b4cdf1c46ea', class: "sd-chip-input__max-count" }, "\uCD5C\uB300 ", this.maxCount, "\uAC1C")), this.useReset && this.internalValues.length > 0 && (h("sd-text-link", { key: '802b77a069e80168a71fa59a32e18fd2987a295c', icon: "reset", iconColor: CHIP_INPUT_RESET.iconColor, label: "\uC785\uB825 \uCD08\uAE30\uD654", underline: true, disabled: this.disabled, style: { '--sd-text-link-color': CHIP_INPUT_RESET.labelColor }, onSdClick: this.handleResetInput })))), showDropdown && (h("sd-portal", { key: '78a2efd9e4f499b8f6596895c713ca98db92f90c', open: showDropdown, parentRef: this.chipInputRef ?? null, viewportPadding: SdChipInput.SUGGESTIONS_VIEWPORT_PADDING, onSdClose: this.closeSuggestions }, h("div", { key: 'c001a796c5a256507a558ca9f01839c70f19ad2b', class: "sd-chip-input__suggestions", role: "listbox", style: suggestionBoxStyle }, isDropdownLoading && (h("div", { key: 'b69431229b2deb89281b4520cacd585c04335c7d', class: "sd-chip-input__suggestions-empty", style: suggestionEmptyStyle }, "\uBD88\uB7EC\uC624\uB294 \uC911...")), showRecommendations ? (h("div", { style: {
|
|
449
|
+
display: 'flex',
|
|
450
|
+
flexWrap: 'wrap',
|
|
451
|
+
gap: '8px',
|
|
452
|
+
padding: '12px',
|
|
453
|
+
} }, recommendedItems.map((item, i) => {
|
|
454
|
+
const isSelected = (this.internalValues ?? []).includes(item);
|
|
455
|
+
const isActive = i === this.activeSuggestionIndex && !isSelected;
|
|
456
|
+
return (h("div", { key: item, role: "option", tabIndex: -1, "aria-selected": isSelected || isActive, "aria-disabled": isSelected ? 'true' : undefined, style: {
|
|
457
|
+
cursor: isSelected ? 'default' : 'pointer',
|
|
458
|
+
borderRadius: '999px',
|
|
459
|
+
outline: isActive ? '2px solid #0075FF' : undefined,
|
|
460
|
+
outlineOffset: '1px',
|
|
461
|
+
}, onMouseDown: e => {
|
|
462
|
+
e.preventDefault();
|
|
463
|
+
if (!isSelected)
|
|
464
|
+
this.addChip(item);
|
|
465
|
+
} }, h("sd-chip", { value: item, disabled: isSelected, editable: false, showRemove: false })));
|
|
466
|
+
}))) : (dropdownItems.map((item, i) => {
|
|
449
467
|
const isSelected = (this.internalValues ?? []).includes(item);
|
|
450
468
|
const isActive = i === this.activeSuggestionIndex && !isSelected;
|
|
451
469
|
return (h("div", { key: item, class: {
|
|
@@ -471,7 +489,7 @@ export class SdChipInput {
|
|
|
471
489
|
if (!isSelected)
|
|
472
490
|
this.addChip(item);
|
|
473
491
|
} }, h("span", { style: { flex: '1' } }, item), isSelected && (h("sd-icon", { name: "check", size: "12", style: { color: '#0075FF', flexShrink: '0' } }))));
|
|
474
|
-
})))))));
|
|
492
|
+
}))))))));
|
|
475
493
|
}
|
|
476
494
|
static get is() { return "sd-chip-input"; }
|
|
477
495
|
static get originalStyleUrls() {
|
|
@@ -31,7 +31,7 @@ export class SdCircleProgress {
|
|
|
31
31
|
}
|
|
32
32
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
33
33
|
const showPercent = !this.indeterminate;
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'b5b95509acbc4ce797cb30163e9e732cb4497ccc', style: hostStyle }, h("svg", { key: 'dc0ad68b03996e71c5d60fbc98a5ee017dcf1442', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '48f479dfe00730a41fc4020c2c4c42e14c54c42e', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: '2d2a54ff75db11c87e21a7953d3580832e4511be', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle })), showPercent && (h("span", { key: '8c393fe080a5d893bdbb90670bdba0cf76a285f6', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && h("span", { key: '2bbad3b1a3ab35696b62e97c9627a152ae8f7bf6', class: "sd-circle-progress__label" }, this.label)));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "sd-circle-progress"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -88,9 +88,9 @@ export class SdConfirmModal {
|
|
|
88
88
|
const type = this.resolvedType;
|
|
89
89
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
90
90
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
91
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: 'e8fcb4879a5a9f2b3bf41753e4cc511e710db1f6', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: 'a8595db97066963534d0ee5529f39481ed1e6c27', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '3b5cf4842176f6c039ecb64ec7942e7cb5a6f1ac', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: '6f7032707292e71e0f8adc655ce88487c08e1b8d', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), h("div", { key: 'e21c66301b368ffd989063aaf9826e023de71925', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '3965561001b0520f491cac833bba3cfe92d7a200', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) }))))), this.showContentBox && (h("div", { key: 'dc2c38a945493e42d451e4fa3d3ebaa6dca75e4a', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
92
92
|
this.customContentRef = el;
|
|
93
|
-
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '
|
|
93
|
+
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && (h("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel })), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: 'ae35e60d69047547d159a452b838c8fc57a3e1a4', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: sanitizeInlineHtml(msg) })))))), h("div", { key: '3bd41c58539faade80e61fac6a91a4ab318bbe88', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button", { key: '177fba6b79a23c80b1037d3af4872c58a598aa33', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button", { key: 'b332d980d9236c584ebca47f89fc2d9b217c0bfd', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "sd-confirm-modal"; }
|
|
96
96
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js
CHANGED
|
@@ -38,7 +38,7 @@ export class SdDatePickerTrigger {
|
|
|
38
38
|
? DATEPICKER_COLORS.icon.disabled
|
|
39
39
|
: DATEPICKER_COLORS.icon.default,
|
|
40
40
|
};
|
|
41
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: 'bd454879eb1a8f40f32e0131b3f2884bbf02b888', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
42
42
|
'sd-date-picker-trigger': true,
|
|
43
43
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
44
44
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -46,7 +46,7 @@ export class SdDatePickerTrigger {
|
|
|
46
46
|
e.preventDefault();
|
|
47
47
|
this.handleClick();
|
|
48
48
|
}
|
|
49
|
-
} }, h("sd-icon", { key: '
|
|
49
|
+
} }, h("sd-icon", { key: '1c1d87b067a98d98d85a6c3e544a389b3b965715', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: 'da87df624c173336d434bd943c6fcce5e86feb03', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "sd-date-picker-trigger"; }
|
|
52
52
|
static get originalStyleUrls() {
|
|
@@ -116,9 +116,9 @@ export class SdDatePicker {
|
|
|
116
116
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
117
117
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
118
118
|
};
|
|
119
|
-
return (h("sd-field", { key: '
|
|
119
|
+
return (h("sd-field", { key: 'd40168072c744016d87e7e812b781f7cfeacbc0f', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '75a6029631b17e71ce9ba984cb0804d4f0e4b003', class: "sd-date-picker", ref: el => {
|
|
120
120
|
this.triggerRef = el;
|
|
121
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
121
|
+
} }, h("sd-date-picker-trigger", { key: '50239daa174a49c306cd79633fc2b26756650b39', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '6b2bc9b10b5337b24ba2403a1a3dc29cf8c49007', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-calendar", { key: '04274e5bd12c2a3a9c0b6879c49fae4b547e5670', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "sd-date-picker"; }
|
|
124
124
|
static get originalStyleUrls() {
|
|
@@ -244,7 +244,7 @@ export class SdDateRangePickerCalendar {
|
|
|
244
244
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
245
245
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
246
246
|
};
|
|
247
|
-
return (h(Fragment, { key: '
|
|
247
|
+
return (h(Fragment, { key: 'a32cc455c1d5fda2754a64374daa6cd664ccf811' }, h("div", { key: 'beaaa15519e87cf3543981c4b902fe000c945d57', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: '54ac87b736bd35236b900ca0b34940a82017b0ec', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: 'f4b585c6a6b680591de74c0f31801578df6629c9', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
248
248
|
}
|
|
249
249
|
static get is() { return "sd-date-range-picker-calendar"; }
|
|
250
250
|
static get originalStyleUrls() {
|
|
@@ -7,7 +7,7 @@ export class SdDivider {
|
|
|
7
7
|
const hostStyle = {
|
|
8
8
|
'--sd-divider-color': DIVIDER_COLORS.default,
|
|
9
9
|
};
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '2708ce362531fa5f3658280ba77733c5f9fb8fa6', style: hostStyle }, h("hr", { key: 'e38476a897aa2bae6500316d5961fc9d6d18780d', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "sd-divider"; }
|
|
13
13
|
static get originalStyleUrls() {
|
|
@@ -12,7 +12,7 @@ sd-dropdown-button {
|
|
|
12
12
|
.sd-dropdown-button__trigger {
|
|
13
13
|
--sd-dropdown-button-height: var(--sd-button-button-md-height, 36px);
|
|
14
14
|
--sd-dropdown-button-padding-x: var(--sd-button-button-md-padding-x, 20px);
|
|
15
|
-
--sd-dropdown-button-gap: var(--sd-button-button-md-gap,
|
|
15
|
+
--sd-dropdown-button-gap: var(--sd-button-button-dropdown-md-gap, 16px);
|
|
16
16
|
--sd-dropdown-button-font-family: var(--sd-button-button-md-typography-font-family, inherit);
|
|
17
17
|
--sd-dropdown-button-font-size: var(--sd-button-button-md-typography-font-size, 12px);
|
|
18
18
|
--sd-dropdown-button-font-weight: var(--sd-button-button-md-typography-font-weight, 500);
|
|
@@ -59,7 +59,7 @@ sd-dropdown-button {
|
|
|
59
59
|
.sd-dropdown-button__trigger--xs {
|
|
60
60
|
--sd-dropdown-button-height: var(--sd-button-button-xs-height, 24px);
|
|
61
61
|
--sd-dropdown-button-padding-x: var(--sd-button-button-xs-padding-x, 8px);
|
|
62
|
-
--sd-dropdown-button-gap: var(--sd-button-button-xs-gap,
|
|
62
|
+
--sd-dropdown-button-gap: var(--sd-button-button-dropdown-xs-gap, 6px);
|
|
63
63
|
--sd-dropdown-button-font-family: var(--sd-button-button-xs-typography-font-family, inherit);
|
|
64
64
|
--sd-dropdown-button-font-size: var(--sd-button-button-xs-typography-font-size, 12px);
|
|
65
65
|
--sd-dropdown-button-font-weight: var(--sd-button-button-xs-typography-font-weight, 500);
|
|
@@ -71,7 +71,7 @@ sd-dropdown-button {
|
|
|
71
71
|
.sd-dropdown-button__trigger--sm {
|
|
72
72
|
--sd-dropdown-button-height: var(--sd-button-button-sm-height, 28px);
|
|
73
73
|
--sd-dropdown-button-padding-x: var(--sd-button-button-sm-padding-x, 12px);
|
|
74
|
-
--sd-dropdown-button-gap: var(--sd-button-button-sm-gap,
|
|
74
|
+
--sd-dropdown-button-gap: var(--sd-button-button-dropdown-sm-gap, 8px);
|
|
75
75
|
--sd-dropdown-button-font-family: var(--sd-button-button-sm-typography-font-family, inherit);
|
|
76
76
|
--sd-dropdown-button-font-size: var(--sd-button-button-sm-typography-font-size, 12px);
|
|
77
77
|
--sd-dropdown-button-font-weight: var(--sd-button-button-sm-typography-font-weight, 500);
|
|
@@ -83,7 +83,7 @@ sd-dropdown-button {
|
|
|
83
83
|
.sd-dropdown-button__trigger--md {
|
|
84
84
|
--sd-dropdown-button-height: var(--sd-button-button-md-height, 36px);
|
|
85
85
|
--sd-dropdown-button-padding-x: var(--sd-button-button-md-padding-x, 20px);
|
|
86
|
-
--sd-dropdown-button-gap: var(--sd-button-button-md-gap,
|
|
86
|
+
--sd-dropdown-button-gap: var(--sd-button-button-dropdown-md-gap, 16px);
|
|
87
87
|
--sd-dropdown-button-font-family: var(--sd-button-button-md-typography-font-family, inherit);
|
|
88
88
|
--sd-dropdown-button-font-size: var(--sd-button-button-md-typography-font-size, 16px);
|
|
89
89
|
--sd-dropdown-button-font-weight: var(--sd-button-button-md-typography-font-weight, 500);
|
|
@@ -205,21 +205,21 @@ export class SdField {
|
|
|
205
205
|
: {}),
|
|
206
206
|
}
|
|
207
207
|
: {};
|
|
208
|
-
return (h("div", { key: '
|
|
208
|
+
return (h("div", { key: '45a5353fb451aa829092ca34f3212d6e62f1843a', class: {
|
|
209
209
|
'sd-field': true,
|
|
210
210
|
'sd-field--has-label': this.label !== '',
|
|
211
211
|
'sd-field--has-addon': addon !== '',
|
|
212
212
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
213
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '
|
|
213
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '75f3be0dae03f292b66980b7c92d574bd0bda988', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '69b9827a2599a2e01fad26224b4b9800fde6e347', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
214
214
|
? {
|
|
215
215
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
216
216
|
flex: 'none',
|
|
217
217
|
}
|
|
218
|
-
: {} }, h("div", { key: '
|
|
218
|
+
: {} }, h("div", { key: 'ba0e98fd309c32ee73b2ba92f956358d51790f58', class: {
|
|
219
219
|
'sd-field__control': true,
|
|
220
220
|
'sd-field__control--has-addon': addon !== '',
|
|
221
|
-
} }, addon && (h("div", { key: '
|
|
222
|
-
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '
|
|
221
|
+
} }, addon && (h("div", { key: '8f941150147145368d340c4be0e3636ef67060c3', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: '78d5d092094c0f3e8562127d77821dadb2a21b6a', name: this.icon.name, size: this.icon.size ??
|
|
222
|
+
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: 'b494ab4550ae739096957cad46cb95a8c71f5a0b' })), this.errorMsg !== '' || this.errorMessage !== '' ? (h("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && h("div", { class: "sd-field__hint" }, this.hint))))));
|
|
223
223
|
}
|
|
224
224
|
renderLabel(label) {
|
|
225
225
|
if (label == null || label === '')
|
|
@@ -173,7 +173,7 @@ export class SdFloatingPopover {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return h("slot", { key: '
|
|
176
|
+
return h("slot", { key: 'a560d8d46ef03688ce16a984c54ae23f740e7ef8' });
|
|
177
177
|
}
|
|
178
178
|
static get is() { return "sd-floating-portal"; }
|
|
179
179
|
static get originalStyleUrls() {
|
|
@@ -66,16 +66,16 @@ export class SdGhostButton {
|
|
|
66
66
|
const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
|
|
67
67
|
const tooltipText = (this.tooltipText ?? '').trim();
|
|
68
68
|
const hasTooltip = tooltipText.length > 0;
|
|
69
|
-
return (h("button", { key: '
|
|
69
|
+
return (h("button", { key: '9d2d352d36c7c34c67d8c57de6236d72727bd078', class: {
|
|
70
70
|
'sd-ghost-button': true,
|
|
71
71
|
'sd-ghost-button--disabled': this.disabled,
|
|
72
|
-
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
72
|
+
}, type: "button", "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : undefined, "aria-label": accessibleName, style: {
|
|
73
73
|
'--sd-ghost-button-size': `${sizeConfig.size}px`,
|
|
74
74
|
'--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS[size]}px`,
|
|
75
75
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
|
|
76
76
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
77
77
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
78
|
-
}, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen &&
|
|
78
|
+
}, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (h("sd-portal", { key: '1a73fb53be28a622d03e4f20be0b30e0e76bccd4', parentRef: this.hostEl, open: true, offset: [sizeConfig.size / 2, 4], placement: "top" }, h("div", { key: 'e4a349dbfbf2fd16eed9a46f5e2ed43935212cfe', class: "sd-ghost-button__tooltip-inner", "aria-hidden": "true" }, h("sd-tag", { key: '4aa1525a6da6ee72daf1815f1440d665bd1cf2c8', name: "square_xs_grey", label: tooltipText })))), h("sd-icon", { key: '4caac22d0d888c1998032697043e3a3761e012aa', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "sd-ghost-button"; }
|
|
81
81
|
static get originalStyleUrls() {
|
|
@@ -152,12 +152,12 @@ export class SdInput {
|
|
|
152
152
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
153
153
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
154
154
|
};
|
|
155
|
-
return (h("sd-field", { key: '
|
|
155
|
+
return (h("sd-field", { key: '6dda00aedca8b7020960de585e27477b7ee104e7', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'ee4b9368d04388c5679943df7c380c879130a07d', class: "sd-input__content" }, h("slot", { key: 'ba1737093bb22f790ab9ea4677966daf718cae01', name: "prefix" }), h("input", { key: '94961d388267f7b84ac9b5c1e7a5b10a803266c7', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '1d5a1319d8f216d637eb546665e16be4dab1f2a8', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: '901716b67a34eefc41bb497b86bb658207f79046', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
156
156
|
if (this.disabled || this.readonly)
|
|
157
157
|
return;
|
|
158
158
|
this.internalValue = '';
|
|
159
159
|
await this.formField?.sdValidate();
|
|
160
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
160
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '5b7e03060d88fee8256cdf9aba66d3e3eed36cdc', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
161
161
|
if (this.disabled || this.readonly)
|
|
162
162
|
return;
|
|
163
163
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -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: '8ca7707d3d3da0e761b6534c1301dde83ee82cf5', style: hostStyle }, h("div", { key: '0cee50f047b64cb4bdf0512aaa00cbfe2257bd8b', class: "sd-linear-progress__track" }, h("div", { key: 'f9e6c3f21edfcf583d2254f72a2f33359b5cc0b6', class: "sd-linear-progress__fill", style: fillStyle }), !this.indeterminate && (h("span", { key: '6586b4d39c2e8535dfee352ce78f0ab7f82c8c52', class: "sd-linear-progress__value sd-linear-progress__value--on-track" }, valueText)), !this.indeterminate && (h("span", { key: '9e35001008fb5c38094dcb22c0961c072e9603a4', class: "sd-linear-progress__value sd-linear-progress__value--on-fill", style: valueOnFillStyle }, valueText))), this.label && h("span", { key: '800e17a8a527e45134e8d4049bb133960bc0219d', class: "sd-linear-progress__label" }, this.label)));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "sd-linear-progress"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -12,10 +12,10 @@ export class SdLoadingContainer {
|
|
|
12
12
|
this.visible = false;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h("div", { key: '
|
|
15
|
+
return (h("div", { key: '19729567b6041e3220c11c569be814f51b31c388', class: {
|
|
16
16
|
'sd-loading-container': true,
|
|
17
17
|
'sd-loading-container--visible': this.visible,
|
|
18
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
18
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '50e6ac53e4515dc305e7a840362f2beb30714674', class: "sd-loading-container__backdrop" }), h("div", { key: '2f0943599188cb0800139f5ab543bab679f3bfee', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: 'a5977418272a167fe76073734be5a36ffa3136ab', indeterminate: true, type: "inverse" }), this.message && h("p", { key: '9285adc663909fafb762e84ad5dd108c6ba2c972', class: "sd-loading-container__message" }, this.message))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "sd-loading-container"; }
|
|
21
21
|
static get originalStyleUrls() {
|
|
@@ -54,7 +54,7 @@ export class SdLoadingModal {
|
|
|
54
54
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
55
55
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
56
56
|
};
|
|
57
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: '163783850461aff1255dbd0784db91ad28da3f16', style: hostStyle }, h("div", { key: '1e09f93378b0813d03c444570d06ffb09b494b63', class: "sd-loading-modal" }, h("div", { key: '97a4919967f5be295b57b4194295c919b13151a4', 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: 'aea0e4b45a55f0907e073f125ba0195bfa128078', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (h("div", { key: 'b64767c954b366f6414886f032c80dd1c8c0190b', class: "sd-loading-modal__button" }, h("sd-button", { key: '8a99e885b5561656f4046698235537d461b41455', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "sd-loading-modal"; }
|
|
60
60
|
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: 'c50811d15f4b698d889132ac8e4527df72059a0d', 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: 'c36595fc48eeb88090cfdeeda3da0e51a86d814e', 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: '89a68f1264907284d8718c59c42cbcc0d06ec29d', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '9e9c5f4d33eadf088c6e8c428dd97d2c717905b3', 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: 'b5d2bef21242c1dc65d10f6dcb3b4c50380804d2', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: '2f1d5c24a3462ae5aded71d645317ad84ca2dd6b', 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: '53391ecdede9630774be6891412835dad3975186', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: '9383cf29b0688252023b6bc9e10189c70f049ccf', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'a380dce8f2cf42c2f312657ea8304e94b9af8fe7', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
326
326
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
327
327
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
328
328
|
}
|
|
@@ -87,13 +87,13 @@ export class SdPagination {
|
|
|
87
87
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
88
88
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
89
89
|
};
|
|
90
|
-
return (h("div", { key: '
|
|
90
|
+
return (h("div", { key: '5a1ebb6aeb6732cd3b6133cedba47aeedf620291', class: {
|
|
91
91
|
'sd-pagination': true,
|
|
92
92
|
'sd-pagination--simple': this.simple,
|
|
93
|
-
}, style: cssVars }, h("div", { key: '
|
|
93
|
+
}, style: cssVars }, h("div", { key: 'a4856d8ffde66402eae909ad9f636f3b13f1b5d7', 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
94
|
'sd-pagination__item': true,
|
|
95
95
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
96
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
96
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'fd1d6d0ba1c143ca4f9692f1c604f0e0fc0730db', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
97
97
|
}
|
|
98
98
|
static get is() { return "sd-pagination"; }
|
|
99
99
|
static get originalStyleUrls() {
|
|
@@ -69,17 +69,17 @@ export class SdPopover {
|
|
|
69
69
|
const leftLink = this.leftLink;
|
|
70
70
|
const button = this.button;
|
|
71
71
|
const hasFooter = !!leftLink || !!button;
|
|
72
|
-
return (h(Fragment, { key: '
|
|
72
|
+
return (h(Fragment, { key: '163802d6f0954b87902bbf957831f311829e63dc' }, this.label !== '' ? (h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel || this.label || icon || 'Open popover', disabled: this.disabled, type: this.type ?? 'button', class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (h("sd-floating-portal", { key: '1bd73048fd65916a400840c572d988c445dd662b', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, h("div", { key: 'f3791b078c7970174d9394ffcbb19beb450f12c5', class: {
|
|
73
73
|
'sd-floating-menu': true,
|
|
74
74
|
'sd-floating-menu--popover': true,
|
|
75
75
|
[`sd-floating-menu--${placement}`]: true,
|
|
76
76
|
[menuClass]: menuClass !== '',
|
|
77
77
|
}, style: {
|
|
78
78
|
'--sd-floating-bg': popoverTokens.popover.default.bg,
|
|
79
|
-
} }, h("i", { key: '
|
|
79
|
+
} }, h("i", { key: 'f9ab66a933669a057a1da5188cb82ca9e5f17ed6', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: '6ea9ca3bacd2c84c468e5f00fa33e93e61a6bf9d' })), h("div", { key: '91d094cd45973bcc5ea6e6016510006f41956546', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: 'ebe9a1e130792d7e60ca9abef9020dff6c0bd4c4', class: "sd-floating-menu__title" }, this.menuTitle), this.slotContentHTML && (h("div", { key: 'b898402e77f125099b29f6bd8eb5384a70aa671a', class: "sd-floating-menu__messages", innerHTML: this.slotContentHTML })), hasFooter && (h("div", { key: 'e797202b27ff538d4148f3b6782b33f58fc6bc2f', class: {
|
|
80
80
|
'sd-floating-menu__buttons': true,
|
|
81
81
|
'sd-floating-menu__buttons--with-link': !!leftLink,
|
|
82
|
-
} }, leftLink && (h("sd-text-link", { key: '
|
|
82
|
+
} }, leftLink && (h("sd-text-link", { key: 'fdeacc2b97c997d0c7385bab5260e060a70292e6', class: "sd-floating-menu__left-link", label: leftLink.label, icon: leftLink.icon ?? '', iconColor: leftLink.iconColor ?? '', rightArrow: leftLink.rightArrow ?? 'none', underline: !!leftLink.underline, disabled: !!leftLink.disabled, onSdClick: leftLink.onClick })), button && (h("sd-button", { key: '4a56e7e714517edcbea075e7d4521f0a54388e9f', name: button.name ?? 'secondary_xs', label: button.label, icon: button.icon, rightIcon: button.rightIcon, ariaLabel: button.ariaLabel || button.label || button.icon || 'Open popover', disabled: button.disabled, type: button.type, onSdClick: button.onClick }))))), h("sd-ghost-button", { key: 'ca713f6a07637b014c58923db2ff7af1f3ae98a8', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose }))))));
|
|
83
83
|
}
|
|
84
84
|
static get is() { return "sd-popover"; }
|
|
85
85
|
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: '9138fc14fe3accf97fe3a5bae4dd089d658a2198', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: '545591be690bc16f8b78875548dcd13ffaaaa521', class: "sd-popup__header" }, h("h2", { key: '2a9e959ecac6a0be2bd97019e74bee23ab0c2ecc', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'f6e1053a8af7b1c87cb4adab5f8f5d51f970bc82', class: "sd-popup__body" }, h("slot", { key: '9f66b2873cb0a8e7409709a400d91fc569da12b5' })), this.useFooter && (h("footer", { key: 'fce908fd8f5bab94fee22184287072debce1b3ba', class: "sd-popup__footer" }, h("div", { key: 'c4db14ca27f56154cfb01728133bd3cdbd1ce7e7', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '7b9e920b1c322eb28de40fb2e9b02f03aa9b64e8', name: "footer-left" })), h("sd-button", { key: '87cb9bcbc9fb1657d1021609ce855118bd7c9b96', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "sd-popup"; }
|
|
46
46
|
static get originalStyleUrls() {
|
|
@@ -168,19 +168,27 @@ export class SdPortal {
|
|
|
168
168
|
else {
|
|
169
169
|
top = Math.min(Math.max(top, minTop), maxTop);
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
left = parentRect.right - wrapperRect.width - offset[0];
|
|
173
|
-
}
|
|
171
|
+
const overflowsRight = left + wrapperRect.width > viewport.width - viewportPadding;
|
|
174
172
|
const minLeft = viewportPadding;
|
|
175
173
|
const maxLeft = viewport.width - viewportPadding - wrapperRect.width;
|
|
174
|
+
this.wrapper.style.top = `${top}px`;
|
|
176
175
|
if (maxLeft < minLeft) {
|
|
177
|
-
left
|
|
176
|
+
// wrapper가 padding 내에 들어오지 못할 만큼 넓으면 left 기준으로 클램프
|
|
177
|
+
this.wrapper.style.left = `${minLeft}px`;
|
|
178
|
+
this.wrapper.style.right = 'auto';
|
|
179
|
+
delete this.wrapper.dataset.align;
|
|
180
|
+
}
|
|
181
|
+
else if (overflowsRight) {
|
|
182
|
+
this.wrapper.style.left = 'auto';
|
|
183
|
+
this.wrapper.style.right = `${viewport.width - parentRect.right}px`;
|
|
184
|
+
this.wrapper.dataset.align = 'right';
|
|
178
185
|
}
|
|
179
186
|
else {
|
|
187
|
+
this.wrapper.style.right = 'auto';
|
|
188
|
+
delete this.wrapper.dataset.align;
|
|
180
189
|
left = Math.min(Math.max(left, minLeft), maxLeft);
|
|
190
|
+
this.wrapper.style.left = `${left}px`;
|
|
181
191
|
}
|
|
182
|
-
this.wrapper.style.top = `${top}px`;
|
|
183
|
-
this.wrapper.style.left = `${left}px`;
|
|
184
192
|
this.wrapper.style.visibility = 'visible';
|
|
185
193
|
this.wrapper.style.opacity = '1';
|
|
186
194
|
});
|
|
@@ -256,7 +264,7 @@ export class SdPortal {
|
|
|
256
264
|
this.close.emit();
|
|
257
265
|
}
|
|
258
266
|
render() {
|
|
259
|
-
return h("slot", { key: '
|
|
267
|
+
return h("slot", { key: '628b6a8231a1a7bf16206510374c066fdf8a8796' });
|
|
260
268
|
}
|
|
261
269
|
static get is() { return "sd-portal"; }
|
|
262
270
|
static get properties() {
|
|
@@ -52,7 +52,7 @@ export class SdRadio {
|
|
|
52
52
|
'--sd-radio-label-color': RADIO_COLORS.label.default,
|
|
53
53
|
'--sd-radio-label-disabled-color': RADIO_COLORS.label.disabled,
|
|
54
54
|
};
|
|
55
|
-
return (h("label", { key: '
|
|
55
|
+
return (h("label", { key: 'cc7ff62ac992791ef81db9212bb5986989f6b4d6', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, h("input", { key: '20bfeaf5bc322335f5300955ebf653213d662fa6', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), h("span", { key: '61d8bdfdb5f8309b8832b89ea2979db5b80968c8', class: "sd-radio__circle" }), this.label && (h("span", { key: 'cc2a5402e4745aaae897c8f37d5fc287a2ba9b29', class: "sd-radio__label", "data-label": this.label }, this.label))));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "sd-radio"; }
|
|
58
58
|
static get originalStyleUrls() {
|
|
@@ -81,7 +81,7 @@ export class SdRadioButton {
|
|
|
81
81
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
82
82
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
83
83
|
};
|
|
84
|
-
return (h("div", { key: '
|
|
84
|
+
return (h("div", { key: '17355ebde09f652f5b94b4f70f09f68ef44cd29d', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
85
85
|
const isSelected = this.isOptionSelected(option);
|
|
86
86
|
const isDisabled = this.isOptionDisabled(option);
|
|
87
87
|
return (h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && h("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -28,7 +28,7 @@ export class SdRadioGroup {
|
|
|
28
28
|
return classes.join(' ');
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'e5f4051ea9b2843816a849a018b8040e7b951a55', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
32
32
|
return (h("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
33
33
|
})));
|
|
34
34
|
}
|
|
@@ -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: '2bec32f64859ef0e39928d4288cba3c727e16cf1', 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: 'fb6d2ed50e6d24d0491200b5be2cb3ab97df1b04', 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: '52162297e94d672128ea0a2343c6baf6e04ee78c', 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() {
|
|
@@ -45,15 +45,15 @@ export class SdSelectListItemSearch {
|
|
|
45
45
|
clearTimeout(this.debounceTimer);
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: '4b0eefc35e86aa2f320ce9410185b64323d60e45', class: {
|
|
49
49
|
'sd-select-list-item-search': true,
|
|
50
50
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
51
|
-
} }, h("div", { key: '
|
|
51
|
+
} }, h("div", { key: 'b724cb790c3f8d5eb2ecb899c28dbddf9acad631', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '18ba78adbc46e9cc0f3a4e355996dba25fc1c8e9', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: 'c2a2df9bc2dfe692b1f5732706ce1208a005aab4', ref: el => {
|
|
52
52
|
this.inputEl = el;
|
|
53
|
-
}, 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: '
|
|
53
|
+
}, 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: '7d9d3e924a24ddecbeb4bf5316c2c791913ac782', type: "button", class: {
|
|
54
54
|
'sd-select-list-item-search__clear': true,
|
|
55
55
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
56
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
56
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '80d52b79d989e51513653655adf6604f352c43b0', name: "close", size: 12, color: "#888888" })))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "sd-select-list-item-search"; }
|
|
59
59
|
static get originalStyleUrls() {
|