@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
package/hydrate/index.mjs
CHANGED
|
@@ -5336,7 +5336,7 @@ class SdActionModal {
|
|
|
5336
5336
|
if (this.height != null && this.height !== '') {
|
|
5337
5337
|
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
5338
5338
|
}
|
|
5339
|
-
return (hAsync("div", { key: '
|
|
5339
|
+
return (hAsync("div", { key: '7b59ff655bb9f7a6bc79bb948201a6a532c16b06', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, hAsync("header", { key: '3e141509dc7082e08f448043573de3a8bd8e7cf0', class: "sd-action-modal__header" }, hAsync("h2", { key: 'ba80634b72ce1168d2ab3aec12bdf2a6546ff08d', class: "sd-action-modal__title" }, this.modalTitle), hAsync("div", { key: 'aed32008f0dcaa2deec098ca3c0c9cb1e8f6fb50', class: "sd-action-modal__header-sub" }, hAsync("slot", { key: '32a015a006cbcf26373c64a72e4131b878c53222', name: "header-sub-title" })), hAsync("sd-ghost-button", { key: '574d14cf2d0031dbf43cbb5999d4471a235ca72a', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), hAsync("div", { key: '713761da4ad2217c1d762fd56bc391ddc5c9cded', class: "sd-action-modal__body" }, hAsync("slot", { key: 'e224251b153d60cf35056b542c5d9925f4918b7f', name: "body" })), (this.buttonProps != null || this.buttonProps != undefined) && (hAsync("footer", { key: '43d6e4ffed21704ac68689f0742f8d7a6456b0b6', class: "sd-action-modal__footer" }, hAsync("div", { key: 'bd9cce1c5b1fb02156008a4e76c65dc8cb4385aa', class: "sd-action-modal__footer-sub" }, hAsync("slot", { key: '4de818c9ba8fcdb159963b9c9c7ce893fa3216da', name: "bottom-sub-content" })), hAsync("sd-button", { key: 'af9f4c1fd4c6bb482690c2545e0add53c308b95a', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() })))));
|
|
5340
5340
|
}
|
|
5341
5341
|
static get style() { return sdActionModalCss(); }
|
|
5342
5342
|
static get cmpMeta() { return {
|
|
@@ -5388,7 +5388,7 @@ class SdBadge {
|
|
|
5388
5388
|
color = 'blue';
|
|
5389
5389
|
render() {
|
|
5390
5390
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
5391
|
-
return (hAsync("div", { key: '
|
|
5391
|
+
return (hAsync("div", { key: '9ae835aba8a4acde4b918eceda00441ee2c22905', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, hAsync("div", { key: 'c3b648845b5c138026a82a6a2c483d2a56ed2aab', class: "sd-badge__dot" })));
|
|
5392
5392
|
}
|
|
5393
5393
|
static get style() { return sdBadgeCss(); }
|
|
5394
5394
|
static get cmpMeta() { return {
|
|
@@ -5597,7 +5597,7 @@ class SdBarcodeInput {
|
|
|
5597
5597
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
5598
5598
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
5599
5599
|
};
|
|
5600
|
-
return (hAsync("sd-field", { key: '
|
|
5600
|
+
return (hAsync("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 }, hAsync("label", { key: '9d4fa219af76d29b2d2e8443af1e66b980d62dd1', class: "sd-barcode-input__content" }, hAsync("slot", { key: '044bf2c4a6e79bb0d6b2a76398107b47d1237662', name: "prefix" }), hAsync("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 }), hAsync("slot", { key: '8dc300df9f8bd7045f9c9e357925be3b7f2bdbb4', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-ghost-button", { key: '1b3cab2c7fe9caf973e7defff170f64b3fd35daa', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
5601
5601
|
if (this.disabled)
|
|
5602
5602
|
return;
|
|
5603
5603
|
this.internalValue = '';
|
|
@@ -6464,13 +6464,13 @@ class SdButton {
|
|
|
6464
6464
|
const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
|
|
6465
6465
|
const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
|
|
6466
6466
|
const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
|
|
6467
|
-
return (hAsync("button", { key: '
|
|
6467
|
+
return (hAsync("button", { key: '3caa9dff467ec7efa748eecd736296500a222ecb', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
6468
6468
|
'--sd-button-bg': config.color,
|
|
6469
6469
|
'--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS$1[preset],
|
|
6470
6470
|
'--sd-button-border': PRESET_BORDER_COLORS$1[preset],
|
|
6471
6471
|
'--sd-button-content': PRESET_CONTENT_COLORS$1[preset],
|
|
6472
6472
|
'--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
6473
|
-
}, onClick: this.handleClick }, hAsync("span", { key: '
|
|
6473
|
+
}, onClick: this.handleClick }, hAsync("span", { key: 'cded66e4802956c29064cbdcc12b9dd1066a45c3', class: "sd-button__content" }, validIcon && (hAsync("sd-icon", { key: 'b989e3eb8661e16f052d5c7a292ea316a2b821df', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && hAsync("span", { key: '07695896bd8f11ca8753dcb171b5c7f0e7304c0d', class: "sd-button__label" }, this.label), validRightIcon && (hAsync("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)" })))));
|
|
6474
6474
|
}
|
|
6475
6475
|
static get style() { return sdButtonCss(); }
|
|
6476
6476
|
static get cmpMeta() { return {
|
|
@@ -6547,422 +6547,387 @@ const useDatePicker = () => {
|
|
|
6547
6547
|
return { formatDate, createCalendar, calculateYearMonth };
|
|
6548
6548
|
};
|
|
6549
6549
|
|
|
6550
|
-
const
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
const brilliantblue_40 = "#BBDAFF";
|
|
6667
|
-
const brilliantblue_50 = "#93C4FF";
|
|
6668
|
-
const brilliantblue_60 = "#64ABFF";
|
|
6669
|
-
const brilliantblue_70 = "#2D8DFF";
|
|
6670
|
-
const brilliantblue_75 = "#0075FF";
|
|
6671
|
-
const brilliantblue_80 = "#005CC9";
|
|
6672
|
-
const brilliantblue_85 = "#004290";
|
|
6673
|
-
const brilliantblue_90 = "#002B5E";
|
|
6674
|
-
const brilliantblue_95 = "#001B39";
|
|
6675
|
-
const brilliantblue_99 = "#001226";
|
|
6676
|
-
const brilliantblue_05 = "#F5FAFF";
|
|
6677
|
-
var rawColors = {
|
|
6678
|
-
primary: primary,
|
|
6679
|
-
secondary: secondary,
|
|
6680
|
-
accent: accent,
|
|
6681
|
-
positive: positive,
|
|
6682
|
-
negative: negative,
|
|
6683
|
-
info: info,
|
|
6684
|
-
warning: warning,
|
|
6685
|
-
caution_bg: caution_bg,
|
|
6686
|
-
caution_icon: caution_icon,
|
|
6687
|
-
header_alert: header_alert,
|
|
6688
|
-
white: white,
|
|
6689
|
-
black: black,
|
|
6690
|
-
grey_10: grey_10,
|
|
6691
|
-
grey_20: grey_20,
|
|
6692
|
-
grey_25: grey_25,
|
|
6693
|
-
grey_30: grey_30,
|
|
6694
|
-
grey_35: grey_35,
|
|
6695
|
-
grey_45: grey_45,
|
|
6696
|
-
grey_50: grey_50,
|
|
6697
|
-
grey_55: grey_55,
|
|
6698
|
-
grey_60: grey_60,
|
|
6699
|
-
grey_65: grey_65,
|
|
6700
|
-
grey_70: grey_70,
|
|
6701
|
-
grey_80: grey_80,
|
|
6702
|
-
grey_85: grey_85,
|
|
6703
|
-
grey_90: grey_90,
|
|
6704
|
-
grey_95: grey_95,
|
|
6705
|
-
grey_05: grey_05,
|
|
6706
|
-
red_15: red_15,
|
|
6707
|
-
red_20: red_20,
|
|
6708
|
-
red_30: red_30,
|
|
6709
|
-
red_45: red_45,
|
|
6710
|
-
red_60: red_60,
|
|
6711
|
-
red_70: red_70,
|
|
6712
|
-
red_75: red_75,
|
|
6713
|
-
red_75_006: red_75_006,
|
|
6714
|
-
red_80: red_80,
|
|
6715
|
-
red_85: red_85,
|
|
6716
|
-
red_90: red_90,
|
|
6717
|
-
red_95: red_95,
|
|
6718
|
-
red_99: red_99,
|
|
6719
|
-
orange_10: orange_10,
|
|
6720
|
-
orange_20: orange_20,
|
|
6721
|
-
orange_35: orange_35,
|
|
6722
|
-
orange_45: orange_45,
|
|
6723
|
-
orange_55: orange_55,
|
|
6724
|
-
orange_60: orange_60,
|
|
6725
|
-
orange_65: orange_65,
|
|
6726
|
-
orange_75: orange_75,
|
|
6727
|
-
orange_85: orange_85,
|
|
6728
|
-
orange_90: orange_90,
|
|
6729
|
-
orange_95: orange_95,
|
|
6730
|
-
orange_99: orange_99,
|
|
6731
|
-
yellow_10: yellow_10,
|
|
6732
|
-
yellow_20: yellow_20,
|
|
6733
|
-
yellow_25: yellow_25,
|
|
6734
|
-
yellow_30: yellow_30,
|
|
6735
|
-
yellow_40: yellow_40,
|
|
6736
|
-
yellow_45: yellow_45,
|
|
6737
|
-
yellow_50: yellow_50,
|
|
6738
|
-
yellow_60: yellow_60,
|
|
6739
|
-
yellow_70: yellow_70,
|
|
6740
|
-
yellow_80: yellow_80,
|
|
6741
|
-
yellow_90: yellow_90,
|
|
6742
|
-
yellow_95: yellow_95,
|
|
6743
|
-
olive_10: olive_10,
|
|
6744
|
-
olive_15: olive_15,
|
|
6745
|
-
olive_20: olive_20,
|
|
6746
|
-
olive_30: olive_30,
|
|
6747
|
-
olive_45: olive_45,
|
|
6748
|
-
olive_55: olive_55,
|
|
6749
|
-
olive_65: olive_65,
|
|
6750
|
-
olive_70: olive_70,
|
|
6751
|
-
olive_80: olive_80,
|
|
6752
|
-
olive_90: olive_90,
|
|
6753
|
-
olive_95: olive_95,
|
|
6754
|
-
olive_05: olive_05,
|
|
6755
|
-
green_15: green_15,
|
|
6756
|
-
green_25: green_25,
|
|
6757
|
-
green_45: green_45,
|
|
6758
|
-
green_55: green_55,
|
|
6759
|
-
green_65: green_65,
|
|
6760
|
-
green_70: green_70,
|
|
6761
|
-
green_75: green_75,
|
|
6762
|
-
green_80: green_80,
|
|
6763
|
-
green_85: green_85,
|
|
6764
|
-
green_90: green_90,
|
|
6765
|
-
green_95: green_95,
|
|
6766
|
-
green_99: green_99,
|
|
6767
|
-
steelblue_10: steelblue_10,
|
|
6768
|
-
steelblue_25: steelblue_25,
|
|
6769
|
-
steelblue_45: steelblue_45,
|
|
6770
|
-
steelblue_60: steelblue_60,
|
|
6771
|
-
steelblue_65: steelblue_65,
|
|
6772
|
-
steelblue_70: steelblue_70,
|
|
6773
|
-
steelblue_75: steelblue_75,
|
|
6774
|
-
steelblue_80: steelblue_80,
|
|
6775
|
-
steelblue_85: steelblue_85,
|
|
6776
|
-
steelblue_90: steelblue_90,
|
|
6777
|
-
steelblue_95: steelblue_95,
|
|
6778
|
-
steelblue_99: steelblue_99,
|
|
6779
|
-
oceanblue_15: oceanblue_15,
|
|
6780
|
-
oceanblue_25: oceanblue_25,
|
|
6781
|
-
oceanblue_50: oceanblue_50,
|
|
6782
|
-
oceanblue_60: oceanblue_60,
|
|
6783
|
-
oceanblue_65: oceanblue_65,
|
|
6784
|
-
oceanblue_70: oceanblue_70,
|
|
6785
|
-
oceanblue_75: oceanblue_75,
|
|
6786
|
-
oceanblue_80: oceanblue_80,
|
|
6787
|
-
oceanblue_85: oceanblue_85,
|
|
6788
|
-
oceanblue_90: oceanblue_90,
|
|
6789
|
-
oceanblue_95: oceanblue_95,
|
|
6790
|
-
oceanblue_99: oceanblue_99,
|
|
6791
|
-
brilliantblue_10: brilliantblue_10,
|
|
6792
|
-
brilliantblue_20: brilliantblue_20,
|
|
6793
|
-
brilliantblue_25: brilliantblue_25,
|
|
6794
|
-
brilliantblue_40: brilliantblue_40,
|
|
6795
|
-
brilliantblue_50: brilliantblue_50,
|
|
6796
|
-
brilliantblue_60: brilliantblue_60,
|
|
6797
|
-
brilliantblue_70: brilliantblue_70,
|
|
6798
|
-
brilliantblue_75: brilliantblue_75,
|
|
6799
|
-
brilliantblue_80: brilliantblue_80,
|
|
6800
|
-
brilliantblue_85: brilliantblue_85,
|
|
6801
|
-
brilliantblue_90: brilliantblue_90,
|
|
6802
|
-
brilliantblue_95: brilliantblue_95,
|
|
6803
|
-
brilliantblue_99: brilliantblue_99,
|
|
6804
|
-
brilliantblue_05: brilliantblue_05
|
|
6550
|
+
const datepicker = {
|
|
6551
|
+
sm: {
|
|
6552
|
+
height: "28",
|
|
6553
|
+
paddingX: "12",
|
|
6554
|
+
gap: "8",
|
|
6555
|
+
icon: "16",
|
|
6556
|
+
typography: {
|
|
6557
|
+
fontWeight: "400",
|
|
6558
|
+
fontSize: "12",
|
|
6559
|
+
lineHeight: "20"},
|
|
6560
|
+
radius: "4"
|
|
6561
|
+
},
|
|
6562
|
+
md: {
|
|
6563
|
+
height: "36",
|
|
6564
|
+
paddingX: "16",
|
|
6565
|
+
gap: "12",
|
|
6566
|
+
icon: "20",
|
|
6567
|
+
typography: {
|
|
6568
|
+
fontWeight: "400",
|
|
6569
|
+
fontSize: "14",
|
|
6570
|
+
lineHeight: "24"
|
|
6571
|
+
},
|
|
6572
|
+
radius: "6"
|
|
6573
|
+
},
|
|
6574
|
+
border: {
|
|
6575
|
+
"default": "#AAAAAA",
|
|
6576
|
+
focus: "#0075FF"},
|
|
6577
|
+
bg: {
|
|
6578
|
+
"default": "#FFFFFF"},
|
|
6579
|
+
icon: {
|
|
6580
|
+
"default": "#888888",
|
|
6581
|
+
disabled: "#BBBBBB"
|
|
6582
|
+
},
|
|
6583
|
+
text: {
|
|
6584
|
+
"default": "#222222",
|
|
6585
|
+
hint: "#555555",
|
|
6586
|
+
disabled: "#888888"
|
|
6587
|
+
},
|
|
6588
|
+
calendar: {
|
|
6589
|
+
bg: "#FFFFFF",
|
|
6590
|
+
paddingXY: "24",
|
|
6591
|
+
gap: "12",
|
|
6592
|
+
radius: "8",
|
|
6593
|
+
header: {
|
|
6594
|
+
gap: "8",
|
|
6595
|
+
divider: "#E1E1E1",
|
|
6596
|
+
typography: {
|
|
6597
|
+
fontWeight: "500",
|
|
6598
|
+
fontSize: "14",
|
|
6599
|
+
lineHeight: "24"
|
|
6600
|
+
}
|
|
6601
|
+
},
|
|
6602
|
+
week: {
|
|
6603
|
+
typography: {
|
|
6604
|
+
fontWeight: "400",
|
|
6605
|
+
fontSize: "12",
|
|
6606
|
+
lineHeight: "20"},
|
|
6607
|
+
color: "#888888"
|
|
6608
|
+
},
|
|
6609
|
+
grid: {
|
|
6610
|
+
rowGap: "4"
|
|
6611
|
+
},
|
|
6612
|
+
day: {
|
|
6613
|
+
width: "40",
|
|
6614
|
+
circle: {
|
|
6615
|
+
size: "32",
|
|
6616
|
+
radius: "9999"
|
|
6617
|
+
},
|
|
6618
|
+
"default": {
|
|
6619
|
+
text: "#222222"
|
|
6620
|
+
},
|
|
6621
|
+
hover: {
|
|
6622
|
+
text: "#222222",
|
|
6623
|
+
border: "#0075FF"
|
|
6624
|
+
},
|
|
6625
|
+
select: {
|
|
6626
|
+
bg: "#0075FF",
|
|
6627
|
+
text: "#FFFFFF"
|
|
6628
|
+
},
|
|
6629
|
+
disabled: {
|
|
6630
|
+
text: "#BBBBBB"
|
|
6631
|
+
},
|
|
6632
|
+
typography: {
|
|
6633
|
+
"default": {
|
|
6634
|
+
fontWeight: "400",
|
|
6635
|
+
fontSize: "14",
|
|
6636
|
+
lineHeight: "24"
|
|
6637
|
+
},
|
|
6638
|
+
bold: {
|
|
6639
|
+
fontWeight: "700"}
|
|
6640
|
+
},
|
|
6641
|
+
dot: {
|
|
6642
|
+
size: "6",
|
|
6643
|
+
gap: "2",
|
|
6644
|
+
paddingY: "4"
|
|
6645
|
+
}
|
|
6646
|
+
},
|
|
6647
|
+
range: {
|
|
6648
|
+
bg: "#D9EAFF",
|
|
6649
|
+
height: "32",
|
|
6650
|
+
panelGap: "24",
|
|
6651
|
+
divider: "#E1E1E1"},
|
|
6652
|
+
legend: {
|
|
6653
|
+
typography: {
|
|
6654
|
+
fontWeight: "400",
|
|
6655
|
+
fontSize: "11",
|
|
6656
|
+
lineHeight: "18"},
|
|
6657
|
+
gap: "4",
|
|
6658
|
+
group: {
|
|
6659
|
+
gap: "12"
|
|
6660
|
+
}
|
|
6661
|
+
}
|
|
6662
|
+
}
|
|
6663
|
+
};
|
|
6664
|
+
var datepickerTokens = {
|
|
6665
|
+
datepicker: datepicker
|
|
6805
6666
|
};
|
|
6806
6667
|
|
|
6807
|
-
const
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6668
|
+
const CALENDAR_LAYOUT = {
|
|
6669
|
+
bg: datepickerTokens.datepicker.calendar.bg,
|
|
6670
|
+
paddingXY: datepickerTokens.datepicker.calendar.paddingXY,
|
|
6671
|
+
gap: datepickerTokens.datepicker.calendar.gap,
|
|
6672
|
+
radius: datepickerTokens.datepicker.calendar.radius,
|
|
6673
|
+
header: {
|
|
6674
|
+
gap: datepickerTokens.datepicker.calendar.header.gap,
|
|
6675
|
+
divider: datepickerTokens.datepicker.calendar.header.divider,
|
|
6676
|
+
fontSize: datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
6677
|
+
lineHeight: datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
6678
|
+
fontWeight: datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
6679
|
+
},
|
|
6680
|
+
week: {
|
|
6681
|
+
fontSize: datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
6682
|
+
lineHeight: datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
6683
|
+
fontWeight: datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
6684
|
+
color: datepickerTokens.datepicker.calendar.week.color,
|
|
6685
|
+
},
|
|
6686
|
+
grid: {
|
|
6687
|
+
rowGap: datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
6688
|
+
},
|
|
6689
|
+
day: {
|
|
6690
|
+
size: datepickerTokens.datepicker.calendar.day.width,
|
|
6691
|
+
circleSize: datepickerTokens.datepicker.calendar.day.circle.size,
|
|
6692
|
+
circleRadius: datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
6693
|
+
defaultText: datepickerTokens.datepicker.calendar.day.default.text,
|
|
6694
|
+
hoverText: datepickerTokens.datepicker.calendar.day.hover.text,
|
|
6695
|
+
hoverBorder: datepickerTokens.datepicker.calendar.day.hover.border,
|
|
6696
|
+
selectBg: datepickerTokens.datepicker.calendar.day.select.bg,
|
|
6697
|
+
selectText: datepickerTokens.datepicker.calendar.day.select.text,
|
|
6698
|
+
disabledText: datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
6699
|
+
fontSize: datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
6700
|
+
lineHeight: datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
6701
|
+
fontWeight: datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
6702
|
+
boldFontWeight: datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
6703
|
+
dot: {
|
|
6704
|
+
size: datepickerTokens.datepicker.calendar.day.dot.size,
|
|
6705
|
+
gap: datepickerTokens.datepicker.calendar.day.dot.gap,
|
|
6706
|
+
paddingY: datepickerTokens.datepicker.calendar.day.dot.paddingY,
|
|
6707
|
+
},
|
|
6708
|
+
},
|
|
6709
|
+
legend: {
|
|
6710
|
+
fontSize: datepickerTokens.datepicker.calendar.legend.typography.fontSize,
|
|
6711
|
+
lineHeight: datepickerTokens.datepicker.calendar.legend.typography.lineHeight,
|
|
6712
|
+
fontWeight: datepickerTokens.datepicker.calendar.legend.typography.fontWeight,
|
|
6713
|
+
gap: datepickerTokens.datepicker.calendar.legend.gap,
|
|
6714
|
+
groupGap: datepickerTokens.datepicker.calendar.legend.group.gap,
|
|
6715
|
+
},
|
|
6716
|
+
};
|
|
6717
|
+
const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
6816
6718
|
|
|
6817
|
-
const sdCalendarCss = () =>
|
|
6719
|
+
const sdCalendarCss = () => `sd-calendar{display:block}sd-calendar .sd-calendar{display:flex;flex-direction:column;gap:var(--calendar-gap);width:328px;min-height:328px;padding:var(--calendar-padding);background:var(--calendar-bg);border-radius:var(--calendar-radius);box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.2);user-select:none}sd-calendar .sd-calendar__header{display:flex;align-items:center;justify-content:center;gap:var(--calendar-header-gap);font-size:var(--calendar-header-font-size);line-height:var(--calendar-header-line-height);font-weight:var(--calendar-header-font-weight);color:var(--calendar-day-text)}sd-calendar .sd-calendar__nav-group{display:inline-flex;align-items:center;gap:var(--calendar-gap)}sd-calendar .sd-calendar__nav-group-month{width:100%}sd-calendar .sd-calendar__label{display:inline-flex;align-items:center;justify-content:center;min-width:40px;text-align:center}sd-calendar .sd-calendar__label-month{width:100%}sd-calendar .sd-calendar__divider{display:inline-block;width:1px;height:16px;background:var(--calendar-header-divider)}sd-calendar .sd-calendar__week{display:grid;grid-template-columns:repeat(7, var(--calendar-day-size))}sd-calendar .sd-calendar__week-cell{display:inline-flex;align-items:center;justify-content:center;height:20px;font-size:var(--calendar-week-font-size);line-height:var(--calendar-week-line-height);font-weight:var(--calendar-week-font-weight);color:var(--calendar-week-color)}sd-calendar .sd-calendar__grid{display:grid;grid-template-columns:repeat(7, var(--calendar-day-size));row-gap:var(--calendar-grid-row-gap)}sd-calendar .sd-calendar__day{display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;width:var(--calendar-day-size);min-height:var(--calendar-day-circle-size);padding:0;border:none;background:transparent;cursor:pointer;font-size:var(--calendar-day-font-size);line-height:var(--calendar-day-line-height);font-weight:var(--calendar-day-font-weight);color:var(--calendar-day-text)}sd-calendar .sd-calendar__day-circle{display:inline-flex;align-items:center;justify-content:center;width:var(--calendar-day-circle-size);height:var(--calendar-day-circle-size);border-radius:calc(var(--calendar-day-circle-radius) * 1px);border:1px solid transparent;box-sizing:border-box}sd-calendar .sd-calendar__day:not(:disabled):hover .sd-calendar__day-circle{border-radius:16px;border:1px solid var(--calendar-day-hover-border)}sd-calendar .sd-calendar__day--today .sd-calendar__day-circle{font-weight:700}sd-calendar .sd-calendar__day--selected .sd-calendar__day-circle{border-radius:16px;background:var(--calendar-day-select-bg);color:var(--calendar-day-select-text)}sd-calendar .sd-calendar__day--selected:not(:disabled):hover .sd-calendar__day-circle{background:var(--calendar-day-select-bg);color:var(--calendar-day-select-text)}sd-calendar .sd-calendar__day--disabled{color:var(--calendar-day-disabled-text);background:none !important;cursor:not-allowed}sd-calendar .sd-calendar__day--empty{visibility:hidden;pointer-events:none}sd-calendar .sd-calendar__dot-row{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--calendar-day-dot-gap);width:100%;padding-top:var(--calendar-day-dot-padding-y);padding-bottom:var(--calendar-day-dot-padding-y)}sd-calendar .sd-calendar__dot{display:inline-block;width:var(--calendar-day-dot-size);height:var(--calendar-day-dot-size);border-radius:50%}sd-calendar .sd-calendar__divider-bottom{display:block;width:100%;height:1px;background:var(--calendar-header-divider)}sd-calendar .sd-calendar__legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:var(--calendar-legend-group-gap);row-gap:4px;font-size:var(--calendar-legend-font-size);line-height:var(--calendar-legend-line-height);font-weight:var(--calendar-legend-font-weight);color:var(--calendar-day-text)}sd-calendar .sd-calendar__legend-item{display:inline-flex;align-items:center;gap:var(--calendar-legend-gap)}sd-calendar .sd-calendar__legend-dot{display:inline-block;width:var(--calendar-day-dot-size);height:var(--calendar-day-dot-size);border-radius:50%;flex-shrink:0}sd-calendar .sd-calendar__legend-label{display:inline-block}`;
|
|
6818
6720
|
|
|
6819
|
-
const DEFAULT_COLORS = [
|
|
6820
|
-
'brilliantblue_75',
|
|
6821
|
-
'red_60',
|
|
6822
|
-
'green_65',
|
|
6823
|
-
'orange_60',
|
|
6824
|
-
'steelblue_65',
|
|
6825
|
-
'yellow_45',
|
|
6826
|
-
'oceanblue_65',
|
|
6827
|
-
'olive_55',
|
|
6828
|
-
];
|
|
6829
6721
|
class SdCalendar {
|
|
6830
6722
|
constructor(hostRef) {
|
|
6831
6723
|
registerInstance(this, hostRef);
|
|
6832
|
-
this.
|
|
6724
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
6833
6725
|
this.viewChange = createEvent(this, "sdViewChange", 7);
|
|
6834
6726
|
}
|
|
6835
6727
|
value = null;
|
|
6836
6728
|
selectable;
|
|
6837
6729
|
events;
|
|
6838
|
-
eventColors;
|
|
6839
6730
|
currentYear;
|
|
6840
6731
|
currentMonth;
|
|
6841
|
-
|
|
6842
|
-
select;
|
|
6732
|
+
update;
|
|
6843
6733
|
viewChange;
|
|
6844
6734
|
dateUtil = useDatePicker();
|
|
6735
|
+
_eventMapCache;
|
|
6736
|
+
get eventMap() {
|
|
6737
|
+
const cache = this._eventMapCache;
|
|
6738
|
+
if (cache && cache.src === this.events)
|
|
6739
|
+
return cache.map;
|
|
6740
|
+
const map = new Map();
|
|
6741
|
+
(this.events ?? []).forEach(g => g.dates.forEach(d => {
|
|
6742
|
+
const arr = map.get(d) ?? [];
|
|
6743
|
+
arr.push({ color: g.color, label: g.label });
|
|
6744
|
+
map.set(d, arr);
|
|
6745
|
+
}));
|
|
6746
|
+
this._eventMapCache = { src: this.events, map };
|
|
6747
|
+
return map;
|
|
6748
|
+
}
|
|
6749
|
+
get legendItems() {
|
|
6750
|
+
const seen = new Set();
|
|
6751
|
+
const out = [];
|
|
6752
|
+
(this.events ?? []).forEach(g => {
|
|
6753
|
+
const key = `${g.color}|${g.label}`;
|
|
6754
|
+
if (seen.has(key))
|
|
6755
|
+
return;
|
|
6756
|
+
seen.add(key);
|
|
6757
|
+
out.push({ color: g.color, label: g.label });
|
|
6758
|
+
});
|
|
6759
|
+
return out;
|
|
6760
|
+
}
|
|
6845
6761
|
componentWillLoad() {
|
|
6846
|
-
this.
|
|
6762
|
+
this.syncViewFromValue();
|
|
6847
6763
|
}
|
|
6848
6764
|
handleValueChange() {
|
|
6849
|
-
this.
|
|
6850
|
-
}
|
|
6851
|
-
handleEventsChange() {
|
|
6852
|
-
this.eventsRevision = this.eventsRevision + 1;
|
|
6765
|
+
this.syncViewFromValue();
|
|
6853
6766
|
}
|
|
6854
|
-
|
|
6767
|
+
syncViewFromValue() {
|
|
6855
6768
|
const base = this.value || today;
|
|
6856
6769
|
const [year, month] = base.split('-').map(Number);
|
|
6857
6770
|
this.currentYear = year;
|
|
6858
6771
|
this.currentMonth = month;
|
|
6859
6772
|
}
|
|
6860
|
-
|
|
6861
|
-
return
|
|
6773
|
+
formatDate(year, month, day) {
|
|
6774
|
+
return `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
6775
|
+
}
|
|
6776
|
+
get cells() {
|
|
6777
|
+
const year = this.currentYear;
|
|
6778
|
+
const month = this.currentMonth;
|
|
6779
|
+
const firstDayIndex = new Date(year, month - 1, 1).getDay();
|
|
6780
|
+
const daysInCurrent = new Date(year, month, 0).getDate();
|
|
6781
|
+
const prevMonth = month === 1 ? 12 : month - 1;
|
|
6782
|
+
const prevYear = month === 1 ? year - 1 : year;
|
|
6783
|
+
const daysInPrev = new Date(prevYear, prevMonth, 0).getDate();
|
|
6784
|
+
const nextMonth = month === 12 ? 1 : month + 1;
|
|
6785
|
+
const nextYear = month === 12 ? year + 1 : year;
|
|
6786
|
+
const cells = [];
|
|
6787
|
+
for (let i = firstDayIndex - 1; i >= 0; i--) {
|
|
6788
|
+
const day = daysInPrev - i;
|
|
6789
|
+
cells.push({
|
|
6790
|
+
date: this.formatDate(prevYear, prevMonth, day),
|
|
6791
|
+
day,
|
|
6792
|
+
inCurrentMonth: false,
|
|
6793
|
+
});
|
|
6794
|
+
}
|
|
6795
|
+
for (let day = 1; day <= daysInCurrent; day++) {
|
|
6796
|
+
cells.push({
|
|
6797
|
+
date: this.formatDate(year, month, day),
|
|
6798
|
+
day,
|
|
6799
|
+
inCurrentMonth: true,
|
|
6800
|
+
});
|
|
6801
|
+
}
|
|
6802
|
+
const remaining = (7 - (cells.length % 7)) % 7;
|
|
6803
|
+
for (let day = 1; day <= remaining; day++) {
|
|
6804
|
+
cells.push({
|
|
6805
|
+
date: this.formatDate(nextYear, nextMonth, day),
|
|
6806
|
+
day,
|
|
6807
|
+
inCurrentMonth: false,
|
|
6808
|
+
});
|
|
6809
|
+
}
|
|
6810
|
+
return cells;
|
|
6811
|
+
}
|
|
6812
|
+
emitViewChange() {
|
|
6813
|
+
this.viewChange.emit({ year: this.currentYear, month: this.currentMonth });
|
|
6862
6814
|
}
|
|
6863
|
-
|
|
6864
|
-
|
|
6815
|
+
goPrevYear = (event) => {
|
|
6816
|
+
event.stopPropagation();
|
|
6817
|
+
this.currentYear -= 1;
|
|
6818
|
+
this.emitViewChange();
|
|
6819
|
+
};
|
|
6820
|
+
goNextYear = (event) => {
|
|
6821
|
+
event.stopPropagation();
|
|
6822
|
+
this.currentYear += 1;
|
|
6823
|
+
this.emitViewChange();
|
|
6824
|
+
};
|
|
6825
|
+
goPrevMonth = (event) => {
|
|
6826
|
+
event.stopPropagation();
|
|
6827
|
+
const { newYear, newMonth } = this.dateUtil.calculateYearMonth(this.currentYear, this.currentMonth, 'prev');
|
|
6865
6828
|
this.currentYear = newYear;
|
|
6866
6829
|
this.currentMonth = newMonth;
|
|
6867
|
-
this.
|
|
6868
|
-
}
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
this.
|
|
6874
|
-
this.
|
|
6875
|
-
}
|
|
6876
|
-
|
|
6877
|
-
if (this.selectable
|
|
6830
|
+
this.emitViewChange();
|
|
6831
|
+
};
|
|
6832
|
+
goNextMonth = (event) => {
|
|
6833
|
+
event.stopPropagation();
|
|
6834
|
+
const { newYear, newMonth } = this.dateUtil.calculateYearMonth(this.currentYear, this.currentMonth, 'next');
|
|
6835
|
+
this.currentYear = newYear;
|
|
6836
|
+
this.currentMonth = newMonth;
|
|
6837
|
+
this.emitViewChange();
|
|
6838
|
+
};
|
|
6839
|
+
isDisabled(date) {
|
|
6840
|
+
if (!this.selectable)
|
|
6878
6841
|
return false;
|
|
6879
|
-
const [
|
|
6880
|
-
if (
|
|
6881
|
-
return
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
return date < startSelectable;
|
|
6885
|
-
}
|
|
6886
|
-
if (endSelectable !== '') {
|
|
6887
|
-
return date > endSelectable;
|
|
6888
|
-
}
|
|
6842
|
+
const [start, end] = this.selectable;
|
|
6843
|
+
if (start !== '' && date < start)
|
|
6844
|
+
return true;
|
|
6845
|
+
if (end !== '' && date > end)
|
|
6846
|
+
return true;
|
|
6889
6847
|
return false;
|
|
6890
6848
|
}
|
|
6891
|
-
|
|
6892
|
-
if (this.
|
|
6893
|
-
return
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
const index = allEventNames.indexOf(eventName);
|
|
6897
|
-
return resolveColor(DEFAULT_COLORS[index % DEFAULT_COLORS.length]);
|
|
6898
|
-
}
|
|
6899
|
-
getAllEventNames() {
|
|
6900
|
-
const names = new Set();
|
|
6901
|
-
if (this.eventColors) {
|
|
6902
|
-
for (const name of Object.keys(this.eventColors)) {
|
|
6903
|
-
names.add(name);
|
|
6904
|
-
}
|
|
6905
|
-
}
|
|
6906
|
-
if (this.events) {
|
|
6907
|
-
for (const dateEvents of Object.values(this.events)) {
|
|
6908
|
-
for (const name of dateEvents) {
|
|
6909
|
-
names.add(name);
|
|
6910
|
-
}
|
|
6911
|
-
}
|
|
6912
|
-
}
|
|
6913
|
-
return Array.from(names);
|
|
6914
|
-
}
|
|
6915
|
-
getEventsForDate(date) {
|
|
6916
|
-
return this.events?.[date] ?? [];
|
|
6849
|
+
handleDayClick(cell) {
|
|
6850
|
+
if (this.isDisabled(cell.date))
|
|
6851
|
+
return;
|
|
6852
|
+
this.value = cell.date;
|
|
6853
|
+
this.update.emit(cell.date);
|
|
6917
6854
|
}
|
|
6918
6855
|
render() {
|
|
6919
|
-
const
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6856
|
+
const cssVars = {
|
|
6857
|
+
'--calendar-bg': CALENDAR_LAYOUT.bg,
|
|
6858
|
+
'--calendar-padding': `${CALENDAR_LAYOUT.paddingXY}px`,
|
|
6859
|
+
'--calendar-gap': `${CALENDAR_LAYOUT.gap}px`,
|
|
6860
|
+
'--calendar-radius': `${CALENDAR_LAYOUT.radius}px`,
|
|
6861
|
+
'--calendar-header-gap': `${CALENDAR_LAYOUT.header.gap}px`,
|
|
6862
|
+
'--calendar-header-divider': CALENDAR_LAYOUT.header.divider,
|
|
6863
|
+
'--calendar-header-font-size': `${CALENDAR_LAYOUT.header.fontSize}px`,
|
|
6864
|
+
'--calendar-header-line-height': `${CALENDAR_LAYOUT.header.lineHeight}px`,
|
|
6865
|
+
'--calendar-header-font-weight': CALENDAR_LAYOUT.header.fontWeight,
|
|
6866
|
+
'--calendar-week-font-size': `${CALENDAR_LAYOUT.week.fontSize}px`,
|
|
6867
|
+
'--calendar-week-line-height': `${CALENDAR_LAYOUT.week.lineHeight}px`,
|
|
6868
|
+
'--calendar-week-font-weight': CALENDAR_LAYOUT.week.fontWeight,
|
|
6869
|
+
'--calendar-week-color': CALENDAR_LAYOUT.week.color,
|
|
6870
|
+
'--calendar-grid-row-gap': `${CALENDAR_LAYOUT.grid.rowGap}px`,
|
|
6871
|
+
'--calendar-day-size': `${CALENDAR_LAYOUT.day.size}px`,
|
|
6872
|
+
'--calendar-day-circle-size': `${CALENDAR_LAYOUT.day.circleSize}px`,
|
|
6873
|
+
'--calendar-day-circle-radius': `${CALENDAR_LAYOUT.day.circleRadius}px`,
|
|
6874
|
+
'--calendar-day-text': CALENDAR_LAYOUT.day.defaultText,
|
|
6875
|
+
'--calendar-day-hover-text': CALENDAR_LAYOUT.day.hoverText,
|
|
6876
|
+
'--calendar-day-hover-border': CALENDAR_LAYOUT.day.hoverBorder,
|
|
6877
|
+
'--calendar-day-select-bg': CALENDAR_LAYOUT.day.selectBg,
|
|
6878
|
+
'--calendar-day-select-text': CALENDAR_LAYOUT.day.selectText,
|
|
6879
|
+
'--calendar-day-disabled-text': CALENDAR_LAYOUT.day.disabledText,
|
|
6880
|
+
'--calendar-day-font-size': `${CALENDAR_LAYOUT.day.fontSize}px`,
|
|
6881
|
+
'--calendar-day-line-height': `${CALENDAR_LAYOUT.day.lineHeight}px`,
|
|
6882
|
+
'--calendar-day-font-weight': CALENDAR_LAYOUT.day.fontWeight,
|
|
6883
|
+
'--calendar-day-bold-font-weight': CALENDAR_LAYOUT.day.boldFontWeight,
|
|
6884
|
+
'--calendar-day-dot-size': `${CALENDAR_LAYOUT.day.dot.size}px`,
|
|
6885
|
+
'--calendar-day-dot-gap': `${CALENDAR_LAYOUT.day.dot.gap}px`,
|
|
6886
|
+
'--calendar-day-dot-padding-y': `${CALENDAR_LAYOUT.day.dot.paddingY}px`,
|
|
6887
|
+
'--calendar-legend-font-size': `${CALENDAR_LAYOUT.legend.fontSize}px`,
|
|
6888
|
+
'--calendar-legend-line-height': `${CALENDAR_LAYOUT.legend.lineHeight}px`,
|
|
6889
|
+
'--calendar-legend-font-weight': CALENDAR_LAYOUT.legend.fontWeight,
|
|
6890
|
+
'--calendar-legend-gap': `${CALENDAR_LAYOUT.legend.gap}px`,
|
|
6891
|
+
'--calendar-legend-group-gap': `${CALENDAR_LAYOUT.legend.groupGap}px`,
|
|
6892
|
+
};
|
|
6893
|
+
const eventMap = this.eventMap;
|
|
6894
|
+
const legend = this.legendItems;
|
|
6895
|
+
return (hAsync("div", { key: '66c0bec57c13af12b05f2e90fbc5e1674ab052c8', class: "sd-calendar", style: cssVars }, hAsync("div", { key: '4df4f1c6d1ddcbe1478a69a481a228e66fc33c0a', class: "sd-calendar__header" }, hAsync("div", { key: '378c04444b3ddcc7df92ecce0f49056e919cd8e5', class: "sd-calendar__nav-group" }, hAsync("sd-ghost-button", { key: '47426c62a26b05a9db58144acc33770713e7fce4', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), hAsync("span", { key: '3b32e76a8a35705d820803c0b747829370079324', class: "sd-calendar__label" }, this.currentYear), hAsync("sd-ghost-button", { key: '2e890a2cea91c9f49a03f0db3a4b943c707e312e', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), hAsync("span", { key: '795bb8452e75303c25a8dc6d95f819f1e42f7f49', class: "sd-calendar__divider", "aria-hidden": "true" }), hAsync("div", { key: '6df460ec38917c51eff851732c7f37b7e09475f6', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, hAsync("sd-ghost-button", { key: '36ef9dfdcfac5d9da08d05ca357fc9ec4100af4f', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), hAsync("span", { key: 'b2e0cc74570724c0d97fb2afbcb775c0794583af', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), hAsync("sd-ghost-button", { key: '4c45467356411f7a5d137c19931d8fc62084c742', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), hAsync("div", { key: 'e1637a39795fb44bd33d138c8b244cc15b5f85f6', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (hAsync("span", { key: label, class: "sd-calendar__week-cell" }, label)))), hAsync("div", { key: '45642dc93b1373dc760f64ba74dd931e651279dd', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
6896
|
+
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
6897
|
+
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
6898
|
+
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
6899
|
+
const dayEvents = cell.inCurrentMonth ? eventMap.get(cell.date) : undefined;
|
|
6900
|
+
return (hAsync("button", { type: "button", key: cell.date, class: {
|
|
6901
|
+
'sd-calendar__day': true,
|
|
6902
|
+
'sd-calendar__day--empty': !cell.inCurrentMonth,
|
|
6903
|
+
'sd-calendar__day--today': isToday,
|
|
6904
|
+
'sd-calendar__day--selected': isSelected,
|
|
6905
|
+
'sd-calendar__day--disabled': isDisabled,
|
|
6906
|
+
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, hAsync("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), dayEvents && dayEvents.length > 0 && (hAsync("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents.map((ev, i) => (hAsync("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
6907
|
+
})), legend.length > 0 && [
|
|
6908
|
+
hAsync("span", { key: '0872cb7627db7d33721fbd1e1c9a601bd3c6c3e1', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
6909
|
+
hAsync("div", { key: 'd9c6be0684720aa9d2af24b2d0cf372a036dc8d5', class: "sd-calendar__legend" }, legend.map(item => (hAsync("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, hAsync("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), hAsync("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
6910
|
+
]));
|
|
6938
6911
|
}
|
|
6939
6912
|
static get watchers() { return {
|
|
6940
6913
|
"value": [{
|
|
6941
6914
|
"handleValueChange": 0
|
|
6942
|
-
}],
|
|
6943
|
-
"events": [{
|
|
6944
|
-
"handleEventsChange": 0
|
|
6945
|
-
}],
|
|
6946
|
-
"eventColors": [{
|
|
6947
|
-
"handleEventsChange": 0
|
|
6948
6915
|
}]
|
|
6949
6916
|
}; }
|
|
6950
6917
|
static get style() { return sdCalendarCss(); }
|
|
6951
6918
|
static get cmpMeta() { return {
|
|
6952
|
-
"$flags$":
|
|
6919
|
+
"$flags$": 512,
|
|
6953
6920
|
"$tagName$": "sd-calendar",
|
|
6954
6921
|
"$members$": {
|
|
6955
|
-
"value": [
|
|
6922
|
+
"value": [1025],
|
|
6956
6923
|
"selectable": [16],
|
|
6957
6924
|
"events": [16],
|
|
6958
|
-
"eventColors": [16],
|
|
6959
6925
|
"currentYear": [32],
|
|
6960
|
-
"currentMonth": [32]
|
|
6961
|
-
"eventsRevision": [32]
|
|
6926
|
+
"currentMonth": [32]
|
|
6962
6927
|
},
|
|
6963
6928
|
"$listeners$": undefined,
|
|
6964
6929
|
"$lazyBundleId$": "-",
|
|
6965
|
-
"$attrsToReflect$": [
|
|
6930
|
+
"$attrsToReflect$": []
|
|
6966
6931
|
}; }
|
|
6967
6932
|
}
|
|
6968
6933
|
|
|
@@ -6975,7 +6940,7 @@ class SdCard {
|
|
|
6975
6940
|
bordered = false;
|
|
6976
6941
|
sdClass = '';
|
|
6977
6942
|
render() {
|
|
6978
|
-
return (hAsync(Fragment, { key: '
|
|
6943
|
+
return (hAsync(Fragment, { key: '61c364f88b03eb56b60c660a58533f417d209e6a' }, hAsync("div", { key: 'dee3671e757c273ffec06a15a0191a798280522c', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, hAsync("slot", { key: 'f991bf5df95f8c1bac417aa4e70f40cf68624fb8' }))));
|
|
6979
6944
|
}
|
|
6980
6945
|
static get style() { return sdCardCss(); }
|
|
6981
6946
|
static get cmpMeta() { return {
|
|
@@ -7179,13 +7144,13 @@ class SdCheckbox {
|
|
|
7179
7144
|
'--sd-checkbox-inverse-icon': CHECKBOX_COLORS.checked.iconInverse,
|
|
7180
7145
|
'--sd-checkbox-inverse-label': CHECKBOX_COLORS.labelInverse,
|
|
7181
7146
|
};
|
|
7182
|
-
return (hAsync("label", { key: '
|
|
7147
|
+
return (hAsync("label", { key: '6fb506c448a5968d403f779d113fd60857901982', class: this.checkboxClasses, style: cssVars }, hAsync("input", { key: 'fb08f531416255b8886d2bd2c21c3f62e8a9d47d', type: "checkbox", ref: el => {
|
|
7183
7148
|
this.inputEl = el;
|
|
7184
|
-
}, value: this.val, checked: !!this.isChecked, disabled: this.disabled, onChange: this.handleChange, name: this.val?.toString() || 'checkbox', "aria-label": this.label || 'checkbox', "aria-checked": this.isChecked === null ? 'mixed' : this.isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }), hAsync("div", { key: '
|
|
7149
|
+
}, value: this.val, checked: !!this.isChecked, disabled: this.disabled, onChange: this.handleChange, name: this.val?.toString() || 'checkbox', "aria-label": this.label || 'checkbox', "aria-checked": this.isChecked === null ? 'mixed' : this.isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }), hAsync("div", { key: 'e49eb38375ba680e08510f83a15ce8a6bbecd4b8', class: "sd-checkbox__bg" }, this.isChecked !== false ? (hAsync("sd-icon", { name: this.isChecked === true ? 'checkboxCheck' : 'checkboxIndeterminate', size: Number(CHECKBOX_LAYOUT.iconSize), color: this.disabled
|
|
7185
7150
|
? CHECKBOX_COLORS.checked.iconDisabled
|
|
7186
7151
|
: this.inverse
|
|
7187
7152
|
? CHECKBOX_COLORS.checked.iconInverse
|
|
7188
|
-
: CHECKBOX_COLORS.checked.icon })) : null), this.label && hAsync("span", { key: '
|
|
7153
|
+
: CHECKBOX_COLORS.checked.icon })) : null), this.label && hAsync("span", { key: '92bc308561b0a7653926d751d029d80c38844b07', class: "sd-checkbox__label" }, this.label)));
|
|
7189
7154
|
}
|
|
7190
7155
|
static get watchers() { return {
|
|
7191
7156
|
"value": [{
|
|
@@ -7499,7 +7464,7 @@ class SdChip {
|
|
|
7499
7464
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
7500
7465
|
'--sd-chip-line-height': typography.lineHeight,
|
|
7501
7466
|
};
|
|
7502
|
-
return (hAsync("span", { key: '
|
|
7467
|
+
return (hAsync("span", { key: '3cd683af3aed7cc6e549c5fc5da1e00cda2dc2a0', class: {
|
|
7503
7468
|
'sd-chip': true,
|
|
7504
7469
|
[`sd-chip--${state}`]: true,
|
|
7505
7470
|
'sd-chip--disabled': this.disabled,
|
|
@@ -7652,7 +7617,7 @@ class SdCircleProgress {
|
|
|
7652
7617
|
}
|
|
7653
7618
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
7654
7619
|
const showPercent = !this.indeterminate;
|
|
7655
|
-
return (hAsync(Host, { key: '
|
|
7620
|
+
return (hAsync(Host, { key: 'd4ace6f784fd64a45baa746870a84a88b4911cf8', style: hostStyle }, hAsync("svg", { key: '08aef376ac746abf1a9b404e37703a862f956a08', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: '42411ef6f92f6427309d92dfad84ad7dc8f8c3bb', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), hAsync("circle", { key: 'a0ae53ce4dfd557e980155cd0ff22ba064fe32dc', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle })), showPercent && (hAsync("span", { key: '0917cfd3aa460872fa4c35da61530e01080d6937', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && hAsync("span", { key: '051756bc7b20e87205b21c735b2827a81c2a17c9', class: "sd-circle-progress__label" }, this.label)));
|
|
7656
7621
|
}
|
|
7657
7622
|
static get style() { return sdCircleProgressCss(); }
|
|
7658
7623
|
static get cmpMeta() { return {
|
|
@@ -7768,9 +7733,9 @@ class SdConfirmModal {
|
|
|
7768
7733
|
const type = this.resolvedType;
|
|
7769
7734
|
const iconName = CONFIRM_MODAL_ICON_MAP[type];
|
|
7770
7735
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[type];
|
|
7771
|
-
return (hAsync("div", { key: '
|
|
7736
|
+
return (hAsync("div", { key: '6dc337947f7c05799cf7c97d45b0df84c7976196', class: "sd-confirm-modal" }, hAsync("sd-ghost-button", { key: 'b584cc4bc00191f8488be7265249922110d57d90', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (hAsync("sd-icon", { key: '470716bef879befd1d6746bc27c10fb74d61a2b6', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), hAsync("h2", { key: '5b0113f13b219a2e14c5d45397c293baafc28a2c', class: `sd-confirm-modal__title ${this.titleClass ?? ''}` }, this.modalTitle), hAsync("div", { key: 'cee18d1afde384523ca0f96f4138b8854f89cb5c', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (hAsync("div", { key: 'b9466be3cbb635c9b8c0a50d7023b70fa31d9f0f', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: msg }))))), this.showContentBox && (hAsync("div", { key: 'f3ea52c0261a63e75b42175c2e7c602e02f82636', class: "sd-confirm-modal__content-box" }, this.tagContents ? (hAsync("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
7772
7737
|
this.customContentRef = el;
|
|
7773
|
-
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && hAsync("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel }), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: '
|
|
7738
|
+
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && hAsync("sd-tag", { name: this.tagPreset ?? 'square_sm_grey', label: this.tagLabel }), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: 'fa33e4f68a1c36e197ff6a6f5629005fbbebcbc3', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: msg })))))), hAsync("div", { key: '378162e9e44cefc4e61113ba927545040e6a6c6c', class: "sd-confirm-modal__button" }, this.subButtonLabel && (hAsync("sd-button", { key: '8fb93a086c4a42063f53ed533be2774de31db81e', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), hAsync("sd-button", { key: '304c80915c9a7a685bddcf2d5edf4f56119860e8', name: this.resolvedMainButton, label: this.mainButtonLabel ?? '확인', onSdClick: () => this.ok.emit() }))));
|
|
7774
7739
|
}
|
|
7775
7740
|
static get style() { return sdConfirmModalCss(); }
|
|
7776
7741
|
static get cmpMeta() { return {
|
|
@@ -7816,156 +7781,55 @@ class SdDateBox {
|
|
|
7816
7781
|
click;
|
|
7817
7782
|
mouseOver;
|
|
7818
7783
|
handleClickDate() {
|
|
7819
|
-
if (this.disabled || this.date === undefined || this.date === '' || this.date === 0)
|
|
7820
|
-
return;
|
|
7821
|
-
if (typeof this.date === 'string')
|
|
7822
|
-
return;
|
|
7823
|
-
this.click?.emit(this.date);
|
|
7824
|
-
}
|
|
7825
|
-
handleHoverDate() {
|
|
7826
|
-
if (typeof this.date === 'string')
|
|
7827
|
-
return;
|
|
7828
|
-
this.mouseOver?.emit(this.date);
|
|
7829
|
-
}
|
|
7830
|
-
render() {
|
|
7831
|
-
return (hAsync("div", { key: '
|
|
7832
|
-
'sd-date-box': true,
|
|
7833
|
-
'sd-hoverable': !this.disabled || !this.selected || this.type === '',
|
|
7834
|
-
'sd-date-box--disabled': this.disabled,
|
|
7835
|
-
'sd-date-box--selected': this.selected,
|
|
7836
|
-
'sd-date-box--today': this.isToday,
|
|
7837
|
-
'sd-date-box--start-date': this.isStartDate,
|
|
7838
|
-
'sd-date-box--end-date': this.isEndDate,
|
|
7839
|
-
'sd-date-box--in-range': this.inRange,
|
|
7840
|
-
'sd-date-box--type-start': this.type === 'start',
|
|
7841
|
-
'sd-date-box--type-end': this.type === 'end',
|
|
7842
|
-
}, onClick: () => this.handleClickDate(), onKeyDown: e => {
|
|
7843
|
-
if (e.key === 'Enter' || e.key === ' ') {
|
|
7844
|
-
e.preventDefault();
|
|
7845
|
-
this.handleClickDate();
|
|
7846
|
-
}
|
|
7847
|
-
}, onMouseOver: () => this.handleHoverDate(), onFocus: () => this.handleHoverDate() }, hAsync("div", { key: '
|
|
7848
|
-
}
|
|
7849
|
-
static get style() { return sdDateBoxCss(); }
|
|
7850
|
-
static get cmpMeta() { return {
|
|
7851
|
-
"$flags$": 514,
|
|
7852
|
-
"$tagName$": "sd-date-box",
|
|
7853
|
-
"$members$": {
|
|
7854
|
-
"date": [8],
|
|
7855
|
-
"disabled": [4],
|
|
7856
|
-
"selected": [4],
|
|
7857
|
-
"isStartDate": [4, "is-start-date"],
|
|
7858
|
-
"isEndDate": [4, "is-end-date"],
|
|
7859
|
-
"isToday": [4, "is-today"],
|
|
7860
|
-
"inRange": [4, "in-range"],
|
|
7861
|
-
"type": [1]
|
|
7862
|
-
},
|
|
7863
|
-
"$listeners$": undefined,
|
|
7864
|
-
"$lazyBundleId$": "-",
|
|
7865
|
-
"$attrsToReflect$": []
|
|
7866
|
-
}; }
|
|
7867
|
-
}
|
|
7868
|
-
|
|
7869
|
-
const datepicker = {
|
|
7870
|
-
sm: {
|
|
7871
|
-
height: "28",
|
|
7872
|
-
paddingX: "12",
|
|
7873
|
-
gap: "8",
|
|
7874
|
-
icon: "16",
|
|
7875
|
-
typography: {
|
|
7876
|
-
fontWeight: "400",
|
|
7877
|
-
fontSize: "12",
|
|
7878
|
-
lineHeight: "20"},
|
|
7879
|
-
radius: "4"
|
|
7880
|
-
},
|
|
7881
|
-
md: {
|
|
7882
|
-
height: "36",
|
|
7883
|
-
paddingX: "16",
|
|
7884
|
-
gap: "12",
|
|
7885
|
-
icon: "20",
|
|
7886
|
-
typography: {
|
|
7887
|
-
fontWeight: "400",
|
|
7888
|
-
fontSize: "14",
|
|
7889
|
-
lineHeight: "24"
|
|
7890
|
-
},
|
|
7891
|
-
radius: "6"
|
|
7892
|
-
},
|
|
7893
|
-
border: {
|
|
7894
|
-
"default": "#AAAAAA",
|
|
7895
|
-
focus: "#0075FF"},
|
|
7896
|
-
bg: {
|
|
7897
|
-
"default": "#FFFFFF"},
|
|
7898
|
-
icon: {
|
|
7899
|
-
"default": "#888888",
|
|
7900
|
-
disabled: "#BBBBBB"
|
|
7901
|
-
},
|
|
7902
|
-
text: {
|
|
7903
|
-
"default": "#222222",
|
|
7904
|
-
hint: "#555555",
|
|
7905
|
-
disabled: "#888888"
|
|
7906
|
-
},
|
|
7907
|
-
calendar: {
|
|
7908
|
-
bg: "#FFFFFF",
|
|
7909
|
-
paddingXY: "24",
|
|
7910
|
-
gap: "12",
|
|
7911
|
-
radius: "8",
|
|
7912
|
-
header: {
|
|
7913
|
-
gap: "8",
|
|
7914
|
-
divider: "#E1E1E1",
|
|
7915
|
-
typography: {
|
|
7916
|
-
fontWeight: "500",
|
|
7917
|
-
fontSize: "14",
|
|
7918
|
-
lineHeight: "24"
|
|
7919
|
-
}
|
|
7920
|
-
},
|
|
7921
|
-
week: {
|
|
7922
|
-
typography: {
|
|
7923
|
-
fontWeight: "400",
|
|
7924
|
-
fontSize: "12",
|
|
7925
|
-
lineHeight: "20"},
|
|
7926
|
-
color: "#888888"
|
|
7927
|
-
},
|
|
7928
|
-
grid: {
|
|
7929
|
-
rowGap: "4"
|
|
7930
|
-
},
|
|
7931
|
-
day: {
|
|
7932
|
-
width: "40",
|
|
7933
|
-
circle: {
|
|
7934
|
-
size: "32",
|
|
7935
|
-
radius: "9999"
|
|
7936
|
-
},
|
|
7937
|
-
"default": {
|
|
7938
|
-
text: "#222222"
|
|
7939
|
-
},
|
|
7940
|
-
hover: {
|
|
7941
|
-
text: "#222222",
|
|
7942
|
-
border: "#0075FF"
|
|
7943
|
-
},
|
|
7944
|
-
select: {
|
|
7945
|
-
bg: "#0075FF",
|
|
7946
|
-
text: "#FFFFFF"
|
|
7947
|
-
},
|
|
7948
|
-
disabled: {
|
|
7949
|
-
text: "#BBBBBB"
|
|
7950
|
-
},
|
|
7951
|
-
typography: {
|
|
7952
|
-
"default": {
|
|
7953
|
-
fontWeight: "400",
|
|
7954
|
-
fontSize: "14",
|
|
7955
|
-
lineHeight: "24"
|
|
7956
|
-
},
|
|
7957
|
-
bold: {
|
|
7958
|
-
fontWeight: "700"}
|
|
7959
|
-
}},
|
|
7960
|
-
range: {
|
|
7961
|
-
bg: "#D9EAFF",
|
|
7962
|
-
height: "32",
|
|
7963
|
-
panelGap: "24",
|
|
7964
|
-
divider: "#E1E1E1"}}
|
|
7965
|
-
};
|
|
7966
|
-
var datepickerTokens = {
|
|
7967
|
-
datepicker: datepicker
|
|
7968
|
-
};
|
|
7784
|
+
if (this.disabled || this.date === undefined || this.date === '' || this.date === 0)
|
|
7785
|
+
return;
|
|
7786
|
+
if (typeof this.date === 'string')
|
|
7787
|
+
return;
|
|
7788
|
+
this.click?.emit(this.date);
|
|
7789
|
+
}
|
|
7790
|
+
handleHoverDate() {
|
|
7791
|
+
if (typeof this.date === 'string')
|
|
7792
|
+
return;
|
|
7793
|
+
this.mouseOver?.emit(this.date);
|
|
7794
|
+
}
|
|
7795
|
+
render() {
|
|
7796
|
+
return (hAsync("div", { key: 'ab09e8112e18b04dab2d171fa6dbd8554d11e57b', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
7797
|
+
'sd-date-box': true,
|
|
7798
|
+
'sd-hoverable': !this.disabled || !this.selected || this.type === '',
|
|
7799
|
+
'sd-date-box--disabled': this.disabled,
|
|
7800
|
+
'sd-date-box--selected': this.selected,
|
|
7801
|
+
'sd-date-box--today': this.isToday,
|
|
7802
|
+
'sd-date-box--start-date': this.isStartDate,
|
|
7803
|
+
'sd-date-box--end-date': this.isEndDate,
|
|
7804
|
+
'sd-date-box--in-range': this.inRange,
|
|
7805
|
+
'sd-date-box--type-start': this.type === 'start',
|
|
7806
|
+
'sd-date-box--type-end': this.type === 'end',
|
|
7807
|
+
}, onClick: () => this.handleClickDate(), onKeyDown: e => {
|
|
7808
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
7809
|
+
e.preventDefault();
|
|
7810
|
+
this.handleClickDate();
|
|
7811
|
+
}
|
|
7812
|
+
}, onMouseOver: () => this.handleHoverDate(), onFocus: () => this.handleHoverDate() }, hAsync("div", { key: 'b7e418536d6de86ae4e8042a0fc59dece42f7489', class: "sd-date-box__content" }, hAsync("div", { key: '41f2b2136cc60e2d1a6664852a3fadf30413de0f', class: "sd-date-box__label" }, this.date))));
|
|
7813
|
+
}
|
|
7814
|
+
static get style() { return sdDateBoxCss(); }
|
|
7815
|
+
static get cmpMeta() { return {
|
|
7816
|
+
"$flags$": 514,
|
|
7817
|
+
"$tagName$": "sd-date-box",
|
|
7818
|
+
"$members$": {
|
|
7819
|
+
"date": [8],
|
|
7820
|
+
"disabled": [4],
|
|
7821
|
+
"selected": [4],
|
|
7822
|
+
"isStartDate": [4, "is-start-date"],
|
|
7823
|
+
"isEndDate": [4, "is-end-date"],
|
|
7824
|
+
"isToday": [4, "is-today"],
|
|
7825
|
+
"inRange": [4, "in-range"],
|
|
7826
|
+
"type": [1]
|
|
7827
|
+
},
|
|
7828
|
+
"$listeners$": undefined,
|
|
7829
|
+
"$lazyBundleId$": "-",
|
|
7830
|
+
"$attrsToReflect$": []
|
|
7831
|
+
}; }
|
|
7832
|
+
}
|
|
7969
7833
|
|
|
7970
7834
|
const sm$3 = datepickerTokens.datepicker.sm;
|
|
7971
7835
|
const md$3 = datepickerTokens.datepicker.md;
|
|
@@ -7997,44 +7861,6 @@ const DATEPICKER_COLORS = {
|
|
|
7997
7861
|
icon: datepickerTokens.datepicker.icon,
|
|
7998
7862
|
text: datepickerTokens.datepicker.text,
|
|
7999
7863
|
};
|
|
8000
|
-
const CALENDAR_LAYOUT = {
|
|
8001
|
-
bg: datepickerTokens.datepicker.calendar.bg,
|
|
8002
|
-
paddingXY: datepickerTokens.datepicker.calendar.paddingXY,
|
|
8003
|
-
gap: datepickerTokens.datepicker.calendar.gap,
|
|
8004
|
-
radius: datepickerTokens.datepicker.calendar.radius,
|
|
8005
|
-
header: {
|
|
8006
|
-
gap: datepickerTokens.datepicker.calendar.header.gap,
|
|
8007
|
-
divider: datepickerTokens.datepicker.calendar.header.divider,
|
|
8008
|
-
fontSize: datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
8009
|
-
lineHeight: datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
8010
|
-
fontWeight: datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
8011
|
-
},
|
|
8012
|
-
week: {
|
|
8013
|
-
fontSize: datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
8014
|
-
lineHeight: datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
8015
|
-
fontWeight: datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
8016
|
-
color: datepickerTokens.datepicker.calendar.week.color,
|
|
8017
|
-
},
|
|
8018
|
-
grid: {
|
|
8019
|
-
rowGap: datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
8020
|
-
},
|
|
8021
|
-
day: {
|
|
8022
|
-
size: datepickerTokens.datepicker.calendar.day.width,
|
|
8023
|
-
circleSize: datepickerTokens.datepicker.calendar.day.circle.size,
|
|
8024
|
-
circleRadius: datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
8025
|
-
defaultText: datepickerTokens.datepicker.calendar.day.default.text,
|
|
8026
|
-
hoverText: datepickerTokens.datepicker.calendar.day.hover.text,
|
|
8027
|
-
hoverBorder: datepickerTokens.datepicker.calendar.day.hover.border,
|
|
8028
|
-
selectBg: datepickerTokens.datepicker.calendar.day.select.bg,
|
|
8029
|
-
selectText: datepickerTokens.datepicker.calendar.day.select.text,
|
|
8030
|
-
disabledText: datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
8031
|
-
fontSize: datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
8032
|
-
lineHeight: datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
8033
|
-
fontWeight: datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
8034
|
-
boldFontWeight: datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
8035
|
-
},
|
|
8036
|
-
};
|
|
8037
|
-
const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
8038
7864
|
|
|
8039
7865
|
const sdDatePickerCss = () => `sd-date-picker{display:inline-flex}sd-date-picker sd-portal{display:none}sd-date-picker .sd-date-picker{position:relative;width:100%;height:100%}`;
|
|
8040
7866
|
|
|
@@ -8111,6 +7937,7 @@ class SdDatePicker {
|
|
|
8111
7937
|
}
|
|
8112
7938
|
};
|
|
8113
7939
|
handleSelect = (e) => {
|
|
7940
|
+
e.stopPropagation();
|
|
8114
7941
|
this.closeDropdown();
|
|
8115
7942
|
this.value = e.detail;
|
|
8116
7943
|
const nextValue = this.value;
|
|
@@ -8134,9 +7961,9 @@ class SdDatePicker {
|
|
|
8134
7961
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
8135
7962
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
8136
7963
|
};
|
|
8137
|
-
return (hAsync("sd-field", { key: '
|
|
7964
|
+
return (hAsync("sd-field", { key: '825c845ea1ada63a9f21cfc43aad04a598325c13', 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, 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 }, hAsync("div", { key: 'b9dd1a8df29f340ad67331dbebd3ec71b79d128a', class: "sd-date-picker", ref: el => {
|
|
8138
7965
|
this.triggerRef = el;
|
|
8139
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
7966
|
+
} }, hAsync("sd-date-picker-trigger", { key: 'b9bed57fa4a2b06b004ec5a1b723ed5af25fda19', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '776e0ce183edd9c7903ce1a75208addc47c20408', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-calendar", { key: 'f86b502f6b17ee9ff262c1a64e1b0e24defc1660', value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
8140
7967
|
}
|
|
8141
7968
|
static get watchers() { return {
|
|
8142
7969
|
"isOpen": [{
|
|
@@ -8162,193 +7989,21 @@ class SdDatePicker {
|
|
|
8162
7989
|
"errorMessage": [1, "error-message"],
|
|
8163
7990
|
"rules": [16],
|
|
8164
7991
|
"error": [1028],
|
|
8165
|
-
"icon": [16],
|
|
8166
|
-
"labelTooltip": [1, "label-tooltip"],
|
|
8167
|
-
"labelTooltipProps": [16],
|
|
8168
|
-
"name": [1],
|
|
8169
|
-
"isOpen": [32],
|
|
8170
|
-
"isAnimatingOut": [32],
|
|
8171
|
-
"focused": [32],
|
|
8172
|
-
"hovered": [32],
|
|
8173
|
-
"sdValidate": [64],
|
|
8174
|
-
"sdReset": [64],
|
|
8175
|
-
"sdResetValidate": [64]
|
|
8176
|
-
},
|
|
8177
|
-
"$listeners$": undefined,
|
|
8178
|
-
"$lazyBundleId$": "-",
|
|
8179
|
-
"$attrsToReflect$": [["size", "size"], ["placeholder", "placeholder"], ["disabled", "disabled"]]
|
|
8180
|
-
}; }
|
|
8181
|
-
}
|
|
8182
|
-
|
|
8183
|
-
const sdDatePickerCalendarCss = () => `sd-date-picker-calendar{display:block}sd-date-picker-calendar .sd-date-picker-calendar{display:flex;flex-direction:column;gap:var(--calendar-gap);height:328px;padding:var(--calendar-padding);background:var(--calendar-bg);border-radius:var(--calendar-radius);box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.2);user-select:none}sd-date-picker-calendar .sd-date-picker-calendar__header{display:flex;align-items:center;justify-content:center;gap:var(--calendar-header-gap);font-size:var(--calendar-header-font-size);line-height:var(--calendar-header-line-height);font-weight:var(--calendar-header-font-weight);color:var(--calendar-day-text)}sd-date-picker-calendar .sd-date-picker-calendar__nav-group{display:inline-flex;align-items:center;gap:var(--calendar-gap)}sd-date-picker-calendar .sd-date-picker-calendar__nav-group-month{width:100%}sd-date-picker-calendar .sd-date-picker-calendar__label{display:inline-flex;align-items:center;justify-content:center;min-width:40px;text-align:center}sd-date-picker-calendar .sd-date-picker-calendar__label-month{width:100%}sd-date-picker-calendar .sd-date-picker-calendar__divider{display:inline-block;width:1px;height:16px;background:var(--calendar-header-divider)}sd-date-picker-calendar .sd-date-picker-calendar__week{display:grid;grid-template-columns:repeat(7, var(--calendar-day-size))}sd-date-picker-calendar .sd-date-picker-calendar__week-cell{display:inline-flex;align-items:center;justify-content:center;height:20px;font-size:var(--calendar-week-font-size);line-height:var(--calendar-week-line-height);font-weight:var(--calendar-week-font-weight);color:var(--calendar-week-color)}sd-date-picker-calendar .sd-date-picker-calendar__grid{display:grid;grid-template-columns:repeat(7, var(--calendar-day-size));row-gap:var(--calendar-grid-row-gap)}sd-date-picker-calendar .sd-date-picker-calendar__day{display:inline-flex;align-items:center;justify-content:center;width:var(--calendar-day-size);height:32px;padding:0;border:none;background:transparent;cursor:pointer;font-size:var(--calendar-day-font-size);line-height:var(--calendar-day-line-height);font-weight:var(--calendar-day-font-weight);color:var(--calendar-day-text)}sd-date-picker-calendar .sd-date-picker-calendar__day-circle{display:inline-flex;align-items:center;justify-content:center;width:var(--calendar-day-circle-size);height:var(--calendar-day-circle-size);border-radius:calc(var(--calendar-day-circle-radius) * 1px);border:1px solid transparent;box-sizing:border-box}sd-date-picker-calendar .sd-date-picker-calendar__day:not(:disabled):hover .sd-date-picker-calendar__day-circle{border-radius:16px;border:1px solid var(--calendar-day-hover-border)}sd-date-picker-calendar .sd-date-picker-calendar__day--today .sd-date-picker-calendar__day-circle{font-weight:700}sd-date-picker-calendar .sd-date-picker-calendar__day--selected .sd-date-picker-calendar__day-circle{border-radius:16px;background:var(--calendar-day-select-bg);color:var(--calendar-day-select-text)}sd-date-picker-calendar .sd-date-picker-calendar__day--selected:not(:disabled):hover .sd-date-picker-calendar__day-circle{background:var(--calendar-day-select-bg);color:var(--calendar-day-select-text)}sd-date-picker-calendar .sd-date-picker-calendar__day--disabled{color:var(--calendar-day-disabled-text);background:none !important;cursor:not-allowed}sd-date-picker-calendar .sd-date-picker-calendar__day--empty{visibility:hidden;pointer-events:none}`;
|
|
8184
|
-
|
|
8185
|
-
class SdDatePickerCalendar {
|
|
8186
|
-
constructor(hostRef) {
|
|
8187
|
-
registerInstance(this, hostRef);
|
|
8188
|
-
this.select = createEvent(this, "sdSelect", 7);
|
|
8189
|
-
this.viewChange = createEvent(this, "sdViewChange", 7);
|
|
8190
|
-
}
|
|
8191
|
-
value = null;
|
|
8192
|
-
selectable;
|
|
8193
|
-
currentYear;
|
|
8194
|
-
currentMonth;
|
|
8195
|
-
select;
|
|
8196
|
-
viewChange;
|
|
8197
|
-
dateUtil = useDatePicker();
|
|
8198
|
-
componentWillLoad() {
|
|
8199
|
-
this.syncViewFromValue();
|
|
8200
|
-
}
|
|
8201
|
-
handleValueChange() {
|
|
8202
|
-
this.syncViewFromValue();
|
|
8203
|
-
}
|
|
8204
|
-
syncViewFromValue() {
|
|
8205
|
-
const base = this.value || today;
|
|
8206
|
-
const [year, month] = base.split('-').map(Number);
|
|
8207
|
-
this.currentYear = year;
|
|
8208
|
-
this.currentMonth = month;
|
|
8209
|
-
}
|
|
8210
|
-
formatDate(year, month, day) {
|
|
8211
|
-
return `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
8212
|
-
}
|
|
8213
|
-
get cells() {
|
|
8214
|
-
const year = this.currentYear;
|
|
8215
|
-
const month = this.currentMonth;
|
|
8216
|
-
const firstDayIndex = new Date(year, month - 1, 1).getDay();
|
|
8217
|
-
const daysInCurrent = new Date(year, month, 0).getDate();
|
|
8218
|
-
const prevMonth = month === 1 ? 12 : month - 1;
|
|
8219
|
-
const prevYear = month === 1 ? year - 1 : year;
|
|
8220
|
-
const daysInPrev = new Date(prevYear, prevMonth, 0).getDate();
|
|
8221
|
-
const nextMonth = month === 12 ? 1 : month + 1;
|
|
8222
|
-
const nextYear = month === 12 ? year + 1 : year;
|
|
8223
|
-
const cells = [];
|
|
8224
|
-
for (let i = firstDayIndex - 1; i >= 0; i--) {
|
|
8225
|
-
const day = daysInPrev - i;
|
|
8226
|
-
cells.push({
|
|
8227
|
-
date: this.formatDate(prevYear, prevMonth, day),
|
|
8228
|
-
day,
|
|
8229
|
-
inCurrentMonth: false,
|
|
8230
|
-
});
|
|
8231
|
-
}
|
|
8232
|
-
for (let day = 1; day <= daysInCurrent; day++) {
|
|
8233
|
-
cells.push({
|
|
8234
|
-
date: this.formatDate(year, month, day),
|
|
8235
|
-
day,
|
|
8236
|
-
inCurrentMonth: true,
|
|
8237
|
-
});
|
|
8238
|
-
}
|
|
8239
|
-
const remaining = (7 - (cells.length % 7)) % 7;
|
|
8240
|
-
for (let day = 1; day <= remaining; day++) {
|
|
8241
|
-
cells.push({
|
|
8242
|
-
date: this.formatDate(nextYear, nextMonth, day),
|
|
8243
|
-
day,
|
|
8244
|
-
inCurrentMonth: false,
|
|
8245
|
-
});
|
|
8246
|
-
}
|
|
8247
|
-
return cells;
|
|
8248
|
-
}
|
|
8249
|
-
emitViewChange() {
|
|
8250
|
-
this.viewChange.emit({ year: this.currentYear, month: this.currentMonth });
|
|
8251
|
-
}
|
|
8252
|
-
goPrevYear = (event) => {
|
|
8253
|
-
event.stopPropagation();
|
|
8254
|
-
this.currentYear -= 1;
|
|
8255
|
-
this.emitViewChange();
|
|
8256
|
-
};
|
|
8257
|
-
goNextYear = (event) => {
|
|
8258
|
-
event.stopPropagation();
|
|
8259
|
-
this.currentYear += 1;
|
|
8260
|
-
this.emitViewChange();
|
|
8261
|
-
};
|
|
8262
|
-
goPrevMonth = (event) => {
|
|
8263
|
-
event.stopPropagation();
|
|
8264
|
-
const { newYear, newMonth } = this.dateUtil.calculateYearMonth(this.currentYear, this.currentMonth, 'prev');
|
|
8265
|
-
this.currentYear = newYear;
|
|
8266
|
-
this.currentMonth = newMonth;
|
|
8267
|
-
this.emitViewChange();
|
|
8268
|
-
};
|
|
8269
|
-
goNextMonth = (event) => {
|
|
8270
|
-
event.stopPropagation();
|
|
8271
|
-
const { newYear, newMonth } = this.dateUtil.calculateYearMonth(this.currentYear, this.currentMonth, 'next');
|
|
8272
|
-
this.currentYear = newYear;
|
|
8273
|
-
this.currentMonth = newMonth;
|
|
8274
|
-
this.emitViewChange();
|
|
8275
|
-
};
|
|
8276
|
-
isDisabled(date) {
|
|
8277
|
-
if (!this.selectable)
|
|
8278
|
-
return false;
|
|
8279
|
-
const [start, end] = this.selectable;
|
|
8280
|
-
if (start !== '' && date < start)
|
|
8281
|
-
return true;
|
|
8282
|
-
if (end !== '' && date > end)
|
|
8283
|
-
return true;
|
|
8284
|
-
return false;
|
|
8285
|
-
}
|
|
8286
|
-
handleDayClick(cell) {
|
|
8287
|
-
if (this.isDisabled(cell.date))
|
|
8288
|
-
return;
|
|
8289
|
-
this.select.emit(cell.date);
|
|
8290
|
-
}
|
|
8291
|
-
render() {
|
|
8292
|
-
const cssVars = {
|
|
8293
|
-
'--calendar-bg': CALENDAR_LAYOUT.bg,
|
|
8294
|
-
'--calendar-padding': `${CALENDAR_LAYOUT.paddingXY}px`,
|
|
8295
|
-
'--calendar-gap': `${CALENDAR_LAYOUT.gap}px`,
|
|
8296
|
-
'--calendar-radius': `${CALENDAR_LAYOUT.radius}px`,
|
|
8297
|
-
'--calendar-header-gap': `${CALENDAR_LAYOUT.header.gap}px`,
|
|
8298
|
-
'--calendar-header-divider': CALENDAR_LAYOUT.header.divider,
|
|
8299
|
-
'--calendar-header-font-size': `${CALENDAR_LAYOUT.header.fontSize}px`,
|
|
8300
|
-
'--calendar-header-line-height': `${CALENDAR_LAYOUT.header.lineHeight}px`,
|
|
8301
|
-
'--calendar-header-font-weight': CALENDAR_LAYOUT.header.fontWeight,
|
|
8302
|
-
'--calendar-week-font-size': `${CALENDAR_LAYOUT.week.fontSize}px`,
|
|
8303
|
-
'--calendar-week-line-height': `${CALENDAR_LAYOUT.week.lineHeight}px`,
|
|
8304
|
-
'--calendar-week-font-weight': CALENDAR_LAYOUT.week.fontWeight,
|
|
8305
|
-
'--calendar-week-color': CALENDAR_LAYOUT.week.color,
|
|
8306
|
-
'--calendar-grid-row-gap': `${CALENDAR_LAYOUT.grid.rowGap}px`,
|
|
8307
|
-
'--calendar-day-size': `${CALENDAR_LAYOUT.day.size}px`,
|
|
8308
|
-
'--calendar-day-circle-size': `${CALENDAR_LAYOUT.day.circleSize}px`,
|
|
8309
|
-
'--calendar-day-circle-radius': `${CALENDAR_LAYOUT.day.circleRadius}px`,
|
|
8310
|
-
'--calendar-day-text': CALENDAR_LAYOUT.day.defaultText,
|
|
8311
|
-
'--calendar-day-hover-text': CALENDAR_LAYOUT.day.hoverText,
|
|
8312
|
-
'--calendar-day-hover-border': CALENDAR_LAYOUT.day.hoverBorder,
|
|
8313
|
-
'--calendar-day-select-bg': CALENDAR_LAYOUT.day.selectBg,
|
|
8314
|
-
'--calendar-day-select-text': CALENDAR_LAYOUT.day.selectText,
|
|
8315
|
-
'--calendar-day-disabled-text': CALENDAR_LAYOUT.day.disabledText,
|
|
8316
|
-
'--calendar-day-font-size': `${CALENDAR_LAYOUT.day.fontSize}px`,
|
|
8317
|
-
'--calendar-day-line-height': `${CALENDAR_LAYOUT.day.lineHeight}px`,
|
|
8318
|
-
'--calendar-day-font-weight': CALENDAR_LAYOUT.day.fontWeight,
|
|
8319
|
-
'--calendar-day-bold-font-weight': CALENDAR_LAYOUT.day.boldFontWeight,
|
|
8320
|
-
};
|
|
8321
|
-
return (hAsync("div", { key: '5fca5d51cbe5005cde3468c10f39397831371762', class: "sd-date-picker-calendar", style: cssVars }, hAsync("div", { key: '5b6a101b463b455bfc70f9b92665fe308f45773d', class: "sd-date-picker-calendar__header" }, hAsync("div", { key: '3fe7a4e416c632640371f9b3cb12baf72c7eab06', class: "sd-date-picker-calendar__nav-group" }, hAsync("sd-ghost-button", { key: '1c71cf45dae23308ff901f08b606f0cfcdc7e5b4', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), hAsync("span", { key: 'aa9863d2cac5eb5d00a0d72570b216206b669f37', class: "sd-date-picker-calendar__label" }, this.currentYear), hAsync("sd-ghost-button", { key: '941118e0c3cd37ed5decb2e91cfa738221f74958', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), hAsync("span", { key: 'e630c7269a617deeaa38cace0e2a91affb558688', class: "sd-date-picker-calendar__divider", "aria-hidden": "true" }), hAsync("div", { key: '45cfc135eeb6bf834cef92c1e36f2def4d7c2058', class: "sd-date-picker-calendar__nav-group sd-date-picker-calendar__nav-group-month" }, hAsync("sd-ghost-button", { key: '98483c6626ea13cdb78be806feaa1748d60b6a1a', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), hAsync("span", { key: '9e6097a040679203117436966c246f00b94f5ff2', class: "sd-date-picker-calendar__label sd-date-picker-calendar__label-month" }, this.currentMonth, "\uC6D4"), hAsync("sd-ghost-button", { key: '0ab7ccdae8678bb909aca74f4189a4426e51ec0b', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), hAsync("div", { key: '07763d55d00fd6c6b3523bbbb2e994a177a5b81c', class: "sd-date-picker-calendar__week" }, WEEK_LABELS.map(label => (hAsync("span", { key: label, class: "sd-date-picker-calendar__week-cell" }, label)))), hAsync("div", { key: '0304efaa140a8dba320e0e6791ef886bc77ac57b', class: "sd-date-picker-calendar__grid" }, this.cells.map(cell => {
|
|
8322
|
-
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
8323
|
-
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
8324
|
-
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
8325
|
-
return (hAsync("button", { type: "button", key: cell.date, class: {
|
|
8326
|
-
'sd-date-picker-calendar__day': true,
|
|
8327
|
-
'sd-date-picker-calendar__day--empty': !cell.inCurrentMonth,
|
|
8328
|
-
'sd-date-picker-calendar__day--today': isToday,
|
|
8329
|
-
'sd-date-picker-calendar__day--selected': isSelected,
|
|
8330
|
-
'sd-date-picker-calendar__day--disabled': isDisabled,
|
|
8331
|
-
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, hAsync("span", { class: "sd-date-picker-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : '')));
|
|
8332
|
-
}))));
|
|
8333
|
-
}
|
|
8334
|
-
static get watchers() { return {
|
|
8335
|
-
"value": [{
|
|
8336
|
-
"handleValueChange": 0
|
|
8337
|
-
}]
|
|
8338
|
-
}; }
|
|
8339
|
-
static get style() { return sdDatePickerCalendarCss(); }
|
|
8340
|
-
static get cmpMeta() { return {
|
|
8341
|
-
"$flags$": 512,
|
|
8342
|
-
"$tagName$": "sd-date-picker-calendar",
|
|
8343
|
-
"$members$": {
|
|
8344
|
-
"value": [1],
|
|
8345
|
-
"selectable": [16],
|
|
8346
|
-
"currentYear": [32],
|
|
8347
|
-
"currentMonth": [32]
|
|
7992
|
+
"icon": [16],
|
|
7993
|
+
"labelTooltip": [1, "label-tooltip"],
|
|
7994
|
+
"labelTooltipProps": [16],
|
|
7995
|
+
"name": [1],
|
|
7996
|
+
"isOpen": [32],
|
|
7997
|
+
"isAnimatingOut": [32],
|
|
7998
|
+
"focused": [32],
|
|
7999
|
+
"hovered": [32],
|
|
8000
|
+
"sdValidate": [64],
|
|
8001
|
+
"sdReset": [64],
|
|
8002
|
+
"sdResetValidate": [64]
|
|
8348
8003
|
},
|
|
8349
8004
|
"$listeners$": undefined,
|
|
8350
8005
|
"$lazyBundleId$": "-",
|
|
8351
|
-
"$attrsToReflect$": []
|
|
8006
|
+
"$attrsToReflect$": [["size", "size"], ["placeholder", "placeholder"], ["disabled", "disabled"]]
|
|
8352
8007
|
}; }
|
|
8353
8008
|
}
|
|
8354
8009
|
|
|
@@ -8391,7 +8046,7 @@ class SdDatePickerTrigger {
|
|
|
8391
8046
|
? DATEPICKER_COLORS.icon.disabled
|
|
8392
8047
|
: DATEPICKER_COLORS.icon.default,
|
|
8393
8048
|
};
|
|
8394
|
-
return (hAsync("div", { key: '
|
|
8049
|
+
return (hAsync("div", { key: '57a23626b1a392be20dccead71b792590fab61b8', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
8395
8050
|
'sd-date-picker-trigger': true,
|
|
8396
8051
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
8397
8052
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -8399,7 +8054,7 @@ class SdDatePickerTrigger {
|
|
|
8399
8054
|
e.preventDefault();
|
|
8400
8055
|
this.handleClick();
|
|
8401
8056
|
}
|
|
8402
|
-
} }, hAsync("sd-icon", { key: '
|
|
8057
|
+
} }, hAsync("sd-icon", { key: 'd4bb58eb97f9f2b98c27315547a85b019530ce5e', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), hAsync("span", { key: '25222882fa966eb5d6ead15e62b65af26586afbd', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
8403
8058
|
}
|
|
8404
8059
|
static get style() { return sdDatePickerTriggerCss(); }
|
|
8405
8060
|
static get cmpMeta() { return {
|
|
@@ -8528,9 +8183,9 @@ class SdDateRangePicker {
|
|
|
8528
8183
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
8529
8184
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
8530
8185
|
};
|
|
8531
|
-
return (hAsync("sd-field", { key: '
|
|
8186
|
+
return (hAsync("sd-field", { key: '89eaeb8978796508650aec5f3ccdeb7df16fb6f4', 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, 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 }, hAsync("div", { key: 'f3ce583e53edbc451ab6c0592c0ab2ed87e07a06', class: "sd-date-range-picker", ref: el => {
|
|
8532
8187
|
this.triggerRef = el;
|
|
8533
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
8188
|
+
} }, hAsync("sd-date-picker-trigger", { key: '53086fd3d15dc2c05364a66fdf767e09c6c19fac', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '5ee1499ee9a224a9c653095e9914ed20cbaca2a1', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-date-range-picker-calendar", { key: '7c7479dacf57c996a708435857d2b5f7900509fd', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
8534
8189
|
}
|
|
8535
8190
|
static get watchers() { return {
|
|
8536
8191
|
"isOpen": [{
|
|
@@ -8819,7 +8474,7 @@ class SdDateRangePickerCalendar {
|
|
|
8819
8474
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
8820
8475
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
8821
8476
|
};
|
|
8822
|
-
return (hAsync(Fragment, { key: '
|
|
8477
|
+
return (hAsync(Fragment, { key: 'f871d59077f63aa2f7d1bbe857a9ff095331c82d' }, hAsync("div", { key: '47f4782b315450f07bccec8697d8e98a83e44faf', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), hAsync("div", { key: 'cf0eb07920b298f2fce001cc8246d51e1174c27d', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), hAsync("span", { key: 'e1d060092eb3b73c890bf0d62f6485ca2a09e187', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
8823
8478
|
}
|
|
8824
8479
|
static get watchers() { return {
|
|
8825
8480
|
"value": [{
|
|
@@ -9180,7 +8835,7 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
9180
8835
|
}
|
|
9181
8836
|
render() {
|
|
9182
8837
|
const { config, preset } = this.resolvedConfig;
|
|
9183
|
-
return (hAsync("div", { key: '
|
|
8838
|
+
return (hAsync("div", { key: 'ac9063bf34834043d2c786b81fa487f004d54462', class: "sd-dropdown-button" }, hAsync("button", { key: 'cff62ed70794e18627b03c22d54accab9248b235', type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: {
|
|
9184
8839
|
'--sd-dropdown-button-bg': config.color,
|
|
9185
8840
|
'--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
9186
8841
|
'--sd-dropdown-button-border': PRESET_BORDER_COLORS[preset],
|
|
@@ -9190,10 +8845,10 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
9190
8845
|
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
9191
8846
|
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_TEXT,
|
|
9192
8847
|
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
9193
|
-
} }, hAsync("span", { key: '
|
|
8848
|
+
} }, hAsync("span", { key: '8c3c382c1b23f63be23936cca44175950fd636b8', class: "sd-dropdown-button__trigger-label" }, this.label), hAsync("span", { key: '4b1e74dd6b5c680e07ef3b8391279ef4d9bb750d', class: "sd-dropdown-button__trigger-divider", "aria-hidden": "true" }), hAsync("span", { key: '1018c43a428abe211536f4f3f8069b70a7ff1845', class: {
|
|
9194
8849
|
'sd-dropdown-button__trigger-icon': true,
|
|
9195
8850
|
'sd-dropdown-button__trigger-icon--open': this.isOpen,
|
|
9196
|
-
}, "aria-hidden": "true" }, hAsync("sd-icon", { key: '
|
|
8851
|
+
}, "aria-hidden": "true" }, hAsync("sd-icon", { key: '64248aa427db42e8c8ef65d806befaeab0943059', name: "chevronDown", size: DROPDOWN_CHEVRON_ICON_SIZE[config.size], color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
|
|
9197
8852
|
}
|
|
9198
8853
|
static get watchers() { return {
|
|
9199
8854
|
"isOpen": [{
|
|
@@ -9466,20 +9121,20 @@ class SdField {
|
|
|
9466
9121
|
: {}),
|
|
9467
9122
|
}
|
|
9468
9123
|
: {};
|
|
9469
|
-
return (hAsync("div", { key: '
|
|
9124
|
+
return (hAsync("div", { key: 'fa7d46fb1cdfa572c19fe5014c5f2df6579537fa', class: {
|
|
9470
9125
|
'sd-field': true,
|
|
9471
9126
|
'sd-field--has-label': this.label !== '',
|
|
9472
9127
|
'sd-field--has-addon': addon !== '',
|
|
9473
9128
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
9474
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '
|
|
9129
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '92d544710c5f49f17342c2c5d9f4e499e995b3b2', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: '1740f6d0c385311cf714b7e64fd7f5513f758c3e', class: "sd-field__main", style: this.width !== '' && this.width !== 0
|
|
9475
9130
|
? {
|
|
9476
9131
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
9477
9132
|
flex: 'none',
|
|
9478
9133
|
}
|
|
9479
|
-
: {} }, hAsync("div", { key: '
|
|
9134
|
+
: {} }, hAsync("div", { key: '1364e46db78dc55b1139035296d2e6f33cb8fbb6', class: {
|
|
9480
9135
|
'sd-field__control': true,
|
|
9481
9136
|
'sd-field__control--has-addon': addon !== '',
|
|
9482
|
-
} }, addon && hAsync("div", { key: '
|
|
9137
|
+
} }, addon && hAsync("div", { key: '638c670ec084e51af7d9ec566c93e00a3d158eef', class: "sd-field__addon" }, addon), hAsync("slot", { key: 'e1b00ee9db0a0e8dade33166dc908183304bc37f' })), this.errorMsg !== '' || this.errorMessage !== '' ? (hAsync("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && hAsync("div", { class: "sd-field__hint" }, this.hint))))));
|
|
9483
9138
|
}
|
|
9484
9139
|
renderLabel(label) {
|
|
9485
9140
|
if (label == null || label === '')
|
|
@@ -9965,7 +9620,7 @@ class SdFloatingPopover {
|
|
|
9965
9620
|
}
|
|
9966
9621
|
}
|
|
9967
9622
|
render() {
|
|
9968
|
-
return hAsync("slot", { key: '
|
|
9623
|
+
return hAsync("slot", { key: 'c4543ebf24c83fc67bdda0340adb00f02761b62e' });
|
|
9969
9624
|
}
|
|
9970
9625
|
static get style() { return sdFloatingPortalCss(); }
|
|
9971
9626
|
static get cmpMeta() { return {
|
|
@@ -10061,7 +9716,7 @@ class SdForm {
|
|
|
10061
9716
|
this.sdSubmit.emit();
|
|
10062
9717
|
}
|
|
10063
9718
|
render() {
|
|
10064
|
-
return (hAsync("form", { key: '
|
|
9719
|
+
return (hAsync("form", { key: 'd64dc85bce08da6a18f7dac5038a89f8bd7b5f01', onSubmit: e => this.onSubmit(e), class: this.formClass }, hAsync("slot", { key: 'a0c6d177cc4c656369714ff0ebc5269255d2c2b5' })));
|
|
10065
9720
|
}
|
|
10066
9721
|
static get cmpMeta() { return {
|
|
10067
9722
|
"$flags$": 772,
|
|
@@ -10240,7 +9895,7 @@ class SdGhostButton {
|
|
|
10240
9895
|
? GHOST_BUTTON_DISABLED_COLORS[intent]
|
|
10241
9896
|
: GHOST_BUTTON_CONTENT_COLORS[intent];
|
|
10242
9897
|
const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
|
|
10243
|
-
return (hAsync("button", { key: '
|
|
9898
|
+
return (hAsync("button", { key: '0707c0067aded10ea53bffbca0dbddbfdef35dc6', class: {
|
|
10244
9899
|
'sd-ghost-button': true,
|
|
10245
9900
|
'sd-ghost-button--disabled': this.disabled,
|
|
10246
9901
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
@@ -10249,7 +9904,7 @@ class SdGhostButton {
|
|
|
10249
9904
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
|
|
10250
9905
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
10251
9906
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
10252
|
-
}, onClick: this.handleClick }, hAsync("sd-icon", { key: '
|
|
9907
|
+
}, onClick: this.handleClick }, hAsync("sd-icon", { key: 'c362f7da310fc5b20fbbf0b08da4959b6f4a5374', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
10253
9908
|
}
|
|
10254
9909
|
static get style() { return sdGhostButtonCss(); }
|
|
10255
9910
|
static get cmpMeta() { return {
|
|
@@ -10371,124 +10026,391 @@ const GUIDE_CONFIG = {
|
|
|
10371
10026
|
},
|
|
10372
10027
|
};
|
|
10373
10028
|
|
|
10374
|
-
const sdGuideCss = () => `@charset "UTF-8";sd-guide{display:inline-flex;align-items:center;height:fit-content;width:fit-content}.sd-guide{display:inline-flex;align-items:center;height:fit-content;width:fit-content}.sd-guide .sd-guide__button .sd-button{min-height:var(--sd-guide-button-height);padding:0 var(--sd-guide-button-padding-x);border-radius:var(--sd-guide-button-radius);border:var(--sd-guide-button-border-width) solid var(--sd-guide-button-border-color);background:var(--sd-guide-button-bg-default);color:var(--sd-guide-button-text-default) !important;transition:none;display:flex;align-items:center;gap:var(--sd-guide-button-gap);--sd-button-bg-hover:var(--sd-guide-button-bg-default);--sd-button-current-icon:var(--sd-guide-button-icon-color-default)}.sd-guide .sd-guide__button .sd-button .sd-button__content{color:var(--sd-guide-button-text-default) !important;gap:var(--sd-guide-button-gap)}.sd-guide .sd-guide__button .sd-button .sd-button__content .sd-button__label{margin-left:0;color:var(--sd-guide-button-text-default) !important;font-size:var(--sd-guide-button-font-size);font-weight:var(--sd-guide-button-font-weight);line-height:var(--sd-guide-button-line-height)}.sd-guide .sd-guide__button--type-notion .sd-button{--sd-button-current-icon:var(--sd-guide-button-icon-color-notion)}.sd-guide .sd-guide__button--active .sd-button{color:var(--sd-guide-button-text-active) !important;--sd-button-current-icon:var(--sd-guide-button-icon-color-active)}.sd-guide .sd-guide__button--active .sd-button .sd-button__content{color:var(--sd-guide-button-text-active) !important}.sd-guide .sd-guide__button--active .sd-button .sd-button__content .sd-button__label{color:var(--sd-guide-button-text-active) !important}.sd-guide .sd-guide__button--type-tip.sd-guide__button--active .sd-button{background:var(--sd-guide-button-bg-tip);border-color:var(--sd-guide-button-bg-tip);--sd-button-bg-hover:var(--sd-guide-button-bg-tip)}.sd-guide .sd-guide__button--type-notion.sd-guide__button--active .sd-button{background:var(--sd-guide-button-bg-notion);border-color:var(--sd-guide-button-bg-notion);--sd-button-bg-hover:var(--sd-guide-button-bg-notion)}.sd-guide__popup{position:relative;padding:var(--sd-guide-contents-padding-y) var(--sd-guide-contents-padding-x);border-radius:var(--sd-guide-contents-radius);box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.1);background:white}.sd-guide__popup>.sd-guide__popup__close{position:absolute;top:12px;right:12px}.sd-guide__popup__header{display:flex;align-items:center;gap:var(--sd-guide-contents-title-gap);margin-bottom:var(--sd-guide-contents-gap)}.sd-guide__popup__header .sd-guide__popup__title{margin-top:0;margin-bottom:0;font-size:var(--sd-guide-contents-title-font-size);font-weight:var(--sd-guide-contents-title-font-weight);line-height:var(--sd-guide-contents-title-line-height);color:var(--sd-guide-contents-text-color)}.sd-guide__popup__list{width:100%;padding:0;margin:0}.sd-guide__popup__list__item{display:flex;width:100%;align-items:start;list-style:none;color:var(--sd-guide-contents-text-color);font-size:var(--sd-guide-contents-body-font-size);font-weight:var(--sd-guide-contents-body-font-weight);line-height:var(--sd-guide-contents-body-line-height)}.sd-guide__popup__list__item p{width:100%;padding:0;margin:0;word-wrap:break-word;word-break:break-word;white-space:normal;overflow-wrap:break-word;min-width:0}.sd-guide__popup__list__item::before{display:block;content:"-";width:6px;color:var(--sd-guide-contents-text-color);font-size:var(--sd-guide-contents-body-font-size);font-weight:var(--sd-guide-contents-body-font-weight);line-height:var(--sd-guide-contents-body-line-height);margin-left:10px;margin-right:12px;flex-shrink:0}.sd-guide__popup__list__item--depth-1:not(:first-child){margin-top:var(--sd-guide-contents-row-gap)}.sd-guide__popup__list__item--depth-2{margin-top:var(--sd-guide-contents-body-gap)}.sd-guide__popup__list__item--depth-2::before{content:"•"}.sd-guide__popup__list__item--depth-2{padding-left:26px}`;
|
|
10375
|
-
|
|
10376
|
-
const DEFAULT_LABEL_BY_TYPE = {
|
|
10377
|
-
tip: '활용 TIP',
|
|
10378
|
-
notion: '사용법 안내',
|
|
10379
|
-
};
|
|
10380
|
-
const ICON_BY_TYPE = {
|
|
10381
|
-
tip: 'helpOutline',
|
|
10382
|
-
notion: 'notion',
|
|
10383
|
-
};
|
|
10384
|
-
class SdGuide {
|
|
10385
|
-
constructor(hostRef) {
|
|
10386
|
-
registerInstance(this, hostRef);
|
|
10387
|
-
}
|
|
10388
|
-
get el() { return getElement(this); }
|
|
10389
|
-
type = 'tip';
|
|
10390
|
-
label = '';
|
|
10391
|
-
message = '';
|
|
10392
|
-
url = '';
|
|
10393
|
-
popupTitle = '';
|
|
10394
|
-
popupWidth;
|
|
10395
|
-
popupShow = false;
|
|
10396
|
-
guideRef;
|
|
10397
|
-
handleClickGuide = () => {
|
|
10398
|
-
if (this.type === 'notion') {
|
|
10399
|
-
if (this.url !== '') {
|
|
10400
|
-
window.open(this.url, '_blank', 'noopener,noreferrer');
|
|
10401
|
-
}
|
|
10402
|
-
return;
|
|
10403
|
-
}
|
|
10404
|
-
this.popupShow = !this.popupShow;
|
|
10405
|
-
};
|
|
10406
|
-
closeDropdown = () => {
|
|
10407
|
-
this.popupShow = false;
|
|
10408
|
-
};
|
|
10409
|
-
get guideStyle() {
|
|
10410
|
-
const { button, contents } = GUIDE_CONFIG;
|
|
10411
|
-
return {
|
|
10412
|
-
'--sd-guide-button-height': button.height,
|
|
10413
|
-
'--sd-guide-button-padding-x': button.paddingX,
|
|
10414
|
-
'--sd-guide-button-radius': button.radius,
|
|
10415
|
-
'--sd-guide-button-gap': button.gap,
|
|
10416
|
-
'--sd-guide-button-font-size': button.fontSize,
|
|
10417
|
-
'--sd-guide-button-font-weight': button.fontWeight,
|
|
10418
|
-
'--sd-guide-button-line-height': button.lineHeight,
|
|
10419
|
-
'--sd-guide-button-border-width': button.borderWidth,
|
|
10420
|
-
'--sd-guide-button-border-color': button.borderColor,
|
|
10421
|
-
'--sd-guide-button-bg-default': button.bgDefault,
|
|
10422
|
-
'--sd-guide-button-bg-tip': button.bgTip,
|
|
10423
|
-
'--sd-guide-button-bg-notion': button.bgNotion,
|
|
10424
|
-
'--sd-guide-button-text-default': button.textDefault,
|
|
10425
|
-
'--sd-guide-button-text-active': button.textActive,
|
|
10426
|
-
'--sd-guide-button-icon-color-default': button.iconColorDefault,
|
|
10427
|
-
'--sd-guide-button-icon-color-active': button.iconColorActive,
|
|
10428
|
-
'--sd-guide-button-icon-color-notion': button.iconColorNotion,
|
|
10429
|
-
'--sd-guide-contents-padding-x': contents.paddingX,
|
|
10430
|
-
'--sd-guide-contents-padding-y': contents.paddingY,
|
|
10431
|
-
'--sd-guide-contents-gap': contents.gap,
|
|
10432
|
-
'--sd-guide-contents-row-gap': contents.rowGap,
|
|
10433
|
-
'--sd-guide-contents-body-gap': contents.bodyGap,
|
|
10434
|
-
'--sd-guide-contents-title-gap': contents.titleGap,
|
|
10435
|
-
'--sd-guide-contents-radius': contents.radius,
|
|
10436
|
-
'--sd-guide-contents-title-font-size': contents.titleFontSize,
|
|
10437
|
-
'--sd-guide-contents-title-font-weight': contents.titleFontWeight,
|
|
10438
|
-
'--sd-guide-contents-title-line-height': contents.titleLineHeight,
|
|
10439
|
-
'--sd-guide-contents-body-font-size': contents.bodyFontSize,
|
|
10440
|
-
'--sd-guide-contents-body-font-weight': contents.bodyFontWeight,
|
|
10441
|
-
'--sd-guide-contents-body-line-height': contents.bodyLineHeight,
|
|
10442
|
-
'--sd-guide-contents-text-color': contents.textColor,
|
|
10443
|
-
};
|
|
10444
|
-
}
|
|
10445
|
-
render() {
|
|
10446
|
-
const { contents } = GUIDE_CONFIG;
|
|
10447
|
-
const isActive = this.popupShow;
|
|
10448
|
-
const isNotion = (this.type ?? 'tip') === 'notion';
|
|
10449
|
-
const defaultLabel = DEFAULT_LABEL_BY_TYPE[this.type ?? 'tip'];
|
|
10450
|
-
const iconName = ICON_BY_TYPE[this.type ?? 'tip'];
|
|
10451
|
-
const popupIconColor = isNotion ? contents.iconColorNotion : contents.iconColor;
|
|
10452
|
-
const buttonClasses = ['sd-guide__button', `sd-guide__button--type-${this.type ?? 'tip'}`];
|
|
10453
|
-
if (isActive)
|
|
10454
|
-
buttonClasses.push('sd-guide__button--active');
|
|
10455
|
-
return (hAsync("div", { key: '
|
|
10456
|
-
...this.guideStyle,
|
|
10457
|
-
width: this.popupWidth != null ? this.popupWidth + 'px' : '426px',
|
|
10458
|
-
} }, hAsync("sd-ghost-button", { key: '
|
|
10459
|
-
}
|
|
10460
|
-
// 현재 2depth까지만 스타일 적용
|
|
10461
|
-
renderListItem(message, depth = 0) {
|
|
10462
|
-
const listItems = [];
|
|
10463
|
-
if (Array.isArray(message)) {
|
|
10464
|
-
const depthMsg = message.map(msg => this.renderListItem(msg, depth + 1));
|
|
10465
|
-
listItems.push(...depthMsg.flat());
|
|
10466
|
-
}
|
|
10467
|
-
else {
|
|
10468
|
-
listItems.push(this.renderLi(message, depth));
|
|
10469
|
-
}
|
|
10470
|
-
return listItems;
|
|
10471
|
-
}
|
|
10472
|
-
renderLi = (message, depth) => {
|
|
10473
|
-
return (hAsync("li", { class: `sd-guide__popup__list__item sd-guide__popup__list__item--depth-${depth}` }, hAsync("p", { innerHTML: message })));
|
|
10474
|
-
};
|
|
10475
|
-
static get style() { return sdGuideCss(); }
|
|
10476
|
-
static get cmpMeta() { return {
|
|
10477
|
-
"$flags$": 512,
|
|
10478
|
-
"$tagName$": "sd-guide",
|
|
10479
|
-
"$members$": {
|
|
10480
|
-
"type": [513],
|
|
10481
|
-
"label": [513],
|
|
10482
|
-
"message": [1],
|
|
10483
|
-
"url": [1],
|
|
10484
|
-
"popupTitle": [1, "popup-title"],
|
|
10485
|
-
"popupWidth": [2, "popup-width"],
|
|
10486
|
-
"popupShow": [32]
|
|
10487
|
-
},
|
|
10488
|
-
"$listeners$": undefined,
|
|
10489
|
-
"$lazyBundleId$": "-",
|
|
10490
|
-
"$attrsToReflect$": [["type", "type"], ["label", "label"]]
|
|
10491
|
-
}; }
|
|
10029
|
+
const sdGuideCss = () => `@charset "UTF-8";sd-guide{display:inline-flex;align-items:center;height:fit-content;width:fit-content}.sd-guide{display:inline-flex;align-items:center;height:fit-content;width:fit-content}.sd-guide .sd-guide__button .sd-button{min-height:var(--sd-guide-button-height);padding:0 var(--sd-guide-button-padding-x);border-radius:var(--sd-guide-button-radius);border:var(--sd-guide-button-border-width) solid var(--sd-guide-button-border-color);background:var(--sd-guide-button-bg-default);color:var(--sd-guide-button-text-default) !important;transition:none;display:flex;align-items:center;gap:var(--sd-guide-button-gap);--sd-button-bg-hover:var(--sd-guide-button-bg-default);--sd-button-current-icon:var(--sd-guide-button-icon-color-default)}.sd-guide .sd-guide__button .sd-button .sd-button__content{color:var(--sd-guide-button-text-default) !important;gap:var(--sd-guide-button-gap)}.sd-guide .sd-guide__button .sd-button .sd-button__content .sd-button__label{margin-left:0;color:var(--sd-guide-button-text-default) !important;font-size:var(--sd-guide-button-font-size);font-weight:var(--sd-guide-button-font-weight);line-height:var(--sd-guide-button-line-height)}.sd-guide .sd-guide__button--type-notion .sd-button{--sd-button-current-icon:var(--sd-guide-button-icon-color-notion)}.sd-guide .sd-guide__button--active .sd-button{color:var(--sd-guide-button-text-active) !important;--sd-button-current-icon:var(--sd-guide-button-icon-color-active)}.sd-guide .sd-guide__button--active .sd-button .sd-button__content{color:var(--sd-guide-button-text-active) !important}.sd-guide .sd-guide__button--active .sd-button .sd-button__content .sd-button__label{color:var(--sd-guide-button-text-active) !important}.sd-guide .sd-guide__button--type-tip.sd-guide__button--active .sd-button{background:var(--sd-guide-button-bg-tip);border-color:var(--sd-guide-button-bg-tip);--sd-button-bg-hover:var(--sd-guide-button-bg-tip)}.sd-guide .sd-guide__button--type-notion.sd-guide__button--active .sd-button{background:var(--sd-guide-button-bg-notion);border-color:var(--sd-guide-button-bg-notion);--sd-button-bg-hover:var(--sd-guide-button-bg-notion)}.sd-guide__popup{position:relative;padding:var(--sd-guide-contents-padding-y) var(--sd-guide-contents-padding-x);border-radius:var(--sd-guide-contents-radius);box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.1);background:white}.sd-guide__popup>.sd-guide__popup__close{position:absolute;top:12px;right:12px}.sd-guide__popup__header{display:flex;align-items:center;gap:var(--sd-guide-contents-title-gap);margin-bottom:var(--sd-guide-contents-gap)}.sd-guide__popup__header .sd-guide__popup__title{margin-top:0;margin-bottom:0;font-size:var(--sd-guide-contents-title-font-size);font-weight:var(--sd-guide-contents-title-font-weight);line-height:var(--sd-guide-contents-title-line-height);color:var(--sd-guide-contents-text-color)}.sd-guide__popup__list{width:100%;padding:0;margin:0}.sd-guide__popup__list__item{display:flex;width:100%;align-items:start;list-style:none;color:var(--sd-guide-contents-text-color);font-size:var(--sd-guide-contents-body-font-size);font-weight:var(--sd-guide-contents-body-font-weight);line-height:var(--sd-guide-contents-body-line-height)}.sd-guide__popup__list__item p{width:100%;padding:0;margin:0;word-wrap:break-word;word-break:break-word;white-space:normal;overflow-wrap:break-word;min-width:0}.sd-guide__popup__list__item::before{display:block;content:"-";width:6px;color:var(--sd-guide-contents-text-color);font-size:var(--sd-guide-contents-body-font-size);font-weight:var(--sd-guide-contents-body-font-weight);line-height:var(--sd-guide-contents-body-line-height);margin-left:10px;margin-right:12px;flex-shrink:0}.sd-guide__popup__list__item--depth-1:not(:first-child){margin-top:var(--sd-guide-contents-row-gap)}.sd-guide__popup__list__item--depth-2{margin-top:var(--sd-guide-contents-body-gap)}.sd-guide__popup__list__item--depth-2::before{content:"•"}.sd-guide__popup__list__item--depth-2{padding-left:26px}`;
|
|
10030
|
+
|
|
10031
|
+
const DEFAULT_LABEL_BY_TYPE = {
|
|
10032
|
+
tip: '활용 TIP',
|
|
10033
|
+
notion: '사용법 안내',
|
|
10034
|
+
};
|
|
10035
|
+
const ICON_BY_TYPE = {
|
|
10036
|
+
tip: 'helpOutline',
|
|
10037
|
+
notion: 'notion',
|
|
10038
|
+
};
|
|
10039
|
+
class SdGuide {
|
|
10040
|
+
constructor(hostRef) {
|
|
10041
|
+
registerInstance(this, hostRef);
|
|
10042
|
+
}
|
|
10043
|
+
get el() { return getElement(this); }
|
|
10044
|
+
type = 'tip';
|
|
10045
|
+
label = '';
|
|
10046
|
+
message = '';
|
|
10047
|
+
url = '';
|
|
10048
|
+
popupTitle = '';
|
|
10049
|
+
popupWidth;
|
|
10050
|
+
popupShow = false;
|
|
10051
|
+
guideRef;
|
|
10052
|
+
handleClickGuide = () => {
|
|
10053
|
+
if (this.type === 'notion') {
|
|
10054
|
+
if (this.url !== '') {
|
|
10055
|
+
window.open(this.url, '_blank', 'noopener,noreferrer');
|
|
10056
|
+
}
|
|
10057
|
+
return;
|
|
10058
|
+
}
|
|
10059
|
+
this.popupShow = !this.popupShow;
|
|
10060
|
+
};
|
|
10061
|
+
closeDropdown = () => {
|
|
10062
|
+
this.popupShow = false;
|
|
10063
|
+
};
|
|
10064
|
+
get guideStyle() {
|
|
10065
|
+
const { button, contents } = GUIDE_CONFIG;
|
|
10066
|
+
return {
|
|
10067
|
+
'--sd-guide-button-height': button.height,
|
|
10068
|
+
'--sd-guide-button-padding-x': button.paddingX,
|
|
10069
|
+
'--sd-guide-button-radius': button.radius,
|
|
10070
|
+
'--sd-guide-button-gap': button.gap,
|
|
10071
|
+
'--sd-guide-button-font-size': button.fontSize,
|
|
10072
|
+
'--sd-guide-button-font-weight': button.fontWeight,
|
|
10073
|
+
'--sd-guide-button-line-height': button.lineHeight,
|
|
10074
|
+
'--sd-guide-button-border-width': button.borderWidth,
|
|
10075
|
+
'--sd-guide-button-border-color': button.borderColor,
|
|
10076
|
+
'--sd-guide-button-bg-default': button.bgDefault,
|
|
10077
|
+
'--sd-guide-button-bg-tip': button.bgTip,
|
|
10078
|
+
'--sd-guide-button-bg-notion': button.bgNotion,
|
|
10079
|
+
'--sd-guide-button-text-default': button.textDefault,
|
|
10080
|
+
'--sd-guide-button-text-active': button.textActive,
|
|
10081
|
+
'--sd-guide-button-icon-color-default': button.iconColorDefault,
|
|
10082
|
+
'--sd-guide-button-icon-color-active': button.iconColorActive,
|
|
10083
|
+
'--sd-guide-button-icon-color-notion': button.iconColorNotion,
|
|
10084
|
+
'--sd-guide-contents-padding-x': contents.paddingX,
|
|
10085
|
+
'--sd-guide-contents-padding-y': contents.paddingY,
|
|
10086
|
+
'--sd-guide-contents-gap': contents.gap,
|
|
10087
|
+
'--sd-guide-contents-row-gap': contents.rowGap,
|
|
10088
|
+
'--sd-guide-contents-body-gap': contents.bodyGap,
|
|
10089
|
+
'--sd-guide-contents-title-gap': contents.titleGap,
|
|
10090
|
+
'--sd-guide-contents-radius': contents.radius,
|
|
10091
|
+
'--sd-guide-contents-title-font-size': contents.titleFontSize,
|
|
10092
|
+
'--sd-guide-contents-title-font-weight': contents.titleFontWeight,
|
|
10093
|
+
'--sd-guide-contents-title-line-height': contents.titleLineHeight,
|
|
10094
|
+
'--sd-guide-contents-body-font-size': contents.bodyFontSize,
|
|
10095
|
+
'--sd-guide-contents-body-font-weight': contents.bodyFontWeight,
|
|
10096
|
+
'--sd-guide-contents-body-line-height': contents.bodyLineHeight,
|
|
10097
|
+
'--sd-guide-contents-text-color': contents.textColor,
|
|
10098
|
+
};
|
|
10099
|
+
}
|
|
10100
|
+
render() {
|
|
10101
|
+
const { contents } = GUIDE_CONFIG;
|
|
10102
|
+
const isActive = this.popupShow;
|
|
10103
|
+
const isNotion = (this.type ?? 'tip') === 'notion';
|
|
10104
|
+
const defaultLabel = DEFAULT_LABEL_BY_TYPE[this.type ?? 'tip'];
|
|
10105
|
+
const iconName = ICON_BY_TYPE[this.type ?? 'tip'];
|
|
10106
|
+
const popupIconColor = isNotion ? contents.iconColorNotion : contents.iconColor;
|
|
10107
|
+
const buttonClasses = ['sd-guide__button', `sd-guide__button--type-${this.type ?? 'tip'}`];
|
|
10108
|
+
if (isActive)
|
|
10109
|
+
buttonClasses.push('sd-guide__button--active');
|
|
10110
|
+
return (hAsync("div", { key: '9d5ad3049230e61d1aae3cd9270dd84f89fb5b1c', class: "sd-guide", style: this.guideStyle }, hAsync("sd-button", { key: 'ac55b4d96f64695a0fbfedf7bf0e451b7afdc499', ref: el => (this.guideRef = el), class: buttonClasses.join(' '), name: isActive ? 'primary_sm' : 'neutral_outline_sm', label: this.label || defaultLabel, icon: iconName, onSdClick: this.handleClickGuide }), this.popupShow && (hAsync("sd-portal", { key: 'df51b29383f7449720d8700387bb44fbd4dbebba', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: '265390b48b9d37e9c7f92e19ef124da3faae6590', style: { position: 'absolute', width: '0px', height: '0px' } }, hAsync("div", { key: 'b45c101ac8dd6e4d490661b377979226335defa2', class: "sd-guide__popup", style: {
|
|
10111
|
+
...this.guideStyle,
|
|
10112
|
+
width: this.popupWidth != null ? this.popupWidth + 'px' : '426px',
|
|
10113
|
+
} }, hAsync("sd-ghost-button", { key: 'd91722fedd8cd4f74e673964c90b1840ccfcd8e1', class: "sd-guide__popup__close", icon: "close", ariaLabel: "close", size: "sm", onSdClick: this.closeDropdown }), hAsync("div", { key: 'b7bb7ffa79363939f4b6144d48732e686ec5e365', class: "sd-guide__popup__header" }, hAsync("sd-icon", { key: 'cfe42d9139cdae8a90ce81af3dbc7636dc56b380', name: iconName, size: 24, color: popupIconColor }), hAsync("h3", { key: '9724df2304c13c36e21a6e1ef3be7d4b0f5e5454', class: "sd-guide__popup__title" }, this.popupTitle || defaultLabel)), hAsync("ul", { key: '8f5eec181c32b7d0220963ce57e82e952094ad36', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
10114
|
+
}
|
|
10115
|
+
// 현재 2depth까지만 스타일 적용
|
|
10116
|
+
renderListItem(message, depth = 0) {
|
|
10117
|
+
const listItems = [];
|
|
10118
|
+
if (Array.isArray(message)) {
|
|
10119
|
+
const depthMsg = message.map(msg => this.renderListItem(msg, depth + 1));
|
|
10120
|
+
listItems.push(...depthMsg.flat());
|
|
10121
|
+
}
|
|
10122
|
+
else {
|
|
10123
|
+
listItems.push(this.renderLi(message, depth));
|
|
10124
|
+
}
|
|
10125
|
+
return listItems;
|
|
10126
|
+
}
|
|
10127
|
+
renderLi = (message, depth) => {
|
|
10128
|
+
return (hAsync("li", { class: `sd-guide__popup__list__item sd-guide__popup__list__item--depth-${depth}` }, hAsync("p", { innerHTML: message })));
|
|
10129
|
+
};
|
|
10130
|
+
static get style() { return sdGuideCss(); }
|
|
10131
|
+
static get cmpMeta() { return {
|
|
10132
|
+
"$flags$": 512,
|
|
10133
|
+
"$tagName$": "sd-guide",
|
|
10134
|
+
"$members$": {
|
|
10135
|
+
"type": [513],
|
|
10136
|
+
"label": [513],
|
|
10137
|
+
"message": [1],
|
|
10138
|
+
"url": [1],
|
|
10139
|
+
"popupTitle": [1, "popup-title"],
|
|
10140
|
+
"popupWidth": [2, "popup-width"],
|
|
10141
|
+
"popupShow": [32]
|
|
10142
|
+
},
|
|
10143
|
+
"$listeners$": undefined,
|
|
10144
|
+
"$lazyBundleId$": "-",
|
|
10145
|
+
"$attrsToReflect$": [["type", "type"], ["label", "label"]]
|
|
10146
|
+
}; }
|
|
10147
|
+
}
|
|
10148
|
+
|
|
10149
|
+
const primary = "#051D36";
|
|
10150
|
+
const secondary = "#555555";
|
|
10151
|
+
const accent = "#9C27B0";
|
|
10152
|
+
const positive = "#0075FF";
|
|
10153
|
+
const negative = "#E30000";
|
|
10154
|
+
const info = "#00CD52";
|
|
10155
|
+
const warning = "#F2C037";
|
|
10156
|
+
const caution_bg = "#FEF1F1";
|
|
10157
|
+
const caution_icon = "#FD9595";
|
|
10158
|
+
const header_alert = "#FF7A00";
|
|
10159
|
+
const white = "#FFFFFF";
|
|
10160
|
+
const black = "#000000";
|
|
10161
|
+
const grey_10 = "#F6F6F6";
|
|
10162
|
+
const grey_20 = "#EEEEEE";
|
|
10163
|
+
const grey_25 = "#E5E5E5";
|
|
10164
|
+
const grey_30 = "#E1E1E1";
|
|
10165
|
+
const grey_35 = "#D8D8D8";
|
|
10166
|
+
const grey_45 = "#CCCCCC";
|
|
10167
|
+
const grey_50 = "#BBBBBB";
|
|
10168
|
+
const grey_55 = "#AAAAAA";
|
|
10169
|
+
const grey_60 = "#999999";
|
|
10170
|
+
const grey_65 = "#888888";
|
|
10171
|
+
const grey_70 = "#737373";
|
|
10172
|
+
const grey_80 = "#555555";
|
|
10173
|
+
const grey_85 = "#444444";
|
|
10174
|
+
const grey_90 = "#333333";
|
|
10175
|
+
const grey_95 = "#222222";
|
|
10176
|
+
const grey_05 = "#F9F9F9";
|
|
10177
|
+
const red_15 = "#FCEFEF";
|
|
10178
|
+
const red_20 = "#FCE6E6";
|
|
10179
|
+
const red_30 = "#FFD3D3";
|
|
10180
|
+
const red_45 = "#FFB5B5";
|
|
10181
|
+
const red_60 = "#FF7C7C";
|
|
10182
|
+
const red_70 = "#FB4444";
|
|
10183
|
+
const red_75 = "#E30000";
|
|
10184
|
+
const red_75_006 = "#E30000";
|
|
10185
|
+
const red_80 = "#AD0000";
|
|
10186
|
+
const red_85 = "#820000";
|
|
10187
|
+
const red_90 = "#5E0000";
|
|
10188
|
+
const red_95 = "#440000";
|
|
10189
|
+
const red_99 = "#220000";
|
|
10190
|
+
const orange_10 = "#FEF1EA";
|
|
10191
|
+
const orange_20 = "#FFEAD7";
|
|
10192
|
+
const orange_35 = "#FFD5AF";
|
|
10193
|
+
const orange_45 = "#FFBC81";
|
|
10194
|
+
const orange_55 = "#FFA452";
|
|
10195
|
+
const orange_60 = "#FF7F22";
|
|
10196
|
+
const orange_65 = "#FF6B00";
|
|
10197
|
+
const orange_75 = "#CE4900";
|
|
10198
|
+
const orange_85 = "#9B3700";
|
|
10199
|
+
const orange_90 = "#752A00";
|
|
10200
|
+
const orange_95 = "#4D1B00";
|
|
10201
|
+
const orange_99 = "#2F1100";
|
|
10202
|
+
const yellow_10 = "#FFF7DD";
|
|
10203
|
+
const yellow_20 = "#FEF1C4";
|
|
10204
|
+
const yellow_25 = "#FFE99E";
|
|
10205
|
+
const yellow_30 = "#FEE17C";
|
|
10206
|
+
const yellow_40 = "#FFD643";
|
|
10207
|
+
const yellow_45 = "#FFC700";
|
|
10208
|
+
const yellow_50 = "#EBB110";
|
|
10209
|
+
const yellow_60 = "#CA9612";
|
|
10210
|
+
const yellow_70 = "#916C0D";
|
|
10211
|
+
const yellow_80 = "#6C5002";
|
|
10212
|
+
const yellow_90 = "#453602";
|
|
10213
|
+
const yellow_95 = "#322700";
|
|
10214
|
+
const olive_10 = "#FBFBBF";
|
|
10215
|
+
const olive_15 = "#FAFAA1";
|
|
10216
|
+
const olive_20 = "#F6F65F";
|
|
10217
|
+
const olive_30 = "#EEEE37";
|
|
10218
|
+
const olive_45 = "#DDDD12";
|
|
10219
|
+
const olive_55 = "#C7C700";
|
|
10220
|
+
const olive_65 = "#A5A500";
|
|
10221
|
+
const olive_70 = "#838300";
|
|
10222
|
+
const olive_80 = "#636300";
|
|
10223
|
+
const olive_90 = "#454500";
|
|
10224
|
+
const olive_95 = "#2C2C00";
|
|
10225
|
+
const olive_05 = "#FEFED9";
|
|
10226
|
+
const green_15 = "#E8F9EF";
|
|
10227
|
+
const green_25 = "#D4FAE3";
|
|
10228
|
+
const green_45 = "#ACF4C9";
|
|
10229
|
+
const green_55 = "#6DE39C";
|
|
10230
|
+
const green_65 = "#2BCE6C";
|
|
10231
|
+
const green_70 = "#12B553";
|
|
10232
|
+
const green_75 = "#00973C";
|
|
10233
|
+
const green_80 = "#007B31";
|
|
10234
|
+
const green_85 = "#006629";
|
|
10235
|
+
const green_90 = "#00461C";
|
|
10236
|
+
const green_95 = "#003013";
|
|
10237
|
+
const green_99 = "#001D0B";
|
|
10238
|
+
const steelblue_10 = "#ECF8FD";
|
|
10239
|
+
const steelblue_25 = "#D9F2FD";
|
|
10240
|
+
const steelblue_45 = "#A4E2FD";
|
|
10241
|
+
const steelblue_60 = "#50BFF0";
|
|
10242
|
+
const steelblue_65 = "#229FD7";
|
|
10243
|
+
const steelblue_70 = "#128FC7";
|
|
10244
|
+
const steelblue_75 = "#066D9B";
|
|
10245
|
+
const steelblue_80 = "#06587D";
|
|
10246
|
+
const steelblue_85 = "#033F59";
|
|
10247
|
+
const steelblue_90 = "#032D40";
|
|
10248
|
+
const steelblue_95 = "#02212F";
|
|
10249
|
+
const steelblue_99 = "#021A25";
|
|
10250
|
+
const oceanblue_15 = "#EAF5FE";
|
|
10251
|
+
const oceanblue_25 = "#D5EBFE";
|
|
10252
|
+
const oceanblue_50 = "#9CD1FC";
|
|
10253
|
+
const oceanblue_60 = "#5CB0F3";
|
|
10254
|
+
const oceanblue_65 = "#1F8AE1";
|
|
10255
|
+
const oceanblue_70 = "#006AC1";
|
|
10256
|
+
const oceanblue_75 = "#025497";
|
|
10257
|
+
const oceanblue_80 = "#004177";
|
|
10258
|
+
const oceanblue_85 = "#07284A";
|
|
10259
|
+
const oceanblue_90 = "#051D36";
|
|
10260
|
+
const oceanblue_95 = "#03172D";
|
|
10261
|
+
const oceanblue_99 = "#011428";
|
|
10262
|
+
const brilliantblue_10 = "#EFF6FF";
|
|
10263
|
+
const brilliantblue_20 = "#E6F1FF";
|
|
10264
|
+
const brilliantblue_25 = "#D9EAFF";
|
|
10265
|
+
const brilliantblue_40 = "#BBDAFF";
|
|
10266
|
+
const brilliantblue_50 = "#93C4FF";
|
|
10267
|
+
const brilliantblue_60 = "#64ABFF";
|
|
10268
|
+
const brilliantblue_70 = "#2D8DFF";
|
|
10269
|
+
const brilliantblue_75 = "#0075FF";
|
|
10270
|
+
const brilliantblue_80 = "#005CC9";
|
|
10271
|
+
const brilliantblue_85 = "#004290";
|
|
10272
|
+
const brilliantblue_90 = "#002B5E";
|
|
10273
|
+
const brilliantblue_95 = "#001B39";
|
|
10274
|
+
const brilliantblue_99 = "#001226";
|
|
10275
|
+
const brilliantblue_05 = "#F5FAFF";
|
|
10276
|
+
var rawColors = {
|
|
10277
|
+
primary: primary,
|
|
10278
|
+
secondary: secondary,
|
|
10279
|
+
accent: accent,
|
|
10280
|
+
positive: positive,
|
|
10281
|
+
negative: negative,
|
|
10282
|
+
info: info,
|
|
10283
|
+
warning: warning,
|
|
10284
|
+
caution_bg: caution_bg,
|
|
10285
|
+
caution_icon: caution_icon,
|
|
10286
|
+
header_alert: header_alert,
|
|
10287
|
+
white: white,
|
|
10288
|
+
black: black,
|
|
10289
|
+
grey_10: grey_10,
|
|
10290
|
+
grey_20: grey_20,
|
|
10291
|
+
grey_25: grey_25,
|
|
10292
|
+
grey_30: grey_30,
|
|
10293
|
+
grey_35: grey_35,
|
|
10294
|
+
grey_45: grey_45,
|
|
10295
|
+
grey_50: grey_50,
|
|
10296
|
+
grey_55: grey_55,
|
|
10297
|
+
grey_60: grey_60,
|
|
10298
|
+
grey_65: grey_65,
|
|
10299
|
+
grey_70: grey_70,
|
|
10300
|
+
grey_80: grey_80,
|
|
10301
|
+
grey_85: grey_85,
|
|
10302
|
+
grey_90: grey_90,
|
|
10303
|
+
grey_95: grey_95,
|
|
10304
|
+
grey_05: grey_05,
|
|
10305
|
+
red_15: red_15,
|
|
10306
|
+
red_20: red_20,
|
|
10307
|
+
red_30: red_30,
|
|
10308
|
+
red_45: red_45,
|
|
10309
|
+
red_60: red_60,
|
|
10310
|
+
red_70: red_70,
|
|
10311
|
+
red_75: red_75,
|
|
10312
|
+
red_75_006: red_75_006,
|
|
10313
|
+
red_80: red_80,
|
|
10314
|
+
red_85: red_85,
|
|
10315
|
+
red_90: red_90,
|
|
10316
|
+
red_95: red_95,
|
|
10317
|
+
red_99: red_99,
|
|
10318
|
+
orange_10: orange_10,
|
|
10319
|
+
orange_20: orange_20,
|
|
10320
|
+
orange_35: orange_35,
|
|
10321
|
+
orange_45: orange_45,
|
|
10322
|
+
orange_55: orange_55,
|
|
10323
|
+
orange_60: orange_60,
|
|
10324
|
+
orange_65: orange_65,
|
|
10325
|
+
orange_75: orange_75,
|
|
10326
|
+
orange_85: orange_85,
|
|
10327
|
+
orange_90: orange_90,
|
|
10328
|
+
orange_95: orange_95,
|
|
10329
|
+
orange_99: orange_99,
|
|
10330
|
+
yellow_10: yellow_10,
|
|
10331
|
+
yellow_20: yellow_20,
|
|
10332
|
+
yellow_25: yellow_25,
|
|
10333
|
+
yellow_30: yellow_30,
|
|
10334
|
+
yellow_40: yellow_40,
|
|
10335
|
+
yellow_45: yellow_45,
|
|
10336
|
+
yellow_50: yellow_50,
|
|
10337
|
+
yellow_60: yellow_60,
|
|
10338
|
+
yellow_70: yellow_70,
|
|
10339
|
+
yellow_80: yellow_80,
|
|
10340
|
+
yellow_90: yellow_90,
|
|
10341
|
+
yellow_95: yellow_95,
|
|
10342
|
+
olive_10: olive_10,
|
|
10343
|
+
olive_15: olive_15,
|
|
10344
|
+
olive_20: olive_20,
|
|
10345
|
+
olive_30: olive_30,
|
|
10346
|
+
olive_45: olive_45,
|
|
10347
|
+
olive_55: olive_55,
|
|
10348
|
+
olive_65: olive_65,
|
|
10349
|
+
olive_70: olive_70,
|
|
10350
|
+
olive_80: olive_80,
|
|
10351
|
+
olive_90: olive_90,
|
|
10352
|
+
olive_95: olive_95,
|
|
10353
|
+
olive_05: olive_05,
|
|
10354
|
+
green_15: green_15,
|
|
10355
|
+
green_25: green_25,
|
|
10356
|
+
green_45: green_45,
|
|
10357
|
+
green_55: green_55,
|
|
10358
|
+
green_65: green_65,
|
|
10359
|
+
green_70: green_70,
|
|
10360
|
+
green_75: green_75,
|
|
10361
|
+
green_80: green_80,
|
|
10362
|
+
green_85: green_85,
|
|
10363
|
+
green_90: green_90,
|
|
10364
|
+
green_95: green_95,
|
|
10365
|
+
green_99: green_99,
|
|
10366
|
+
steelblue_10: steelblue_10,
|
|
10367
|
+
steelblue_25: steelblue_25,
|
|
10368
|
+
steelblue_45: steelblue_45,
|
|
10369
|
+
steelblue_60: steelblue_60,
|
|
10370
|
+
steelblue_65: steelblue_65,
|
|
10371
|
+
steelblue_70: steelblue_70,
|
|
10372
|
+
steelblue_75: steelblue_75,
|
|
10373
|
+
steelblue_80: steelblue_80,
|
|
10374
|
+
steelblue_85: steelblue_85,
|
|
10375
|
+
steelblue_90: steelblue_90,
|
|
10376
|
+
steelblue_95: steelblue_95,
|
|
10377
|
+
steelblue_99: steelblue_99,
|
|
10378
|
+
oceanblue_15: oceanblue_15,
|
|
10379
|
+
oceanblue_25: oceanblue_25,
|
|
10380
|
+
oceanblue_50: oceanblue_50,
|
|
10381
|
+
oceanblue_60: oceanblue_60,
|
|
10382
|
+
oceanblue_65: oceanblue_65,
|
|
10383
|
+
oceanblue_70: oceanblue_70,
|
|
10384
|
+
oceanblue_75: oceanblue_75,
|
|
10385
|
+
oceanblue_80: oceanblue_80,
|
|
10386
|
+
oceanblue_85: oceanblue_85,
|
|
10387
|
+
oceanblue_90: oceanblue_90,
|
|
10388
|
+
oceanblue_95: oceanblue_95,
|
|
10389
|
+
oceanblue_99: oceanblue_99,
|
|
10390
|
+
brilliantblue_10: brilliantblue_10,
|
|
10391
|
+
brilliantblue_20: brilliantblue_20,
|
|
10392
|
+
brilliantblue_25: brilliantblue_25,
|
|
10393
|
+
brilliantblue_40: brilliantblue_40,
|
|
10394
|
+
brilliantblue_50: brilliantblue_50,
|
|
10395
|
+
brilliantblue_60: brilliantblue_60,
|
|
10396
|
+
brilliantblue_70: brilliantblue_70,
|
|
10397
|
+
brilliantblue_75: brilliantblue_75,
|
|
10398
|
+
brilliantblue_80: brilliantblue_80,
|
|
10399
|
+
brilliantblue_85: brilliantblue_85,
|
|
10400
|
+
brilliantblue_90: brilliantblue_90,
|
|
10401
|
+
brilliantblue_95: brilliantblue_95,
|
|
10402
|
+
brilliantblue_99: brilliantblue_99,
|
|
10403
|
+
brilliantblue_05: brilliantblue_05
|
|
10404
|
+
};
|
|
10405
|
+
|
|
10406
|
+
const colors = rawColors;
|
|
10407
|
+
// 주어진 문자열이 color.json의 키이면 매핑된 HEX를 반환하고,
|
|
10408
|
+
// 아닐 경우 원문 그대로를 반환합니다. 값이 falsy면 기본 색상으로 대체합니다.
|
|
10409
|
+
function resolveColor(input, fallback = '#025497') {
|
|
10410
|
+
if (input === null || input === undefined || input === '')
|
|
10411
|
+
return fallback;
|
|
10412
|
+
const mapped = colors[input];
|
|
10413
|
+
return mapped !== undefined && mapped !== '' ? mapped : input;
|
|
10492
10414
|
}
|
|
10493
10415
|
|
|
10494
10416
|
const sdIconCss = () => `sd-icon{display:inline-block;line-height:0}sd-icon .sd-icon--rotate-90{transform:rotate(90deg)}sd-icon .sd-icon--rotate-180{transform:rotate(180deg)}sd-icon .sd-icon--rotate-270{transform:rotate(270deg)}`;
|
|
@@ -10689,12 +10611,12 @@ class SdInput {
|
|
|
10689
10611
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
10690
10612
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
10691
10613
|
};
|
|
10692
|
-
return (hAsync("sd-field", { key: '
|
|
10614
|
+
return (hAsync("sd-field", { key: 'c24b885ef9ca21fb69c1b67f2619896d4bd56155', 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, readonly: this.readonly, 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 }, hAsync("label", { key: '45a5669d2c8d7d571f50152f81139cedc8a2db3b', class: "sd-input__content" }, hAsync("slot", { key: 'c1d032ee22344725e1d041c2351dd7785a8b6b5d', name: "prefix" }), hAsync("input", { key: '8433abb36e666a7546870a9e3b77325e9c39551a', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: '9f5eef3c48f88b90be2c821b1d43e2e9a9f91441', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (hAsync("sd-ghost-button", { key: '62ab3e8e02a9db5424e573542dc10bde5a9fc4b8', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
10693
10615
|
if (this.disabled || this.readonly)
|
|
10694
10616
|
return;
|
|
10695
10617
|
this.internalValue = '';
|
|
10696
10618
|
await this.formField?.sdValidate();
|
|
10697
|
-
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '
|
|
10619
|
+
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '0a16665e73a674c7208c7f488b50442c353e3fde', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
10698
10620
|
if (this.disabled || this.readonly)
|
|
10699
10621
|
return;
|
|
10700
10622
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -11102,7 +11024,7 @@ class SdLinearProgress {
|
|
|
11102
11024
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
11103
11025
|
};
|
|
11104
11026
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
11105
|
-
return (hAsync(Host, { key: '
|
|
11027
|
+
return (hAsync(Host, { key: '6fb48662dc2c921237a387c748bbc529ba5ea77f', style: hostStyle }, hAsync("div", { key: 'e8fa0fdf4ac3ceeaae74fff6194c1f66b9138bc7', class: 'sd-linear-progress__track' }, hAsync("div", { key: '7016850214e73fc6a9079e8f54674976d0320adf', class: 'sd-linear-progress__fill', style: fillStyle }), !this.indeterminate && (hAsync("span", { key: '154b18f54d79ddbacf720370dc9ace94508c6667', class: 'sd-linear-progress__value sd-linear-progress__value--on-track' }, valueText)), !this.indeterminate && (hAsync("span", { key: '555e41d961ad7d061ac71347e998641d104f499d', class: 'sd-linear-progress__value sd-linear-progress__value--on-fill', style: valueOnFillStyle }, valueText))), this.label && hAsync("span", { key: 'f90f3df3b959aee549fab33a62a85d6df6ba8410', class: 'sd-linear-progress__label' }, this.label)));
|
|
11106
11028
|
}
|
|
11107
11029
|
static get style() { return sdLinearProgressCss(); }
|
|
11108
11030
|
static get cmpMeta() { return {
|
|
@@ -11136,10 +11058,10 @@ class SdLoadingContainer {
|
|
|
11136
11058
|
this.visible = false;
|
|
11137
11059
|
}
|
|
11138
11060
|
render() {
|
|
11139
|
-
return (hAsync("div", { key: '
|
|
11061
|
+
return (hAsync("div", { key: '08675a9dc0b1c11c42fb65a414f0fed88d03f1b0', class: {
|
|
11140
11062
|
'sd-loading-container': true,
|
|
11141
11063
|
'sd-loading-container--visible': this.visible,
|
|
11142
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, hAsync("div", { key: '
|
|
11064
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, hAsync("div", { key: '4a10e9009d824bef1bf2f9930941931dc1fef43a', class: "sd-loading-container__backdrop" }), hAsync("div", { key: '88edd1c19f5d22057e1e14f1e6bd10e23f45ec7b', class: "sd-loading-container__content" }, hAsync("sd-circle-progress", { key: 'b9c67678d799e429ec6cb2d3094da7bcc4cea150', indeterminate: true, type: "inverse" }), this.message && (hAsync("p", { key: 'ce016465e9d8b20f2121e8846bff75bbad5d7d94', class: "sd-loading-container__message" }, this.message)))));
|
|
11143
11065
|
}
|
|
11144
11066
|
static get style() { return sdLoadingContainerCss(); }
|
|
11145
11067
|
static get cmpMeta() { return {
|
|
@@ -11235,7 +11157,7 @@ class SdLoadingModal {
|
|
|
11235
11157
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
11236
11158
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
11237
11159
|
};
|
|
11238
|
-
return (hAsync(Host, { key: '
|
|
11160
|
+
return (hAsync(Host, { key: '3d792e07772b93de139fa505f061004b037ed05b', style: hostStyle }, hAsync("div", { key: '8b63d47c502bdd66f893a484c4af36d2e8302081', class: "sd-loading-modal" }, hAsync("div", { key: '5b35a93e1aed2e8d9f5eebfcbe0222c4f38b5536', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (hAsync("sd-circle-progress", { indeterminate: true })) : (hAsync("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), hAsync("div", { key: '591bae1563f4b5c5dc8bce22161d99929fb18ce5', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (hAsync("p", { class: "sd-loading-modal__message" }, message)))) : (hAsync("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.useButton && (hAsync("div", { key: '577acd55fb35229459990f7f1ca4f710c26c51d4', class: "sd-loading-modal__button" }, hAsync("sd-button", { key: 'cda4f1b9a8bee1897efb53671c0f715858377ba7', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
11239
11161
|
}
|
|
11240
11162
|
static get style() { return sdLoadingModalCss(); }
|
|
11241
11163
|
static get cmpMeta() { return {
|
|
@@ -12026,15 +11948,15 @@ class SdNumberInput {
|
|
|
12026
11948
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
12027
11949
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
12028
11950
|
};
|
|
12029
|
-
return (hAsync("sd-field", { key: '
|
|
11951
|
+
return (hAsync("sd-field", { key: '3ed260707f7e1b1a88d1407bb4b3c1965b302bcf', 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, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: '889cd4055b46e0727aed2b78f2a8bbeeca88cfed', class: {
|
|
12030
11952
|
'sd-number-input__content': true,
|
|
12031
11953
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
12032
|
-
} }, this.useButton && (hAsync("button", { key: '
|
|
11954
|
+
} }, this.useButton && (hAsync("button", { key: '5213f04a1db8a779762ae41672fd016388a06aa7', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '76910ba2b46a78eb2e4aaf7241eeb7aa1223c92a', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
12033
11955
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
12034
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && hAsync("span", { key: '
|
|
11956
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && hAsync("span", { key: '273b809ff5bd5ebb2e8cd09a9df3f6f84167aeb2', class: "sd-number-input__prefix" }, this.inputPrefix), hAsync("input", { key: '72917348a5ded30f5d8c4066af8e56d50de67db0', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
12035
11957
|
textAlign: this.useButton ? 'center' : 'right',
|
|
12036
11958
|
...this.inputStyle,
|
|
12037
|
-
} }), this.inputSuffix && hAsync("span", { key: '
|
|
11959
|
+
} }), this.inputSuffix && hAsync("span", { key: '232aa43852396a617e49403d30b4514aaf896740', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (hAsync("button", { key: 'f9dab4cd21deb933e72a8ad906cafbbf1cae1e5a', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: '73208aca8e5e9be431ba03b4755053c74ec70296', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
12038
11960
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
12039
11961
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
12040
11962
|
}
|
|
@@ -12241,13 +12163,13 @@ class SdPagination {
|
|
|
12241
12163
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
12242
12164
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
12243
12165
|
};
|
|
12244
|
-
return (hAsync("div", { key: '
|
|
12166
|
+
return (hAsync("div", { key: '251d9b3bcff3cf985d62b1a8717f622d209b3fa1', class: {
|
|
12245
12167
|
'sd-pagination': true,
|
|
12246
12168
|
'sd-pagination--simple': this.simple,
|
|
12247
|
-
}, style: cssVars }, hAsync("div", { key: '
|
|
12169
|
+
}, style: cssVars }, hAsync("div", { key: 'd143917676ccd97c1f4fc8e7220857d543efa5fd', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "sd-pagination__info" }, hAsync("span", { class: "sd-pagination__current" }, this.currentPage), hAsync("span", { class: "sd-pagination__divider" }, "/"), hAsync("span", { class: "sd-pagination__last" }, this.lastPage))) : (hAsync("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
12248
12170
|
'sd-pagination__item': true,
|
|
12249
12171
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
12250
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), hAsync("div", { key: '
|
|
12172
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), hAsync("div", { key: 'e58053cef21c57d88f5b1357101507418b2db002', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
12251
12173
|
}
|
|
12252
12174
|
static get style() { return sdPaginationCss(); }
|
|
12253
12175
|
static get cmpMeta() { return {
|
|
@@ -12328,17 +12250,17 @@ class SdPopover {
|
|
|
12328
12250
|
const leftLink = this.leftLink;
|
|
12329
12251
|
const button = this.button;
|
|
12330
12252
|
const hasFooter = !!leftLink || !!button;
|
|
12331
|
-
return (hAsync(Fragment, { key: '
|
|
12253
|
+
return (hAsync(Fragment, { key: 'b50da46efd85cdb48f66b24c591ab662a9fd62cb' }, this.label !== '' ? (hAsync("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) })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (hAsync("sd-floating-portal", { key: 'a31d6c00a9b61826fa412247f603d78874a3dba6', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, hAsync("div", { key: '11020f31a14dbb7325b30ebc48315b344662cf43', class: {
|
|
12332
12254
|
'sd-floating-menu': true,
|
|
12333
12255
|
'sd-floating-menu--popover': true,
|
|
12334
12256
|
[`sd-floating-menu--${placement}`]: true,
|
|
12335
12257
|
[menuClass]: menuClass !== '',
|
|
12336
12258
|
}, style: {
|
|
12337
12259
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
12338
|
-
} }, hAsync("i", { key: '
|
|
12260
|
+
} }, hAsync("i", { key: '51b35ade68a68c92b7488b97f2b1808d7fcf33e5', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, hAsync(TooltipArrow, { key: 'd491c997e07a2bb2d4a3ad3624d5098457f91c05' })), hAsync("div", { key: '19bfc90b0c5da4fe736aad3b8b2061ac58d8efb4', class: "sd-floating-menu__content" }, this.menuTitle && hAsync("div", { key: '31875711b7cd54c0c48f0017ac94365c3cc97821', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (hAsync("div", { key: '9c78a748831045f96fe48fd2ae9dcd85b1335aa0', class: "sd-floating-menu__messages" }, messages.map((message, i) => (hAsync("div", { key: `msg-${i}` }, message))))), hasFooter && (hAsync("div", { key: '787f0d2ac133bef9f72ce248b943b0ff9883db9e', class: {
|
|
12339
12261
|
'sd-floating-menu__buttons': true,
|
|
12340
12262
|
'sd-floating-menu__buttons--with-link': !!leftLink,
|
|
12341
|
-
} }, leftLink && (hAsync("sd-text-link", { key: '
|
|
12263
|
+
} }, leftLink && (hAsync("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 && (hAsync("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 && (hAsync("sd-ghost-button", { key: '032461787d74367ea047c088e08704ce7409f74b', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
|
|
12342
12264
|
}
|
|
12343
12265
|
static get style() { return sdPopoverCss(); }
|
|
12344
12266
|
static get cmpMeta() { return {
|
|
@@ -12471,7 +12393,7 @@ class SdPopup {
|
|
|
12471
12393
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
12472
12394
|
...this.submitButtonProps,
|
|
12473
12395
|
};
|
|
12474
|
-
return (hAsync("div", { key: '
|
|
12396
|
+
return (hAsync("div", { key: '0c9f1cd261fa533044309342cfbaae8f5b87ae31', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, hAsync("header", { key: 'd8aa4db4d150419f5653fd93e204cc4bd865c35e', class: "sd-popup__header" }, hAsync("h2", { key: 'fce95fce48a91c3a2b60f0b1169113cd2ff157d6', class: "sd-popup__title" }, this.popupTitle)), hAsync("div", { key: 'c730895828c14a6a80fe6bebecb08f386cc84a78', class: "sd-popup__body" }, hAsync("slot", { key: 'f3402c32fdc55794fb2c877a41c9f73e3c0d6d9f' })), this.useFooter && (hAsync("footer", { key: '4b04ebc0dccc07dd9466c06c940d3444346603ba', class: "sd-popup__footer" }, hAsync("div", { key: '78b35347121652d647e3601e6c6164e8e21288ca', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, hAsync("slot", { key: '98836c28e7de97466cf4285c0458a8709c3788bb', name: "footer-left" })), hAsync("sd-button", { key: 'd9ab45765c66a2f86aec2df9fc056fa1f4605259', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
12475
12397
|
}
|
|
12476
12398
|
static get style() { return sdPopupCss(); }
|
|
12477
12399
|
static get cmpMeta() { return {
|
|
@@ -12714,7 +12636,7 @@ class SdPortal {
|
|
|
12714
12636
|
this.close.emit();
|
|
12715
12637
|
}
|
|
12716
12638
|
render() {
|
|
12717
|
-
return hAsync("slot", { key: '
|
|
12639
|
+
return hAsync("slot", { key: '1f46253fe0f70fda84643e8d3025c1fd47090f5c' });
|
|
12718
12640
|
}
|
|
12719
12641
|
static get watchers() { return {
|
|
12720
12642
|
"open": [{
|
|
@@ -12854,7 +12776,7 @@ class SdRadio {
|
|
|
12854
12776
|
'--sd-radio-disabled-dot': RADIO_COLORS.disabled.dot,
|
|
12855
12777
|
'--sd-radio-label-color': RADIO_COLORS.label,
|
|
12856
12778
|
};
|
|
12857
|
-
return (hAsync("label", { key: '
|
|
12779
|
+
return (hAsync("label", { key: '2b7819249e5070a22b626530011db4a8e56194f1', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, hAsync("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 }), hAsync("span", { key: 'eb665c5f8c6202b66b65b6b120f144970fba0a38', class: "sd-radio__circle" }), this.label && hAsync("span", { key: '3d0db13e083bacb4cb7ace9129fcfcd61f18dfc7', class: "sd-radio__label" }, this.label)));
|
|
12858
12780
|
}
|
|
12859
12781
|
static get watchers() { return {
|
|
12860
12782
|
"value": [{
|
|
@@ -13053,7 +12975,7 @@ class SdRadioButton {
|
|
|
13053
12975
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
13054
12976
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
13055
12977
|
};
|
|
13056
|
-
return (hAsync("div", { key: '
|
|
12978
|
+
return (hAsync("div", { key: 'd1f572315ee66c5defebc4386e815fb21928b548', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
13057
12979
|
const isSelected = this.isOptionSelected(option);
|
|
13058
12980
|
const isDisabled = this.isOptionDisabled(option);
|
|
13059
12981
|
return (hAsync("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, hAsync("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -13105,7 +13027,7 @@ class SdRadioGroup {
|
|
|
13105
13027
|
return classes.join(' ');
|
|
13106
13028
|
}
|
|
13107
13029
|
render() {
|
|
13108
|
-
return (hAsync("div", { key: '
|
|
13030
|
+
return (hAsync("div", { key: '3bb952a72d5bccd1ad4842d9554efe6c69829773', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
13109
13031
|
return (hAsync("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
13110
13032
|
})));
|
|
13111
13033
|
}
|
|
@@ -13392,15 +13314,15 @@ class SdSelect {
|
|
|
13392
13314
|
this.closeDropdown();
|
|
13393
13315
|
},
|
|
13394
13316
|
};
|
|
13395
|
-
return (hAsync("sd-field", { key: '
|
|
13317
|
+
return (hAsync("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: () => {
|
|
13396
13318
|
this.hovered = true;
|
|
13397
13319
|
}, onMouseLeave: () => {
|
|
13398
13320
|
this.hovered = false;
|
|
13399
|
-
} }, hAsync("div", { key: '
|
|
13321
|
+
} }, hAsync("div", { key: 'f04f2f331c27745035c35d96d5262398065589a8', class: "sd-select", ref: el => {
|
|
13400
13322
|
this.triggerRef = el;
|
|
13401
|
-
} }, hAsync("sd-select-trigger", { key: '
|
|
13323
|
+
} }, hAsync("sd-select-trigger", { key: 'b66e83ff248618c815b155f27445f3da9e91361b', ref: el => {
|
|
13402
13324
|
this.triggerComponentRef = el;
|
|
13403
|
-
}, 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) && (hAsync("sd-portal", { key: '
|
|
13325
|
+
}, 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) && (hAsync("sd-portal", { key: 'bd5b46d8e4849d235e39a9d9cfc549fdbe260076', ...portalProps }, hAsync("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) })))));
|
|
13404
13326
|
}
|
|
13405
13327
|
static get watchers() { return {
|
|
13406
13328
|
"isOpen": [{
|
|
@@ -13692,7 +13614,7 @@ class SdSelectListItem {
|
|
|
13692
13614
|
return (
|
|
13693
13615
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
13694
13616
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
13695
|
-
hAsync("div", { key: '
|
|
13617
|
+
hAsync("div", { key: '93e8bf04e69d9e6f066952570ed06076bdd17e57', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
13696
13618
|
'sd-select-list-item': true,
|
|
13697
13619
|
'sd-select-list-item--group': isGroup,
|
|
13698
13620
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -13702,7 +13624,7 @@ class SdSelectListItem {
|
|
|
13702
13624
|
'sd-select-list-item--focused': this.isFocused,
|
|
13703
13625
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
13704
13626
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
13705
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("sd-checkbox", { key: '
|
|
13627
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("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 })), hAsync("span", { key: '158e45d52b3b5394f7c4e2ffff97d23f83ce5e49', class: "sd-select-list-item__label" }, this.option.label), this.countInfo && (hAsync("span", { key: '48adac9df92cd19f5e2b39bed828a9ad7c22c945', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
13706
13628
|
}
|
|
13707
13629
|
static get style() { return sdSelectListItemCss(); }
|
|
13708
13630
|
static get cmpMeta() { return {
|
|
@@ -13770,15 +13692,15 @@ class SdSelectListItemSearch {
|
|
|
13770
13692
|
clearTimeout(this.debounceTimer);
|
|
13771
13693
|
}
|
|
13772
13694
|
render() {
|
|
13773
|
-
return (hAsync("div", { key: '
|
|
13695
|
+
return (hAsync("div", { key: '0b8e55a2f39d72bc6fc5c7d8c6262c9fffb52ba7', class: {
|
|
13774
13696
|
'sd-select-list-item-search': true,
|
|
13775
13697
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
13776
|
-
} }, hAsync("div", { key: '
|
|
13698
|
+
} }, hAsync("div", { key: '30c4f5d6c8002579da129cebb06c026c278fb555', class: "sd-select-list-item-search__inner" }, hAsync("sd-icon", { key: 'be9076a1fd6d7fd9a1990fd9e32aebd04c1bc4b4', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), hAsync("input", { key: 'c9400184f607d0385e5e8c25615e1a955256c6f4', ref: el => {
|
|
13777
13699
|
this.inputEl = el;
|
|
13778
|
-
}, 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() }), hAsync("button", { key: '
|
|
13700
|
+
}, 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() }), hAsync("button", { key: 'dcb18eff068dea3fcb9144c4dfd4500806f68753', type: "button", class: {
|
|
13779
13701
|
'sd-select-list-item-search__clear': true,
|
|
13780
13702
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
13781
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, hAsync("sd-icon", { key: '
|
|
13703
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, hAsync("sd-icon", { key: 'beb2cf23258aa1eaff2c9fdb63dae99570691af1', name: "close", size: 12, color: "#888888" })))));
|
|
13782
13704
|
}
|
|
13783
13705
|
static get style() { return sdSelectListItemSearchCss(); }
|
|
13784
13706
|
static get cmpMeta() { return {
|
|
@@ -14149,9 +14071,9 @@ class SdSelectListbox {
|
|
|
14149
14071
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
14150
14072
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
14151
14073
|
};
|
|
14152
|
-
return (hAsync("div", { key: '
|
|
14074
|
+
return (hAsync("div", { key: '4173255a866459bf0aeb98d517263d12f1c39fa5', class: "sd-select-listbox", style: cssVars }, this.showSearch && (hAsync("sd-select-list-item-search", { key: '79e7d48d7234ebfd32d3cd242822dfa93a73c151', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), hAsync("div", { key: '22981c1e049d0d526af06bb5b563de5130c14477', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
14153
14075
|
this.listEl = el;
|
|
14154
|
-
} }, this.showSelectAll && (hAsync("sd-select-list-item", { key: '
|
|
14076
|
+
} }, this.showSelectAll && (hAsync("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 ? (hAsync("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (hAsync("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) })))))));
|
|
14155
14077
|
}
|
|
14156
14078
|
static get watchers() { return {
|
|
14157
14079
|
"searchKeyword": [{
|
|
@@ -14232,7 +14154,7 @@ class SdSelectTrigger {
|
|
|
14232
14154
|
? SELECT_COLORS.icon.disabled
|
|
14233
14155
|
: SELECT_COLORS.icon.default,
|
|
14234
14156
|
};
|
|
14235
|
-
return (hAsync("div", { key: '
|
|
14157
|
+
return (hAsync("div", { key: '6694f35a396f368d5df9860db30d817beddb8bec', ref: el => {
|
|
14236
14158
|
this.triggerEl = el;
|
|
14237
14159
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
14238
14160
|
'sd-select-trigger': true,
|
|
@@ -14243,7 +14165,7 @@ class SdSelectTrigger {
|
|
|
14243
14165
|
e.preventDefault();
|
|
14244
14166
|
this.handleClick();
|
|
14245
14167
|
}
|
|
14246
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, hAsync("div", { key: '
|
|
14168
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, hAsync("div", { key: 'd8ff247ca362a8fc3677d9803261343a1e891298', class: "sd-select-trigger__content" }, hAsync("span", { key: 'cd81a7c7c135372aad80fa9391b160337632643c', class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택')), hAsync("sd-icon", { key: '838c12e2a9ce06036eee766ffd2f88f3215b8420', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
14247
14169
|
'sd-select-trigger__icon': true,
|
|
14248
14170
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
14249
14171
|
} }))));
|
|
@@ -14365,7 +14287,7 @@ class SdSwitch {
|
|
|
14365
14287
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
14366
14288
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
14367
14289
|
};
|
|
14368
|
-
return (hAsync("label", { key: '
|
|
14290
|
+
return (hAsync("label", { key: 'ebb195a1bb93ae476b4bf3e697623809d626eed6', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, hAsync("input", { key: 'a6de6298d35c54ad83dc6285b90e67c8d3564d15', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), hAsync("div", { key: '7881f46be572edcfc82888564a7f85ad4207dd8e', class: "sd-switch__track" }, hAsync("div", { key: 'c08c9d5894a6f9ddf3ecdaaa9253628478479043', class: "sd-switch__knob" })), this.label && hAsync("span", { key: '4e01b185502829d8fb647d3eafaaf6565489b2f3', class: "sd-switch__label" }, this.label)));
|
|
14369
14291
|
}
|
|
14370
14292
|
static get style() { return sdSwitchCss(); }
|
|
14371
14293
|
static get cmpMeta() { return {
|
|
@@ -15323,25 +15245,25 @@ class SdTable {
|
|
|
15323
15245
|
'--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
15324
15246
|
'--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
15325
15247
|
};
|
|
15326
|
-
return (hAsync(Host, { key: '
|
|
15248
|
+
return (hAsync(Host, { key: '02d716bdac3832710bf58d63741aeeb4b04d434b', style: hostStyle }, hAsync("div", { key: '88faad346e032ca727375889aa0552a330f5799a', class: "sd-table__container", style: {
|
|
15327
15249
|
'--table-width': this.width,
|
|
15328
15250
|
'--table-height': effectiveTableHeight,
|
|
15329
15251
|
'--table-container-height': `calc(${effectiveTableHeight} - ${paginationHeight}px)`,
|
|
15330
|
-
} }, hAsync("div", { key: '
|
|
15252
|
+
} }, hAsync("div", { key: '783934f349e0da5bab77cbb44cc12f0dfeb9ec71', class: {
|
|
15331
15253
|
'sd-table__wrapper': true,
|
|
15332
15254
|
'sd-table__wrapper--radius-use-top': this.radius === 'useTop',
|
|
15333
|
-
} }, hAsync("div", { key: '
|
|
15255
|
+
} }, hAsync("div", { key: 'd3a76ad0e853c6adf16df633c0e0b7f5bb580f24', class: {
|
|
15334
15256
|
'sd-table__scroll-container': true,
|
|
15335
15257
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
15336
15258
|
'sd-table__scroll-container--no-data': isNoData,
|
|
15337
|
-
} }, this.isLoading && (hAsync("div", { key: '
|
|
15259
|
+
} }, this.isLoading && (hAsync("div", { key: 'cc77ce58ff0eebf3fc1d7dd9dbf11578f94d4dd1', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, hAsync("sd-circle-progress", { key: 'bda7ed774342089a23d13b49a506b04527026275', indeterminate: true }))), isNoData && (hAsync(hAsync.Fragment, null, hAsync("div", { key: 'f2ce89d0ae9eefe0f0f8509e477756cb74dbef86', class: "sd-table__no-data-header-overlay" }), hAsync("div", { key: '84d739563123d0f0fc33166b1a6e80021ba06e1c', class: "sd-table__no-data" }, hAsync("div", { key: '3507f718a25b79c44fdf283fb41356ab72f2a384', class: "sd-table__no-data-content", ref: el => {
|
|
15338
15260
|
this.noDataContentEl = el;
|
|
15339
15261
|
if (el)
|
|
15340
15262
|
this.syncNoDataContentObserver();
|
|
15341
|
-
} }, hAsync("slot", { key: '
|
|
15263
|
+
} }, hAsync("slot", { key: '818129819b2ff4a6f9fc1224dc59a9aa5861296d', name: "no-data" }, hAsync("span", { key: 'c03cfb713e6dadd5ab4c60d7d27fd502d7aa9348' }, this.resolvedNoDataLabel)))))), hAsync("table", { key: '8864714a828069985bac6535bc40cbb043dfcb28', class: this.tableClasses }, this.autoThead ? (hAsync("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, hAsync("sd-thead", { rows: this.rows ?? [] }))) : (hAsync("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (hAsync("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, hAsync("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (hAsync("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
15342
15264
|
this.pagination.rowsPerPage > 0 &&
|
|
15343
15265
|
this.rowCount > 0 &&
|
|
15344
|
-
!this.useVirtualScroll && (hAsync("div", { key: '
|
|
15266
|
+
!this.useVirtualScroll && (hAsync("div", { key: 'bdac4b4d551152ec7ee0cdc31bfb992748836928', class: "sd-table__pagination" }, hAsync("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 && (hAsync("sd-select", { key: '7a662f58e13c15e705341773570f899f503f12c0', value: this.useInternalPagination
|
|
15345
15267
|
? this.innerRowsPerPage
|
|
15346
15268
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
15347
15269
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -15633,7 +15555,7 @@ class SdTabs {
|
|
|
15633
15555
|
};
|
|
15634
15556
|
}
|
|
15635
15557
|
render() {
|
|
15636
|
-
return (hAsync("div", { key: '
|
|
15558
|
+
return (hAsync("div", { key: '880f1aa80c29f2d578ffe2d5e5e5e0c008c898d3', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
15637
15559
|
const badgeName = this.getBadgeName(tab);
|
|
15638
15560
|
return (hAsync("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
15639
15561
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -15869,7 +15791,7 @@ class SdTag {
|
|
|
15869
15791
|
render() {
|
|
15870
15792
|
const config = this.resolvedConfig;
|
|
15871
15793
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
15872
|
-
return (hAsync("span", { key: '
|
|
15794
|
+
return (hAsync("span", { key: '57f3c3f9ad53059fabff205cb44ffa3d1da9a711', class: "sd-tag", style: {
|
|
15873
15795
|
'--sd-tag-background': config.background,
|
|
15874
15796
|
'--sd-tag-content': config.content,
|
|
15875
15797
|
'--sd-tag-height': config.height,
|
|
@@ -15879,7 +15801,7 @@ class SdTag {
|
|
|
15879
15801
|
'--sd-tag-font-weight': config.fontWeight,
|
|
15880
15802
|
'--sd-tag-line-height': config.lineHeight,
|
|
15881
15803
|
'--sd-tag-radius': config.radius,
|
|
15882
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '
|
|
15804
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '3360f36d18f073cd24699b6b8db2e731fda351ac', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
15883
15805
|
}
|
|
15884
15806
|
static get style() { return sdTagCss(); }
|
|
15885
15807
|
static get cmpMeta() { return {
|
|
@@ -15947,9 +15869,9 @@ class SdTbody {
|
|
|
15947
15869
|
}
|
|
15948
15870
|
}
|
|
15949
15871
|
render() {
|
|
15950
|
-
return (hAsync(Host, { key: '
|
|
15872
|
+
return (hAsync(Host, { key: 'bdb686445ce324c6254891a385d6175c8cac06df', slot: `${this.tableId}-body` }, hAsync("tbody", { key: '21a7772f0d43a358d9ae17459f0ff296324bfd82', class: { tbody: true } }, [
|
|
15951
15873
|
this.topSpacerHeight > 0 && (hAsync("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
15952
|
-
hAsync("slot", { key: '
|
|
15874
|
+
hAsync("slot", { key: 'e38d8fe5d67a91d3fa5a25be98195da104660005' }),
|
|
15953
15875
|
this.bottomSpacerHeight > 0 && (hAsync("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
15954
15876
|
])));
|
|
15955
15877
|
}
|
|
@@ -16115,7 +16037,7 @@ class SdTd {
|
|
|
16115
16037
|
}
|
|
16116
16038
|
}
|
|
16117
16039
|
render() {
|
|
16118
|
-
return (hAsync(Host, { key: '
|
|
16040
|
+
return (hAsync(Host, { key: '7d51ea5f02ba2df099f4440be26c2f0be8a73a6b', class: { [`align-${this.align}`]: Boolean(this.align) } }, hAsync("slot", { key: '9a6a634e2bcd206ec9099c6be738c3853d0cbebf' })));
|
|
16119
16041
|
}
|
|
16120
16042
|
static get watchers() { return {
|
|
16121
16043
|
"field": [{
|
|
@@ -16238,7 +16160,7 @@ class SdTextLink {
|
|
|
16238
16160
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
16239
16161
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
16240
16162
|
};
|
|
16241
|
-
return (hAsync("span", { key: '
|
|
16163
|
+
return (hAsync("span", { key: '11d2153cc91818c1214e21ffa14bd08249ad1116', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
16242
16164
|
'sd-text-link': true,
|
|
16243
16165
|
'sd-text-link--disabled': this.disabled,
|
|
16244
16166
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -16246,13 +16168,13 @@ class SdTextLink {
|
|
|
16246
16168
|
e.preventDefault();
|
|
16247
16169
|
this.handleClick();
|
|
16248
16170
|
}
|
|
16249
|
-
} }, this.icon && (hAsync("sd-icon", { key: '
|
|
16171
|
+
} }, this.icon && (hAsync("sd-icon", { key: '23972d53b4968c9bdef9b54dfa785e658ba117ef', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), hAsync("span", { key: '5e99a6c1151093929086ec4398b93d7db590d959', class: labelClassName }, this.label), this.useArrow && (hAsync("span", { key: 'b814759278cefe229a5321556374438f281ce0f3', class: "sd-text-link__arrow", style: {
|
|
16250
16172
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
16251
16173
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
16252
16174
|
display: 'inline-flex',
|
|
16253
16175
|
alignItems: 'center',
|
|
16254
16176
|
justifyContent: 'center',
|
|
16255
|
-
} }, hAsync("sd-icon", { key: '
|
|
16177
|
+
} }, hAsync("sd-icon", { key: 'dfe3286eaeef9a176f5ff1a69950713e2712a550', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
16256
16178
|
}
|
|
16257
16179
|
static get style() { return sdTextLinkCss(); }
|
|
16258
16180
|
static get cmpMeta() { return {
|
|
@@ -16399,7 +16321,7 @@ class SdTextarea {
|
|
|
16399
16321
|
'--sd-system-size-field-sm-height': 'auto',
|
|
16400
16322
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
16401
16323
|
};
|
|
16402
|
-
return (hAsync("sd-field", { key: '
|
|
16324
|
+
return (hAsync("sd-field", { key: '404175c94949c2510082df905c53e97ab835369c', 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, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: 'ca92dfe613b2c006ecc4021bb2f07a2e4b04239a', class: "sd-textarea__content" }, hAsync("textarea", { key: 'a6d2bbdb9c88766182728cf3eb30ce7691fb048f', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
16403
16325
|
}
|
|
16404
16326
|
static get watchers() { return {
|
|
16405
16327
|
"value": [{
|
|
@@ -16615,16 +16537,16 @@ class SdThead {
|
|
|
16615
16537
|
'--table-border-color': TABLE_BORDER.color,
|
|
16616
16538
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
16617
16539
|
};
|
|
16618
|
-
return (hAsync(Host, { key: '
|
|
16540
|
+
return (hAsync(Host, { key: 'c2852fc7d6fe9e8116fabbbcc140f4db8319bfdc', slot: `${this.tableId}-head`, style: headStyle }, hAsync("thead", { key: '970cb1c96145326f38b79636a72982b0e9c81fa0', class: {
|
|
16619
16541
|
'thead': true,
|
|
16620
16542
|
'thead--sticky': this._stickyHeader,
|
|
16621
|
-
} }, hAsync("tr", { key: '
|
|
16543
|
+
} }, hAsync("tr", { key: '839fb6e9fd68ef10dea1f1d470a6b3e707475a8d', class: "tr" }, this._selectable && (hAsync("th", { key: 'd669372261627013bc1b39157139d180b3d1a6c1', class: {
|
|
16622
16544
|
'th': true,
|
|
16623
16545
|
'th--selected': true,
|
|
16624
16546
|
'sticky-left': true,
|
|
16625
16547
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
16626
16548
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
16627
|
-
}, style: { '--sticky-left-offset': '0px' } }, hAsync("sd-checkbox", { key: '
|
|
16549
|
+
}, style: { '--sticky-left-offset': '0px' } }, hAsync("sd-checkbox", { key: '6263984430b4aa53e6ac24fb0f6a6c05838a71d5', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (hAsync("th", { key: col.name, class: {
|
|
16628
16550
|
'th': true,
|
|
16629
16551
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
16630
16552
|
'sticky-left': true,
|
|
@@ -16775,12 +16697,12 @@ class SdToast {
|
|
|
16775
16697
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
16776
16698
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
16777
16699
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
16778
|
-
return (hAsync("div", { key: '
|
|
16700
|
+
return (hAsync("div", { key: 'db3ffaf51dc96c39c05558017f25929c679a59df', style: {
|
|
16779
16701
|
'--sd-toast-bg': typeConfig.bg,
|
|
16780
16702
|
'--sd-toast-text': typeConfig.content,
|
|
16781
16703
|
'--sd-toast-icon': iconColor,
|
|
16782
16704
|
'--sd-toast-link': linkColor,
|
|
16783
|
-
} }, hAsync("div", { key: '
|
|
16705
|
+
} }, hAsync("div", { key: '92344f5bb95b0d4787591207f2e017d7dd177091', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (hAsync("div", { key: '991db58b2cb019dd3a787e000e9d8813014bbb09', class: "sd-toast__icon" }, hAsync("sd-icon", { key: '24d53cd77fdea82ec07663a8968493ec2b794751', name: this.icon, size: iconSize, color: iconColor }))), hAsync("div", { key: '70cfad4ef389cca798be9baeac99bfc41efcc615', class: "sd-toast__content" }, hAsync("span", { key: '5927023435b17dc25ee07630fc4ae4568aadd9b9', class: "sd-toast__message" }, this.message)), this.link && (hAsync("a", { key: '410c024fd81ebcc78175c1855a86f590566d1a81', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (hAsync("sd-button", { key: 'd85287e7ef796a11f850a0ce5cde87f5881fa5c9', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (hAsync("sd-ghost-button", { key: '55a6bf6457bd89254f6eb01072d46a0edbb8b510', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
16784
16706
|
}
|
|
16785
16707
|
static get style() { return sdToastCss(); }
|
|
16786
16708
|
static get cmpMeta() { return {
|
|
@@ -17033,7 +16955,7 @@ class SdToastContainer {
|
|
|
17033
16955
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
17034
16956
|
const indexMap = new Map();
|
|
17035
16957
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
17036
|
-
return (hAsync("div", { key: '
|
|
16958
|
+
return (hAsync("div", { key: 'bc3c9591b6453eed7df462841e29784c29b3aeef', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
17037
16959
|
this.expanded = true;
|
|
17038
16960
|
this.pauseTimers();
|
|
17039
16961
|
}, onMouseLeave: () => {
|
|
@@ -17191,7 +17113,7 @@ class SdToggle {
|
|
|
17191
17113
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
17192
17114
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
17193
17115
|
};
|
|
17194
|
-
return (hAsync("label", { key: '
|
|
17116
|
+
return (hAsync("label", { key: 'b16577aa25863a9dc337314d9059328799c1cd1e', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, hAsync("input", { key: '6130825b74df8a573f4e062671fd694508759e82', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
17195
17117
|
}
|
|
17196
17118
|
static get style() { return sdToggleCss(); }
|
|
17197
17119
|
static get cmpMeta() { return {
|
|
@@ -17321,14 +17243,14 @@ class SdTooltip {
|
|
|
17321
17243
|
const hasLabel = this.label !== undefined && this.label !== '';
|
|
17322
17244
|
const divTrigger = trigger === 'hover' ? hoverTrigger : hasLabel ? {} : { onClick: toggleTooltip };
|
|
17323
17245
|
const buttonClickTrigger = trigger === 'click' && hasLabel ? { onSdClick: toggleTooltip } : {};
|
|
17324
|
-
return (hAsync(Fragment, { key: '
|
|
17246
|
+
return (hAsync(Fragment, { key: 'ef33f9f183820d684f2805e40134a81f7149fc16' }, hAsync("div", { key: 'dd931825c55b0ee748c7ef45f15be0d6de37ad23', class: `sd-tooltip-trigger ${this.sdClass !== undefined && this.sdClass !== '' ? this.sdClass : ''}`, ...divTrigger }, hasLabel ? (hAsync("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-tooltip", ...buttonClickTrigger })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (hAsync("sd-floating-portal", { key: '443dbbe8f0b9a66aaae9b8482a3f615d2d41e8ec', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, hAsync("div", { key: '040bde0321b1fd35014db976aeaddc515d87c807', ref: el => (this.menuEl = el), class: {
|
|
17325
17247
|
'sd-floating-menu': true,
|
|
17326
17248
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
17327
17249
|
[`sd-floating-menu--${placement}`]: true,
|
|
17328
17250
|
}, style: {
|
|
17329
17251
|
'--sd-floating-bg': typeConfig.bg,
|
|
17330
17252
|
'--sd-floating-content': typeConfig.content,
|
|
17331
|
-
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: '
|
|
17253
|
+
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: 'e802c09cc13ec3db29704197fa402588bf97d670', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, hAsync(TooltipArrow, { key: 'b698fbdba2cee74955f65ed7b04abeea8ccabee5' })), hAsync("div", { key: '97e856c543a8cdb880daae9ed0e461f5fd0f2b44', class: "sd-floating-menu__content", innerHTML: this.slotContentHTML }))))));
|
|
17332
17254
|
}
|
|
17333
17255
|
static get style() { return sdTooltipCss(); }
|
|
17334
17256
|
static get cmpMeta() { return {
|
|
@@ -17698,7 +17620,6 @@ registerComponents([
|
|
|
17698
17620
|
SdConfirmModal,
|
|
17699
17621
|
SdDateBox,
|
|
17700
17622
|
SdDatePicker,
|
|
17701
|
-
SdDatePickerCalendar,
|
|
17702
17623
|
SdDatePickerTrigger,
|
|
17703
17624
|
SdDateRangePicker,
|
|
17704
17625
|
SdDateRangePickerCalendar,
|