@sellmate/design-system 1.29.0 → 1.31.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/design-system.cjs.js +2 -2
- package/dist/cjs/{index-iiJZMzVM.js → index-Jr8OU0y9.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-calendar_2.cjs.entry.js +8 -9
- package/dist/cjs/sd-callout.cjs.entry.js +2 -2
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/sd-chip-input.cjs.entry.js +21 -16
- package/dist/cjs/sd-chip.cjs.entry.js +7 -7
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{component.datepicker-zFTQQKMH.js → sd-date-picker.config-CgyNxY03.js} +66 -1
- package/dist/cjs/sd-date-picker_8.cjs.entry.js +141 -51
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +162 -12
- package/dist/cjs/sd-divider.cjs.entry.js +2 -2
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +51 -52
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +14 -10
- package/dist/cjs/sd-guide.cjs.entry.js +1 -1
- package/dist/cjs/sd-key-value-table.cjs.entry.js +1 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination.cjs.entry.js +4 -4
- package/dist/cjs/sd-popover.cjs.entry.js +134 -44
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio.cjs.entry.js +4 -2
- package/dist/cjs/sd-select-list-item_4.cjs.entry.js +11 -11
- package/dist/cjs/sd-switch.cjs.entry.js +13 -3
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
- package/dist/cjs/sd-time-picker-selector.cjs.entry.js +179 -0
- package/dist/cjs/sd-time-picker-trigger.cjs.entry.js +75 -0
- package/dist/cjs/sd-time-picker.cjs.entry.js +173 -0
- package/dist/cjs/sd-time-picker.config-C7REB08L.js +156 -0
- package/dist/cjs/sd-time-range-picker-selector.cjs.entry.js +219 -0
- package/dist/cjs/sd-time-range-picker.cjs.entry.js +204 -0
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-DOOcBlLp.js → tooltipArrow-BlrFItn5.js} +1 -1
- package/dist/cjs/useDatePicker-j06ymWZ_.js +103 -0
- package/dist/collection/collection-manifest.json +8 -3
- 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.js +3 -3
- package/dist/collection/components/sd-callout/sd-callout.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +8 -8
- package/dist/collection/components/sd-chip/sd-chip.js +8 -8
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +3 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +43 -17
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +1 -1
- 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.js +23 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.css +75 -0
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +152 -6
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.config.js +27 -0
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +59 -3
- package/dist/collection/components/sd-divider/sd-divider.js +1 -1
- package/dist/collection/components/sd-field/sd-field.css +4 -0
- package/dist/collection/components/sd-field/sd-field.js +58 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +17 -10
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +46 -16
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +27 -3
- package/dist/collection/components/sd-input/sd-input.js +4 -4
- 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 +58 -7
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.config.js +41 -0
- package/dist/collection/components/sd-popover/sd-popover.js +189 -191
- 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 +25 -4
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +6 -6
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +7 -7
- 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 +54 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +7 -8
- 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-time-picker/sd-time-picker-selector/sd-time-picker-selector.css +87 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.js +266 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.css +38 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.js +216 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.config.js +78 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.css +12 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.js +761 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.css +102 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.js +338 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.config.js +23 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.css +12 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.js +809 -0
- 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 +36 -189
- package/dist/components/index.js +1 -1
- package/dist/components/p-1DsQj3tv.js +1 -0
- package/dist/components/p-2g4jlJ3i.js +1 -0
- package/dist/components/{p-C_in6AVN.js → p-6U1qyU5A.js} +1 -1
- package/dist/components/{p-CSr33M9s.js → p-B-EV9bey.js} +1 -1
- package/dist/components/p-B887QQl2.js +1 -0
- package/dist/components/{p-Bpv90tfa.js → p-BPzs63D8.js} +1 -1
- package/dist/components/{p-Dg1UrMqI.js → p-BvJ14GuJ.js} +1 -1
- package/dist/components/p-Bxv2AFOb.js +1 -0
- package/dist/components/p-C6o10dl7.js +1 -0
- package/dist/components/p-C6wuKkUq.js +1 -0
- package/dist/components/{p-CbS69IvC.js → p-C9IKm4j5.js} +1 -1
- package/dist/components/{p-BHjezpAC.js → p-CH9dgzTr.js} +1 -1
- package/dist/components/{p-oYbVr-z0.js → p-CKV2W-zU.js} +1 -1
- package/dist/components/p-CTCt17CE.js +1 -0
- package/dist/components/{p-BOxGhKKP.js → p-CghFB91T.js} +1 -1
- package/dist/components/p-Ckr9iuVb.js +1 -0
- package/dist/components/p-ClbD4Gsr.js +1 -0
- package/dist/components/p-CmCOLnc0.js +1 -0
- package/dist/components/{p-C7mC7a1z.js → p-CwzkplrI.js} +1 -1
- package/dist/components/p-CzJ9g73f.js +1 -0
- package/dist/components/p-D8yhjm54.js +1 -0
- package/dist/components/p-D9qp3o5Y.js +1 -0
- package/dist/components/{p-OO7xxhkC.js → p-DE8Ws9As.js} +1 -1
- package/dist/components/p-DMm_GeZC.js +1 -0
- package/dist/components/{p-idG6CMO0.js → p-DOfLrOEu.js} +1 -1
- package/dist/components/{p-R-Sdglj0.js → p-DSWD8udu.js} +1 -1
- package/dist/components/{p-Di1q4f5E.js → p-DWnuCSqC.js} +1 -1
- package/dist/components/p-DYjaQs6e.js +1 -0
- package/dist/components/{p-9Ap2W-Mi.js → p-DasiqnrU.js} +1 -1
- package/dist/components/{p-CErFctrV.js → p-Dc9g3-5z.js} +1 -1
- package/dist/components/{p-CFTyEfB9.js → p-DnlLqzGM.js} +1 -1
- package/dist/components/p-DsZwiWiU.js +1 -0
- package/dist/components/{p-DMoFncVl.js → p-FGII920I.js} +1 -1
- package/dist/components/p-Hjv7LqkN.js +1 -0
- package/dist/components/{p-BIEPMPWA.js → p-In6mljvA.js} +1 -1
- package/dist/components/p-OnBLxJAP.js +1 -0
- package/dist/components/p-SYnTIeiO.js +1 -0
- package/dist/{design-system/p-B91K50wC.js → components/p-bXzpfkfN.js} +1 -1
- package/dist/components/p-mcbwNjNT.js +1 -0
- package/dist/components/p-qZxAQy4p.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-chip-input.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-divider.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-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-time-picker-selector.d.ts +11 -0
- package/dist/components/sd-time-picker-selector.js +1 -0
- package/dist/components/sd-time-picker-trigger.d.ts +11 -0
- package/dist/components/sd-time-picker-trigger.js +1 -0
- package/dist/components/sd-time-picker.d.ts +11 -0
- package/dist/components/sd-time-picker.js +1 -0
- package/dist/components/sd-time-range-picker-selector.d.ts +11 -0
- package/dist/components/sd-time-range-picker-selector.js +1 -0
- package/dist/components/sd-time-range-picker.d.ts +11 -0
- package/dist/components/sd-time-range-picker.js +1 -0
- 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/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-b585f94b.entry.js → p-129b6330.entry.js} +1 -1
- package/dist/design-system/{p-adf2f398.entry.js → p-15f43b9b.entry.js} +1 -1
- package/dist/design-system/p-16b9eac4.entry.js +1 -0
- package/dist/design-system/{p-c1066f40.entry.js → p-1858636f.entry.js} +1 -1
- package/dist/design-system/{p-840006b1.entry.js → p-21672bb8.entry.js} +1 -1
- package/dist/design-system/{p-c7d2c195.entry.js → p-219288ef.entry.js} +1 -1
- package/dist/design-system/{p-c5cffcc6.entry.js → p-22ac9e05.entry.js} +1 -1
- package/dist/design-system/p-2534d3d4.entry.js +1 -0
- package/dist/design-system/{p-be54fd3a.entry.js → p-3859316f.entry.js} +1 -1
- package/dist/design-system/{p-53fe2741.entry.js → p-46da4e95.entry.js} +1 -1
- package/dist/design-system/{p-8de3b502.entry.js → p-46eb3421.entry.js} +1 -1
- package/dist/design-system/p-4782331f.entry.js +1 -0
- package/dist/design-system/{p-5a257ed9.entry.js → p-4a117dd6.entry.js} +1 -1
- package/dist/design-system/{p-55c0be7d.entry.js → p-4ae0a64a.entry.js} +1 -1
- package/dist/design-system/{p-246aafb9.entry.js → p-52b1be6f.entry.js} +1 -1
- package/dist/design-system/p-56e7c87b.entry.js +1 -0
- package/dist/design-system/{p-26a27312.entry.js → p-570b9e91.entry.js} +1 -1
- package/dist/design-system/p-5a113197.entry.js +1 -0
- package/dist/design-system/p-62ff77e4.entry.js +1 -0
- package/dist/design-system/{p-d204cac5.entry.js → p-655324cd.entry.js} +1 -1
- package/dist/design-system/p-66cff123.entry.js +1 -0
- package/dist/design-system/{p-0c1d1a15.entry.js → p-6c4fa9d7.entry.js} +1 -1
- package/dist/design-system/{p-8ed1d470.entry.js → p-809a0a71.entry.js} +1 -1
- package/dist/design-system/{p-ec4ad48c.entry.js → p-82cb62a9.entry.js} +1 -1
- package/dist/design-system/p-843d1a8a.entry.js +1 -0
- package/dist/design-system/{p-02f0b906.entry.js → p-8836d9ff.entry.js} +1 -1
- package/dist/design-system/{p-d2ce01ac.entry.js → p-8af8e302.entry.js} +1 -1
- package/dist/design-system/p-9c131122.entry.js +1 -0
- package/dist/design-system/{p-BPKiBSGr.js → p-BnUjeY2n.js} +1 -1
- package/dist/design-system/p-C599jhDs.js +2 -0
- package/dist/design-system/p-Cn8LZw1e.js +1 -0
- package/dist/design-system/p-DMm_GeZC.js +1 -0
- package/dist/design-system/p-Dz23PPdF.js +1 -0
- package/dist/design-system/p-a0c55a19.entry.js +1 -0
- package/dist/design-system/p-a6c292d1.entry.js +1 -0
- package/dist/design-system/p-a9cc4697.entry.js +1 -0
- package/dist/design-system/{p-3595cafb.entry.js → p-b2dc1202.entry.js} +1 -1
- package/dist/design-system/{p-86329ae3.entry.js → p-b5229957.entry.js} +1 -1
- package/dist/design-system/{p-a631cd78.entry.js → p-b75cc0dd.entry.js} +1 -1
- package/dist/design-system/p-b97a6cf3.entry.js +1 -0
- package/dist/design-system/{p-3cd2751a.entry.js → p-c1e625e5.entry.js} +1 -1
- package/dist/design-system/{p-1ed1bfa1.entry.js → p-c7f03dea.entry.js} +1 -1
- package/dist/design-system/p-cdb2433a.entry.js +1 -0
- package/dist/design-system/{p-d9f33192.entry.js → p-d5325895.entry.js} +1 -1
- package/dist/design-system/p-e0e4a451.entry.js +1 -0
- package/dist/design-system/p-e387ec65.entry.js +1 -0
- package/dist/design-system/{p-4c85f6f6.entry.js → p-efe3601d.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-Dz490Ukt.js → index-C599jhDs.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +2 -2
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +2 -2
- package/dist/esm/sd-button_2.entry.js +3 -3
- package/dist/esm/sd-calendar_2.entry.js +8 -9
- package/dist/esm/sd-callout.entry.js +2 -2
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +5 -5
- package/dist/esm/sd-chip-input.entry.js +21 -16
- package/dist/esm/sd-chip.entry.js +7 -7
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{component.datepicker-BOxGhKKP.js → sd-date-picker.config-CdXJcOGr.js} +65 -2
- package/dist/esm/sd-date-picker_8.entry.js +141 -51
- package/dist/esm/sd-date-range-picker-calendar.entry.js +158 -8
- package/dist/esm/sd-divider.entry.js +2 -2
- package/dist/esm/sd-dropdown-button.entry.js +1 -1
- package/dist/esm/sd-field_3.entry.js +51 -52
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +14 -10
- package/dist/esm/sd-guide.entry.js +1 -1
- package/dist/esm/sd-key-value-table.entry.js +1 -1
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination.entry.js +4 -4
- package/dist/esm/sd-popover.entry.js +134 -44
- package/dist/esm/sd-popup.entry.js +2 -2
- package/dist/esm/sd-radio-button.entry.js +3 -3
- package/dist/esm/sd-radio.entry.js +4 -2
- package/dist/esm/sd-select-list-item_4.entry.js +11 -11
- package/dist/esm/sd-switch.entry.js +13 -3
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +4 -4
- package/dist/esm/sd-time-picker-selector.entry.js +177 -0
- package/dist/esm/sd-time-picker-trigger.entry.js +73 -0
- package/dist/esm/sd-time-picker.config-DUq29Nhs.js +148 -0
- package/dist/esm/sd-time-picker.entry.js +171 -0
- package/dist/esm/sd-time-range-picker-selector.entry.js +217 -0
- package/dist/esm/sd-time-range-picker.entry.js +202 -0
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{tooltipArrow-CEHVt90h.js → tooltipArrow-DbLihSLI.js} +1 -1
- package/dist/esm/{useDatePicker-BG0lUGJG.js → useDatePicker-DQ5Kyy_D.js} +1 -1
- package/dist/types/components/sd-checkbox/sd-checkbox.d.ts +2 -2
- package/dist/types/components/sd-chip/sd-chip.d.ts +3 -3
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +4 -2
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +2 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.d.ts +20 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.config.d.ts +25 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +9 -0
- package/dist/types/components/sd-field/sd-field.d.ts +7 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +28 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +3 -1
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +5 -0
- package/dist/types/components/sd-input/sd-input.d.ts +1 -1
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +8 -0
- package/dist/types/components/sd-popover/sd-popover.config.d.ts +22 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +29 -36
- package/dist/types/components/sd-radio/sd-radio.d.ts +3 -1
- package/dist/types/components/sd-radio-button/sd-radio-button.d.ts +2 -2
- package/dist/types/components/sd-radio-group/sd-radio-group.d.ts +2 -2
- package/dist/types/components/sd-switch/sd-switch.d.ts +8 -1
- package/dist/types/components/sd-tag/sd-tag.d.ts +2 -2
- package/dist/types/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.d.ts +35 -0
- package/dist/types/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.d.ts +21 -0
- package/dist/types/components/sd-time-picker/sd-time-picker.config.d.ts +71 -0
- package/dist/types/components/sd-time-picker/sd-time-picker.d.ts +84 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.d.ts +40 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker.config.d.ts +9 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker.d.ts +88 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +7 -22
- package/dist/types/components.d.ts +1268 -381
- package/hydrate/index.js +1975 -502
- package/hydrate/index.mjs +1975 -502
- package/package.json +1 -1
- package/dist/cjs/sd-date-picker.config-Chrd8c4v.js +0 -41
- package/dist/cjs/useDatePicker-CgpIfwLA.js +0 -103
- package/dist/components/p-BFVfSW9t.js +0 -1
- package/dist/components/p-BKu0I6Io.js +0 -1
- package/dist/components/p-B_Zwr4Et.js +0 -1
- package/dist/components/p-CBoDoYDO.js +0 -1
- package/dist/components/p-CYMMLsGt.js +0 -1
- package/dist/components/p-C_SG4M4z.js +0 -1
- package/dist/components/p-CgSXYw_0.js +0 -1
- package/dist/components/p-CmRF12Fy.js +0 -1
- package/dist/components/p-CnRfET5y.js +0 -1
- package/dist/components/p-Cvsrc0be.js +0 -1
- package/dist/components/p-DJ8z7_EG.js +0 -1
- package/dist/components/p-DJmxpVkK.js +0 -1
- package/dist/components/p-DN7MAx-q.js +0 -1
- package/dist/components/p-DS6NVBvu.js +0 -1
- package/dist/components/p-D_56BjcD.js +0 -1
- package/dist/components/p-Uh9emYrV.js +0 -1
- package/dist/components/p-f0aBxUBG.js +0 -1
- package/dist/design-system/p-0e014b76.entry.js +0 -1
- package/dist/design-system/p-1b5fcf7b.entry.js +0 -1
- package/dist/design-system/p-2a4d2ee0.entry.js +0 -1
- package/dist/design-system/p-2d6a7d7b.entry.js +0 -1
- package/dist/design-system/p-4b474538.entry.js +0 -1
- package/dist/design-system/p-BOxGhKKP.js +0 -1
- package/dist/design-system/p-BhcvMs8c.js +0 -1
- package/dist/design-system/p-Dz490Ukt.js +0 -2
- package/dist/design-system/p-cb6ab65c.entry.js +0 -1
- package/dist/design-system/p-d51f4170.entry.js +0 -1
- package/dist/design-system/p-e7740a5f.entry.js +0 -1
- package/dist/design-system/p-e85bf462.entry.js +0 -1
- package/dist/design-system/p-ea008087.entry.js +0 -1
- package/dist/design-system/p-f962e5d2.entry.js +0 -1
- package/dist/esm/sd-date-picker.config-krRuSUsA.js +0 -38
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
sd-time-range-picker-selector {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: var(--selector-range-panel-gap);
|
|
9
|
+
padding: var(--selector-range-padding);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
background: var(--selector-bg);
|
|
12
|
+
border-radius: var(--selector-radius);
|
|
13
|
+
box-shadow: var(--sd-system-shadow-spread-sm-x) var(--sd-system-shadow-spread-sm-y) var(--sd-system-shadow-spread-sm-blur) var(--sd-system-shadow-spread-sm-spread) var(--sd-system-shadow-spread-sm-color), var(--sd-system-shadow-spread-md-x) var(--sd-system-shadow-spread-md-y) var(--sd-system-shadow-spread-md-blur) var(--sd-system-shadow-spread-md-spread) var(--sd-system-shadow-spread-md-color);
|
|
14
|
+
}
|
|
15
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__panel {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
gap: var(--selector-range-section-gap);
|
|
21
|
+
}
|
|
22
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__heading {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: var(--selector-range-heading-gap);
|
|
27
|
+
}
|
|
28
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__heading-text {
|
|
29
|
+
color: var(--selector-range-heading-color);
|
|
30
|
+
font-size: 12px;
|
|
31
|
+
line-height: 20px;
|
|
32
|
+
font-weight: 700;
|
|
33
|
+
text-align: center;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
}
|
|
36
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-group {
|
|
37
|
+
display: flex;
|
|
38
|
+
isolation: isolate;
|
|
39
|
+
}
|
|
40
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-button {
|
|
41
|
+
width: 61px;
|
|
42
|
+
height: 28px;
|
|
43
|
+
border: var(--selector-border-width) solid var(--selector-border-default);
|
|
44
|
+
background: var(--selector-bg);
|
|
45
|
+
color: var(--selector-range-heading-color);
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
line-height: 20px;
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-button--first {
|
|
52
|
+
border-radius: 4px 0 0 4px;
|
|
53
|
+
margin-right: -1px;
|
|
54
|
+
}
|
|
55
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-button--end {
|
|
56
|
+
border-radius: 0 4px 4px 0;
|
|
57
|
+
}
|
|
58
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-button--selected {
|
|
59
|
+
z-index: 1;
|
|
60
|
+
border-color: var(--selector-border-focus);
|
|
61
|
+
color: var(--selector-border-focus);
|
|
62
|
+
}
|
|
63
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__divider {
|
|
64
|
+
align-self: stretch;
|
|
65
|
+
width: 1px;
|
|
66
|
+
background: var(--selector-bg-disabled);
|
|
67
|
+
}
|
|
68
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__time {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
gap: var(--selector-time-gap);
|
|
73
|
+
padding: 0 16px;
|
|
74
|
+
background: var(--selector-bg);
|
|
75
|
+
}
|
|
76
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__column {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
gap: var(--selector-time-column-gap);
|
|
82
|
+
}
|
|
83
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__input {
|
|
84
|
+
width: var(--selector-input-width);
|
|
85
|
+
height: 28px;
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
border: var(--selector-border-width) solid var(--selector-border-default);
|
|
88
|
+
border-radius: 4px;
|
|
89
|
+
background: var(--selector-bg);
|
|
90
|
+
color: var(--selector-text-default);
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
line-height: 20px;
|
|
93
|
+
text-align: center;
|
|
94
|
+
outline: none;
|
|
95
|
+
}
|
|
96
|
+
sd-time-range-picker-selector .sd-time-range-picker-selector__colon {
|
|
97
|
+
width: var(--selector-colon-size);
|
|
98
|
+
color: var(--selector-range-heading-color);
|
|
99
|
+
font-size: 16px;
|
|
100
|
+
line-height: 16px;
|
|
101
|
+
text-align: center;
|
|
102
|
+
}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { TIME_RANGE_PICKER_COLORS, TIME_RANGE_PICKER_SELECTOR, formatTimeValue, parseTimeValue, } from "../sd-time-range-picker.config";
|
|
3
|
+
import { clampTimePart } from "../../sd-time-picker/sd-time-picker.config";
|
|
4
|
+
export class SdTimeRangePickerSelector {
|
|
5
|
+
/** 선택된 시간 범위 [시작, 종료] (HH:mm) */
|
|
6
|
+
value = null;
|
|
7
|
+
/** 오전/오후 선택 표시 여부 */
|
|
8
|
+
useMeridiem = false;
|
|
9
|
+
/** 분 증감 단위 */
|
|
10
|
+
minuteStep = 1;
|
|
11
|
+
/** 범위 순서 정책. strict는 시작 시간이 종료 시간보다 늦어지지 않도록 보정합니다. */
|
|
12
|
+
rangeOrder = 'strict';
|
|
13
|
+
/** 시간 범위 변경 시 발생합니다. */
|
|
14
|
+
update;
|
|
15
|
+
editingKey = null;
|
|
16
|
+
inputDraft = {};
|
|
17
|
+
autoAdjusted = null;
|
|
18
|
+
getRange() {
|
|
19
|
+
return this.value ?? ['00:00', '23:59'];
|
|
20
|
+
}
|
|
21
|
+
getParts(side) {
|
|
22
|
+
const [start, end] = this.getRange();
|
|
23
|
+
return parseTimeValue(side === 'start' ? start : end);
|
|
24
|
+
}
|
|
25
|
+
getMeridiem(side) {
|
|
26
|
+
return this.getParts(side).hour >= 12 ? 'PM' : 'AM';
|
|
27
|
+
}
|
|
28
|
+
getDisplayHour(side) {
|
|
29
|
+
const { hour } = this.getParts(side);
|
|
30
|
+
if (!this.useMeridiem)
|
|
31
|
+
return hour;
|
|
32
|
+
const displayHour = hour % 12;
|
|
33
|
+
return displayHour === 0 ? 12 : displayHour;
|
|
34
|
+
}
|
|
35
|
+
emitSide(side, hour, minute, direction = 'unknown') {
|
|
36
|
+
const [start, end] = this.getRange();
|
|
37
|
+
const next = formatTimeValue(hour, minute);
|
|
38
|
+
this.update.emit(this.normalizeNextRange(side === 'start' ? [next, end] : [start, next], side, direction));
|
|
39
|
+
}
|
|
40
|
+
getTimeMinutes(value) {
|
|
41
|
+
const { hour, minute } = parseTimeValue(value);
|
|
42
|
+
return hour * 60 + minute;
|
|
43
|
+
}
|
|
44
|
+
normalizeNextRange(range, changedSide, direction) {
|
|
45
|
+
if (this.rangeOrder === 'allow-cross-day')
|
|
46
|
+
return range;
|
|
47
|
+
const [start, end] = range;
|
|
48
|
+
const [currentStart, currentEnd] = this.getRange();
|
|
49
|
+
if (this.getTimeMinutes(start) <= this.getTimeMinutes(end)) {
|
|
50
|
+
const shouldKeepSynced = this.autoAdjusted?.side === changedSide &&
|
|
51
|
+
currentStart === currentEnd &&
|
|
52
|
+
start !== end &&
|
|
53
|
+
(direction === 'unknown' || this.autoAdjusted.direction === direction);
|
|
54
|
+
if (shouldKeepSynced) {
|
|
55
|
+
return changedSide === 'start' ? [start, start] : [end, end];
|
|
56
|
+
}
|
|
57
|
+
this.autoAdjusted = null;
|
|
58
|
+
return range;
|
|
59
|
+
}
|
|
60
|
+
this.autoAdjusted = {
|
|
61
|
+
side: changedSide,
|
|
62
|
+
direction: changedSide === 'start' ? 'increase' : 'decrease',
|
|
63
|
+
};
|
|
64
|
+
return changedSide === 'start' ? [start, start] : [end, end];
|
|
65
|
+
}
|
|
66
|
+
getEditingKey(side, part) {
|
|
67
|
+
return `${side}-${part}`;
|
|
68
|
+
}
|
|
69
|
+
sanitizeInput(value) {
|
|
70
|
+
return value.replace(/\D/g, '').slice(0, 2);
|
|
71
|
+
}
|
|
72
|
+
setDraft(key, value) {
|
|
73
|
+
this.inputDraft = { ...this.inputDraft, [key]: value };
|
|
74
|
+
}
|
|
75
|
+
beginEdit(side, part, value) {
|
|
76
|
+
const key = this.getEditingKey(side, part);
|
|
77
|
+
this.editingKey = key;
|
|
78
|
+
this.setDraft(key, String(value).padStart(2, '0'));
|
|
79
|
+
}
|
|
80
|
+
commitHourDraft(side, draft) {
|
|
81
|
+
const raw = clampTimePart(Number(draft), this.useMeridiem ? 1 : 0, this.useMeridiem ? 12 : 23);
|
|
82
|
+
const { minute } = this.getParts(side);
|
|
83
|
+
const meridiem = this.getMeridiem(side);
|
|
84
|
+
const nextHour = this.useMeridiem
|
|
85
|
+
? meridiem === 'PM'
|
|
86
|
+
? raw === 12
|
|
87
|
+
? 12
|
|
88
|
+
: raw + 12
|
|
89
|
+
: raw === 12
|
|
90
|
+
? 0
|
|
91
|
+
: raw
|
|
92
|
+
: raw;
|
|
93
|
+
this.emitSide(side, nextHour, minute);
|
|
94
|
+
return raw;
|
|
95
|
+
}
|
|
96
|
+
commitMinuteDraft(side, draft) {
|
|
97
|
+
const { hour } = this.getParts(side);
|
|
98
|
+
const nextMinute = clampTimePart(Number(draft), 0, 59);
|
|
99
|
+
this.emitSide(side, hour, nextMinute);
|
|
100
|
+
return nextMinute;
|
|
101
|
+
}
|
|
102
|
+
endEdit(side, part) {
|
|
103
|
+
const draft = this.inputDraft[this.getEditingKey(side, part)];
|
|
104
|
+
if (part === 'hour' && draft != null && draft !== '') {
|
|
105
|
+
this.commitHourDraft(side, draft);
|
|
106
|
+
}
|
|
107
|
+
if (part === 'minute' && draft != null && draft !== '') {
|
|
108
|
+
this.commitMinuteDraft(side, draft);
|
|
109
|
+
}
|
|
110
|
+
this.editingKey = null;
|
|
111
|
+
this.inputDraft = {};
|
|
112
|
+
}
|
|
113
|
+
setMeridiem(side, meridiem) {
|
|
114
|
+
const current = this.getMeridiem(side);
|
|
115
|
+
if (current === meridiem)
|
|
116
|
+
return;
|
|
117
|
+
const { hour, minute } = this.getParts(side);
|
|
118
|
+
this.emitSide(side, meridiem === 'AM' ? hour - 12 : hour + 12, minute);
|
|
119
|
+
}
|
|
120
|
+
changeHour(side, delta) {
|
|
121
|
+
const { hour, minute } = this.getParts(side);
|
|
122
|
+
this.emitSide(side, (hour + delta + 24) % 24, minute, delta > 0 ? 'increase' : 'decrease');
|
|
123
|
+
}
|
|
124
|
+
changeMinute(side, delta) {
|
|
125
|
+
const { hour, minute } = this.getParts(side);
|
|
126
|
+
const next = minute + delta;
|
|
127
|
+
if (next > 59) {
|
|
128
|
+
this.emitSide(side, (hour + 1) % 24, next - 60, delta > 0 ? 'increase' : 'decrease');
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (next < 0) {
|
|
132
|
+
this.emitSide(side, (hour + 23) % 24, next + 60, delta > 0 ? 'increase' : 'decrease');
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
this.emitSide(side, hour, next, delta > 0 ? 'increase' : 'decrease');
|
|
136
|
+
}
|
|
137
|
+
handleHourInput = (side, event) => {
|
|
138
|
+
const target = event.target;
|
|
139
|
+
const draft = this.sanitizeInput(target.value);
|
|
140
|
+
target.value = draft;
|
|
141
|
+
this.setDraft(this.getEditingKey(side, 'hour'), draft);
|
|
142
|
+
if (draft === '')
|
|
143
|
+
return;
|
|
144
|
+
if (draft.length < 2)
|
|
145
|
+
return;
|
|
146
|
+
const raw = this.commitHourDraft(side, draft);
|
|
147
|
+
const displayDraft = Number(draft) === raw ? draft : String(raw);
|
|
148
|
+
target.value = displayDraft;
|
|
149
|
+
this.setDraft(this.getEditingKey(side, 'hour'), displayDraft);
|
|
150
|
+
};
|
|
151
|
+
handleMinuteInput = (side, event) => {
|
|
152
|
+
const target = event.target;
|
|
153
|
+
const draft = this.sanitizeInput(target.value);
|
|
154
|
+
target.value = draft;
|
|
155
|
+
this.setDraft(this.getEditingKey(side, 'minute'), draft);
|
|
156
|
+
if (draft === '')
|
|
157
|
+
return;
|
|
158
|
+
if (draft.length < 2)
|
|
159
|
+
return;
|
|
160
|
+
const nextMinute = this.commitMinuteDraft(side, draft);
|
|
161
|
+
const displayDraft = Number(draft) === nextMinute ? draft : String(nextMinute);
|
|
162
|
+
target.value = displayDraft;
|
|
163
|
+
this.setDraft(this.getEditingKey(side, 'minute'), displayDraft);
|
|
164
|
+
};
|
|
165
|
+
renderMeridiemButton(side, label, meridiem, position) {
|
|
166
|
+
const selected = this.getMeridiem(side) === meridiem;
|
|
167
|
+
return (h("button", { type: "button", class: {
|
|
168
|
+
'sd-time-range-picker-selector__meridiem-button': true,
|
|
169
|
+
'sd-time-range-picker-selector__meridiem-button--selected': selected,
|
|
170
|
+
[`sd-time-range-picker-selector__meridiem-button--${position}`]: true,
|
|
171
|
+
}, onClick: () => this.setMeridiem(side, meridiem) }, label));
|
|
172
|
+
}
|
|
173
|
+
renderColumn(side, type) {
|
|
174
|
+
const isHour = type === 'hour';
|
|
175
|
+
const { minute } = this.getParts(side);
|
|
176
|
+
const value = isHour ? this.getDisplayHour(side) : minute;
|
|
177
|
+
const editingKey = this.getEditingKey(side, type);
|
|
178
|
+
const displayValue = this.editingKey === editingKey
|
|
179
|
+
? (this.inputDraft[editingKey] ?? '')
|
|
180
|
+
: String(value).padStart(2, '0');
|
|
181
|
+
return (h("div", { class: "sd-time-range-picker-selector__column" }, h("sd-ghost-button", { icon: "chevronUp", size: "xs", ariaLabel: `${side === 'start' ? '시작' : '종료'} ${isHour ? '시' : '분'} 증가`, onSdClick: () => isHour ? this.changeHour(side, 1) : this.changeMinute(side, this.minuteStep) }), h("input", { class: "sd-time-range-picker-selector__input", type: "text", inputmode: "numeric", value: displayValue, placeholder: "-", onFocus: () => this.beginEdit(side, type, value), onBlur: () => this.endEdit(side, type), onInput: event => isHour ? this.handleHourInput(side, event) : this.handleMinuteInput(side, event), "aria-label": `${side === 'start' ? '시작' : '종료'} ${isHour ? '시' : '분'}` }), h("sd-ghost-button", { icon: "chevronDown", size: "xs", ariaLabel: `${side === 'start' ? '시작' : '종료'} ${isHour ? '시' : '분'} 감소`, onSdClick: () => isHour ? this.changeHour(side, -1) : this.changeMinute(side, -this.minuteStep) })));
|
|
182
|
+
}
|
|
183
|
+
renderPanel(side, title) {
|
|
184
|
+
return (h("div", { class: "sd-time-range-picker-selector__panel" }, h("div", { class: "sd-time-range-picker-selector__heading" }, h("div", { class: "sd-time-range-picker-selector__heading-text" }, title), this.useMeridiem && (h("div", { class: "sd-time-range-picker-selector__meridiem-group" }, this.renderMeridiemButton(side, '오전', 'AM', 'first'), this.renderMeridiemButton(side, '오후', 'PM', 'end')))), h("div", { class: "sd-time-range-picker-selector__time" }, this.renderColumn(side, 'hour'), h("span", { class: "sd-time-range-picker-selector__colon" }, ":"), this.renderColumn(side, 'minute'))));
|
|
185
|
+
}
|
|
186
|
+
render() {
|
|
187
|
+
const cssVars = {
|
|
188
|
+
'--selector-bg': TIME_RANGE_PICKER_SELECTOR.bg,
|
|
189
|
+
'--selector-radius': `${TIME_RANGE_PICKER_SELECTOR.radius}px`,
|
|
190
|
+
'--selector-range-padding': `${TIME_RANGE_PICKER_SELECTOR.range.paddingXY}px`,
|
|
191
|
+
'--selector-range-panel-gap': `${TIME_RANGE_PICKER_SELECTOR.range.panelGap}px`,
|
|
192
|
+
'--selector-range-section-gap': `${TIME_RANGE_PICKER_SELECTOR.range.section.gap}px`,
|
|
193
|
+
'--selector-range-heading-gap': `${TIME_RANGE_PICKER_SELECTOR.range.heading.gap}px`,
|
|
194
|
+
'--selector-range-heading-color': TIME_RANGE_PICKER_SELECTOR.range.heading.color,
|
|
195
|
+
'--selector-time-gap': `${TIME_RANGE_PICKER_SELECTOR.time.gap}px`,
|
|
196
|
+
'--selector-time-column-gap': `${TIME_RANGE_PICKER_SELECTOR.time.column.gap}px`,
|
|
197
|
+
'--selector-input-width': `${TIME_RANGE_PICKER_SELECTOR.inputWidth}px`,
|
|
198
|
+
'--selector-colon-size': `${TIME_RANGE_PICKER_SELECTOR.colonSize}px`,
|
|
199
|
+
'--selector-border-width': `${TIME_RANGE_PICKER_COLORS.border.width}px`,
|
|
200
|
+
'--selector-border-default': TIME_RANGE_PICKER_COLORS.border.default,
|
|
201
|
+
'--selector-border-focus': TIME_RANGE_PICKER_COLORS.border.focus,
|
|
202
|
+
'--selector-bg-disabled': TIME_RANGE_PICKER_COLORS.bg.disabled,
|
|
203
|
+
'--selector-text-default': TIME_RANGE_PICKER_COLORS.text.default,
|
|
204
|
+
};
|
|
205
|
+
return (h("div", { key: '2cfcf8240579a3526c40c430e1704c8b10556add', class: "sd-time-range-picker-selector", style: cssVars }, this.renderPanel('start', '시작 시간'), h("div", { key: 'c48b1c6af7897a64339ce9c1c1da9d8e4a02c612', class: "sd-time-range-picker-selector__divider" }), this.renderPanel('end', '종료 시간')));
|
|
206
|
+
}
|
|
207
|
+
static get is() { return "sd-time-range-picker-selector"; }
|
|
208
|
+
static get originalStyleUrls() {
|
|
209
|
+
return {
|
|
210
|
+
"$": ["sd-time-range-picker-selector.scss"]
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
static get styleUrls() {
|
|
214
|
+
return {
|
|
215
|
+
"$": ["sd-time-range-picker-selector.css"]
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
static get properties() {
|
|
219
|
+
return {
|
|
220
|
+
"value": {
|
|
221
|
+
"type": "unknown",
|
|
222
|
+
"mutable": false,
|
|
223
|
+
"complexType": {
|
|
224
|
+
"original": "TimeRangeValue",
|
|
225
|
+
"resolved": "[string, string] | null",
|
|
226
|
+
"references": {
|
|
227
|
+
"TimeRangeValue": {
|
|
228
|
+
"location": "import",
|
|
229
|
+
"path": "../sd-time-range-picker.config",
|
|
230
|
+
"id": "src/components/sd-time-range-picker/sd-time-range-picker.config.ts::TimeRangeValue",
|
|
231
|
+
"referenceLocation": "TimeRangeValue"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": false,
|
|
236
|
+
"optional": false,
|
|
237
|
+
"docs": {
|
|
238
|
+
"tags": [],
|
|
239
|
+
"text": "\uC120\uD0DD\uB41C \uC2DC\uAC04 \uBC94\uC704 [\uC2DC\uC791, \uC885\uB8CC] (HH:mm)"
|
|
240
|
+
},
|
|
241
|
+
"getter": false,
|
|
242
|
+
"setter": false,
|
|
243
|
+
"defaultValue": "null"
|
|
244
|
+
},
|
|
245
|
+
"useMeridiem": {
|
|
246
|
+
"type": "boolean",
|
|
247
|
+
"mutable": false,
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "boolean",
|
|
250
|
+
"resolved": "boolean",
|
|
251
|
+
"references": {}
|
|
252
|
+
},
|
|
253
|
+
"required": false,
|
|
254
|
+
"optional": false,
|
|
255
|
+
"docs": {
|
|
256
|
+
"tags": [],
|
|
257
|
+
"text": "\uC624\uC804/\uC624\uD6C4 \uC120\uD0DD \uD45C\uC2DC \uC5EC\uBD80"
|
|
258
|
+
},
|
|
259
|
+
"getter": false,
|
|
260
|
+
"setter": false,
|
|
261
|
+
"reflect": false,
|
|
262
|
+
"attribute": "use-meridiem",
|
|
263
|
+
"defaultValue": "false"
|
|
264
|
+
},
|
|
265
|
+
"minuteStep": {
|
|
266
|
+
"type": "number",
|
|
267
|
+
"mutable": false,
|
|
268
|
+
"complexType": {
|
|
269
|
+
"original": "number",
|
|
270
|
+
"resolved": "number",
|
|
271
|
+
"references": {}
|
|
272
|
+
},
|
|
273
|
+
"required": false,
|
|
274
|
+
"optional": false,
|
|
275
|
+
"docs": {
|
|
276
|
+
"tags": [],
|
|
277
|
+
"text": "\uBD84 \uC99D\uAC10 \uB2E8\uC704"
|
|
278
|
+
},
|
|
279
|
+
"getter": false,
|
|
280
|
+
"setter": false,
|
|
281
|
+
"reflect": false,
|
|
282
|
+
"attribute": "minute-step",
|
|
283
|
+
"defaultValue": "1"
|
|
284
|
+
},
|
|
285
|
+
"rangeOrder": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"mutable": false,
|
|
288
|
+
"complexType": {
|
|
289
|
+
"original": "TimeRangePickerRangeOrder",
|
|
290
|
+
"resolved": "\"allow-cross-day\" | \"strict\"",
|
|
291
|
+
"references": {
|
|
292
|
+
"TimeRangePickerRangeOrder": {
|
|
293
|
+
"location": "import",
|
|
294
|
+
"path": "../sd-time-range-picker.config",
|
|
295
|
+
"id": "src/components/sd-time-range-picker/sd-time-range-picker.config.ts::TimeRangePickerRangeOrder",
|
|
296
|
+
"referenceLocation": "TimeRangePickerRangeOrder"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": false,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": "\uBC94\uC704 \uC21C\uC11C \uC815\uCC45. strict\uB294 \uC2DC\uC791 \uC2DC\uAC04\uC774 \uC885\uB8CC \uC2DC\uAC04\uBCF4\uB2E4 \uB2A6\uC5B4\uC9C0\uC9C0 \uC54A\uB3C4\uB85D \uBCF4\uC815\uD569\uB2C8\uB2E4."
|
|
305
|
+
},
|
|
306
|
+
"getter": false,
|
|
307
|
+
"setter": false,
|
|
308
|
+
"reflect": false,
|
|
309
|
+
"attribute": "range-order",
|
|
310
|
+
"defaultValue": "'strict'"
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
static get states() {
|
|
315
|
+
return {
|
|
316
|
+
"editingKey": {},
|
|
317
|
+
"inputDraft": {}
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
static get events() {
|
|
321
|
+
return [{
|
|
322
|
+
"method": "update",
|
|
323
|
+
"name": "sdUpdate",
|
|
324
|
+
"bubbles": true,
|
|
325
|
+
"cancelable": true,
|
|
326
|
+
"composed": true,
|
|
327
|
+
"docs": {
|
|
328
|
+
"tags": [],
|
|
329
|
+
"text": "\uC2DC\uAC04 \uBC94\uC704 \uBCC0\uACBD \uC2DC \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
330
|
+
},
|
|
331
|
+
"complexType": {
|
|
332
|
+
"original": "[string, string]",
|
|
333
|
+
"resolved": "[string, string]",
|
|
334
|
+
"references": {}
|
|
335
|
+
}
|
|
336
|
+
}];
|
|
337
|
+
}
|
|
338
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TIMEPICKER_COLORS, TIMEPICKER_SELECTOR, TIMEPICKER_SIZE_MAP, formatTimeDisplay, formatTimeValue, parseTimeValue, } from "../sd-time-picker/sd-time-picker.config";
|
|
2
|
+
export { TIMEPICKER_COLORS as TIME_RANGE_PICKER_COLORS, TIMEPICKER_SELECTOR as TIME_RANGE_PICKER_SELECTOR, TIMEPICKER_SIZE_MAP as TIME_RANGE_PICKER_SIZE_MAP, formatTimeDisplay, formatTimeValue, parseTimeValue, };
|
|
3
|
+
function getTimeMinutes(value) {
|
|
4
|
+
const { hour, minute } = parseTimeValue(value);
|
|
5
|
+
return hour * 60 + minute;
|
|
6
|
+
}
|
|
7
|
+
export function normalizeTimeRangeValue(value, rangeOrder = 'strict') {
|
|
8
|
+
if (value == null)
|
|
9
|
+
return null;
|
|
10
|
+
const normalized = value.map(item => {
|
|
11
|
+
const parsed = parseTimeValue(item);
|
|
12
|
+
return formatTimeValue(parsed.hour, parsed.minute);
|
|
13
|
+
});
|
|
14
|
+
if (rangeOrder === 'strict' && getTimeMinutes(normalized[0]) > getTimeMinutes(normalized[1])) {
|
|
15
|
+
return [normalized[0], normalized[0]];
|
|
16
|
+
}
|
|
17
|
+
return normalized;
|
|
18
|
+
}
|
|
19
|
+
export function formatTimeRangeDisplay(value, type) {
|
|
20
|
+
if (value == null || value[0] === '' || value[1] === '')
|
|
21
|
+
return '';
|
|
22
|
+
return `${formatTimeDisplay(value[0], type)} ~ ${formatTimeDisplay(value[1], type)}`;
|
|
23
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
sd-time-range-picker {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
}
|
|
4
|
+
sd-time-range-picker sd-portal {
|
|
5
|
+
display: none;
|
|
6
|
+
}
|
|
7
|
+
sd-time-range-picker .sd-time-range-picker {
|
|
8
|
+
position: relative;
|
|
9
|
+
min-width: var(--sd-time-range-picker-min-width);
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|