@sellmate/design-system 1.1.0 → 1.2.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.table-B7brIpIQ.js → component.table-CMqGfEui.js} +11 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-BlxrCRYi.js → index-Cw-78mnC.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- 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 +10 -9
- package/dist/cjs/sd-calendar.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.cjs.entry.js +4 -4
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-box.cjs.entry.js +8 -3
- package/dist/cjs/sd-date-picker-calendar_2.cjs.entry.js +13 -8
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +22 -17
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +13 -13
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +7 -3
- package/dist/cjs/sd-field_3.cjs.entry.js +31 -30
- package/dist/cjs/sd-form.cjs.entry.js +5 -5
- package/dist/cjs/sd-ghost-button.cjs.entry.js +4 -4
- package/dist/cjs/sd-guide.cjs.entry.js +5 -5
- package/dist/cjs/sd-key-value-table.cjs.entry.js +10 -10
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-modal-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-pagination_4.cjs.entry.js +113 -40
- package/dist/cjs/sd-popover.cjs.entry.js +6 -6
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-portal.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +7 -4
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +15 -11
- package/dist/cjs/sd-select_3.cjs.entry.js +20 -15
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +170 -47
- package/dist/cjs/{sd-table.config-CDyioyE2.js → sd-table.config-BIpldZtw.js} +13 -2
- package/dist/cjs/sd-tabs.cjs.entry.js +8 -3
- package/dist/cjs/sd-tag.cjs.entry.js +10 -10
- package/dist/cjs/sd-td.cjs.entry.js +52 -10
- package/dist/cjs/sd-text-link.cjs.entry.js +9 -4
- 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/{tooltipArrow-N6nQ1QT-.js → tooltipArrow-BjSFKIUq.js} +1 -1
- package/dist/collection/components/sd-button/sd-button.js +9 -8
- package/dist/collection/components/sd-chip/sd-chip.js +4 -4
- package/dist/collection/components/sd-date-box/sd-date-box.js +7 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +4 -4
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +8 -3
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +12 -12
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +3 -3
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +6 -2
- package/dist/collection/components/sd-field/sd-field.js +23 -22
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +7 -2
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +4 -4
- package/dist/collection/components/sd-form/sd-form.js +4 -4
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +3 -3
- package/dist/collection/components/sd-guide/sd-guide.js +4 -4
- package/dist/collection/components/sd-input/sd-input.js +3 -3
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +8 -8
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +2 -2
- package/dist/collection/components/sd-number-input/sd-number-input.js +6 -6
- package/dist/collection/components/sd-popover/sd-popover.js +4 -4
- package/dist/collection/components/sd-portal/sd-portal.js +2 -2
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +6 -3
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +7 -3
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +7 -7
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +5 -5
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +9 -4
- package/dist/collection/components/sd-select/sd-select.js +5 -5
- package/dist/collection/components/sd-table/sd-table.config.js +4 -0
- package/dist/collection/components/sd-table/sd-table.css +22 -3
- package/dist/collection/components/sd-table/sd-table.js +197 -50
- package/dist/collection/components/sd-table/sd-table.stories.helpers.js +2 -3
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +5 -5
- package/dist/collection/components/sd-table/sd-td/sd-td.js +111 -9
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +30 -16
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +20 -1
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +97 -18
- package/dist/collection/components/sd-tabs/sd-tabs.js +7 -2
- package/dist/collection/components/sd-tag/sd-tag.config.js +3 -3
- package/dist/collection/components/sd-tag/sd-tag.js +6 -3
- package/dist/collection/components/sd-text-link/sd-text-link.js +8 -3
- 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/collection/utils/modal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-2wB9cing.js +1 -0
- package/dist/components/p-B-sK7I83.js +1 -0
- package/dist/components/p-B3D43x7F.js +1 -0
- package/dist/components/p-B7mpdnNl.js +1 -0
- package/dist/components/{p-DG45uNxd.js → p-BAcmO7w0.js} +1 -1
- package/dist/components/p-BL0ZcHK8.js +1 -0
- package/dist/components/p-BXCyVrle.js +1 -0
- package/dist/components/p-BY1LGlfc.js +1 -0
- package/dist/components/p-BjkROjjt.js +1 -0
- package/dist/components/p-Bm3W_eBv.js +1 -0
- package/dist/components/p-BnfUIhUj.js +1 -0
- package/dist/components/{p-D5TRyquv.js → p-BorUSgEK.js} +1 -1
- package/dist/components/{p-BfkuCNCI.js → p-BsM-fwYd.js} +1 -1
- package/dist/components/p-C5CH-s6a.js +1 -0
- package/dist/components/p-C7WLft_0.js +1 -0
- package/dist/components/{p-CGBnxqG2.js → p-CK9ciBIR.js} +1 -1
- package/dist/components/{p-BeK8amzx.js → p-CQI40kiY.js} +1 -1
- package/dist/components/{p-Dr1AMbBj.js → p-CRL7TjSB.js} +1 -1
- package/dist/components/p-CdOHomUp.js +1 -0
- package/dist/components/p-Ch5Yu1qd.js +1 -0
- package/dist/components/{p-D8WAP9T3.js → p-Cktiasfd.js} +1 -1
- package/dist/components/p-CsVAx6KV.js +1 -0
- package/dist/components/p-D0Jiw-Zk.js +1 -0
- package/dist/components/p-D5F7wCNo.js +1 -0
- package/dist/components/p-DBFgk0rX.js +1 -0
- package/dist/components/p-DFLCjX1a.js +1 -0
- package/dist/components/p-DL1ac1QS.js +1 -0
- package/dist/components/p-DeQcDHpn.js +1 -0
- package/dist/components/p-DfK4DiDI.js +1 -0
- package/dist/components/p-DhTcn6jX.js +1 -0
- package/dist/components/p-Dl8TIEQu.js +1 -0
- package/dist/components/{p--t9jBTYS.js → p-DyAnn9ea.js} +1 -1
- package/dist/components/p-Jts7ueOa.js +1 -0
- package/dist/components/{p-B1MabGRR.js → p-arZfxxPn.js} +1 -1
- package/dist/components/p-mmdt-WnS.js +1 -0
- package/dist/components/p-nOCYbyW4.js +1 -0
- package/dist/components/{p-MQTl8fGT.js → p-teN3CfOr.js} +1 -1
- package/dist/components/{p-ofkgu5aS.js → p-u8teDaMa.js} +1 -1
- package/dist/components/{p-BPsOJlCP.js → p-wCNRlKLa.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.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-calendar.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-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-b96c694c.entry.js → p-04fdb4b1.entry.js} +1 -1
- package/dist/design-system/p-05611ff7.entry.js +1 -0
- package/dist/design-system/p-0U6dRjlq.js +2 -0
- package/dist/design-system/{p-cd8e4dd6.entry.js → p-0fe603a4.entry.js} +1 -1
- package/dist/design-system/p-100f5887.entry.js +1 -0
- package/dist/design-system/p-18c5ae1a.entry.js +1 -0
- package/dist/design-system/p-1baa05ae.entry.js +1 -0
- package/dist/design-system/p-2a1ef965.entry.js +1 -0
- package/dist/design-system/p-2c63404f.entry.js +1 -0
- package/dist/design-system/{p-feeb0cc5.entry.js → p-435ae69e.entry.js} +1 -1
- package/dist/design-system/{p-cbda9194.entry.js → p-43e97572.entry.js} +1 -1
- package/dist/design-system/{p-e1c0a3c9.entry.js → p-44d05570.entry.js} +1 -1
- package/dist/design-system/{p-328fae12.entry.js → p-501fae20.entry.js} +1 -1
- package/dist/design-system/{p-b6ca4461.entry.js → p-5705e6d6.entry.js} +1 -1
- package/dist/design-system/p-5cbaf1db.entry.js +1 -0
- package/dist/design-system/p-5ed0becf.entry.js +1 -0
- package/dist/design-system/p-5f1c39b8.entry.js +1 -0
- package/dist/design-system/p-66af0ba0.entry.js +1 -0
- package/dist/design-system/{p-a942dfbe.entry.js → p-77690440.entry.js} +1 -1
- package/dist/design-system/p-78cc0289.entry.js +1 -0
- package/dist/design-system/{p-b04b22c6.entry.js → p-790165f8.entry.js} +1 -1
- package/dist/design-system/p-80466582.entry.js +1 -0
- package/dist/design-system/{p-c0f60b00.entry.js → p-857c44e8.entry.js} +1 -1
- package/dist/design-system/{p-4e2953eb.entry.js → p-87c868c3.entry.js} +1 -1
- package/dist/design-system/{p-f60cc7be.entry.js → p-8db7d8f2.entry.js} +1 -1
- package/dist/design-system/{p-18466728.entry.js → p-8ee990bd.entry.js} +1 -1
- package/dist/design-system/p-8f22106e.entry.js +1 -0
- package/dist/design-system/p-BnfUIhUj.js +1 -0
- package/dist/{components/p-CT3dfy3K.js → design-system/p-C29HUShl.js} +1 -1
- package/dist/design-system/p-a6545130.entry.js +1 -0
- package/dist/design-system/p-ae2d45a2.entry.js +1 -0
- package/dist/design-system/{p-f3cfff78.entry.js → p-aeccfb2b.entry.js} +1 -1
- package/dist/design-system/{p-20a50702.entry.js → p-b0aad445.entry.js} +1 -1
- package/dist/design-system/p-b3c144ff.entry.js +1 -0
- package/dist/design-system/{p-b1bb0d72.entry.js → p-caee95b0.entry.js} +1 -1
- package/dist/design-system/p-d30c823e.entry.js +1 -0
- package/dist/design-system/{p-f5576a0d.entry.js → p-d3212544.entry.js} +1 -1
- package/dist/design-system/p-d8c41313.entry.js +1 -0
- package/dist/design-system/{p-7882e388.entry.js → p-de8bb9ba.entry.js} +1 -1
- package/dist/design-system/{p-29ed11e5.entry.js → p-e2334c1c.entry.js} +1 -1
- package/dist/design-system/{p-d78fbe16.entry.js → p-f4d73a0c.entry.js} +1 -1
- package/dist/design-system/p-fc973500.entry.js +1 -0
- package/dist/design-system/p-fe0a5368.entry.js +1 -0
- package/dist/design-system/p-mmdt-WnS.js +1 -0
- package/dist/esm/{component.table-BQ6at17Y.js → component.table-BnfUIhUj.js} +11 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-CLCoul8o.js → index-0U6dRjlq.js} +1 -1
- package/dist/esm/index.js +1 -1
- 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 +10 -9
- package/dist/esm/sd-calendar.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.entry.js +4 -4
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +1 -1
- package/dist/esm/sd-date-box.entry.js +8 -3
- package/dist/esm/sd-date-picker-calendar_2.entry.js +13 -8
- package/dist/esm/sd-date-picker_7.entry.js +22 -17
- package/dist/esm/sd-date-range-picker-calendar.entry.js +13 -13
- package/dist/esm/sd-dropdown-button.entry.js +7 -3
- package/dist/esm/sd-field_3.entry.js +31 -30
- package/dist/esm/sd-form.entry.js +5 -5
- package/dist/esm/sd-ghost-button.entry.js +4 -4
- package/dist/esm/sd-guide.entry.js +5 -5
- package/dist/esm/sd-key-value-table.entry.js +10 -10
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +1 -1
- package/dist/esm/sd-modal-container.entry.js +3 -3
- package/dist/esm/sd-pagination_4.entry.js +113 -40
- package/dist/esm/sd-popover.entry.js +6 -6
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-portal.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +7 -4
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +15 -11
- package/dist/esm/sd-select_3.entry.js +20 -15
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/{sd-table.config-0Te8GLCI.js → sd-table.config-B-VgXXT7.js} +13 -3
- package/dist/esm/sd-table.entry.js +170 -47
- package/dist/esm/sd-tabs.entry.js +8 -3
- package/dist/esm/sd-tag.entry.js +10 -10
- package/dist/esm/sd-td.entry.js +52 -10
- package/dist/esm/sd-text-link.entry.js +9 -4
- 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/{tooltipArrow-Bc-yw2nt.js → tooltipArrow-O5LOsHae.js} +1 -1
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +3 -2
- package/dist/types/components/sd-table/constants.d.ts +2 -0
- package/dist/types/components/sd-table/sd-table.config.d.ts +4 -0
- package/dist/types/components/sd-table/sd-table.d.ts +19 -15
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +6 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +7 -0
- package/dist/types/components/sd-tag/sd-tag.d.ts +1 -0
- package/dist/types/components.d.ts +41 -8
- package/hydrate/index.js +552 -244
- package/hydrate/index.mjs +552 -244
- package/package.json +1 -1
- package/dist/components/p-At6nBeyO.js +0 -1
- package/dist/components/p-B73VhbYi.js +0 -1
- package/dist/components/p-BDQQllAo.js +0 -1
- package/dist/components/p-BDr27lvk.js +0 -1
- package/dist/components/p-BQ6at17Y.js +0 -1
- package/dist/components/p-BW_sBt7X.js +0 -1
- package/dist/components/p-BX3TJuQY.js +0 -1
- package/dist/components/p-Bm_T3qE0.js +0 -1
- package/dist/components/p-BnzK4uU4.js +0 -1
- package/dist/components/p-BqkJ0rZv.js +0 -1
- package/dist/components/p-C4PmGpW8.js +0 -1
- package/dist/components/p-C9CszVFl.js +0 -1
- package/dist/components/p-CGQWERwE.js +0 -1
- package/dist/components/p-CZmKBmKx.js +0 -1
- package/dist/components/p-CnarDyZi.js +0 -1
- package/dist/components/p-Cr2ghUra.js +0 -1
- package/dist/components/p-Cspm6LxP.js +0 -1
- package/dist/components/p-Cx3jXw9J.js +0 -1
- package/dist/components/p-DG-4Ifco.js +0 -1
- package/dist/components/p-DfXAgw0E.js +0 -1
- package/dist/components/p-MMkRcTBd.js +0 -1
- package/dist/components/p-ZstG0XdT.js +0 -1
- package/dist/components/p-h7eBUL4i.js +0 -1
- package/dist/components/p-lyB7zSp-.js +0 -1
- package/dist/components/p-oIM6jNZe.js +0 -1
- package/dist/components/p-oKHZl8yu.js +0 -1
- package/dist/design-system/p-02289728.entry.js +0 -1
- package/dist/design-system/p-17d66d85.entry.js +0 -1
- package/dist/design-system/p-1bb86d69.entry.js +0 -1
- package/dist/design-system/p-21874054.entry.js +0 -1
- package/dist/design-system/p-282cbefa.entry.js +0 -1
- package/dist/design-system/p-35dce399.entry.js +0 -1
- package/dist/design-system/p-39ff56b4.entry.js +0 -1
- package/dist/design-system/p-3cb712a6.entry.js +0 -1
- package/dist/design-system/p-7610153d.entry.js +0 -1
- package/dist/design-system/p-7722ddeb.entry.js +0 -1
- package/dist/design-system/p-7bfa0cf9.entry.js +0 -1
- package/dist/design-system/p-824ecfb5.entry.js +0 -1
- package/dist/design-system/p-9a04b341.entry.js +0 -1
- package/dist/design-system/p-BQ6at17Y.js +0 -1
- package/dist/design-system/p-CGQWERwE.js +0 -1
- package/dist/design-system/p-CLCoul8o.js +0 -2
- package/dist/design-system/p-Dmf0PYdM.js +0 -1
- package/dist/design-system/p-a7a0ca14.entry.js +0 -1
- package/dist/design-system/p-baed13e4.entry.js +0 -1
- package/dist/design-system/p-bd45e65d.entry.js +0 -1
- package/dist/design-system/p-bf4156d8.entry.js +0 -1
- package/dist/design-system/p-c228c2c7.entry.js +0 -1
- package/dist/design-system/p-cf382479.entry.js +0 -1
- package/dist/design-system/p-d0de34fd.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement, H as Host } from './index-0U6dRjlq.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
|
-
import { r as resolveTableIconColor,
|
|
4
|
-
import './component.table-
|
|
3
|
+
import { r as resolveTableIconColor, d as resolveSortIconName, b as TABLE_BORDER, e as TABLE_HEADER_RESIZING_BAR, f as TABLE_HEADER_TYPOGRAPHY, g as TABLE_HEADER_COLORS, h as TABLE_HEADER_LAYOUT, i as TABLE_SEPARATOR, a as TABLE_BODY_TYPOGRAPHY, T as TABLE_BODY_LAYOUT } from './sd-table.config-B-VgXXT7.js';
|
|
4
|
+
import './component.table-BnfUIhUj.js';
|
|
5
5
|
import './system-GBlVDmy4.js';
|
|
6
6
|
|
|
7
7
|
const pagination = {
|
|
@@ -205,17 +205,17 @@ const SdTbody = class {
|
|
|
205
205
|
this.tableEl = table;
|
|
206
206
|
const fromMethod = table?.getTableIdSync?.();
|
|
207
207
|
const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
|
|
208
|
-
const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
209
|
-
(fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
208
|
+
const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
209
|
+
(fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
210
210
|
'';
|
|
211
|
-
if (resolvedTableId && resolvedTableId !== this.tableId) {
|
|
211
|
+
if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
|
|
212
212
|
this.tableId = resolvedTableId;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
render() {
|
|
216
|
-
return (h(Host, { key: '
|
|
216
|
+
return (h(Host, { key: '5b55bfd73916ff1402329375de1e1fc2a7629cbd', slot: `${this.tableId}-body` }, h("tbody", { key: 'a09a532d1510166a36d592c2e59ec1765803bbbe', class: { tbody: true } }, [
|
|
217
217
|
this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
218
|
-
h("slot", { key: '
|
|
218
|
+
h("slot", { key: 'da3827a9c2fe7a74ec3cb3eb8dee3ab039ea0535' }),
|
|
219
219
|
this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
220
220
|
])));
|
|
221
221
|
}
|
|
@@ -256,7 +256,7 @@ const SdThead = class {
|
|
|
256
256
|
tableEl = null;
|
|
257
257
|
handleColumnsChange(newCols) {
|
|
258
258
|
if (Array.isArray(newCols) && (this.columnWidths ?? []).length === 0) {
|
|
259
|
-
this.columnWidths = newCols.map(c => parseInt(c.width || '120', 10));
|
|
259
|
+
this.columnWidths = newCols.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
componentWillLoad() {
|
|
@@ -264,7 +264,7 @@ const SdThead = class {
|
|
|
264
264
|
this.columnWidths = Array.isArray(this.columnWidths) ? this.columnWidths : [];
|
|
265
265
|
this.resolveConfig();
|
|
266
266
|
if ((this.columnWidths ?? []).length === 0) {
|
|
267
|
-
this.columnWidths = this._columns.map(c => parseInt(c.width || '120', 10));
|
|
267
|
+
this.columnWidths = this._columns.map(c => c.autoWidth ? 0 : parseInt(c.width || '120', 10));
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
componentDidLoad() {
|
|
@@ -281,10 +281,10 @@ const SdThead = class {
|
|
|
281
281
|
this.tableEl = table;
|
|
282
282
|
const fromMethod = table?.getTableIdSync?.();
|
|
283
283
|
const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
|
|
284
|
-
const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
285
|
-
(fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
284
|
+
const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
285
|
+
(fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
286
286
|
'';
|
|
287
|
-
if (resolvedTableId && resolvedTableId !== this.tableId) {
|
|
287
|
+
if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
|
|
288
288
|
this.tableId = resolvedTableId;
|
|
289
289
|
}
|
|
290
290
|
}
|
|
@@ -332,13 +332,17 @@ const SdThead = class {
|
|
|
332
332
|
const rightOffset = this.columnWidths
|
|
333
333
|
.filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
|
|
334
334
|
.reduce((a, b) => a + b, 0);
|
|
335
|
-
|
|
335
|
+
const col = this.visibleColumns[colIdx];
|
|
336
|
+
const base = {
|
|
336
337
|
'--sticky-left-offset': `${leftOffset}px`,
|
|
337
338
|
'--sticky-right-offset': `${rightOffset}px`,
|
|
338
|
-
'width': `${this.columnWidths[colIdx]}px`,
|
|
339
|
-
'minWidth': `${this.columnWidths[colIdx]}px`,
|
|
340
|
-
'maxWidth': `${this.columnWidths[colIdx]}px`,
|
|
341
339
|
};
|
|
340
|
+
if (!col?.autoWidth) {
|
|
341
|
+
base['width'] = `${this.columnWidths[colIdx]}px`;
|
|
342
|
+
base['minWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
343
|
+
base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
344
|
+
}
|
|
345
|
+
return base;
|
|
342
346
|
}
|
|
343
347
|
handleResize(index, event, reversed = false) {
|
|
344
348
|
if (this.tableEl?.handleResize) {
|
|
@@ -369,6 +373,7 @@ const SdThead = class {
|
|
|
369
373
|
const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
|
|
370
374
|
const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
|
|
371
375
|
const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
|
|
376
|
+
const lastColIdx = this.visibleColumns.length - 1;
|
|
372
377
|
const headStyle = {
|
|
373
378
|
'--table-header-height': `${TABLE_HEADER_LAYOUT.height}px`,
|
|
374
379
|
'--table-header-padding-x': `${TABLE_HEADER_LAYOUT.paddingX}px`,
|
|
@@ -384,27 +389,33 @@ const SdThead = class {
|
|
|
384
389
|
'--table-border-color': TABLE_BORDER.color,
|
|
385
390
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
386
391
|
};
|
|
387
|
-
return (h(Host, { key: '
|
|
392
|
+
return (h(Host, { key: '424fa72b833a94bce945ae50e8445cbed0527025', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '1a5704d78992b553c5db5ba92bb3814de7c19898', class: {
|
|
388
393
|
'thead': true,
|
|
389
394
|
'thead--sticky': this._stickyHeader,
|
|
390
|
-
} }, h("tr", { key: '
|
|
395
|
+
} }, h("tr", { key: '1369ff7c99a5691bcd5fa54af4f7c02ff41dceb3', class: "tr" }, this._selectable && (h("th", { key: '72159c6f8ef28b0b93790e180cb9b12345727525', class: {
|
|
391
396
|
'th': true,
|
|
392
397
|
'th--selected': true,
|
|
393
398
|
'sticky-left': true,
|
|
394
399
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
395
400
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
396
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
401
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '1c5c035346fc6d13d956475480374a8bd93d3d6d', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
|
|
397
402
|
'th': true,
|
|
398
403
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
399
404
|
'sticky-left': true,
|
|
400
405
|
'sticky-left-edge': idx === stickyLeftCount - 1,
|
|
401
406
|
'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
|
|
402
|
-
}, style: { ...col.thStyle, ...this.getStickyStyle(idx) } }, 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: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable &&
|
|
407
|
+
}, style: { ...col.thStyle, ...this.getStickyStyle(idx) } }, 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: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && idx !== lastColIdx && (
|
|
408
|
+
// column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
|
|
409
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
410
|
+
h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(idx, evt) }))))), middleCols.map((col, relativeIdx) => {
|
|
403
411
|
const actualColIdx = stickyLeftCount + relativeIdx;
|
|
404
412
|
return (h("th", { key: col.name, class: {
|
|
405
413
|
th: true,
|
|
406
414
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
407
|
-
}, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, 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: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable &&
|
|
415
|
+
}, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, 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: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && actualColIdx !== lastColIdx && (
|
|
416
|
+
// column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
|
|
417
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
418
|
+
h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(actualColIdx, evt) }))));
|
|
408
419
|
}), stickyRightCols.map((col, relativeIdx) => {
|
|
409
420
|
const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
|
|
410
421
|
return (h("th", { key: col.name, class: {
|
|
@@ -413,7 +424,10 @@ const SdThead = class {
|
|
|
413
424
|
'sticky-right': true,
|
|
414
425
|
'sticky-right-edge': relativeIdx === 0,
|
|
415
426
|
'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
|
|
416
|
-
}, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, 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: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && (
|
|
427
|
+
}, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, 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: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && (
|
|
428
|
+
// column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
|
|
429
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
430
|
+
h("div", { class: "th__resizer th__resizer--left", onMouseDown: (evt) => this.handleResize(actualColIdx, evt, true) }))));
|
|
417
431
|
})))));
|
|
418
432
|
}
|
|
419
433
|
static get watchers() { return {
|
|
@@ -424,7 +438,7 @@ const SdThead = class {
|
|
|
424
438
|
};
|
|
425
439
|
SdThead.style = sdTheadCss();
|
|
426
440
|
|
|
427
|
-
const sdTrCss = () => `sd-tr{display:contents}sd-tr *{box-sizing:border-box}.tr{display:table-row}.tr:hover .td{background-color:#F9F9F9}.tr--no-hover:hover .td{background-color:white}.td{display:table-cell;height:var(--table-body-height, 44px);padding:0 var(--table-body-padding-x, 16px);border-bottom:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);background:white;vertical-align:middle;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.td--left{text-align:left}.td--center{text-align:center}.td--right{text-align:right}.td--selected{position:relative;width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.td--selected sd-checkbox label{position:relative}.td--selected sd-checkbox label:before{content:"";position:absolute;inset:-6px}.td.sticky-left{position:sticky;background-color:white;z-index:100 !important;left:var(--sticky-left-offset, 0)}.td.sticky-right{position:sticky;background-color:white;z-index:100 !important;right:var(--sticky-right-offset, 0)}.td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-left-edge.is-scrolled-left{overflow:visible}.td.sticky-left-edge.is-scrolled-left:after{opacity:1}.td.sticky-right-edge.is-scrolled-right{overflow:visible}.td.sticky-right-edge.is-scrolled-right:after{opacity:1}.tr:hover .td.sticky-left,.tr:hover .td.sticky-right{background-color:#F9F9F9}.tr--no-hover:hover .td.sticky-left,.tr--no-hover:hover .td.sticky-right{background-color:white}.td.td--last-row{border-bottom:none}`;
|
|
441
|
+
const sdTrCss = () => `sd-tr{display:contents}sd-tr *{box-sizing:border-box}.tr{display:table-row}.tr:hover .td{background-color:#F9F9F9}.tr--no-hover:hover .td{background-color:white}.td{display:table-cell;height:var(--table-body-height, 44px);padding:var(--table-body-padding-y, 0) var(--table-body-padding-x, 16px);border-bottom:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);background:white;vertical-align:middle;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.td--left{text-align:left}.td--center{text-align:center}.td--right{text-align:right}.td--selected{position:relative;width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.td--selected sd-checkbox label{position:relative}.td--selected sd-checkbox label:before{content:"";position:absolute;inset:-6px}.td.sticky-left{position:sticky;background-color:white;z-index:100 !important;left:var(--sticky-left-offset, 0)}.td.sticky-right{position:sticky;background-color:white;z-index:100 !important;right:var(--sticky-right-offset, 0)}.td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-left-edge.is-scrolled-left{overflow:visible}.td.sticky-left-edge.is-scrolled-left:after{opacity:1}.td.sticky-right-edge.is-scrolled-right{overflow:visible}.td.sticky-right-edge.is-scrolled-right:after{opacity:1}.tr:hover .td.sticky-left,.tr:hover .td.sticky-right{background-color:#F9F9F9}.tr--no-hover:hover .td.sticky-left,.tr--no-hover:hover .td.sticky-right{background-color:white}.td.td--last-row{border-bottom:none}.tr--separator .td--separator{height:var(--table-separator-width, 6px);padding:0;background-color:var(--table-separator-color, #eeeeee);border-bottom:none}.td.td--before-separator{border-bottom:none}.td--divider-left{border-left:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1)}.td--divider-right{border-right:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1)}`;
|
|
428
442
|
|
|
429
443
|
const SdTr = class {
|
|
430
444
|
constructor(hostRef) {
|
|
@@ -436,6 +450,7 @@ const SdTr = class {
|
|
|
436
450
|
stickyColumn;
|
|
437
451
|
rowKey = '';
|
|
438
452
|
row = {};
|
|
453
|
+
separator;
|
|
439
454
|
tableId = '';
|
|
440
455
|
columnWidths = [];
|
|
441
456
|
isVisible = true;
|
|
@@ -445,16 +460,32 @@ const SdTr = class {
|
|
|
445
460
|
_stickyColumn = { left: 0, right: 0 };
|
|
446
461
|
_scrolledLeft = false;
|
|
447
462
|
_scrolledRight = false;
|
|
463
|
+
_dense = false;
|
|
448
464
|
tableEl = null;
|
|
465
|
+
_prevRowKey = null;
|
|
449
466
|
componentWillLoad() {
|
|
450
467
|
this.syncTableContext();
|
|
451
468
|
this.columnWidths = this.columnWidths ?? [];
|
|
452
469
|
this.resolveConfig();
|
|
453
|
-
this.columnWidths = this._columns.map(c => parseInt(c.width || '120', 10));
|
|
470
|
+
this.columnWidths = this._columns.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
|
|
454
471
|
this.updateVisibilitySync();
|
|
455
472
|
}
|
|
456
473
|
componentDidLoad() {
|
|
457
474
|
this.syncTableContext();
|
|
475
|
+
if (this.separator) {
|
|
476
|
+
const prev = this.el.previousElementSibling;
|
|
477
|
+
if (prev?.tagName?.toLowerCase() === 'sd-tr') {
|
|
478
|
+
const prevRowKey = prev.rowKey;
|
|
479
|
+
this._prevRowKey = prevRowKey;
|
|
480
|
+
this.tableEl?.registerSeparatorSync?.(prevRowKey);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
disconnectedCallback() {
|
|
485
|
+
if (this._prevRowKey !== null) {
|
|
486
|
+
this.tableEl?.unregisterSeparatorSync?.(this._prevRowKey);
|
|
487
|
+
this._prevRowKey = null;
|
|
488
|
+
}
|
|
458
489
|
}
|
|
459
490
|
syncTableContext() {
|
|
460
491
|
// sd-table이 shadow:true이므로 fallback content로 렌더되면 closest가 경계를 못 넘는다.
|
|
@@ -466,10 +497,10 @@ const SdTr = class {
|
|
|
466
497
|
this.tableEl = table;
|
|
467
498
|
const fromMethod = table?.getTableIdSync?.();
|
|
468
499
|
const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
|
|
469
|
-
const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
470
|
-
(fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
500
|
+
const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
501
|
+
(fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
471
502
|
'';
|
|
472
|
-
if (resolvedTableId && resolvedTableId !== this.tableId) {
|
|
503
|
+
if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
|
|
473
504
|
this.tableId = resolvedTableId;
|
|
474
505
|
}
|
|
475
506
|
}
|
|
@@ -480,6 +511,7 @@ const SdTr = class {
|
|
|
480
511
|
this._stickyColumn = this.stickyColumn ?? config?.stickyColumn ?? { left: 0, right: 0 };
|
|
481
512
|
this._scrolledLeft = config?.scrolledLeft ?? false;
|
|
482
513
|
this._scrolledRight = config?.scrolledRight ?? false;
|
|
514
|
+
this._dense = config?.dense ?? false;
|
|
483
515
|
if (config?.columnWidths && (this.columnWidths ?? []).length === 0) {
|
|
484
516
|
this.columnWidths = [...config.columnWidths];
|
|
485
517
|
}
|
|
@@ -525,7 +557,11 @@ const SdTr = class {
|
|
|
525
557
|
}
|
|
526
558
|
getCellValue(column) {
|
|
527
559
|
const { field, format, name } = column;
|
|
528
|
-
const value = typeof field === 'function'
|
|
560
|
+
const value = typeof field === 'function'
|
|
561
|
+
? field(this.row)
|
|
562
|
+
: field !== ''
|
|
563
|
+
? this.row[field]
|
|
564
|
+
: this.row[name];
|
|
529
565
|
return format ? format(value, this.row) : this.formatValue(value);
|
|
530
566
|
}
|
|
531
567
|
getStickyStyle(colIdx) {
|
|
@@ -536,13 +572,17 @@ const SdTr = class {
|
|
|
536
572
|
const rightOffset = this.columnWidths
|
|
537
573
|
.filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
|
|
538
574
|
.reduce((a, b) => a + b, 0);
|
|
539
|
-
|
|
575
|
+
const col = this.visibleColumns[colIdx];
|
|
576
|
+
const base = {
|
|
540
577
|
'--sticky-left-offset': `${leftOffset}px`,
|
|
541
578
|
'--sticky-right-offset': `${rightOffset}px`,
|
|
542
|
-
'width': `${this.columnWidths[colIdx]}px`,
|
|
543
|
-
'minWidth': `${this.columnWidths[colIdx]}px`,
|
|
544
|
-
'maxWidth': `${this.columnWidths[colIdx]}px`,
|
|
545
579
|
};
|
|
580
|
+
if (!col?.autoWidth) {
|
|
581
|
+
base['width'] = `${this.columnWidths[colIdx]}px`;
|
|
582
|
+
base['minWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
583
|
+
base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
584
|
+
}
|
|
585
|
+
return base;
|
|
546
586
|
}
|
|
547
587
|
isSelected() {
|
|
548
588
|
if (this.tableEl?.isRowSelectedSync) {
|
|
@@ -572,6 +612,14 @@ const SdTr = class {
|
|
|
572
612
|
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
573
613
|
return this.tableEl.getCellClassSync(this.rowKey, fieldName);
|
|
574
614
|
}
|
|
615
|
+
expandCellClass(classStr) {
|
|
616
|
+
if (classStr == null || classStr === '')
|
|
617
|
+
return {};
|
|
618
|
+
return Object.fromEntries(classStr
|
|
619
|
+
.split(/\s+/)
|
|
620
|
+
.filter(Boolean)
|
|
621
|
+
.map(c => [c, true]));
|
|
622
|
+
}
|
|
575
623
|
isVisualLastRow(col) {
|
|
576
624
|
if (!this.tableEl?.isVisualLastRowSync)
|
|
577
625
|
return false;
|
|
@@ -586,6 +634,17 @@ const SdTr = class {
|
|
|
586
634
|
return false;
|
|
587
635
|
return this.tableEl.isVisualLastRowSync(this.rowKey, '');
|
|
588
636
|
}
|
|
637
|
+
isVisualLastRowBeforeSeparator(col) {
|
|
638
|
+
if (!this.tableEl?.isVisualLastRowBeforeSeparatorSync)
|
|
639
|
+
return false;
|
|
640
|
+
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
641
|
+
return this.tableEl.isVisualLastRowBeforeSeparatorSync(this.rowKey, fieldName);
|
|
642
|
+
}
|
|
643
|
+
isVisualLastRowBeforeSeparatorForSelfRow() {
|
|
644
|
+
if (!this.tableEl?.isVisualLastRowBeforeSeparatorSync)
|
|
645
|
+
return false;
|
|
646
|
+
return this.tableEl.isVisualLastRowBeforeSeparatorSync(this.rowKey, '');
|
|
647
|
+
}
|
|
589
648
|
render() {
|
|
590
649
|
const stickyLeftCount = this._stickyColumn.left || 0;
|
|
591
650
|
const stickyRightCount = this._stickyColumn.right || 0;
|
|
@@ -593,9 +652,13 @@ const SdTr = class {
|
|
|
593
652
|
const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
|
|
594
653
|
const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
|
|
595
654
|
const hasRowspan = this.tableEl?.hasRowspanSync?.() ?? false;
|
|
655
|
+
const isUseFrameRow = this.tableEl?.hasUseFrameInRowSync?.(this.rowKey) ?? false;
|
|
656
|
+
const effectiveDense = this._dense && !isUseFrameRow;
|
|
657
|
+
const bodyLayout = effectiveDense ? TABLE_BODY_LAYOUT.dense : TABLE_BODY_LAYOUT.default;
|
|
596
658
|
const rowStyle = {
|
|
597
|
-
display: this.isVisible ? '' : 'none',
|
|
598
|
-
'--table-body-height': `${
|
|
659
|
+
'display': this.isVisible ? '' : 'none',
|
|
660
|
+
'--table-body-height': `${bodyLayout.height}px`,
|
|
661
|
+
'--table-body-padding-y': `${bodyLayout.paddingY}px`,
|
|
599
662
|
'--table-body-padding-x': `${TABLE_BODY_LAYOUT.paddingX}px`,
|
|
600
663
|
'--table-body-font-family': TABLE_BODY_TYPOGRAPHY.fontFamily,
|
|
601
664
|
'--table-body-font-weight': TABLE_BODY_TYPOGRAPHY.fontWeight,
|
|
@@ -604,15 +667,22 @@ const SdTr = class {
|
|
|
604
667
|
'--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
605
668
|
'--table-border-color': TABLE_BORDER.color,
|
|
606
669
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
670
|
+
'--table-separator-color': TABLE_SEPARATOR.color,
|
|
671
|
+
'--table-separator-width': `${TABLE_SEPARATOR.width}px`,
|
|
607
672
|
};
|
|
608
|
-
|
|
673
|
+
if (this.separator) {
|
|
674
|
+
const totalCols = this.visibleColumns.length + (this._selectable ? 1 : 0);
|
|
675
|
+
return (h(Host, { style: rowStyle }, h("tr", { class: "tr tr--separator" }, h("td", { colSpan: totalCols, class: "td td--separator" }))));
|
|
676
|
+
}
|
|
677
|
+
return (h(Host, { style: rowStyle }, h("tr", { class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { class: {
|
|
609
678
|
'td': true,
|
|
610
679
|
'td--selected': true,
|
|
611
680
|
'td--last-row': this.isVisualLastRowForSelfRow(),
|
|
681
|
+
'td--before-separator': this.isVisualLastRowBeforeSeparatorForSelfRow(),
|
|
612
682
|
'sticky-left': true,
|
|
613
683
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
614
684
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
615
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", {
|
|
685
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
|
|
616
686
|
if (this.isCovered(idx))
|
|
617
687
|
return null;
|
|
618
688
|
const span = this.getSpanFor(col);
|
|
@@ -621,11 +691,12 @@ const SdTr = class {
|
|
|
621
691
|
'td': true,
|
|
622
692
|
[`td--${col.align || 'left'}`]: true,
|
|
623
693
|
'td--last-row': this.isVisualLastRow(col),
|
|
694
|
+
'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
|
|
624
695
|
'sticky-left': true,
|
|
625
696
|
'sticky-left-edge': idx === stickyLeftCount - 1,
|
|
626
697
|
'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
|
|
627
698
|
[`${col.tdClass}`]: Boolean(col.tdClass),
|
|
628
|
-
|
|
699
|
+
...this.expandCellClass(sdCellClass),
|
|
629
700
|
}, style: this.getStickyStyle(idx) }, h("slot", { name: `${this.tableId}-${typeof col.field === 'string' ? col.field : col.name}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
|
|
630
701
|
}), middleCols.map((col, relativeIdx) => {
|
|
631
702
|
const actualColIdx = stickyLeftCount + relativeIdx;
|
|
@@ -638,8 +709,9 @@ const SdTr = class {
|
|
|
638
709
|
'td': true,
|
|
639
710
|
[`td--${col.align || 'left'}`]: true,
|
|
640
711
|
'td--last-row': this.isVisualLastRow(col),
|
|
712
|
+
'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
|
|
641
713
|
[`${col.tdClass}`]: Boolean(col.tdClass),
|
|
642
|
-
|
|
714
|
+
...this.expandCellClass(sdCellClass),
|
|
643
715
|
}, style: this.getStickyStyle(actualColIdx) }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
|
|
644
716
|
}), stickyRightCols.map((col, relativeIdx) => {
|
|
645
717
|
const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
|
|
@@ -652,11 +724,12 @@ const SdTr = class {
|
|
|
652
724
|
'td': true,
|
|
653
725
|
[`td--${col.align || 'left'}`]: true,
|
|
654
726
|
'td--last-row': this.isVisualLastRow(col),
|
|
727
|
+
'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
|
|
655
728
|
'sticky-right': true,
|
|
656
729
|
'sticky-right-edge': relativeIdx === 0,
|
|
657
730
|
'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
|
|
658
731
|
[`${col.tdClass}`]: Boolean(col.tdClass),
|
|
659
|
-
|
|
732
|
+
...this.expandCellClass(sdCellClass),
|
|
660
733
|
}, style: this.getStickyStyle(actualColIdx) }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
|
|
661
734
|
}))));
|
|
662
735
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h, F as Fragment } from './index-
|
|
2
|
-
import { T as TooltipArrow } from './tooltipArrow-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h, F as Fragment } from './index-0U6dRjlq.js';
|
|
2
|
+
import { T as TooltipArrow } from './tooltipArrow-O5LOsHae.js';
|
|
3
3
|
|
|
4
4
|
const popover = {
|
|
5
5
|
bg: "#07284A"};
|
|
@@ -63,17 +63,17 @@ const SdPopover = class {
|
|
|
63
63
|
const leftLink = this.leftLink;
|
|
64
64
|
const button = this.button;
|
|
65
65
|
const hasFooter = !!leftLink || !!button;
|
|
66
|
-
return (h(Fragment, { key: '15b78d688d095fb15d5e6188dc848593bfec842e' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (h("sd-floating-portal", { key: '
|
|
66
|
+
return (h(Fragment, { key: '15b78d688d095fb15d5e6188dc848593bfec842e' }, this.label !== '' ? (h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (h("sd-floating-portal", { key: 'c77807f72410fb9c96a94e06fa9bb953ef934b4d', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, h("div", { key: 'dfffd8eada595286469c17ed549d60539d9b3ca6', class: {
|
|
67
67
|
'sd-floating-menu': true,
|
|
68
68
|
'sd-floating-menu--popover': true,
|
|
69
69
|
[`sd-floating-menu--${placement}`]: true,
|
|
70
|
-
[menuClass]:
|
|
70
|
+
[menuClass]: menuClass !== '',
|
|
71
71
|
}, style: {
|
|
72
72
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
73
|
-
} }, h("i", { key: '
|
|
73
|
+
} }, h("i", { key: '0852ebe804a7e305383f58dae7e0088f2456f53a', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: 'c470c8ccebdb920b1c14940dffe11ad619560fb7' })), h("div", { key: 'fcca2e3bc61cd64110e86da4ee483dc5b1101b7c', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: 'fad331bcd9c73e72ed013826db69badd8b7a069f', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (h("div", { key: 'c83d0be758758fc720d1c3d00aaa8f0cb865cf12', class: "sd-floating-menu__messages" }, messages.map((message, i) => (h("div", { key: `msg-${i}` }, message))))), hasFooter && (h("div", { key: '821a434f478d8aee61e81026ccc37f75579e290e', class: {
|
|
74
74
|
'sd-floating-menu__buttons': true,
|
|
75
75
|
'sd-floating-menu__buttons--with-link': !!leftLink,
|
|
76
|
-
} }, leftLink && (h("sd-text-link", { key: '
|
|
76
|
+
} }, leftLink && (h("sd-text-link", { key: '4b28ebf22197453c403066daf97d8925b0a4a8e1', class: "sd-floating-menu__left-link", label: leftLink.label, icon: leftLink.icon ?? '', iconColor: leftLink.iconColor ?? '', useArrow: !!leftLink.useArrow, underline: !!leftLink.underline, disabled: !!leftLink.disabled, onSdClick: leftLink.onClick })), button && (h("sd-button", { key: 'af8bdfa4a994bafa9b7329e149b62480d5f3d97c', name: button.name ?? 'secondary_xs', label: button.label, icon: button.icon, rightIcon: button.rightIcon, ariaLabel: button.ariaLabel, disabled: button.disabled, type: button.type, onSdClick: button.onClick }))))), this.useClose && (h("sd-ghost-button", { key: 'a8031ecc0aa0721adab17031019a079bc2bdce88', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
SdPopover.style = sdPopoverCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-0U6dRjlq.js';
|
|
2
2
|
|
|
3
3
|
const SdPortal = class {
|
|
4
4
|
constructor(hostRef) {
|
|
@@ -108,7 +108,7 @@ const SdPortal = class {
|
|
|
108
108
|
}
|
|
109
109
|
// 위치 갱신 (scroll / resize)
|
|
110
110
|
updatePosition() {
|
|
111
|
-
if (this.rafId)
|
|
111
|
+
if (this.rafId !== undefined)
|
|
112
112
|
cancelAnimationFrame(this.rafId);
|
|
113
113
|
this.rafId = requestAnimationFrame(() => {
|
|
114
114
|
if (!this.parentRef || !this.wrapper)
|
|
@@ -225,7 +225,7 @@ const SdPortal = class {
|
|
|
225
225
|
this.close.emit();
|
|
226
226
|
}
|
|
227
227
|
render() {
|
|
228
|
-
return h("slot", { key: '
|
|
228
|
+
return h("slot", { key: '8b728e4a9a97cb1c4dbdaf8b6a6d85b37fc07af7' });
|
|
229
229
|
}
|
|
230
230
|
static get watchers() { return {
|
|
231
231
|
"open": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-0U6dRjlq.js';
|
|
2
2
|
|
|
3
3
|
const radioButton = {
|
|
4
4
|
xs: {
|
|
@@ -143,8 +143,11 @@ const SdRadioButton = class {
|
|
|
143
143
|
}
|
|
144
144
|
_groupName;
|
|
145
145
|
get groupName() {
|
|
146
|
-
if (
|
|
147
|
-
this._groupName =
|
|
146
|
+
if (this._groupName == null || this._groupName === '') {
|
|
147
|
+
this._groupName =
|
|
148
|
+
this.name != null && this.name !== ''
|
|
149
|
+
? this.name
|
|
150
|
+
: `sd-radio-button-${crypto.randomUUID()}`;
|
|
148
151
|
}
|
|
149
152
|
return this._groupName;
|
|
150
153
|
}
|
|
@@ -173,7 +176,7 @@ const SdRadioButton = class {
|
|
|
173
176
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
174
177
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
175
178
|
};
|
|
176
|
-
return (h("div", { key: '
|
|
179
|
+
return (h("div", { key: '0eef3b536855ef3883628ce92a5dcb2846976d86', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
177
180
|
const isSelected = this.isOptionSelected(option);
|
|
178
181
|
const isDisabled = this.isOptionDisabled(option);
|
|
179
182
|
return (h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && h("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-0U6dRjlq.js';
|
|
2
2
|
import { e as LIST_ITEM_LAYOUT, g as LIST_ITEM_TYPOGRAPHY, h as LIST_ITEM_COLORS, i as SEARCH_DEBOUNCE_MS } from './sd-select.config-CxOCk_ge.js';
|
|
3
3
|
|
|
4
4
|
const sdSelectListItemCss = () => `sd-select-list-item{display:block}sd-select-list-item .sd-select-list-item{display:flex;align-items:center;gap:var(--list-item-gap);padding:var(--list-item-padding-y) var(--list-item-padding-right) var(--list-item-padding-y) var(--list-item-padding-left);font-size:var(--list-item-font-size);line-height:var(--list-item-line-height);font-weight:var(--list-item-font-weight);background:var(--list-item-bg);color:var(--list-item-color);cursor:default;user-select:none}sd-select-list-item .sd-select-list-item--selectable{cursor:pointer}sd-select-list-item .sd-select-list-item--depth1-group{border-top:var(--list-item-border-top);font-weight:700}sd-select-list-item .sd-select-list-item--depth2-group{font-weight:500}sd-select-list-item .sd-select-list-item--focused.sd-select-list-item--selectable:not(.sd-select-list-item--disabled){background:var(--list-item-bg-hover);color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--selected:not(.sd-select-list-item--group){font-weight:var(--list-item-font-weight-selected);color:var(--list-item-color-selected)}sd-select-list-item .sd-select-list-item--selected.sd-select-list-item--focused{color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--disabled{color:var(--list-item-color-disabled);cursor:not-allowed}sd-select-list-item .sd-select-list-item__label{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-select-list-item .sd-select-list-item__count{flex-shrink:0;font-weight:500;color:var(--list-item-color-disabled)}sd-select-list-item .sd-select-list-item--group.sd-select-list-item--focused .sd-select-list-item__count{color:#ffffff}sd-select-list-item .sd-select-list-item__checkbox{flex-shrink:0}`;
|
|
@@ -71,9 +71,13 @@ const SdSelectListItem = class {
|
|
|
71
71
|
'--list-item-font-weight-selected': LIST_ITEM_TYPOGRAPHY.selectedFontWeight,
|
|
72
72
|
};
|
|
73
73
|
if (isDepth1Group) {
|
|
74
|
-
cssVars['--list-item-border-top'] =
|
|
74
|
+
cssVars['--list-item-border-top'] =
|
|
75
|
+
`${LIST_ITEM_COLORS.depth1.borderWidth}px solid ${LIST_ITEM_COLORS.depth1.border}`;
|
|
75
76
|
}
|
|
76
|
-
return (
|
|
77
|
+
return (
|
|
78
|
+
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
79
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
80
|
+
h("div", { key: '8382966892edc2a46602733400aa579d0caa3128', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
77
81
|
'sd-select-list-item': true,
|
|
78
82
|
'sd-select-list-item--group': isGroup,
|
|
79
83
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -83,7 +87,7 @@ const SdSelectListItem = class {
|
|
|
83
87
|
'sd-select-list-item--focused': this.isFocused,
|
|
84
88
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
85
89
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
86
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
90
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'f8d1bb696416265861cc3b61ca1dcaec52dc2d4a', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), h("span", { key: '0ce20554fb96ad650104a98d779f3ff64fabe381', class: "sd-select-list-item__label" }, this.option.label), this.countInfo && (h("span", { key: '4d2d8f5bd63373906544882ff5852134e3ecd4d3', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
87
91
|
}
|
|
88
92
|
};
|
|
89
93
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -130,21 +134,21 @@ const SdSelectListItemSearch = class {
|
|
|
130
134
|
this.inputEl?.focus();
|
|
131
135
|
};
|
|
132
136
|
disconnectedCallback() {
|
|
133
|
-
if (this.focusRafId)
|
|
137
|
+
if (this.focusRafId !== undefined)
|
|
134
138
|
cancelAnimationFrame(this.focusRafId);
|
|
135
|
-
if (this.debounceTimer)
|
|
139
|
+
if (this.debounceTimer !== undefined)
|
|
136
140
|
clearTimeout(this.debounceTimer);
|
|
137
141
|
}
|
|
138
142
|
render() {
|
|
139
|
-
return (h("div", { key: '
|
|
143
|
+
return (h("div", { key: '6872376ea0f47c256273f751fad367f2c49a9160', class: {
|
|
140
144
|
'sd-select-list-item-search': true,
|
|
141
145
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
142
|
-
} }, h("div", { key: '
|
|
146
|
+
} }, h("div", { key: 'f6c872e0252b6d7ba81f49938a4f5a647f0fb486', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '49f10ed222e855ef6f0f5f12a65a74e1fec95bb5', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: '76d88aa4ce7eee598db2709d2d5442465b1798cb', ref: el => {
|
|
143
147
|
this.inputEl = el;
|
|
144
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
148
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'e94d1661c6ed26754d4ee7e186808ebd9f057ec9', type: "button", class: {
|
|
145
149
|
'sd-select-list-item-search__clear': true,
|
|
146
|
-
'sd-select-list-item-search__clear--hidden':
|
|
147
|
-
}, onClick: this.handleClear, tabindex: this.searchText ? 0 : -1, "aria-hidden": this.searchText ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
150
|
+
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
151
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: 'ad89b3421ec345f47c8d67d78f20cae86869d4c1', name: "close", size: 12, color: "#888888" })))));
|
|
148
152
|
}
|
|
149
153
|
};
|
|
150
154
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|