@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
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-CdvQqvIe.js';
|
|
2
|
+
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
|
+
import { f as formatTimeValue, a as formatTimeDisplay, p as parseTimeValue, T as TIMEPICKER_COLORS, b as TIMEPICKER_SIZE_MAP } from './sd-time-picker.config-DUq29Nhs.js';
|
|
4
|
+
import './component.field-DjKOoQuF.js';
|
|
5
|
+
|
|
6
|
+
function getTimeMinutes(value) {
|
|
7
|
+
const { hour, minute } = parseTimeValue(value);
|
|
8
|
+
return hour * 60 + minute;
|
|
9
|
+
}
|
|
10
|
+
function normalizeTimeRangeValue(value, rangeOrder = 'strict') {
|
|
11
|
+
if (value == null)
|
|
12
|
+
return null;
|
|
13
|
+
const normalized = value.map(item => {
|
|
14
|
+
const parsed = parseTimeValue(item);
|
|
15
|
+
return formatTimeValue(parsed.hour, parsed.minute);
|
|
16
|
+
});
|
|
17
|
+
if (rangeOrder === 'strict' && getTimeMinutes(normalized[0]) > getTimeMinutes(normalized[1])) {
|
|
18
|
+
return [normalized[0], normalized[0]];
|
|
19
|
+
}
|
|
20
|
+
return normalized;
|
|
21
|
+
}
|
|
22
|
+
function formatTimeRangeDisplay(value, type) {
|
|
23
|
+
if (value == null || value[0] === '' || value[1] === '')
|
|
24
|
+
return '';
|
|
25
|
+
return `${formatTimeDisplay(value[0], type)} ~ ${formatTimeDisplay(value[1], type)}`;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const sdTimeRangePickerCss = () => `sd-time-range-picker{display:inline-flex}sd-time-range-picker sd-portal{display:none}sd-time-range-picker .sd-time-range-picker{position:relative;min-width:var(--sd-time-range-picker-min-width);width:100%;height:100%}`;
|
|
29
|
+
|
|
30
|
+
const SdTimeRangePicker = class {
|
|
31
|
+
constructor(hostRef) {
|
|
32
|
+
registerInstance(this, hostRef);
|
|
33
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
34
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
35
|
+
}
|
|
36
|
+
static CLOSE_ANIMATION_DURATION = 150;
|
|
37
|
+
get el() { return getElement(this); }
|
|
38
|
+
/** 선택된 시간 범위 [시작, 종료] (HH:mm) */
|
|
39
|
+
value = null;
|
|
40
|
+
/** 입력 필드 크기 */
|
|
41
|
+
size = 'sm';
|
|
42
|
+
/** 표시 타입: default(24시간) / midday(오전·오후) */
|
|
43
|
+
type = 'default';
|
|
44
|
+
/** 시간 미선택 시 표시할 placeholder */
|
|
45
|
+
placeholder = '00:00 ~ 23:59';
|
|
46
|
+
/** 비활성 상태 여부 */
|
|
47
|
+
disabled = false;
|
|
48
|
+
/** 값이 있을 때 지우기 버튼 표시 여부 */
|
|
49
|
+
clearable = false;
|
|
50
|
+
/** 오전/오후 선택 표시 여부. 지정하지 않으면 type="midday"일 때만 켜집니다. */
|
|
51
|
+
useMeridiem;
|
|
52
|
+
/** 분 증감 단위 */
|
|
53
|
+
minuteStep = 1;
|
|
54
|
+
/** 범위 순서 정책. strict는 시작 시간이 종료 시간보다 늦어지지 않도록 보정합니다. */
|
|
55
|
+
rangeOrder = 'strict';
|
|
56
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
57
|
+
width = '';
|
|
58
|
+
// sd-field 공통 props
|
|
59
|
+
/** 레이블 텍스트 */
|
|
60
|
+
label = '';
|
|
61
|
+
/** 레이블 너비 */
|
|
62
|
+
labelWidth = '';
|
|
63
|
+
/** 필드 우측 어드온 레이블 */
|
|
64
|
+
addonLabel = '';
|
|
65
|
+
/** 어드온 정렬 방향 */
|
|
66
|
+
addonAlign = 'start';
|
|
67
|
+
/** 필드 하단 힌트 텍스트 */
|
|
68
|
+
hint = '';
|
|
69
|
+
/** 에러 메시지 */
|
|
70
|
+
errorMessage = '';
|
|
71
|
+
/** 유효성 검사 규칙 목록 */
|
|
72
|
+
rules = [];
|
|
73
|
+
/** 에러 상태 여부 */
|
|
74
|
+
error = false;
|
|
75
|
+
/** 필드 상태 (없으면 error/rules 결과로 자동 결정) */
|
|
76
|
+
status;
|
|
77
|
+
/** 레이블 영역 아이콘 */
|
|
78
|
+
icon = undefined;
|
|
79
|
+
/** 레이블 툴팁 텍스트 */
|
|
80
|
+
labelTooltip = '';
|
|
81
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
82
|
+
labelTooltipProps = null;
|
|
83
|
+
isOpen = false;
|
|
84
|
+
isAnimatingOut = false;
|
|
85
|
+
focused = false;
|
|
86
|
+
hovered = false;
|
|
87
|
+
/** 시간 범위 선택 시 선택된 범위([시작, 종료])를 전달합니다. */
|
|
88
|
+
update;
|
|
89
|
+
/** 선택기 열림/닫힘 상태가 바뀔 때 발생합니다. */
|
|
90
|
+
dropDownShow;
|
|
91
|
+
triggerRef;
|
|
92
|
+
formField;
|
|
93
|
+
closeAnimationTimer;
|
|
94
|
+
/** 폼 연동용 name 속성 */
|
|
95
|
+
name = nanoid();
|
|
96
|
+
watchIsOpen(newValue) {
|
|
97
|
+
this.focused = newValue;
|
|
98
|
+
this.dropDownShow.emit({ isOpen: newValue });
|
|
99
|
+
}
|
|
100
|
+
valueChanged(newValue) {
|
|
101
|
+
const normalized = normalizeTimeRangeValue(newValue, this.rangeOrder);
|
|
102
|
+
if (normalized != null && JSON.stringify(normalized) !== JSON.stringify(newValue)) {
|
|
103
|
+
this.value = normalized;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
rangeOrderChanged() {
|
|
107
|
+
this.valueChanged(this.value);
|
|
108
|
+
}
|
|
109
|
+
/** 유효성 검사를 실행합니다. */
|
|
110
|
+
async sdValidate() {
|
|
111
|
+
return this.formField?.sdValidate();
|
|
112
|
+
}
|
|
113
|
+
/** 값과 유효성 상태를 초기화합니다. */
|
|
114
|
+
async sdReset() {
|
|
115
|
+
return this.formField?.sdReset();
|
|
116
|
+
}
|
|
117
|
+
/** 유효성 상태만 초기화합니다. */
|
|
118
|
+
async sdResetValidate() {
|
|
119
|
+
return this.formField?.sdResetValidation();
|
|
120
|
+
}
|
|
121
|
+
/** 입력 필드에 포커스를 이동합니다. */
|
|
122
|
+
async sdFocus() {
|
|
123
|
+
return this.formField?.sdFocus();
|
|
124
|
+
}
|
|
125
|
+
componentWillLoad() {
|
|
126
|
+
this.valueChanged(this.value);
|
|
127
|
+
}
|
|
128
|
+
disconnectedCallback() {
|
|
129
|
+
if (this.closeAnimationTimer)
|
|
130
|
+
clearTimeout(this.closeAnimationTimer);
|
|
131
|
+
}
|
|
132
|
+
closeDropdown() {
|
|
133
|
+
if (!this.isOpen)
|
|
134
|
+
return;
|
|
135
|
+
this.isOpen = false;
|
|
136
|
+
this.isAnimatingOut = true;
|
|
137
|
+
if (this.closeAnimationTimer)
|
|
138
|
+
clearTimeout(this.closeAnimationTimer);
|
|
139
|
+
this.closeAnimationTimer = setTimeout(() => {
|
|
140
|
+
this.isAnimatingOut = false;
|
|
141
|
+
}, SdTimeRangePicker.CLOSE_ANIMATION_DURATION);
|
|
142
|
+
}
|
|
143
|
+
handleTriggerClick = () => {
|
|
144
|
+
if (this.disabled)
|
|
145
|
+
return;
|
|
146
|
+
if (this.isOpen) {
|
|
147
|
+
this.closeDropdown();
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
if (this.closeAnimationTimer)
|
|
151
|
+
clearTimeout(this.closeAnimationTimer);
|
|
152
|
+
this.isAnimatingOut = false;
|
|
153
|
+
this.isOpen = true;
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
handleClear = (event) => {
|
|
157
|
+
event.stopPropagation();
|
|
158
|
+
this.value = null;
|
|
159
|
+
this.update.emit(null);
|
|
160
|
+
};
|
|
161
|
+
handleSelect = (event) => {
|
|
162
|
+
event.stopPropagation();
|
|
163
|
+
this.value = event.detail;
|
|
164
|
+
this.update.emit(this.value);
|
|
165
|
+
};
|
|
166
|
+
get effectiveUseMeridiem() {
|
|
167
|
+
return this.useMeridiem ?? this.type === 'midday';
|
|
168
|
+
}
|
|
169
|
+
get displayText() {
|
|
170
|
+
return formatTimeRangeDisplay(this.value, this.effectiveUseMeridiem ? 'midday' : 'default');
|
|
171
|
+
}
|
|
172
|
+
render() {
|
|
173
|
+
const sizeTokens = TIMEPICKER_SIZE_MAP[this.size] ?? TIMEPICKER_SIZE_MAP.sm;
|
|
174
|
+
const cssVars = {
|
|
175
|
+
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
176
|
+
'--sd-system-size-field-md-height': `${sizeTokens.height}px`,
|
|
177
|
+
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
178
|
+
'--sd-system-radius-field-md': `${sizeTokens.radius}px`,
|
|
179
|
+
'--sd-time-range-picker-min-width': `${sizeTokens.minWidth}px`,
|
|
180
|
+
'--sd-system-color-field-border-default': TIMEPICKER_COLORS.border.default,
|
|
181
|
+
'--sd-system-color-field-border-focus': TIMEPICKER_COLORS.border.focus,
|
|
182
|
+
'--sd-system-color-field-bg-default': TIMEPICKER_COLORS.bg.default,
|
|
183
|
+
};
|
|
184
|
+
return (h("sd-field", { key: 'b709c0fe129ab899b60aa75e41bc949cb82184d7', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, status: this.status, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '7fffb9bb91a0fa8a8fdce7704c47aea2de0b509a', class: "sd-time-range-picker", ref: el => {
|
|
185
|
+
this.triggerRef = el;
|
|
186
|
+
} }, h("sd-time-picker-trigger", { key: 'b1f42c77070fc46da93aa66e681ee9504c999d11', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, clearable: this.clearable, size: this.size, onSdTriggerClick: this.handleTriggerClick, onSdClear: this.handleClear })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'ad91d531c8326a7e977f8c576e1026c4d6d0115c', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-time-range-picker-selector", { key: '0df138447c01169ea3e0462d012c4917ac7f904b', value: this.value, useMeridiem: this.effectiveUseMeridiem, minuteStep: this.minuteStep, "range-order": this.rangeOrder, onSdUpdate: this.handleSelect })))));
|
|
187
|
+
}
|
|
188
|
+
static get watchers() { return {
|
|
189
|
+
"isOpen": [{
|
|
190
|
+
"watchIsOpen": 0
|
|
191
|
+
}],
|
|
192
|
+
"value": [{
|
|
193
|
+
"valueChanged": 0
|
|
194
|
+
}],
|
|
195
|
+
"rangeOrder": [{
|
|
196
|
+
"rangeOrderChanged": 0
|
|
197
|
+
}]
|
|
198
|
+
}; }
|
|
199
|
+
};
|
|
200
|
+
SdTimeRangePicker.style = sdTimeRangePickerCss();
|
|
201
|
+
|
|
202
|
+
export { SdTimeRangePicker as sd_time_range_picker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-CdvQqvIe.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_DURATION = 4000;
|
|
4
4
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -241,7 +241,7 @@ const SdToastContainer = class {
|
|
|
241
241
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
242
242
|
const indexMap = new Map();
|
|
243
243
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
244
|
-
return (h("div", { key: '
|
|
244
|
+
return (h("div", { key: '166ac21503b08853631fddaed047ab108a99570a', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
245
245
|
this.expanded = true;
|
|
246
246
|
this.pauseTimers();
|
|
247
247
|
}, onMouseLeave: () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-CdvQqvIe.js';
|
|
2
2
|
|
|
3
3
|
const toast = {
|
|
4
4
|
icon: "16",
|
|
@@ -91,12 +91,12 @@ const SdToast = class {
|
|
|
91
91
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
92
92
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
93
93
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
94
|
-
return (h("div", { key: '
|
|
94
|
+
return (h("div", { key: '5d7511c3fe5a5ef828986ff624af7c52ff087cfa', style: {
|
|
95
95
|
'--sd-toast-bg': typeConfig.bg,
|
|
96
96
|
'--sd-toast-text': typeConfig.content,
|
|
97
97
|
'--sd-toast-icon': iconColor,
|
|
98
98
|
'--sd-toast-link': linkColor,
|
|
99
|
-
} }, h("div", { key: '
|
|
99
|
+
} }, h("div", { key: 'c35b42d7ece2030ed0e27abb0059f9b09c4edb9e', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '015223ab3e9d4296d3782afc0c6cfd60e54289c7', class: "sd-toast__icon" }, h("sd-icon", { key: '6d8e5d73fc026df0d8f75439b926bd027ca6a008', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: 'b601081818d66910d9d2f9984bfb9a473237b065', class: "sd-toast__content" }, h("span", { key: '6a17766f5a337cbc85179dc310fb400186f35ac6', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '80abceec8d37905073c9a8e43fcdd1a78978b5f6', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: '212516f32c46938d405e68dbb156cf139b39ffd8', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: '9fd34f93f46d9a5a25ec52e0d164bbcaf4297e2e', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
SdToast.style = sdToastCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-CdvQqvIe.js';
|
|
2
2
|
|
|
3
3
|
const toggle = {
|
|
4
4
|
height: "28",
|
|
@@ -121,7 +121,7 @@ const SdToggle = class {
|
|
|
121
121
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
122
122
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
123
123
|
};
|
|
124
|
-
return (h("label", { key: '
|
|
124
|
+
return (h("label", { key: 'f78d58c01b943a5f22ace9cb14e50b0098cc8206', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '8b8d8e09b322a5093c57129f94c49f6951d78df7', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
SdToggle.style = sdToggleCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-CdvQqvIe.js';
|
|
2
2
|
|
|
3
3
|
const TooltipArrow = (props) => (h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
4
4
|
|
|
@@ -2,8 +2,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
export type CheckedType = boolean | any[] | null;
|
|
3
3
|
export declare class SdCheckbox {
|
|
4
4
|
el: HTMLElement;
|
|
5
|
-
/** 현재 선택 상태 또는 배열 형태의 값 */
|
|
6
|
-
value
|
|
5
|
+
/** 현재 선택 상태 또는 배열 형태의 값 (미지정 시 미선택 상태) */
|
|
6
|
+
value?: CheckedType;
|
|
7
7
|
/** 배열 모드에서의 개별 값 */
|
|
8
8
|
val?: any;
|
|
9
9
|
/** 비활성화 여부 */
|
|
@@ -11,7 +11,7 @@ export declare class SdChip implements ValidatableField {
|
|
|
11
11
|
error: boolean;
|
|
12
12
|
/** 비활성 상태 여부 */
|
|
13
13
|
disabled: boolean;
|
|
14
|
-
/** 인라인 편집 가능 여부 */
|
|
14
|
+
/** 인라인 편집 가능 여부 (기본값 false) */
|
|
15
15
|
editable: boolean;
|
|
16
16
|
/** 닫기 버튼 표시 여부 */
|
|
17
17
|
showRemove: boolean;
|
|
@@ -49,8 +49,8 @@ export declare class SdChip implements ValidatableField {
|
|
|
49
49
|
/** 네이티브 input 엘리먼트를 반환합니다. */
|
|
50
50
|
sdGetNativeElement(): Promise<HTMLSpanElement | null>;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
52
|
+
* editable이 명시적으로 true일 때만 편집 가능으로 처리한다 (기본값 false — RN SChip과 일치).
|
|
53
|
+
* SSR 등에서 editable이 undefined로 들어와도 편집 불가로 안전하게 처리된다.
|
|
54
54
|
*/
|
|
55
55
|
private get isEditable();
|
|
56
56
|
private enterEditMode;
|
|
@@ -27,6 +27,8 @@ export declare class SdChipInput {
|
|
|
27
27
|
useReset: boolean;
|
|
28
28
|
/** 최대 입력 가능한 칩 개수 (없으면 제한 없음) */
|
|
29
29
|
maxCount?: number;
|
|
30
|
+
/** 최대 개수·초기화 meta 위치 (end=우측 끝으로 정렬 / inline=콘텐츠에 이어서 배치) */
|
|
31
|
+
metaPlacement: 'end' | 'inline';
|
|
30
32
|
/** 중복 에러 메시지에 표시할 항목 이름 (없으면 기본 메시지 사용) */
|
|
31
33
|
duplicateLabel?: string;
|
|
32
34
|
/** 자동완성 후보 목록 */
|
|
@@ -37,8 +39,8 @@ export declare class SdChipInput {
|
|
|
37
39
|
recommendedItems: string[];
|
|
38
40
|
/** 추천 항목 로딩 중 여부 */
|
|
39
41
|
loadingRecommendedItems: boolean;
|
|
40
|
-
/** 자동완성
|
|
41
|
-
|
|
42
|
+
/** 드롭다운(자동완성) 최소 너비 (숫자면 px, 문자열이면 그대로 적용. 기본값 200) */
|
|
43
|
+
dropdownMinWidth?: string | number;
|
|
42
44
|
/** 레이블 텍스트 */
|
|
43
45
|
label?: string;
|
|
44
46
|
/** 레이블 너비 */
|
|
@@ -6,11 +6,19 @@ export declare class SdDateRangePickerCalendar {
|
|
|
6
6
|
selectable?: [string, string];
|
|
7
7
|
/** 최대 선택 가능 일 수 */
|
|
8
8
|
maxRange?: number;
|
|
9
|
+
/** 시간(시:분) 선택 푸터 사용 여부 */
|
|
10
|
+
useTimePicker: boolean;
|
|
9
11
|
private currentYear;
|
|
10
12
|
private currentMonth;
|
|
11
13
|
private pendingStart;
|
|
12
14
|
private hoverDate;
|
|
13
15
|
private displayValue;
|
|
16
|
+
private startHour;
|
|
17
|
+
private startMinute;
|
|
18
|
+
private endHour;
|
|
19
|
+
private endMinute;
|
|
20
|
+
/** 직접 emit한 값이 value prop으로 되돌아오는 에코를 구분해 시간 입력 clobber를 막는다 */
|
|
21
|
+
private lastEmitted;
|
|
14
22
|
/** 날짜 범위 선택 시 발생합니다. */
|
|
15
23
|
select: EventEmitter<[string, string]>;
|
|
16
24
|
/** 달력 뷰가 변경될 때 발생합니다. */
|
|
@@ -22,6 +30,8 @@ export declare class SdDateRangePickerCalendar {
|
|
|
22
30
|
componentWillLoad(): void;
|
|
23
31
|
handleValueChange(): void;
|
|
24
32
|
private syncFromValue;
|
|
33
|
+
/** "YYYY-MM-DD HH:mm" 또는 "YYYY-MM-DD"를 날짜/시/분으로 분리한다 */
|
|
34
|
+
private splitDateTime;
|
|
25
35
|
private get rightYear();
|
|
26
36
|
private get rightMonth();
|
|
27
37
|
private formatDate;
|
|
@@ -34,10 +44,20 @@ export declare class SdDateRangePickerCalendar {
|
|
|
34
44
|
private goToday;
|
|
35
45
|
private isDisabled;
|
|
36
46
|
private handleDayClick;
|
|
47
|
+
/** 날짜 범위(+ useTimePicker면 시:분)를 결합해 sdSelect로 emit한다 */
|
|
48
|
+
private emitRange;
|
|
49
|
+
private pad;
|
|
50
|
+
/** 시:분 입력 — 숫자만/2자리로 제한하고 범위(시 0~23, 분 0~59)로 클램프한다 */
|
|
51
|
+
private handleTimeInput;
|
|
52
|
+
private handleTimeBlur;
|
|
53
|
+
private getTimePart;
|
|
54
|
+
private setTimePart;
|
|
37
55
|
private handleDayHover;
|
|
38
56
|
private getRangeState;
|
|
39
57
|
private renderHeader;
|
|
40
58
|
private renderYearNav;
|
|
41
59
|
private renderPanel;
|
|
60
|
+
private renderTimeSection;
|
|
61
|
+
private renderTimeFooter;
|
|
42
62
|
render(): any;
|
|
43
63
|
}
|
|
@@ -8,3 +8,28 @@ export declare const RANGE_LAYOUT: {
|
|
|
8
8
|
panelGap: string;
|
|
9
9
|
divider: string;
|
|
10
10
|
};
|
|
11
|
+
/** 시간(시:분) 선택 푸터 레이아웃 토큰 */
|
|
12
|
+
export declare const TIME_LAYOUT: {
|
|
13
|
+
bgDefault: string;
|
|
14
|
+
bgSelected: string;
|
|
15
|
+
dateLabel: string;
|
|
16
|
+
dateUnit: string;
|
|
17
|
+
dateGap: string;
|
|
18
|
+
radius: string;
|
|
19
|
+
paddingX: string;
|
|
20
|
+
paddingY: string;
|
|
21
|
+
gap: string;
|
|
22
|
+
sectionGap: string;
|
|
23
|
+
unitGap: string;
|
|
24
|
+
fontSize: string;
|
|
25
|
+
lineHeight: string;
|
|
26
|
+
fontWeight: string;
|
|
27
|
+
input: {
|
|
28
|
+
height: string;
|
|
29
|
+
radius: string;
|
|
30
|
+
border: string;
|
|
31
|
+
borderFocus: string;
|
|
32
|
+
text: string;
|
|
33
|
+
placeholder: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -17,6 +17,11 @@ export declare class SdDateRangePicker {
|
|
|
17
17
|
selectable?: [string, string];
|
|
18
18
|
/** 최대 선택 가능한 날짜 범위 (일 단위) */
|
|
19
19
|
maxRange?: number;
|
|
20
|
+
/**
|
|
21
|
+
* 시간(시:분) 선택 푸터 사용 여부.
|
|
22
|
+
* true이면 value는 "YYYY-MM-DD HH:mm" 형식이 되고, 캘린더 하단에 시작·종료 시간 입력이 표시됩니다.
|
|
23
|
+
*/
|
|
24
|
+
useTimePicker: boolean;
|
|
20
25
|
/** 비활성 상태 여부 */
|
|
21
26
|
disabled: boolean;
|
|
22
27
|
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
@@ -37,6 +42,8 @@ export declare class SdDateRangePicker {
|
|
|
37
42
|
rules?: Rule[];
|
|
38
43
|
/** 에러 상태 여부 */
|
|
39
44
|
error: boolean;
|
|
45
|
+
/** 필드 상태 (없으면 error/rules 결과로 자동 결정) */
|
|
46
|
+
status?: 'default' | 'pass' | 'error';
|
|
40
47
|
/** 레이블 영역 아이콘 */
|
|
41
48
|
icon?: IconProps;
|
|
42
49
|
/** 레이블 툴팁 텍스트 */
|
|
@@ -71,6 +78,8 @@ export declare class SdDateRangePicker {
|
|
|
71
78
|
private handleSelect;
|
|
72
79
|
private handleViewChange;
|
|
73
80
|
private get displayText();
|
|
81
|
+
private static readonly DEFAULT_PLACEHOLDER;
|
|
82
|
+
private get resolvedPlaceholder();
|
|
74
83
|
disconnectedCallback(): void;
|
|
75
84
|
render(): any;
|
|
76
85
|
}
|
|
@@ -37,6 +37,13 @@ export declare class SdField implements ValidatableField {
|
|
|
37
37
|
label: string;
|
|
38
38
|
/** 레이블 너비 */
|
|
39
39
|
labelWidth: string | number;
|
|
40
|
+
/**
|
|
41
|
+
* 레이블 박스 높이 (숫자면 px). 미지정 시 size별 기본값 사용.
|
|
42
|
+
* multiline 등 컨트롤 박스가 커질 때 레이블을 첫 행에 맞추기 위해 사용한다.
|
|
43
|
+
*/
|
|
44
|
+
labelHeight?: number | string;
|
|
45
|
+
/** 멀티라인 컨트롤 — 컨트롤 높이를 고정하지 않고 min-height만 적용한다. */
|
|
46
|
+
multiline: boolean;
|
|
40
47
|
/** 필드 우측 어드온 레이블 */
|
|
41
48
|
addonLabel: string;
|
|
42
49
|
/** 어드온 정렬 방향 */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** 기본(sm) 레이아웃 — 하위호환용 단일 export */
|
|
1
2
|
export declare const FILE_PICKER_LAYOUT: {
|
|
2
3
|
height: string;
|
|
3
4
|
paddingX: string;
|
|
@@ -10,6 +11,33 @@ export declare const FILE_PICKER_LAYOUT: {
|
|
|
10
11
|
iconSize: string;
|
|
11
12
|
contentsGap: string;
|
|
12
13
|
};
|
|
14
|
+
/** size별 레이아웃 맵 */
|
|
15
|
+
export declare const FILE_PICKER_LAYOUTS: {
|
|
16
|
+
readonly sm: {
|
|
17
|
+
height: string;
|
|
18
|
+
paddingX: string;
|
|
19
|
+
gap: string;
|
|
20
|
+
radius: string;
|
|
21
|
+
borderWidth: string;
|
|
22
|
+
fontSize: string;
|
|
23
|
+
lineHeight: string;
|
|
24
|
+
fontWeight: string;
|
|
25
|
+
iconSize: string;
|
|
26
|
+
contentsGap: string;
|
|
27
|
+
};
|
|
28
|
+
readonly md: {
|
|
29
|
+
height: string;
|
|
30
|
+
paddingX: string;
|
|
31
|
+
gap: string;
|
|
32
|
+
radius: string;
|
|
33
|
+
borderWidth: string;
|
|
34
|
+
fontSize: string;
|
|
35
|
+
lineHeight: string;
|
|
36
|
+
fontWeight: string;
|
|
37
|
+
iconSize: string;
|
|
38
|
+
contentsGap: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
13
41
|
export declare const FILE_PICKER_COLORS: {
|
|
14
42
|
border: {
|
|
15
43
|
default: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Rule } from '../../types/form';
|
|
3
3
|
import { SdTooltipProps } from '../sd-tooltip/sd-tooltip.config';
|
|
4
|
-
import { type FieldAddonAlign } from '../sd-field/sd-field.config';
|
|
4
|
+
import { type FieldAddonAlign, type FieldSize } from '../sd-field/sd-field.config';
|
|
5
5
|
export declare class SdFilePicker implements ComponentInterface {
|
|
6
6
|
el: HTMLElement;
|
|
7
7
|
/** 선택된 파일 값 */
|
|
@@ -24,6 +24,8 @@ export declare class SdFilePicker implements ComponentInterface {
|
|
|
24
24
|
maxTotalSize?: number | string;
|
|
25
25
|
/** 최대 파일 개수 */
|
|
26
26
|
maxFiles?: number | string;
|
|
27
|
+
/** 필드 크기 */
|
|
28
|
+
size: FieldSize;
|
|
27
29
|
/** 폼 연동용 name 속성 */
|
|
28
30
|
name: string;
|
|
29
31
|
/** 레이블 텍스트 */
|
|
@@ -9,6 +9,11 @@ export declare class SdGhostButton {
|
|
|
9
9
|
intent: GhostButtonIntent;
|
|
10
10
|
/** 스크린리더용 접근성 레이블 */
|
|
11
11
|
ariaLabel: string;
|
|
12
|
+
/**
|
|
13
|
+
* 토글 버튼일 때 눌림 상태 → `aria-pressed`로 반영. 미지정 시 속성 자체를 내보내지 않는다.
|
|
14
|
+
* (DOM `Element.ariaPressed`(문자열 예약 속성)와 충돌하므로 prop 이름은 `pressed`)
|
|
15
|
+
*/
|
|
16
|
+
pressed?: boolean;
|
|
12
17
|
/** 호버 시 표시할 툴팁 텍스트 */
|
|
13
18
|
tooltipText?: string;
|
|
14
19
|
/** 비활성 상태 여부 */
|
|
@@ -8,7 +8,7 @@ export declare class SdInput {
|
|
|
8
8
|
/** 입력 값 */
|
|
9
9
|
value?: string | number | null;
|
|
10
10
|
/** 입력 타입 */
|
|
11
|
-
type: 'text' | 'password' | 'email';
|
|
11
|
+
type: 'text' | 'password' | 'email' | 'number' | 'tel' | 'search' | 'url';
|
|
12
12
|
/** 입력 크기 */
|
|
13
13
|
size: InputSize;
|
|
14
14
|
/** 필드 우측 어드온 레이블 */
|
|
@@ -17,6 +17,8 @@ export declare class SdNumberInput {
|
|
|
17
17
|
useButton: boolean;
|
|
18
18
|
/** 소수점 입력 허용 여부 */
|
|
19
19
|
useDecimal: boolean;
|
|
20
|
+
/** 소수점 이하 최대 자리수 (useDecimal일 때만 적용, 초과 입력한 소수부는 잘라냄) */
|
|
21
|
+
maxDecimalLength?: number;
|
|
20
22
|
/** 입력 값 */
|
|
21
23
|
value?: string | number | null;
|
|
22
24
|
/** 레이블 텍스트 */
|
|
@@ -81,6 +83,12 @@ export declare class SdNumberInput {
|
|
|
81
83
|
blur?: EventEmitter<Event>;
|
|
82
84
|
private toNumber;
|
|
83
85
|
private formatWithCommas;
|
|
86
|
+
/** useDecimal이면서 유효한 maxDecimalLength가 있을 때만 소수점 이하 제한 자리수를 반환합니다. */
|
|
87
|
+
private getDecimalLimit;
|
|
88
|
+
/** 소수부를 제한 자리수로 잘라낸 문자열을 반환합니다(반올림하지 않고 잘라냄). */
|
|
89
|
+
private truncateToDecimalLimit;
|
|
90
|
+
/** 숫자값의 소수부를 제한 자리수로 잘라냅니다(제한이 없으면 원본 그대로). */
|
|
91
|
+
private applyDecimalLimit;
|
|
84
92
|
private parseInput;
|
|
85
93
|
private clampMinMax;
|
|
86
94
|
private updateDisplay;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ButtonName } from '../sd-button/sd-button.config';
|
|
2
|
+
/** 팝오버 색상 타입 (default=다크 배경 / danger·warning·accent=라이트 배경) */
|
|
3
|
+
export type PopoverType = 'default' | 'danger' | 'warning' | 'accent';
|
|
4
|
+
/** 제목-아이콘 간격 */
|
|
5
|
+
export declare const POPOVER_TITLE_GAP: string;
|
|
6
|
+
/** 제목 좌측 아이콘 크기 */
|
|
7
|
+
export declare const POPOVER_TITLE_ICON_SIZE: string;
|
|
8
|
+
interface PopoverTypeStyle {
|
|
9
|
+
bg: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
subAction: string;
|
|
13
|
+
/** 하단 우측 버튼 프리셋 (button.name 미지정 시 기본값) */
|
|
14
|
+
buttonName: ButtonName;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* popoverType별 색상·버튼 매핑.
|
|
18
|
+
* - default·accent: 하단 버튼 primary(solid) / danger: danger outline / warning: neutral outline
|
|
19
|
+
* - default: 다크 배경 + 흰색 텍스트 / danger·warning·accent: 라이트 배경 + 타입 색상 제목 + light 계열 본문·링크 색상
|
|
20
|
+
*/
|
|
21
|
+
export declare const POPOVER_TYPE_CONFIG: Record<PopoverType, PopoverTypeStyle>;
|
|
22
|
+
export {};
|