@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
|
@@ -16,12 +16,12 @@ sd-select-list-item-search .sd-select-list-item-search__inner {
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
gap: 6px;
|
|
18
18
|
padding: 4px 8px;
|
|
19
|
-
border: 1px solid #
|
|
19
|
+
border: 1px solid #cccccc;
|
|
20
20
|
border-radius: 4px;
|
|
21
21
|
background: white;
|
|
22
22
|
}
|
|
23
23
|
sd-select-list-item-search .sd-select-list-item-search__inner:focus-within {
|
|
24
|
-
border-color: #
|
|
24
|
+
border-color: #0075ff;
|
|
25
25
|
}
|
|
26
26
|
sd-select-list-item-search .sd-select-list-item-search__icon {
|
|
27
27
|
flex-shrink: 0;
|
|
@@ -37,7 +37,7 @@ sd-select-list-item-search .sd-select-list-item-search__input {
|
|
|
37
37
|
min-width: 0;
|
|
38
38
|
}
|
|
39
39
|
sd-select-list-item-search .sd-select-list-item-search__input::placeholder {
|
|
40
|
-
color: #
|
|
40
|
+
color: #aaaaaa;
|
|
41
41
|
}
|
|
42
42
|
sd-select-list-item-search .sd-select-list-item-search__clear {
|
|
43
43
|
flex-shrink: 0;
|
|
@@ -51,7 +51,7 @@ sd-select-list-item-search .sd-select-list-item-search__clear {
|
|
|
51
51
|
border-radius: 2px;
|
|
52
52
|
}
|
|
53
53
|
sd-select-list-item-search .sd-select-list-item-search__clear:hover {
|
|
54
|
-
background: #
|
|
54
|
+
background: #f0f0f0;
|
|
55
55
|
}
|
|
56
56
|
sd-select-list-item-search .sd-select-list-item-search__clear--hidden {
|
|
57
57
|
visibility: hidden;
|
|
@@ -41,15 +41,15 @@ export class SdSelectListItemSearch {
|
|
|
41
41
|
clearTimeout(this.debounceTimer);
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
|
-
return (h("div", { key: '
|
|
44
|
+
return (h("div", { key: '8714ef9e06f54fd5c2ae5241cac65a74ea45dccf', class: {
|
|
45
45
|
'sd-select-list-item-search': true,
|
|
46
46
|
'sd-select-list-item-search--scrolled': this.isScrolled,
|
|
47
|
-
} }, h("div", { key: '
|
|
47
|
+
} }, h("div", { key: '428aea3765711fd91ae7b587b21347dd9634636b', class: "sd-select-list-item-search__inner" }, h("sd-icon", { key: 'ed3363eea1a7d6a4f44141a74855c4e767a34999', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), h("input", { key: 'c3f5539e037a81d96ce2fa41225f0c33c32add6e', ref: el => {
|
|
48
48
|
this.inputEl = el;
|
|
49
|
-
}, 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: '
|
|
49
|
+
}, 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: 'b081b5a6eced0397db40784ce25e0e84c574f869', type: "button", class: {
|
|
50
50
|
'sd-select-list-item-search__clear': true,
|
|
51
51
|
'sd-select-list-item-search__clear--hidden': !this.searchText,
|
|
52
|
-
}, onClick: this.handleClear, tabindex: this.searchText ? 0 : -1, "aria-hidden": this.searchText ? 'false' : 'true' }, h("sd-icon", { key: '
|
|
52
|
+
}, onClick: this.handleClear, tabindex: this.searchText ? 0 : -1, "aria-hidden": this.searchText ? 'false' : 'true' }, h("sd-icon", { key: '29615969a7efa118089e2c8dba741086196f8593', name: "close", size: 12, color: "#888888" })))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "sd-select-list-item-search"; }
|
|
55
55
|
static get originalStyleUrls() {
|
|
@@ -343,14 +343,14 @@ export class SdSelectListbox {
|
|
|
343
343
|
}
|
|
344
344
|
render() {
|
|
345
345
|
const cssVars = {
|
|
346
|
-
'--listbox-trigger-width': this.triggerWidth,
|
|
347
|
-
'--listbox-max-width': this.maxWidth,
|
|
348
|
-
'--listbox-max-height': this.maxHeight,
|
|
346
|
+
'--listbox-trigger-width': this.triggerWidth ?? '200px',
|
|
347
|
+
'--listbox-max-width': this.maxWidth ?? '640px',
|
|
348
|
+
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
349
349
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
350
350
|
};
|
|
351
|
-
return (h("div", { key: '
|
|
351
|
+
return (h("div", { key: 'be3a46d2a17522799374eb7e59faea8960e7b41a', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: '68fa6b9f958ee662ac400716ade0ae4823ad99a3', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: 'b0a6daf94c69ccb33d31434014c93b2f414309f3', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
352
352
|
this.listEl = el;
|
|
353
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
353
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: '120fea009df513e3346877044ee65c132ece70cf', 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) })))))));
|
|
354
354
|
}
|
|
355
355
|
static get is() { return "sd-select-listbox"; }
|
|
356
356
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,13 +42,13 @@ export class SdSelectTrigger {
|
|
|
42
42
|
? SELECT_COLORS.icon.disabled
|
|
43
43
|
: SELECT_COLORS.icon.default,
|
|
44
44
|
};
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: '69a87c509e16605feb217f12ce055e0097f09a6f', ref: el => {
|
|
46
46
|
this.triggerEl = el;
|
|
47
47
|
}, tabindex: this.disabled ? -1 : 0, class: {
|
|
48
48
|
'sd-select-trigger': true,
|
|
49
49
|
'sd-select-trigger--open': this.isOpen,
|
|
50
50
|
'sd-select-trigger--disabled': this.disabled,
|
|
51
|
-
}, style: cssVars, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
51
|
+
}, style: cssVars, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '0886f40b2427fc4b5825b06682531a26be4c4eec', class: "sd-select-trigger__content" }, h("span", { key: '9e2fb73a34153b0744fbf2cc7490ecdc7a125233', class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택')), h("sd-icon", { key: 'c8a80bf912c50bf97a5d5af4d4c5307e416aea6d', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
52
52
|
'sd-select-trigger__icon': true,
|
|
53
53
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
54
54
|
} }))));
|
|
@@ -254,15 +254,15 @@ export class SdSelect {
|
|
|
254
254
|
this.closeDropdown();
|
|
255
255
|
},
|
|
256
256
|
};
|
|
257
|
-
return (h("sd-field", { key: '
|
|
257
|
+
return (h("sd-field", { key: '18edcdfdc3a9a2bd17ae0e3852eec94151275e18', 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: () => {
|
|
258
258
|
this.hovered = true;
|
|
259
259
|
}, onMouseLeave: () => {
|
|
260
260
|
this.hovered = false;
|
|
261
|
-
} }, h("div", { key: '
|
|
261
|
+
} }, h("div", { key: '39efa02a58acbc53315087cceb732b488920dbe8', class: "sd-select", ref: el => {
|
|
262
262
|
this.triggerRef = el;
|
|
263
|
-
} }, h("sd-select-trigger", { key: '
|
|
263
|
+
} }, h("sd-select-trigger", { key: 'e03ce9208f4af5226461ecdfb0d15bade4f277dd', ref: el => {
|
|
264
264
|
this.triggerComponentRef = el;
|
|
265
|
-
}, 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: '
|
|
265
|
+
}, 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: '9181fd551885e001f139cab9634a2ac3b0f89d47', ...portalProps }, h("sd-select-listbox", { key: '6ed356d2ceea79562ce448584514c23fbff20090', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
266
266
|
}
|
|
267
267
|
static get is() { return "sd-select"; }
|
|
268
268
|
static get originalStyleUrls() {
|
|
@@ -656,7 +656,7 @@ export class SdSelect {
|
|
|
656
656
|
"mutable": false,
|
|
657
657
|
"complexType": {
|
|
658
658
|
"original": "SdTooltipProps | null",
|
|
659
|
-
"resolved": "
|
|
659
|
+
"resolved": "SdTooltip | null",
|
|
660
660
|
"references": {
|
|
661
661
|
"SdTooltipProps": {
|
|
662
662
|
"location": "import",
|
|
@@ -40,7 +40,7 @@ export class SdSwitch {
|
|
|
40
40
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
41
41
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
42
42
|
};
|
|
43
|
-
return (h("label", { key: '
|
|
43
|
+
return (h("label", { key: 'a37c1387905456007de46a6050616b025ad06b37', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: '5fcc9f72e177956e015e4cb009936edc60c4c3ec', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: 'bf1fa22a94b2b245a2ddf805df4cd1c204524710', class: "sd-switch__track" }, h("div", { key: '11dafcd812c560acb7a63f7267f40f8ed67da95b', class: "sd-switch__knob" })), this.label && h("span", { key: '6609d2e33e82e843ffd5bbb2d2010de3e299f081', class: "sd-switch__label" }, this.label)));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "sd-switch"; }
|
|
46
46
|
static get originalStyleUrls() {
|
|
@@ -42,8 +42,8 @@ export const TABLE_BODY_TYPOGRAPHY = {
|
|
|
42
42
|
};
|
|
43
43
|
// ── Frame / Border Tokens ──
|
|
44
44
|
export const TABLE_BORDER = {
|
|
45
|
-
color: tableTokens.table.border.
|
|
46
|
-
width: tableTokens.table.border.width
|
|
45
|
+
color: tableTokens.table.border.color,
|
|
46
|
+
width: tableTokens.table.border.width,
|
|
47
47
|
};
|
|
48
48
|
export const TABLE_RADIUS = tableTokens.table.radius;
|
|
49
49
|
// ── Content Tokens ──
|
|
@@ -20,7 +20,7 @@ sd-table *,
|
|
|
20
20
|
flex-direction: column;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.sd-
|
|
23
|
+
.sd-table__wrapper {
|
|
24
24
|
width: 100%;
|
|
25
25
|
min-width: 0;
|
|
26
26
|
height: var(--table-container-height, 400px);
|
|
@@ -28,11 +28,11 @@ sd-table *,
|
|
|
28
28
|
border-radius: var(--table-radius, 8px);
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
}
|
|
31
|
-
.sd-
|
|
32
|
-
border-radius: var(--table-radius, 8px) var(--table-radius, 8px)
|
|
31
|
+
.sd-table__wrapper--radius-use-top {
|
|
32
|
+
border-radius: 0 0 var(--table-radius, 8px) var(--table-radius, 8px);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.sd-
|
|
35
|
+
.sd-table__scroll-container {
|
|
36
36
|
width: 100%;
|
|
37
37
|
height: 100%;
|
|
38
38
|
display: flex;
|
|
@@ -46,11 +46,11 @@ sd-table *,
|
|
|
46
46
|
overflow: auto;
|
|
47
47
|
background: #FFFFFF;
|
|
48
48
|
}
|
|
49
|
-
.sd-
|
|
49
|
+
.sd-table__scroll-container--loading {
|
|
50
50
|
overflow: hidden !important;
|
|
51
51
|
pointer-events: none;
|
|
52
52
|
}
|
|
53
|
-
.sd-
|
|
53
|
+
.sd-table__scroll-container--no-data {
|
|
54
54
|
overflow: hidden;
|
|
55
55
|
pointer-events: none;
|
|
56
56
|
}
|
|
@@ -130,8 +130,8 @@ sd-table *,
|
|
|
130
130
|
align-items: center;
|
|
131
131
|
justify-content: center;
|
|
132
132
|
border: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
|
|
133
|
-
|
|
134
|
-
border-radius:
|
|
133
|
+
margin-top: -1px;
|
|
134
|
+
border-radius: var(--table-radius, 8px);
|
|
135
135
|
}
|
|
136
136
|
.sd-table__pagination sd-select {
|
|
137
137
|
position: absolute;
|
|
@@ -17,6 +17,7 @@ export class SdTable {
|
|
|
17
17
|
height;
|
|
18
18
|
stickyHeader = false;
|
|
19
19
|
stickyColumn = { left: 0, right: 0 };
|
|
20
|
+
radius = 'default';
|
|
20
21
|
noDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
21
22
|
resolvedNoDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
22
23
|
isLoading = false;
|
|
@@ -208,6 +209,7 @@ export class SdTable {
|
|
|
208
209
|
el.unregisterSpanSync = this.unregisterSpanSync.bind(this);
|
|
209
210
|
el.getSpanSync = this.getSpanSync.bind(this);
|
|
210
211
|
el.isCoveredSync = this.isCoveredSync.bind(this);
|
|
212
|
+
el.isVisualLastRowSync = this.isVisualLastRowSync.bind(this);
|
|
211
213
|
el.hasRowspanSync = this.hasRowspanSync.bind(this);
|
|
212
214
|
el.registerCellClassSync = this.registerCellClassSync.bind(this);
|
|
213
215
|
el.unregisterCellClassSync = this.unregisterCellClassSync.bind(this);
|
|
@@ -222,7 +224,7 @@ export class SdTable {
|
|
|
222
224
|
this.pushRowsToChildren(this.rows);
|
|
223
225
|
}
|
|
224
226
|
readTask(() => {
|
|
225
|
-
const wrapper = this.el.shadowRoot?.querySelector('.sd-
|
|
227
|
+
const wrapper = this.el.shadowRoot?.querySelector('.sd-table__scroll-container');
|
|
226
228
|
if (!wrapper)
|
|
227
229
|
return;
|
|
228
230
|
let rafPending = false;
|
|
@@ -358,7 +360,7 @@ export class SdTable {
|
|
|
358
360
|
};
|
|
359
361
|
}
|
|
360
362
|
isRowSelectedSync(row) {
|
|
361
|
-
return Array.from(this.innerSelected).some(r => r[this.rowKey] === row[this.rowKey]);
|
|
363
|
+
return Array.from(this.innerSelected).some(r => r[(this.rowKey ?? 'id')] === row[(this.rowKey ?? 'id')]);
|
|
362
364
|
}
|
|
363
365
|
async isRowSelected(row) {
|
|
364
366
|
return this.isRowSelectedSync(row);
|
|
@@ -367,7 +369,7 @@ export class SdTable {
|
|
|
367
369
|
const selectedArray = Array.from(this.innerSelected);
|
|
368
370
|
const exists = this.isRowSelectedSync(row);
|
|
369
371
|
const newSelected = exists
|
|
370
|
-
? selectedArray.filter(r => r[this.rowKey] !== row[this.rowKey])
|
|
372
|
+
? selectedArray.filter(r => r[(this.rowKey ?? 'id')] !== row[(this.rowKey ?? 'id')])
|
|
371
373
|
: [...selectedArray, row];
|
|
372
374
|
if (newSelected.length === selectedArray.length)
|
|
373
375
|
return;
|
|
@@ -385,8 +387,8 @@ export class SdTable {
|
|
|
385
387
|
this.innerSelected = new Set([...this.innerSelected, ...pageRows]);
|
|
386
388
|
}
|
|
387
389
|
else {
|
|
388
|
-
const currentPageKeys = rows.map(r => r[this.rowKey]);
|
|
389
|
-
this.innerSelected = new Set([...this.innerSelected].filter(r => !currentPageKeys.includes(r[this.rowKey])));
|
|
390
|
+
const currentPageKeys = rows.map(r => r[(this.rowKey ?? 'id')]);
|
|
391
|
+
this.innerSelected = new Set([...this.innerSelected].filter(r => !currentPageKeys.includes(r[(this.rowKey ?? 'id')])));
|
|
390
392
|
}
|
|
391
393
|
this.selected = Array.from(this.innerSelected);
|
|
392
394
|
this.sdSelectChange.emit(Array.from(this.innerSelected));
|
|
@@ -397,7 +399,7 @@ export class SdTable {
|
|
|
397
399
|
}
|
|
398
400
|
getIsAllCheckedSync(rows) {
|
|
399
401
|
const total = rows.length;
|
|
400
|
-
const selectedCount = rows.filter(row => Array.from(this.innerSelected).some(selectedRow => selectedRow[this.rowKey] === row[this.rowKey])).length;
|
|
402
|
+
const selectedCount = rows.filter(row => Array.from(this.innerSelected).some(selectedRow => selectedRow[(this.rowKey ?? 'id')] === row[(this.rowKey ?? 'id')])).length;
|
|
401
403
|
if (selectedCount === 0)
|
|
402
404
|
return false;
|
|
403
405
|
if (selectedCount === total)
|
|
@@ -623,6 +625,23 @@ export class SdTable {
|
|
|
623
625
|
}
|
|
624
626
|
return false;
|
|
625
627
|
}
|
|
628
|
+
// 셀이 시각적으로 마지막 행(또는 페이지 마지막 행)에 닿는지 판정.
|
|
629
|
+
// 마지막 행에 border-bottom: none을 적용하기 위함
|
|
630
|
+
isVisualLastRowSync(rowKey, field) {
|
|
631
|
+
if (this.rowCount <= 0)
|
|
632
|
+
return false;
|
|
633
|
+
const myRowIdx = this.resolveRowIndex(rowKey);
|
|
634
|
+
if (myRowIdx == null)
|
|
635
|
+
return false;
|
|
636
|
+
const span = this.spanRegistry.get(this.spanKey(rowKey, field));
|
|
637
|
+
const rs = Math.max(1, span?.rowspan ?? 1);
|
|
638
|
+
const visualBottom = myRowIdx + rs - 1;
|
|
639
|
+
const pageInfo = this.getPaginationInfoSync();
|
|
640
|
+
const lastVisibleIdx = pageInfo
|
|
641
|
+
? Math.min(pageInfo.endIndex - 1, this.rowCount - 1)
|
|
642
|
+
: this.rowCount - 1;
|
|
643
|
+
return visualBottom === lastVisibleIdx;
|
|
644
|
+
}
|
|
626
645
|
setRowCountSync(count) {
|
|
627
646
|
const safeCount = Math.max(0, Math.floor(this.toFiniteNumber(count, 0)));
|
|
628
647
|
if (safeCount !== this.rowCount) {
|
|
@@ -713,24 +732,21 @@ export class SdTable {
|
|
|
713
732
|
'--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
714
733
|
'--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
715
734
|
};
|
|
716
|
-
return (h(Host, { key: '
|
|
735
|
+
return (h(Host, { key: 'd868318e2aeb7b3062a702a743f90bb55dbb00b8', style: hostStyle }, h("div", { key: '5b2113ecd1fa52a6170ffcfac5f906fae7ef7548', class: "sd-table__container", style: {
|
|
717
736
|
'--table-width': this.width,
|
|
718
737
|
'--table-height': this.height,
|
|
719
738
|
'--table-container-height': `calc(${this.height || '100%'} - ${this.pagination && this.rowCount > 0 && !this.useVirtualScroll ? 48 : 0}px)`,
|
|
720
|
-
} }, h("div", { key: '
|
|
721
|
-
'sd-table__clip': true,
|
|
722
|
-
'sd-table__clip--has-pagination': !!(this.pagination &&
|
|
723
|
-
this.pagination.rowsPerPage > 0 &&
|
|
724
|
-
this.rowCount > 0 &&
|
|
725
|
-
!this.useVirtualScroll),
|
|
726
|
-
} }, h("div", { key: 'b6d04ec953d7b75fb8ad8bc32e2662550d38c5c7', class: {
|
|
739
|
+
} }, h("div", { key: '389d7f3508727fb76d9d9f98a73963c5556ff993', class: {
|
|
727
740
|
'sd-table__wrapper': true,
|
|
728
|
-
'sd-table__wrapper--
|
|
729
|
-
|
|
730
|
-
|
|
741
|
+
'sd-table__wrapper--radius-use-top': this.radius === 'useTop',
|
|
742
|
+
} }, h("div", { key: 'e9cdeecb5f318cb1af4e0d2e938e0098e1cc44d0', class: {
|
|
743
|
+
'sd-table__scroll-container': true,
|
|
744
|
+
'sd-table__scroll-container--loading': this.isLoading,
|
|
745
|
+
'sd-table__scroll-container--no-data': this.rowCount === 0 && !this.isLoading,
|
|
746
|
+
} }, this.isLoading && (h("div", { key: '40caec779763f90e1f48818e3f56e8daabc105a6', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: 'bf7a3cabb0023f0a1663dd0337f3399ace0e75e7', indeterminate: true }))), this.rowCount === 0 && !this.isLoading && (h("div", { key: 'aac583c7876171a276645146e00afbc43d405607', class: "sd-table__no-data" }, h("slot", { key: '31e18789beeed03bcfd7013c9386eefd6f51b2cd', name: "no-data" }, h("span", { key: '07da091864e588f2ee60e8ea5ffd5ae34c968f68' }, this.resolvedNoDataLabel)))), h("table", { key: '69284f7f819477072450d1b6acbfe081abe4f1ef', 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 &&
|
|
731
747
|
this.pagination.rowsPerPage > 0 &&
|
|
732
748
|
this.rowCount > 0 &&
|
|
733
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
749
|
+
!this.useVirtualScroll && (h("div", { key: 'ff30e864526aa8c3fac2cc37499cea7aa6be1420', class: "sd-table__pagination" }, h("sd-pagination", { key: 'ad5badf1d5f518b0bf281e973c46b1381e82ae3c', 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: 'd249e79cfda4c80cb4df9c353dc4f678a5ccb861', value: this.useInternalPagination
|
|
734
750
|
? this.innerRowsPerPage
|
|
735
751
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
736
752
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -989,6 +1005,26 @@ export class SdTable {
|
|
|
989
1005
|
"setter": false,
|
|
990
1006
|
"defaultValue": "{ left: 0, right: 0 }"
|
|
991
1007
|
},
|
|
1008
|
+
"radius": {
|
|
1009
|
+
"type": "string",
|
|
1010
|
+
"mutable": false,
|
|
1011
|
+
"complexType": {
|
|
1012
|
+
"original": "'default' | 'useTop'",
|
|
1013
|
+
"resolved": "\"default\" | \"useTop\"",
|
|
1014
|
+
"references": {}
|
|
1015
|
+
},
|
|
1016
|
+
"required": false,
|
|
1017
|
+
"optional": false,
|
|
1018
|
+
"docs": {
|
|
1019
|
+
"tags": [],
|
|
1020
|
+
"text": ""
|
|
1021
|
+
},
|
|
1022
|
+
"getter": false,
|
|
1023
|
+
"setter": false,
|
|
1024
|
+
"reflect": false,
|
|
1025
|
+
"attribute": "radius",
|
|
1026
|
+
"defaultValue": "'default'"
|
|
1027
|
+
},
|
|
992
1028
|
"noDataLabel": {
|
|
993
1029
|
"type": "string",
|
|
994
1030
|
"mutable": false,
|
|
@@ -45,9 +45,9 @@ export class SdTbody {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'f0dacb28bae712e8f4d65bad00846da9db593307', slot: `${this.tableId}-body` }, h("tbody", { key: 'aec7d2277e617f1c186163d214e94559793b764c', class: { tbody: true } }, [
|
|
49
49
|
this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
|
|
50
|
-
h("slot", { key: '
|
|
50
|
+
h("slot", { key: '2c428e3624ac949ee201edfd02b5e8f0bcea2e48' }),
|
|
51
51
|
this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
|
|
52
52
|
])));
|
|
53
53
|
}
|
|
@@ -108,7 +108,7 @@ export class SdTd {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
render() {
|
|
111
|
-
return (h(Host, { key: '
|
|
111
|
+
return (h(Host, { key: 'a8b4cb79a6b40119087fcba358a5c8daadb70fe8', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '959b53537662f22e6bb5fe8d775530c11cbdff3b' })));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "sd-td"; }
|
|
114
114
|
static get originalStyleUrls() {
|
|
@@ -152,16 +152,16 @@ export class SdThead {
|
|
|
152
152
|
'--table-border-color': TABLE_BORDER.color,
|
|
153
153
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
154
154
|
};
|
|
155
|
-
return (h(Host, { key: '
|
|
155
|
+
return (h(Host, { key: '99d8d19dcc65b811d323e21041421b2d57da9f91', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '7614b6726ec13e857b6b8654925b0ba3c89fba64', class: {
|
|
156
156
|
'thead': true,
|
|
157
157
|
'thead--sticky': this._stickyHeader,
|
|
158
|
-
} }, h("tr", { key: '
|
|
158
|
+
} }, h("tr", { key: '68a615e7779947c1ee8cc26027c5bcded545e4d3', class: "tr" }, this._selectable && (h("th", { key: 'd3bc4512a24652ee156104a0fd9891504ce314dd', class: {
|
|
159
159
|
'th': true,
|
|
160
160
|
'th--selected': true,
|
|
161
161
|
'sticky-left': true,
|
|
162
162
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
163
163
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
164
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
164
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'de8f9b201aca60acbbb28a3233e964100109a92b', value: this.getIsAllChecked(), disabled: !safeRows.length, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
|
|
165
165
|
'th': true,
|
|
166
166
|
[`${col.thClass}`]: Boolean(col.thClass),
|
|
167
167
|
'sticky-left': true,
|
|
@@ -144,6 +144,20 @@ export class SdTr {
|
|
|
144
144
|
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
145
145
|
return this.tableEl.getCellClassSync(this.rowKey, fieldName);
|
|
146
146
|
}
|
|
147
|
+
isVisualLastRow(col) {
|
|
148
|
+
if (!this.tableEl?.isVisualLastRowSync)
|
|
149
|
+
return false;
|
|
150
|
+
const fieldName = typeof col.field === 'string' ? col.field : col.name;
|
|
151
|
+
return this.tableEl.isVisualLastRowSync(this.rowKey, fieldName);
|
|
152
|
+
}
|
|
153
|
+
// selectable td는 column 정보가 없으므로 빈 field로 평가한다.
|
|
154
|
+
// 해당 위치는 rowspan을 등록할 수 없으므로 spanRegistry에 매칭이 없고,
|
|
155
|
+
// 결과적으로 "내 row 자체가 시각적 마지막인지"가 판정된다.
|
|
156
|
+
isVisualLastRowForSelfRow() {
|
|
157
|
+
if (!this.tableEl?.isVisualLastRowSync)
|
|
158
|
+
return false;
|
|
159
|
+
return this.tableEl.isVisualLastRowSync(this.rowKey, '');
|
|
160
|
+
}
|
|
147
161
|
render() {
|
|
148
162
|
const stickyLeftCount = this._stickyColumn.left || 0;
|
|
149
163
|
const stickyRightCount = this._stickyColumn.right || 0;
|
|
@@ -163,13 +177,14 @@ export class SdTr {
|
|
|
163
177
|
'--table-border-color': TABLE_BORDER.color,
|
|
164
178
|
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
165
179
|
};
|
|
166
|
-
return (h(Host, { key: '
|
|
180
|
+
return (h(Host, { key: '30e4127b281770d12fab9e9cfd2cdf667eff8790', style: rowStyle }, h("tr", { key: '1072ce3f1b296e2278b7fc92a44d32da223ef119', class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { key: '4e3a37a320df97378a1ed311c0a7b8f744bd26bc', class: {
|
|
167
181
|
'td': true,
|
|
168
182
|
'td--selected': true,
|
|
183
|
+
'td--last-row': this.isVisualLastRowForSelfRow(),
|
|
169
184
|
'sticky-left': true,
|
|
170
185
|
'sticky-left-edge': stickyLeftCount === 0,
|
|
171
186
|
'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
|
|
172
|
-
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '
|
|
187
|
+
}, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'b1a775462c4869f75480908bccd428714c63c257', value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
|
|
173
188
|
if (this.isCovered(idx))
|
|
174
189
|
return null;
|
|
175
190
|
const span = this.getSpanFor(col);
|
|
@@ -177,6 +192,7 @@ export class SdTr {
|
|
|
177
192
|
return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
|
|
178
193
|
'td': true,
|
|
179
194
|
[`td--${col.align || 'left'}`]: true,
|
|
195
|
+
'td--last-row': this.isVisualLastRow(col),
|
|
180
196
|
'sticky-left': true,
|
|
181
197
|
'sticky-left-edge': idx === stickyLeftCount - 1,
|
|
182
198
|
'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
|
|
@@ -191,8 +207,9 @@ export class SdTr {
|
|
|
191
207
|
const span = this.getSpanFor(col);
|
|
192
208
|
const sdCellClass = this.getCellClassFor(col);
|
|
193
209
|
return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
|
|
194
|
-
td: true,
|
|
210
|
+
'td': true,
|
|
195
211
|
[`td--${col.align || 'left'}`]: true,
|
|
212
|
+
'td--last-row': this.isVisualLastRow(col),
|
|
196
213
|
[`${col.tdClass}`]: Boolean(col.tdClass),
|
|
197
214
|
[`${sdCellClass}`]: Boolean(sdCellClass),
|
|
198
215
|
}, style: this.getStickyStyle(actualColIdx) }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
|
|
@@ -206,6 +223,7 @@ export class SdTr {
|
|
|
206
223
|
return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
|
|
207
224
|
'td': true,
|
|
208
225
|
[`td--${col.align || 'left'}`]: true,
|
|
226
|
+
'td--last-row': this.isVisualLastRow(col),
|
|
209
227
|
'sticky-right': true,
|
|
210
228
|
'sticky-right-edge': relativeIdx === 0,
|
|
211
229
|
'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
|
|
@@ -67,7 +67,7 @@ export class SdTabs {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h("div", { key: '
|
|
70
|
+
return (h("div", { key: '9578cc6d422a304312f9ebc78622264d20d1fb45', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
71
71
|
const badgeName = this.getBadgeName(tab);
|
|
72
72
|
return (h("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab) }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge !== undefined && tab.badge !== null && tab.badge !== '' && (h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
|
|
73
73
|
})));
|
|
@@ -12,14 +12,46 @@ export const TAG_COLORS = [
|
|
|
12
12
|
'indigo',
|
|
13
13
|
];
|
|
14
14
|
const TAG_COLOR_CONFIG = {
|
|
15
|
-
grey: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
grey: {
|
|
16
|
+
background: tagTokens.tag.grey.bg,
|
|
17
|
+
content: tagTokens.tag.grey.content,
|
|
18
|
+
icon: tagTokens.tag.grey.content,
|
|
19
|
+
},
|
|
20
|
+
red: {
|
|
21
|
+
background: tagTokens.tag.red.bg,
|
|
22
|
+
content: tagTokens.tag.red.content,
|
|
23
|
+
icon: tagTokens.tag.red.content,
|
|
24
|
+
},
|
|
25
|
+
orange: {
|
|
26
|
+
background: tagTokens.tag.orange.bg,
|
|
27
|
+
content: tagTokens.tag.orange.content,
|
|
28
|
+
icon: tagTokens.tag.orange.content,
|
|
29
|
+
},
|
|
30
|
+
yellow: {
|
|
31
|
+
background: tagTokens.tag.yellow.bg,
|
|
32
|
+
content: tagTokens.tag.yellow.content,
|
|
33
|
+
icon: tagTokens.tag.yellow.content,
|
|
34
|
+
},
|
|
35
|
+
green: {
|
|
36
|
+
background: tagTokens.tag.green.bg,
|
|
37
|
+
content: tagTokens.tag.green.content,
|
|
38
|
+
icon: tagTokens.tag.green.content,
|
|
39
|
+
},
|
|
40
|
+
blue: {
|
|
41
|
+
background: tagTokens.tag.blue.bg,
|
|
42
|
+
content: tagTokens.tag.blue.content,
|
|
43
|
+
icon: tagTokens.tag.blue.content,
|
|
44
|
+
},
|
|
45
|
+
darkblue: {
|
|
46
|
+
background: tagTokens.tag.darkblue.bg,
|
|
47
|
+
content: tagTokens.tag.darkblue.content,
|
|
48
|
+
icon: tagTokens.tag.darkblue.content,
|
|
49
|
+
},
|
|
50
|
+
indigo: {
|
|
51
|
+
background: tagTokens.tag.indigo.bg,
|
|
52
|
+
content: tagTokens.tag.indigo.content,
|
|
53
|
+
icon: tagTokens.tag.indigo.content,
|
|
54
|
+
},
|
|
23
55
|
};
|
|
24
56
|
const SQUARE_SIZE_CONFIG = {
|
|
25
57
|
xs: {
|
|
@@ -5,11 +5,14 @@ export class SdTag {
|
|
|
5
5
|
label = '';
|
|
6
6
|
icon;
|
|
7
7
|
isLeft = true;
|
|
8
|
-
get
|
|
8
|
+
get resolvedName() {
|
|
9
9
|
if (!isTagName(this.name)) {
|
|
10
|
-
throw new Error(`Invalid sd-tag name: ${this.name}`);
|
|
10
|
+
throw new Error(`Invalid sd-tag name: "${this.name}"`);
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return this.name;
|
|
13
|
+
}
|
|
14
|
+
get resolvedConfig() {
|
|
15
|
+
return TAG_CONFIG[this.resolvedName];
|
|
13
16
|
}
|
|
14
17
|
renderIcon(color, size) {
|
|
15
18
|
if (!this.icon)
|
|
@@ -19,7 +22,7 @@ export class SdTag {
|
|
|
19
22
|
render() {
|
|
20
23
|
const config = this.resolvedConfig;
|
|
21
24
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
22
|
-
return (h("span", { key: '
|
|
25
|
+
return (h("span", { key: 'a52a06f79f448427ff3fe2a40c43d23a64e8ed62', class: "sd-tag", style: {
|
|
23
26
|
'--sd-tag-background': config.background,
|
|
24
27
|
'--sd-tag-content': config.content,
|
|
25
28
|
'--sd-tag-height': config.height,
|
|
@@ -29,7 +32,7 @@ export class SdTag {
|
|
|
29
32
|
'--sd-tag-font-weight': config.fontWeight,
|
|
30
33
|
'--sd-tag-line-height': config.lineHeight,
|
|
31
34
|
'--sd-tag-radius': config.radius,
|
|
32
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '
|
|
35
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '8e737f385a32109ab58fe4da036dbf594079f217', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
33
36
|
}
|
|
34
37
|
static get is() { return "sd-tag"; }
|
|
35
38
|
static get originalStyleUrls() {
|
|
@@ -96,7 +99,7 @@ export class SdTag {
|
|
|
96
99
|
"mutable": false,
|
|
97
100
|
"complexType": {
|
|
98
101
|
"original": "IconName",
|
|
99
|
-
"resolved": "\"add\" | \"alert\" | \"alignKorean\" | \"archive\" | \"arrowDown\" | \"arrowLeft\" | \"arrowRight\" | \"arrowUp\" | \"attachFile\" | \"barcode\" | \"bell\" | \"board\" | \"box\" | \"camera\" | \"cancelFill\" | \"cancelOutline\" | \"caretDown\" | \"caretLeft\" | \"caretRight\" | \"caretUp\" | \"check\" | \"checkFill\" | \"checkOutline\" | \"chevronDown\" | \"chevronLeft\" | \"chevronLeftEnd\" | \"chevronRight\" | \"chevronRightEnd\" | \"chevronUp\" | \"clockFill\" | \"clockOutline\" | \"close\" | \"copy\" | \"dashboard\" | \"date\" | \"download\" | \"drag\" | \"edit\" | \"etc\" | \"event\" | \"global\" | \"helpFill\" | \"helpOutline\" | \"history\" | \"imageFill\" | \"imageOutline\" | \"inline\" | \"line\" | \"location\" | \"logout\" | \"minus\" | \"new\" | \"notificationFill\" | \"notificationOutline\" | \"notion\" | \"outline\" | \"pageEdit\" | \"pageMove\" | \"pdf\" | \"print\" | \"remove\" | \"reset\" | \"robot\" | \"row\" | \"save\" | \"search\" | \"setting\" | \"star\" | \"synchronize\" | \"updown\" | \"user\" | \"visibilityOff\" | \"visibilityOn\" | \"warehouseFill\" | \"warehouseOutline\" | \"warningFill\" | \"warningOutline\" | \"youtube\" | undefined",
|
|
102
|
+
"resolved": "\"add\" | \"alert\" | \"alignKorean\" | \"archive\" | \"arrowDown\" | \"arrowLeft\" | \"arrowRight\" | \"arrowUp\" | \"attachFile\" | \"barcode\" | \"bell\" | \"board\" | \"box\" | \"camera\" | \"cancelFill\" | \"cancelOutline\" | \"caretDown\" | \"caretLeft\" | \"caretRight\" | \"caretUp\" | \"check\" | \"checkFill\" | \"checkOutline\" | \"checkboxCheck\" | \"checkboxIndeterminate\" | \"chevronDown\" | \"chevronLeft\" | \"chevronLeftEnd\" | \"chevronRight\" | \"chevronRightEnd\" | \"chevronUp\" | \"clockFill\" | \"clockOutline\" | \"close\" | \"copy\" | \"dashboard\" | \"date\" | \"download\" | \"drag\" | \"edit\" | \"etc\" | \"event\" | \"global\" | \"helpFill\" | \"helpOutline\" | \"history\" | \"imageFill\" | \"imageOutline\" | \"inline\" | \"line\" | \"location\" | \"logout\" | \"minus\" | \"new\" | \"notificationFill\" | \"notificationOutline\" | \"notion\" | \"outline\" | \"pageEdit\" | \"pageMove\" | \"pdf\" | \"print\" | \"remove\" | \"reset\" | \"robot\" | \"row\" | \"save\" | \"search\" | \"setting\" | \"star\" | \"synchronize\" | \"updown\" | \"user\" | \"visibilityOff\" | \"visibilityOn\" | \"warehouseFill\" | \"warehouseOutline\" | \"warningFill\" | \"warningOutline\" | \"youtube\" | undefined",
|
|
100
103
|
"references": {
|
|
101
104
|
"IconName": {
|
|
102
105
|
"location": "global",
|