@sellmate/design-system 1.27.1 → 1.29.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.datepicker-CUQbDSku.js → component.datepicker-zFTQQKMH.js} +1 -2
- package/dist/cjs/component.listBox-MHAv4Yy7.js +15 -0
- package/dist/cjs/{component.listItem-Bnh0r_CA.js → component.listItem-cAO_ppOz.js} +0 -7
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-DsYLSqCp.js → index-iiJZMzVM.js} +1 -15
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +2 -3
- package/dist/cjs/sd-chip-input.cjs.entry.js +5 -4
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +6 -4
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +37 -37
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{sd-date-picker.config-De7ahWIs.js → sd-date-picker.config-Chrd8c4v.js} +1 -1
- package/dist/cjs/{sd-date-picker_7.cjs.entry.js → sd-date-picker_8.cjs.entry.js} +381 -19
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +4 -4
- package/dist/cjs/sd-divider.cjs.entry.js +3 -3
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-field_3.cjs.entry.js +10 -10
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +4 -5
- package/dist/cjs/sd-guide.cjs.entry.js +5 -10
- package/dist/cjs/sd-key-value-table.cjs.entry.js +88 -18
- package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +16 -2
- package/dist/cjs/sd-pagination.cjs.entry.js +173 -0
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-popup.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +2 -3
- package/dist/cjs/{sd-select_3.cjs.entry.js → sd-select-list-item_4.cjs.entry.js} +294 -314
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{system-MjrAugX-.js → system-B4KkVpu2.js} +1 -7
- package/dist/cjs/{tooltipArrow-FLiD3ceS.js → tooltipArrow-DOOcBlLp.js} +1 -1
- package/dist/cjs/{useDatePicker-iMd6WToc.js → useDatePicker-CgpIfwLA.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -5
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.css +13 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +23 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +3 -0
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +35 -59
- 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-field/sd-field.js +4 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +9 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +18 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +73 -7
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -1
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.config.js +0 -1
- package/dist/collection/components/sd-guide/sd-guide.css +0 -3
- package/dist/collection/components/sd-guide/sd-guide.js +2 -3
- 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 +2 -0
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +5 -1
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +65 -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.css +7 -0
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +18 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +15 -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-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/p-4S0_Ykmo.js +1 -0
- package/dist/components/{p-Dy6LmOzw.js → p-9Ap2W-Mi.js} +1 -1
- package/dist/components/{p-NeXvaRu7.js → p-BFVfSW9t.js} +1 -1
- package/dist/components/{p-Du_Yc-lW.js → p-BHjezpAC.js} +1 -1
- package/dist/components/{p-DnxEeX9I.js → p-BIEPMPWA.js} +1 -1
- package/dist/components/{p--AZbwi7P.js → p-BKu0I6Io.js} +1 -1
- package/dist/components/{p-DTb2c83G.js → p-B_Zwr4Et.js} +1 -1
- package/dist/components/{p-BysikR_g.js → p-Bpv90tfa.js} +1 -1
- package/dist/components/p-Bth2l1cy.js +1 -0
- package/dist/components/{p-Cok_EW_N.js → p-C7mC7a1z.js} +1 -1
- package/dist/components/{p-CIPPETF-.js → p-CBoDoYDO.js} +1 -1
- package/dist/components/p-CErFctrV.js +1 -0
- package/dist/components/{p-SROa9QCy.js → p-CFTyEfB9.js} +1 -1
- package/dist/components/{p-BaRjXqSM.js → p-CSr33M9s.js} +1 -1
- package/dist/components/p-CYMMLsGt.js +1 -0
- package/dist/components/{p-CvSPsoRb.js → p-C_SG4M4z.js} +1 -1
- package/dist/components/{p-BV4cnHWn.js → p-C_in6AVN.js} +1 -1
- package/dist/components/{p-DsQQFJ8o.js → p-CbS69IvC.js} +1 -1
- package/dist/components/{p-BOJALVxB.js → p-CgSXYw_0.js} +1 -1
- package/dist/components/{p-DVq9oE_p.js → p-CmRF12Fy.js} +1 -1
- package/dist/components/p-CnRfET5y.js +1 -0
- package/dist/components/{p-BFy8txYj.js → p-Cvsrc0be.js} +1 -1
- package/dist/components/{p-PvltLPHp.js → p-DJ8z7_EG.js} +1 -1
- package/dist/components/{p-CwwJD-NF.js → p-DJmxpVkK.js} +1 -1
- package/dist/components/{p-D7XGOtx0.js → p-DMoFncVl.js} +1 -1
- package/dist/components/{p-BxphFsxh.js → p-DN7MAx-q.js} +1 -1
- package/dist/components/{p-hP1aeMuZ.js → p-DS6NVBvu.js} +1 -1
- package/dist/components/{p-Bk6aI8rL.js → p-D_56BjcD.js} +1 -1
- package/dist/components/{p-DMrzTImA.js → p-Dg1UrMqI.js} +1 -1
- package/dist/components/{p-BU1H7ElF.js → p-Di1q4f5E.js} +1 -1
- package/dist/components/p-DlJaYVWf.js +1 -0
- package/dist/components/p-OO7xxhkC.js +1 -0
- package/dist/components/{p-DYp8I4VH.js → p-R-Sdglj0.js} +1 -1
- package/dist/components/p-Uh9emYrV.js +1 -0
- package/dist/components/{p-DkaajrxX.js → p-f0aBxUBG.js} +1 -1
- package/dist/components/{p-DT-e9J59.js → p-idG6CMO0.js} +1 -1
- package/dist/components/p-oYbVr-z0.js +1 -0
- package/dist/components/p-x9AWBHPy.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-chip-input.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.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/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-ddb9a2c4.entry.js → p-02f0b906.entry.js} +1 -1
- package/dist/design-system/{p-a4e1dd8c.entry.js → p-0c1d1a15.entry.js} +1 -1
- package/dist/design-system/{p-cb0cbcb0.entry.js → p-0e014b76.entry.js} +1 -1
- package/dist/design-system/{p-49b1636a.entry.js → p-1b5fcf7b.entry.js} +1 -1
- package/dist/design-system/{p-5aa5aec3.entry.js → p-1ed1bfa1.entry.js} +1 -1
- package/dist/design-system/{p-8c1a9374.entry.js → p-246aafb9.entry.js} +1 -1
- package/dist/design-system/p-26a27312.entry.js +1 -0
- package/dist/design-system/{p-d790fbb8.entry.js → p-2a4d2ee0.entry.js} +1 -1
- package/dist/design-system/{p-270c8529.entry.js → p-2d6a7d7b.entry.js} +1 -1
- package/dist/design-system/{p-947dcc28.entry.js → p-3595cafb.entry.js} +1 -1
- package/dist/design-system/p-3cd2751a.entry.js +1 -0
- package/dist/design-system/p-4S0_Ykmo.js +1 -0
- package/dist/design-system/p-4b474538.entry.js +1 -0
- package/dist/design-system/{p-e63bf0e1.entry.js → p-4c85f6f6.entry.js} +1 -1
- package/dist/design-system/{p-55c8ce37.entry.js → p-53fe2741.entry.js} +1 -1
- package/dist/design-system/{p-06b56059.entry.js → p-55c0be7d.entry.js} +1 -1
- package/dist/design-system/p-5a257ed9.entry.js +1 -0
- package/dist/design-system/{p-459a408f.entry.js → p-840006b1.entry.js} +1 -1
- package/dist/design-system/{p-dae6914d.entry.js → p-86329ae3.entry.js} +1 -1
- package/dist/design-system/{p-8ac340db.entry.js → p-8de3b502.entry.js} +1 -1
- package/dist/design-system/{p-9603971e.entry.js → p-8ed1d470.entry.js} +1 -1
- package/dist/design-system/{p-D2S9Zafz.js → p-B91K50wC.js} +1 -1
- package/dist/design-system/{p-BqWuC4-J.js → p-BPKiBSGr.js} +1 -1
- package/dist/design-system/p-BhcvMs8c.js +1 -0
- package/dist/design-system/p-Bth2l1cy.js +1 -0
- package/dist/design-system/p-DlJaYVWf.js +1 -0
- package/dist/design-system/p-Dz490Ukt.js +2 -0
- package/dist/design-system/{p-761c008c.entry.js → p-a631cd78.entry.js} +1 -1
- package/dist/design-system/p-adf2f398.entry.js +1 -0
- package/dist/design-system/{p-26297c6e.entry.js → p-b585f94b.entry.js} +1 -1
- package/dist/design-system/p-be54fd3a.entry.js +1 -0
- package/dist/design-system/{p-7540f591.entry.js → p-c1066f40.entry.js} +1 -1
- package/dist/design-system/{p-b86a69ce.entry.js → p-c5cffcc6.entry.js} +1 -1
- package/dist/design-system/p-c7d2c195.entry.js +1 -0
- package/dist/design-system/{p-839e6b5a.entry.js → p-cb6ab65c.entry.js} +1 -1
- package/dist/design-system/{p-07755193.entry.js → p-d204cac5.entry.js} +1 -1
- package/dist/design-system/p-d2ce01ac.entry.js +1 -0
- package/dist/design-system/p-d51f4170.entry.js +1 -0
- package/dist/design-system/{p-dfa16f49.entry.js → p-d9f33192.entry.js} +1 -1
- package/dist/design-system/{p-b9387621.entry.js → p-e7740a5f.entry.js} +1 -1
- package/dist/design-system/p-e85bf462.entry.js +1 -0
- package/dist/design-system/{p-9c0d3011.entry.js → p-ea008087.entry.js} +1 -1
- package/dist/design-system/{p-5142cd06.entry.js → p-ec4ad48c.entry.js} +1 -1
- package/dist/design-system/{p-5f1dae23.entry.js → p-f962e5d2.entry.js} +1 -1
- package/dist/esm/{component.datepicker-laVsm9VM.js → component.datepicker-BOxGhKKP.js} +1 -2
- package/dist/esm/component.listBox-DlJaYVWf.js +13 -0
- package/dist/esm/{component.listItem-U8VaRj9c.js → component.listItem-4S0_Ykmo.js} +1 -7
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-BZg-6aSz.js → index-Dz490Ukt.js} +2 -14
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +6 -6
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +2 -3
- package/dist/esm/sd-chip-input.entry.js +4 -3
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +6 -4
- package/dist/esm/sd-confirm-modal_2.entry.js +37 -37
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{sd-date-picker.config-D-ks6qNf.js → sd-date-picker.config-krRuSUsA.js} +1 -1
- package/dist/esm/{sd-date-picker_7.entry.js → sd-date-picker_8.entry.js} +381 -20
- package/dist/esm/sd-date-range-picker-calendar.entry.js +4 -4
- package/dist/esm/sd-divider.entry.js +3 -3
- package/dist/esm/sd-dropdown-button.entry.js +2 -2
- package/dist/esm/sd-field_3.entry.js +10 -10
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +4 -5
- package/dist/esm/sd-guide.entry.js +5 -10
- package/dist/esm/sd-key-value-table.entry.js +87 -17
- package/dist/esm/sd-linear-progress.entry.js +3 -3
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +16 -2
- package/dist/esm/sd-pagination.entry.js +171 -0
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popup.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +2 -3
- package/dist/esm/{sd-select_3.entry.js → sd-select-list-item_4.entry.js} +277 -298
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{system-BJfiMC9H.js → system-Bth2l1cy.js} +1 -7
- package/dist/esm/{tooltipArrow-BAi-pktU.js → tooltipArrow-CEHVt90h.js} +1 -1
- package/dist/esm/{useDatePicker-DoUg--aq.js → useDatePicker-BG0lUGJG.js} +1 -1
- package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +2 -0
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +10 -10
- package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +6 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +10 -0
- package/dist/types/components/sd-guide/sd-guide.config.d.ts +0 -1
- package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +22 -3
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +9 -1
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +2 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +3 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +2 -0
- package/dist/types/components.d.ts +44 -696
- package/dist/types/index.d.ts +0 -1
- package/hydrate/index.js +254 -2235
- package/hydrate/index.mjs +254 -2235
- package/package.json +1 -1
- package/dist/cjs/component.table-BrI3b--h.js +0 -71
- package/dist/cjs/constants-DJRV1upE.js +0 -5
- package/dist/cjs/sd-pagination_4.cjs.entry.js +0 -856
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +0 -172
- package/dist/cjs/sd-select.config-C9Ohe1QA.js +0 -143
- package/dist/cjs/sd-table.cjs.entry.js +0 -956
- package/dist/cjs/sd-table.config-DzC55sap.js +0 -82
- package/dist/cjs/sd-td.cjs.entry.js +0 -201
- package/dist/collection/components/sd-table/constants.js +0 -1
- package/dist/collection/components/sd-table/sd-table.config.js +0 -87
- package/dist/collection/components/sd-table/sd-table.css +0 -180
- package/dist/collection/components/sd-table/sd-table.js +0 -1709
- package/dist/collection/components/sd-table/sd-table.stories.helpers.js +0 -242
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +0 -10
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +0 -110
- package/dist/collection/components/sd-table/sd-td/sd-td.css +0 -15
- package/dist/collection/components/sd-table/sd-td/sd-td.js +0 -381
- package/dist/collection/components/sd-table/sd-thead/sd-thead.css +0 -186
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +0 -629
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +0 -145
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +0 -528
- package/dist/components/p-BHNytAtJ.js +0 -1
- package/dist/components/p-BJfiMC9H.js +0 -1
- package/dist/components/p-BQqXWtI6.js +0 -1
- package/dist/components/p-BXcizROm.js +0 -1
- package/dist/components/p-BZdgdRXJ.js +0 -1
- package/dist/components/p-CJcs7kNH.js +0 -1
- package/dist/components/p-CV5LiFKt.js +0 -1
- package/dist/components/p-CiTn4ZiI.js +0 -1
- package/dist/components/p-CmK45nj3.js +0 -1
- package/dist/components/p-D9tQwTWy.js +0 -1
- package/dist/components/p-DeXLIS7e.js +0 -1
- package/dist/components/p-DmC83_E9.js +0 -1
- package/dist/components/p-DvvGi4J_.js +0 -1
- package/dist/components/p-U8VaRj9c.js +0 -1
- package/dist/components/p-jwusYvH0.js +0 -1
- package/dist/components/p-sZMi_32I.js +0 -1
- package/dist/components/sd-table.d.ts +0 -11
- package/dist/components/sd-table.js +0 -1
- package/dist/components/sd-tbody.d.ts +0 -11
- package/dist/components/sd-tbody.js +0 -1
- package/dist/components/sd-td.d.ts +0 -11
- package/dist/components/sd-td.js +0 -1
- package/dist/components/sd-thead.d.ts +0 -11
- package/dist/components/sd-thead.js +0 -1
- package/dist/components/sd-tr.d.ts +0 -11
- package/dist/components/sd-tr.js +0 -1
- package/dist/design-system/p-147e0413.entry.js +0 -1
- package/dist/design-system/p-51c7839c.entry.js +0 -1
- package/dist/design-system/p-5f5f2fbe.entry.js +0 -1
- package/dist/design-system/p-65285327.entry.js +0 -1
- package/dist/design-system/p-6aec5853.entry.js +0 -1
- package/dist/design-system/p-80abdfe7.entry.js +0 -1
- package/dist/design-system/p-9825e76c.entry.js +0 -1
- package/dist/design-system/p-B-LOf2aM.js +0 -1
- package/dist/design-system/p-BJfiMC9H.js +0 -1
- package/dist/design-system/p-BXcizROm.js +0 -1
- package/dist/design-system/p-BZg-6aSz.js +0 -2
- package/dist/design-system/p-CAFz8W8_.js +0 -1
- package/dist/design-system/p-D9tQwTWy.js +0 -1
- package/dist/design-system/p-U8VaRj9c.js +0 -1
- package/dist/design-system/p-b84f5550.entry.js +0 -1
- package/dist/design-system/p-edfb5c83.entry.js +0 -1
- package/dist/design-system/p-efc55114.entry.js +0 -1
- package/dist/design-system/p-fd671afe.entry.js +0 -1
- package/dist/design-system/p-fe2b853f.entry.js +0 -1
- package/dist/design-system/p-ff9ccbf6.entry.js +0 -1
- package/dist/design-system/p-sZMi_32I.js +0 -1
- package/dist/esm/component.table-D9tQwTWy.js +0 -69
- package/dist/esm/constants-sZMi_32I.js +0 -3
- package/dist/esm/sd-pagination_4.entry.js +0 -851
- package/dist/esm/sd-select-list-item_2.entry.js +0 -169
- package/dist/esm/sd-select.config-D6ktrl7E.js +0 -128
- package/dist/esm/sd-table.config-BbIWNUE2.js +0 -69
- package/dist/esm/sd-table.entry.js +0 -954
- package/dist/esm/sd-td.entry.js +0 -199
- package/dist/types/components/sd-table/constants.d.ts +0 -50
- package/dist/types/components/sd-table/sd-table.config.d.ts +0 -70
- package/dist/types/components/sd-table/sd-table.d.ts +0 -199
- package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +0 -39
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +0 -15
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +0 -38
- package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +0 -62
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +0 -54
- /package/dist/components/{p-laVsm9VM.js → p-BOxGhKKP.js} +0 -0
- /package/dist/design-system/{p-laVsm9VM.js → p-BOxGhKKP.js} +0 -0
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DsYLSqCp.js');
|
|
4
|
-
var sdSelect_config = require('./sd-select.config-C9Ohe1QA.js');
|
|
5
|
-
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
6
|
-
require('./component.listItem-Bnh0r_CA.js');
|
|
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}`;
|
|
9
|
-
|
|
10
|
-
const SdSelectListItem = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
index.registerInstance(this, hostRef);
|
|
13
|
-
this.listItemClick = index.createEvent(this, "sdListItemClick", 7);
|
|
14
|
-
}
|
|
15
|
-
/** 렌더링할 옵션 데이터 */
|
|
16
|
-
option;
|
|
17
|
-
/** 계층 깊이 (1~3) */
|
|
18
|
-
depth = 1;
|
|
19
|
-
/** 선택 상태 (null=중간) */
|
|
20
|
-
isSelected = false;
|
|
21
|
-
/** 키보드 포커스 상태 여부 */
|
|
22
|
-
isFocused = false;
|
|
23
|
-
/** 체크박스 표시 여부 */
|
|
24
|
-
useCheckbox = false;
|
|
25
|
-
/** 다중 선택 시 (선택/전체) 카운트 */
|
|
26
|
-
countInfo;
|
|
27
|
-
/** 항목 클릭 시 발생합니다. */
|
|
28
|
-
listItemClick;
|
|
29
|
-
get isGroup() {
|
|
30
|
-
return !!this.option.children;
|
|
31
|
-
}
|
|
32
|
-
get isSelectable() {
|
|
33
|
-
return !this.isGroup || this.useCheckbox;
|
|
34
|
-
}
|
|
35
|
-
get depthKey() {
|
|
36
|
-
if (this.depth <= 1)
|
|
37
|
-
return 'depth1';
|
|
38
|
-
if (this.depth === 2)
|
|
39
|
-
return 'depth2';
|
|
40
|
-
return 'depth3';
|
|
41
|
-
}
|
|
42
|
-
get paddingLeft() {
|
|
43
|
-
return `${sdSelect_config.LIST_ITEM_LAYOUT.paddingLeft[this.depthKey]}px`;
|
|
44
|
-
}
|
|
45
|
-
handleClick = (e) => {
|
|
46
|
-
e.stopPropagation();
|
|
47
|
-
if (this.option.disabled || !this.isSelectable)
|
|
48
|
-
return;
|
|
49
|
-
this.listItemClick.emit(this.option);
|
|
50
|
-
};
|
|
51
|
-
handleCheckboxClick = (e) => {
|
|
52
|
-
e.stopPropagation();
|
|
53
|
-
};
|
|
54
|
-
handleCheckboxUpdate = (e) => {
|
|
55
|
-
e.stopPropagation();
|
|
56
|
-
if (this.option.disabled || !this.isSelectable)
|
|
57
|
-
return;
|
|
58
|
-
this.listItemClick.emit(this.option);
|
|
59
|
-
};
|
|
60
|
-
render() {
|
|
61
|
-
const isGroup = this.isGroup;
|
|
62
|
-
const isDepth1Group = isGroup && this.depth === 1;
|
|
63
|
-
const isDepth2Group = isGroup && this.depth === 2;
|
|
64
|
-
const cssVars = {
|
|
65
|
-
'--list-item-padding-y': `${sdSelect_config.LIST_ITEM_LAYOUT.paddingY}px`,
|
|
66
|
-
'--list-item-padding-left': this.paddingLeft,
|
|
67
|
-
'--list-item-padding-right': `${sdSelect_config.LIST_ITEM_LAYOUT.paddingRight}px`,
|
|
68
|
-
'--list-item-gap': `${sdSelect_config.LIST_ITEM_LAYOUT.gap}px`,
|
|
69
|
-
'--list-item-font-size': `${sdSelect_config.LIST_ITEM_TYPOGRAPHY.fontSize}px`,
|
|
70
|
-
'--list-item-line-height': `${sdSelect_config.LIST_ITEM_TYPOGRAPHY.lineHeight}px`,
|
|
71
|
-
'--list-item-font-weight': sdSelect_config.LIST_ITEM_TYPOGRAPHY.fontWeight,
|
|
72
|
-
'--list-item-bg': isDepth1Group
|
|
73
|
-
? sdSelect_config.LIST_ITEM_COLORS.depth1.bg
|
|
74
|
-
: isDepth2Group
|
|
75
|
-
? sdSelect_config.LIST_ITEM_COLORS.depth2.bg
|
|
76
|
-
: sdSelect_config.LIST_ITEM_COLORS.bg.default,
|
|
77
|
-
'--list-item-bg-hover': sdSelect_config.LIST_ITEM_COLORS.bg.hover,
|
|
78
|
-
'--list-item-color': sdSelect_config.LIST_ITEM_COLORS.content.default,
|
|
79
|
-
'--list-item-color-hover': sdSelect_config.LIST_ITEM_COLORS.content.hover,
|
|
80
|
-
'--list-item-color-disabled': sdSelect_config.LIST_ITEM_COLORS.content.disabled,
|
|
81
|
-
'--list-item-color-selected': sdSelect_config.LIST_ITEM_COLORS.content.selected,
|
|
82
|
-
'--list-item-font-weight-selected': sdSelect_config.LIST_ITEM_TYPOGRAPHY.selectedFontWeight,
|
|
83
|
-
};
|
|
84
|
-
if (isDepth1Group) {
|
|
85
|
-
cssVars['--list-item-border-top'] =
|
|
86
|
-
`${sdSelect_config.LIST_ITEM_COLORS.depth1.borderWidth}px solid ${sdSelect_config.LIST_ITEM_COLORS.depth1.border}`;
|
|
87
|
-
}
|
|
88
|
-
return (
|
|
89
|
-
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
90
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
91
|
-
index.h("div", { key: 'dd2c4cbd210ed70c00a954a9c6da6923ea76c91e', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
92
|
-
'sd-select-list-item': true,
|
|
93
|
-
'sd-select-list-item--group': isGroup,
|
|
94
|
-
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
95
|
-
'sd-select-list-item--depth2-group': isDepth2Group,
|
|
96
|
-
'sd-select-list-item--selected': this.isSelected === true,
|
|
97
|
-
'sd-select-list-item--indeterminate': this.isSelected === null,
|
|
98
|
-
'sd-select-list-item--focused': this.isFocused,
|
|
99
|
-
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
100
|
-
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
101
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '18fb5ec3ccd00aa34c974975324bb214aa4d38f8', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), 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: '70ee48fdece9e38db3bf9450a5d82ad6db4ec985', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
SdSelectListItem.style = sdSelectListItemCss();
|
|
105
|
-
|
|
106
|
-
const sdSelectListItemSearchCss = () => `sd-select-list-item-search{display:block}sd-select-list-item-search .sd-select-list-item-search{padding:4px 8px;position:sticky;top:0;z-index:1;background:white}sd-select-list-item-search .sd-select-list-item-search--scrolled{box-shadow:0 2px 4px rgba(0, 0, 0, 0.08)}sd-select-list-item-search .sd-select-list-item-search__inner{display:flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #cccccc;border-radius:4px;background:white}sd-select-list-item-search .sd-select-list-item-search__inner:focus-within{border-color:#0075ff}sd-select-list-item-search .sd-select-list-item-search__icon{flex-shrink:0}sd-select-list-item-search .sd-select-list-item-search__input{flex:1;border:none;outline:none;font-size:12px;line-height:20px;color:#222222;background:transparent;min-width:0}sd-select-list-item-search .sd-select-list-item-search__input::placeholder{color:#aaaaaa}sd-select-list-item-search .sd-select-list-item-search__clear{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:2px;border:none;background:transparent;cursor:pointer;border-radius:2px}sd-select-list-item-search .sd-select-list-item-search__clear:hover{background:#f0f0f0}sd-select-list-item-search .sd-select-list-item-search__clear--hidden{visibility:hidden;pointer-events:none}`;
|
|
107
|
-
|
|
108
|
-
const SdSelectListItemSearch = class {
|
|
109
|
-
constructor(hostRef) {
|
|
110
|
-
index.registerInstance(this, hostRef);
|
|
111
|
-
this.searchFilter = index.createEvent(this, "sdSearchFilter", 7);
|
|
112
|
-
this.searchFocus = index.createEvent(this, "sdSearchFocus", 7);
|
|
113
|
-
}
|
|
114
|
-
/** 리스트가 스크롤된 상태 여부 (그림자 효과용) */
|
|
115
|
-
isScrolled = false;
|
|
116
|
-
searchText = '';
|
|
117
|
-
/** 검색어가 변경될 때 발생합니다. */
|
|
118
|
-
searchFilter;
|
|
119
|
-
/** 검색 입력에 포커스될 때 발생합니다. */
|
|
120
|
-
searchFocus;
|
|
121
|
-
inputEl;
|
|
122
|
-
debounceTimer;
|
|
123
|
-
focusRafId;
|
|
124
|
-
componentDidLoad() {
|
|
125
|
-
requestAnimationFrame(() => {
|
|
126
|
-
this.focusRafId = requestAnimationFrame(() => {
|
|
127
|
-
this.inputEl?.focus();
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
/** 검색 입력에 포커스를 이동합니다. */
|
|
132
|
-
async sdFocus() {
|
|
133
|
-
this.inputEl?.focus();
|
|
134
|
-
}
|
|
135
|
-
handleInput = (e) => {
|
|
136
|
-
this.searchText = e.target.value;
|
|
137
|
-
if (this.debounceTimer)
|
|
138
|
-
clearTimeout(this.debounceTimer);
|
|
139
|
-
this.debounceTimer = setTimeout(() => {
|
|
140
|
-
this.searchFilter.emit(this.searchText);
|
|
141
|
-
}, sdSelect_config.SEARCH_DEBOUNCE_MS);
|
|
142
|
-
};
|
|
143
|
-
handleClear = (e) => {
|
|
144
|
-
e.stopPropagation();
|
|
145
|
-
this.searchText = '';
|
|
146
|
-
if (this.debounceTimer)
|
|
147
|
-
clearTimeout(this.debounceTimer);
|
|
148
|
-
this.searchFilter.emit('');
|
|
149
|
-
this.inputEl?.focus();
|
|
150
|
-
};
|
|
151
|
-
disconnectedCallback() {
|
|
152
|
-
if (this.focusRafId !== undefined)
|
|
153
|
-
cancelAnimationFrame(this.focusRafId);
|
|
154
|
-
if (this.debounceTimer !== undefined)
|
|
155
|
-
clearTimeout(this.debounceTimer);
|
|
156
|
-
}
|
|
157
|
-
render() {
|
|
158
|
-
return (index.h("div", { key: '951bb1f2507918c057bb88bd8254a8b4bc4b6018', class: {
|
|
159
|
-
'sd-select-list-item-search': true,
|
|
160
|
-
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
161
|
-
} }, index.h("div", { key: '32164db917f4ccadb301c00e77d8296d0ef59e7d', class: "sd-select-list-item-search__inner" }, index.h("sd-icon", { key: '9493497b5b8b7274c31bac9e865a1949c0cd4493', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), index.h("input", { key: '3917e46b5e6ad55ab7481655fe31d7a3b29632f6', ref: el => {
|
|
162
|
-
this.inputEl = el;
|
|
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: '93c11a138545e9480aae3dd0ed961fe613fc1b14', type: "button", class: {
|
|
164
|
-
'sd-select-list-item-search__clear': true,
|
|
165
|
-
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
166
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: 'dead91d16ab3af88a4a94ee061b9ca1c1336f2f7', name: "close", size: 12, color: "#888888" })))));
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
170
|
-
|
|
171
|
-
exports.sd_select_list_item = SdSelectListItem;
|
|
172
|
-
exports.sd_select_list_item_search = SdSelectListItemSearch;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var component_listItem = require('./component.listItem-Bnh0r_CA.js');
|
|
4
|
-
|
|
5
|
-
const select = {
|
|
6
|
-
sm: {
|
|
7
|
-
paddingX: "12",
|
|
8
|
-
gap: "8",
|
|
9
|
-
typography: {
|
|
10
|
-
fontWeight: "400",
|
|
11
|
-
fontSize: "12",
|
|
12
|
-
lineHeight: "20"}},
|
|
13
|
-
icon: {
|
|
14
|
-
"default": "#888888",
|
|
15
|
-
disabled: "#BBBBBB"
|
|
16
|
-
},
|
|
17
|
-
text: {
|
|
18
|
-
"default": "#222222",
|
|
19
|
-
disabled: "#888888"
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
var selectTokens = {
|
|
23
|
-
select: select
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
// ── Select Trigger Tokens ──
|
|
27
|
-
const SELECT_LAYOUT = {
|
|
28
|
-
paddingX: selectTokens.select.sm.paddingX,
|
|
29
|
-
gap: selectTokens.select.sm.gap};
|
|
30
|
-
const SELECT_TYPOGRAPHY = {
|
|
31
|
-
fontSize: selectTokens.select.sm.typography.fontSize,
|
|
32
|
-
lineHeight: selectTokens.select.sm.typography.lineHeight,
|
|
33
|
-
fontWeight: selectTokens.select.sm.typography.fontWeight,
|
|
34
|
-
};
|
|
35
|
-
const SELECT_COLORS = {
|
|
36
|
-
icon: {
|
|
37
|
-
default: selectTokens.select.icon.default,
|
|
38
|
-
disabled: selectTokens.select.icon.disabled,
|
|
39
|
-
},
|
|
40
|
-
text: {
|
|
41
|
-
default: selectTokens.select.text.default,
|
|
42
|
-
disabled: selectTokens.select.text.disabled,
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
// ── ListItem Tokens ──
|
|
46
|
-
const LIST_ITEM_LAYOUT = {
|
|
47
|
-
paddingY: component_listItem.listItemTokens.listItem.paddingY,
|
|
48
|
-
paddingRight: component_listItem.listItemTokens.listItem.paddingRight,
|
|
49
|
-
paddingLeft: {
|
|
50
|
-
depth1: component_listItem.listItemTokens.listItem.paddingLeft.depth1,
|
|
51
|
-
depth2: component_listItem.listItemTokens.listItem.paddingLeft.depth2,
|
|
52
|
-
depth3: component_listItem.listItemTokens.listItem.paddingLeft.depth3,
|
|
53
|
-
},
|
|
54
|
-
gap: component_listItem.listItemTokens.listItem.gap,
|
|
55
|
-
};
|
|
56
|
-
const LIST_ITEM_TYPOGRAPHY = {
|
|
57
|
-
fontSize: component_listItem.listItemTokens.listItem.typography.default.fontSize,
|
|
58
|
-
lineHeight: component_listItem.listItemTokens.listItem.typography.default.lineHeight,
|
|
59
|
-
fontWeight: component_listItem.listItemTokens.listItem.typography.default.fontWeight,
|
|
60
|
-
selectedFontWeight: component_listItem.listItemTokens.listItem.typography.selected.fontWeight,
|
|
61
|
-
};
|
|
62
|
-
const LIST_ITEM_COLORS = {
|
|
63
|
-
bg: {
|
|
64
|
-
default: component_listItem.listItemTokens.listItem.bg.default,
|
|
65
|
-
hover: component_listItem.listItemTokens.listItem.bg.hover,
|
|
66
|
-
},
|
|
67
|
-
content: {
|
|
68
|
-
default: component_listItem.listItemTokens.listItem.content.default,
|
|
69
|
-
hover: component_listItem.listItemTokens.listItem.content.hover,
|
|
70
|
-
disabled: component_listItem.listItemTokens.listItem.content.disabled,
|
|
71
|
-
selected: component_listItem.listItemTokens.listItem.content.selected,
|
|
72
|
-
},
|
|
73
|
-
depth1: {
|
|
74
|
-
bg: component_listItem.listItemTokens.listItem.depth1.bg.default,
|
|
75
|
-
border: component_listItem.listItemTokens.listItem.depth1.border.color,
|
|
76
|
-
borderWidth: component_listItem.listItemTokens.listItem.depth1.border.width,
|
|
77
|
-
},
|
|
78
|
-
depth2: {
|
|
79
|
-
bg: component_listItem.listItemTokens.listItem.depth2.middle.bg,
|
|
80
|
-
}};
|
|
81
|
-
// ── ListBox Tokens ──
|
|
82
|
-
const LIST_BOX_LAYOUT = {
|
|
83
|
-
radius: component_listItem.listBoxTokens.listBox.radius,
|
|
84
|
-
};
|
|
85
|
-
// ── Constants ──
|
|
86
|
-
const SEARCH_THRESHOLD = 11;
|
|
87
|
-
const SEARCH_DEBOUNCE_MS = 1000;
|
|
88
|
-
const EMPTY_MESSAGE = '표시할 항목이 없습니다.';
|
|
89
|
-
// ── Utilities ──
|
|
90
|
-
function isHtmlLabel(label) {
|
|
91
|
-
return /<[a-z][\s\S]*>/i.test(label);
|
|
92
|
-
}
|
|
93
|
-
function extractText(html) {
|
|
94
|
-
return html.replace(/<[^>]*>/g, '');
|
|
95
|
-
}
|
|
96
|
-
function countLeaves(options) {
|
|
97
|
-
return options.reduce((sum, option) => {
|
|
98
|
-
if (option.children) {
|
|
99
|
-
return sum + countLeaves(option.children);
|
|
100
|
-
}
|
|
101
|
-
return sum + 1;
|
|
102
|
-
}, 0);
|
|
103
|
-
}
|
|
104
|
-
function filterTree(options, keyword) {
|
|
105
|
-
const lowerKeyword = (keyword ?? '').toLowerCase();
|
|
106
|
-
return options.reduce((acc, option) => {
|
|
107
|
-
const labelText = isHtmlLabel(option.label) ? extractText(option.label) : option.label;
|
|
108
|
-
const selfMatch = labelText != null && labelText.toLowerCase().includes(lowerKeyword);
|
|
109
|
-
if (option.children) {
|
|
110
|
-
// 그룹: 자식은 항상 추가로 필터링한다.
|
|
111
|
-
// - 자식 중 일치하는 게 있으면 그 자식들만 노출
|
|
112
|
-
// - 자식 매칭이 없더라도 그룹명이 매칭되면 그룹 헤더는 그대로 노출
|
|
113
|
-
// (이때 children 은 빈 배열로 두고, 선택 동작은 collectVisibleLeaves
|
|
114
|
-
// 의 fallback 이 원본 트리를 사용해 처리한다)
|
|
115
|
-
const filteredChildren = filterTree(option.children, keyword);
|
|
116
|
-
if (filteredChildren.length > 0) {
|
|
117
|
-
acc.push({ ...option, children: filteredChildren });
|
|
118
|
-
}
|
|
119
|
-
else if (selfMatch) {
|
|
120
|
-
acc.push({ ...option, children: [] });
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
else if (selfMatch) {
|
|
124
|
-
acc.push({ ...option });
|
|
125
|
-
}
|
|
126
|
-
return acc;
|
|
127
|
-
}, []);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
exports.EMPTY_MESSAGE = EMPTY_MESSAGE;
|
|
131
|
-
exports.LIST_BOX_LAYOUT = LIST_BOX_LAYOUT;
|
|
132
|
-
exports.LIST_ITEM_COLORS = LIST_ITEM_COLORS;
|
|
133
|
-
exports.LIST_ITEM_LAYOUT = LIST_ITEM_LAYOUT;
|
|
134
|
-
exports.LIST_ITEM_TYPOGRAPHY = LIST_ITEM_TYPOGRAPHY;
|
|
135
|
-
exports.SEARCH_DEBOUNCE_MS = SEARCH_DEBOUNCE_MS;
|
|
136
|
-
exports.SEARCH_THRESHOLD = SEARCH_THRESHOLD;
|
|
137
|
-
exports.SELECT_COLORS = SELECT_COLORS;
|
|
138
|
-
exports.SELECT_LAYOUT = SELECT_LAYOUT;
|
|
139
|
-
exports.SELECT_TYPOGRAPHY = SELECT_TYPOGRAPHY;
|
|
140
|
-
exports.countLeaves = countLeaves;
|
|
141
|
-
exports.extractText = extractText;
|
|
142
|
-
exports.filterTree = filterTree;
|
|
143
|
-
exports.isHtmlLabel = isHtmlLabel;
|