@sellmate/design-system 1.0.78 → 1.1.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.table-B7brIpIQ.js +56 -0
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index--F2wGuAi.js → index-BlxrCRYi.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{resolveColor-LhfOKtTZ.js → resolveColor-B0hzQNLG.js} +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +3 -3
- package/dist/cjs/sd-badge.cjs.entry.js +2 -3
- package/dist/cjs/sd-barcode-input.cjs.entry.js +3 -3
- package/dist/cjs/{sd-button-v2.config-CnqCQQMi.js → sd-button.config-DH08UNfl.js} +114 -28
- package/dist/cjs/{sd-button-v2_2.cjs.entry.js → sd-button_2.cjs.entry.js} +101 -85
- package/dist/cjs/sd-calendar.cjs.entry.js +15 -15
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/sd-chip.cjs.entry.js +2 -2
- package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +19 -11
- package/dist/cjs/sd-date-box.cjs.entry.js +4 -4
- package/dist/cjs/{sd-date-picker-calendar.cjs.entry.js → sd-date-picker-calendar_2.cjs.entry.js} +51 -3
- package/dist/cjs/{sd-date-picker.config-CRgCT5dn.js → sd-date-picker.config-CjvrFpYK.js} +1 -2
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +1230 -0
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +3 -3
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +28 -27
- package/dist/cjs/{sd-button_4.cjs.entry.js → sd-field_3.cjs.entry.js} +26 -82
- package/dist/cjs/sd-form.cjs.entry.js +2 -2
- package/dist/cjs/sd-ghost-button.cjs.entry.js +12 -10
- package/dist/cjs/sd-guide.cjs.entry.js +9 -9
- package/dist/cjs/sd-key-value-table.cjs.entry.js +230 -0
- package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/{sd-pagination_5.cjs.entry.js → sd-pagination_4.cjs.entry.js} +34 -296
- package/dist/cjs/sd-popover.cjs.entry.js +17 -10
- package/dist/cjs/sd-popup.cjs.entry.js +112 -0
- package/dist/cjs/sd-portal.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button.cjs.entry.js +4 -4
- package/dist/cjs/sd-radio.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +155 -0
- package/dist/cjs/sd-select.config-B19ptCT2.js +178 -0
- package/dist/cjs/{sd-select-list-item_4.cjs.entry.js → sd-select_3.cjs.entry.js} +286 -318
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +40 -23
- package/dist/cjs/sd-table.config-CDyioyE2.js +65 -0
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.cjs.entry.js +49 -14
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +8 -5
- package/dist/cjs/sd-toast-container.cjs.entry.js +5 -5
- package/dist/cjs/sd-toast.cjs.entry.js +35 -5
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{system-DpTN1vBC.js → system-VmZRYp6V.js} +4 -2
- package/dist/cjs/{tooltipArrow-D1-wcNm1.js → tooltipArrow-N6nQ1QT-.js} +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/assets/CheckboxCheck.js +5 -0
- package/dist/collection/components/assets/CheckboxIndeterminate.js +5 -0
- package/dist/collection/components/assets/index.js +4 -0
- package/dist/collection/components/sd-action-modal/sd-action-modal.css +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +7 -7
- package/dist/collection/components/sd-badge/sd-badge.config.js +10 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -22
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +4 -4
- package/dist/collection/components/{sd-button-v2/sd-button-v2.config.js → sd-button/sd-button.config.js} +1 -1
- package/dist/collection/components/sd-button/sd-button.css +47 -93
- package/dist/collection/components/sd-button/sd-button.js +99 -173
- package/dist/collection/components/sd-calendar/sd-calendar.js +14 -14
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +3 -3
- package/dist/collection/components/sd-chip/sd-chip.js +1 -1
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +13 -8
- package/dist/collection/components/sd-date-box/sd-date-box.js +3 -3
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.css +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +7 -5
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +4 -4
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +4 -4
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +1 -1
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +13 -11
- package/dist/collection/components/sd-field/sd-field.css +6 -2
- package/dist/collection/components/sd-field/sd-field.js +30 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +4 -4
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -3
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +3 -3
- package/dist/collection/components/sd-form/sd-form.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +12 -10
- package/dist/collection/components/sd-guide/sd-guide.css +8 -172
- package/dist/collection/components/sd-guide/sd-guide.js +6 -4
- package/dist/collection/components/sd-icon/sd-icon.js +4 -4
- package/dist/collection/components/sd-input/sd-input.css +4 -2
- package/dist/collection/components/sd-input/sd-input.js +5 -5
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +36 -0
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +119 -0
- package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +301 -0
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +6 -3
- package/dist/collection/components/sd-number-input/sd-number-input.css +7 -0
- package/dist/collection/components/sd-number-input/sd-number-input.js +6 -3
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +128 -35
- package/dist/collection/components/sd-popup/sd-popup.config.js +34 -0
- package/dist/collection/components/sd-popup/sd-popup.css +73 -0
- package/dist/collection/components/sd-popup/sd-popup.js +163 -0
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +3 -3
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +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.css +4 -4
- 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 +5 -5
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +5 -5
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.config.js +2 -2
- package/dist/collection/components/sd-table/sd-table.css +8 -8
- package/dist/collection/components/sd-table/sd-table.js +54 -18
- 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.css +4 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +21 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.config.js +40 -8
- package/dist/collection/components/sd-tag/sd-tag.js +9 -6
- package/dist/collection/components/sd-text-link/sd-text-link.css +1 -0
- package/dist/collection/components/sd-text-link/sd-text-link.js +5 -4
- package/dist/collection/components/sd-textarea/sd-textarea.css +3 -0
- package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
- package/dist/collection/components/sd-toast/sd-toast.config.js +14 -0
- package/dist/collection/components/sd-toast/sd-toast.css +3 -5
- package/dist/collection/components/sd-toast/sd-toast.js +52 -5
- 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 +77 -30
- package/dist/collection/utils/color/resolveColor.js +2 -2
- package/dist/collection/utils/dropdown-manager.js +1 -1
- package/dist/collection/utils/toast.js +4 -4
- package/dist/components/index.js +1 -1
- package/dist/components/p--t9jBTYS.js +1 -0
- package/dist/components/p-At6nBeyO.js +1 -0
- package/dist/components/p-B1MabGRR.js +1 -0
- package/dist/components/{p-CeVMl_M9.js → p-B73VhbYi.js} +1 -1
- package/dist/components/p-BDQQllAo.js +1 -0
- package/dist/components/p-BDr27lvk.js +1 -0
- package/dist/components/p-BPsOJlCP.js +1 -0
- package/dist/components/p-BQ6at17Y.js +1 -0
- package/dist/components/p-BW_sBt7X.js +1 -0
- package/dist/components/p-BX3TJuQY.js +1 -0
- package/dist/components/p-BeK8amzx.js +1 -0
- package/dist/components/{p-Bvq0Vpln.js → p-BfkuCNCI.js} +1 -1
- package/dist/components/p-Bm_T3qE0.js +1 -0
- package/dist/components/{p-DegvQLTF.js → p-BnzK4uU4.js} +1 -1
- package/dist/components/{p-q0VWISKA.js → p-BqkJ0rZv.js} +1 -1
- package/dist/components/p-C4PmGpW8.js +1 -0
- package/dist/components/{p-Nvx13YlG.js → p-C9CszVFl.js} +1 -1
- package/dist/components/p-CGBnxqG2.js +1 -0
- package/dist/components/p-CGQWERwE.js +1 -0
- package/dist/components/{p-DkJqVXpD.js → p-CT3dfy3K.js} +1 -1
- package/dist/components/p-CZmKBmKx.js +1 -0
- package/dist/components/p-CnarDyZi.js +1 -0
- package/dist/components/p-Cr2ghUra.js +1 -0
- package/dist/components/{p-BStczlLa.js → p-Cspm6LxP.js} +1 -1
- package/dist/components/p-Cx3jXw9J.js +1 -0
- package/dist/components/{p-Dcc2Vm6z.js → p-D5TRyquv.js} +1 -1
- package/dist/components/p-D8WAP9T3.js +1 -0
- package/dist/components/p-DG-4Ifco.js +1 -0
- package/dist/components/{p-TwGlKfsC.js → p-DG45uNxd.js} +1 -1
- package/dist/components/p-DdLntfiw.js +1 -0
- package/dist/components/{p-BJsHakU2.js → p-DfXAgw0E.js} +1 -1
- package/dist/components/p-Dr1AMbBj.js +1 -0
- package/dist/components/p-GBlVDmy4.js +1 -0
- package/dist/components/p-MMkRcTBd.js +1 -0
- package/dist/components/p-MQTl8fGT.js +1 -0
- package/dist/components/p-ZstG0XdT.js +1 -0
- package/dist/components/p-h7eBUL4i.js +1 -0
- package/dist/components/p-lyB7zSp-.js +1 -0
- package/dist/components/{p-D1DpOp6M.js → p-oIM6jNZe.js} +1 -1
- package/dist/components/p-oKHZl8yu.js +1 -0
- package/dist/components/p-ofkgu5aS.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.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-calendar.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-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.d.ts +11 -0
- package/dist/components/sd-key-value-table.js +1 -0
- 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-button-v2.d.ts → sd-popup.d.ts} +4 -4
- package/dist/components/sd-popup.js +1 -0
- 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/index.esm.js +1 -1
- package/dist/design-system/p-02289728.entry.js +1 -0
- package/dist/design-system/p-17d66d85.entry.js +1 -0
- package/dist/design-system/p-18466728.entry.js +1 -0
- package/dist/design-system/p-1bb86d69.entry.js +1 -0
- package/dist/design-system/p-20a50702.entry.js +1 -0
- package/dist/design-system/p-21874054.entry.js +1 -0
- package/dist/design-system/p-282cbefa.entry.js +1 -0
- package/dist/design-system/p-29ed11e5.entry.js +1 -0
- package/dist/design-system/p-328fae12.entry.js +1 -0
- package/dist/design-system/p-35dce399.entry.js +1 -0
- package/dist/design-system/{p-1cf87e87.entry.js → p-39ff56b4.entry.js} +1 -1
- package/dist/design-system/p-3cb712a6.entry.js +1 -0
- package/dist/design-system/{p-f522c91d.entry.js → p-4e2953eb.entry.js} +1 -1
- package/dist/design-system/p-7610153d.entry.js +1 -0
- package/dist/design-system/{p-25a08e98.entry.js → p-7722ddeb.entry.js} +1 -1
- package/dist/design-system/{p-6bfe3612.entry.js → p-7882e388.entry.js} +1 -1
- package/dist/design-system/p-7bfa0cf9.entry.js +1 -0
- package/dist/design-system/p-824ecfb5.entry.js +1 -0
- package/dist/design-system/p-9a04b341.entry.js +1 -0
- package/dist/design-system/p-BDjErF_K.js +1 -0
- package/dist/design-system/p-BQ6at17Y.js +1 -0
- package/dist/design-system/p-CGQWERwE.js +1 -0
- package/dist/design-system/p-CLCoul8o.js +2 -0
- package/dist/design-system/{p-BxPyZJaz.js → p-Ce0cmS4R.js} +1 -1
- package/dist/design-system/p-CxOCk_ge.js +1 -0
- package/dist/design-system/{p-DnCBBIoq.js → p-Dmf0PYdM.js} +1 -1
- package/dist/design-system/p-GBlVDmy4.js +1 -0
- package/dist/design-system/{p-455dccf5.entry.js → p-a7a0ca14.entry.js} +1 -1
- package/dist/design-system/{p-f44786a9.entry.js → p-a942dfbe.entry.js} +1 -1
- package/dist/design-system/p-b04b22c6.entry.js +1 -0
- package/dist/design-system/p-b1bb0d72.entry.js +1 -0
- package/dist/design-system/{p-ead3e688.entry.js → p-b6ca4461.entry.js} +1 -1
- package/dist/design-system/p-b96c694c.entry.js +1 -0
- package/dist/design-system/p-baed13e4.entry.js +1 -0
- package/dist/design-system/{p-045bc426.entry.js → p-bd45e65d.entry.js} +1 -1
- package/dist/design-system/p-bf4156d8.entry.js +1 -0
- package/dist/design-system/{p-e5cebccd.entry.js → p-c0f60b00.entry.js} +1 -1
- package/dist/design-system/p-c228c2c7.entry.js +1 -0
- package/dist/design-system/p-cbda9194.entry.js +1 -0
- package/dist/design-system/{p-fe9cef6a.entry.js → p-cd8e4dd6.entry.js} +1 -1
- package/dist/design-system/p-cf382479.entry.js +1 -0
- package/dist/design-system/p-d0de34fd.entry.js +1 -0
- package/dist/design-system/p-d78fbe16.entry.js +1 -0
- package/dist/design-system/p-e1c0a3c9.entry.js +1 -0
- package/dist/design-system/{p-797517b5.entry.js → p-f3cfff78.entry.js} +1 -1
- package/dist/design-system/{p-3f7bc660.entry.js → p-f5576a0d.entry.js} +1 -1
- package/dist/design-system/p-f60cc7be.entry.js +1 -0
- package/dist/design-system/{p-33bc3176.entry.js → p-feeb0cc5.entry.js} +1 -1
- package/dist/esm/component.table-BQ6at17Y.js +54 -0
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-Cnwbjz1F.js → index-CLCoul8o.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{resolveColor-BxPyZJaz.js → resolveColor-Ce0cmS4R.js} +2 -2
- package/dist/esm/sd-action-modal.entry.js +3 -3
- package/dist/esm/sd-badge.entry.js +2 -3
- package/dist/esm/sd-barcode-input.entry.js +3 -3
- package/dist/esm/{sd-button-v2.config-CV4xelxV.js → sd-button.config-BDjErF_K.js} +88 -3
- package/dist/esm/{sd-button-v2_2.entry.js → sd-button_2.entry.js} +101 -85
- package/dist/esm/sd-calendar.entry.js +15 -15
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +4 -4
- package/dist/esm/sd-chip.entry.js +2 -2
- package/dist/esm/sd-circle-progress.entry.js +3 -3
- package/dist/esm/sd-confirm-modal_2.entry.js +19 -11
- package/dist/esm/sd-date-box.entry.js +4 -4
- package/dist/esm/{sd-date-picker-calendar.entry.js → sd-date-picker-calendar_2.entry.js} +51 -4
- package/dist/esm/{sd-date-picker.config-C2fDbE9d.js → sd-date-picker.config-B6cqMQaM.js} +1 -2
- package/dist/esm/sd-date-picker_7.entry.js +1222 -0
- package/dist/esm/sd-date-range-picker-calendar.entry.js +3 -3
- package/dist/esm/sd-dropdown-button.entry.js +15 -14
- package/dist/esm/{sd-button_4.entry.js → sd-field_3.entry.js} +27 -82
- package/dist/esm/sd-form.entry.js +2 -2
- package/dist/esm/sd-ghost-button.entry.js +12 -10
- package/dist/esm/sd-guide.entry.js +9 -9
- package/dist/esm/sd-key-value-table.entry.js +228 -0
- package/dist/esm/sd-linear-progress.entry.js +3 -3
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/{sd-pagination_5.entry.js → sd-pagination_4.entry.js} +35 -296
- package/dist/esm/sd-popover.entry.js +17 -10
- package/dist/esm/sd-popup.entry.js +110 -0
- package/dist/esm/sd-portal.entry.js +2 -2
- package/dist/esm/sd-radio-button.entry.js +4 -4
- package/dist/esm/sd-radio.entry.js +2 -2
- package/dist/esm/sd-select-list-item_2.entry.js +152 -0
- package/dist/esm/sd-select.config-CxOCk_ge.js +165 -0
- package/dist/esm/{sd-select-list-item_4.entry.js → sd-select_3.entry.js} +271 -302
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/{sd-table.config-Bj-EEo7N.js → sd-table.config-0Te8GLCI.js} +4 -44
- package/dist/esm/sd-table.entry.js +40 -23
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js +49 -14
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +8 -5
- package/dist/esm/sd-toast-container.entry.js +5 -5
- package/dist/esm/sd-toast.entry.js +35 -5
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{system-CZ4ltUOw.js → system-GBlVDmy4.js} +4 -2
- package/dist/esm/{tooltipArrow-D8sr81Xw.js → tooltipArrow-Bc-yw2nt.js} +1 -1
- package/dist/types/components/assets/CheckboxCheck.d.ts +1 -0
- package/dist/types/components/assets/CheckboxIndeterminate.d.ts +1 -0
- package/dist/types/components/assets/index.d.ts +2 -0
- package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +2 -2
- package/dist/types/components/sd-badge/sd-badge.d.ts +0 -1
- package/dist/types/components/{sd-button-v2/sd-button-v2.config.d.ts → sd-button/sd-button.config.d.ts} +9 -15
- package/dist/types/components/sd-button/sd-button.d.ts +11 -13
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.config.d.ts +3 -3
- package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +2 -1
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +3 -3
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +1 -0
- package/dist/types/components/sd-field/sd-field.d.ts +1 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +105 -0
- package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +38 -0
- package/dist/types/components/sd-loading-modal/sd-loading-modal.config.d.ts +2 -2
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -1
- package/dist/types/components/sd-popover/sd-popover.d.ts +16 -10
- package/dist/types/components/sd-popup/sd-popup.config.d.ts +30 -0
- package/dist/types/components/sd-popup/sd-popup.d.ts +11 -0
- package/dist/types/components/sd-table/sd-table.d.ts +2 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +2 -0
- package/dist/types/components/sd-tag/sd-tag.d.ts +1 -0
- package/dist/types/components/sd-toast/sd-toast.config.d.ts +5 -1
- package/dist/types/components/sd-toast/sd-toast.d.ts +2 -0
- package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +2 -0
- package/dist/types/components/sd-tooltip/sd-tooltip.config.d.ts +2 -13
- package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +6 -4
- package/dist/types/components.d.ts +237 -184
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types/form.d.ts +1 -1
- package/dist/types/types/global.d.ts +14 -13
- package/dist/types/utils/toast.d.ts +1 -1
- package/hydrate/index.js +5182 -4738
- package/hydrate/index.mjs +5182 -4738
- package/package.json +111 -97
- package/readme.md +13 -7
- package/dist/cjs/component.button-cqV-iCG5.js +0 -90
- package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +0 -51
- package/dist/cjs/sd-date-picker.cjs.entry.js +0 -117
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +0 -123
- package/dist/cjs/sd-file-picker.cjs.entry.js +0 -244
- package/dist/cjs/sd-input.cjs.entry.js +0 -175
- package/dist/cjs/sd-number-input.cjs.entry.js +0 -409
- package/dist/cjs/sd-radio-group.cjs.entry.js +0 -46
- package/dist/cjs/sd-table.config-Cb0Ot3C6.js +0 -105
- package/dist/cjs/sd-textarea.cjs.entry.js +0 -146
- package/dist/collection/components/sd-button-v2/sd-button-v2.css +0 -125
- package/dist/collection/components/sd-button-v2/sd-button-v2.js +0 -273
- package/dist/components/p-B1XBwjCW.js +0 -1
- package/dist/components/p-B8jXOXtJ.js +0 -1
- package/dist/components/p-BE6TxbtX.js +0 -1
- package/dist/components/p-BcMNA89i.js +0 -1
- package/dist/components/p-BheX6lAy.js +0 -1
- package/dist/components/p-BmYM7-4v.js +0 -1
- package/dist/components/p-BppjYHF6.js +0 -1
- package/dist/components/p-BwWDMpJc.js +0 -1
- package/dist/components/p-C-kw2p2a.js +0 -1
- package/dist/components/p-C5qZtNLl.js +0 -1
- package/dist/components/p-C7DajKYn.js +0 -1
- package/dist/components/p-CZ4ltUOw.js +0 -1
- package/dist/components/p-D3gjBBCU.js +0 -1
- package/dist/components/p-DC-6inj0.js +0 -1
- package/dist/components/p-DRF0He-x.js +0 -1
- package/dist/components/p-Dey-lS6x.js +0 -1
- package/dist/components/p-DfH_fO01.js +0 -1
- package/dist/components/p-DngV3MT1.js +0 -1
- package/dist/components/p-EbjZr2OA.js +0 -1
- package/dist/components/p-LwWOleLJ.js +0 -1
- package/dist/components/p-ZMpCZhXP.js +0 -1
- package/dist/components/p-dNJIFthT.js +0 -1
- package/dist/components/p-xnLvZ-xn.js +0 -1
- package/dist/components/sd-button-v2.js +0 -1
- package/dist/design-system/p-0356c195.entry.js +0 -1
- package/dist/design-system/p-12dfd239.entry.js +0 -1
- package/dist/design-system/p-16d3a485.entry.js +0 -1
- package/dist/design-system/p-1706ed6f.entry.js +0 -1
- package/dist/design-system/p-182548f7.entry.js +0 -1
- package/dist/design-system/p-1a79edce.entry.js +0 -1
- package/dist/design-system/p-2812b9ce.entry.js +0 -1
- package/dist/design-system/p-38f661ea.entry.js +0 -1
- package/dist/design-system/p-429dab5c.entry.js +0 -1
- package/dist/design-system/p-59313838.entry.js +0 -1
- package/dist/design-system/p-6af01ab0.entry.js +0 -1
- package/dist/design-system/p-70d4903f.entry.js +0 -1
- package/dist/design-system/p-767e99f9.entry.js +0 -1
- package/dist/design-system/p-7c370335.entry.js +0 -1
- package/dist/design-system/p-7fe8be6a.entry.js +0 -1
- package/dist/design-system/p-83b262dc.entry.js +0 -1
- package/dist/design-system/p-881adaa5.entry.js +0 -1
- package/dist/design-system/p-88d7303c.entry.js +0 -1
- package/dist/design-system/p-8a601e0f.entry.js +0 -1
- package/dist/design-system/p-B1XBwjCW.js +0 -1
- package/dist/design-system/p-BsrEibf7.js +0 -1
- package/dist/design-system/p-C5qZtNLl.js +0 -1
- package/dist/design-system/p-CZ4ltUOw.js +0 -1
- package/dist/design-system/p-Cnwbjz1F.js +0 -2
- package/dist/design-system/p-a82be987.entry.js +0 -1
- package/dist/design-system/p-b917c82a.entry.js +0 -1
- package/dist/design-system/p-b9f00eef.entry.js +0 -1
- package/dist/design-system/p-bcb53788.entry.js +0 -1
- package/dist/design-system/p-c24344ac.entry.js +0 -1
- package/dist/design-system/p-d76192bd.entry.js +0 -1
- package/dist/design-system/p-d9d8c51b.entry.js +0 -1
- package/dist/design-system/p-de67937d.entry.js +0 -1
- package/dist/design-system/p-ea5e6c2c.entry.js +0 -1
- package/dist/design-system/p-eeb1cac2.entry.js +0 -1
- package/dist/design-system/p-f1a74359.entry.js +0 -1
- package/dist/design-system/p-f69c7539.entry.js +0 -1
- package/dist/esm/component.button-B1XBwjCW.js +0 -88
- package/dist/esm/sd-date-picker-trigger.entry.js +0 -49
- package/dist/esm/sd-date-picker.entry.js +0 -115
- package/dist/esm/sd-date-range-picker.entry.js +0 -121
- package/dist/esm/sd-file-picker.entry.js +0 -242
- package/dist/esm/sd-input.entry.js +0 -173
- package/dist/esm/sd-number-input.entry.js +0 -407
- package/dist/esm/sd-radio-group.entry.js +0 -44
- package/dist/esm/sd-textarea.entry.js +0 -144
- package/dist/types/components/sd-button-v2/sd-button-v2.d.ts +0 -19
- /package/dist/components/{p-C2fDbE9d.js → p-B6cqMQaM.js} +0 -0
- /package/dist/design-system/{p-C2fDbE9d.js → p-B6cqMQaM.js} +0 -0
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-Cnwbjz1F.js';
|
|
2
|
-
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
|
-
|
|
4
|
-
const numberInput = {
|
|
5
|
-
sm: {
|
|
6
|
-
height: "28",
|
|
7
|
-
paddingX: "6",
|
|
8
|
-
radius: "4",
|
|
9
|
-
typography: {
|
|
10
|
-
fontWeight: "400",
|
|
11
|
-
fontSize: "12",
|
|
12
|
-
lineHeight: "20"}
|
|
13
|
-
},
|
|
14
|
-
md: {
|
|
15
|
-
height: "36",
|
|
16
|
-
paddingX: "8",
|
|
17
|
-
radius: "6",
|
|
18
|
-
typography: {
|
|
19
|
-
fontWeight: "400",
|
|
20
|
-
fontSize: "14",
|
|
21
|
-
lineHeight: "24"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
contents: {
|
|
25
|
-
gap: "4"
|
|
26
|
-
},
|
|
27
|
-
border: {
|
|
28
|
-
"default": "#AAAAAA",
|
|
29
|
-
focus: "#0075FF",
|
|
30
|
-
danger: "#FB4444"},
|
|
31
|
-
bg: {
|
|
32
|
-
"default": "#FFFFFF"},
|
|
33
|
-
text: {
|
|
34
|
-
"default": "#222222",
|
|
35
|
-
placeholder: "#AAAAAA",
|
|
36
|
-
disabled: "#888888"
|
|
37
|
-
},
|
|
38
|
-
hint: {
|
|
39
|
-
color: "#555555",
|
|
40
|
-
typography: {
|
|
41
|
-
fontSize: "12",
|
|
42
|
-
lineHeight: "20"}
|
|
43
|
-
},
|
|
44
|
-
errorMessage: {
|
|
45
|
-
color: "#E30000",
|
|
46
|
-
typography: {
|
|
47
|
-
fontSize: "12",
|
|
48
|
-
lineHeight: "20"}
|
|
49
|
-
},
|
|
50
|
-
stepper: {
|
|
51
|
-
sm: {
|
|
52
|
-
size: "20"
|
|
53
|
-
},
|
|
54
|
-
md: {
|
|
55
|
-
size: "24"
|
|
56
|
-
},
|
|
57
|
-
radius: "4",
|
|
58
|
-
bg: {
|
|
59
|
-
"default": "#EFF6FF",
|
|
60
|
-
disabled: "#EEEEEE"
|
|
61
|
-
},
|
|
62
|
-
icon: {
|
|
63
|
-
"default": "#0075FF",
|
|
64
|
-
disabled: "#BBBBBB"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
var numberInputTokens = {
|
|
69
|
-
numberInput: numberInput
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
const sm = numberInputTokens.numberInput.sm;
|
|
73
|
-
const md = numberInputTokens.numberInput.md;
|
|
74
|
-
const NUMBER_INPUT_SIZE_MAP = {
|
|
75
|
-
sm: {
|
|
76
|
-
height: sm.height,
|
|
77
|
-
paddingX: sm.paddingX,
|
|
78
|
-
radius: sm.radius,
|
|
79
|
-
fontSize: sm.typography.fontSize,
|
|
80
|
-
lineHeight: sm.typography.lineHeight,
|
|
81
|
-
fontWeight: sm.typography.fontWeight,
|
|
82
|
-
},
|
|
83
|
-
md: {
|
|
84
|
-
height: md.height,
|
|
85
|
-
paddingX: md.paddingX,
|
|
86
|
-
radius: md.radius,
|
|
87
|
-
fontSize: md.typography.fontSize,
|
|
88
|
-
lineHeight: md.typography.lineHeight,
|
|
89
|
-
fontWeight: md.typography.fontWeight,
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
const NUMBER_INPUT_COLORS = {
|
|
93
|
-
border: numberInputTokens.numberInput.border,
|
|
94
|
-
bg: numberInputTokens.numberInput.bg,
|
|
95
|
-
text: numberInputTokens.numberInput.text,
|
|
96
|
-
};
|
|
97
|
-
const NUMBER_INPUT_STEPPER = {
|
|
98
|
-
sm: { size: numberInputTokens.numberInput.stepper.sm.size },
|
|
99
|
-
md: { size: numberInputTokens.numberInput.stepper.md.size },
|
|
100
|
-
radius: numberInputTokens.numberInput.stepper.radius,
|
|
101
|
-
bg: numberInputTokens.numberInput.stepper.bg,
|
|
102
|
-
icon: numberInputTokens.numberInput.stepper.icon,
|
|
103
|
-
};
|
|
104
|
-
const NUMBER_INPUT_HINT = numberInputTokens.numberInput.hint;
|
|
105
|
-
const NUMBER_INPUT_ERROR_MESSAGE = numberInputTokens.numberInput.errorMessage;
|
|
106
|
-
const NUMBER_INPUT_CONTENTS_GAP = numberInputTokens.numberInput.contents.gap;
|
|
107
|
-
|
|
108
|
-
const sdNumberInputCss = () => `sd-number-input{display:inline-flex}sd-number-input .sd-number-input__content{width:100%;height:100%;display:flex;flex-flow:row nowrap;align-items:center;color:var(--sd-number-input-text-color);font-size:var(--sd-number-input-font-size);line-height:var(--sd-number-input-line-height);font-weight:var(--sd-number-input-font-weight);padding:0 var(--sd-number-input-padding-x)}sd-number-input .sd-number-input__content .sd-number-input__native{width:100%;height:100%;min-width:0;border:none;outline:none;background:transparent;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;padding-block:0;padding-inline:0}sd-number-input .sd-number-input__content .sd-number-input__native[disabled]{cursor:not-allowed;color:var(--sd-number-input-disabled-color)}sd-number-input .sd-number-input__content .sd-number-input__native::placeholder{color:var(--sd-number-input-placeholder-color)}sd-number-input .sd-number-input__content .sd-number-input__prefix,sd-number-input .sd-number-input__content .sd-number-input__suffix{flex-shrink:0;white-space:nowrap;color:var(--sd-number-input-placeholder-color);font-size:inherit;line-height:inherit}sd-number-input .sd-number-input__content .sd-number-input__stepper{flex-shrink:0;width:var(--sd-number-input-stepper-size);height:var(--sd-number-input-stepper-size);border:none;border-radius:var(--sd-number-input-stepper-radius);background-color:var(--sd-number-input-stepper-bg);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;margin:0;transition:background-color 0.15s ease}sd-number-input .sd-number-input__content .sd-number-input__stepper:hover:not(:disabled){filter:brightness(0.95)}sd-number-input .sd-number-input__content .sd-number-input__stepper:disabled{background-color:var(--sd-number-input-stepper-bg-disabled);cursor:not-allowed}`;
|
|
109
|
-
|
|
110
|
-
const SdNumberInput = class {
|
|
111
|
-
constructor(hostRef) {
|
|
112
|
-
registerInstance(this, hostRef);
|
|
113
|
-
this.update = createEvent(this, "sdUpdate", 7);
|
|
114
|
-
this.focus = createEvent(this, "sdFocus", 7);
|
|
115
|
-
this.blur = createEvent(this, "sdBlur", 7);
|
|
116
|
-
}
|
|
117
|
-
get el() { return getElement(this); }
|
|
118
|
-
size = 'sm';
|
|
119
|
-
min = Number.NEGATIVE_INFINITY;
|
|
120
|
-
max = Number.POSITIVE_INFINITY;
|
|
121
|
-
step = 1;
|
|
122
|
-
useButton = false;
|
|
123
|
-
useDecimal = false;
|
|
124
|
-
value = null;
|
|
125
|
-
label;
|
|
126
|
-
labelWidth = '';
|
|
127
|
-
addonLabel = '';
|
|
128
|
-
addonAlign = 'start';
|
|
129
|
-
placeholder = '입력해 주세요.';
|
|
130
|
-
disabled = false;
|
|
131
|
-
width;
|
|
132
|
-
rules = [];
|
|
133
|
-
autoFocus = false;
|
|
134
|
-
status;
|
|
135
|
-
hint = '';
|
|
136
|
-
errorMessage = '';
|
|
137
|
-
inputPrefix = '';
|
|
138
|
-
inputSuffix = '';
|
|
139
|
-
inputClass = '';
|
|
140
|
-
readonly = false;
|
|
141
|
-
inputStyle = {};
|
|
142
|
-
error = false;
|
|
143
|
-
focused = false;
|
|
144
|
-
hovered = false;
|
|
145
|
-
internalValue = null;
|
|
146
|
-
displayValue = '';
|
|
147
|
-
nativeEl = undefined;
|
|
148
|
-
formField;
|
|
149
|
-
name = nanoid();
|
|
150
|
-
update;
|
|
151
|
-
focus;
|
|
152
|
-
blur;
|
|
153
|
-
toNumber(val) {
|
|
154
|
-
if (val === null || val === undefined || val === '')
|
|
155
|
-
return null;
|
|
156
|
-
if (typeof val === 'number')
|
|
157
|
-
return isNaN(val) ? null : val;
|
|
158
|
-
if (typeof val === 'string')
|
|
159
|
-
return this.parseInput(val);
|
|
160
|
-
const num = Number(val);
|
|
161
|
-
return isNaN(num) ? null : num;
|
|
162
|
-
}
|
|
163
|
-
formatWithCommas(value) {
|
|
164
|
-
if (value === null || value === undefined || isNaN(value))
|
|
165
|
-
return '';
|
|
166
|
-
const isNegative = value < 0;
|
|
167
|
-
const absValue = Math.abs(value);
|
|
168
|
-
const [intPart, decPart] = absValue.toString().split('.');
|
|
169
|
-
const formatted = (+intPart).toLocaleString();
|
|
170
|
-
const result = isNegative ? '-' + formatted : formatted;
|
|
171
|
-
return decPart ? result + '.' + decPart : String(result);
|
|
172
|
-
}
|
|
173
|
-
parseInput(input) {
|
|
174
|
-
if (!input || input.trim() === '')
|
|
175
|
-
return null;
|
|
176
|
-
const cleaned = input.replace(/,/g, '').trim();
|
|
177
|
-
if (!/^-?(\d+\.?\d*|\d*\.\d+)$/.test(cleaned)) {
|
|
178
|
-
return null;
|
|
179
|
-
}
|
|
180
|
-
const parsed = parseFloat(cleaned);
|
|
181
|
-
if (isNaN(parsed))
|
|
182
|
-
return null;
|
|
183
|
-
if (!this.useDecimal && cleaned.includes('.')) {
|
|
184
|
-
return null;
|
|
185
|
-
}
|
|
186
|
-
return parsed;
|
|
187
|
-
}
|
|
188
|
-
clampMinMax(value) {
|
|
189
|
-
if (isNaN(value))
|
|
190
|
-
return 0;
|
|
191
|
-
return Math.min(Math.max(value, this.min), this.max);
|
|
192
|
-
}
|
|
193
|
-
updateDisplay() {
|
|
194
|
-
this.displayValue = this.formatWithCommas(this.internalValue);
|
|
195
|
-
}
|
|
196
|
-
isIncrementDisabled() {
|
|
197
|
-
if (this.disabled || this.readonly)
|
|
198
|
-
return true;
|
|
199
|
-
if (this.internalValue !== null) {
|
|
200
|
-
return this.internalValue >= this.max;
|
|
201
|
-
}
|
|
202
|
-
return false;
|
|
203
|
-
}
|
|
204
|
-
isDecrementDisabled() {
|
|
205
|
-
if (this.disabled || this.readonly)
|
|
206
|
-
return true;
|
|
207
|
-
if (this.internalValue !== null) {
|
|
208
|
-
return this.internalValue <= this.min;
|
|
209
|
-
}
|
|
210
|
-
return false;
|
|
211
|
-
}
|
|
212
|
-
valueChanged(newValue) {
|
|
213
|
-
const parsed = this.toNumber(newValue);
|
|
214
|
-
if (parsed !== null) {
|
|
215
|
-
this.internalValue = this.clampMinMax(parsed);
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
this.internalValue = null;
|
|
219
|
-
}
|
|
220
|
-
this.updateDisplay();
|
|
221
|
-
}
|
|
222
|
-
internalValueChanged(newValue) {
|
|
223
|
-
this.updateDisplay();
|
|
224
|
-
if (newValue !== this.value) {
|
|
225
|
-
this.value = newValue;
|
|
226
|
-
this.update?.emit(newValue);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
async sdValidate() {
|
|
230
|
-
this.formField?.sdValidate();
|
|
231
|
-
}
|
|
232
|
-
async sdReset() {
|
|
233
|
-
this.formField?.sdReset();
|
|
234
|
-
}
|
|
235
|
-
async sdResetValidate() {
|
|
236
|
-
this.formField?.sdResetValidation();
|
|
237
|
-
}
|
|
238
|
-
async sdFocus() {
|
|
239
|
-
this.formField?.sdFocus();
|
|
240
|
-
}
|
|
241
|
-
async sdGetNativeElement() {
|
|
242
|
-
return this.nativeEl || null;
|
|
243
|
-
}
|
|
244
|
-
componentWillLoad() {
|
|
245
|
-
const parsed = this.toNumber(this.value);
|
|
246
|
-
if (parsed !== null) {
|
|
247
|
-
this.internalValue = this.clampMinMax(parsed);
|
|
248
|
-
}
|
|
249
|
-
this.updateDisplay();
|
|
250
|
-
}
|
|
251
|
-
componentDidLoad() {
|
|
252
|
-
if (this.autoFocus) {
|
|
253
|
-
this.nativeEl?.focus();
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
// TODO: 현재 숫자를 크게 넣어서 숫자e+21등의 형식으로 변환되면 값이 바뀌지않음 수정 필요
|
|
257
|
-
handleInput = (event) => {
|
|
258
|
-
const target = event.target;
|
|
259
|
-
const inputValue = target.value;
|
|
260
|
-
if (inputValue === '') {
|
|
261
|
-
this.internalValue = null;
|
|
262
|
-
this.displayValue = '';
|
|
263
|
-
return;
|
|
264
|
-
}
|
|
265
|
-
const commasRemoved = inputValue.replace(/,/g, '');
|
|
266
|
-
const decimalCount = (commasRemoved.match(/\./g) || []).length;
|
|
267
|
-
if (decimalCount > 1) {
|
|
268
|
-
target.value = this.displayValue;
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
if (commasRemoved === '-' || commasRemoved === '.' || commasRemoved === '-.') {
|
|
272
|
-
target.value = commasRemoved;
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
if (commasRemoved.endsWith('.') && decimalCount === 1) {
|
|
276
|
-
const numberPart = commasRemoved.slice(0, -1);
|
|
277
|
-
const parsed = this.parseInput(numberPart);
|
|
278
|
-
if (parsed !== null) {
|
|
279
|
-
const formatted = this.formatWithCommas(parsed);
|
|
280
|
-
target.value = formatted + '.';
|
|
281
|
-
return;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
const parsed = this.parseInput(commasRemoved);
|
|
285
|
-
if (parsed !== null) {
|
|
286
|
-
if (parsed < this.min) {
|
|
287
|
-
target.value = this.displayValue;
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
if (parsed > this.max) {
|
|
291
|
-
target.value = this.displayValue;
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
this.internalValue = parsed;
|
|
295
|
-
this.displayValue = this.formatWithCommas(parsed);
|
|
296
|
-
target.value = this.displayValue;
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
target.value = this.displayValue;
|
|
300
|
-
}
|
|
301
|
-
};
|
|
302
|
-
handleFocus = (event) => {
|
|
303
|
-
this.focused = true;
|
|
304
|
-
this.focus?.emit(event);
|
|
305
|
-
};
|
|
306
|
-
handleBlur = async (event) => {
|
|
307
|
-
this.updateDisplay();
|
|
308
|
-
if (this.nativeEl) {
|
|
309
|
-
this.nativeEl.value = this.displayValue;
|
|
310
|
-
}
|
|
311
|
-
if (this.rules && this.rules.length > 0) {
|
|
312
|
-
await this.formField?.sdValidate();
|
|
313
|
-
}
|
|
314
|
-
this.focused = false;
|
|
315
|
-
this.blur?.emit(event);
|
|
316
|
-
};
|
|
317
|
-
handleKeyDown = (event) => {
|
|
318
|
-
if (event.key === 'ArrowUp') {
|
|
319
|
-
event.preventDefault();
|
|
320
|
-
this.handleIncrement();
|
|
321
|
-
}
|
|
322
|
-
else if (event.key === 'ArrowDown') {
|
|
323
|
-
event.preventDefault();
|
|
324
|
-
this.handleDecrement();
|
|
325
|
-
}
|
|
326
|
-
};
|
|
327
|
-
handleIncrement = () => {
|
|
328
|
-
if (this.isIncrementDisabled())
|
|
329
|
-
return;
|
|
330
|
-
const currentVal = this.internalValue ?? this.min ?? 0;
|
|
331
|
-
let nextVal = currentVal + this.step;
|
|
332
|
-
if (nextVal > this.max) {
|
|
333
|
-
nextVal = this.max;
|
|
334
|
-
}
|
|
335
|
-
if (nextVal === currentVal)
|
|
336
|
-
return;
|
|
337
|
-
this.internalValue = nextVal;
|
|
338
|
-
};
|
|
339
|
-
handleDecrement = () => {
|
|
340
|
-
if (this.isDecrementDisabled())
|
|
341
|
-
return;
|
|
342
|
-
const currentVal = this.internalValue ?? this.min ?? 0;
|
|
343
|
-
let nextVal = currentVal - this.step;
|
|
344
|
-
if (nextVal < this.min) {
|
|
345
|
-
nextVal = this.min;
|
|
346
|
-
}
|
|
347
|
-
if (nextVal === currentVal)
|
|
348
|
-
return;
|
|
349
|
-
this.internalValue = nextVal;
|
|
350
|
-
};
|
|
351
|
-
render() {
|
|
352
|
-
const sizeTokens = NUMBER_INPUT_SIZE_MAP[this.size] ?? NUMBER_INPUT_SIZE_MAP.sm;
|
|
353
|
-
const stepperSize = NUMBER_INPUT_STEPPER[this.size]?.size ?? NUMBER_INPUT_STEPPER.sm.size;
|
|
354
|
-
const iconSize = this.size === 'md' ? 14 : 12;
|
|
355
|
-
const cssVars = {
|
|
356
|
-
// 컴포넌트 로컬 토큰
|
|
357
|
-
'--sd-number-input-font-size': `${sizeTokens.fontSize}px`,
|
|
358
|
-
'--sd-number-input-line-height': `${sizeTokens.lineHeight}px`,
|
|
359
|
-
'--sd-number-input-font-weight': sizeTokens.fontWeight,
|
|
360
|
-
'--sd-number-input-padding-x': `${sizeTokens.paddingX}px`,
|
|
361
|
-
'--sd-number-input-text-color': NUMBER_INPUT_COLORS.text.default,
|
|
362
|
-
'--sd-number-input-placeholder-color': NUMBER_INPUT_COLORS.text.placeholder,
|
|
363
|
-
'--sd-number-input-disabled-color': NUMBER_INPUT_COLORS.text.disabled,
|
|
364
|
-
// 스테퍼 토큰
|
|
365
|
-
'--sd-number-input-stepper-size': `${stepperSize}px`,
|
|
366
|
-
'--sd-number-input-stepper-radius': `${NUMBER_INPUT_STEPPER.radius}px`,
|
|
367
|
-
'--sd-number-input-stepper-bg': NUMBER_INPUT_STEPPER.bg.default,
|
|
368
|
-
'--sd-number-input-stepper-bg-disabled': NUMBER_INPUT_STEPPER.bg.disabled,
|
|
369
|
-
'--sd-number-input-stepper-icon-color': NUMBER_INPUT_STEPPER.icon.default,
|
|
370
|
-
'--sd-number-input-stepper-icon-disabled': NUMBER_INPUT_STEPPER.icon.disabled,
|
|
371
|
-
// sd-field 시스템 변수 오버라이드
|
|
372
|
-
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
373
|
-
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
374
|
-
'--sd-system-color-field-border-default': NUMBER_INPUT_COLORS.border.default,
|
|
375
|
-
'--sd-system-color-field-border-focus': NUMBER_INPUT_COLORS.border.focus,
|
|
376
|
-
'--sd-system-color-field-border-danger': NUMBER_INPUT_COLORS.border.danger,
|
|
377
|
-
'--sd-system-color-field-bg-default': NUMBER_INPUT_COLORS.bg.default,
|
|
378
|
-
// 힌트/에러 메시지 오버라이드
|
|
379
|
-
'--sd-textinput-input-text-error-message': NUMBER_INPUT_ERROR_MESSAGE.color,
|
|
380
|
-
'--sd-textinput-input-error-message-typography-font-size': `${NUMBER_INPUT_ERROR_MESSAGE.typography.fontSize}px`,
|
|
381
|
-
'--sd-textinput-input-error-message-typography-line-height': `${NUMBER_INPUT_ERROR_MESSAGE.typography.lineHeight}px`,
|
|
382
|
-
'--sd-textinput-input-text-hint': NUMBER_INPUT_HINT.color,
|
|
383
|
-
'--sd-textinput-input-hint-typography-font-size': `${NUMBER_INPUT_HINT.typography.fontSize}px`,
|
|
384
|
-
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
385
|
-
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
386
|
-
};
|
|
387
|
-
return (h("sd-field", { key: '7f4012ec048ab69f3c6b241c7fc103fd798572ca', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '975c0800b1fd6e4ab3502fc966db8917fe60bb3e', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'f2a630109b883740362dd2946ceeeaa93bbfeb36', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'dcd539c5035b1363edacadf7ed9c1096ef24714a', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
388
|
-
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
389
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '5acf113c5e60dd5f77fb1206a60d4b5ce14e2b7f', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: '5dd0f9ba9643fce07de811b2a93c8763a3d84b2c', 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: {
|
|
390
|
-
textAlign: this.useButton ? 'center' : 'right',
|
|
391
|
-
...this.inputStyle,
|
|
392
|
-
} }), this.inputSuffix && (h("span", { key: 'aa7e4dbb29d7e8de4e94f0411f2f4b622411a60a', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '40deeadfcfe87cb61f09ee2959b6afb5757ff56b', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: 'b8ffcbbf663bacb7249e696d3eabf8b9ac832ddc', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
393
|
-
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
394
|
-
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
395
|
-
}
|
|
396
|
-
static get watchers() { return {
|
|
397
|
-
"value": [{
|
|
398
|
-
"valueChanged": 0
|
|
399
|
-
}],
|
|
400
|
-
"internalValue": [{
|
|
401
|
-
"internalValueChanged": 0
|
|
402
|
-
}]
|
|
403
|
-
}; }
|
|
404
|
-
};
|
|
405
|
-
SdNumberInput.style = sdNumberInputCss();
|
|
406
|
-
|
|
407
|
-
export { SdNumberInput as sd_number_input };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-Cnwbjz1F.js';
|
|
2
|
-
|
|
3
|
-
const sdRadioGroupCss = () => `sd-radio{display:inline-flex;width:fit-content;height:var(--sd-radio-line-height);line-height:0}sd-radio .sd-radio{cursor:pointer;display:inline-flex;align-items:center;gap:var(--sd-radio-gap);height:var(--sd-radio-line-height);max-height:var(--sd-radio-line-height)}sd-radio .sd-radio>input{position:absolute;width:0;height:0;opacity:0;pointer-events:none}sd-radio .sd-radio>input:focus-visible+.sd-radio__circle{box-shadow:0 0 0 2px white, 0 0 0 4px var(--sd-radio-checked-border);outline:none}sd-radio .sd-radio__circle{position:relative;width:var(--sd-radio-size);height:var(--sd-radio-size);border-radius:50%;border:var(--sd-radio-border-width) solid var(--sd-radio-unchecked-border);box-sizing:border-box;background:var(--sd-radio-unchecked-bg);display:inline-flex;flex-shrink:0}sd-radio .sd-radio__label{font-size:var(--sd-radio-font-size);font-weight:var(--sd-radio-font-weight);color:var(--sd-radio-label-color);line-height:var(--sd-radio-line-height)}sd-radio .sd-radio:hover:not(.sd-radio--disabled) .sd-radio__circle{background:var(--sd-radio-unchecked-bg-hover);border-color:var(--sd-radio-unchecked-border-hover)}sd-radio .sd-radio--checked .sd-radio__circle{border-color:var(--sd-radio-checked-border)}sd-radio .sd-radio--checked .sd-radio__circle::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:var(--sd-radio-dot-size);height:var(--sd-radio-dot-size);border-radius:50%;background:var(--sd-radio-checked-dot)}sd-radio .sd-radio--disabled{cursor:not-allowed}sd-radio .sd-radio--disabled .sd-radio__circle{background:var(--sd-radio-disabled-bg);border-color:var(--sd-radio-disabled-border)}sd-radio .sd-radio--disabled.sd-radio--checked .sd-radio__circle::after{background:var(--sd-radio-disabled-dot)}sd-radio-group{display:inline-block}sd-radio-group .sd-radio-group{display:flex}sd-radio-group .sd-radio-group--vertical{flex-direction:column;gap:8px}sd-radio-group .sd-radio-group--horizontal{flex-direction:row;align-items:center;gap:20px}`;
|
|
4
|
-
|
|
5
|
-
const SdRadioGroup = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.change = createEvent(this, "sdUpdate", 7);
|
|
9
|
-
}
|
|
10
|
-
value;
|
|
11
|
-
options = [];
|
|
12
|
-
direction = 'vertical';
|
|
13
|
-
disabled = false;
|
|
14
|
-
groupName;
|
|
15
|
-
change;
|
|
16
|
-
valueChanged(newValue) {
|
|
17
|
-
this.value = newValue;
|
|
18
|
-
}
|
|
19
|
-
handleRadioChange = (optionValue) => {
|
|
20
|
-
if (this.disabled)
|
|
21
|
-
return;
|
|
22
|
-
const matched = this.options.find(o => String(o.value) === String(optionValue));
|
|
23
|
-
const resolved = matched ? matched.value : optionValue;
|
|
24
|
-
this.value = resolved;
|
|
25
|
-
this.change?.emit(resolved);
|
|
26
|
-
};
|
|
27
|
-
getGroupClasses() {
|
|
28
|
-
const classes = ['sd-radio-group', `sd-radio-group--${this.direction}`];
|
|
29
|
-
return classes.join(' ');
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
return (h("div", { key: '5f6559df018e48958103d0a84a0f074f81bd255a', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
33
|
-
return (h("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
34
|
-
})));
|
|
35
|
-
}
|
|
36
|
-
static get watchers() { return {
|
|
37
|
-
"value": [{
|
|
38
|
-
"valueChanged": 0
|
|
39
|
-
}]
|
|
40
|
-
}; }
|
|
41
|
-
};
|
|
42
|
-
SdRadioGroup.style = sdRadioGroupCss();
|
|
43
|
-
|
|
44
|
-
export { SdRadioGroup as sd_radio_group };
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-Cnwbjz1F.js';
|
|
2
|
-
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
|
-
import { i as inputTokens } from './component.textinput-ByhWX2NK.js';
|
|
4
|
-
|
|
5
|
-
const TEXTAREA_TOKENS = {
|
|
6
|
-
paddingX: inputTokens.textinput.sm.paddingX,
|
|
7
|
-
paddingY: inputTokens.textinput.sm.paddingY,
|
|
8
|
-
radius: inputTokens.textinput.sm.radius,
|
|
9
|
-
fontSize: inputTokens.textinput.sm.typography.fontSize,
|
|
10
|
-
lineHeight: inputTokens.textinput.sm.typography.lineHeight,
|
|
11
|
-
fontWeight: inputTokens.textinput.sm.typography.fontWeight};
|
|
12
|
-
const TEXTAREA_COLORS = {
|
|
13
|
-
text: inputTokens.textinput.text,
|
|
14
|
-
bg: inputTokens.textinput.bg,
|
|
15
|
-
border: inputTokens.textinput.border,
|
|
16
|
-
resizer: inputTokens.textinput.resizer,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
const sdTextareaCss = () => `sd-textarea{display:inline-flex}sd-textarea .sd-textarea__content{width:100%;display:flex}sd-textarea .sd-textarea__content .sd-textarea__native{width:100%;min-height:100px;border:none;outline:none;background:transparent;padding:var(--sd-textarea-padding-y) var(--sd-textarea-padding-x);font-family:inherit;font-size:var(--sd-textarea-font-size);line-height:var(--sd-textarea-line-height);font-weight:var(--sd-textarea-font-weight);color:var(--sd-textarea-text-color);resize:vertical}sd-textarea .sd-textarea__content .sd-textarea__native::placeholder{color:var(--sd-textarea-placeholder-color)}sd-textarea .sd-textarea__content .sd-textarea__native:disabled{cursor:not-allowed;color:var(--sd-textarea-disabled-color)}`;
|
|
20
|
-
|
|
21
|
-
const SdTextarea = class {
|
|
22
|
-
constructor(hostRef) {
|
|
23
|
-
registerInstance(this, hostRef);
|
|
24
|
-
this.input = createEvent(this, "sdUpdate", 7);
|
|
25
|
-
this.focus = createEvent(this, "sdFocus", 7);
|
|
26
|
-
this.blur = createEvent(this, "sdBlur", 7);
|
|
27
|
-
}
|
|
28
|
-
get host() { return getElement(this); }
|
|
29
|
-
value = null;
|
|
30
|
-
placeholder = '입력해 주세요.';
|
|
31
|
-
disabled = false;
|
|
32
|
-
readonly = false;
|
|
33
|
-
autoFocus = false;
|
|
34
|
-
textareaClass = '';
|
|
35
|
-
textareaStyle = {};
|
|
36
|
-
maxLength;
|
|
37
|
-
rows;
|
|
38
|
-
spellcheck = false;
|
|
39
|
-
width = '';
|
|
40
|
-
// props - sd-field
|
|
41
|
-
label = '';
|
|
42
|
-
labelWidth = '';
|
|
43
|
-
addonLabel = '';
|
|
44
|
-
addonAlign = 'start';
|
|
45
|
-
hint = '';
|
|
46
|
-
errorMessage = '';
|
|
47
|
-
icon = undefined;
|
|
48
|
-
labelTooltip = '';
|
|
49
|
-
labelTooltipProps = null;
|
|
50
|
-
rules = [];
|
|
51
|
-
error = false;
|
|
52
|
-
status;
|
|
53
|
-
focused = false;
|
|
54
|
-
hovered = false;
|
|
55
|
-
internalValue = null;
|
|
56
|
-
nativeEl = undefined;
|
|
57
|
-
formField;
|
|
58
|
-
name = nanoid();
|
|
59
|
-
input;
|
|
60
|
-
focus;
|
|
61
|
-
blur;
|
|
62
|
-
valueChanged(newValue) {
|
|
63
|
-
this.internalValue = newValue;
|
|
64
|
-
}
|
|
65
|
-
internalValueChanged(newValue) {
|
|
66
|
-
if (newValue !== this.value) {
|
|
67
|
-
this.value = newValue;
|
|
68
|
-
this.input?.emit(this.value);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
async sdGetNativeElement() {
|
|
72
|
-
return this.nativeEl || null;
|
|
73
|
-
}
|
|
74
|
-
async sdValidate() {
|
|
75
|
-
this.formField?.sdValidate();
|
|
76
|
-
}
|
|
77
|
-
async sdReset() {
|
|
78
|
-
this.formField?.sdReset();
|
|
79
|
-
}
|
|
80
|
-
async sdResetValidate() {
|
|
81
|
-
this.formField?.sdResetValidation();
|
|
82
|
-
}
|
|
83
|
-
async sdFocus() {
|
|
84
|
-
this.formField?.sdFocus();
|
|
85
|
-
}
|
|
86
|
-
componentWillLoad() {
|
|
87
|
-
if (this.value !== null && this.value !== undefined) {
|
|
88
|
-
this.internalValue = this.value;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
componentDidLoad() {
|
|
92
|
-
if (this.autoFocus) {
|
|
93
|
-
this.nativeEl?.focus();
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
handleInput = (event) => {
|
|
97
|
-
const target = event.target;
|
|
98
|
-
this.internalValue = target.value;
|
|
99
|
-
};
|
|
100
|
-
handleFocus = async (type, event) => {
|
|
101
|
-
this.focused = type === 'focus';
|
|
102
|
-
if (type === 'blur') {
|
|
103
|
-
if (this.rules && this.rules.length > 0) {
|
|
104
|
-
await this.formField?.sdValidate();
|
|
105
|
-
}
|
|
106
|
-
this.blur?.emit(event);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
this.focus?.emit(event);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
render() {
|
|
113
|
-
const cssVars = {
|
|
114
|
-
'--sd-textarea-font-size': `${TEXTAREA_TOKENS.fontSize}px`,
|
|
115
|
-
'--sd-textarea-line-height': `${TEXTAREA_TOKENS.lineHeight}px`,
|
|
116
|
-
'--sd-textarea-font-weight': TEXTAREA_TOKENS.fontWeight,
|
|
117
|
-
'--sd-textarea-padding-x': `${TEXTAREA_TOKENS.paddingX}px`,
|
|
118
|
-
'--sd-textarea-padding-y': `${TEXTAREA_TOKENS.paddingY}px`,
|
|
119
|
-
'--sd-textarea-radius': `${TEXTAREA_TOKENS.radius}px`,
|
|
120
|
-
'--sd-textarea-text-color': TEXTAREA_COLORS.text.default,
|
|
121
|
-
'--sd-textarea-placeholder-color': TEXTAREA_COLORS.text.placeholder,
|
|
122
|
-
'--sd-textarea-disabled-color': TEXTAREA_COLORS.text.disabled,
|
|
123
|
-
'--sd-textarea-bg-color': TEXTAREA_COLORS.bg.default,
|
|
124
|
-
'--sd-textarea-disabled-bg-color': TEXTAREA_COLORS.bg.disabled,
|
|
125
|
-
'--sd-textarea-border-color': TEXTAREA_COLORS.border.default,
|
|
126
|
-
'--sd-textarea-resizer-color': TEXTAREA_COLORS.resizer.color,
|
|
127
|
-
// sd-field 시스템 변수 override (textarea는 고정 높이가 아닌 auto)
|
|
128
|
-
'--sd-system-size-field-sm-height': 'auto',
|
|
129
|
-
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
130
|
-
};
|
|
131
|
-
return (h("sd-field", { key: 'ca7dc6c13d22ba43cd99ee1e976599d7efb1eceb', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, 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: 'a36ffabff714596bf780f2a63ccfde3e02eadda7', class: "sd-textarea__content" }, h("textarea", { key: 'b7f8a55b7ee4dfc394c380a97e21c6cc34d12b9b', 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 }))));
|
|
132
|
-
}
|
|
133
|
-
static get watchers() { return {
|
|
134
|
-
"value": [{
|
|
135
|
-
"valueChanged": 0
|
|
136
|
-
}],
|
|
137
|
-
"internalValue": [{
|
|
138
|
-
"internalValueChanged": 0
|
|
139
|
-
}]
|
|
140
|
-
}; }
|
|
141
|
-
};
|
|
142
|
-
SdTextarea.style = sdTextareaCss();
|
|
143
|
-
|
|
144
|
-
export { SdTextarea as sd_textarea };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { type ButtonV2Name, type ButtonV2Type } from './sd-button-v2.config';
|
|
3
|
-
export declare class SdButtonV2 {
|
|
4
|
-
name: ButtonV2Name;
|
|
5
|
-
label: string;
|
|
6
|
-
icon?: IconName;
|
|
7
|
-
rightIcon?: IconName;
|
|
8
|
-
ariaLabel: string;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
type: ButtonV2Type;
|
|
11
|
-
click: EventEmitter<MouseEvent>;
|
|
12
|
-
private hasWarnedMissingAriaLabel;
|
|
13
|
-
private handleClick;
|
|
14
|
-
private get resolvedConfig();
|
|
15
|
-
private getButtonClasses;
|
|
16
|
-
componentWillRender(): void;
|
|
17
|
-
private warnIfMissingAriaLabel;
|
|
18
|
-
render(): any;
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|