@sellmate/design-system 1.0.76 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-Dptupbm0.js → index--F2wGuAi.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
- package/dist/cjs/sd-badge.cjs.entry.js +2 -2
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
- package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-button_4.cjs.entry.js +10 -13
- package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-card.cjs.entry.js +2 -2
- package/dist/cjs/sd-checkbox.cjs.entry.js +7 -4
- package/dist/cjs/sd-chip.cjs.entry.js +2 -2
- package/dist/cjs/sd-circle-progress.cjs.entry.js +4 -4
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker-calendar.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-picker.cjs.entry.js +4 -4
- package/dist/cjs/{sd-date-picker.config-B705zdZd.js → sd-date-picker.config-CRgCT5dn.js} +4 -2
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +96 -9
- package/dist/cjs/sd-file-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-guide.cjs.entry.js +3 -3
- package/dist/cjs/{sd-input_2.cjs.entry.js → sd-input.cjs.entry.js} +3 -43
- package/dist/cjs/sd-linear-progress.cjs.entry.js +4 -4
- 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-number-input.cjs.entry.js +4 -4
- package/dist/cjs/sd-pagination_5.cjs.entry.js +77 -33
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- 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-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/{sd-select-v2-list-item_4.cjs.entry.js → sd-select-list-item_4.cjs.entry.js} +50 -50
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +91 -16
- package/dist/cjs/sd-table.config-Cb0Ot3C6.js +105 -0
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.cjs.entry.js +3 -3
- package/dist/cjs/sd-td.cjs.entry.js +37 -6
- package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
- package/dist/cjs/sd-textarea.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-toast.cjs.entry.js +4 -5
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{system-BbCUNhDJ.js → system-DpTN1vBC.js} +8 -2
- package/dist/cjs/{tooltipArrow-DuANjCfc.js → tooltipArrow-D1-wcNm1.js} +1 -1
- package/dist/collection/collection-manifest.json +11 -21
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
- package/dist/collection/components/sd-button-v2/sd-button-v2.js +2 -2
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +6 -3
- package/dist/collection/components/sd-chip/sd-chip.js +1 -1
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.config.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 +2 -2
- 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.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-dropdown-button/sd-dropdown-button.config.js +2 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
- package/dist/collection/components/sd-field/sd-field.js +5 -8
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +1 -1
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.config.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.config.js +1 -1
- 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-number-input/sd-number-input.js +3 -3
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/{sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.css → sd-select/sd-select-list-item/sd-select-list-item.css} +13 -13
- package/dist/collection/components/{sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js → sd-select/sd-select-list-item/sd-select-list-item.js} +28 -28
- package/dist/collection/components/{sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.css → sd-select/sd-select-list-item-search/sd-select-list-item-search.css} +11 -11
- package/dist/collection/components/{sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js → sd-select/sd-select-list-item-search/sd-select-list-item-search.js} +13 -13
- package/dist/collection/components/{sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css → sd-select/sd-select-listbox/sd-select-listbox.css} +3 -3
- package/dist/collection/components/{sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js → sd-select/sd-select-listbox/sd-select-listbox.js} +35 -35
- package/dist/collection/components/{sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.css → sd-select/sd-select-trigger/sd-select-trigger.css} +7 -7
- package/dist/collection/components/{sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js → sd-select/sd-select-trigger/sd-select-trigger.js} +12 -12
- package/dist/collection/components/sd-select/sd-select.css +3 -47
- package/dist/collection/components/sd-select/sd-select.js +413 -294
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.config.js +80 -0
- package/dist/collection/components/sd-table/sd-table.css +16 -8
- package/dist/collection/components/sd-table/sd-table.js +88 -14
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +0 -8
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +3 -4
- package/dist/collection/components/sd-table/sd-td/sd-td.js +55 -5
- package/dist/collection/components/sd-table/sd-thead/sd-thead.css +16 -12
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +52 -8
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +3 -3
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +27 -2
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +2 -2
- package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
- 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/testing/index.js +2 -0
- package/dist/collection/utils/testing/mocks.js +35 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-D5HLYqT-.js → p-B8jXOXtJ.js} +1 -1
- package/dist/components/p-BE6TxbtX.js +1 -0
- package/dist/components/{p-BBD_1E3n.js → p-BJsHakU2.js} +1 -1
- package/dist/components/{p-CgMyz4NQ.js → p-BStczlLa.js} +1 -1
- package/dist/components/{p-BM0sVq5Z.js → p-BcMNA89i.js} +1 -1
- package/dist/components/{p-6PsyRF61.js → p-BheX6lAy.js} +1 -1
- package/dist/components/p-BmYM7-4v.js +1 -0
- package/dist/components/{p-CUg9NH6y.js → p-BppjYHF6.js} +1 -1
- package/dist/components/{p-BLwIhCdO.js → p-Bvq0Vpln.js} +1 -1
- package/dist/components/{p-C7h8lwnU.js → p-BwWDMpJc.js} +1 -1
- package/dist/components/p-C5qZtNLl.js +1 -0
- package/dist/components/p-C7DajKYn.js +1 -0
- package/dist/components/p-CZ4ltUOw.js +1 -0
- package/dist/components/{p-d4UB2UF7.js → p-CeVMl_M9.js} +1 -1
- package/dist/components/p-D1DpOp6M.js +1 -0
- package/dist/components/p-D3gjBBCU.js +1 -0
- package/dist/components/{p-DQfNwvwx.js → p-DC-6inj0.js} +1 -1
- package/dist/components/p-DRF0He-x.js +1 -0
- package/dist/components/{p-B3xZdEDI.js → p-Dcc2Vm6z.js} +1 -1
- package/dist/components/p-DegvQLTF.js +1 -0
- package/dist/components/{p-Csfj4h1A.js → p-Dey-lS6x.js} +1 -1
- package/dist/components/p-DfH_fO01.js +1 -0
- package/dist/components/{p-DdJyzIYe.js → p-DkJqVXpD.js} +1 -1
- package/dist/components/{p-CZPR_5mk.js → p-DngV3MT1.js} +1 -1
- package/dist/components/{p-DaAhgdib.js → p-EbjZr2OA.js} +1 -1
- package/dist/components/p-LwWOleLJ.js +1 -0
- package/dist/components/p-Nvx13YlG.js +1 -0
- package/dist/components/{p-BXdEjuI_.js → p-TwGlKfsC.js} +1 -1
- package/dist/components/{p-6LtMeKKA.js → p-ZMpCZhXP.js} +1 -1
- package/dist/components/{p-BZm6KN1s.js → p-dNJIFthT.js} +1 -1
- package/dist/components/{p-iAWNMLXh.js → p-q0VWISKA.js} +1 -1
- package/dist/components/{p-BQvugXhH.js → p-xnLvZ-xn.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-v2.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-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-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.d.ts +11 -0
- package/dist/components/sd-select-list-item-search.js +1 -0
- package/dist/components/{sd-select-multiple.d.ts → sd-select-list-item.d.ts} +4 -4
- package/dist/components/sd-select-list-item.js +1 -0
- package/dist/components/{sd-select-option.d.ts → sd-select-listbox.d.ts} +4 -4
- package/dist/components/sd-select-listbox.js +1 -0
- package/dist/components/{sd-select-group.d.ts → sd-select-trigger.d.ts} +4 -4
- package/dist/components/sd-select-trigger.js +1 -0
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.css +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-6a3f8588.entry.js → p-0356c195.entry.js} +1 -1
- package/dist/design-system/{p-3a9559ee.entry.js → p-045bc426.entry.js} +1 -1
- package/dist/design-system/{p-c7bcb232.entry.js → p-12dfd239.entry.js} +1 -1
- package/dist/design-system/p-16d3a485.entry.js +1 -0
- package/dist/design-system/p-1706ed6f.entry.js +1 -0
- package/dist/design-system/{p-506f2b68.entry.js → p-182548f7.entry.js} +1 -1
- package/dist/design-system/p-1a79edce.entry.js +1 -0
- package/dist/design-system/{p-17cd3a33.entry.js → p-1cf87e87.entry.js} +1 -1
- package/dist/design-system/{p-dad07e1a.entry.js → p-25a08e98.entry.js} +1 -1
- package/dist/design-system/{p-b683f2fe.entry.js → p-2812b9ce.entry.js} +1 -1
- package/dist/design-system/{p-49f78122.entry.js → p-33bc3176.entry.js} +1 -1
- package/dist/design-system/p-38f661ea.entry.js +1 -0
- package/dist/design-system/{p-280dc548.entry.js → p-3f7bc660.entry.js} +1 -1
- package/dist/design-system/{p-eb29dc9f.entry.js → p-429dab5c.entry.js} +1 -1
- package/dist/design-system/p-455dccf5.entry.js +1 -0
- package/dist/design-system/{p-97ebf578.entry.js → p-59313838.entry.js} +1 -1
- package/dist/design-system/{p-5f6379e9.entry.js → p-6af01ab0.entry.js} +1 -1
- package/dist/design-system/{p-531a6a82.entry.js → p-6bfe3612.entry.js} +1 -1
- package/dist/design-system/{p-7fe3a466.entry.js → p-70d4903f.entry.js} +1 -1
- package/dist/design-system/p-767e99f9.entry.js +1 -0
- package/dist/design-system/{p-34f7345b.entry.js → p-797517b5.entry.js} +1 -1
- package/dist/design-system/p-7c370335.entry.js +1 -0
- package/dist/design-system/{p-a8bde8d9.entry.js → p-7fe8be6a.entry.js} +1 -1
- package/dist/design-system/{p-6af9e663.entry.js → p-83b262dc.entry.js} +1 -1
- package/dist/design-system/{p-11029f6e.entry.js → p-881adaa5.entry.js} +1 -1
- package/dist/design-system/{p-3ca5c303.entry.js → p-88d7303c.entry.js} +1 -1
- package/dist/design-system/{p-fdb52620.entry.js → p-8a601e0f.entry.js} +1 -1
- package/dist/design-system/p-C5qZtNLl.js +1 -0
- package/dist/design-system/p-CZ4ltUOw.js +1 -0
- package/dist/design-system/p-Cnwbjz1F.js +2 -0
- package/dist/design-system/p-DnCBBIoq.js +1 -0
- package/dist/design-system/{p-b745cd95.entry.js → p-a82be987.entry.js} +1 -1
- package/dist/design-system/p-b917c82a.entry.js +1 -0
- package/dist/design-system/{p-c9eb70f5.entry.js → p-b9f00eef.entry.js} +1 -1
- package/dist/design-system/{p-55b65a41.entry.js → p-bcb53788.entry.js} +1 -1
- package/dist/design-system/p-c24344ac.entry.js +1 -0
- package/dist/design-system/{p-2cd2f2dd.entry.js → p-d76192bd.entry.js} +1 -1
- package/dist/design-system/p-d9d8c51b.entry.js +1 -0
- package/dist/design-system/p-de67937d.entry.js +1 -0
- package/dist/design-system/{p-68d0d67e.entry.js → p-e5cebccd.entry.js} +1 -1
- package/dist/design-system/{p-a9fc2c21.entry.js → p-ea5e6c2c.entry.js} +1 -1
- package/dist/design-system/p-ead3e688.entry.js +1 -0
- package/dist/design-system/{p-f4a00276.entry.js → p-eeb1cac2.entry.js} +1 -1
- package/dist/design-system/{p-d6896893.entry.js → p-f1a74359.entry.js} +1 -1
- package/dist/design-system/{p-9466cd93.entry.js → p-f44786a9.entry.js} +1 -1
- package/dist/design-system/p-f522c91d.entry.js +1 -0
- package/dist/design-system/{p-bb492ba7.entry.js → p-f69c7539.entry.js} +1 -1
- package/dist/design-system/{p-ce3d0f9c.entry.js → p-fe9cef6a.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-Bp7ytJz5.js → index-Cnwbjz1F.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +2 -2
- package/dist/esm/sd-badge.entry.js +2 -2
- package/dist/esm/sd-barcode-input.entry.js +2 -2
- package/dist/esm/sd-button-v2_2.entry.js +3 -3
- package/dist/esm/sd-button_4.entry.js +10 -13
- package/dist/esm/sd-calendar.entry.js +1 -1
- package/dist/esm/sd-card.entry.js +2 -2
- package/dist/esm/sd-checkbox.entry.js +7 -4
- package/dist/esm/sd-chip.entry.js +2 -2
- package/dist/esm/sd-circle-progress.entry.js +4 -4
- package/dist/esm/sd-confirm-modal_2.entry.js +4 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker-calendar.entry.js +3 -3
- package/dist/esm/sd-date-picker-trigger.entry.js +4 -4
- package/dist/esm/{sd-date-picker.config-DMbVR8K4.js → sd-date-picker.config-C2fDbE9d.js} +4 -2
- package/dist/esm/sd-date-picker.entry.js +4 -4
- package/dist/esm/sd-date-range-picker-calendar.entry.js +3 -3
- package/dist/esm/sd-date-range-picker.entry.js +2 -2
- package/dist/esm/sd-dropdown-button.entry.js +95 -8
- package/dist/esm/sd-file-picker.entry.js +2 -2
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +3 -3
- package/dist/esm/sd-guide.entry.js +3 -3
- package/dist/esm/{sd-input_2.entry.js → sd-input.entry.js} +4 -43
- package/dist/esm/sd-linear-progress.entry.js +4 -4
- package/dist/esm/sd-loading-container.entry.js +3 -3
- package/dist/esm/sd-modal-container.entry.js +1 -1
- package/dist/esm/sd-number-input.entry.js +4 -4
- package/dist/esm/sd-pagination_5.entry.js +77 -33
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-portal.entry.js +2 -2
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio-group.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/{sd-select-v2-list-item_4.entry.js → sd-select-list-item_4.entry.js} +47 -47
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-table.config-Bj-EEo7N.js +94 -0
- package/dist/esm/sd-table.entry.js +91 -16
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js +3 -3
- package/dist/esm/sd-td.entry.js +37 -6
- package/dist/esm/sd-text-link.entry.js +4 -4
- package/dist/esm/sd-textarea.entry.js +2 -2
- package/dist/esm/sd-toast-container.entry.js +2 -2
- package/dist/esm/sd-toast.entry.js +4 -5
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{system-BgFLSKqC.js → system-CZ4ltUOw.js} +8 -2
- package/dist/esm/{tooltipArrow-BHRQVawd.js → tooltipArrow-D8sr81Xw.js} +1 -1
- package/dist/types/components/{sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.d.ts → sd-select/sd-select-list-item/sd-select-list-item.d.ts} +4 -4
- package/dist/types/components/{sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.d.ts → sd-select/sd-select-list-item-search/sd-select-list-item-search.d.ts} +1 -1
- package/dist/types/components/{sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.d.ts → sd-select/sd-select-listbox/sd-select-listbox.d.ts} +6 -6
- package/dist/types/components/{sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.d.ts → sd-select/sd-select-trigger/sd-select-trigger.d.ts} +1 -1
- package/dist/types/components/{sd-select-v2/sd-select-v2.config.d.ts → sd-select/sd-select.config.d.ts} +12 -12
- package/dist/types/components/sd-select/sd-select.d.ts +56 -84
- package/dist/types/components/sd-table/constants.d.ts +4 -1
- package/dist/types/components/sd-table/sd-table.config.d.ts +64 -0
- package/dist/types/components/sd-table/sd-table.d.ts +8 -0
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +5 -2
- package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +5 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +1 -0
- package/dist/types/components.d.ts +943 -2382
- package/dist/types/utils/testing/index.d.ts +2 -0
- package/dist/types/utils/testing/mocks.d.ts +4 -0
- package/hydrate/index.js +533 -2214
- package/hydrate/index.mjs +533 -2214
- package/package.json +1 -1
- package/dist/cjs/base-dropdown-event-BTPlZ1KF.js +0 -91
- package/dist/cjs/sd-progress.cjs.entry.js +0 -63
- package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +0 -231
- package/dist/cjs/sd-select-group.cjs.entry.js +0 -332
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +0 -458
- package/dist/cjs/sd-select-multiple.cjs.entry.js +0 -191
- package/dist/cjs/sd-select-option-group.cjs.entry.js +0 -68
- package/dist/cjs/sd-select.cjs.entry.js +0 -181
- package/dist/cjs/select-keyboard-navigation-CErfIrGV.js +0 -27
- package/dist/cjs/table-test.cjs.entry.js +0 -96
- package/dist/collection/components/sd-progress/sd-progress.css +0 -63
- package/dist/collection/components/sd-progress/sd-progress.js +0 -186
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.css +0 -30
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +0 -444
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.css +0 -36
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +0 -257
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.css +0 -23
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +0 -161
- package/dist/collection/components/sd-select-group/sd-select-group.css +0 -81
- package/dist/collection/components/sd-select-group/sd-select-group.js +0 -1061
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.css +0 -54
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +0 -770
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.css +0 -79
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +0 -1183
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.css +0 -75
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +0 -305
- package/dist/collection/components/sd-select-v2/sd-select-v2.css +0 -11
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +0 -897
- package/dist/collection/components/table-test/table-test.css +0 -59
- package/dist/collection/components/table-test/table-test.js +0 -316
- package/dist/components/p-6AvsuYqF.js +0 -1
- package/dist/components/p-7DKZPPev.js +0 -1
- package/dist/components/p-9ZtJl4s6.js +0 -1
- package/dist/components/p-BRfPoWUn.js +0 -1
- package/dist/components/p-BZc6lwGD.js +0 -1
- package/dist/components/p-BgFLSKqC.js +0 -1
- package/dist/components/p-Btx5sC7s.js +0 -1
- package/dist/components/p-C-BOe23n.js +0 -1
- package/dist/components/p-CNAzAL53.js +0 -1
- package/dist/components/p-CqghR1aS.js +0 -1
- package/dist/components/p-Cy6HMEsK.js +0 -1
- package/dist/components/p-DAC3TaZV.js +0 -1
- package/dist/components/p-DBex-RJU.js +0 -1
- package/dist/components/p-DWMY9O2B.js +0 -1
- package/dist/components/p-DfOYYI9m.js +0 -1
- package/dist/components/p-eEC3ITv0.js +0 -1
- package/dist/components/p-nVHDJc9g.js +0 -1
- package/dist/components/p-rnbt1m4L.js +0 -1
- package/dist/components/sd-progress.d.ts +0 -11
- package/dist/components/sd-progress.js +0 -1
- package/dist/components/sd-select-dropdown.d.ts +0 -11
- package/dist/components/sd-select-dropdown.js +0 -1
- package/dist/components/sd-select-group.js +0 -1
- package/dist/components/sd-select-multiple-group.d.ts +0 -11
- package/dist/components/sd-select-multiple-group.js +0 -1
- package/dist/components/sd-select-multiple.js +0 -1
- package/dist/components/sd-select-option-group.d.ts +0 -11
- package/dist/components/sd-select-option-group.js +0 -1
- package/dist/components/sd-select-option.js +0 -1
- package/dist/components/sd-select-search-input.d.ts +0 -11
- package/dist/components/sd-select-search-input.js +0 -1
- package/dist/components/sd-select-v2-list-item-search.d.ts +0 -11
- package/dist/components/sd-select-v2-list-item-search.js +0 -1
- package/dist/components/sd-select-v2-list-item.d.ts +0 -11
- package/dist/components/sd-select-v2-list-item.js +0 -1
- package/dist/components/sd-select-v2-listbox.d.ts +0 -11
- package/dist/components/sd-select-v2-listbox.js +0 -1
- package/dist/components/sd-select-v2-trigger.d.ts +0 -11
- package/dist/components/sd-select-v2-trigger.js +0 -1
- package/dist/components/sd-select-v2.d.ts +0 -11
- package/dist/components/sd-select-v2.js +0 -1
- package/dist/components/table-test.d.ts +0 -11
- package/dist/components/table-test.js +0 -1
- package/dist/design-system/p-00612047.entry.js +0 -1
- package/dist/design-system/p-07adda3c.entry.js +0 -1
- package/dist/design-system/p-0e1b27cc.entry.js +0 -1
- package/dist/design-system/p-140b40ab.entry.js +0 -1
- package/dist/design-system/p-1573f415.entry.js +0 -1
- package/dist/design-system/p-1b9f6cef.entry.js +0 -1
- package/dist/design-system/p-1cc7d81f.entry.js +0 -1
- package/dist/design-system/p-1fa6c17f.entry.js +0 -1
- package/dist/design-system/p-2eb910ec.entry.js +0 -1
- package/dist/design-system/p-363c9451.entry.js +0 -1
- package/dist/design-system/p-4114eea3.entry.js +0 -1
- package/dist/design-system/p-5e300b77.entry.js +0 -1
- package/dist/design-system/p-711c59fc.entry.js +0 -1
- package/dist/design-system/p-850de8d4.entry.js +0 -1
- package/dist/design-system/p-8ff967f7.entry.js +0 -1
- package/dist/design-system/p-9fee77f0.entry.js +0 -1
- package/dist/design-system/p-BPGLtKk5.js +0 -1
- package/dist/design-system/p-BgFLSKqC.js +0 -1
- package/dist/design-system/p-Bp7ytJz5.js +0 -2
- package/dist/design-system/p-CRdYeSBK.js +0 -1
- package/dist/design-system/p-Cy6HMEsK.js +0 -1
- package/dist/design-system/p-c521e731.entry.js +0 -1
- package/dist/design-system/p-ce2210ad.entry.js +0 -1
- package/dist/design-system/p-d1846df9.entry.js +0 -1
- package/dist/design-system/p-d52f25c6.entry.js +0 -1
- package/dist/design-system/p-dbcbbf1e.entry.js +0 -1
- package/dist/esm/base-dropdown-event-CRdYeSBK.js +0 -89
- package/dist/esm/sd-progress.entry.js +0 -61
- package/dist/esm/sd-select-dropdown_2.entry.js +0 -228
- package/dist/esm/sd-select-group.entry.js +0 -330
- package/dist/esm/sd-select-multiple-group.entry.js +0 -456
- package/dist/esm/sd-select-multiple.entry.js +0 -189
- package/dist/esm/sd-select-option-group.entry.js +0 -66
- package/dist/esm/sd-select.entry.js +0 -179
- package/dist/esm/select-keyboard-navigation-Cy6HMEsK.js +0 -25
- package/dist/esm/table-test.entry.js +0 -94
- package/dist/types/components/sd-progress/sd-progress.d.ts +0 -15
- package/dist/types/components/sd-select/sd-select-dropdown/sd-select-dropdown.d.ts +0 -41
- package/dist/types/components/sd-select/sd-select-option/sd-select-option.d.ts +0 -23
- package/dist/types/components/sd-select/sd-select-search-input/sd-select-search-input.d.ts +0 -11
- package/dist/types/components/sd-select-group/sd-select-group.d.ts +0 -86
- package/dist/types/components/sd-select-multiple/sd-select-multiple.d.ts +0 -64
- package/dist/types/components/sd-select-multiple-group/sd-select-multiple-group.d.ts +0 -110
- package/dist/types/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.d.ts +0 -29
- package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +0 -75
- package/dist/types/components/table-test/table-test.d.ts +0 -46
- /package/dist/collection/components/{sd-select-v2/sd-select-v2.config.js → sd-select/sd-select.config.js} +0 -0
- /package/dist/components/{p-DMbVR8K4.js → p-C2fDbE9d.js} +0 -0
- /package/dist/design-system/{p-DMbVR8K4.js → p-C2fDbE9d.js} +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { s as systemTokens } from './system-CZ4ltUOw.js';
|
|
2
|
+
|
|
3
|
+
const table = {
|
|
4
|
+
header: {
|
|
5
|
+
height: "36",
|
|
6
|
+
paddingX: "16",
|
|
7
|
+
gap: "4",
|
|
8
|
+
bg: "#F5FAFF",
|
|
9
|
+
typography: {
|
|
10
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
11
|
+
fontWeight: "500",
|
|
12
|
+
fontSize: "12",
|
|
13
|
+
lineHeight: "20",
|
|
14
|
+
textDecoration: "none"
|
|
15
|
+
},
|
|
16
|
+
resizingBar: {
|
|
17
|
+
color: "#CCCCCC",
|
|
18
|
+
height: "16"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
body: {
|
|
22
|
+
"default": {
|
|
23
|
+
height: "44"},
|
|
24
|
+
paddingX: "16",
|
|
25
|
+
typography: {
|
|
26
|
+
fontFamily: "Pretendard Variable, Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Segoe UI, Apple SD Gothic Neo, Noto Sans KR, Malgun Gothic, Apple Color Emoji, Segoe UI Emoji, sans-serif",
|
|
27
|
+
fontWeight: "400",
|
|
28
|
+
fontSize: "12",
|
|
29
|
+
lineHeight: "20",
|
|
30
|
+
textDecoration: "none"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
border: {
|
|
34
|
+
"default": "#E1E1E1",
|
|
35
|
+
width: {
|
|
36
|
+
width: "1"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
radius: "8"};
|
|
40
|
+
var tableTokens = {
|
|
41
|
+
table: table
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// ── Header Tokens ──
|
|
45
|
+
const TABLE_HEADER_LAYOUT = {
|
|
46
|
+
height: tableTokens.table.header.height,
|
|
47
|
+
paddingX: tableTokens.table.header.paddingX,
|
|
48
|
+
gap: tableTokens.table.header.gap,
|
|
49
|
+
};
|
|
50
|
+
const TABLE_HEADER_TYPOGRAPHY = {
|
|
51
|
+
fontFamily: tableTokens.table.header.typography.fontFamily,
|
|
52
|
+
fontWeight: tableTokens.table.header.typography.fontWeight,
|
|
53
|
+
fontSize: tableTokens.table.header.typography.fontSize,
|
|
54
|
+
lineHeight: tableTokens.table.header.typography.lineHeight,
|
|
55
|
+
textDecoration: tableTokens.table.header.typography.textDecoration,
|
|
56
|
+
};
|
|
57
|
+
const TABLE_HEADER_COLORS = {
|
|
58
|
+
bg: tableTokens.table.header.bg,
|
|
59
|
+
};
|
|
60
|
+
const TABLE_HEADER_RESIZING_BAR = {
|
|
61
|
+
color: tableTokens.table.header.resizingBar.color,
|
|
62
|
+
height: tableTokens.table.header.resizingBar.height,
|
|
63
|
+
};
|
|
64
|
+
// ── Body Tokens ──
|
|
65
|
+
const TABLE_BODY_LAYOUT = {
|
|
66
|
+
default: {
|
|
67
|
+
height: tableTokens.table.body.default.height},
|
|
68
|
+
paddingX: tableTokens.table.body.paddingX};
|
|
69
|
+
const TABLE_BODY_TYPOGRAPHY = {
|
|
70
|
+
fontFamily: tableTokens.table.body.typography.fontFamily,
|
|
71
|
+
fontWeight: tableTokens.table.body.typography.fontWeight,
|
|
72
|
+
fontSize: tableTokens.table.body.typography.fontSize,
|
|
73
|
+
lineHeight: tableTokens.table.body.typography.lineHeight,
|
|
74
|
+
textDecoration: tableTokens.table.body.typography.textDecoration,
|
|
75
|
+
};
|
|
76
|
+
// ── Frame / Border Tokens ──
|
|
77
|
+
const TABLE_BORDER = {
|
|
78
|
+
color: tableTokens.table.border.default,
|
|
79
|
+
width: tableTokens.table.border.width.width,
|
|
80
|
+
};
|
|
81
|
+
const TABLE_RADIUS = tableTokens.table.radius;
|
|
82
|
+
// ── Header Icon Color Defaults ──
|
|
83
|
+
const ICON_DEFAULT_COLOR = {
|
|
84
|
+
pageEdit: systemTokens.color.darkblue.strong,
|
|
85
|
+
arrowDown: systemTokens.color.darkblue.strong,
|
|
86
|
+
arrowUp: systemTokens.color.darkblue.strong,
|
|
87
|
+
updown: systemTokens.color.grey.strong,
|
|
88
|
+
pageMove: systemTokens.color.darkblue.strong,
|
|
89
|
+
star: systemTokens.color.blue.strong,
|
|
90
|
+
};
|
|
91
|
+
const resolveTableIconColor = (name, override) => override ?? ICON_DEFAULT_COLOR[name];
|
|
92
|
+
const resolveSortIconName = (sort) => sort === 'asc' ? 'arrowDown' : sort === 'desc' ? 'arrowUp' : 'updown';
|
|
93
|
+
|
|
94
|
+
export { TABLE_BODY_TYPOGRAPHY as T, TABLE_BORDER as a, TABLE_RADIUS as b, resolveSortIconName as c, TABLE_HEADER_RESIZING_BAR as d, TABLE_HEADER_TYPOGRAPHY as e, TABLE_HEADER_COLORS as f, TABLE_HEADER_LAYOUT as g, TABLE_BODY_LAYOUT as h, resolveTableIconColor as r };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-Cnwbjz1F.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
|
+
import { T as TABLE_BODY_TYPOGRAPHY, a as TABLE_BORDER, b as TABLE_RADIUS } from './sd-table.config-Bj-EEo7N.js';
|
|
4
|
+
import './system-CZ4ltUOw.js';
|
|
3
5
|
|
|
4
6
|
const urlAlphabet =
|
|
5
7
|
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
@@ -14,7 +16,7 @@ let nanoid = (size = 21) => {
|
|
|
14
16
|
return id
|
|
15
17
|
};
|
|
16
18
|
|
|
17
|
-
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__clip{width:100%;min-width:0;height:var(--table-container-height, 400px);border:1px solid #E1E1E1;border-radius:8px;overflow:hidden}.sd-table__clip--has-pagination{border-radius:8px 8px 0 0}.sd-table__wrapper{width:100%;height:100%;display:flex;flex-direction:column;position:relative;font-size:12px;overflow:auto;background:#FFFFFF}.sd-table__wrapper--loading{overflow:hidden !important;pointer-events:none}.sd-table__wrapper--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;color:#888888;pointer-events:none;z-index:200;background:rgba(255, 255, 255, 0.6)}.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:1px solid #E1E1E1;border-top:none;border-radius:0 0 8px 8px}.sd-table__pagination sd-select
|
|
19
|
+
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__clip{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__clip--has-pagination{border-radius:var(--table-radius, 8px) var(--table-radius, 8px) 0 0}.sd-table__wrapper{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__wrapper--loading{overflow:hidden !important;pointer-events:none}.sd-table__wrapper--no-data{overflow:hidden;pointer-events:none}.sd-table__no-data{position:absolute;inset: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 ::slotted(*),.sd-table__no-data span{pointer-events:auto}.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);border-top:none;border-radius:0 0 var(--table-radius, 8px) var(--table-radius, 8px)}.sd-table__pagination sd-select{position:absolute;right:10px;top:50%;transform:translateY(-50%)}`;
|
|
18
20
|
|
|
19
21
|
const SdTable = class {
|
|
20
22
|
constructor(hostRef) {
|
|
@@ -81,6 +83,36 @@ const SdTable = class {
|
|
|
81
83
|
onScroll;
|
|
82
84
|
// 키: `${rowKey}::${field}` → { rowspan, colspan }
|
|
83
85
|
spanRegistry = new Map();
|
|
86
|
+
// 키: `${rowKey}::${field}` → sd-td의 sdClass 문자열
|
|
87
|
+
// sd-tr가 td를 그릴 때 머지해서 셀-단위 커스텀 클래스를 적용한다.
|
|
88
|
+
cellClassRegistry = new Map();
|
|
89
|
+
// rowKey 문자열 → rows 배열에서의 visual index.
|
|
90
|
+
// rowspan 위쪽 행 스캔에서 "내 위에 있느냐"를 판정하기 위한 시각적 순서 소스.
|
|
91
|
+
// rows prop이 있으면 채워지고, 없으면 비어 있어 Number(rowKey) fallback이 사용된다.
|
|
92
|
+
rowIndexMap = new Map();
|
|
93
|
+
rebuildRowIndexMap() {
|
|
94
|
+
this.rowIndexMap.clear();
|
|
95
|
+
if (!Array.isArray(this.rows))
|
|
96
|
+
return;
|
|
97
|
+
const field = this.rowKey;
|
|
98
|
+
this.rows.forEach((r, i) => {
|
|
99
|
+
const k = r?.[field];
|
|
100
|
+
if (k == null)
|
|
101
|
+
return;
|
|
102
|
+
this.rowIndexMap.set(String(k), i);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
// rowKey의 시각적 행 인덱스를 돌려준다.
|
|
106
|
+
// 1) rows 기반 맵에 있으면 그 값 (임의 문자열 rowKey 지원)
|
|
107
|
+
// 2) 없으면 Number(rowKey) fallback (rows prop 없이 슬롯-온리 + 숫자 rowKey 사용 패턴)
|
|
108
|
+
// 3) 둘 다 안 되면 null — rowspan 평가 스킵
|
|
109
|
+
resolveRowIndex(rowKey) {
|
|
110
|
+
const fromMap = this.rowIndexMap.get(rowKey);
|
|
111
|
+
if (fromMap !== undefined)
|
|
112
|
+
return fromMap;
|
|
113
|
+
const n = Number(rowKey);
|
|
114
|
+
return Number.isFinite(n) ? n : null;
|
|
115
|
+
}
|
|
84
116
|
toFiniteNumber(value, fallback) {
|
|
85
117
|
const n = typeof value === 'number' ? value : Number(value);
|
|
86
118
|
return Number.isFinite(n) ? n : fallback;
|
|
@@ -127,10 +159,14 @@ const SdTable = class {
|
|
|
127
159
|
if (!Array.isArray(newRows))
|
|
128
160
|
return;
|
|
129
161
|
this.rowCount = newRows.length;
|
|
162
|
+
this.rebuildRowIndexMap();
|
|
130
163
|
if (this.useVirtualScroll)
|
|
131
164
|
this.propagateVirtualUpdate(true);
|
|
132
165
|
this.pushRowsToChildren(newRows);
|
|
133
166
|
}
|
|
167
|
+
handleRowKeyChange() {
|
|
168
|
+
this.rebuildRowIndexMap();
|
|
169
|
+
}
|
|
134
170
|
handleTableIdChange() {
|
|
135
171
|
this.syncTableIdAttribute();
|
|
136
172
|
}
|
|
@@ -171,6 +207,7 @@ const SdTable = class {
|
|
|
171
207
|
this.detectChildren();
|
|
172
208
|
this.innerSelected = new Set(this.selected || []);
|
|
173
209
|
this.columnWidths = (this.columns || []).map(c => parseInt(c.width || '120', 10));
|
|
210
|
+
this.rebuildRowIndexMap();
|
|
174
211
|
if (this.pagination?.page) {
|
|
175
212
|
this.currentPage = this.pagination.page;
|
|
176
213
|
}
|
|
@@ -196,6 +233,9 @@ const SdTable = class {
|
|
|
196
233
|
el.getSpanSync = this.getSpanSync.bind(this);
|
|
197
234
|
el.isCoveredSync = this.isCoveredSync.bind(this);
|
|
198
235
|
el.hasRowspanSync = this.hasRowspanSync.bind(this);
|
|
236
|
+
el.registerCellClassSync = this.registerCellClassSync.bind(this);
|
|
237
|
+
el.unregisterCellClassSync = this.unregisterCellClassSync.bind(this);
|
|
238
|
+
el.getCellClassSync = this.getCellClassSync.bind(this);
|
|
199
239
|
if (Array.isArray(this.rows)) {
|
|
200
240
|
this.rowCount = this.rows.length;
|
|
201
241
|
this.pushRowsToChildren(this.rows);
|
|
@@ -531,6 +571,28 @@ const SdTable = class {
|
|
|
531
571
|
getSpanSync(rowKey, field) {
|
|
532
572
|
return this.spanRegistry.get(this.spanKey(rowKey, field));
|
|
533
573
|
}
|
|
574
|
+
// sd-td의 sdClass 등록. 빈/공백만 있는 값은 해제로 취급.
|
|
575
|
+
// span과 달리 다른 셀에 영향이 없으므로 형제 sd-tr 전체를 재렌더하지 않고,
|
|
576
|
+
// sd-td 쪽에서 자기 부모 tr만 bumpSpansVersion으로 새로 그린다.
|
|
577
|
+
registerCellClassSync(rowKey, field, cls) {
|
|
578
|
+
if (rowKey == null || !field)
|
|
579
|
+
return;
|
|
580
|
+
const key = this.spanKey(rowKey, field);
|
|
581
|
+
const safe = (cls ?? '').trim();
|
|
582
|
+
if (!safe) {
|
|
583
|
+
this.cellClassRegistry.delete(key);
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
this.cellClassRegistry.set(key, safe);
|
|
587
|
+
}
|
|
588
|
+
unregisterCellClassSync(rowKey, field) {
|
|
589
|
+
if (rowKey == null || !field)
|
|
590
|
+
return;
|
|
591
|
+
this.cellClassRegistry.delete(this.spanKey(rowKey, field));
|
|
592
|
+
}
|
|
593
|
+
getCellClassSync(rowKey, field) {
|
|
594
|
+
return this.cellClassRegistry.get(this.spanKey(rowKey, field));
|
|
595
|
+
}
|
|
534
596
|
// 레지스트리에 rowspan>1 항목이 하나라도 있으면 true.
|
|
535
597
|
// hover 동작을 끌지 결정하는 데 사용 — colspan만 있는 경우는 그대로 hover 유지.
|
|
536
598
|
hasRowspanSync() {
|
|
@@ -556,9 +618,11 @@ const SdTable = class {
|
|
|
556
618
|
if (i + span.colspan > colIdx)
|
|
557
619
|
return true;
|
|
558
620
|
}
|
|
559
|
-
// 2. 위쪽 행 스캔 —
|
|
560
|
-
|
|
561
|
-
|
|
621
|
+
// 2. 위쪽 행 스캔 — rows 기반 visual index로 "내 위에 있느냐" 판정
|
|
622
|
+
// rows prop이 있으면 rowIndexMap로 임의 문자열 rowKey 지원,
|
|
623
|
+
// 없으면 Number(rowKey) fallback (resolveRowIndex가 처리)
|
|
624
|
+
const myRowIdx = this.resolveRowIndex(rowKey);
|
|
625
|
+
if (myRowIdx == null)
|
|
562
626
|
return false;
|
|
563
627
|
for (const [key, span] of this.spanRegistry) {
|
|
564
628
|
if (span.rowspan <= 1)
|
|
@@ -568,8 +632,8 @@ const SdTable = class {
|
|
|
568
632
|
continue;
|
|
569
633
|
const otherRowKey = key.slice(0, sepIdx);
|
|
570
634
|
const otherField = key.slice(sepIdx + 2);
|
|
571
|
-
const otherRowIdx =
|
|
572
|
-
if (
|
|
635
|
+
const otherRowIdx = this.resolveRowIndex(otherRowKey);
|
|
636
|
+
if (otherRowIdx == null)
|
|
573
637
|
continue;
|
|
574
638
|
if (otherRowIdx >= myRowIdx)
|
|
575
639
|
continue;
|
|
@@ -638,12 +702,10 @@ const SdTable = class {
|
|
|
638
702
|
const allRows = this.rows ?? [];
|
|
639
703
|
const pageInfo = this.getPaginationInfoSync();
|
|
640
704
|
const startIdx = pageInfo?.startIndex ?? 0;
|
|
641
|
-
const displayed = pageInfo
|
|
642
|
-
? allRows.slice(pageInfo.startIndex, pageInfo.endIndex)
|
|
643
|
-
: allRows;
|
|
705
|
+
const displayed = pageInfo ? allRows.slice(pageInfo.startIndex, pageInfo.endIndex) : allRows;
|
|
644
706
|
return displayed.map((row, i) => {
|
|
645
707
|
const absoluteIdx = startIdx + i;
|
|
646
|
-
return
|
|
708
|
+
return h("sd-tr", { key: absoluteIdx, "row-key": String(absoluteIdx), row: row });
|
|
647
709
|
});
|
|
648
710
|
}
|
|
649
711
|
get tableClasses() {
|
|
@@ -665,24 +727,34 @@ const SdTable = class {
|
|
|
665
727
|
}
|
|
666
728
|
render() {
|
|
667
729
|
const resolvedTableId = this.getResolvedTableId();
|
|
668
|
-
|
|
730
|
+
const hostStyle = {
|
|
731
|
+
'--table-radius': `${TABLE_RADIUS}px`,
|
|
732
|
+
'--table-border-color': TABLE_BORDER.color,
|
|
733
|
+
'--table-border-width': `${TABLE_BORDER.width}px`,
|
|
734
|
+
'--table-body-font-family': TABLE_BODY_TYPOGRAPHY.fontFamily,
|
|
735
|
+
'--table-body-font-weight': TABLE_BODY_TYPOGRAPHY.fontWeight,
|
|
736
|
+
'--table-body-font-size': `${TABLE_BODY_TYPOGRAPHY.fontSize}px`,
|
|
737
|
+
'--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
738
|
+
'--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
739
|
+
};
|
|
740
|
+
return (h(Host, { key: 'c20a7cc6d5917c9d09c699f2c40ac2b6d07747e1', style: hostStyle }, h("div", { key: '94f76e75da5c6ff9d0ef93b6c2aa3def4ec1766e', class: "sd-table__container", style: {
|
|
669
741
|
'--table-width': this.width,
|
|
670
742
|
'--table-height': this.height,
|
|
671
743
|
'--table-container-height': `calc(${this.height || '100%'} - ${this.pagination && this.rowCount > 0 && !this.useVirtualScroll ? 48 : 0}px)`,
|
|
672
|
-
} }, h("div", { key: '
|
|
744
|
+
} }, h("div", { key: '3b98c828c7dc42de3d4f9bb645279b20d9079ac4', class: {
|
|
673
745
|
'sd-table__clip': true,
|
|
674
746
|
'sd-table__clip--has-pagination': !!(this.pagination &&
|
|
675
747
|
this.pagination.rowsPerPage > 0 &&
|
|
676
748
|
this.rowCount > 0 &&
|
|
677
749
|
!this.useVirtualScroll),
|
|
678
|
-
} }, h("div", { key: '
|
|
750
|
+
} }, h("div", { key: 'b6d04ec953d7b75fb8ad8bc32e2662550d38c5c7', class: {
|
|
679
751
|
'sd-table__wrapper': true,
|
|
680
752
|
'sd-table__wrapper--loading': this.isLoading,
|
|
681
753
|
'sd-table__wrapper--no-data': this.rowCount === 0 && !this.isLoading,
|
|
682
|
-
} }, this.isLoading && (h("div", { key: '
|
|
754
|
+
} }, this.isLoading && (h("div", { key: '3050275c7ecde0aeda3ec881257be4334ebd06fc', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '7a26c4365e4e28a5ebce1c35bb52a302440542f7', indeterminate: true }))), this.rowCount === 0 && !this.isLoading && (h("div", { key: '31442f92321eb4aaf5c36c5995a1c25d8069b6ea', class: "sd-table__no-data" }, h("slot", { key: '42f3208fb1c86d118f50e8b1974bff3ede253032', name: "no-data" }, h("span", { key: 'ce7368c64b3502eee2fae7a28e0508d4d1622c25' }, this.resolvedNoDataLabel)))), h("table", { key: '170203f34b4bb11fce0a064622265d093ccbab2a', 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 &&
|
|
683
755
|
this.pagination.rowsPerPage > 0 &&
|
|
684
756
|
this.rowCount > 0 &&
|
|
685
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
757
|
+
!this.useVirtualScroll && (h("div", { key: 'cfbd5ee8e706c9ef7a2b6a4be8901b7aae47249e', class: "sd-table__pagination" }, h("sd-pagination", { key: '57dad16199d9145fcec0c5ed46beeeac1f08af02', 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: '1314e296ba913600436045b4af54eb0bc1d95d0d', value: this.useInternalPagination
|
|
686
758
|
? this.innerRowsPerPage
|
|
687
759
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
688
760
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -703,6 +775,9 @@ const SdTable = class {
|
|
|
703
775
|
"rows": [{
|
|
704
776
|
"handleRowsChange": 0
|
|
705
777
|
}],
|
|
778
|
+
"rowKey": [{
|
|
779
|
+
"handleRowKeyChange": 0
|
|
780
|
+
}],
|
|
706
781
|
"tableId": [{
|
|
707
782
|
"handleTableIdChange": 0
|
|
708
783
|
}],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-Cnwbjz1F.js';
|
|
2
2
|
|
|
3
3
|
const tab = {
|
|
4
4
|
main: {
|
|
@@ -186,7 +186,7 @@ const SdTabs = class {
|
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
render() {
|
|
189
|
-
return (h("div", { key: '
|
|
189
|
+
return (h("div", { key: 'ff758fbab0a594c28968074a26ad92a28cd4850b', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
190
190
|
const badgeName = this.getBadgeName(tab);
|
|
191
191
|
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() }))));
|
|
192
192
|
})));
|
package/dist/esm/sd-tag.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-Cnwbjz1F.js';
|
|
2
2
|
|
|
3
3
|
const tag = {
|
|
4
4
|
xs: {
|
|
@@ -170,7 +170,7 @@ const SdTag = class {
|
|
|
170
170
|
render() {
|
|
171
171
|
const config = this.resolvedConfig;
|
|
172
172
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
173
|
-
return (h("span", { key: '
|
|
173
|
+
return (h("span", { key: '3e7a6602ee73f56e5709711ac735460230de7e58', class: "sd-tag", style: {
|
|
174
174
|
'--sd-tag-background': config.background,
|
|
175
175
|
'--sd-tag-content': config.content,
|
|
176
176
|
'--sd-tag-height': config.height,
|
|
@@ -180,7 +180,7 @@ const SdTag = class {
|
|
|
180
180
|
'--sd-tag-font-weight': config.fontWeight,
|
|
181
181
|
'--sd-tag-line-height': config.lineHeight,
|
|
182
182
|
'--sd-tag-radius': config.radius,
|
|
183
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '
|
|
183
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '8da56711cb12127f96195404799581480280507f', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
SdTag.style = sdTagCss();
|
package/dist/esm/sd-td.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, f as forceUpdate, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, f as forceUpdate, h, H as Host } from './index-Cnwbjz1F.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
3
|
|
|
4
4
|
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}`;
|
|
@@ -13,20 +13,30 @@ const SdTd = class {
|
|
|
13
13
|
align;
|
|
14
14
|
rowspan;
|
|
15
15
|
colspan;
|
|
16
|
-
|
|
16
|
+
// sd-tr가 그리는 실제 <td>에 머지될 사용자 클래스.
|
|
17
|
+
// <sd-td> 호스트는 display:contents라 호스트의 class는 시각 효과가 없기 때문에,
|
|
18
|
+
// 이 prop을 통해 sd-table 레지스트리에 등록 → sd-tr가 td 렌더 시 합쳐 사용한다.
|
|
19
|
+
sdClass;
|
|
20
|
+
handleFieldChange(_newField, oldField) {
|
|
17
21
|
this.syncSlotName();
|
|
18
22
|
this.syncSpanRegistration();
|
|
23
|
+
this.syncCellClassRegistration(oldField);
|
|
19
24
|
}
|
|
20
|
-
handleRowKeyChange() {
|
|
25
|
+
handleRowKeyChange(_newKey, oldKey) {
|
|
21
26
|
this.syncSlotName();
|
|
22
27
|
this.syncSpanRegistration();
|
|
28
|
+
this.syncCellClassRegistration(undefined, oldKey);
|
|
23
29
|
}
|
|
24
30
|
handleSpanChange() {
|
|
25
31
|
this.syncSpanRegistration();
|
|
26
32
|
}
|
|
33
|
+
handleSdClassChange() {
|
|
34
|
+
this.syncCellClassRegistration();
|
|
35
|
+
}
|
|
27
36
|
componentWillLoad() {
|
|
28
37
|
this.syncSlotName();
|
|
29
38
|
this.syncSpanRegistration();
|
|
39
|
+
this.syncCellClassRegistration();
|
|
30
40
|
// slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
|
|
31
41
|
const parentTr = this.el.parentElement;
|
|
32
42
|
if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
|
|
@@ -36,17 +46,20 @@ const SdTd = class {
|
|
|
36
46
|
componentDidLoad() {
|
|
37
47
|
this.syncSlotName();
|
|
38
48
|
this.syncSpanRegistration();
|
|
49
|
+
this.syncCellClassRegistration();
|
|
39
50
|
}
|
|
40
51
|
// React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
|
|
41
52
|
// 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
|
|
42
53
|
// 재연결 시점에도 등록 상태를 복구해야 rowspan/colspan이 유지된다.
|
|
43
54
|
connectedCallback() {
|
|
44
55
|
this.syncSpanRegistration();
|
|
56
|
+
this.syncCellClassRegistration();
|
|
45
57
|
}
|
|
46
58
|
disconnectedCallback() {
|
|
47
59
|
const table = this.findTable();
|
|
48
|
-
if (table
|
|
49
|
-
table.unregisterSpanSync(String(this.rowKey), this.field);
|
|
60
|
+
if (table && this.field && this.rowKey != null) {
|
|
61
|
+
table.unregisterSpanSync?.(String(this.rowKey), this.field);
|
|
62
|
+
table.unregisterCellClassSync?.(String(this.rowKey), this.field);
|
|
50
63
|
this.requestParentTrUpdate();
|
|
51
64
|
}
|
|
52
65
|
}
|
|
@@ -74,6 +87,21 @@ const SdTd = class {
|
|
|
74
87
|
table.registerSpanSync(String(this.rowKey), this.field, rs, cs);
|
|
75
88
|
this.requestParentTrUpdate();
|
|
76
89
|
}
|
|
90
|
+
// field/rowKey가 바뀌면 이전 키에 등록된 클래스가 남으므로 먼저 해제하고 새 키로 등록한다.
|
|
91
|
+
syncCellClassRegistration(prevField, prevRowKey) {
|
|
92
|
+
const table = this.findTable();
|
|
93
|
+
if (!table)
|
|
94
|
+
return;
|
|
95
|
+
const oldField = prevField ?? this.field;
|
|
96
|
+
const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
|
|
97
|
+
if (oldField && oldRowKey != null) {
|
|
98
|
+
table.unregisterCellClassSync?.(oldRowKey, oldField);
|
|
99
|
+
}
|
|
100
|
+
if (!table.registerCellClassSync || !this.field || this.rowKey == null)
|
|
101
|
+
return;
|
|
102
|
+
table.registerCellClassSync(String(this.rowKey), this.field, this.sdClass);
|
|
103
|
+
this.requestParentTrUpdate();
|
|
104
|
+
}
|
|
77
105
|
syncSlotName() {
|
|
78
106
|
const table = this.el.closest('sd-table');
|
|
79
107
|
const fromMethod = table?.getTableIdSync?.();
|
|
@@ -86,7 +114,7 @@ const SdTd = class {
|
|
|
86
114
|
}
|
|
87
115
|
}
|
|
88
116
|
render() {
|
|
89
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: '84ce2fe2ea8ccb3eaf09e4d2559fc917bdb1077a', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '9b8164a2eac53b927bf59638cb53c35998a75cfe' })));
|
|
90
118
|
}
|
|
91
119
|
static get watchers() { return {
|
|
92
120
|
"field": [{
|
|
@@ -100,6 +128,9 @@ const SdTd = class {
|
|
|
100
128
|
}],
|
|
101
129
|
"colspan": [{
|
|
102
130
|
"handleSpanChange": 0
|
|
131
|
+
}],
|
|
132
|
+
"sdClass": [{
|
|
133
|
+
"handleSdClassChange": 0
|
|
103
134
|
}]
|
|
104
135
|
}; }
|
|
105
136
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-Cnwbjz1F.js';
|
|
2
2
|
|
|
3
3
|
const textLink = {
|
|
4
4
|
gap: "4",
|
|
@@ -71,16 +71,16 @@ const SdTextLink = class {
|
|
|
71
71
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
72
72
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
73
73
|
};
|
|
74
|
-
return (h("span", { key: '
|
|
74
|
+
return (h("span", { key: '9bd62ac603764a5938f3c72bac3a8bf893dfb233', class: {
|
|
75
75
|
'sd-text-link': true,
|
|
76
76
|
'sd-text-link--disabled': this.disabled,
|
|
77
|
-
}, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '
|
|
77
|
+
}, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '9d63aea3c45c4962e5766e7059a166a85e7a357f', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: 'dc73d60dd1e593c597a6b5dd977db380c21ff680', class: labelClassName }, this.label), this.useArrow && (h("span", { key: '2b25dfb6ae2f857b674341427f93ee34e4691893', class: "sd-text-link__arrow", style: {
|
|
78
78
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
79
79
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
80
80
|
display: 'inline-flex',
|
|
81
81
|
alignItems: 'center',
|
|
82
82
|
justifyContent: 'center',
|
|
83
|
-
} }, h("sd-icon", { key: '
|
|
83
|
+
} }, h("sd-icon", { key: 'a5c8fb48e66f4a6820da1a54cedd7b1a13c5dcec', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-Cnwbjz1F.js';
|
|
2
2
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
3
|
import { i as inputTokens } from './component.textinput-ByhWX2NK.js';
|
|
4
4
|
|
|
@@ -128,7 +128,7 @@ const SdTextarea = class {
|
|
|
128
128
|
'--sd-system-size-field-sm-height': 'auto',
|
|
129
129
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
130
130
|
};
|
|
131
|
-
return (h("sd-field", { key: '
|
|
131
|
+
return (h("sd-field", { key: 'ca7dc6c13d22ba43cd99ee1e976599d7efb1eceb', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'a36ffabff714596bf780f2a63ccfde3e02eadda7', class: "sd-textarea__content" }, h("textarea", { key: 'b7f8a55b7ee4dfc394c380a97e21c6cc34d12b9b', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
132
132
|
}
|
|
133
133
|
static get watchers() { return {
|
|
134
134
|
"value": [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement, h } from './index-Cnwbjz1F.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_DURATION = 4000;
|
|
4
4
|
const DEFAULT_MAX_VISIBLE = 3;
|
|
@@ -232,7 +232,7 @@ const SdToastContainer = class {
|
|
|
232
232
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
233
233
|
const indexMap = new Map();
|
|
234
234
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
235
|
-
return (h("div", { key: '
|
|
235
|
+
return (h("div", { key: '925f4bf56626e8c722051afa65aa64f2a50007db', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
236
236
|
this.expanded = true;
|
|
237
237
|
this.pauseTimers();
|
|
238
238
|
}, onMouseLeave: () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-Cnwbjz1F.js';
|
|
2
2
|
|
|
3
3
|
const toast = {
|
|
4
4
|
icon: "16",
|
|
@@ -21,8 +21,7 @@ const toast = {
|
|
|
21
21
|
accent: {
|
|
22
22
|
bg: "#005CC9",
|
|
23
23
|
content: "#FFFFFF"
|
|
24
|
-
}
|
|
25
|
-
};
|
|
24
|
+
}};
|
|
26
25
|
var toastTokens = {
|
|
27
26
|
toast: toast
|
|
28
27
|
};
|
|
@@ -55,10 +54,10 @@ const SdToast = class {
|
|
|
55
54
|
render() {
|
|
56
55
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
57
56
|
const iconSize = Number(TOAST_LAYOUT.iconSize);
|
|
58
|
-
return (h("div", { key: '
|
|
57
|
+
return (h("div", { key: 'f5db941adee41c3d2c57c2c7a12d94d03dcdebb6', style: {
|
|
59
58
|
'--sd-toast-bg': typeConfig.bg,
|
|
60
59
|
'--sd-toast-text': typeConfig.content,
|
|
61
|
-
} }, h("div", { key: '
|
|
60
|
+
} }, h("div", { key: '68362fac26744fc7e805a18c589f4aff5845edc1', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '8ec7941b469b6d0242ab68b7928a9dbf6e75bb5f', class: "sd-toast__icon" }, h("sd-icon", { key: 'c057a100de91cecc3435bfa6a95c928727eb1836', name: this.icon, size: iconSize, color: typeConfig.content }))), h("div", { key: '21e84dd6cdf7efa52611da532a0983268c7c2cb2', class: "sd-toast__content" }, h("span", { key: '99c370fe3d4a54103fbccef395afadf2923f3613', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '3ce7109c2d1f5cd03f4fcc6bb01ede14c6400734', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (h("sd-ghost-button", { key: '2cf982fd1fe538533ceff61bbdecdacd2d69e51c', class: "sd-toast__close", icon: "close", intent: this.type === 'caution' ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
62
61
|
}
|
|
63
62
|
};
|
|
64
63
|
SdToast.style = sdToastCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-Cnwbjz1F.js';
|
|
2
2
|
|
|
3
3
|
const toggle = {
|
|
4
4
|
height: "28",
|
|
@@ -118,7 +118,7 @@ const SdToggle = class {
|
|
|
118
118
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
119
119
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
120
120
|
};
|
|
121
|
-
return (h("label", { key: '
|
|
121
|
+
return (h("label", { key: '9ef981165b998f43ec23f3bb1cf0ef385962d7fb', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '6b6d2a89f43036f624c7bc291b2c5aa7a93c8f0a', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
SdToggle.style = sdToggleCss();
|
|
@@ -2,12 +2,18 @@ const color = {
|
|
|
2
2
|
bg: {
|
|
3
3
|
accent: {
|
|
4
4
|
"default": "#0075FF"}},
|
|
5
|
-
|
|
5
|
+
fg: {
|
|
6
6
|
primary: "#222222",
|
|
7
7
|
secondary: "#555555",
|
|
8
8
|
tertiary: "#888888",
|
|
9
9
|
inverse: "#FFFFFF"
|
|
10
|
-
}
|
|
10
|
+
},
|
|
11
|
+
blue: {
|
|
12
|
+
strong: "#0075FF"},
|
|
13
|
+
darkblue: {
|
|
14
|
+
strong: "#006AC1"},
|
|
15
|
+
grey: {
|
|
16
|
+
strong: "#737373"}};
|
|
11
17
|
var systemTokens = {
|
|
12
18
|
color: color
|
|
13
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from './index-
|
|
1
|
+
import { h } from './index-Cnwbjz1F.js';
|
|
2
2
|
|
|
3
3
|
const TooltipArrow = (props) => (h("svg", { width: "16", height: "12", viewBox: "0 0 16 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, 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" })));
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
import { type
|
|
3
|
-
export declare class
|
|
4
|
-
option:
|
|
2
|
+
import { type SelectOption } from '../sd-select.config';
|
|
3
|
+
export declare class SdSelectListItem {
|
|
4
|
+
option: SelectOption;
|
|
5
5
|
depth: number;
|
|
6
6
|
isSelected: boolean | null;
|
|
7
7
|
isFocused: boolean;
|
|
@@ -10,7 +10,7 @@ export declare class SdSelectV2ListItem {
|
|
|
10
10
|
selected: number;
|
|
11
11
|
total: number;
|
|
12
12
|
};
|
|
13
|
-
listItemClick: EventEmitter<
|
|
13
|
+
listItemClick: EventEmitter<SelectOption>;
|
|
14
14
|
private get isGroup();
|
|
15
15
|
private get isSelectable();
|
|
16
16
|
private get depthKey();
|