@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,204 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-Cg7X15Hq.js');
|
|
4
|
+
var index$1 = require('./index-BUvXpPc3.js');
|
|
5
|
+
var sdTimePicker_config = require('./sd-time-picker.config-C7REB08L.js');
|
|
6
|
+
require('./component.field-C7it8cZm.js');
|
|
7
|
+
|
|
8
|
+
function getTimeMinutes(value) {
|
|
9
|
+
const { hour, minute } = sdTimePicker_config.parseTimeValue(value);
|
|
10
|
+
return hour * 60 + minute;
|
|
11
|
+
}
|
|
12
|
+
function normalizeTimeRangeValue(value, rangeOrder = 'strict') {
|
|
13
|
+
if (value == null)
|
|
14
|
+
return null;
|
|
15
|
+
const normalized = value.map(item => {
|
|
16
|
+
const parsed = sdTimePicker_config.parseTimeValue(item);
|
|
17
|
+
return sdTimePicker_config.formatTimeValue(parsed.hour, parsed.minute);
|
|
18
|
+
});
|
|
19
|
+
if (rangeOrder === 'strict' && getTimeMinutes(normalized[0]) > getTimeMinutes(normalized[1])) {
|
|
20
|
+
return [normalized[0], normalized[0]];
|
|
21
|
+
}
|
|
22
|
+
return normalized;
|
|
23
|
+
}
|
|
24
|
+
function formatTimeRangeDisplay(value, type) {
|
|
25
|
+
if (value == null || value[0] === '' || value[1] === '')
|
|
26
|
+
return '';
|
|
27
|
+
return `${sdTimePicker_config.formatTimeDisplay(value[0], type)} ~ ${sdTimePicker_config.formatTimeDisplay(value[1], type)}`;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
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%}`;
|
|
31
|
+
|
|
32
|
+
const SdTimeRangePicker = class {
|
|
33
|
+
constructor(hostRef) {
|
|
34
|
+
index.registerInstance(this, hostRef);
|
|
35
|
+
this.update = index.createEvent(this, "sdUpdate", 7);
|
|
36
|
+
this.dropDownShow = index.createEvent(this, "sdDropDownShow", 7);
|
|
37
|
+
}
|
|
38
|
+
static CLOSE_ANIMATION_DURATION = 150;
|
|
39
|
+
get el() { return index.getElement(this); }
|
|
40
|
+
/** 선택된 시간 범위 [시작, 종료] (HH:mm) */
|
|
41
|
+
value = null;
|
|
42
|
+
/** 입력 필드 크기 */
|
|
43
|
+
size = 'sm';
|
|
44
|
+
/** 표시 타입: default(24시간) / midday(오전·오후) */
|
|
45
|
+
type = 'default';
|
|
46
|
+
/** 시간 미선택 시 표시할 placeholder */
|
|
47
|
+
placeholder = '00:00 ~ 23:59';
|
|
48
|
+
/** 비활성 상태 여부 */
|
|
49
|
+
disabled = false;
|
|
50
|
+
/** 값이 있을 때 지우기 버튼 표시 여부 */
|
|
51
|
+
clearable = false;
|
|
52
|
+
/** 오전/오후 선택 표시 여부. 지정하지 않으면 type="midday"일 때만 켜집니다. */
|
|
53
|
+
useMeridiem;
|
|
54
|
+
/** 분 증감 단위 */
|
|
55
|
+
minuteStep = 1;
|
|
56
|
+
/** 범위 순서 정책. strict는 시작 시간이 종료 시간보다 늦어지지 않도록 보정합니다. */
|
|
57
|
+
rangeOrder = 'strict';
|
|
58
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
59
|
+
width = '';
|
|
60
|
+
// sd-field 공통 props
|
|
61
|
+
/** 레이블 텍스트 */
|
|
62
|
+
label = '';
|
|
63
|
+
/** 레이블 너비 */
|
|
64
|
+
labelWidth = '';
|
|
65
|
+
/** 필드 우측 어드온 레이블 */
|
|
66
|
+
addonLabel = '';
|
|
67
|
+
/** 어드온 정렬 방향 */
|
|
68
|
+
addonAlign = 'start';
|
|
69
|
+
/** 필드 하단 힌트 텍스트 */
|
|
70
|
+
hint = '';
|
|
71
|
+
/** 에러 메시지 */
|
|
72
|
+
errorMessage = '';
|
|
73
|
+
/** 유효성 검사 규칙 목록 */
|
|
74
|
+
rules = [];
|
|
75
|
+
/** 에러 상태 여부 */
|
|
76
|
+
error = false;
|
|
77
|
+
/** 필드 상태 (없으면 error/rules 결과로 자동 결정) */
|
|
78
|
+
status;
|
|
79
|
+
/** 레이블 영역 아이콘 */
|
|
80
|
+
icon = undefined;
|
|
81
|
+
/** 레이블 툴팁 텍스트 */
|
|
82
|
+
labelTooltip = '';
|
|
83
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
84
|
+
labelTooltipProps = null;
|
|
85
|
+
isOpen = false;
|
|
86
|
+
isAnimatingOut = false;
|
|
87
|
+
focused = false;
|
|
88
|
+
hovered = false;
|
|
89
|
+
/** 시간 범위 선택 시 선택된 범위([시작, 종료])를 전달합니다. */
|
|
90
|
+
update;
|
|
91
|
+
/** 선택기 열림/닫힘 상태가 바뀔 때 발생합니다. */
|
|
92
|
+
dropDownShow;
|
|
93
|
+
triggerRef;
|
|
94
|
+
formField;
|
|
95
|
+
closeAnimationTimer;
|
|
96
|
+
/** 폼 연동용 name 속성 */
|
|
97
|
+
name = index$1.nanoid();
|
|
98
|
+
watchIsOpen(newValue) {
|
|
99
|
+
this.focused = newValue;
|
|
100
|
+
this.dropDownShow.emit({ isOpen: newValue });
|
|
101
|
+
}
|
|
102
|
+
valueChanged(newValue) {
|
|
103
|
+
const normalized = normalizeTimeRangeValue(newValue, this.rangeOrder);
|
|
104
|
+
if (normalized != null && JSON.stringify(normalized) !== JSON.stringify(newValue)) {
|
|
105
|
+
this.value = normalized;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
rangeOrderChanged() {
|
|
109
|
+
this.valueChanged(this.value);
|
|
110
|
+
}
|
|
111
|
+
/** 유효성 검사를 실행합니다. */
|
|
112
|
+
async sdValidate() {
|
|
113
|
+
return this.formField?.sdValidate();
|
|
114
|
+
}
|
|
115
|
+
/** 값과 유효성 상태를 초기화합니다. */
|
|
116
|
+
async sdReset() {
|
|
117
|
+
return this.formField?.sdReset();
|
|
118
|
+
}
|
|
119
|
+
/** 유효성 상태만 초기화합니다. */
|
|
120
|
+
async sdResetValidate() {
|
|
121
|
+
return this.formField?.sdResetValidation();
|
|
122
|
+
}
|
|
123
|
+
/** 입력 필드에 포커스를 이동합니다. */
|
|
124
|
+
async sdFocus() {
|
|
125
|
+
return this.formField?.sdFocus();
|
|
126
|
+
}
|
|
127
|
+
componentWillLoad() {
|
|
128
|
+
this.valueChanged(this.value);
|
|
129
|
+
}
|
|
130
|
+
disconnectedCallback() {
|
|
131
|
+
if (this.closeAnimationTimer)
|
|
132
|
+
clearTimeout(this.closeAnimationTimer);
|
|
133
|
+
}
|
|
134
|
+
closeDropdown() {
|
|
135
|
+
if (!this.isOpen)
|
|
136
|
+
return;
|
|
137
|
+
this.isOpen = false;
|
|
138
|
+
this.isAnimatingOut = true;
|
|
139
|
+
if (this.closeAnimationTimer)
|
|
140
|
+
clearTimeout(this.closeAnimationTimer);
|
|
141
|
+
this.closeAnimationTimer = setTimeout(() => {
|
|
142
|
+
this.isAnimatingOut = false;
|
|
143
|
+
}, SdTimeRangePicker.CLOSE_ANIMATION_DURATION);
|
|
144
|
+
}
|
|
145
|
+
handleTriggerClick = () => {
|
|
146
|
+
if (this.disabled)
|
|
147
|
+
return;
|
|
148
|
+
if (this.isOpen) {
|
|
149
|
+
this.closeDropdown();
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
if (this.closeAnimationTimer)
|
|
153
|
+
clearTimeout(this.closeAnimationTimer);
|
|
154
|
+
this.isAnimatingOut = false;
|
|
155
|
+
this.isOpen = true;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
handleClear = (event) => {
|
|
159
|
+
event.stopPropagation();
|
|
160
|
+
this.value = null;
|
|
161
|
+
this.update.emit(null);
|
|
162
|
+
};
|
|
163
|
+
handleSelect = (event) => {
|
|
164
|
+
event.stopPropagation();
|
|
165
|
+
this.value = event.detail;
|
|
166
|
+
this.update.emit(this.value);
|
|
167
|
+
};
|
|
168
|
+
get effectiveUseMeridiem() {
|
|
169
|
+
return this.useMeridiem ?? this.type === 'midday';
|
|
170
|
+
}
|
|
171
|
+
get displayText() {
|
|
172
|
+
return formatTimeRangeDisplay(this.value, this.effectiveUseMeridiem ? 'midday' : 'default');
|
|
173
|
+
}
|
|
174
|
+
render() {
|
|
175
|
+
const sizeTokens = sdTimePicker_config.TIMEPICKER_SIZE_MAP[this.size] ?? sdTimePicker_config.TIMEPICKER_SIZE_MAP.sm;
|
|
176
|
+
const cssVars = {
|
|
177
|
+
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
178
|
+
'--sd-system-size-field-md-height': `${sizeTokens.height}px`,
|
|
179
|
+
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
180
|
+
'--sd-system-radius-field-md': `${sizeTokens.radius}px`,
|
|
181
|
+
'--sd-time-range-picker-min-width': `${sizeTokens.minWidth}px`,
|
|
182
|
+
'--sd-system-color-field-border-default': sdTimePicker_config.TIMEPICKER_COLORS.border.default,
|
|
183
|
+
'--sd-system-color-field-border-focus': sdTimePicker_config.TIMEPICKER_COLORS.border.focus,
|
|
184
|
+
'--sd-system-color-field-bg-default': sdTimePicker_config.TIMEPICKER_COLORS.bg.default,
|
|
185
|
+
};
|
|
186
|
+
return (index.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 }, index.h("div", { key: '7fffb9bb91a0fa8a8fdce7704c47aea2de0b509a', class: "sd-time-range-picker", ref: el => {
|
|
187
|
+
this.triggerRef = el;
|
|
188
|
+
} }, index.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) && (index.h("sd-portal", { key: 'ad91d531c8326a7e977f8c576e1026c4d6d0115c', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, index.h("sd-time-range-picker-selector", { key: '0df138447c01169ea3e0462d012c4917ac7f904b', value: this.value, useMeridiem: this.effectiveUseMeridiem, minuteStep: this.minuteStep, "range-order": this.rangeOrder, onSdUpdate: this.handleSelect })))));
|
|
189
|
+
}
|
|
190
|
+
static get watchers() { return {
|
|
191
|
+
"isOpen": [{
|
|
192
|
+
"watchIsOpen": 0
|
|
193
|
+
}],
|
|
194
|
+
"value": [{
|
|
195
|
+
"valueChanged": 0
|
|
196
|
+
}],
|
|
197
|
+
"rangeOrder": [{
|
|
198
|
+
"rangeOrderChanged": 0
|
|
199
|
+
}]
|
|
200
|
+
}; }
|
|
201
|
+
};
|
|
202
|
+
SdTimeRangePicker.style = sdTimeRangePickerCss();
|
|
203
|
+
|
|
204
|
+
exports.sd_time_range_picker = SdTimeRangePicker;
|
|
@@ -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 DEFAULT_DURATION = 4000;
|
|
6
6
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -243,7 +243,7 @@ const SdToastContainer = class {
|
|
|
243
243
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
244
244
|
const indexMap = new Map();
|
|
245
245
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
246
|
-
return (index.h("div", { key: '
|
|
246
|
+
return (index.h("div", { key: '166ac21503b08853631fddaed047ab108a99570a', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
247
247
|
this.expanded = true;
|
|
248
248
|
this.pauseTimers();
|
|
249
249
|
}, onMouseLeave: () => {
|
|
@@ -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 toast = {
|
|
6
6
|
icon: "16",
|
|
@@ -93,12 +93,12 @@ const SdToast = class {
|
|
|
93
93
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
94
94
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
95
95
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
96
|
-
return (index.h("div", { key: '
|
|
96
|
+
return (index.h("div", { key: '5d7511c3fe5a5ef828986ff624af7c52ff087cfa', style: {
|
|
97
97
|
'--sd-toast-bg': typeConfig.bg,
|
|
98
98
|
'--sd-toast-text': typeConfig.content,
|
|
99
99
|
'--sd-toast-icon': iconColor,
|
|
100
100
|
'--sd-toast-link': linkColor,
|
|
101
|
-
} }, index.h("div", { key: '
|
|
101
|
+
} }, index.h("div", { key: 'c35b42d7ece2030ed0e27abb0059f9b09c4edb9e', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '015223ab3e9d4296d3782afc0c6cfd60e54289c7', class: "sd-toast__icon" }, index.h("sd-icon", { key: '6d8e5d73fc026df0d8f75439b926bd027ca6a008', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: 'b601081818d66910d9d2f9984bfb9a473237b065', class: "sd-toast__content" }, index.h("span", { key: '6a17766f5a337cbc85179dc310fb400186f35ac6', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '80abceec8d37905073c9a8e43fcdd1a78978b5f6', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '212516f32c46938d405e68dbb156cf139b39ffd8', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '9fd34f93f46d9a5a25ec52e0d164bbcaf4297e2e', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
SdToast.style = sdToastCss();
|
|
@@ -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 toggle = {
|
|
6
6
|
height: "28",
|
|
@@ -123,7 +123,7 @@ const SdToggle = class {
|
|
|
123
123
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
124
124
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
125
125
|
};
|
|
126
|
-
return (index.h("label", { key: '
|
|
126
|
+
return (index.h("label", { key: 'f78d58c01b943a5f22ace9cb14e50b0098cc8206', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '8b8d8e09b322a5093c57129f94c49f6951d78df7', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
129
|
SdToggle.style = sdToggleCss();
|
|
@@ -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 TooltipArrow = (props) => (index.h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, index.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" })));
|
|
6
6
|
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var sdDatePicker_config = require('./sd-date-picker.config-CgyNxY03.js');
|
|
4
|
+
|
|
5
|
+
const CALENDAR_LAYOUT = {
|
|
6
|
+
bg: sdDatePicker_config.datepickerTokens.datepicker.calendar.bg,
|
|
7
|
+
paddingXY: sdDatePicker_config.datepickerTokens.datepicker.calendar.paddingXY,
|
|
8
|
+
gap: sdDatePicker_config.datepickerTokens.datepicker.calendar.gap,
|
|
9
|
+
radius: sdDatePicker_config.datepickerTokens.datepicker.calendar.radius,
|
|
10
|
+
header: {
|
|
11
|
+
gap: sdDatePicker_config.datepickerTokens.datepicker.calendar.header.gap,
|
|
12
|
+
divider: sdDatePicker_config.datepickerTokens.datepicker.calendar.header.divider,
|
|
13
|
+
fontSize: sdDatePicker_config.datepickerTokens.datepicker.calendar.header.typography.fontSize,
|
|
14
|
+
lineHeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.header.typography.lineHeight,
|
|
15
|
+
fontWeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.header.typography.fontWeight,
|
|
16
|
+
},
|
|
17
|
+
week: {
|
|
18
|
+
fontSize: sdDatePicker_config.datepickerTokens.datepicker.calendar.week.typography.fontSize,
|
|
19
|
+
lineHeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.week.typography.lineHeight,
|
|
20
|
+
fontWeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.week.typography.fontWeight,
|
|
21
|
+
color: sdDatePicker_config.datepickerTokens.datepicker.calendar.week.color,
|
|
22
|
+
},
|
|
23
|
+
grid: {
|
|
24
|
+
rowGap: sdDatePicker_config.datepickerTokens.datepicker.calendar.grid.rowGap,
|
|
25
|
+
},
|
|
26
|
+
day: {
|
|
27
|
+
size: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.width,
|
|
28
|
+
circleSize: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.circle.size,
|
|
29
|
+
circleRadius: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.circle.radius,
|
|
30
|
+
defaultText: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.default.text,
|
|
31
|
+
hoverText: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.hover.text,
|
|
32
|
+
hoverBorder: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.hover.border,
|
|
33
|
+
selectBg: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.select.bg,
|
|
34
|
+
selectText: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.select.text,
|
|
35
|
+
disabledText: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.disabled.text,
|
|
36
|
+
fontSize: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.typography.default.fontSize,
|
|
37
|
+
lineHeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.typography.default.lineHeight,
|
|
38
|
+
fontWeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.typography.default.fontWeight,
|
|
39
|
+
boldFontWeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.typography.bold.fontWeight,
|
|
40
|
+
dot: {
|
|
41
|
+
size: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.dot.size,
|
|
42
|
+
gap: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.dot.gap,
|
|
43
|
+
paddingY: sdDatePicker_config.datepickerTokens.datepicker.calendar.day.dot.paddingY,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
legend: {
|
|
47
|
+
fontSize: sdDatePicker_config.datepickerTokens.datepicker.calendar.legend.typography.fontSize,
|
|
48
|
+
lineHeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.legend.typography.lineHeight,
|
|
49
|
+
fontWeight: sdDatePicker_config.datepickerTokens.datepicker.calendar.legend.typography.fontWeight,
|
|
50
|
+
gap: sdDatePicker_config.datepickerTokens.datepicker.calendar.legend.gap,
|
|
51
|
+
groupGap: sdDatePicker_config.datepickerTokens.datepicker.calendar.legend.group.gap,
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
const WEEK_LABELS = ['일', '월', '화', '수', '목', '금', '토'];
|
|
55
|
+
|
|
56
|
+
const daysInMonth = (date) => {
|
|
57
|
+
const year = Number(date.split('-')[0]);
|
|
58
|
+
const month = Number(date.split('-')[1]);
|
|
59
|
+
const daysInMonth = new Date(year, month, 0).getDate(); // month에 0을 전달하면 전달의 마지막 날짜를 반환
|
|
60
|
+
return Array.from({ length: daysInMonth }, (_, i) => i + 1);
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const getToday = () => {
|
|
64
|
+
const today = new Date();
|
|
65
|
+
const year = today.getFullYear();
|
|
66
|
+
const month = String(today.getMonth() + 1).padStart(2, '0');
|
|
67
|
+
const day = String(today.getDate()).padStart(2, '0');
|
|
68
|
+
return `${year}-${month}-${day}`;
|
|
69
|
+
};
|
|
70
|
+
const today = getToday();
|
|
71
|
+
|
|
72
|
+
const useDatePicker = () => {
|
|
73
|
+
const formatDate = (year, month, day) => {
|
|
74
|
+
return `${year}-${String(month).padStart(2, '0')}-${String(day).padStart(2, '0')}`;
|
|
75
|
+
};
|
|
76
|
+
const createCalendar = (year, month) => {
|
|
77
|
+
const days = daysInMonth(`${year}-${String(month).padStart(2, '0')}-01`);
|
|
78
|
+
const firstDayIndex = new Date(year, month - 1, 1).getDay();
|
|
79
|
+
const prevMonthDays = Array.from({ length: firstDayIndex });
|
|
80
|
+
const remainingDays = (7 - ((days.length + firstDayIndex) % 7)) % 7;
|
|
81
|
+
const afterMonthDays = Array.from({ length: remainingDays });
|
|
82
|
+
return { days, prevMonthDays, afterMonthDays };
|
|
83
|
+
};
|
|
84
|
+
const calculateYearMonth = (year, month, type) => {
|
|
85
|
+
let newYear = year;
|
|
86
|
+
let newMonth = type === 'prev' ? month - 1 : month + 1;
|
|
87
|
+
if (newMonth < 1) {
|
|
88
|
+
newYear = year - 1;
|
|
89
|
+
newMonth = 12;
|
|
90
|
+
}
|
|
91
|
+
else if (newMonth > 12) {
|
|
92
|
+
newYear = year + 1;
|
|
93
|
+
newMonth = 1;
|
|
94
|
+
}
|
|
95
|
+
return { newYear, newMonth };
|
|
96
|
+
};
|
|
97
|
+
return { formatDate, createCalendar, calculateYearMonth };
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
exports.CALENDAR_LAYOUT = CALENDAR_LAYOUT;
|
|
101
|
+
exports.WEEK_LABELS = WEEK_LABELS;
|
|
102
|
+
exports.today = today;
|
|
103
|
+
exports.useDatePicker = useDatePicker;
|
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
"components/sd-date-range-picker/sd-date-range-picker.js",
|
|
6
6
|
"components/sd-form/sd-form.js",
|
|
7
7
|
"components/sd-guide/sd-guide.js",
|
|
8
|
-
"components/sd-button/sd-button.js",
|
|
9
|
-
"components/sd-text-link/sd-text-link.js",
|
|
10
|
-
"components/sd-popover/sd-popover.js",
|
|
11
8
|
"components/sd-radio/sd-radio.js",
|
|
12
9
|
"components/sd-radio-button/sd-radio-button.js",
|
|
13
10
|
"components/sd-radio-group/sd-radio-group.js",
|
|
14
11
|
"components/sd-action-modal/sd-action-modal.js",
|
|
15
12
|
"components/sd-ghost-button/sd-ghost-button.js",
|
|
13
|
+
"components/sd-button/sd-button.js",
|
|
16
14
|
"components/sd-badge/sd-badge.js",
|
|
17
15
|
"components/sd-barcode-input/sd-barcode-input.js",
|
|
18
16
|
"components/sd-calendar/sd-calendar.js",
|
|
@@ -41,15 +39,24 @@
|
|
|
41
39
|
"components/sd-modal-container/sd-modal-container.js",
|
|
42
40
|
"components/sd-number-input/sd-number-input.js",
|
|
43
41
|
"components/sd-pagination/sd-pagination.js",
|
|
42
|
+
"components/sd-popover/sd-popover.js",
|
|
43
|
+
"components/sd-text-link/sd-text-link.js",
|
|
44
44
|
"components/sd-popup/sd-popup.js",
|
|
45
|
+
"components/sd-scroll-area/sd-scroll-area.js",
|
|
45
46
|
"components/sd-select/sd-select.js",
|
|
46
47
|
"components/sd-select/sd-select-trigger/sd-select-trigger.js",
|
|
47
48
|
"components/sd-select/sd-select-list-item/sd-select-list-item.js",
|
|
48
49
|
"components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js",
|
|
49
50
|
"components/sd-select/sd-select-listbox/sd-select-listbox.js",
|
|
51
|
+
"components/sd-stepper/sd-stepper.js",
|
|
50
52
|
"components/sd-switch/sd-switch.js",
|
|
51
53
|
"components/sd-tabs/sd-tabs.js",
|
|
52
54
|
"components/sd-textarea/sd-textarea.js",
|
|
55
|
+
"components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.js",
|
|
56
|
+
"components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.js",
|
|
57
|
+
"components/sd-time-picker/sd-time-picker.js",
|
|
58
|
+
"components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.js",
|
|
59
|
+
"components/sd-time-range-picker/sd-time-range-picker.js",
|
|
53
60
|
"components/sd-toast/sd-toast.js",
|
|
54
61
|
"components/sd-toast-container/sd-toast-container.js",
|
|
55
62
|
"components/sd-toggle/sd-toggle.js",
|
|
@@ -45,7 +45,7 @@ export class SdActionModal {
|
|
|
45
45
|
if (this.height != null && this.height !== '') {
|
|
46
46
|
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
47
47
|
}
|
|
48
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: '0ea43d16b08533b5b9cfbeb6ba841e6deb9a4212', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, h("header", { key: '410e57f4bf29a2f754d86b78292e2281625d7cc7', class: "sd-action-modal__header" }, h("h2", { key: '0d27f2538b7b65d7cb0e708e431ba93bbe874e7f', class: "sd-action-modal__title" }, this.modalTitle), h("div", { key: '9ad61d454f2305165878a8e41c2165590e56b8e2', class: "sd-action-modal__header-sub" }, h("slot", { key: '7a0cdfa33590fbc743e8cace34f2963f1f413516', name: "header-sub-title" })), h("sd-ghost-button", { key: '4a216590c2a4ab28dbaf5cead04c1239c46897a6', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: 'a127cc066dc02a421b8bf79ac8c4ee9149e14988', class: "sd-action-modal__body" }, h("slot", { key: '0db445593169be7f38bde831d0024edc199720f2', name: "body" })), (this.buttonProps != null || this.buttonProps != undefined) && (h("footer", { key: 'ea4255f7c8d010ba6305a9cec484ea6625eab9ee', class: "sd-action-modal__footer" }, h("div", { key: 'f722674d3f478748b826ee2265412e700bcdacc4', class: "sd-action-modal__footer-sub" }, h("slot", { key: '96c8ab1d079c4824ef661e2fa0565023ac2222f4', name: "bottom-sub-content" })), h("sd-button", { key: '0d63bee0d36c827c49ddf96fe41de67d1dc4524d', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() })))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "sd-action-modal"; }
|
|
51
51
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SdBadge {
|
|
|
5
5
|
color = 'blue';
|
|
6
6
|
render() {
|
|
7
7
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
8
|
-
return (h("div", { key: '
|
|
8
|
+
return (h("div", { key: '71aebd3dd22a67eeb04189ff0e7c4379ec5d6802', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, h("div", { key: 'd40e81130d58b6a03ffe0461478ee8af50cd7cf6', class: "sd-badge__dot" })));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "sd-badge"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -135,7 +135,7 @@ export class SdBarcodeInput {
|
|
|
135
135
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
136
136
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
137
137
|
};
|
|
138
|
-
return (h("sd-field", { key: '
|
|
138
|
+
return (h("sd-field", { key: 'a1b0bba7815d907fbe1bd255a852a05c83837c27', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'c1f5145823f0a66dd0207b2b634963360d81dfd9', class: "sd-barcode-input__content" }, h("slot", { key: '09d3d9aee00e59c6445c0f6701017dac236de9ac', name: "prefix" }), h("input", { key: 'c626ca1f66c660d340202d47b523e379c20dff0e', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: 'b0989ed15b141b29472a884302b1f25d8c8616e2', name: "suffix" }), this.clearable && this.internalValue && (h("sd-ghost-button", { key: 'ec07f8233456f8a4e039048ac2958da4ccc0709e', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
139
139
|
if (this.disabled)
|
|
140
140
|
return;
|
|
141
141
|
this.internalValue = '';
|
|
@@ -77,14 +77,14 @@ export class SdButton {
|
|
|
77
77
|
const validRightIcon = isValidIcon(this.rightIcon) ? this.rightIcon : undefined;
|
|
78
78
|
const iconOnly = !hasLabel && Boolean(validIcon) !== Boolean(validRightIcon);
|
|
79
79
|
const accessibleName = iconOnly && this.ariaLabel.trim() !== '' ? this.ariaLabel : undefined;
|
|
80
|
-
return (h("button", { key: '
|
|
80
|
+
return (h("button", { key: '2a57abd6819306be62a379861e15cfa06c626e63', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type ?? 'button', disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
81
81
|
'--sd-button-bg': config.color,
|
|
82
82
|
'--sd-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
83
83
|
'--sd-button-border': PRESET_BORDER_COLORS[preset],
|
|
84
84
|
'--sd-button-text': PRESET_TEXT_COLORS[preset],
|
|
85
85
|
'--sd-button-icon': PRESET_ICON_COLORS[preset],
|
|
86
86
|
'--sd-button-accent': BUTTON_FOCUS_RING_COLOR,
|
|
87
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
87
|
+
}, onClick: this.handleClick }, h("span", { key: 'af0bcef670ee1d3963f9e2f19fbba369bb8fa341', class: "sd-button__content" }, validIcon && (h("sd-icon", { key: 'f2a104e410d76363981acd565ffe76132d69a420', class: "sd-button__icon", name: validIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })), this.label && h("span", { key: '0e19594ad6525841f7567aced516aa82321c83a2', class: "sd-button__label" }, this.label), validRightIcon && (h("sd-icon", { key: '01cb1bba8a4a1450c0a2cc30abfb4608190788d5', class: "sd-button__icon sd-button__icon--right", name: validRightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-current-icon)" })))));
|
|
88
88
|
}
|
|
89
89
|
static get is() { return "sd-button"; }
|
|
90
90
|
static get originalStyleUrls() {
|
|
@@ -179,7 +179,7 @@ export class SdCalendar {
|
|
|
179
179
|
const eventMap = this.eventMap;
|
|
180
180
|
const legend = this.legendItems;
|
|
181
181
|
const hasEvents = (this.events?.length ?? 0) > 0;
|
|
182
|
-
return (h("div", { key: '
|
|
182
|
+
return (h("div", { key: 'e1e0c276ef6642e811b796d6840ea2ed8860e5ef', class: { 'sd-calendar': true, 'sd-calendar--elevated': this.elevated }, style: cssVars }, h("div", { key: 'ed4cb4166fe14237a0291986caae6641f7075be7', class: "sd-calendar__header" }, h("div", { key: '83fb71b32ca4adaf6e42eee2a069d64ed67e08a2', class: "sd-calendar__nav-group" }, h("sd-ghost-button", { key: '35610f7ad609f1f694929355ab6aa363609d035f', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: '413232de704c401ff38a02e9d5d05788e53d650e', class: "sd-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: '5d60b66064809edaf3505659cca23e70c0702f97', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: '0d137eea005ac4ee7dd21075f3954b1259a43de1', class: "sd-calendar__divider", "aria-hidden": "true" }), h("div", { key: 'b66dc00192dfd111b3afe98d7ad0ebb775de264d', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, h("sd-ghost-button", { key: '9e0087e68fe1ec2ac7d36454e135f0cd5dac71ce', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '83ff452dd50105c7515143a6fae5b33da204a945', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: 'abc04cedfd725eb5b87ab49d451e55ab727d8fad', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: 'e06706abdd90a500067b211dea6141a99c736be9', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-calendar__week-cell" }, label)))), h("div", { key: '11a86af0b5b297ad3cfe66e207f2e7a12e9bf869', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
183
183
|
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
184
184
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
185
185
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -192,8 +192,8 @@ export class SdCalendar {
|
|
|
192
192
|
'sd-calendar__day--disabled': isDisabled,
|
|
193
193
|
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, h("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), hasEvents && (h("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents?.map((ev, i) => (h("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
194
194
|
})), legend.length > 0 && [
|
|
195
|
-
h("span", { key: '
|
|
196
|
-
h("div", { key: '
|
|
195
|
+
h("span", { key: 'd924bb7ce8ceb077cad4d35face238cbb6e39802', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
196
|
+
h("div", { key: '2738f49b64e7a45aee0f11eac96c98b811312ad6', class: "sd-calendar__legend" }, legend.map(item => (h("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, h("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), h("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
197
197
|
]));
|
|
198
198
|
}
|
|
199
199
|
static get is() { return "sd-calendar"; }
|
|
@@ -51,7 +51,7 @@ export class SdCallout {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const showTitle = this.type === 'danger';
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: 'dc97a963717ac7f0eb3c18e7f56e46278775ce6b', class: "sd-callout", style: this.calloutStyle, role: "note" }, showTitle && this.renderTitle(), h("div", { key: '6f03a18f95672b95c3e24b3d113b281d40d97f35', class: "sd-callout__body" }, this.renderBody())));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "sd-callout"; }
|
|
57
57
|
static get originalStyleUrls() {
|
|
@@ -5,7 +5,7 @@ export class SdCard {
|
|
|
5
5
|
/** 카드 루트 엘리먼트에 추가할 클래스 */
|
|
6
6
|
sdClass = '';
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Fragment, { key: '
|
|
8
|
+
return (h(Fragment, { key: '517d48bc3444e448241974b93e31f0079d1f3ef6' }, h("div", { key: '3917d6ba9fc5e20a4f45d8c798f9b29eb6a239de', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, h("slot", { key: '430091d73c9419fdf8496f17fa1f52b5906fa1a4' }))));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "sd-card"; }
|
|
11
11
|
static get originalStyleUrls() {
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { CHECKBOX_COLORS, CHECKBOX_LAYOUT, CHECKBOX_TYPOGRAPHY } from "./sd-checkbox.config";
|
|
3
3
|
export class SdCheckbox {
|
|
4
4
|
el;
|
|
5
|
-
/** 현재 선택 상태 또는 배열 형태의 값 */
|
|
5
|
+
/** 현재 선택 상태 또는 배열 형태의 값 (미지정 시 미선택 상태) */
|
|
6
6
|
value;
|
|
7
7
|
/** 배열 모드에서의 개별 값 */
|
|
8
8
|
val;
|
|
@@ -107,13 +107,13 @@ export class SdCheckbox {
|
|
|
107
107
|
'--sd-checkbox-inverse-icon': CHECKBOX_COLORS.checked.iconInverse,
|
|
108
108
|
'--sd-checkbox-inverse-label': CHECKBOX_COLORS.labelInverse,
|
|
109
109
|
};
|
|
110
|
-
return (h("label", { key: '
|
|
110
|
+
return (h("label", { key: 'e8c51cf3c43e401dc7d5a625a424dc59203a18db', class: this.checkboxClasses, style: cssVars }, h("input", { key: '46d20e76a9c5b7a8a44bf13c7f75970dc5c05bad', type: "checkbox", ref: el => {
|
|
111
111
|
this.inputEl = el;
|
|
112
|
-
}, value: this.val, checked: !!this.isChecked, disabled: this.disabled, onChange: this.handleChange, name: this.val?.toString() || 'checkbox', "aria-label": this.label || 'checkbox', "aria-checked": this.isChecked === null ? 'mixed' : this.isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }), h("div", { key: '
|
|
112
|
+
}, value: this.val, checked: !!this.isChecked, disabled: this.disabled, onChange: this.handleChange, name: this.val?.toString() || 'checkbox', "aria-label": this.label || 'checkbox', "aria-checked": this.isChecked === null ? 'mixed' : this.isChecked ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }), h("div", { key: '86a6a05ee77c940ae0eb54c0839eda9c0afb988e', class: "sd-checkbox__bg" }, this.isChecked !== false ? (h("sd-icon", { name: this.isChecked === true ? 'checkboxCheck' : 'checkboxIndeterminate', size: Number(CHECKBOX_LAYOUT.iconSize), color: this.disabled
|
|
113
113
|
? CHECKBOX_COLORS.checked.iconDisabled
|
|
114
114
|
: this.inverse
|
|
115
115
|
? CHECKBOX_COLORS.checked.iconInverse
|
|
116
|
-
: CHECKBOX_COLORS.checked.icon })) : null), this.label && (h("span", { key: '
|
|
116
|
+
: CHECKBOX_COLORS.checked.icon })) : null), this.label && (h("span", { key: '2ef1708c384c6668f256b8a75d2c7821f06ec10f', class: "sd-checkbox__label", "data-text": this.label }, this.label))));
|
|
117
117
|
}
|
|
118
118
|
static get is() { return "sd-checkbox"; }
|
|
119
119
|
static get originalStyleUrls() {
|
|
@@ -133,7 +133,7 @@ export class SdCheckbox {
|
|
|
133
133
|
"mutable": true,
|
|
134
134
|
"complexType": {
|
|
135
135
|
"original": "CheckedType",
|
|
136
|
-
"resolved": "any[] | boolean | null",
|
|
136
|
+
"resolved": "any[] | boolean | null | undefined",
|
|
137
137
|
"references": {
|
|
138
138
|
"CheckedType": {
|
|
139
139
|
"location": "local",
|
|
@@ -142,11 +142,11 @@ export class SdCheckbox {
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
|
-
"required":
|
|
146
|
-
"optional":
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": true,
|
|
147
147
|
"docs": {
|
|
148
148
|
"tags": [],
|
|
149
|
-
"text": "\uD604\uC7AC \uC120\uD0DD \uC0C1\uD0DC \uB610\uB294 \uBC30\uC5F4 \uD615\uD0DC\uC758 \uAC12"
|
|
149
|
+
"text": "\uD604\uC7AC \uC120\uD0DD \uC0C1\uD0DC \uB610\uB294 \uBC30\uC5F4 \uD615\uD0DC\uC758 \uAC12 (\uBBF8\uC9C0\uC815 \uC2DC \uBBF8\uC120\uD0DD \uC0C1\uD0DC)"
|
|
150
150
|
},
|
|
151
151
|
"getter": false,
|
|
152
152
|
"setter": false,
|