@sellmate/design-system 1.29.0 → 1.32.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-Cg7X15Hq.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 +22 -17
- package/dist/cjs/sd-chip.cjs.entry.js +7 -7
- package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
- 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 +3 -3
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/sd-key-value-table.cjs.entry.js +2 -2
- package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
- 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 +4 -4
- 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-scroll-area.cjs.entry.js +44 -0
- package/dist/cjs/sd-select-list-item_4.cjs.entry.js +12 -12
- package/dist/cjs/sd-stepper.cjs.entry.js +190 -0
- 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/{system-B4KkVpu2.js → system-BGCBFBcM.js} +3 -1
- package/dist/cjs/{tooltipArrow-DOOcBlLp.js → tooltipArrow-CZff77W-.js} +1 -1
- package/dist/cjs/useDatePicker-j06ymWZ_.js +103 -0
- package/dist/collection/collection-manifest.json +10 -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.css +40 -0
- 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-scroll-area/sd-scroll-area.config.js +8 -0
- package/dist/collection/components/sd-scroll-area/sd-scroll-area.css +61 -0
- package/dist/collection/components/sd-scroll-area/sd-scroll-area.js +151 -0
- 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.css +33 -9
- 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-stepper/sd-stepper.config.js +35 -0
- package/dist/collection/components/sd-stepper/sd-stepper.css +50 -0
- package/dist/collection/components/sd-stepper/sd-stepper.js +186 -0
- 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--BJuy06e.js +1 -0
- package/dist/components/p-22hyxPno.js +1 -0
- package/dist/components/p-7lGaExLM.js +1 -0
- package/dist/components/{p-oYbVr-z0.js → p-B6BgOB_-.js} +1 -1
- package/dist/components/{p-R-Sdglj0.js → p-BBAwMOGx.js} +1 -1
- package/dist/components/{p-CbS69IvC.js → p-BDULNyBw.js} +1 -1
- package/dist/components/p-BI1iKxNN.js +1 -0
- package/dist/components/{p-Bpv90tfa.js → p-BPzs63D8.js} +1 -1
- package/dist/components/{p-DMoFncVl.js → p-BU1DclrU.js} +1 -1
- package/dist/components/{p-OO7xxhkC.js → p-BhLF3gGb.js} +1 -1
- package/dist/components/p-Bk6mL1Ml.js +1 -0
- package/dist/components/p-BkyM9ded.js +1 -0
- package/dist/components/{p-CFTyEfB9.js → p-BoJ_gLp7.js} +1 -1
- package/dist/components/{p-Di1q4f5E.js → p-BpTKv3vN.js} +1 -1
- package/dist/components/p-C0IFrSzM.js +1 -0
- package/dist/components/p-C1KeTx0Z.js +1 -0
- package/dist/components/p-C8x8VEb8.js +1 -0
- package/dist/components/p-CBx8KWmu.js +1 -0
- package/dist/components/p-CNNjhHTA.js +1 -0
- package/dist/components/{p-CErFctrV.js → p-CRDS2TOy.js} +1 -1
- package/dist/components/p-CdeywvU6.js +1 -0
- package/dist/components/{p-BOxGhKKP.js → p-CghFB91T.js} +1 -1
- package/dist/components/p-CikPzSw-.js +1 -0
- package/dist/components/{p-9Ap2W-Mi.js → p-D0IDp-M3.js} +1 -1
- package/dist/components/p-D2oNz1s-.js +1 -0
- package/dist/components/p-DApl37Qw.js +1 -0
- package/dist/components/{p-BIEPMPWA.js → p-DGAzuK5C.js} +1 -1
- package/dist/components/p-DMm_GeZC.js +1 -0
- package/dist/components/{p-C_in6AVN.js → p-DONA7SlO.js} +1 -1
- package/dist/components/{p-C7mC7a1z.js → p-DVdDYnTl.js} +1 -1
- package/dist/components/{p-Dg1UrMqI.js → p-DdYWQ4Z5.js} +1 -1
- package/dist/components/p-DtadjLky.js +1 -0
- package/dist/components/p-DvlLDBO7.js +1 -0
- package/dist/components/p-ETWwVYq6.js +1 -0
- package/dist/components/{p-idG6CMO0.js → p-ISXxxDfX.js} +1 -1
- package/dist/components/p-UFNg7rhE.js +1 -0
- package/dist/{design-system/p-B91K50wC.js → components/p-bXzpfkfN.js} +1 -1
- package/dist/components/{p-BHjezpAC.js → p-irA7XFIS.js} +1 -1
- package/dist/components/{p-Bth2l1cy.js → p-rayWyWtG.js} +1 -1
- package/dist/components/{p-CSr33M9s.js → p-sLMSwbXi.js} +1 -1
- package/dist/components/p-vj3gimgB.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-scroll-area.d.ts +11 -0
- package/dist/components/sd-scroll-area.js +1 -0
- 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-stepper.d.ts +11 -0
- package/dist/components/sd-stepper.js +1 -0
- 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-840006b1.entry.js → p-0cdd05eb.entry.js} +1 -1
- package/dist/design-system/p-1c4ba7ae.entry.js +1 -0
- package/dist/design-system/{p-c7d2c195.entry.js → p-2a36028d.entry.js} +1 -1
- package/dist/design-system/{p-be54fd3a.entry.js → p-2e76157e.entry.js} +1 -1
- package/dist/design-system/p-336cb0c1.entry.js +1 -0
- package/dist/design-system/{p-26a27312.entry.js → p-34e8dda6.entry.js} +1 -1
- package/dist/design-system/p-370b820e.entry.js +1 -0
- package/dist/design-system/{p-c5cffcc6.entry.js → p-39db3098.entry.js} +1 -1
- package/dist/design-system/p-3a2be559.entry.js +1 -0
- package/dist/design-system/p-405cb160.entry.js +1 -0
- package/dist/design-system/{p-246aafb9.entry.js → p-456479cc.entry.js} +1 -1
- package/dist/design-system/{p-86329ae3.entry.js → p-4d845113.entry.js} +1 -1
- package/dist/design-system/p-5761352f.entry.js +1 -0
- package/dist/design-system/{p-3cd2751a.entry.js → p-5b725381.entry.js} +1 -1
- package/dist/design-system/p-5d7820f7.entry.js +1 -0
- package/dist/design-system/p-5dd631fe.entry.js +1 -0
- package/dist/design-system/p-66e3fba3.entry.js +1 -0
- package/dist/design-system/{p-c1066f40.entry.js → p-6a5540d8.entry.js} +1 -1
- package/dist/design-system/{p-55c0be7d.entry.js → p-703bb49a.entry.js} +1 -1
- package/dist/design-system/{p-0c1d1a15.entry.js → p-71e7031e.entry.js} +1 -1
- package/dist/design-system/p-7837f8f8.entry.js +1 -0
- package/dist/design-system/{p-5a257ed9.entry.js → p-814ae5f1.entry.js} +1 -1
- package/dist/design-system/p-8804e3f3.entry.js +1 -0
- package/dist/design-system/p-8ea038d7.entry.js +1 -0
- package/dist/design-system/{p-b585f94b.entry.js → p-937a30af.entry.js} +1 -1
- package/dist/design-system/{p-1ed1bfa1.entry.js → p-94d4c093.entry.js} +1 -1
- package/dist/design-system/p-97a059b0.entry.js +1 -0
- package/dist/design-system/{p-53fe2741.entry.js → p-9afada52.entry.js} +1 -1
- package/dist/design-system/{p-d2ce01ac.entry.js → p-9df0dd32.entry.js} +1 -1
- package/dist/design-system/{p-BPKiBSGr.js → p-BnUjeY2n.js} +1 -1
- package/dist/design-system/p-CHijmX_D.js +1 -0
- package/dist/design-system/p-CdvQqvIe.js +2 -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-3595cafb.entry.js → p-a05f4888.entry.js} +1 -1
- package/dist/design-system/p-a81e4ae0.entry.js +1 -0
- package/dist/design-system/p-aaa551fa.entry.js +1 -0
- package/dist/design-system/p-adc218f5.entry.js +1 -0
- package/dist/design-system/{p-8ed1d470.entry.js → p-b7e913e7.entry.js} +1 -1
- package/dist/design-system/p-b90eaebd.entry.js +1 -0
- package/dist/design-system/{p-d9f33192.entry.js → p-c5263a22.entry.js} +1 -1
- package/dist/design-system/{p-ec4ad48c.entry.js → p-c5eea64c.entry.js} +1 -1
- package/dist/design-system/{p-02f0b906.entry.js → p-c906d22d.entry.js} +1 -1
- package/dist/design-system/{p-d204cac5.entry.js → p-defe65db.entry.js} +1 -1
- package/dist/design-system/{p-4c85f6f6.entry.js → p-e16725f7.entry.js} +1 -1
- package/dist/design-system/p-e4096b72.entry.js +1 -0
- package/dist/design-system/{p-8de3b502.entry.js → p-e72706ea.entry.js} +1 -1
- package/dist/design-system/p-fb01f963.entry.js +1 -0
- package/dist/design-system/{p-adf2f398.entry.js → p-fc9577d9.entry.js} +1 -1
- package/dist/design-system/{p-Bth2l1cy.js → p-rayWyWtG.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-Dz490Ukt.js → index-CdvQqvIe.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 +22 -17
- package/dist/esm/sd-chip.entry.js +7 -7
- package/dist/esm/sd-circle-progress.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/sd-dropdown-button.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/sd-key-value-table.entry.js +2 -2
- package/dist/esm/sd-linear-progress.entry.js +3 -3
- 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 +4 -4
- package/dist/esm/sd-radio-button.entry.js +3 -3
- package/dist/esm/sd-radio.entry.js +4 -2
- package/dist/esm/sd-scroll-area.entry.js +42 -0
- package/dist/esm/sd-select-list-item_4.entry.js +12 -12
- package/dist/esm/sd-stepper.entry.js +188 -0
- 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/{system-Bth2l1cy.js → system-rayWyWtG.js} +3 -1
- package/dist/esm/{tooltipArrow-CEHVt90h.js → tooltipArrow-BsQ__AbZ.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-scroll-area/sd-scroll-area.config.d.ts +5 -0
- package/dist/types/components/sd-scroll-area/sd-scroll-area.d.ts +14 -0
- package/dist/types/components/sd-stepper/sd-stepper.config.d.ts +43 -0
- package/dist/types/components/sd-stepper/sd-stepper.d.ts +18 -0
- 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 +2630 -1611
- package/hydrate/index.js +2163 -436
- package/hydrate/index.mjs +2163 -436
- 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-a631cd78.entry.js +0 -1
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cg7X15Hq.js');
|
|
4
4
|
var component_listItem = require('./component.listItem-cAO_ppOz.js');
|
|
5
5
|
var component_listBox = require('./component.listBox-MHAv4Yy7.js');
|
|
6
6
|
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
@@ -213,7 +213,7 @@ const SdSelectListItem = class {
|
|
|
213
213
|
return (
|
|
214
214
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
215
215
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
216
|
-
index.h("div", { key: '
|
|
216
|
+
index.h("div", { key: 'e4f8fc195a7231cd3218b91a26c77f51df14e6dc', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
217
217
|
'sd-select-list-item': true,
|
|
218
218
|
'sd-select-list-item--group': isGroup,
|
|
219
219
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -223,7 +223,7 @@ const SdSelectListItem = class {
|
|
|
223
223
|
'sd-select-list-item--focused': this.isFocused,
|
|
224
224
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
225
225
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
226
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '
|
|
226
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: 'a9720067837860a8259b1a16b5eab111f02c7ac4', 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 })), isHtmlLabel(this.option.label) ? (index.h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml.sanitizeInlineHtml(this.option.label)) })) : (index.h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (index.h("span", { key: '8ece77c44bea9aea99883efe099137bca7d89475', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
SdSelectListItem.style = sdSelectListItemCss();
|
|
@@ -280,20 +280,20 @@ const SdSelectListItemSearch = class {
|
|
|
280
280
|
clearTimeout(this.debounceTimer);
|
|
281
281
|
}
|
|
282
282
|
render() {
|
|
283
|
-
return (index.h("div", { key: '
|
|
283
|
+
return (index.h("div", { key: '5e1dc595bd89df5364d9a302dc917abb29fa2c7b', class: {
|
|
284
284
|
'sd-select-list-item-search': true,
|
|
285
285
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
286
|
-
} }, index.h("div", { key: '
|
|
286
|
+
} }, index.h("div", { key: 'd07b293bf685652dcc965071f47c0492776f9d41', class: "sd-select-list-item-search__inner" }, index.h("sd-icon", { key: '065e1df3105048322ababd7237df83d045543fc3', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), index.h("input", { key: '973977bfbd98f5430b1b53f1ad59128383481197', ref: el => {
|
|
287
287
|
this.inputEl = el;
|
|
288
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), index.h("button", { key: '
|
|
288
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), index.h("button", { key: '2a1386ef266f7398f97ff99adc89ee3cec4a594e', type: "button", class: {
|
|
289
289
|
'sd-select-list-item-search__clear': true,
|
|
290
290
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
291
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '
|
|
291
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: '1060c9fe4e3e6ce239800f04b382df9ce83e9d16', name: "close", size: 12, color: "#888888" })))));
|
|
292
292
|
}
|
|
293
293
|
};
|
|
294
294
|
SdSelectListItemSearch.style = sdSelectListItemSearchCss();
|
|
295
295
|
|
|
296
|
-
const sdSelectListboxCss = () => `:host{display:block}:host .sd-select-listbox{display:flex;flex-direction:column;width:var(--listbox-trigger-width);max-width:var(--listbox-max-width);max-height:var(--listbox-max-height);border-radius:var(--listbox-radius);background:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);overflow:hidden;outline:none}:host .sd-select-listbox__list{flex:1;min-height:0;overflow-y:auto;padding-bottom:0}:host .sd-select-listbox__list::-webkit-scrollbar{
|
|
296
|
+
const sdSelectListboxCss = () => `:host{display:block}:host .sd-select-listbox{display:flex;flex-direction:column;width:var(--listbox-trigger-width);max-width:var(--listbox-max-width);max-height:var(--listbox-max-height);border-radius:var(--listbox-radius);background:white;box-shadow:2px 2px 12px 2px rgba(0, 0, 0, 0.1);overflow:hidden;outline:none}:host .sd-select-listbox__list{flex:1;min-height:0;overflow-y:auto;padding-bottom:0}:host .sd-select-listbox__list::-webkit-scrollbar{width:12px;height:12px;background:transparent}:host .sd-select-listbox__list::-webkit-scrollbar-track{background:transparent}:host .sd-select-listbox__list::-webkit-scrollbar-thumb{background-color:#CCCCCC;border:2px solid transparent;border-radius:8px;background-clip:padding-box}@supports not selector(::-webkit-scrollbar){:host .sd-select-listbox__list{scrollbar-width:thin;scrollbar-color:#CCCCCC transparent}}:host .sd-select-listbox__list::-webkit-scrollbar,:host .sd-select-listbox__list::-webkit-scrollbar-track{background:#F6F6F6}@supports not selector(::-webkit-scrollbar){:host .sd-select-listbox__list{scrollbar-color:#CCCCCC #F6F6F6}}:host .sd-select-listbox__list::-webkit-scrollbar-track:vertical{border-left:1px solid #E1E1E1}:host .sd-select-listbox__list::-webkit-scrollbar-track:horizontal{border-top:1px solid #E1E1E1}:host .sd-select-listbox__list::-webkit-scrollbar-thumb:vertical{border-left-width:3px}:host .sd-select-listbox__list::-webkit-scrollbar-thumb:horizontal{border-top-width:3px}:host .sd-select-listbox__empty{padding:12px;text-align:center;font-size:12px;line-height:20px;color:#888888}`;
|
|
297
297
|
|
|
298
298
|
const SdSelectListbox = class {
|
|
299
299
|
constructor(hostRef) {
|
|
@@ -660,9 +660,9 @@ const SdSelectListbox = class {
|
|
|
660
660
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
661
661
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
662
662
|
};
|
|
663
|
-
return (index.h("div", { key: '
|
|
663
|
+
return (index.h("div", { key: '060d455fa7eb31d50fb13251f352643460cc1232', class: "sd-select-listbox", style: cssVars }, this.showSearch && (index.h("sd-select-list-item-search", { key: '70543defd307911c3885b9ef3a0726465e9e4471', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), index.h("div", { key: '17aed7b1eb402f3b61044814cfad734e2cd4b922', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
664
664
|
this.listEl = el;
|
|
665
|
-
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '
|
|
665
|
+
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '1f43ef353e470ebb0f70bfed5c495eb7de227c62', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (index.h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (index.h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
666
666
|
}
|
|
667
667
|
static get watchers() { return {
|
|
668
668
|
"searchKeyword": [{
|
|
@@ -730,7 +730,7 @@ const SdSelectTrigger = class {
|
|
|
730
730
|
? SELECT_COLORS.icon.disabled
|
|
731
731
|
: SELECT_COLORS.icon.default,
|
|
732
732
|
};
|
|
733
|
-
return (index.h("div", { key: '
|
|
733
|
+
return (index.h("div", { key: 'afda44bd2f8dcf0ab75d75b0178b067f96e61707', ref: el => {
|
|
734
734
|
this.triggerEl = el;
|
|
735
735
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
736
736
|
'sd-select-trigger': true,
|
|
@@ -741,7 +741,7 @@ const SdSelectTrigger = class {
|
|
|
741
741
|
e.preventDefault();
|
|
742
742
|
this.handleClick();
|
|
743
743
|
}
|
|
744
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '
|
|
744
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '061acc7d557d222b2616538346d415a6f37a198e', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (index.h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml.sanitizeInlineHtml(this.displayText)) })) : (index.h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), index.h("sd-icon", { key: '6444177838d54360776bbbfa7f08da7a6f556a16', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
745
745
|
'sd-select-trigger__icon': true,
|
|
746
746
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
747
747
|
} }))));
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cg7X15Hq.js');
|
|
4
|
+
|
|
5
|
+
const stepper$1 = {
|
|
6
|
+
sm: {
|
|
7
|
+
sequence: {
|
|
8
|
+
size: "20"
|
|
9
|
+
},
|
|
10
|
+
typography: {
|
|
11
|
+
active: {
|
|
12
|
+
fontWeight: "700"},
|
|
13
|
+
"default": {
|
|
14
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
15
|
+
fontWeight: "500",
|
|
16
|
+
fontSize: "12",
|
|
17
|
+
lineHeight: "20"}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
dash: {
|
|
21
|
+
width: "20",
|
|
22
|
+
color: "#888888"
|
|
23
|
+
},
|
|
24
|
+
lg: {
|
|
25
|
+
sequence: {
|
|
26
|
+
size: "24"
|
|
27
|
+
},
|
|
28
|
+
typography: {
|
|
29
|
+
active: {
|
|
30
|
+
fontWeight: "700"},
|
|
31
|
+
"default": {
|
|
32
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
33
|
+
fontWeight: "500",
|
|
34
|
+
fontSize: "14",
|
|
35
|
+
lineHeight: "24"}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
container: {
|
|
39
|
+
gap: "12"
|
|
40
|
+
},
|
|
41
|
+
item: {
|
|
42
|
+
gap: "8"
|
|
43
|
+
},
|
|
44
|
+
sequence: {
|
|
45
|
+
radius: "9999",
|
|
46
|
+
border: {
|
|
47
|
+
active: "#93C4FF",
|
|
48
|
+
"default": "#E1E1E1",
|
|
49
|
+
completed: "#CCCCCC",
|
|
50
|
+
witdh: "1"
|
|
51
|
+
},
|
|
52
|
+
icon: "12",
|
|
53
|
+
bg: {
|
|
54
|
+
active: "#D9EAFF",
|
|
55
|
+
"default": "#FFFFFF",
|
|
56
|
+
completed: "#E1E1E1"
|
|
57
|
+
},
|
|
58
|
+
text: {
|
|
59
|
+
active: "#0075FF",
|
|
60
|
+
"default": "#AAAAAA"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
text: {
|
|
64
|
+
active: "#0075FF",
|
|
65
|
+
"default": "#888888"
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var stepperTokens = {
|
|
69
|
+
stepper: stepper$1
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const stepper = stepperTokens.stepper;
|
|
73
|
+
const STEPPER_SIZES = {
|
|
74
|
+
sm: {
|
|
75
|
+
sequenceSize: stepper.sm.sequence.size,
|
|
76
|
+
fontFamily: stepper.sm.typography.default.fontFamily,
|
|
77
|
+
fontSize: stepper.sm.typography.default.fontSize,
|
|
78
|
+
lineHeight: stepper.sm.typography.default.lineHeight,
|
|
79
|
+
fontWeightActive: stepper.sm.typography.active.fontWeight,
|
|
80
|
+
fontWeightDefault: stepper.sm.typography.default.fontWeight,
|
|
81
|
+
},
|
|
82
|
+
lg: {
|
|
83
|
+
sequenceSize: stepper.lg.sequence.size,
|
|
84
|
+
fontFamily: stepper.lg.typography.default.fontFamily,
|
|
85
|
+
fontSize: stepper.lg.typography.default.fontSize,
|
|
86
|
+
lineHeight: stepper.lg.typography.default.lineHeight,
|
|
87
|
+
fontWeightActive: stepper.lg.typography.active.fontWeight,
|
|
88
|
+
fontWeightDefault: stepper.lg.typography.default.fontWeight,
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
const STEPPER_LAYOUT = {
|
|
92
|
+
containerGap: stepper.container.gap,
|
|
93
|
+
itemGap: stepper.item.gap,
|
|
94
|
+
dashWidth: stepper.dash.width,
|
|
95
|
+
radius: stepper.sequence.radius,
|
|
96
|
+
borderWidth: stepper.sequence.border.witdh,
|
|
97
|
+
iconSize: stepper.sequence.icon,
|
|
98
|
+
};
|
|
99
|
+
const STEPPER_COLORS = {
|
|
100
|
+
dash: stepper.dash.color,
|
|
101
|
+
sequenceBorder: stepper.sequence.border,
|
|
102
|
+
sequenceBg: stepper.sequence.bg,
|
|
103
|
+
sequenceText: stepper.sequence.text,
|
|
104
|
+
text: stepper.text,
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
const sdStepperCss = () => `sd-stepper{display:inline-flex}sd-stepper .sd-stepper{display:inline-flex;align-items:center;gap:var(--sd-stepper-container-gap);font-family:var(--sd-stepper-font-family);font-size:var(--sd-stepper-font-size);line-height:var(--sd-stepper-line-height)}sd-stepper .sd-stepper__item{display:inline-flex;align-items:center;gap:var(--sd-stepper-item-gap);color:var(--sd-stepper-text-default);font-weight:var(--sd-stepper-font-weight-default);white-space:nowrap}sd-stepper .sd-stepper__item--active{color:var(--sd-stepper-text-active);font-weight:var(--sd-stepper-font-weight-active)}sd-stepper .sd-stepper__sequence{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:var(--sd-stepper-sequence-size);height:var(--sd-stepper-sequence-size);flex:0 0 var(--sd-stepper-sequence-size);border-radius:var(--sd-stepper-sequence-radius);border:var(--sd-stepper-sequence-border-width) solid var(--sd-stepper-sequence-border);background:var(--sd-stepper-sequence-bg);color:var(--sd-stepper-sequence-text);font-size:12px;line-height:20px;font-weight:700}sd-stepper .sd-stepper__label{color:inherit}sd-stepper .sd-stepper__dash{display:inline-flex;align-items:center;width:var(--sd-stepper-dash-width);height:1px;flex:0 0 var(--sd-stepper-dash-width);color:var(--sd-stepper-dash-color)}`;
|
|
108
|
+
|
|
109
|
+
const SdStepper = class {
|
|
110
|
+
constructor(hostRef) {
|
|
111
|
+
index.registerInstance(this, hostRef);
|
|
112
|
+
}
|
|
113
|
+
/** 단계 목록 */
|
|
114
|
+
items = [];
|
|
115
|
+
/** 현재 활성 단계 value */
|
|
116
|
+
value = '';
|
|
117
|
+
/** 크기 */
|
|
118
|
+
size = 'sm';
|
|
119
|
+
/** 접근성 레이블 */
|
|
120
|
+
ariaLabel = '진행 단계';
|
|
121
|
+
valueChanged(newValue) {
|
|
122
|
+
this.value = newValue;
|
|
123
|
+
}
|
|
124
|
+
getItemValue(item, index) {
|
|
125
|
+
return item.value ?? String(index + 1);
|
|
126
|
+
}
|
|
127
|
+
getActiveIndex() {
|
|
128
|
+
const found = this.items.findIndex((item, index) => this.getItemValue(item, index) === this.value);
|
|
129
|
+
return found >= 0 ? found : 0;
|
|
130
|
+
}
|
|
131
|
+
getState(index) {
|
|
132
|
+
const activeIndex = this.getActiveIndex();
|
|
133
|
+
if (index < activeIndex)
|
|
134
|
+
return 'completed';
|
|
135
|
+
if (index === activeIndex)
|
|
136
|
+
return 'active';
|
|
137
|
+
return 'default';
|
|
138
|
+
}
|
|
139
|
+
buildCssVars() {
|
|
140
|
+
const size = STEPPER_SIZES[this.size];
|
|
141
|
+
return {
|
|
142
|
+
'--sd-stepper-sequence-size': `${size.sequenceSize}px`,
|
|
143
|
+
'--sd-stepper-font-family': size.fontFamily,
|
|
144
|
+
'--sd-stepper-font-size': `${size.fontSize}px`,
|
|
145
|
+
'--sd-stepper-line-height': `${size.lineHeight}px`,
|
|
146
|
+
'--sd-stepper-font-weight-active': size.fontWeightActive,
|
|
147
|
+
'--sd-stepper-font-weight-default': size.fontWeightDefault,
|
|
148
|
+
'--sd-stepper-container-gap': `${STEPPER_LAYOUT.containerGap}px`,
|
|
149
|
+
'--sd-stepper-item-gap': `${STEPPER_LAYOUT.itemGap}px`,
|
|
150
|
+
'--sd-stepper-dash-width': `${STEPPER_LAYOUT.dashWidth}px`,
|
|
151
|
+
'--sd-stepper-dash-color': STEPPER_COLORS.dash,
|
|
152
|
+
'--sd-stepper-sequence-radius': `${STEPPER_LAYOUT.radius}px`,
|
|
153
|
+
'--sd-stepper-sequence-border-width': `${STEPPER_LAYOUT.borderWidth}px`,
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
getStateVars(state) {
|
|
157
|
+
return {
|
|
158
|
+
'--sd-stepper-sequence-border': STEPPER_COLORS.sequenceBorder[state],
|
|
159
|
+
'--sd-stepper-sequence-bg': STEPPER_COLORS.sequenceBg[state],
|
|
160
|
+
'--sd-stepper-sequence-text': state === 'completed'
|
|
161
|
+
? STEPPER_COLORS.text.default
|
|
162
|
+
: STEPPER_COLORS.sequenceText[state],
|
|
163
|
+
'--sd-stepper-text-active': STEPPER_COLORS.text.active,
|
|
164
|
+
'--sd-stepper-text-default': STEPPER_COLORS.text.default,
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
render() {
|
|
168
|
+
return (index.h("div", { key: '0255899ce447c38d44a618acc72692d2c746ebc3', class: "sd-stepper", role: "list", "aria-label": this.ariaLabel, style: this.buildCssVars() }, this.items.map((item, index$1) => {
|
|
169
|
+
const state = this.getState(index$1);
|
|
170
|
+
const className = [
|
|
171
|
+
'sd-stepper__item',
|
|
172
|
+
`sd-stepper__item--${state}`,
|
|
173
|
+
]
|
|
174
|
+
.filter(Boolean)
|
|
175
|
+
.join(' ');
|
|
176
|
+
return [
|
|
177
|
+
index.h("span", { class: className, role: "listitem", "aria-current": state === 'active' ? 'step' : undefined, style: this.getStateVars(state) }, index.h("span", { class: "sd-stepper__sequence", "aria-hidden": "true" }, state === 'completed' ? (index.h("sd-icon", { name: "check", size: STEPPER_LAYOUT.iconSize, color: "currentColor" })) : (index$1 + 1)), index.h("span", { class: "sd-stepper__label" }, item.label)),
|
|
178
|
+
index$1 < this.items.length - 1 && (index.h("span", { class: "sd-stepper__dash", "aria-hidden": "true" }, index.h("svg", { width: STEPPER_LAYOUT.dashWidth, height: "1", viewBox: `0 0 ${STEPPER_LAYOUT.dashWidth} 1`, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("rect", { width: "1.6", height: "1", fill: "#888888" }), index.h("rect", { x: "5", width: "3.3", height: "1", fill: "#888888" }), index.h("rect", { x: "11.7", width: "3.3", height: "1", fill: "#888888" }), index.h("rect", { x: "18.4", width: "1.6", height: "1", fill: "#888888" })))),
|
|
179
|
+
];
|
|
180
|
+
})));
|
|
181
|
+
}
|
|
182
|
+
static get watchers() { return {
|
|
183
|
+
"value": [{
|
|
184
|
+
"valueChanged": 0
|
|
185
|
+
}]
|
|
186
|
+
}; }
|
|
187
|
+
};
|
|
188
|
+
SdStepper.style = sdStepperCss();
|
|
189
|
+
|
|
190
|
+
exports.sd_stepper = SdStepper;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cg7X15Hq.js');
|
|
4
4
|
|
|
5
5
|
var switchTokens = {
|
|
6
6
|
"switch": {
|
|
@@ -67,7 +67,14 @@ const SdSwitch = class {
|
|
|
67
67
|
}
|
|
68
68
|
/** 현재 on/off 상태 */
|
|
69
69
|
value = false;
|
|
70
|
-
/**
|
|
70
|
+
/** 스위치 좌측 라벨 */
|
|
71
|
+
leftLabel;
|
|
72
|
+
/** 스위치 우측 라벨 */
|
|
73
|
+
rightLabel;
|
|
74
|
+
/**
|
|
75
|
+
* 표시할 라벨 텍스트
|
|
76
|
+
* @deprecated `rightLabel` 사용. 우측 라벨(하위호환)
|
|
77
|
+
*/
|
|
71
78
|
label = '';
|
|
72
79
|
/** 비활성 상태 여부 */
|
|
73
80
|
disabled = false;
|
|
@@ -109,7 +116,10 @@ const SdSwitch = class {
|
|
|
109
116
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
110
117
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
111
118
|
};
|
|
112
|
-
|
|
119
|
+
// label(deprecated)은 rightLabel 로 흡수 (하위호환)
|
|
120
|
+
const right = this.rightLabel ?? this.label;
|
|
121
|
+
const accessibleName = [this.leftLabel, right].filter(Boolean).join(' ') || 'switch';
|
|
122
|
+
return (index.h("label", { key: '3ff528a7fe1a39cae2475d31af98036dd5f0c7d8', "aria-label": accessibleName, class: this.switchClasses, style: cssVars }, index.h("input", { key: '02e54ab9b626be19ff1efd330069e3f9477367c6', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), this.leftLabel && index.h("span", { key: '2eed006c7de45f1cda9d009fa4228c8cb1f56755', class: "sd-switch__label" }, this.leftLabel), index.h("div", { key: '031c7c3121c54a45b7de0187c31e2e298a0f9701', class: "sd-switch__track" }, index.h("div", { key: '15a3225b7dd4deab98feb4f6581d89f9cf480edd', class: "sd-switch__knob" })), right && index.h("span", { key: '04b2185de5b5d2c05f24b3818c6dbc1300680d13', class: "sd-switch__label" }, right)));
|
|
113
123
|
}
|
|
114
124
|
};
|
|
115
125
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cg7X15Hq.js');
|
|
4
4
|
|
|
5
5
|
const tab = {
|
|
6
6
|
main: {
|
|
@@ -207,7 +207,7 @@ const SdTabs = class {
|
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
render() {
|
|
210
|
-
return (index.h("div", { key: '
|
|
210
|
+
return (index.h("div", { key: 'c88c2d10181fd02076ac9c0ecdb6d3e95bd727c3', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
211
211
|
const badgeName = this.getBadgeName(tab);
|
|
212
212
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
213
213
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Cg7X15Hq.js');
|
|
4
4
|
|
|
5
5
|
const textLink = {
|
|
6
6
|
sm: {
|
|
@@ -173,7 +173,7 @@ const SdTextLink = class {
|
|
|
173
173
|
};
|
|
174
174
|
const tooltipText = (this.tooltipText ?? '').trim();
|
|
175
175
|
const hasTooltip = tooltipText.length > 0;
|
|
176
|
-
return (index.h("span", { key: '
|
|
176
|
+
return (index.h("span", { key: '363829c6d53fc3df03dee7ddd290ca078c255039', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
177
177
|
'sd-text-link': true,
|
|
178
178
|
'sd-text-link--disabled': this.disabled,
|
|
179
179
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -181,13 +181,13 @@ const SdTextLink = class {
|
|
|
181
181
|
e.preventDefault();
|
|
182
182
|
this.handleClick();
|
|
183
183
|
}
|
|
184
|
-
}, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (index.h("sd-portal", { key: '
|
|
184
|
+
}, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (index.h("sd-portal", { key: '4dcb8ca39f7b9627b5f77885c0823848d0aa5a5f', parentRef: this.hostEl, open: true, offset: [this.hostEl.offsetWidth / 2, 4], placement: "top" }, index.h("div", { key: '7bbcabbd9d9bb3594d8c4817dbbb922018bbbd19', class: "sd-text-link__tooltip-inner", "aria-hidden": "true" }, index.h("sd-tag", { key: '313c23dc9caf81d885ebf288c475ebe01bd24515', name: "square_xs_grey", label: tooltipText })))), this.icon && (index.h("sd-icon", { key: '2668c579bc22547b542ca2045f9af0fad25a5ee7', name: this.icon, size: sizeConfig.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: '28246109bab90175498e841ecb02ac4a53a992b8', class: labelClassName }, this.label), this.rightArrow && this.rightArrow !== 'none' && (index.h("span", { key: 'c157788957cbba17a1411ebb329897fc6524171d', class: "sd-text-link__arrow", style: {
|
|
185
185
|
width: `${TEXT_LINK_ARROW.arrowFrame}px`,
|
|
186
186
|
height: `${TEXT_LINK_ARROW.arrowFrame}px`,
|
|
187
187
|
display: 'inline-flex',
|
|
188
188
|
alignItems: 'center',
|
|
189
189
|
justifyContent: 'center',
|
|
190
|
-
} }, index.h("sd-icon", { key: '
|
|
190
|
+
} }, index.h("sd-icon", { key: 'b74ca3398a1dd74ac5a9f7a16c872d313882fd4d', name: this.rightArrow === 'chevron' ? 'chevronRight' : 'caretRight', size: TEXT_LINK_ARROW.arrowIconSize, color: arrowColor })))));
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cg7X15Hq.js');
|
|
4
|
+
var sdTimePicker_config = require('./sd-time-picker.config-C7REB08L.js');
|
|
5
|
+
require('./component.field-C7it8cZm.js');
|
|
6
|
+
|
|
7
|
+
const sdTimePickerSelectorCss = () => `sd-time-picker-selector{display:block}sd-time-picker-selector .sd-time-picker-selector{display:flex;flex-direction:column;align-items:stretch;justify-content:center;overflow:hidden;background:var(--selector-bg);border-radius:var(--selector-radius);box-shadow:4px 8px 16px -4px rgba(34, 34, 34, 0.1), 0 0 24px -6px rgba(34, 34, 34, 0.12)}sd-time-picker-selector .sd-time-picker-selector__meridiem{display:flex;align-items:center;justify-content:center;padding:var(--selector-section-padding-y) var(--selector-section-padding-x);background:var(--selector-bg)}sd-time-picker-selector .sd-time-picker-selector__meridiem-group{display:flex;isolation:isolate}sd-time-picker-selector .sd-time-picker-selector__meridiem-button{width:61px;height:28px;border:1px solid #ccc;background:#fff;color:#555;font-size:12px;line-height:20px;font-weight:500;cursor:pointer}sd-time-picker-selector .sd-time-picker-selector__meridiem-button--first{border-radius:4px 0 0 4px;margin-right:-1px}sd-time-picker-selector .sd-time-picker-selector__meridiem-button--end{border-radius:0 4px 4px 0}sd-time-picker-selector .sd-time-picker-selector__meridiem-button--selected{z-index:1;border-color:#0075ff;color:#0075ff}sd-time-picker-selector .sd-time-picker-selector__divider{height:1px;width:100%;background:#e1e1e1}sd-time-picker-selector .sd-time-picker-selector__time{display:flex;align-items:center;justify-content:center;gap:var(--selector-time-gap);padding:var(--selector-section-padding-y) var(--selector-section-padding-x);background:var(--selector-bg)}sd-time-picker-selector .sd-time-picker-selector__column{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--selector-time-column-gap)}sd-time-picker-selector .sd-time-picker-selector__input{width:var(--selector-input-width);height:28px;box-sizing:border-box;border:1px solid #aaa;border-radius:4px;background:#fff;color:#222;font-size:12px;line-height:20px;text-align:center;outline:none}sd-time-picker-selector .sd-time-picker-selector__colon{width:var(--selector-colon-size);color:#555;font-size:16px;line-height:16px;text-align:center}`;
|
|
8
|
+
|
|
9
|
+
const SdTimePickerSelector = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.update = index.createEvent(this, "sdUpdate", 7);
|
|
13
|
+
}
|
|
14
|
+
/** 선택된 시간 (HH:mm) */
|
|
15
|
+
value = null;
|
|
16
|
+
/** 오전/오후 선택 표시 여부 */
|
|
17
|
+
useMeridiem = true;
|
|
18
|
+
/** 분 증감 단위 */
|
|
19
|
+
minuteStep = 1;
|
|
20
|
+
/** 시간 변경 시 발생합니다. */
|
|
21
|
+
update;
|
|
22
|
+
valueChanged() {
|
|
23
|
+
this.syncFromValue();
|
|
24
|
+
}
|
|
25
|
+
editingPart = null;
|
|
26
|
+
inputDraft = {};
|
|
27
|
+
hour = 0;
|
|
28
|
+
minute = 0;
|
|
29
|
+
componentWillLoad() {
|
|
30
|
+
this.syncFromValue();
|
|
31
|
+
}
|
|
32
|
+
syncFromValue() {
|
|
33
|
+
const parsed = sdTimePicker_config.parseTimeValue(this.value);
|
|
34
|
+
this.hour = parsed.hour;
|
|
35
|
+
this.minute = parsed.minute;
|
|
36
|
+
}
|
|
37
|
+
get meridiem() {
|
|
38
|
+
return this.hour >= 12 ? 'PM' : 'AM';
|
|
39
|
+
}
|
|
40
|
+
get displayHour() {
|
|
41
|
+
if (!this.useMeridiem)
|
|
42
|
+
return this.hour;
|
|
43
|
+
const hour = this.hour % 12;
|
|
44
|
+
return hour === 0 ? 12 : hour;
|
|
45
|
+
}
|
|
46
|
+
emitNext(hour, minute) {
|
|
47
|
+
this.hour = sdTimePicker_config.clampTimePart(hour, 0, 23);
|
|
48
|
+
this.minute = sdTimePicker_config.clampTimePart(minute, 0, 59);
|
|
49
|
+
this.update.emit(sdTimePicker_config.formatTimeValue(this.hour, this.minute));
|
|
50
|
+
}
|
|
51
|
+
sanitizeInput(value) {
|
|
52
|
+
return value.replace(/\D/g, '').slice(0, 2);
|
|
53
|
+
}
|
|
54
|
+
setDraft(part, value) {
|
|
55
|
+
this.inputDraft = { ...this.inputDraft, [part]: value };
|
|
56
|
+
}
|
|
57
|
+
beginEdit(part, value) {
|
|
58
|
+
this.editingPart = part;
|
|
59
|
+
this.setDraft(part, String(value).padStart(2, '0'));
|
|
60
|
+
}
|
|
61
|
+
commitHourDraft(draft) {
|
|
62
|
+
const raw = sdTimePicker_config.clampTimePart(Number(draft), this.useMeridiem ? 1 : 0, this.useMeridiem ? 12 : 23);
|
|
63
|
+
const nextHour = this.useMeridiem
|
|
64
|
+
? this.meridiem === 'PM'
|
|
65
|
+
? raw === 12
|
|
66
|
+
? 12
|
|
67
|
+
: raw + 12
|
|
68
|
+
: raw === 12
|
|
69
|
+
? 0
|
|
70
|
+
: raw
|
|
71
|
+
: raw;
|
|
72
|
+
this.emitNext(nextHour, this.minute);
|
|
73
|
+
return raw;
|
|
74
|
+
}
|
|
75
|
+
commitMinuteDraft(draft) {
|
|
76
|
+
const minute = sdTimePicker_config.clampTimePart(Number(draft), 0, 59);
|
|
77
|
+
this.emitNext(this.hour, minute);
|
|
78
|
+
return minute;
|
|
79
|
+
}
|
|
80
|
+
endEdit(part) {
|
|
81
|
+
const draft = this.inputDraft[part];
|
|
82
|
+
if (part === 'hour' && draft != null && draft !== '') {
|
|
83
|
+
this.commitHourDraft(draft);
|
|
84
|
+
}
|
|
85
|
+
if (part === 'minute' && draft != null && draft !== '') {
|
|
86
|
+
this.commitMinuteDraft(draft);
|
|
87
|
+
}
|
|
88
|
+
this.editingPart = null;
|
|
89
|
+
this.inputDraft = {};
|
|
90
|
+
}
|
|
91
|
+
setMeridiem(meridiem) {
|
|
92
|
+
if (meridiem === this.meridiem)
|
|
93
|
+
return;
|
|
94
|
+
if (meridiem === 'AM') {
|
|
95
|
+
this.emitNext(this.hour - 12, this.minute);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
this.emitNext(this.hour + 12, this.minute);
|
|
99
|
+
}
|
|
100
|
+
changeHour(delta) {
|
|
101
|
+
this.emitNext((this.hour + delta + 24) % 24, this.minute);
|
|
102
|
+
}
|
|
103
|
+
changeMinute(delta) {
|
|
104
|
+
const next = this.minute + delta;
|
|
105
|
+
if (next > 59) {
|
|
106
|
+
this.emitNext((this.hour + 1) % 24, next - 60);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (next < 0) {
|
|
110
|
+
this.emitNext((this.hour + 23) % 24, next + 60);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
this.emitNext(this.hour, next);
|
|
114
|
+
}
|
|
115
|
+
handleHourInput = (event) => {
|
|
116
|
+
const target = event.target;
|
|
117
|
+
const draft = this.sanitizeInput(target.value);
|
|
118
|
+
target.value = draft;
|
|
119
|
+
this.setDraft('hour', draft);
|
|
120
|
+
if (draft === '')
|
|
121
|
+
return;
|
|
122
|
+
if (draft.length < 2)
|
|
123
|
+
return;
|
|
124
|
+
const raw = this.commitHourDraft(draft);
|
|
125
|
+
const displayDraft = Number(draft) === raw ? draft : String(raw);
|
|
126
|
+
target.value = displayDraft;
|
|
127
|
+
this.setDraft('hour', displayDraft);
|
|
128
|
+
};
|
|
129
|
+
handleMinuteInput = (event) => {
|
|
130
|
+
const target = event.target;
|
|
131
|
+
const draft = this.sanitizeInput(target.value);
|
|
132
|
+
target.value = draft;
|
|
133
|
+
this.setDraft('minute', draft);
|
|
134
|
+
if (draft === '')
|
|
135
|
+
return;
|
|
136
|
+
if (draft.length < 2)
|
|
137
|
+
return;
|
|
138
|
+
const nextMinute = this.commitMinuteDraft(draft);
|
|
139
|
+
const displayDraft = Number(draft) === nextMinute ? draft : String(nextMinute);
|
|
140
|
+
target.value = displayDraft;
|
|
141
|
+
this.setDraft('minute', displayDraft);
|
|
142
|
+
this.emitNext(this.hour, nextMinute);
|
|
143
|
+
};
|
|
144
|
+
renderMeridiemButton(label, meridiem, position) {
|
|
145
|
+
const selected = this.meridiem === meridiem;
|
|
146
|
+
return (index.h("button", { type: "button", class: {
|
|
147
|
+
'sd-time-picker-selector__meridiem-button': true,
|
|
148
|
+
'sd-time-picker-selector__meridiem-button--selected': selected,
|
|
149
|
+
[`sd-time-picker-selector__meridiem-button--${position}`]: true,
|
|
150
|
+
}, onClick: () => this.setMeridiem(meridiem) }, label));
|
|
151
|
+
}
|
|
152
|
+
renderColumn(type) {
|
|
153
|
+
const isHour = type === 'hour';
|
|
154
|
+
const value = isHour ? this.displayHour : this.minute;
|
|
155
|
+
const displayValue = this.editingPart === type ? (this.inputDraft[type] ?? '') : String(value).padStart(2, '0');
|
|
156
|
+
return (index.h("div", { class: `sd-time-picker-selector__column sd-time-picker-selector__column--${type}` }, index.h("sd-ghost-button", { icon: "chevronUp", size: "xs", ariaLabel: `${isHour ? '시' : '분'} 증가`, onSdClick: () => (isHour ? this.changeHour(1) : this.changeMinute(this.minuteStep)) }), index.h("input", { class: "sd-time-picker-selector__input", type: "text", inputmode: "numeric", value: displayValue, placeholder: "-", onFocus: () => this.beginEdit(type, value), onBlur: () => this.endEdit(type), onInput: isHour ? this.handleHourInput : this.handleMinuteInput, "aria-label": isHour ? '시' : '분' }), index.h("sd-ghost-button", { icon: "chevronDown", size: "xs", ariaLabel: `${isHour ? '시' : '분'} 감소`, onSdClick: () => (isHour ? this.changeHour(-1) : this.changeMinute(-this.minuteStep)) })));
|
|
157
|
+
}
|
|
158
|
+
render() {
|
|
159
|
+
const cssVars = {
|
|
160
|
+
'--selector-bg': sdTimePicker_config.TIMEPICKER_SELECTOR.bg,
|
|
161
|
+
'--selector-radius': `${sdTimePicker_config.TIMEPICKER_SELECTOR.radius}px`,
|
|
162
|
+
'--selector-section-padding-x': `${sdTimePicker_config.TIMEPICKER_SELECTOR.section.paddingX}px`,
|
|
163
|
+
'--selector-section-padding-y': `${sdTimePicker_config.TIMEPICKER_SELECTOR.section.paddingY}px`,
|
|
164
|
+
'--selector-time-gap': `${sdTimePicker_config.TIMEPICKER_SELECTOR.time.gap}px`,
|
|
165
|
+
'--selector-time-column-gap': `${sdTimePicker_config.TIMEPICKER_SELECTOR.time.column.gap}px`,
|
|
166
|
+
'--selector-input-width': `${sdTimePicker_config.TIMEPICKER_SELECTOR.inputWidth}px`,
|
|
167
|
+
'--selector-colon-size': `${sdTimePicker_config.TIMEPICKER_SELECTOR.colonSize}px`,
|
|
168
|
+
};
|
|
169
|
+
return (index.h("div", { key: '9bf6683c63cf784bba552872b00b53a19e7bd77d', class: "sd-time-picker-selector", style: cssVars }, this.useMeridiem && (index.h("div", { key: '096e30217c77ab8faf305965528f97026eefee85', class: "sd-time-picker-selector__meridiem" }, index.h("div", { key: '4931f8e17bfb1cb356e1d713dfdf1635ced0429a', class: "sd-time-picker-selector__meridiem-group" }, this.renderMeridiemButton('오전', 'AM', 'first'), this.renderMeridiemButton('오후', 'PM', 'end')))), this.useMeridiem && index.h("div", { key: 'a69fcd7379092069faaa556e7dc6649c46072314', class: "sd-time-picker-selector__divider" }), index.h("div", { key: '620e20c888b254533c34d626eac5012456b76052', class: "sd-time-picker-selector__time" }, this.renderColumn('hour'), index.h("span", { key: '483fc0afbbaf8faae65012bcead48a04bce6b446', class: "sd-time-picker-selector__colon" }, ":"), this.renderColumn('minute'))));
|
|
170
|
+
}
|
|
171
|
+
static get watchers() { return {
|
|
172
|
+
"value": [{
|
|
173
|
+
"valueChanged": 0
|
|
174
|
+
}]
|
|
175
|
+
}; }
|
|
176
|
+
};
|
|
177
|
+
SdTimePickerSelector.style = sdTimePickerSelectorCss();
|
|
178
|
+
|
|
179
|
+
exports.sd_time_picker_selector = SdTimePickerSelector;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cg7X15Hq.js');
|
|
4
|
+
var sdTimePicker_config = require('./sd-time-picker.config-C7REB08L.js');
|
|
5
|
+
require('./component.field-C7it8cZm.js');
|
|
6
|
+
|
|
7
|
+
const sdTimePickerTriggerCss = () => `sd-time-picker-trigger{display:block;width:100%;height:100%}sd-time-picker-trigger .sd-time-picker-trigger{display:flex;align-items:center;gap:var(--trigger-gap);width:100%;height:100%;padding:0 var(--trigger-padding-x);cursor:pointer;user-select:none;overflow:hidden;border-radius:var(--trigger-radius)}sd-time-picker-trigger .sd-time-picker-trigger--disabled{cursor:not-allowed}sd-time-picker-trigger .sd-time-picker-trigger__icon,sd-time-picker-trigger .sd-time-picker-trigger__clear{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center}sd-time-picker-trigger .sd-time-picker-trigger__text{flex:1;min-width:var(--trigger-text-min-width, 80px);font-size:var(--trigger-font-size);line-height:var(--trigger-line-height);font-weight:var(--trigger-font-weight);color:var(--trigger-text-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}`;
|
|
8
|
+
|
|
9
|
+
const SdTimePickerTrigger = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.triggerClick = index.createEvent(this, "sdTriggerClick", 7);
|
|
13
|
+
this.clear = index.createEvent(this, "sdClear", 7);
|
|
14
|
+
}
|
|
15
|
+
/** 표시할 시간 텍스트 */
|
|
16
|
+
displayText = '';
|
|
17
|
+
/** 입력 힌트 텍스트 */
|
|
18
|
+
placeholder = '00:00';
|
|
19
|
+
/** 비활성 상태 여부 */
|
|
20
|
+
disabled = false;
|
|
21
|
+
/** 지우기 버튼 표시 여부 */
|
|
22
|
+
clearable = false;
|
|
23
|
+
/** 트리거 크기 */
|
|
24
|
+
size = 'sm';
|
|
25
|
+
/** 트리거 클릭 시 발생합니다. */
|
|
26
|
+
triggerClick;
|
|
27
|
+
/** 지우기 버튼 클릭 시 발생합니다. */
|
|
28
|
+
clear;
|
|
29
|
+
handleClick = () => {
|
|
30
|
+
if (this.disabled)
|
|
31
|
+
return;
|
|
32
|
+
this.triggerClick.emit();
|
|
33
|
+
};
|
|
34
|
+
handleClear = (event) => {
|
|
35
|
+
event.stopPropagation();
|
|
36
|
+
if (this.disabled)
|
|
37
|
+
return;
|
|
38
|
+
this.clear.emit();
|
|
39
|
+
};
|
|
40
|
+
render() {
|
|
41
|
+
const sizeTokens = sdTimePicker_config.TIMEPICKER_SIZE_MAP[this.size] ?? sdTimePicker_config.TIMEPICKER_SIZE_MAP.sm;
|
|
42
|
+
const hasValue = this.displayText !== '';
|
|
43
|
+
const textMinWidth = this.size === 'md' ? 96 : 80;
|
|
44
|
+
const cssVars = {
|
|
45
|
+
'--trigger-padding-x': `${sizeTokens.paddingX}px`,
|
|
46
|
+
'--trigger-gap': `${sizeTokens.gap}px`,
|
|
47
|
+
'--trigger-icon-size': `${sizeTokens.iconSize}px`,
|
|
48
|
+
'--trigger-font-size': `${sizeTokens.fontSize}px`,
|
|
49
|
+
'--trigger-line-height': `${sizeTokens.lineHeight}px`,
|
|
50
|
+
'--trigger-font-weight': sizeTokens.fontWeight,
|
|
51
|
+
'--trigger-radius': `${sizeTokens.radius}px`,
|
|
52
|
+
'--trigger-text-min-width': `${textMinWidth}px`,
|
|
53
|
+
'--trigger-text-color': this.disabled
|
|
54
|
+
? sdTimePicker_config.TIMEPICKER_COLORS.text.disabled
|
|
55
|
+
: hasValue
|
|
56
|
+
? sdTimePicker_config.TIMEPICKER_COLORS.text.default
|
|
57
|
+
: sdTimePicker_config.TIMEPICKER_COLORS.text.hint,
|
|
58
|
+
'--trigger-icon-color': this.disabled
|
|
59
|
+
? sdTimePicker_config.TIMEPICKER_COLORS.icon.disabled
|
|
60
|
+
: sdTimePicker_config.TIMEPICKER_COLORS.icon.default,
|
|
61
|
+
};
|
|
62
|
+
return (index.h("div", { key: '4cd9086e21a7e7fedb6601c163dcf9c5c8f374d1', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
63
|
+
'sd-time-picker-trigger': true,
|
|
64
|
+
'sd-time-picker-trigger--disabled': this.disabled,
|
|
65
|
+
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
66
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
this.handleClick();
|
|
69
|
+
}
|
|
70
|
+
} }, index.h("sd-icon", { key: 'c38c13b3dc8c072430bb5b40765b96582696e04c', name: "clockOutline", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-time-picker-trigger__icon" }), index.h("span", { key: '245e636a0645d97c825a44607516d8821cc533f9', class: "sd-time-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder), this.clearable && hasValue && !this.disabled && (index.h("sd-ghost-button", { key: 'fa740470bf8b798fcf0863ba9e7822e496e8e841', class: "sd-time-picker-trigger__clear", icon: "close", size: "xs", ariaLabel: "\uC2DC\uAC04 \uC9C0\uC6B0\uAE30", onSdClick: this.handleClear }))));
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
SdTimePickerTrigger.style = sdTimePickerTriggerCss();
|
|
74
|
+
|
|
75
|
+
exports.sd_time_picker_trigger = SdTimePickerTrigger;
|