@sellmate/design-system 1.20.1 → 1.22.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-DXm0PH2A.js → index-C-F-JEv_.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +8 -2
- package/dist/cjs/sd-badge.cjs.entry.js +3 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +35 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +16 -7
- package/dist/cjs/sd-calendar_2.cjs.entry.js +17 -6
- package/dist/cjs/sd-callout.cjs.entry.js +4 -2
- package/dist/cjs/sd-card.cjs.entry.js +4 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +21 -12
- package/dist/cjs/sd-chip-input.cjs.entry.js +76 -18
- package/dist/cjs/sd-chip.cjs.entry.js +19 -2
- package/dist/cjs/sd-circle-progress.cjs.entry.js +6 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +27 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +13 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +209 -13
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +7 -2
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +11 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +70 -12
- package/dist/cjs/sd-form.cjs.entry.js +10 -2
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +54 -15
- package/dist/cjs/sd-guide.cjs.entry.js +9 -3
- package/dist/cjs/sd-key-value-table.cjs.entry.js +3 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +7 -4
- package/dist/cjs/sd-loading-container.cjs.entry.js +5 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +7 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +121 -13
- package/dist/cjs/sd-popover.cjs.entry.js +21 -5
- package/dist/cjs/sd-popup.cjs.entry.js +7 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +8 -2
- package/dist/cjs/sd-radio.cjs.entry.js +7 -2
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +18 -7
- package/dist/cjs/sd-select_3.cjs.entry.js +56 -9
- package/dist/cjs/sd-switch.cjs.entry.js +6 -2
- package/dist/cjs/sd-table.cjs.entry.js +42 -7
- package/dist/cjs/sd-tabs.cjs.entry.js +8 -2
- package/dist/cjs/sd-td.cjs.entry.js +11 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +13 -4
- package/dist/cjs/sd-toast-container.cjs.entry.js +11 -2
- package/dist/cjs/sd-toast.cjs.entry.js +12 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +6 -2
- package/dist/cjs/{tooltipArrow-D3P3JC08.js → tooltipArrow-26hYtSrD.js} +1 -1
- package/dist/collection/components/assets/CaretDown.js +1 -1
- package/dist/collection/components/assets/CaretLeft.js +1 -1
- package/dist/collection/components/assets/CaretRight.js +1 -1
- package/dist/collection/components/assets/CaretUp.js +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +13 -7
- package/dist/collection/components/sd-badge/sd-badge.js +3 -2
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +67 -34
- package/dist/collection/components/sd-button/sd-button.js +18 -10
- package/dist/collection/components/sd-calendar/sd-calendar.js +15 -9
- package/dist/collection/components/sd-callout/sd-callout.js +5 -3
- package/dist/collection/components/sd-card/sd-card.js +5 -3
- package/dist/collection/components/sd-checkbox/sd-checkbox.config.js +5 -3
- package/dist/collection/components/sd-checkbox/sd-checkbox.css +16 -0
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +5 -3
- package/dist/collection/components/sd-chip/sd-chip.js +35 -18
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +6 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +107 -49
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +9 -5
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +32 -17
- package/dist/collection/components/sd-date-box/sd-date-box.js +22 -12
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +12 -7
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +48 -25
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +11 -6
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +50 -26
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +20 -10
- package/dist/collection/components/sd-field/sd-field.js +51 -28
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +60 -30
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +32 -11
- package/dist/collection/components/sd-form/sd-form.js +17 -9
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +28 -13
- package/dist/collection/components/sd-guide/sd-guide.js +14 -8
- package/dist/collection/components/sd-icon/sd-icon.js +2 -1
- package/dist/collection/components/sd-input/sd-input.js +82 -42
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +4 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +10 -7
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +6 -4
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +17 -9
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +12 -6
- package/dist/collection/components/sd-number-input/sd-number-input.js +82 -43
- package/dist/collection/components/sd-pagination/sd-pagination.js +11 -7
- package/dist/collection/components/sd-popover/sd-popover.js +35 -19
- package/dist/collection/components/sd-popup/sd-popup.js +11 -7
- package/dist/collection/components/sd-portal/sd-portal.js +35 -14
- package/dist/collection/components/sd-radio/sd-radio.js +11 -6
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +13 -7
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +13 -7
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +16 -9
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +12 -8
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +22 -12
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +18 -10
- package/dist/collection/components/sd-select/sd-select.js +62 -33
- package/dist/collection/components/sd-switch/sd-switch.js +9 -5
- package/dist/collection/components/sd-table/sd-table.js +76 -41
- package/dist/collection/components/sd-table/sd-table.stories.helpers.js +97 -0
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +4 -3
- package/dist/collection/components/sd-table/sd-td/sd-td.js +19 -10
- package/dist/collection/components/sd-table/sd-thead/sd-thead.css +21 -0
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +113 -20
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +22 -11
- package/dist/collection/components/sd-tabs/sd-tabs.js +13 -7
- package/dist/collection/components/sd-tag/sd-tag.js +10 -7
- package/dist/collection/components/sd-text-link/sd-text-link.js +21 -12
- package/dist/collection/components/sd-textarea/sd-textarea.js +69 -35
- package/dist/collection/components/sd-toast/sd-toast.js +20 -11
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +19 -10
- package/dist/collection/components/sd-toggle/sd-toggle.js +9 -5
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +30 -16
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CUR9smP5.js → p-58DLP3IW.js} +1 -1
- package/dist/components/{p-CQozoo2-.js → p-B-Igud6n.js} +1 -1
- package/dist/components/{p-BZfVV3gu.js → p-B0myARGe.js} +1 -1
- package/dist/components/{p-CTPImLDQ.js → p-B12iH3Zk.js} +1 -1
- package/dist/components/{p-CoqA9KgU.js → p-B2bF2KlS.js} +1 -1
- package/dist/components/{p-MJG6EZeP.js → p-BFlmHQm9.js} +1 -1
- package/dist/{design-system/p-L_He_WSA.js → components/p-BRmilX-4.js} +1 -1
- package/dist/components/{p-Dl89_4C3.js → p-BXRgi3NZ.js} +1 -1
- package/dist/components/{p-BjcGzaFR.js → p-Bm3NWPaP.js} +1 -1
- package/dist/components/p-BpQwjSB8.js +1 -0
- package/dist/components/{p-CRwvv7YM.js → p-BpjmheLG.js} +1 -1
- package/dist/components/{p-5imde6N9.js → p-Bric-SEs.js} +1 -1
- package/dist/components/{p-CB2A3pJ5.js → p-BwTsP0Ak.js} +1 -1
- package/dist/components/{p-9Z-q6kKD.js → p-C1QezE7u.js} +1 -1
- package/dist/components/p-CCCwPJ5p.js +1 -0
- package/dist/components/p-CCO1WtEj.js +1 -0
- package/dist/components/p-CEKu7cxA.js +1 -0
- package/dist/components/{p-CrT06Uwc.js → p-CHxVi6l1.js} +1 -1
- package/dist/components/{p-DNnI3Nru.js → p-Cdzn78dP.js} +1 -1
- package/dist/components/p-Cj_1bYZF.js +1 -0
- package/dist/components/{p-ZvI5A-_t.js → p-Cjf8PHEl.js} +1 -1
- package/dist/components/{p-CJ69QmR3.js → p-Co2ThnbG.js} +1 -1
- package/dist/components/{p-gOIeNT-Z.js → p-CwSlRPMm.js} +1 -1
- package/dist/components/p-D7StBSjK.js +1 -0
- package/dist/components/{p-Bz93hWXV.js → p-DFbj6d3L.js} +1 -1
- package/dist/components/{p-B5bya7Gp.js → p-DlXBFtBO.js} +1 -1
- package/dist/components/{p-Rwc_ltPn.js → p-Du_qPqW-.js} +1 -1
- package/dist/components/{p-DIlNesBH.js → p-DzAvlr8W.js} +1 -1
- package/dist/components/{p-D99vy8Ip.js → p-FrqOl9KZ.js} +1 -1
- package/dist/components/{p-uSEbiD29.js → p-JMuxVcTW.js} +1 -1
- package/dist/components/{p-DertIGhs.js → p-OjchKJGr.js} +1 -1
- package/dist/components/p-S2-XqY2R.js +1 -0
- package/dist/components/{p-DDAA-zcg.js → p-YCGkwgiM.js} +1 -1
- package/dist/components/{p-DZTxHJlP.js → p-ZvP2Ce6J.js} +1 -1
- package/dist/components/p-kRH2GOb0.js +1 -0
- package/dist/components/{p-FTvXz0-a.js → p-mcMbSkii.js} +1 -1
- package/dist/components/{p-BiBLp9_a.js → p-vPS2GNz3.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-14447dd5.entry.js +1 -0
- package/dist/design-system/{p-e9d1dbb5.entry.js → p-274dbc65.entry.js} +1 -1
- package/dist/design-system/{p-b291baab.entry.js → p-2ba0b35a.entry.js} +1 -1
- package/dist/design-system/{p-52f551a1.entry.js → p-2ca4902b.entry.js} +1 -1
- package/dist/design-system/p-2df32f8c.entry.js +1 -0
- package/dist/design-system/{p-cb80327c.entry.js → p-35da166a.entry.js} +1 -1
- package/dist/design-system/p-35e1e2fa.entry.js +1 -0
- package/dist/design-system/p-4bbc894b.entry.js +1 -0
- package/dist/design-system/{p-6ce68bf2.entry.js → p-4bc0ce52.entry.js} +1 -1
- package/dist/design-system/p-4c1559c8.entry.js +1 -0
- package/dist/design-system/{p-da4e2674.entry.js → p-4eeca0cb.entry.js} +1 -1
- package/dist/design-system/{p-646a7830.entry.js → p-4f69fde0.entry.js} +1 -1
- package/dist/design-system/{p-ccf1a3fc.entry.js → p-50b5cf37.entry.js} +1 -1
- package/dist/design-system/p-52e88677.entry.js +1 -0
- package/dist/design-system/{p-4acfc5f9.entry.js → p-552acf98.entry.js} +1 -1
- package/dist/design-system/{p-23006577.entry.js → p-563a8242.entry.js} +1 -1
- package/dist/design-system/{p-e3990243.entry.js → p-68687503.entry.js} +1 -1
- package/dist/design-system/{p-1f3c1cca.entry.js → p-6d8a4a23.entry.js} +1 -1
- package/dist/design-system/{p-d5032f31.entry.js → p-7c507d39.entry.js} +1 -1
- package/dist/design-system/{p-717eba5f.entry.js → p-88926a42.entry.js} +1 -1
- package/dist/design-system/{p-35d390f1.entry.js → p-90436be8.entry.js} +1 -1
- package/dist/design-system/{p-9289eb14.entry.js → p-99f33027.entry.js} +1 -1
- package/dist/design-system/{p-c47198fc.entry.js → p-9a010c12.entry.js} +1 -1
- package/dist/design-system/{p-54853a2b.entry.js → p-9dc0c2f9.entry.js} +1 -1
- package/dist/{components/p-Bg9XySrz.js → design-system/p-C7HJ-NfO.js} +2 -1
- package/dist/{components/p-0VCXAYrh.js → design-system/p-DUyBmuH_.js} +1 -1
- package/dist/design-system/{p-d5c3bac9.entry.js → p-a71a8b31.entry.js} +1 -1
- package/dist/design-system/{p-a4331364.entry.js → p-a80cc067.entry.js} +1 -1
- package/dist/design-system/{p-ae344950.entry.js → p-abcc9367.entry.js} +1 -1
- package/dist/design-system/p-ac81b46e.entry.js +1 -0
- package/dist/design-system/{p-08343698.entry.js → p-b881bbb6.entry.js} +1 -1
- package/dist/design-system/{p-2151e081.entry.js → p-bfba449b.entry.js} +1 -1
- package/dist/design-system/p-c684cd96.entry.js +1 -0
- package/dist/design-system/{p-b63b8df9.entry.js → p-c93c623f.entry.js} +1 -1
- package/dist/design-system/{p-98e0b332.entry.js → p-ccc85130.entry.js} +1 -1
- package/dist/design-system/{p-aa1c6202.entry.js → p-ce5df7ef.entry.js} +1 -1
- package/dist/design-system/{p-adfddf3b.entry.js → p-ce83eca1.entry.js} +1 -1
- package/dist/design-system/{p-7ed8c8f1.entry.js → p-d5b535ad.entry.js} +1 -1
- package/dist/design-system/{p-df7c721d.entry.js → p-e310f188.entry.js} +1 -1
- package/dist/design-system/p-e7d4b78e.entry.js +1 -0
- package/dist/design-system/{p-bdb7492c.entry.js → p-fc65bbe2.entry.js} +1 -1
- package/dist/design-system/{p-a5a586da.entry.js → p-ff726fad.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-CAxodB5I.js → index-C7HJ-NfO.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +8 -2
- package/dist/esm/sd-badge.entry.js +3 -2
- package/dist/esm/sd-barcode-input.entry.js +35 -2
- package/dist/esm/sd-button_2.entry.js +16 -7
- package/dist/esm/sd-calendar_2.entry.js +17 -6
- package/dist/esm/sd-callout.entry.js +4 -2
- package/dist/esm/sd-card.entry.js +4 -2
- package/dist/esm/sd-checkbox.entry.js +21 -12
- package/dist/esm/sd-chip-input.entry.js +76 -18
- package/dist/esm/sd-chip.entry.js +19 -2
- package/dist/esm/sd-circle-progress.entry.js +6 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +27 -4
- package/dist/esm/sd-date-box.entry.js +13 -3
- package/dist/esm/sd-date-picker_7.entry.js +209 -13
- package/dist/esm/sd-date-range-picker-calendar.entry.js +7 -2
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +11 -1
- package/dist/esm/sd-field_3.entry.js +70 -12
- package/dist/esm/sd-form.entry.js +10 -2
- package/dist/esm/sd-ghost-button_3.entry.js +54 -15
- package/dist/esm/sd-guide.entry.js +9 -3
- package/dist/esm/sd-key-value-table.entry.js +3 -1
- package/dist/esm/sd-linear-progress.entry.js +7 -4
- package/dist/esm/sd-loading-container.entry.js +5 -3
- package/dist/esm/sd-modal-container.entry.js +7 -1
- package/dist/esm/sd-pagination_4.entry.js +121 -13
- package/dist/esm/sd-popover.entry.js +21 -5
- package/dist/esm/sd-popup.entry.js +7 -3
- package/dist/esm/sd-radio-button.entry.js +8 -2
- package/dist/esm/sd-radio.entry.js +7 -2
- package/dist/esm/sd-select-list-item_2.entry.js +18 -7
- package/dist/esm/sd-select_3.entry.js +56 -9
- package/dist/esm/sd-switch.entry.js +6 -2
- package/dist/esm/sd-table.entry.js +42 -7
- package/dist/esm/sd-tabs.entry.js +8 -2
- package/dist/esm/sd-td.entry.js +11 -2
- package/dist/esm/sd-text-link.entry.js +13 -4
- package/dist/esm/sd-toast-container.entry.js +11 -2
- package/dist/esm/sd-toast.entry.js +12 -3
- package/dist/esm/sd-toggle.entry.js +6 -2
- package/dist/esm/{tooltipArrow-DLr6VvUK.js → tooltipArrow-Bgf3crs7.js} +1 -1
- package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +6 -0
- package/dist/types/components/sd-badge/sd-badge.d.ts +1 -0
- package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +33 -0
- package/dist/types/components/sd-button/sd-button.d.ts +8 -0
- package/dist/types/components/sd-calendar/sd-calendar.d.ts +6 -0
- package/dist/types/components/sd-callout/sd-callout.d.ts +2 -0
- package/dist/types/components/sd-card/sd-card.d.ts +2 -0
- package/dist/types/components/sd-checkbox/sd-checkbox.config.d.ts +2 -0
- package/dist/types/components/sd-chip/sd-chip.d.ts +17 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +33 -0
- package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +4 -0
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +15 -0
- package/dist/types/components/sd-date-box/sd-date-box.d.ts +10 -0
- package/dist/types/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.d.ts +5 -0
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +23 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.d.ts +5 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +24 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +10 -0
- package/dist/types/components/sd-field/sd-field.d.ts +23 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +30 -0
- package/dist/types/components/sd-floating-portal/sd-floating-portal.d.ts +12 -0
- package/dist/types/components/sd-form/sd-form.d.ts +8 -0
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +7 -0
- package/dist/types/components/sd-guide/sd-guide.d.ts +6 -0
- package/dist/types/components/sd-icon/sd-icon.d.ts +1 -0
- package/dist/types/components/sd-input/sd-input.d.ts +40 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +2 -0
- package/dist/types/components/sd-linear-progress/sd-linear-progress.d.ts +4 -0
- package/dist/types/components/sd-loading-container/sd-loading-container.d.ts +2 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +8 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +6 -0
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +39 -0
- package/dist/types/components/sd-pagination/sd-pagination.d.ts +4 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +16 -0
- package/dist/types/components/sd-popup/sd-popup.d.ts +5 -0
- package/dist/types/components/sd-portal/sd-portal.d.ts +13 -0
- package/dist/types/components/sd-radio/sd-radio.d.ts +5 -0
- package/dist/types/components/sd-radio-button/sd-radio-button.d.ts +6 -0
- package/dist/types/components/sd-radio-group/sd-radio-group.d.ts +6 -0
- package/dist/types/components/sd-select/sd-select-list-item/sd-select-list-item.d.ts +7 -0
- package/dist/types/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.d.ts +4 -0
- package/dist/types/components/sd-select/sd-select-listbox/sd-select-listbox.d.ts +10 -0
- package/dist/types/components/sd-select/sd-select-trigger/sd-select-trigger.d.ts +8 -0
- package/dist/types/components/sd-select/sd-select.d.ts +29 -0
- package/dist/types/components/sd-switch/sd-switch.d.ts +4 -0
- package/dist/types/components/sd-table/constants.d.ts +1 -0
- package/dist/types/components/sd-table/sd-table.d.ts +35 -0
- package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +10 -0
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +1 -0
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +9 -0
- package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +21 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +11 -0
- package/dist/types/components/sd-tabs/sd-tabs.d.ts +6 -0
- package/dist/types/components/sd-tag/sd-tag.d.ts +4 -0
- package/dist/types/components/sd-text-link/sd-text-link.d.ts +9 -0
- package/dist/types/components/sd-textarea/sd-textarea.d.ts +34 -0
- package/dist/types/components/sd-toast/sd-toast.d.ts +9 -0
- package/dist/types/components/sd-toast-container/sd-toast-container.d.ts +9 -0
- package/dist/types/components/sd-toggle/sd-toggle.d.ts +4 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +14 -0
- package/dist/types/components.d.ts +1827 -7
- package/hydrate/index.js +949 -146
- package/hydrate/index.mjs +949 -146
- package/package.json +1 -1
- package/dist/components/p-B7PHGGFH.js +0 -1
- package/dist/components/p-CLlAhEDc.js +0 -1
- package/dist/components/p-CXeOxSQ-.js +0 -1
- package/dist/components/p-CZfsknba.js +0 -1
- package/dist/components/p-CvSqieCH.js +0 -1
- package/dist/components/p-P2jWtk8J.js +0 -1
- package/dist/components/p-xkRWGISE.js +0 -1
- package/dist/design-system/p-17dcf0e4.entry.js +0 -1
- package/dist/design-system/p-316b8a08.entry.js +0 -1
- package/dist/design-system/p-5039241c.entry.js +0 -1
- package/dist/design-system/p-5eaa12af.entry.js +0 -1
- package/dist/design-system/p-9c38ee79.entry.js +0 -1
- package/dist/design-system/p-CAxodB5I.js +0 -2
- package/dist/design-system/p-c995e6c3.entry.js +0 -1
- package/dist/design-system/p-eef6d4a3.entry.js +0 -1
- package/dist/design-system/p-faf7b64c.entry.js +0 -1
- package/dist/design-system/p-fd7abbfa.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
|
|
5
5
|
const radio = {
|
|
6
6
|
size: "16",
|
|
@@ -84,10 +84,15 @@ const SdRadio = class {
|
|
|
84
84
|
index.registerInstance(this, hostRef);
|
|
85
85
|
this.update = index.createEvent(this, "sdUpdate", 7);
|
|
86
86
|
}
|
|
87
|
+
/** 라디오 그룹의 현재 선택 값 */
|
|
87
88
|
value;
|
|
89
|
+
/** 이 라디오 아이템의 값 */
|
|
88
90
|
val;
|
|
91
|
+
/** 비활성 상태 여부 */
|
|
89
92
|
disabled = false;
|
|
93
|
+
/** 표시할 라벨 텍스트 */
|
|
90
94
|
label;
|
|
95
|
+
/** 선택 값이 변경될 때 발생합니다. */
|
|
91
96
|
update;
|
|
92
97
|
valueChanged(newValue) {
|
|
93
98
|
this.value = newValue;
|
|
@@ -130,7 +135,7 @@ const SdRadio = class {
|
|
|
130
135
|
'--sd-radio-label-color': RADIO_COLORS.label.default,
|
|
131
136
|
'--sd-radio-label-disabled-color': RADIO_COLORS.label.disabled,
|
|
132
137
|
};
|
|
133
|
-
return (index.h("label", { key: '
|
|
138
|
+
return (index.h("label", { key: 'f220a45add2be550bc696cd2442b8520ea0143f0', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, index.h("input", { key: '64692f5bf49783f166be9327877a474816a556ca', 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 }), index.h("span", { key: '3c30268adcbd735857b4163ecba444b5a57cba08', class: "sd-radio__circle" }), this.label && (index.h("span", { key: 'b641086ab4ff9161ba4fb733b87c751b6863fe06', class: "sd-radio__label", "data-label": this.label }, this.label))));
|
|
134
139
|
}
|
|
135
140
|
static get watchers() { return {
|
|
136
141
|
"value": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
var sdSelect_config = require('./sd-select.config-C9Ohe1QA.js');
|
|
5
5
|
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
6
6
|
require('./component.listItem-Bnh0r_CA.js');
|
|
@@ -12,12 +12,19 @@ const SdSelectListItem = class {
|
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
13
|
this.listItemClick = index.createEvent(this, "sdListItemClick", 7);
|
|
14
14
|
}
|
|
15
|
+
/** 렌더링할 옵션 데이터 */
|
|
15
16
|
option;
|
|
17
|
+
/** 계층 깊이 (1~3) */
|
|
16
18
|
depth = 1;
|
|
19
|
+
/** 선택 상태 (null=중간) */
|
|
17
20
|
isSelected = false;
|
|
21
|
+
/** 키보드 포커스 상태 여부 */
|
|
18
22
|
isFocused = false;
|
|
23
|
+
/** 체크박스 표시 여부 */
|
|
19
24
|
useCheckbox = false;
|
|
25
|
+
/** 다중 선택 시 (선택/전체) 카운트 */
|
|
20
26
|
countInfo;
|
|
27
|
+
/** 항목 클릭 시 발생합니다. */
|
|
21
28
|
listItemClick;
|
|
22
29
|
get isGroup() {
|
|
23
30
|
return !!this.option.children;
|
|
@@ -81,7 +88,7 @@ const SdSelectListItem = class {
|
|
|
81
88
|
return (
|
|
82
89
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
83
90
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
84
|
-
index.h("div", { key: '
|
|
91
|
+
index.h("div", { key: '7717c82ea9f36bd44bf8a19d16ba7df6441f6715', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
85
92
|
'sd-select-list-item': true,
|
|
86
93
|
'sd-select-list-item--group': isGroup,
|
|
87
94
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -91,7 +98,7 @@ const SdSelectListItem = class {
|
|
|
91
98
|
'sd-select-list-item--focused': this.isFocused,
|
|
92
99
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
93
100
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
94
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '
|
|
101
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '68d8c03d580fc2c411ee4fba917207705f3cf2d2', 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: '56ae08c55215a3970df99ecd74549ded5667265c', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
95
102
|
}
|
|
96
103
|
};
|
|
97
104
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -104,9 +111,12 @@ const SdSelectListItemSearch = class {
|
|
|
104
111
|
this.searchFilter = index.createEvent(this, "sdSearchFilter", 7);
|
|
105
112
|
this.searchFocus = index.createEvent(this, "sdSearchFocus", 7);
|
|
106
113
|
}
|
|
114
|
+
/** 리스트가 스크롤된 상태 여부 (그림자 효과용) */
|
|
107
115
|
isScrolled = false;
|
|
108
116
|
searchText = '';
|
|
117
|
+
/** 검색어가 변경될 때 발생합니다. */
|
|
109
118
|
searchFilter;
|
|
119
|
+
/** 검색 입력에 포커스될 때 발생합니다. */
|
|
110
120
|
searchFocus;
|
|
111
121
|
inputEl;
|
|
112
122
|
debounceTimer;
|
|
@@ -118,6 +128,7 @@ const SdSelectListItemSearch = class {
|
|
|
118
128
|
});
|
|
119
129
|
});
|
|
120
130
|
}
|
|
131
|
+
/** 검색 입력에 포커스를 이동합니다. */
|
|
121
132
|
async sdFocus() {
|
|
122
133
|
this.inputEl?.focus();
|
|
123
134
|
}
|
|
@@ -144,15 +155,15 @@ const SdSelectListItemSearch = class {
|
|
|
144
155
|
clearTimeout(this.debounceTimer);
|
|
145
156
|
}
|
|
146
157
|
render() {
|
|
147
|
-
return (index.h("div", { key: '
|
|
158
|
+
return (index.h("div", { key: 'fed1a43f1901d23c7c007a4597b95970c0aad4ad', class: {
|
|
148
159
|
'sd-select-list-item-search': true,
|
|
149
160
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
150
|
-
} }, index.h("div", { key: '
|
|
161
|
+
} }, index.h("div", { key: '23b278a4b40b7b8506a13f284b3759b96b613b99', class: "sd-select-list-item-search__inner" }, index.h("sd-icon", { key: '2150f73e1f20f05a28407b984977f7e91131217e', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), index.h("input", { key: '7dc4470ea57b54ebc5f3313f6e22d100f4cc4591', ref: el => {
|
|
151
162
|
this.inputEl = el;
|
|
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: '
|
|
163
|
+
}, 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: '60a363380da8689baa1e9e20b075df749846137a', type: "button", class: {
|
|
153
164
|
'sd-select-list-item-search__clear': true,
|
|
154
165
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
155
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '
|
|
166
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '7b27eb444864674578f97eaa374d1e9af486f97a', name: "close", size: 12, color: "#888888" })))));
|
|
156
167
|
}
|
|
157
168
|
};
|
|
158
169
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
var index$1 = require('./index-BUvXpPc3.js');
|
|
5
5
|
var sdSelect_config = require('./sd-select.config-C9Ohe1QA.js');
|
|
6
6
|
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
@@ -18,29 +18,53 @@ const SdSelect = class {
|
|
|
18
18
|
static PORTAL_OFFSET_Y = 4;
|
|
19
19
|
static CLOSE_ANIMATION_DURATION = 150;
|
|
20
20
|
get el() { return index.getElement(this); }
|
|
21
|
+
/** 셀렉트 타입 (단일/다중/계층) */
|
|
21
22
|
type = 'default';
|
|
23
|
+
/** 현재 선택된 값 */
|
|
22
24
|
value = null;
|
|
25
|
+
/** 선택 옵션 목록 */
|
|
23
26
|
options = [];
|
|
27
|
+
/** 값이 없을 때 표시할 플레이스홀더 */
|
|
24
28
|
placeholder = '선택';
|
|
29
|
+
/** 드롭다운 너비 (없으면 트리거 너비로 자동 맞춤) */
|
|
25
30
|
dropdownWidth = '';
|
|
31
|
+
/** 드롭다운 최대 너비 */
|
|
26
32
|
maxDropdownWidth = '640px';
|
|
33
|
+
/** 드롭다운 최대 높이 */
|
|
27
34
|
dropdownHeight = '260px';
|
|
35
|
+
/** 비활성 상태 여부 */
|
|
28
36
|
disabled = false;
|
|
37
|
+
/** 레이블 텍스트 */
|
|
29
38
|
label = '';
|
|
39
|
+
/** 레이블 너비 */
|
|
30
40
|
labelWidth = '';
|
|
41
|
+
/** 필드 우측 어드온 레이블 */
|
|
31
42
|
addonLabel = '';
|
|
43
|
+
/** 어드온 정렬 방향 */
|
|
32
44
|
addonAlign = 'start';
|
|
45
|
+
/** 에러 상태 여부 */
|
|
33
46
|
error = false;
|
|
47
|
+
/** 필드 하단 힌트 텍스트 */
|
|
34
48
|
hint = '';
|
|
49
|
+
/** 에러 메시지 */
|
|
35
50
|
errorMessage = '';
|
|
51
|
+
/** 유효성 검사 규칙 목록 */
|
|
36
52
|
rules = [];
|
|
53
|
+
/** 레이블 영역 아이콘 */
|
|
37
54
|
icon = undefined;
|
|
55
|
+
/** 레이블 툴팁 텍스트 */
|
|
38
56
|
labelTooltip = '';
|
|
57
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
39
58
|
labelTooltipProps = null;
|
|
59
|
+
/** true이면 value로 SelectOption 대신 원시값(string|number) 방출 */
|
|
40
60
|
emitValue = false;
|
|
61
|
+
/** 필드 너비 */
|
|
41
62
|
width = '';
|
|
63
|
+
/** 드롭다운 내 검색 입력 표시 여부 */
|
|
42
64
|
useSearch = false;
|
|
65
|
+
/** 전체 선택 시 표시할 레이블 */
|
|
43
66
|
allSelectedLabel = '전체';
|
|
67
|
+
/** 전체 선택 체크박스 표시 여부 */
|
|
44
68
|
useSelectAll = false;
|
|
45
69
|
isOpen = false;
|
|
46
70
|
isAnimatingOut = false;
|
|
@@ -49,13 +73,17 @@ const SdSelect = class {
|
|
|
49
73
|
resolvedMaxDropdownWidth = '640px';
|
|
50
74
|
focused = false;
|
|
51
75
|
hovered = false;
|
|
76
|
+
/** 선택 값이 변경될 때 발생합니다. */
|
|
52
77
|
update;
|
|
78
|
+
/** 드롭다운 열림/닫힘 상태가 바뀔 때 발생합니다. */
|
|
53
79
|
dropDownShow;
|
|
80
|
+
/** 셀렉트 트리거에 포커스를 이동합니다. */
|
|
54
81
|
async sdFocus() {
|
|
55
82
|
if (this.disabled)
|
|
56
83
|
return;
|
|
57
84
|
await this.triggerComponentRef?.sdFocus();
|
|
58
85
|
}
|
|
86
|
+
/** 드롭다운을 엽니다. */
|
|
59
87
|
async sdOpen() {
|
|
60
88
|
// sdFocus 직후 호출 시 트리거 ref/레이아웃이 안정될 때까지 한 틱 대기
|
|
61
89
|
await new Promise(resolve => setTimeout(resolve, 0));
|
|
@@ -70,6 +98,7 @@ const SdSelect = class {
|
|
|
70
98
|
triggerRef;
|
|
71
99
|
triggerComponentRef;
|
|
72
100
|
closeAnimationTimer;
|
|
101
|
+
/** 폼 연동용 name 속성 */
|
|
73
102
|
name = index$1.nanoid();
|
|
74
103
|
triggerHasFocus = false;
|
|
75
104
|
watchIsOpen(newValue) {
|
|
@@ -267,15 +296,15 @@ const SdSelect = class {
|
|
|
267
296
|
this.closeDropdown();
|
|
268
297
|
},
|
|
269
298
|
};
|
|
270
|
-
return (index.h("sd-field", { key: '
|
|
299
|
+
return (index.h("sd-field", { key: '3387dc16a6f54bfae652338c71c4c0e1553828c9', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
271
300
|
this.hovered = true;
|
|
272
301
|
}, onMouseLeave: () => {
|
|
273
302
|
this.hovered = false;
|
|
274
|
-
} }, index.h("div", { key: '
|
|
303
|
+
} }, index.h("div", { key: '124325f8f6882a3c9ee1a1795ee969f13d67dfe2', class: "sd-select", ref: el => {
|
|
275
304
|
this.triggerRef = el;
|
|
276
|
-
} }, index.h("sd-select-trigger", { key: '
|
|
305
|
+
} }, index.h("sd-select-trigger", { key: '2e0e44ae666282d3931f9889650a7999929a312b', ref: el => {
|
|
277
306
|
this.triggerComponentRef = el;
|
|
278
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '
|
|
307
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: 'b6e97e43c5ea3a06fbb2976dab52d4f544822ae0', ...portalProps }, index.h("sd-select-listbox", { key: '3d8a01c54667149507db2757d81813d2f285b32d', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.dropdownWidth || this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
279
308
|
}
|
|
280
309
|
static get watchers() { return {
|
|
281
310
|
"isOpen": [{
|
|
@@ -292,18 +321,28 @@ const SdSelectListbox = class {
|
|
|
292
321
|
index.registerInstance(this, hostRef);
|
|
293
322
|
this.optionSelect = index.createEvent(this, "sdOptionSelect", 7);
|
|
294
323
|
}
|
|
324
|
+
/** 셀렉트 타입 */
|
|
295
325
|
type = 'default';
|
|
326
|
+
/** 옵션 목록 */
|
|
296
327
|
options = [];
|
|
328
|
+
/** 현재 선택 값 */
|
|
297
329
|
value = null;
|
|
330
|
+
/** 값만 emit할지 여부 */
|
|
298
331
|
emitValue = false;
|
|
332
|
+
/** 검색 기능 사용 여부 */
|
|
299
333
|
useSearch = false;
|
|
334
|
+
/** 전체 선택 기능 사용 여부 */
|
|
300
335
|
useSelectAll = false;
|
|
336
|
+
/** 트리거 너비 (드롭다운 최소 너비) */
|
|
301
337
|
triggerWidth = '200px';
|
|
338
|
+
/** 드롭다운 최대 너비 */
|
|
302
339
|
maxWidth = '640px';
|
|
340
|
+
/** 드롭다운 최대 높이 */
|
|
303
341
|
maxHeight = '260px';
|
|
304
342
|
searchKeyword = '';
|
|
305
343
|
isScrolled = false;
|
|
306
344
|
focusedIndex = -1;
|
|
345
|
+
/** 옵션 선택 시 발생합니다. */
|
|
307
346
|
optionSelect;
|
|
308
347
|
listEl;
|
|
309
348
|
lastScrolledIndex = -1;
|
|
@@ -642,9 +681,9 @@ const SdSelectListbox = class {
|
|
|
642
681
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
643
682
|
'--listbox-radius': `${sdSelect_config.LIST_BOX_LAYOUT.radius}px`,
|
|
644
683
|
};
|
|
645
|
-
return (index.h("div", { key: '
|
|
684
|
+
return (index.h("div", { key: '6ca1107a8aadc1fbae26f3d8d3385b355981b65e', class: "sd-select-listbox", style: cssVars }, this.showSearch && (index.h("sd-select-list-item-search", { key: '8612b45a4e9b7d2701b8decd6865ebb50d6fcaa3', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), index.h("div", { key: 'c02c9c1d96176f94d2f83c66ad3e7cc0946c0270', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
646
685
|
this.listEl = el;
|
|
647
|
-
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '
|
|
686
|
+
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: 'f4fe1769d14812ba63fb73ff21ebfdaaf9d76409', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (index.h("div", { class: "sd-select-listbox__empty" }, sdSelect_config.EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (index.h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
648
687
|
}
|
|
649
688
|
static get watchers() { return {
|
|
650
689
|
"searchKeyword": [{
|
|
@@ -663,14 +702,22 @@ const SdSelectTrigger = class {
|
|
|
663
702
|
this.triggerFocus = index.createEvent(this, "sdTriggerFocus", 7);
|
|
664
703
|
this.triggerBlur = index.createEvent(this, "sdTriggerBlur", 7);
|
|
665
704
|
}
|
|
705
|
+
/** 표시할 선택된 값 텍스트 */
|
|
666
706
|
displayText = '';
|
|
707
|
+
/** 미선택 상태 플레이스홀더 */
|
|
667
708
|
placeholder = '선택';
|
|
709
|
+
/** 비활성 상태 여부 */
|
|
668
710
|
disabled = false;
|
|
711
|
+
/** 드롭다운 열림 상태 */
|
|
669
712
|
isOpen = false;
|
|
713
|
+
/** 트리거 클릭 시 발생합니다. */
|
|
670
714
|
triggerClick;
|
|
715
|
+
/** 트리거 포커스 시 발생합니다. */
|
|
671
716
|
triggerFocus;
|
|
717
|
+
/** 트리거 블러 시 발생합니다. */
|
|
672
718
|
triggerBlur;
|
|
673
719
|
triggerEl;
|
|
720
|
+
/** 트리거 엘리먼트에 포커스를 이동합니다. */
|
|
674
721
|
async sdFocus() {
|
|
675
722
|
if (this.disabled)
|
|
676
723
|
return;
|
|
@@ -704,7 +751,7 @@ const SdSelectTrigger = class {
|
|
|
704
751
|
? sdSelect_config.SELECT_COLORS.icon.disabled
|
|
705
752
|
: sdSelect_config.SELECT_COLORS.icon.default,
|
|
706
753
|
};
|
|
707
|
-
return (index.h("div", { key: '
|
|
754
|
+
return (index.h("div", { key: '7f5940ce19feb2d3ae9b2cbb6b5fdeb6d0151f61', ref: el => {
|
|
708
755
|
this.triggerEl = el;
|
|
709
756
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
710
757
|
'sd-select-trigger': true,
|
|
@@ -715,7 +762,7 @@ const SdSelectTrigger = class {
|
|
|
715
762
|
e.preventDefault();
|
|
716
763
|
this.handleClick();
|
|
717
764
|
}
|
|
718
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '
|
|
765
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: 'b50dea3450ee6fd2bf30811cc33facf00761f0d1', class: "sd-select-trigger__content" }, hasValue && sdSelect_config.isHtmlLabel(this.displayText) ? (index.h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml.sanitizeInlineHtml(this.displayText)) })) : (index.h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), index.h("sd-icon", { key: '778b3d1c738951f9a18950b668a34a1bc36006ca', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
719
766
|
'sd-select-trigger__icon': true,
|
|
720
767
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
721
768
|
} }))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
|
|
5
5
|
var switchTokens = {
|
|
6
6
|
"switch": {
|
|
@@ -65,9 +65,13 @@ const SdSwitch = class {
|
|
|
65
65
|
index.registerInstance(this, hostRef);
|
|
66
66
|
this.change = index.createEvent(this, "sdUpdate", 7);
|
|
67
67
|
}
|
|
68
|
+
/** 현재 on/off 상태 */
|
|
68
69
|
value = false;
|
|
70
|
+
/** 표시할 라벨 텍스트 */
|
|
69
71
|
label = '';
|
|
72
|
+
/** 비활성 상태 여부 */
|
|
70
73
|
disabled = false;
|
|
74
|
+
/** 상태가 변경될 때 발생합니다. */
|
|
71
75
|
change;
|
|
72
76
|
get switchClasses() {
|
|
73
77
|
const classes = ['sd-switch', this.value ? 'sd-switch--on' : 'sd-switch--off'];
|
|
@@ -105,7 +109,7 @@ const SdSwitch = class {
|
|
|
105
109
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
106
110
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
107
111
|
};
|
|
108
|
-
return (index.h("label", { key: '
|
|
112
|
+
return (index.h("label", { key: '2cbee35194a8218f1526ecd26d0ff0cc660ed5fb', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, index.h("input", { key: '8c9a330a7b69035ace0644f0a2cab8f6f8672bfd', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), index.h("div", { key: '738a28fb9c26628d6b67f03d0b75f4155ad85966', class: "sd-switch__track" }, index.h("div", { key: '91b7bac6c4e48d1b5b1331713620a132e9921906', class: "sd-switch__knob" })), this.label && index.h("span", { key: 'a9cdfb08c240f3d6a15bef3e119c0c02f3fe3462', class: "sd-switch__label" }, this.label)));
|
|
109
113
|
}
|
|
110
114
|
};
|
|
111
115
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
var sdTable_config = require('./sd-table.config-B7MuRLoR.js');
|
|
6
6
|
require('./component.table-DIxmbGBT.js');
|
|
@@ -32,28 +32,48 @@ const SdTable = class {
|
|
|
32
32
|
}
|
|
33
33
|
static DEFAULT_NO_DATA_LABEL = '데이터가 없습니다.';
|
|
34
34
|
get el() { return index.getElement(this); }
|
|
35
|
+
/** 테이블 고유 ID (자식 슬롯 매핑에 사용) */
|
|
35
36
|
tableId = nanoid(8);
|
|
36
37
|
fallbackTableId = nanoid(8);
|
|
38
|
+
/** 컬럼 정의 목록 */
|
|
37
39
|
columns = [];
|
|
40
|
+
/** 행 데이터 배열 */
|
|
38
41
|
rows;
|
|
42
|
+
/** 현재 선택된 행 목록 */
|
|
39
43
|
selected = [];
|
|
44
|
+
/** 행 고유 식별 필드명 */
|
|
40
45
|
rowKey = 'id';
|
|
46
|
+
/** 행 선택(체크박스) 기능 활성화 여부 */
|
|
41
47
|
selectable = false;
|
|
48
|
+
/** 컬럼 너비 조절 기능 활성화 여부 */
|
|
42
49
|
resizable = false;
|
|
50
|
+
/** 테이블 너비 */
|
|
43
51
|
width;
|
|
52
|
+
/** 테이블 높이 */
|
|
44
53
|
height;
|
|
54
|
+
/** 헤더 고정(sticky) 여부 */
|
|
45
55
|
stickyHeader = false;
|
|
56
|
+
/** 고정할 좌우 컬럼 수 */
|
|
46
57
|
stickyColumn = { left: 0, right: 0 };
|
|
58
|
+
/** border-radius 제어 */
|
|
47
59
|
radius = 'default';
|
|
60
|
+
/** 데이터 없을 때 표시할 메시지 */
|
|
48
61
|
noDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
49
62
|
resolvedNoDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
63
|
+
/** 로딩 스피너 표시 여부 */
|
|
50
64
|
isLoading = false;
|
|
65
|
+
/** 페이지네이션 옵션 */
|
|
51
66
|
pagination;
|
|
67
|
+
/** 테이블 내부에서 페이지네이션을 직접 관리할지 여부 */
|
|
52
68
|
useInternalPagination = false;
|
|
69
|
+
/** 페이지당 행 수 선택 셀렉트 표시 여부 */
|
|
53
70
|
useRowsPerPageSelect = false;
|
|
71
|
+
/** 행 높이를 줄인 조밀 모드 여부 */
|
|
54
72
|
dense = false;
|
|
55
73
|
// ─── Virtual Scroll ───────────────────────────────────────────────
|
|
74
|
+
/** 가상 스크롤 사용 여부 */
|
|
56
75
|
useVirtualScroll = false;
|
|
76
|
+
/** 가상 스크롤 행 높이 (px, 없으면 dense 여부에 따라 자동) */
|
|
57
77
|
rowHeight;
|
|
58
78
|
get effectiveRowHeight() {
|
|
59
79
|
if (this.rowHeight != null)
|
|
@@ -62,19 +82,27 @@ const SdTable = class {
|
|
|
62
82
|
? Number(sdTable_config.TABLE_BODY_LAYOUT.dense.height)
|
|
63
83
|
: Number(sdTable_config.TABLE_BODY_LAYOUT.default.height);
|
|
64
84
|
}
|
|
85
|
+
/** 가상 스크롤 상하 버퍼 행 수 */
|
|
65
86
|
virtualBuffer = 5;
|
|
87
|
+
/** 가상 스크롤 끝 도달 감지 임계값 (마지막 N행 이내에 들어오면 이벤트 발생) */
|
|
66
88
|
virtualEndThreshold = 10;
|
|
67
89
|
// ─────────────────────────────────────────────────────────────────
|
|
90
|
+
/** 페이지당 행 수 선택 옵션 목록 */
|
|
68
91
|
rowsPerPageOption = [
|
|
69
92
|
{ label: '10개씩 보기', value: 10 },
|
|
70
93
|
{ label: '25개씩 보기', value: 25 },
|
|
71
94
|
{ label: '50개씩 보기', value: 50 },
|
|
72
95
|
{ label: '100개씩 보기', value: 100 },
|
|
73
96
|
];
|
|
97
|
+
/** 행 선택 상태가 변경될 때 선택된 행 목록을 전달합니다. */
|
|
74
98
|
sdSelectChange;
|
|
99
|
+
/** 페이지가 변경될 때 새 페이지 번호를 전달합니다. */
|
|
75
100
|
sdPageChange;
|
|
101
|
+
/** 페이지당 행 수가 변경될 때 발생합니다. */
|
|
76
102
|
sdRowsPerPageChange;
|
|
103
|
+
/** 가상 스크롤 가시 범위가 변경될 때 발생합니다. */
|
|
77
104
|
sdVirtualUpdate;
|
|
105
|
+
/** 가상 스크롤이 끝 임계값에 도달할 때 발생합니다. */
|
|
78
106
|
sdVirtualReachEnd;
|
|
79
107
|
currentPage = 1;
|
|
80
108
|
innerRowsPerPage = 10;
|
|
@@ -479,6 +507,7 @@ const SdTable = class {
|
|
|
479
507
|
isRowSelectedSync(row) {
|
|
480
508
|
return Array.from(this.innerSelected).some(r => r[this.rowKey ?? 'id'] === row[this.rowKey ?? 'id']);
|
|
481
509
|
}
|
|
510
|
+
/** 행이 선택되어 있는지 확인합니다. */
|
|
482
511
|
async isRowSelected(row) {
|
|
483
512
|
return this.isRowSelectedSync(row);
|
|
484
513
|
}
|
|
@@ -495,6 +524,7 @@ const SdTable = class {
|
|
|
495
524
|
this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
496
525
|
this.refreshChildrenSelection();
|
|
497
526
|
}
|
|
527
|
+
/** 행 선택 상태를 토글합니다. */
|
|
498
528
|
async updateRowSelect(row) {
|
|
499
529
|
this.updateRowSelectSync(row);
|
|
500
530
|
}
|
|
@@ -511,6 +541,7 @@ const SdTable = class {
|
|
|
511
541
|
this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
512
542
|
this.refreshChildrenSelection();
|
|
513
543
|
}
|
|
544
|
+
/** 전체 행 선택/해제를 처리합니다. */
|
|
514
545
|
async toggleSelectAll(checked, rows) {
|
|
515
546
|
this.toggleSelectAllSync(checked, rows);
|
|
516
547
|
}
|
|
@@ -523,6 +554,7 @@ const SdTable = class {
|
|
|
523
554
|
return true;
|
|
524
555
|
return null; // indeterminate
|
|
525
556
|
}
|
|
557
|
+
/** 전체 선택 체크 상태를 반환합니다 (true/false/null=indeterminate). */
|
|
526
558
|
async getIsAllChecked(rows) {
|
|
527
559
|
return this.getIsAllCheckedSync(rows);
|
|
528
560
|
}
|
|
@@ -613,6 +645,7 @@ const SdTable = class {
|
|
|
613
645
|
}
|
|
614
646
|
return base;
|
|
615
647
|
}
|
|
648
|
+
/** 지정한 컬럼 인덱스의 sticky 스타일 객체를 반환합니다. */
|
|
616
649
|
async getStickyStyle(colIdx) {
|
|
617
650
|
return this.getStickyStyleSync(colIdx);
|
|
618
651
|
}
|
|
@@ -755,6 +788,7 @@ const SdTable = class {
|
|
|
755
788
|
this.propagateVirtualUpdate(true);
|
|
756
789
|
}
|
|
757
790
|
}
|
|
791
|
+
/** 가상 스크롤 총 행 수를 설정합니다. */
|
|
758
792
|
async setRowCount(count) {
|
|
759
793
|
this.setRowCountSync(count);
|
|
760
794
|
}
|
|
@@ -782,6 +816,7 @@ const SdTable = class {
|
|
|
782
816
|
rowsPerPage: this.innerRowsPerPage,
|
|
783
817
|
};
|
|
784
818
|
}
|
|
819
|
+
/** 현재 페이지네이션 상태(startIndex, endIndex, currentPage, rowsPerPage)를 반환합니다. */
|
|
785
820
|
async getPaginationInfo() {
|
|
786
821
|
return this.getPaginationInfoSync();
|
|
787
822
|
}
|
|
@@ -845,25 +880,25 @@ const SdTable = class {
|
|
|
845
880
|
'--table-selectable-width': `${sdTable_config.TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
846
881
|
'--table-host-height': hostHeight,
|
|
847
882
|
};
|
|
848
|
-
return (index.h(index.Host, { key: '
|
|
883
|
+
return (index.h(index.Host, { key: '2606b0d7fc3657a8021a6dfc64672996b756f762', style: hostStyle }, index.h("div", { key: '4def416edfe630ead35b80cb2f04081a89740f62', class: "sd-table__container", style: {
|
|
849
884
|
'--table-width': this.width,
|
|
850
885
|
'--pagination-height': `${paginationHeight}px`,
|
|
851
|
-
} }, index.h("div", { key: '
|
|
886
|
+
} }, index.h("div", { key: '316a359f2be84895719f452e056dcd2f54cd5b56', class: {
|
|
852
887
|
'sd-table__wrapper': true,
|
|
853
888
|
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
854
889
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
855
|
-
} }, index.h("div", { key: '
|
|
890
|
+
} }, index.h("div", { key: 'e798b58104f56b3250a7d74261a8c320a8049f28', class: {
|
|
856
891
|
'sd-table__scroll-container': true,
|
|
857
892
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
858
893
|
'sd-table__scroll-container--no-data': isNoData,
|
|
859
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
894
|
+
} }, this.isLoading && (index.h("div", { key: 'af91877075c8d4ed8b608bdfdc7f04bd844f5574', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: '2422c7020046fa468dbaaf34220230737cb6b02e', indeterminate: true }))), isNoData && (index.h(index.h.Fragment, null, index.h("div", { key: 'bd5c2237d8c3a34cc4bf12a187f471e22ce02efd', class: "sd-table__no-data-header-overlay" }), index.h("div", { key: '1e0da67564879a175e89a3482195742b1b4451dc', class: "sd-table__no-data" }, index.h("div", { key: '391bc76e748d64b84c39de669396b2f5f288e5a1', class: "sd-table__no-data-content", ref: el => {
|
|
860
895
|
this.noDataContentEl = el;
|
|
861
896
|
if (el)
|
|
862
897
|
this.syncNoDataContentObserver();
|
|
863
|
-
} }, index.h("slot", { key: '
|
|
898
|
+
} }, index.h("slot", { key: '3e2e26f4951d9b834ae811906c137a78067fecab', name: "no-data" }, index.h("span", { key: '54ed0371d60f5312376d8ffab50efd9ec0947729' }, this.resolvedNoDataLabel)))))), index.h("table", { key: '46cab11834ca3f5aa9010bd6f603d301b2a54c9c', class: this.tableClasses }, this.autoThead ? (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-thead", { rows: this.rows ?? [] }))) : (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
864
899
|
this.pagination.rowsPerPage > 0 &&
|
|
865
900
|
this.rowCount > 0 &&
|
|
866
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
901
|
+
!this.useVirtualScroll && (index.h("div", { key: 'b9c738172d4e2993f15f6a7e051406d3b7e8d568', class: "sd-table__pagination" }, index.h("sd-pagination", { key: '62c199e61dd2010f2c19aabb3599d75a561ef83d', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (index.h("sd-select", { key: '5f305858818e720bf5a53499777d2f5aac843487', value: this.useInternalPagination
|
|
867
902
|
? this.innerRowsPerPage
|
|
868
903
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
869
904
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
|
|
5
5
|
const tab = {
|
|
6
6
|
main: {
|
|
@@ -130,11 +130,17 @@ const SdTabs = class {
|
|
|
130
130
|
index.registerInstance(this, hostRef);
|
|
131
131
|
this.update = index.createEvent(this, "sdUpdate", 7);
|
|
132
132
|
}
|
|
133
|
+
/** 현재 선택된 탭 value */
|
|
133
134
|
value;
|
|
135
|
+
/** 탭 옵션 목록 */
|
|
134
136
|
tabs = [];
|
|
137
|
+
/** 탭 크기 */
|
|
135
138
|
size = 'md';
|
|
139
|
+
/** true이면 서브 탭 스타일 적용 */
|
|
136
140
|
isSub = false;
|
|
141
|
+
/** true이면 탭을 세로로 배치 */
|
|
137
142
|
vertical = false;
|
|
143
|
+
/** 탭이 변경될 때 새 value를 전달합니다. */
|
|
138
144
|
update;
|
|
139
145
|
valueChanged(newValue) {
|
|
140
146
|
this.value = newValue;
|
|
@@ -201,7 +207,7 @@ const SdTabs = class {
|
|
|
201
207
|
};
|
|
202
208
|
}
|
|
203
209
|
render() {
|
|
204
|
-
return (index.h("div", { key: '
|
|
210
|
+
return (index.h("div", { key: 'd8d86075bbf5e13444f99e57cf63c2f5b9ef28fc', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
205
211
|
const badgeName = this.getBadgeName(tab);
|
|
206
212
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
207
213
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
|
|
6
6
|
const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
|
|
@@ -10,18 +10,27 @@ const SdTd = class {
|
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
11
|
}
|
|
12
12
|
get el() { return index.getElement(this); }
|
|
13
|
+
/** 데이터 필드명 (슬롯 이름 생성에 사용) */
|
|
13
14
|
field;
|
|
15
|
+
/** 행 식별 키 */
|
|
14
16
|
rowKey;
|
|
17
|
+
/** 셀 내용 정렬 */
|
|
15
18
|
align;
|
|
19
|
+
/** 행 병합 수 */
|
|
16
20
|
rowspan;
|
|
21
|
+
/** 열 병합 수 */
|
|
17
22
|
colspan;
|
|
18
23
|
// sd-tr가 그리는 실제 <td>에 머지될 사용자 클래스.
|
|
19
24
|
// <sd-td> 호스트는 display:contents라 호스트의 class는 시각 효과가 없기 때문에,
|
|
20
25
|
// 이 prop을 통해 sd-table 레지스트리에 등록 → sd-tr가 td 렌더 시 합쳐 사용한다.
|
|
26
|
+
/** td에 병합할 사용자 클래스 */
|
|
21
27
|
sdClass;
|
|
28
|
+
/** 좌측 구분선 표시 여부 */
|
|
22
29
|
dividerLeft = false;
|
|
30
|
+
/** 우측 구분선 표시 여부 */
|
|
23
31
|
dividerRight = false;
|
|
24
32
|
// true이면 이 셀이 속한 행 전체가 dense를 무시하고 default 레이아웃으로 동작한다.
|
|
33
|
+
/** frame 레이아웃 사용 여부 */
|
|
25
34
|
useFrame = false;
|
|
26
35
|
handleFieldChange(_newField, oldField) {
|
|
27
36
|
this.syncSlotName();
|
|
@@ -158,7 +167,7 @@ const SdTd = class {
|
|
|
158
167
|
}
|
|
159
168
|
}
|
|
160
169
|
render() {
|
|
161
|
-
return (index.h(index.Host, { key: '
|
|
170
|
+
return (index.h(index.Host, { key: 'd7cea28b006a4903fab00e7a709252e6009f911f', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '1d8695ff6c6890838e4b18ec4da1d7ff6a5c8858' })));
|
|
162
171
|
}
|
|
163
172
|
static get watchers() { return {
|
|
164
173
|
"field": [{
|