@sellmate/design-system 1.17.0 → 1.19.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/component.listItem-Bnh0r_CA.js +53 -0
- package/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +54 -0
- package/dist/cjs/sd-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-chip-input.cjs.entry.js +263 -18
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +2 -2
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +17 -7
- package/dist/cjs/sd-field_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-ghost-button_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-guide.cjs.entry.js +1 -1
- package/dist/cjs/sd-key-value-table.cjs.entry.js +40 -13
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-modal-container.cjs.entry.js +8 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +10 -10
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- package/dist/cjs/sd-portal.cjs.entry.js +16 -12
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +8 -7
- package/dist/cjs/{sd-select.config-DrJ4LNVz.js → sd-select.config-C9Ohe1QA.js} +25 -71
- package/dist/cjs/sd-select_3.cjs.entry.js +12 -11
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +12 -11
- package/dist/cjs/{sd-table.config-BjJW74Zx.js → sd-table.config-B7MuRLoR.js} +1 -1
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/cjs/{system-CdAyz3ej.js → system-MjrAugX-.js} +7 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/assets/Bill.js +5 -0
- package/dist/collection/components/assets/Coupon.js +5 -0
- package/dist/collection/components/assets/Delete.js +5 -0
- package/dist/collection/components/assets/Dot.js +5 -0
- package/dist/collection/components/assets/Launcher.js +5 -0
- package/dist/collection/components/assets/Monitor.js +5 -0
- package/dist/collection/components/assets/Shield.js +5 -0
- package/dist/collection/components/assets/Sidebar.js +5 -0
- package/dist/collection/components/assets/Store.js +5 -0
- package/dist/collection/components/assets/index.js +18 -0
- package/dist/collection/components/sd-button/sd-button.js +2 -2
- package/dist/collection/components/sd-chip-input/sd-chip-input.config.js +29 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +50 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +367 -19
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +7 -0
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +10 -7
- 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.js +1 -1
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +3 -3
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +11 -4
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +42 -15
- 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-modal-container/sd-modal-container.js +8 -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 +2 -2
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +16 -12
- 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 +4 -4
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.config.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.css +4 -1
- package/dist/collection/components/sd-table/sd-table.js +15 -14
- 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 +3 -3
- package/dist/collection/components/sd-text-link/sd-text-link.js +4 -4
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +3 -3
- 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 +4 -4
- package/dist/collection/utils/modal.js +11 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DfZ8X4ly.js → p-4HPAPKne.js} +1 -1
- package/dist/components/{p-B57sOZvR.js → p-79DExV92.js} +1 -1
- package/dist/components/{p-RE577yb-.js → p-AI4YlQmL.js} +1 -1
- package/dist/components/{p-B4pLCd0_.js → p-B-4ulKJj.js} +1 -1
- package/dist/components/{p-G_N9xEDL.js → p-B3SKaQId.js} +1 -1
- package/dist/components/p-BD8OoYud.js +1 -0
- package/dist/components/p-BJfiMC9H.js +1 -0
- package/dist/components/{p-DknZgTo9.js → p-BLNc_TL-.js} +1 -1
- package/dist/components/{p-CLEAGFjW.js → p-BMIgVp9-.js} +1 -1
- package/dist/components/{p-vS0t7bWk.js → p-BX5uKVOt.js} +1 -1
- package/dist/components/p-BYTrIk62.js +1 -0
- package/dist/components/{p-_P21dOPl.js → p-B_5uwji5.js} +1 -1
- package/dist/components/{p-DUwrMHYa.js → p-Bzo51vnP.js} +1 -1
- package/dist/components/{p-DtG23tkr.js → p-C0tkFuhj.js} +1 -1
- package/dist/components/{p-YlaidN9T.js → p-C3wv8gVC.js} +1 -1
- package/dist/components/{p-YKESuy-p.js → p-CH6cVc2a.js} +1 -1
- package/dist/components/{p-Bfrg9lvO.js → p-CQWZv8vY.js} +1 -1
- package/dist/components/{p-BsQf9d7Q.js → p-CXRFEcE_.js} +1 -1
- package/dist/components/{p-B-61rIur.js → p-C_r3z9VA.js} +1 -1
- package/dist/components/{p-BvAJ_toQ.js → p-Cl5io5TH.js} +1 -1
- package/dist/components/p-ClKABgST.js +1 -0
- package/dist/components/{p-DGyTYauz.js → p-Cmg10jpN.js} +1 -1
- package/dist/components/{p-DeXO3mpJ.js → p-CtWfOIxb.js} +1 -1
- package/dist/components/{p-CIZpVJBx.js → p-CzCu_NDl.js} +1 -1
- package/dist/components/{p-FGvi8J2D.js → p-DAOeioSV.js} +1 -1
- package/dist/components/{p-iGvyLmbb.js → p-DDR0VcRU.js} +1 -1
- package/dist/components/{p-CnfnK5aj.js → p-DMS9mQsg.js} +1 -1
- package/dist/components/{p-B73U-Zw2.js → p-DTFXzlvq.js} +1 -1
- package/dist/components/{p-CHjF0mwj.js → p-DbLQoVx6.js} +1 -1
- package/dist/components/p-Dr5Q2ZKB.js +1 -0
- package/dist/components/{p-B4UxhQes.js → p-DrSHJYop.js} +1 -1
- package/dist/components/p-DvvGi4J_.js +1 -0
- package/dist/components/{p-BrzBnO1L.js → p-DyVh4pNL.js} +1 -1
- package/dist/components/{p-C_6HUUGg.js → p-Ng3JMPxb.js} +1 -1
- package/dist/components/p-U8VaRj9c.js +1 -0
- package/dist/components/{p-BY1ItC8N.js → p-hzCGj0On.js} +1 -1
- package/dist/components/{p-BMVHvEDw.js → p-qJeUUOyB.js} +1 -1
- package/dist/components/sd-action-modal.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-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-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-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-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.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/p-12306783.entry.js +1 -0
- package/dist/design-system/{p-b457611c.entry.js → p-1602a5fa.entry.js} +1 -1
- package/dist/design-system/p-1f3c1cca.entry.js +1 -0
- package/dist/design-system/{p-3045ffe1.entry.js → p-22484d65.entry.js} +1 -1
- package/dist/design-system/p-3caf2c5b.entry.js +1 -0
- package/dist/design-system/p-3f7349ae.entry.js +1 -0
- package/dist/design-system/{p-b8ea656d.entry.js → p-43529bba.entry.js} +1 -1
- package/dist/design-system/p-46da89f2.entry.js +1 -0
- package/dist/design-system/p-4b15247b.entry.js +1 -0
- package/dist/design-system/p-4b626171.entry.js +1 -0
- package/dist/design-system/{p-a1f756ab.entry.js → p-4e1d76b8.entry.js} +1 -1
- package/dist/design-system/{p-03bcd782.entry.js → p-683c3b91.entry.js} +1 -1
- package/dist/design-system/{p-99ffe505.entry.js → p-6ce68bf2.entry.js} +1 -1
- package/dist/design-system/{p-a5131a43.entry.js → p-80bde621.entry.js} +1 -1
- package/dist/design-system/{p-22883fe1.entry.js → p-81aa23d1.entry.js} +1 -1
- package/dist/design-system/{p-c78b8822.entry.js → p-827f067b.entry.js} +1 -1
- package/dist/design-system/p-8a025f91.entry.js +1 -0
- package/dist/design-system/{p-3e62a3ea.entry.js → p-8a84a4fe.entry.js} +1 -1
- package/dist/design-system/{p-d2833150.entry.js → p-8f90620b.entry.js} +1 -1
- package/dist/design-system/{p-a0775a0c.entry.js → p-9124a1af.entry.js} +1 -1
- package/dist/design-system/p-9d35b674.entry.js +1 -0
- package/dist/design-system/p-BJfiMC9H.js +1 -0
- package/dist/design-system/p-CAFz8W8_.js +1 -0
- package/dist/design-system/{p-DGyTYauz.js → p-Cmg10jpN.js} +1 -1
- package/dist/design-system/p-U8VaRj9c.js +1 -0
- package/dist/design-system/{p-c6307ba4.entry.js → p-a263af1b.entry.js} +1 -1
- package/dist/design-system/p-aa312937.entry.js +1 -0
- package/dist/design-system/p-b4b20a86.entry.js +1 -0
- package/dist/design-system/{p-7eb31041.entry.js → p-bbbc4b27.entry.js} +1 -1
- package/dist/design-system/{p-14340e46.entry.js → p-cc5f5bff.entry.js} +1 -1
- package/dist/design-system/{p-8140a225.entry.js → p-d5032f31.entry.js} +1 -1
- package/dist/design-system/{p-6d765b25.entry.js → p-e93dda25.entry.js} +1 -1
- package/dist/design-system/{p-c4e1641b.entry.js → p-f5190934.entry.js} +1 -1
- package/dist/esm/component.listItem-U8VaRj9c.js +50 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/index.js +11 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-button_2.entry.js +54 -0
- package/dist/esm/sd-calendar_2.entry.js +2 -2
- package/dist/esm/sd-chip-input.entry.js +263 -18
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-picker_7.entry.js +9 -9
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +2 -2
- package/dist/esm/sd-dropdown-button.entry.js +17 -7
- package/dist/esm/sd-field_3.entry.js +8 -8
- package/dist/esm/sd-ghost-button_2.entry.js +2 -2
- package/dist/esm/sd-guide.entry.js +1 -1
- package/dist/esm/sd-key-value-table.entry.js +40 -13
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-modal-container.entry.js +8 -1
- package/dist/esm/sd-pagination_4.entry.js +10 -10
- package/dist/esm/sd-popup.entry.js +2 -2
- package/dist/esm/sd-portal.entry.js +16 -12
- package/dist/esm/sd-select-list-item_2.entry.js +8 -7
- package/dist/esm/{sd-select.config-DtrsLG0Z.js → sd-select.config-D6ktrl7E.js} +4 -50
- package/dist/esm/sd-select_3.entry.js +12 -11
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/{sd-table.config-D9meRqTx.js → sd-table.config-B3wuA5wX.js} +1 -1
- package/dist/esm/sd-table.entry.js +12 -11
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-text-link.entry.js +4 -4
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/esm/{system-j2khhcHY.js → system-BJfiMC9H.js} +7 -0
- package/dist/types/components/assets/Bill.d.ts +1 -0
- package/dist/types/components/assets/Coupon.d.ts +1 -0
- package/dist/types/components/assets/Delete.d.ts +1 -0
- package/dist/types/components/assets/Dot.d.ts +1 -0
- package/dist/types/components/assets/Launcher.d.ts +1 -0
- package/dist/types/components/assets/Monitor.d.ts +1 -0
- package/dist/types/components/assets/Shield.d.ts +1 -0
- package/dist/types/components/assets/Sidebar.d.ts +1 -0
- package/dist/types/components/assets/Store.d.ts +1 -0
- package/dist/types/components/assets/index.d.ts +9 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.config.d.ts +24 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +19 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +4 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +1 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +2 -2
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +10 -3
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +2 -0
- package/dist/types/components/sd-portal/sd-portal.d.ts +1 -0
- package/dist/types/components/sd-table/sd-table.d.ts +1 -1
- package/dist/types/components.d.ts +62 -20
- package/dist/types/utils/modal.d.ts +6 -0
- package/hydrate/index.js +576 -213
- package/hydrate/index.mjs +576 -213
- package/package.json +3 -3
- package/dist/components/p-6oSCGUOo.js +0 -1
- package/dist/components/p-BWoC-hMr.js +0 -1
- package/dist/components/p-C5wgHjtx.js +0 -1
- package/dist/components/p-Cftyepf_.js +0 -1
- package/dist/components/p-IgBxAXyL.js +0 -1
- package/dist/components/p-j2khhcHY.js +0 -1
- package/dist/design-system/p-0c5192b8.entry.js +0 -1
- package/dist/design-system/p-13b0db59.entry.js +0 -1
- package/dist/design-system/p-1652ae55.entry.js +0 -1
- package/dist/design-system/p-21fa7f85.entry.js +0 -1
- package/dist/design-system/p-2753c6c9.entry.js +0 -1
- package/dist/design-system/p-56a45ef9.entry.js +0 -1
- package/dist/design-system/p-71739336.entry.js +0 -1
- package/dist/design-system/p-DtrsLG0Z.js +0 -1
- package/dist/design-system/p-b22cb811.entry.js +0 -1
- package/dist/design-system/p-b576bc21.entry.js +0 -1
- package/dist/design-system/p-c1f71355.entry.js +0 -1
- package/dist/design-system/p-da90b448.entry.js +0 -1
- package/dist/design-system/p-j2khhcHY.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var index = require('./index-DXm0PH2A.js');
|
|
4
4
|
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
5
5
|
var sdButton_config = require('./sd-button.config-eTAJM2iW.js');
|
|
6
|
-
var system = require('./system-
|
|
6
|
+
var system = require('./system-MjrAugX-.js');
|
|
7
7
|
|
|
8
8
|
class DropdownManager {
|
|
9
9
|
static instance;
|
|
@@ -143,6 +143,13 @@ const DROPDOWN_CHEVRON_ICON_SIZE = {
|
|
|
143
143
|
sm: 12,
|
|
144
144
|
md: 16,
|
|
145
145
|
};
|
|
146
|
+
// 버튼 자체의 min-width (px). split 여부에 따라 chevron 버튼이 추가되므로 별도 값을 지정.
|
|
147
|
+
// TODO: 디자인 토큰으로 관리될 때 대체 예정
|
|
148
|
+
const DROPDOWN_BUTTON_MIN_WIDTH = {
|
|
149
|
+
xs: { default: 44, split: 60 },
|
|
150
|
+
sm: { default: 70, split: 76 },
|
|
151
|
+
md: { default: 100, split: 106 },
|
|
152
|
+
};
|
|
146
153
|
const DROPDOWN_DISABLED_BACKGROUND = sdButton_config.buttonTokens.button.bg.disabled;
|
|
147
154
|
const DROPDOWN_DISABLED_TEXT = sdButton_config.buttonTokens.button.text.disabled;
|
|
148
155
|
const DROPDOWN_DISABLED_ICON = sdButton_config.buttonTokens.button.icon.disabled;
|
|
@@ -171,6 +178,7 @@ const SdDropdownButton = class extends BaseDropdownEvent {
|
|
|
171
178
|
isAnimatingOut = false;
|
|
172
179
|
itemIndex = -1;
|
|
173
180
|
triggerRef;
|
|
181
|
+
splitContainerRef;
|
|
174
182
|
menuRef;
|
|
175
183
|
closeAnimationTimer;
|
|
176
184
|
click;
|
|
@@ -349,10 +357,11 @@ const SdDropdownButton = class extends BaseDropdownEvent {
|
|
|
349
357
|
return classes.join(' ');
|
|
350
358
|
}
|
|
351
359
|
renderDropdown(preset) {
|
|
352
|
-
|
|
360
|
+
const anchorRef = this.split ? this.splitContainerRef : this.triggerRef;
|
|
361
|
+
if ((!this.isOpen && !this.isAnimatingOut) || !anchorRef)
|
|
353
362
|
return null;
|
|
354
|
-
return (index.h("sd-portal", { open: this.isOpen, parentRef:
|
|
355
|
-
'--sd-dropdown-button-menu-min-width': `${
|
|
363
|
+
return (index.h("sd-portal", { open: this.isOpen, parentRef: anchorRef, onSdClose: this.closeDropdown }, index.h("div", { class: "sd-dropdown-button__menu", role: "menu", ref: el => (this.menuRef = el), style: {
|
|
364
|
+
'--sd-dropdown-button-menu-min-width': `${anchorRef.offsetWidth}px`,
|
|
356
365
|
'--sd-dropdown-button-menu-item-color': PRESET_MENU_ITEM_COLORS[preset],
|
|
357
366
|
'--sd-dropdown-button-menu-item-active-bg': PRESET_MENU_ITEM_ACTIVE_BACKGROUNDS[preset],
|
|
358
367
|
'--sd-dropdown-button-menu-item-active-color': PRESET_MENU_ITEM_ACTIVE_COLORS[preset],
|
|
@@ -366,7 +375,7 @@ const SdDropdownButton = class extends BaseDropdownEvent {
|
|
|
366
375
|
this.itemIndex = index$1;
|
|
367
376
|
}
|
|
368
377
|
} }, item.icon && (index.h("sd-icon", { class: "sd-dropdown-button__menu-item-icon", name: item.icon, size: 12, color: "var(--sd-dropdown-button-menu-item-current-color)" })), index.h("span", { class: "sd-dropdown-button__menu-item-label", innerHTML: sanitizeInlineHtml.sanitizeInlineHtml(item.label) })));
|
|
369
|
-
}))))
|
|
378
|
+
}))));
|
|
370
379
|
}
|
|
371
380
|
renderChevron(size) {
|
|
372
381
|
const iconName = this.split ? 'etc' : 'caretDown';
|
|
@@ -378,10 +387,11 @@ const SdDropdownButton = class extends BaseDropdownEvent {
|
|
|
378
387
|
render() {
|
|
379
388
|
const { config, preset } = this.resolvedConfig;
|
|
380
389
|
const triggerStyle = this.getTriggerStyle(config, preset);
|
|
390
|
+
const minWidth = DROPDOWN_BUTTON_MIN_WIDTH[config.size];
|
|
381
391
|
if (this.split) {
|
|
382
|
-
return (index.h("div", { class: "sd-dropdown-button sd-dropdown-button--split" }, index.h("button", { type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen, 'label'), disabled: this.disabled, onClick: this.handleButtonClick, style: triggerStyle }, index.h("span", { class: "sd-dropdown-button__trigger-label" }, this.label)), index.h("button", { type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen, 'chevron'), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), "aria-label": "dropdown toggle", onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: triggerStyle }, this.renderChevron(config.size)), this.renderDropdown(preset)));
|
|
392
|
+
return (index.h("div", { class: "sd-dropdown-button sd-dropdown-button--split", ref: el => (this.splitContainerRef = el), style: { minWidth: `${minWidth.split}px` } }, index.h("button", { type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen, 'label'), disabled: this.disabled, onClick: this.handleButtonClick, style: triggerStyle }, index.h("span", { class: "sd-dropdown-button__trigger-label" }, this.label)), index.h("button", { type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen, 'chevron'), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), "aria-label": "dropdown toggle", onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: triggerStyle }, this.renderChevron(config.size)), this.renderDropdown(preset)));
|
|
383
393
|
}
|
|
384
|
-
return (index.h("div", { class: "sd-dropdown-button" }, index.h("button", { type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: triggerStyle }, index.h("span", { class: "sd-dropdown-button__trigger-label" }, this.label), this.renderChevron(config.size)), this.renderDropdown(preset)));
|
|
394
|
+
return (index.h("div", { class: "sd-dropdown-button" }, index.h("button", { type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: { ...triggerStyle, minWidth: `${minWidth.default}px` } }, index.h("span", { class: "sd-dropdown-button__trigger-label" }, this.label), this.renderChevron(config.size)), this.renderDropdown(preset)));
|
|
385
395
|
}
|
|
386
396
|
static get watchers() { return {
|
|
387
397
|
"isOpen": [{
|
|
@@ -216,21 +216,21 @@ const SdField = class {
|
|
|
216
216
|
: {}),
|
|
217
217
|
}
|
|
218
218
|
: {};
|
|
219
|
-
return (index.h("div", { key: '
|
|
219
|
+
return (index.h("div", { key: '9edafceb24a4fcde7cfb966f421bfb73f1b07617', class: {
|
|
220
220
|
'sd-field': true,
|
|
221
221
|
'sd-field--has-label': this.label !== '',
|
|
222
222
|
'sd-field--has-addon': addon !== '',
|
|
223
223
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
224
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, index.h("div", { key: '
|
|
224
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, index.h("div", { key: 'e5c4a8aad05afb40f3eccc492135b2b968ffc646', class: "sd-field__wrapper" }, this.renderLabel(this.label), index.h("div", { key: 'e88d62a979eaab9f6794c851813e5f56c3c5c4ac', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
225
225
|
? {
|
|
226
226
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
227
227
|
flex: 'none',
|
|
228
228
|
}
|
|
229
|
-
: {} }, index.h("div", { key: '
|
|
229
|
+
: {} }, index.h("div", { key: 'be69d7e48d90dda0872ffc43c2a1b4044e99ac00', class: {
|
|
230
230
|
'sd-field__control': true,
|
|
231
231
|
'sd-field__control--has-addon': addon !== '',
|
|
232
|
-
} }, addon && (index.h("div", { key: '
|
|
233
|
-
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)), index.h("slot", { key: '
|
|
232
|
+
} }, addon && (index.h("div", { key: '2c631ac0f8b9001cf6344908cf8cbcdf182cc1a7', class: "sd-field__addon" }, this.icon && (index.h("sd-icon", { key: '34a49839ee200cd59c3ff5b84caf5ded2c50f7b0', name: this.icon.name, size: this.icon.size ??
|
|
233
|
+
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)), index.h("slot", { key: '693f20c529e5f2ea84d381e59327392edb7b4c15' })), this.errorMsg !== '' || this.errorMessage !== '' ? (index.h("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && index.h("div", { class: "sd-field__hint" }, this.hint))))));
|
|
234
234
|
}
|
|
235
235
|
renderLabel(label) {
|
|
236
236
|
if (label == null || label === '')
|
|
@@ -400,7 +400,7 @@ const SdFloatingPopover = class {
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
render() {
|
|
403
|
-
return index.h("slot", { key: '
|
|
403
|
+
return index.h("slot", { key: 'f20806555ad198c33a62ec938ea7b77200fa1585' });
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
SdFloatingPopover.style = sdFloatingPortalCss();
|
|
@@ -562,7 +562,7 @@ const SdTooltip = class {
|
|
|
562
562
|
const bodyHTML = this.message && this.message.length > 0
|
|
563
563
|
? this.message.map(line => `<div>${line}</div>`).join('')
|
|
564
564
|
: this.slotContentHTML;
|
|
565
|
-
return (index.h(index.Fragment, { key: '
|
|
565
|
+
return (index.h(index.Fragment, { key: 'c0d000057ed61fe7b6b4d92bc0df5e0c6d42d714' }, index.h("div", { key: '4ae084008ddec50e912fa81efbe3adbe0428d7ea', ref: el => (this.triggerEl = el), class: triggerClasses, ...divTrigger }, anchorMode ? (index.h("slot", { name: "anchor" })) : hasLabel ? (index.h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-tooltip", ...buttonClickTrigger })) : (index.h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (index.h("sd-floating-portal", { key: 'd5a8718b4e4556b989e5439b89296a259d99c636', parentRef: anchorMode ? this.triggerEl : this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, index.h("div", { key: 'e81f2704ddbc90a19c1e8dd0c4660c4b057ca895', ref: el => (this.menuEl = el), class: {
|
|
566
566
|
'sd-floating-menu': true,
|
|
567
567
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
568
568
|
[`sd-floating-menu--${placement}`]: true,
|
|
@@ -570,7 +570,7 @@ const SdTooltip = class {
|
|
|
570
570
|
}, style: {
|
|
571
571
|
'--sd-floating-bg': typeConfig.bg,
|
|
572
572
|
'--sd-floating-content': typeConfig.content,
|
|
573
|
-
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, index.h("i", { key: '
|
|
573
|
+
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, index.h("i", { key: '735cfb9956644542afb3b9f65aea127c37d756b2', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, index.h(tooltipArrow.TooltipArrow, { key: '53bac0c98b652b580b53b206d3da77deac0eea77' })), index.h("div", { key: '50c55e606002225363364ca6b5238a55a25374ba', class: "sd-floating-menu__content", innerHTML: bodyHTML }), this.useClose && (index.h("sd-ghost-button", { key: '7ab15f030aef1ecda2a3be0c08af2c7ab4992f1c', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xxs", onClick: () => this.closeTooltip() })))))));
|
|
574
574
|
}
|
|
575
575
|
};
|
|
576
576
|
SdTooltip.style = sdTooltipCss();
|
|
@@ -388,7 +388,7 @@ const SdTag = class {
|
|
|
388
388
|
render() {
|
|
389
389
|
const config = this.resolvedConfig;
|
|
390
390
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
391
|
-
return (index.h("span", { key: '
|
|
391
|
+
return (index.h("span", { key: 'b4d86dee7290a74d73fd27a9a4133c5c0ef9b750', class: "sd-tag", style: {
|
|
392
392
|
'--sd-tag-background': config.background,
|
|
393
393
|
'--sd-tag-content': config.content,
|
|
394
394
|
'--sd-tag-height': config.height,
|
|
@@ -398,7 +398,7 @@ const SdTag = class {
|
|
|
398
398
|
'--sd-tag-font-weight': config.fontWeight,
|
|
399
399
|
'--sd-tag-line-height': config.lineHeight,
|
|
400
400
|
'--sd-tag-radius': config.radius,
|
|
401
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '
|
|
401
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '490c703ca9ce3d0516b1da89fec18045a750d715', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
SdTag.style = sdTagCss();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DXm0PH2A.js');
|
|
4
|
-
var system = require('./system-
|
|
4
|
+
var system = require('./system-MjrAugX-.js');
|
|
5
5
|
var component_table = require('./component.table-DIxmbGBT.js');
|
|
6
6
|
|
|
7
7
|
const t = component_table.tableTokens.table;
|
|
@@ -9,8 +9,8 @@ const KEY_VALUE_TABLE_LAYOUT = {
|
|
|
9
9
|
rowHeight: Number(t.keyValue.height),
|
|
10
10
|
thWidth: 120,
|
|
11
11
|
borderRadius: Number(t.radius),
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
thPaddingX: Number(t.header.paddingX),
|
|
13
|
+
padding: Number(t.keyValue.body.padding),
|
|
14
14
|
helpIconSize: 16,
|
|
15
15
|
requiredIconSize: 12,
|
|
16
16
|
gap: Number(t.header.gap),
|
|
@@ -31,7 +31,7 @@ const KEY_VALUE_TABLE_COLORS = {
|
|
|
31
31
|
const KEY_VALUE_TABLE_TYPOGRAPHY = {
|
|
32
32
|
labelFontFamily: t.header.typography.fontFamily,
|
|
33
33
|
labelFontSize: Number(t.header.typography.fontSize),
|
|
34
|
-
labelFontWeight:
|
|
34
|
+
labelFontWeight: 700,
|
|
35
35
|
labelLineHeight: Number(t.header.typography.lineHeight),
|
|
36
36
|
tdFontFamily: t.body.typography.fontFamily,
|
|
37
37
|
tdFontSize: Number(t.body.typography.fontSize),
|
|
@@ -39,7 +39,7 @@ const KEY_VALUE_TABLE_TYPOGRAPHY = {
|
|
|
39
39
|
tdLineHeight: Number(t.body.typography.lineHeight),
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
const sdKeyValueTableCss = () => `sd-key-value-table{display:block}sd-key-value-table .sd-key-value-table__wrapper{display:flex;align-items:stretch;width:100%;border:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);border-radius:var(--sd-kvt-radius);overflow:hidden}sd-key-value-table .sd-key-value-table__wrapper .sd-key-value-table{flex:1 1 auto;border:0;border-radius:0}sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--
|
|
42
|
+
const sdKeyValueTableCss = () => `sd-key-value-table{display:block}sd-key-value-table .sd-key-value-table__wrapper{display:flex;align-items:stretch;width:100%;border:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);border-radius:var(--sd-kvt-radius);overflow:hidden}sd-key-value-table .sd-key-value-table__wrapper .sd-key-value-table{flex:1 1 auto;border:0;border-radius:0}sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--radius-usetop{border-top-left-radius:0;border-top-right-radius:0}sd-key-value-table .sd-key-value-table__wrapper.sd-key-value-table__wrapper--radius-full{border-radius:0}sd-key-value-table .sd-key-value-table__search-panel{display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding:var(--sd-kvt-padding) var(--sd-kvt-search-padding-x);background:var(--sd-kvt-search-bg);border-left:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color)}sd-key-value-table .sd-key-value-table{width:100%;table-layout:fixed;border:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color);border-radius:var(--sd-kvt-radius);border-collapse:separate;border-spacing:0;overflow:hidden}sd-key-value-table .sd-key-value-table.sd-key-value-table--radius-usetop{border-top-left-radius:0;border-top-right-radius:0}sd-key-value-table .sd-key-value-table.sd-key-value-table--radius-full{border-radius:0}sd-key-value-table .sd-key-value-table__th,sd-key-value-table .sd-key-value-table__td{height:var(--sd-kvt-row-height);box-sizing:border-box;vertical-align:middle;text-align:left;font-weight:normal;border-top:var(--sd-kvt-border-width) solid var(--sd-kvt-border-color)}sd-key-value-table .sd-key-value-table tbody>tr:first-child>.sd-key-value-table__th,sd-key-value-table .sd-key-value-table tbody>tr:first-child>.sd-key-value-table__td{border-top:0}sd-key-value-table .sd-key-value-table__th{padding:var(--sd-kvt-padding) var(--sd-kvt-th-padding-x);width:var(--sd-kvt-th-width);background:var(--sd-kvt-th-bg);color:var(--sd-kvt-th-color)}sd-key-value-table .sd-key-value-table__th-inner{display:flex;align-items:center;justify-content:space-between;gap:var(--sd-kvt-gap);width:100%;height:100%}sd-key-value-table .sd-key-value-table__label{display:inline-flex;align-items:center;gap:var(--sd-kvt-label-gap);font-family:var(--sd-kvt-label-font-family);font-size:var(--sd-kvt-label-font-size);font-weight:var(--sd-kvt-label-font-weight);line-height:var(--sd-kvt-label-line-height);color:var(--sd-kvt-th-color)}sd-key-value-table .sd-key-value-table__required{display:inline-flex;align-items:center;flex-shrink:0}sd-key-value-table .sd-key-value-table__help{display:inline-flex;align-items:center;flex-shrink:0}sd-key-value-table .sd-key-value-table__td{padding:var(--sd-kvt-padding);background:var(--sd-kvt-td-bg);color:var(--sd-kvt-td-color)}sd-key-value-table .sd-key-value-table__td-inner{display:flex;align-items:center;width:100%;height:100%}sd-key-value-table .sd-key-value-table__td-inner>slot{display:block;flex:1 1 auto;min-width:0}sd-key-value-table .sd-key-value-table__td-inner sd-input,sd-key-value-table .sd-key-value-table__td-inner sd-textarea,sd-key-value-table .sd-key-value-table__td-inner sd-number-input,sd-key-value-table .sd-key-value-table__td-inner sd-select,sd-key-value-table .sd-key-value-table__td-inner sd-date-picker,sd-key-value-table .sd-key-value-table__td-inner sd-date-range-picker,sd-key-value-table .sd-key-value-table__td-inner sd-file-picker{width:100%}sd-key-value-table .sd-key-value-table__text{font-family:var(--sd-kvt-td-font-family);font-size:var(--sd-kvt-td-font-size);font-weight:var(--sd-kvt-td-font-weight);line-height:var(--sd-kvt-td-line-height);color:var(--sd-kvt-td-color)}`;
|
|
43
43
|
|
|
44
44
|
const SdKeyValueTable = class {
|
|
45
45
|
constructor(hostRef) {
|
|
@@ -57,10 +57,12 @@ const SdKeyValueTable = class {
|
|
|
57
57
|
*/
|
|
58
58
|
search = false;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
60
|
+
* 테이블 border-radius 제어.
|
|
61
|
+
* - 'default': 전체 radius 적용
|
|
62
|
+
* - 'usetop': 상단 radius 0 (헤더·탭 등 하단에 붙여 쓸 때)
|
|
63
|
+
* - 'full': 상하단 모두 radius 0 (요소 사이에 끼워 쓸 때)
|
|
62
64
|
*/
|
|
63
|
-
|
|
65
|
+
radius = 'default';
|
|
64
66
|
change;
|
|
65
67
|
searchEvent;
|
|
66
68
|
emit = (name, value) => {
|
|
@@ -147,6 +149,28 @@ const SdKeyValueTable = class {
|
|
|
147
149
|
});
|
|
148
150
|
return max;
|
|
149
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* thStyle의 CSS 속성 값을 해당 CSS 변수로도 반영.
|
|
154
|
+
* label span이 var()로 스타일을 참조하기 때문에, 인라인 스타일만으로는 상속이 되지 않음.
|
|
155
|
+
*/
|
|
156
|
+
buildThStyle(thStyle) {
|
|
157
|
+
const s = { ...thStyle };
|
|
158
|
+
if (thStyle.color != null)
|
|
159
|
+
s['--sd-kvt-th-color'] = thStyle.color;
|
|
160
|
+
if (thStyle.background != null)
|
|
161
|
+
s['--sd-kvt-th-bg'] = thStyle.background;
|
|
162
|
+
if (thStyle.backgroundColor != null)
|
|
163
|
+
s['--sd-kvt-th-bg'] = thStyle.backgroundColor;
|
|
164
|
+
if (thStyle.fontFamily != null)
|
|
165
|
+
s['--sd-kvt-label-font-family'] = thStyle.fontFamily;
|
|
166
|
+
if (thStyle.fontSize != null)
|
|
167
|
+
s['--sd-kvt-label-font-size'] = thStyle.fontSize;
|
|
168
|
+
if (thStyle.fontWeight != null)
|
|
169
|
+
s['--sd-kvt-label-font-weight'] = thStyle.fontWeight;
|
|
170
|
+
if (thStyle.lineHeight != null)
|
|
171
|
+
s['--sd-kvt-label-line-height'] = thStyle.lineHeight;
|
|
172
|
+
return s;
|
|
173
|
+
}
|
|
150
174
|
renderTh(field, r, c) {
|
|
151
175
|
const thRowSpan = field.thRowSpan != null && field.thRowSpan > 1 ? field.thRowSpan : undefined;
|
|
152
176
|
const thColSpan = field.thColSpan != null && field.thColSpan > 1 ? field.thColSpan : undefined;
|
|
@@ -157,7 +181,8 @@ const SdKeyValueTable = class {
|
|
|
157
181
|
else if (Array.isArray(field.thClass)) {
|
|
158
182
|
field.thClass.forEach(cls => (classObj[cls] = true));
|
|
159
183
|
}
|
|
160
|
-
|
|
184
|
+
const thStyle = field.thStyle != null ? this.buildThStyle(field.thStyle) : undefined;
|
|
185
|
+
return (index.h("th", { key: `th-${r}-${c}`, class: classObj, style: thStyle, scope: "row", rowSpan: thRowSpan, colSpan: thColSpan }, index.h("div", { class: "sd-key-value-table__th-inner" }, index.h("span", { class: "sd-key-value-table__label" }, field.label, field.required && (index.h("sd-icon", { class: "sd-key-value-table__required", name: "star", size: KEY_VALUE_TABLE_LAYOUT.requiredIconSize, color: KEY_VALUE_TABLE_COLORS.required, label: "required" }))), field.helpText && this.renderHelpIcon(field.helpText))));
|
|
161
186
|
}
|
|
162
187
|
renderTd(field, r, c) {
|
|
163
188
|
const tdRowSpan = field.tdRowSpan != null && field.tdRowSpan > 1 ? field.tdRowSpan : undefined;
|
|
@@ -185,8 +210,8 @@ const SdKeyValueTable = class {
|
|
|
185
210
|
'--sd-kvt-row-height': `${KEY_VALUE_TABLE_LAYOUT.rowHeight}px`,
|
|
186
211
|
'--sd-kvt-th-width': `${KEY_VALUE_TABLE_LAYOUT.thWidth}px`,
|
|
187
212
|
'--sd-kvt-radius': `${KEY_VALUE_TABLE_LAYOUT.borderRadius}px`,
|
|
188
|
-
'--sd-kvt-padding-x': `${KEY_VALUE_TABLE_LAYOUT.
|
|
189
|
-
'--sd-kvt-padding
|
|
213
|
+
'--sd-kvt-th-padding-x': `${KEY_VALUE_TABLE_LAYOUT.thPaddingX}px`,
|
|
214
|
+
'--sd-kvt-padding': `${KEY_VALUE_TABLE_LAYOUT.padding}px`,
|
|
190
215
|
'--sd-kvt-gap': `${KEY_VALUE_TABLE_LAYOUT.gap}px`,
|
|
191
216
|
'--sd-kvt-label-gap': `${KEY_VALUE_TABLE_LAYOUT.labelGap}px`,
|
|
192
217
|
'--sd-kvt-border-width': `${KEY_VALUE_TABLE_LAYOUT.borderWidth}px`,
|
|
@@ -212,7 +237,8 @@ const SdKeyValueTable = class {
|
|
|
212
237
|
const maxCols = this.computeMaxCols(autoSkip);
|
|
213
238
|
const tableEl = (index.h("table", { class: {
|
|
214
239
|
'sd-key-value-table': true,
|
|
215
|
-
'sd-key-value-table--
|
|
240
|
+
'sd-key-value-table--radius-usetop': this.radius === 'usetop',
|
|
241
|
+
'sd-key-value-table--radius-full': this.radius === 'full',
|
|
216
242
|
}, style: cssVars }, index.h("colgroup", null, Array.from({ length: maxCols }, (_, i) => {
|
|
217
243
|
if (i % 2 !== 0)
|
|
218
244
|
return index.h("col", { key: `col-${i}` });
|
|
@@ -236,7 +262,8 @@ const SdKeyValueTable = class {
|
|
|
236
262
|
return tableEl;
|
|
237
263
|
return (index.h("div", { class: {
|
|
238
264
|
'sd-key-value-table__wrapper': true,
|
|
239
|
-
'sd-key-value-table__wrapper--
|
|
265
|
+
'sd-key-value-table__wrapper--radius-usetop': this.radius === 'usetop',
|
|
266
|
+
'sd-key-value-table__wrapper--radius-full': this.radius === 'full',
|
|
240
267
|
}, style: cssVars }, tableEl, index.h("div", { class: "sd-key-value-table__search-panel" }, index.h("sd-button", { label: "\uAC80\uC0C9", name: "neutral_outline_md", onSdClick: this.handleSearchClick }))));
|
|
241
268
|
}
|
|
242
269
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DXm0PH2A.js');
|
|
4
4
|
var component_progress = require('./component.progress-Bmg3vAAy.js');
|
|
5
|
-
var system = require('./system-
|
|
5
|
+
var system = require('./system-MjrAugX-.js');
|
|
6
6
|
|
|
7
7
|
const LINEAR_PROGRESS_COLORS = {
|
|
8
8
|
track: component_progress.progressTokens.progress.color.track,
|
|
@@ -49,7 +49,7 @@ const SdLinearProgress = class {
|
|
|
49
49
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
50
50
|
};
|
|
51
51
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
52
|
-
return (index.h(index.Host, { key: '
|
|
52
|
+
return (index.h(index.Host, { key: '26b1e15732e289a9a37a6d3dbea24aec1ab60ffd', style: hostStyle }, index.h("div", { key: '5162d60390656286b56f6a96fd4b3932f399412a', class: 'sd-linear-progress__track' }, index.h("div", { key: 'a46b815f935b243e4b7f8988af65167e3f87b554', class: 'sd-linear-progress__fill', style: fillStyle }), !this.indeterminate && (index.h("span", { key: 'bc91914addd5addb84c7684a1f862033950905fc', class: 'sd-linear-progress__value sd-linear-progress__value--on-track' }, valueText)), !this.indeterminate && (index.h("span", { key: 'c62cdc59464823286ff42fc7e97a7a255a2beeb4', class: 'sd-linear-progress__value sd-linear-progress__value--on-fill', style: valueOnFillStyle }, valueText))), this.label && index.h("span", { key: '4c7c280885c8411329f99c3fe04f5ede8b1f0708', class: 'sd-linear-progress__label' }, this.label)));
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
SdLinearProgress.style = sdLinearProgressCss();
|
|
@@ -18,10 +18,10 @@ const SdLoadingContainer = class {
|
|
|
18
18
|
this.visible = false;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h("div", { key: '
|
|
21
|
+
return (index.h("div", { key: '2ad17acec76cfb7ceba0629f055600a7240a67e8', class: {
|
|
22
22
|
'sd-loading-container': true,
|
|
23
23
|
'sd-loading-container--visible': this.visible,
|
|
24
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, index.h("div", { key: '
|
|
24
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, index.h("div", { key: '1e842f21f2990b22820974147b22d859be010683', class: "sd-loading-container__backdrop" }), index.h("div", { key: '4a48bafd9882a22c210dd1b2ca45efc43cc0c8da', class: "sd-loading-container__content" }, index.h("sd-circle-progress", { key: '8eb7377230f0e8c9c482dfc9ca1313f323895d14', indeterminate: true, type: "inverse" }), this.message && (index.h("p", { key: 'af2fc52b0740ee1d2cea55b688e5b4b77e80c7e3', class: "sd-loading-container__message" }, this.message)))));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
SdLoadingContainer.style = sdLoadingContainerCss();
|
|
@@ -117,7 +117,14 @@ const SdModalContainer = class {
|
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
attachModalEventListeners(id, modalEl) {
|
|
120
|
-
modalEl.addEventListener('sdOk', () =>
|
|
120
|
+
modalEl.addEventListener('sdOk', () => {
|
|
121
|
+
const entry = this.entries.find(e => e.id === id);
|
|
122
|
+
if (entry?.modalRef._hasSubmit?.()) {
|
|
123
|
+
entry.modalRef._triggerSubmit?.();
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
this.requestDismiss(id, 'confirm');
|
|
127
|
+
});
|
|
121
128
|
modalEl.addEventListener('sdCancel', () => this.requestDismiss(id, 'cancel'));
|
|
122
129
|
modalEl.addEventListener('sdClose', () => this.requestDismiss(id, 'close'));
|
|
123
130
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DXm0PH2A.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
|
-
var sdTable_config = require('./sd-table.config-
|
|
5
|
+
var sdTable_config = require('./sd-table.config-B7MuRLoR.js');
|
|
6
6
|
require('./component.table-DIxmbGBT.js');
|
|
7
|
-
require('./system-
|
|
7
|
+
require('./system-MjrAugX-.js');
|
|
8
8
|
|
|
9
9
|
const pagination = {
|
|
10
10
|
height: "24",
|
|
@@ -154,13 +154,13 @@ const SdPagination = class {
|
|
|
154
154
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
155
155
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
156
156
|
};
|
|
157
|
-
return (index.h("div", { key: '
|
|
157
|
+
return (index.h("div", { key: 'c1925f0f312cf5c18f08f158efb599e5b6f0d503', class: {
|
|
158
158
|
'sd-pagination': true,
|
|
159
159
|
'sd-pagination--simple': this.simple,
|
|
160
|
-
}, style: cssVars }, index.h("div", { key: '
|
|
160
|
+
}, style: cssVars }, index.h("div", { key: '1f22be76697820bf455cea5476efa84a09d03c44', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (index.h("div", { class: "sd-pagination__info" }, index.h("span", { class: "sd-pagination__current" }, this.currentPage), index.h("span", { class: "sd-pagination__divider" }, "/"), index.h("span", { class: "sd-pagination__last" }, this.lastPage))) : (index.h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (index.h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
161
161
|
'sd-pagination__item': true,
|
|
162
162
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
163
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), index.h("div", { key: '
|
|
163
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), index.h("div", { key: 'b85b00b637152d5071db0652b6682541fbfd6ab5', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
166
|
SdPagination.style = sdPaginationCss();
|
|
@@ -215,9 +215,9 @@ const SdTbody = class {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
render() {
|
|
218
|
-
return (index.h(index.Host, { key: '
|
|
218
|
+
return (index.h(index.Host, { key: '1f9dba3a06233de0457c6fe7d2df39e0e406fb30', slot: `${this.tableId}-body` }, index.h("tbody", { key: '758d795512ff546ec23863a1b9a0940f5d0f445a', class: { tbody: true } }, [
|
|
219
219
|
this.topSpacerHeight > 0 && (index.h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
220
|
-
index.h("slot", { key: '
|
|
220
|
+
index.h("slot", { key: 'cd9755c4f082478b1e75a6efcf9b4e7a9a9767b4' }),
|
|
221
221
|
this.bottomSpacerHeight > 0 && (index.h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
222
222
|
])));
|
|
223
223
|
}
|
|
@@ -392,16 +392,16 @@ const SdThead = class {
|
|
|
392
392
|
'--table-border-color': sdTable_config.TABLE_BORDER.color,
|
|
393
393
|
'--table-border-width': `${sdTable_config.TABLE_BORDER.width}px`,
|
|
394
394
|
};
|
|
395
|
-
return (index.h(index.Host, { key: '
|
|
395
|
+
return (index.h(index.Host, { key: '1e352d3996dc6cd60acd20c22c8c426edabaa9ea', slot: `${this.tableId}-head`, style: headStyle }, index.h("thead", { key: 'd76dbdd5b03096197fe09d69c198ab3a5892106c', class: {
|
|
396
396
|
'thead': true,
|
|
397
397
|
'thead--sticky': this._stickyHeader,
|
|
398
|
-
} }, index.h("tr", { key: '
|
|
398
|
+
} }, index.h("tr", { key: 'fb0c1f8ff93ddb8682b07e9b4f55eaf56b1be41a', class: "tr" }, this._selectable && (index.h("th", { key: 'a53b9771dbec3ef7f3888bf9fc9393c683356c50', class: {
|
|
399
399
|
'th': true,
|
|
400
400
|
'th--selected': true,
|
|
401
401
|
'sticky-left': true,
|
|
402
402
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
403
403
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
404
|
-
}, style: { '--sticky-left-offset': '0px' } }, index.h("sd-checkbox", { key: '
|
|
404
|
+
}, style: { '--sticky-left-offset': '0px' } }, index.h("sd-checkbox", { key: '8dc233b34b68a5daca91a60364ec8faffeb4b21d', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), index.h("div", { key: 'bfc496c2468f3f81c1db4ffe70584a9229bd3512', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (index.h("th", { key: col.name, class: {
|
|
405
405
|
'th': true,
|
|
406
406
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
407
407
|
'sticky-left': true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DXm0PH2A.js');
|
|
4
|
-
var system = require('./system-
|
|
4
|
+
var system = require('./system-MjrAugX-.js');
|
|
5
5
|
|
|
6
6
|
const popup$1 = {
|
|
7
7
|
header: {
|
|
@@ -105,7 +105,7 @@ const SdPopup = class {
|
|
|
105
105
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
106
106
|
...this.submitButtonProps,
|
|
107
107
|
};
|
|
108
|
-
return (index.h("div", { key: '
|
|
108
|
+
return (index.h("div", { key: 'a978706454e3964818cc96b3a583880b952c2533', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, index.h("header", { key: '1164fc29d4040d51b74ebc45fedc4fd19038e900', class: "sd-popup__header" }, index.h("h2", { key: '6ac1ea61e52f952f3bea4c4149222b4ff43b61db', class: "sd-popup__title" }, this.popupTitle)), index.h("div", { key: 'fe8cebfc5ea513ae07e3a2987a8c7d9b36ed26e9', class: "sd-popup__body" }, index.h("slot", { key: 'f7ce06ae60cc8af6dbae2b24db4fd6b00e13d365' })), this.useFooter && (index.h("footer", { key: '84251ae1e48522fcf47d0081c9c0689e5fb236a6', class: "sd-popup__footer" }, index.h("div", { key: 'c7d4a8546bd185c812a98569cc3b2a818cbb2963', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, index.h("slot", { key: '474e09481472b96ff4eacc66502aa06987b463b8', name: "footer-left" })), index.h("sd-button", { key: '2b23204ffad997f022dd06b772433ceb69950d04', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
SdPopup.style = sdPopupCss();
|
|
@@ -55,7 +55,7 @@ const SdPortal = class {
|
|
|
55
55
|
createWrapper() {
|
|
56
56
|
this.wrapper = document.createElement('div');
|
|
57
57
|
Object.assign(this.wrapper.style, {
|
|
58
|
-
position: '
|
|
58
|
+
position: 'fixed',
|
|
59
59
|
top: '0',
|
|
60
60
|
left: '0',
|
|
61
61
|
zIndex: (this.zIndex ?? 998).toString(),
|
|
@@ -129,13 +129,13 @@ const SdPortal = class {
|
|
|
129
129
|
const wrapperRect = this.wrapper.getBoundingClientRect();
|
|
130
130
|
const availableBelow = viewport.height - parentRect.bottom - offset[1] - viewportPadding;
|
|
131
131
|
const availableAbove = parentRect.top - offset[1] - viewportPadding;
|
|
132
|
-
let top = parentRect.bottom +
|
|
133
|
-
let left = parentRect.left +
|
|
132
|
+
let top = parentRect.bottom + offset[1];
|
|
133
|
+
let left = parentRect.left + offset[0];
|
|
134
134
|
if (availableBelow < wrapperRect.height && availableAbove > availableBelow) {
|
|
135
|
-
top = parentRect.top
|
|
135
|
+
top = parentRect.top - wrapperRect.height - offset[1];
|
|
136
136
|
}
|
|
137
|
-
const minTop =
|
|
138
|
-
const maxTop =
|
|
137
|
+
const minTop = viewportPadding;
|
|
138
|
+
const maxTop = viewport.height - viewportPadding - wrapperRect.height;
|
|
139
139
|
if (maxTop < minTop) {
|
|
140
140
|
top = minTop;
|
|
141
141
|
}
|
|
@@ -143,10 +143,10 @@ const SdPortal = class {
|
|
|
143
143
|
top = Math.min(Math.max(top, minTop), maxTop);
|
|
144
144
|
}
|
|
145
145
|
if (parentRect.left + wrapperRect.width + offset[0] > viewport.width - viewportPadding) {
|
|
146
|
-
left = parentRect.right
|
|
146
|
+
left = parentRect.right - wrapperRect.width - offset[0];
|
|
147
147
|
}
|
|
148
|
-
const minLeft =
|
|
149
|
-
const maxLeft =
|
|
148
|
+
const minLeft = viewportPadding;
|
|
149
|
+
const maxLeft = viewport.width - viewportPadding - wrapperRect.width;
|
|
150
150
|
if (maxLeft < minLeft) {
|
|
151
151
|
left = minLeft;
|
|
152
152
|
}
|
|
@@ -213,21 +213,25 @@ const SdPortal = class {
|
|
|
213
213
|
}
|
|
214
214
|
return scrollParents;
|
|
215
215
|
}
|
|
216
|
+
isInsideTarget(target) {
|
|
217
|
+
return !!((this.wrapper?.contains(target)) ||
|
|
218
|
+
(this.parentRef?.contains(target)));
|
|
219
|
+
}
|
|
216
220
|
// 외부 클릭 감지
|
|
217
221
|
handleMouseDown(e) {
|
|
218
|
-
this.isInsideClick =
|
|
222
|
+
this.isInsideClick = this.isInsideTarget(e.target);
|
|
219
223
|
}
|
|
220
224
|
handleWindowClick(e) {
|
|
221
225
|
if (this.isInsideClick) {
|
|
222
226
|
this.isInsideClick = false;
|
|
223
227
|
return;
|
|
224
228
|
}
|
|
225
|
-
if (this.
|
|
229
|
+
if (this.isInsideTarget(e.target))
|
|
226
230
|
return;
|
|
227
231
|
this.close.emit();
|
|
228
232
|
}
|
|
229
233
|
render() {
|
|
230
|
-
return index.h("slot", { key: '
|
|
234
|
+
return index.h("slot", { key: '22e09896836d017f33a9c6b92772a00fc85f8997' });
|
|
231
235
|
}
|
|
232
236
|
static get watchers() { return {
|
|
233
237
|
"open": [{
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DXm0PH2A.js');
|
|
4
|
-
var sdSelect_config = require('./sd-select.config-
|
|
4
|
+
var sdSelect_config = require('./sd-select.config-C9Ohe1QA.js');
|
|
5
5
|
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
6
|
+
require('./component.listItem-Bnh0r_CA.js');
|
|
6
7
|
|
|
7
8
|
const sdSelectListItemCss = () => `sd-select-list-item{display:block}sd-select-list-item .sd-select-list-item{display:flex;align-items:center;gap:var(--list-item-gap);padding:var(--list-item-padding-y) var(--list-item-padding-right) var(--list-item-padding-y) var(--list-item-padding-left);font-size:var(--list-item-font-size);line-height:var(--list-item-line-height);font-weight:var(--list-item-font-weight);background:var(--list-item-bg);color:var(--list-item-color);cursor:default;user-select:none}sd-select-list-item .sd-select-list-item--selectable{cursor:pointer}sd-select-list-item .sd-select-list-item--depth1-group{border-top:var(--list-item-border-top);font-weight:700}sd-select-list-item .sd-select-list-item--depth2-group{font-weight:500}sd-select-list-item .sd-select-list-item--focused.sd-select-list-item--selectable:not(.sd-select-list-item--disabled){background:var(--list-item-bg-hover);color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--selected:not(.sd-select-list-item--group){font-weight:var(--list-item-font-weight-selected);color:var(--list-item-color-selected)}sd-select-list-item .sd-select-list-item--selected.sd-select-list-item--focused{color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--disabled{color:var(--list-item-color-disabled);cursor:not-allowed}sd-select-list-item .sd-select-list-item__label{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-select-list-item .sd-select-list-item__count{flex-shrink:0;font-weight:500;color:var(--list-item-color-disabled)}sd-select-list-item .sd-select-list-item--group.sd-select-list-item--focused .sd-select-list-item__count{color:#ffffff}sd-select-list-item .sd-select-list-item__checkbox{flex-shrink:0}`;
|
|
8
9
|
|
|
@@ -80,7 +81,7 @@ const SdSelectListItem = class {
|
|
|
80
81
|
return (
|
|
81
82
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
82
83
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
83
|
-
index.h("div", { key: '
|
|
84
|
+
index.h("div", { key: 'c964b0cf5b064c74a7e063be21350bca8124d77d', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
84
85
|
'sd-select-list-item': true,
|
|
85
86
|
'sd-select-list-item--group': isGroup,
|
|
86
87
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -90,7 +91,7 @@ const SdSelectListItem = class {
|
|
|
90
91
|
'sd-select-list-item--focused': this.isFocused,
|
|
91
92
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
92
93
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
93
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '
|
|
94
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '981e055f47aa512d18d61ae938b41942197f3088', 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 })), sdSelect_config.isHtmlLabel(this.option.label) ? (index.h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml.sanitizeInlineHtml(this.option.label)) })) : (index.h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (index.h("span", { key: 'ac34372d921afcb3eba0a51bed3dd70b4e8f1d0f', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
94
95
|
}
|
|
95
96
|
};
|
|
96
97
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -143,15 +144,15 @@ const SdSelectListItemSearch = class {
|
|
|
143
144
|
clearTimeout(this.debounceTimer);
|
|
144
145
|
}
|
|
145
146
|
render() {
|
|
146
|
-
return (index.h("div", { key: '
|
|
147
|
+
return (index.h("div", { key: '6250cee5611a36f6c5fb317d7d24abeae1ed142f', class: {
|
|
147
148
|
'sd-select-list-item-search': true,
|
|
148
149
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
149
|
-
} }, index.h("div", { key: '
|
|
150
|
+
} }, index.h("div", { key: 'fa48adb1406c8922b61083a19cc270f02ddab100', class: "sd-select-list-item-search__inner" }, index.h("sd-icon", { key: '868519f09dc11fc4e9bde7a1148ce5ce666dd851', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), index.h("input", { key: 'ff946fa2f360cd21eb785d13cb91e23f18abe05c', ref: el => {
|
|
150
151
|
this.inputEl = el;
|
|
151
|
-
}, 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() }), index.h("button", { key: '
|
|
152
|
+
}, 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() }), index.h("button", { key: 'e70e4c0af6e11f89d2893ae5bb28887a0ed8a5ee', type: "button", class: {
|
|
152
153
|
'sd-select-list-item-search__clear': true,
|
|
153
154
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
154
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '
|
|
155
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '57b4af6446a565b6e1e95153e8553b1c3c363a33', name: "close", size: 12, color: "#888888" })))));
|
|
155
156
|
}
|
|
156
157
|
};
|
|
157
158
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|