@sellmate/design-system 1.20.1 → 1.22.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-DXm0PH2A.js → index-C-F-JEv_.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- 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 +16 -7
- 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 +76 -18
- 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 +121 -13
- 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/assets/CaretDown.js +1 -1
- package/dist/collection/components/assets/CaretLeft.js +1 -1
- package/dist/collection/components/assets/CaretRight.js +1 -1
- package/dist/collection/components/assets/CaretUp.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 +6 -0
- package/dist/collection/components/sd-chip-input/sd-chip-input.js +107 -49
- 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-table.stories.helpers.js +97 -0
- 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.css +21 -0
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +113 -20
- 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-CUR9smP5.js → p-58DLP3IW.js} +1 -1
- package/dist/components/{p-CQozoo2-.js → p-B-Igud6n.js} +1 -1
- package/dist/components/{p-BZfVV3gu.js → p-B0myARGe.js} +1 -1
- package/dist/components/{p-CTPImLDQ.js → p-B12iH3Zk.js} +1 -1
- package/dist/components/{p-CoqA9KgU.js → p-B2bF2KlS.js} +1 -1
- package/dist/components/{p-MJG6EZeP.js → p-BFlmHQm9.js} +1 -1
- package/dist/{design-system/p-L_He_WSA.js → components/p-BRmilX-4.js} +1 -1
- package/dist/components/{p-Dl89_4C3.js → p-BXRgi3NZ.js} +1 -1
- package/dist/components/{p-BjcGzaFR.js → p-Bm3NWPaP.js} +1 -1
- package/dist/components/p-BpQwjSB8.js +1 -0
- package/dist/components/{p-CRwvv7YM.js → p-BpjmheLG.js} +1 -1
- package/dist/components/{p-5imde6N9.js → p-Bric-SEs.js} +1 -1
- package/dist/components/{p-CB2A3pJ5.js → p-BwTsP0Ak.js} +1 -1
- package/dist/components/{p-9Z-q6kKD.js → p-C1QezE7u.js} +1 -1
- package/dist/components/p-CCCwPJ5p.js +1 -0
- package/dist/components/p-CCO1WtEj.js +1 -0
- package/dist/components/p-CEKu7cxA.js +1 -0
- package/dist/components/{p-CrT06Uwc.js → p-CHxVi6l1.js} +1 -1
- package/dist/components/{p-DNnI3Nru.js → p-Cdzn78dP.js} +1 -1
- package/dist/components/p-Cj_1bYZF.js +1 -0
- package/dist/components/{p-ZvI5A-_t.js → p-Cjf8PHEl.js} +1 -1
- package/dist/components/{p-CJ69QmR3.js → p-Co2ThnbG.js} +1 -1
- package/dist/components/{p-gOIeNT-Z.js → p-CwSlRPMm.js} +1 -1
- package/dist/components/p-D7StBSjK.js +1 -0
- package/dist/components/{p-Bz93hWXV.js → p-DFbj6d3L.js} +1 -1
- package/dist/components/{p-B5bya7Gp.js → p-DlXBFtBO.js} +1 -1
- package/dist/components/{p-Rwc_ltPn.js → p-Du_qPqW-.js} +1 -1
- package/dist/components/{p-DIlNesBH.js → p-DzAvlr8W.js} +1 -1
- package/dist/components/{p-D99vy8Ip.js → p-FrqOl9KZ.js} +1 -1
- package/dist/components/{p-uSEbiD29.js → p-JMuxVcTW.js} +1 -1
- package/dist/components/{p-DertIGhs.js → p-OjchKJGr.js} +1 -1
- package/dist/components/p-S2-XqY2R.js +1 -0
- package/dist/components/{p-DDAA-zcg.js → p-YCGkwgiM.js} +1 -1
- package/dist/components/{p-DZTxHJlP.js → p-ZvP2Ce6J.js} +1 -1
- package/dist/components/p-kRH2GOb0.js +1 -0
- package/dist/components/{p-FTvXz0-a.js → p-mcMbSkii.js} +1 -1
- package/dist/components/{p-BiBLp9_a.js → p-vPS2GNz3.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-14447dd5.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-4bbc894b.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-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-e7d4b78e.entry.js +1 -0
- package/dist/design-system/{p-bdb7492c.entry.js → p-fc65bbe2.entry.js} +1 -1
- package/dist/design-system/{p-a5a586da.entry.js → p-ff726fad.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-CAxodB5I.js → index-C7HJ-NfO.js} +1 -1
- package/dist/esm/loader.js +3 -3
- 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 +16 -7
- 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 +76 -18
- 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 +121 -13
- 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/constants.d.ts +1 -0
- package/dist/types/components/sd-table/sd-table.d.ts +35 -0
- package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +10 -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 +21 -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 +949 -146
- package/hydrate/index.mjs +949 -146
- package/package.json +1 -1
- package/dist/components/p-B7PHGGFH.js +0 -1
- package/dist/components/p-CLlAhEDc.js +0 -1
- package/dist/components/p-CXeOxSQ-.js +0 -1
- package/dist/components/p-CZfsknba.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-17dcf0e4.entry.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-9c38ee79.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
|
@@ -5,31 +5,56 @@ import { CHIP_LAYOUT, CHIP_COLORS, CHIP_TYPOGRAPHY } from "../sd-chip/sd-chip.co
|
|
|
5
5
|
export class SdChipInput {
|
|
6
6
|
static SUGGESTIONS_VIEWPORT_PADDING = 8;
|
|
7
7
|
host;
|
|
8
|
+
/** 칩 값 목록 */
|
|
8
9
|
values = [];
|
|
10
|
+
/** 칩별 에러 상태 목록 또는 값으로 에러 여부를 반환하는 함수 */
|
|
9
11
|
errors = [];
|
|
12
|
+
/** 칩별 비활성 상태 목록 또는 값으로 비활성 여부를 반환하는 함수 */
|
|
10
13
|
disabledChips = [];
|
|
14
|
+
/** 입력 필드 크기 */
|
|
11
15
|
size = 'sm';
|
|
16
|
+
/** 비활성 상태 여부 */
|
|
12
17
|
disabled = false;
|
|
18
|
+
/** 입력 placeholder */
|
|
13
19
|
placeholder = '입력해 주세요.';
|
|
20
|
+
/** 폼 연동용 name 속성 */
|
|
14
21
|
name = nanoid();
|
|
22
|
+
/** 유효성 검사 규칙 목록 */
|
|
15
23
|
rules = [];
|
|
24
|
+
/** 에러 상태 여부 */
|
|
16
25
|
error = false;
|
|
26
|
+
/** 입력 초기화 버튼 표시 여부 */
|
|
17
27
|
useReset = false;
|
|
28
|
+
/** 최대 입력 가능한 칩 개수 (없으면 제한 없음) */
|
|
18
29
|
maxCount;
|
|
30
|
+
/** 중복 에러 메시지에 표시할 항목 이름 (없으면 기본 메시지 사용) */
|
|
19
31
|
duplicateLabel;
|
|
32
|
+
/** 자동완성 후보 목록 */
|
|
20
33
|
suggestions = [];
|
|
34
|
+
/** 자동완성 목록 로딩 중 여부 */
|
|
21
35
|
loadingSuggestions = false;
|
|
36
|
+
/** 추천 항목 목록 (입력값이 없을 때 표시) */
|
|
22
37
|
recommendedItems = [];
|
|
38
|
+
/** 추천 항목 로딩 중 여부 */
|
|
23
39
|
loadingRecommendedItems = false;
|
|
24
40
|
// sd-field props
|
|
41
|
+
/** 레이블 텍스트 */
|
|
25
42
|
label = '';
|
|
43
|
+
/** 레이블 너비 */
|
|
26
44
|
labelWidth = '';
|
|
45
|
+
/** 필드 하단 힌트 텍스트 */
|
|
27
46
|
hint = '';
|
|
47
|
+
/** 에러 메시지 */
|
|
28
48
|
errorMessage = '';
|
|
49
|
+
/** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
|
|
29
50
|
width = '';
|
|
51
|
+
/** 필드 상태 (없으면 rules 결과로 자동 결정) */
|
|
30
52
|
status;
|
|
53
|
+
/** 레이블 영역 아이콘 */
|
|
31
54
|
icon = undefined;
|
|
55
|
+
/** 레이블 툴팁 텍스트 */
|
|
32
56
|
labelTooltip = '';
|
|
57
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
33
58
|
labelTooltipProps = null;
|
|
34
59
|
internalValues = [];
|
|
35
60
|
internalErrors = [];
|
|
@@ -96,19 +121,27 @@ export class SdChipInput {
|
|
|
96
121
|
}
|
|
97
122
|
return this.disabledChips?.[index] ?? false;
|
|
98
123
|
}
|
|
124
|
+
/** 칩 목록 변경 시 전체 값 배열을 전달합니다. */
|
|
99
125
|
update;
|
|
126
|
+
/** 입력 필드 포커스 진입 시 발생합니다. */
|
|
100
127
|
focusEvent;
|
|
128
|
+
/** 입력 필드 포커스 이탈 시 발생합니다. */
|
|
101
129
|
blurEvent;
|
|
130
|
+
/** 입력값 변경 시 현재 입력 중인 문자열을 전달합니다. */
|
|
102
131
|
inputEvent;
|
|
132
|
+
/** 유효성 검사를 실행합니다. */
|
|
103
133
|
async sdValidate() {
|
|
104
134
|
return this.formField?.sdValidate();
|
|
105
135
|
}
|
|
136
|
+
/** 값과 유효성 상태를 초기화합니다. */
|
|
106
137
|
async sdReset() {
|
|
107
138
|
return this.formField?.sdReset();
|
|
108
139
|
}
|
|
140
|
+
/** 유효성 상태만 초기화합니다. */
|
|
109
141
|
async sdResetValidate() {
|
|
110
142
|
return this.formField?.sdResetValidation();
|
|
111
143
|
}
|
|
144
|
+
/** 입력 필드에 포커스를 이동합니다. */
|
|
112
145
|
async sdFocus() {
|
|
113
146
|
return this.formField?.sdFocus();
|
|
114
147
|
}
|
|
@@ -189,7 +222,9 @@ export class SdChipInput {
|
|
|
189
222
|
}
|
|
190
223
|
if (event.key === 'Enter' && this.activeSuggestionIndex >= 0) {
|
|
191
224
|
event.preventDefault();
|
|
192
|
-
|
|
225
|
+
const selectedItem = activeItems[this.activeSuggestionIndex];
|
|
226
|
+
if (!(this.internalValues ?? []).includes(selectedItem))
|
|
227
|
+
this.addChip(selectedItem);
|
|
193
228
|
return;
|
|
194
229
|
}
|
|
195
230
|
}
|
|
@@ -249,6 +284,10 @@ export class SdChipInput {
|
|
|
249
284
|
};
|
|
250
285
|
handleContainerClick = () => {
|
|
251
286
|
if (!this.disabled) {
|
|
287
|
+
// 이미 포커스된 상태에서 재클릭 시 handleFocus가 다시 실행되지 않으므로
|
|
288
|
+
// suppress 플래그를 여기서 직접 해제한다.
|
|
289
|
+
this.suppressRecommendations = false;
|
|
290
|
+
this.suppressSuggestions = false;
|
|
252
291
|
this.inputEl?.focus();
|
|
253
292
|
}
|
|
254
293
|
};
|
|
@@ -369,6 +408,7 @@ export class SdChipInput {
|
|
|
369
408
|
};
|
|
370
409
|
const suggestionItemStyle = {
|
|
371
410
|
display: 'flex',
|
|
411
|
+
flexShrink: '0',
|
|
372
412
|
alignItems: 'center',
|
|
373
413
|
gap: CHIP_INPUT_SUGGESTIONS.itemGap,
|
|
374
414
|
padding: `${CHIP_INPUT_SUGGESTIONS.itemPaddingY} ${CHIP_INPUT_SUGGESTIONS.itemPaddingRight} ` +
|
|
@@ -392,7 +432,7 @@ export class SdChipInput {
|
|
|
392
432
|
fontFamily: CHIP_INPUT_SUGGESTIONS.itemFontFamily,
|
|
393
433
|
color: CHIP_INPUT_SUGGESTIONS.emptyColor,
|
|
394
434
|
};
|
|
395
|
-
return (h("sd-field", { key: '
|
|
435
|
+
return (h("sd-field", { key: 'b72e33b6f204ebdf6791cc2f20d01bbb74a4203a', 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: '499114d06f4d375fed5575edd394c501f4d72691', 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: '5910a2d0e0e9cbc472baa1d9c9c3fa07e89fbdcb', class: {
|
|
396
436
|
'sd-chip-input__field': true,
|
|
397
437
|
'sd-chip-input__field--filled': this.inputValue !== '',
|
|
398
438
|
'sd-chip-input__field--empty': this.inputValue === '' && this.internalValues.length > 0 && !this.focused,
|
|
@@ -400,20 +440,38 @@ export class SdChipInput {
|
|
|
400
440
|
? this.inputValue
|
|
401
441
|
: this.internalValues.length === 0
|
|
402
442
|
? this.placeholder
|
|
403
|
-
: '' }, h("input", { key: '
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
443
|
+
: '' }, h("input", { key: '3c1e75d691332b67a500a2d17030d5db191bdeb9', 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 && (
|
|
444
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
445
|
+
h("div", { key: '4aa212280a928b88b85dffa3d453ea8f563e1fe0', class: "sd-chip-input__reset",
|
|
446
|
+
// 리셋 버튼 클릭 시 input blur → portal unmount → refocus → 새 portal mount로
|
|
447
|
+
// 두 wrapper가 body에 잠깐 겹치는 타이밍 이슈를 방지한다.
|
|
448
|
+
onMouseDown: e => e.preventDefault() }, this.inputValue === '' && h("span", { key: 'f7faa45b57d8e38dda8cc98119357f92d914fee4', class: "sd-chip-input__divider" }), this.maxCount != null && (h("span", { key: 'dfde4ea82558414614fb2d817f7bfa1fb5d4bf5f', class: "sd-chip-input__max-count" }, "\uCD5C\uB300 ", this.maxCount, "\uAC1C")), this.useReset && this.internalValues.length > 0 && (h("sd-text-link", { key: '9b43c82c1a5d425e5b187e92b4259e7d919491e3', 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 })))), showDropdown && (h("sd-portal", { key: 'aa205aacbbafcd8c3d9855268637e6da956d4a74', open: showDropdown, parentRef: this.chipInputRef ?? null, viewportPadding: SdChipInput.SUGGESTIONS_VIEWPORT_PADDING, onSdClose: this.closeSuggestions }, h("div", { key: '26814734f202da3a13e695ae1d0c913ea430b888', class: "sd-chip-input__suggestions", role: "listbox", style: suggestionBoxStyle }, isDropdownLoading && (h("div", { key: 'df80d11b79f67dc6cfe6503b258528efa3752265', class: "sd-chip-input__suggestions-empty", style: suggestionEmptyStyle }, "\uBD88\uB7EC\uC624\uB294 \uC911...")), dropdownItems.map((item, i) => {
|
|
449
|
+
const isSelected = (this.internalValues ?? []).includes(item);
|
|
450
|
+
const isActive = i === this.activeSuggestionIndex && !isSelected;
|
|
451
|
+
return (h("div", { key: item, class: {
|
|
452
|
+
'sd-chip-input__suggestion-item': true,
|
|
453
|
+
'sd-chip-input__suggestion-item--active': isActive,
|
|
454
|
+
'sd-chip-input__suggestion-item--selected': isSelected,
|
|
455
|
+
}, role: "option", tabIndex: -1, "aria-selected": isSelected || isActive, "aria-disabled": isSelected ? 'true' : undefined, style: isSelected
|
|
456
|
+
? {
|
|
457
|
+
...suggestionItemStyle,
|
|
458
|
+
color: '#0075FF',
|
|
459
|
+
fontWeight: CHIP_INPUT_SUGGESTIONS.itemFontWeightSelected,
|
|
460
|
+
cursor: 'default',
|
|
461
|
+
}
|
|
462
|
+
: isActive
|
|
463
|
+
? {
|
|
464
|
+
...suggestionItemStyle,
|
|
465
|
+
background: CHIP_INPUT_SUGGESTIONS.itemBgHover,
|
|
466
|
+
color: CHIP_INPUT_SUGGESTIONS.itemColorHover,
|
|
467
|
+
fontWeight: CHIP_INPUT_SUGGESTIONS.itemFontWeightSelected,
|
|
468
|
+
}
|
|
469
|
+
: suggestionItemStyle, onMouseDown: e => {
|
|
470
|
+
e.preventDefault();
|
|
471
|
+
if (!isSelected)
|
|
472
|
+
this.addChip(item);
|
|
473
|
+
} }, h("span", { style: { flex: '1' } }, item), isSelected && (h("sd-icon", { name: "check", size: "12", style: { color: '#0075FF', flexShrink: '0' } }))));
|
|
474
|
+
})))))));
|
|
417
475
|
}
|
|
418
476
|
static get is() { return "sd-chip-input"; }
|
|
419
477
|
static get originalStyleUrls() {
|
|
@@ -440,7 +498,7 @@ export class SdChipInput {
|
|
|
440
498
|
"optional": false,
|
|
441
499
|
"docs": {
|
|
442
500
|
"tags": [],
|
|
443
|
-
"text": ""
|
|
501
|
+
"text": "\uCE69 \uAC12 \uBAA9\uB85D"
|
|
444
502
|
},
|
|
445
503
|
"getter": false,
|
|
446
504
|
"setter": false,
|
|
@@ -458,7 +516,7 @@ export class SdChipInput {
|
|
|
458
516
|
"optional": false,
|
|
459
517
|
"docs": {
|
|
460
518
|
"tags": [],
|
|
461
|
-
"text": ""
|
|
519
|
+
"text": "\uCE69\uBCC4 \uC5D0\uB7EC \uC0C1\uD0DC \uBAA9\uB85D \uB610\uB294 \uAC12\uC73C\uB85C \uC5D0\uB7EC \uC5EC\uBD80\uB97C \uBC18\uD658\uD558\uB294 \uD568\uC218"
|
|
462
520
|
},
|
|
463
521
|
"getter": false,
|
|
464
522
|
"setter": false,
|
|
@@ -476,7 +534,7 @@ export class SdChipInput {
|
|
|
476
534
|
"optional": false,
|
|
477
535
|
"docs": {
|
|
478
536
|
"tags": [],
|
|
479
|
-
"text": ""
|
|
537
|
+
"text": "\uCE69\uBCC4 \uBE44\uD65C\uC131 \uC0C1\uD0DC \uBAA9\uB85D \uB610\uB294 \uAC12\uC73C\uB85C \uBE44\uD65C\uC131 \uC5EC\uBD80\uB97C \uBC18\uD658\uD558\uB294 \uD568\uC218"
|
|
480
538
|
},
|
|
481
539
|
"getter": false,
|
|
482
540
|
"setter": false,
|
|
@@ -501,7 +559,7 @@ export class SdChipInput {
|
|
|
501
559
|
"optional": false,
|
|
502
560
|
"docs": {
|
|
503
561
|
"tags": [],
|
|
504
|
-
"text": ""
|
|
562
|
+
"text": "\uC785\uB825 \uD544\uB4DC \uD06C\uAE30"
|
|
505
563
|
},
|
|
506
564
|
"getter": false,
|
|
507
565
|
"setter": false,
|
|
@@ -521,7 +579,7 @@ export class SdChipInput {
|
|
|
521
579
|
"optional": false,
|
|
522
580
|
"docs": {
|
|
523
581
|
"tags": [],
|
|
524
|
-
"text": ""
|
|
582
|
+
"text": "\uBE44\uD65C\uC131 \uC0C1\uD0DC \uC5EC\uBD80"
|
|
525
583
|
},
|
|
526
584
|
"getter": false,
|
|
527
585
|
"setter": false,
|
|
@@ -541,7 +599,7 @@ export class SdChipInput {
|
|
|
541
599
|
"optional": false,
|
|
542
600
|
"docs": {
|
|
543
601
|
"tags": [],
|
|
544
|
-
"text": ""
|
|
602
|
+
"text": "\uC785\uB825 placeholder"
|
|
545
603
|
},
|
|
546
604
|
"getter": false,
|
|
547
605
|
"setter": false,
|
|
@@ -561,7 +619,7 @@ export class SdChipInput {
|
|
|
561
619
|
"optional": false,
|
|
562
620
|
"docs": {
|
|
563
621
|
"tags": [],
|
|
564
|
-
"text": ""
|
|
622
|
+
"text": "\uD3FC \uC5F0\uB3D9\uC6A9 name \uC18D\uC131"
|
|
565
623
|
},
|
|
566
624
|
"getter": false,
|
|
567
625
|
"setter": false,
|
|
@@ -588,7 +646,7 @@ export class SdChipInput {
|
|
|
588
646
|
"optional": true,
|
|
589
647
|
"docs": {
|
|
590
648
|
"tags": [],
|
|
591
|
-
"text": ""
|
|
649
|
+
"text": "\uC720\uD6A8\uC131 \uAC80\uC0AC \uADDC\uCE59 \uBAA9\uB85D"
|
|
592
650
|
},
|
|
593
651
|
"getter": false,
|
|
594
652
|
"setter": false,
|
|
@@ -606,7 +664,7 @@ export class SdChipInput {
|
|
|
606
664
|
"optional": false,
|
|
607
665
|
"docs": {
|
|
608
666
|
"tags": [],
|
|
609
|
-
"text": ""
|
|
667
|
+
"text": "\uC5D0\uB7EC \uC0C1\uD0DC \uC5EC\uBD80"
|
|
610
668
|
},
|
|
611
669
|
"getter": false,
|
|
612
670
|
"setter": false,
|
|
@@ -626,7 +684,7 @@ export class SdChipInput {
|
|
|
626
684
|
"optional": false,
|
|
627
685
|
"docs": {
|
|
628
686
|
"tags": [],
|
|
629
|
-
"text": ""
|
|
687
|
+
"text": "\uC785\uB825 \uCD08\uAE30\uD654 \uBC84\uD2BC \uD45C\uC2DC \uC5EC\uBD80"
|
|
630
688
|
},
|
|
631
689
|
"getter": false,
|
|
632
690
|
"setter": false,
|
|
@@ -646,7 +704,7 @@ export class SdChipInput {
|
|
|
646
704
|
"optional": true,
|
|
647
705
|
"docs": {
|
|
648
706
|
"tags": [],
|
|
649
|
-
"text": ""
|
|
707
|
+
"text": "\uCD5C\uB300 \uC785\uB825 \uAC00\uB2A5\uD55C \uCE69 \uAC1C\uC218 (\uC5C6\uC73C\uBA74 \uC81C\uD55C \uC5C6\uC74C)"
|
|
650
708
|
},
|
|
651
709
|
"getter": false,
|
|
652
710
|
"setter": false,
|
|
@@ -665,7 +723,7 @@ export class SdChipInput {
|
|
|
665
723
|
"optional": true,
|
|
666
724
|
"docs": {
|
|
667
725
|
"tags": [],
|
|
668
|
-
"text": ""
|
|
726
|
+
"text": "\uC911\uBCF5 \uC5D0\uB7EC \uBA54\uC2DC\uC9C0\uC5D0 \uD45C\uC2DC\uD560 \uD56D\uBAA9 \uC774\uB984 (\uC5C6\uC73C\uBA74 \uAE30\uBCF8 \uBA54\uC2DC\uC9C0 \uC0AC\uC6A9)"
|
|
669
727
|
},
|
|
670
728
|
"getter": false,
|
|
671
729
|
"setter": false,
|
|
@@ -684,7 +742,7 @@ export class SdChipInput {
|
|
|
684
742
|
"optional": false,
|
|
685
743
|
"docs": {
|
|
686
744
|
"tags": [],
|
|
687
|
-
"text": ""
|
|
745
|
+
"text": "\uC790\uB3D9\uC644\uC131 \uD6C4\uBCF4 \uBAA9\uB85D"
|
|
688
746
|
},
|
|
689
747
|
"getter": false,
|
|
690
748
|
"setter": false,
|
|
@@ -702,7 +760,7 @@ export class SdChipInput {
|
|
|
702
760
|
"optional": false,
|
|
703
761
|
"docs": {
|
|
704
762
|
"tags": [],
|
|
705
|
-
"text": ""
|
|
763
|
+
"text": "\uC790\uB3D9\uC644\uC131 \uBAA9\uB85D \uB85C\uB529 \uC911 \uC5EC\uBD80"
|
|
706
764
|
},
|
|
707
765
|
"getter": false,
|
|
708
766
|
"setter": false,
|
|
@@ -722,7 +780,7 @@ export class SdChipInput {
|
|
|
722
780
|
"optional": false,
|
|
723
781
|
"docs": {
|
|
724
782
|
"tags": [],
|
|
725
|
-
"text": ""
|
|
783
|
+
"text": "\uCD94\uCC9C \uD56D\uBAA9 \uBAA9\uB85D (\uC785\uB825\uAC12\uC774 \uC5C6\uC744 \uB54C \uD45C\uC2DC)"
|
|
726
784
|
},
|
|
727
785
|
"getter": false,
|
|
728
786
|
"setter": false,
|
|
@@ -740,7 +798,7 @@ export class SdChipInput {
|
|
|
740
798
|
"optional": false,
|
|
741
799
|
"docs": {
|
|
742
800
|
"tags": [],
|
|
743
|
-
"text": ""
|
|
801
|
+
"text": "\uCD94\uCC9C \uD56D\uBAA9 \uB85C\uB529 \uC911 \uC5EC\uBD80"
|
|
744
802
|
},
|
|
745
803
|
"getter": false,
|
|
746
804
|
"setter": false,
|
|
@@ -760,7 +818,7 @@ export class SdChipInput {
|
|
|
760
818
|
"optional": true,
|
|
761
819
|
"docs": {
|
|
762
820
|
"tags": [],
|
|
763
|
-
"text": ""
|
|
821
|
+
"text": "\uB808\uC774\uBE14 \uD14D\uC2A4\uD2B8"
|
|
764
822
|
},
|
|
765
823
|
"getter": false,
|
|
766
824
|
"setter": false,
|
|
@@ -780,7 +838,7 @@ export class SdChipInput {
|
|
|
780
838
|
"optional": false,
|
|
781
839
|
"docs": {
|
|
782
840
|
"tags": [],
|
|
783
|
-
"text": ""
|
|
841
|
+
"text": "\uB808\uC774\uBE14 \uB108\uBE44"
|
|
784
842
|
},
|
|
785
843
|
"getter": false,
|
|
786
844
|
"setter": false,
|
|
@@ -800,7 +858,7 @@ export class SdChipInput {
|
|
|
800
858
|
"optional": false,
|
|
801
859
|
"docs": {
|
|
802
860
|
"tags": [],
|
|
803
|
-
"text": ""
|
|
861
|
+
"text": "\uD544\uB4DC \uD558\uB2E8 \uD78C\uD2B8 \uD14D\uC2A4\uD2B8"
|
|
804
862
|
},
|
|
805
863
|
"getter": false,
|
|
806
864
|
"setter": false,
|
|
@@ -820,7 +878,7 @@ export class SdChipInput {
|
|
|
820
878
|
"optional": false,
|
|
821
879
|
"docs": {
|
|
822
880
|
"tags": [],
|
|
823
|
-
"text": ""
|
|
881
|
+
"text": "\uC5D0\uB7EC \uBA54\uC2DC\uC9C0"
|
|
824
882
|
},
|
|
825
883
|
"getter": false,
|
|
826
884
|
"setter": false,
|
|
@@ -840,7 +898,7 @@ export class SdChipInput {
|
|
|
840
898
|
"optional": false,
|
|
841
899
|
"docs": {
|
|
842
900
|
"tags": [],
|
|
843
|
-
"text": ""
|
|
901
|
+
"text": "\uD544\uB4DC \uB108\uBE44 (\uC22B\uC790\uBA74 px, \uBB38\uC790\uC5F4\uC774\uBA74 \uADF8\uB300\uB85C \uC801\uC6A9)"
|
|
844
902
|
},
|
|
845
903
|
"getter": false,
|
|
846
904
|
"setter": false,
|
|
@@ -860,7 +918,7 @@ export class SdChipInput {
|
|
|
860
918
|
"optional": true,
|
|
861
919
|
"docs": {
|
|
862
920
|
"tags": [],
|
|
863
|
-
"text": ""
|
|
921
|
+
"text": "\uD544\uB4DC \uC0C1\uD0DC (\uC5C6\uC73C\uBA74 rules \uACB0\uACFC\uB85C \uC790\uB3D9 \uACB0\uC815)"
|
|
864
922
|
},
|
|
865
923
|
"getter": false,
|
|
866
924
|
"setter": false,
|
|
@@ -884,7 +942,7 @@ export class SdChipInput {
|
|
|
884
942
|
"optional": true,
|
|
885
943
|
"docs": {
|
|
886
944
|
"tags": [],
|
|
887
|
-
"text": ""
|
|
945
|
+
"text": "\uB808\uC774\uBE14 \uC601\uC5ED \uC544\uC774\uCF58"
|
|
888
946
|
},
|
|
889
947
|
"getter": false,
|
|
890
948
|
"setter": false,
|
|
@@ -902,7 +960,7 @@ export class SdChipInput {
|
|
|
902
960
|
"optional": false,
|
|
903
961
|
"docs": {
|
|
904
962
|
"tags": [],
|
|
905
|
-
"text": ""
|
|
963
|
+
"text": "\uB808\uC774\uBE14 \uD234\uD301 \uD14D\uC2A4\uD2B8"
|
|
906
964
|
},
|
|
907
965
|
"getter": false,
|
|
908
966
|
"setter": false,
|
|
@@ -929,7 +987,7 @@ export class SdChipInput {
|
|
|
929
987
|
"optional": false,
|
|
930
988
|
"docs": {
|
|
931
989
|
"tags": [],
|
|
932
|
-
"text": ""
|
|
990
|
+
"text": "\uB808\uC774\uBE14 \uD234\uD301 \uC0C1\uC138 \uC635\uC158"
|
|
933
991
|
},
|
|
934
992
|
"getter": false,
|
|
935
993
|
"setter": false,
|
|
@@ -958,7 +1016,7 @@ export class SdChipInput {
|
|
|
958
1016
|
"composed": true,
|
|
959
1017
|
"docs": {
|
|
960
1018
|
"tags": [],
|
|
961
|
-
"text": ""
|
|
1019
|
+
"text": "\uCE69 \uBAA9\uB85D \uBCC0\uACBD \uC2DC \uC804\uCCB4 \uAC12 \uBC30\uC5F4\uC744 \uC804\uB2EC\uD569\uB2C8\uB2E4."
|
|
962
1020
|
},
|
|
963
1021
|
"complexType": {
|
|
964
1022
|
"original": "string[]",
|
|
@@ -973,7 +1031,7 @@ export class SdChipInput {
|
|
|
973
1031
|
"composed": true,
|
|
974
1032
|
"docs": {
|
|
975
1033
|
"tags": [],
|
|
976
|
-
"text": ""
|
|
1034
|
+
"text": "\uC785\uB825 \uD544\uB4DC \uD3EC\uCEE4\uC2A4 \uC9C4\uC785 \uC2DC \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
977
1035
|
},
|
|
978
1036
|
"complexType": {
|
|
979
1037
|
"original": "void",
|
|
@@ -988,7 +1046,7 @@ export class SdChipInput {
|
|
|
988
1046
|
"composed": true,
|
|
989
1047
|
"docs": {
|
|
990
1048
|
"tags": [],
|
|
991
|
-
"text": ""
|
|
1049
|
+
"text": "\uC785\uB825 \uD544\uB4DC \uD3EC\uCEE4\uC2A4 \uC774\uD0C8 \uC2DC \uBC1C\uC0DD\uD569\uB2C8\uB2E4."
|
|
992
1050
|
},
|
|
993
1051
|
"complexType": {
|
|
994
1052
|
"original": "void",
|
|
@@ -1003,7 +1061,7 @@ export class SdChipInput {
|
|
|
1003
1061
|
"composed": true,
|
|
1004
1062
|
"docs": {
|
|
1005
1063
|
"tags": [],
|
|
1006
|
-
"text": ""
|
|
1064
|
+
"text": "\uC785\uB825\uAC12 \uBCC0\uACBD \uC2DC \uD604\uC7AC \uC785\uB825 \uC911\uC778 \uBB38\uC790\uC5F4\uC744 \uC804\uB2EC\uD569\uB2C8\uB2E4."
|
|
1007
1065
|
},
|
|
1008
1066
|
"complexType": {
|
|
1009
1067
|
"original": "string",
|
|
@@ -1027,7 +1085,7 @@ export class SdChipInput {
|
|
|
1027
1085
|
"return": "Promise<boolean | undefined>"
|
|
1028
1086
|
},
|
|
1029
1087
|
"docs": {
|
|
1030
|
-
"text": "",
|
|
1088
|
+
"text": "\uC720\uD6A8\uC131 \uAC80\uC0AC\uB97C \uC2E4\uD589\uD569\uB2C8\uB2E4.",
|
|
1031
1089
|
"tags": []
|
|
1032
1090
|
}
|
|
1033
1091
|
},
|
|
@@ -1044,7 +1102,7 @@ export class SdChipInput {
|
|
|
1044
1102
|
"return": "Promise<void | undefined>"
|
|
1045
1103
|
},
|
|
1046
1104
|
"docs": {
|
|
1047
|
-
"text": "",
|
|
1105
|
+
"text": "\uAC12\uACFC \uC720\uD6A8\uC131 \uC0C1\uD0DC\uB97C \uCD08\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
1048
1106
|
"tags": []
|
|
1049
1107
|
}
|
|
1050
1108
|
},
|
|
@@ -1061,7 +1119,7 @@ export class SdChipInput {
|
|
|
1061
1119
|
"return": "Promise<void | undefined>"
|
|
1062
1120
|
},
|
|
1063
1121
|
"docs": {
|
|
1064
|
-
"text": "",
|
|
1122
|
+
"text": "\uC720\uD6A8\uC131 \uC0C1\uD0DC\uB9CC \uCD08\uAE30\uD654\uD569\uB2C8\uB2E4.",
|
|
1065
1123
|
"tags": []
|
|
1066
1124
|
}
|
|
1067
1125
|
},
|
|
@@ -1078,7 +1136,7 @@ export class SdChipInput {
|
|
|
1078
1136
|
"return": "Promise<void | undefined>"
|
|
1079
1137
|
},
|
|
1080
1138
|
"docs": {
|
|
1081
|
-
"text": "",
|
|
1139
|
+
"text": "\uC785\uB825 \uD544\uB4DC\uC5D0 \uD3EC\uCEE4\uC2A4\uB97C \uC774\uB3D9\uD569\uB2C8\uB2E4.",
|
|
1082
1140
|
"tags": []
|
|
1083
1141
|
}
|
|
1084
1142
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import { CIRCLE_PROGRESS_CIRCUMFERENCE, CIRCLE_PROGRESS_COLOR_MAP, CIRCLE_PROGRESS_LABEL_COLOR, CIRCLE_PROGRESS_PERCENT_ZERO_COLOR, CIRCLE_PROGRESS_RADIUS, CIRCLE_PROGRESS_STROKE_WIDTH, CIRCLE_PROGRESS_VIEWBOX_SIZE, } from "./sd-circle-progress.config";
|
|
3
3
|
export class SdCircleProgress {
|
|
4
|
+
/** 불확정 상태 여부 (true면 value 무시하고 스피너처럼 애니메이션) */
|
|
4
5
|
indeterminate = false;
|
|
6
|
+
/** 진행률 (0~100) */
|
|
5
7
|
value = 0;
|
|
8
|
+
/** 색상 테마 */
|
|
6
9
|
type = 'primary';
|
|
10
|
+
/** 원 하단에 표시할 레이블 텍스트 */
|
|
7
11
|
label;
|
|
8
12
|
get clampedValue() {
|
|
9
13
|
if (!Number.isFinite(this.value))
|
|
@@ -27,7 +31,7 @@ export class SdCircleProgress {
|
|
|
27
31
|
}
|
|
28
32
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
29
33
|
const showPercent = !this.indeterminate;
|
|
30
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '1af8807d6ce19c4326e67ae55bd40620b83e9435', style: hostStyle }, h("svg", { key: '21c2c5898ddf6f78b03964f3365e82382f90ce48', 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: '1d9b2e95f767008af2a5d836f16e6e47e751677a', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: '1c8f4a5b1ae8f643debf68452317d0bcc0b4ab36', 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: '1b15cdd56b3ac0d254d4a5304f40d3c5b1710b8d', class: "sd-circle-progress__percent" }, Math.round(this.clampedValue), "%")), this.label && h("span", { key: 'e830db48529d87ddf788834d8731a576582662af', class: "sd-circle-progress__label" }, this.label)));
|
|
31
35
|
}
|
|
32
36
|
static get is() { return "sd-circle-progress"; }
|
|
33
37
|
static get originalStyleUrls() {
|
|
@@ -54,7 +58,7 @@ export class SdCircleProgress {
|
|
|
54
58
|
"optional": false,
|
|
55
59
|
"docs": {
|
|
56
60
|
"tags": [],
|
|
57
|
-
"text": ""
|
|
61
|
+
"text": "\uBD88\uD655\uC815 \uC0C1\uD0DC \uC5EC\uBD80 (true\uBA74 value \uBB34\uC2DC\uD558\uACE0 \uC2A4\uD53C\uB108\uCC98\uB7FC \uC560\uB2C8\uBA54\uC774\uC158)"
|
|
58
62
|
},
|
|
59
63
|
"getter": false,
|
|
60
64
|
"setter": false,
|
|
@@ -74,7 +78,7 @@ export class SdCircleProgress {
|
|
|
74
78
|
"optional": false,
|
|
75
79
|
"docs": {
|
|
76
80
|
"tags": [],
|
|
77
|
-
"text": ""
|
|
81
|
+
"text": "\uC9C4\uD589\uB960 (0~100)"
|
|
78
82
|
},
|
|
79
83
|
"getter": false,
|
|
80
84
|
"setter": false,
|
|
@@ -101,7 +105,7 @@ export class SdCircleProgress {
|
|
|
101
105
|
"optional": false,
|
|
102
106
|
"docs": {
|
|
103
107
|
"tags": [],
|
|
104
|
-
"text": ""
|
|
108
|
+
"text": "\uC0C9\uC0C1 \uD14C\uB9C8"
|
|
105
109
|
},
|
|
106
110
|
"getter": false,
|
|
107
111
|
"setter": false,
|
|
@@ -121,7 +125,7 @@ export class SdCircleProgress {
|
|
|
121
125
|
"optional": true,
|
|
122
126
|
"docs": {
|
|
123
127
|
"tags": [],
|
|
124
|
-
"text": ""
|
|
128
|
+
"text": "\uC6D0 \uD558\uB2E8\uC5D0 \uD45C\uC2DC\uD560 \uB808\uC774\uBE14 \uD14D\uC2A4\uD2B8"
|
|
125
129
|
},
|
|
126
130
|
"getter": false,
|
|
127
131
|
"setter": false,
|