@sellmate/design-system 1.2.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/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +270 -4
- package/dist/cjs/sd-calendar_2.cjs.entry.js +262 -0
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-box.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-picker.config-D3lTpa6W.js +37 -0
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +15 -13
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +37 -37
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-field_3.cjs.entry.js +7 -7
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +8 -8
- package/dist/cjs/sd-popover.cjs.entry.js +3 -3
- package/dist/cjs/sd-popup.cjs.entry.js +1 -1
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +2 -2
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.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 +2 -2
- 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 +1 -1
- 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 +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.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 +1 -1
- 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 +2 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
- package/dist/collection/components/sd-field/sd-field.js +4 -4
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-form/sd-form.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- 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-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +4 -4
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- 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 +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -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/components/{p-Ch5Yu1qd.js → p-B8o25hOw.js} +1 -1
- package/dist/components/{p-BY1LGlfc.js → p-BFC3Etk2.js} +1 -1
- package/dist/components/p-BQn6le_Y.js +1 -0
- package/dist/components/{p-nOCYbyW4.js → p-BRk9YZBe.js} +1 -1
- package/dist/components/{p-Jts7ueOa.js → p-BRxXhFqt.js} +1 -1
- package/dist/components/{p-Cktiasfd.js → p-BSfu4DO2.js} +1 -1
- package/dist/components/{p-B3D43x7F.js → p-BZabVWBD.js} +1 -1
- package/dist/components/{p-BsM-fwYd.js → p-BeBiPTbd.js} +1 -1
- package/dist/components/{p-Dl8TIEQu.js → p-BjpbUGud.js} +1 -1
- package/dist/components/p-BkWaPXXj.js +1 -0
- package/dist/components/{p-DL1ac1QS.js → p-Bs1Z5QtN.js} +1 -1
- package/dist/components/{p-teN3CfOr.js → p-BwPmM1Pm.js} +1 -1
- package/dist/components/{p-DBFgk0rX.js → p-C3fqSH7A.js} +1 -1
- package/dist/components/{p-D0Jiw-Zk.js → p-CIUE4qr7.js} +1 -1
- package/dist/components/{p-BXCyVrle.js → p-CLxVZFEG.js} +1 -1
- package/dist/components/{p-C5CH-s6a.js → p-CPuyhF6g.js} +1 -1
- package/dist/components/{p-B-sK7I83.js → p-CpgTSxf0.js} +1 -1
- package/dist/components/p-Cx_d5vsS.js +1 -0
- package/dist/components/{p-CQI40kiY.js → p-CyObYB-g.js} +1 -1
- package/dist/components/{p-DFLCjX1a.js → p-D7nYP2a4.js} +1 -1
- package/dist/components/{p-wCNRlKLa.js → p-DS7Ypvt5.js} +1 -1
- package/dist/components/{p-CsVAx6KV.js → p-Da5i_Sa6.js} +1 -1
- package/dist/components/{p-CdOHomUp.js → p-DlREBZ-C.js} +1 -1
- package/dist/components/p-DnW8EAqd.js +1 -0
- package/dist/components/{p-BorUSgEK.js → p-FKKk7Bk8.js} +1 -1
- package/dist/components/{p-CRL7TjSB.js → p-INdVvadB.js} +1 -1
- package/dist/components/p-JlZdKw4C.js +1 -0
- package/dist/components/{p-C7WLft_0.js → p-VuxN5d2D.js} +1 -1
- package/dist/components/p-WAsath62.js +1 -0
- package/dist/components/{p-u8teDaMa.js → p-X-8I-A3g.js} +1 -1
- package/dist/components/{p-arZfxxPn.js → p-Z5Vk33zf.js} +1 -1
- package/dist/components/{p-BAcmO7w0.js → p-kSfaCwf1.js} +1 -1
- package/dist/components/p-oyZgWRnC.js +1 -0
- package/dist/components/{p-2wB9cing.js → p-t161LJqb.js} +1 -1
- package/dist/components/{p-CK9ciBIR.js → p-wOAxmZ1V.js} +1 -1
- package/dist/components/{p-B7mpdnNl.js → p-xX3QT-8K.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker-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.esm.js +1 -1
- package/dist/design-system/{p-5ed0becf.entry.js → p-00854a0a.entry.js} +1 -1
- package/dist/design-system/{p-1baa05ae.entry.js → p-00b2c850.entry.js} +1 -1
- package/dist/design-system/{p-8f22106e.entry.js → p-03badf68.entry.js} +1 -1
- package/dist/design-system/{p-f4d73a0c.entry.js → p-11b904a3.entry.js} +1 -1
- package/dist/design-system/{p-78cc0289.entry.js → p-32e2d71e.entry.js} +1 -1
- package/dist/design-system/{p-a6545130.entry.js → p-399d416c.entry.js} +1 -1
- package/dist/design-system/{p-e2334c1c.entry.js → p-3b8954d9.entry.js} +1 -1
- package/dist/design-system/{p-435ae69e.entry.js → p-481e6934.entry.js} +1 -1
- package/dist/design-system/{p-501fae20.entry.js → p-4a91875c.entry.js} +1 -1
- package/dist/design-system/{p-66af0ba0.entry.js → p-563b6fc2.entry.js} +1 -1
- package/dist/design-system/{p-b3c144ff.entry.js → p-679bce6c.entry.js} +1 -1
- package/dist/design-system/{p-5705e6d6.entry.js → p-74bf0ed9.entry.js} +1 -1
- package/dist/design-system/{p-87c868c3.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-d3212544.entry.js → p-9b9bf9db.entry.js} +1 -1
- package/dist/design-system/{p-2c63404f.entry.js → p-9f7f1b8b.entry.js} +1 -1
- package/dist/design-system/p-BGtUaScP.js +1 -0
- package/dist/design-system/p-BQn6le_Y.js +1 -0
- package/dist/design-system/p-TF8_Lyhq.js +1 -0
- package/dist/design-system/{p-100f5887.entry.js → p-a640e509.entry.js} +1 -1
- package/dist/design-system/{p-b0aad445.entry.js → p-a71d4947.entry.js} +1 -1
- package/dist/design-system/{p-fc973500.entry.js → p-a7ea1cf0.entry.js} +1 -1
- package/dist/design-system/{p-44d05570.entry.js → p-a97033a2.entry.js} +1 -1
- package/dist/design-system/{p-ae2d45a2.entry.js → p-a98f9a29.entry.js} +1 -1
- package/dist/design-system/{p-de8bb9ba.entry.js → p-ae117afa.entry.js} +1 -1
- package/dist/design-system/{p-5cbaf1db.entry.js → p-c7099e9e.entry.js} +1 -1
- package/dist/design-system/{p-8ee990bd.entry.js → p-cc97f4b4.entry.js} +1 -1
- package/dist/design-system/{p-04fdb4b1.entry.js → p-d39e515d.entry.js} +1 -1
- package/dist/design-system/{p-d30c823e.entry.js → p-dbeaeb31.entry.js} +1 -1
- package/dist/design-system/{p-5f1c39b8.entry.js → p-e23dac79.entry.js} +1 -1
- package/dist/design-system/{p-857c44e8.entry.js → p-e611dcd4.entry.js} +1 -1
- package/dist/design-system/{p-77690440.entry.js → p-e8e64511.entry.js} +1 -1
- package/dist/design-system/{p-0fe603a4.entry.js → p-e902a3f4.entry.js} +1 -1
- package/dist/design-system/{p-18c5ae1a.entry.js → p-f7074386.entry.js} +1 -1
- package/dist/design-system/{p-05611ff7.entry.js → p-f721a6c6.entry.js} +1 -1
- package/dist/design-system/{p-caee95b0.entry.js → p-fc5c4f85.entry.js} +1 -1
- package/dist/design-system/{p-43e97572.entry.js → p-fe3ae346.entry.js} +1 -1
- package/dist/design-system/p-ffaa4b5d.entry.js +1 -0
- package/dist/esm/component.datepicker-BQn6le_Y.js +119 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +269 -3
- package/dist/esm/sd-calendar_2.entry.js +259 -0
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +3 -3
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-box.entry.js +2 -2
- package/dist/esm/sd-date-picker.config-CGEE3DkI.js +34 -0
- package/dist/esm/sd-date-picker_7.entry.js +15 -13
- package/dist/esm/sd-date-range-picker-calendar.entry.js +10 -10
- package/dist/esm/sd-dropdown-button.entry.js +3 -3
- package/dist/esm/sd-field_3.entry.js +7 -7
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +2 -2
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/sd-linear-progress.entry.js +1 -1
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +8 -8
- package/dist/esm/sd-popover.entry.js +3 -3
- package/dist/esm/sd-popup.entry.js +1 -1
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +2 -2
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-text-link.entry.js +3 -3
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.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.d.ts +6 -52
- package/dist/types/index.d.ts +4 -3
- package/hydrate/index.js +871 -950
- package/hydrate/index.mjs +871 -950
- 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 -219
- 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-B6cqMQaM.js +0 -1
- package/dist/components/p-BL0ZcHK8.js +0 -1
- package/dist/components/p-Bm3W_eBv.js +0 -1
- package/dist/components/p-D5F7wCNo.js +0 -1
- package/dist/components/p-DTrMR0rx.js +0 -1
- package/dist/components/p-DeQcDHpn.js +0 -1
- package/dist/components/p-DfK4DiDI.js +0 -1
- package/dist/components/p-DyAnn9ea.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-2a1ef965.entry.js +0 -1
- package/dist/design-system/p-790165f8.entry.js +0 -1
- package/dist/design-system/p-80466582.entry.js +0 -1
- package/dist/design-system/p-8db7d8f2.entry.js +0 -1
- package/dist/design-system/p-B6cqMQaM.js +0 -1
- package/dist/design-system/p-Ce0cmS4R.js +0 -1
- package/dist/design-system/p-DTrMR0rx.js +0 -1
- package/dist/design-system/p-d8c41313.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 -216
- 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
|
@@ -65,17 +65,17 @@ const SdPopover = class {
|
|
|
65
65
|
const leftLink = this.leftLink;
|
|
66
66
|
const button = this.button;
|
|
67
67
|
const hasFooter = !!leftLink || !!button;
|
|
68
|
-
return (index.h(index.Fragment, { key: '
|
|
68
|
+
return (index.h(index.Fragment, { key: 'b50da46efd85cdb48f66b24c591ab662a9fd62cb' }, this.label !== '' ? (index.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) })) : (index.h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (index.h("sd-floating-portal", { key: 'a31d6c00a9b61826fa412247f603d78874a3dba6', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, index.h("div", { key: '11020f31a14dbb7325b30ebc48315b344662cf43', class: {
|
|
69
69
|
'sd-floating-menu': true,
|
|
70
70
|
'sd-floating-menu--popover': true,
|
|
71
71
|
[`sd-floating-menu--${placement}`]: true,
|
|
72
72
|
[menuClass]: menuClass !== '',
|
|
73
73
|
}, style: {
|
|
74
74
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
75
|
-
} }, index.h("i", { key: '
|
|
75
|
+
} }, index.h("i", { key: '51b35ade68a68c92b7488b97f2b1808d7fcf33e5', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, index.h(tooltipArrow.TooltipArrow, { key: 'd491c997e07a2bb2d4a3ad3624d5098457f91c05' })), index.h("div", { key: '19bfc90b0c5da4fe736aad3b8b2061ac58d8efb4', class: "sd-floating-menu__content" }, this.menuTitle && index.h("div", { key: '31875711b7cd54c0c48f0017ac94365c3cc97821', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (index.h("div", { key: '9c78a748831045f96fe48fd2ae9dcd85b1335aa0', class: "sd-floating-menu__messages" }, messages.map((message, i) => (index.h("div", { key: `msg-${i}` }, message))))), hasFooter && (index.h("div", { key: '787f0d2ac133bef9f72ce248b943b0ff9883db9e', class: {
|
|
76
76
|
'sd-floating-menu__buttons': true,
|
|
77
77
|
'sd-floating-menu__buttons--with-link': !!leftLink,
|
|
78
|
-
} }, leftLink && (index.h("sd-text-link", { key: '
|
|
78
|
+
} }, leftLink && (index.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 && (index.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 && (index.h("sd-ghost-button", { key: '032461787d74367ea047c088e08704ce7409f74b', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
SdPopover.style = sdPopoverCss();
|
|
@@ -104,7 +104,7 @@ const SdPopup = class {
|
|
|
104
104
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
105
105
|
...this.submitButtonProps,
|
|
106
106
|
};
|
|
107
|
-
return (index.h("div", { key: '
|
|
107
|
+
return (index.h("div", { key: '0c9f1cd261fa533044309342cfbaae8f5b87ae31', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, index.h("header", { key: 'd8aa4db4d150419f5653fd93e204cc4bd865c35e', class: "sd-popup__header" }, index.h("h2", { key: 'fce95fce48a91c3a2b60f0b1169113cd2ff157d6', class: "sd-popup__title" }, this.popupTitle)), index.h("div", { key: 'c730895828c14a6a80fe6bebecb08f386cc84a78', class: "sd-popup__body" }, index.h("slot", { key: 'f3402c32fdc55794fb2c877a41c9f73e3c0d6d9f' })), this.useFooter && (index.h("footer", { key: '4b04ebc0dccc07dd9466c06c940d3444346603ba', class: "sd-popup__footer" }, index.h("div", { key: '78b35347121652d647e3601e6c6164e8e21288ca', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, index.h("slot", { key: '98836c28e7de97466cf4285c0458a8709c3788bb', name: "footer-left" })), index.h("sd-button", { key: 'd9ab45765c66a2f86aec2df9fc056fa1f4605259', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
SdPopup.style = sdPopupCss();
|
|
@@ -227,7 +227,7 @@ const SdPortal = class {
|
|
|
227
227
|
this.close.emit();
|
|
228
228
|
}
|
|
229
229
|
render() {
|
|
230
|
-
return index.h("slot", { key: '
|
|
230
|
+
return index.h("slot", { key: '1f46253fe0f70fda84643e8d3025c1fd47090f5c' });
|
|
231
231
|
}
|
|
232
232
|
static get watchers() { return {
|
|
233
233
|
"open": [{
|
|
@@ -178,7 +178,7 @@ const SdRadioButton = class {
|
|
|
178
178
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
179
179
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
180
180
|
};
|
|
181
|
-
return (index.h("div", { key: '
|
|
181
|
+
return (index.h("div", { key: 'd1f572315ee66c5defebc4386e815fb21928b548', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
182
182
|
const isSelected = this.isOptionSelected(option);
|
|
183
183
|
const isDisabled = this.isOptionDisabled(option);
|
|
184
184
|
return (index.h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, index.h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && index.h("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -118,7 +118,7 @@ const SdRadio = class {
|
|
|
118
118
|
'--sd-radio-disabled-dot': RADIO_COLORS.disabled.dot,
|
|
119
119
|
'--sd-radio-label-color': RADIO_COLORS.label,
|
|
120
120
|
};
|
|
121
|
-
return (index.h("label", { key: '
|
|
121
|
+
return (index.h("label", { key: '2b7819249e5070a22b626530011db4a8e56194f1', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, index.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 }), index.h("span", { key: 'eb665c5f8c6202b66b65b6b120f144970fba0a38', class: "sd-radio__circle" }), this.label && index.h("span", { key: '3d0db13e083bacb4cb7ace9129fcfcd61f18dfc7', class: "sd-radio__label" }, this.label)));
|
|
122
122
|
}
|
|
123
123
|
static get watchers() { return {
|
|
124
124
|
"value": [{
|
|
@@ -79,7 +79,7 @@ const SdSelectListItem = class {
|
|
|
79
79
|
return (
|
|
80
80
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
81
81
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
82
|
-
index.h("div", { key: '
|
|
82
|
+
index.h("div", { key: '93e8bf04e69d9e6f066952570ed06076bdd17e57', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
83
83
|
'sd-select-list-item': true,
|
|
84
84
|
'sd-select-list-item--group': isGroup,
|
|
85
85
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -89,7 +89,7 @@ const SdSelectListItem = class {
|
|
|
89
89
|
'sd-select-list-item--focused': this.isFocused,
|
|
90
90
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
91
91
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
92
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '
|
|
92
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.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 })), index.h("span", { key: '158e45d52b3b5394f7c4e2ffff97d23f83ce5e49', class: "sd-select-list-item__label" }, this.option.label), this.countInfo && (index.h("span", { key: '48adac9df92cd19f5e2b39bed828a9ad7c22c945', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -142,15 +142,15 @@ const SdSelectListItemSearch = class {
|
|
|
142
142
|
clearTimeout(this.debounceTimer);
|
|
143
143
|
}
|
|
144
144
|
render() {
|
|
145
|
-
return (index.h("div", { key: '
|
|
145
|
+
return (index.h("div", { key: '0b8e55a2f39d72bc6fc5c7d8c6262c9fffb52ba7', class: {
|
|
146
146
|
'sd-select-list-item-search': true,
|
|
147
147
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
148
|
-
} }, index.h("div", { key: '
|
|
148
|
+
} }, index.h("div", { key: '30c4f5d6c8002579da129cebb06c026c278fb555', class: "sd-select-list-item-search__inner" }, index.h("sd-icon", { key: 'be9076a1fd6d7fd9a1990fd9e32aebd04c1bc4b4', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), index.h("input", { key: 'c9400184f607d0385e5e8c25615e1a955256c6f4', ref: el => {
|
|
149
149
|
this.inputEl = el;
|
|
150
|
-
}, 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() }), index.h("button", { key: '
|
|
150
|
+
}, 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() }), index.h("button", { key: 'dcb18eff068dea3fcb9144c4dfd4500806f68753', type: "button", class: {
|
|
151
151
|
'sd-select-list-item-search__clear': true,
|
|
152
152
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
153
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '
|
|
153
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: 'beb2cf23258aa1eaff2c9fdb63dae99570691af1', name: "close", size: 12, color: "#888888" })))));
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
@@ -265,15 +265,15 @@ const SdSelect = class {
|
|
|
265
265
|
this.closeDropdown();
|
|
266
266
|
},
|
|
267
267
|
};
|
|
268
|
-
return (index.h("sd-field", { key: '
|
|
268
|
+
return (index.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: () => {
|
|
269
269
|
this.hovered = true;
|
|
270
270
|
}, onMouseLeave: () => {
|
|
271
271
|
this.hovered = false;
|
|
272
|
-
} }, index.h("div", { key: '
|
|
272
|
+
} }, index.h("div", { key: 'f04f2f331c27745035c35d96d5262398065589a8', class: "sd-select", ref: el => {
|
|
273
273
|
this.triggerRef = el;
|
|
274
|
-
} }, index.h("sd-select-trigger", { key: '
|
|
274
|
+
} }, index.h("sd-select-trigger", { key: 'b66e83ff248618c815b155f27445f3da9e91361b', ref: el => {
|
|
275
275
|
this.triggerComponentRef = el;
|
|
276
|
-
}, 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) && (index.h("sd-portal", { key: '
|
|
276
|
+
}, 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) && (index.h("sd-portal", { key: 'bd5b46d8e4849d235e39a9d9cfc549fdbe260076', ...portalProps }, index.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) })))));
|
|
277
277
|
}
|
|
278
278
|
static get watchers() { return {
|
|
279
279
|
"isOpen": [{
|
|
@@ -637,9 +637,9 @@ const SdSelectListbox = class {
|
|
|
637
637
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
638
638
|
'--listbox-radius': `${sdSelect_config.LIST_BOX_LAYOUT.radius}px`,
|
|
639
639
|
};
|
|
640
|
-
return (index.h("div", { key: '
|
|
640
|
+
return (index.h("div", { key: '4173255a866459bf0aeb98d517263d12f1c39fa5', class: "sd-select-listbox", style: cssVars }, this.showSearch && (index.h("sd-select-list-item-search", { key: '79e7d48d7234ebfd32d3cd242822dfa93a73c151', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), index.h("div", { key: '22981c1e049d0d526af06bb5b563de5130c14477', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
641
641
|
this.listEl = el;
|
|
642
|
-
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '
|
|
642
|
+
} }, this.showSelectAll && (index.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 ? (index.h("div", { class: "sd-select-listbox__empty" }, sdSelect_config.EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (index.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) })))))));
|
|
643
643
|
}
|
|
644
644
|
static get watchers() { return {
|
|
645
645
|
"searchKeyword": [{
|
|
@@ -699,7 +699,7 @@ const SdSelectTrigger = class {
|
|
|
699
699
|
? sdSelect_config.SELECT_COLORS.icon.disabled
|
|
700
700
|
: sdSelect_config.SELECT_COLORS.icon.default,
|
|
701
701
|
};
|
|
702
|
-
return (index.h("div", { key: '
|
|
702
|
+
return (index.h("div", { key: '6694f35a396f368d5df9860db30d817beddb8bec', ref: el => {
|
|
703
703
|
this.triggerEl = el;
|
|
704
704
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
705
705
|
'sd-select-trigger': true,
|
|
@@ -710,7 +710,7 @@ const SdSelectTrigger = class {
|
|
|
710
710
|
e.preventDefault();
|
|
711
711
|
this.handleClick();
|
|
712
712
|
}
|
|
713
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '
|
|
713
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: 'd8ff247ca362a8fc3677d9803261343a1e891298', class: "sd-select-trigger__content" }, index.h("span", { key: 'cd81a7c7c135372aad80fa9391b160337632643c', class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택')), index.h("sd-icon", { key: '838c12e2a9ce06036eee766ffd2f88f3215b8420', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
714
714
|
'sd-select-trigger__icon': true,
|
|
715
715
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
716
716
|
} }))));
|
|
@@ -102,7 +102,7 @@ const SdSwitch = class {
|
|
|
102
102
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
103
103
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
104
104
|
};
|
|
105
|
-
return (index.h("label", { key: '
|
|
105
|
+
return (index.h("label", { key: 'ebb195a1bb93ae476b4bf3e697623809d626eed6', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, index.h("input", { key: 'a6de6298d35c54ad83dc6285b90e67c8d3564d15', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), index.h("div", { key: '7881f46be572edcfc82888564a7f85ad4207dd8e', class: "sd-switch__track" }, index.h("div", { key: 'c08c9d5894a6f9ddf3ecdaaa9253628478479043', class: "sd-switch__knob" })), this.label && index.h("span", { key: '4e01b185502829d8fb647d3eafaaf6565489b2f3', class: "sd-switch__label" }, this.label)));
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -875,25 +875,25 @@ const SdTable = class {
|
|
|
875
875
|
'--table-body-line-height': `${sdTable_config.TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
876
876
|
'--table-body-text-decoration': sdTable_config.TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
877
877
|
};
|
|
878
|
-
return (index.h(index.Host, { key: '
|
|
878
|
+
return (index.h(index.Host, { key: '02d716bdac3832710bf58d63741aeeb4b04d434b', style: hostStyle }, index.h("div", { key: '88faad346e032ca727375889aa0552a330f5799a', class: "sd-table__container", style: {
|
|
879
879
|
'--table-width': this.width,
|
|
880
880
|
'--table-height': effectiveTableHeight,
|
|
881
881
|
'--table-container-height': `calc(${effectiveTableHeight} - ${paginationHeight}px)`,
|
|
882
|
-
} }, index.h("div", { key: '
|
|
882
|
+
} }, index.h("div", { key: '783934f349e0da5bab77cbb44cc12f0dfeb9ec71', class: {
|
|
883
883
|
'sd-table__wrapper': true,
|
|
884
884
|
'sd-table__wrapper--radius-use-top': this.radius === 'useTop',
|
|
885
|
-
} }, index.h("div", { key: '
|
|
885
|
+
} }, index.h("div", { key: 'd3a76ad0e853c6adf16df633c0e0b7f5bb580f24', class: {
|
|
886
886
|
'sd-table__scroll-container': true,
|
|
887
887
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
888
888
|
'sd-table__scroll-container--no-data': isNoData,
|
|
889
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
889
|
+
} }, this.isLoading && (index.h("div", { key: 'cc77ce58ff0eebf3fc1d7dd9dbf11578f94d4dd1', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: 'bda7ed774342089a23d13b49a506b04527026275', indeterminate: true }))), isNoData && (index.h(index.h.Fragment, null, index.h("div", { key: 'f2ce89d0ae9eefe0f0f8509e477756cb74dbef86', class: "sd-table__no-data-header-overlay" }), index.h("div", { key: '84d739563123d0f0fc33166b1a6e80021ba06e1c', class: "sd-table__no-data" }, index.h("div", { key: '3507f718a25b79c44fdf283fb41356ab72f2a384', class: "sd-table__no-data-content", ref: el => {
|
|
890
890
|
this.noDataContentEl = el;
|
|
891
891
|
if (el)
|
|
892
892
|
this.syncNoDataContentObserver();
|
|
893
|
-
} }, index.h("slot", { key: '
|
|
893
|
+
} }, index.h("slot", { key: '818129819b2ff4a6f9fc1224dc59a9aa5861296d', name: "no-data" }, index.h("span", { key: 'c03cfb713e6dadd5ab4c60d7d27fd502d7aa9348' }, this.resolvedNoDataLabel)))))), index.h("table", { key: '8864714a828069985bac6535bc40cbb043dfcb28', class: this.tableClasses }, this.autoThead ? (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-thead", { rows: this.rows ?? [] }))) : (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
894
894
|
this.pagination.rowsPerPage > 0 &&
|
|
895
895
|
this.rowCount > 0 &&
|
|
896
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
896
|
+
!this.useVirtualScroll && (index.h("div", { key: 'bdac4b4d551152ec7ee0cdc31bfb992748836928', class: "sd-table__pagination" }, index.h("sd-pagination", { key: '2c60fff7f8ac3a3bd22da2173b8a9187bb686ddf', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (index.h("sd-select", { key: '7a662f58e13c15e705341773570f899f503f12c0', value: this.useInternalPagination
|
|
897
897
|
? this.innerRowsPerPage
|
|
898
898
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
899
899
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -188,7 +188,7 @@ const SdTabs = class {
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
render() {
|
|
191
|
-
return (index.h("div", { key: '
|
|
191
|
+
return (index.h("div", { key: '880f1aa80c29f2d578ffe2d5e5e5e0c008c898d3', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
192
192
|
const badgeName = this.getBadgeName(tab);
|
|
193
193
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
194
194
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -207,7 +207,7 @@ const SdTag = class {
|
|
|
207
207
|
render() {
|
|
208
208
|
const config = this.resolvedConfig;
|
|
209
209
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
210
|
-
return (index.h("span", { key: '
|
|
210
|
+
return (index.h("span", { key: '57f3c3f9ad53059fabff205cb44ffa3d1da9a711', class: "sd-tag", style: {
|
|
211
211
|
'--sd-tag-background': config.background,
|
|
212
212
|
'--sd-tag-content': config.content,
|
|
213
213
|
'--sd-tag-height': config.height,
|
|
@@ -217,7 +217,7 @@ const SdTag = class {
|
|
|
217
217
|
'--sd-tag-font-weight': config.fontWeight,
|
|
218
218
|
'--sd-tag-line-height': config.lineHeight,
|
|
219
219
|
'--sd-tag-radius': config.radius,
|
|
220
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '
|
|
220
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '3360f36d18f073cd24699b6b8db2e731fda351ac', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
SdTag.style = sdTagCss();
|
|
@@ -149,7 +149,7 @@ const SdTd = class {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
render() {
|
|
152
|
-
return (index.h(index.Host, { key: '
|
|
152
|
+
return (index.h(index.Host, { key: '7d51ea5f02ba2df099f4440be26c2f0be8a73a6b', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '9a6a634e2bcd206ec9099c6be738c3853d0cbebf' })));
|
|
153
153
|
}
|
|
154
154
|
static get watchers() { return {
|
|
155
155
|
"field": [{
|
|
@@ -76,7 +76,7 @@ const SdTextLink = class {
|
|
|
76
76
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
77
77
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
78
78
|
};
|
|
79
|
-
return (index.h("span", { key: '
|
|
79
|
+
return (index.h("span", { key: '11d2153cc91818c1214e21ffa14bd08249ad1116', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
80
80
|
'sd-text-link': true,
|
|
81
81
|
'sd-text-link--disabled': this.disabled,
|
|
82
82
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -84,13 +84,13 @@ const SdTextLink = class {
|
|
|
84
84
|
e.preventDefault();
|
|
85
85
|
this.handleClick();
|
|
86
86
|
}
|
|
87
|
-
} }, this.icon && (index.h("sd-icon", { key: '
|
|
87
|
+
} }, this.icon && (index.h("sd-icon", { key: '23972d53b4968c9bdef9b54dfa785e658ba117ef', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: '5e99a6c1151093929086ec4398b93d7db590d959', class: labelClassName }, this.label), this.useArrow && (index.h("span", { key: 'b814759278cefe229a5321556374438f281ce0f3', class: "sd-text-link__arrow", style: {
|
|
88
88
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
89
89
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
90
90
|
display: 'inline-flex',
|
|
91
91
|
alignItems: 'center',
|
|
92
92
|
justifyContent: 'center',
|
|
93
|
-
} }, index.h("sd-icon", { key: '
|
|
93
|
+
} }, index.h("sd-icon", { key: 'dfe3286eaeef9a176f5ff1a69950713e2712a550', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -234,7 +234,7 @@ const SdToastContainer = class {
|
|
|
234
234
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
235
235
|
const indexMap = new Map();
|
|
236
236
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
237
|
-
return (index.h("div", { key: '
|
|
237
|
+
return (index.h("div", { key: 'bc3c9591b6453eed7df462841e29784c29b3aeef', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
238
238
|
this.expanded = true;
|
|
239
239
|
this.pauseTimers();
|
|
240
240
|
}, onMouseLeave: () => {
|
|
@@ -84,12 +84,12 @@ const SdToast = class {
|
|
|
84
84
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
85
85
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
86
86
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
87
|
-
return (index.h("div", { key: '
|
|
87
|
+
return (index.h("div", { key: 'db3ffaf51dc96c39c05558017f25929c679a59df', style: {
|
|
88
88
|
'--sd-toast-bg': typeConfig.bg,
|
|
89
89
|
'--sd-toast-text': typeConfig.content,
|
|
90
90
|
'--sd-toast-icon': iconColor,
|
|
91
91
|
'--sd-toast-link': linkColor,
|
|
92
|
-
} }, index.h("div", { key: '
|
|
92
|
+
} }, index.h("div", { key: '92344f5bb95b0d4787591207f2e017d7dd177091', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '991db58b2cb019dd3a787e000e9d8813014bbb09', class: "sd-toast__icon" }, index.h("sd-icon", { key: '24d53cd77fdea82ec07663a8968493ec2b794751', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '70cfad4ef389cca798be9baeac99bfc41efcc615', class: "sd-toast__content" }, index.h("span", { key: '5927023435b17dc25ee07630fc4ae4568aadd9b9', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '410c024fd81ebcc78175c1855a86f590566d1a81', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: 'd85287e7ef796a11f850a0ce5cde87f5881fa5c9', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '55a6bf6457bd89254f6eb01072d46a0edbb8b510', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
SdToast.style = sdToastCss();
|
|
@@ -120,7 +120,7 @@ const SdToggle = class {
|
|
|
120
120
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
121
121
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
122
122
|
};
|
|
123
|
-
return (index.h("label", { key: '
|
|
123
|
+
return (index.h("label", { key: 'b16577aa25863a9dc337314d9059328799c1cd1e', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '6130825b74df8a573f4e062671fd694508759e82', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
SdToggle.style = sdToggleCss();
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var component_datepicker = require('./component.datepicker-Cw_-oidk.js');
|
|
4
|
+
|
|
5
|
+
const CALENDAR_LAYOUT = {
|
|
6
|
+
bg: component_datepicker.datepickerTokens.datepicker.calendar.bg,
|
|
7
|
+
paddingXY: component_datepicker.datepickerTokens.datepicker.calendar.paddingXY,
|
|
8
|
+
gap: component_datepicker.datepickerTokens.datepicker.calendar.gap,
|
|
9
|
+
radius: component_datepicker.datepickerTokens.datepicker.calendar.radius,
|
|
10
|
+
header: {
|
|
11
|
+
gap: component_datepicker.datepickerTokens.datepicker.calendar.header.gap,
|
|
12
|
+
divider: component_datepicker.datepickerTokens.datepicker.calendar.header.divider,
|
|
13
|
+
fontSize: component_datepicker.datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
14
|
+
lineHeight: component_datepicker.datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
15
|
+
fontWeight: component_datepicker.datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
16
|
+
},
|
|
17
|
+
week: {
|
|
18
|
+
fontSize: component_datepicker.datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
19
|
+
lineHeight: component_datepicker.datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
20
|
+
fontWeight: component_datepicker.datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
21
|
+
color: component_datepicker.datepickerTokens.datepicker.calendar.week.color,
|
|
22
|
+
},
|
|
23
|
+
grid: {
|
|
24
|
+
rowGap: component_datepicker.datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
25
|
+
},
|
|
26
|
+
day: {
|
|
27
|
+
size: component_datepicker.datepickerTokens.datepicker.calendar.day.width,
|
|
28
|
+
circleSize: component_datepicker.datepickerTokens.datepicker.calendar.day.circle.size,
|
|
29
|
+
circleRadius: component_datepicker.datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
30
|
+
defaultText: component_datepicker.datepickerTokens.datepicker.calendar.day.default.text,
|
|
31
|
+
hoverText: component_datepicker.datepickerTokens.datepicker.calendar.day.hover.text,
|
|
32
|
+
hoverBorder: component_datepicker.datepickerTokens.datepicker.calendar.day.hover.border,
|
|
33
|
+
selectBg: component_datepicker.datepickerTokens.datepicker.calendar.day.select.bg,
|
|
34
|
+
selectText: component_datepicker.datepickerTokens.datepicker.calendar.day.select.text,
|
|
35
|
+
disabledText: component_datepicker.datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
36
|
+
fontSize: component_datepicker.datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
37
|
+
lineHeight: component_datepicker.datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
38
|
+
fontWeight: component_datepicker.datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
39
|
+
boldFontWeight: component_datepicker.datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
40
|
+
dot: {
|
|
41
|
+
size: component_datepicker.datepickerTokens.datepicker.calendar.day.dot.size,
|
|
42
|
+
gap: component_datepicker.datepickerTokens.datepicker.calendar.day.dot.gap,
|
|
43
|
+
paddingY: component_datepicker.datepickerTokens.datepicker.calendar.day.dot.paddingY,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
legend: {
|
|
47
|
+
fontSize: component_datepicker.datepickerTokens.datepicker.calendar.legend.typography.fontSize,
|
|
48
|
+
lineHeight: component_datepicker.datepickerTokens.datepicker.calendar.legend.typography.lineHeight,
|
|
49
|
+
fontWeight: component_datepicker.datepickerTokens.datepicker.calendar.legend.typography.fontWeight,
|
|
50
|
+
gap: component_datepicker.datepickerTokens.datepicker.calendar.legend.gap,
|
|
51
|
+
groupGap: component_datepicker.datepickerTokens.datepicker.calendar.legend.group.gap,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
55
|
+
|
|
56
|
+
const daysInMonth = (date) => {
|
|
57
|
+
const year = Number(date.split('-')[0]);
|
|
58
|
+
const month = Number(date.split('-')[1]);
|
|
59
|
+
const daysInMonth = new Date(year, month, 0).getDate(); // month에 0을 전달하면 전달의 마지막 날짜를 반환
|
|
60
|
+
return Array.from({ length: daysInMonth }, (_, i) => i + 1);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const getToday = () => {
|
|
64
|
+
const today = new Date();
|
|
65
|
+
const year = today.getFullYear();
|
|
66
|
+
const month = String(today.getMonth() + 1).padStart(2, '0');
|
|
67
|
+
const day = String(today.getDate()).padStart(2, '0');
|
|
68
|
+
return `${year}-${month}-${day}`;
|
|
69
|
+
};
|
|
70
|
+
const today = getToday();
|
|
71
|
+
|
|
72
|
+
const useDatePicker = () => {
|
|
73
|
+
const formatDate = (year, month, day) => {
|
|
74
|
+
return `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
75
|
+
};
|
|
76
|
+
const createCalendar = (year, month) => {
|
|
77
|
+
const days = daysInMonth(`${year}-${String(month).padStart(2, '0')}-01`);
|
|
78
|
+
const firstDayIndex = new Date(year, month - 1, 1).getDay();
|
|
79
|
+
const prevMonthDays = Array.from({ length: firstDayIndex });
|
|
80
|
+
const remainingDays = (7 - ((days.length + firstDayIndex) % 7)) % 7;
|
|
81
|
+
const afterMonthDays = Array.from({ length: remainingDays });
|
|
82
|
+
return { days, prevMonthDays, afterMonthDays };
|
|
83
|
+
};
|
|
84
|
+
const calculateYearMonth = (year, month, type) => {
|
|
85
|
+
let newYear = year;
|
|
86
|
+
let newMonth = type === 'prev' ? month - 1 : month + 1;
|
|
87
|
+
if (newMonth < 1) {
|
|
88
|
+
newYear = year - 1;
|
|
89
|
+
newMonth = 12;
|
|
90
|
+
}
|
|
91
|
+
else if (newMonth > 12) {
|
|
92
|
+
newYear = year + 1;
|
|
93
|
+
newMonth = 1;
|
|
94
|
+
}
|
|
95
|
+
return { newYear, newMonth };
|
|
96
|
+
};
|
|
97
|
+
return { formatDate, createCalendar, calculateYearMonth };
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
exports.CALENDAR_LAYOUT = CALENDAR_LAYOUT;
|
|
101
|
+
exports.WEEK_LABELS = WEEK_LABELS;
|
|
102
|
+
exports.today = today;
|
|
103
|
+
exports.useDatePicker = useDatePicker;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"components/sd-calendar/sd-calendar.js",
|
|
4
3
|
"components/sd-checkbox/sd-checkbox.js",
|
|
5
4
|
"components/sd-date-box/sd-date-box.js",
|
|
6
5
|
"components/sd-date-range-picker/sd-date-range-picker.js",
|
|
@@ -16,6 +15,7 @@
|
|
|
16
15
|
"components/sd-ghost-button/sd-ghost-button.js",
|
|
17
16
|
"components/sd-badge/sd-badge.js",
|
|
18
17
|
"components/sd-barcode-input/sd-barcode-input.js",
|
|
18
|
+
"components/sd-calendar/sd-calendar.js",
|
|
19
19
|
"components/sd-card/sd-card.js",
|
|
20
20
|
"components/sd-chip/sd-chip.js",
|
|
21
21
|
"components/sd-circle-progress/sd-circle-progress.js",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"components/sd-tag/sd-tag.js",
|
|
25
25
|
"components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js",
|
|
26
26
|
"components/sd-date-picker/sd-date-picker.js",
|
|
27
|
-
"components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js",
|
|
28
27
|
"components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js",
|
|
29
28
|
"components/sd-portal/sd-portal.js",
|
|
30
29
|
"components/sd-field/sd-field.js",
|
|
@@ -39,7 +39,7 @@ export class SdActionModal {
|
|
|
39
39
|
if (this.height != null && this.height !== '') {
|
|
40
40
|
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
41
41
|
}
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '7b59ff655bb9f7a6bc79bb948201a6a532c16b06', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, h("header", { key: '3e141509dc7082e08f448043573de3a8bd8e7cf0', class: "sd-action-modal__header" }, h("h2", { key: 'ba80634b72ce1168d2ab3aec12bdf2a6546ff08d', class: "sd-action-modal__title" }, this.modalTitle), h("div", { key: 'aed32008f0dcaa2deec098ca3c0c9cb1e8f6fb50', class: "sd-action-modal__header-sub" }, h("slot", { key: '32a015a006cbcf26373c64a72e4131b878c53222', name: "header-sub-title" })), h("sd-ghost-button", { key: '574d14cf2d0031dbf43cbb5999d4471a235ca72a', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: '713761da4ad2217c1d762fd56bc391ddc5c9cded', class: "sd-action-modal__body" }, h("slot", { key: 'e224251b153d60cf35056b542c5d9925f4918b7f', name: "body" })), (this.buttonProps != null || this.buttonProps != undefined) && (h("footer", { key: '43d6e4ffed21704ac68689f0742f8d7a6456b0b6', class: "sd-action-modal__footer" }, h("div", { key: 'bd9cce1c5b1fb02156008a4e76c65dc8cb4385aa', class: "sd-action-modal__footer-sub" }, h("slot", { key: '4de818c9ba8fcdb159963b9c9c7ce893fa3216da', name: "bottom-sub-content" })), h("sd-button", { key: 'af9f4c1fd4c6bb482690c2545e0add53c308b95a', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() })))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "sd-action-modal"; }
|
|
45
45
|
static get originalStyleUrls() {
|
|
@@ -4,7 +4,7 @@ export class SdBadge {
|
|
|
4
4
|
color = 'blue';
|
|
5
5
|
render() {
|
|
6
6
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '9ae835aba8a4acde4b918eceda00441ee2c22905', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, h("div", { key: 'c3b648845b5c138026a82a6a2c483d2a56ed2aab', class: "sd-badge__dot" })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "sd-badge"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -102,7 +102,7 @@ export class SdBarcodeInput {
|
|
|
102
102
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
103
103
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
104
104
|
};
|
|
105
|
-
return (h("sd-field", { key: '
|
|
105
|
+
return (h("sd-field", { key: '61eb9beceb57e58323c1477c71147607db834e71', 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, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: '9d4fa219af76d29b2d2e8443af1e66b980d62dd1', class: "sd-barcode-input__content" }, h("slot", { key: '044bf2c4a6e79bb0d6b2a76398107b47d1237662', name: "prefix" }), h("input", { key: '2522d0ded40b69c76872877bede00b1e4e5260d2', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: '8dc300df9f8bd7045f9c9e357925be3b7f2bdbb4', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: '1b3cab2c7fe9caf973e7defff170f64b3fd35daa', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
106
106
|
if (this.disabled)
|
|
107
107
|
return;
|
|
108
108
|
this.internalValue = '';
|
|
@@ -69,13 +69,13 @@ export class SdButton {
|
|
|
69
69
|
const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
|
|
70
70
|
const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
|
|
71
71
|
const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
|
|
72
|
-
return (h("button", { key: '
|
|
72
|
+
return (h("button", { key: '3caa9dff467ec7efa748eecd736296500a222ecb', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
73
73
|
'--sd-button-bg': config.color,
|
|
74
74
|
'--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
75
75
|
'--sd-button-border': PRESET_BORDER_COLORS[preset],
|
|
76
76
|
'--sd-button-content': PRESET_CONTENT_COLORS[preset],
|
|
77
77
|
'--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
78
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
78
|
+
}, onClick: this.handleClick }, h("span", { key: 'cded66e4802956c29064cbdcc12b9dd1066a45c3', class: "sd-button__content" }, validIcon && (h("sd-icon", { key: 'b989e3eb8661e16f052d5c7a292ea316a2b821df', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && h("span", { key: '07695896bd8f11ca8753dcb171b5c7f0e7304c0d', class: "sd-button__label" }, this.label), validRightIcon && (h("sd-icon", { key: 'bfd18c0a390a955d8de99789c86ce39fb605beae', class: "sd-button__icon sd-button__icon--right", name: validRightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })))));
|
|
79
79
|
}
|
|
80
80
|
static get is() { return "sd-button"; }
|
|
81
81
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import datepickerTokens from "../../tokens/generated/component.datepicker.json";
|
|
2
|
+
export const CALENDAR_LAYOUT = {
|
|
3
|
+
bg: datepickerTokens.datepicker.calendar.bg,
|
|
4
|
+
paddingXY: datepickerTokens.datepicker.calendar.paddingXY,
|
|
5
|
+
gap: datepickerTokens.datepicker.calendar.gap,
|
|
6
|
+
radius: datepickerTokens.datepicker.calendar.radius,
|
|
7
|
+
header: {
|
|
8
|
+
gap: datepickerTokens.datepicker.calendar.header.gap,
|
|
9
|
+
divider: datepickerTokens.datepicker.calendar.header.divider,
|
|
10
|
+
fontSize: datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
11
|
+
lineHeight: datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
12
|
+
fontWeight: datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
13
|
+
},
|
|
14
|
+
week: {
|
|
15
|
+
fontSize: datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
16
|
+
lineHeight: datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
17
|
+
fontWeight: datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
18
|
+
color: datepickerTokens.datepicker.calendar.week.color,
|
|
19
|
+
},
|
|
20
|
+
grid: {
|
|
21
|
+
rowGap: datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
22
|
+
},
|
|
23
|
+
day: {
|
|
24
|
+
size: datepickerTokens.datepicker.calendar.day.width,
|
|
25
|
+
circleSize: datepickerTokens.datepicker.calendar.day.circle.size,
|
|
26
|
+
circleRadius: datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
27
|
+
defaultText: datepickerTokens.datepicker.calendar.day.default.text,
|
|
28
|
+
hoverText: datepickerTokens.datepicker.calendar.day.hover.text,
|
|
29
|
+
hoverBorder: datepickerTokens.datepicker.calendar.day.hover.border,
|
|
30
|
+
selectBg: datepickerTokens.datepicker.calendar.day.select.bg,
|
|
31
|
+
selectText: datepickerTokens.datepicker.calendar.day.select.text,
|
|
32
|
+
disabledText: datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
33
|
+
fontSize: datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
34
|
+
lineHeight: datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
35
|
+
fontWeight: datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
36
|
+
boldFontWeight: datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
37
|
+
dot: {
|
|
38
|
+
size: datepickerTokens.datepicker.calendar.day.dot.size,
|
|
39
|
+
gap: datepickerTokens.datepicker.calendar.day.dot.gap,
|
|
40
|
+
paddingY: datepickerTokens.datepicker.calendar.day.dot.paddingY,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
legend: {
|
|
44
|
+
fontSize: datepickerTokens.datepicker.calendar.legend.typography.fontSize,
|
|
45
|
+
lineHeight: datepickerTokens.datepicker.calendar.legend.typography.lineHeight,
|
|
46
|
+
fontWeight: datepickerTokens.datepicker.calendar.legend.typography.fontWeight,
|
|
47
|
+
gap: datepickerTokens.datepicker.calendar.legend.gap,
|
|
48
|
+
groupGap: datepickerTokens.datepicker.calendar.legend.group.gap,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|