@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
|
@@ -8,3 +8,30 @@ export const RANGE_LAYOUT = {
|
|
|
8
8
|
panelGap: datepickerTokens.datepicker.calendar.range.panelGap,
|
|
9
9
|
divider: datepickerTokens.datepicker.calendar.range.divider,
|
|
10
10
|
};
|
|
11
|
+
const timeTokens = datepickerTokens.datepicker.calendar.time;
|
|
12
|
+
/** 시간(시:분) 선택 푸터 레이아웃 토큰 */
|
|
13
|
+
export const TIME_LAYOUT = {
|
|
14
|
+
bgDefault: timeTokens.bg.default,
|
|
15
|
+
bgSelected: timeTokens.bg.selected,
|
|
16
|
+
dateLabel: timeTokens.date.label,
|
|
17
|
+
dateUnit: timeTokens.date.unit,
|
|
18
|
+
dateGap: timeTokens.date.gap,
|
|
19
|
+
radius: timeTokens.radius,
|
|
20
|
+
paddingX: timeTokens.paddingX,
|
|
21
|
+
paddingY: timeTokens.paddingY,
|
|
22
|
+
gap: timeTokens.gap,
|
|
23
|
+
sectionGap: timeTokens.section.gap,
|
|
24
|
+
unitGap: timeTokens.unit.gap,
|
|
25
|
+
fontSize: timeTokens.typography.fontSize,
|
|
26
|
+
lineHeight: timeTokens.typography.lineHeight,
|
|
27
|
+
fontWeight: timeTokens.typography.fontWeight,
|
|
28
|
+
// 시:분 입력 박스는 datepicker 필드(sm) 토큰을 재사용한다
|
|
29
|
+
input: {
|
|
30
|
+
height: DATEPICKER_SIZE_MAP.sm.height,
|
|
31
|
+
radius: DATEPICKER_SIZE_MAP.sm.radius,
|
|
32
|
+
border: DATEPICKER_COLORS.border.default,
|
|
33
|
+
borderFocus: DATEPICKER_COLORS.border.focus,
|
|
34
|
+
text: DATEPICKER_COLORS.text.default,
|
|
35
|
+
placeholder: DATEPICKER_COLORS.text.disabled,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -14,6 +14,11 @@ export class SdDateRangePicker {
|
|
|
14
14
|
selectable;
|
|
15
15
|
/** 최대 선택 가능한 날짜 범위 (일 단위) */
|
|
16
16
|
maxRange;
|
|
17
|
+
/**
|
|
18
|
+
* 시간(시:분) 선택 푸터 사용 여부.
|
|
19
|
+
* true이면 value는 "YYYY-MM-DD HH:mm" 형식이 되고, 캘린더 하단에 시작·종료 시간 입력이 표시됩니다.
|
|
20
|
+
*/
|
|
21
|
+
useTimePicker = false;
|
|
17
22
|
/** 비활성 상태 여부 */
|
|
18
23
|
disabled = false;
|
|
19
24
|
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
@@ -35,6 +40,8 @@ export class SdDateRangePicker {
|
|
|
35
40
|
rules = [];
|
|
36
41
|
/** 에러 상태 여부 */
|
|
37
42
|
error = false;
|
|
43
|
+
/** 필드 상태 (없으면 error/rules 결과로 자동 결정) */
|
|
44
|
+
status;
|
|
38
45
|
/** 레이블 영역 아이콘 */
|
|
39
46
|
icon = undefined;
|
|
40
47
|
/** 레이블 툴팁 텍스트 */
|
|
@@ -94,7 +101,9 @@ export class SdDateRangePicker {
|
|
|
94
101
|
}
|
|
95
102
|
};
|
|
96
103
|
handleSelect = (e) => {
|
|
97
|
-
|
|
104
|
+
// 시간 선택 모드에서는 사용자가 시:분을 조정할 수 있도록 드롭다운을 닫지 않고 실시간 반영만 한다
|
|
105
|
+
if (!this.useTimePicker)
|
|
106
|
+
this.closeDropdown();
|
|
98
107
|
this.value = e.detail;
|
|
99
108
|
const nextValue = this.value;
|
|
100
109
|
requestAnimationFrame(() => {
|
|
@@ -109,6 +118,14 @@ export class SdDateRangePicker {
|
|
|
109
118
|
return '';
|
|
110
119
|
return `${this.value[0]} ~ ${this.value[1]}`;
|
|
111
120
|
}
|
|
121
|
+
static DEFAULT_PLACEHOLDER = 'YYYY-MM-DD ~ YYYY-MM-DD';
|
|
122
|
+
get resolvedPlaceholder() {
|
|
123
|
+
// placeholder를 따로 지정하지 않았고 시간 선택 모드이면 시:분을 포함한 기본 placeholder를 쓴다
|
|
124
|
+
if (this.useTimePicker && this.placeholder === SdDateRangePicker.DEFAULT_PLACEHOLDER) {
|
|
125
|
+
return 'YYYY-MM-DD HH:mm ~ YYYY-MM-DD HH:mm';
|
|
126
|
+
}
|
|
127
|
+
return this.placeholder;
|
|
128
|
+
}
|
|
112
129
|
disconnectedCallback() {
|
|
113
130
|
if (this.closeAnimationTimer)
|
|
114
131
|
clearTimeout(this.closeAnimationTimer);
|
|
@@ -122,9 +139,9 @@ export class SdDateRangePicker {
|
|
|
122
139
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
123
140
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
124
141
|
};
|
|
125
|
-
return (h("sd-field", { key: '
|
|
142
|
+
return (h("sd-field", { key: '01098a74a5066d2328409dcdf21bb38691adf455', 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: 'dab4a666f5c144bbcbf3848528ce246c752ab906', class: "sd-date-range-picker", ref: el => {
|
|
126
143
|
this.triggerRef = el;
|
|
127
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
144
|
+
} }, h("sd-date-picker-trigger", { key: '5aa378df1b53a2b8cc29e159e7bda0544210a81e', displayText: this.displayText, placeholder: this.resolvedPlaceholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: '8d18658004dc009d869804bdabd31155117edde3', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-range-picker-calendar", { key: '0bf96efeed4c567052e690a83a70f27df85ccc64', value: this.value, selectable: this.selectable, maxRange: this.maxRange, useTimePicker: this.useTimePicker, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
128
145
|
}
|
|
129
146
|
static get is() { return "sd-date-range-picker"; }
|
|
130
147
|
static get originalStyleUrls() {
|
|
@@ -246,6 +263,26 @@ export class SdDateRangePicker {
|
|
|
246
263
|
"reflect": false,
|
|
247
264
|
"attribute": "max-range"
|
|
248
265
|
},
|
|
266
|
+
"useTimePicker": {
|
|
267
|
+
"type": "boolean",
|
|
268
|
+
"mutable": false,
|
|
269
|
+
"complexType": {
|
|
270
|
+
"original": "boolean",
|
|
271
|
+
"resolved": "boolean",
|
|
272
|
+
"references": {}
|
|
273
|
+
},
|
|
274
|
+
"required": false,
|
|
275
|
+
"optional": false,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [],
|
|
278
|
+
"text": "\uC2DC\uAC04(\uC2DC:\uBD84) \uC120\uD0DD \uD478\uD130 \uC0AC\uC6A9 \uC5EC\uBD80.\ntrue\uC774\uBA74 value\uB294 \"YYYY-MM-DD HH:mm\" \uD615\uC2DD\uC774 \uB418\uACE0, \uCE98\uB9B0\uB354 \uD558\uB2E8\uC5D0 \uC2DC\uC791\u00B7\uC885\uB8CC \uC2DC\uAC04 \uC785\uB825\uC774 \uD45C\uC2DC\uB429\uB2C8\uB2E4."
|
|
279
|
+
},
|
|
280
|
+
"getter": false,
|
|
281
|
+
"setter": false,
|
|
282
|
+
"reflect": false,
|
|
283
|
+
"attribute": "use-time-picker",
|
|
284
|
+
"defaultValue": "false"
|
|
285
|
+
},
|
|
249
286
|
"disabled": {
|
|
250
287
|
"type": "boolean",
|
|
251
288
|
"mutable": false,
|
|
@@ -458,6 +495,25 @@ export class SdDateRangePicker {
|
|
|
458
495
|
"attribute": "error",
|
|
459
496
|
"defaultValue": "false"
|
|
460
497
|
},
|
|
498
|
+
"status": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"mutable": false,
|
|
501
|
+
"complexType": {
|
|
502
|
+
"original": "'default' | 'pass' | 'error'",
|
|
503
|
+
"resolved": "\"default\" | \"error\" | \"pass\" | undefined",
|
|
504
|
+
"references": {}
|
|
505
|
+
},
|
|
506
|
+
"required": false,
|
|
507
|
+
"optional": true,
|
|
508
|
+
"docs": {
|
|
509
|
+
"tags": [],
|
|
510
|
+
"text": "\uD544\uB4DC \uC0C1\uD0DC (\uC5C6\uC73C\uBA74 error/rules \uACB0\uACFC\uB85C \uC790\uB3D9 \uACB0\uC815)"
|
|
511
|
+
},
|
|
512
|
+
"getter": false,
|
|
513
|
+
"setter": false,
|
|
514
|
+
"reflect": false,
|
|
515
|
+
"attribute": "status"
|
|
516
|
+
},
|
|
461
517
|
"icon": {
|
|
462
518
|
"type": "unknown",
|
|
463
519
|
"mutable": false,
|
|
@@ -7,7 +7,7 @@ export class SdDivider {
|
|
|
7
7
|
const hostStyle = {
|
|
8
8
|
'--sd-divider-color': DIVIDER_COLORS.default,
|
|
9
9
|
};
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: '5e25f94dbe34f19280f6952e0a1bfbf4e4816264', style: hostStyle }, h("hr", { key: 'a47f51ba0dfc15819cd5cda169554433b978eb15', "aria-orientation": this.vertical ? 'vertical' : 'horizontal' })));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "sd-divider"; }
|
|
13
13
|
static get originalStyleUrls() {
|
|
@@ -73,6 +73,10 @@ sd-field .sd-field--has-addon .sd-field__control .sd-field__addon {
|
|
|
73
73
|
border-right: var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);
|
|
74
74
|
border-radius: calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px);
|
|
75
75
|
}
|
|
76
|
+
sd-field .sd-field--multiline .sd-field__wrapper .sd-field__control {
|
|
77
|
+
height: auto;
|
|
78
|
+
min-height: var(--sd-field-wrapper-height);
|
|
79
|
+
}
|
|
76
80
|
sd-field .sd-field__wrapper {
|
|
77
81
|
width: 100%;
|
|
78
82
|
display: flex;
|
|
@@ -10,6 +10,8 @@ const FORM_PARENT_TAGS = [
|
|
|
10
10
|
'sd-file-picker',
|
|
11
11
|
'sd-date-picker',
|
|
12
12
|
'sd-date-range-picker',
|
|
13
|
+
'sd-time-picker',
|
|
14
|
+
'sd-time-range-picker',
|
|
13
15
|
'sd-chip-input',
|
|
14
16
|
];
|
|
15
17
|
export class SdField {
|
|
@@ -48,6 +50,13 @@ export class SdField {
|
|
|
48
50
|
label = '';
|
|
49
51
|
/** 레이블 너비 */
|
|
50
52
|
labelWidth = '';
|
|
53
|
+
/**
|
|
54
|
+
* 레이블 박스 높이 (숫자면 px). 미지정 시 size별 기본값 사용.
|
|
55
|
+
* multiline 등 컨트롤 박스가 커질 때 레이블을 첫 행에 맞추기 위해 사용한다.
|
|
56
|
+
*/
|
|
57
|
+
labelHeight;
|
|
58
|
+
/** 멀티라인 컨트롤 — 컨트롤 높이를 고정하지 않고 min-height만 적용한다. */
|
|
59
|
+
multiline = false;
|
|
51
60
|
/** 필드 우측 어드온 레이블 */
|
|
52
61
|
addonLabel = '';
|
|
53
62
|
/** 어드온 정렬 방향 */
|
|
@@ -178,7 +187,11 @@ export class SdField {
|
|
|
178
187
|
};
|
|
179
188
|
const labelCssVars = this.label !== ''
|
|
180
189
|
? {
|
|
181
|
-
'--sd-field-label-height':
|
|
190
|
+
'--sd-field-label-height': this.labelHeight !== undefined && this.labelHeight !== '' && this.labelHeight !== 0
|
|
191
|
+
? typeof this.labelHeight === 'number'
|
|
192
|
+
? `${this.labelHeight}px`
|
|
193
|
+
: this.labelHeight
|
|
194
|
+
: `${labelTokens.height}px`,
|
|
182
195
|
'--sd-field-label-gap': `${labelTokens.gap}px`,
|
|
183
196
|
'--sd-field-label-font-size': `${labelTokens.fontSize}px`,
|
|
184
197
|
'--sd-field-label-line-height': `${labelTokens.lineHeight}px`,
|
|
@@ -210,19 +223,20 @@ export class SdField {
|
|
|
210
223
|
: {}),
|
|
211
224
|
}
|
|
212
225
|
: {};
|
|
213
|
-
return (h("div", { key: '
|
|
226
|
+
return (h("div", { key: 'd29e49fe9ecf467f0c1ed443524fac2648dc9da4', class: {
|
|
214
227
|
'sd-field': true,
|
|
215
228
|
'sd-field--has-label': this.label !== '',
|
|
216
229
|
'sd-field--has-addon': addon !== '',
|
|
230
|
+
'sd-field--multiline': this.multiline,
|
|
217
231
|
'sd-field--borderless': this.borderless,
|
|
218
232
|
[this.fieldStatus]: this.fieldStatus !== '',
|
|
219
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '
|
|
233
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars, ...messageCssVars } }, h("div", { key: '396173067f4a8ce38ea8ea9f5a6b9d76303b16fa', class: "sd-field__wrapper" }, this.renderLabel(this.label), h("div", { key: '3e4aab5e10cf52f116aabfe1a8d36a806eb03af4', class: "sd-field__main" }, h("div", { key: 'edbe4443387935e2b51469339284024429f1f0d3', class: {
|
|
220
234
|
'sd-field__control': true,
|
|
221
235
|
'sd-field__control--has-addon': addon !== '',
|
|
222
236
|
}, style: this.width !== '' && this.width !== 0
|
|
223
237
|
? { width: typeof this.width === 'number' ? `${this.width}px` : this.width }
|
|
224
|
-
: {} }, addon && (h("div", { key: '
|
|
225
|
-
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: '
|
|
238
|
+
: {} }, addon && (h("div", { key: '7ac28abf5f37b7ada42b16f81227afb5c7f8d656', class: "sd-field__addon" }, this.icon && (h("sd-icon", { key: 'd995424c6f620b090006cdbcf8645d2ff822e802', name: this.icon.name, size: this.icon.size ??
|
|
239
|
+
Number(FIELD_LABEL_SIZE_MAP[(this.size in FIELD_LABEL_SIZE_MAP ? this.size : 'sm')].icon), color: this.icon.color, rotate: this.icon.rotate })), addon)), h("slot", { key: 'd105a65b5c926b5db9dd1d68239c0a2015739aba' })), this.errorMsg !== '' || this.errorMessage !== '' ? (h("div", { class: "sd-field__error-message" }, this.errorMsg !== '' ? this.errorMsg : this.errorMessage)) : (this.hint !== '' && h("div", { class: "sd-field__hint" }, this.hint))))));
|
|
226
240
|
}
|
|
227
241
|
renderLabel(label) {
|
|
228
242
|
if (label == null || label === '')
|
|
@@ -554,6 +568,45 @@ export class SdField {
|
|
|
554
568
|
"attribute": "label-width",
|
|
555
569
|
"defaultValue": "''"
|
|
556
570
|
},
|
|
571
|
+
"labelHeight": {
|
|
572
|
+
"type": "any",
|
|
573
|
+
"mutable": false,
|
|
574
|
+
"complexType": {
|
|
575
|
+
"original": "number | string",
|
|
576
|
+
"resolved": "number | string | undefined",
|
|
577
|
+
"references": {}
|
|
578
|
+
},
|
|
579
|
+
"required": false,
|
|
580
|
+
"optional": true,
|
|
581
|
+
"docs": {
|
|
582
|
+
"tags": [],
|
|
583
|
+
"text": "\uB808\uC774\uBE14 \uBC15\uC2A4 \uB192\uC774 (\uC22B\uC790\uBA74 px). \uBBF8\uC9C0\uC815 \uC2DC size\uBCC4 \uAE30\uBCF8\uAC12 \uC0AC\uC6A9.\nmultiline \uB4F1 \uCEE8\uD2B8\uB864 \uBC15\uC2A4\uAC00 \uCEE4\uC9C8 \uB54C \uB808\uC774\uBE14\uC744 \uCCAB \uD589\uC5D0 \uB9DE\uCD94\uAE30 \uC704\uD574 \uC0AC\uC6A9\uD55C\uB2E4."
|
|
584
|
+
},
|
|
585
|
+
"getter": false,
|
|
586
|
+
"setter": false,
|
|
587
|
+
"reflect": false,
|
|
588
|
+
"attribute": "label-height"
|
|
589
|
+
},
|
|
590
|
+
"multiline": {
|
|
591
|
+
"type": "boolean",
|
|
592
|
+
"mutable": false,
|
|
593
|
+
"complexType": {
|
|
594
|
+
"original": "boolean",
|
|
595
|
+
"resolved": "boolean",
|
|
596
|
+
"references": {}
|
|
597
|
+
},
|
|
598
|
+
"required": false,
|
|
599
|
+
"optional": false,
|
|
600
|
+
"docs": {
|
|
601
|
+
"tags": [],
|
|
602
|
+
"text": "\uBA40\uD2F0\uB77C\uC778 \uCEE8\uD2B8\uB864 \u2014 \uCEE8\uD2B8\uB864 \uB192\uC774\uB97C \uACE0\uC815\uD558\uC9C0 \uC54A\uACE0 min-height\uB9CC \uC801\uC6A9\uD55C\uB2E4."
|
|
603
|
+
},
|
|
604
|
+
"getter": false,
|
|
605
|
+
"setter": false,
|
|
606
|
+
"reflect": false,
|
|
607
|
+
"attribute": "multiline",
|
|
608
|
+
"defaultValue": "false"
|
|
609
|
+
},
|
|
557
610
|
"addonLabel": {
|
|
558
611
|
"type": "string",
|
|
559
612
|
"mutable": false,
|
|
@@ -2,17 +2,24 @@ import filePickerTokens from "../../tokens/generated/component.filepicker.json";
|
|
|
2
2
|
import fieldTokens from "../../tokens/generated/component.field.json";
|
|
3
3
|
import listBoxTokens from "../../tokens/generated/component.listBox.json";
|
|
4
4
|
const fp = filePickerTokens.filepicker;
|
|
5
|
-
|
|
6
|
-
height: fp.
|
|
7
|
-
paddingX: fp.
|
|
8
|
-
gap: fp.
|
|
9
|
-
radius: fp.
|
|
10
|
-
borderWidth: fp.
|
|
11
|
-
fontSize: fp.
|
|
12
|
-
lineHeight: fp.
|
|
13
|
-
fontWeight: fp.
|
|
14
|
-
iconSize: fp.
|
|
5
|
+
const buildLayout = (s) => ({
|
|
6
|
+
height: fp[s].height,
|
|
7
|
+
paddingX: fp[s].paddingX,
|
|
8
|
+
gap: fp[s].gap,
|
|
9
|
+
radius: fp[s].radius,
|
|
10
|
+
borderWidth: fp[s].borderWidth,
|
|
11
|
+
fontSize: fp[s].typography.fontSize,
|
|
12
|
+
lineHeight: fp[s].typography.lineHeight,
|
|
13
|
+
fontWeight: fp[s].typography.fontWeight,
|
|
14
|
+
iconSize: fp[s].icon,
|
|
15
15
|
contentsGap: fieldTokens.field.contents.gap,
|
|
16
|
+
});
|
|
17
|
+
/** 기본(sm) 레이아웃 — 하위호환용 단일 export */
|
|
18
|
+
export const FILE_PICKER_LAYOUT = buildLayout('sm');
|
|
19
|
+
/** size별 레이아웃 맵 */
|
|
20
|
+
export const FILE_PICKER_LAYOUTS = {
|
|
21
|
+
sm: FILE_PICKER_LAYOUT,
|
|
22
|
+
md: buildLayout('md'),
|
|
16
23
|
};
|
|
17
24
|
export const FILE_PICKER_COLORS = {
|
|
18
25
|
border: fp.border,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, } from "@stencil/core";
|
|
2
2
|
import { nanoid } from "nanoid/non-secure";
|
|
3
|
-
import { FILE_PICKER_LAYOUT, FILE_PICKER_COLORS, FILE_PICKER_LIST_BOX, } from "./sd-file-picker.config";
|
|
3
|
+
import { FILE_PICKER_LAYOUT, FILE_PICKER_LAYOUTS, FILE_PICKER_COLORS, FILE_PICKER_LIST_BOX, } from "./sd-file-picker.config";
|
|
4
4
|
export class SdFilePicker {
|
|
5
5
|
el;
|
|
6
6
|
/** 선택된 파일 값 */
|
|
@@ -24,6 +24,8 @@ export class SdFilePicker {
|
|
|
24
24
|
/** 최대 파일 개수 */
|
|
25
25
|
maxFiles;
|
|
26
26
|
// sd-field 패스스루 props
|
|
27
|
+
/** 필드 크기 */
|
|
28
|
+
size = 'sm';
|
|
27
29
|
/** 폼 연동용 name 속성 */
|
|
28
30
|
name = nanoid();
|
|
29
31
|
/** 레이블 텍스트 */
|
|
@@ -226,7 +228,7 @@ export class SdFilePicker {
|
|
|
226
228
|
renderChipList() {
|
|
227
229
|
if (!this.hasChips())
|
|
228
230
|
return null;
|
|
229
|
-
return (h("div", { class: "sd-file-picker__chip-list" }, this.internalValue.map((file, index) => (h("sd-chip", { value: file.name, onSdRemove: () => this.handleChipRemove(index) })))));
|
|
231
|
+
return (h("div", { class: "sd-file-picker__chip-list" }, this.internalValue.map((file, index) => (h("sd-chip", { value: file.name, editable: false, onSdRemove: () => this.handleChipRemove(index) })))));
|
|
230
232
|
}
|
|
231
233
|
renderListbox() {
|
|
232
234
|
if (!this.hasChips() || !this.isListboxOpen)
|
|
@@ -252,38 +254,39 @@ export class SdFilePicker {
|
|
|
252
254
|
render() {
|
|
253
255
|
const hasFiles = this.hasFiles();
|
|
254
256
|
const displayText = this.getDisplayText();
|
|
257
|
+
const layout = FILE_PICKER_LAYOUTS[this.size] ?? FILE_PICKER_LAYOUT;
|
|
255
258
|
const cssVars = {
|
|
256
|
-
'--sd-file-picker-font-size': `${
|
|
257
|
-
'--sd-file-picker-line-height': `${
|
|
258
|
-
'--sd-file-picker-font-weight':
|
|
259
|
-
'--sd-file-picker-padding-x': `${
|
|
260
|
-
'--sd-file-picker-gap': `${
|
|
259
|
+
'--sd-file-picker-font-size': `${layout.fontSize}px`,
|
|
260
|
+
'--sd-file-picker-line-height': `${layout.lineHeight}px`,
|
|
261
|
+
'--sd-file-picker-font-weight': layout.fontWeight,
|
|
262
|
+
'--sd-file-picker-padding-x': `${layout.paddingX}px`,
|
|
263
|
+
'--sd-file-picker-gap': `${layout.gap}px`,
|
|
261
264
|
'--sd-file-picker-text-color': FILE_PICKER_COLORS.text.default,
|
|
262
265
|
'--sd-file-picker-placeholder-color': FILE_PICKER_COLORS.text.placeholder,
|
|
263
266
|
'--sd-file-picker-disabled-color': FILE_PICKER_COLORS.text.disabled,
|
|
264
|
-
// sd-field 시스템 변수 override
|
|
265
|
-
|
|
266
|
-
|
|
267
|
+
// sd-field 시스템 변수 override (size에 맞춰)
|
|
268
|
+
[`--sd-system-size-field-${this.size}-height`]: `${layout.height}px`,
|
|
269
|
+
[`--sd-system-radius-field-${this.size}`]: `${layout.radius}px`,
|
|
267
270
|
};
|
|
268
271
|
const showListbox = this.multiple && this.useMultipleListBox;
|
|
269
|
-
const content = (h("div", { key: '
|
|
272
|
+
const content = (h("div", { key: 'd1c3af9860038ddb11d540af8312ad59d051524f', role: "button", tabindex: this.disabled ? -1 : 0, class: "sd-file-picker__content", ref: el => (this.contentRef = el), onClick: this.handleClick, onKeyDown: e => {
|
|
270
273
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
271
274
|
e.preventDefault();
|
|
272
275
|
this.handleClick();
|
|
273
276
|
}
|
|
274
|
-
} }, h("input", { key: '
|
|
277
|
+
} }, h("input", { key: '760c38cd73d0a2a3d0832c5597c0e22bf737bb06', ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder ?? 'Click to upload' }), h("sd-icon", { key: '96ff0bf43eb3f17df92bd8834cd38a1ae36ad475', name: "attachFile", size: Number(layout.iconSize), color: this.getIconColor(), class: "sd-file-picker__icon" }), h("div", { key: '0757b8b734e21fcf7bed04d7306ee3a9d202f950', ref: el => (this.fileNamesRef = el), class: {
|
|
275
278
|
'sd-file-picker__text': true,
|
|
276
279
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
277
280
|
'sd-file-picker__text--active': hasFiles,
|
|
278
|
-
} }, displayText), showListbox && hasFiles && !this.disabled && (h("sd-ghost-button", { key: '
|
|
281
|
+
} }, displayText), showListbox && hasFiles && !this.disabled && (h("sd-ghost-button", { key: '8e42d38452d00256147ee65e614bdeb7040917d7', icon: "caretDown", size: "xxs", ariaLabel: "toggle file list", disabled: this.disabled, class: {
|
|
279
282
|
'sd-file-picker__caret': true,
|
|
280
283
|
'sd-file-picker__caret--open': this.isListboxOpen,
|
|
281
|
-
}, onClick: this.handleListboxToggle })), !this.disabled && hasFiles && (h("sd-ghost-button", { key: '
|
|
282
|
-
return (h("div", { key: '
|
|
284
|
+
}, onClick: this.handleListboxToggle })), !this.disabled && hasFiles && (h("sd-ghost-button", { key: '6f65042ce5e4efa1b6ab126653d434ca77cdd790', icon: "close", size: "xxs", ariaLabel: "clear", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (h("div", { key: 'b41146f39c384a5954dca22f2d3da767a63ef0c0', class: "sd-file-picker__tooltip" }, displayText))));
|
|
285
|
+
return (h("div", { key: '858fea100a9317ac6806ae40699e9f5608394e10', class: {
|
|
283
286
|
'sd-file-picker__wrapper': true,
|
|
284
287
|
'sd-file-picker--inline': this.inline,
|
|
285
288
|
'sd-file-picker--inline-disabled': this.inline && this.disabled,
|
|
286
|
-
}, style: cssVars }, h("sd-field", { key: '
|
|
289
|
+
}, style: cssVars }, h("sd-field", { key: '1b7a6a57e4e46c253bd9f77c500dabf92edc2ae0', borderless: this.inline, size: this.size, 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content), this.useMultipleListBox ? this.renderListbox() : this.renderChipList()));
|
|
287
290
|
}
|
|
288
291
|
static get is() { return "sd-file-picker"; }
|
|
289
292
|
static get originalStyleUrls() {
|
|
@@ -497,6 +500,33 @@ export class SdFilePicker {
|
|
|
497
500
|
"reflect": false,
|
|
498
501
|
"attribute": "max-files"
|
|
499
502
|
},
|
|
503
|
+
"size": {
|
|
504
|
+
"type": "string",
|
|
505
|
+
"mutable": false,
|
|
506
|
+
"complexType": {
|
|
507
|
+
"original": "FieldSize",
|
|
508
|
+
"resolved": "\"md\" | \"sm\"",
|
|
509
|
+
"references": {
|
|
510
|
+
"FieldSize": {
|
|
511
|
+
"location": "import",
|
|
512
|
+
"path": "../sd-field/sd-field.config",
|
|
513
|
+
"id": "src/components/sd-field/sd-field.config.ts::FieldSize",
|
|
514
|
+
"referenceLocation": "FieldSize"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"required": false,
|
|
519
|
+
"optional": false,
|
|
520
|
+
"docs": {
|
|
521
|
+
"tags": [],
|
|
522
|
+
"text": "\uD544\uB4DC \uD06C\uAE30"
|
|
523
|
+
},
|
|
524
|
+
"getter": false,
|
|
525
|
+
"setter": false,
|
|
526
|
+
"reflect": true,
|
|
527
|
+
"attribute": "size",
|
|
528
|
+
"defaultValue": "'sm'"
|
|
529
|
+
},
|
|
500
530
|
"name": {
|
|
501
531
|
"type": "string",
|
|
502
532
|
"mutable": false,
|
|
@@ -173,7 +173,7 @@ export class SdFloatingPopover {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return h("slot", { key: '
|
|
176
|
+
return h("slot", { key: 'f45790ba4fc45aef991a54b409acc2791342fcdf' });
|
|
177
177
|
}
|
|
178
178
|
static get is() { return "sd-floating-portal"; }
|
|
179
179
|
static get originalStyleUrls() {
|
|
@@ -9,6 +9,11 @@ export class SdGhostButton {
|
|
|
9
9
|
intent = 'default';
|
|
10
10
|
/** 스크린리더용 접근성 레이블 */
|
|
11
11
|
ariaLabel = '';
|
|
12
|
+
/**
|
|
13
|
+
* 토글 버튼일 때 눌림 상태 → `aria-pressed`로 반영. 미지정 시 속성 자체를 내보내지 않는다.
|
|
14
|
+
* (DOM `Element.ariaPressed`(문자열 예약 속성)와 충돌하므로 prop 이름은 `pressed`)
|
|
15
|
+
*/
|
|
16
|
+
pressed;
|
|
12
17
|
/** 호버 시 표시할 툴팁 텍스트 */
|
|
13
18
|
tooltipText;
|
|
14
19
|
/** 비활성 상태 여부 */
|
|
@@ -66,16 +71,16 @@ export class SdGhostButton {
|
|
|
66
71
|
const accessibleName = (this.ariaLabel ?? '').trim() || undefined;
|
|
67
72
|
const tooltipText = (this.tooltipText ?? '').trim();
|
|
68
73
|
const hasTooltip = tooltipText.length > 0;
|
|
69
|
-
return (h("button", { key: '
|
|
74
|
+
return (h("button", { key: '921a2e6e54aa3cbb0e6c14ad117d6ddcfc753618', class: {
|
|
70
75
|
'sd-ghost-button': true,
|
|
71
76
|
'sd-ghost-button--disabled': this.disabled,
|
|
72
|
-
}, type: "button", "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : undefined, "aria-label": accessibleName, style: {
|
|
77
|
+
}, type: "button", "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : undefined, "aria-label": accessibleName, "aria-pressed": this.pressed, style: {
|
|
73
78
|
'--sd-ghost-button-size': `${sizeConfig.size}px`,
|
|
74
79
|
'--sd-ghost-button-radius': `${GHOST_BUTTON_RADIUS[size]}px`,
|
|
75
80
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[intent],
|
|
76
81
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
77
82
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
78
|
-
}, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (h("sd-portal", { key: '
|
|
83
|
+
}, onClick: this.handleClick, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocus: this.handleFocus, onBlur: this.handleBlur }, hasTooltip && this.isTooltipOpen && (h("sd-portal", { key: '90817207f1b8b5c1d55ce510dfb5ea90cf614bfd', parentRef: this.hostEl, open: true, offset: [sizeConfig.size / 2, 4], placement: "top" }, h("div", { key: '75379a80a230eb197d56df9eb3a79f4536c425d5', class: "sd-ghost-button__tooltip-inner", "aria-hidden": "true" }, h("sd-tag", { key: 'b7cc000adb2aaa3e9f65635d7e9cab7fceff62c3', name: "square_xs_grey", label: tooltipText })))), h("sd-icon", { key: '0df3fd325eb7e82b3da6427e22c05819f35d307e', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
79
84
|
}
|
|
80
85
|
static get is() { return "sd-ghost-button"; }
|
|
81
86
|
static get originalStyleUrls() {
|
|
@@ -188,6 +193,25 @@ export class SdGhostButton {
|
|
|
188
193
|
"attribute": "aria-label",
|
|
189
194
|
"defaultValue": "''"
|
|
190
195
|
},
|
|
196
|
+
"pressed": {
|
|
197
|
+
"type": "boolean",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "boolean",
|
|
201
|
+
"resolved": "boolean | undefined",
|
|
202
|
+
"references": {}
|
|
203
|
+
},
|
|
204
|
+
"required": false,
|
|
205
|
+
"optional": true,
|
|
206
|
+
"docs": {
|
|
207
|
+
"tags": [],
|
|
208
|
+
"text": "\uD1A0\uAE00 \uBC84\uD2BC\uC77C \uB54C \uB20C\uB9BC \uC0C1\uD0DC \u2192 `aria-pressed`\uB85C \uBC18\uC601. \uBBF8\uC9C0\uC815 \uC2DC \uC18D\uC131 \uC790\uCCB4\uB97C \uB0B4\uBCF4\uB0B4\uC9C0 \uC54A\uB294\uB2E4.\n(DOM `Element.ariaPressed`(\uBB38\uC790\uC5F4 \uC608\uC57D \uC18D\uC131)\uC640 \uCDA9\uB3CC\uD558\uBBC0\uB85C prop \uC774\uB984\uC740 `pressed`)"
|
|
209
|
+
},
|
|
210
|
+
"getter": false,
|
|
211
|
+
"setter": false,
|
|
212
|
+
"reflect": false,
|
|
213
|
+
"attribute": "aria-pressed"
|
|
214
|
+
},
|
|
191
215
|
"tooltipText": {
|
|
192
216
|
"type": "string",
|
|
193
217
|
"mutable": false,
|
|
@@ -152,12 +152,12 @@ export class SdInput {
|
|
|
152
152
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
153
153
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
154
154
|
};
|
|
155
|
-
return (h("sd-field", { key: '
|
|
155
|
+
return (h("sd-field", { key: '66c7d6a9292bf8129fea6a33d2288733c264a39f', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("label", { key: 'b429ae6e521440eb917b17b10525ff3d3767a50d', class: "sd-input__content" }, h("slot", { key: 'dc1cd825ff1bea6484eada71d5aff621f82522c2', name: "prefix" }), h("input", { key: '93bd923644ac7660c2c9be28e4c64d39d93365c3', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : (this.type ?? 'text'), value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), h("slot", { key: 'ec2f67a7ae01ebbaaa1f48f1e231f6fe2cfb413c', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: 'de33f6902ab5560e151ef13e01ef84eea14da17d', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
156
156
|
if (this.disabled || this.readonly)
|
|
157
157
|
return;
|
|
158
158
|
this.internalValue = '';
|
|
159
159
|
await this.formField?.sdValidate();
|
|
160
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
160
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: 'db07c28cede67dbec93454b5ea90e94f72c5f313', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
161
161
|
if (this.disabled || this.readonly)
|
|
162
162
|
return;
|
|
163
163
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -200,8 +200,8 @@ export class SdInput {
|
|
|
200
200
|
"type": "string",
|
|
201
201
|
"mutable": false,
|
|
202
202
|
"complexType": {
|
|
203
|
-
"original": "'text' | 'password' | 'email'",
|
|
204
|
-
"resolved": "\"email\" | \"password\" | \"text\"",
|
|
203
|
+
"original": "'text' | 'password' | 'email' | 'number' | 'tel' | 'search' | 'url'",
|
|
204
|
+
"resolved": "\"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\" | \"url\"",
|
|
205
205
|
"references": {}
|
|
206
206
|
},
|
|
207
207
|
"required": false,
|
|
@@ -31,7 +31,7 @@ export class SdLinearProgress {
|
|
|
31
31
|
clipPath: `inset(0 ${100 - this.clampedValue}% 0 0)`,
|
|
32
32
|
};
|
|
33
33
|
const valueText = `${Math.round(this.clampedValue)}%`;
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'bb8b4b933b609a42d1c342b7b480d32a48527321', style: hostStyle }, h("div", { key: 'd127baf4c4cf49d5c6e04ada72636c9d3fd81733', class: "sd-linear-progress__track" }, h("div", { key: '6251da38b070cf9f064b22ed1ecb694da41f63ec', class: "sd-linear-progress__fill", style: fillStyle }), !this.indeterminate && (h("span", { key: '7b15d0383e4cc391a22e4fc7e2a85bc6cd076f80', class: "sd-linear-progress__value sd-linear-progress__value--on-track" }, valueText)), !this.indeterminate && (h("span", { key: '8755f23a83aede79a141a14b73337eacca0fc10d', class: "sd-linear-progress__value sd-linear-progress__value--on-fill", style: valueOnFillStyle }, valueText))), this.label && h("span", { key: 'c874dd1ca0cb86c90a84c318790639c0f4283255', class: "sd-linear-progress__label" }, this.label)));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "sd-linear-progress"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -32,10 +32,10 @@ export class SdLoadingContainer {
|
|
|
32
32
|
this.prevBodyOverflow = null;
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: 'c7821d4c50651217e48f424cbdfb9a32006afda4', class: {
|
|
36
36
|
'sd-loading-container': true,
|
|
37
37
|
'sd-loading-container--visible': this.visible,
|
|
38
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: '
|
|
38
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, h("div", { key: 'f7674699f3dd15edd74fc3224203b59ad2a96735', class: "sd-loading-container__backdrop" }), h("div", { key: 'cd361e1a1f470109298459cc2872be104e382015', class: "sd-loading-container__content" }, h("sd-circle-progress", { key: 'c856a1e9ab203040dd8bf0d01dbdf151718aaa3e', indeterminate: true, type: "inverse" }), this.message && h("p", { key: '8af15dba086fb024b652db5f776d384f00fd9cf7', class: "sd-loading-container__message" }, this.message))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "sd-loading-container"; }
|
|
41
41
|
static get originalStyleUrls() {
|
|
@@ -60,7 +60,7 @@ export class SdLoadingModal {
|
|
|
60
60
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
61
61
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
62
62
|
};
|
|
63
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'c6b6406cc751cfc007f6fbff72580a22b2975c03', style: hostStyle }, h("div", { key: '139b7397598768e526275dc8b508a333ba1e6058', class: "sd-loading-modal" }, this.resolvedState === 'error' && (h("sd-ghost-button", { key: '098c693d5da0c333fb06309be5371a5e8a6c3016', class: "sd-loading-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: 'f072a17c4c8e47e296cbf52d34414a32efa6aaa1', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: 'a2c501cfee2181b2a7dda2544e03bf1a709baaf3', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.showButton && (h("div", { key: 'e9d1beef80bf8fa4a0647802ce4a6e023e74bc12', class: "sd-loading-modal__button" }, h("sd-button", { key: '63a64f356fc09cbaf56ff715d04c97b208f63945', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
64
64
|
}
|
|
65
65
|
static get is() { return "sd-loading-modal"; }
|
|
66
66
|
static get originalStyleUrls() {
|