@sellmate/design-system 1.20.1 → 1.21.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 +1 -1
- package/dist/cjs/{index-DXm0PH2A.js → index-C-F-JEv_.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-action-modal.cjs.entry.js +8 -2
- package/dist/cjs/sd-badge.cjs.entry.js +3 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +35 -2
- package/dist/cjs/sd-button_2.cjs.entry.js +12 -3
- package/dist/cjs/sd-calendar_2.cjs.entry.js +17 -6
- package/dist/cjs/sd-callout.cjs.entry.js +4 -2
- package/dist/cjs/sd-card.cjs.entry.js +4 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +21 -12
- package/dist/cjs/sd-chip-input.cjs.entry.js +38 -4
- package/dist/cjs/sd-chip.cjs.entry.js +19 -2
- package/dist/cjs/sd-circle-progress.cjs.entry.js +6 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +27 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +13 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +209 -13
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +7 -2
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +11 -1
- package/dist/cjs/sd-field_3.cjs.entry.js +70 -12
- package/dist/cjs/sd-form.cjs.entry.js +10 -2
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +54 -15
- package/dist/cjs/sd-guide.cjs.entry.js +9 -3
- package/dist/cjs/sd-key-value-table.cjs.entry.js +3 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +7 -4
- package/dist/cjs/sd-loading-container.cjs.entry.js +5 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +7 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +38 -9
- package/dist/cjs/sd-popover.cjs.entry.js +21 -5
- package/dist/cjs/sd-popup.cjs.entry.js +7 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +8 -2
- package/dist/cjs/sd-radio.cjs.entry.js +7 -2
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +18 -7
- package/dist/cjs/sd-select_3.cjs.entry.js +56 -9
- package/dist/cjs/sd-switch.cjs.entry.js +6 -2
- package/dist/cjs/sd-table.cjs.entry.js +42 -7
- package/dist/cjs/sd-tabs.cjs.entry.js +8 -2
- package/dist/cjs/sd-td.cjs.entry.js +11 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +13 -4
- package/dist/cjs/sd-toast-container.cjs.entry.js +11 -2
- package/dist/cjs/sd-toast.cjs.entry.js +12 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +6 -2
- package/dist/cjs/{tooltipArrow-D3P3JC08.js → tooltipArrow-26hYtSrD.js} +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +13 -7
- package/dist/collection/components/sd-badge/sd-badge.js +3 -2
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +67 -34
- package/dist/collection/components/sd-button/sd-button.js +18 -10
- package/dist/collection/components/sd-calendar/sd-calendar.js +15 -9
- package/dist/collection/components/sd-callout/sd-callout.js +5 -3
- package/dist/collection/components/sd-card/sd-card.js +5 -3
- package/dist/collection/components/sd-checkbox/sd-checkbox.config.js +5 -3
- package/dist/collection/components/sd-checkbox/sd-checkbox.css +16 -0
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +5 -3
- package/dist/collection/components/sd-chip/sd-chip.js +35 -18
- package/dist/collection/components/sd-chip-input/sd-chip-input.css +1 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +69 -35
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +9 -5
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +32 -17
- package/dist/collection/components/sd-date-box/sd-date-box.js +22 -12
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +12 -7
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +48 -25
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +11 -6
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +50 -26
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +20 -10
- package/dist/collection/components/sd-field/sd-field.js +51 -28
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +60 -30
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +32 -11
- package/dist/collection/components/sd-form/sd-form.js +17 -9
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +28 -13
- package/dist/collection/components/sd-guide/sd-guide.js +14 -8
- package/dist/collection/components/sd-icon/sd-icon.js +2 -1
- package/dist/collection/components/sd-input/sd-input.js +82 -42
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +4 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +10 -7
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +6 -4
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +17 -9
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +12 -6
- package/dist/collection/components/sd-number-input/sd-number-input.js +82 -43
- package/dist/collection/components/sd-pagination/sd-pagination.js +11 -7
- package/dist/collection/components/sd-popover/sd-popover.js +35 -19
- package/dist/collection/components/sd-popup/sd-popup.js +11 -7
- package/dist/collection/components/sd-portal/sd-portal.js +35 -14
- package/dist/collection/components/sd-radio/sd-radio.js +11 -6
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +13 -7
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +13 -7
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +16 -9
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +12 -8
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +22 -12
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +18 -10
- package/dist/collection/components/sd-select/sd-select.js +62 -33
- package/dist/collection/components/sd-switch/sd-switch.js +9 -5
- package/dist/collection/components/sd-table/sd-table.js +76 -41
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +4 -3
- package/dist/collection/components/sd-table/sd-td/sd-td.js +19 -10
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +29 -16
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +22 -11
- package/dist/collection/components/sd-tabs/sd-tabs.js +13 -7
- package/dist/collection/components/sd-tag/sd-tag.js +10 -7
- package/dist/collection/components/sd-text-link/sd-text-link.js +21 -12
- package/dist/collection/components/sd-textarea/sd-textarea.js +69 -35
- package/dist/collection/components/sd-toast/sd-toast.js +20 -11
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +19 -10
- package/dist/collection/components/sd-toggle/sd-toggle.js +9 -5
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +30 -16
- package/dist/components/index.js +1 -1
- package/dist/components/{p-D99vy8Ip.js → p-4MIzxb0h.js} +1 -1
- package/dist/components/{p-CQozoo2-.js → p-B-Igud6n.js} +1 -1
- package/dist/components/{p-CoqA9KgU.js → p-B5VNSTAf.js} +1 -1
- package/dist/components/{p-DertIGhs.js → p-B76pFg6k.js} +1 -1
- package/dist/components/{p-MJG6EZeP.js → p-BFlmHQm9.js} +1 -1
- package/dist/components/{p-Rwc_ltPn.js → p-BIHVGo10.js} +1 -1
- package/dist/components/{p-uSEbiD29.js → p-BQQC-6k4.js} +1 -1
- package/dist/{design-system/p-L_He_WSA.js → components/p-BRmilX-4.js} +1 -1
- package/dist/components/{p-CZfsknba.js → p-BVlg0BoC.js} +1 -1
- package/dist/components/{p-CRwvv7YM.js → p-BjSMh85k.js} +1 -1
- package/dist/components/{p-gOIeNT-Z.js → p-BrHnpCXR.js} +1 -1
- package/dist/components/{p-Bz93hWXV.js → p-Btj50AUe.js} +1 -1
- package/dist/components/{p-CLlAhEDc.js → p-BzsHwLh6.js} +1 -1
- package/dist/components/{p-9Z-q6kKD.js → p-C1QezE7u.js} +1 -1
- package/dist/components/{p-Dl89_4C3.js → p-C3mTIE8H.js} +1 -1
- package/dist/components/{p-CTPImLDQ.js → p-CBDBmMmw.js} +1 -1
- package/dist/components/p-CCCwPJ5p.js +1 -0
- package/dist/components/p-CEKu7cxA.js +1 -0
- package/dist/components/{p-5imde6N9.js → p-CTw1Deo8.js} +1 -1
- package/dist/components/p-CTxZT3Je.js +1 -0
- package/dist/components/{p-CB2A3pJ5.js → p-CZYTZeMe.js} +1 -1
- package/dist/components/{p-BZfVV3gu.js → p-CcwzTAJC.js} +1 -1
- package/dist/components/p-Cj_1bYZF.js +1 -0
- package/dist/components/{p-B5bya7Gp.js → p-Cugxp5lo.js} +1 -1
- package/dist/components/{p-CUR9smP5.js → p-D4zy1T3V.js} +1 -1
- package/dist/components/{p-BjcGzaFR.js → p-DC5W8Uy1.js} +1 -1
- package/dist/components/{p-DDAA-zcg.js → p-DIc8C633.js} +1 -1
- package/dist/components/{p-DIlNesBH.js → p-DJY7lCe4.js} +1 -1
- package/dist/components/{p-CrT06Uwc.js → p-DPXOBYhf.js} +1 -1
- package/dist/components/{p-BiBLp9_a.js → p-DU0IkIvI.js} +1 -1
- package/dist/components/{p-DZTxHJlP.js → p-DZikCqcw.js} +1 -1
- package/dist/components/{p-DNnI3Nru.js → p-Dz7VXmIA.js} +1 -1
- package/dist/components/p-FA9fGvbL.js +1 -0
- package/dist/components/p-S2-XqY2R.js +1 -0
- package/dist/components/{p-ZvI5A-_t.js → p-YpyfqzoP.js} +1 -1
- package/dist/components/{p-CJ69QmR3.js → p-l7TaS8q9.js} +1 -1
- package/dist/components/{p-FTvXz0-a.js → p-s_75vJTu.js} +1 -1
- 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-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- 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/components/sd-tr.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-0f35cd21.entry.js +1 -0
- package/dist/design-system/{p-e9d1dbb5.entry.js → p-274dbc65.entry.js} +1 -1
- package/dist/design-system/{p-b291baab.entry.js → p-2ba0b35a.entry.js} +1 -1
- package/dist/design-system/{p-52f551a1.entry.js → p-2ca4902b.entry.js} +1 -1
- package/dist/design-system/p-2df32f8c.entry.js +1 -0
- package/dist/design-system/{p-cb80327c.entry.js → p-35da166a.entry.js} +1 -1
- package/dist/design-system/p-35e1e2fa.entry.js +1 -0
- package/dist/design-system/{p-6ce68bf2.entry.js → p-4bc0ce52.entry.js} +1 -1
- package/dist/design-system/p-4c1559c8.entry.js +1 -0
- package/dist/design-system/{p-9c38ee79.entry.js → p-4e44b45b.entry.js} +1 -1
- package/dist/design-system/{p-da4e2674.entry.js → p-4eeca0cb.entry.js} +1 -1
- package/dist/design-system/{p-646a7830.entry.js → p-4f69fde0.entry.js} +1 -1
- package/dist/design-system/{p-ccf1a3fc.entry.js → p-50b5cf37.entry.js} +1 -1
- package/dist/design-system/p-52e88677.entry.js +1 -0
- package/dist/design-system/{p-4acfc5f9.entry.js → p-552acf98.entry.js} +1 -1
- package/dist/design-system/{p-23006577.entry.js → p-563a8242.entry.js} +1 -1
- package/dist/design-system/{p-e3990243.entry.js → p-68687503.entry.js} +1 -1
- package/dist/design-system/{p-1f3c1cca.entry.js → p-6d8a4a23.entry.js} +1 -1
- package/dist/design-system/{p-d5032f31.entry.js → p-7c507d39.entry.js} +1 -1
- package/dist/design-system/{p-717eba5f.entry.js → p-88926a42.entry.js} +1 -1
- package/dist/design-system/{p-35d390f1.entry.js → p-90436be8.entry.js} +1 -1
- package/dist/design-system/{p-9289eb14.entry.js → p-99f33027.entry.js} +1 -1
- package/dist/design-system/{p-c47198fc.entry.js → p-9a010c12.entry.js} +1 -1
- package/dist/design-system/{p-54853a2b.entry.js → p-9dc0c2f9.entry.js} +1 -1
- package/dist/{components/p-Bg9XySrz.js → design-system/p-C7HJ-NfO.js} +2 -1
- package/dist/{components/p-0VCXAYrh.js → design-system/p-DUyBmuH_.js} +1 -1
- package/dist/design-system/{p-d5c3bac9.entry.js → p-a71a8b31.entry.js} +1 -1
- package/dist/design-system/{p-a4331364.entry.js → p-a80cc067.entry.js} +1 -1
- package/dist/design-system/{p-ae344950.entry.js → p-abcc9367.entry.js} +1 -1
- package/dist/design-system/p-ac81b46e.entry.js +1 -0
- package/dist/design-system/{p-08343698.entry.js → p-b881bbb6.entry.js} +1 -1
- package/dist/design-system/{p-2151e081.entry.js → p-bfba449b.entry.js} +1 -1
- package/dist/design-system/p-c684cd96.entry.js +1 -0
- package/dist/design-system/{p-b63b8df9.entry.js → p-c93c623f.entry.js} +1 -1
- package/dist/design-system/{p-98e0b332.entry.js → p-ccc85130.entry.js} +1 -1
- package/dist/design-system/{p-aa1c6202.entry.js → p-ce5df7ef.entry.js} +1 -1
- package/dist/design-system/{p-adfddf3b.entry.js → p-ce83eca1.entry.js} +1 -1
- package/dist/design-system/{p-7ed8c8f1.entry.js → p-d5b535ad.entry.js} +1 -1
- package/dist/design-system/{p-df7c721d.entry.js → p-e310f188.entry.js} +1 -1
- package/dist/design-system/{p-bdb7492c.entry.js → p-fc65bbe2.entry.js} +1 -1
- package/dist/design-system/{p-17dcf0e4.entry.js → p-fe5b8eaa.entry.js} +1 -1
- package/dist/design-system/{p-a5a586da.entry.js → p-ff726fad.entry.js} +1 -1
- package/dist/esm/design-system.js +2 -2
- package/dist/esm/{index-CAxodB5I.js → index-C7HJ-NfO.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/sd-action-modal.entry.js +8 -2
- package/dist/esm/sd-badge.entry.js +3 -2
- package/dist/esm/sd-barcode-input.entry.js +35 -2
- package/dist/esm/sd-button_2.entry.js +12 -3
- package/dist/esm/sd-calendar_2.entry.js +17 -6
- package/dist/esm/sd-callout.entry.js +4 -2
- package/dist/esm/sd-card.entry.js +4 -2
- package/dist/esm/sd-checkbox.entry.js +21 -12
- package/dist/esm/sd-chip-input.entry.js +38 -4
- package/dist/esm/sd-chip.entry.js +19 -2
- package/dist/esm/sd-circle-progress.entry.js +6 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +27 -4
- package/dist/esm/sd-date-box.entry.js +13 -3
- package/dist/esm/sd-date-picker_7.entry.js +209 -13
- package/dist/esm/sd-date-range-picker-calendar.entry.js +7 -2
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +11 -1
- package/dist/esm/sd-field_3.entry.js +70 -12
- package/dist/esm/sd-form.entry.js +10 -2
- package/dist/esm/sd-ghost-button_3.entry.js +54 -15
- package/dist/esm/sd-guide.entry.js +9 -3
- package/dist/esm/sd-key-value-table.entry.js +3 -1
- package/dist/esm/sd-linear-progress.entry.js +7 -4
- package/dist/esm/sd-loading-container.entry.js +5 -3
- package/dist/esm/sd-modal-container.entry.js +7 -1
- package/dist/esm/sd-pagination_4.entry.js +38 -9
- package/dist/esm/sd-popover.entry.js +21 -5
- package/dist/esm/sd-popup.entry.js +7 -3
- package/dist/esm/sd-radio-button.entry.js +8 -2
- package/dist/esm/sd-radio.entry.js +7 -2
- package/dist/esm/sd-select-list-item_2.entry.js +18 -7
- package/dist/esm/sd-select_3.entry.js +56 -9
- package/dist/esm/sd-switch.entry.js +6 -2
- package/dist/esm/sd-table.entry.js +42 -7
- package/dist/esm/sd-tabs.entry.js +8 -2
- package/dist/esm/sd-td.entry.js +11 -2
- package/dist/esm/sd-text-link.entry.js +13 -4
- package/dist/esm/sd-toast-container.entry.js +11 -2
- package/dist/esm/sd-toast.entry.js +12 -3
- package/dist/esm/sd-toggle.entry.js +6 -2
- package/dist/esm/{tooltipArrow-DLr6VvUK.js → tooltipArrow-Bgf3crs7.js} +1 -1
- package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +6 -0
- package/dist/types/components/sd-badge/sd-badge.d.ts +1 -0
- package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +33 -0
- package/dist/types/components/sd-button/sd-button.d.ts +8 -0
- package/dist/types/components/sd-calendar/sd-calendar.d.ts +6 -0
- package/dist/types/components/sd-callout/sd-callout.d.ts +2 -0
- package/dist/types/components/sd-card/sd-card.d.ts +2 -0
- package/dist/types/components/sd-checkbox/sd-checkbox.config.d.ts +2 -0
- package/dist/types/components/sd-chip/sd-chip.d.ts +17 -0
- package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +33 -0
- package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +4 -0
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +15 -0
- package/dist/types/components/sd-date-box/sd-date-box.d.ts +10 -0
- package/dist/types/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.d.ts +5 -0
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +23 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.d.ts +5 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +24 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +10 -0
- package/dist/types/components/sd-field/sd-field.d.ts +23 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +30 -0
- package/dist/types/components/sd-floating-portal/sd-floating-portal.d.ts +12 -0
- package/dist/types/components/sd-form/sd-form.d.ts +8 -0
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +7 -0
- package/dist/types/components/sd-guide/sd-guide.d.ts +6 -0
- package/dist/types/components/sd-icon/sd-icon.d.ts +1 -0
- package/dist/types/components/sd-input/sd-input.d.ts +40 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +2 -0
- package/dist/types/components/sd-linear-progress/sd-linear-progress.d.ts +4 -0
- package/dist/types/components/sd-loading-container/sd-loading-container.d.ts +2 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +8 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +6 -0
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +39 -0
- package/dist/types/components/sd-pagination/sd-pagination.d.ts +4 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +16 -0
- package/dist/types/components/sd-popup/sd-popup.d.ts +5 -0
- package/dist/types/components/sd-portal/sd-portal.d.ts +13 -0
- package/dist/types/components/sd-radio/sd-radio.d.ts +5 -0
- package/dist/types/components/sd-radio-button/sd-radio-button.d.ts +6 -0
- package/dist/types/components/sd-radio-group/sd-radio-group.d.ts +6 -0
- package/dist/types/components/sd-select/sd-select-list-item/sd-select-list-item.d.ts +7 -0
- package/dist/types/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.d.ts +4 -0
- package/dist/types/components/sd-select/sd-select-listbox/sd-select-listbox.d.ts +10 -0
- package/dist/types/components/sd-select/sd-select-trigger/sd-select-trigger.d.ts +8 -0
- package/dist/types/components/sd-select/sd-select.d.ts +29 -0
- package/dist/types/components/sd-switch/sd-switch.d.ts +4 -0
- package/dist/types/components/sd-table/sd-table.d.ts +35 -0
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +1 -0
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +9 -0
- package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +13 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +11 -0
- package/dist/types/components/sd-tabs/sd-tabs.d.ts +6 -0
- package/dist/types/components/sd-tag/sd-tag.d.ts +4 -0
- package/dist/types/components/sd-text-link/sd-text-link.d.ts +9 -0
- package/dist/types/components/sd-textarea/sd-textarea.d.ts +34 -0
- package/dist/types/components/sd-toast/sd-toast.d.ts +9 -0
- package/dist/types/components/sd-toast-container/sd-toast-container.d.ts +9 -0
- package/dist/types/components/sd-toggle/sd-toggle.d.ts +4 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +14 -0
- package/dist/types/components.d.ts +1827 -7
- package/hydrate/index.js +823 -124
- package/hydrate/index.mjs +823 -124
- package/package.json +1 -1
- package/dist/components/p-B7PHGGFH.js +0 -1
- package/dist/components/p-CXeOxSQ-.js +0 -1
- package/dist/components/p-CvSqieCH.js +0 -1
- package/dist/components/p-P2jWtk8J.js +0 -1
- package/dist/components/p-xkRWGISE.js +0 -1
- package/dist/design-system/p-316b8a08.entry.js +0 -1
- package/dist/design-system/p-5039241c.entry.js +0 -1
- package/dist/design-system/p-5eaa12af.entry.js +0 -1
- package/dist/design-system/p-CAxodB5I.js +0 -2
- package/dist/design-system/p-c995e6c3.entry.js +0 -1
- package/dist/design-system/p-eef6d4a3.entry.js +0 -1
- package/dist/design-system/p-faf7b64c.entry.js +0 -1
- package/dist/design-system/p-fd7abbfa.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-C7HJ-NfO.js';
|
|
2
2
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
3
|
import { D as DATEPICKER_COLORS, a as DATEPICKER_SIZE_MAP } from './sd-date-picker.config-6dvDZPGx.js';
|
|
4
4
|
import { i as inputTokens } from './component.textinput-e0ABNkP6.js';
|
|
@@ -15,43 +15,66 @@ const SdDatePicker = class {
|
|
|
15
15
|
}
|
|
16
16
|
static CLOSE_ANIMATION_DURATION = 150;
|
|
17
17
|
get el() { return getElement(this); }
|
|
18
|
+
/** 선택된 날짜 (YYYY-MM-DD) */
|
|
18
19
|
value = null;
|
|
20
|
+
/** 입력 필드 크기 */
|
|
19
21
|
size = 'sm';
|
|
22
|
+
/** 날짜 미선택 시 표시할 placeholder */
|
|
20
23
|
placeholder = 'YYYY-MM-DD';
|
|
24
|
+
/** 선택 가능한 날짜 범위 [시작일, 종료일] */
|
|
21
25
|
selectable;
|
|
26
|
+
/** 비활성 상태 여부 */
|
|
22
27
|
disabled = false;
|
|
28
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
23
29
|
width = '';
|
|
24
30
|
// sd-field 공통 props
|
|
31
|
+
/** 레이블 텍스트 */
|
|
25
32
|
label = '';
|
|
33
|
+
/** 레이블 너비 */
|
|
26
34
|
labelWidth = '';
|
|
35
|
+
/** 필드 우측 어드온 레이블 */
|
|
27
36
|
addonLabel = '';
|
|
37
|
+
/** 어드온 정렬 방향 */
|
|
28
38
|
addonAlign = 'start';
|
|
39
|
+
/** 필드 하단 힌트 텍스트 */
|
|
29
40
|
hint = '';
|
|
41
|
+
/** 에러 메시지 */
|
|
30
42
|
errorMessage = '';
|
|
43
|
+
/** 유효성 검사 규칙 목록 */
|
|
31
44
|
rules = [];
|
|
45
|
+
/** 에러 상태 여부 */
|
|
32
46
|
error = false;
|
|
47
|
+
/** 레이블 영역 아이콘 */
|
|
33
48
|
icon = undefined;
|
|
49
|
+
/** 레이블 툴팁 텍스트 */
|
|
34
50
|
labelTooltip = '';
|
|
51
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
35
52
|
labelTooltipProps = null;
|
|
36
53
|
isOpen = false;
|
|
37
54
|
isAnimatingOut = false;
|
|
38
55
|
focused = false;
|
|
39
56
|
hovered = false;
|
|
57
|
+
/** 날짜 선택 시 선택된 날짜(YYYY-MM-DD)를 전달합니다. */
|
|
40
58
|
update;
|
|
59
|
+
/** 달력 월/년 이동 시 현재 보여지는 연·월을 전달합니다. */
|
|
41
60
|
viewChange;
|
|
42
61
|
triggerRef;
|
|
43
62
|
formField;
|
|
44
63
|
closeAnimationTimer;
|
|
64
|
+
/** 폼 연동용 name 속성 */
|
|
45
65
|
name = nanoid();
|
|
46
66
|
watchIsOpen(newValue) {
|
|
47
67
|
this.focused = newValue;
|
|
48
68
|
}
|
|
69
|
+
/** 유효성 검사를 실행합니다. */
|
|
49
70
|
async sdValidate() {
|
|
50
71
|
return this.formField?.sdValidate();
|
|
51
72
|
}
|
|
73
|
+
/** 값과 유효성 상태를 초기화합니다. */
|
|
52
74
|
async sdReset() {
|
|
53
75
|
return this.formField?.sdReset();
|
|
54
76
|
}
|
|
77
|
+
/** 유효성 상태만 초기화합니다. */
|
|
55
78
|
async sdResetValidate() {
|
|
56
79
|
return this.formField?.sdResetValidation();
|
|
57
80
|
}
|
|
@@ -104,9 +127,9 @@ const SdDatePicker = class {
|
|
|
104
127
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
105
128
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
106
129
|
};
|
|
107
|
-
return (h("sd-field", { key: '
|
|
130
|
+
return (h("sd-field", { key: '2fc699a41a6646404e5cbd29688f14c61b466c56', 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, 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: '33c690078e2511657bfe3747d81cc1333b021353', class: "sd-date-picker", ref: el => {
|
|
108
131
|
this.triggerRef = el;
|
|
109
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
132
|
+
} }, h("sd-date-picker-trigger", { key: 'b5248eecbf1c4e8eca4e5b23206b7bebe7034280', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'f89b8688a43b9c702d75b8c5587b30626c7fd2db', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-calendar", { key: '4b293972c1b860f6d85be57fb72689c94699aeae', elevated: true, value: this.value, selectable: this.selectable, onSdUpdate: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
110
133
|
}
|
|
111
134
|
static get watchers() { return {
|
|
112
135
|
"isOpen": [{
|
|
@@ -126,44 +149,68 @@ const SdDateRangePicker = class {
|
|
|
126
149
|
}
|
|
127
150
|
static CLOSE_ANIMATION_DURATION = 150;
|
|
128
151
|
get el() { return getElement(this); }
|
|
152
|
+
/** 선택된 날짜 범위 [시작일, 종료일] (YYYY-MM-DD) */
|
|
129
153
|
value = null;
|
|
154
|
+
/** 입력 필드 크기 */
|
|
130
155
|
size = 'sm';
|
|
156
|
+
/** 미선택 시 표시할 placeholder */
|
|
131
157
|
placeholder = 'YYYY-MM-DD ~ YYYY-MM-DD';
|
|
158
|
+
/** 선택 가능한 날짜 범위 [시작일, 종료일] */
|
|
132
159
|
selectable;
|
|
160
|
+
/** 최대 선택 가능한 날짜 범위 (일 단위) */
|
|
133
161
|
maxRange;
|
|
162
|
+
/** 비활성 상태 여부 */
|
|
134
163
|
disabled = false;
|
|
164
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
135
165
|
width = '';
|
|
136
166
|
// sd-field 공통 props
|
|
167
|
+
/** 레이블 텍스트 */
|
|
137
168
|
label = '';
|
|
169
|
+
/** 레이블 너비 */
|
|
138
170
|
labelWidth = '';
|
|
171
|
+
/** 필드 우측 어드온 레이블 */
|
|
139
172
|
addonLabel = '';
|
|
173
|
+
/** 어드온 정렬 방향 */
|
|
140
174
|
addonAlign = 'start';
|
|
175
|
+
/** 필드 하단 힌트 텍스트 */
|
|
141
176
|
hint = '';
|
|
177
|
+
/** 에러 메시지 */
|
|
142
178
|
errorMessage = '';
|
|
179
|
+
/** 유효성 검사 규칙 목록 */
|
|
143
180
|
rules = [];
|
|
181
|
+
/** 에러 상태 여부 */
|
|
144
182
|
error = false;
|
|
183
|
+
/** 레이블 영역 아이콘 */
|
|
145
184
|
icon = undefined;
|
|
185
|
+
/** 레이블 툴팁 텍스트 */
|
|
146
186
|
labelTooltip = '';
|
|
187
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
147
188
|
labelTooltipProps = null;
|
|
148
189
|
isOpen = false;
|
|
149
190
|
isAnimatingOut = false;
|
|
150
191
|
focused = false;
|
|
151
192
|
hovered = false;
|
|
193
|
+
/** 날짜 범위 선택 완료 시 [시작일, 종료일]을 전달합니다. */
|
|
152
194
|
update;
|
|
195
|
+
/** 달력 월/년 이동 시 현재 보여지는 연·월을 전달합니다. */
|
|
153
196
|
viewChange;
|
|
154
197
|
triggerRef;
|
|
155
198
|
formField;
|
|
156
199
|
closeAnimationTimer;
|
|
200
|
+
/** 폼 연동용 name 속성 */
|
|
157
201
|
name = nanoid();
|
|
158
202
|
watchIsOpen(newValue) {
|
|
159
203
|
this.focused = newValue;
|
|
160
204
|
}
|
|
205
|
+
/** 유효성 검사를 실행합니다. */
|
|
161
206
|
async sdValidate() {
|
|
162
207
|
return this.formField?.sdValidate();
|
|
163
208
|
}
|
|
209
|
+
/** 값과 유효성 상태를 초기화합니다. */
|
|
164
210
|
async sdReset() {
|
|
165
211
|
return this.formField?.sdReset();
|
|
166
212
|
}
|
|
213
|
+
/** 유효성 상태만 초기화합니다. */
|
|
167
214
|
async sdResetValidate() {
|
|
168
215
|
return this.formField?.sdResetValidation();
|
|
169
216
|
}
|
|
@@ -220,9 +267,9 @@ const SdDateRangePicker = class {
|
|
|
220
267
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
221
268
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
222
269
|
};
|
|
223
|
-
return (h("sd-field", { key: '
|
|
270
|
+
return (h("sd-field", { key: '00e25ab4608b5340b8be9e1dd19050968e34b758', 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, 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: '98179e2ec90e55f83e5deff6e36fc821fc103456', class: "sd-date-range-picker", ref: el => {
|
|
224
271
|
this.triggerRef = el;
|
|
225
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
272
|
+
} }, h("sd-date-picker-trigger", { key: 'fe123228a851da602f0a5a8929fc20782742a24b', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'ee7eb14cc09fd067a8eeb9f19bd93178378d81b2', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-range-picker-calendar", { key: '8dc57a29f1ecd6811fb4538a96eea823dfebe080', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
226
273
|
}
|
|
227
274
|
static get watchers() { return {
|
|
228
275
|
"isOpen": [{
|
|
@@ -284,38 +331,65 @@ const SdFilePicker = class {
|
|
|
284
331
|
this.reject = createEvent(this, "sdReject", 7);
|
|
285
332
|
}
|
|
286
333
|
get el() { return getElement(this); }
|
|
334
|
+
/** 선택된 파일 값 */
|
|
287
335
|
value = null;
|
|
336
|
+
/** 파일 미선택 시 표시할 placeholder */
|
|
288
337
|
placeholder = 'Click to upload';
|
|
338
|
+
/** 비활성 상태 여부 */
|
|
289
339
|
disabled = false;
|
|
340
|
+
/** sd-field 없이 인라인으로 표시하는 모드 여부 */
|
|
290
341
|
inline = false;
|
|
342
|
+
/** 다중 파일 선택 여부 */
|
|
291
343
|
multiple = false;
|
|
344
|
+
/** 허용할 파일 타입 (input accept 속성과 동일) */
|
|
292
345
|
accept;
|
|
346
|
+
/** 파일 한 개의 최대 크기 (bytes) */
|
|
293
347
|
maxFileSize;
|
|
348
|
+
/** 전체 파일의 최대 용량 합계 (bytes) */
|
|
294
349
|
maxTotalSize;
|
|
350
|
+
/** 최대 파일 개수 */
|
|
295
351
|
maxFiles;
|
|
296
352
|
// sd-field 패스스루 props
|
|
353
|
+
/** 폼 연동용 name 속성 */
|
|
297
354
|
name = nanoid();
|
|
355
|
+
/** 레이블 텍스트 */
|
|
298
356
|
label = '';
|
|
357
|
+
/** 레이블 너비 */
|
|
299
358
|
labelWidth = '';
|
|
359
|
+
/** 필드 우측 어드온 레이블 */
|
|
300
360
|
addonLabel = '';
|
|
361
|
+
/** 어드온 정렬 방향 */
|
|
301
362
|
addonAlign = 'start';
|
|
363
|
+
/** 필드 하단 힌트 텍스트 */
|
|
302
364
|
hint = '';
|
|
365
|
+
/** 에러 메시지 */
|
|
303
366
|
errorMessage = '';
|
|
367
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
304
368
|
width = '';
|
|
369
|
+
/** 유효성 검사 규칙 목록 */
|
|
305
370
|
rules;
|
|
371
|
+
/** 에러 상태 여부 */
|
|
306
372
|
error = false;
|
|
373
|
+
/** 필드 상태 (없으면 rules 결과로 자동 결정) */
|
|
307
374
|
status;
|
|
375
|
+
/** 레이블 영역 아이콘 */
|
|
308
376
|
icon = undefined;
|
|
377
|
+
/** 레이블 툴팁 텍스트 */
|
|
309
378
|
labelTooltip = '';
|
|
379
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
310
380
|
labelTooltipProps = null;
|
|
381
|
+
/** 포커스 상태 여부 */
|
|
311
382
|
focused = false;
|
|
383
|
+
/** 호버 상태 여부 */
|
|
312
384
|
hovered = false;
|
|
313
385
|
internalValue = null;
|
|
314
386
|
showTooltip = false;
|
|
315
387
|
fileInputRef;
|
|
316
388
|
fileNamesRef;
|
|
317
389
|
formField;
|
|
390
|
+
/** 파일 선택 또는 삭제 시 현재 파일 값을 전달합니다. */
|
|
318
391
|
update;
|
|
392
|
+
/** 파일이 크기·개수 제한을 초과하여 거부됐을 때 발생합니다. */
|
|
319
393
|
reject;
|
|
320
394
|
valueChanged(newValue) {
|
|
321
395
|
this.internalValue = newValue;
|
|
@@ -326,9 +400,11 @@ const SdFilePicker = class {
|
|
|
326
400
|
componentDidUpdate() {
|
|
327
401
|
this.checkOverflow();
|
|
328
402
|
}
|
|
403
|
+
/** 유효성 검사를 실행합니다. */
|
|
329
404
|
async sdValidate() {
|
|
330
405
|
return this.formField?.sdValidate() ?? Promise.resolve(true);
|
|
331
406
|
}
|
|
407
|
+
/** 파일 값과 유효성 상태를 초기화합니다. */
|
|
332
408
|
async sdReset() {
|
|
333
409
|
const clearedValue = this.multiple ? [] : null;
|
|
334
410
|
this.value = clearedValue;
|
|
@@ -338,6 +414,7 @@ const SdFilePicker = class {
|
|
|
338
414
|
}
|
|
339
415
|
await this.formField?.sdResetValidation();
|
|
340
416
|
}
|
|
417
|
+
/** 유효성 상태만 초기화합니다. */
|
|
341
418
|
async sdResetValidate() {
|
|
342
419
|
await this.formField?.sdResetValidation();
|
|
343
420
|
}
|
|
@@ -540,46 +617,81 @@ const SdInput = class {
|
|
|
540
617
|
this.blur = createEvent(this, "sdBlur", 7);
|
|
541
618
|
}
|
|
542
619
|
get host() { return getElement(this); }
|
|
620
|
+
/** 입력 값 */
|
|
543
621
|
value = null;
|
|
622
|
+
/** 입력 타입 */
|
|
544
623
|
type = 'text';
|
|
624
|
+
/** 입력 크기 */
|
|
545
625
|
size = 'sm';
|
|
626
|
+
/** 필드 우측 어드온 레이블 */
|
|
546
627
|
addonLabel = '';
|
|
628
|
+
/** 어드온 정렬 방향 */
|
|
547
629
|
addonAlign = 'start';
|
|
630
|
+
/** 플레이스홀더 텍스트 */
|
|
548
631
|
placeholder = '입력해 주세요.';
|
|
632
|
+
/** 비활성 상태 여부 */
|
|
549
633
|
disabled = false;
|
|
634
|
+
/** 값이 있을 때 지우기 버튼 표시 여부 */
|
|
550
635
|
clearable = false;
|
|
636
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
551
637
|
width = '';
|
|
638
|
+
/** 유효성 검사 규칙 목록 */
|
|
552
639
|
rules = [];
|
|
640
|
+
/** 마운트 시 자동 포커스 여부 */
|
|
553
641
|
autoFocus = false;
|
|
642
|
+
/** autocomplete 속성 값 */
|
|
554
643
|
autocomplete = '';
|
|
644
|
+
/** 최대 입력 글자 수 */
|
|
555
645
|
maxlength;
|
|
646
|
+
/** 최소 입력 글자 수 */
|
|
556
647
|
minlength;
|
|
648
|
+
/** 모바일 키보드 타입 */
|
|
557
649
|
inputmode;
|
|
650
|
+
/** 모바일 Enter 키 힌트 */
|
|
558
651
|
enterkeyhint;
|
|
652
|
+
/** 맞춤법 검사 여부 */
|
|
559
653
|
spellcheck = false;
|
|
654
|
+
/** 필드 상태 (없으면 rules 결과로 자동 결정) */
|
|
560
655
|
status;
|
|
656
|
+
/** 필드 하단 힌트 텍스트 */
|
|
561
657
|
hint = '';
|
|
658
|
+
/** 에러 메시지 */
|
|
562
659
|
errorMessage = '';
|
|
660
|
+
/** 네이티브 input에 추가할 클래스 */
|
|
563
661
|
inputClass = '';
|
|
662
|
+
/** 읽기 전용 여부 */
|
|
564
663
|
readonly = false;
|
|
664
|
+
/** 에러 상태 여부 */
|
|
565
665
|
error = false;
|
|
666
|
+
/** 포커스 상태 여부 */
|
|
566
667
|
focused = false;
|
|
668
|
+
/** 호버 상태 여부 */
|
|
567
669
|
hovered = false;
|
|
568
670
|
// props - label
|
|
671
|
+
/** 레이블 텍스트 */
|
|
569
672
|
label = '';
|
|
673
|
+
/** 레이블 너비 */
|
|
570
674
|
labelWidth = '';
|
|
675
|
+
/** 레이블 영역 아이콘 */
|
|
571
676
|
icon = undefined;
|
|
677
|
+
/** 레이블 툴팁 텍스트 */
|
|
572
678
|
labelTooltip = '';
|
|
679
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
573
680
|
labelTooltipProps = null;
|
|
574
681
|
// props - custom styles
|
|
682
|
+
/** 네이티브 input에 적용할 인라인 스타일 */
|
|
575
683
|
inputStyle = {};
|
|
576
684
|
internalValue = null;
|
|
577
685
|
passwordVisible = false;
|
|
578
686
|
nativeEl = undefined;
|
|
579
687
|
formField;
|
|
688
|
+
/** 폼 연동용 name 속성 */
|
|
580
689
|
name = nanoid();
|
|
690
|
+
/** 값이 변경될 때 발생합니다. */
|
|
581
691
|
input;
|
|
692
|
+
/** 포커스될 때 발생합니다. */
|
|
582
693
|
focus;
|
|
694
|
+
/** 포커스를 잃을 때 발생합니다. */
|
|
583
695
|
blur;
|
|
584
696
|
valueChanged(newValue) {
|
|
585
697
|
this.internalValue = newValue;
|
|
@@ -590,18 +702,23 @@ const SdInput = class {
|
|
|
590
702
|
this.input?.emit(this.value);
|
|
591
703
|
}
|
|
592
704
|
}
|
|
705
|
+
/** 네이티브 input 엘리먼트를 반환합니다. */
|
|
593
706
|
async sdGetNativeElement() {
|
|
594
707
|
return this.nativeEl || null;
|
|
595
708
|
}
|
|
709
|
+
/** 유효성 검사를 실행합니다. */
|
|
596
710
|
async sdValidate() {
|
|
597
711
|
this.formField?.sdValidate();
|
|
598
712
|
}
|
|
713
|
+
/** 값과 유효성 상태를 초기화합니다. */
|
|
599
714
|
async sdReset() {
|
|
600
715
|
this.formField?.sdReset();
|
|
601
716
|
}
|
|
717
|
+
/** 유효성 상태만 초기화합니다. */
|
|
602
718
|
async sdResetValidate() {
|
|
603
719
|
this.formField?.sdResetValidation();
|
|
604
720
|
}
|
|
721
|
+
/** 입력 필드에 포커스를 이동합니다. */
|
|
605
722
|
async sdFocus() {
|
|
606
723
|
this.formField?.sdFocus();
|
|
607
724
|
}
|
|
@@ -649,12 +766,12 @@ const SdInput = class {
|
|
|
649
766
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
650
767
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
651
768
|
};
|
|
652
|
-
return (h("sd-field", { key: '
|
|
769
|
+
return (h("sd-field", { key: '7444ee5ebb482fe9c4f837114456cab90de6b3aa', 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: '0dbb6bc35522fb2d0c6d6d147756954ed96d2467', class: "sd-input__content" }, h("slot", { key: 'd5e8488bc3e29bd671bb337051d7b768c3c37c4b', name: "prefix" }), h("input", { key: '9dff73dbc5af19b0e2f19e95a26ad32211761484', 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: 'f1020b3ab68d5db6f83a2d6ba84722faa76c354e', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && !this.readonly && (h("sd-ghost-button", { key: '547a309bb4434e558cf8b33fe8bcd51533d36cd5', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
653
770
|
if (this.disabled || this.readonly)
|
|
654
771
|
return;
|
|
655
772
|
this.internalValue = '';
|
|
656
773
|
await this.formField?.sdValidate();
|
|
657
|
-
} })), this.type === 'password' && (h("sd-ghost-button", { key: '
|
|
774
|
+
} })), this.type === 'password' && (h("sd-ghost-button", { key: '39c77e164b08d4a0169f76c1b8dc519e0f39d993', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled || this.readonly, class: "sd-input__password-icon", onClick: () => {
|
|
658
775
|
if (this.disabled || this.readonly)
|
|
659
776
|
return;
|
|
660
777
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -768,43 +885,77 @@ const SdNumberInput = class {
|
|
|
768
885
|
this.blur = createEvent(this, "sdBlur", 7);
|
|
769
886
|
}
|
|
770
887
|
get el() { return getElement(this); }
|
|
888
|
+
/** 입력 크기 */
|
|
771
889
|
size = 'sm';
|
|
890
|
+
/** 최솟값 */
|
|
772
891
|
min = Number.NEGATIVE_INFINITY;
|
|
892
|
+
/** 최댓값 */
|
|
773
893
|
max = Number.POSITIVE_INFINITY;
|
|
894
|
+
/** 스텝 단위 */
|
|
774
895
|
step = 1;
|
|
896
|
+
/** 증감 버튼 표시 여부 */
|
|
775
897
|
useButton = false;
|
|
898
|
+
/** 소수점 입력 허용 여부 */
|
|
776
899
|
useDecimal = false;
|
|
900
|
+
/** 입력 값 */
|
|
777
901
|
value = null;
|
|
902
|
+
/** 레이블 텍스트 */
|
|
778
903
|
label;
|
|
904
|
+
/** 레이블 너비 */
|
|
779
905
|
labelWidth = '';
|
|
906
|
+
/** 레이블 영역 아이콘 */
|
|
780
907
|
icon = undefined;
|
|
908
|
+
/** 레이블 툴팁 텍스트 */
|
|
781
909
|
labelTooltip = '';
|
|
910
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
782
911
|
labelTooltipProps = null;
|
|
912
|
+
/** 필드 우측 어드온 레이블 */
|
|
783
913
|
addonLabel = '';
|
|
914
|
+
/** 어드온 정렬 방향 */
|
|
784
915
|
addonAlign = 'start';
|
|
916
|
+
/** 플레이스홀더 텍스트 */
|
|
785
917
|
placeholder = '입력해 주세요.';
|
|
918
|
+
/** 비활성 상태 여부 */
|
|
786
919
|
disabled = false;
|
|
920
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
787
921
|
width;
|
|
922
|
+
/** 유효성 검사 규칙 목록 */
|
|
788
923
|
rules = [];
|
|
924
|
+
/** 마운트 시 자동 포커스 여부 */
|
|
789
925
|
autoFocus = false;
|
|
926
|
+
/** 필드 상태 (없으면 rules 결과로 자동 결정) */
|
|
790
927
|
status;
|
|
928
|
+
/** 필드 하단 힌트 텍스트 */
|
|
791
929
|
hint = '';
|
|
930
|
+
/** 에러 메시지 */
|
|
792
931
|
errorMessage = '';
|
|
932
|
+
/** 입력 앞에 표시할 접두 텍스트 */
|
|
793
933
|
inputPrefix = '';
|
|
934
|
+
/** 입력 뒤에 표시할 접미 텍스트 */
|
|
794
935
|
inputSuffix = '';
|
|
936
|
+
/** 네이티브 input에 추가할 클래스 */
|
|
795
937
|
inputClass = '';
|
|
938
|
+
/** 읽기 전용 여부 */
|
|
796
939
|
readonly = false;
|
|
940
|
+
/** 네이티브 input에 적용할 인라인 스타일 */
|
|
797
941
|
inputStyle = {};
|
|
942
|
+
/** 에러 상태 여부 */
|
|
798
943
|
error = false;
|
|
944
|
+
/** 포커스 상태 여부 */
|
|
799
945
|
focused = false;
|
|
946
|
+
/** 호버 상태 여부 */
|
|
800
947
|
hovered = false;
|
|
801
948
|
internalValue = null;
|
|
802
949
|
displayValue = '';
|
|
803
950
|
nativeEl = undefined;
|
|
804
951
|
formField;
|
|
952
|
+
/** 폼 연동용 name 속성 */
|
|
805
953
|
name = nanoid();
|
|
954
|
+
/** 값이 변경될 때 발생합니다. */
|
|
806
955
|
update;
|
|
956
|
+
/** 포커스될 때 발생합니다. */
|
|
807
957
|
focus;
|
|
958
|
+
/** 포커스를 잃을 때 발생합니다. */
|
|
808
959
|
blur;
|
|
809
960
|
toNumber(val) {
|
|
810
961
|
if (val === null || val === undefined || val === '')
|
|
@@ -882,18 +1033,23 @@ const SdNumberInput = class {
|
|
|
882
1033
|
this.update?.emit(newValue);
|
|
883
1034
|
}
|
|
884
1035
|
}
|
|
1036
|
+
/** 유효성 검사를 실행합니다. */
|
|
885
1037
|
async sdValidate() {
|
|
886
1038
|
this.formField?.sdValidate();
|
|
887
1039
|
}
|
|
1040
|
+
/** 값과 유효성 상태를 초기화합니다. */
|
|
888
1041
|
async sdReset() {
|
|
889
1042
|
this.formField?.sdReset();
|
|
890
1043
|
}
|
|
1044
|
+
/** 유효성 상태만 초기화합니다. */
|
|
891
1045
|
async sdResetValidate() {
|
|
892
1046
|
this.formField?.sdResetValidation();
|
|
893
1047
|
}
|
|
1048
|
+
/** 입력 필드에 포커스를 이동합니다. */
|
|
894
1049
|
async sdFocus() {
|
|
895
1050
|
this.formField?.sdFocus();
|
|
896
1051
|
}
|
|
1052
|
+
/** 네이티브 input 엘리먼트를 반환합니다. */
|
|
897
1053
|
async sdGetNativeElement() {
|
|
898
1054
|
return this.nativeEl || null;
|
|
899
1055
|
}
|
|
@@ -1040,15 +1196,15 @@ const SdNumberInput = class {
|
|
|
1040
1196
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
1041
1197
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
1042
1198
|
};
|
|
1043
|
-
return (h("sd-field", { key: '
|
|
1199
|
+
return (h("sd-field", { key: 'f07710abbe74849369a3d0d6444750f71ed75e7b', 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("div", { key: 'ad70ff68bb24fe02c25a57dd3de0b5ef38ceef8a', class: {
|
|
1044
1200
|
'sd-number-input__content': true,
|
|
1045
1201
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
1046
|
-
} }, this.useButton && (h("button", { key: '
|
|
1202
|
+
} }, this.useButton && (h("button", { key: '90305a8863c6b6ba3d3afce695c5f61204424c46', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'e6440e5b63d4860d05f0573690a4064f7e6729ac', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
1047
1203
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
1048
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '
|
|
1204
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: 'ae2e8d052471925a5c794dcf1041a7ddbfe66652', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: 'a19917bfbe10b6d121e61e374a134207c9eb7fd7', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
1049
1205
|
textAlign: this.useButton ? 'center' : 'right',
|
|
1050
1206
|
...this.inputStyle,
|
|
1051
|
-
} }), this.inputSuffix && h("span", { key: '
|
|
1207
|
+
} }), this.inputSuffix && h("span", { key: '352e2a645c8db62c8d887b1a1f490ade187d05f0', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: '5c4f1153f6488cb95502bfa7f2bcad073bccb593', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'c9e0924126fb39492e8a696fa2628f367b8e2058', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
1052
1208
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
1053
1209
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
1054
1210
|
}
|
|
@@ -1070,11 +1226,17 @@ const SdRadioGroup = class {
|
|
|
1070
1226
|
registerInstance(this, hostRef);
|
|
1071
1227
|
this.change = createEvent(this, "sdUpdate", 7);
|
|
1072
1228
|
}
|
|
1229
|
+
/** 현재 선택된 값 */
|
|
1073
1230
|
value;
|
|
1231
|
+
/** 라디오 옵션 목록 */
|
|
1074
1232
|
options = [];
|
|
1233
|
+
/** 옵션 배치 방향 */
|
|
1075
1234
|
direction = 'vertical';
|
|
1235
|
+
/** 비활성 상태 여부 */
|
|
1076
1236
|
disabled = false;
|
|
1237
|
+
/** input name 속성 */
|
|
1077
1238
|
groupName;
|
|
1239
|
+
/** 선택 값이 변경될 때 발생합니다. */
|
|
1078
1240
|
change;
|
|
1079
1241
|
valueChanged(newValue) {
|
|
1080
1242
|
this.value = newValue;
|
|
@@ -1092,7 +1254,7 @@ const SdRadioGroup = class {
|
|
|
1092
1254
|
return classes.join(' ');
|
|
1093
1255
|
}
|
|
1094
1256
|
render() {
|
|
1095
|
-
return (h("div", { key: '
|
|
1257
|
+
return (h("div", { key: '3a1694daddf5794a1598838c44bc965de2976770', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
1096
1258
|
return (h("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
1097
1259
|
})));
|
|
1098
1260
|
}
|
|
@@ -1128,38 +1290,67 @@ const SdTextarea = class {
|
|
|
1128
1290
|
this.blur = createEvent(this, "sdBlur", 7);
|
|
1129
1291
|
}
|
|
1130
1292
|
get host() { return getElement(this); }
|
|
1293
|
+
/** 입력 값 */
|
|
1131
1294
|
value = null;
|
|
1295
|
+
/** 플레이스홀더 텍스트 */
|
|
1132
1296
|
placeholder = '입력해 주세요.';
|
|
1297
|
+
/** 비활성 상태 여부 */
|
|
1133
1298
|
disabled = false;
|
|
1299
|
+
/** 읽기 전용 여부 */
|
|
1134
1300
|
readonly = false;
|
|
1301
|
+
/** 마운트 시 자동 포커스 여부 */
|
|
1135
1302
|
autoFocus = false;
|
|
1303
|
+
/** 네이티브 textarea에 추가할 클래스 */
|
|
1136
1304
|
textareaClass = '';
|
|
1305
|
+
/** 네이티브 textarea에 적용할 인라인 스타일 */
|
|
1137
1306
|
textareaStyle = {};
|
|
1307
|
+
/** 최대 입력 글자 수 */
|
|
1138
1308
|
maxLength;
|
|
1309
|
+
/** textarea 기본 행 수 */
|
|
1139
1310
|
rows;
|
|
1311
|
+
/** 맞춤법 검사 여부 */
|
|
1140
1312
|
spellcheck = false;
|
|
1313
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
1141
1314
|
width = '';
|
|
1142
1315
|
// props - sd-field
|
|
1316
|
+
/** 레이블 텍스트 */
|
|
1143
1317
|
label = '';
|
|
1318
|
+
/** 레이블 너비 */
|
|
1144
1319
|
labelWidth = '';
|
|
1320
|
+
/** 필드 우측 어드온 레이블 */
|
|
1145
1321
|
addonLabel = '';
|
|
1322
|
+
/** 어드온 정렬 방향 */
|
|
1146
1323
|
addonAlign = 'start';
|
|
1324
|
+
/** 필드 하단 힌트 텍스트 */
|
|
1147
1325
|
hint = '';
|
|
1326
|
+
/** 에러 메시지 */
|
|
1148
1327
|
errorMessage = '';
|
|
1328
|
+
/** 레이블 영역 아이콘 */
|
|
1149
1329
|
icon = undefined;
|
|
1330
|
+
/** 레이블 툴팁 텍스트 */
|
|
1150
1331
|
labelTooltip = '';
|
|
1332
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
1151
1333
|
labelTooltipProps = null;
|
|
1334
|
+
/** 유효성 검사 규칙 목록 */
|
|
1152
1335
|
rules = [];
|
|
1336
|
+
/** 에러 상태 여부 */
|
|
1153
1337
|
error = false;
|
|
1338
|
+
/** 필드 상태 (없으면 rules 결과로 자동 결정) */
|
|
1154
1339
|
status;
|
|
1340
|
+
/** 포커스 상태 여부 */
|
|
1155
1341
|
focused = false;
|
|
1342
|
+
/** 호버 상태 여부 */
|
|
1156
1343
|
hovered = false;
|
|
1157
1344
|
internalValue = null;
|
|
1158
1345
|
nativeEl = undefined;
|
|
1159
1346
|
formField;
|
|
1347
|
+
/** 폼 연동용 name 속성 */
|
|
1160
1348
|
name = nanoid();
|
|
1349
|
+
/** 값이 변경될 때 발생합니다. */
|
|
1161
1350
|
input;
|
|
1351
|
+
/** 포커스될 때 발생합니다. */
|
|
1162
1352
|
focus;
|
|
1353
|
+
/** 포커스를 잃을 때 발생합니다. */
|
|
1163
1354
|
blur;
|
|
1164
1355
|
valueChanged(newValue) {
|
|
1165
1356
|
this.internalValue = newValue;
|
|
@@ -1170,18 +1361,23 @@ const SdTextarea = class {
|
|
|
1170
1361
|
this.input?.emit(this.value);
|
|
1171
1362
|
}
|
|
1172
1363
|
}
|
|
1364
|
+
/** 네이티브 textarea 엘리먼트를 반환합니다. */
|
|
1173
1365
|
async sdGetNativeElement() {
|
|
1174
1366
|
return this.nativeEl || null;
|
|
1175
1367
|
}
|
|
1368
|
+
/** 유효성 검사를 실행합니다. */
|
|
1176
1369
|
async sdValidate() {
|
|
1177
1370
|
this.formField?.sdValidate();
|
|
1178
1371
|
}
|
|
1372
|
+
/** 값과 유효성 상태를 초기화합니다. */
|
|
1179
1373
|
async sdReset() {
|
|
1180
1374
|
this.formField?.sdReset();
|
|
1181
1375
|
}
|
|
1376
|
+
/** 유효성 상태만 초기화합니다. */
|
|
1182
1377
|
async sdResetValidate() {
|
|
1183
1378
|
this.formField?.sdResetValidation();
|
|
1184
1379
|
}
|
|
1380
|
+
/** 입력 필드에 포커스를 이동합니다. */
|
|
1185
1381
|
async sdFocus() {
|
|
1186
1382
|
this.formField?.sdFocus();
|
|
1187
1383
|
}
|
|
@@ -1230,7 +1426,7 @@ const SdTextarea = class {
|
|
|
1230
1426
|
'--sd-system-size-field-sm-height': 'auto',
|
|
1231
1427
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
1232
1428
|
};
|
|
1233
|
-
return (h("sd-field", { key: '
|
|
1429
|
+
return (h("sd-field", { key: 'f8fd8949824938bb79f101de2e5eca7980224b09', 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, 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: '382441be15dd047888cf876006f1966256a503b7', class: "sd-textarea__content" }, h("textarea", { key: '5f5985ccdcc401f4aff2f47fe40003abeb76e8b3', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
1234
1430
|
}
|
|
1235
1431
|
static get watchers() { return {
|
|
1236
1432
|
"value": [{
|