@sellmate/design-system 1.28.0 → 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/design-system.cjs.js +2 -2
- package/dist/cjs/{index-D12oddge.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 +1 -1
- package/dist/cjs/sd-chip-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +33 -36
- 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} +327 -18
- 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 +9 -9
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +3 -3
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- 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 +1 -1
- package/dist/cjs/{sd-select_3.cjs.entry.js → sd-select-list-item_4.cjs.entry.js} +294 -315
- 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-Dda4ik0V.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 +1 -0
- 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.js +6 -6
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +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.js +1 -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-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-pwGA4sDj.js → p-9Ap2W-Mi.js} +1 -1
- package/dist/components/p-BFVfSW9t.js +1 -0
- package/dist/components/{p-BuADVB78.js → p-BHjezpAC.js} +1 -1
- package/dist/components/{p-CHHlQceE.js → p-BIEPMPWA.js} +1 -1
- package/dist/components/{p-CMvHDxR5.js → p-BKu0I6Io.js} +1 -1
- package/dist/components/{p-B3HYnTGx.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-DNbbdJIc.js → p-C7mC7a1z.js} +1 -1
- package/dist/components/{p-B2pYDEK7.js → p-CBoDoYDO.js} +1 -1
- package/dist/components/p-CErFctrV.js +1 -0
- package/dist/components/{p-ClD0nx1l.js → p-CFTyEfB9.js} +1 -1
- package/dist/components/{p-1i6Q61TF.js → p-CSr33M9s.js} +1 -1
- package/dist/components/{p-C0tnN4yn.js → p-CYMMLsGt.js} +1 -1
- package/dist/components/{p-l9RiSWRc.js → p-C_SG4M4z.js} +1 -1
- package/dist/components/{p-BE6ymp9E.js → p-C_in6AVN.js} +1 -1
- package/dist/components/{p-BAVsc1Ml.js → p-CbS69IvC.js} +1 -1
- package/dist/components/{p-BWHQn4fD.js → p-CgSXYw_0.js} +1 -1
- package/dist/components/{p-BQ4Okfcm.js → p-CmRF12Fy.js} +1 -1
- package/dist/components/{p-DbPS61bp.js → p-CnRfET5y.js} +1 -1
- package/dist/components/{p-Bxb7TcZh.js → p-Cvsrc0be.js} +1 -1
- package/dist/components/{p-BCxePXvg.js → p-DJ8z7_EG.js} +1 -1
- package/dist/components/{p-paSLRXAR.js → p-DJmxpVkK.js} +1 -1
- package/dist/components/{p-IDlLs_KA.js → p-DMoFncVl.js} +1 -1
- package/dist/components/{p-B-pJW3nY.js → p-DN7MAx-q.js} +1 -1
- package/dist/components/{p-E8OA_psS.js → p-DS6NVBvu.js} +1 -1
- package/dist/components/{p-BNHhtZUf.js → p-D_56BjcD.js} +1 -1
- package/dist/components/{p-CTDPl65u.js → p-Dg1UrMqI.js} +1 -1
- package/dist/components/{p-BKV1WAFb.js → p-Di1q4f5E.js} +1 -1
- package/dist/components/{p-Bgxca9o5.js → p-OO7xxhkC.js} +1 -1
- package/dist/components/{p-vtuEYpc6.js → p-R-Sdglj0.js} +1 -1
- package/dist/components/p-Uh9emYrV.js +1 -0
- package/dist/components/{p-CSh-DcM7.js → p-f0aBxUBG.js} +1 -1
- package/dist/components/{p-BnI9HUOv.js → p-idG6CMO0.js} +1 -1
- package/dist/components/p-oYbVr-z0.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-fbeed0e4.entry.js → p-02f0b906.entry.js} +1 -1
- package/dist/design-system/{p-4970f1ff.entry.js → p-0c1d1a15.entry.js} +1 -1
- package/dist/design-system/{p-75726e20.entry.js → p-0e014b76.entry.js} +1 -1
- package/dist/design-system/{p-91f7be74.entry.js → p-1b5fcf7b.entry.js} +1 -1
- package/dist/design-system/{p-5687ed0c.entry.js → p-1ed1bfa1.entry.js} +1 -1
- package/dist/design-system/{p-bbd24816.entry.js → p-246aafb9.entry.js} +1 -1
- package/dist/design-system/p-26a27312.entry.js +1 -0
- package/dist/design-system/{p-5c8f4d9c.entry.js → p-2a4d2ee0.entry.js} +1 -1
- package/dist/design-system/{p-b831eded.entry.js → p-2d6a7d7b.entry.js} +1 -1
- package/dist/design-system/{p-2553bb1f.entry.js → p-3595cafb.entry.js} +1 -1
- package/dist/design-system/p-3cd2751a.entry.js +1 -0
- package/dist/design-system/p-4b474538.entry.js +1 -0
- package/dist/design-system/{p-bab692c6.entry.js → p-4c85f6f6.entry.js} +1 -1
- package/dist/design-system/{p-67f19734.entry.js → p-53fe2741.entry.js} +1 -1
- package/dist/design-system/{p-58ec51db.entry.js → p-55c0be7d.entry.js} +1 -1
- package/dist/design-system/p-5a257ed9.entry.js +1 -0
- package/dist/design-system/{p-a938ffee.entry.js → p-840006b1.entry.js} +1 -1
- package/dist/design-system/{p-9c0bca09.entry.js → p-86329ae3.entry.js} +1 -1
- package/dist/design-system/{p-287d8016.entry.js → p-8de3b502.entry.js} +1 -1
- package/dist/design-system/{p-071e73e0.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-Dz490Ukt.js +2 -0
- package/dist/design-system/{p-d7e302af.entry.js → p-a631cd78.entry.js} +1 -1
- package/dist/design-system/p-adf2f398.entry.js +1 -0
- package/dist/design-system/{p-750a9112.entry.js → p-b585f94b.entry.js} +1 -1
- package/dist/design-system/p-be54fd3a.entry.js +1 -0
- package/dist/design-system/{p-0b8c86c3.entry.js → p-c1066f40.entry.js} +1 -1
- package/dist/design-system/{p-26f2f4c2.entry.js → p-c5cffcc6.entry.js} +1 -1
- package/dist/design-system/{p-3b3a46cd.entry.js → p-c7d2c195.entry.js} +1 -1
- package/dist/design-system/{p-d6b3d78b.entry.js → p-cb6ab65c.entry.js} +1 -1
- package/dist/design-system/{p-1230b51b.entry.js → p-d204cac5.entry.js} +1 -1
- package/dist/design-system/p-d2ce01ac.entry.js +1 -0
- package/dist/design-system/{p-84d0181b.entry.js → p-d51f4170.entry.js} +1 -1
- package/dist/design-system/{p-61f5d5ea.entry.js → p-d9f33192.entry.js} +1 -1
- package/dist/design-system/{p-c5502585.entry.js → p-e7740a5f.entry.js} +1 -1
- package/dist/design-system/p-e85bf462.entry.js +1 -0
- package/dist/design-system/{p-d4e2f412.entry.js → p-ea008087.entry.js} +1 -1
- package/dist/design-system/{p-70608fec.entry.js → p-ec4ad48c.entry.js} +1 -1
- package/dist/design-system/{p-fa967329.entry.js → p-f962e5d2.entry.js} +1 -1
- package/dist/esm/{component.datepicker-laVsm9VM.js → component.datepicker-BOxGhKKP.js} +1 -2
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-DDNBPrZh.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 +1 -1
- package/dist/esm/sd-chip-input.entry.js +2 -2
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +3 -3
- package/dist/esm/sd-confirm-modal_2.entry.js +33 -36
- 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} +327 -19
- 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 +9 -9
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +3 -3
- package/dist/esm/sd-guide.entry.js +2 -2
- 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 +1 -1
- package/dist/esm/{sd-select_3.entry.js → sd-select-list-item_4.entry.js} +277 -299
- 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-blL0aWPE.js → tooltipArrow-CEHVt90h.js} +1 -1
- package/dist/esm/{useDatePicker-DoUg--aq.js → useDatePicker-BG0lUGJG.js} +1 -1
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +10 -10
- 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-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 +17 -696
- package/dist/types/index.d.ts +0 -1
- package/hydrate/index.js +173 -2217
- package/hydrate/index.mjs +173 -2217
- package/package.json +1 -1
- package/dist/cjs/component.table-POXY492T.js +0 -72
- package/dist/cjs/constants-DJRV1upE.js +0 -5
- package/dist/cjs/sd-pagination_4.cjs.entry.js +0 -858
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +0 -173
- package/dist/cjs/sd-select.config-omyxekRa.js +0 -144
- package/dist/cjs/sd-table.cjs.entry.js +0 -956
- package/dist/cjs/sd-table.config-DFy_S4bc.js +0 -83
- 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 -88
- 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 -530
- package/dist/components/p-5pkzwl5N.js +0 -1
- package/dist/components/p-B6ezDhRg.js +0 -1
- package/dist/components/p-BJfiMC9H.js +0 -1
- package/dist/components/p-BSxleKw8.js +0 -1
- package/dist/components/p-BUgGuigd.js +0 -1
- package/dist/components/p-BZXgIBUG.js +0 -1
- package/dist/components/p-Cf62Nvrx.js +0 -1
- package/dist/components/p-DckXBMgo.js +0 -1
- package/dist/components/p-DmAnTwUx.js +0 -1
- package/dist/components/p-PFLrdhQj.js +0 -1
- package/dist/components/p-sZMi_32I.js +0 -1
- package/dist/components/p-yxZBh03f.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-0048de73.entry.js +0 -1
- package/dist/design-system/p-20f69606.entry.js +0 -1
- package/dist/design-system/p-27197194.entry.js +0 -1
- package/dist/design-system/p-5pkzwl5N.js +0 -1
- package/dist/design-system/p-7abf62f3.entry.js +0 -1
- package/dist/design-system/p-7ae27a26.entry.js +0 -1
- package/dist/design-system/p-94d6b7b4.entry.js +0 -1
- package/dist/design-system/p-9b21773a.entry.js +0 -1
- package/dist/design-system/p-BJfiMC9H.js +0 -1
- package/dist/design-system/p-CRWmn35N.js +0 -1
- package/dist/design-system/p-Cf62Nvrx.js +0 -1
- package/dist/design-system/p-CuAh9n2o.js +0 -1
- package/dist/design-system/p-DDNBPrZh.js +0 -2
- package/dist/design-system/p-a12d7362.entry.js +0 -1
- package/dist/design-system/p-c81898a0.entry.js +0 -1
- package/dist/design-system/p-dbfa3931.entry.js +0 -1
- package/dist/design-system/p-f16985c9.entry.js +0 -1
- package/dist/design-system/p-sZMi_32I.js +0 -1
- package/dist/esm/component.table-5pkzwl5N.js +0 -70
- package/dist/esm/constants-sZMi_32I.js +0 -3
- package/dist/esm/sd-pagination_4.entry.js +0 -853
- package/dist/esm/sd-select-list-item_2.entry.js +0 -170
- package/dist/esm/sd-select.config-CeHGlqOT.js +0 -129
- package/dist/esm/sd-table.config-DmOBlnsM.js +0 -70
- 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 -71
- 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,145 +0,0 @@
|
|
|
1
|
-
sd-tr {
|
|
2
|
-
display: contents;
|
|
3
|
-
}
|
|
4
|
-
sd-tr * {
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.tr {
|
|
9
|
-
display: table-row;
|
|
10
|
-
}
|
|
11
|
-
.tr:hover .td {
|
|
12
|
-
background-color: #F9F9F9;
|
|
13
|
-
}
|
|
14
|
-
.tr--no-hover:hover .td {
|
|
15
|
-
background-color: white;
|
|
16
|
-
}
|
|
17
|
-
.tr--separator:hover .td {
|
|
18
|
-
background-color: var(--table-separator-color, #eeeeee);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.td {
|
|
22
|
-
display: table-cell;
|
|
23
|
-
height: var(--table-body-height, 44px);
|
|
24
|
-
padding: var(--table-body-padding-y, 0) var(--table-body-padding-x, 16px);
|
|
25
|
-
border-bottom: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
|
|
26
|
-
background: white;
|
|
27
|
-
vertical-align: middle;
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
white-space: nowrap;
|
|
30
|
-
text-overflow: ellipsis;
|
|
31
|
-
word-break: keep-all;
|
|
32
|
-
}
|
|
33
|
-
.td--left {
|
|
34
|
-
text-align: left;
|
|
35
|
-
}
|
|
36
|
-
.td--center {
|
|
37
|
-
text-align: center;
|
|
38
|
-
}
|
|
39
|
-
.td--right {
|
|
40
|
-
text-align: right;
|
|
41
|
-
}
|
|
42
|
-
.td--selected {
|
|
43
|
-
position: relative;
|
|
44
|
-
width: var(--table-selectable-width, 48px) !important;
|
|
45
|
-
max-width: var(--table-selectable-width, 48px) !important;
|
|
46
|
-
min-width: var(--table-selectable-width, 48px) !important;
|
|
47
|
-
text-align: center;
|
|
48
|
-
}
|
|
49
|
-
.td--selected sd-checkbox label {
|
|
50
|
-
position: relative;
|
|
51
|
-
}
|
|
52
|
-
.td--selected sd-checkbox label:before {
|
|
53
|
-
content: "";
|
|
54
|
-
position: absolute;
|
|
55
|
-
inset: -6px;
|
|
56
|
-
}
|
|
57
|
-
.td.sticky-left {
|
|
58
|
-
position: sticky;
|
|
59
|
-
background-color: white;
|
|
60
|
-
z-index: 100 !important;
|
|
61
|
-
left: var(--sticky-left-offset, 0);
|
|
62
|
-
}
|
|
63
|
-
.td.sticky-right {
|
|
64
|
-
position: sticky;
|
|
65
|
-
background-color: white;
|
|
66
|
-
z-index: 100 !important;
|
|
67
|
-
right: var(--sticky-right-offset, 0);
|
|
68
|
-
}
|
|
69
|
-
.td.sticky-left-edge:after {
|
|
70
|
-
content: "";
|
|
71
|
-
position: absolute;
|
|
72
|
-
top: 0;
|
|
73
|
-
left: 100%;
|
|
74
|
-
right: -20px;
|
|
75
|
-
width: 20px;
|
|
76
|
-
height: 100%;
|
|
77
|
-
z-index: 101 !important;
|
|
78
|
-
box-shadow: inset 12px 0 20px -25px;
|
|
79
|
-
opacity: 0;
|
|
80
|
-
pointer-events: none;
|
|
81
|
-
transition: opacity 0.2s;
|
|
82
|
-
}
|
|
83
|
-
.td.sticky-right-edge:after {
|
|
84
|
-
content: "";
|
|
85
|
-
position: absolute;
|
|
86
|
-
top: 0;
|
|
87
|
-
left: -20px;
|
|
88
|
-
width: 20px;
|
|
89
|
-
height: 100%;
|
|
90
|
-
z-index: 101 !important;
|
|
91
|
-
box-shadow: inset -12px 0 20px -25px;
|
|
92
|
-
opacity: 0;
|
|
93
|
-
pointer-events: none;
|
|
94
|
-
transition: opacity 0.2s;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.td.sticky-left-edge.is-scrolled-left {
|
|
98
|
-
overflow: visible;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.td.sticky-left-edge.is-scrolled-left:after {
|
|
102
|
-
opacity: 1;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.td.sticky-right-edge.is-scrolled-right {
|
|
106
|
-
overflow: visible;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.td.sticky-right-edge.is-scrolled-right:after {
|
|
110
|
-
opacity: 1;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.tr:hover .td.sticky-left,
|
|
114
|
-
.tr:hover .td.sticky-right {
|
|
115
|
-
background-color: #F9F9F9;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.tr--no-hover:hover .td.sticky-left,
|
|
119
|
-
.tr--no-hover:hover .td.sticky-right {
|
|
120
|
-
background-color: white;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.tr--separator:hover .td.sticky-left,
|
|
124
|
-
.tr--separator:hover .td.sticky-right {
|
|
125
|
-
background-color: var(--table-separator-color, #eeeeee);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.tr--separator .td--separator {
|
|
129
|
-
height: var(--table-separator-width, 6px);
|
|
130
|
-
padding: 0;
|
|
131
|
-
background-color: var(--table-separator-color, #eeeeee);
|
|
132
|
-
border-bottom: none;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.tr--separator--dense .td--separator {
|
|
136
|
-
height: var(--table-separator-dense-width, 4px);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.td--divider-left {
|
|
140
|
-
border-left: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.td--divider-right {
|
|
144
|
-
border-right: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
|
|
145
|
-
}
|
|
@@ -1,530 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { TABLE_ID_ATTR, } from "../constants";
|
|
3
|
-
import { TABLE_BODY_LAYOUT, TABLE_BODY_TYPOGRAPHY, TABLE_BORDER, TABLE_SEPARATOR, } from "../sd-table.config";
|
|
4
|
-
export class SdTr {
|
|
5
|
-
el;
|
|
6
|
-
/** 테이블 컬럼 목록 */
|
|
7
|
-
columns;
|
|
8
|
-
/** 행 선택 기능 사용 여부 */
|
|
9
|
-
selectable;
|
|
10
|
-
/** 고정 컬럼 설정 */
|
|
11
|
-
stickyColumn;
|
|
12
|
-
/** 행 식별 키 */
|
|
13
|
-
rowKey = '';
|
|
14
|
-
/** 행 데이터 객체 */
|
|
15
|
-
row = {};
|
|
16
|
-
/** 구분선 높이 (4 또는 6px, null이면 일반 행) */
|
|
17
|
-
separator = null;
|
|
18
|
-
tableId = '';
|
|
19
|
-
columnWidths = [];
|
|
20
|
-
isVisible = true;
|
|
21
|
-
spansVersion = 0;
|
|
22
|
-
_columns = [];
|
|
23
|
-
_selectable = false;
|
|
24
|
-
_stickyColumn = { left: 0, right: 0 };
|
|
25
|
-
_scrolledLeft = false;
|
|
26
|
-
_scrolledRight = false;
|
|
27
|
-
_dense = false;
|
|
28
|
-
tableEl = null;
|
|
29
|
-
componentWillLoad() {
|
|
30
|
-
this.row = this.row ?? {};
|
|
31
|
-
this.syncTableContext();
|
|
32
|
-
this.columnWidths = this.columnWidths ?? [];
|
|
33
|
-
this.resolveConfig();
|
|
34
|
-
this.columnWidths = this._columns.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
|
|
35
|
-
this.updateVisibilitySync();
|
|
36
|
-
}
|
|
37
|
-
componentDidLoad() {
|
|
38
|
-
this.syncTableContext();
|
|
39
|
-
}
|
|
40
|
-
syncTableContext() {
|
|
41
|
-
// sd-table이 shadow:true이므로 fallback content로 렌더되면 closest가 경계를 못 넘는다.
|
|
42
|
-
// 그 경우 getRootNode().host(=sd-table)로 폴백한다.
|
|
43
|
-
const closest = this.el.closest('sd-table');
|
|
44
|
-
const root = this.el.getRootNode();
|
|
45
|
-
const fromShadow = root instanceof ShadowRoot ? root.host : null;
|
|
46
|
-
const table = closest ?? fromShadow;
|
|
47
|
-
this.tableEl = table;
|
|
48
|
-
const fromMethod = table?.getTableIdSync?.();
|
|
49
|
-
const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
|
|
50
|
-
const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
51
|
-
(fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
52
|
-
'';
|
|
53
|
-
if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
|
|
54
|
-
this.tableId = resolvedTableId;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
resolveConfig() {
|
|
58
|
-
const config = this.tableEl?.getConfigSync?.();
|
|
59
|
-
this._columns = this.columns ?? config?.columns ?? [];
|
|
60
|
-
this._selectable = this.selectable ?? config?.selectable ?? false;
|
|
61
|
-
this._stickyColumn = this.stickyColumn ?? config?.stickyColumn ?? { left: 0, right: 0 };
|
|
62
|
-
this._scrolledLeft = config?.scrolledLeft ?? false;
|
|
63
|
-
this._scrolledRight = config?.scrolledRight ?? false;
|
|
64
|
-
this._dense = config?.dense ?? false;
|
|
65
|
-
if (config?.columnWidths && (this.columnWidths ?? []).length === 0) {
|
|
66
|
-
this.columnWidths = [...config.columnWidths];
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
/** 테이블 설정을 다시 불러옵니다. */
|
|
70
|
-
async refreshConfig() {
|
|
71
|
-
this.resolveConfig();
|
|
72
|
-
}
|
|
73
|
-
/** 셀 병합 버전을 갱신해 td를 재렌더링합니다. */
|
|
74
|
-
async bumpSpansVersion() {
|
|
75
|
-
this.spansVersion = this.spansVersion + 1;
|
|
76
|
-
}
|
|
77
|
-
/** 페이지네이션에 따른 행 표시 여부를 갱신합니다. */
|
|
78
|
-
async updateVisibility() {
|
|
79
|
-
this.updateVisibilitySync();
|
|
80
|
-
}
|
|
81
|
-
updateVisibilitySync() {
|
|
82
|
-
const rowIndex = parseInt(this.rowKey, 10);
|
|
83
|
-
const pageInfo = this.tableEl?.getPaginationInfoSync?.();
|
|
84
|
-
if (!pageInfo) {
|
|
85
|
-
this.isVisible = true;
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
this.isVisible = rowIndex >= pageInfo.startIndex && rowIndex < pageInfo.endIndex;
|
|
89
|
-
}
|
|
90
|
-
/** 컬럼 너비를 업데이트합니다. */
|
|
91
|
-
async setColumnWidths(widths) {
|
|
92
|
-
this.columnWidths = widths;
|
|
93
|
-
}
|
|
94
|
-
/** 체크박스 선택 상태를 갱신합니다. */
|
|
95
|
-
async refreshSelection() {
|
|
96
|
-
const checkbox = this.el.querySelector('sd-checkbox');
|
|
97
|
-
if (checkbox) {
|
|
98
|
-
checkbox.value = this.isSelected();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
get visibleColumns() {
|
|
102
|
-
return this._columns.filter(col => col.visible !== false);
|
|
103
|
-
}
|
|
104
|
-
formatValue(value) {
|
|
105
|
-
if (value === null || value === undefined) {
|
|
106
|
-
return '';
|
|
107
|
-
}
|
|
108
|
-
if (typeof value === 'number') {
|
|
109
|
-
return value.toLocaleString();
|
|
110
|
-
}
|
|
111
|
-
return String(value);
|
|
112
|
-
}
|
|
113
|
-
getCellValue(column) {
|
|
114
|
-
const { field, format, name } = column;
|
|
115
|
-
const value = typeof field === 'function'
|
|
116
|
-
? field(this.row)
|
|
117
|
-
: field !== ''
|
|
118
|
-
? this.row[field]
|
|
119
|
-
: this.row[name];
|
|
120
|
-
return format ? format(value, this.row) : this.formatValue(value);
|
|
121
|
-
}
|
|
122
|
-
getStickyStyle(colIdx) {
|
|
123
|
-
if (this.tableEl?.getStickyStyleSync) {
|
|
124
|
-
return this.tableEl.getStickyStyleSync(colIdx);
|
|
125
|
-
}
|
|
126
|
-
const leftOffset = this.columnWidths.slice(0, colIdx).reduce((a, b) => a + b, 0) + (this._selectable ? 52 : 0);
|
|
127
|
-
const rightOffset = this.columnWidths
|
|
128
|
-
.filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
|
|
129
|
-
.reduce((a, b) => a + b, 0);
|
|
130
|
-
const col = this.visibleColumns[colIdx];
|
|
131
|
-
const base = {
|
|
132
|
-
'--sticky-left-offset': `${leftOffset}px`,
|
|
133
|
-
'--sticky-right-offset': `${rightOffset}px`,
|
|
134
|
-
};
|
|
135
|
-
if (!col?.autoWidth) {
|
|
136
|
-
base['width'] = `${this.columnWidths[colIdx]}px`;
|
|
137
|
-
base['minWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
138
|
-
base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
139
|
-
}
|
|
140
|
-
return base;
|
|
141
|
-
}
|
|
142
|
-
isSelected() {
|
|
143
|
-
if (this.tableEl?.isRowSelectedSync) {
|
|
144
|
-
return this.tableEl.isRowSelectedSync(this.row);
|
|
145
|
-
}
|
|
146
|
-
return false;
|
|
147
|
-
}
|
|
148
|
-
handleSelect() {
|
|
149
|
-
if (this.tableEl?.updateRowSelectSync) {
|
|
150
|
-
this.tableEl.updateRowSelectSync(this.row);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
getSpanFor(col) {
|
|
154
|
-
if (!this.tableEl?.getSpanSync)
|
|
155
|
-
return undefined;
|
|
156
|
-
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
157
|
-
return this.tableEl.getSpanSync(this.rowKey, fieldName);
|
|
158
|
-
}
|
|
159
|
-
isCovered(colIdx) {
|
|
160
|
-
if (!this.tableEl?.isCoveredSync)
|
|
161
|
-
return false;
|
|
162
|
-
return this.tableEl.isCoveredSync(this.rowKey, colIdx, this._columns);
|
|
163
|
-
}
|
|
164
|
-
getCellClassFor(col) {
|
|
165
|
-
if (!this.tableEl?.getCellClassSync)
|
|
166
|
-
return undefined;
|
|
167
|
-
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
168
|
-
return this.tableEl.getCellClassSync(this.rowKey, fieldName);
|
|
169
|
-
}
|
|
170
|
-
getFramePaddingStyle(field) {
|
|
171
|
-
if (!(this.tableEl?.isCellUseFrameSync?.(this.rowKey, field) ?? false))
|
|
172
|
-
return undefined;
|
|
173
|
-
return { padding: `${TABLE_BODY_LAYOUT.framePadding}px` };
|
|
174
|
-
}
|
|
175
|
-
expandCellClass(classStr) {
|
|
176
|
-
if (classStr == null || classStr === '')
|
|
177
|
-
return {};
|
|
178
|
-
return Object.fromEntries(classStr
|
|
179
|
-
.split(/\s+/)
|
|
180
|
-
.filter(Boolean)
|
|
181
|
-
.map(c => [c, true]));
|
|
182
|
-
}
|
|
183
|
-
render() {
|
|
184
|
-
const stickyLeftCount = this._stickyColumn.left || 0;
|
|
185
|
-
const stickyRightCount = this._stickyColumn.right || 0;
|
|
186
|
-
const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
|
|
187
|
-
const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
|
|
188
|
-
const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
|
|
189
|
-
const hasRowspan = this.tableEl?.hasRowspanSync?.() ?? false;
|
|
190
|
-
const isUseFrameRow = this.tableEl?.hasUseFrameInRowSync?.(this.rowKey) ?? false;
|
|
191
|
-
const effectiveDense = this._dense && !isUseFrameRow;
|
|
192
|
-
const rowLayoutY = effectiveDense ? TABLE_BODY_LAYOUT.dense : TABLE_BODY_LAYOUT.default;
|
|
193
|
-
const rowPaddingX = effectiveDense
|
|
194
|
-
? TABLE_BODY_LAYOUT.densePaddingX
|
|
195
|
-
: TABLE_BODY_LAYOUT.paddingX;
|
|
196
|
-
const rowStyle = {
|
|
197
|
-
'display': this.isVisible ? '' : 'none',
|
|
198
|
-
'--table-body-height': `${rowLayoutY.height}px`,
|
|
199
|
-
'--table-body-padding-y': `${rowLayoutY.paddingY}px`,
|
|
200
|
-
'--table-body-padding-x': `${rowPaddingX}px`,
|
|
201
|
-
'--table-body-font-family': TABLE_BODY_TYPOGRAPHY.fontFamily,
|
|
202
|
-
'--table-body-font-weight': TABLE_BODY_TYPOGRAPHY.fontWeight,
|
|
203
|
-
'--table-body-font-size': `${TABLE_BODY_TYPOGRAPHY.fontSize}px`,
|
|
204
|
-
'--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
205
|
-
'--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
206
|
-
'--table-border-color': TABLE_BORDER.color,
|
|
207
|
-
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
208
|
-
'--table-separator-color': TABLE_SEPARATOR.color,
|
|
209
|
-
'--table-separator-width': `${TABLE_SEPARATOR.width}px`,
|
|
210
|
-
'--table-separator-dense-width': `${TABLE_SEPARATOR.denseWidth}px`,
|
|
211
|
-
};
|
|
212
|
-
if (this.separator != null) {
|
|
213
|
-
const totalCols = this.visibleColumns.length + (this._selectable ? 1 : 0);
|
|
214
|
-
const isDense = this.separator === 4;
|
|
215
|
-
return (h(Host, { style: rowStyle }, h("tr", { class: { 'tr': true, 'tr--separator': true, 'tr--separator--dense': isDense } }, h("td", { colSpan: totalCols, class: "td td--separator" }))));
|
|
216
|
-
}
|
|
217
|
-
return (h(Host, { style: rowStyle }, h("tr", { class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { class: {
|
|
218
|
-
'td': true,
|
|
219
|
-
'td--selected': true,
|
|
220
|
-
'sticky-left': true,
|
|
221
|
-
'sticky-left-edge': stickyLeftCount === 0,
|
|
222
|
-
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
223
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
|
|
224
|
-
if (this.isCovered(idx))
|
|
225
|
-
return null;
|
|
226
|
-
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
227
|
-
const span = this.getSpanFor(col);
|
|
228
|
-
const sdCellClass = this.getCellClassFor(col);
|
|
229
|
-
return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
|
|
230
|
-
'td': true,
|
|
231
|
-
[`td--${col.align || 'left'}`]: true,
|
|
232
|
-
'sticky-left': true,
|
|
233
|
-
'sticky-left-edge': idx === stickyLeftCount - 1,
|
|
234
|
-
'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
|
|
235
|
-
[`${col.tdClass}`]: Boolean(col.tdClass),
|
|
236
|
-
...this.expandCellClass(sdCellClass),
|
|
237
|
-
}, style: { ...this.getStickyStyle(idx), ...this.getFramePaddingStyle(fieldName) } }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
|
|
238
|
-
}), middleCols.map((col, relativeIdx) => {
|
|
239
|
-
const actualColIdx = stickyLeftCount + relativeIdx;
|
|
240
|
-
if (this.isCovered(actualColIdx))
|
|
241
|
-
return null;
|
|
242
|
-
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
243
|
-
const span = this.getSpanFor(col);
|
|
244
|
-
const sdCellClass = this.getCellClassFor(col);
|
|
245
|
-
return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
|
|
246
|
-
td: true,
|
|
247
|
-
[`td--${col.align || 'left'}`]: true,
|
|
248
|
-
[`${col.tdClass}`]: Boolean(col.tdClass),
|
|
249
|
-
...this.expandCellClass(sdCellClass),
|
|
250
|
-
}, style: {
|
|
251
|
-
...this.getStickyStyle(actualColIdx),
|
|
252
|
-
...this.getFramePaddingStyle(fieldName),
|
|
253
|
-
} }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
|
|
254
|
-
}), stickyRightCols.map((col, relativeIdx) => {
|
|
255
|
-
const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
|
|
256
|
-
if (this.isCovered(actualColIdx))
|
|
257
|
-
return null;
|
|
258
|
-
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
259
|
-
const span = this.getSpanFor(col);
|
|
260
|
-
const sdCellClass = this.getCellClassFor(col);
|
|
261
|
-
return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
|
|
262
|
-
'td': true,
|
|
263
|
-
[`td--${col.align || 'left'}`]: true,
|
|
264
|
-
'sticky-right': true,
|
|
265
|
-
'sticky-right-edge': relativeIdx === 0,
|
|
266
|
-
'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
|
|
267
|
-
[`${col.tdClass}`]: Boolean(col.tdClass),
|
|
268
|
-
...this.expandCellClass(sdCellClass),
|
|
269
|
-
}, style: {
|
|
270
|
-
...this.getStickyStyle(actualColIdx),
|
|
271
|
-
...this.getFramePaddingStyle(fieldName),
|
|
272
|
-
} }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
|
|
273
|
-
}))));
|
|
274
|
-
}
|
|
275
|
-
static get is() { return "sd-tr"; }
|
|
276
|
-
static get originalStyleUrls() {
|
|
277
|
-
return {
|
|
278
|
-
"$": ["sd-tr.scss"]
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
static get styleUrls() {
|
|
282
|
-
return {
|
|
283
|
-
"$": ["sd-tr.css"]
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
static get properties() {
|
|
287
|
-
return {
|
|
288
|
-
"columns": {
|
|
289
|
-
"type": "unknown",
|
|
290
|
-
"mutable": false,
|
|
291
|
-
"complexType": {
|
|
292
|
-
"original": "SdTableColumn[]",
|
|
293
|
-
"resolved": "SdTableColumn[] | undefined",
|
|
294
|
-
"references": {
|
|
295
|
-
"SdTableColumn": {
|
|
296
|
-
"location": "import",
|
|
297
|
-
"path": "../constants",
|
|
298
|
-
"id": "src/components/sd-table/constants.ts::SdTableColumn",
|
|
299
|
-
"referenceLocation": "SdTableColumn"
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
"required": false,
|
|
304
|
-
"optional": true,
|
|
305
|
-
"docs": {
|
|
306
|
-
"tags": [],
|
|
307
|
-
"text": "\uD14C\uC774\uBE14 \uCEEC\uB7FC \uBAA9\uB85D"
|
|
308
|
-
},
|
|
309
|
-
"getter": false,
|
|
310
|
-
"setter": false
|
|
311
|
-
},
|
|
312
|
-
"selectable": {
|
|
313
|
-
"type": "boolean",
|
|
314
|
-
"mutable": false,
|
|
315
|
-
"complexType": {
|
|
316
|
-
"original": "boolean",
|
|
317
|
-
"resolved": "boolean | undefined",
|
|
318
|
-
"references": {}
|
|
319
|
-
},
|
|
320
|
-
"required": false,
|
|
321
|
-
"optional": true,
|
|
322
|
-
"docs": {
|
|
323
|
-
"tags": [],
|
|
324
|
-
"text": "\uD589 \uC120\uD0DD \uAE30\uB2A5 \uC0AC\uC6A9 \uC5EC\uBD80"
|
|
325
|
-
},
|
|
326
|
-
"getter": false,
|
|
327
|
-
"setter": false,
|
|
328
|
-
"reflect": false,
|
|
329
|
-
"attribute": "selectable"
|
|
330
|
-
},
|
|
331
|
-
"stickyColumn": {
|
|
332
|
-
"type": "unknown",
|
|
333
|
-
"mutable": false,
|
|
334
|
-
"complexType": {
|
|
335
|
-
"original": "SdTableStickyColumn",
|
|
336
|
-
"resolved": "SdTableStickyColumn | undefined",
|
|
337
|
-
"references": {
|
|
338
|
-
"SdTableStickyColumn": {
|
|
339
|
-
"location": "import",
|
|
340
|
-
"path": "../constants",
|
|
341
|
-
"id": "src/components/sd-table/constants.ts::SdTableStickyColumn",
|
|
342
|
-
"referenceLocation": "SdTableStickyColumn"
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
"required": false,
|
|
347
|
-
"optional": true,
|
|
348
|
-
"docs": {
|
|
349
|
-
"tags": [],
|
|
350
|
-
"text": "\uACE0\uC815 \uCEEC\uB7FC \uC124\uC815"
|
|
351
|
-
},
|
|
352
|
-
"getter": false,
|
|
353
|
-
"setter": false
|
|
354
|
-
},
|
|
355
|
-
"rowKey": {
|
|
356
|
-
"type": "string",
|
|
357
|
-
"mutable": false,
|
|
358
|
-
"complexType": {
|
|
359
|
-
"original": "string",
|
|
360
|
-
"resolved": "string",
|
|
361
|
-
"references": {}
|
|
362
|
-
},
|
|
363
|
-
"required": false,
|
|
364
|
-
"optional": false,
|
|
365
|
-
"docs": {
|
|
366
|
-
"tags": [],
|
|
367
|
-
"text": "\uD589 \uC2DD\uBCC4 \uD0A4"
|
|
368
|
-
},
|
|
369
|
-
"getter": false,
|
|
370
|
-
"setter": false,
|
|
371
|
-
"reflect": false,
|
|
372
|
-
"attribute": "row-key",
|
|
373
|
-
"defaultValue": "''"
|
|
374
|
-
},
|
|
375
|
-
"row": {
|
|
376
|
-
"type": "unknown",
|
|
377
|
-
"mutable": false,
|
|
378
|
-
"complexType": {
|
|
379
|
-
"original": "Row",
|
|
380
|
-
"resolved": "Row",
|
|
381
|
-
"references": {
|
|
382
|
-
"Row": {
|
|
383
|
-
"location": "import",
|
|
384
|
-
"path": "../constants",
|
|
385
|
-
"id": "src/components/sd-table/constants.ts::Row",
|
|
386
|
-
"referenceLocation": "Row"
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
"required": false,
|
|
391
|
-
"optional": false,
|
|
392
|
-
"docs": {
|
|
393
|
-
"tags": [],
|
|
394
|
-
"text": "\uD589 \uB370\uC774\uD130 \uAC1D\uCCB4"
|
|
395
|
-
},
|
|
396
|
-
"getter": false,
|
|
397
|
-
"setter": false,
|
|
398
|
-
"defaultValue": "{}"
|
|
399
|
-
},
|
|
400
|
-
"separator": {
|
|
401
|
-
"type": "any",
|
|
402
|
-
"mutable": false,
|
|
403
|
-
"complexType": {
|
|
404
|
-
"original": "'4' | '6' | 4 | 6 | null",
|
|
405
|
-
"resolved": "\"4\" | \"6\" | 4 | 6 | null | undefined",
|
|
406
|
-
"references": {}
|
|
407
|
-
},
|
|
408
|
-
"required": false,
|
|
409
|
-
"optional": true,
|
|
410
|
-
"docs": {
|
|
411
|
-
"tags": [],
|
|
412
|
-
"text": "\uAD6C\uBD84\uC120 \uB192\uC774 (4 \uB610\uB294 6px, null\uC774\uBA74 \uC77C\uBC18 \uD589)"
|
|
413
|
-
},
|
|
414
|
-
"getter": false,
|
|
415
|
-
"setter": false,
|
|
416
|
-
"reflect": false,
|
|
417
|
-
"attribute": "separator",
|
|
418
|
-
"defaultValue": "null"
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
static get states() {
|
|
423
|
-
return {
|
|
424
|
-
"tableId": {},
|
|
425
|
-
"columnWidths": {},
|
|
426
|
-
"isVisible": {},
|
|
427
|
-
"spansVersion": {},
|
|
428
|
-
"_columns": {},
|
|
429
|
-
"_selectable": {},
|
|
430
|
-
"_stickyColumn": {},
|
|
431
|
-
"_scrolledLeft": {},
|
|
432
|
-
"_scrolledRight": {},
|
|
433
|
-
"_dense": {}
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
static get methods() {
|
|
437
|
-
return {
|
|
438
|
-
"refreshConfig": {
|
|
439
|
-
"complexType": {
|
|
440
|
-
"signature": "() => Promise<void>",
|
|
441
|
-
"parameters": [],
|
|
442
|
-
"references": {
|
|
443
|
-
"Promise": {
|
|
444
|
-
"location": "global",
|
|
445
|
-
"id": "global::Promise"
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
"return": "Promise<void>"
|
|
449
|
-
},
|
|
450
|
-
"docs": {
|
|
451
|
-
"text": "\uD14C\uC774\uBE14 \uC124\uC815\uC744 \uB2E4\uC2DC \uBD88\uB7EC\uC635\uB2C8\uB2E4.",
|
|
452
|
-
"tags": []
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
"bumpSpansVersion": {
|
|
456
|
-
"complexType": {
|
|
457
|
-
"signature": "() => Promise<void>",
|
|
458
|
-
"parameters": [],
|
|
459
|
-
"references": {
|
|
460
|
-
"Promise": {
|
|
461
|
-
"location": "global",
|
|
462
|
-
"id": "global::Promise"
|
|
463
|
-
}
|
|
464
|
-
},
|
|
465
|
-
"return": "Promise<void>"
|
|
466
|
-
},
|
|
467
|
-
"docs": {
|
|
468
|
-
"text": "\uC140 \uBCD1\uD569 \uBC84\uC804\uC744 \uAC31\uC2E0\uD574 td\uB97C \uC7AC\uB80C\uB354\uB9C1\uD569\uB2C8\uB2E4.",
|
|
469
|
-
"tags": []
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
"updateVisibility": {
|
|
473
|
-
"complexType": {
|
|
474
|
-
"signature": "() => Promise<void>",
|
|
475
|
-
"parameters": [],
|
|
476
|
-
"references": {
|
|
477
|
-
"Promise": {
|
|
478
|
-
"location": "global",
|
|
479
|
-
"id": "global::Promise"
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
"return": "Promise<void>"
|
|
483
|
-
},
|
|
484
|
-
"docs": {
|
|
485
|
-
"text": "\uD398\uC774\uC9C0\uB124\uC774\uC158\uC5D0 \uB530\uB978 \uD589 \uD45C\uC2DC \uC5EC\uBD80\uB97C \uAC31\uC2E0\uD569\uB2C8\uB2E4.",
|
|
486
|
-
"tags": []
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
"setColumnWidths": {
|
|
490
|
-
"complexType": {
|
|
491
|
-
"signature": "(widths: number[]) => Promise<void>",
|
|
492
|
-
"parameters": [{
|
|
493
|
-
"name": "widths",
|
|
494
|
-
"type": "number[]",
|
|
495
|
-
"docs": ""
|
|
496
|
-
}],
|
|
497
|
-
"references": {
|
|
498
|
-
"Promise": {
|
|
499
|
-
"location": "global",
|
|
500
|
-
"id": "global::Promise"
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
"return": "Promise<void>"
|
|
504
|
-
},
|
|
505
|
-
"docs": {
|
|
506
|
-
"text": "\uCEEC\uB7FC \uB108\uBE44\uB97C \uC5C5\uB370\uC774\uD2B8\uD569\uB2C8\uB2E4.",
|
|
507
|
-
"tags": []
|
|
508
|
-
}
|
|
509
|
-
},
|
|
510
|
-
"refreshSelection": {
|
|
511
|
-
"complexType": {
|
|
512
|
-
"signature": "() => Promise<void>",
|
|
513
|
-
"parameters": [],
|
|
514
|
-
"references": {
|
|
515
|
-
"Promise": {
|
|
516
|
-
"location": "global",
|
|
517
|
-
"id": "global::Promise"
|
|
518
|
-
}
|
|
519
|
-
},
|
|
520
|
-
"return": "Promise<void>"
|
|
521
|
-
},
|
|
522
|
-
"docs": {
|
|
523
|
-
"text": "\uCCB4\uD06C\uBC15\uC2A4 \uC120\uD0DD \uC0C1\uD0DC\uB97C \uAC31\uC2E0\uD569\uB2C8\uB2E4.",
|
|
524
|
-
"tags": []
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
static get elementRef() { return "el"; }
|
|
530
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={table:{header:{height:"36",paddingX:"16",gap:"4",bg:"#F5FAFF",typography:{fontFamily:"Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",fontWeight:"500",fontSize:"12",lineHeight:"20",textDecoration:"none"},resizingBar:{color:"#CCCCCC",height:"16"}},body:{default:{height:"44",paddingY:"8"},dense:{height:"32"},paddingY:{dense:"6"},paddingX:{default:"8",wide:"16"},typography:{fontFamily:"Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",fontWeight:"400",fontSize:"12",lineHeight:"20",textDecoration:"none"}},border:{color:"#E1E1E1",width:"1"},content:{gap:"8"},radius:"8",keyValue:{body:{paddingY:"8"},height:"44",search:{paddingX:"32",bg:"#F9F9F9"}},separator:{color:"#EEEEEE",width:{default:"6",dense:"4"}}}};export{e as t}
|