@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
package/dist/esm/sd-td.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, f as forceUpdate, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, 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
3
|
|
|
4
4
|
const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
|
|
@@ -17,6 +17,10 @@ const SdTd = class {
|
|
|
17
17
|
// <sd-td> 호스트는 display:contents라 호스트의 class는 시각 효과가 없기 때문에,
|
|
18
18
|
// 이 prop을 통해 sd-table 레지스트리에 등록 → sd-tr가 td 렌더 시 합쳐 사용한다.
|
|
19
19
|
sdClass;
|
|
20
|
+
dividerLeft = false;
|
|
21
|
+
dividerRight = false;
|
|
22
|
+
// true이면 이 셀이 속한 행 전체가 dense를 무시하고 default 레이아웃으로 동작한다.
|
|
23
|
+
useFrame = false;
|
|
20
24
|
handleFieldChange(_newField, oldField) {
|
|
21
25
|
this.syncSlotName();
|
|
22
26
|
this.syncSpanRegistration();
|
|
@@ -33,10 +37,18 @@ const SdTd = class {
|
|
|
33
37
|
handleSdClassChange() {
|
|
34
38
|
this.syncCellClassRegistration();
|
|
35
39
|
}
|
|
40
|
+
handleDividerChange() {
|
|
41
|
+
this.syncCellClassRegistration();
|
|
42
|
+
}
|
|
43
|
+
handleUseFieldChange() {
|
|
44
|
+
this.syncUseFieldRegistration();
|
|
45
|
+
this.requestParentTrUpdate();
|
|
46
|
+
}
|
|
36
47
|
componentWillLoad() {
|
|
37
48
|
this.syncSlotName();
|
|
38
49
|
this.syncSpanRegistration();
|
|
39
50
|
this.syncCellClassRegistration();
|
|
51
|
+
this.syncUseFieldRegistration();
|
|
40
52
|
// slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
|
|
41
53
|
const parentTr = this.el.parentElement;
|
|
42
54
|
if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
|
|
@@ -47,6 +59,7 @@ const SdTd = class {
|
|
|
47
59
|
this.syncSlotName();
|
|
48
60
|
this.syncSpanRegistration();
|
|
49
61
|
this.syncCellClassRegistration();
|
|
62
|
+
this.syncUseFieldRegistration();
|
|
50
63
|
}
|
|
51
64
|
// React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
|
|
52
65
|
// 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
|
|
@@ -54,12 +67,14 @@ const SdTd = class {
|
|
|
54
67
|
connectedCallback() {
|
|
55
68
|
this.syncSpanRegistration();
|
|
56
69
|
this.syncCellClassRegistration();
|
|
70
|
+
this.syncUseFieldRegistration();
|
|
57
71
|
}
|
|
58
72
|
disconnectedCallback() {
|
|
59
73
|
const table = this.findTable();
|
|
60
|
-
if (table && this.field && this.rowKey != null) {
|
|
74
|
+
if (table != null && this.field !== '' && this.rowKey != null) {
|
|
61
75
|
table.unregisterSpanSync?.(String(this.rowKey), this.field);
|
|
62
76
|
table.unregisterCellClassSync?.(String(this.rowKey), this.field);
|
|
77
|
+
table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
|
|
63
78
|
this.requestParentTrUpdate();
|
|
64
79
|
}
|
|
65
80
|
}
|
|
@@ -80,7 +95,7 @@ const SdTd = class {
|
|
|
80
95
|
}
|
|
81
96
|
syncSpanRegistration() {
|
|
82
97
|
const table = this.findTable();
|
|
83
|
-
if (
|
|
98
|
+
if (table?.registerSpanSync == null || this.field === '' || this.rowKey == null)
|
|
84
99
|
return;
|
|
85
100
|
const rs = Math.max(1, Math.floor(Number(this.rowspan) || 1));
|
|
86
101
|
const cs = Math.max(1, Math.floor(Number(this.colspan) || 1));
|
|
@@ -94,27 +109,45 @@ const SdTd = class {
|
|
|
94
109
|
return;
|
|
95
110
|
const oldField = prevField ?? this.field;
|
|
96
111
|
const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
|
|
97
|
-
if (oldField && oldRowKey != null) {
|
|
112
|
+
if (oldField !== '' && oldRowKey != null) {
|
|
98
113
|
table.unregisterCellClassSync?.(oldRowKey, oldField);
|
|
99
114
|
}
|
|
100
|
-
if (!table.registerCellClassSync ||
|
|
115
|
+
if (!table.registerCellClassSync || this.field === '' || this.rowKey == null)
|
|
101
116
|
return;
|
|
102
|
-
|
|
117
|
+
const combinedClass = [
|
|
118
|
+
this.sdClass,
|
|
119
|
+
this.dividerLeft && 'td--divider-left',
|
|
120
|
+
this.dividerRight && 'td--divider-right',
|
|
121
|
+
]
|
|
122
|
+
.filter(Boolean)
|
|
123
|
+
.join(' ') || undefined;
|
|
124
|
+
table.registerCellClassSync(String(this.rowKey), this.field, combinedClass);
|
|
103
125
|
this.requestParentTrUpdate();
|
|
104
126
|
}
|
|
127
|
+
syncUseFieldRegistration() {
|
|
128
|
+
const table = this.findTable();
|
|
129
|
+
if (!table || this.field === '' || this.rowKey == null)
|
|
130
|
+
return;
|
|
131
|
+
if (this.useFrame) {
|
|
132
|
+
table.registerUseFrameSync?.(String(this.rowKey), this.field);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
105
138
|
syncSlotName() {
|
|
106
139
|
const table = this.el.closest('sd-table');
|
|
107
140
|
const fromMethod = table?.getTableIdSync?.();
|
|
108
141
|
const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
|
|
109
|
-
const tableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
110
|
-
(fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
142
|
+
const tableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
|
|
143
|
+
(fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
|
|
111
144
|
'';
|
|
112
|
-
if (this.field && this.rowKey !== undefined && tableId) {
|
|
145
|
+
if (this.field !== '' && this.rowKey !== undefined && tableId !== '') {
|
|
113
146
|
this.el.setAttribute('slot', `${tableId}-${this.field}-${this.rowKey}`);
|
|
114
147
|
}
|
|
115
148
|
}
|
|
116
149
|
render() {
|
|
117
|
-
return (h(Host, { key: '
|
|
150
|
+
return (h(Host, { key: '7d51ea5f02ba2df099f4440be26c2f0be8a73a6b', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '9a6a634e2bcd206ec9099c6be738c3853d0cbebf' })));
|
|
118
151
|
}
|
|
119
152
|
static get watchers() { return {
|
|
120
153
|
"field": [{
|
|
@@ -131,6 +164,15 @@ const SdTd = class {
|
|
|
131
164
|
}],
|
|
132
165
|
"sdClass": [{
|
|
133
166
|
"handleSdClassChange": 0
|
|
167
|
+
}],
|
|
168
|
+
"dividerLeft": [{
|
|
169
|
+
"handleDividerChange": 0
|
|
170
|
+
}],
|
|
171
|
+
"dividerRight": [{
|
|
172
|
+
"handleDividerChange": 0
|
|
173
|
+
}],
|
|
174
|
+
"useFrame": [{
|
|
175
|
+
"handleUseFieldChange": 0
|
|
134
176
|
}]
|
|
135
177
|
}; }
|
|
136
178
|
};
|
|
@@ -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 textLink = {
|
|
4
4
|
gap: "4",
|
|
@@ -74,16 +74,21 @@ const SdTextLink = class {
|
|
|
74
74
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
75
75
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
76
76
|
};
|
|
77
|
-
return (h("span", { key: '
|
|
77
|
+
return (h("span", { key: '11d2153cc91818c1214e21ffa14bd08249ad1116', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
78
78
|
'sd-text-link': true,
|
|
79
79
|
'sd-text-link--disabled': this.disabled,
|
|
80
|
-
}, style: cssVars, onClick: this.handleClick
|
|
80
|
+
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
81
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
82
|
+
e.preventDefault();
|
|
83
|
+
this.handleClick();
|
|
84
|
+
}
|
|
85
|
+
} }, this.icon && (h("sd-icon", { key: '23972d53b4968c9bdef9b54dfa785e658ba117ef', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: '5e99a6c1151093929086ec4398b93d7db590d959', class: labelClassName }, this.label), this.useArrow && (h("span", { key: 'b814759278cefe229a5321556374438f281ce0f3', class: "sd-text-link__arrow", style: {
|
|
81
86
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
82
87
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
83
88
|
display: 'inline-flex',
|
|
84
89
|
alignItems: 'center',
|
|
85
90
|
justifyContent: 'center',
|
|
86
|
-
} }, h("sd-icon", { key: '
|
|
91
|
+
} }, h("sd-icon", { key: 'dfe3286eaeef9a176f5ff1a69950713e2712a550', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
87
92
|
}
|
|
88
93
|
};
|
|
89
94
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-0U6dRjlq.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_DURATION = 4000;
|
|
4
4
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -232,7 +232,7 @@ const SdToastContainer = class {
|
|
|
232
232
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
233
233
|
const indexMap = new Map();
|
|
234
234
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
235
|
-
return (h("div", { key: '
|
|
235
|
+
return (h("div", { key: 'bc3c9591b6453eed7df462841e29784c29b3aeef', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
236
236
|
this.expanded = true;
|
|
237
237
|
this.pauseTimers();
|
|
238
238
|
}, onMouseLeave: () => {
|
|
@@ -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 toast = {
|
|
4
4
|
icon: "16",
|
|
@@ -82,12 +82,12 @@ const SdToast = class {
|
|
|
82
82
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
83
83
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
84
84
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
85
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: 'db3ffaf51dc96c39c05558017f25929c679a59df', style: {
|
|
86
86
|
'--sd-toast-bg': typeConfig.bg,
|
|
87
87
|
'--sd-toast-text': typeConfig.content,
|
|
88
88
|
'--sd-toast-icon': iconColor,
|
|
89
89
|
'--sd-toast-link': linkColor,
|
|
90
|
-
} }, h("div", { key: '
|
|
90
|
+
} }, h("div", { key: '92344f5bb95b0d4787591207f2e017d7dd177091', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '991db58b2cb019dd3a787e000e9d8813014bbb09', class: "sd-toast__icon" }, h("sd-icon", { key: '24d53cd77fdea82ec07663a8968493ec2b794751', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: '70cfad4ef389cca798be9baeac99bfc41efcc615', class: "sd-toast__content" }, h("span", { key: '5927023435b17dc25ee07630fc4ae4568aadd9b9', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '410c024fd81ebcc78175c1855a86f590566d1a81', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: 'd85287e7ef796a11f850a0ce5cde87f5881fa5c9', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: '55a6bf6457bd89254f6eb01072d46a0edbb8b510', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
SdToast.style = sdToastCss();
|
|
@@ -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 toggle = {
|
|
4
4
|
height: "28",
|
|
@@ -118,7 +118,7 @@ const SdToggle = class {
|
|
|
118
118
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
119
119
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
120
120
|
};
|
|
121
|
-
return (h("label", { key: '
|
|
121
|
+
return (h("label", { key: 'b16577aa25863a9dc337314d9059328799c1cd1e', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '6130825b74df8a573f4e062671fd694508759e82', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-0U6dRjlq.js';
|
|
2
2
|
|
|
3
3
|
const TooltipArrow = (props) => (h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
4
4
|
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { d as datepickerTokens } from './component.datepicker-BQn6le_Y.js';
|
|
2
|
+
|
|
3
|
+
const CALENDAR_LAYOUT = {
|
|
4
|
+
bg: datepickerTokens.datepicker.calendar.bg,
|
|
5
|
+
paddingXY: datepickerTokens.datepicker.calendar.paddingXY,
|
|
6
|
+
gap: datepickerTokens.datepicker.calendar.gap,
|
|
7
|
+
radius: datepickerTokens.datepicker.calendar.radius,
|
|
8
|
+
header: {
|
|
9
|
+
gap: datepickerTokens.datepicker.calendar.header.gap,
|
|
10
|
+
divider: datepickerTokens.datepicker.calendar.header.divider,
|
|
11
|
+
fontSize: datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
12
|
+
lineHeight: datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
13
|
+
fontWeight: datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
14
|
+
},
|
|
15
|
+
week: {
|
|
16
|
+
fontSize: datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
17
|
+
lineHeight: datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
18
|
+
fontWeight: datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
19
|
+
color: datepickerTokens.datepicker.calendar.week.color,
|
|
20
|
+
},
|
|
21
|
+
grid: {
|
|
22
|
+
rowGap: datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
23
|
+
},
|
|
24
|
+
day: {
|
|
25
|
+
size: datepickerTokens.datepicker.calendar.day.width,
|
|
26
|
+
circleSize: datepickerTokens.datepicker.calendar.day.circle.size,
|
|
27
|
+
circleRadius: datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
28
|
+
defaultText: datepickerTokens.datepicker.calendar.day.default.text,
|
|
29
|
+
hoverText: datepickerTokens.datepicker.calendar.day.hover.text,
|
|
30
|
+
hoverBorder: datepickerTokens.datepicker.calendar.day.hover.border,
|
|
31
|
+
selectBg: datepickerTokens.datepicker.calendar.day.select.bg,
|
|
32
|
+
selectText: datepickerTokens.datepicker.calendar.day.select.text,
|
|
33
|
+
disabledText: datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
34
|
+
fontSize: datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
35
|
+
lineHeight: datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
36
|
+
fontWeight: datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
37
|
+
boldFontWeight: datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
38
|
+
dot: {
|
|
39
|
+
size: datepickerTokens.datepicker.calendar.day.dot.size,
|
|
40
|
+
gap: datepickerTokens.datepicker.calendar.day.dot.gap,
|
|
41
|
+
paddingY: datepickerTokens.datepicker.calendar.day.dot.paddingY,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
legend: {
|
|
45
|
+
fontSize: datepickerTokens.datepicker.calendar.legend.typography.fontSize,
|
|
46
|
+
lineHeight: datepickerTokens.datepicker.calendar.legend.typography.lineHeight,
|
|
47
|
+
fontWeight: datepickerTokens.datepicker.calendar.legend.typography.fontWeight,
|
|
48
|
+
gap: datepickerTokens.datepicker.calendar.legend.gap,
|
|
49
|
+
groupGap: datepickerTokens.datepicker.calendar.legend.group.gap,
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
53
|
+
|
|
54
|
+
const daysInMonth = (date) => {
|
|
55
|
+
const year = Number(date.split('-')[0]);
|
|
56
|
+
const month = Number(date.split('-')[1]);
|
|
57
|
+
const daysInMonth = new Date(year, month, 0).getDate(); // month에 0을 전달하면 전달의 마지막 날짜를 반환
|
|
58
|
+
return Array.from({ length: daysInMonth }, (_, i) => i + 1);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const getToday = () => {
|
|
62
|
+
const today = new Date();
|
|
63
|
+
const year = today.getFullYear();
|
|
64
|
+
const month = String(today.getMonth() + 1).padStart(2, '0');
|
|
65
|
+
const day = String(today.getDate()).padStart(2, '0');
|
|
66
|
+
return `${year}-${month}-${day}`;
|
|
67
|
+
};
|
|
68
|
+
const today = getToday();
|
|
69
|
+
|
|
70
|
+
const useDatePicker = () => {
|
|
71
|
+
const formatDate = (year, month, day) => {
|
|
72
|
+
return `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
73
|
+
};
|
|
74
|
+
const createCalendar = (year, month) => {
|
|
75
|
+
const days = daysInMonth(`${year}-${String(month).padStart(2, '0')}-01`);
|
|
76
|
+
const firstDayIndex = new Date(year, month - 1, 1).getDay();
|
|
77
|
+
const prevMonthDays = Array.from({ length: firstDayIndex });
|
|
78
|
+
const remainingDays = (7 - ((days.length + firstDayIndex) % 7)) % 7;
|
|
79
|
+
const afterMonthDays = Array.from({ length: remainingDays });
|
|
80
|
+
return { days, prevMonthDays, afterMonthDays };
|
|
81
|
+
};
|
|
82
|
+
const calculateYearMonth = (year, month, type) => {
|
|
83
|
+
let newYear = year;
|
|
84
|
+
let newMonth = type === 'prev' ? month - 1 : month + 1;
|
|
85
|
+
if (newMonth < 1) {
|
|
86
|
+
newYear = year - 1;
|
|
87
|
+
newMonth = 12;
|
|
88
|
+
}
|
|
89
|
+
else if (newMonth > 12) {
|
|
90
|
+
newYear = year + 1;
|
|
91
|
+
newMonth = 1;
|
|
92
|
+
}
|
|
93
|
+
return { newYear, newMonth };
|
|
94
|
+
};
|
|
95
|
+
return { formatDate, createCalendar, calculateYearMonth };
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export { CALENDAR_LAYOUT as C, WEEK_LABELS as W, today as t, useDatePicker as u };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const CALENDAR_LAYOUT: {
|
|
2
|
+
bg: string;
|
|
3
|
+
paddingXY: string;
|
|
4
|
+
gap: string;
|
|
5
|
+
radius: string;
|
|
6
|
+
header: {
|
|
7
|
+
gap: string;
|
|
8
|
+
divider: string;
|
|
9
|
+
fontSize: string;
|
|
10
|
+
lineHeight: string;
|
|
11
|
+
fontWeight: string;
|
|
12
|
+
};
|
|
13
|
+
week: {
|
|
14
|
+
fontSize: string;
|
|
15
|
+
lineHeight: string;
|
|
16
|
+
fontWeight: string;
|
|
17
|
+
color: string;
|
|
18
|
+
};
|
|
19
|
+
grid: {
|
|
20
|
+
rowGap: string;
|
|
21
|
+
};
|
|
22
|
+
day: {
|
|
23
|
+
size: string;
|
|
24
|
+
circleSize: string;
|
|
25
|
+
circleRadius: string;
|
|
26
|
+
defaultText: string;
|
|
27
|
+
hoverText: string;
|
|
28
|
+
hoverBorder: string;
|
|
29
|
+
selectBg: string;
|
|
30
|
+
selectText: string;
|
|
31
|
+
disabledText: string;
|
|
32
|
+
fontSize: string;
|
|
33
|
+
lineHeight: string;
|
|
34
|
+
fontWeight: string;
|
|
35
|
+
boldFontWeight: string;
|
|
36
|
+
dot: {
|
|
37
|
+
size: string;
|
|
38
|
+
gap: string;
|
|
39
|
+
paddingY: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
legend: {
|
|
43
|
+
fontSize: string;
|
|
44
|
+
lineHeight: string;
|
|
45
|
+
fontWeight: string;
|
|
46
|
+
gap: string;
|
|
47
|
+
groupGap: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const WEEK_LABELS: readonly ["일", "월", "화", "수", "목", "금", "토"];
|
|
51
|
+
export interface CalendarEventGroup {
|
|
52
|
+
color: string;
|
|
53
|
+
label: string;
|
|
54
|
+
dates: string[];
|
|
55
|
+
}
|
|
@@ -1,34 +1,31 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
|
|
3
|
-
[date: string]: string[];
|
|
4
|
-
}
|
|
5
|
-
export interface CalendarEventColors {
|
|
6
|
-
[eventName: string]: string;
|
|
7
|
-
}
|
|
2
|
+
import { type CalendarEventGroup } from './sd-calendar.config';
|
|
8
3
|
export declare class SdCalendar {
|
|
9
4
|
value: string | null;
|
|
10
5
|
selectable?: [string, string];
|
|
11
|
-
events?:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
eventsRevision: number;
|
|
16
|
-
select: EventEmitter<string>;
|
|
6
|
+
events?: CalendarEventGroup[];
|
|
7
|
+
private currentYear;
|
|
8
|
+
private currentMonth;
|
|
9
|
+
update: EventEmitter<string>;
|
|
17
10
|
viewChange: EventEmitter<{
|
|
18
11
|
year: number;
|
|
19
12
|
month: number;
|
|
20
13
|
}>;
|
|
21
14
|
private dateUtil;
|
|
15
|
+
private _eventMapCache?;
|
|
16
|
+
private get eventMap();
|
|
17
|
+
private get legendItems();
|
|
22
18
|
componentWillLoad(): void;
|
|
23
19
|
handleValueChange(): void;
|
|
24
|
-
|
|
25
|
-
private
|
|
26
|
-
private get
|
|
27
|
-
private
|
|
28
|
-
private
|
|
29
|
-
private
|
|
30
|
-
private
|
|
31
|
-
private
|
|
32
|
-
private
|
|
20
|
+
private syncViewFromValue;
|
|
21
|
+
private formatDate;
|
|
22
|
+
private get cells();
|
|
23
|
+
private emitViewChange;
|
|
24
|
+
private goPrevYear;
|
|
25
|
+
private goNextYear;
|
|
26
|
+
private goPrevMonth;
|
|
27
|
+
private goNextMonth;
|
|
28
|
+
private isDisabled;
|
|
29
|
+
private handleDayClick;
|
|
33
30
|
render(): any;
|
|
34
31
|
}
|
|
@@ -31,41 +31,3 @@ export declare const DATEPICKER_COLORS: {
|
|
|
31
31
|
disabled: string;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
-
export declare const CALENDAR_LAYOUT: {
|
|
35
|
-
bg: string;
|
|
36
|
-
paddingXY: string;
|
|
37
|
-
gap: string;
|
|
38
|
-
radius: string;
|
|
39
|
-
header: {
|
|
40
|
-
gap: string;
|
|
41
|
-
divider: string;
|
|
42
|
-
fontSize: string;
|
|
43
|
-
lineHeight: string;
|
|
44
|
-
fontWeight: string;
|
|
45
|
-
};
|
|
46
|
-
week: {
|
|
47
|
-
fontSize: string;
|
|
48
|
-
lineHeight: string;
|
|
49
|
-
fontWeight: string;
|
|
50
|
-
color: string;
|
|
51
|
-
};
|
|
52
|
-
grid: {
|
|
53
|
-
rowGap: string;
|
|
54
|
-
};
|
|
55
|
-
day: {
|
|
56
|
-
size: string;
|
|
57
|
-
circleSize: string;
|
|
58
|
-
circleRadius: string;
|
|
59
|
-
defaultText: string;
|
|
60
|
-
hoverText: string;
|
|
61
|
-
hoverBorder: string;
|
|
62
|
-
selectBg: string;
|
|
63
|
-
selectText: string;
|
|
64
|
-
disabledText: string;
|
|
65
|
-
fontSize: string;
|
|
66
|
-
lineHeight: string;
|
|
67
|
-
fontWeight: string;
|
|
68
|
-
boldFontWeight: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export declare const WEEK_LABELS: readonly ["일", "월", "화", "수", "목", "금", "토"];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DATEPICKER_SIZE_MAP, DATEPICKER_COLORS,
|
|
1
|
+
import { DATEPICKER_SIZE_MAP, DATEPICKER_COLORS, type DatePickerSize, type DatePickerSizeTokens } from '../sd-date-picker/sd-date-picker.config';
|
|
2
|
+
import { CALENDAR_LAYOUT, WEEK_LABELS } from '../sd-calendar/sd-calendar.config';
|
|
2
3
|
export { DATEPICKER_SIZE_MAP, DATEPICKER_COLORS, CALENDAR_LAYOUT, WEEK_LABELS };
|
|
3
4
|
export type { DatePickerSize, DatePickerSizeTokens };
|
|
4
5
|
export declare const RANGE_LAYOUT: {
|
|
@@ -10,11 +10,12 @@ export type DropdownButtonSize = 'xs' | 'sm' | 'md';
|
|
|
10
10
|
type UnsupportedDropdownButtonName = `${string}_lg`;
|
|
11
11
|
export type DropdownButtonName = Exclude<ButtonName, UnsupportedDropdownButtonName>;
|
|
12
12
|
export type DropdownButtonPreset = ButtonPreset;
|
|
13
|
-
|
|
14
|
-
variant:
|
|
13
|
+
type DropdownButtonConfigMap = Record<DropdownButtonName, {
|
|
14
|
+
variant: 'primary' | 'outline';
|
|
15
15
|
size: DropdownButtonSize;
|
|
16
16
|
color: string;
|
|
17
17
|
}>;
|
|
18
|
+
export declare const DROPDOWN_BUTTON_CONFIG: DropdownButtonConfigMap;
|
|
18
19
|
export declare const PRESET_HOVER_BACKGROUNDS: {
|
|
19
20
|
readonly primary: string;
|
|
20
21
|
readonly secondary: string;
|
|
@@ -6,6 +6,7 @@ export interface SdTableColumn {
|
|
|
6
6
|
field: string | ((row: any) => any);
|
|
7
7
|
align?: 'left' | 'center' | 'right';
|
|
8
8
|
width?: string;
|
|
9
|
+
autoWidth?: boolean;
|
|
9
10
|
format?: (value: any, row: any) => string;
|
|
10
11
|
visible?: boolean;
|
|
11
12
|
icon?: IconName;
|
|
@@ -44,4 +45,5 @@ export interface SdTableConfig {
|
|
|
44
45
|
scrolledLeft: boolean;
|
|
45
46
|
scrolledRight: boolean;
|
|
46
47
|
columnWidths: number[];
|
|
48
|
+
dense: boolean;
|
|
47
49
|
}
|
|
@@ -41,6 +41,10 @@ export declare const TABLE_BORDER: {
|
|
|
41
41
|
color: string;
|
|
42
42
|
width: string;
|
|
43
43
|
};
|
|
44
|
+
export declare const TABLE_SEPARATOR: {
|
|
45
|
+
color: string;
|
|
46
|
+
width: string;
|
|
47
|
+
};
|
|
44
48
|
export declare const TABLE_RADIUS: string;
|
|
45
49
|
export declare const TABLE_CONTENT: {
|
|
46
50
|
gap: string;
|
|
@@ -22,8 +22,10 @@ export declare class SdTable {
|
|
|
22
22
|
pagination?: SdTablePagination;
|
|
23
23
|
useInternalPagination: boolean;
|
|
24
24
|
useRowsPerPageSelect: boolean;
|
|
25
|
+
dense: boolean;
|
|
25
26
|
useVirtualScroll: boolean;
|
|
26
|
-
rowHeight
|
|
27
|
+
rowHeight?: number;
|
|
28
|
+
private get effectiveRowHeight();
|
|
27
29
|
virtualBuffer: number;
|
|
28
30
|
virtualEndThreshold: number;
|
|
29
31
|
rowsPerPageOption: SelectOption[];
|
|
@@ -48,15 +50,20 @@ export declare class SdTable {
|
|
|
48
50
|
scrolledRight: boolean;
|
|
49
51
|
rowCount: number;
|
|
50
52
|
loadingScrollTop: number;
|
|
53
|
+
noDataBodyHeight: number;
|
|
51
54
|
autoThead: boolean;
|
|
52
55
|
autoTbody: boolean;
|
|
53
56
|
private vsStart;
|
|
54
57
|
private vsEnd;
|
|
55
58
|
private lastReachEndNotifiedRowCount;
|
|
56
59
|
private scrollContainer;
|
|
60
|
+
private noDataContentEl;
|
|
61
|
+
private noDataContentResizeObserver?;
|
|
57
62
|
private onScroll?;
|
|
58
63
|
private spanRegistry;
|
|
64
|
+
private useFrameRegistry;
|
|
59
65
|
private cellClassRegistry;
|
|
66
|
+
private separatorPrevIndices;
|
|
60
67
|
private rowIndexMap;
|
|
61
68
|
private rebuildRowIndexMap;
|
|
62
69
|
private resolveRowIndex;
|
|
@@ -79,6 +86,8 @@ export declare class SdTable {
|
|
|
79
86
|
componentWillLoad(): void;
|
|
80
87
|
componentDidLoad(): void;
|
|
81
88
|
disconnectedCallback(): void;
|
|
89
|
+
private syncNoDataContentObserver;
|
|
90
|
+
private observeNoDataContentHeight;
|
|
82
91
|
private queryChildEl;
|
|
83
92
|
private queryAllTr;
|
|
84
93
|
private pushRowsToChildren;
|
|
@@ -96,6 +105,9 @@ export declare class SdTable {
|
|
|
96
105
|
rowCount: number;
|
|
97
106
|
};
|
|
98
107
|
getConfigSync(): SdTableConfig;
|
|
108
|
+
registerUseFrameSync(rowKey: string, field: string): void;
|
|
109
|
+
unregisterUseFrameSync(rowKey: string, field: string): void;
|
|
110
|
+
hasUseFrameInRowSync(rowKey: string): boolean;
|
|
99
111
|
isRowSelectedSync(row: Row): boolean;
|
|
100
112
|
isRowSelected(row: Row): Promise<boolean>;
|
|
101
113
|
updateRowSelectSync(row: Row): void;
|
|
@@ -109,20 +121,8 @@ export declare class SdTable {
|
|
|
109
121
|
private changeRowsPerPage;
|
|
110
122
|
private get lastPageNumber();
|
|
111
123
|
handleResize(index: number, event: MouseEvent, reversed?: boolean): void;
|
|
112
|
-
getStickyStyleSync(colIdx: number):
|
|
113
|
-
|
|
114
|
-
'--sticky-right-offset': string;
|
|
115
|
-
width: string;
|
|
116
|
-
minWidth: string;
|
|
117
|
-
maxWidth: string;
|
|
118
|
-
};
|
|
119
|
-
getStickyStyle(colIdx: number): Promise<{
|
|
120
|
-
'--sticky-left-offset': string;
|
|
121
|
-
'--sticky-right-offset': string;
|
|
122
|
-
width: string;
|
|
123
|
-
minWidth: string;
|
|
124
|
-
maxWidth: string;
|
|
125
|
-
}>;
|
|
124
|
+
getStickyStyleSync(colIdx: number): Record<string, string>;
|
|
125
|
+
getStickyStyle(colIdx: number): Promise<Record<string, string>>;
|
|
126
126
|
private spanKey;
|
|
127
127
|
private requestAllTrUpdate;
|
|
128
128
|
registerSpanSync(rowKey: string, field: string, rowspan: number, colspan: number): void;
|
|
@@ -136,7 +136,11 @@ export declare class SdTable {
|
|
|
136
136
|
getCellClassSync(rowKey: string, field: string): string | undefined;
|
|
137
137
|
hasRowspanSync(): boolean;
|
|
138
138
|
isCoveredSync(rowKey: string, colIdx: number, columns: SdTableColumn[]): boolean;
|
|
139
|
+
private resolveVisualBottom;
|
|
139
140
|
isVisualLastRowSync(rowKey: string, field: string): boolean;
|
|
141
|
+
registerSeparatorSync(prevRowKey: string): void;
|
|
142
|
+
unregisterSeparatorSync(prevRowKey: string): void;
|
|
143
|
+
isVisualLastRowBeforeSeparatorSync(rowKey: string, field: string): boolean;
|
|
140
144
|
setRowCountSync(count: number): void;
|
|
141
145
|
setRowCount(count: number): Promise<void>;
|
|
142
146
|
calculateVisibleRange(scrollTop: number, containerHeight: number): {
|
|
@@ -6,10 +6,15 @@ export declare class SdTd {
|
|
|
6
6
|
rowspan?: number;
|
|
7
7
|
colspan?: number;
|
|
8
8
|
sdClass?: string;
|
|
9
|
+
dividerLeft: boolean;
|
|
10
|
+
dividerRight: boolean;
|
|
11
|
+
useFrame: boolean;
|
|
9
12
|
handleFieldChange(_newField: string, oldField: string): void;
|
|
10
13
|
handleRowKeyChange(_newKey: string, oldKey: string): void;
|
|
11
14
|
handleSpanChange(): void;
|
|
12
15
|
handleSdClassChange(): void;
|
|
16
|
+
handleDividerChange(): void;
|
|
17
|
+
handleUseFieldChange(): void;
|
|
13
18
|
componentWillLoad(): void;
|
|
14
19
|
componentDidLoad(): void;
|
|
15
20
|
connectedCallback(): void;
|
|
@@ -18,6 +23,7 @@ export declare class SdTd {
|
|
|
18
23
|
private requestParentTrUpdate;
|
|
19
24
|
private syncSpanRegistration;
|
|
20
25
|
private syncCellClassRegistration;
|
|
26
|
+
private syncUseFieldRegistration;
|
|
21
27
|
private syncSlotName;
|
|
22
28
|
render(): any;
|
|
23
29
|
}
|