@sellmate/design-system 1.27.0 → 1.28.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/{component.field-YIQ9TAhV.js → component.field-C7it8cZm.js} +2 -2
- package/dist/cjs/component.listBox-MHAv4Yy7.js +15 -0
- package/dist/cjs/{component.listItem-Bnh0r_CA.js → component.listItem-cAO_ppOz.js} +0 -7
- package/dist/cjs/{component.table-BrI3b--h.js → component.table-POXY492T.js} +5 -4
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-BTqAmfdr.js → index-D12oddge.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/sd-button_2.cjs.entry.js +1 -1
- package/dist/cjs/sd-calendar_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-callout.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +2 -3
- package/dist/cjs/sd-chip-input.cjs.entry.js +4 -3
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +5 -3
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +11 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/{sd-date-picker.config-CtXmufyj.js → sd-date-picker.config-De7ahWIs.js} +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +79 -30
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-divider.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-field_3.cjs.entry.js +18 -12
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button_3.cjs.entry.js +2 -3
- package/dist/cjs/sd-guide.cjs.entry.js +4 -9
- package/dist/cjs/sd-key-value-table.cjs.entry.js +2 -2
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +23 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-pagination_4.cjs.entry.js +20 -13
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-popup.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +2 -3
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +10 -9
- package/dist/cjs/{sd-select.config-C9Ohe1QA.js → sd-select.config-omyxekRa.js} +3 -2
- package/dist/cjs/sd-select_3.cjs.entry.js +12 -11
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +9 -9
- package/dist/cjs/{sd-table.config-DzC55sap.js → sd-table.config-DFy_S4bc.js} +5 -4
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +5 -5
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-CiM3irtY.js → tooltipArrow-Dda4ik0V.js} +1 -1
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.css +12 -0
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +23 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +2 -2
- package/dist/collection/components/sd-field/sd-field.css +5 -0
- package/dist/collection/components/sd-field/sd-field.js +30 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +9 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +20 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +82 -19
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -0
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.config.js +0 -1
- package/dist/collection/components/sd-guide/sd-guide.css +0 -3
- package/dist/collection/components/sd-guide/sd-guide.js +2 -3
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +22 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.config.js +1 -1
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.css +7 -0
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +22 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.config.js +1 -0
- package/dist/collection/components/sd-pagination/sd-pagination.css +1 -1
- package/dist/collection/components/sd-pagination/sd-pagination.js +4 -3
- package/dist/collection/components/sd-popup/sd-popup.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.config.js +4 -3
- package/dist/collection/components/sd-table/sd-table.js +6 -6
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +3 -1
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +4 -4
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CJYl_ssf.js → p-1i6Q61TF.js} +1 -1
- package/dist/components/p-4S0_Ykmo.js +1 -0
- package/dist/components/p-5pkzwl5N.js +1 -0
- package/dist/components/p-B-pJW3nY.js +1 -0
- package/dist/components/{p-CygiHfH3.js → p-B2pYDEK7.js} +1 -1
- package/dist/components/{p-B0NEmngm.js → p-B3HYnTGx.js} +1 -1
- package/dist/components/{p-C-xm1A4R.js → p-B6ezDhRg.js} +1 -1
- package/dist/components/{p-CHvrvQsZ.js → p-BAVsc1Ml.js} +1 -1
- package/dist/components/{p-Dv7x-UAd.js → p-BCxePXvg.js} +1 -1
- package/dist/components/{p-DObwsGYE.js → p-BE6ymp9E.js} +1 -1
- package/dist/components/{p-DTEO2eLq.js → p-BKV1WAFb.js} +1 -1
- package/dist/components/{p-CDiIm8f6.js → p-BNHhtZUf.js} +1 -1
- package/dist/components/{p-DYHntcvV.js → p-BQ4Okfcm.js} +1 -1
- package/dist/components/p-BSxleKw8.js +1 -0
- package/dist/components/{p-B8qPlbcL.js → p-BUgGuigd.js} +1 -1
- package/dist/components/{p-BIFt5zIX.js → p-BWHQn4fD.js} +1 -1
- package/dist/components/{p-DJsKwChT.js → p-BZXgIBUG.js} +1 -1
- package/dist/components/p-Bgxca9o5.js +1 -0
- package/dist/components/{p-BJoG95Kt.js → p-BnI9HUOv.js} +1 -1
- package/dist/components/{p-CD0706HD.js → p-BuADVB78.js} +1 -1
- package/dist/components/{p-B7Fy6FMY.js → p-Bxb7TcZh.js} +1 -1
- package/dist/components/p-C0tnN4yn.js +1 -0
- package/dist/components/{p-DgK8EUjx.js → p-CHHlQceE.js} +1 -1
- package/dist/components/{p-P6SE7iQV.js → p-CMvHDxR5.js} +1 -1
- package/dist/components/{p-7NIombHr.js → p-CSh-DcM7.js} +1 -1
- package/dist/components/{p-D60P6BdJ.js → p-CTDPl65u.js} +1 -1
- package/dist/components/p-Cf62Nvrx.js +1 -0
- package/dist/components/{p-BKg1YV-H.js → p-ClD0nx1l.js} +1 -1
- package/dist/components/{p-DuMx_9he.js → p-DNbbdJIc.js} +1 -1
- package/dist/components/p-DbPS61bp.js +1 -0
- package/dist/components/{p-mbe7jmT5.js → p-DckXBMgo.js} +1 -1
- package/dist/components/{p-BOJJ_sQS.js → p-DjKOoQuF.js} +1 -1
- package/dist/components/p-DlJaYVWf.js +1 -0
- package/dist/components/p-DmAnTwUx.js +1 -0
- package/dist/components/{p-BArxAQLx.js → p-E8OA_psS.js} +1 -1
- package/dist/components/{p-BKBd44No.js → p-IDlLs_KA.js} +1 -1
- package/dist/components/p-PFLrdhQj.js +1 -0
- package/dist/components/{p-DHINsZ60.js → p-l9RiSWRc.js} +1 -1
- package/dist/components/{p-BeR_5Fwe.js → p-paSLRXAR.js} +1 -1
- package/dist/components/{p-BL9Vy4Fd.js → p-pwGA4sDj.js} +1 -1
- package/dist/components/{p-hd2Gc2Z3.js → p-vtuEYpc6.js} +1 -1
- package/dist/components/p-x9AWBHPy.js +1 -0
- package/dist/components/{p-V8hUcpnj.js → p-yxZBh03f.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-0048de73.entry.js +1 -0
- package/dist/design-system/{p-9991485c.entry.js → p-071e73e0.entry.js} +1 -1
- package/dist/design-system/{p-a2796cd6.entry.js → p-0b8c86c3.entry.js} +1 -1
- package/dist/design-system/{p-8e428210.entry.js → p-1230b51b.entry.js} +1 -1
- package/dist/design-system/p-20f69606.entry.js +1 -0
- package/dist/design-system/{p-e0fa6937.entry.js → p-2553bb1f.entry.js} +1 -1
- package/dist/design-system/{p-29b84d12.entry.js → p-26f2f4c2.entry.js} +1 -1
- package/dist/design-system/p-27197194.entry.js +1 -0
- package/dist/design-system/{p-d7e1a303.entry.js → p-287d8016.entry.js} +1 -1
- package/dist/design-system/p-3b3a46cd.entry.js +1 -0
- package/dist/design-system/{p-4f4b3dab.entry.js → p-4970f1ff.entry.js} +1 -1
- package/dist/design-system/p-4S0_Ykmo.js +1 -0
- package/dist/design-system/p-5687ed0c.entry.js +1 -0
- package/dist/design-system/{p-93c7c640.entry.js → p-58ec51db.entry.js} +1 -1
- package/dist/design-system/{p-030b0602.entry.js → p-5c8f4d9c.entry.js} +1 -1
- package/dist/design-system/p-5pkzwl5N.js +1 -0
- package/dist/design-system/{p-0dfdcfed.entry.js → p-61f5d5ea.entry.js} +1 -1
- package/dist/design-system/{p-df3faae8.entry.js → p-67f19734.entry.js} +1 -1
- package/dist/design-system/{p-c561595a.entry.js → p-70608fec.entry.js} +1 -1
- package/dist/design-system/{p-59ecccb2.entry.js → p-750a9112.entry.js} +1 -1
- package/dist/design-system/p-75726e20.entry.js +1 -0
- package/dist/design-system/{p-9adb306b.entry.js → p-7abf62f3.entry.js} +1 -1
- package/dist/design-system/p-7ae27a26.entry.js +1 -0
- package/dist/design-system/p-84d0181b.entry.js +1 -0
- package/dist/design-system/{p-e0d4193a.entry.js → p-91f7be74.entry.js} +1 -1
- package/dist/design-system/p-94d6b7b4.entry.js +1 -0
- package/dist/design-system/{p-c5bd0dc9.entry.js → p-9b21773a.entry.js} +1 -1
- package/dist/design-system/{p-ceda6367.entry.js → p-9c0bca09.entry.js} +1 -1
- package/dist/design-system/{p-C2-fl-Dc.js → p-CRWmn35N.js} +1 -1
- package/dist/design-system/p-Cf62Nvrx.js +1 -0
- package/dist/design-system/p-CuAh9n2o.js +1 -0
- package/dist/design-system/{p-d24F7UcR.js → p-D2S9Zafz.js} +1 -1
- package/dist/design-system/p-DDNBPrZh.js +2 -0
- package/dist/design-system/{p-BOJJ_sQS.js → p-DjKOoQuF.js} +1 -1
- package/dist/design-system/p-DlJaYVWf.js +1 -0
- package/dist/design-system/{p-f43dd680.entry.js → p-a12d7362.entry.js} +1 -1
- package/dist/design-system/{p-d6bb5c82.entry.js → p-a938ffee.entry.js} +1 -1
- package/dist/design-system/{p-089235d2.entry.js → p-b831eded.entry.js} +1 -1
- package/dist/design-system/{p-e2dabf85.entry.js → p-bab692c6.entry.js} +1 -1
- package/dist/design-system/{p-d87b75ff.entry.js → p-bbd24816.entry.js} +1 -1
- package/dist/design-system/{p-669dfbe4.entry.js → p-c5502585.entry.js} +1 -1
- package/dist/design-system/p-c81898a0.entry.js +1 -0
- package/dist/design-system/{p-b0b9995e.entry.js → p-d4e2f412.entry.js} +1 -1
- package/dist/design-system/{p-12eabcc9.entry.js → p-d6b3d78b.entry.js} +1 -1
- package/dist/design-system/{p-63804698.entry.js → p-d7e302af.entry.js} +1 -1
- package/dist/design-system/{p-3f347a3a.entry.js → p-dbfa3931.entry.js} +1 -1
- package/dist/design-system/p-f16985c9.entry.js +1 -0
- package/dist/design-system/{p-b6a139b7.entry.js → p-fa967329.entry.js} +1 -1
- package/dist/design-system/{p-024c1605.entry.js → p-fbeed0e4.entry.js} +1 -1
- package/dist/esm/{component.field-BOJJ_sQS.js → component.field-DjKOoQuF.js} +2 -2
- package/dist/esm/component.listBox-DlJaYVWf.js +13 -0
- package/dist/esm/{component.listItem-U8VaRj9c.js → component.listItem-4S0_Ykmo.js} +1 -7
- package/dist/esm/{component.table-D9tQwTWy.js → component.table-5pkzwl5N.js} +5 -4
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-BwIs2-fm.js → index-DDNBPrZh.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/sd-button_2.entry.js +1 -1
- package/dist/esm/sd-calendar_2.entry.js +3 -3
- package/dist/esm/sd-callout.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +2 -3
- package/dist/esm/sd-chip-input.entry.js +3 -2
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +5 -3
- package/dist/esm/sd-confirm-modal_2.entry.js +11 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/{sd-date-picker.config-6dvDZPGx.js → sd-date-picker.config-D-ks6qNf.js} +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +79 -30
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-divider.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +3 -3
- package/dist/esm/sd-field_3.entry.js +18 -12
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button_3.entry.js +2 -3
- package/dist/esm/sd-guide.entry.js +4 -9
- package/dist/esm/sd-key-value-table.entry.js +2 -2
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +23 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-pagination_4.entry.js +20 -13
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-popup.entry.js +2 -2
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +2 -3
- package/dist/esm/sd-select-list-item_2.entry.js +10 -9
- package/dist/esm/{sd-select.config-D6ktrl7E.js → sd-select.config-CeHGlqOT.js} +2 -1
- package/dist/esm/sd-select_3.entry.js +12 -11
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/{sd-table.config-BbIWNUE2.js → sd-table.config-DmOBlnsM.js} +5 -4
- package/dist/esm/sd-table.entry.js +9 -9
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +5 -5
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{tooltipArrow-CJxhdfqT.js → tooltipArrow-blL0aWPE.js} +1 -1
- package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +2 -0
- package/dist/types/components/sd-field/sd-field.d.ts +5 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +6 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +11 -1
- package/dist/types/components/sd-guide/sd-guide.config.d.ts +0 -1
- package/dist/types/components/sd-loading-container/sd-loading-container.d.ts +6 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +4 -0
- package/dist/types/components/sd-pagination/sd-pagination.config.d.ts +1 -0
- package/dist/types/components/sd-table/sd-table.config.d.ts +1 -0
- package/dist/types/components.d.ts +40 -2
- package/hydrate/index.js +210 -115
- package/hydrate/index.mjs +210 -115
- package/package.json +1 -1
- package/dist/components/p-BXcizROm.js +0 -1
- package/dist/components/p-Bcp4vs0m.js +0 -1
- package/dist/components/p-BsJ3_flK.js +0 -1
- package/dist/components/p-BuubsWWz.js +0 -1
- package/dist/components/p-CbsRJTHs.js +0 -1
- package/dist/components/p-CrpzIzUy.js +0 -1
- package/dist/components/p-D9tQwTWy.js +0 -1
- package/dist/components/p-DvvGi4J_.js +0 -1
- package/dist/components/p-KSTsd4qM.js +0 -1
- package/dist/components/p-U8VaRj9c.js +0 -1
- package/dist/components/p-b9Q4MYgR.js +0 -1
- package/dist/design-system/p-0f3d40f2.entry.js +0 -1
- package/dist/design-system/p-2b2aaa32.entry.js +0 -1
- package/dist/design-system/p-36275d32.entry.js +0 -1
- package/dist/design-system/p-6324bbde.entry.js +0 -1
- package/dist/design-system/p-66cb4a7c.entry.js +0 -1
- package/dist/design-system/p-7e1f14a6.entry.js +0 -1
- package/dist/design-system/p-8d340091.entry.js +0 -1
- package/dist/design-system/p-9860b9d9.entry.js +0 -1
- package/dist/design-system/p-BXcizROm.js +0 -1
- package/dist/design-system/p-BwIs2-fm.js +0 -2
- package/dist/design-system/p-CAFz8W8_.js +0 -1
- package/dist/design-system/p-D9tQwTWy.js +0 -1
- package/dist/design-system/p-U8VaRj9c.js +0 -1
- package/dist/design-system/p-b8394ddb.entry.js +0 -1
- package/dist/design-system/p-ef60be0f.entry.js +0 -1
- package/dist/design-system/p-f7123e89.entry.js +0 -1
|
@@ -2,6 +2,7 @@ sd-loading-modal {
|
|
|
2
2
|
display: inline-block;
|
|
3
3
|
}
|
|
4
4
|
sd-loading-modal .sd-loading-modal {
|
|
5
|
+
position: relative;
|
|
5
6
|
display: flex;
|
|
6
7
|
flex-direction: column;
|
|
7
8
|
align-items: center;
|
|
@@ -15,6 +16,12 @@ sd-loading-modal .sd-loading-modal {
|
|
|
15
16
|
background: var(--sd-loading-modal-bg);
|
|
16
17
|
box-shadow: 4px 4px 24px 4px rgba(0, 0, 0, 0.2);
|
|
17
18
|
}
|
|
19
|
+
sd-loading-modal .sd-loading-modal__close {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 16px;
|
|
22
|
+
right: 16px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
18
25
|
sd-loading-modal .sd-loading-modal__content {
|
|
19
26
|
display: flex;
|
|
20
27
|
align-items: center;
|
|
@@ -17,6 +17,8 @@ export class SdLoadingModal {
|
|
|
17
17
|
progress;
|
|
18
18
|
/** 버튼 클릭 시 발생합니다. */
|
|
19
19
|
click;
|
|
20
|
+
/** 닫기 버튼 클릭 시 발생합니다. (error 상태에서만 노출) */
|
|
21
|
+
close;
|
|
20
22
|
get resolvedState() {
|
|
21
23
|
return this.state ?? 'loading';
|
|
22
24
|
}
|
|
@@ -26,6 +28,10 @@ export class SdLoadingModal {
|
|
|
26
28
|
get resolvedButtonLabel() {
|
|
27
29
|
return this.buttonLabel || LOADING_MODAL_DEFAULT_BUTTON_LABEL[this.resolvedState];
|
|
28
30
|
}
|
|
31
|
+
/** error 상태에서는 버튼이 필수로 표시됩니다. */
|
|
32
|
+
get showButton() {
|
|
33
|
+
return this.useButton || this.resolvedState === 'error';
|
|
34
|
+
}
|
|
29
35
|
handleClick = () => {
|
|
30
36
|
this.click.emit();
|
|
31
37
|
};
|
|
@@ -54,7 +60,7 @@ export class SdLoadingModal {
|
|
|
54
60
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
55
61
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
56
62
|
};
|
|
57
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: '71bec4b63fc71720dfc10daecab4e63b8fc12b68', style: hostStyle }, h("div", { key: '20f67d5f61a7c7150b236ebe13fecb345b5a20be', class: "sd-loading-modal" }, this.resolvedState === 'error' && (h("sd-ghost-button", { key: '395097aa0cbf7c277f7669bdc01fe756316ba4a0', class: "sd-loading-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), h("div", { key: '6942b24672bf59b7c7f34bab0cce38b3d0e477f7', class: "sd-loading-modal__content" }, this.resolvedState === 'loading' ? (this.progress !== undefined ? (h("sd-circle-progress", { value: this.progress })) : (h("sd-circle-progress", { indeterminate: true }))) : (h("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), h("div", { key: '5dd0e24f06c8283b1baa7eeadf6547a96ecc784e', class: "sd-loading-modal__message-wrapper" }, Array.isArray(this.resolvedMessage) ? (this.resolvedMessage.map(message => (h("p", { class: "sd-loading-modal__message" }, message)))) : (h("p", { class: "sd-loading-modal__message" }, this.resolvedMessage))), this.showButton && (h("div", { key: 'b686ab5f29a9a61520ba5a43f9d214f37c1a90d7', class: "sd-loading-modal__button" }, h("sd-button", { key: '2378b8f300538c9aab8775a526104acd6089b580', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
58
64
|
}
|
|
59
65
|
static get is() { return "sd-loading-modal"; }
|
|
60
66
|
static get originalStyleUrls() {
|
|
@@ -231,6 +237,21 @@ export class SdLoadingModal {
|
|
|
231
237
|
"resolved": "void",
|
|
232
238
|
"references": {}
|
|
233
239
|
}
|
|
240
|
+
}, {
|
|
241
|
+
"method": "close",
|
|
242
|
+
"name": "sdClose",
|
|
243
|
+
"bubbles": true,
|
|
244
|
+
"cancelable": true,
|
|
245
|
+
"composed": true,
|
|
246
|
+
"docs": {
|
|
247
|
+
"tags": [],
|
|
248
|
+
"text": "\uB2EB\uAE30 \uBC84\uD2BC \uD074\uB9AD \uC2DC \uBC1C\uC0DD\uD569\uB2C8\uB2E4. (error \uC0C1\uD0DC\uC5D0\uC11C\uB9CC \uB178\uCD9C)"
|
|
249
|
+
},
|
|
250
|
+
"complexType": {
|
|
251
|
+
"original": "void",
|
|
252
|
+
"resolved": "void",
|
|
253
|
+
"references": {}
|
|
254
|
+
}
|
|
234
255
|
}];
|
|
235
256
|
}
|
|
236
257
|
}
|
|
@@ -314,15 +314,15 @@ export class SdNumberInput {
|
|
|
314
314
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
315
315
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
316
316
|
};
|
|
317
|
-
return (h("sd-field", { key: '
|
|
317
|
+
return (h("sd-field", { key: '9e82f7ec1e40c7f435233d1d8e05fdd2de0c2712', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'b5f2e1c32bbba8147a72edf2dfe42f591d81d6f7', class: {
|
|
318
318
|
'sd-number-input__content': true,
|
|
319
319
|
'sd-number-input__content--no-stepper': !this.useButton,
|
|
320
|
-
} }, this.useButton && (h("button", { key: '
|
|
320
|
+
} }, this.useButton && (h("button", { key: '07e053c769556282da7595ba7d185db7c9af19a2', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: '95b48b8a0fa45ff60b3097d24405b48e4776b928', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
321
321
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
322
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '
|
|
322
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && h("span", { key: '2381fade9767b593d5f6848bc411c3244a6f9da2', class: "sd-number-input__prefix" }, this.inputPrefix), h("input", { key: '00b886990e9c1155c20ee404eda26777e56d31c2', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
323
323
|
textAlign: this.useButton ? 'center' : 'right',
|
|
324
324
|
...this.inputStyle,
|
|
325
|
-
} }), this.inputSuffix && h("span", { key: '
|
|
325
|
+
} }), this.inputSuffix && h("span", { key: '5254313e957f3ded4139f047b588e38222c33975', class: "sd-number-input__suffix" }, this.inputSuffix), this.useButton && (h("button", { key: 'f7389a1c5869460791249f579b3195b3583255fe', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'b272b62e2ce27a1e5ecb86738af6eacb89b0d6c6', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
326
326
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
327
327
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
328
328
|
}
|
|
@@ -5,6 +5,7 @@ export const PAGINATION_LAYOUT = {
|
|
|
5
5
|
radius: `${paginationTokens.pagination.radius}px`,
|
|
6
6
|
gap: `${paginationTokens.pagination.gap}px`,
|
|
7
7
|
moveGap: `${paginationTokens.pagination.move.gap}px`,
|
|
8
|
+
simpleGap: `${paginationTokens.pagination.simple.gap}px`,
|
|
8
9
|
iconSize: Number(paginationTokens.pagination.icon),
|
|
9
10
|
};
|
|
10
11
|
export const PAGINATION_TYPOGRAPHY = {
|
|
@@ -75,7 +75,7 @@ sd-pagination {
|
|
|
75
75
|
.sd-pagination__info {
|
|
76
76
|
display: inline-flex;
|
|
77
77
|
align-items: center;
|
|
78
|
-
gap: var(--sd-pagination-
|
|
78
|
+
gap: var(--sd-pagination-simple-gap);
|
|
79
79
|
height: var(--sd-pagination-height);
|
|
80
80
|
padding: 0 var(--sd-pagination-padding-x);
|
|
81
81
|
color: var(--sd-pagination-content);
|
|
@@ -75,6 +75,7 @@ export class SdPagination {
|
|
|
75
75
|
'--sd-pagination-radius': PAGINATION_LAYOUT.radius,
|
|
76
76
|
'--sd-pagination-gap': PAGINATION_LAYOUT.gap,
|
|
77
77
|
'--sd-pagination-move-gap': PAGINATION_LAYOUT.moveGap,
|
|
78
|
+
'--sd-pagination-simple-gap': PAGINATION_LAYOUT.simpleGap,
|
|
78
79
|
'--sd-pagination-font-family': PAGINATION_TYPOGRAPHY.fontFamily,
|
|
79
80
|
'--sd-pagination-font-size': PAGINATION_TYPOGRAPHY.fontSize,
|
|
80
81
|
'--sd-pagination-line-height': PAGINATION_TYPOGRAPHY.lineHeight,
|
|
@@ -87,13 +88,13 @@ export class SdPagination {
|
|
|
87
88
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
88
89
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
89
90
|
};
|
|
90
|
-
return (h("div", { key: '
|
|
91
|
+
return (h("div", { key: '4a67cbb9ed9d3cafbd3d9f99562948e3b3840210', class: {
|
|
91
92
|
'sd-pagination': true,
|
|
92
93
|
'sd-pagination--simple': this.simple,
|
|
93
|
-
}, style: cssVars }, h("div", { key: '
|
|
94
|
+
}, style: cssVars }, h("div", { key: 'f0cc77abd3b03a1525f52fbcd2587b6ad9cd468d', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
94
95
|
'sd-pagination__item': true,
|
|
95
96
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
96
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: '
|
|
97
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'c4053f5917345cf1e7fcea9f3c2fa0d6b5fa7a3f', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
97
98
|
}
|
|
98
99
|
static get is() { return "sd-pagination"; }
|
|
99
100
|
static get originalStyleUrls() {
|
|
@@ -40,7 +40,7 @@ export class SdPopup {
|
|
|
40
40
|
...DEFAULT_SUBMIT_BUTTON_PROPS,
|
|
41
41
|
...this.submitButtonProps,
|
|
42
42
|
};
|
|
43
|
-
return (h("div", { key: '
|
|
43
|
+
return (h("div", { key: 'f138f3d792295a6e1cb3894033547176cfd03163', class: `sd-popup sd-popup--${this.type}`, style: cssVars }, h("header", { key: '7ff26c89a03cd79d5abe83513d96ae5f40b83869', class: "sd-popup__header" }, h("h2", { key: 'd9d3282b60b5b6baa5c2b1568c13db5847e9f9af', class: "sd-popup__title" }, this.popupTitle)), h("div", { key: 'a296adcd58df30f4915b2523931c5b9eb4588e5d', class: "sd-popup__body" }, h("slot", { key: 'aaf4dfc93d5664ca19a8071e3f37bf8a5857e471' })), this.useFooter && (h("footer", { key: '1afb1b638fa8bfa69f5d4bc87fca538800614312', class: "sd-popup__footer" }, h("div", { key: '7539bc751847a03fef6ec1e15587b346ffb19c83', class: "sd-popup__footer-slot sd-popup__footer-slot--left" }, h("slot", { key: '66fbec51d23bd1a203159f6c968935034a4c086c', name: "footer-left" })), h("sd-button", { key: '8d236d5fcd9b5fdae1c27ade7bff6bc605ef8bde', ...submitButtonProps, class: "sd-popup__submit", onSdClick: () => this.submit.emit() })))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "sd-popup"; }
|
|
46
46
|
static get originalStyleUrls() {
|
|
@@ -94,10 +94,10 @@ sd-radio-group .sd-radio-group {
|
|
|
94
94
|
}
|
|
95
95
|
sd-radio-group .sd-radio-group--vertical {
|
|
96
96
|
flex-direction: column;
|
|
97
|
-
gap:
|
|
97
|
+
gap: var(--sd-radio-radio-group-gap-vertical);
|
|
98
98
|
}
|
|
99
99
|
sd-radio-group .sd-radio-group--horizontal {
|
|
100
100
|
flex-direction: row;
|
|
101
101
|
align-items: center;
|
|
102
|
-
gap:
|
|
102
|
+
gap: var(--sd-radio-radio-group-gap-horizontal);
|
|
103
103
|
}
|
|
@@ -78,7 +78,7 @@ export class SdSelectListItem {
|
|
|
78
78
|
return (
|
|
79
79
|
// 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
|
|
80
80
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
81
|
-
h("div", { key: '
|
|
81
|
+
h("div", { key: '0e0a07c33c9e6718771ba8cc27d62e4909434562', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
|
|
82
82
|
'sd-select-list-item': true,
|
|
83
83
|
'sd-select-list-item--group': isGroup,
|
|
84
84
|
'sd-select-list-item--depth1-group': isDepth1Group,
|
|
@@ -88,7 +88,7 @@ export class SdSelectListItem {
|
|
|
88
88
|
'sd-select-list-item--focused': this.isFocused,
|
|
89
89
|
'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
90
90
|
'sd-select-list-item--disabled': !!this.option.disabled,
|
|
91
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: '
|
|
91
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (h("sd-checkbox", { key: 'd3078da8737c28b279f2057c06266710af6191cd', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), isHtmlLabel(this.option.label) ? (h("span", { class: "sd-select-list-item__label", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.option.label)) })) : (h("span", { class: "sd-select-list-item__label" }, this.option.label)), this.countInfo && (h("span", { key: '36b88dbda0d2bbd27b5df60eaaa855ebe77e0905', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "sd-select-list-item"; }
|
|
94
94
|
static get originalStyleUrls() {
|
|
@@ -45,15 +45,15 @@ export class SdSelectListItemSearch {
|
|
|
45
45
|
clearTimeout(this.debounceTimer);
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h("div", { key: '
|
|
48
|
+
return (h("div", { key: '6caac256fb6b1fc3e7b3fc7f7ee66b163737f944', class: {
|
|
49
49
|
'sd-select-list-item-search': true,
|
|
50
50
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
51
|
-
} }, h("div", { key: '
|
|
51
|
+
} }, h("div", { key: '3193b47072cb73c4400e606aa8dbd4553e178738', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: '6165dae71933cbdf5c66d533d4cae43ae95f7bd4', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: 'd0526a3a20e220068a4b4cb489af060c80952325', ref: el => {
|
|
52
52
|
this.inputEl = el;
|
|
53
|
-
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: '
|
|
53
|
+
}, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), h("button", { key: 'e139b3ddab9ac793bfcf44480161a1d0c501a861', type: "button", class: {
|
|
54
54
|
'sd-select-list-item-search__clear': true,
|
|
55
55
|
'sd-select-list-item-search__clear--hidden': this.searchText === '',
|
|
56
|
-
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
56
|
+
}, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, h("sd-icon", { key: '4d29274a17767dec92bb6052196832272ab215df', name: "close", size: 12, color: "#888888" })))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "sd-select-list-item-search"; }
|
|
59
59
|
static get originalStyleUrls() {
|
|
@@ -361,9 +361,9 @@ export class SdSelectListbox {
|
|
|
361
361
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
362
362
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
363
363
|
};
|
|
364
|
-
return (h("div", { key: '
|
|
364
|
+
return (h("div", { key: '4de15e4c150ee542656ee3f73aa41dd32379748f', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: 'cb656ccafc2833b438f14ac48ca8686684212ead', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: '5ffaefb63605c4319810046e9d40aa5fcb4754de', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
365
365
|
this.listEl = el;
|
|
366
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
366
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: 'e1d3f7a37a037b386aae50cceb61e2b79d37453e', 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 ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (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) })))))));
|
|
367
367
|
}
|
|
368
368
|
static get is() { return "sd-select-listbox"; }
|
|
369
369
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,7 +51,7 @@ export class SdSelectTrigger {
|
|
|
51
51
|
? SELECT_COLORS.icon.disabled
|
|
52
52
|
: SELECT_COLORS.icon.default,
|
|
53
53
|
};
|
|
54
|
-
return (h("div", { key: '
|
|
54
|
+
return (h("div", { key: '33e639898a581e8556e1e9c966f14cb863246c35', ref: el => {
|
|
55
55
|
this.triggerEl = el;
|
|
56
56
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
57
57
|
'sd-select-trigger': true,
|
|
@@ -62,7 +62,7 @@ export class SdSelectTrigger {
|
|
|
62
62
|
e.preventDefault();
|
|
63
63
|
this.handleClick();
|
|
64
64
|
}
|
|
65
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
65
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: 'a935f82879727eb212422c875b16e5fbf01460ba', class: "sd-select-trigger__content" }, hasValue && isHtmlLabel(this.displayText) ? (h("span", { class: "sd-select-trigger__text", ref: el => el && (el.innerHTML = sanitizeInlineHtml(this.displayText)) })) : (h("span", { class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택'))), h("sd-icon", { key: 'e98e8e317aa86a960674b21714ca90cfa3920197', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
66
66
|
'sd-select-trigger__icon': true,
|
|
67
67
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
68
68
|
} }))));
|
|
@@ -283,15 +283,15 @@ export class SdSelect {
|
|
|
283
283
|
this.closeDropdown();
|
|
284
284
|
},
|
|
285
285
|
};
|
|
286
|
-
return (h("sd-field", { key: '
|
|
286
|
+
return (h("sd-field", { key: '2272f300b9aa6645dd772d06694e728f9abcea28', 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: () => {
|
|
287
287
|
this.hovered = true;
|
|
288
288
|
}, onMouseLeave: () => {
|
|
289
289
|
this.hovered = false;
|
|
290
|
-
} }, h("div", { key: '
|
|
290
|
+
} }, h("div", { key: 'b9c769146720634abb4d018d022e28749ef0b939', class: "sd-select", ref: el => {
|
|
291
291
|
this.triggerRef = el;
|
|
292
|
-
} }, h("sd-select-trigger", { key: '
|
|
292
|
+
} }, h("sd-select-trigger", { key: '792bbee6e36298a306d720bc15bff61d5bba7545', ref: el => {
|
|
293
293
|
this.triggerComponentRef = el;
|
|
294
|
-
}, 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) && (h("sd-portal", { key: '
|
|
294
|
+
}, 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) && (h("sd-portal", { key: 'c70299735ea4f9fd257a0b3384e728bbf9fc9d97', ...portalProps }, h("sd-select-listbox", { key: 'd0dbfc0382131e998f54d6a0cb04fc6b1a9128c8', 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) })))));
|
|
295
295
|
}
|
|
296
296
|
static get is() { return "sd-select"; }
|
|
297
297
|
static get originalStyleUrls() {
|
|
@@ -45,7 +45,7 @@ export class SdSwitch {
|
|
|
45
45
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
46
46
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
47
47
|
};
|
|
48
|
-
return (h("label", { key: '
|
|
48
|
+
return (h("label", { key: '0dd7063a45e2adc589e2e8dfc7cdb5c0c585aeac', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: '01b94b14edd1571b8e21ba5a8bb72a0bd151b3a2', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '6c6bfaa3909ed885811f3e2af402d3a16c9b75e2', class: "sd-switch__track" }, h("div", { key: 'd3861a5c67779b7e871d7a2f45b20439648402cc', class: "sd-switch__knob" })), this.label && h("span", { key: '25c5198adb208b1016e9eb5bf01eaa6fb501ebe5', class: "sd-switch__label" }, this.label)));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "sd-switch"; }
|
|
51
51
|
static get originalStyleUrls() {
|
|
@@ -28,10 +28,11 @@ export const TABLE_BODY_LAYOUT = {
|
|
|
28
28
|
},
|
|
29
29
|
dense: {
|
|
30
30
|
height: tableTokens.table.body.dense.height,
|
|
31
|
-
paddingY: tableTokens.table.body.dense
|
|
31
|
+
paddingY: tableTokens.table.body.paddingY.dense,
|
|
32
32
|
},
|
|
33
|
-
paddingX: tableTokens.table.body.paddingX.
|
|
34
|
-
|
|
33
|
+
paddingX: tableTokens.table.body.paddingX.wide,
|
|
34
|
+
densePaddingX: tableTokens.table.body.paddingX.default,
|
|
35
|
+
framePadding: tableTokens.table.body.paddingX.default,
|
|
35
36
|
};
|
|
36
37
|
export const TABLE_BODY_TYPOGRAPHY = {
|
|
37
38
|
fontFamily: tableTokens.table.body.typography.fontFamily,
|
|
@@ -853,25 +853,25 @@ export class SdTable {
|
|
|
853
853
|
'--table-selectable-width': `${TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
854
854
|
'--table-host-height': hostHeight,
|
|
855
855
|
};
|
|
856
|
-
return (h(Host, { key: '
|
|
856
|
+
return (h(Host, { key: 'e4f8c5d93a6fdae077abab4641ea4ea883249cae', style: hostStyle }, h("div", { key: '4af67aafb4cadc6de00ae92884e7d3585d85990b', class: "sd-table__container", style: {
|
|
857
857
|
'--table-width': this.width,
|
|
858
858
|
'--pagination-height': `${paginationHeight}px`,
|
|
859
|
-
} }, h("div", { key: '
|
|
859
|
+
} }, h("div", { key: 'd88a3f49c6cd1c0798774d06b9510fa62592138f', class: {
|
|
860
860
|
'sd-table__wrapper': true,
|
|
861
861
|
'sd-table__wrapper--radius-useTop': this.radius === 'useTop',
|
|
862
862
|
'sd-table__wrapper--radius-full': this.radius === 'full',
|
|
863
|
-
} }, h("div", { key: '
|
|
863
|
+
} }, h("div", { key: '891e2acca41a9224acaa1a688eedbb2defea7964', class: {
|
|
864
864
|
'sd-table__scroll-container': true,
|
|
865
865
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
866
866
|
'sd-table__scroll-container--no-data': isNoData,
|
|
867
|
-
} }, this.isLoading && (h("div", { key: '
|
|
867
|
+
} }, this.isLoading && (h("div", { key: 'e59045daf43b2ac2e34a77e6b3532d5f6b18d1f5', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '88023a5a6a25fef9f643e9c25a822adc292d8dff', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: 'd532beb284595d75086b9fd529ecd23c8ca9f03d', class: "sd-table__no-data-header-overlay" }), h("div", { key: 'f0d1047870fdb069bfc89caf14e52c14c664e57e', class: "sd-table__no-data" }, h("div", { key: '827123263a6dfaef37a59f6773e1385d4fc56579', class: "sd-table__no-data-content", ref: el => {
|
|
868
868
|
this.noDataContentEl = el;
|
|
869
869
|
if (el)
|
|
870
870
|
this.syncNoDataContentObserver();
|
|
871
|
-
} }, h("slot", { key: '
|
|
871
|
+
} }, h("slot", { key: '208dec9639a23e294eb8b2d806a0bc4a33fbfee7', name: "no-data" }, h("span", { key: '7afeda8315328ffb550bbf977ad8c68aaf7ea8cb' }, this.resolvedNoDataLabel)))))), h("table", { key: '66fc88a1ce062da02512fa4ec8f147cb8a24c876', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
872
872
|
this.pagination.rowsPerPage > 0 &&
|
|
873
873
|
this.rowCount > 0 &&
|
|
874
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
874
|
+
!this.useVirtualScroll && (h("div", { key: '98a0feac03369f0fb49db1378b0a1bdc84b4cf8e', class: "sd-table__pagination" }, h("sd-pagination", { key: 'b030119f0952a7375176775c666a16952828057b', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: '3873d513d3f17a3ff3ae92fcbe38132faef8e07a', value: this.useInternalPagination
|
|
875
875
|
? this.innerRowsPerPage
|
|
876
876
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
877
877
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -46,9 +46,9 @@ export class SdTbody {
|
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '72061abfda67f548675b6def5d217d2263b693a9', slot: `${this.tableId}-body` }, h("tbody", { key: 'e2ac60a7c395d2a411ac7811851a2916fe762f3c', class: { tbody: true } }, [
|
|
50
50
|
this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
51
|
-
h("slot", { key: '
|
|
51
|
+
h("slot", { key: 'af37117b1e162581569bcf6d14a8cc3289f9c6d4' }),
|
|
52
52
|
this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
53
53
|
])));
|
|
54
54
|
}
|
|
@@ -159,7 +159,7 @@ export class SdTd {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
|
-
return (h(Host, { key: '
|
|
162
|
+
return (h(Host, { key: 'b2037351ddf7c9a8998befd477ffb81b7f204c99', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: 'f9d2bd1433c737fc6cb209f45e773c5317cf3cde' })));
|
|
163
163
|
}
|
|
164
164
|
static get is() { return "sd-td"; }
|
|
165
165
|
static get originalStyleUrls() {
|
|
@@ -241,16 +241,16 @@ export class SdThead {
|
|
|
241
241
|
'--table-border-color': TABLE_BORDER.color,
|
|
242
242
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
243
243
|
};
|
|
244
|
-
return (h(Host, { key: '
|
|
244
|
+
return (h(Host, { key: '2f2218c9c0ba02fc59eb026944a3e26fbf741f23', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '008fc1ef83c882dd85fd9d6b8490a3246183e758', class: {
|
|
245
245
|
'thead': true,
|
|
246
246
|
'thead--sticky': this._stickyHeader,
|
|
247
|
-
} }, h("tr", { key: '
|
|
247
|
+
} }, h("tr", { key: 'ff679599539ea36d74160d31258bc06c4c6d0fda', class: "tr" }, this._selectable && (h("th", { key: '9fd149c26ec979f3f82eb5b1fad56cf963ee1e7f', class: {
|
|
248
248
|
'th': true,
|
|
249
249
|
'th--selected': true,
|
|
250
250
|
'sticky-left': true,
|
|
251
251
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
252
252
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
253
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
253
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'feab85e049c99a1a565b250f5b0aa0ed6d986d65', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }), h("div", { key: 'bf68afc8990977e607cbd6f25b19f6442b7fbab3', class: "th__bar" }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
|
|
254
254
|
'th': true,
|
|
255
255
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
256
256
|
'sticky-left': true,
|
|
@@ -190,7 +190,9 @@ export class SdTr {
|
|
|
190
190
|
const isUseFrameRow = this.tableEl?.hasUseFrameInRowSync?.(this.rowKey) ?? false;
|
|
191
191
|
const effectiveDense = this._dense && !isUseFrameRow;
|
|
192
192
|
const rowLayoutY = effectiveDense ? TABLE_BODY_LAYOUT.dense : TABLE_BODY_LAYOUT.default;
|
|
193
|
-
const rowPaddingX =
|
|
193
|
+
const rowPaddingX = effectiveDense
|
|
194
|
+
? TABLE_BODY_LAYOUT.densePaddingX
|
|
195
|
+
: TABLE_BODY_LAYOUT.paddingX;
|
|
194
196
|
const rowStyle = {
|
|
195
197
|
'display': this.isVisible ? '' : 'none',
|
|
196
198
|
'--table-body-height': `${rowLayoutY.height}px`,
|
|
@@ -78,7 +78,7 @@ export class SdTabs {
|
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h("div", { key: '
|
|
81
|
+
return (h("div", { key: 'a844eb9710ff03e3878225aa8dc5e14ed270efde', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
82
82
|
const badgeName = this.getBadgeName(tab);
|
|
83
83
|
return (h("div", { key: `tab-${index}`, 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 => {
|
|
84
84
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -139,7 +139,7 @@ export class SdTextarea {
|
|
|
139
139
|
'--sd-system-size-field-sm-height': 'auto',
|
|
140
140
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
141
141
|
};
|
|
142
|
-
return (h("sd-field", { key: '
|
|
142
|
+
return (h("sd-field", { key: '2ad9f1d11282bcbf4da1d365e8084b3e6dd1a434', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '8e70c87579b4d2ec7908b749867ba090cd4ca743', class: "sd-textarea__content" }, h("textarea", { key: 'fe72f7208a22c8f36786cb53b8bbf18e5d7cf939', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
143
143
|
}
|
|
144
144
|
static get is() { return "sd-textarea"; }
|
|
145
145
|
static get originalStyleUrls() {
|
|
@@ -26,12 +26,12 @@ export class SdToast {
|
|
|
26
26
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
27
27
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
28
28
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: '434d4e58eed6589ed5cceb9df4c131a0594055e6', style: {
|
|
30
30
|
'--sd-toast-bg': typeConfig.bg,
|
|
31
31
|
'--sd-toast-text': typeConfig.content,
|
|
32
32
|
'--sd-toast-icon': iconColor,
|
|
33
33
|
'--sd-toast-link': linkColor,
|
|
34
|
-
} }, h("div", { key: '
|
|
34
|
+
} }, h("div", { key: '51209146aa46961d9a673417b72e96e1aef3f53b', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: 'a2b10d38936b85174d0315cae7bee2115ae06aba', class: "sd-toast__icon" }, h("sd-icon", { key: '96243916be0cf117a0f85801de8294eec8f7900b', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: 'bb5b2363aafb9322a356f7e0e94acd5b2723f8d2', class: "sd-toast__content" }, h("span", { key: '25535fc30123491e5cea78ae17ee8e32c2c8b986', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: 'bf110d2492ae38fbac422f7fbf6177bbd56fae2d', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: 'f8543c13d11222bac64dd4eab79cda0eaf78a396', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: 'c9ccf9348f116c3a5b22d649407c281cb22c09ab', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "sd-toast"; }
|
|
37
37
|
static get originalStyleUrls() {
|
|
@@ -143,9 +143,9 @@ export class SdToastContainer {
|
|
|
143
143
|
'top-left': { top: '20px', left: '20px' },
|
|
144
144
|
'top-center': { top: '20px', left: '50%', transform: 'translateX(-50%)' },
|
|
145
145
|
'top-right': { top: '20px', right: '20px' },
|
|
146
|
-
'bottom-left': { bottom: '
|
|
147
|
-
'bottom-center': { bottom: '
|
|
148
|
-
'bottom-right': { bottom: '
|
|
146
|
+
'bottom-left': { bottom: '100px', left: '20px' },
|
|
147
|
+
'bottom-center': { bottom: '100px', left: '50%', transform: 'translateX(-50%)' },
|
|
148
|
+
'bottom-right': { bottom: '100px', right: '20px' },
|
|
149
149
|
};
|
|
150
150
|
return { ...base, ...posMap[position] };
|
|
151
151
|
}
|
|
@@ -225,7 +225,7 @@ export class SdToastContainer {
|
|
|
225
225
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
226
226
|
const indexMap = new Map();
|
|
227
227
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
228
|
-
return (h("div", { key: '
|
|
228
|
+
return (h("div", { key: '005ce1d424e17b13a685c99e49d2eeda295d4346', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
229
229
|
this.expanded = true;
|
|
230
230
|
this.pauseTimers();
|
|
231
231
|
}, onMouseLeave: () => {
|
|
@@ -49,7 +49,7 @@ export class SdToggle {
|
|
|
49
49
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
50
50
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
51
51
|
};
|
|
52
|
-
return (h("label", { key: '
|
|
52
|
+
return (h("label", { key: 'e60aa1379566c4586ea4f7e852425f8829e806d1', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '9f2260749b392c0c72ad2a53b515f0b886e62c3a', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "sd-toggle"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -142,7 +142,7 @@ export class SdTooltip {
|
|
|
142
142
|
const bodyHTML = this.message && this.message.length > 0
|
|
143
143
|
? this.message.map(line => `<div>${line}</div>`).join('')
|
|
144
144
|
: this.slotContentHTML;
|
|
145
|
-
return (h(Fragment, { key: '
|
|
145
|
+
return (h(Fragment, { key: '107b6b1440f67af45a464b40087332516629307e' }, h("div", { key: 'fc25ef3729300faabb5ce8b2c6b68ecded179231', ref: el => (this.triggerEl = el), class: triggerClasses, ...divTrigger }, anchorMode ? (h("slot", { name: "anchor" })) : hasLabel ? (h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-tooltip", ...buttonClickTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (h("sd-floating-portal", { key: '05260374115f355f0fda28e02cf4a3a04e0dff42', parentRef: anchorMode ? this.triggerEl : this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, h("div", { key: '49a4403383ff133755e0347a27c5552e7b2ed73a', ref: el => (this.menuEl = el), class: {
|
|
146
146
|
'sd-floating-menu': true,
|
|
147
147
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
148
148
|
[`sd-floating-menu--${placement}`]: true,
|
|
@@ -150,7 +150,7 @@ export class SdTooltip {
|
|
|
150
150
|
}, style: {
|
|
151
151
|
'--sd-floating-bg': typeConfig.bg,
|
|
152
152
|
'--sd-floating-content': typeConfig.content,
|
|
153
|
-
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, h("i", { key: '
|
|
153
|
+
}, onMouseEnter: () => this.openTooltip(), onMouseLeave: () => !this.useClose && this.startHideTimer() }, h("i", { key: '7944b50d1b97f97689572f672e86c80c0a4d516e', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: '582508e26720f9890fec206b5d78a054797d85d1' })), h("div", { key: 'a4555d1a0fc7a6c76206626fe8e7dec897a07e74', class: "sd-floating-menu__content", innerHTML: bodyHTML }), this.useClose && (h("sd-ghost-button", { key: '2852500a51166b6b851fd7361f75e16d1bcb9d5c', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xxs", onClick: () => this.closeTooltip() })))))));
|
|
154
154
|
}
|
|
155
155
|
static get is() { return "sd-tooltip"; }
|
|
156
156
|
static get originalStyleUrls() {
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-PFLrdhQj.js";import{c as t}from"./p-DRVnqiWc.js";let n=null;function e(t,n){void 0!==n&&(void 0!==n.position&&t.setAttribute("position",n.position),null!=n.maxVisible&&t.setAttribute("max-visible",n.maxVisible+""),null!=n.defaultDuration&&t.setAttribute("default-duration",n.defaultDuration+""),null!=n.zIndex&&t.setAttribute("z-index",n.zIndex+""))}function i(t){return n&&document.body.contains(n)?(e(n,t),n):(n=document.createElement("sd-toast-container"),e(n,t),document.body.appendChild(n),n)}function o(t){return"function"==typeof t.create?Promise.resolve():new Promise((n=>{const e=()=>{"function"==typeof t.create?n():requestAnimationFrame(e)};requestAnimationFrame(e)}))}const c={async create(t,n,e){const{globalOptions:s,...r}=e??{},c=i(s);return await o(c),c.create({message:t,type:n,...r})},async dismiss(t){if(null!=n)return await o(n),n.dismiss(t)},async dismissAll(){if(null!=n)return await o(n),n.dismissAll()},configure(t){i(t)}},u="sd-modal-container";let d=null;const l={ok:"confirm",cancel:"cancel",close:"close"};class m{modalId;okFn;cancelFn;closeFn;clickFn;submitFn;dismissedFn;containerRef;pendingActions=[];dismissRequested=!1;constructor(t,n){this.modalId=t,this.containerRef=n}onOk(t){return this.okFn=t,this}onCancel(t){return this.cancelFn=t,this}onClose(t){return this.closeFn=t,this}onClick(t){return this.clickFn=t,this}onSubmit(t){return this.submitFn=t,this}onDismissed(t){return this.dismissedFn=t,this}update(t){return this.runOrQueue((()=>{this.containerRef?.update(this.modalId,t)})),this}ok(){return this.dismiss("ok")}cancel(){return this.dismiss("cancel")}close(){return this.dismiss("close")}dismiss(t="close"){if(this.dismissRequested)return this;this.dismissRequested=!0;const n=l[t];return this.runOrQueue((()=>{this.containerRef?.dismissById(this.modalId,n)})),this}_hasSubmit(){return null!=this.submitFn}_triggerOk(){this.okFn?.()}_triggerSubmit(){this.submitFn?.()}_triggerCancel(){this.cancelFn?.()}_triggerClose(){this.closeFn?.()}_triggerClick(){this.clickFn?.()}_triggerDismissed(){this.dismissedFn?.()}_setId(t){this.modalId=t;const n=[...this.pendingActions];this.pendingActions=[],n.forEach((t=>t()))}_setContainer(t){this.containerRef=t}runOrQueue(t){""===this.modalId||null==this.containerRef?this.pendingActions.push(t):t()}}function h(){if("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof customElements)throw Error("[sdModal] Browser APIs are unavailable. Use `sdModal` only on the client.")}function f(){if(h(),function(){if(!customElements.get(u))throw Error("[sdModal] `sd-modal-container` is not registered. Call `defineCustomElements(window)` before using `sdModal`.")}(),d&&d.isConnected)return d;const t=document.createElement(u);return t.setAttribute("auto-remove",""),document.body.appendChild(t),d=t,t}async function w(t){if(await customElements.whenDefined(u),"function"==typeof t.open)return Promise.resolve();throw Error("[sdModal] `sd-modal-container` is registered but not ready to open dialogs.")}function p(){return new m("")}function y(t,n){const{component:e,persistent:s}=n,i=f(),o={persistent:s};t._setContainer(i),w(i).then((async()=>{const n=await i.createCustom(e,o,t);t._setId(n)}))}const E={confirm(t){const n=f(),e=new m("",n);return w(n).then((async()=>{const s=await n.open(t,e);e._setId(s)})),e},loading(t={}){const n=f(),e=new m("",n);return w(n).then((async()=>{const s=await n.openLoading(t,e);e._setId(s)})),e},create(t){const n=p();return y(n,t),n},configure(n){h(),t(n)}},C="sd-loading-container";let k=null;async function F(t){const n=(function(){if("undefined"==typeof window||"undefined"==typeof document||"undefined"==typeof customElements)throw Error("[sdLoading] Browser APIs are unavailable. Use `sdLoading` only on the client.")}(),function(){if(!customElements.get(C))throw Error("[sdLoading] `sd-loading-container` is not registered. Call `defineCustomElements(window)` before using `sdLoading`.")}(),k&&document.body.contains(k)||(k=document.createElement(C),document.body.appendChild(k)),k);await customElements.whenDefined(C),t(n)}const P={show(t={}){F((n=>{n.show?.(t)}))},hide(){k&&F((t=>{t.hide?.()}))}};export{y as _attachSdModalWithRef,p as _createSdModalRef,P as sdLoading,E as sdModal,c as sdToast}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as r,t as i}from"./p-
|
|
1
|
+
import{p as e,H as s,c as t,h as r,t as i}from"./p-PFLrdhQj.js";import{i as g,h as o,j as l,k as c}from"./p-x9AWBHPy.js";import{s as d}from"./p-BE4tnQ2Z.js";import{d as n}from"./p-BKV1WAFb.js";const a=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.triggerClick=t(this,"sdTriggerClick",7),this.triggerFocus=t(this,"sdTriggerFocus",7),this.triggerBlur=t(this,"sdTriggerBlur",7)}displayText="";placeholder="선택";disabled=!1;isOpen=!1;triggerClick;triggerFocus;triggerBlur;triggerEl;async sdFocus(){this.disabled||this.triggerEl?.focus()}handleClick=()=>{this.disabled||this.triggerClick.emit()};handleFocus=()=>{this.triggerFocus.emit()};handleBlur=()=>{this.triggerBlur.emit()};render(){const e=""!==this.displayText;return r("div",{key:"33e639898a581e8556e1e9c966f14cb863246c35",ref:e=>{this.triggerEl=e},role:"button","aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false",tabindex:this.disabled?-1:0,class:{"sd-select-trigger":!0,"sd-select-trigger--open":this.isOpen,"sd-select-trigger--disabled":this.disabled},style:{"--trigger-padding-x":`${c.paddingX}px`,"--trigger-gap":`${c.gap}px`,"--trigger-font-size":`${l.fontSize}px`,"--trigger-line-height":`${l.lineHeight}px`,"--trigger-font-weight":l.fontWeight,"--trigger-color":this.disabled?o.text.disabled:e?o.text.default:o.icon.default,"--trigger-icon-color":this.disabled?o.icon.disabled:o.icon.default},onClick:this.handleClick,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClick())},onFocus:this.handleFocus,onBlur:this.handleBlur},r("div",{key:"a935f82879727eb212422c875b16e5fbf01460ba",class:"sd-select-trigger__content"},e&&g(this.displayText)?r("span",{class:"sd-select-trigger__text",ref:e=>e&&(e.innerHTML=d(this.displayText))}):r("span",{class:"sd-select-trigger__text"},e?this.displayText:this.placeholder??"선택"),r("sd-icon",{key:"e98e8e317aa86a960674b21714ca90cfa3920197",name:"chevronDown",size:12,color:"var(--trigger-icon-color)",class:{"sd-select-trigger__icon":!0,"sd-select-trigger__icon--open":this.isOpen}})))}static get style(){return"sd-select-trigger{display:block;width:100%;height:100%}sd-select-trigger .sd-select-trigger{display:flex;width:100%;height:100%;cursor:pointer;user-select:none;overflow:hidden;border-radius:3px}sd-select-trigger .sd-select-trigger--disabled{cursor:not-allowed}sd-select-trigger .sd-select-trigger__content{display:flex;align-items:center;gap:var(--trigger-gap);flex:1;padding:0 var(--trigger-padding-x);min-width:0}sd-select-trigger .sd-select-trigger__text{flex:1;font-size:var(--trigger-font-size);line-height:var(--trigger-line-height);font-weight:var(--trigger-font-weight);color:var(--trigger-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-select-trigger .sd-select-trigger__icon{flex-shrink:0;transition:transform 0.2s ease}sd-select-trigger .sd-select-trigger__icon--open{transform:rotate(180deg)}"}},[512,"sd-select-trigger",{displayText:[1,"display-text"],placeholder:[1],disabled:[4],isOpen:[4,"is-open"],sdFocus:[64]}]);function h(){"undefined"!=typeof customElements&&["sd-select-trigger","sd-icon"].forEach((e=>{switch(e){case"sd-select-trigger":customElements.get(i(e))||customElements.define(i(e),a);break;case"sd-icon":customElements.get(i(e))||n()}}))}export{a as S,h as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={listItem:{paddingY:"4",paddingRight:"12",gap:"8",paddingLeft:{depth1:"12",depth2:"20",depth3:"28"},typography:{default:{fontFamily:"Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",fontWeight:"400",fontSize:"12",lineHeight:"20"},selected:{fontWeight:"700"}},bg:{default:"#FFFFFF",hover:"#0075FF"},content:{default:"#222222",hover:"#FFFFFF",disabled:"#888888",selected:"#0075FF"},depth1:{bg:{default:"#EFF6FF"},border:{color:"#E1E1E1",width:"1"}},depth2:{middle:{bg:"#F6F6F6"}}}};export{e as l}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e={table:{header:{height:"36",paddingX:"16",gap:"4",bg:"#F5FAFF",typography:{fontFamily:"Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",fontWeight:"500",fontSize:"12",lineHeight:"20",textDecoration:"none"},resizingBar:{color:"#CCCCCC",height:"16"}},body:{default:{height:"44",paddingY:"8"},dense:{height:"32"},paddingY:{dense:"6"},paddingX:{default:"8",wide:"16"},typography:{fontFamily:"Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",fontWeight:"400",fontSize:"12",lineHeight:"20",textDecoration:"none"}},border:{color:"#E1E1E1",width:"1"},content:{gap:"8"},radius:"8",keyValue:{body:{paddingY:"8"},height:"44",search:{paddingX:"32",bg:"#F9F9F9"}},separator:{color:"#EEEEEE",width:{default:"6",dense:"4"}}}};export{e as t}
|