@sellmate/design-system 1.28.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-D12oddge.js → index-Jr8OU0y9.js} +1 -15
- 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 +4 -4
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +33 -36
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{component.datepicker-CUQbDSku.js → sd-date-picker.config-CgyNxY03.js} +64 -0
- package/dist/cjs/{sd-date-picker_7.cjs.entry.js → sd-date-picker_8.cjs.entry.js} +446 -47
- 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 +88 -18
- 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 +16 -2
- package/dist/cjs/sd-pagination.cjs.entry.js +173 -0
- package/dist/cjs/sd-popover.cjs.entry.js +134 -44
- package/dist/cjs/sd-popup.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio.cjs.entry.js +4 -2
- package/dist/cjs/{sd-select_3.cjs.entry.js → sd-select-list-item_4.cjs.entry.js} +294 -315
- 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-MjrAugX-.js → system-B4KkVpu2.js} +1 -7
- package/dist/cjs/{tooltipArrow-Dda4ik0V.js → tooltipArrow-BlrFItn5.js} +1 -1
- package/dist/cjs/useDatePicker-j06ymWZ_.js +103 -0
- package/dist/collection/collection-manifest.json +8 -8
- 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.css +1 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +3 -0
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +35 -59
- 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-key-value-table/sd-key-value-table.config.js +2 -0
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +5 -1
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +65 -15
- 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-modal-container/sd-modal-container.js +15 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +58 -7
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.config.js +41 -0
- package/dist/collection/components/sd-popover/sd-popover.js +189 -191
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +25 -4
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +6 -6
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +7 -7
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +54 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +7 -8
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.css +87 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.js +266 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.css +38 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.js +216 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.config.js +78 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.css +12 -0
- package/dist/collection/components/sd-time-picker/sd-time-picker.js +761 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.css +102 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.js +338 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.config.js +23 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.css +12 -0
- package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.js +809 -0
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +36 -189
- package/dist/components/index.js +1 -1
- package/dist/components/p-1DsQj3tv.js +1 -0
- package/dist/components/p-2g4jlJ3i.js +1 -0
- package/dist/components/{p-BE6ymp9E.js → p-6U1qyU5A.js} +1 -1
- package/dist/components/{p-1i6Q61TF.js → p-B-EV9bey.js} +1 -1
- package/dist/components/p-B887QQl2.js +1 -0
- package/dist/components/{p-BysikR_g.js → p-BPzs63D8.js} +1 -1
- package/dist/components/p-Bth2l1cy.js +1 -0
- package/dist/components/{p-CTDPl65u.js → p-BvJ14GuJ.js} +1 -1
- package/dist/components/p-Bxv2AFOb.js +1 -0
- package/dist/components/p-C6o10dl7.js +1 -0
- package/dist/components/p-C6wuKkUq.js +1 -0
- package/dist/components/{p-BAVsc1Ml.js → p-C9IKm4j5.js} +1 -1
- package/dist/components/{p-BuADVB78.js → p-CH9dgzTr.js} +1 -1
- package/dist/components/p-CKV2W-zU.js +1 -0
- package/dist/components/p-CTCt17CE.js +1 -0
- package/dist/components/{p-laVsm9VM.js → p-CghFB91T.js} +1 -1
- package/dist/components/p-Ckr9iuVb.js +1 -0
- package/dist/components/p-ClbD4Gsr.js +1 -0
- package/dist/components/p-CmCOLnc0.js +1 -0
- package/dist/components/{p-DNbbdJIc.js → p-CwzkplrI.js} +1 -1
- package/dist/components/p-CzJ9g73f.js +1 -0
- package/dist/components/p-D8yhjm54.js +1 -0
- package/dist/components/p-D9qp3o5Y.js +1 -0
- package/dist/components/{p-Bgxca9o5.js → p-DE8Ws9As.js} +1 -1
- package/dist/components/p-DMm_GeZC.js +1 -0
- package/dist/components/{p-BnI9HUOv.js → p-DOfLrOEu.js} +1 -1
- package/dist/components/{p-vtuEYpc6.js → p-DSWD8udu.js} +1 -1
- package/dist/components/{p-BKV1WAFb.js → p-DWnuCSqC.js} +1 -1
- package/dist/components/p-DYjaQs6e.js +1 -0
- package/dist/components/{p-pwGA4sDj.js → p-DasiqnrU.js} +1 -1
- package/dist/components/p-Dc9g3-5z.js +1 -0
- package/dist/components/{p-ClD0nx1l.js → p-DnlLqzGM.js} +1 -1
- package/dist/components/p-DsZwiWiU.js +1 -0
- package/dist/components/{p-IDlLs_KA.js → p-FGII920I.js} +1 -1
- package/dist/components/p-Hjv7LqkN.js +1 -0
- package/dist/components/{p-CHHlQceE.js → p-In6mljvA.js} +1 -1
- package/dist/components/p-OnBLxJAP.js +1 -0
- package/dist/components/p-SYnTIeiO.js +1 -0
- package/dist/{design-system/p-D2S9Zafz.js → components/p-bXzpfkfN.js} +1 -1
- package/dist/components/p-mcbwNjNT.js +1 -0
- package/dist/components/p-qZxAQy4p.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-chip-input.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-time-picker-selector.d.ts +11 -0
- package/dist/components/sd-time-picker-selector.js +1 -0
- package/dist/components/{sd-table.d.ts → sd-time-picker-trigger.d.ts} +4 -4
- package/dist/components/sd-time-picker-trigger.js +1 -0
- package/dist/components/{sd-thead.d.ts → sd-time-picker.d.ts} +4 -4
- 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-td.d.ts → sd-time-range-picker.d.ts} +4 -4
- 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-750a9112.entry.js → p-129b6330.entry.js} +1 -1
- package/dist/design-system/p-15f43b9b.entry.js +1 -0
- package/dist/design-system/p-16b9eac4.entry.js +1 -0
- package/dist/design-system/{p-0b8c86c3.entry.js → p-1858636f.entry.js} +1 -1
- package/dist/design-system/{p-a938ffee.entry.js → p-21672bb8.entry.js} +1 -1
- package/dist/design-system/{p-3b3a46cd.entry.js → p-219288ef.entry.js} +1 -1
- package/dist/design-system/{p-26f2f4c2.entry.js → p-22ac9e05.entry.js} +1 -1
- package/dist/design-system/p-2534d3d4.entry.js +1 -0
- package/dist/design-system/p-3859316f.entry.js +1 -0
- package/dist/design-system/{p-67f19734.entry.js → p-46da4e95.entry.js} +1 -1
- package/dist/design-system/{p-287d8016.entry.js → p-46eb3421.entry.js} +1 -1
- package/dist/design-system/p-4782331f.entry.js +1 -0
- package/dist/design-system/p-4a117dd6.entry.js +1 -0
- package/dist/design-system/{p-58ec51db.entry.js → p-4ae0a64a.entry.js} +1 -1
- package/dist/design-system/{p-bbd24816.entry.js → p-52b1be6f.entry.js} +1 -1
- package/dist/design-system/p-56e7c87b.entry.js +1 -0
- package/dist/design-system/p-570b9e91.entry.js +1 -0
- package/dist/design-system/p-5a113197.entry.js +1 -0
- package/dist/design-system/p-62ff77e4.entry.js +1 -0
- package/dist/design-system/{p-1230b51b.entry.js → p-655324cd.entry.js} +1 -1
- package/dist/design-system/p-66cff123.entry.js +1 -0
- package/dist/design-system/{p-4970f1ff.entry.js → p-6c4fa9d7.entry.js} +1 -1
- package/dist/design-system/{p-071e73e0.entry.js → p-809a0a71.entry.js} +1 -1
- package/dist/design-system/{p-70608fec.entry.js → p-82cb62a9.entry.js} +1 -1
- package/dist/design-system/p-843d1a8a.entry.js +1 -0
- package/dist/design-system/{p-fbeed0e4.entry.js → p-8836d9ff.entry.js} +1 -1
- package/dist/design-system/p-8af8e302.entry.js +1 -0
- package/dist/design-system/p-9c131122.entry.js +1 -0
- package/dist/design-system/{p-BqWuC4-J.js → p-BnUjeY2n.js} +1 -1
- package/dist/design-system/p-Bth2l1cy.js +1 -0
- package/dist/design-system/p-C599jhDs.js +2 -0
- package/dist/design-system/{p-CRWmn35N.js → p-Cn8LZw1e.js} +1 -1
- package/dist/design-system/p-DMm_GeZC.js +1 -0
- package/dist/design-system/p-Dz23PPdF.js +1 -0
- package/dist/design-system/p-a0c55a19.entry.js +1 -0
- package/dist/design-system/p-a6c292d1.entry.js +1 -0
- package/dist/design-system/p-a9cc4697.entry.js +1 -0
- package/dist/design-system/{p-2553bb1f.entry.js → p-b2dc1202.entry.js} +1 -1
- package/dist/design-system/{p-9c0bca09.entry.js → p-b5229957.entry.js} +1 -1
- package/dist/design-system/{p-d7e302af.entry.js → p-b75cc0dd.entry.js} +1 -1
- package/dist/design-system/p-b97a6cf3.entry.js +1 -0
- package/dist/design-system/p-c1e625e5.entry.js +1 -0
- package/dist/design-system/{p-5687ed0c.entry.js → p-c7f03dea.entry.js} +1 -1
- package/dist/design-system/p-cdb2433a.entry.js +1 -0
- package/dist/design-system/{p-61f5d5ea.entry.js → p-d5325895.entry.js} +1 -1
- package/dist/design-system/p-e0e4a451.entry.js +1 -0
- package/dist/design-system/p-e387ec65.entry.js +1 -0
- package/dist/design-system/{p-bab692c6.entry.js → p-efe3601d.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-DDNBPrZh.js → index-C599jhDs.js} +2 -14
- 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 +4 -4
- package/dist/esm/sd-confirm-modal_2.entry.js +33 -36
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{component.datepicker-laVsm9VM.js → sd-date-picker.config-CdXJcOGr.js} +63 -1
- package/dist/esm/{sd-date-picker_7.entry.js → sd-date-picker_8.entry.js} +446 -48
- 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 +87 -17
- 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 +16 -2
- package/dist/esm/sd-pagination.entry.js +171 -0
- package/dist/esm/sd-popover.entry.js +134 -44
- package/dist/esm/sd-popup.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +3 -3
- package/dist/esm/sd-radio.entry.js +4 -2
- package/dist/esm/{sd-select_3.entry.js → sd-select-list-item_4.entry.js} +277 -299
- 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-BJfiMC9H.js → system-Bth2l1cy.js} +1 -7
- package/dist/esm/{tooltipArrow-blL0aWPE.js → tooltipArrow-DbLihSLI.js} +1 -1
- package/dist/esm/{useDatePicker-DoUg--aq.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-confirm-modal/sd-confirm-modal.d.ts +10 -10
- 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-key-value-table/sd-key-value-table.config.d.ts +22 -3
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +9 -1
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +3 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +2 -0
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +8 -0
- package/dist/types/components/sd-popover/sd-popover.config.d.ts +22 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +29 -36
- package/dist/types/components/sd-radio/sd-radio.d.ts +3 -1
- package/dist/types/components/sd-radio-button/sd-radio-button.d.ts +2 -2
- package/dist/types/components/sd-radio-group/sd-radio-group.d.ts +2 -2
- package/dist/types/components/sd-switch/sd-switch.d.ts +8 -1
- package/dist/types/components/sd-tag/sd-tag.d.ts +2 -2
- package/dist/types/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.d.ts +35 -0
- package/dist/types/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.d.ts +21 -0
- package/dist/types/components/sd-time-picker/sd-time-picker.config.d.ts +71 -0
- package/dist/types/components/sd-time-picker/sd-time-picker.d.ts +84 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.d.ts +40 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker.config.d.ts +9 -0
- package/dist/types/components/sd-time-range-picker/sd-time-range-picker.d.ts +88 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +7 -22
- package/dist/types/components.d.ts +1093 -885
- package/dist/types/index.d.ts +0 -1
- package/hydrate/index.js +2573 -3144
- package/hydrate/index.mjs +2573 -3144
- package/package.json +1 -1
- package/dist/cjs/component.table-POXY492T.js +0 -72
- package/dist/cjs/constants-DJRV1upE.js +0 -5
- package/dist/cjs/sd-date-picker.config-De7ahWIs.js +0 -41
- package/dist/cjs/sd-pagination_4.cjs.entry.js +0 -858
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +0 -173
- package/dist/cjs/sd-select.config-omyxekRa.js +0 -144
- package/dist/cjs/sd-table.cjs.entry.js +0 -956
- package/dist/cjs/sd-table.config-DFy_S4bc.js +0 -83
- package/dist/cjs/sd-td.cjs.entry.js +0 -201
- package/dist/cjs/useDatePicker-iMd6WToc.js +0 -103
- package/dist/collection/components/sd-table/constants.js +0 -1
- package/dist/collection/components/sd-table/sd-table.config.js +0 -88
- package/dist/collection/components/sd-table/sd-table.css +0 -180
- package/dist/collection/components/sd-table/sd-table.js +0 -1709
- package/dist/collection/components/sd-table/sd-table.stories.helpers.js +0 -242
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +0 -10
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +0 -110
- package/dist/collection/components/sd-table/sd-td/sd-td.css +0 -15
- package/dist/collection/components/sd-table/sd-td/sd-td.js +0 -381
- package/dist/collection/components/sd-table/sd-thead/sd-thead.css +0 -186
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +0 -629
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +0 -145
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +0 -530
- package/dist/components/p-5pkzwl5N.js +0 -1
- package/dist/components/p-B-pJW3nY.js +0 -1
- package/dist/components/p-B2pYDEK7.js +0 -1
- package/dist/components/p-B3HYnTGx.js +0 -1
- package/dist/components/p-B6ezDhRg.js +0 -1
- package/dist/components/p-BCxePXvg.js +0 -1
- package/dist/components/p-BJfiMC9H.js +0 -1
- package/dist/components/p-BNHhtZUf.js +0 -1
- package/dist/components/p-BQ4Okfcm.js +0 -1
- package/dist/components/p-BSxleKw8.js +0 -1
- package/dist/components/p-BUgGuigd.js +0 -1
- package/dist/components/p-BWHQn4fD.js +0 -1
- package/dist/components/p-BZXgIBUG.js +0 -1
- package/dist/components/p-Bxb7TcZh.js +0 -1
- package/dist/components/p-C0tnN4yn.js +0 -1
- package/dist/components/p-CMvHDxR5.js +0 -1
- package/dist/components/p-CSh-DcM7.js +0 -1
- package/dist/components/p-Cf62Nvrx.js +0 -1
- package/dist/components/p-DbPS61bp.js +0 -1
- package/dist/components/p-DckXBMgo.js +0 -1
- package/dist/components/p-DmAnTwUx.js +0 -1
- package/dist/components/p-E8OA_psS.js +0 -1
- package/dist/components/p-PFLrdhQj.js +0 -1
- package/dist/components/p-l9RiSWRc.js +0 -1
- package/dist/components/p-paSLRXAR.js +0 -1
- package/dist/components/p-sZMi_32I.js +0 -1
- package/dist/components/p-yxZBh03f.js +0 -1
- package/dist/components/sd-table.js +0 -1
- package/dist/components/sd-tbody.d.ts +0 -11
- package/dist/components/sd-tbody.js +0 -1
- package/dist/components/sd-td.js +0 -1
- package/dist/components/sd-thead.js +0 -1
- package/dist/components/sd-tr.d.ts +0 -11
- package/dist/components/sd-tr.js +0 -1
- package/dist/design-system/p-0048de73.entry.js +0 -1
- package/dist/design-system/p-20f69606.entry.js +0 -1
- package/dist/design-system/p-27197194.entry.js +0 -1
- package/dist/design-system/p-5c8f4d9c.entry.js +0 -1
- package/dist/design-system/p-5pkzwl5N.js +0 -1
- package/dist/design-system/p-75726e20.entry.js +0 -1
- package/dist/design-system/p-7abf62f3.entry.js +0 -1
- package/dist/design-system/p-7ae27a26.entry.js +0 -1
- package/dist/design-system/p-84d0181b.entry.js +0 -1
- package/dist/design-system/p-91f7be74.entry.js +0 -1
- package/dist/design-system/p-94d6b7b4.entry.js +0 -1
- package/dist/design-system/p-9b21773a.entry.js +0 -1
- package/dist/design-system/p-BJfiMC9H.js +0 -1
- package/dist/design-system/p-Cf62Nvrx.js +0 -1
- package/dist/design-system/p-CuAh9n2o.js +0 -1
- package/dist/design-system/p-DDNBPrZh.js +0 -2
- package/dist/design-system/p-a12d7362.entry.js +0 -1
- package/dist/design-system/p-b831eded.entry.js +0 -1
- package/dist/design-system/p-c5502585.entry.js +0 -1
- package/dist/design-system/p-c81898a0.entry.js +0 -1
- package/dist/design-system/p-d4e2f412.entry.js +0 -1
- package/dist/design-system/p-d6b3d78b.entry.js +0 -1
- package/dist/design-system/p-dbfa3931.entry.js +0 -1
- package/dist/design-system/p-f16985c9.entry.js +0 -1
- package/dist/design-system/p-fa967329.entry.js +0 -1
- package/dist/design-system/p-laVsm9VM.js +0 -1
- package/dist/design-system/p-sZMi_32I.js +0 -1
- package/dist/esm/component.table-5pkzwl5N.js +0 -70
- package/dist/esm/constants-sZMi_32I.js +0 -3
- package/dist/esm/sd-date-picker.config-D-ks6qNf.js +0 -38
- package/dist/esm/sd-pagination_4.entry.js +0 -853
- package/dist/esm/sd-select-list-item_2.entry.js +0 -170
- package/dist/esm/sd-select.config-CeHGlqOT.js +0 -129
- package/dist/esm/sd-table.config-DmOBlnsM.js +0 -70
- package/dist/esm/sd-table.entry.js +0 -954
- package/dist/esm/sd-td.entry.js +0 -199
- package/dist/types/components/sd-table/constants.d.ts +0 -50
- package/dist/types/components/sd-table/sd-table.config.d.ts +0 -71
- package/dist/types/components/sd-table/sd-table.d.ts +0 -199
- package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +0 -39
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +0 -15
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +0 -38
- package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +0 -62
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +0 -54
|
@@ -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,6 +39,8 @@
|
|
|
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
45
|
"components/sd-select/sd-select.js",
|
|
46
46
|
"components/sd-select/sd-select-trigger/sd-select-trigger.js",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js",
|
|
49
49
|
"components/sd-select/sd-select-listbox/sd-select-listbox.js",
|
|
50
50
|
"components/sd-switch/sd-switch.js",
|
|
51
|
-
"components/sd-table/sd-table.js",
|
|
52
|
-
"components/sd-table/sd-tbody/sd-tbody.js",
|
|
53
|
-
"components/sd-table/sd-td/sd-td.js",
|
|
54
|
-
"components/sd-table/sd-thead/sd-thead.js",
|
|
55
|
-
"components/sd-table/sd-tr/sd-tr.js",
|
|
56
51
|
"components/sd-tabs/sd-tabs.js",
|
|
57
52
|
"components/sd-textarea/sd-textarea.js",
|
|
53
|
+
"components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.js",
|
|
54
|
+
"components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.js",
|
|
55
|
+
"components/sd-time-picker/sd-time-picker.js",
|
|
56
|
+
"components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.js",
|
|
57
|
+
"components/sd-time-range-picker/sd-time-range-picker.js",
|
|
58
58
|
"components/sd-toast/sd-toast.js",
|
|
59
59
|
"components/sd-toast-container/sd-toast-container.js",
|
|
60
60
|
"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,
|
|
@@ -10,8 +10,8 @@ export class SdChip {
|
|
|
10
10
|
error = false;
|
|
11
11
|
/** 비활성 상태 여부 */
|
|
12
12
|
disabled = false;
|
|
13
|
-
/** 인라인 편집 가능 여부 */
|
|
14
|
-
editable =
|
|
13
|
+
/** 인라인 편집 가능 여부 (기본값 false) */
|
|
14
|
+
editable = false;
|
|
15
15
|
/** 닫기 버튼 표시 여부 */
|
|
16
16
|
showRemove = true;
|
|
17
17
|
/** 편집 중 표시할 placeholder */
|
|
@@ -96,11 +96,11 @@ export class SdChip {
|
|
|
96
96
|
return this.inputEl ?? null;
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
99
|
+
* editable이 명시적으로 true일 때만 편집 가능으로 처리한다 (기본값 false — RN SChip과 일치).
|
|
100
|
+
* SSR 등에서 editable이 undefined로 들어와도 편집 불가로 안전하게 처리된다.
|
|
101
101
|
*/
|
|
102
102
|
get isEditable() {
|
|
103
|
-
return this.editable
|
|
103
|
+
return this.editable === true;
|
|
104
104
|
}
|
|
105
105
|
enterEditMode = () => {
|
|
106
106
|
if (this.disabled || this.isEditing || !this.isEditable)
|
|
@@ -234,7 +234,7 @@ export class SdChip {
|
|
|
234
234
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
235
235
|
'--sd-chip-line-height': typography.lineHeight,
|
|
236
236
|
};
|
|
237
|
-
return (h("span", { key: '
|
|
237
|
+
return (h("span", { key: '1dbe21611f38fdcd5670bddf6da42ae4581253e8', class: {
|
|
238
238
|
'sd-chip': true,
|
|
239
239
|
[`sd-chip--${state}`]: true,
|
|
240
240
|
'sd-chip--disabled': this.disabled,
|
|
@@ -349,13 +349,13 @@ export class SdChip {
|
|
|
349
349
|
"optional": false,
|
|
350
350
|
"docs": {
|
|
351
351
|
"tags": [],
|
|
352
|
-
"text": "\uC778\uB77C\uC778 \uD3B8\uC9D1 \uAC00\uB2A5 \uC5EC\uBD80"
|
|
352
|
+
"text": "\uC778\uB77C\uC778 \uD3B8\uC9D1 \uAC00\uB2A5 \uC5EC\uBD80 (\uAE30\uBCF8\uAC12 false)"
|
|
353
353
|
},
|
|
354
354
|
"getter": false,
|
|
355
355
|
"setter": false,
|
|
356
356
|
"reflect": false,
|
|
357
357
|
"attribute": "editable",
|
|
358
|
-
"defaultValue": "
|
|
358
|
+
"defaultValue": "false"
|
|
359
359
|
},
|
|
360
360
|
"showRemove": {
|
|
361
361
|
"type": "boolean",
|
|
@@ -22,6 +22,9 @@ sd-chip-input .sd-chip-input__reset {
|
|
|
22
22
|
gap: var(--sd-chip-input-reset-gap);
|
|
23
23
|
flex-shrink: 0;
|
|
24
24
|
}
|
|
25
|
+
sd-chip-input .sd-chip-input__reset--end {
|
|
26
|
+
margin-left: auto;
|
|
27
|
+
}
|
|
25
28
|
sd-chip-input .sd-chip-input__divider {
|
|
26
29
|
display: inline-block;
|
|
27
30
|
width: 1px;
|
|
@@ -27,6 +27,8 @@ export class SdChipInput {
|
|
|
27
27
|
useReset = false;
|
|
28
28
|
/** 최대 입력 가능한 칩 개수 (없으면 제한 없음) */
|
|
29
29
|
maxCount;
|
|
30
|
+
/** 최대 개수·초기화 meta 위치 (end=우측 끝으로 정렬 / inline=콘텐츠에 이어서 배치) */
|
|
31
|
+
metaPlacement = 'end';
|
|
30
32
|
/** 중복 에러 메시지에 표시할 항목 이름 (없으면 기본 메시지 사용) */
|
|
31
33
|
duplicateLabel;
|
|
32
34
|
/** 자동완성 후보 목록 */
|
|
@@ -37,8 +39,8 @@ export class SdChipInput {
|
|
|
37
39
|
recommendedItems = [];
|
|
38
40
|
/** 추천 항목 로딩 중 여부 */
|
|
39
41
|
loadingRecommendedItems = false;
|
|
40
|
-
/** 자동완성
|
|
41
|
-
|
|
42
|
+
/** 드롭다운(자동완성) 최소 너비 (숫자면 px, 문자열이면 그대로 적용. 기본값 200) */
|
|
43
|
+
dropdownMinWidth = 200;
|
|
42
44
|
// sd-field props
|
|
43
45
|
/** 레이블 텍스트 */
|
|
44
46
|
label = '';
|
|
@@ -411,16 +413,16 @@ export class SdChipInput {
|
|
|
411
413
|
...suggestionBoxBaseStyle,
|
|
412
414
|
width: `${this.chipInputRef?.offsetWidth ?? 0}px`,
|
|
413
415
|
};
|
|
414
|
-
// 자동완성은 입력 중인 칩(필드) 기준으로 노출되며, 최소
|
|
415
|
-
const
|
|
416
|
-
?
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
416
|
+
// 자동완성은 입력 중인 칩(필드) 기준으로 노출되며, 최소 너비(기본 200px)를 유지한 채 텍스트 길이에 따라 늘어난다.
|
|
417
|
+
const resolvedDropdownMinWidth = this.dropdownMinWidth == null
|
|
418
|
+
? `${this.fieldRef?.offsetWidth ?? 0}px`
|
|
419
|
+
: typeof this.dropdownMinWidth === 'number'
|
|
420
|
+
? `${this.dropdownMinWidth}px`
|
|
421
|
+
: this.dropdownMinWidth;
|
|
420
422
|
const autocompleteBoxStyle = {
|
|
421
423
|
...suggestionBoxBaseStyle,
|
|
422
424
|
width: 'max-content',
|
|
423
|
-
minWidth:
|
|
425
|
+
minWidth: resolvedDropdownMinWidth,
|
|
424
426
|
};
|
|
425
427
|
const suggestionItemStyle = {
|
|
426
428
|
display: 'flex',
|
|
@@ -448,7 +450,7 @@ export class SdChipInput {
|
|
|
448
450
|
fontFamily: CHIP_INPUT_SUGGESTIONS.itemFontFamily,
|
|
449
451
|
color: CHIP_INPUT_SUGGESTIONS.emptyColor,
|
|
450
452
|
};
|
|
451
|
-
return (h("sd-field", { key: '
|
|
453
|
+
return (h("sd-field", { key: '7be2526c67f5eddf5a8652211e7fb47610559d84', name: this.name, label: this.label, labelWidth: this.labelWidth, hint: this.hint, errorMessage: this.errorMessage, rules: [this.duplicateRule, ...(this.rules ?? [])], error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, width: this.width, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, h("div", { key: '07534d138b631226433ed17101de70170df269cb', class: "sd-chip-input", ref: el => (this.chipInputRef = el), onClick: this.handleContainerClick }, (this.internalValues ?? []).map((value, i) => (h("sd-chip", { key: i, value: value, error: this.getChipError(i), disabled: this.getChipDisabled(i), editable: false, onSdRemove: () => this.handleChipRemove(i) }))), !isMaxReached && (h("div", { key: '329ec02d448fe6da2b9cba977fc2e17fa86e358f', class: {
|
|
452
454
|
'sd-chip-input__field': true,
|
|
453
455
|
'sd-chip-input__field--filled': this.inputValue !== '',
|
|
454
456
|
'sd-chip-input__field--empty': this.inputValue === '' && this.internalValues.length > 0 && !this.focused,
|
|
@@ -456,12 +458,15 @@ export class SdChipInput {
|
|
|
456
458
|
? this.inputValue
|
|
457
459
|
: this.internalValues.length === 0
|
|
458
460
|
? this.placeholder
|
|
459
|
-
: '' }, h("input", { key: '
|
|
461
|
+
: '' }, h("input", { key: 'bbe535cc1dd12db472b995bbe1c7d4ac43aa85e4', ref: el => (this.inputEl = el), class: "sd-chip-input__input", placeholder: this.internalValues.length === 0 ? this.placeholder : '', disabled: this.disabled, size: 1, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur }))), showResetArea && (
|
|
460
462
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
461
|
-
h("div", { key: '
|
|
463
|
+
h("div", { key: '2384ba5c13e27556f8135f71c43aa8dd98922850', class: {
|
|
464
|
+
'sd-chip-input__reset': true,
|
|
465
|
+
'sd-chip-input__reset--end': this.metaPlacement === 'end',
|
|
466
|
+
}, "data-placement": this.metaPlacement,
|
|
462
467
|
// 리셋 버튼 클릭 시 input blur → portal unmount → refocus → 새 portal mount로
|
|
463
468
|
// 두 wrapper가 body에 잠깐 겹치는 타이밍 이슈를 방지한다.
|
|
464
|
-
onMouseDown: e => e.preventDefault() }, this.inputValue === '' && h("span", { key: '
|
|
469
|
+
onMouseDown: e => e.preventDefault() }, this.inputValue === '' && h("span", { key: 'b332a240d13c48f31c76cf7c5afffe69b25213e5', class: "sd-chip-input__divider" }), this.maxCount != null && (h("span", { key: '70641e0b72e6aec6e02a9cfa84e7a118b24f1355', class: "sd-chip-input__max-count" }, "\uCD5C\uB300 ", this.maxCount, "\uAC1C")), this.useReset && this.internalValues.length > 0 && (h("sd-text-link", { key: '2dba93d961187b5f2a8501038ea01beb45123a5a', icon: "reset", iconColor: CHIP_INPUT_RESET.iconColor, label: "\uC785\uB825 \uCD08\uAE30\uD654", underline: true, disabled: this.disabled, style: { '--sd-text-link-color': CHIP_INPUT_RESET.labelColor }, onSdClick: this.handleResetInput })))), h("sd-portal", { key: '68eea57d431b5aafecafc785febe50ead9586652', class: "sd-chip-input__autocomplete-portal", open: showAutocomplete, parentRef: this.fieldRef ?? null, viewportPadding: SdChipInput.SUGGESTIONS_VIEWPORT_PADDING, onSdClose: this.closeSuggestions }, h("div", { key: 'face530c9604516f06ed9c304172f64fa44d42b0', class: "sd-chip-input__suggestions sd-chip-input__suggestions--autocomplete", role: "listbox", style: autocompleteBoxStyle }, isAutocompleteLoading && (h("div", { key: '1d691afb5bf3a65991bcff925bb8c6ceffa3a688', class: "sd-chip-input__suggestions-empty", style: suggestionEmptyStyle }, "\uBD88\uB7EC\uC624\uB294 \uC911...")), autocompleteListItems.map((item, i) => {
|
|
465
470
|
const isSelected = (this.internalValues ?? []).includes(item);
|
|
466
471
|
const isActive = i === this.activeSuggestionIndex && !isSelected;
|
|
467
472
|
return (h("div", { key: item, class: {
|
|
@@ -487,7 +492,7 @@ export class SdChipInput {
|
|
|
487
492
|
if (!isSelected)
|
|
488
493
|
this.addChip(item);
|
|
489
494
|
} }, h("span", { style: { flex: '1' } }, item), isSelected && (h("sd-icon", { name: "check", size: "12", style: { color: '#0075FF', flexShrink: '0' } }))));
|
|
490
|
-
}))), h("sd-portal", { key: '
|
|
495
|
+
}))), h("sd-portal", { key: '44d969fb589aad9d292725e6d5fa90da814012fe', class: "sd-chip-input__recommendation-portal", open: showRecommendations, parentRef: this.chipInputRef ?? null, viewportPadding: SdChipInput.SUGGESTIONS_VIEWPORT_PADDING, onSdClose: this.closeSuggestions }, h("div", { key: 'e87049f20b42bfe12e8127aa51133704d4bdd233', class: "sd-chip-input__suggestions", role: "listbox", style: suggestionBoxStyle }, isRecommendationLoading && (h("div", { key: '63815fc8325a93178fd8eb1b6394bb489ae1344d', class: "sd-chip-input__suggestions-empty", style: suggestionEmptyStyle }, "\uBD88\uB7EC\uC624\uB294 \uC911...")), h("div", { key: '2598ec64253198067f3b215e79d90d256a9eb562', style: {
|
|
491
496
|
display: 'flex',
|
|
492
497
|
flexWrap: 'wrap',
|
|
493
498
|
gap: '8px',
|
|
@@ -745,6 +750,26 @@ export class SdChipInput {
|
|
|
745
750
|
"reflect": false,
|
|
746
751
|
"attribute": "max-count"
|
|
747
752
|
},
|
|
753
|
+
"metaPlacement": {
|
|
754
|
+
"type": "string",
|
|
755
|
+
"mutable": false,
|
|
756
|
+
"complexType": {
|
|
757
|
+
"original": "'end' | 'inline'",
|
|
758
|
+
"resolved": "\"end\" | \"inline\"",
|
|
759
|
+
"references": {}
|
|
760
|
+
},
|
|
761
|
+
"required": false,
|
|
762
|
+
"optional": false,
|
|
763
|
+
"docs": {
|
|
764
|
+
"tags": [],
|
|
765
|
+
"text": "\uCD5C\uB300 \uAC1C\uC218\u00B7\uCD08\uAE30\uD654 meta \uC704\uCE58 (end=\uC6B0\uCE21 \uB05D\uC73C\uB85C \uC815\uB82C / inline=\uCF58\uD150\uCE20\uC5D0 \uC774\uC5B4\uC11C \uBC30\uCE58)"
|
|
766
|
+
},
|
|
767
|
+
"getter": false,
|
|
768
|
+
"setter": false,
|
|
769
|
+
"reflect": false,
|
|
770
|
+
"attribute": "meta-placement",
|
|
771
|
+
"defaultValue": "'end'"
|
|
772
|
+
},
|
|
748
773
|
"duplicateLabel": {
|
|
749
774
|
"type": "string",
|
|
750
775
|
"mutable": false,
|
|
@@ -840,7 +865,7 @@ export class SdChipInput {
|
|
|
840
865
|
"attribute": "loading-recommended-items",
|
|
841
866
|
"defaultValue": "false"
|
|
842
867
|
},
|
|
843
|
-
"
|
|
868
|
+
"dropdownMinWidth": {
|
|
844
869
|
"type": "any",
|
|
845
870
|
"mutable": false,
|
|
846
871
|
"complexType": {
|
|
@@ -852,12 +877,13 @@ export class SdChipInput {
|
|
|
852
877
|
"optional": true,
|
|
853
878
|
"docs": {
|
|
854
879
|
"tags": [],
|
|
855
|
-
"text": "\uC790\uB3D9\uC644\uC131 \
|
|
880
|
+
"text": "\uB4DC\uB86D\uB2E4\uC6B4(\uC790\uB3D9\uC644\uC131) \uCD5C\uC18C \uB108\uBE44 (\uC22B\uC790\uBA74 px, \uBB38\uC790\uC5F4\uC774\uBA74 \uADF8\uB300\uB85C \uC801\uC6A9. \uAE30\uBCF8\uAC12 200)"
|
|
856
881
|
},
|
|
857
882
|
"getter": false,
|
|
858
883
|
"setter": false,
|
|
859
884
|
"reflect": false,
|
|
860
|
-
"attribute": "
|
|
885
|
+
"attribute": "dropdown-min-width",
|
|
886
|
+
"defaultValue": "200"
|
|
861
887
|
},
|
|
862
888
|
"label": {
|
|
863
889
|
"type": "string",
|
|
@@ -33,7 +33,7 @@ export class SdCircleProgress {
|
|
|
33
33
|
}
|
|
34
34
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
35
35
|
const showPercent = !this.indeterminate;
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '7458f47e0e621f2cead4d72618edcd2bdab4b923', style: hostStyle }, h("svg", { key: 'ca0b2b99ac2e1c4a6a51b509fa37292689f4f6ff', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '61d09511593f23d1e88712fa45c341a45e34589d', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: 'a4875d4001db2ee091a41c0afe7a4afb0062c610', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle })), showPercent && (h("span", { key: 'a49f13b27e1c8ee46370ff0fc7692e7d535ddca3', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && h("span", { key: '0c76f052dbccb5f2e33511afb5ff5d325e36d697', class: "sd-circle-progress__label" }, this.label)));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "sd-circle-progress"; }
|
|
39
39
|
static get originalStyleUrls() {
|
|
@@ -52,6 +52,9 @@ sd-confirm-modal .sd-confirm-modal__content-box {
|
|
|
52
52
|
border-radius: 8px;
|
|
53
53
|
background: white;
|
|
54
54
|
}
|
|
55
|
+
sd-confirm-modal .sd-confirm-modal__option {
|
|
56
|
+
text-align: center;
|
|
57
|
+
}
|
|
55
58
|
sd-confirm-modal .sd-confirm-modal__slot-label {
|
|
56
59
|
font-size: 14px;
|
|
57
60
|
font-weight: 700;
|