@sellmate/design-system 1.4.0 → 1.6.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-qOFez3z3.js → component.table-DIxmbGBT.js} +4 -1
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-Cw-78mnC.js → index-BGwB03Tk.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sanitize-inline-html-BZCCwH_U.js +65 -0
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
- package/dist/cjs/{sd-button.config-DH08UNfl.js → sd-button.config-BSHkfgdC.js} +17 -12
- package/dist/cjs/sd-button_2.cjs.entry.js +2 -2
- package/dist/cjs/sd-calendar_2.cjs.entry.js +8 -7
- package/dist/cjs/sd-callout.cjs.entry.js +152 -0
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +10 -5
- 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 +5 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +13 -10
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +2 -2
- package/dist/cjs/sd-divider.cjs.entry.js +27 -0
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +49 -23
- package/dist/cjs/sd-field_3.cjs.entry.js +9 -9
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-guide.cjs.entry.js +6 -5
- package/dist/cjs/sd-key-value-table.cjs.entry.js +3 -3
- 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_4.cjs.entry.js +31 -51
- package/dist/cjs/sd-popover.cjs.entry.js +5 -6
- package/dist/cjs/sd-popup.cjs.entry.js +7 -6
- package/dist/cjs/sd-portal.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +7 -7
- package/dist/cjs/sd-select_3.cjs.entry.js +9 -9
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +26 -57
- package/dist/cjs/{sd-table.config-B7psrvV4.js → sd-table.config-BjJW74Zx.js} +7 -3
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.cjs.entry.js +5 -3
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{system-VmZRYp6V.js → system-CdAyz3ej.js} +15 -1
- package/dist/cjs/{tooltipArrow-BjSFKIUq.js → tooltipArrow-COD-SNZL.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/sd-calendar/sd-calendar.css +3 -1
- package/dist/collection/components/sd-calendar/sd-calendar.js +24 -3
- package/dist/collection/components/sd-callout/sd-callout.config.js +45 -0
- package/dist/collection/components/sd-callout/sd-callout.css +87 -0
- package/dist/collection/components/sd-callout/sd-callout.js +114 -0
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +9 -4
- 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 +3 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- 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-divider/sd-divider.config.js +4 -0
- package/dist/collection/components/sd-divider/sd-divider.css +25 -0
- package/dist/collection/components/sd-divider/sd-divider.js +47 -0
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +3 -3
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.css +29 -10
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +76 -16
- package/dist/collection/components/sd-field/sd-field.js +4 -4
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.js +4 -3
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +8 -0
- package/dist/collection/components/sd-number-input/sd-number-input.js +75 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +3 -24
- package/dist/collection/components/sd-popup/sd-popup.config.js +3 -4
- package/dist/collection/components/sd-popup/sd-popup.js +4 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.config.js +4 -1
- package/dist/collection/components/sd-table/sd-table.css +1 -1
- package/dist/collection/components/sd-table/sd-table.js +28 -59
- 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.css +15 -5
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +6 -5
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +6 -7
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +20 -40
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +4 -2
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/collection/utils/html/sanitize-inline-html.js +61 -0
- package/dist/collection/utils/modal.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DlREBZ-C.js → p-2aQ4cVXp.js} +1 -1
- package/dist/components/p-BCeq6-MU.js +1 -0
- package/dist/components/{p-wOAxmZ1V.js → p-BDJJQALT.js} +1 -1
- package/dist/components/p-BE-21GLH.js +1 -0
- package/dist/components/{p-DS7Ypvt5.js → p-BNUsawW7.js} +1 -1
- package/dist/components/{p-xX3QT-8K.js → p-BUW6I_d5.js} +1 -1
- package/dist/components/{p-FKKk7Bk8.js → p-BYRvYsiC.js} +1 -1
- package/dist/components/{p-Z5Vk33zf.js → p-BYU3wOaN.js} +1 -1
- package/dist/components/{p-BRk9YZBe.js → p-BZRMoE3E.js} +1 -1
- package/dist/components/{p-BjpbUGud.js → p-B_2U9h3P.js} +1 -1
- package/dist/{design-system/p-C29HUShl.js → components/p-BasCjDiE.js} +1 -1
- package/dist/components/p-BqYASycS.js +1 -0
- package/dist/components/{p-VuxN5d2D.js → p-CAP-9lnL.js} +1 -1
- package/dist/components/{p-CLxVZFEG.js → p-CARYLqH9.js} +1 -1
- package/dist/components/{p-BZabVWBD.js → p-CJRGLvgC.js} +1 -1
- package/dist/components/p-CK6jFkqR.js +1 -0
- package/dist/components/p-CRq8zgt_.js +1 -0
- package/dist/components/{p-BFC3Etk2.js → p-CSbyXQa9.js} +1 -1
- package/dist/components/p-CvfW21oo.js +1 -0
- package/dist/components/{p-CIUE4qr7.js → p-CwQTEZWO.js} +1 -1
- package/dist/components/{p-INdVvadB.js → p-Cye8r1MG.js} +1 -1
- package/dist/components/{p-JlZdKw4C.js → p-D4mjSR0u.js} +1 -1
- package/dist/components/{p-DQFHAKL_.js → p-D6GUzecR.js} +1 -1
- package/dist/components/p-DGyTYauz.js +1 -0
- package/dist/components/{p-C3fqSH7A.js → p-DP0Dp12H.js} +1 -1
- package/dist/components/{p-BSfu4DO2.js → p-DQj-S8AC.js} +1 -1
- package/dist/components/{p-BwPmM1Pm.js → p-DSIM5Mkt.js} +1 -1
- package/dist/components/{p-t161LJqb.js → p-DZ_3ZYMC.js} +1 -1
- package/dist/components/{p-D7nYP2a4.js → p-DfKa36bs.js} +1 -1
- package/dist/components/p-DoREs-rv.js +1 -0
- package/dist/components/p-DopVneZA.js +1 -0
- package/dist/components/{p-CpgTSxf0.js → p-Dwko_Bx3.js} +1 -1
- package/dist/components/{p-Da5i_Sa6.js → p-EcuI_UmK.js} +1 -1
- package/dist/components/p-_zllPZMm.js +1 -0
- package/dist/components/p-j2khhcHY.js +1 -0
- package/dist/components/{p-BeBiPTbd.js → p-lOVBaLB7.js} +1 -1
- package/dist/components/{p-kSfaCwf1.js → p-pTx5xpqU.js} +1 -1
- package/dist/components/p-pwNG5WaX.js +1 -0
- package/dist/components/{p-Cx_d5vsS.js → p-sRzhIrJR.js} +1 -1
- package/dist/components/{p-BRxXhFqt.js → p-uVZjhyvS.js} +1 -1
- package/dist/components/{p-X-8I-A3g.js → p-z564gmGG.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.d.ts +11 -0
- package/dist/components/sd-callout.js +1 -0
- 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-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-divider.d.ts +11 -0
- package/dist/components/sd-divider.js +1 -0
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-form.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-522d1481.entry.js → p-07b0d118.entry.js} +1 -1
- package/dist/design-system/{p-d39e515d.entry.js → p-0964c79a.entry.js} +1 -1
- package/dist/design-system/{p-ae117afa.entry.js → p-1219699a.entry.js} +1 -1
- package/dist/design-system/{p-f7074386.entry.js → p-1743651a.entry.js} +1 -1
- package/dist/design-system/{p-481e6934.entry.js → p-17883b40.entry.js} +1 -1
- package/dist/design-system/p-18057222.entry.js +1 -0
- package/dist/design-system/{p-e611dcd4.entry.js → p-18d3ae55.entry.js} +1 -1
- package/dist/design-system/{p-fe3ae346.entry.js → p-1aafbc7b.entry.js} +1 -1
- package/dist/design-system/p-20a2e0d2.entry.js +1 -0
- package/dist/design-system/{p-399d416c.entry.js → p-25fad267.entry.js} +1 -1
- package/dist/design-system/p-2c0a8333.entry.js +1 -0
- package/dist/design-system/p-3a848c36.entry.js +1 -0
- package/dist/design-system/{p-3b8954d9.entry.js → p-4b43648c.entry.js} +1 -1
- package/dist/design-system/{p-32e2d71e.entry.js → p-4bd9f005.entry.js} +1 -1
- package/dist/design-system/p-4cf1c8ae.entry.js +1 -0
- package/dist/design-system/{p-9681b0ba.entry.js → p-521e5d2e.entry.js} +1 -1
- package/dist/design-system/p-54086285.entry.js +1 -0
- package/dist/design-system/{p-aeccfb2b.entry.js → p-696764b0.entry.js} +1 -1
- package/dist/design-system/p-70f47e43.entry.js +1 -0
- package/dist/design-system/{p-c7099e9e.entry.js → p-733aa107.entry.js} +1 -1
- package/dist/design-system/{p-a7ea1cf0.entry.js → p-7444d475.entry.js} +1 -1
- package/dist/design-system/{p-03badf68.entry.js → p-840f592d.entry.js} +1 -1
- package/dist/design-system/{p-dbeaeb31.entry.js → p-8d2815cf.entry.js} +1 -1
- package/dist/design-system/{p-42f7febe.entry.js → p-8fc49d2d.entry.js} +1 -1
- package/dist/design-system/{p-e8e64511.entry.js → p-95bbba4f.entry.js} +1 -1
- package/dist/design-system/p-969665c0.entry.js +1 -0
- package/dist/design-system/{p-e23dac79.entry.js → p-97b405aa.entry.js} +1 -1
- package/dist/design-system/p-C7p6g_sM.js +1 -0
- package/dist/design-system/{p-DQFHAKL_.js → p-D6GUzecR.js} +1 -1
- package/dist/design-system/p-DGyTYauz.js +1 -0
- package/dist/design-system/p-DNWwGHho.js +2 -0
- package/dist/design-system/p-DopVneZA.js +1 -0
- package/dist/design-system/p-LIf7YMBN.js +1 -0
- package/dist/design-system/{p-9b9bf9db.entry.js → p-a5930cbd.entry.js} +1 -1
- package/dist/design-system/{p-84a94775.entry.js → p-a6c9baa5.entry.js} +1 -1
- package/dist/design-system/{p-4a91875c.entry.js → p-afdca5bb.entry.js} +1 -1
- package/dist/design-system/{p-00b2c850.entry.js → p-b08ca29b.entry.js} +1 -1
- package/dist/design-system/p-c5c4a66b.entry.js +1 -0
- package/dist/design-system/p-c73cadc7.entry.js +1 -0
- package/dist/design-system/{p-679bce6c.entry.js → p-d8292621.entry.js} +1 -1
- package/dist/design-system/{p-a98f9a29.entry.js → p-deec1ef0.entry.js} +1 -1
- package/dist/design-system/{p-11b904a3.entry.js → p-e6bd8ab1.entry.js} +1 -1
- package/dist/design-system/{p-e902a3f4.entry.js → p-e9079238.entry.js} +1 -1
- package/dist/design-system/p-ea17a361.entry.js +1 -0
- package/dist/design-system/{p-a71d4947.entry.js → p-eef5f8d7.entry.js} +1 -1
- package/dist/design-system/p-f97b75d3.entry.js +1 -0
- package/dist/design-system/{p-74bf0ed9.entry.js → p-ff33d019.entry.js} +1 -1
- package/dist/design-system/p-j2khhcHY.js +1 -0
- package/dist/esm/{component.table-DQFHAKL_.js → component.table-D6GUzecR.js} +4 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-0U6dRjlq.js → index-DNWwGHho.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sanitize-inline-html-DopVneZA.js +63 -0
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +1 -1
- package/dist/esm/{sd-button.config-BDjErF_K.js → sd-button.config-C7p6g_sM.js} +17 -12
- package/dist/esm/sd-button_2.entry.js +2 -2
- package/dist/esm/sd-calendar_2.entry.js +8 -7
- package/dist/esm/sd-callout.entry.js +150 -0
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +10 -5
- 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 +5 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker_7.entry.js +13 -10
- package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
- package/dist/esm/sd-divider.entry.js +25 -0
- package/dist/esm/sd-dropdown-button.entry.js +49 -23
- package/dist/esm/sd-field_3.entry.js +9 -9
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +1 -1
- package/dist/esm/sd-guide.entry.js +6 -5
- package/dist/esm/sd-key-value-table.entry.js +3 -3
- 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_4.entry.js +31 -51
- package/dist/esm/sd-popover.entry.js +5 -6
- package/dist/esm/sd-popup.entry.js +7 -6
- package/dist/esm/sd-portal.entry.js +2 -2
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +7 -7
- package/dist/esm/sd-select_3.entry.js +9 -9
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/{sd-table.config-DU7Pc6YH.js → sd-table.config-D9meRqTx.js} +7 -4
- package/dist/esm/sd-table.entry.js +26 -57
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js +5 -3
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{system-GBlVDmy4.js → system-j2khhcHY.js} +15 -1
- package/dist/esm/{tooltipArrow-O5LOsHae.js → tooltipArrow-Cj3AqWK0.js} +1 -1
- package/dist/types/components/sd-calendar/sd-calendar.d.ts +1 -0
- package/dist/types/components/sd-callout/sd-callout.config.d.ts +34 -0
- package/dist/types/components/sd-callout/sd-callout.d.ts +11 -0
- package/dist/types/components/sd-divider/sd-divider.config.d.ts +3 -0
- package/dist/types/components/sd-divider/sd-divider.d.ts +5 -0
- package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +5 -0
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +4 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +0 -1
- package/dist/types/components/sd-table/sd-table.config.d.ts +2 -0
- package/dist/types/components/sd-table/sd-table.d.ts +1 -6
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +1 -5
- package/dist/types/components.d.ts +123 -21
- package/dist/types/utils/html/sanitize-inline-html.d.ts +1 -0
- package/hydrate/index.js +477 -212
- package/hydrate/index.mjs +477 -212
- package/package.json +1 -1
- package/dist/components/p-BDVrZ5mV.js +0 -1
- package/dist/components/p-BjkROjjt.js +0 -1
- package/dist/components/p-Bs1Z5QtN.js +0 -1
- package/dist/components/p-CETxX4-M.js +0 -1
- package/dist/components/p-CyObYB-g.js +0 -1
- package/dist/components/p-DdLntfiw.js +0 -1
- package/dist/components/p-DhTcn6jX.js +0 -1
- package/dist/components/p-DiP0LJGq.js +0 -1
- package/dist/components/p-DwgaMhOM.js +0 -1
- package/dist/components/p-DykVq5VY.js +0 -1
- package/dist/components/p-GBlVDmy4.js +0 -1
- package/dist/components/p-oyZgWRnC.js +0 -1
- package/dist/design-system/p-0U6dRjlq.js +0 -2
- package/dist/design-system/p-29fd86d8.entry.js +0 -1
- package/dist/design-system/p-36d744fb.entry.js +0 -1
- package/dist/design-system/p-8f4ccae4.entry.js +0 -1
- package/dist/design-system/p-92f368a2.entry.js +0 -1
- package/dist/design-system/p-9f7f1b8b.entry.js +0 -1
- package/dist/design-system/p-BDjErF_K.js +0 -1
- package/dist/design-system/p-DykVq5VY.js +0 -1
- package/dist/design-system/p-GBlVDmy4.js +0 -1
- package/dist/design-system/p-a640e509.entry.js +0 -1
- package/dist/design-system/p-a97033a2.entry.js +0 -1
- package/dist/design-system/p-cc97f4b4.entry.js +0 -1
- package/dist/design-system/p-d890a680.entry.js +0 -1
- package/dist/design-system/p-fc5c4f85.entry.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BGwB03Tk.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
|
-
var sdTable_config = require('./sd-table.config-
|
|
6
|
-
require('./component.table-
|
|
7
|
-
require('./system-
|
|
5
|
+
var sdTable_config = require('./sd-table.config-BjJW74Zx.js');
|
|
6
|
+
require('./component.table-DIxmbGBT.js');
|
|
7
|
+
require('./system-CdAyz3ej.js');
|
|
8
8
|
|
|
9
9
|
let urlAlphabet =
|
|
10
10
|
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
@@ -19,7 +19,7 @@ let nanoid = (size = 21) => {
|
|
|
19
19
|
return id
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
const sdTableCss = () => `sd-table,:host{display:block;width:100%;max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:var(--table-height, 100%);width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:var(--table-container-height, 400px);border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--
|
|
22
|
+
const sdTableCss = () => `sd-table,:host{display:block;width:100%;max-width:100%;min-width:0}sd-table *,:host *{box-sizing:border-box}.sd-table__container{height:var(--table-height, 100%);width:var(--table-width, 100%);max-width:100%;min-width:0;color:#222222;display:flex;flex-direction:column}.sd-table__wrapper{width:100%;min-width:0;height:var(--table-container-height, 400px);border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);border-radius:var(--table-radius, 8px);overflow:hidden}.sd-table__wrapper--use-top{border-radius:0 0 var(--table-radius, 8px) var(--table-radius, 8px)}.sd-table__scroll-container{width:100%;height:100%;display:flex;flex-direction:column;position:relative;font-family:var(--table-body-font-family, inherit);font-weight:var(--table-body-font-weight, 400);font-size:var(--table-body-font-size, 12px);line-height:var(--table-body-line-height, 20px);text-decoration:var(--table-body-text-decoration, none);overflow:auto;background:#FFFFFF}.sd-table__scroll-container--loading{overflow:hidden !important;pointer-events:none}.sd-table__scroll-container--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;top:36px;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-size:var(--table-body-font-size, 12px);color:#888888;pointer-events:none;z-index:200;background:rgba(255, 255, 255, 0.6)}.sd-table__no-data-header-overlay{position:absolute;top:0;left:0;right:0;height:36px;background:rgba(255, 255, 255, 0.6);z-index:210;pointer-events:none}.sd-table__no-data-content{pointer-events:auto;min-height:60px;width:100%;display:flex;align-items:center;justify-content:center}.sd-table__loading{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(255, 255, 255, 0.6);z-index:200;display:flex;align-items:center;justify-content:center;pointer-events:none}.sd-table{background-color:white;display:table;width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.sd-table--selectable sd-thead,.sd-table--selectable sd-tbody{--selectable:true}.sd-table--sticky-header sd-thead thead{position:sticky;top:0;z-index:120}.sd-table--sticky-column sd-thead,.sd-table--sticky-column sd-tbody{--sticky-column:true}.sd-table--scrolled-left sd-thead,.sd-table--scrolled-left sd-tbody{--scrolled-left:true}.sd-table--scrolled-right sd-thead,.sd-table--scrolled-right sd-tbody{--scrolled-right:true}.sd-table--resizable sd-thead{--resizable:true}.sd-table--no-data sd-thead{opacity:0.4}.sd-table__pagination{position:relative;background:#F9F9F9;height:48px;display:flex;align-items:center;justify-content:center;border:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);margin-top:-1px;border-radius:var(--table-radius, 8px)}.sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}`;
|
|
23
23
|
|
|
24
24
|
const SdTable = class {
|
|
25
25
|
constructor(hostRef) {
|
|
@@ -44,7 +44,7 @@ const SdTable = class {
|
|
|
44
44
|
height;
|
|
45
45
|
stickyHeader = false;
|
|
46
46
|
stickyColumn = { left: 0, right: 0 };
|
|
47
|
-
|
|
47
|
+
useTop = false;
|
|
48
48
|
noDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
49
49
|
resolvedNoDataLabel = SdTable.DEFAULT_NO_DATA_LABEL;
|
|
50
50
|
isLoading = false;
|
|
@@ -104,8 +104,6 @@ const SdTable = class {
|
|
|
104
104
|
// 키: `${rowKey}::${field}` → sd-td의 sdClass 문자열
|
|
105
105
|
// sd-tr가 td를 그릴 때 머지해서 셀-단위 커스텀 클래스를 적용한다.
|
|
106
106
|
cellClassRegistry = new Map();
|
|
107
|
-
// separator 직전 행의 시각적 인덱스 집합
|
|
108
|
-
separatorPrevIndices = new Set();
|
|
109
107
|
// rowKey 문자열 → rows 배열에서의 visual index.
|
|
110
108
|
// rowspan 위쪽 행 스캔에서 "내 위에 있느냐"를 판정하기 위한 시각적 순서 소스.
|
|
111
109
|
// rows prop이 있으면 채워지고, 없으면 비어 있어 Number(rowKey) fallback이 사용된다.
|
|
@@ -236,6 +234,10 @@ const SdTable = class {
|
|
|
236
234
|
if (this.pagination?.rowsPerPage != null) {
|
|
237
235
|
this.innerRowsPerPage = this.pagination.rowsPerPage;
|
|
238
236
|
}
|
|
237
|
+
// host element 에 자식 컴포넌트(sd-thead/sd-tbody/sd-tr) 가 직접 접근하는 internal sync helpers 를 monkey-patch.
|
|
238
|
+
// 28개 메서드 전체를 typed interface 로 노출하면 코드 비용이 크고, 어차피 internal 이라 외부 사용자가 호출하지 않는다.
|
|
239
|
+
// 정식 @Method 노출로 옮기는 작업은 별도 이슈로 분리.
|
|
240
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
239
241
|
const el = this.el;
|
|
240
242
|
el.isRowSelectedSync = this.isRowSelectedSync.bind(this);
|
|
241
243
|
el.updateRowSelectSync = this.updateRowSelectSync.bind(this);
|
|
@@ -254,9 +256,6 @@ const SdTable = class {
|
|
|
254
256
|
el.unregisterSpanSync = this.unregisterSpanSync.bind(this);
|
|
255
257
|
el.getSpanSync = this.getSpanSync.bind(this);
|
|
256
258
|
el.isCoveredSync = this.isCoveredSync.bind(this);
|
|
257
|
-
el.registerSeparatorSync = this.registerSeparatorSync.bind(this);
|
|
258
|
-
el.unregisterSeparatorSync = this.unregisterSeparatorSync.bind(this);
|
|
259
|
-
el.isVisualLastRowBeforeSeparatorSync = this.isVisualLastRowBeforeSeparatorSync.bind(this);
|
|
260
259
|
el.hasRowspanSync = this.hasRowspanSync.bind(this);
|
|
261
260
|
el.registerCellClassSync = this.registerCellClassSync.bind(this);
|
|
262
261
|
el.unregisterCellClassSync = this.unregisterCellClassSync.bind(this);
|
|
@@ -352,7 +351,6 @@ const SdTable = class {
|
|
|
352
351
|
}
|
|
353
352
|
});
|
|
354
353
|
}
|
|
355
|
-
// light DOM(manual mode 자식)과 shadow DOM(autoThead/autoTbody fallback) 양쪽 모두에서 자식을 찾는다.
|
|
356
354
|
queryChildEl(selector) {
|
|
357
355
|
return (this.el.querySelector(selector) ??
|
|
358
356
|
this.el.shadowRoot?.querySelector(selector) ??
|
|
@@ -380,12 +378,12 @@ const SdTable = class {
|
|
|
380
378
|
refreshChildrenSelection() {
|
|
381
379
|
const thead = this.queryChildEl('sd-thead');
|
|
382
380
|
thead?.refreshSelection?.();
|
|
383
|
-
this.queryAllTr().forEach(tr => tr
|
|
381
|
+
this.queryAllTr().forEach(tr => tr.refreshSelection?.());
|
|
384
382
|
}
|
|
385
383
|
refreshChildrenConfig() {
|
|
386
384
|
const thead = this.queryChildEl('sd-thead');
|
|
387
385
|
thead?.refreshConfig?.();
|
|
388
|
-
this.queryAllTr().forEach(tr => tr
|
|
386
|
+
this.queryAllTr().forEach(tr => tr.refreshConfig?.());
|
|
389
387
|
}
|
|
390
388
|
maybeEmitVirtualReachEnd(start, end) {
|
|
391
389
|
const threshold = Math.max(1, this.virtualEndThreshold);
|
|
@@ -417,6 +415,7 @@ const SdTable = class {
|
|
|
417
415
|
this.vsEnd = end;
|
|
418
416
|
const topHeight = start * this.effectiveRowHeight;
|
|
419
417
|
const bottomHeight = Math.max(0, (this.rowCount - end) * this.effectiveRowHeight);
|
|
418
|
+
// setSpacersSync 는 sd-tbody 가 host element 에 monkey-patch 하는 internal sync helper.
|
|
420
419
|
const tbody = this.queryChildEl('sd-tbody');
|
|
421
420
|
tbody?.setSpacersSync?.(topHeight, bottomHeight);
|
|
422
421
|
if (rangeChanged) {
|
|
@@ -537,7 +536,7 @@ const SdTable = class {
|
|
|
537
536
|
this.updateRowsVisibility();
|
|
538
537
|
}
|
|
539
538
|
updateRowsVisibility() {
|
|
540
|
-
this.queryAllTr().forEach(tr => tr
|
|
539
|
+
this.queryAllTr().forEach(tr => tr.updateVisibility?.());
|
|
541
540
|
}
|
|
542
541
|
changeRowsPerPage(perPage) {
|
|
543
542
|
const changedRowsPerPage = perPage != null && perPage !== '' ? Number(perPage) : 0;
|
|
@@ -576,7 +575,7 @@ const SdTable = class {
|
|
|
576
575
|
this.columnWidths = this.columnWidths.map((width, idx) => (idx === index ? newWidth : width));
|
|
577
576
|
const thead = this.queryChildEl('sd-thead');
|
|
578
577
|
thead?.setColumnWidths?.(this.columnWidths);
|
|
579
|
-
this.queryAllTr().forEach(tr => tr
|
|
578
|
+
this.queryAllTr().forEach(tr => tr.setColumnWidths?.(this.columnWidths));
|
|
580
579
|
const stickyRightCount = this.stickyColumn?.right || 0;
|
|
581
580
|
const visibleColCount = this.columns.filter(c => c.visible !== false).length;
|
|
582
581
|
const isRightStickyEdgeResizer = stickyRightCount > 0 && index === visibleColCount - stickyRightCount;
|
|
@@ -596,7 +595,7 @@ const SdTable = class {
|
|
|
596
595
|
getStickyStyleSync(colIdx) {
|
|
597
596
|
const leftOffset = this.columnWidths
|
|
598
597
|
.slice(0, colIdx)
|
|
599
|
-
.reduce((a, b) => a + b, this.selectable ?
|
|
598
|
+
.reduce((a, b) => a + b, this.selectable ? sdTable_config.TABLE_SELECTABLE_COLUMN_WIDTH : 0);
|
|
600
599
|
const rightOffset = this.columnWidths
|
|
601
600
|
.filter((_, i) => i >=
|
|
602
601
|
this.columns.filter(c => c.visible !== false).length -
|
|
@@ -631,9 +630,8 @@ const SdTable = class {
|
|
|
631
630
|
// 경우가 있어, sd-tr의 @State (spansVersion)을 통해 재렌더를 강제한다.
|
|
632
631
|
requestAllTrUpdate() {
|
|
633
632
|
this.queryAllTr().forEach(tr => {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
trAny.bumpSpansVersion();
|
|
633
|
+
if (typeof tr.bumpSpansVersion === 'function') {
|
|
634
|
+
tr.bumpSpansVersion();
|
|
637
635
|
}
|
|
638
636
|
else {
|
|
639
637
|
index.forceUpdate(tr);
|
|
@@ -747,36 +745,6 @@ const SdTable = class {
|
|
|
747
745
|
}
|
|
748
746
|
return false;
|
|
749
747
|
}
|
|
750
|
-
// rowspan을 반영한 셀의 시각적 하단 행 인덱스를 반환한다.
|
|
751
|
-
// isVisualLastRowBeforeSeparatorSync 헬퍼.
|
|
752
|
-
resolveVisualBottom(rowKey, field) {
|
|
753
|
-
const myRowIdx = this.resolveRowIndex(rowKey);
|
|
754
|
-
if (myRowIdx == null)
|
|
755
|
-
return null;
|
|
756
|
-
const span = this.spanRegistry.get(this.spanKey(rowKey, field));
|
|
757
|
-
const rs = Math.max(1, span?.rowspan ?? 1);
|
|
758
|
-
return myRowIdx + rs - 1;
|
|
759
|
-
}
|
|
760
|
-
registerSeparatorSync(prevRowKey) {
|
|
761
|
-
const idx = this.resolveRowIndex(prevRowKey);
|
|
762
|
-
if (idx != null)
|
|
763
|
-
this.separatorPrevIndices.add(idx);
|
|
764
|
-
}
|
|
765
|
-
unregisterSeparatorSync(prevRowKey) {
|
|
766
|
-
const idx = this.resolveRowIndex(prevRowKey);
|
|
767
|
-
if (idx != null)
|
|
768
|
-
this.separatorPrevIndices.delete(idx);
|
|
769
|
-
}
|
|
770
|
-
// 셀의 시각적 하단이 separator 바로 앞 행인지 판정.
|
|
771
|
-
// 해당 셀에 border-bottom: none을 적용하기 위함.
|
|
772
|
-
isVisualLastRowBeforeSeparatorSync(rowKey, field) {
|
|
773
|
-
if (this.separatorPrevIndices.size === 0)
|
|
774
|
-
return false;
|
|
775
|
-
const visualBottom = this.resolveVisualBottom(rowKey, field);
|
|
776
|
-
if (visualBottom == null)
|
|
777
|
-
return false;
|
|
778
|
-
return this.separatorPrevIndices.has(visualBottom);
|
|
779
|
-
}
|
|
780
748
|
setRowCountSync(count) {
|
|
781
749
|
const safeCount = Math.max(0, Math.floor(this.toFiniteNumber(count, 0)));
|
|
782
750
|
if (safeCount !== this.rowCount) {
|
|
@@ -872,26 +840,27 @@ const SdTable = class {
|
|
|
872
840
|
'--table-body-font-size': `${sdTable_config.TABLE_BODY_TYPOGRAPHY.fontSize}px`,
|
|
873
841
|
'--table-body-line-height': `${sdTable_config.TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
874
842
|
'--table-body-text-decoration': sdTable_config.TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
843
|
+
'--table-selectable-width': `${sdTable_config.TABLE_SELECTABLE_COLUMN_WIDTH}px`,
|
|
875
844
|
};
|
|
876
|
-
return (index.h(index.Host, { key: '
|
|
845
|
+
return (index.h(index.Host, { key: '4596e04bd57aca00fa6378fd26ce33a06a795eaf', style: hostStyle }, index.h("div", { key: '11a20d327410b0be659cede32917164e036e796c', class: "sd-table__container", style: {
|
|
877
846
|
'--table-width': this.width,
|
|
878
847
|
'--table-height': effectiveTableHeight,
|
|
879
848
|
'--table-container-height': `calc(${effectiveTableHeight} - ${paginationHeight}px)`,
|
|
880
|
-
} }, index.h("div", { key: '
|
|
849
|
+
} }, index.h("div", { key: 'f4f3acf584dc4eacdae25b11aa2b62b73ffab949', class: {
|
|
881
850
|
'sd-table__wrapper': true,
|
|
882
|
-
'sd-table__wrapper--
|
|
883
|
-
} }, index.h("div", { key: '
|
|
851
|
+
'sd-table__wrapper--use-top': this.useTop,
|
|
852
|
+
} }, index.h("div", { key: 'c8ab618b9c990a22b8e9466a5bfb5f02f4de8b12', class: {
|
|
884
853
|
'sd-table__scroll-container': true,
|
|
885
854
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
886
855
|
'sd-table__scroll-container--no-data': isNoData,
|
|
887
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
856
|
+
} }, this.isLoading && (index.h("div", { key: 'a696933a70799ba282fc743281d0af27fd691a2e', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: 'cba6ac47367ef6499bf338b9b757ee74fdd7e6c1', indeterminate: true }))), isNoData && (index.h(index.h.Fragment, null, index.h("div", { key: '6e22156bf5b0fb9814d9bf9cad57506758c6284b', class: "sd-table__no-data-header-overlay" }), index.h("div", { key: 'b72f9fabcc8acb8e700ad55acc4d7aff08355a1c', class: "sd-table__no-data" }, index.h("div", { key: '43f271a8803121362f16e8153748328658f073ec', class: "sd-table__no-data-content", ref: el => {
|
|
888
857
|
this.noDataContentEl = el;
|
|
889
858
|
if (el)
|
|
890
859
|
this.syncNoDataContentObserver();
|
|
891
|
-
} }, index.h("slot", { key: '
|
|
860
|
+
} }, index.h("slot", { key: '4b8533115bbc81962b80c9c2533fe4b44a87193c', name: "no-data" }, index.h("span", { key: 'd94c4f7cf9eca7901b99434f712480a7b20c869a' }, this.resolvedNoDataLabel)))))), index.h("table", { key: 'a9a353aca09124ed8a82fcd2f8a0a7de09b234f5', class: this.tableClasses }, this.autoThead ? (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-thead", { rows: this.rows ?? [] }))) : (index.h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, index.h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (index.h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
892
861
|
this.pagination.rowsPerPage > 0 &&
|
|
893
862
|
this.rowCount > 0 &&
|
|
894
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
863
|
+
!this.useVirtualScroll && (index.h("div", { key: '8afeb9398c3d7540a54b9a3660fb9685ae1cddca', class: "sd-table__pagination" }, index.h("sd-pagination", { key: 'e2cbb3f7414f65b81ab2d33eaec5d9f28bed6cc8', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (index.h("sd-select", { key: 'ce723544dbc7e4cc0d77ced3b685b8575cf67e6f', value: this.useInternalPagination
|
|
895
864
|
? this.innerRowsPerPage
|
|
896
865
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
897
866
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var component_table = require('./component.table-
|
|
4
|
-
var system = require('./system-
|
|
3
|
+
var component_table = require('./component.table-DIxmbGBT.js');
|
|
4
|
+
var system = require('./system-CdAyz3ej.js');
|
|
5
5
|
|
|
6
6
|
// ── Header Tokens ──
|
|
7
7
|
const TABLE_HEADER_LAYOUT = {
|
|
@@ -50,9 +50,12 @@ const TABLE_BORDER = {
|
|
|
50
50
|
};
|
|
51
51
|
const TABLE_SEPARATOR = {
|
|
52
52
|
color: component_table.tableTokens.table.separator.color,
|
|
53
|
-
width: component_table.tableTokens.table.separator.
|
|
53
|
+
width: component_table.tableTokens.table.separator.width.default,
|
|
54
|
+
denseWidth: component_table.tableTokens.table.separator.width.dense,
|
|
54
55
|
};
|
|
55
56
|
const TABLE_RADIUS = component_table.tableTokens.table.radius;
|
|
57
|
+
// ── Selectable Column ──
|
|
58
|
+
const TABLE_SELECTABLE_COLUMN_WIDTH = 48;
|
|
56
59
|
// ── Header Icon Color Defaults ──
|
|
57
60
|
const ICON_DEFAULT_COLOR = {
|
|
58
61
|
pageEdit: system.systemTokens.color.darkblue.strong,
|
|
@@ -73,6 +76,7 @@ exports.TABLE_HEADER_LAYOUT = TABLE_HEADER_LAYOUT;
|
|
|
73
76
|
exports.TABLE_HEADER_RESIZING_BAR = TABLE_HEADER_RESIZING_BAR;
|
|
74
77
|
exports.TABLE_HEADER_TYPOGRAPHY = TABLE_HEADER_TYPOGRAPHY;
|
|
75
78
|
exports.TABLE_RADIUS = TABLE_RADIUS;
|
|
79
|
+
exports.TABLE_SELECTABLE_COLUMN_WIDTH = TABLE_SELECTABLE_COLUMN_WIDTH;
|
|
76
80
|
exports.TABLE_SEPARATOR = TABLE_SEPARATOR;
|
|
77
81
|
exports.resolveSortIconName = resolveSortIconName;
|
|
78
82
|
exports.resolveTableIconColor = resolveTableIconColor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BGwB03Tk.js');
|
|
4
4
|
|
|
5
5
|
const tab = {
|
|
6
6
|
main: {
|
|
@@ -188,7 +188,7 @@ const SdTabs = class {
|
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
190
|
render() {
|
|
191
|
-
return (index.h("div", { key: '
|
|
191
|
+
return (index.h("div", { key: '92384577bf4ce85de90ae05a32e44715e595fe16', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index$1) => {
|
|
192
192
|
const badgeName = this.getBadgeName(tab);
|
|
193
193
|
return (index.h("div", { key: `tab-${index$1}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
194
194
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BGwB03Tk.js');
|
|
4
4
|
|
|
5
5
|
const tag = {
|
|
6
6
|
xs: {
|
|
@@ -186,6 +186,8 @@ const SdTag = class {
|
|
|
186
186
|
name = 'square_sm_grey';
|
|
187
187
|
label = '';
|
|
188
188
|
icon;
|
|
189
|
+
// 아이콘이 좌측 배치되는 게 자연스러운 default. prop 이름 변경(isRight 등)은 public API breaking 이라 별도 이슈로 분리.
|
|
190
|
+
// eslint-disable-next-line stencil/ban-default-true
|
|
189
191
|
isLeft = true;
|
|
190
192
|
componentWillLoad() {
|
|
191
193
|
this.name = this.name ?? 'square_sm_grey';
|
|
@@ -207,7 +209,7 @@ const SdTag = class {
|
|
|
207
209
|
render() {
|
|
208
210
|
const config = this.resolvedConfig;
|
|
209
211
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
210
|
-
return (index.h("span", { key: '
|
|
212
|
+
return (index.h("span", { key: 'c8b8b88e2c83401bb9d3e05004b0517d7e4a3a6a', class: "sd-tag", style: {
|
|
211
213
|
'--sd-tag-background': config.background,
|
|
212
214
|
'--sd-tag-content': config.content,
|
|
213
215
|
'--sd-tag-height': config.height,
|
|
@@ -217,7 +219,7 @@ const SdTag = class {
|
|
|
217
219
|
'--sd-tag-font-weight': config.fontWeight,
|
|
218
220
|
'--sd-tag-line-height': config.lineHeight,
|
|
219
221
|
'--sd-tag-radius': config.radius,
|
|
220
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '
|
|
222
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '67094b09ab1d7b7e865c9f6b8017f8c5c3f8274a', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
221
223
|
}
|
|
222
224
|
};
|
|
223
225
|
SdTag.style = sdTagCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BGwB03Tk.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
5
|
|
|
6
6
|
const sdTdCss = () => `sd-td *{box-sizing:border-box}sd-td{display:contents}sd-td.align-left{text-align:left}sd-td.align-center{text-align:center}sd-td.align-right{text-align:right}`;
|
|
@@ -158,7 +158,7 @@ const SdTd = class {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
render() {
|
|
161
|
-
return (index.h(index.Host, { key: '
|
|
161
|
+
return (index.h(index.Host, { key: '1d7123e1f35cfb513a1fa89b4d60f8dde7715a2f', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: 'f7b9266106a6df93e2101ca9a324035960281a6f' })));
|
|
162
162
|
}
|
|
163
163
|
static get watchers() { return {
|
|
164
164
|
"field": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BGwB03Tk.js');
|
|
4
4
|
|
|
5
5
|
const DEFAULT_DURATION = 4000;
|
|
6
6
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -234,7 +234,7 @@ const SdToastContainer = class {
|
|
|
234
234
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
235
235
|
const indexMap = new Map();
|
|
236
236
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
237
|
-
return (index.h("div", { key: '
|
|
237
|
+
return (index.h("div", { key: '1de55d255b75842f52e3f0a147a69493ed1a7de5', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
238
238
|
this.expanded = true;
|
|
239
239
|
this.pauseTimers();
|
|
240
240
|
}, onMouseLeave: () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BGwB03Tk.js');
|
|
4
4
|
|
|
5
5
|
const toast = {
|
|
6
6
|
icon: "16",
|
|
@@ -84,12 +84,12 @@ const SdToast = class {
|
|
|
84
84
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
85
85
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
86
86
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
87
|
-
return (index.h("div", { key: '
|
|
87
|
+
return (index.h("div", { key: '735fa3f949ee4c7d0178f999c02e90c829c133b4', style: {
|
|
88
88
|
'--sd-toast-bg': typeConfig.bg,
|
|
89
89
|
'--sd-toast-text': typeConfig.content,
|
|
90
90
|
'--sd-toast-icon': iconColor,
|
|
91
91
|
'--sd-toast-link': linkColor,
|
|
92
|
-
} }, index.h("div", { key: '
|
|
92
|
+
} }, index.h("div", { key: '4e483d858c3268bde838ddc5c5c9cb5065855326', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (index.h("div", { key: '007eded85c508bdd2da05b1c9d489ff2d03a4df9', class: "sd-toast__icon" }, index.h("sd-icon", { key: '099d5556f4b0a11f5162cb76a6166a2d662d9590', name: this.icon, size: iconSize, color: iconColor }))), index.h("div", { key: '3825916248bc2385fe87c8aeb6d741b59738246f', class: "sd-toast__content" }, index.h("span", { key: 'fba817baf33179296f50d3fe4147cc99c38fbb83', class: "sd-toast__message" }, this.message)), this.link && (index.h("a", { key: '39667765a9a72c761f0b464f78c7652e60e6dd16', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (index.h("sd-button", { key: '3da2f9a5daf53de4400bfec79654b5795c3b6af4', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (index.h("sd-ghost-button", { key: '2578d35dc11e06178c6902cb358bcdb8ccabbf36', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
SdToast.style = sdToastCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BGwB03Tk.js');
|
|
4
4
|
|
|
5
5
|
const toggle = {
|
|
6
6
|
height: "28",
|
|
@@ -120,7 +120,7 @@ const SdToggle = class {
|
|
|
120
120
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
121
121
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
122
122
|
};
|
|
123
|
-
return (index.h("label", { key: '
|
|
123
|
+
return (index.h("label", { key: 'f1b1b68270d523f7f3e40c8145f35e93df269d73', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, index.h("input", { key: '7e07c190916e19ffe8744f6b491e92e6bf8efd36', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
SdToggle.style = sdToggleCss();
|
|
@@ -13,13 +13,27 @@ const color = {
|
|
|
13
13
|
accent: "#0075FF",
|
|
14
14
|
inverse: "#FFFFFF"
|
|
15
15
|
},
|
|
16
|
+
divider: {
|
|
17
|
+
"default": "#E1E1E1"
|
|
18
|
+
},
|
|
16
19
|
blue: {
|
|
17
20
|
strong: "#0075FF"},
|
|
18
21
|
darkblue: {
|
|
19
22
|
strong: "#006AC1"},
|
|
20
23
|
grey: {
|
|
21
24
|
strong: "#737373"}};
|
|
25
|
+
const shadow = {
|
|
26
|
+
spread: {
|
|
27
|
+
md: {
|
|
28
|
+
x: "0",
|
|
29
|
+
y: "0",
|
|
30
|
+
blur: "24",
|
|
31
|
+
spread: "0",
|
|
32
|
+
color: "rgba(34,34,34,0.2)"}
|
|
33
|
+
}};
|
|
22
34
|
var systemTokens = {
|
|
23
|
-
color: color
|
|
35
|
+
color: color,
|
|
36
|
+
shadow: shadow
|
|
37
|
+
};
|
|
24
38
|
|
|
25
39
|
exports.systemTokens = systemTokens;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BGwB03Tk.js');
|
|
4
4
|
|
|
5
5
|
const TooltipArrow = (props) => (index.h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, index.h("path", { d: "M8.83205 10.7519C8.43623 11.3457 7.56377 11.3457 7.16795 10.7519L1.04907e-06 -1.39876e-06L16 0L8.83205 10.7519Z", fill: "currentColor" })));
|
|
6
6
|
|
|
@@ -16,17 +16,19 @@
|
|
|
16
16
|
"components/sd-badge/sd-badge.js",
|
|
17
17
|
"components/sd-barcode-input/sd-barcode-input.js",
|
|
18
18
|
"components/sd-calendar/sd-calendar.js",
|
|
19
|
+
"components/sd-callout/sd-callout.js",
|
|
20
|
+
"components/sd-icon/sd-icon.js",
|
|
19
21
|
"components/sd-card/sd-card.js",
|
|
20
22
|
"components/sd-chip/sd-chip.js",
|
|
21
23
|
"components/sd-circle-progress/sd-circle-progress.js",
|
|
22
24
|
"components/sd-confirm-modal/sd-confirm-modal.js",
|
|
23
|
-
"components/sd-icon/sd-icon.js",
|
|
24
25
|
"components/sd-tag/sd-tag.js",
|
|
25
26
|
"components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js",
|
|
26
27
|
"components/sd-date-picker/sd-date-picker.js",
|
|
27
28
|
"components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js",
|
|
28
29
|
"components/sd-portal/sd-portal.js",
|
|
29
30
|
"components/sd-field/sd-field.js",
|
|
31
|
+
"components/sd-divider/sd-divider.js",
|
|
30
32
|
"components/sd-dropdown-button/sd-dropdown-button.js",
|
|
31
33
|
"components/sd-file-picker/sd-file-picker.js",
|
|
32
34
|
"components/sd-floating-portal/sd-floating-portal.js",
|
|
@@ -10,9 +10,11 @@ sd-calendar .sd-calendar {
|
|
|
10
10
|
padding: var(--calendar-padding);
|
|
11
11
|
background: var(--calendar-bg);
|
|
12
12
|
border-radius: var(--calendar-radius);
|
|
13
|
-
box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.2);
|
|
14
13
|
user-select: none;
|
|
15
14
|
}
|
|
15
|
+
sd-calendar .sd-calendar--elevated {
|
|
16
|
+
box-shadow: 2px 2px 12px 2px rgba(0, 0, 0, 0.2);
|
|
17
|
+
}
|
|
16
18
|
sd-calendar .sd-calendar__header {
|
|
17
19
|
display: flex;
|
|
18
20
|
align-items: center;
|
|
@@ -6,6 +6,7 @@ export class SdCalendar {
|
|
|
6
6
|
value = null;
|
|
7
7
|
selectable;
|
|
8
8
|
events;
|
|
9
|
+
elevated = false;
|
|
9
10
|
currentYear;
|
|
10
11
|
currentMonth;
|
|
11
12
|
update;
|
|
@@ -172,7 +173,7 @@ export class SdCalendar {
|
|
|
172
173
|
const eventMap = this.eventMap;
|
|
173
174
|
const legend = this.legendItems;
|
|
174
175
|
const hasEvents = (this.events?.length ?? 0) > 0;
|
|
175
|
-
return (h("div", { key: '
|
|
176
|
+
return (h("div", { key: '0ed0317b3cecffea4015de8688888e0ab2a38586', class: { 'sd-calendar': true, 'sd-calendar--elevated': this.elevated }, style: cssVars }, h("div", { key: 'b915f275a31617711d06d98c8a4d9369ddd36af5', class: "sd-calendar__header" }, h("div", { key: 'cd3b625e4e26af4b11f6af8b22c02099e8ab68a5', class: "sd-calendar__nav-group" }, h("sd-ghost-button", { key: 'e0ebfed48a7fdb61fd082371e7247176c02a8fb1', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: '6bfebc94dce54ca472ad5b3e03a7630e32676c3f', class: "sd-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: '2e42ad52cd7d1b5d3502d578347c997910f3efc3', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: '95be4ab5e03d7378e82006221f190ffd55659cf1', class: "sd-calendar__divider", "aria-hidden": "true" }), h("div", { key: 'edce7cf91a873cdaeed68e50372bdfa20af7507d', class: "sd-calendar__nav-group sd-calendar__nav-group-month" }, h("sd-ghost-button", { key: '9ba274e9db32177d30d8c218303384855b7a3f60', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: 'bc113063e769fe12c2a39732cd82060752b7d9eb', class: "sd-calendar__label sd-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: '52cfde203e06334c5eee85abc9d82d6889bf511c', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '9ae80aee03a4e6392a1d9a4ef28e565db20faea3', class: "sd-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-calendar__week-cell" }, label)))), h("div", { key: '7c47907311ea24f1af030931b8efd11955e55436', class: "sd-calendar__grid" }, this.cells.map(cell => {
|
|
176
177
|
const isSelected = cell.inCurrentMonth && this.value !== '' && this.value === cell.date;
|
|
177
178
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
178
179
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -185,8 +186,8 @@ export class SdCalendar {
|
|
|
185
186
|
'sd-calendar__day--disabled': isDisabled,
|
|
186
187
|
}, disabled: !cell.inCurrentMonth || isDisabled, tabindex: !cell.inCurrentMonth ? -1 : undefined, "aria-hidden": !cell.inCurrentMonth ? 'true' : undefined, onClick: () => cell.inCurrentMonth && this.handleDayClick(cell) }, h("span", { class: "sd-calendar__day-circle" }, cell.inCurrentMonth ? cell.day : ''), hasEvents && (h("span", { class: "sd-calendar__dot-row", "aria-hidden": "true" }, dayEvents?.map((ev, i) => (h("span", { key: `${ev.color}|${ev.label}|${i}`, class: "sd-calendar__dot", style: { backgroundColor: ev.color } })))))));
|
|
187
188
|
})), legend.length > 0 && [
|
|
188
|
-
h("span", { key: '
|
|
189
|
-
h("div", { key: '
|
|
189
|
+
h("span", { key: '4ba064cad3188db8342f51ca017e4bf5af8aa460', class: "sd-calendar__divider-bottom", "aria-hidden": "true" }),
|
|
190
|
+
h("div", { key: 'ac132a1f1f948e618ee75d4c01a1c99a0dfc2c0a', class: "sd-calendar__legend" }, legend.map(item => (h("span", { key: `${item.color}|${item.label}`, class: "sd-calendar__legend-item" }, h("span", { class: "sd-calendar__legend-dot", style: { backgroundColor: item.color }, "aria-hidden": "true" }), h("span", { class: "sd-calendar__legend-label" }, item.label))))),
|
|
190
191
|
]));
|
|
191
192
|
}
|
|
192
193
|
static get is() { return "sd-calendar"; }
|
|
@@ -262,6 +263,26 @@ export class SdCalendar {
|
|
|
262
263
|
},
|
|
263
264
|
"getter": false,
|
|
264
265
|
"setter": false
|
|
266
|
+
},
|
|
267
|
+
"elevated": {
|
|
268
|
+
"type": "boolean",
|
|
269
|
+
"mutable": false,
|
|
270
|
+
"complexType": {
|
|
271
|
+
"original": "boolean",
|
|
272
|
+
"resolved": "boolean",
|
|
273
|
+
"references": {}
|
|
274
|
+
},
|
|
275
|
+
"required": false,
|
|
276
|
+
"optional": false,
|
|
277
|
+
"docs": {
|
|
278
|
+
"tags": [],
|
|
279
|
+
"text": ""
|
|
280
|
+
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
283
|
+
"reflect": false,
|
|
284
|
+
"attribute": "elevated",
|
|
285
|
+
"defaultValue": "false"
|
|
265
286
|
}
|
|
266
287
|
};
|
|
267
288
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import calloutTokens from "../../tokens/generated/component.callout.json";
|
|
2
|
+
const { callout } = calloutTokens;
|
|
3
|
+
export const CALLOUT_LAYOUT = {
|
|
4
|
+
radius: `${callout.radius}px`,
|
|
5
|
+
borderWidth: `${callout.border.width}px`,
|
|
6
|
+
bodyPaddingX: `${callout.body.paddingX}px`,
|
|
7
|
+
bodyPaddingY: `${callout.body.paddingY}px`,
|
|
8
|
+
bodyGap: `${callout.body.gap}px`,
|
|
9
|
+
titlePaddingX: `${callout.danger.title.paddingX}px`,
|
|
10
|
+
titleGap: `${callout.danger.title.gap}px`,
|
|
11
|
+
titleIconSize: Number(callout.danger.title.icon),
|
|
12
|
+
};
|
|
13
|
+
export const CALLOUT_TYPOGRAPHY = {
|
|
14
|
+
body: {
|
|
15
|
+
fontFamily: callout.body.typography.fontFamily,
|
|
16
|
+
fontSize: `${callout.body.typography.fontSize}px`,
|
|
17
|
+
fontWeight: callout.body.typography.fontWeight,
|
|
18
|
+
lineHeight: `${callout.body.typography.lineHeight}px`,
|
|
19
|
+
},
|
|
20
|
+
title: {
|
|
21
|
+
fontFamily: callout.danger.title.typography.fontFamily,
|
|
22
|
+
fontSize: `${callout.danger.title.typography.fontSize}px`,
|
|
23
|
+
fontWeight: callout.danger.title.typography.fontWeight,
|
|
24
|
+
lineHeight: `${callout.danger.title.typography.lineHeight}px`,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
export const CALLOUT_TYPE_CONFIG = {
|
|
28
|
+
default: {
|
|
29
|
+
bg: callout.default.bg,
|
|
30
|
+
border: callout.default.border,
|
|
31
|
+
content: callout.default.content,
|
|
32
|
+
},
|
|
33
|
+
danger: {
|
|
34
|
+
bg: callout.danger.bg,
|
|
35
|
+
border: callout.danger.border,
|
|
36
|
+
content: callout.danger.content,
|
|
37
|
+
titleBg: callout.danger.title.bg,
|
|
38
|
+
titleColor: callout.danger.title.color,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
export const DANGER_TITLE_LABEL = '주의사항';
|
|
42
|
+
export const TYPE_ICON = {
|
|
43
|
+
default: undefined,
|
|
44
|
+
danger: 'warningFill',
|
|
45
|
+
};
|