@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,82 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var component_table = require('./component.table-BrI3b--h.js');
|
|
4
|
-
var system = require('./system-MjrAugX-.js');
|
|
5
|
-
|
|
6
|
-
// ── Header Tokens ──
|
|
7
|
-
const TABLE_HEADER_LAYOUT = {
|
|
8
|
-
height: component_table.tableTokens.table.header.height,
|
|
9
|
-
paddingX: component_table.tableTokens.table.header.paddingX,
|
|
10
|
-
gap: component_table.tableTokens.table.header.gap,
|
|
11
|
-
};
|
|
12
|
-
const TABLE_HEADER_TYPOGRAPHY = {
|
|
13
|
-
fontFamily: component_table.tableTokens.table.header.typography.fontFamily,
|
|
14
|
-
fontWeight: component_table.tableTokens.table.header.typography.fontWeight,
|
|
15
|
-
fontSize: component_table.tableTokens.table.header.typography.fontSize,
|
|
16
|
-
lineHeight: component_table.tableTokens.table.header.typography.lineHeight,
|
|
17
|
-
textDecoration: component_table.tableTokens.table.header.typography.textDecoration,
|
|
18
|
-
};
|
|
19
|
-
const TABLE_HEADER_COLORS = {
|
|
20
|
-
bg: component_table.tableTokens.table.header.bg,
|
|
21
|
-
};
|
|
22
|
-
const TABLE_HEADER_RESIZING_BAR = {
|
|
23
|
-
color: component_table.tableTokens.table.header.resizingBar.color,
|
|
24
|
-
height: component_table.tableTokens.table.header.resizingBar.height,
|
|
25
|
-
};
|
|
26
|
-
// ── Body Tokens ──
|
|
27
|
-
const TABLE_BODY_LAYOUT = {
|
|
28
|
-
default: {
|
|
29
|
-
height: component_table.tableTokens.table.body.default.height,
|
|
30
|
-
paddingY: component_table.tableTokens.table.body.default.paddingY,
|
|
31
|
-
},
|
|
32
|
-
dense: {
|
|
33
|
-
height: component_table.tableTokens.table.body.dense.height,
|
|
34
|
-
paddingY: component_table.tableTokens.table.body.dense.paddingY,
|
|
35
|
-
},
|
|
36
|
-
paddingX: component_table.tableTokens.table.body.paddingX.default,
|
|
37
|
-
framePadding: component_table.tableTokens.table.body.paddingX.frame,
|
|
38
|
-
};
|
|
39
|
-
const TABLE_BODY_TYPOGRAPHY = {
|
|
40
|
-
fontFamily: component_table.tableTokens.table.body.typography.fontFamily,
|
|
41
|
-
fontWeight: component_table.tableTokens.table.body.typography.fontWeight,
|
|
42
|
-
fontSize: component_table.tableTokens.table.body.typography.fontSize,
|
|
43
|
-
lineHeight: component_table.tableTokens.table.body.typography.lineHeight,
|
|
44
|
-
textDecoration: component_table.tableTokens.table.body.typography.textDecoration,
|
|
45
|
-
};
|
|
46
|
-
// ── Frame / Border Tokens ──
|
|
47
|
-
const TABLE_BORDER = {
|
|
48
|
-
color: component_table.tableTokens.table.border.color,
|
|
49
|
-
width: component_table.tableTokens.table.border.width,
|
|
50
|
-
};
|
|
51
|
-
const TABLE_SEPARATOR = {
|
|
52
|
-
color: component_table.tableTokens.table.separator.color,
|
|
53
|
-
width: component_table.tableTokens.table.separator.width.default,
|
|
54
|
-
denseWidth: component_table.tableTokens.table.separator.width.dense,
|
|
55
|
-
};
|
|
56
|
-
const TABLE_RADIUS = component_table.tableTokens.table.radius;
|
|
57
|
-
// ── Selectable Column ──
|
|
58
|
-
const TABLE_SELECTABLE_COLUMN_WIDTH = 48;
|
|
59
|
-
// ── Header Icon Color Defaults ──
|
|
60
|
-
const ICON_DEFAULT_COLOR = {
|
|
61
|
-
pageEdit: system.systemTokens.color.darkblue.strong,
|
|
62
|
-
arrowDown: system.systemTokens.color.darkblue.strong,
|
|
63
|
-
arrowUp: system.systemTokens.color.darkblue.strong,
|
|
64
|
-
updown: system.systemTokens.color.grey.strong,
|
|
65
|
-
pageMove: system.systemTokens.color.darkblue.strong,
|
|
66
|
-
star: system.systemTokens.color.blue.strong,
|
|
67
|
-
};
|
|
68
|
-
const resolveTableIconColor = (name, override) => override ?? ICON_DEFAULT_COLOR[name];
|
|
69
|
-
const resolveSortIconName = (sort) => sort === 'asc' ? 'arrowDown' : sort === 'desc' ? 'arrowUp' : 'updown';
|
|
70
|
-
|
|
71
|
-
exports.TABLE_BODY_LAYOUT = TABLE_BODY_LAYOUT;
|
|
72
|
-
exports.TABLE_BODY_TYPOGRAPHY = TABLE_BODY_TYPOGRAPHY;
|
|
73
|
-
exports.TABLE_BORDER = TABLE_BORDER;
|
|
74
|
-
exports.TABLE_HEADER_COLORS = TABLE_HEADER_COLORS;
|
|
75
|
-
exports.TABLE_HEADER_LAYOUT = TABLE_HEADER_LAYOUT;
|
|
76
|
-
exports.TABLE_HEADER_RESIZING_BAR = TABLE_HEADER_RESIZING_BAR;
|
|
77
|
-
exports.TABLE_HEADER_TYPOGRAPHY = TABLE_HEADER_TYPOGRAPHY;
|
|
78
|
-
exports.TABLE_RADIUS = TABLE_RADIUS;
|
|
79
|
-
exports.TABLE_SELECTABLE_COLUMN_WIDTH = TABLE_SELECTABLE_COLUMN_WIDTH;
|
|
80
|
-
exports.TABLE_SEPARATOR = TABLE_SEPARATOR;
|
|
81
|
-
exports.resolveSortIconName = resolveSortIconName;
|
|
82
|
-
exports.resolveTableIconColor = resolveTableIconColor;
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-DsYLSqCp.js');
|
|
4
|
-
var constants = require('./constants-DJRV1upE.js');
|
|
5
|
-
|
|
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}`;
|
|
7
|
-
|
|
8
|
-
const SdTd = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
}
|
|
12
|
-
get el() { return index.getElement(this); }
|
|
13
|
-
/** 데이터 필드명 (슬롯 이름 생성에 사용) */
|
|
14
|
-
field;
|
|
15
|
-
/** 행 식별 키 */
|
|
16
|
-
rowKey;
|
|
17
|
-
/** 셀 내용 정렬 */
|
|
18
|
-
align;
|
|
19
|
-
/** 행 병합 수 */
|
|
20
|
-
rowspan;
|
|
21
|
-
/** 열 병합 수 */
|
|
22
|
-
colspan;
|
|
23
|
-
// sd-tr가 그리는 실제 <td>에 머지될 사용자 클래스.
|
|
24
|
-
// <sd-td> 호스트는 display:contents라 호스트의 class는 시각 효과가 없기 때문에,
|
|
25
|
-
// 이 prop을 통해 sd-table 레지스트리에 등록 → sd-tr가 td 렌더 시 합쳐 사용한다.
|
|
26
|
-
/** td에 병합할 사용자 클래스 */
|
|
27
|
-
sdClass;
|
|
28
|
-
/** 좌측 구분선 표시 여부 */
|
|
29
|
-
dividerLeft = false;
|
|
30
|
-
/** 우측 구분선 표시 여부 */
|
|
31
|
-
dividerRight = false;
|
|
32
|
-
// true이면 이 셀이 속한 행 전체가 dense를 무시하고 default 레이아웃으로 동작한다.
|
|
33
|
-
/** frame 레이아웃 사용 여부 */
|
|
34
|
-
useFrame = false;
|
|
35
|
-
handleFieldChange(_newField, oldField) {
|
|
36
|
-
this.syncSlotName();
|
|
37
|
-
this.syncSpanRegistration();
|
|
38
|
-
this.syncCellClassRegistration(oldField);
|
|
39
|
-
this.syncUseFrameRegistration(oldField);
|
|
40
|
-
}
|
|
41
|
-
handleRowKeyChange(_newKey, oldKey) {
|
|
42
|
-
this.syncSlotName();
|
|
43
|
-
this.syncSpanRegistration();
|
|
44
|
-
this.syncCellClassRegistration(undefined, oldKey);
|
|
45
|
-
this.syncUseFrameRegistration(undefined, oldKey);
|
|
46
|
-
}
|
|
47
|
-
handleSpanChange() {
|
|
48
|
-
this.syncSpanRegistration();
|
|
49
|
-
}
|
|
50
|
-
handleSdClassChange() {
|
|
51
|
-
this.syncCellClassRegistration();
|
|
52
|
-
}
|
|
53
|
-
handleDividerChange() {
|
|
54
|
-
this.syncCellClassRegistration();
|
|
55
|
-
}
|
|
56
|
-
handleUseFrameChange() {
|
|
57
|
-
this.syncUseFrameRegistration();
|
|
58
|
-
this.requestParentTrUpdate();
|
|
59
|
-
}
|
|
60
|
-
componentWillLoad() {
|
|
61
|
-
this.syncSlotName();
|
|
62
|
-
this.syncSpanRegistration();
|
|
63
|
-
this.syncCellClassRegistration();
|
|
64
|
-
this.syncUseFrameRegistration();
|
|
65
|
-
// slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
|
|
66
|
-
const parentTr = this.el.parentElement;
|
|
67
|
-
if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
|
|
68
|
-
index.forceUpdate(parentTr);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
componentDidLoad() {
|
|
72
|
-
this.syncSlotName();
|
|
73
|
-
this.syncSpanRegistration();
|
|
74
|
-
this.syncCellClassRegistration();
|
|
75
|
-
this.syncUseFrameRegistration();
|
|
76
|
-
}
|
|
77
|
-
// React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
|
|
78
|
-
// 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
|
|
79
|
-
// 재연결 시점에도 등록 상태를 복구해야 rowspan/colspan이 유지된다.
|
|
80
|
-
connectedCallback() {
|
|
81
|
-
this.syncSpanRegistration();
|
|
82
|
-
this.syncCellClassRegistration();
|
|
83
|
-
this.syncUseFrameRegistration();
|
|
84
|
-
}
|
|
85
|
-
disconnectedCallback() {
|
|
86
|
-
const table = this.findTable();
|
|
87
|
-
if (table != null && this.field !== '' && this.rowKey != null) {
|
|
88
|
-
table.unregisterSpanSync?.(String(this.rowKey), this.field);
|
|
89
|
-
table.unregisterCellClassSync?.(String(this.rowKey), this.field);
|
|
90
|
-
table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
|
|
91
|
-
this.requestParentTrUpdate();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
findTable() {
|
|
95
|
-
return this.el.closest('sd-table');
|
|
96
|
-
}
|
|
97
|
-
requestParentTrUpdate() {
|
|
98
|
-
const parentTr = this.el.parentElement;
|
|
99
|
-
if (parentTr?.tagName?.toLowerCase() !== 'sd-tr')
|
|
100
|
-
return;
|
|
101
|
-
const trAny = parentTr;
|
|
102
|
-
if (typeof trAny.bumpSpansVersion === 'function') {
|
|
103
|
-
trAny.bumpSpansVersion();
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
index.forceUpdate(parentTr);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
syncSpanRegistration() {
|
|
110
|
-
const table = this.findTable();
|
|
111
|
-
if (table?.registerSpanSync == null || this.field === '' || this.rowKey == null)
|
|
112
|
-
return;
|
|
113
|
-
const rs = Math.max(1, Math.floor(Number(this.rowspan) || 1));
|
|
114
|
-
const cs = Math.max(1, Math.floor(Number(this.colspan) || 1));
|
|
115
|
-
table.registerSpanSync(String(this.rowKey), this.field, rs, cs);
|
|
116
|
-
this.requestParentTrUpdate();
|
|
117
|
-
}
|
|
118
|
-
// field/rowKey가 바뀌면 이전 키에 등록된 클래스가 남으므로 먼저 해제하고 새 키로 등록한다.
|
|
119
|
-
syncCellClassRegistration(prevField, prevRowKey) {
|
|
120
|
-
const table = this.findTable();
|
|
121
|
-
if (!table)
|
|
122
|
-
return;
|
|
123
|
-
const oldField = prevField ?? this.field;
|
|
124
|
-
const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
|
|
125
|
-
if (oldField !== '' && oldRowKey != null) {
|
|
126
|
-
table.unregisterCellClassSync?.(oldRowKey, oldField);
|
|
127
|
-
}
|
|
128
|
-
if (!table.registerCellClassSync || this.field === '' || this.rowKey == null)
|
|
129
|
-
return;
|
|
130
|
-
const combinedClass = [
|
|
131
|
-
this.sdClass,
|
|
132
|
-
this.dividerLeft && 'td--divider-left',
|
|
133
|
-
this.dividerRight && 'td--divider-right',
|
|
134
|
-
]
|
|
135
|
-
.filter(Boolean)
|
|
136
|
-
.join(' ') || undefined;
|
|
137
|
-
table.registerCellClassSync(String(this.rowKey), this.field, combinedClass);
|
|
138
|
-
this.requestParentTrUpdate();
|
|
139
|
-
}
|
|
140
|
-
syncUseFrameRegistration(prevField, prevRowKey) {
|
|
141
|
-
const table = this.findTable();
|
|
142
|
-
if (!table)
|
|
143
|
-
return;
|
|
144
|
-
const oldField = prevField ?? this.field;
|
|
145
|
-
const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
|
|
146
|
-
if (oldField !== '' && oldRowKey != null) {
|
|
147
|
-
table.unregisterUseFrameSync?.(oldRowKey, oldField);
|
|
148
|
-
}
|
|
149
|
-
if (this.field === '' || this.rowKey == null)
|
|
150
|
-
return;
|
|
151
|
-
if (this.useFrame) {
|
|
152
|
-
table.registerUseFrameSync?.(String(this.rowKey), this.field);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
syncSlotName() {
|
|
159
|
-
const table = this.el.closest('sd-table');
|
|
160
|
-
const fromMethod = table?.getTableIdSync?.();
|
|
161
|
-
const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
|
|
162
|
-
const tableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
163
|
-
(fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
164
|
-
'';
|
|
165
|
-
if (this.field !== '' && this.rowKey !== undefined && tableId !== '') {
|
|
166
|
-
this.el.setAttribute('slot', `${tableId}-${this.field}-${this.rowKey}`);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
render() {
|
|
170
|
-
return (index.h(index.Host, { key: '2fce45ffda30fd75a0c0ef2ff0de5896c409c108', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '3e2131547d544d01c745017f3375a26df35a9d6e' })));
|
|
171
|
-
}
|
|
172
|
-
static get watchers() { return {
|
|
173
|
-
"field": [{
|
|
174
|
-
"handleFieldChange": 0
|
|
175
|
-
}],
|
|
176
|
-
"rowKey": [{
|
|
177
|
-
"handleRowKeyChange": 0
|
|
178
|
-
}],
|
|
179
|
-
"rowspan": [{
|
|
180
|
-
"handleSpanChange": 0
|
|
181
|
-
}],
|
|
182
|
-
"colspan": [{
|
|
183
|
-
"handleSpanChange": 0
|
|
184
|
-
}],
|
|
185
|
-
"sdClass": [{
|
|
186
|
-
"handleSdClassChange": 0
|
|
187
|
-
}],
|
|
188
|
-
"dividerLeft": [{
|
|
189
|
-
"handleDividerChange": 0
|
|
190
|
-
}],
|
|
191
|
-
"dividerRight": [{
|
|
192
|
-
"handleDividerChange": 0
|
|
193
|
-
}],
|
|
194
|
-
"useFrame": [{
|
|
195
|
-
"handleUseFrameChange": 0
|
|
196
|
-
}]
|
|
197
|
-
}; }
|
|
198
|
-
};
|
|
199
|
-
SdTd.style = sdTdCss();
|
|
200
|
-
|
|
201
|
-
exports.sd_td = SdTd;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const TABLE_ID_ATTR = 'table-id';
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import tableTokens from "../../tokens/generated/component.table.json";
|
|
2
|
-
import systemTokens from "../../tokens/generated/system.json";
|
|
3
|
-
// ── Header Tokens ──
|
|
4
|
-
export const TABLE_HEADER_LAYOUT = {
|
|
5
|
-
height: tableTokens.table.header.height,
|
|
6
|
-
paddingX: tableTokens.table.header.paddingX,
|
|
7
|
-
gap: tableTokens.table.header.gap,
|
|
8
|
-
};
|
|
9
|
-
export const TABLE_HEADER_TYPOGRAPHY = {
|
|
10
|
-
fontFamily: tableTokens.table.header.typography.fontFamily,
|
|
11
|
-
fontWeight: tableTokens.table.header.typography.fontWeight,
|
|
12
|
-
fontSize: tableTokens.table.header.typography.fontSize,
|
|
13
|
-
lineHeight: tableTokens.table.header.typography.lineHeight,
|
|
14
|
-
textDecoration: tableTokens.table.header.typography.textDecoration,
|
|
15
|
-
};
|
|
16
|
-
export const TABLE_HEADER_COLORS = {
|
|
17
|
-
bg: tableTokens.table.header.bg,
|
|
18
|
-
};
|
|
19
|
-
export const TABLE_HEADER_RESIZING_BAR = {
|
|
20
|
-
color: tableTokens.table.header.resizingBar.color,
|
|
21
|
-
height: tableTokens.table.header.resizingBar.height,
|
|
22
|
-
};
|
|
23
|
-
// ── Body Tokens ──
|
|
24
|
-
export const TABLE_BODY_LAYOUT = {
|
|
25
|
-
default: {
|
|
26
|
-
height: tableTokens.table.body.default.height,
|
|
27
|
-
paddingY: tableTokens.table.body.default.paddingY,
|
|
28
|
-
},
|
|
29
|
-
dense: {
|
|
30
|
-
height: tableTokens.table.body.dense.height,
|
|
31
|
-
paddingY: tableTokens.table.body.dense.paddingY,
|
|
32
|
-
},
|
|
33
|
-
paddingX: tableTokens.table.body.paddingX.default,
|
|
34
|
-
framePadding: tableTokens.table.body.paddingX.frame,
|
|
35
|
-
};
|
|
36
|
-
export const TABLE_BODY_TYPOGRAPHY = {
|
|
37
|
-
fontFamily: tableTokens.table.body.typography.fontFamily,
|
|
38
|
-
fontWeight: tableTokens.table.body.typography.fontWeight,
|
|
39
|
-
fontSize: tableTokens.table.body.typography.fontSize,
|
|
40
|
-
lineHeight: tableTokens.table.body.typography.lineHeight,
|
|
41
|
-
textDecoration: tableTokens.table.body.typography.textDecoration,
|
|
42
|
-
};
|
|
43
|
-
// ── Frame / Border Tokens ──
|
|
44
|
-
export const TABLE_BORDER = {
|
|
45
|
-
color: tableTokens.table.border.color,
|
|
46
|
-
width: tableTokens.table.border.width,
|
|
47
|
-
};
|
|
48
|
-
export const TABLE_SEPARATOR = {
|
|
49
|
-
color: tableTokens.table.separator.color,
|
|
50
|
-
width: tableTokens.table.separator.width.default,
|
|
51
|
-
denseWidth: tableTokens.table.separator.width.dense,
|
|
52
|
-
};
|
|
53
|
-
export const TABLE_RADIUS = tableTokens.table.radius;
|
|
54
|
-
// ── Content Tokens ──
|
|
55
|
-
export const TABLE_CONTENT = {
|
|
56
|
-
gap: tableTokens.table.content.gap,
|
|
57
|
-
};
|
|
58
|
-
// ── Bar Tokens ──
|
|
59
|
-
export const TABLE_BAR_LAYOUT = {
|
|
60
|
-
height: tableTokens.table.bar.height,
|
|
61
|
-
sectionGap: tableTokens.table.bar.section.gap,
|
|
62
|
-
dividerHeight: tableTokens.table.bar.divider.height,
|
|
63
|
-
};
|
|
64
|
-
export const TABLE_BAR_COLORS = {
|
|
65
|
-
count: {
|
|
66
|
-
total: tableTokens.table.bar.count.total,
|
|
67
|
-
null: tableTokens.table.bar.count.null,
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
// ── KeyValue Tokens ──
|
|
71
|
-
export const TABLE_KEY_VALUE = {
|
|
72
|
-
bodyPadding: tableTokens.table.keyValue.body.paddingY,
|
|
73
|
-
height: tableTokens.table.keyValue.height,
|
|
74
|
-
};
|
|
75
|
-
// ── Selectable Column ──
|
|
76
|
-
export const TABLE_SELECTABLE_COLUMN_WIDTH = 48;
|
|
77
|
-
// ── Header Icon Color Defaults ──
|
|
78
|
-
const ICON_DEFAULT_COLOR = {
|
|
79
|
-
pageEdit: systemTokens.color.darkblue.strong,
|
|
80
|
-
arrowDown: systemTokens.color.darkblue.strong,
|
|
81
|
-
arrowUp: systemTokens.color.darkblue.strong,
|
|
82
|
-
updown: systemTokens.color.grey.strong,
|
|
83
|
-
pageMove: systemTokens.color.darkblue.strong,
|
|
84
|
-
star: systemTokens.color.blue.strong,
|
|
85
|
-
};
|
|
86
|
-
export const resolveTableIconColor = (name, override) => override ?? ICON_DEFAULT_COLOR[name];
|
|
87
|
-
export const resolveSortIconName = (sort) => sort === 'asc' ? 'arrowDown' : sort === 'desc' ? 'arrowUp' : 'updown';
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
sd-table,
|
|
2
|
-
:host {
|
|
3
|
-
display: block;
|
|
4
|
-
width: 100%;
|
|
5
|
-
height: var(--table-host-height);
|
|
6
|
-
max-width: 100%;
|
|
7
|
-
min-width: 0;
|
|
8
|
-
}
|
|
9
|
-
sd-table *,
|
|
10
|
-
:host * {
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.sd-table__container {
|
|
15
|
-
height: 100%;
|
|
16
|
-
width: var(--table-width, 100%);
|
|
17
|
-
max-width: 100%;
|
|
18
|
-
min-width: 0;
|
|
19
|
-
color: #222222;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.sd-table__wrapper {
|
|
25
|
-
width: 100%;
|
|
26
|
-
min-width: 0;
|
|
27
|
-
height: calc(100% - var(--pagination-height, 0px));
|
|
28
|
-
border: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
|
|
29
|
-
border-radius: var(--table-radius, 8px);
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
}
|
|
32
|
-
.sd-table__wrapper--radius-useTop {
|
|
33
|
-
border-radius: 0 0 var(--table-radius, 8px) var(--table-radius, 8px);
|
|
34
|
-
}
|
|
35
|
-
.sd-table__wrapper--radius-full {
|
|
36
|
-
border-radius: 0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.sd-table__scroll-container {
|
|
40
|
-
width: 100%;
|
|
41
|
-
height: 100%;
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
position: relative;
|
|
45
|
-
font-family: var(--table-body-font-family, inherit);
|
|
46
|
-
font-weight: var(--table-body-font-weight, 400);
|
|
47
|
-
font-size: var(--table-body-font-size, 12px);
|
|
48
|
-
line-height: var(--table-body-line-height, 20px);
|
|
49
|
-
text-decoration: var(--table-body-text-decoration, none);
|
|
50
|
-
overflow: auto;
|
|
51
|
-
background: #FFFFFF;
|
|
52
|
-
}
|
|
53
|
-
.sd-table__scroll-container::-webkit-scrollbar {
|
|
54
|
-
opacity: 0;
|
|
55
|
-
width: 8px;
|
|
56
|
-
background: #E5E5E5;
|
|
57
|
-
}
|
|
58
|
-
.sd-table__scroll-container::-webkit-scrollbar:horizontal {
|
|
59
|
-
height: 8px;
|
|
60
|
-
}
|
|
61
|
-
.sd-table__scroll-container::-webkit-scrollbar-thumb {
|
|
62
|
-
height: 80px;
|
|
63
|
-
background-color: #CCCCCC;
|
|
64
|
-
border-radius: 4px;
|
|
65
|
-
}
|
|
66
|
-
.sd-table__scroll-container::-webkit-scrollbar-track {
|
|
67
|
-
background-color: #E5E5E5;
|
|
68
|
-
}
|
|
69
|
-
.sd-table__scroll-container--loading {
|
|
70
|
-
overflow: hidden !important;
|
|
71
|
-
pointer-events: none;
|
|
72
|
-
}
|
|
73
|
-
.sd-table__scroll-container--no-data {
|
|
74
|
-
overflow: hidden;
|
|
75
|
-
pointer-events: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.sd-table__no-data {
|
|
79
|
-
position: absolute;
|
|
80
|
-
top: 36px;
|
|
81
|
-
left: 0;
|
|
82
|
-
right: 0;
|
|
83
|
-
bottom: 0;
|
|
84
|
-
display: flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
justify-content: center;
|
|
87
|
-
font-size: var(--table-body-font-size, 12px);
|
|
88
|
-
color: #888888;
|
|
89
|
-
pointer-events: none;
|
|
90
|
-
z-index: 200;
|
|
91
|
-
background: rgba(255, 255, 255, 0.6);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.sd-table__no-data-header-overlay {
|
|
95
|
-
position: absolute;
|
|
96
|
-
top: 0;
|
|
97
|
-
left: 0;
|
|
98
|
-
right: 0;
|
|
99
|
-
height: 36px;
|
|
100
|
-
background: rgba(255, 255, 255, 0.6);
|
|
101
|
-
z-index: 210;
|
|
102
|
-
pointer-events: none;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.sd-table__no-data-content {
|
|
106
|
-
pointer-events: auto;
|
|
107
|
-
min-height: 60px;
|
|
108
|
-
width: 100%;
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
justify-content: center;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.sd-table__loading {
|
|
115
|
-
position: absolute;
|
|
116
|
-
top: 0;
|
|
117
|
-
left: 0;
|
|
118
|
-
width: 100%;
|
|
119
|
-
height: 100%;
|
|
120
|
-
background: rgba(255, 255, 255, 0.6);
|
|
121
|
-
z-index: 200;
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
justify-content: center;
|
|
125
|
-
pointer-events: none;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.sd-table {
|
|
129
|
-
background-color: white;
|
|
130
|
-
display: table;
|
|
131
|
-
width: 100%;
|
|
132
|
-
border-collapse: separate;
|
|
133
|
-
border-spacing: 0;
|
|
134
|
-
table-layout: fixed;
|
|
135
|
-
}
|
|
136
|
-
.sd-table--selectable sd-thead,
|
|
137
|
-
.sd-table--selectable sd-tbody {
|
|
138
|
-
--selectable: true;
|
|
139
|
-
}
|
|
140
|
-
.sd-table--sticky-header sd-thead thead {
|
|
141
|
-
position: sticky;
|
|
142
|
-
top: 0;
|
|
143
|
-
z-index: 120;
|
|
144
|
-
}
|
|
145
|
-
.sd-table--sticky-column sd-thead,
|
|
146
|
-
.sd-table--sticky-column sd-tbody {
|
|
147
|
-
--sticky-column: true;
|
|
148
|
-
}
|
|
149
|
-
.sd-table--scrolled-left sd-thead,
|
|
150
|
-
.sd-table--scrolled-left sd-tbody {
|
|
151
|
-
--scrolled-left: true;
|
|
152
|
-
}
|
|
153
|
-
.sd-table--scrolled-right sd-thead,
|
|
154
|
-
.sd-table--scrolled-right sd-tbody {
|
|
155
|
-
--scrolled-right: true;
|
|
156
|
-
}
|
|
157
|
-
.sd-table--resizable sd-thead {
|
|
158
|
-
--resizable: true;
|
|
159
|
-
}
|
|
160
|
-
.sd-table--no-data sd-thead {
|
|
161
|
-
opacity: 0.4;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.sd-table__pagination {
|
|
165
|
-
position: relative;
|
|
166
|
-
background: #F9F9F9;
|
|
167
|
-
height: 48px;
|
|
168
|
-
display: flex;
|
|
169
|
-
align-items: center;
|
|
170
|
-
justify-content: center;
|
|
171
|
-
border: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
|
|
172
|
-
margin-top: -1px;
|
|
173
|
-
border-radius: var(--table-radius, 8px);
|
|
174
|
-
}
|
|
175
|
-
.sd-table__pagination sd-select {
|
|
176
|
-
position: absolute;
|
|
177
|
-
right: 10px;
|
|
178
|
-
top: 50%;
|
|
179
|
-
transform: translateY(-50%);
|
|
180
|
-
}
|