@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,629 +0,0 @@
|
|
|
1
|
-
import { h, Host, } from "@stencil/core";
|
|
2
|
-
import { TABLE_ID_ATTR, } from "../constants";
|
|
3
|
-
import { resolveTableIconColor, resolveSortIconName, TABLE_HEADER_LAYOUT, TABLE_HEADER_TYPOGRAPHY, TABLE_HEADER_COLORS, TABLE_HEADER_RESIZING_BAR, TABLE_BORDER, TABLE_SELECTABLE_COLUMN_WIDTH, } from "../sd-table.config";
|
|
4
|
-
export class SdThead {
|
|
5
|
-
el;
|
|
6
|
-
/** 테이블 컬럼 목록 */
|
|
7
|
-
columns;
|
|
8
|
-
/** 행 선택 기능 사용 여부 */
|
|
9
|
-
selectable;
|
|
10
|
-
/** 컬럼 너비 조절 가능 여부 */
|
|
11
|
-
resizable;
|
|
12
|
-
/** 고정 컬럼 설정 */
|
|
13
|
-
stickyColumn;
|
|
14
|
-
/** 헤더 고정 여부 */
|
|
15
|
-
stickyHeader;
|
|
16
|
-
/** 좌측 스크롤 여부 */
|
|
17
|
-
scrolledLeft;
|
|
18
|
-
/** 우측 스크롤 여부 */
|
|
19
|
-
scrolledRight;
|
|
20
|
-
/** 전체 선택 체크박스용 행 데이터 */
|
|
21
|
-
rows = [];
|
|
22
|
-
/** 컬럼 너비 목록 */
|
|
23
|
-
columnWidths = [];
|
|
24
|
-
/** 컬럼 정렬 버튼 클릭 시 발생합니다. */
|
|
25
|
-
sdColumnSort;
|
|
26
|
-
tableId = '';
|
|
27
|
-
_columns = [];
|
|
28
|
-
_selectable = false;
|
|
29
|
-
_resizable = false;
|
|
30
|
-
_stickyColumn = { left: 0, right: 0 };
|
|
31
|
-
_stickyHeader = false;
|
|
32
|
-
_scrolledLeft = false;
|
|
33
|
-
_scrolledRight = false;
|
|
34
|
-
dropdownOpenMap = {};
|
|
35
|
-
tableEl = null;
|
|
36
|
-
dropdownRefs = {};
|
|
37
|
-
dropdownThRefs = {};
|
|
38
|
-
dropdownPortals = {};
|
|
39
|
-
handleColumnsChange(newCols) {
|
|
40
|
-
if (Array.isArray(newCols) && (this.columnWidths ?? []).length === 0) {
|
|
41
|
-
this.columnWidths = newCols.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
disconnectedCallback() {
|
|
45
|
-
const portals = this.dropdownPortals ?? {};
|
|
46
|
-
Object.values(portals).forEach(portal => {
|
|
47
|
-
if (portal?.parentNode != null)
|
|
48
|
-
portal.parentNode.removeChild(portal);
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
componentWillLoad() {
|
|
52
|
-
this.syncTableContext();
|
|
53
|
-
this.dropdownOpenMap = this.dropdownOpenMap ?? {};
|
|
54
|
-
this.dropdownRefs = this.dropdownRefs ?? {};
|
|
55
|
-
this.dropdownThRefs = this.dropdownThRefs ?? {};
|
|
56
|
-
this.dropdownPortals = this.dropdownPortals ?? {};
|
|
57
|
-
this.columnWidths = Array.isArray(this.columnWidths) ? this.columnWidths : [];
|
|
58
|
-
this.resolveConfig();
|
|
59
|
-
if ((this.columnWidths ?? []).length === 0) {
|
|
60
|
-
this.columnWidths = this._columns.map(c => c.autoWidth ? 0 : parseInt(c.width || '120', 10));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
componentDidLoad() {
|
|
64
|
-
this.syncTableContext();
|
|
65
|
-
this.resolveConfig();
|
|
66
|
-
this.initDropdownPortals();
|
|
67
|
-
}
|
|
68
|
-
// sd-portal을 body에 붙여 CSS transform 영향 없이 정확한 위치에 패널을 표시한다.
|
|
69
|
-
// <slot>을 render에 두지 않고 직접 DOM 이동(slot 속성 제거)으로 Stencil 슬롯 에뮬레이션 충돌을 피한다.
|
|
70
|
-
initDropdownPortals() {
|
|
71
|
-
const cols = this._columns ?? [];
|
|
72
|
-
const hasDropdownCols = cols.filter(c => c.hasDropdown === true);
|
|
73
|
-
if (hasDropdownCols.length === 0)
|
|
74
|
-
return;
|
|
75
|
-
for (const col of hasDropdownCols) {
|
|
76
|
-
const colName = col.name;
|
|
77
|
-
// 이미 포탈이 생성된 컬럼은 건너뜀 (refreshConfig 재호출 대비)
|
|
78
|
-
if ((this.dropdownPortals ?? {})[colName] != null)
|
|
79
|
-
continue;
|
|
80
|
-
const slotContent = this.el.querySelector(`[slot="dropdown-${colName}"]`);
|
|
81
|
-
if (slotContent == null)
|
|
82
|
-
continue;
|
|
83
|
-
// slot 속성 제거: Stencil 슬롯 에뮬레이션이 재배포하지 못하게 한다
|
|
84
|
-
slotContent.removeAttribute('slot');
|
|
85
|
-
const portal = document.createElement('sd-portal');
|
|
86
|
-
portal.parentRef = this.dropdownThRefs[colName] ?? null;
|
|
87
|
-
portal.open = false;
|
|
88
|
-
// 첫 open 전까지 포탈 호스트 자체를 숨긴다.
|
|
89
|
-
// moveSlotContent()가 open=true 시 children을 독립 wrapper div로 이동하므로 이후 동작에 영향 없음.
|
|
90
|
-
portal.style.display = 'none';
|
|
91
|
-
portal.addEventListener('sdClose', () => this.closeDropdown(colName));
|
|
92
|
-
portal.appendChild(slotContent);
|
|
93
|
-
document.body.appendChild(portal);
|
|
94
|
-
this.dropdownPortals[colName] = portal;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
syncTableContext() {
|
|
98
|
-
// sd-table이 shadow:true이므로 fallback content로 렌더되면 closest가 경계를 못 넘는다.
|
|
99
|
-
// 그 경우 getRootNode().host(=sd-table)로 폴백한다.
|
|
100
|
-
const closest = this.el.closest('sd-table');
|
|
101
|
-
const root = this.el.getRootNode();
|
|
102
|
-
const fromShadow = root instanceof ShadowRoot ? root.host : null;
|
|
103
|
-
const table = closest ?? fromShadow;
|
|
104
|
-
this.tableEl = table;
|
|
105
|
-
const fromMethod = table?.getTableIdSync?.();
|
|
106
|
-
const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
|
|
107
|
-
const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
108
|
-
(fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
109
|
-
'';
|
|
110
|
-
if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
|
|
111
|
-
this.tableId = resolvedTableId;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
resolveConfig() {
|
|
115
|
-
const config = this.tableEl?.getConfigSync?.();
|
|
116
|
-
const resolvedColumns = Array.isArray(this.columns)
|
|
117
|
-
? this.columns
|
|
118
|
-
: Array.isArray(config?.columns)
|
|
119
|
-
? config.columns
|
|
120
|
-
: [];
|
|
121
|
-
this._columns = resolvedColumns;
|
|
122
|
-
this._selectable = this.selectable ?? config?.selectable ?? false;
|
|
123
|
-
this._resizable = this.resizable ?? config?.resizable ?? false;
|
|
124
|
-
this._stickyColumn = this.stickyColumn ?? config?.stickyColumn ?? { left: 0, right: 0 };
|
|
125
|
-
this._stickyHeader = this.stickyHeader ?? config?.stickyHeader ?? false;
|
|
126
|
-
this._scrolledLeft = this.scrolledLeft ?? config?.scrolledLeft ?? false;
|
|
127
|
-
this._scrolledRight = this.scrolledRight ?? config?.scrolledRight ?? false;
|
|
128
|
-
if (Array.isArray(config?.columnWidths) && (this.columnWidths ?? []).length === 0) {
|
|
129
|
-
this.columnWidths = [...config.columnWidths];
|
|
130
|
-
}
|
|
131
|
-
if (!Array.isArray(this.columnWidths)) {
|
|
132
|
-
this.columnWidths = [];
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
/** 테이블 설정을 다시 불러옵니다. */
|
|
136
|
-
async refreshConfig() {
|
|
137
|
-
this.resolveConfig();
|
|
138
|
-
this.initDropdownPortals();
|
|
139
|
-
}
|
|
140
|
-
/** 컬럼 너비를 업데이트합니다. */
|
|
141
|
-
async setColumnWidths(widths) {
|
|
142
|
-
this.columnWidths = Array.isArray(widths) ? widths : [];
|
|
143
|
-
}
|
|
144
|
-
/** 전체 선택 체크박스 상태를 갱신합니다. */
|
|
145
|
-
async refreshSelection() {
|
|
146
|
-
const checkbox = this.el.querySelector('sd-checkbox');
|
|
147
|
-
if (checkbox) {
|
|
148
|
-
checkbox.value = this.getIsAllChecked();
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
get visibleColumns() {
|
|
152
|
-
return this._columns.filter(col => col.visible !== false);
|
|
153
|
-
}
|
|
154
|
-
getStickyStyle(colIdx) {
|
|
155
|
-
if (this.tableEl?.getStickyStyleSync) {
|
|
156
|
-
return this.tableEl.getStickyStyleSync(colIdx);
|
|
157
|
-
}
|
|
158
|
-
const leftOffset = this.columnWidths.slice(0, colIdx).reduce((a, b) => a + b, 0) +
|
|
159
|
-
(this._selectable ? TABLE_SELECTABLE_COLUMN_WIDTH : 0);
|
|
160
|
-
const rightOffset = this.columnWidths
|
|
161
|
-
.filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
|
|
162
|
-
.reduce((a, b) => a + b, 0);
|
|
163
|
-
const col = this.visibleColumns[colIdx];
|
|
164
|
-
const base = {
|
|
165
|
-
'--sticky-left-offset': `${leftOffset}px`,
|
|
166
|
-
'--sticky-right-offset': `${rightOffset}px`,
|
|
167
|
-
};
|
|
168
|
-
if (!col?.autoWidth) {
|
|
169
|
-
base['width'] = `${this.columnWidths[colIdx]}px`;
|
|
170
|
-
base['minWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
171
|
-
base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
172
|
-
}
|
|
173
|
-
return base;
|
|
174
|
-
}
|
|
175
|
-
handleResize(index, event, reversed = false) {
|
|
176
|
-
if (this.tableEl?.handleResize) {
|
|
177
|
-
this.tableEl.handleResize(index, event, reversed);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
handleColumnSort = (col) => {
|
|
181
|
-
this.sdColumnSort.emit({ column: col });
|
|
182
|
-
};
|
|
183
|
-
toggleDropdown(name) {
|
|
184
|
-
const isOpen = this.dropdownOpenMap[name] !== true;
|
|
185
|
-
const portals = this.dropdownPortals ?? {};
|
|
186
|
-
const newMap = { ...this.dropdownOpenMap };
|
|
187
|
-
// _columns 기준으로 순회: portals가 비어도 dropdownOpenMap은 항상 갱신됨
|
|
188
|
-
for (const col of (this._columns ?? []).filter(c => c.hasDropdown === true)) {
|
|
189
|
-
const shouldBeOpen = col.name === name ? isOpen : false;
|
|
190
|
-
newMap[col.name] = shouldBeOpen;
|
|
191
|
-
const portal = portals[col.name];
|
|
192
|
-
if (portal != null)
|
|
193
|
-
portal.open = shouldBeOpen;
|
|
194
|
-
}
|
|
195
|
-
this.dropdownOpenMap = newMap;
|
|
196
|
-
}
|
|
197
|
-
closeDropdown(name) {
|
|
198
|
-
if (this.dropdownOpenMap[name] !== true)
|
|
199
|
-
return;
|
|
200
|
-
this.dropdownOpenMap = { ...this.dropdownOpenMap, [name]: false };
|
|
201
|
-
const portal = (this.dropdownPortals ?? {})[name];
|
|
202
|
-
if (portal != null)
|
|
203
|
-
portal.open = false;
|
|
204
|
-
}
|
|
205
|
-
handleSelectAll(checked) {
|
|
206
|
-
const nextChecked = !!checked;
|
|
207
|
-
const safeRows = Array.isArray(this.rows) ? this.rows : [];
|
|
208
|
-
if (this.tableEl?.toggleSelectAllSync) {
|
|
209
|
-
this.tableEl.toggleSelectAllSync(nextChecked, safeRows);
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
getIsAllChecked() {
|
|
213
|
-
const safeRows = Array.isArray(this.rows) ? this.rows : [];
|
|
214
|
-
if (this.tableEl?.getIsAllCheckedSync && safeRows.length > 0) {
|
|
215
|
-
return this.tableEl.getIsAllCheckedSync(safeRows);
|
|
216
|
-
}
|
|
217
|
-
return false;
|
|
218
|
-
}
|
|
219
|
-
render() {
|
|
220
|
-
const safeRows = Array.isArray(this.rows) ? this.rows : [];
|
|
221
|
-
const dropdownOpenMap = this.dropdownOpenMap ?? {};
|
|
222
|
-
const dropdownRefs = this.dropdownRefs ?? {};
|
|
223
|
-
const stickyLeftCount = this._stickyColumn.left || 0;
|
|
224
|
-
const stickyRightCount = this._stickyColumn.right || 0;
|
|
225
|
-
const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
|
|
226
|
-
const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
|
|
227
|
-
const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
|
|
228
|
-
const lastColIdx = this.visibleColumns.length - 1;
|
|
229
|
-
const headStyle = {
|
|
230
|
-
'--table-header-height': `${TABLE_HEADER_LAYOUT.height}px`,
|
|
231
|
-
'--table-header-padding-x': `${TABLE_HEADER_LAYOUT.paddingX}px`,
|
|
232
|
-
'--table-header-gap': `${TABLE_HEADER_LAYOUT.gap}px`,
|
|
233
|
-
'--table-header-bg': TABLE_HEADER_COLORS.bg,
|
|
234
|
-
'--table-header-font-family': TABLE_HEADER_TYPOGRAPHY.fontFamily,
|
|
235
|
-
'--table-header-font-weight': TABLE_HEADER_TYPOGRAPHY.fontWeight,
|
|
236
|
-
'--table-header-font-size': `${TABLE_HEADER_TYPOGRAPHY.fontSize}px`,
|
|
237
|
-
'--table-header-line-height': `${TABLE_HEADER_TYPOGRAPHY.lineHeight}px`,
|
|
238
|
-
'--table-header-text-decoration': TABLE_HEADER_TYPOGRAPHY.textDecoration,
|
|
239
|
-
'--table-header-resizer-color': TABLE_HEADER_RESIZING_BAR.color,
|
|
240
|
-
'--table-header-resizer-height': `${TABLE_HEADER_RESIZING_BAR.height}px`,
|
|
241
|
-
'--table-border-color': TABLE_BORDER.color,
|
|
242
|
-
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
243
|
-
};
|
|
244
|
-
return (h(Host, { key: '2f2218c9c0ba02fc59eb026944a3e26fbf741f23', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '008fc1ef83c882dd85fd9d6b8490a3246183e758', class: {
|
|
245
|
-
'thead': true,
|
|
246
|
-
'thead--sticky': this._stickyHeader,
|
|
247
|
-
} }, h("tr", { key: 'ff679599539ea36d74160d31258bc06c4c6d0fda', class: "tr" }, this._selectable && (h("th", { key: '9fd149c26ec979f3f82eb5b1fad56cf963ee1e7f', class: {
|
|
248
|
-
'th': true,
|
|
249
|
-
'th--selected': true,
|
|
250
|
-
'sticky-left': true,
|
|
251
|
-
'sticky-left-edge': stickyLeftCount === 0,
|
|
252
|
-
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
253
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'feab85e049c99a1a565b250f5b0aa0ed6d986d65', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), h("div", { key: 'bf68afc8990977e607cbd6f25b19f6442b7fbab3', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
|
|
254
|
-
'th': true,
|
|
255
|
-
[`${col.thClass}`]: Boolean(col.thClass),
|
|
256
|
-
'sticky-left': true,
|
|
257
|
-
'sticky-left-edge': idx === stickyLeftCount - 1,
|
|
258
|
-
'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
|
|
259
|
-
'th--has-dropdown': col.hasDropdown === true,
|
|
260
|
-
}, style: { ...col.thStyle, ...this.getStickyStyle(idx) }, ref: col.hasDropdown === true
|
|
261
|
-
? el => {
|
|
262
|
-
this.dropdownThRefs[col.name] = el;
|
|
263
|
-
}
|
|
264
|
-
: undefined, onClick: col.hasDropdown === true ? () => this.toggleDropdown(col.name) : undefined }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.icon && (h("sd-icon", { name: col.icon, size: "12", color: resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (h("sd-icon", { name: resolveSortIconName(col.sort), size: "12", color: resolveTableIconColor(resolveSortIconName(col.sort), col.iconColor), onClick: (e) => {
|
|
265
|
-
e.stopPropagation();
|
|
266
|
-
this.handleColumnSort(col);
|
|
267
|
-
}, style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text)))))), col.hasDropdown === true && (h("button", { class: {
|
|
268
|
-
'th__dropdown-trigger': true,
|
|
269
|
-
'th__dropdown-trigger--open': dropdownOpenMap[col.name] === true,
|
|
270
|
-
}, ref: el => {
|
|
271
|
-
dropdownRefs[col.name] = el;
|
|
272
|
-
}, "aria-haspopup": "listbox", "aria-expanded": dropdownOpenMap[col.name] === true ? 'true' : 'false' }, h("sd-icon", { name: "caretDown", size: "12" })))), this._resizable && idx !== lastColIdx && (
|
|
273
|
-
// column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
|
|
274
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
275
|
-
h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(idx, evt) }))))), middleCols.map((col, relativeIdx) => {
|
|
276
|
-
const actualColIdx = stickyLeftCount + relativeIdx;
|
|
277
|
-
return (h("th", { key: col.name, class: {
|
|
278
|
-
'th': true,
|
|
279
|
-
[`${col.thClass}`]: Boolean(col.thClass),
|
|
280
|
-
'th--has-dropdown': col.hasDropdown === true,
|
|
281
|
-
}, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) }, ref: col.hasDropdown === true
|
|
282
|
-
? el => {
|
|
283
|
-
this.dropdownThRefs[col.name] = el;
|
|
284
|
-
}
|
|
285
|
-
: undefined, onClick: col.hasDropdown === true ? () => this.toggleDropdown(col.name) : undefined }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.icon && (h("sd-icon", { name: col.icon, size: "12", color: resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (h("sd-icon", { name: resolveSortIconName(col.sort), size: "12", color: resolveTableIconColor(resolveSortIconName(col.sort), col.iconColor), onClick: (e) => {
|
|
286
|
-
e.stopPropagation();
|
|
287
|
-
this.handleColumnSort(col);
|
|
288
|
-
}, style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text)))))), col.hasDropdown === true && (h("button", { class: {
|
|
289
|
-
'th__dropdown-trigger': true,
|
|
290
|
-
'th__dropdown-trigger--open': this.dropdownOpenMap[col.name] === true,
|
|
291
|
-
}, ref: el => {
|
|
292
|
-
this.dropdownRefs[col.name] = el;
|
|
293
|
-
}, "aria-haspopup": "listbox", "aria-expanded": this.dropdownOpenMap[col.name] === true ? 'true' : 'false' }, h("sd-icon", { name: "caretDown", size: "12" })))), this._resizable && actualColIdx !== lastColIdx && (
|
|
294
|
-
// column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
|
|
295
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
296
|
-
h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(actualColIdx, evt) }))));
|
|
297
|
-
}), stickyRightCols.map((col, relativeIdx) => {
|
|
298
|
-
const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
|
|
299
|
-
return (h("th", { key: col.name, class: {
|
|
300
|
-
'th': true,
|
|
301
|
-
[`${col.thClass}`]: Boolean(col.thClass),
|
|
302
|
-
'sticky-right': true,
|
|
303
|
-
'sticky-right-edge': relativeIdx === 0,
|
|
304
|
-
'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
|
|
305
|
-
'th--has-dropdown': col.hasDropdown === true,
|
|
306
|
-
}, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) }, ref: col.hasDropdown === true
|
|
307
|
-
? el => {
|
|
308
|
-
this.dropdownThRefs[col.name] = el;
|
|
309
|
-
}
|
|
310
|
-
: undefined, onClick: col.hasDropdown === true ? () => this.toggleDropdown(col.name) : undefined }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.icon && (h("sd-icon", { name: col.icon, size: "12", color: resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (h("sd-icon", { name: resolveSortIconName(col.sort), size: "12", color: resolveTableIconColor(resolveSortIconName(col.sort), col.iconColor), onClick: (e) => {
|
|
311
|
-
e.stopPropagation();
|
|
312
|
-
this.handleColumnSort(col);
|
|
313
|
-
}, style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text)))))), col.hasDropdown === true && (h("button", { class: {
|
|
314
|
-
'th__dropdown-trigger': true,
|
|
315
|
-
'th__dropdown-trigger--open': this.dropdownOpenMap[col.name] === true,
|
|
316
|
-
}, ref: el => {
|
|
317
|
-
this.dropdownRefs[col.name] = el;
|
|
318
|
-
}, "aria-haspopup": "listbox", "aria-expanded": this.dropdownOpenMap[col.name] === true ? 'true' : 'false' }, h("sd-icon", { name: "caretDown", size: "12" })))), this._resizable && (
|
|
319
|
-
// column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
|
|
320
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
321
|
-
h("div", { class: "th__resizer th__resizer--left", onMouseDown: (evt) => this.handleResize(actualColIdx, evt, true) }))));
|
|
322
|
-
})))));
|
|
323
|
-
}
|
|
324
|
-
static get is() { return "sd-thead"; }
|
|
325
|
-
static get originalStyleUrls() {
|
|
326
|
-
return {
|
|
327
|
-
"$": ["sd-thead.scss"]
|
|
328
|
-
};
|
|
329
|
-
}
|
|
330
|
-
static get styleUrls() {
|
|
331
|
-
return {
|
|
332
|
-
"$": ["sd-thead.css"]
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
static get properties() {
|
|
336
|
-
return {
|
|
337
|
-
"columns": {
|
|
338
|
-
"type": "unknown",
|
|
339
|
-
"mutable": false,
|
|
340
|
-
"complexType": {
|
|
341
|
-
"original": "SdTableColumn[]",
|
|
342
|
-
"resolved": "SdTableColumn[] | undefined",
|
|
343
|
-
"references": {
|
|
344
|
-
"SdTableColumn": {
|
|
345
|
-
"location": "import",
|
|
346
|
-
"path": "../constants",
|
|
347
|
-
"id": "src/components/sd-table/constants.ts::SdTableColumn",
|
|
348
|
-
"referenceLocation": "SdTableColumn"
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
},
|
|
352
|
-
"required": false,
|
|
353
|
-
"optional": true,
|
|
354
|
-
"docs": {
|
|
355
|
-
"tags": [],
|
|
356
|
-
"text": "\uD14C\uC774\uBE14 \uCEEC\uB7FC \uBAA9\uB85D"
|
|
357
|
-
},
|
|
358
|
-
"getter": false,
|
|
359
|
-
"setter": false
|
|
360
|
-
},
|
|
361
|
-
"selectable": {
|
|
362
|
-
"type": "boolean",
|
|
363
|
-
"mutable": false,
|
|
364
|
-
"complexType": {
|
|
365
|
-
"original": "boolean",
|
|
366
|
-
"resolved": "boolean | undefined",
|
|
367
|
-
"references": {}
|
|
368
|
-
},
|
|
369
|
-
"required": false,
|
|
370
|
-
"optional": true,
|
|
371
|
-
"docs": {
|
|
372
|
-
"tags": [],
|
|
373
|
-
"text": "\uD589 \uC120\uD0DD \uAE30\uB2A5 \uC0AC\uC6A9 \uC5EC\uBD80"
|
|
374
|
-
},
|
|
375
|
-
"getter": false,
|
|
376
|
-
"setter": false,
|
|
377
|
-
"reflect": false,
|
|
378
|
-
"attribute": "selectable"
|
|
379
|
-
},
|
|
380
|
-
"resizable": {
|
|
381
|
-
"type": "boolean",
|
|
382
|
-
"mutable": false,
|
|
383
|
-
"complexType": {
|
|
384
|
-
"original": "boolean",
|
|
385
|
-
"resolved": "boolean | undefined",
|
|
386
|
-
"references": {}
|
|
387
|
-
},
|
|
388
|
-
"required": false,
|
|
389
|
-
"optional": true,
|
|
390
|
-
"docs": {
|
|
391
|
-
"tags": [],
|
|
392
|
-
"text": "\uCEEC\uB7FC \uB108\uBE44 \uC870\uC808 \uAC00\uB2A5 \uC5EC\uBD80"
|
|
393
|
-
},
|
|
394
|
-
"getter": false,
|
|
395
|
-
"setter": false,
|
|
396
|
-
"reflect": false,
|
|
397
|
-
"attribute": "resizable"
|
|
398
|
-
},
|
|
399
|
-
"stickyColumn": {
|
|
400
|
-
"type": "unknown",
|
|
401
|
-
"mutable": false,
|
|
402
|
-
"complexType": {
|
|
403
|
-
"original": "SdTableStickyColumn",
|
|
404
|
-
"resolved": "SdTableStickyColumn | undefined",
|
|
405
|
-
"references": {
|
|
406
|
-
"SdTableStickyColumn": {
|
|
407
|
-
"location": "import",
|
|
408
|
-
"path": "../constants",
|
|
409
|
-
"id": "src/components/sd-table/constants.ts::SdTableStickyColumn",
|
|
410
|
-
"referenceLocation": "SdTableStickyColumn"
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
},
|
|
414
|
-
"required": false,
|
|
415
|
-
"optional": true,
|
|
416
|
-
"docs": {
|
|
417
|
-
"tags": [],
|
|
418
|
-
"text": "\uACE0\uC815 \uCEEC\uB7FC \uC124\uC815"
|
|
419
|
-
},
|
|
420
|
-
"getter": false,
|
|
421
|
-
"setter": false
|
|
422
|
-
},
|
|
423
|
-
"stickyHeader": {
|
|
424
|
-
"type": "boolean",
|
|
425
|
-
"mutable": false,
|
|
426
|
-
"complexType": {
|
|
427
|
-
"original": "boolean",
|
|
428
|
-
"resolved": "boolean | undefined",
|
|
429
|
-
"references": {}
|
|
430
|
-
},
|
|
431
|
-
"required": false,
|
|
432
|
-
"optional": true,
|
|
433
|
-
"docs": {
|
|
434
|
-
"tags": [],
|
|
435
|
-
"text": "\uD5E4\uB354 \uACE0\uC815 \uC5EC\uBD80"
|
|
436
|
-
},
|
|
437
|
-
"getter": false,
|
|
438
|
-
"setter": false,
|
|
439
|
-
"reflect": false,
|
|
440
|
-
"attribute": "sticky-header"
|
|
441
|
-
},
|
|
442
|
-
"scrolledLeft": {
|
|
443
|
-
"type": "boolean",
|
|
444
|
-
"mutable": false,
|
|
445
|
-
"complexType": {
|
|
446
|
-
"original": "boolean",
|
|
447
|
-
"resolved": "boolean | undefined",
|
|
448
|
-
"references": {}
|
|
449
|
-
},
|
|
450
|
-
"required": false,
|
|
451
|
-
"optional": true,
|
|
452
|
-
"docs": {
|
|
453
|
-
"tags": [],
|
|
454
|
-
"text": "\uC88C\uCE21 \uC2A4\uD06C\uB864 \uC5EC\uBD80"
|
|
455
|
-
},
|
|
456
|
-
"getter": false,
|
|
457
|
-
"setter": false,
|
|
458
|
-
"reflect": false,
|
|
459
|
-
"attribute": "scrolled-left"
|
|
460
|
-
},
|
|
461
|
-
"scrolledRight": {
|
|
462
|
-
"type": "boolean",
|
|
463
|
-
"mutable": false,
|
|
464
|
-
"complexType": {
|
|
465
|
-
"original": "boolean",
|
|
466
|
-
"resolved": "boolean | undefined",
|
|
467
|
-
"references": {}
|
|
468
|
-
},
|
|
469
|
-
"required": false,
|
|
470
|
-
"optional": true,
|
|
471
|
-
"docs": {
|
|
472
|
-
"tags": [],
|
|
473
|
-
"text": "\uC6B0\uCE21 \uC2A4\uD06C\uB864 \uC5EC\uBD80"
|
|
474
|
-
},
|
|
475
|
-
"getter": false,
|
|
476
|
-
"setter": false,
|
|
477
|
-
"reflect": false,
|
|
478
|
-
"attribute": "scrolled-right"
|
|
479
|
-
},
|
|
480
|
-
"rows": {
|
|
481
|
-
"type": "unknown",
|
|
482
|
-
"mutable": false,
|
|
483
|
-
"complexType": {
|
|
484
|
-
"original": "Row[]",
|
|
485
|
-
"resolved": "Row[]",
|
|
486
|
-
"references": {
|
|
487
|
-
"Row": {
|
|
488
|
-
"location": "import",
|
|
489
|
-
"path": "../constants",
|
|
490
|
-
"id": "src/components/sd-table/constants.ts::Row",
|
|
491
|
-
"referenceLocation": "Row"
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
"required": false,
|
|
496
|
-
"optional": false,
|
|
497
|
-
"docs": {
|
|
498
|
-
"tags": [],
|
|
499
|
-
"text": "\uC804\uCCB4 \uC120\uD0DD \uCCB4\uD06C\uBC15\uC2A4\uC6A9 \uD589 \uB370\uC774\uD130"
|
|
500
|
-
},
|
|
501
|
-
"getter": false,
|
|
502
|
-
"setter": false,
|
|
503
|
-
"defaultValue": "[]"
|
|
504
|
-
},
|
|
505
|
-
"columnWidths": {
|
|
506
|
-
"type": "unknown",
|
|
507
|
-
"mutable": true,
|
|
508
|
-
"complexType": {
|
|
509
|
-
"original": "number[]",
|
|
510
|
-
"resolved": "number[]",
|
|
511
|
-
"references": {}
|
|
512
|
-
},
|
|
513
|
-
"required": false,
|
|
514
|
-
"optional": false,
|
|
515
|
-
"docs": {
|
|
516
|
-
"tags": [],
|
|
517
|
-
"text": "\uCEEC\uB7FC \uB108\uBE44 \uBAA9\uB85D"
|
|
518
|
-
},
|
|
519
|
-
"getter": false,
|
|
520
|
-
"setter": false,
|
|
521
|
-
"defaultValue": "[]"
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
}
|
|
525
|
-
static get states() {
|
|
526
|
-
return {
|
|
527
|
-
"tableId": {},
|
|
528
|
-
"_columns": {},
|
|
529
|
-
"_selectable": {},
|
|
530
|
-
"_resizable": {},
|
|
531
|
-
"_stickyColumn": {},
|
|
532
|
-
"_stickyHeader": {},
|
|
533
|
-
"_scrolledLeft": {},
|
|
534
|
-
"_scrolledRight": {},
|
|
535
|
-
"dropdownOpenMap": {}
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
static get events() {
|
|
539
|
-
return [{
|
|
540
|
-
"method": "sdColumnSort",
|
|
541
|
-
"name": "sdColumnSort",
|
|
542
|
-
"bubbles": true,
|
|
543
|
-
"cancelable": true,
|
|
544
|
-
"composed": true,
|
|
545
|
-
"docs": {
|
|
546
|
-
"tags": [],
|
|
547
|
-
"text": "\uCEEC\uB7FC \uC815\uB82C \uBC84\uD2BC \uD074\uB9AD \uC2DC \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
548
|
-
},
|
|
549
|
-
"complexType": {
|
|
550
|
-
"original": "{ column: SdTableColumn }",
|
|
551
|
-
"resolved": "{ column: SdTableColumn; }",
|
|
552
|
-
"references": {
|
|
553
|
-
"SdTableColumn": {
|
|
554
|
-
"location": "import",
|
|
555
|
-
"path": "../constants",
|
|
556
|
-
"id": "src/components/sd-table/constants.ts::SdTableColumn",
|
|
557
|
-
"referenceLocation": "SdTableColumn"
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
}];
|
|
562
|
-
}
|
|
563
|
-
static get methods() {
|
|
564
|
-
return {
|
|
565
|
-
"refreshConfig": {
|
|
566
|
-
"complexType": {
|
|
567
|
-
"signature": "() => Promise<void>",
|
|
568
|
-
"parameters": [],
|
|
569
|
-
"references": {
|
|
570
|
-
"Promise": {
|
|
571
|
-
"location": "global",
|
|
572
|
-
"id": "global::Promise"
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
"return": "Promise<void>"
|
|
576
|
-
},
|
|
577
|
-
"docs": {
|
|
578
|
-
"text": "\uD14C\uC774\uBE14 \uC124\uC815\uC744 \uB2E4\uC2DC \uBD88\uB7EC\uC635\uB2C8\uB2E4.",
|
|
579
|
-
"tags": []
|
|
580
|
-
}
|
|
581
|
-
},
|
|
582
|
-
"setColumnWidths": {
|
|
583
|
-
"complexType": {
|
|
584
|
-
"signature": "(widths: number[]) => Promise<void>",
|
|
585
|
-
"parameters": [{
|
|
586
|
-
"name": "widths",
|
|
587
|
-
"type": "number[]",
|
|
588
|
-
"docs": ""
|
|
589
|
-
}],
|
|
590
|
-
"references": {
|
|
591
|
-
"Promise": {
|
|
592
|
-
"location": "global",
|
|
593
|
-
"id": "global::Promise"
|
|
594
|
-
}
|
|
595
|
-
},
|
|
596
|
-
"return": "Promise<void>"
|
|
597
|
-
},
|
|
598
|
-
"docs": {
|
|
599
|
-
"text": "\uCEEC\uB7FC \uB108\uBE44\uB97C \uC5C5\uB370\uC774\uD2B8\uD569\uB2C8\uB2E4.",
|
|
600
|
-
"tags": []
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
"refreshSelection": {
|
|
604
|
-
"complexType": {
|
|
605
|
-
"signature": "() => Promise<void>",
|
|
606
|
-
"parameters": [],
|
|
607
|
-
"references": {
|
|
608
|
-
"Promise": {
|
|
609
|
-
"location": "global",
|
|
610
|
-
"id": "global::Promise"
|
|
611
|
-
}
|
|
612
|
-
},
|
|
613
|
-
"return": "Promise<void>"
|
|
614
|
-
},
|
|
615
|
-
"docs": {
|
|
616
|
-
"text": "\uC804\uCCB4 \uC120\uD0DD \uCCB4\uD06C\uBC15\uC2A4 \uC0C1\uD0DC\uB97C \uAC31\uC2E0\uD569\uB2C8\uB2E4.",
|
|
617
|
-
"tags": []
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
static get elementRef() { return "el"; }
|
|
623
|
-
static get watchers() {
|
|
624
|
-
return [{
|
|
625
|
-
"propName": "columns",
|
|
626
|
-
"methodName": "handleColumnsChange"
|
|
627
|
-
}];
|
|
628
|
-
}
|
|
629
|
-
}
|