@sellmate/design-system 1.0.75 → 1.0.77
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-CaGGRpd8.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -0
- 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 +3 -3
- 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 +2 -2
- package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +94 -7
- 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 +11 -6
- package/dist/cjs/sd-guide.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-modal-container.cjs.entry.js +77 -69
- package/dist/cjs/sd-number-input.cjs.entry.js +4 -4
- package/dist/cjs/sd-pagination_5.cjs.entry.js +921 -0
- 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 +7 -2
- 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} +108 -48
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +178 -21
- package/dist/cjs/sd-table.config-hnNodd18.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 +54 -2
- 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 +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/{system-BbCUNhDJ.js → system-DRemSdU1.js} +7 -1
- package/dist/cjs/{tooltipArrow-DuANjCfc.js → tooltipArrow-BEff0q3z.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.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.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 +10 -5
- 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 +77 -71
- 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-radio-button/sd-radio-button.js +6 -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} +133 -33
- 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 +81 -0
- package/dist/collection/components/sd-table/sd-table.css +17 -9
- package/dist/collection/components/sd-table/sd-table.js +179 -21
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +0 -8
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +9 -5
- package/dist/collection/components/sd-table/sd-td/sd-td.js +91 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.css +16 -12
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +58 -9
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +11 -3
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +75 -12
- 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/modal.js +5 -0
- 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-B6KZfiQ5.js +1 -0
- package/dist/components/{p-CTwEbxRN.js → p-BEOrkEV1.js} +1 -1
- package/dist/components/p-BJJvCBQs.js +1 -0
- package/dist/components/p-BM_PRj8W.js +1 -0
- package/dist/components/p-BR_ZAr48.js +1 -0
- package/dist/components/p-BeNJfxnb.js +1 -0
- package/dist/components/{p-BLwIhCdO.js → p-BfoLbEZx.js} +1 -1
- package/dist/components/p-Bm8Fue-a.js +1 -0
- package/dist/components/{p-DaAhgdib.js → p-BynnUMVZ.js} +1 -1
- package/dist/components/{p-D5HLYqT-.js → p-C52iEAqd.js} +1 -1
- package/dist/components/p-C8Dy_x5h.js +1 -0
- package/dist/components/{p-C3dI7f7C.js → p-CJAQuJik.js} +1 -1
- package/dist/components/{p-iAWNMLXh.js → p-CJqZcEqD.js} +1 -1
- package/dist/components/{p-H-9uoufd.js → p-CNm5Qbf-.js} +1 -1
- package/dist/components/{p-B3xZdEDI.js → p-CQy5JErK.js} +1 -1
- package/dist/components/{p-BgFLSKqC.js → p-CZxeqYuw.js} +1 -1
- package/dist/components/{p-SDBnyM8D.js → p-CkgQbCMR.js} +1 -1
- package/dist/components/p-CvnC61M9.js +1 -0
- package/dist/components/{p-6LtMeKKA.js → p-D1SJ2TMu.js} +1 -1
- package/dist/components/{p-BXdEjuI_.js → p-D2FOkhao.js} +1 -1
- package/dist/components/p-D66nhMt3.js +1 -0
- package/dist/components/p-DDDZWrWj.js +1 -0
- package/dist/components/p-DK3vj3bG.js +1 -0
- package/dist/components/{p-CZPR_5mk.js → p-DcuLMUdl.js} +1 -1
- package/dist/components/p-DxXwz3cY.js +1 -0
- package/dist/components/p-NlCzTjK4.js +1 -0
- package/dist/components/{p-BZm6KN1s.js → p-RpjjrX78.js} +1 -1
- package/dist/components/{p-BM0sVq5Z.js → p-ZH78tQXS.js} +1 -1
- package/dist/components/{p-DQfNwvwx.js → p-ZLsQA11g.js} +1 -1
- package/dist/components/{p-DdJyzIYe.js → p-eGToaKCt.js} +1 -1
- package/dist/components/p-hTUSl23P.js +1 -0
- package/dist/components/p-mqa9-iql.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button-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/index.esm.js +1 -1
- package/dist/design-system/{p-dad07e1a.entry.js → p-120df622.entry.js} +1 -1
- package/dist/design-system/{p-6af9e663.entry.js → p-28b727df.entry.js} +1 -1
- package/dist/design-system/{p-05a1c092.entry.js → p-2cd2fb76.entry.js} +1 -1
- package/dist/design-system/p-3f9d60a0.entry.js +1 -0
- package/dist/design-system/p-400b3676.entry.js +1 -0
- package/dist/design-system/{p-2eb910ec.entry.js → p-41ea33fb.entry.js} +1 -1
- package/dist/design-system/{p-c7bcb232.entry.js → p-42906763.entry.js} +1 -1
- package/dist/design-system/p-42a8f8a2.entry.js +1 -0
- package/dist/design-system/{p-fdcfaa7c.entry.js → p-43ffe7b0.entry.js} +1 -1
- package/dist/design-system/p-4ad9a5b8.entry.js +1 -0
- package/dist/design-system/{p-3a9559ee.entry.js → p-504033e8.entry.js} +1 -1
- package/dist/design-system/p-64d3c984.entry.js +1 -0
- package/dist/design-system/{p-ce3d0f9c.entry.js → p-67f88b1a.entry.js} +1 -1
- package/dist/design-system/{p-6a3f8588.entry.js → p-68d0fa15.entry.js} +1 -1
- package/dist/design-system/p-6dc47f4c.entry.js +1 -0
- package/dist/design-system/{p-d6896893.entry.js → p-6f9b0b32.entry.js} +1 -1
- package/dist/design-system/{p-3ca5c303.entry.js → p-704dc1f1.entry.js} +1 -1
- package/dist/design-system/{p-17cd3a33.entry.js → p-732ee178.entry.js} +1 -1
- package/dist/design-system/{p-8200b5f2.entry.js → p-7d892b68.entry.js} +1 -1
- package/dist/design-system/{p-16a15368.entry.js → p-809e616c.entry.js} +1 -1
- package/dist/design-system/p-80c51996.entry.js +1 -0
- package/dist/design-system/{p-b745cd95.entry.js → p-889971bc.entry.js} +1 -1
- package/dist/design-system/{p-33bec0e3.entry.js → p-8abc2413.entry.js} +1 -1
- package/dist/design-system/{p-bb492ba7.entry.js → p-970f9ea5.entry.js} +1 -1
- package/dist/design-system/p-BHmXH7dZ.js +2 -0
- package/dist/design-system/{p-BgFLSKqC.js → p-CZxeqYuw.js} +1 -1
- package/dist/design-system/p-DDDZWrWj.js +1 -0
- package/dist/design-system/p-DG7d45mX.js +1 -0
- package/dist/design-system/{p-280dc548.entry.js → p-a69d6a99.entry.js} +1 -1
- package/dist/design-system/{p-49f78122.entry.js → p-ab5a94c8.entry.js} +1 -1
- package/dist/design-system/{p-f4a00276.entry.js → p-ae626d30.entry.js} +1 -1
- package/dist/design-system/p-b9a870bf.entry.js +1 -0
- package/dist/design-system/{p-97ebf578.entry.js → p-bab814c5.entry.js} +1 -1
- package/dist/design-system/{p-eb29dc9f.entry.js → p-c21f30de.entry.js} +1 -1
- package/dist/design-system/p-c863a31d.entry.js +1 -0
- package/dist/design-system/{p-a8bde8d9.entry.js → p-cab35b9a.entry.js} +1 -1
- package/dist/design-system/p-cea424f6.entry.js +1 -0
- package/dist/design-system/p-d8bb2cb4.entry.js +1 -0
- package/dist/design-system/p-dd63e10f.entry.js +1 -0
- package/dist/design-system/p-e04302a2.entry.js +1 -0
- package/dist/design-system/{p-5f6379e9.entry.js → p-e84d1bac.entry.js} +1 -1
- package/dist/design-system/p-ebbffddb.entry.js +1 -0
- package/dist/design-system/{p-d1dfa0e1.entry.js → p-ec02b3e8.entry.js} +1 -1
- package/dist/design-system/{p-8ff967f7.entry.js → p-ed1c4625.entry.js} +1 -1
- package/dist/design-system/{p-2d154fe0.entry.js → p-f06038fd.entry.js} +1 -1
- package/dist/design-system/{p-2cd2f2dd.entry.js → p-f80d10ad.entry.js} +1 -1
- package/dist/design-system/p-fbb7e090.entry.js +1 -0
- package/dist/design-system/{p-a9fc2c21.entry.js → p-feb84f87.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-Bp7ytJz5.js → index-BHmXH7dZ.js} +1 -1
- package/dist/esm/index.js +5 -0
- 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 +3 -3
- 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 +2 -2
- package/dist/esm/sd-date-picker-trigger.entry.js +3 -3
- package/dist/esm/sd-date-picker.entry.js +3 -3
- package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
- package/dist/esm/sd-date-range-picker.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +93 -6
- 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 +11 -6
- package/dist/esm/sd-guide.entry.js +2 -2
- package/dist/esm/{sd-input_2.entry.js → sd-input.entry.js} +4 -43
- 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 +77 -69
- package/dist/esm/sd-number-input.entry.js +4 -4
- package/dist/esm/sd-pagination_5.entry.js +915 -0
- 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 +7 -2
- 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} +105 -45
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-table.config-DKkzCQwJ.js +94 -0
- package/dist/esm/sd-table.entry.js +178 -21
- 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 +54 -2
- 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 +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/{system-BgFLSKqC.js → system-CZxeqYuw.js} +7 -1
- package/dist/esm/{tooltipArrow-BHRQVawd.js → tooltipArrow-DZ-N5HBq.js} +1 -1
- package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -1
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +6 -4
- package/dist/types/components/sd-radio-button/sd-radio-button.d.ts +1 -0
- 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} +15 -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 +17 -0
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +8 -0
- 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 +4 -0
- package/dist/types/components.d.ts +1012 -2402
- package/dist/types/utils/testing/index.d.ts +2 -0
- package/dist/types/utils/testing/mocks.d.ts +4 -0
- package/hydrate/index.js +821 -2272
- package/hydrate/index.mjs +821 -2272
- package/package.json +1 -1
- package/dist/cjs/base-dropdown-event-BTPlZ1KF.js +0 -91
- package/dist/cjs/sd-pagination_2.cjs.entry.js +0 -427
- 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/sd-tbody.cjs.entry.js +0 -66
- package/dist/cjs/sd-thead.cjs.entry.js +0 -179
- package/dist/cjs/sd-tr.cjs.entry.js +0 -171
- 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 -819
- 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-9ZtJl4s6.js +0 -1
- package/dist/components/p-BALOEavB.js +0 -1
- package/dist/components/p-BZc6lwGD.js +0 -1
- package/dist/components/p-Bbs5Ws0k.js +0 -1
- package/dist/components/p-Bp0B8tcl.js +0 -1
- package/dist/components/p-Btx5sC7s.js +0 -1
- package/dist/components/p-CHFGWh0m.js +0 -1
- package/dist/components/p-CNAzAL53.js +0 -1
- package/dist/components/p-CWEeXx2E.js +0 -1
- package/dist/components/p-CgL8_FSD.js +0 -1
- package/dist/components/p-CqghR1aS.js +0 -1
- package/dist/components/p-Cy6HMEsK.js +0 -1
- package/dist/components/p-D8fG9Yt7.js +0 -1
- package/dist/components/p-DBex-RJU.js +0 -1
- package/dist/components/p-DEBakAhm.js +0 -1
- package/dist/components/p-DWMY9O2B.js +0 -1
- package/dist/components/p-DuMkBStM.js +0 -1
- package/dist/components/p-vQDL-PZ8.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-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-380198bc.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-6b537e2f.entry.js +0 -1
- package/dist/design-system/p-6e90fb80.entry.js +0 -1
- package/dist/design-system/p-711c59fc.entry.js +0 -1
- package/dist/design-system/p-7b77c65c.entry.js +0 -1
- package/dist/design-system/p-850de8d4.entry.js +0 -1
- package/dist/design-system/p-8f88bd67.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-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-ba5fea6f.entry.js +0 -1
- package/dist/design-system/p-be54d6bd.entry.js +0 -1
- package/dist/design-system/p-c3379a6e.entry.js +0 -1
- package/dist/design-system/p-cc62c180.entry.js +0 -1
- package/dist/design-system/p-ce2210ad.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/design-system/p-dc07d618.entry.js +0 -1
- package/dist/design-system/p-ef09409c.entry.js +0 -1
- package/dist/design-system/p-f8237991.entry.js +0 -1
- package/dist/esm/base-dropdown-event-CRdYeSBK.js +0 -89
- package/dist/esm/sd-pagination_2.entry.js +0 -424
- 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/sd-tbody.entry.js +0 -64
- package/dist/esm/sd-thead.entry.js +0 -177
- package/dist/esm/sd-tr.entry.js +0 -169
- 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 -71
- 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
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CaGGRpd8.js');
|
|
4
4
|
var constants = require('./constants-DJRV1upE.js');
|
|
5
|
+
var sdTable_config = require('./sd-table.config-hnNodd18.js');
|
|
6
|
+
require('./system-DRemSdU1.js');
|
|
5
7
|
|
|
6
8
|
const urlAlphabet =
|
|
7
9
|
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
@@ -16,7 +18,7 @@ let nanoid = (size = 21) => {
|
|
|
16
18
|
return id
|
|
17
19
|
};
|
|
18
20
|
|
|
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,
|
|
21
|
+
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%)}`;
|
|
20
22
|
|
|
21
23
|
const SdTable = class {
|
|
22
24
|
constructor(hostRef) {
|
|
@@ -72,11 +74,17 @@ const SdTable = class {
|
|
|
72
74
|
scrolledRight = false;
|
|
73
75
|
rowCount = 0;
|
|
74
76
|
loadingScrollTop = 0;
|
|
77
|
+
// light DOM에 sd-thead / sd-tbody 자식이 없으면 sd-table이 직접 렌더해야 함을 알리는 플래그.
|
|
78
|
+
// componentWillLoad에서 한 번 결정되며, 이후 동적 토글은 지원하지 않는다.
|
|
79
|
+
autoThead = false;
|
|
80
|
+
autoTbody = false;
|
|
75
81
|
vsStart = 0;
|
|
76
82
|
vsEnd = 0;
|
|
77
83
|
lastReachEndNotifiedRowCount = -1;
|
|
78
84
|
scrollContainer = null;
|
|
79
85
|
onScroll;
|
|
86
|
+
// 키: `${rowKey}::${field}` → { rowspan, colspan }
|
|
87
|
+
spanRegistry = new Map();
|
|
80
88
|
toFiniteNumber(value, fallback) {
|
|
81
89
|
const n = typeof value === 'number' ? value : Number(value);
|
|
82
90
|
return Number.isFinite(n) ? n : fallback;
|
|
@@ -155,9 +163,16 @@ const SdTable = class {
|
|
|
155
163
|
this.innerRowsPerPage = newVal.rowsPerPage;
|
|
156
164
|
}
|
|
157
165
|
}
|
|
166
|
+
detectChildren() {
|
|
167
|
+
const hasThead = !!this.el.querySelector(':scope > sd-thead');
|
|
168
|
+
const hasTbody = !!this.el.querySelector(':scope > sd-tbody');
|
|
169
|
+
this.autoThead = !hasThead;
|
|
170
|
+
this.autoTbody = !hasTbody;
|
|
171
|
+
}
|
|
158
172
|
componentWillLoad() {
|
|
159
173
|
this.syncTableIdAttribute();
|
|
160
174
|
this.handleNoDataLabelChange(this.noDataLabel);
|
|
175
|
+
this.detectChildren();
|
|
161
176
|
this.innerSelected = new Set(this.selected || []);
|
|
162
177
|
this.columnWidths = (this.columns || []).map(c => parseInt(c.width || '120', 10));
|
|
163
178
|
if (this.pagination?.page) {
|
|
@@ -180,6 +195,11 @@ const SdTable = class {
|
|
|
180
195
|
el.getTableIdSync = () => this.getResolvedTableId();
|
|
181
196
|
el.getVirtualScrollConfigSync = this.getVirtualScrollConfigSync.bind(this);
|
|
182
197
|
el.calculateVisibleRange = this.calculateVisibleRange.bind(this);
|
|
198
|
+
el.registerSpanSync = this.registerSpanSync.bind(this);
|
|
199
|
+
el.unregisterSpanSync = this.unregisterSpanSync.bind(this);
|
|
200
|
+
el.getSpanSync = this.getSpanSync.bind(this);
|
|
201
|
+
el.isCoveredSync = this.isCoveredSync.bind(this);
|
|
202
|
+
el.hasRowspanSync = this.hasRowspanSync.bind(this);
|
|
183
203
|
if (Array.isArray(this.rows)) {
|
|
184
204
|
this.rowCount = this.rows.length;
|
|
185
205
|
this.pushRowsToChildren(this.rows);
|
|
@@ -228,11 +248,22 @@ const SdTable = class {
|
|
|
228
248
|
this.scrollContainer.removeEventListener('scroll', this.onScroll);
|
|
229
249
|
}
|
|
230
250
|
}
|
|
251
|
+
// light DOM(manual mode 자식)과 shadow DOM(autoThead/autoTbody fallback) 양쪽 모두에서 자식을 찾는다.
|
|
252
|
+
queryChildEl(selector) {
|
|
253
|
+
return (this.el.querySelector(selector) ??
|
|
254
|
+
this.el.shadowRoot?.querySelector(selector) ??
|
|
255
|
+
null);
|
|
256
|
+
}
|
|
257
|
+
queryAllTr() {
|
|
258
|
+
const light = Array.from(this.el.querySelectorAll('sd-tr'));
|
|
259
|
+
const shadow = Array.from(this.el.shadowRoot?.querySelectorAll('sd-tr') ?? []);
|
|
260
|
+
return [...light, ...shadow];
|
|
261
|
+
}
|
|
231
262
|
pushRowsToChildren(rows) {
|
|
232
|
-
const tbody = this.
|
|
263
|
+
const tbody = this.queryChildEl('sd-tbody');
|
|
233
264
|
if (tbody)
|
|
234
265
|
tbody.rows = rows;
|
|
235
|
-
const thead = this.
|
|
266
|
+
const thead = this.queryChildEl('sd-thead');
|
|
236
267
|
if (thead)
|
|
237
268
|
thead.rows = rows;
|
|
238
269
|
}
|
|
@@ -243,16 +274,14 @@ const SdTable = class {
|
|
|
243
274
|
this.refreshChildrenConfig();
|
|
244
275
|
};
|
|
245
276
|
refreshChildrenSelection() {
|
|
246
|
-
const thead = this.
|
|
247
|
-
const rows = this.el.querySelectorAll('sd-tr');
|
|
277
|
+
const thead = this.queryChildEl('sd-thead');
|
|
248
278
|
thead?.refreshSelection?.();
|
|
249
|
-
|
|
279
|
+
this.queryAllTr().forEach(tr => tr?.refreshSelection?.());
|
|
250
280
|
}
|
|
251
281
|
refreshChildrenConfig() {
|
|
252
|
-
const thead = this.
|
|
253
|
-
const rows = this.el.querySelectorAll('sd-tr');
|
|
282
|
+
const thead = this.queryChildEl('sd-thead');
|
|
254
283
|
thead?.refreshConfig?.();
|
|
255
|
-
|
|
284
|
+
this.queryAllTr().forEach(tr => tr?.refreshConfig?.());
|
|
256
285
|
}
|
|
257
286
|
maybeEmitVirtualReachEnd(start, end) {
|
|
258
287
|
const threshold = Math.max(1, this.virtualEndThreshold);
|
|
@@ -284,7 +313,7 @@ const SdTable = class {
|
|
|
284
313
|
this.vsEnd = end;
|
|
285
314
|
const topHeight = start * this.rowHeight;
|
|
286
315
|
const bottomHeight = Math.max(0, (this.rowCount - end) * this.rowHeight);
|
|
287
|
-
const tbody = this.
|
|
316
|
+
const tbody = this.queryChildEl('sd-tbody');
|
|
288
317
|
tbody?.setSpacersSync?.(topHeight, bottomHeight);
|
|
289
318
|
if (rangeChanged) {
|
|
290
319
|
this.sdVirtualUpdate.emit({
|
|
@@ -376,8 +405,7 @@ const SdTable = class {
|
|
|
376
405
|
this.updateRowsVisibility();
|
|
377
406
|
}
|
|
378
407
|
updateRowsVisibility() {
|
|
379
|
-
|
|
380
|
-
rows.forEach(tr => tr?.updateVisibility?.());
|
|
408
|
+
this.queryAllTr().forEach(tr => tr?.updateVisibility?.());
|
|
381
409
|
}
|
|
382
410
|
changeRowsPerPage(perPage) {
|
|
383
411
|
const changedRowsPerPage = perPage ? Number(perPage) : 0;
|
|
@@ -414,10 +442,9 @@ const SdTable = class {
|
|
|
414
442
|
const delta = moveEvent.clientX - startX;
|
|
415
443
|
const newWidth = Math.min(Math.max(startWidth + (reversed ? -delta : delta), minWidth), maxWidth);
|
|
416
444
|
this.columnWidths = this.columnWidths.map((width, idx) => (idx === index ? newWidth : width));
|
|
417
|
-
const thead = this.
|
|
418
|
-
const rows = this.el.querySelectorAll('sd-tr');
|
|
445
|
+
const thead = this.queryChildEl('sd-thead');
|
|
419
446
|
thead?.setColumnWidths?.(this.columnWidths);
|
|
420
|
-
|
|
447
|
+
this.queryAllTr().forEach(tr => tr?.setColumnWidths?.(this.columnWidths));
|
|
421
448
|
const stickyRightCount = this.stickyColumn?.right || 0;
|
|
422
449
|
const visibleColCount = this.columns.filter(c => c.visible !== false).length;
|
|
423
450
|
const isRightStickyEdgeResizer = stickyRightCount > 0 && index === visibleColCount - stickyRightCount;
|
|
@@ -454,6 +481,112 @@ const SdTable = class {
|
|
|
454
481
|
async getStickyStyle(colIdx) {
|
|
455
482
|
return this.getStickyStyleSync(colIdx);
|
|
456
483
|
}
|
|
484
|
+
// ─── rowspan / colspan registry ─────────────────────────────────
|
|
485
|
+
// sd-td가 mount/unmount 시 자기 (rowKey, field)와 span을 등록한다.
|
|
486
|
+
// sd-tr는 render마다 isCoveredSync로 자신의 셀 위치가 다른 셀의 span에
|
|
487
|
+
// 덮였는지 판정해 <td>를 그릴지 결정한다.
|
|
488
|
+
spanKey(rowKey, field) {
|
|
489
|
+
return `${rowKey}::${field}`;
|
|
490
|
+
}
|
|
491
|
+
// span 등록은 sd-td의 lifecycle에서 비동기적으로 일어나므로,
|
|
492
|
+
// 등록/해제 직후 형제 sd-tr들이 새 레지스트리 상태로 다시 그려져야
|
|
493
|
+
// 덮인 셀이 사라지거나 다시 나타난다.
|
|
494
|
+
// forceUpdate는 React 래퍼 환경에서 prop 동기화 사이클과 부딪혀 누락되는
|
|
495
|
+
// 경우가 있어, sd-tr의 @State (spansVersion)을 통해 재렌더를 강제한다.
|
|
496
|
+
requestAllTrUpdate() {
|
|
497
|
+
this.queryAllTr().forEach(tr => {
|
|
498
|
+
const trAny = tr;
|
|
499
|
+
if (typeof trAny.bumpSpansVersion === 'function') {
|
|
500
|
+
trAny.bumpSpansVersion();
|
|
501
|
+
}
|
|
502
|
+
else {
|
|
503
|
+
index.forceUpdate(tr);
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
registerSpanSync(rowKey, field, rowspan, colspan) {
|
|
508
|
+
if (rowKey == null || !field)
|
|
509
|
+
return;
|
|
510
|
+
const safeRowspan = Math.max(1, Math.floor(rowspan || 1));
|
|
511
|
+
const safeColspan = Math.max(1, Math.floor(colspan || 1));
|
|
512
|
+
const key = this.spanKey(rowKey, field);
|
|
513
|
+
const prev = this.spanRegistry.get(key);
|
|
514
|
+
if (safeRowspan === 1 && safeColspan === 1) {
|
|
515
|
+
if (!prev)
|
|
516
|
+
return;
|
|
517
|
+
this.spanRegistry.delete(key);
|
|
518
|
+
this.requestAllTrUpdate();
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
if (prev && prev.rowspan === safeRowspan && prev.colspan === safeColspan)
|
|
522
|
+
return;
|
|
523
|
+
this.spanRegistry.set(key, { rowspan: safeRowspan, colspan: safeColspan });
|
|
524
|
+
this.requestAllTrUpdate();
|
|
525
|
+
}
|
|
526
|
+
unregisterSpanSync(rowKey, field) {
|
|
527
|
+
if (rowKey == null || !field)
|
|
528
|
+
return;
|
|
529
|
+
const key = this.spanKey(rowKey, field);
|
|
530
|
+
if (!this.spanRegistry.has(key))
|
|
531
|
+
return;
|
|
532
|
+
this.spanRegistry.delete(key);
|
|
533
|
+
this.requestAllTrUpdate();
|
|
534
|
+
}
|
|
535
|
+
getSpanSync(rowKey, field) {
|
|
536
|
+
return this.spanRegistry.get(this.spanKey(rowKey, field));
|
|
537
|
+
}
|
|
538
|
+
// 레지스트리에 rowspan>1 항목이 하나라도 있으면 true.
|
|
539
|
+
// hover 동작을 끌지 결정하는 데 사용 — colspan만 있는 경우는 그대로 hover 유지.
|
|
540
|
+
hasRowspanSync() {
|
|
541
|
+
for (const span of this.spanRegistry.values()) {
|
|
542
|
+
if (span.rowspan > 1)
|
|
543
|
+
return true;
|
|
544
|
+
}
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
547
|
+
isCoveredSync(rowKey, colIdx, columns) {
|
|
548
|
+
if (this.spanRegistry.size === 0)
|
|
549
|
+
return false;
|
|
550
|
+
const visibleCols = columns.filter(c => c.visible !== false);
|
|
551
|
+
// 1. 같은 행 왼쪽 스캔 — colspan으로 이 위치를 덮는 셀이 있는가
|
|
552
|
+
for (let i = 0; i < colIdx; i++) {
|
|
553
|
+
const c = visibleCols[i];
|
|
554
|
+
if (!c)
|
|
555
|
+
continue;
|
|
556
|
+
const field = typeof c.field === 'string' ? c.field : c.name;
|
|
557
|
+
const span = this.spanRegistry.get(this.spanKey(rowKey, field));
|
|
558
|
+
if (!span)
|
|
559
|
+
continue;
|
|
560
|
+
if (i + span.colspan > colIdx)
|
|
561
|
+
return true;
|
|
562
|
+
}
|
|
563
|
+
// 2. 위쪽 행 스캔 — 숫자 변환 가능한 rowKey만 rowspan 평가
|
|
564
|
+
const myRowIdx = Number(rowKey);
|
|
565
|
+
if (!Number.isFinite(myRowIdx))
|
|
566
|
+
return false;
|
|
567
|
+
for (const [key, span] of this.spanRegistry) {
|
|
568
|
+
if (span.rowspan <= 1)
|
|
569
|
+
continue;
|
|
570
|
+
const sepIdx = key.indexOf('::');
|
|
571
|
+
if (sepIdx < 0)
|
|
572
|
+
continue;
|
|
573
|
+
const otherRowKey = key.slice(0, sepIdx);
|
|
574
|
+
const otherField = key.slice(sepIdx + 2);
|
|
575
|
+
const otherRowIdx = Number(otherRowKey);
|
|
576
|
+
if (!Number.isFinite(otherRowIdx))
|
|
577
|
+
continue;
|
|
578
|
+
if (otherRowIdx >= myRowIdx)
|
|
579
|
+
continue;
|
|
580
|
+
if (otherRowIdx + span.rowspan <= myRowIdx)
|
|
581
|
+
continue;
|
|
582
|
+
const otherColIdx = visibleCols.findIndex(c => (typeof c.field === 'string' ? c.field : c.name) === otherField);
|
|
583
|
+
if (otherColIdx < 0)
|
|
584
|
+
continue;
|
|
585
|
+
if (otherColIdx <= colIdx && otherColIdx + span.colspan > colIdx)
|
|
586
|
+
return true;
|
|
587
|
+
}
|
|
588
|
+
return false;
|
|
589
|
+
}
|
|
457
590
|
setRowCountSync(count) {
|
|
458
591
|
const safeCount = Math.max(0, Math.floor(this.toFiniteNumber(count, 0)));
|
|
459
592
|
if (safeCount !== this.rowCount) {
|
|
@@ -501,6 +634,20 @@ const SdTable = class {
|
|
|
501
634
|
return null;
|
|
502
635
|
return { from: this.vsStart, to: this.vsEnd };
|
|
503
636
|
}
|
|
637
|
+
// autoTbody fallback에서 sd-table이 직접 sd-tr을 만들어내는 경로.
|
|
638
|
+
// 가상 스크롤은 사용자가 직접 SdTbody+SdTr을 작성해야 하므로 빈 배열을 반환한다.
|
|
639
|
+
renderAutoRows() {
|
|
640
|
+
if (this.useVirtualScroll)
|
|
641
|
+
return null;
|
|
642
|
+
const allRows = this.rows ?? [];
|
|
643
|
+
const pageInfo = this.getPaginationInfoSync();
|
|
644
|
+
const startIdx = pageInfo?.startIndex ?? 0;
|
|
645
|
+
const displayed = pageInfo ? allRows.slice(pageInfo.startIndex, pageInfo.endIndex) : allRows;
|
|
646
|
+
return displayed.map((row, i) => {
|
|
647
|
+
const absoluteIdx = startIdx + i;
|
|
648
|
+
return index.h("sd-tr", { key: absoluteIdx, "row-key": String(absoluteIdx), row: row });
|
|
649
|
+
});
|
|
650
|
+
}
|
|
504
651
|
get tableClasses() {
|
|
505
652
|
return [
|
|
506
653
|
'sd-table',
|
|
@@ -520,24 +667,34 @@ const SdTable = class {
|
|
|
520
667
|
}
|
|
521
668
|
render() {
|
|
522
669
|
const resolvedTableId = this.getResolvedTableId();
|
|
523
|
-
|
|
670
|
+
const hostStyle = {
|
|
671
|
+
'--table-radius': `${sdTable_config.TABLE_RADIUS}px`,
|
|
672
|
+
'--table-border-color': sdTable_config.TABLE_BORDER.color,
|
|
673
|
+
'--table-border-width': `${sdTable_config.TABLE_BORDER.width}px`,
|
|
674
|
+
'--table-body-font-family': sdTable_config.TABLE_BODY_TYPOGRAPHY.fontFamily,
|
|
675
|
+
'--table-body-font-weight': sdTable_config.TABLE_BODY_TYPOGRAPHY.fontWeight,
|
|
676
|
+
'--table-body-font-size': `${sdTable_config.TABLE_BODY_TYPOGRAPHY.fontSize}px`,
|
|
677
|
+
'--table-body-line-height': `${sdTable_config.TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
678
|
+
'--table-body-text-decoration': sdTable_config.TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
679
|
+
};
|
|
680
|
+
return (index.h(index.Host, { key: '1a80b7c3589a8a2eefaabf24ed895c927543aac4', style: hostStyle }, index.h("div", { key: 'd97aa6c04948153671e26066b6df02e206fc35e6', class: "sd-table__container", style: {
|
|
524
681
|
'--table-width': this.width,
|
|
525
682
|
'--table-height': this.height,
|
|
526
683
|
'--table-container-height': `calc(${this.height || '100%'} - ${this.pagination && this.rowCount > 0 && !this.useVirtualScroll ? 48 : 0}px)`,
|
|
527
|
-
} }, index.h("div", { key: '
|
|
684
|
+
} }, index.h("div", { key: '0e13dbbe062953c93a0acaaf5c00ca40a5b7e245', class: {
|
|
528
685
|
'sd-table__clip': true,
|
|
529
686
|
'sd-table__clip--has-pagination': !!(this.pagination &&
|
|
530
687
|
this.pagination.rowsPerPage > 0 &&
|
|
531
688
|
this.rowCount > 0 &&
|
|
532
689
|
!this.useVirtualScroll),
|
|
533
|
-
} }, index.h("div", { key: '
|
|
690
|
+
} }, index.h("div", { key: 'c800ecac543d1540d9b6c9faf06753c9dc10aaf3', class: {
|
|
534
691
|
'sd-table__wrapper': true,
|
|
535
692
|
'sd-table__wrapper--loading': this.isLoading,
|
|
536
693
|
'sd-table__wrapper--no-data': this.rowCount === 0 && !this.isLoading,
|
|
537
|
-
} }, this.isLoading && (index.h("div", { key: '
|
|
694
|
+
} }, this.isLoading && (index.h("div", { key: '656bc53538c8513e014f31f1e976fd66ce79c7aa', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, index.h("sd-circle-progress", { key: '74078add6860fc95e238d89335d57e205e751cd6', indeterminate: true }))), this.rowCount === 0 && !this.isLoading && (index.h("div", { key: '18a33a7247bde3d08472f8082325c76217734e5d', class: "sd-table__no-data" }, index.h("slot", { key: '966cb066f721695013a3e5a1a64543544b09fa77', name: "no-data" }, index.h("span", { key: 'd335a9b1b2e847b267cefb9d12f7265c5f67f394' }, this.resolvedNoDataLabel)))), index.h("table", { key: '8fd0a2428bfd4dd6a574bbb02139088c31408866', 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 &&
|
|
538
695
|
this.pagination.rowsPerPage > 0 &&
|
|
539
696
|
this.rowCount > 0 &&
|
|
540
|
-
!this.useVirtualScroll && (index.h("div", { key: '
|
|
697
|
+
!this.useVirtualScroll && (index.h("div", { key: '6f483b1a23456bbe42ff769a50c9de5638e7754f', class: "sd-table__pagination" }, index.h("sd-pagination", { key: '841c545c23de8b4bba4cce3c9f6608d16f7b4e54', 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: 'a67e17bf3067953169ffa119ee41b1d7f46c2058', value: this.useInternalPagination
|
|
541
698
|
? this.innerRowsPerPage
|
|
542
699
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
543
700
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var system = require('./system-DRemSdU1.js');
|
|
4
|
+
|
|
5
|
+
const table = {
|
|
6
|
+
header: {
|
|
7
|
+
height: "36",
|
|
8
|
+
paddingX: "16",
|
|
9
|
+
gap: "4",
|
|
10
|
+
bg: "#F5FAFF",
|
|
11
|
+
typography: {
|
|
12
|
+
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",
|
|
13
|
+
fontWeight: "500",
|
|
14
|
+
fontSize: "12",
|
|
15
|
+
lineHeight: "20",
|
|
16
|
+
textDecoration: "none"
|
|
17
|
+
},
|
|
18
|
+
resizingBar: {
|
|
19
|
+
color: "#CCCCCC",
|
|
20
|
+
height: "16"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
body: {
|
|
24
|
+
"default": {
|
|
25
|
+
height: "44"},
|
|
26
|
+
paddingX: "16",
|
|
27
|
+
typography: {
|
|
28
|
+
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",
|
|
29
|
+
fontWeight: "400",
|
|
30
|
+
fontSize: "12",
|
|
31
|
+
lineHeight: "20",
|
|
32
|
+
textDecoration: "none"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
border: {
|
|
36
|
+
"default": "#E1E1E1",
|
|
37
|
+
width: {
|
|
38
|
+
width: "1"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
radius: "8"};
|
|
42
|
+
var tableTokens = {
|
|
43
|
+
table: table
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// ── Header Tokens ──
|
|
47
|
+
const TABLE_HEADER_LAYOUT = {
|
|
48
|
+
height: tableTokens.table.header.height,
|
|
49
|
+
paddingX: tableTokens.table.header.paddingX,
|
|
50
|
+
gap: tableTokens.table.header.gap,
|
|
51
|
+
};
|
|
52
|
+
const TABLE_HEADER_TYPOGRAPHY = {
|
|
53
|
+
fontFamily: tableTokens.table.header.typography.fontFamily,
|
|
54
|
+
fontWeight: tableTokens.table.header.typography.fontWeight,
|
|
55
|
+
fontSize: tableTokens.table.header.typography.fontSize,
|
|
56
|
+
lineHeight: tableTokens.table.header.typography.lineHeight,
|
|
57
|
+
textDecoration: tableTokens.table.header.typography.textDecoration,
|
|
58
|
+
};
|
|
59
|
+
const TABLE_HEADER_COLORS = {
|
|
60
|
+
bg: tableTokens.table.header.bg,
|
|
61
|
+
};
|
|
62
|
+
const TABLE_HEADER_RESIZING_BAR = {
|
|
63
|
+
color: tableTokens.table.header.resizingBar.color,
|
|
64
|
+
height: tableTokens.table.header.resizingBar.height,
|
|
65
|
+
};
|
|
66
|
+
// ── Body Tokens ──
|
|
67
|
+
const TABLE_BODY_LAYOUT = {
|
|
68
|
+
default: {
|
|
69
|
+
height: tableTokens.table.body.default.height},
|
|
70
|
+
paddingX: tableTokens.table.body.paddingX};
|
|
71
|
+
const TABLE_BODY_TYPOGRAPHY = {
|
|
72
|
+
fontFamily: tableTokens.table.body.typography.fontFamily,
|
|
73
|
+
fontWeight: tableTokens.table.body.typography.fontWeight,
|
|
74
|
+
fontSize: tableTokens.table.body.typography.fontSize,
|
|
75
|
+
lineHeight: tableTokens.table.body.typography.lineHeight,
|
|
76
|
+
textDecoration: tableTokens.table.body.typography.textDecoration,
|
|
77
|
+
};
|
|
78
|
+
// ── Frame / Border Tokens ──
|
|
79
|
+
const TABLE_BORDER = {
|
|
80
|
+
color: tableTokens.table.border.default,
|
|
81
|
+
width: tableTokens.table.border.width.width,
|
|
82
|
+
};
|
|
83
|
+
const TABLE_RADIUS = tableTokens.table.radius;
|
|
84
|
+
// ── Header Icon Color Defaults ──
|
|
85
|
+
const ICON_DEFAULT_COLOR = {
|
|
86
|
+
pageEdit: system.systemTokens.color.darkblue.strong,
|
|
87
|
+
arrowDown: system.systemTokens.color.darkblue.strong,
|
|
88
|
+
arrowUp: system.systemTokens.color.darkblue.strong,
|
|
89
|
+
updown: system.systemTokens.color.grey.strong,
|
|
90
|
+
pageMove: system.systemTokens.color.darkblue.strong,
|
|
91
|
+
star: system.systemTokens.color.blue.strong,
|
|
92
|
+
};
|
|
93
|
+
const resolveTableIconColor = (name, override) => override ?? ICON_DEFAULT_COLOR[name];
|
|
94
|
+
const resolveSortIconName = (sort) => sort === 'asc' ? 'arrowDown' : sort === 'desc' ? 'arrowUp' : 'updown';
|
|
95
|
+
|
|
96
|
+
exports.TABLE_BODY_LAYOUT = TABLE_BODY_LAYOUT;
|
|
97
|
+
exports.TABLE_BODY_TYPOGRAPHY = TABLE_BODY_TYPOGRAPHY;
|
|
98
|
+
exports.TABLE_BORDER = TABLE_BORDER;
|
|
99
|
+
exports.TABLE_HEADER_COLORS = TABLE_HEADER_COLORS;
|
|
100
|
+
exports.TABLE_HEADER_LAYOUT = TABLE_HEADER_LAYOUT;
|
|
101
|
+
exports.TABLE_HEADER_RESIZING_BAR = TABLE_HEADER_RESIZING_BAR;
|
|
102
|
+
exports.TABLE_HEADER_TYPOGRAPHY = TABLE_HEADER_TYPOGRAPHY;
|
|
103
|
+
exports.TABLE_RADIUS = TABLE_RADIUS;
|
|
104
|
+
exports.resolveSortIconName = resolveSortIconName;
|
|
105
|
+
exports.resolveTableIconColor = resolveTableIconColor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CaGGRpd8.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: 'ff758fbab0a594c28968074a26ad92a28cd4850b', 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}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab) }, index.h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge !== undefined && tab.badge !== null && tab.badge !== '' && (index.h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
|
|
194
194
|
})));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CaGGRpd8.js');
|
|
4
4
|
|
|
5
5
|
const tag = {
|
|
6
6
|
xs: {
|
|
@@ -172,7 +172,7 @@ const SdTag = class {
|
|
|
172
172
|
render() {
|
|
173
173
|
const config = this.resolvedConfig;
|
|
174
174
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
175
|
-
return (index.h("span", { key: '
|
|
175
|
+
return (index.h("span", { key: '3e7a6602ee73f56e5709711ac735460230de7e58', class: "sd-tag", style: {
|
|
176
176
|
'--sd-tag-background': config.background,
|
|
177
177
|
'--sd-tag-content': config.content,
|
|
178
178
|
'--sd-tag-height': config.height,
|
|
@@ -182,7 +182,7 @@ const SdTag = class {
|
|
|
182
182
|
'--sd-tag-font-weight': config.fontWeight,
|
|
183
183
|
'--sd-tag-line-height': config.lineHeight,
|
|
184
184
|
'--sd-tag-radius': config.radius,
|
|
185
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '
|
|
185
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, index.h("span", { key: '8da56711cb12127f96195404799581480280507f', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
SdTag.style = sdTagCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CaGGRpd8.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}`;
|
|
@@ -13,14 +13,22 @@ const SdTd = class {
|
|
|
13
13
|
field;
|
|
14
14
|
rowKey;
|
|
15
15
|
align;
|
|
16
|
+
rowspan;
|
|
17
|
+
colspan;
|
|
16
18
|
handleFieldChange() {
|
|
17
19
|
this.syncSlotName();
|
|
20
|
+
this.syncSpanRegistration();
|
|
18
21
|
}
|
|
19
22
|
handleRowKeyChange() {
|
|
20
23
|
this.syncSlotName();
|
|
24
|
+
this.syncSpanRegistration();
|
|
25
|
+
}
|
|
26
|
+
handleSpanChange() {
|
|
27
|
+
this.syncSpanRegistration();
|
|
21
28
|
}
|
|
22
29
|
componentWillLoad() {
|
|
23
30
|
this.syncSlotName();
|
|
31
|
+
this.syncSpanRegistration();
|
|
24
32
|
// slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
|
|
25
33
|
const parentTr = this.el.parentElement;
|
|
26
34
|
if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
|
|
@@ -29,6 +37,44 @@ const SdTd = class {
|
|
|
29
37
|
}
|
|
30
38
|
componentDidLoad() {
|
|
31
39
|
this.syncSlotName();
|
|
40
|
+
this.syncSpanRegistration();
|
|
41
|
+
}
|
|
42
|
+
// React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
|
|
43
|
+
// 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
|
|
44
|
+
// 재연결 시점에도 등록 상태를 복구해야 rowspan/colspan이 유지된다.
|
|
45
|
+
connectedCallback() {
|
|
46
|
+
this.syncSpanRegistration();
|
|
47
|
+
}
|
|
48
|
+
disconnectedCallback() {
|
|
49
|
+
const table = this.findTable();
|
|
50
|
+
if (table?.unregisterSpanSync && this.field && this.rowKey != null) {
|
|
51
|
+
table.unregisterSpanSync(String(this.rowKey), this.field);
|
|
52
|
+
this.requestParentTrUpdate();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
findTable() {
|
|
56
|
+
return this.el.closest('sd-table');
|
|
57
|
+
}
|
|
58
|
+
requestParentTrUpdate() {
|
|
59
|
+
const parentTr = this.el.parentElement;
|
|
60
|
+
if (parentTr?.tagName?.toLowerCase() !== 'sd-tr')
|
|
61
|
+
return;
|
|
62
|
+
const trAny = parentTr;
|
|
63
|
+
if (typeof trAny.bumpSpansVersion === 'function') {
|
|
64
|
+
trAny.bumpSpansVersion();
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
index.forceUpdate(parentTr);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
syncSpanRegistration() {
|
|
71
|
+
const table = this.findTable();
|
|
72
|
+
if (!table?.registerSpanSync || !this.field || this.rowKey == null)
|
|
73
|
+
return;
|
|
74
|
+
const rs = Math.max(1, Math.floor(Number(this.rowspan) || 1));
|
|
75
|
+
const cs = Math.max(1, Math.floor(Number(this.colspan) || 1));
|
|
76
|
+
table.registerSpanSync(String(this.rowKey), this.field, rs, cs);
|
|
77
|
+
this.requestParentTrUpdate();
|
|
32
78
|
}
|
|
33
79
|
syncSlotName() {
|
|
34
80
|
const table = this.el.closest('sd-table');
|
|
@@ -42,7 +88,7 @@ const SdTd = class {
|
|
|
42
88
|
}
|
|
43
89
|
}
|
|
44
90
|
render() {
|
|
45
|
-
return (index.h(index.Host, { key: '
|
|
91
|
+
return (index.h(index.Host, { key: '1702396f538453cf26beb81b63926ea73b7baa89', class: { [`align-${this.align}`]: Boolean(this.align) } }, index.h("slot", { key: 'bd04afefd83178f48eb93b4e7d189386a817ff72' })));
|
|
46
92
|
}
|
|
47
93
|
static get watchers() { return {
|
|
48
94
|
"field": [{
|
|
@@ -50,6 +96,12 @@ const SdTd = class {
|
|
|
50
96
|
}],
|
|
51
97
|
"rowKey": [{
|
|
52
98
|
"handleRowKeyChange": 0
|
|
99
|
+
}],
|
|
100
|
+
"rowspan": [{
|
|
101
|
+
"handleSpanChange": 0
|
|
102
|
+
}],
|
|
103
|
+
"colspan": [{
|
|
104
|
+
"handleSpanChange": 0
|
|
53
105
|
}]
|
|
54
106
|
}; }
|
|
55
107
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CaGGRpd8.js');
|
|
4
4
|
|
|
5
5
|
const textLink = {
|
|
6
6
|
gap: "4",
|
|
@@ -73,16 +73,16 @@ const SdTextLink = class {
|
|
|
73
73
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
74
74
|
...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
|
|
75
75
|
};
|
|
76
|
-
return (index.h("span", { key: '
|
|
76
|
+
return (index.h("span", { key: '9bd62ac603764a5938f3c72bac3a8bf893dfb233', class: {
|
|
77
77
|
'sd-text-link': true,
|
|
78
78
|
'sd-text-link--disabled': this.disabled,
|
|
79
|
-
}, style: cssVars, onClick: this.handleClick }, this.icon && (index.h("sd-icon", { key: '
|
|
79
|
+
}, style: cssVars, onClick: this.handleClick }, this.icon && (index.h("sd-icon", { key: '9d63aea3c45c4962e5766e7059a166a85e7a357f', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), index.h("span", { key: 'dc73d60dd1e593c597a6b5dd977db380c21ff680', class: labelClassName }, this.label), this.useArrow && (index.h("span", { key: '2b25dfb6ae2f857b674341427f93ee34e4691893', class: "sd-text-link__arrow", style: {
|
|
80
80
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
81
81
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
82
82
|
display: 'inline-flex',
|
|
83
83
|
alignItems: 'center',
|
|
84
84
|
justifyContent: 'center',
|
|
85
|
-
} }, index.h("sd-icon", { key: '
|
|
85
|
+
} }, index.h("sd-icon", { key: 'a5c8fb48e66f4a6820da1a54cedd7b1a13c5dcec', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
SdTextLink.style = sdTextLinkCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CaGGRpd8.js');
|
|
4
4
|
var index$1 = require('./index-BUvXpPc3.js');
|
|
5
5
|
var component_textinput = require('./component.textinput-BpXDeZPD.js');
|
|
6
6
|
|
|
@@ -130,7 +130,7 @@ const SdTextarea = class {
|
|
|
130
130
|
'--sd-system-size-field-sm-height': 'auto',
|
|
131
131
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
132
132
|
};
|
|
133
|
-
return (index.h("sd-field", { key: '
|
|
133
|
+
return (index.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 }, index.h("div", { key: 'a36ffabff714596bf780f2a63ccfde3e02eadda7', class: "sd-textarea__content" }, index.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 }))));
|
|
134
134
|
}
|
|
135
135
|
static get watchers() { return {
|
|
136
136
|
"value": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CaGGRpd8.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: '925f4bf56626e8c722051afa65aa64f2a50007db', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
238
238
|
this.expanded = true;
|
|
239
239
|
this.pauseTimers();
|
|
240
240
|
}, onMouseLeave: () => {
|