@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
|
@@ -83,13 +83,13 @@ export class SdPagination {
|
|
|
83
83
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
84
84
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
85
85
|
};
|
|
86
|
-
return (h("div", { key: '
|
|
86
|
+
return (h("div", { key: '251d9b3bcff3cf985d62b1a8717f622d209b3fa1', class: {
|
|
87
87
|
'sd-pagination': true,
|
|
88
88
|
'sd-pagination--simple': this.simple,
|
|
89
|
-
}, style: cssVars }, h("div", { key: '
|
|
89
|
+
}, style: cssVars }, h("div", { key: 'd143917676ccd97c1f4fc8e7220857d543efa5fd', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
90
90
|
'sd-pagination__item': true,
|
|
91
91
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
92
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
92
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'e58053cef21c57d88f5b1357101507418b2db002', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "sd-pagination"; }
|
|
95
95
|
static get originalStyleUrls() {
|
|
@@ -51,17 +51,17 @@ export class SdPopover {
|
|
|
51
51
|
const leftLink = this.leftLink;
|
|
52
52
|
const button = this.button;
|
|
53
53
|
const hasFooter = !!leftLink || !!button;
|
|
54
|
-
return (h(Fragment, { key: '
|
|
54
|
+
return (h(Fragment, { key: 'b50da46efd85cdb48f66b24c591ab662a9fd62cb' }, 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: 'a31d6c00a9b61826fa412247f603d78874a3dba6', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, h("div", { key: '11020f31a14dbb7325b30ebc48315b344662cf43', class: {
|
|
55
55
|
'sd-floating-menu': true,
|
|
56
56
|
'sd-floating-menu--popover': true,
|
|
57
57
|
[`sd-floating-menu--${placement}`]: true,
|
|
58
|
-
[menuClass]:
|
|
58
|
+
[menuClass]: menuClass !== '',
|
|
59
59
|
}, style: {
|
|
60
60
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
61
|
-
} }, h("i", { key: '
|
|
61
|
+
} }, h("i", { key: '51b35ade68a68c92b7488b97f2b1808d7fcf33e5', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: 'd491c997e07a2bb2d4a3ad3624d5098457f91c05' })), h("div", { key: '19bfc90b0c5da4fe736aad3b8b2061ac58d8efb4', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '31875711b7cd54c0c48f0017ac94365c3cc97821', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (h("div", { key: '9c78a748831045f96fe48fd2ae9dcd85b1335aa0', class: "sd-floating-menu__messages" }, messages.map((message, i) => (h("div", { key: `msg-${i}` }, message))))), hasFooter && (h("div", { key: '787f0d2ac133bef9f72ce248b943b0ff9883db9e', class: {
|
|
62
62
|
'sd-floating-menu__buttons': true,
|
|
63
63
|
'sd-floating-menu__buttons--with-link': !!leftLink,
|
|
64
|
-
} }, leftLink && (h("sd-text-link", { key: '
|
|
64
|
+
} }, leftLink && (h("sd-text-link", { key: '2000a926c2c808e6ee51f47905fadf8847553bfe', 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: 'cca9d6bef231fe4c469d8895fefa8b6d5855a57c', 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: '032461787d74367ea047c088e08704ce7409f74b', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "sd-popover"; }
|
|
67
67
|
static get originalStyleUrls() {
|
|
@@ -384,7 +384,7 @@ export class SdPopover {
|
|
|
384
384
|
"mutable": false,
|
|
385
385
|
"complexType": {
|
|
386
386
|
"original": "PopoverButton",
|
|
387
|
-
"resolved": "(Partial<Pick<SdButton, \"
|
|
387
|
+
"resolved": "(Partial<Pick<SdButton, \"disabled\" | \"type\" | \"name\" | \"icon\" | \"rightIcon\" | \"ariaLabel\">> & { label: string; onClick?: ((e: Event) => void) | undefined; }) | undefined",
|
|
388
388
|
"references": {
|
|
389
389
|
"PopoverButton": {
|
|
390
390
|
"location": "local",
|
|
@@ -34,7 +34,7 @@ export class SdPopup {
|
|
|
34
34
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
35
35
|
...this.submitButtonProps,
|
|
36
36
|
};
|
|
37
|
-
return (h("div", { key: '
|
|
37
|
+
return (h("div", { key: '0c9f1cd261fa533044309342cfbaae8f5b87ae31', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: 'd8aa4db4d150419f5653fd93e204cc4bd865c35e', class: "sd-popup__header" }, h("h2", { key: 'fce95fce48a91c3a2b60f0b1169113cd2ff157d6', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'c730895828c14a6a80fe6bebecb08f386cc84a78', class: "sd-popup__body" }, h("slot", { key: 'f3402c32fdc55794fb2c877a41c9f73e3c0d6d9f' })), this.useFooter && (h("footer", { key: '4b04ebc0dccc07dd9466c06c940d3444346603ba', class: "sd-popup__footer" }, h("div", { key: '78b35347121652d647e3601e6c6164e8e21288ca', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '98836c28e7de97466cf4285c0458a8709c3788bb', name: "footer-left" })), h("sd-button", { key: 'd9ab45765c66a2f86aec2df9fc056fa1f4605259', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "sd-popup"; }
|
|
40
40
|
static get originalStyleUrls() {
|
|
@@ -103,7 +103,7 @@ export class SdPortal {
|
|
|
103
103
|
}
|
|
104
104
|
// 위치 갱신 (scroll / resize)
|
|
105
105
|
updatePosition() {
|
|
106
|
-
if (this.rafId)
|
|
106
|
+
if (this.rafId !== undefined)
|
|
107
107
|
cancelAnimationFrame(this.rafId);
|
|
108
108
|
this.rafId = requestAnimationFrame(() => {
|
|
109
109
|
if (!this.parentRef || !this.wrapper)
|
|
@@ -220,7 +220,7 @@ export class SdPortal {
|
|
|
220
220
|
this.close.emit();
|
|
221
221
|
}
|
|
222
222
|
render() {
|
|
223
|
-
return h("slot", { key: '
|
|
223
|
+
return h("slot", { key: '1f46253fe0f70fda84643e8d3025c1fd47090f5c' });
|
|
224
224
|
}
|
|
225
225
|
static get is() { return "sd-portal"; }
|
|
226
226
|
static get properties() {
|
|
@@ -48,7 +48,7 @@ export class SdRadio {
|
|
|
48
48
|
'--sd-radio-disabled-dot': RADIO_COLORS.disabled.dot,
|
|
49
49
|
'--sd-radio-label-color': RADIO_COLORS.label,
|
|
50
50
|
};
|
|
51
|
-
return (h("label", { key: '
|
|
51
|
+
return (h("label", { key: '2b7819249e5070a22b626530011db4a8e56194f1', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, h("input", { key: '233699a7c3bc13708d43ca3719f61edf53836c83', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), h("span", { key: 'eb665c5f8c6202b66b65b6b120f144970fba0a38', class: "sd-radio__circle" }), this.label && h("span", { key: '3d0db13e083bacb4cb7ace9129fcfcd61f18dfc7', class: "sd-radio__label" }, this.label)));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "sd-radio"; }
|
|
54
54
|
static get originalStyleUrls() {
|
|
@@ -42,8 +42,11 @@ export class SdRadioButton {
|
|
|
42
42
|
}
|
|
43
43
|
_groupName;
|
|
44
44
|
get groupName() {
|
|
45
|
-
if (
|
|
46
|
-
this._groupName =
|
|
45
|
+
if (this._groupName == null || this._groupName === '') {
|
|
46
|
+
this._groupName =
|
|
47
|
+
this.name != null && this.name !== ''
|
|
48
|
+
? this.name
|
|
49
|
+
: `sd-radio-button-${crypto.randomUUID()}`;
|
|
47
50
|
}
|
|
48
51
|
return this._groupName;
|
|
49
52
|
}
|
|
@@ -72,7 +75,7 @@ export class SdRadioButton {
|
|
|
72
75
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
73
76
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
74
77
|
};
|
|
75
|
-
return (h("div", { key: '
|
|
78
|
+
return (h("div", { key: 'd1f572315ee66c5defebc4386e815fb21928b548', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
76
79
|
const isSelected = this.isOptionSelected(option);
|
|
77
80
|
const isDisabled = this.isOptionDisabled(option);
|
|
78
81
|
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)));
|
|
@@ -22,7 +22,7 @@ export class SdRadioGroup {
|
|
|
22
22
|
return classes.join(' ');
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: '3bb952a72d5bccd1ad4842d9554efe6c69829773', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
26
26
|
return (h("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
27
27
|
})));
|
|
28
28
|
}
|
|
@@ -64,9 +64,13 @@ export class SdSelectListItem {
|
|
|
64
64
|
'--list-item-font-weight-selected': LIST_ITEM_TYPOGRAPHY.selectedFontWeight,
|
|
65
65
|
};
|
|
66
66
|
if (isDepth1Group) {
|
|
67
|
-
cssVars['--list-item-border-top'] =
|
|
67
|
+
cssVars['--list-item-border-top'] =
|
|
68
|
+
`${LIST_ITEM_COLORS.depth1.borderWidth}px solid ${LIST_ITEM_COLORS.depth1.border}`;
|
|
68
69
|
}
|
|
69
|
-
return (
|
|
70
|
+
return (
|
|
71
|
+
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
72
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
73
|
+
h("div", { key: '93e8bf04e69d9e6f066952570ed06076bdd17e57', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
70
74
|
'sd-select-list-item': true,
|
|
71
75
|
'sd-select-list-item--group': isGroup,
|
|
72
76
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -76,7 +80,7 @@ export class SdSelectListItem {
|
|
|
76
80
|
'sd-select-list-item--focused': this.isFocused,
|
|
77
81
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
78
82
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
79
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
83
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '2b6a17361c2e5c65c6dac21895ef397cadeec9a3', 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: '158e45d52b3b5394f7c4e2ffff97d23f83ce5e49', class: "sd-select-list-item__label" }, this.option.label), this.countInfo && (h("span", { key: '48adac9df92cd19f5e2b39bed828a9ad7c22c945', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
80
84
|
}
|
|
81
85
|
static get is() { return "sd-select-list-item"; }
|
|
82
86
|
static get originalStyleUrls() {
|
|
@@ -35,21 +35,21 @@ export class SdSelectListItemSearch {
|
|
|
35
35
|
this.inputEl?.focus();
|
|
36
36
|
};
|
|
37
37
|
disconnectedCallback() {
|
|
38
|
-
if (this.focusRafId)
|
|
38
|
+
if (this.focusRafId !== undefined)
|
|
39
39
|
cancelAnimationFrame(this.focusRafId);
|
|
40
|
-
if (this.debounceTimer)
|
|
40
|
+
if (this.debounceTimer !== undefined)
|
|
41
41
|
clearTimeout(this.debounceTimer);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '0b8e55a2f39d72bc6fc5c7d8c6262c9fffb52ba7', class: {
|
|
45
45
|
'sd-select-list-item-search': true,
|
|
46
46
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
47
|
-
} }, h("div", { key: '
|
|
47
|
+
} }, h("div", { key: '30c4f5d6c8002579da129cebb06c026c278fb555', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: 'be9076a1fd6d7fd9a1990fd9e32aebd04c1bc4b4', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: 'c9400184f607d0385e5e8c25615e1a955256c6f4', ref: el => {
|
|
48
48
|
this.inputEl = el;
|
|
49
|
-
}, 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: '
|
|
49
|
+
}, 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: 'dcb18eff068dea3fcb9144c4dfd4500806f68753', type: "button", class: {
|
|
50
50
|
'sd-select-list-item-search__clear': true,
|
|
51
|
-
'sd-select-list-item-search__clear--hidden':
|
|
52
|
-
}, onClick: this.handleClear, tabindex: this.searchText ? 0 : -1, "aria-hidden": this.searchText ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
51
|
+
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
52
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: 'beb2cf23258aa1eaff2c9fdb63dae99570691af1', name: "close", size: 12, color: "#888888" })))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "sd-select-list-item-search"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -62,7 +62,7 @@ export class SdSelectListbox {
|
|
|
62
62
|
return count >= SEARCH_THRESHOLD;
|
|
63
63
|
}
|
|
64
64
|
get filteredOptions() {
|
|
65
|
-
if (
|
|
65
|
+
if (this.searchKeyword === '')
|
|
66
66
|
return this.options;
|
|
67
67
|
if (this.isDepth)
|
|
68
68
|
return filterTree(this.options, this.searchKeyword);
|
|
@@ -75,7 +75,7 @@ export class SdSelectListbox {
|
|
|
75
75
|
return this.filteredOptions.length === 0;
|
|
76
76
|
}
|
|
77
77
|
getSelectedValues() {
|
|
78
|
-
if (
|
|
78
|
+
if (this.value == null || !Array.isArray(this.value))
|
|
79
79
|
return new Set();
|
|
80
80
|
if (this.emitValue) {
|
|
81
81
|
return new Set(this.value);
|
|
@@ -198,7 +198,7 @@ export class SdSelectListbox {
|
|
|
198
198
|
// filterTree 가 매 호출마다 옵션 객체를 새로 복제하기 때문에 참조 비교
|
|
199
199
|
// (=== / indexOf) 는 검색이 적용된 동안 항상 실패한다. 고유 식별자인
|
|
200
200
|
// value 로 비교해야 한다.
|
|
201
|
-
return
|
|
201
|
+
return focused != null && focused.value === option.value;
|
|
202
202
|
}
|
|
203
203
|
resetFocusOnFilter() {
|
|
204
204
|
// 필터가 바뀌면 이전 인덱스가 가리키던 항목이 사라질 수 있으므로
|
|
@@ -348,9 +348,9 @@ export class SdSelectListbox {
|
|
|
348
348
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
349
349
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
350
350
|
};
|
|
351
|
-
return (h("div", { key: '
|
|
351
|
+
return (h("div", { key: '4173255a866459bf0aeb98d517263d12f1c39fa5', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: '79e7d48d7234ebfd32d3cd242822dfa93a73c151', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: '22981c1e049d0d526af06bb5b563de5130c14477', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
352
352
|
this.listEl = el;
|
|
353
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
353
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: '7acd37c5663bb101d6853cbd6629a78d402d6cde', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
354
354
|
}
|
|
355
355
|
static get is() { return "sd-select-listbox"; }
|
|
356
356
|
static get encapsulation() { return "shadow"; }
|
|
@@ -26,7 +26,7 @@ export class SdSelectTrigger {
|
|
|
26
26
|
this.triggerBlur.emit();
|
|
27
27
|
};
|
|
28
28
|
render() {
|
|
29
|
-
const hasValue =
|
|
29
|
+
const hasValue = this.displayText !== '';
|
|
30
30
|
const cssVars = {
|
|
31
31
|
'--trigger-padding-x': `${SELECT_LAYOUT.paddingX}px`,
|
|
32
32
|
'--trigger-gap': `${SELECT_LAYOUT.gap}px`,
|
|
@@ -42,13 +42,18 @@ export class SdSelectTrigger {
|
|
|
42
42
|
? SELECT_COLORS.icon.disabled
|
|
43
43
|
: SELECT_COLORS.icon.default,
|
|
44
44
|
};
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '6694f35a396f368d5df9860db30d817beddb8bec', ref: el => {
|
|
46
46
|
this.triggerEl = el;
|
|
47
|
-
}, tabindex: this.disabled ? -1 : 0, class: {
|
|
47
|
+
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
48
48
|
'sd-select-trigger': true,
|
|
49
49
|
'sd-select-trigger--open': this.isOpen,
|
|
50
50
|
'sd-select-trigger--disabled': this.disabled,
|
|
51
|
-
}, style: cssVars, onClick: this.handleClick,
|
|
51
|
+
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
52
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
53
|
+
e.preventDefault();
|
|
54
|
+
this.handleClick();
|
|
55
|
+
}
|
|
56
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'd8ff247ca362a8fc3677d9803261343a1e891298', class: "sd-select-trigger__content" }, h("span", { key: 'cd81a7c7c135372aad80fa9391b160337632643c', class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택')), h("sd-icon", { key: '838c12e2a9ce06036eee766ffd2f88f3215b8420', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
52
57
|
'sd-select-trigger__icon': true,
|
|
53
58
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
54
59
|
} }))));
|
|
@@ -110,7 +110,7 @@ export class SdSelect {
|
|
|
110
110
|
}
|
|
111
111
|
getSelectedOptions() {
|
|
112
112
|
const val = this.value;
|
|
113
|
-
if (
|
|
113
|
+
if (val == null || !Array.isArray(val))
|
|
114
114
|
return [];
|
|
115
115
|
if (this.emitValue) {
|
|
116
116
|
return val
|
|
@@ -254,15 +254,15 @@ export class SdSelect {
|
|
|
254
254
|
this.closeDropdown();
|
|
255
255
|
},
|
|
256
256
|
};
|
|
257
|
-
return (h("sd-field", { key: '
|
|
257
|
+
return (h("sd-field", { key: 'c433e21047632ae1e7901e11f6f9d83070f8d83c', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
258
258
|
this.hovered = true;
|
|
259
259
|
}, onMouseLeave: () => {
|
|
260
260
|
this.hovered = false;
|
|
261
|
-
} }, h("div", { key: '
|
|
261
|
+
} }, h("div", { key: 'f04f2f331c27745035c35d96d5262398065589a8', class: "sd-select", ref: el => {
|
|
262
262
|
this.triggerRef = el;
|
|
263
|
-
} }, h("sd-select-trigger", { key: '
|
|
263
|
+
} }, h("sd-select-trigger", { key: 'b66e83ff248618c815b155f27445f3da9e91361b', ref: el => {
|
|
264
264
|
this.triggerComponentRef = el;
|
|
265
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '
|
|
265
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'bd5b46d8e4849d235e39a9d9cfc549fdbe260076', ...portalProps }, h("sd-select-listbox", { key: '81266da14ee4e59b4cedd4b364c18fea4d3c4f7f', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
266
266
|
}
|
|
267
267
|
static get is() { return "sd-select"; }
|
|
268
268
|
static get originalStyleUrls() {
|
|
@@ -40,7 +40,7 @@ export class SdSwitch {
|
|
|
40
40
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
41
41
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
42
42
|
};
|
|
43
|
-
return (h("label", { key: '
|
|
43
|
+
return (h("label", { key: 'ebb195a1bb93ae476b4bf3e697623809d626eed6', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: 'a6de6298d35c54ad83dc6285b90e67c8d3564d15', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '7881f46be572edcfc82888564a7f85ad4207dd8e', class: "sd-switch__track" }, h("div", { key: 'c08c9d5894a6f9ddf3ecdaaa9253628478479043', class: "sd-switch__knob" })), this.label && h("span", { key: '4e01b185502829d8fb647d3eafaaf6565489b2f3', class: "sd-switch__label" }, this.label)));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "sd-switch"; }
|
|
46
46
|
static get originalStyleUrls() {
|
|
@@ -45,6 +45,10 @@ export const TABLE_BORDER = {
|
|
|
45
45
|
color: tableTokens.table.border.color,
|
|
46
46
|
width: tableTokens.table.border.width,
|
|
47
47
|
};
|
|
48
|
+
export const TABLE_SEPARATOR = {
|
|
49
|
+
color: tableTokens.table.separator.color,
|
|
50
|
+
width: tableTokens.table.separator.Width,
|
|
51
|
+
};
|
|
48
52
|
export const TABLE_RADIUS = tableTokens.table.radius;
|
|
49
53
|
// ── Content Tokens ──
|
|
50
54
|
export const TABLE_CONTENT = {
|
|
@@ -57,7 +57,10 @@ sd-table *,
|
|
|
57
57
|
|
|
58
58
|
.sd-table__no-data {
|
|
59
59
|
position: absolute;
|
|
60
|
-
|
|
60
|
+
top: 36px;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
bottom: 0;
|
|
61
64
|
display: flex;
|
|
62
65
|
align-items: center;
|
|
63
66
|
justify-content: center;
|
|
@@ -67,9 +70,25 @@ sd-table *,
|
|
|
67
70
|
z-index: 200;
|
|
68
71
|
background: rgba(255, 255, 255, 0.6);
|
|
69
72
|
}
|
|
70
|
-
|
|
71
|
-
.sd-table__no-data
|
|
73
|
+
|
|
74
|
+
.sd-table__no-data-header-overlay {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top: 0;
|
|
77
|
+
left: 0;
|
|
78
|
+
right: 0;
|
|
79
|
+
height: 36px;
|
|
80
|
+
background: rgba(255, 255, 255, 0.6);
|
|
81
|
+
z-index: 210;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.sd-table__no-data-content {
|
|
72
86
|
pointer-events: auto;
|
|
87
|
+
min-height: 60px;
|
|
88
|
+
width: 100%;
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
73
92
|
}
|
|
74
93
|
|
|
75
94
|
.sd-table__loading {
|