@sellmate/design-system 1.1.0 → 1.3.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-Cw_-oidk.js +121 -0
- 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 +2 -2
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +278 -11
- package/dist/cjs/sd-calendar_2.cjs.entry.js +262 -0
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/sd-chip.cjs.entry.js +4 -4
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +8 -3
- package/dist/cjs/sd-date-picker.config-D3lTpa6W.js +37 -0
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +27 -20
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +49 -49
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +10 -6
- 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 +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-pagination_4.cjs.entry.js +116 -43
- package/dist/cjs/sd-popover.cjs.entry.js +6 -6
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/cjs/useDatePicker-dCuEgvjX.js +103 -0
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button/sd-button.js +9 -8
- package/dist/collection/components/sd-calendar/sd-calendar.config.js +51 -0
- package/dist/collection/components/sd-calendar/sd-calendar.css +134 -73
- package/dist/collection/components/sd-calendar/sd-calendar.js +172 -133
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +3 -3
- package/dist/collection/components/sd-chip/sd-chip.js +4 -4
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-box/sd-date-box.js +7 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +8 -3
- package/dist/collection/components/sd-date-picker/sd-date-picker.config.js +0 -38
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +3 -2
- 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.config.js +2 -1
- 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-dropdown-button/sd-dropdown-button.js +3 -3
- 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-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 +2 -2
- package/dist/collection/components/sd-number-input/sd-number-input.js +6 -6
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +5 -5
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +2 -2
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- 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-switch/sd-switch.js +1 -1
- 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/index.js +1 -1
- package/dist/collection/utils/modal.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B8o25hOw.js +1 -0
- package/dist/components/p-BFC3Etk2.js +1 -0
- package/dist/components/p-BQn6le_Y.js +1 -0
- package/dist/components/p-BRk9YZBe.js +1 -0
- package/dist/components/p-BRxXhFqt.js +1 -0
- package/dist/components/{p-D8WAP9T3.js → p-BSfu4DO2.js} +1 -1
- package/dist/components/p-BZabVWBD.js +1 -0
- package/dist/components/{p-BfkuCNCI.js → p-BeBiPTbd.js} +1 -1
- package/dist/components/p-BjkROjjt.js +1 -0
- package/dist/components/p-BjpbUGud.js +1 -0
- package/dist/components/p-BkWaPXXj.js +1 -0
- package/dist/components/p-BnfUIhUj.js +1 -0
- package/dist/components/p-Bs1Z5QtN.js +1 -0
- package/dist/components/{p-MQTl8fGT.js → p-BwPmM1Pm.js} +1 -1
- package/dist/components/p-C3fqSH7A.js +1 -0
- package/dist/components/p-CIUE4qr7.js +1 -0
- package/dist/components/p-CLxVZFEG.js +1 -0
- package/dist/components/p-CPuyhF6g.js +1 -0
- package/dist/components/p-CpgTSxf0.js +1 -0
- package/dist/components/p-Cx_d5vsS.js +1 -0
- package/dist/components/{p-BeK8amzx.js → p-CyObYB-g.js} +1 -1
- package/dist/components/p-D7nYP2a4.js +1 -0
- package/dist/components/{p-BPsOJlCP.js → p-DS7Ypvt5.js} +1 -1
- package/dist/components/p-Da5i_Sa6.js +1 -0
- package/dist/components/p-DhTcn6jX.js +1 -0
- package/dist/components/p-DlREBZ-C.js +1 -0
- package/dist/components/p-DnW8EAqd.js +1 -0
- package/dist/components/{p-D5TRyquv.js → p-FKKk7Bk8.js} +1 -1
- package/dist/components/{p-Dr1AMbBj.js → p-INdVvadB.js} +1 -1
- package/dist/components/p-JlZdKw4C.js +1 -0
- package/dist/components/p-VuxN5d2D.js +1 -0
- package/dist/components/p-WAsath62.js +1 -0
- package/dist/components/{p-ofkgu5aS.js → p-X-8I-A3g.js} +1 -1
- package/dist/components/{p-B1MabGRR.js → p-Z5Vk33zf.js} +1 -1
- package/dist/components/{p-DG45uNxd.js → p-kSfaCwf1.js} +1 -1
- package/dist/components/p-mmdt-WnS.js +1 -0
- package/dist/components/p-oyZgWRnC.js +1 -0
- package/dist/components/p-t161LJqb.js +1 -0
- package/dist/components/{p-CGBnxqG2.js → p-wOAxmZ1V.js} +1 -1
- package/dist/components/p-xX3QT-8K.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-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-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-00854a0a.entry.js +1 -0
- package/dist/design-system/p-00b2c850.entry.js +1 -0
- package/dist/design-system/p-03badf68.entry.js +1 -0
- package/dist/design-system/p-0U6dRjlq.js +2 -0
- package/dist/design-system/{p-d78fbe16.entry.js → p-11b904a3.entry.js} +1 -1
- package/dist/design-system/p-32e2d71e.entry.js +1 -0
- package/dist/design-system/p-399d416c.entry.js +1 -0
- package/dist/design-system/{p-29ed11e5.entry.js → p-3b8954d9.entry.js} +1 -1
- package/dist/design-system/{p-feeb0cc5.entry.js → p-481e6934.entry.js} +1 -1
- package/dist/design-system/{p-328fae12.entry.js → p-4a91875c.entry.js} +1 -1
- package/dist/design-system/p-563b6fc2.entry.js +1 -0
- package/dist/design-system/p-679bce6c.entry.js +1 -0
- package/dist/design-system/{p-b6ca4461.entry.js → p-74bf0ed9.entry.js} +1 -1
- package/dist/design-system/{p-4e2953eb.entry.js → p-84a94775.entry.js} +1 -1
- package/dist/design-system/p-8f4ccae4.entry.js +1 -0
- package/dist/design-system/p-92f368a2.entry.js +1 -0
- package/dist/design-system/p-9681b0ba.entry.js +1 -0
- package/dist/design-system/{p-f5576a0d.entry.js → p-9b9bf9db.entry.js} +1 -1
- package/dist/design-system/p-9f7f1b8b.entry.js +1 -0
- package/dist/design-system/p-BGtUaScP.js +1 -0
- package/dist/design-system/p-BQn6le_Y.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-TF8_Lyhq.js +1 -0
- package/dist/design-system/p-a640e509.entry.js +1 -0
- package/dist/design-system/{p-20a50702.entry.js → p-a71d4947.entry.js} +1 -1
- package/dist/design-system/p-a7ea1cf0.entry.js +1 -0
- package/dist/design-system/{p-e1c0a3c9.entry.js → p-a97033a2.entry.js} +1 -1
- package/dist/design-system/p-a98f9a29.entry.js +1 -0
- package/dist/design-system/{p-7882e388.entry.js → p-ae117afa.entry.js} +1 -1
- package/dist/design-system/{p-f3cfff78.entry.js → p-aeccfb2b.entry.js} +1 -1
- package/dist/design-system/p-c7099e9e.entry.js +1 -0
- package/dist/design-system/p-cc97f4b4.entry.js +1 -0
- package/dist/design-system/{p-b96c694c.entry.js → p-d39e515d.entry.js} +1 -1
- package/dist/design-system/p-dbeaeb31.entry.js +1 -0
- package/dist/design-system/p-e23dac79.entry.js +1 -0
- package/dist/design-system/{p-c0f60b00.entry.js → p-e611dcd4.entry.js} +1 -1
- package/dist/design-system/{p-a942dfbe.entry.js → p-e8e64511.entry.js} +1 -1
- package/dist/design-system/{p-cd8e4dd6.entry.js → p-e902a3f4.entry.js} +1 -1
- package/dist/design-system/p-f7074386.entry.js +1 -0
- package/dist/design-system/p-f721a6c6.entry.js +1 -0
- package/dist/design-system/{p-b1bb0d72.entry.js → p-fc5c4f85.entry.js} +1 -1
- package/dist/design-system/p-fe0a5368.entry.js +1 -0
- package/dist/design-system/{p-cbda9194.entry.js → p-fe3ae346.entry.js} +1 -1
- package/dist/design-system/p-ffaa4b5d.entry.js +1 -0
- package/dist/design-system/p-mmdt-WnS.js +1 -0
- package/dist/esm/component.datepicker-BQn6le_Y.js +119 -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 +2 -2
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +2 -2
- package/dist/esm/sd-button_2.entry.js +277 -10
- package/dist/esm/sd-calendar_2.entry.js +259 -0
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +4 -4
- package/dist/esm/sd-chip.entry.js +4 -4
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +4 -4
- package/dist/esm/sd-date-box.entry.js +8 -3
- package/dist/esm/sd-date-picker.config-CGEE3DkI.js +34 -0
- package/dist/esm/sd-date-picker_7.entry.js +27 -20
- package/dist/esm/sd-date-range-picker-calendar.entry.js +22 -22
- package/dist/esm/sd-dropdown-button.entry.js +10 -6
- 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 +2 -2
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +3 -3
- package/dist/esm/sd-pagination_4.entry.js +116 -43
- package/dist/esm/sd-popover.entry.js +6 -6
- package/dist/esm/sd-popup.entry.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/esm/useDatePicker-D5RmWGOp.js +98 -0
- package/dist/types/components/sd-calendar/sd-calendar.config.d.ts +55 -0
- package/dist/types/components/sd-calendar/sd-calendar.d.ts +18 -21
- package/dist/types/components/sd-date-picker/sd-date-picker.config.d.ts +0 -38
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.config.d.ts +2 -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 +47 -60
- package/dist/types/index.d.ts +4 -3
- package/hydrate/index.js +1359 -1130
- package/hydrate/index.mjs +1359 -1130
- package/package.json +1 -1
- package/dist/cjs/resolveColor-B0hzQNLG.js +0 -270
- package/dist/cjs/sd-calendar.cjs.entry.js +0 -143
- package/dist/cjs/sd-date-picker-calendar_2.cjs.entry.js +0 -214
- package/dist/cjs/sd-date-picker.config-CjvrFpYK.js +0 -177
- package/dist/cjs/useDatePicker-cK_XK_P6.js +0 -48
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.css +0 -117
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +0 -246
- package/dist/components/p--t9jBTYS.js +0 -1
- package/dist/components/p-At6nBeyO.js +0 -1
- package/dist/components/p-B6cqMQaM.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-DTrMR0rx.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/components/sd-date-picker-calendar.d.ts +0 -11
- package/dist/components/sd-date-picker-calendar.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-18466728.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-B6cqMQaM.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-Ce0cmS4R.js +0 -1
- package/dist/design-system/p-DTrMR0rx.js +0 -1
- package/dist/design-system/p-Dmf0PYdM.js +0 -1
- package/dist/design-system/p-a7a0ca14.entry.js +0 -1
- package/dist/design-system/p-b04b22c6.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
- package/dist/design-system/p-f60cc7be.entry.js +0 -1
- package/dist/esm/resolveColor-Ce0cmS4R.js +0 -268
- package/dist/esm/sd-calendar.entry.js +0 -141
- package/dist/esm/sd-date-picker-calendar_2.entry.js +0 -211
- package/dist/esm/sd-date-picker.config-B6cqMQaM.js +0 -171
- package/dist/esm/useDatePicker-DTrMR0rx.js +0 -45
- package/dist/types/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.d.ts +0 -26
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-0U6dRjlq.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
|
-
import { T as
|
|
4
|
-
import './component.table-
|
|
3
|
+
import { T as TABLE_BODY_LAYOUT, a as TABLE_BODY_TYPOGRAPHY, b as TABLE_BORDER, c as TABLE_RADIUS } from './sd-table.config-B-VgXXT7.js';
|
|
4
|
+
import './component.table-BnfUIhUj.js';
|
|
5
5
|
import './system-GBlVDmy4.js';
|
|
6
6
|
|
|
7
7
|
let urlAlphabet =
|
|
@@ -17,7 +17,7 @@ let nanoid = (size = 21) => {
|
|
|
17
17
|
return id
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
const sdTableCss = () => `sd-table,:host{display:block;width:100%;max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:var(--table-height, 100%);width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:var(--table-container-height, 400px);border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--radius-use-top{border-radius:0 0 var(--table-radius, 8px) var(--table-radius, 8px)}.sd-table__scroll-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;font-family:var(--table-body-font-family, inherit);font-weight:var(--table-body-font-weight, 400);font-size:var(--table-body-font-size, 12px);line-height:var(--table-body-line-height, 20px);text-decoration:var(--table-body-text-decoration, none);overflow:auto;background:#FFFFFF}.sd-table__scroll-container--loading{overflow:hidden !important;pointer-events:none}.sd-table__scroll-container--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;
|
|
20
|
+
const sdTableCss = () => `sd-table,:host{display:block;width:100%;max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:var(--table-height, 100%);width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:var(--table-container-height, 400px);border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--radius-use-top{border-radius:0 0 var(--table-radius, 8px) var(--table-radius, 8px)}.sd-table__scroll-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;font-family:var(--table-body-font-family, inherit);font-weight:var(--table-body-font-weight, 400);font-size:var(--table-body-font-size, 12px);line-height:var(--table-body-line-height, 20px);text-decoration:var(--table-body-text-decoration, none);overflow:auto;background:#FFFFFF}.sd-table__scroll-container--loading{overflow:hidden !important;pointer-events:none}.sd-table__scroll-container--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;top:36px;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:var(--table-body-font-size, 12px);color:#888888;pointer-events:none;z-index:200;background:rgba(255, 255, 255, 0.6)}.sd-table__no-data-header-overlay{position:absolute;top:0;left:0;right:0;height:36px;background:rgba(255, 255, 255, 0.6);z-index:210;pointer-events:none}.sd-table__no-data-content{pointer-events:auto;min-height:60px;width:100%;display:flex;align-items:center;justify-content:center}.sd-table__loading{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center;pointer-events:none}.sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table--selectable sd-thead,.sd-table--selectable sd-tbody{--selectable:true}.sd-table--sticky-header sd-thead thead{position:sticky;top:0;z-index:120}.sd-table--sticky-column sd-thead,.sd-table--sticky-column sd-tbody{--sticky-column:true}.sd-table--scrolled-left sd-thead,.sd-table--scrolled-left sd-tbody{--scrolled-left:true}.sd-table--scrolled-right sd-thead,.sd-table--scrolled-right sd-tbody{--scrolled-right:true}.sd-table--resizable sd-thead{--resizable:true}.sd-table--no-data sd-thead{opacity:0.4}.sd-table__pagination{position:relative;background:#F9F9F9;height:48px;display:flex;align-items:center;justify-content:center;border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);margin-top:-1px;border-radius:var(--table-radius, 8px)}.sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}`;
|
|
21
21
|
|
|
22
22
|
const SdTable = class {
|
|
23
23
|
constructor(hostRef) {
|
|
@@ -49,9 +49,15 @@ const SdTable = class {
|
|
|
49
49
|
pagination;
|
|
50
50
|
useInternalPagination = false;
|
|
51
51
|
useRowsPerPageSelect = false;
|
|
52
|
+
dense = false;
|
|
52
53
|
// ─── Virtual Scroll ───────────────────────────────────────────────
|
|
53
54
|
useVirtualScroll = false;
|
|
54
|
-
rowHeight
|
|
55
|
+
rowHeight;
|
|
56
|
+
get effectiveRowHeight() {
|
|
57
|
+
if (this.rowHeight != null)
|
|
58
|
+
return this.rowHeight;
|
|
59
|
+
return this.dense ? Number(TABLE_BODY_LAYOUT.dense.height) : Number(TABLE_BODY_LAYOUT.default.height);
|
|
60
|
+
}
|
|
55
61
|
virtualBuffer = 5;
|
|
56
62
|
virtualEndThreshold = 10;
|
|
57
63
|
// ─────────────────────────────────────────────────────────────────
|
|
@@ -74,6 +80,7 @@ const SdTable = class {
|
|
|
74
80
|
scrolledRight = false;
|
|
75
81
|
rowCount = 0;
|
|
76
82
|
loadingScrollTop = 0;
|
|
83
|
+
noDataBodyHeight = 60;
|
|
77
84
|
// light DOM에 sd-thead / sd-tbody 자식이 없으면 sd-table이 직접 렌더해야 함을 알리는 플래그.
|
|
78
85
|
// componentWillLoad에서 한 번 결정되며, 이후 동적 토글은 지원하지 않는다.
|
|
79
86
|
autoThead = false;
|
|
@@ -82,12 +89,19 @@ const SdTable = class {
|
|
|
82
89
|
vsEnd = 0;
|
|
83
90
|
lastReachEndNotifiedRowCount = -1;
|
|
84
91
|
scrollContainer = null;
|
|
92
|
+
noDataContentEl = null;
|
|
93
|
+
noDataContentResizeObserver;
|
|
85
94
|
onScroll;
|
|
86
95
|
// 키: `${rowKey}::${field}` → { rowspan, colspan }
|
|
87
96
|
spanRegistry = new Map();
|
|
97
|
+
// rowKey → Set<field>: useFrame=true인 sd-td가 있는 행을 추적한다.
|
|
98
|
+
// 하나라도 등록되면 해당 행은 dense를 무시하고 default 레이아웃으로 렌더된다.
|
|
99
|
+
useFrameRegistry = new Map();
|
|
88
100
|
// 키: `${rowKey}::${field}` → sd-td의 sdClass 문자열
|
|
89
101
|
// sd-tr가 td를 그릴 때 머지해서 셀-단위 커스텀 클래스를 적용한다.
|
|
90
102
|
cellClassRegistry = new Map();
|
|
103
|
+
// separator 직전 행의 시각적 인덱스 집합
|
|
104
|
+
separatorPrevIndices = new Set();
|
|
91
105
|
// rowKey 문자열 → rows 배열에서의 visual index.
|
|
92
106
|
// rowspan 위쪽 행 스캔에서 "내 위에 있느냐"를 판정하기 위한 시각적 순서 소스.
|
|
93
107
|
// rows prop이 있으면 채워지고, 없으면 비어 있어 Number(rowKey) fallback이 사용된다.
|
|
@@ -146,6 +160,7 @@ const SdTable = class {
|
|
|
146
160
|
if (newVal) {
|
|
147
161
|
this.loadingScrollTop = this.scrollContainer?.scrollTop ?? 0;
|
|
148
162
|
}
|
|
163
|
+
this.syncNoDataContentObserver();
|
|
149
164
|
}
|
|
150
165
|
handleUseVirtualScrollChange(newVal) {
|
|
151
166
|
if (newVal) {
|
|
@@ -154,7 +169,7 @@ const SdTable = class {
|
|
|
154
169
|
}
|
|
155
170
|
}
|
|
156
171
|
handleColumnsChange(newCols) {
|
|
157
|
-
this.columnWidths = newCols.map(c => parseInt(c.width || '120', 10));
|
|
172
|
+
this.columnWidths = newCols.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
|
|
158
173
|
this.refreshChildrenConfig();
|
|
159
174
|
}
|
|
160
175
|
handleRowsChange(newRows) {
|
|
@@ -165,6 +180,7 @@ const SdTable = class {
|
|
|
165
180
|
if (this.useVirtualScroll)
|
|
166
181
|
this.propagateVirtualUpdate(true);
|
|
167
182
|
this.pushRowsToChildren(newRows);
|
|
183
|
+
this.syncNoDataContentObserver();
|
|
168
184
|
}
|
|
169
185
|
handleRowKeyChange() {
|
|
170
186
|
this.rebuildRowIndexMap();
|
|
@@ -190,10 +206,10 @@ const SdTable = class {
|
|
|
190
206
|
this.innerSelected = new Set(newSelected);
|
|
191
207
|
}
|
|
192
208
|
handlePaginationChange(newVal) {
|
|
193
|
-
if (newVal?.page && newVal.page !== this.currentPage) {
|
|
209
|
+
if (newVal?.page != null && newVal.page !== this.currentPage) {
|
|
194
210
|
this.currentPage = newVal.page;
|
|
195
211
|
}
|
|
196
|
-
if (newVal?.rowsPerPage && newVal.rowsPerPage !== this.innerRowsPerPage) {
|
|
212
|
+
if (newVal?.rowsPerPage != null && newVal.rowsPerPage !== this.innerRowsPerPage) {
|
|
197
213
|
this.innerRowsPerPage = newVal.rowsPerPage;
|
|
198
214
|
}
|
|
199
215
|
}
|
|
@@ -208,12 +224,12 @@ const SdTable = class {
|
|
|
208
224
|
this.handleNoDataLabelChange(this.noDataLabel);
|
|
209
225
|
this.detectChildren();
|
|
210
226
|
this.innerSelected = new Set(this.selected || []);
|
|
211
|
-
this.columnWidths = (this.columns || []).map(c => parseInt(c.width || '120', 10));
|
|
227
|
+
this.columnWidths = (this.columns || []).map(c => c.autoWidth ? 0 : parseInt(c.width || '120', 10));
|
|
212
228
|
this.rebuildRowIndexMap();
|
|
213
|
-
if (this.pagination?.page) {
|
|
229
|
+
if (this.pagination?.page != null) {
|
|
214
230
|
this.currentPage = this.pagination.page;
|
|
215
231
|
}
|
|
216
|
-
if (this.pagination?.rowsPerPage) {
|
|
232
|
+
if (this.pagination?.rowsPerPage != null) {
|
|
217
233
|
this.innerRowsPerPage = this.pagination.rowsPerPage;
|
|
218
234
|
}
|
|
219
235
|
const el = this.el;
|
|
@@ -235,10 +251,16 @@ const SdTable = class {
|
|
|
235
251
|
el.getSpanSync = this.getSpanSync.bind(this);
|
|
236
252
|
el.isCoveredSync = this.isCoveredSync.bind(this);
|
|
237
253
|
el.isVisualLastRowSync = this.isVisualLastRowSync.bind(this);
|
|
254
|
+
el.registerSeparatorSync = this.registerSeparatorSync.bind(this);
|
|
255
|
+
el.unregisterSeparatorSync = this.unregisterSeparatorSync.bind(this);
|
|
256
|
+
el.isVisualLastRowBeforeSeparatorSync = this.isVisualLastRowBeforeSeparatorSync.bind(this);
|
|
238
257
|
el.hasRowspanSync = this.hasRowspanSync.bind(this);
|
|
239
258
|
el.registerCellClassSync = this.registerCellClassSync.bind(this);
|
|
240
259
|
el.unregisterCellClassSync = this.unregisterCellClassSync.bind(this);
|
|
241
260
|
el.getCellClassSync = this.getCellClassSync.bind(this);
|
|
261
|
+
el.registerUseFrameSync = this.registerUseFrameSync.bind(this);
|
|
262
|
+
el.unregisterUseFrameSync = this.unregisterUseFrameSync.bind(this);
|
|
263
|
+
el.hasUseFrameInRowSync = this.hasUseFrameInRowSync.bind(this);
|
|
242
264
|
if (Array.isArray(this.rows)) {
|
|
243
265
|
this.rowCount = this.rows.length;
|
|
244
266
|
this.pushRowsToChildren(this.rows);
|
|
@@ -281,11 +303,43 @@ const SdTable = class {
|
|
|
281
303
|
this.propagateVirtualUpdate(); // 초기 렌더
|
|
282
304
|
}
|
|
283
305
|
});
|
|
306
|
+
this.syncNoDataContentObserver();
|
|
284
307
|
}
|
|
285
308
|
disconnectedCallback() {
|
|
286
309
|
if (this.scrollContainer && this.onScroll) {
|
|
287
310
|
this.scrollContainer.removeEventListener('scroll', this.onScroll);
|
|
288
311
|
}
|
|
312
|
+
this.noDataContentResizeObserver?.disconnect();
|
|
313
|
+
this.noDataContentResizeObserver = undefined;
|
|
314
|
+
}
|
|
315
|
+
syncNoDataContentObserver() {
|
|
316
|
+
const isNoData = this.rowCount === 0 && !this.isLoading;
|
|
317
|
+
if (!isNoData) {
|
|
318
|
+
this.noDataContentResizeObserver?.disconnect();
|
|
319
|
+
this.noDataContentResizeObserver = undefined;
|
|
320
|
+
this.noDataBodyHeight = 60;
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
this.observeNoDataContentHeight();
|
|
324
|
+
}
|
|
325
|
+
// observer를 붙이고 콘텐츠 높이를 측정해 noDataBodyHeight를 갱신하는 함수
|
|
326
|
+
observeNoDataContentHeight() {
|
|
327
|
+
if (typeof ResizeObserver === 'undefined')
|
|
328
|
+
return;
|
|
329
|
+
const target = this.noDataContentEl;
|
|
330
|
+
if (!target)
|
|
331
|
+
return;
|
|
332
|
+
this.noDataContentResizeObserver?.disconnect();
|
|
333
|
+
this.noDataContentResizeObserver = new ResizeObserver(() => {
|
|
334
|
+
const measured = Math.ceil(target.scrollHeight);
|
|
335
|
+
const nextHeight = Math.max(60, measured);
|
|
336
|
+
if (nextHeight !== this.noDataBodyHeight) {
|
|
337
|
+
this.noDataBodyHeight = nextHeight;
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
this.noDataContentResizeObserver.observe(target);
|
|
341
|
+
const measured = Math.ceil(target.scrollHeight);
|
|
342
|
+
this.noDataBodyHeight = Math.max(60, measured);
|
|
289
343
|
}
|
|
290
344
|
// light DOM(manual mode 자식)과 shadow DOM(autoThead/autoTbody fallback) 양쪽 모두에서 자식을 찾는다.
|
|
291
345
|
queryChildEl(selector) {
|
|
@@ -350,8 +404,8 @@ const SdTable = class {
|
|
|
350
404
|
return;
|
|
351
405
|
this.vsStart = start;
|
|
352
406
|
this.vsEnd = end;
|
|
353
|
-
const topHeight = start * this.
|
|
354
|
-
const bottomHeight = Math.max(0, (this.rowCount - end) * this.
|
|
407
|
+
const topHeight = start * this.effectiveRowHeight;
|
|
408
|
+
const bottomHeight = Math.max(0, (this.rowCount - end) * this.effectiveRowHeight);
|
|
355
409
|
const tbody = this.queryChildEl('sd-tbody');
|
|
356
410
|
tbody?.setSpacersSync?.(topHeight, bottomHeight);
|
|
357
411
|
if (rangeChanged) {
|
|
@@ -365,7 +419,7 @@ const SdTable = class {
|
|
|
365
419
|
getVirtualScrollConfigSync() {
|
|
366
420
|
return {
|
|
367
421
|
useVirtualScroll: this.useVirtualScroll,
|
|
368
|
-
rowHeight: this.
|
|
422
|
+
rowHeight: this.effectiveRowHeight,
|
|
369
423
|
virtualBuffer: this.virtualBuffer,
|
|
370
424
|
vsStart: this.vsStart,
|
|
371
425
|
vsEnd: this.vsEnd,
|
|
@@ -382,10 +436,35 @@ const SdTable = class {
|
|
|
382
436
|
scrolledLeft: this.scrolledLeft,
|
|
383
437
|
scrolledRight: this.scrolledRight,
|
|
384
438
|
columnWidths: this.columnWidths,
|
|
439
|
+
dense: this.dense,
|
|
385
440
|
};
|
|
386
441
|
}
|
|
442
|
+
registerUseFrameSync(rowKey, field) {
|
|
443
|
+
if (rowKey == null || field === '')
|
|
444
|
+
return;
|
|
445
|
+
let fields = this.useFrameRegistry.get(rowKey);
|
|
446
|
+
if (!fields) {
|
|
447
|
+
fields = new Set();
|
|
448
|
+
this.useFrameRegistry.set(rowKey, fields);
|
|
449
|
+
}
|
|
450
|
+
fields.add(field);
|
|
451
|
+
}
|
|
452
|
+
unregisterUseFrameSync(rowKey, field) {
|
|
453
|
+
if (rowKey == null || field === '')
|
|
454
|
+
return;
|
|
455
|
+
const fields = this.useFrameRegistry.get(rowKey);
|
|
456
|
+
if (!fields)
|
|
457
|
+
return;
|
|
458
|
+
fields.delete(field);
|
|
459
|
+
if (fields.size === 0)
|
|
460
|
+
this.useFrameRegistry.delete(rowKey);
|
|
461
|
+
}
|
|
462
|
+
hasUseFrameInRowSync(rowKey) {
|
|
463
|
+
const fields = this.useFrameRegistry.get(rowKey);
|
|
464
|
+
return fields != null && fields.size > 0;
|
|
465
|
+
}
|
|
387
466
|
isRowSelectedSync(row) {
|
|
388
|
-
return Array.from(this.innerSelected).some(r => r[
|
|
467
|
+
return Array.from(this.innerSelected).some(r => r[this.rowKey ?? 'id'] === row[this.rowKey ?? 'id']);
|
|
389
468
|
}
|
|
390
469
|
async isRowSelected(row) {
|
|
391
470
|
return this.isRowSelectedSync(row);
|
|
@@ -394,7 +473,7 @@ const SdTable = class {
|
|
|
394
473
|
const selectedArray = Array.from(this.innerSelected);
|
|
395
474
|
const exists = this.isRowSelectedSync(row);
|
|
396
475
|
const newSelected = exists
|
|
397
|
-
? selectedArray.filter(r => r[
|
|
476
|
+
? selectedArray.filter(r => r[this.rowKey ?? 'id'] !== row[this.rowKey ?? 'id'])
|
|
398
477
|
: [...selectedArray, row];
|
|
399
478
|
if (newSelected.length === selectedArray.length)
|
|
400
479
|
return;
|
|
@@ -412,8 +491,8 @@ const SdTable = class {
|
|
|
412
491
|
this.innerSelected = new Set([...this.innerSelected, ...pageRows]);
|
|
413
492
|
}
|
|
414
493
|
else {
|
|
415
|
-
const currentPageKeys = rows.map(r => r[
|
|
416
|
-
this.innerSelected = new Set([...this.innerSelected].filter(r => !currentPageKeys.includes(r[
|
|
494
|
+
const currentPageKeys = rows.map(r => r[this.rowKey ?? 'id']);
|
|
495
|
+
this.innerSelected = new Set([...this.innerSelected].filter(r => !currentPageKeys.includes(r[this.rowKey ?? 'id'])));
|
|
417
496
|
}
|
|
418
497
|
this.selected = Array.from(this.innerSelected);
|
|
419
498
|
this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
@@ -424,7 +503,7 @@ const SdTable = class {
|
|
|
424
503
|
}
|
|
425
504
|
getIsAllCheckedSync(rows) {
|
|
426
505
|
const total = rows.length;
|
|
427
|
-
const selectedCount = rows.filter(row => Array.from(this.innerSelected).some(selectedRow => selectedRow[
|
|
506
|
+
const selectedCount = rows.filter(row => Array.from(this.innerSelected).some(selectedRow => selectedRow[this.rowKey ?? 'id'] === row[this.rowKey ?? 'id'])).length;
|
|
428
507
|
if (selectedCount === 0)
|
|
429
508
|
return false;
|
|
430
509
|
if (selectedCount === total)
|
|
@@ -447,7 +526,7 @@ const SdTable = class {
|
|
|
447
526
|
this.queryAllTr().forEach(tr => tr?.updateVisibility?.());
|
|
448
527
|
}
|
|
449
528
|
changeRowsPerPage(perPage) {
|
|
450
|
-
const changedRowsPerPage = perPage ? Number(perPage) : 0;
|
|
529
|
+
const changedRowsPerPage = perPage != null && perPage !== '' ? Number(perPage) : 0;
|
|
451
530
|
if (!this.useInternalPagination) {
|
|
452
531
|
this.sdRowsPerPageChange.emit(changedRowsPerPage);
|
|
453
532
|
return;
|
|
@@ -474,7 +553,7 @@ const SdTable = class {
|
|
|
474
553
|
const startWidth = this.columnWidths[index];
|
|
475
554
|
const handleMouseMove = (moveEvent) => {
|
|
476
555
|
const col = this.columns[index];
|
|
477
|
-
if (
|
|
556
|
+
if (col == null)
|
|
478
557
|
return;
|
|
479
558
|
const minWidth = col.minWidth || 50;
|
|
480
559
|
const maxWidth = col.maxWidth || 9999;
|
|
@@ -509,13 +588,17 @@ const SdTable = class {
|
|
|
509
588
|
this.columns.filter(c => c.visible !== false).length -
|
|
510
589
|
(this.stickyColumn?.right || 0) && i > colIdx)
|
|
511
590
|
.reduce((a, b) => a + b, 0);
|
|
512
|
-
|
|
591
|
+
const visibleCol = this.columns.filter(c => c.visible !== false)[colIdx];
|
|
592
|
+
const base = {
|
|
513
593
|
'--sticky-left-offset': `${leftOffset}px`,
|
|
514
594
|
'--sticky-right-offset': `${rightOffset}px`,
|
|
515
|
-
'width': `${this.columnWidths[colIdx]}px`,
|
|
516
|
-
'minWidth': `${this.columnWidths[colIdx]}px`,
|
|
517
|
-
'maxWidth': `${this.columnWidths[colIdx]}px`,
|
|
518
595
|
};
|
|
596
|
+
if (!visibleCol?.autoWidth) {
|
|
597
|
+
base['width'] = `${this.columnWidths[colIdx]}px`;
|
|
598
|
+
base['minWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
599
|
+
base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
|
|
600
|
+
}
|
|
601
|
+
return base;
|
|
519
602
|
}
|
|
520
603
|
async getStickyStyle(colIdx) {
|
|
521
604
|
return this.getStickyStyleSync(colIdx);
|
|
@@ -544,7 +627,7 @@ const SdTable = class {
|
|
|
544
627
|
});
|
|
545
628
|
}
|
|
546
629
|
registerSpanSync(rowKey, field, rowspan, colspan) {
|
|
547
|
-
if (rowKey == null ||
|
|
630
|
+
if (rowKey == null || field === '')
|
|
548
631
|
return;
|
|
549
632
|
const safeRowspan = Math.max(1, Math.floor(rowspan || 1));
|
|
550
633
|
const safeColspan = Math.max(1, Math.floor(colspan || 1));
|
|
@@ -563,7 +646,7 @@ const SdTable = class {
|
|
|
563
646
|
this.requestAllTrUpdate();
|
|
564
647
|
}
|
|
565
648
|
unregisterSpanSync(rowKey, field) {
|
|
566
|
-
if (rowKey == null ||
|
|
649
|
+
if (rowKey == null || field === '')
|
|
567
650
|
return;
|
|
568
651
|
const key = this.spanKey(rowKey, field);
|
|
569
652
|
if (!this.spanRegistry.has(key))
|
|
@@ -578,18 +661,18 @@ const SdTable = class {
|
|
|
578
661
|
// span과 달리 다른 셀에 영향이 없으므로 형제 sd-tr 전체를 재렌더하지 않고,
|
|
579
662
|
// sd-td 쪽에서 자기 부모 tr만 bumpSpansVersion으로 새로 그린다.
|
|
580
663
|
registerCellClassSync(rowKey, field, cls) {
|
|
581
|
-
if (rowKey == null ||
|
|
664
|
+
if (rowKey == null || field === '')
|
|
582
665
|
return;
|
|
583
666
|
const key = this.spanKey(rowKey, field);
|
|
584
667
|
const safe = (cls ?? '').trim();
|
|
585
|
-
if (
|
|
668
|
+
if (safe === '') {
|
|
586
669
|
this.cellClassRegistry.delete(key);
|
|
587
670
|
return;
|
|
588
671
|
}
|
|
589
672
|
this.cellClassRegistry.set(key, safe);
|
|
590
673
|
}
|
|
591
674
|
unregisterCellClassSync(rowKey, field) {
|
|
592
|
-
if (rowKey == null ||
|
|
675
|
+
if (rowKey == null || field === '')
|
|
593
676
|
return;
|
|
594
677
|
this.cellClassRegistry.delete(this.spanKey(rowKey, field));
|
|
595
678
|
}
|
|
@@ -612,7 +695,7 @@ const SdTable = class {
|
|
|
612
695
|
// 1. 같은 행 왼쪽 스캔 — colspan으로 이 위치를 덮는 셀이 있는가
|
|
613
696
|
for (let i = 0; i < colIdx; i++) {
|
|
614
697
|
const c = visibleCols[i];
|
|
615
|
-
if (
|
|
698
|
+
if (c == null)
|
|
616
699
|
continue;
|
|
617
700
|
const field = typeof c.field === 'string' ? c.field : c.name;
|
|
618
701
|
const span = this.spanRegistry.get(this.spanKey(rowKey, field));
|
|
@@ -650,23 +733,50 @@ const SdTable = class {
|
|
|
650
733
|
}
|
|
651
734
|
return false;
|
|
652
735
|
}
|
|
653
|
-
//
|
|
654
|
-
//
|
|
655
|
-
|
|
656
|
-
if (this.rowCount <= 0)
|
|
657
|
-
return false;
|
|
736
|
+
// rowspan을 반영한 셀의 시각적 하단 행 인덱스를 반환한다.
|
|
737
|
+
// isVisualLastRowSync·isVisualLastRowBeforeSeparatorSync 공통 헬퍼.
|
|
738
|
+
resolveVisualBottom(rowKey, field) {
|
|
658
739
|
const myRowIdx = this.resolveRowIndex(rowKey);
|
|
659
740
|
if (myRowIdx == null)
|
|
660
|
-
return
|
|
741
|
+
return null;
|
|
661
742
|
const span = this.spanRegistry.get(this.spanKey(rowKey, field));
|
|
662
743
|
const rs = Math.max(1, span?.rowspan ?? 1);
|
|
663
|
-
|
|
744
|
+
return myRowIdx + rs - 1;
|
|
745
|
+
}
|
|
746
|
+
// 셀의 시각적 하단이 테이블(또는 현재 페이지)의 마지막 행인지 판정.
|
|
747
|
+
// 마지막 행에 border-bottom: none을 적용하기 위함.
|
|
748
|
+
isVisualLastRowSync(rowKey, field) {
|
|
749
|
+
if (this.rowCount <= 0)
|
|
750
|
+
return false;
|
|
751
|
+
const visualBottom = this.resolveVisualBottom(rowKey, field);
|
|
752
|
+
if (visualBottom == null)
|
|
753
|
+
return false;
|
|
664
754
|
const pageInfo = this.getPaginationInfoSync();
|
|
665
755
|
const lastVisibleIdx = pageInfo
|
|
666
756
|
? Math.min(pageInfo.endIndex - 1, this.rowCount - 1)
|
|
667
757
|
: this.rowCount - 1;
|
|
668
758
|
return visualBottom === lastVisibleIdx;
|
|
669
759
|
}
|
|
760
|
+
registerSeparatorSync(prevRowKey) {
|
|
761
|
+
const idx = this.resolveRowIndex(prevRowKey);
|
|
762
|
+
if (idx != null)
|
|
763
|
+
this.separatorPrevIndices.add(idx);
|
|
764
|
+
}
|
|
765
|
+
unregisterSeparatorSync(prevRowKey) {
|
|
766
|
+
const idx = this.resolveRowIndex(prevRowKey);
|
|
767
|
+
if (idx != null)
|
|
768
|
+
this.separatorPrevIndices.delete(idx);
|
|
769
|
+
}
|
|
770
|
+
// 셀의 시각적 하단이 separator 바로 앞 행인지 판정.
|
|
771
|
+
// 해당 셀에 border-bottom: none을 적용하기 위함.
|
|
772
|
+
isVisualLastRowBeforeSeparatorSync(rowKey, field) {
|
|
773
|
+
if (this.separatorPrevIndices.size === 0)
|
|
774
|
+
return false;
|
|
775
|
+
const visualBottom = this.resolveVisualBottom(rowKey, field);
|
|
776
|
+
if (visualBottom == null)
|
|
777
|
+
return false;
|
|
778
|
+
return this.separatorPrevIndices.has(visualBottom);
|
|
779
|
+
}
|
|
670
780
|
setRowCountSync(count) {
|
|
671
781
|
const safeCount = Math.max(0, Math.floor(this.toFiniteNumber(count, 0)));
|
|
672
782
|
if (safeCount !== this.rowCount) {
|
|
@@ -681,7 +791,7 @@ const SdTable = class {
|
|
|
681
791
|
this.setRowCountSync(count);
|
|
682
792
|
}
|
|
683
793
|
calculateVisibleRange(scrollTop, containerHeight) {
|
|
684
|
-
const safeRowHeight = Math.max(1, this.toFiniteNumber(this.
|
|
794
|
+
const safeRowHeight = Math.max(1, this.toFiniteNumber(this.effectiveRowHeight, 40));
|
|
685
795
|
const safeBuffer = Math.max(0, Math.floor(this.toFiniteNumber(this.virtualBuffer, 5)));
|
|
686
796
|
const safeScrollTop = Math.max(0, this.toFiniteNumber(scrollTop, 0));
|
|
687
797
|
const safeContainerHeight = Math.max(0, this.toFiniteNumber(containerHeight, 0));
|
|
@@ -747,6 +857,12 @@ const SdTable = class {
|
|
|
747
857
|
}
|
|
748
858
|
render() {
|
|
749
859
|
const resolvedTableId = this.getResolvedTableId();
|
|
860
|
+
const isNoData = this.rowCount === 0 && !this.isLoading;
|
|
861
|
+
const paginationHeight = this.pagination && this.rowCount > 0 && !this.useVirtualScroll ? 48 : 0;
|
|
862
|
+
const noDataTotalHeight = 36 + this.noDataBodyHeight;
|
|
863
|
+
const effectiveTableHeight = isNoData
|
|
864
|
+
? `max(${this.height || '96px'}, ${noDataTotalHeight}px)`
|
|
865
|
+
: this.height || '100%';
|
|
750
866
|
const hostStyle = {
|
|
751
867
|
'--table-radius': `${TABLE_RADIUS}px`,
|
|
752
868
|
'--table-border-color': TABLE_BORDER.color,
|
|
@@ -757,21 +873,25 @@ const SdTable = class {
|
|
|
757
873
|
'--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
758
874
|
'--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
759
875
|
};
|
|
760
|
-
return (h(Host, { key: '
|
|
876
|
+
return (h(Host, { key: '02d716bdac3832710bf58d63741aeeb4b04d434b', style: hostStyle }, h("div", { key: '88faad346e032ca727375889aa0552a330f5799a', class: "sd-table__container", style: {
|
|
761
877
|
'--table-width': this.width,
|
|
762
|
-
'--table-height':
|
|
763
|
-
'--table-container-height': `calc(${
|
|
764
|
-
} }, h("div", { key: '
|
|
878
|
+
'--table-height': effectiveTableHeight,
|
|
879
|
+
'--table-container-height': `calc(${effectiveTableHeight} - ${paginationHeight}px)`,
|
|
880
|
+
} }, h("div", { key: '783934f349e0da5bab77cbb44cc12f0dfeb9ec71', class: {
|
|
765
881
|
'sd-table__wrapper': true,
|
|
766
882
|
'sd-table__wrapper--radius-use-top': this.radius === 'useTop',
|
|
767
|
-
} }, h("div", { key: '
|
|
883
|
+
} }, h("div", { key: 'd3a76ad0e853c6adf16df633c0e0b7f5bb580f24', class: {
|
|
768
884
|
'sd-table__scroll-container': true,
|
|
769
885
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
770
|
-
'sd-table__scroll-container--no-data':
|
|
771
|
-
} }, this.isLoading && (h("div", { key: '
|
|
886
|
+
'sd-table__scroll-container--no-data': isNoData,
|
|
887
|
+
} }, this.isLoading && (h("div", { key: 'cc77ce58ff0eebf3fc1d7dd9dbf11578f94d4dd1', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: 'bda7ed774342089a23d13b49a506b04527026275', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: 'f2ce89d0ae9eefe0f0f8509e477756cb74dbef86', class: "sd-table__no-data-header-overlay" }), h("div", { key: '84d739563123d0f0fc33166b1a6e80021ba06e1c', class: "sd-table__no-data" }, h("div", { key: '3507f718a25b79c44fdf283fb41356ab72f2a384', class: "sd-table__no-data-content", ref: el => {
|
|
888
|
+
this.noDataContentEl = el;
|
|
889
|
+
if (el)
|
|
890
|
+
this.syncNoDataContentObserver();
|
|
891
|
+
} }, h("slot", { key: '818129819b2ff4a6f9fc1224dc59a9aa5861296d', name: "no-data" }, h("span", { key: 'c03cfb713e6dadd5ab4c60d7d27fd502d7aa9348' }, this.resolvedNoDataLabel)))))), h("table", { key: '8864714a828069985bac6535bc40cbb043dfcb28', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
772
892
|
this.pagination.rowsPerPage > 0 &&
|
|
773
893
|
this.rowCount > 0 &&
|
|
774
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
894
|
+
!this.useVirtualScroll && (h("div", { key: 'bdac4b4d551152ec7ee0cdc31bfb992748836928', class: "sd-table__pagination" }, h("sd-pagination", { key: '2c60fff7f8ac3a3bd22da2173b8a9187bb686ddf', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: '7a662f58e13c15e705341773570f899f503f12c0', value: this.useInternalPagination
|
|
775
895
|
? this.innerRowsPerPage
|
|
776
896
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
777
897
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -813,6 +933,9 @@ const SdTable = class {
|
|
|
813
933
|
"stickyHeader": [{
|
|
814
934
|
"handleConfigChange": 0
|
|
815
935
|
}],
|
|
936
|
+
"dense": [{
|
|
937
|
+
"handleConfigChange": 0
|
|
938
|
+
}],
|
|
816
939
|
"selected": [{
|
|
817
940
|
"handleSelectedChange": 0
|
|
818
941
|
}],
|
|
@@ -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 tab = {
|
|
4
4
|
main: {
|
|
@@ -186,9 +186,14 @@ const SdTabs = class {
|
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
render() {
|
|
189
|
-
return (h("div", { key: '
|
|
189
|
+
return (h("div", { key: '880f1aa80c29f2d578ffe2d5e5e5e0c008c898d3', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
190
190
|
const badgeName = this.getBadgeName(tab);
|
|
191
|
-
return (h("div", { key: `tab-${index}`,
|
|
191
|
+
return (h("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
192
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
193
|
+
e.preventDefault();
|
|
194
|
+
this.handleTabClick(tab);
|
|
195
|
+
}
|
|
196
|
+
} }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge !== undefined && tab.badge !== null && tab.badge !== '' && (h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
|
|
192
197
|
})));
|
|
193
198
|
}
|
|
194
199
|
static get watchers() { return {
|
package/dist/esm/sd-tag.entry.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-0U6dRjlq.js';
|
|
2
2
|
|
|
3
3
|
const tag = {
|
|
4
4
|
xs: {
|
|
5
5
|
height: "20",
|
|
6
6
|
paddingX: "8",
|
|
7
7
|
gap: "4",
|
|
8
|
-
icon: "12",
|
|
9
8
|
typography: {
|
|
10
9
|
fontSize: "11",
|
|
11
10
|
fontWeight: "500",
|
|
@@ -16,7 +15,6 @@ const tag = {
|
|
|
16
15
|
height: "24",
|
|
17
16
|
paddingX: "8",
|
|
18
17
|
gap: "4",
|
|
19
|
-
icon: "16",
|
|
20
18
|
typography: {
|
|
21
19
|
fontSize: "12",
|
|
22
20
|
fontWeight: "700",
|
|
@@ -28,7 +26,6 @@ const tag = {
|
|
|
28
26
|
height: "28",
|
|
29
27
|
paddingX: "12",
|
|
30
28
|
gap: "6",
|
|
31
|
-
icon: "16",
|
|
32
29
|
typography: {
|
|
33
30
|
fontSize: "14",
|
|
34
31
|
fontWeight: "700",
|
|
@@ -134,7 +131,7 @@ const SQUARE_SIZE_CONFIG = {
|
|
|
134
131
|
fontSize: `${tagTokens.tag.xs.typography.fontSize}px`,
|
|
135
132
|
fontWeight: tagTokens.tag.xs.typography.fontWeight,
|
|
136
133
|
lineHeight: `${tagTokens.tag.xs.typography.lineHeight}px`,
|
|
137
|
-
iconSize:
|
|
134
|
+
iconSize: 12,
|
|
138
135
|
radius: `${tagTokens.tag.xs.radius}px`,
|
|
139
136
|
},
|
|
140
137
|
sm: {
|
|
@@ -144,7 +141,7 @@ const SQUARE_SIZE_CONFIG = {
|
|
|
144
141
|
fontSize: `${tagTokens.tag.sm.typography.fontSize}px`,
|
|
145
142
|
fontWeight: tagTokens.tag.sm.typography.fontWeight,
|
|
146
143
|
lineHeight: `${tagTokens.tag.sm.typography.lineHeight}px`,
|
|
147
|
-
iconSize:
|
|
144
|
+
iconSize: 16,
|
|
148
145
|
radius: `${tagTokens.tag.sm.radius}px`,
|
|
149
146
|
},
|
|
150
147
|
md: {
|
|
@@ -154,7 +151,7 @@ const SQUARE_SIZE_CONFIG = {
|
|
|
154
151
|
fontSize: `${tagTokens.tag.md.typography.fontSize}px`,
|
|
155
152
|
fontWeight: tagTokens.tag.md.typography.fontWeight,
|
|
156
153
|
lineHeight: `${tagTokens.tag.md.typography.lineHeight}px`,
|
|
157
|
-
iconSize:
|
|
154
|
+
iconSize: 16,
|
|
158
155
|
radius: `${tagTokens.tag.md.radius}px`,
|
|
159
156
|
},
|
|
160
157
|
};
|
|
@@ -188,6 +185,9 @@ const SdTag = class {
|
|
|
188
185
|
label = '';
|
|
189
186
|
icon;
|
|
190
187
|
isLeft = true;
|
|
188
|
+
componentWillLoad() {
|
|
189
|
+
this.name = this.name ?? 'square_sm_grey';
|
|
190
|
+
}
|
|
191
191
|
get resolvedName() {
|
|
192
192
|
if (!isTagName(this.name)) {
|
|
193
193
|
throw new Error(`Invalid sd-tag name: "${this.name}"`);
|
|
@@ -198,14 +198,14 @@ const SdTag = class {
|
|
|
198
198
|
return TAG_CONFIG[this.resolvedName];
|
|
199
199
|
}
|
|
200
200
|
renderIcon(color, size) {
|
|
201
|
-
if (
|
|
201
|
+
if (this.icon == null)
|
|
202
202
|
return null;
|
|
203
203
|
return h("sd-icon", { class: "sd-tag__icon", name: this.icon, size: size, color: color });
|
|
204
204
|
}
|
|
205
205
|
render() {
|
|
206
206
|
const config = this.resolvedConfig;
|
|
207
207
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
208
|
-
return (h("span", { key: '
|
|
208
|
+
return (h("span", { key: '57f3c3f9ad53059fabff205cb44ffa3d1da9a711', class: "sd-tag", style: {
|
|
209
209
|
'--sd-tag-background': config.background,
|
|
210
210
|
'--sd-tag-content': config.content,
|
|
211
211
|
'--sd-tag-height': config.height,
|
|
@@ -215,7 +215,7 @@ const SdTag = class {
|
|
|
215
215
|
'--sd-tag-font-weight': config.fontWeight,
|
|
216
216
|
'--sd-tag-line-height': config.lineHeight,
|
|
217
217
|
'--sd-tag-radius': config.radius,
|
|
218
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '
|
|
218
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '3360f36d18f073cd24699b6b8db2e731fda351ac', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
221
|
SdTag.style = sdTagCss();
|