@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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
var index$1 = require('./index-BUvXpPc3.js');
|
|
5
5
|
var sdSelect_config = require('./sd-select.config-C9Ohe1QA.js');
|
|
6
6
|
var sanitizeInlineHtml = require('./sanitize-inline-html-CRCAeQ46.js');
|
|
@@ -18,29 +18,53 @@ const SdSelect = class {
|
|
|
18
18
|
static PORTAL_OFFSET_Y = 4;
|
|
19
19
|
static CLOSE_ANIMATION_DURATION = 150;
|
|
20
20
|
get el() { return index.getElement(this); }
|
|
21
|
+
/** 셀렉트 타입 (단일/다중/계층) */
|
|
21
22
|
type = 'default';
|
|
23
|
+
/** 현재 선택된 값 */
|
|
22
24
|
value = null;
|
|
25
|
+
/** 선택 옵션 목록 */
|
|
23
26
|
options = [];
|
|
27
|
+
/** 값이 없을 때 표시할 플레이스홀더 */
|
|
24
28
|
placeholder = '선택';
|
|
29
|
+
/** 드롭다운 너비 (없으면 트리거 너비로 자동 맞춤) */
|
|
25
30
|
dropdownWidth = '';
|
|
31
|
+
/** 드롭다운 최대 너비 */
|
|
26
32
|
maxDropdownWidth = '640px';
|
|
33
|
+
/** 드롭다운 최대 높이 */
|
|
27
34
|
dropdownHeight = '260px';
|
|
35
|
+
/** 비활성 상태 여부 */
|
|
28
36
|
disabled = false;
|
|
37
|
+
/** 레이블 텍스트 */
|
|
29
38
|
label = '';
|
|
39
|
+
/** 레이블 너비 */
|
|
30
40
|
labelWidth = '';
|
|
41
|
+
/** 필드 우측 어드온 레이블 */
|
|
31
42
|
addonLabel = '';
|
|
43
|
+
/** 어드온 정렬 방향 */
|
|
32
44
|
addonAlign = 'start';
|
|
45
|
+
/** 에러 상태 여부 */
|
|
33
46
|
error = false;
|
|
47
|
+
/** 필드 하단 힌트 텍스트 */
|
|
34
48
|
hint = '';
|
|
49
|
+
/** 에러 메시지 */
|
|
35
50
|
errorMessage = '';
|
|
51
|
+
/** 유효성 검사 규칙 목록 */
|
|
36
52
|
rules = [];
|
|
53
|
+
/** 레이블 영역 아이콘 */
|
|
37
54
|
icon = undefined;
|
|
55
|
+
/** 레이블 툴팁 텍스트 */
|
|
38
56
|
labelTooltip = '';
|
|
57
|
+
/** 레이블 툴팁 상세 옵션 */
|
|
39
58
|
labelTooltipProps = null;
|
|
59
|
+
/** true이면 value로 SelectOption 대신 원시값(string|number) 방출 */
|
|
40
60
|
emitValue = false;
|
|
61
|
+
/** 필드 너비 */
|
|
41
62
|
width = '';
|
|
63
|
+
/** 드롭다운 내 검색 입력 표시 여부 */
|
|
42
64
|
useSearch = false;
|
|
65
|
+
/** 전체 선택 시 표시할 레이블 */
|
|
43
66
|
allSelectedLabel = '전체';
|
|
67
|
+
/** 전체 선택 체크박스 표시 여부 */
|
|
44
68
|
useSelectAll = false;
|
|
45
69
|
isOpen = false;
|
|
46
70
|
isAnimatingOut = false;
|
|
@@ -49,13 +73,17 @@ const SdSelect = class {
|
|
|
49
73
|
resolvedMaxDropdownWidth = '640px';
|
|
50
74
|
focused = false;
|
|
51
75
|
hovered = false;
|
|
76
|
+
/** 선택 값이 변경될 때 발생합니다. */
|
|
52
77
|
update;
|
|
78
|
+
/** 드롭다운 열림/닫힘 상태가 바뀔 때 발생합니다. */
|
|
53
79
|
dropDownShow;
|
|
80
|
+
/** 셀렉트 트리거에 포커스를 이동합니다. */
|
|
54
81
|
async sdFocus() {
|
|
55
82
|
if (this.disabled)
|
|
56
83
|
return;
|
|
57
84
|
await this.triggerComponentRef?.sdFocus();
|
|
58
85
|
}
|
|
86
|
+
/** 드롭다운을 엽니다. */
|
|
59
87
|
async sdOpen() {
|
|
60
88
|
// sdFocus 직후 호출 시 트리거 ref/레이아웃이 안정될 때까지 한 틱 대기
|
|
61
89
|
await new Promise(resolve => setTimeout(resolve, 0));
|
|
@@ -70,6 +98,7 @@ const SdSelect = class {
|
|
|
70
98
|
triggerRef;
|
|
71
99
|
triggerComponentRef;
|
|
72
100
|
closeAnimationTimer;
|
|
101
|
+
/** 폼 연동용 name 속성 */
|
|
73
102
|
name = index$1.nanoid();
|
|
74
103
|
triggerHasFocus = false;
|
|
75
104
|
watchIsOpen(newValue) {
|
|
@@ -267,15 +296,15 @@ const SdSelect = class {
|
|
|
267
296
|
this.closeDropdown();
|
|
268
297
|
},
|
|
269
298
|
};
|
|
270
|
-
return (index.h("sd-field", { key: '
|
|
299
|
+
return (index.h("sd-field", { key: '3387dc16a6f54bfae652338c71c4c0e1553828c9', 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
271
300
|
this.hovered = true;
|
|
272
301
|
}, onMouseLeave: () => {
|
|
273
302
|
this.hovered = false;
|
|
274
|
-
} }, index.h("div", { key: '
|
|
303
|
+
} }, index.h("div", { key: '124325f8f6882a3c9ee1a1795ee969f13d67dfe2', class: "sd-select", ref: el => {
|
|
275
304
|
this.triggerRef = el;
|
|
276
|
-
} }, index.h("sd-select-trigger", { key: '
|
|
305
|
+
} }, index.h("sd-select-trigger", { key: '2e0e44ae666282d3931f9889650a7999929a312b', ref: el => {
|
|
277
306
|
this.triggerComponentRef = el;
|
|
278
|
-
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: '
|
|
307
|
+
}, displayText: this.displayText, placeholder: this.placeholder ?? '선택', disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: 'b6e97e43c5ea3a06fbb2976dab52d4f544822ae0', ...portalProps }, index.h("sd-select-listbox", { key: '3d8a01c54667149507db2757d81813d2f285b32d', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.dropdownWidth || this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
279
308
|
}
|
|
280
309
|
static get watchers() { return {
|
|
281
310
|
"isOpen": [{
|
|
@@ -292,18 +321,28 @@ const SdSelectListbox = class {
|
|
|
292
321
|
index.registerInstance(this, hostRef);
|
|
293
322
|
this.optionSelect = index.createEvent(this, "sdOptionSelect", 7);
|
|
294
323
|
}
|
|
324
|
+
/** 셀렉트 타입 */
|
|
295
325
|
type = 'default';
|
|
326
|
+
/** 옵션 목록 */
|
|
296
327
|
options = [];
|
|
328
|
+
/** 현재 선택 값 */
|
|
297
329
|
value = null;
|
|
330
|
+
/** 값만 emit할지 여부 */
|
|
298
331
|
emitValue = false;
|
|
332
|
+
/** 검색 기능 사용 여부 */
|
|
299
333
|
useSearch = false;
|
|
334
|
+
/** 전체 선택 기능 사용 여부 */
|
|
300
335
|
useSelectAll = false;
|
|
336
|
+
/** 트리거 너비 (드롭다운 최소 너비) */
|
|
301
337
|
triggerWidth = '200px';
|
|
338
|
+
/** 드롭다운 최대 너비 */
|
|
302
339
|
maxWidth = '640px';
|
|
340
|
+
/** 드롭다운 최대 높이 */
|
|
303
341
|
maxHeight = '260px';
|
|
304
342
|
searchKeyword = '';
|
|
305
343
|
isScrolled = false;
|
|
306
344
|
focusedIndex = -1;
|
|
345
|
+
/** 옵션 선택 시 발생합니다. */
|
|
307
346
|
optionSelect;
|
|
308
347
|
listEl;
|
|
309
348
|
lastScrolledIndex = -1;
|
|
@@ -642,9 +681,9 @@ const SdSelectListbox = class {
|
|
|
642
681
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
643
682
|
'--listbox-radius': `${sdSelect_config.LIST_BOX_LAYOUT.radius}px`,
|
|
644
683
|
};
|
|
645
|
-
return (index.h("div", { key: '
|
|
684
|
+
return (index.h("div", { key: '6ca1107a8aadc1fbae26f3d8d3385b355981b65e', class: "sd-select-listbox", style: cssVars }, this.showSearch && (index.h("sd-select-list-item-search", { key: '8612b45a4e9b7d2701b8decd6865ebb50d6fcaa3', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), index.h("div", { key: 'c02c9c1d96176f94d2f83c66ad3e7cc0946c0270', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
646
685
|
this.listEl = el;
|
|
647
|
-
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: '
|
|
686
|
+
} }, this.showSelectAll && (index.h("sd-select-list-item", { key: 'f4fe1769d14812ba63fb73ff21ebfdaaf9d76409', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (index.h("div", { class: "sd-select-listbox__empty" }, sdSelect_config.EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (index.h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
648
687
|
}
|
|
649
688
|
static get watchers() { return {
|
|
650
689
|
"searchKeyword": [{
|
|
@@ -663,14 +702,22 @@ const SdSelectTrigger = class {
|
|
|
663
702
|
this.triggerFocus = index.createEvent(this, "sdTriggerFocus", 7);
|
|
664
703
|
this.triggerBlur = index.createEvent(this, "sdTriggerBlur", 7);
|
|
665
704
|
}
|
|
705
|
+
/** 표시할 선택된 값 텍스트 */
|
|
666
706
|
displayText = '';
|
|
707
|
+
/** 미선택 상태 플레이스홀더 */
|
|
667
708
|
placeholder = '선택';
|
|
709
|
+
/** 비활성 상태 여부 */
|
|
668
710
|
disabled = false;
|
|
711
|
+
/** 드롭다운 열림 상태 */
|
|
669
712
|
isOpen = false;
|
|
713
|
+
/** 트리거 클릭 시 발생합니다. */
|
|
670
714
|
triggerClick;
|
|
715
|
+
/** 트리거 포커스 시 발생합니다. */
|
|
671
716
|
triggerFocus;
|
|
717
|
+
/** 트리거 블러 시 발생합니다. */
|
|
672
718
|
triggerBlur;
|
|
673
719
|
triggerEl;
|
|
720
|
+
/** 트리거 엘리먼트에 포커스를 이동합니다. */
|
|
674
721
|
async sdFocus() {
|
|
675
722
|
if (this.disabled)
|
|
676
723
|
return;
|
|
@@ -704,7 +751,7 @@ const SdSelectTrigger = class {
|
|
|
704
751
|
? sdSelect_config.SELECT_COLORS.icon.disabled
|
|
705
752
|
: sdSelect_config.SELECT_COLORS.icon.default,
|
|
706
753
|
};
|
|
707
|
-
return (index.h("div", { key: '
|
|
754
|
+
return (index.h("div", { key: '7f5940ce19feb2d3ae9b2cbb6b5fdeb6d0151f61', ref: el => {
|
|
708
755
|
this.triggerEl = el;
|
|
709
756
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
710
757
|
'sd-select-trigger': true,
|
|
@@ -715,7 +762,7 @@ const SdSelectTrigger = class {
|
|
|
715
762
|
e.preventDefault();
|
|
716
763
|
this.handleClick();
|
|
717
764
|
}
|
|
718
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: '
|
|
765
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, index.h("div", { key: 'b50dea3450ee6fd2bf30811cc33facf00761f0d1', class: "sd-select-trigger__content" }, hasValue && sdSelect_config.isHtmlLabel(this.displayText) ? (index.h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml.sanitizeInlineHtml(this.displayText)) })) : (index.h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), index.h("sd-icon", { key: '778b3d1c738951f9a18950b668a34a1bc36006ca', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
719
766
|
'sd-select-trigger__icon': true,
|
|
720
767
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
721
768
|
} }))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
|
|
5
5
|
var switchTokens = {
|
|
6
6
|
"switch": {
|
|
@@ -65,9 +65,13 @@ const SdSwitch = class {
|
|
|
65
65
|
index.registerInstance(this, hostRef);
|
|
66
66
|
this.change = index.createEvent(this, "sdUpdate", 7);
|
|
67
67
|
}
|
|
68
|
+
/** 현재 on/off 상태 */
|
|
68
69
|
value = false;
|
|
70
|
+
/** 표시할 라벨 텍스트 */
|
|
69
71
|
label = '';
|
|
72
|
+
/** 비활성 상태 여부 */
|
|
70
73
|
disabled = false;
|
|
74
|
+
/** 상태가 변경될 때 발생합니다. */
|
|
71
75
|
change;
|
|
72
76
|
get switchClasses() {
|
|
73
77
|
const classes = ['sd-switch', this.value ? 'sd-switch--on' : 'sd-switch--off'];
|
|
@@ -105,7 +109,7 @@ const SdSwitch = class {
|
|
|
105
109
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
106
110
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
107
111
|
};
|
|
108
|
-
return (index.h("label", { key: '
|
|
112
|
+
return (index.h("label", { key: '2cbee35194a8218f1526ecd26d0ff0cc660ed5fb', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, index.h("input", { key: '8c9a330a7b69035ace0644f0a2cab8f6f8672bfd', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), index.h("div", { key: '738a28fb9c26628d6b67f03d0b75f4155ad85966', class: "sd-switch__track" }, index.h("div", { key: '91b7bac6c4e48d1b5b1331713620a132e9921906', class: "sd-switch__knob" })), this.label && index.h("span", { key: 'a9cdfb08c240f3d6a15bef3e119c0c02f3fe3462', class: "sd-switch__label" }, this.label)));
|
|
109
113
|
}
|
|
110
114
|
};
|
|
111
115
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
var sdTable_config = require('./sd-table.config-B7MuRLoR.js');
|
|
6
6
|
require('./component.table-DIxmbGBT.js');
|
|
@@ -32,28 +32,48 @@ const SdTable = class {
|
|
|
32
32
|
}
|
|
33
33
|
static DEFAULT_NO_DATA_LABEL = '데이터가 없습니다.';
|
|
34
34
|
get el() { return index.getElement(this); }
|
|
35
|
+
/** 테이블 고유 ID (자식 슬롯 매핑에 사용) */
|
|
35
36
|
tableId = nanoid(8);
|
|
36
37
|
fallbackTableId = nanoid(8);
|
|
38
|
+
/** 컬럼 정의 목록 */
|
|
37
39
|
columns = [];
|
|
40
|
+
/** 행 데이터 배열 */
|
|
38
41
|
rows;
|
|
42
|
+
/** 현재 선택된 행 목록 */
|
|
39
43
|
selected = [];
|
|
44
|
+
/** 행 고유 식별 필드명 */
|
|
40
45
|
rowKey = 'id';
|
|
46
|
+
/** 행 선택(체크박스) 기능 활성화 여부 */
|
|
41
47
|
selectable = false;
|
|
48
|
+
/** 컬럼 너비 조절 기능 활성화 여부 */
|
|
42
49
|
resizable = false;
|
|
50
|
+
/** 테이블 너비 */
|
|
43
51
|
width;
|
|
52
|
+
/** 테이블 높이 */
|
|
44
53
|
height;
|
|
54
|
+
/** 헤더 고정(sticky) 여부 */
|
|
45
55
|
stickyHeader = false;
|
|
56
|
+
/** 고정할 좌우 컬럼 수 */
|
|
46
57
|
stickyColumn = { left: 0, right: 0 };
|
|
58
|
+
/** border-radius 제어 */
|
|
47
59
|
radius = 'default';
|
|
60
|
+
/** 데이터 없을 때 표시할 메시지 */
|
|
48
61
|
noDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
49
62
|
resolvedNoDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
63
|
+
/** 로딩 스피너 표시 여부 */
|
|
50
64
|
isLoading = false;
|
|
65
|
+
/** 페이지네이션 옵션 */
|
|
51
66
|
pagination;
|
|
67
|
+
/** 테이블 내부에서 페이지네이션을 직접 관리할지 여부 */
|
|
52
68
|
useInternalPagination = false;
|
|
69
|
+
/** 페이지당 행 수 선택 셀렉트 표시 여부 */
|
|
53
70
|
useRowsPerPageSelect = false;
|
|
71
|
+
/** 행 높이를 줄인 조밀 모드 여부 */
|
|
54
72
|
dense = false;
|
|
55
73
|
// ─── Virtual Scroll ───────────────────────────────────────────────
|
|
74
|
+
/** 가상 스크롤 사용 여부 */
|
|
56
75
|
useVirtualScroll = false;
|
|
76
|
+
/** 가상 스크롤 행 높이 (px, 없으면 dense 여부에 따라 자동) */
|
|
57
77
|
rowHeight;
|
|
58
78
|
get effectiveRowHeight() {
|
|
59
79
|
if (this.rowHeight != null)
|
|
@@ -62,19 +82,27 @@ const SdTable = class {
|
|
|
62
82
|
? Number(sdTable_config.TABLE_BODY_LAYOUT.dense.height)
|
|
63
83
|
: Number(sdTable_config.TABLE_BODY_LAYOUT.default.height);
|
|
64
84
|
}
|
|
85
|
+
/** 가상 스크롤 상하 버퍼 행 수 */
|
|
65
86
|
virtualBuffer = 5;
|
|
87
|
+
/** 가상 스크롤 끝 도달 감지 임계값 (마지막 N행 이내에 들어오면 이벤트 발생) */
|
|
66
88
|
virtualEndThreshold = 10;
|
|
67
89
|
// ─────────────────────────────────────────────────────────────────
|
|
90
|
+
/** 페이지당 행 수 선택 옵션 목록 */
|
|
68
91
|
rowsPerPageOption = [
|
|
69
92
|
{ label: '10개씩 보기', value: 10 },
|
|
70
93
|
{ label: '25개씩 보기', value: 25 },
|
|
71
94
|
{ label: '50개씩 보기', value: 50 },
|
|
72
95
|
{ label: '100개씩 보기', value: 100 },
|
|
73
96
|
];
|
|
97
|
+
/** 행 선택 상태가 변경될 때 선택된 행 목록을 전달합니다. */
|
|
74
98
|
sdSelectChange;
|
|
99
|
+
/** 페이지가 변경될 때 새 페이지 번호를 전달합니다. */
|
|
75
100
|
sdPageChange;
|
|
101
|
+
/** 페이지당 행 수가 변경될 때 발생합니다. */
|
|
76
102
|
sdRowsPerPageChange;
|
|
103
|
+
/** 가상 스크롤 가시 범위가 변경될 때 발생합니다. */
|
|
77
104
|
sdVirtualUpdate;
|
|
105
|
+
/** 가상 스크롤이 끝 임계값에 도달할 때 발생합니다. */
|
|
78
106
|
sdVirtualReachEnd;
|
|
79
107
|
currentPage = 1;
|
|
80
108
|
innerRowsPerPage = 10;
|
|
@@ -479,6 +507,7 @@ const SdTable = class {
|
|
|
479
507
|
isRowSelectedSync(row) {
|
|
480
508
|
return Array.from(this.innerSelected).some(r => r[this.rowKey ?? 'id'] === row[this.rowKey ?? 'id']);
|
|
481
509
|
}
|
|
510
|
+
/** 행이 선택되어 있는지 확인합니다. */
|
|
482
511
|
async isRowSelected(row) {
|
|
483
512
|
return this.isRowSelectedSync(row);
|
|
484
513
|
}
|
|
@@ -495,6 +524,7 @@ const SdTable = class {
|
|
|
495
524
|
this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
496
525
|
this.refreshChildrenSelection();
|
|
497
526
|
}
|
|
527
|
+
/** 행 선택 상태를 토글합니다. */
|
|
498
528
|
async updateRowSelect(row) {
|
|
499
529
|
this.updateRowSelectSync(row);
|
|
500
530
|
}
|
|
@@ -511,6 +541,7 @@ const SdTable = class {
|
|
|
511
541
|
this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
512
542
|
this.refreshChildrenSelection();
|
|
513
543
|
}
|
|
544
|
+
/** 전체 행 선택/해제를 처리합니다. */
|
|
514
545
|
async toggleSelectAll(checked, rows) {
|
|
515
546
|
this.toggleSelectAllSync(checked, rows);
|
|
516
547
|
}
|
|
@@ -523,6 +554,7 @@ const SdTable = class {
|
|
|
523
554
|
return true;
|
|
524
555
|
return null; // indeterminate
|
|
525
556
|
}
|
|
557
|
+
/** 전체 선택 체크 상태를 반환합니다 (true/false/null=indeterminate). */
|
|
526
558
|
async getIsAllChecked(rows) {
|
|
527
559
|
return this.getIsAllCheckedSync(rows);
|
|
528
560
|
}
|
|
@@ -613,6 +645,7 @@ const SdTable = class {
|
|
|
613
645
|
}
|
|
614
646
|
return base;
|
|
615
647
|
}
|
|
648
|
+
/** 지정한 컬럼 인덱스의 sticky 스타일 객체를 반환합니다. */
|
|
616
649
|
async getStickyStyle(colIdx) {
|
|
617
650
|
return this.getStickyStyleSync(colIdx);
|
|
618
651
|
}
|
|
@@ -755,6 +788,7 @@ const SdTable = class {
|
|
|
755
788
|
this.propagateVirtualUpdate(true);
|
|
756
789
|
}
|
|
757
790
|
}
|
|
791
|
+
/** 가상 스크롤 총 행 수를 설정합니다. */
|
|
758
792
|
async setRowCount(count) {
|
|
759
793
|
this.setRowCountSync(count);
|
|
760
794
|
}
|
|
@@ -782,6 +816,7 @@ const SdTable = class {
|
|
|
782
816
|
rowsPerPage: this.innerRowsPerPage,
|
|
783
817
|
};
|
|
784
818
|
}
|
|
819
|
+
/** 현재 페이지네이션 상태(startIndex, endIndex, currentPage, rowsPerPage)를 반환합니다. */
|
|
785
820
|
async getPaginationInfo() {
|
|
786
821
|
return this.getPaginationInfoSync();
|
|
787
822
|
}
|
|
@@ -845,25 +880,25 @@ const SdTable = class {
|
|
|
845
880
|
'--table-selectable-width': `${sdTable_config.TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
846
881
|
'--table-host-height': hostHeight,
|
|
847
882
|
};
|
|
848
|
-
return (index.h(index.Host, { key: '
|
|
883
|
+
return (index.h(index.Host, { key: '2606b0d7fc3657a8021a6dfc64672996b756f762', style: hostStyle }, index.h("div", { key: '4def416edfe630ead35b80cb2f04081a89740f62', class: "sd-table__container", style: {
|
|
849
884
|
'--table-width': this.width,
|
|
850
885
|
'--pagination-height': `${paginationHeight}px`,
|
|
851
|
-
} }, index.h("div", { key: '
|
|
886
|
+
} }, index.h("div", { key: '316a359f2be84895719f452e056dcd2f54cd5b56', class: {
|
|
852
887
|
'sd-table__wrapper': true,
|
|
853
888
|
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
854
889
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
855
|
-
} }, index.h("div", { key: '
|
|
890
|
+
} }, index.h("div", { key: 'e798b58104f56b3250a7d74261a8c320a8049f28', class: {
|
|
856
891
|
'sd-table__scroll-container': true,
|
|
857
892
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
858
893
|
'sd-table__scroll-container--no-data': isNoData,
|
|
859
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
894
|
+
} }, this.isLoading && (index.h("div", { key: 'af91877075c8d4ed8b608bdfdc7f04bd844f5574', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: '2422c7020046fa468dbaaf34220230737cb6b02e', indeterminate: true }))), isNoData && (index.h(index.h.Fragment, null, index.h("div", { key: 'bd5c2237d8c3a34cc4bf12a187f471e22ce02efd', class: "sd-table__no-data-header-overlay" }), index.h("div", { key: '1e0da67564879a175e89a3482195742b1b4451dc', class: "sd-table__no-data" }, index.h("div", { key: '391bc76e748d64b84c39de669396b2f5f288e5a1', class: "sd-table__no-data-content", ref: el => {
|
|
860
895
|
this.noDataContentEl = el;
|
|
861
896
|
if (el)
|
|
862
897
|
this.syncNoDataContentObserver();
|
|
863
|
-
} }, index.h("slot", { key: '
|
|
898
|
+
} }, index.h("slot", { key: '3e2e26f4951d9b834ae811906c137a78067fecab', name: "no-data" }, index.h("span", { key: '54ed0371d60f5312376d8ffab50efd9ec0947729' }, this.resolvedNoDataLabel)))))), index.h("table", { key: '46cab11834ca3f5aa9010bd6f603d301b2a54c9c', class: this.tableClasses }, this.autoThead ? (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-thead", { rows: this.rows ?? [] }))) : (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
864
899
|
this.pagination.rowsPerPage > 0 &&
|
|
865
900
|
this.rowCount > 0 &&
|
|
866
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
901
|
+
!this.useVirtualScroll && (index.h("div", { key: 'b9c738172d4e2993f15f6a7e051406d3b7e8d568', class: "sd-table__pagination" }, index.h("sd-pagination", { key: '62c199e61dd2010f2c19aabb3599d75a561ef83d', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (index.h("sd-select", { key: '5f305858818e720bf5a53499777d2f5aac843487', value: this.useInternalPagination
|
|
867
902
|
? this.innerRowsPerPage
|
|
868
903
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
869
904
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
|
|
5
5
|
const tab = {
|
|
6
6
|
main: {
|
|
@@ -130,11 +130,17 @@ const SdTabs = class {
|
|
|
130
130
|
index.registerInstance(this, hostRef);
|
|
131
131
|
this.update = index.createEvent(this, "sdUpdate", 7);
|
|
132
132
|
}
|
|
133
|
+
/** 현재 선택된 탭 value */
|
|
133
134
|
value;
|
|
135
|
+
/** 탭 옵션 목록 */
|
|
134
136
|
tabs = [];
|
|
137
|
+
/** 탭 크기 */
|
|
135
138
|
size = 'md';
|
|
139
|
+
/** true이면 서브 탭 스타일 적용 */
|
|
136
140
|
isSub = false;
|
|
141
|
+
/** true이면 탭을 세로로 배치 */
|
|
137
142
|
vertical = false;
|
|
143
|
+
/** 탭이 변경될 때 새 value를 전달합니다. */
|
|
138
144
|
update;
|
|
139
145
|
valueChanged(newValue) {
|
|
140
146
|
this.value = newValue;
|
|
@@ -201,7 +207,7 @@ const SdTabs = class {
|
|
|
201
207
|
};
|
|
202
208
|
}
|
|
203
209
|
render() {
|
|
204
|
-
return (index.h("div", { key: '
|
|
210
|
+
return (index.h("div", { key: 'd8d86075bbf5e13444f99e57cf63c2f5b9ef28fc', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
205
211
|
const badgeName = this.getBadgeName(tab);
|
|
206
212
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
207
213
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
|
|
6
6
|
const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
|
|
@@ -10,18 +10,27 @@ const SdTd = class {
|
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
11
|
}
|
|
12
12
|
get el() { return index.getElement(this); }
|
|
13
|
+
/** 데이터 필드명 (슬롯 이름 생성에 사용) */
|
|
13
14
|
field;
|
|
15
|
+
/** 행 식별 키 */
|
|
14
16
|
rowKey;
|
|
17
|
+
/** 셀 내용 정렬 */
|
|
15
18
|
align;
|
|
19
|
+
/** 행 병합 수 */
|
|
16
20
|
rowspan;
|
|
21
|
+
/** 열 병합 수 */
|
|
17
22
|
colspan;
|
|
18
23
|
// sd-tr가 그리는 실제 <td>에 머지될 사용자 클래스.
|
|
19
24
|
// <sd-td> 호스트는 display:contents라 호스트의 class는 시각 효과가 없기 때문에,
|
|
20
25
|
// 이 prop을 통해 sd-table 레지스트리에 등록 → sd-tr가 td 렌더 시 합쳐 사용한다.
|
|
26
|
+
/** td에 병합할 사용자 클래스 */
|
|
21
27
|
sdClass;
|
|
28
|
+
/** 좌측 구분선 표시 여부 */
|
|
22
29
|
dividerLeft = false;
|
|
30
|
+
/** 우측 구분선 표시 여부 */
|
|
23
31
|
dividerRight = false;
|
|
24
32
|
// true이면 이 셀이 속한 행 전체가 dense를 무시하고 default 레이아웃으로 동작한다.
|
|
33
|
+
/** frame 레이아웃 사용 여부 */
|
|
25
34
|
useFrame = false;
|
|
26
35
|
handleFieldChange(_newField, oldField) {
|
|
27
36
|
this.syncSlotName();
|
|
@@ -158,7 +167,7 @@ const SdTd = class {
|
|
|
158
167
|
}
|
|
159
168
|
}
|
|
160
169
|
render() {
|
|
161
|
-
return (index.h(index.Host, { key: '
|
|
170
|
+
return (index.h(index.Host, { key: 'd7cea28b006a4903fab00e7a709252e6009f911f', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: '1d8695ff6c6890838e4b18ec4da1d7ff6a5c8858' })));
|
|
162
171
|
}
|
|
163
172
|
static get watchers() { return {
|
|
164
173
|
"field": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
|
|
5
5
|
const textLink = {
|
|
6
6
|
sm: {
|
|
@@ -118,14 +118,23 @@ const SdTextLink = class {
|
|
|
118
118
|
index.registerInstance(this, hostRef);
|
|
119
119
|
this.click = index.createEvent(this, "sdClick", 7);
|
|
120
120
|
}
|
|
121
|
+
/** 표시할 레이블 텍스트 */
|
|
121
122
|
label = '';
|
|
123
|
+
/** 좌측 아이콘명 */
|
|
122
124
|
icon = '';
|
|
125
|
+
/** 좌측 아이콘 색상 */
|
|
123
126
|
iconColor = '';
|
|
127
|
+
/** 레이블 span에 추가할 클래스 */
|
|
124
128
|
labelClass = '';
|
|
129
|
+
/** 우측 화살표 타입 */
|
|
125
130
|
rightArrow = 'none';
|
|
131
|
+
/** 밑줄 스타일 여부 */
|
|
126
132
|
underline = false;
|
|
133
|
+
/** 비활성 상태 여부 */
|
|
127
134
|
disabled = false;
|
|
135
|
+
/** 텍스트 크기 */
|
|
128
136
|
size = 'sm';
|
|
137
|
+
/** 클릭 시 발생합니다. */
|
|
129
138
|
click;
|
|
130
139
|
handleClick = () => {
|
|
131
140
|
if (this.disabled)
|
|
@@ -147,7 +156,7 @@ const SdTextLink = class {
|
|
|
147
156
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
148
157
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
149
158
|
};
|
|
150
|
-
return (index.h("span", { key: '
|
|
159
|
+
return (index.h("span", { key: '1b58c27c2754182b1fc6249e7e4bf52f42d1d11d', role: "button", tabindex: this.disabled ? -1 : 0, class: {
|
|
151
160
|
'sd-text-link': true,
|
|
152
161
|
'sd-text-link--disabled': this.disabled,
|
|
153
162
|
}, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
|
|
@@ -155,13 +164,13 @@ const SdTextLink = class {
|
|
|
155
164
|
e.preventDefault();
|
|
156
165
|
this.handleClick();
|
|
157
166
|
}
|
|
158
|
-
} }, this.icon && (index.h("sd-icon", { key: '
|
|
167
|
+
} }, this.icon && (index.h("sd-icon", { key: '85076e7cf4873b527606aa737c2899233dcc3d9f', name: this.icon, size: sizeConfig.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: '75b16e64155770ccdb889497caea6b4240b2e8c0', class: labelClassName }, this.label), this.rightArrow && this.rightArrow !== 'none' && (index.h("span", { key: '8dd32b1b640a8e81f306b0387f783a4c1435abd6', class: "sd-text-link__arrow", style: {
|
|
159
168
|
width: `${TEXT_LINK_ARROW.arrowFrame}px`,
|
|
160
169
|
height: `${TEXT_LINK_ARROW.arrowFrame}px`,
|
|
161
170
|
display: 'inline-flex',
|
|
162
171
|
alignItems: 'center',
|
|
163
172
|
justifyContent: 'center',
|
|
164
|
-
} }, index.h("sd-icon", { key: '
|
|
173
|
+
} }, index.h("sd-icon", { key: '605572568dd4c2b6dcde9c932d5593e5fdb916a4', name: this.rightArrow === 'chevron' ? 'chevronRight' : 'caretRight', size: TEXT_LINK_ARROW.arrowIconSize, color: arrowColor })))));
|
|
165
174
|
}
|
|
166
175
|
};
|
|
167
176
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_DURATION = 4000;
|
|
6
6
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -21,15 +21,22 @@ const SdToastContainer = class {
|
|
|
21
21
|
this.toastDismiss = index.createEvent(this, "sdToastDismiss", 7);
|
|
22
22
|
}
|
|
23
23
|
get el() { return index.getElement(this); }
|
|
24
|
+
/** 토스트 표시 위치 */
|
|
24
25
|
position = 'bottom-center';
|
|
26
|
+
/** 동시에 표시할 최대 토스트 수 */
|
|
25
27
|
maxVisible = DEFAULT_MAX_VISIBLE;
|
|
28
|
+
/** 자동 닫힘 지연 시간 (ms, 0이면 자동 닫힘 없음) */
|
|
26
29
|
defaultDuration = DEFAULT_DURATION;
|
|
30
|
+
/** z-index */
|
|
27
31
|
zIndex = DEFAULT_Z_INDEX;
|
|
28
32
|
toasts = [];
|
|
29
33
|
expanded = false;
|
|
30
34
|
toastRefs = new Map();
|
|
35
|
+
/** 토스트가 표시될 때 발생합니다. */
|
|
31
36
|
toastShow;
|
|
37
|
+
/** 토스트가 제거될 때 발생합니다. */
|
|
32
38
|
toastDismiss;
|
|
39
|
+
/** 토스트를 생성하고 ID를 반환합니다. */
|
|
33
40
|
async create(options) {
|
|
34
41
|
const id = `toast-${++toastIdCounter}`;
|
|
35
42
|
const entry = { id, options, state: 'entering' };
|
|
@@ -54,9 +61,11 @@ const SdToastContainer = class {
|
|
|
54
61
|
this.toastShow.emit({ id });
|
|
55
62
|
return id;
|
|
56
63
|
}
|
|
64
|
+
/** 지정한 ID의 토스트를 닫습니다. */
|
|
57
65
|
async dismiss(id) {
|
|
58
66
|
this.startDismiss(id);
|
|
59
67
|
}
|
|
68
|
+
/** 모든 토스트를 닫습니다. */
|
|
60
69
|
async dismissAll() {
|
|
61
70
|
(this.toasts || []).forEach(t => this.startDismiss(t.id));
|
|
62
71
|
}
|
|
@@ -234,7 +243,7 @@ const SdToastContainer = class {
|
|
|
234
243
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
235
244
|
const indexMap = new Map();
|
|
236
245
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
237
|
-
return (index.h("div", { key: '
|
|
246
|
+
return (index.h("div", { key: 'b75aeffdddcd16267169ae99305ef5f475f53950', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
238
247
|
this.expanded = true;
|
|
239
248
|
this.pauseTimers();
|
|
240
249
|
}, onMouseLeave: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-C-F-JEv_.js');
|
|
4
4
|
|
|
5
5
|
const toast = {
|
|
6
6
|
icon: "16",
|
|
@@ -68,14 +68,23 @@ const SdToast = class {
|
|
|
68
68
|
this.close = index.createEvent(this, "sdClose", 7);
|
|
69
69
|
this.buttonClick = index.createEvent(this, "sdButtonClick", 7);
|
|
70
70
|
}
|
|
71
|
+
/** 좌측 아이콘명 */
|
|
71
72
|
icon;
|
|
73
|
+
/** 표시할 메시지 */
|
|
72
74
|
message;
|
|
75
|
+
/** 우측 링크 URL */
|
|
73
76
|
link;
|
|
77
|
+
/** 링크 표시 레이블 (없으면 URL 표시) */
|
|
74
78
|
linkLabel;
|
|
79
|
+
/** 우측 버튼 레이블 */
|
|
75
80
|
buttonLabel;
|
|
81
|
+
/** 닫기 버튼 표시 여부 */
|
|
76
82
|
useClose = false;
|
|
83
|
+
/** 토스트 타입 (색상/아이콘 프리셋) */
|
|
77
84
|
type = 'default';
|
|
85
|
+
/** 닫기 버튼 클릭 또는 자동 닫힘 시 발생합니다. */
|
|
78
86
|
close;
|
|
87
|
+
/** 우측 버튼 클릭 시 발생합니다. */
|
|
79
88
|
buttonClick;
|
|
80
89
|
render() {
|
|
81
90
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
@@ -84,12 +93,12 @@ const SdToast = class {
|
|
|
84
93
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
85
94
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
86
95
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
87
|
-
return (index.h("div", { key: '
|
|
96
|
+
return (index.h("div", { key: 'ee54d9d9821821e0c422725c94d465f1e2df7bc6', style: {
|
|
88
97
|
'--sd-toast-bg': typeConfig.bg,
|
|
89
98
|
'--sd-toast-text': typeConfig.content,
|
|
90
99
|
'--sd-toast-icon': iconColor,
|
|
91
100
|
'--sd-toast-link': linkColor,
|
|
92
|
-
} }, index.h("div", { key: '
|
|
101
|
+
} }, index.h("div", { key: 'b258e4b49fe530c778c0003516a2ad159805158a', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '850a02dd996c7d1ca214b887e0d3d9899972e319', class: "sd-toast__icon" }, index.h("sd-icon", { key: '50d2817b160bd767a509956338347ee09a34a845', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '0200da1ef6cfa9fcafa4cacf08998a33847038dc', class: "sd-toast__content" }, index.h("span", { key: 'af039afb2f457acded350ae2323e0bc59765a09e', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '98fdcf360ca632e9f919e01ab0dce8369a1ebe79', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '45202c0f969ab64e50265ee81f34fc14def26ce2', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '48f30258527ae7a8a96db9609f096f5d216246ff', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
93
102
|
}
|
|
94
103
|
};
|
|
95
104
|
SdToast.style = sdToastCss();
|