@sellmate/design-system 1.0.66 → 1.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{component.textinput-C4SsDjA1.js → component.textinput-BpXDeZPD.js} +3 -2
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-nsQP24mV.js → index-B2QvhbC3.js} +1 -1
- package/dist/cjs/index.cjs.js +36 -41
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/modal-stack-DucFLON7.js +112 -0
- 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 +3 -3
- package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-button_4.cjs.entry.js +22 -17
- 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 +1 -1
- package/dist/cjs/sd-chip.cjs.entry.js +312 -0
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +5 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker-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 +8 -19
- package/dist/cjs/sd-file-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-form.cjs.entry.js +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +6 -6
- package/dist/cjs/sd-guide.cjs.entry.js +167 -34
- package/dist/cjs/sd-input_2.cjs.entry.js +7 -7
- package/dist/cjs/sd-loading-container.cjs.entry.js +4 -4
- package/dist/cjs/sd-modal-container.cjs.entry.js +130 -151
- package/dist/cjs/sd-number-input.cjs.entry.js +4 -4
- package/dist/cjs/sd-pagination_2.cjs.entry.js +116 -42
- package/dist/cjs/sd-popover.cjs.entry.js +4 -4
- package/dist/cjs/sd-portal.cjs.entry.js +4 -4
- package/dist/cjs/sd-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-radio-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio.cjs.entry.js +18 -27
- package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +4 -4
- package/dist/cjs/sd-select-group.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-option-group.cjs.entry.js +4 -4
- package/dist/cjs/sd-select-v2-list-item_4.cjs.entry.js +29 -24
- package/dist/cjs/sd-select.cjs.entry.js +2 -2
- package/dist/cjs/sd-switch.cjs.entry.js +2 -2
- package/dist/cjs/sd-table.cjs.entry.js +6 -6
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.cjs.entry.js +3 -3
- package/dist/cjs/sd-tbody.cjs.entry.js +2 -2
- package/dist/cjs/sd-td.cjs.entry.js +2 -2
- package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
- package/dist/cjs/sd-textarea.cjs.entry.js +3 -3
- package/dist/cjs/sd-thead.cjs.entry.js +4 -4
- package/dist/cjs/sd-toast-container.cjs.entry.js +3 -3
- package/dist/cjs/sd-toast.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
- package/dist/cjs/sd-tr.cjs.entry.js +3 -3
- package/dist/cjs/system-C89o3A9Z.js +16 -0
- package/dist/cjs/table-test.cjs.entry.js +2 -2
- package/dist/cjs/{tooltipArrow-DhevfDPX.js → tooltipArrow-Xkv-p1bY.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- 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-chip/sd-chip.config.js +37 -0
- package/dist/collection/components/sd-chip/sd-chip.css +56 -0
- package/dist/collection/components/sd-chip/sd-chip.js +544 -0
- 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 +4 -4
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +1 -1
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +1 -1
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +12 -8
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +5 -5
- package/dist/collection/components/sd-guide/sd-guide.config.js +48 -0
- package/dist/collection/components/sd-guide/sd-guide.css +58 -29
- package/dist/collection/components/sd-guide/sd-guide.js +69 -40
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-container/sd-loading-container.config.js +1 -1
- package/dist/collection/components/sd-loading-container/sd-loading-container.css +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 +22 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.css +11 -10
- package/dist/collection/components/sd-modal-container/sd-modal-container.js +154 -160
- package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
- package/dist/collection/components/sd-pagination/sd-pagination.config.js +25 -0
- package/dist/collection/components/sd-pagination/sd-pagination.css +69 -53
- package/dist/collection/components/sd-pagination/sd-pagination.js +53 -37
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +4 -4
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-radio/sd-radio.config.js +6 -5
- package/dist/collection/components/sd-radio/sd-radio.css +2 -2
- package/dist/collection/components/sd-radio/sd-radio.js +2 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +3 -3
- package/dist/collection/components/sd-select/sd-select.js +1 -1
- package/dist/collection/components/sd-select-group/sd-select-group.js +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +1 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.css +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js +4 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js +4 -4
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css +5 -5
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +2 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2.config.js +5 -4
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +3 -3
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +5 -5
- package/dist/collection/components/sd-table/sd-table.stories.helpers.js +146 -0
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +1 -1
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +2 -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.config.js +1 -1
- 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/components/table-test/table-test.js +1 -1
- package/dist/collection/utils/modal-stack.js +109 -0
- package/dist/collection/utils/modal.js +17 -23
- package/dist/components/index.js +1 -1
- package/dist/components/p-B1j9ZWLJ.js +1 -0
- package/dist/components/p-BBluw-CU.js +1 -0
- package/dist/components/{p-D9FDutsj.js → p-BFd54Imz.js} +1 -1
- package/dist/components/{p-BH3z_vB9.js → p-BPXQ6DXz.js} +1 -1
- package/dist/components/p-BaHpEtbz.js +1 -0
- package/dist/components/{p-B6RvTdqt.js → p-BlqLear7.js} +1 -1
- package/dist/components/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
- package/dist/components/{p-puZ1xlrr.js → p-BylHC3lv.js} +1 -1
- package/dist/components/p-C-txBx-h.js +1 -0
- package/dist/components/p-C0VkfKIA.js +1 -0
- package/dist/components/p-C4uWhzoG.js +1 -0
- package/dist/components/{p-CAeSM6Ov.js → p-CEeNVTzW.js} +1 -1
- package/dist/components/{p-6cueWz-l.js → p-CLZ8NObl.js} +1 -1
- package/dist/components/{p-DRY8HJ-T.js → p-COM91Bya.js} +1 -1
- package/dist/components/p-CS62OEXf.js +1 -0
- package/dist/components/{p-CGXwtYAv.js → p-CX0V7awA.js} +1 -1
- package/dist/components/{p-C2r48NLP.js → p-Cb1M05mf.js} +1 -1
- package/dist/components/{p-Cpu_hXwN.js → p-Cj4NAUzE.js} +1 -1
- package/dist/components/{p-B6OgnOKC.js → p-CsPyZohK.js} +1 -1
- package/dist/components/{p-Bh548Ckv.js → p-CsVPC3FD.js} +1 -1
- package/dist/components/{p-BLC3AWW8.js → p-Csfk-CtX.js} +1 -1
- package/dist/components/{p-CRl8Anfr.js → p-CtrDZYN5.js} +1 -1
- package/dist/components/p-D21iKAp7.js +1 -0
- package/dist/components/{p-TMuoVuhE.js → p-D6C4-apu.js} +1 -1
- package/dist/components/{p-Cr_74QR7.js → p-DGPGMB_Z.js} +1 -1
- package/dist/components/{p-h6zSUtA2.js → p-DIro-Wat.js} +1 -1
- package/dist/components/{p-AKpbKrkW.js → p-DPCj-bFr.js} +1 -1
- package/dist/components/{p-fcZvjHk_.js → p-DQLyH3dr.js} +1 -1
- package/dist/components/p-DRVnqiWc.js +1 -0
- package/dist/components/{p-HsTw_qYU.js → p-DWW5xr6r.js} +1 -1
- package/dist/components/p-D_lyw4rN.js +1 -0
- package/dist/components/{p-DXtyg5eK.js → p-Diis5oCN.js} +1 -1
- package/dist/components/{p-BdsI1E5l.js → p-DlkxQ9Jn.js} +1 -1
- package/dist/components/{p-Cpg2hVm3.js → p-N_EbEY8s.js} +1 -1
- package/dist/components/{p-CpclstHV.js → p-T5BGXHZg.js} +1 -1
- package/dist/components/{p-CGssy8eb.js → p-YgnF5oje.js} +1 -1
- package/dist/components/{p-Cc7ZBscb.js → p-z9MoRjYX.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.d.ts +11 -0
- package/dist/components/sd-chip.js +1 -0
- 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-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-progress.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-dropdown.js +1 -1
- package/dist/components/sd-select-group.js +1 -1
- package/dist/components/sd-select-multiple-group.js +1 -1
- package/dist/components/sd-select-multiple.js +1 -1
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select-search-input.js +1 -1
- package/dist/components/sd-select-v2-list-item-search.js +1 -1
- package/dist/components/sd-select-v2-list-item.js +1 -1
- package/dist/components/sd-select-v2-listbox.js +1 -1
- package/dist/components/sd-select-v2-trigger.js +1 -1
- package/dist/components/sd-select-v2.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/components/table-test.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-e5f71ec0.entry.js → p-002e10ac.entry.js} +1 -1
- package/dist/design-system/p-01ac7743.entry.js +1 -0
- package/dist/design-system/{p-f3d082c8.entry.js → p-07736d67.entry.js} +1 -1
- package/dist/design-system/p-0929f910.entry.js +1 -0
- package/dist/design-system/{p-867ec4ee.entry.js → p-0b216b11.entry.js} +1 -1
- package/dist/design-system/{p-4dcadde3.entry.js → p-0bffdbf4.entry.js} +1 -1
- package/dist/design-system/{p-05ce3449.entry.js → p-0c98676e.entry.js} +1 -1
- package/dist/design-system/{p-9dd3c6a7.entry.js → p-0d485537.entry.js} +1 -1
- package/dist/design-system/{p-ed61fe19.entry.js → p-16eae7ae.entry.js} +1 -1
- package/dist/design-system/{p-03099a57.entry.js → p-1a455448.entry.js} +1 -1
- package/dist/design-system/{p-3d341993.entry.js → p-1b8e63a6.entry.js} +1 -1
- package/dist/design-system/p-23c31074.entry.js +1 -0
- package/dist/design-system/{p-96b14db1.entry.js → p-23ff6bee.entry.js} +1 -1
- package/dist/design-system/{p-8d2328ae.entry.js → p-2a4b6bc7.entry.js} +1 -1
- package/dist/design-system/{p-b81e0493.entry.js → p-2a663b3b.entry.js} +1 -1
- package/dist/design-system/{p-53bc77f8.entry.js → p-308c2a72.entry.js} +1 -1
- package/dist/design-system/{p-010e4f47.entry.js → p-33713805.entry.js} +1 -1
- package/dist/design-system/p-35b29182.entry.js +1 -0
- package/dist/design-system/{p-2ae97b1c.entry.js → p-449e58ee.entry.js} +1 -1
- package/dist/design-system/{p-5a63febd.entry.js → p-48f1f9ff.entry.js} +1 -1
- package/dist/design-system/{p-a27718c1.entry.js → p-4d434794.entry.js} +1 -1
- package/dist/design-system/p-4de3b6b1.entry.js +1 -0
- package/dist/design-system/p-4f9f25a1.entry.js +1 -0
- package/dist/design-system/{p-84a329fb.entry.js → p-59aa62ff.entry.js} +1 -1
- package/dist/design-system/{p-363da5ff.entry.js → p-5a0b0a1b.entry.js} +1 -1
- package/dist/design-system/p-60ece09d.entry.js +1 -0
- package/dist/design-system/{p-b1fe12f8.entry.js → p-641c2f3d.entry.js} +1 -1
- package/dist/design-system/{p-04be87a4.entry.js → p-64a56a4e.entry.js} +1 -1
- package/dist/design-system/{p-b60ae063.entry.js → p-6b2f6efb.entry.js} +1 -1
- package/dist/design-system/{p-fd296c73.entry.js → p-6b478f5c.entry.js} +1 -1
- package/dist/design-system/{p-d8eb17a8.entry.js → p-6ca6dfaf.entry.js} +1 -1
- package/dist/design-system/{p-d04551be.entry.js → p-6ef2d08f.entry.js} +1 -1
- package/dist/design-system/{p-c4e68815.entry.js → p-703eee55.entry.js} +1 -1
- package/dist/design-system/p-75c5e31b.entry.js +1 -0
- package/dist/design-system/p-7dd8beba.entry.js +1 -0
- package/dist/design-system/{p-73acee07.entry.js → p-7ef0c428.entry.js} +1 -1
- package/dist/design-system/{p-6644c4a0.entry.js → p-8281dc36.entry.js} +1 -1
- package/dist/design-system/p-87222184.entry.js +1 -0
- package/dist/design-system/{p-a129711d.entry.js → p-8cd1b533.entry.js} +1 -1
- package/dist/design-system/{p-40495e05.entry.js → p-92a52f89.entry.js} +1 -1
- package/dist/design-system/{p-4a53d7b0.entry.js → p-95d96917.entry.js} +1 -1
- package/dist/design-system/{p-e33389b8.entry.js → p-9ecde011.entry.js} +1 -1
- package/dist/design-system/{p-e78faea6.entry.js → p-9f0fe1f6.entry.js} +1 -1
- package/dist/design-system/p-BGyJgVXm.js +2 -0
- package/dist/design-system/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
- package/dist/design-system/p-C-txBx-h.js +1 -0
- package/dist/design-system/{p-COK6PVLC.js → p-C4tHYnB4.js} +1 -1
- package/dist/design-system/p-DRVnqiWc.js +1 -0
- package/dist/design-system/{p-3f79f1d1.entry.js → p-ade9319d.entry.js} +1 -1
- package/dist/design-system/{p-4128c17f.entry.js → p-aeadfb9c.entry.js} +1 -1
- package/dist/design-system/{p-b3279f07.entry.js → p-ca6b4d4a.entry.js} +1 -1
- package/dist/design-system/{p-0fbb6d92.entry.js → p-cdedac3c.entry.js} +1 -1
- package/dist/design-system/{p-09ba9dbc.entry.js → p-d43772c0.entry.js} +1 -1
- package/dist/design-system/{p-e0f9e5b5.entry.js → p-dfa716e0.entry.js} +1 -1
- package/dist/design-system/{p-d040ec6f.entry.js → p-e1288299.entry.js} +1 -1
- package/dist/design-system/{p-a983560d.entry.js → p-e1b307ee.entry.js} +1 -1
- package/dist/design-system/p-e3a1e677.entry.js +1 -0
- package/dist/design-system/p-ebc72b3f.entry.js +1 -0
- package/dist/design-system/{p-6c71d7b7.entry.js → p-fa888a37.entry.js} +1 -1
- package/dist/esm/{component.textinput-CJwbBrt5.js → component.textinput-ByhWX2NK.js} +3 -2
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-BqHL8W3c.js → index-BGyJgVXm.js} +1 -1
- package/dist/esm/index.js +36 -41
- package/dist/esm/loader.js +3 -3
- package/dist/esm/modal-stack-DRVnqiWc.js +105 -0
- 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 +3 -3
- package/dist/esm/sd-button-v2_2.entry.js +3 -3
- package/dist/esm/sd-button_4.entry.js +22 -17
- 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 +1 -1
- package/dist/esm/sd-chip.entry.js +310 -0
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +5 -4
- package/dist/esm/sd-date-box.entry.js +1 -1
- package/dist/esm/sd-date-picker-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 +5 -16
- package/dist/esm/sd-file-picker.entry.js +3 -3
- package/dist/esm/sd-form.entry.js +1 -1
- package/dist/esm/sd-ghost-button.entry.js +6 -6
- package/dist/esm/sd-guide.entry.js +167 -34
- package/dist/esm/sd-input_2.entry.js +7 -7
- package/dist/esm/sd-loading-container.entry.js +4 -4
- package/dist/esm/sd-modal-container.entry.js +130 -151
- package/dist/esm/sd-number-input.entry.js +4 -4
- package/dist/esm/sd-pagination_2.entry.js +116 -42
- package/dist/esm/sd-popover.entry.js +4 -4
- package/dist/esm/sd-portal.entry.js +4 -4
- package/dist/esm/sd-progress.entry.js +3 -3
- package/dist/esm/sd-radio-button.entry.js +2 -2
- package/dist/esm/sd-radio-group.entry.js +3 -3
- package/dist/esm/sd-radio.entry.js +18 -27
- package/dist/esm/sd-select-dropdown_2.entry.js +4 -4
- package/dist/esm/sd-select-group.entry.js +2 -2
- package/dist/esm/sd-select-multiple-group.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +2 -2
- package/dist/esm/sd-select-option-group.entry.js +4 -4
- package/dist/esm/sd-select-v2-list-item_4.entry.js +29 -24
- package/dist/esm/sd-select.entry.js +2 -2
- package/dist/esm/sd-switch.entry.js +2 -2
- package/dist/esm/sd-table.entry.js +6 -6
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js +3 -3
- package/dist/esm/sd-tbody.entry.js +2 -2
- package/dist/esm/sd-td.entry.js +2 -2
- package/dist/esm/sd-text-link.entry.js +4 -4
- package/dist/esm/sd-textarea.entry.js +3 -3
- package/dist/esm/sd-thead.entry.js +4 -4
- package/dist/esm/sd-toast-container.entry.js +3 -3
- package/dist/esm/sd-toast.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +2 -2
- package/dist/esm/sd-tr.entry.js +3 -3
- package/dist/esm/system-C-txBx-h.js +14 -0
- package/dist/esm/table-test.entry.js +2 -2
- package/dist/esm/{tooltipArrow-BcsrQx1U.js → tooltipArrow-BAjP9_Hx.js} +1 -1
- package/dist/types/components/sd-chip/sd-chip.config.d.ts +36 -0
- package/dist/types/components/sd-chip/sd-chip.d.ts +47 -0
- package/dist/types/components/sd-guide/sd-guide.config.d.ts +44 -0
- package/dist/types/components/sd-guide/sd-guide.d.ts +3 -4
- package/dist/types/components/sd-loading-container/sd-loading-container.config.d.ts +1 -1
- package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -0
- package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +12 -16
- package/dist/types/components/sd-pagination/sd-pagination.config.d.ts +23 -0
- package/dist/types/components/sd-pagination/sd-pagination.d.ts +3 -3
- package/dist/types/components/sd-radio/sd-radio.config.d.ts +1 -0
- package/dist/types/components/sd-select-v2/sd-select-v2.config.d.ts +2 -1
- package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +29 -0
- package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +1 -1
- package/dist/types/components.d.ts +134 -16
- package/dist/types/utils/modal-stack.d.ts +17 -0
- package/hydrate/index.js +1004 -385
- package/hydrate/index.mjs +1004 -385
- package/package.json +1 -1
- package/dist/components/p-6LkBUj0w.js +0 -1
- package/dist/components/p-B1S4ybd6.js +0 -1
- package/dist/components/p-CU095QAR.js +0 -1
- package/dist/components/p-DBnszF5F.js +0 -1
- package/dist/components/p-DpsDTjcN.js +0 -1
- package/dist/components/p-DuYi4aqj.js +0 -1
- package/dist/components/p-VXLJLI30.js +0 -1
- package/dist/components/p-kZ5N_lFC.js +0 -1
- package/dist/design-system/p-12a03c88.entry.js +0 -1
- package/dist/design-system/p-15cda79c.entry.js +0 -1
- package/dist/design-system/p-2f64dd95.entry.js +0 -1
- package/dist/design-system/p-33e4ce64.entry.js +0 -1
- package/dist/design-system/p-7e09fdd5.entry.js +0 -1
- package/dist/design-system/p-8acf3b67.entry.js +0 -1
- package/dist/design-system/p-BqHL8W3c.js +0 -2
- package/dist/design-system/p-ae1800c0.entry.js +0 -1
- package/dist/design-system/p-b6e02544.entry.js +0 -1
- package/dist/design-system/p-cf1156cb.entry.js +0 -1
- package/dist/design-system/p-e1fdd540.entry.js +0 -1
- package/dist/design-system/p-f9b9204d.entry.js +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h } from './index-BGyJgVXm.js';
|
|
2
|
+
import { u as unregisterModal, r as registerModal, s as setModalInteractive, i as isTopInteractiveModal, a as requestCloseForModal } from './modal-stack-DRVnqiWc.js';
|
|
2
3
|
|
|
3
|
-
const sdModalContainerCss = () => `sd-modal-container{display:block}sd-modal-container .sd-modal-container{position:fixed;inset:0;z-index:var(--sd-modal-container-z-index,
|
|
4
|
+
const sdModalContainerCss = () => `sd-modal-container{display:block}sd-modal-container .sd-modal-container{position:fixed;inset:0;z-index:var(--sd-modal-container-z-index, 997);pointer-events:none}sd-modal-container .sd-modal-container__layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}sd-modal-container .sd-modal-container__backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.4);opacity:0;transition:opacity 0.3s ease-out;pointer-events:none}sd-modal-container .sd-modal-container__backdrop--visible{opacity:1;pointer-events:auto}sd-modal-container .sd-modal-container__modal{position:relative;z-index:1;opacity:0;transform:scale(0);pointer-events:auto;transition:opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)}sd-modal-container .sd-modal-container__modal--visible{opacity:1;transform:scale(1)}sd-modal-container .sd-modal-container__modal--shake{animation:modal-shake 0.3s ease-out}@keyframes modal-shake{0%,100%{transform:scale(1)}25%{transform:scale(1.03)}50%{transform:scale(0.97)}75%{transform:scale(1.01)}}`;
|
|
4
5
|
|
|
5
6
|
let modalIdCounter = 0;
|
|
6
7
|
const ANIMATION_DURATION = 350;
|
|
@@ -9,31 +10,21 @@ const SdModalContainer = class {
|
|
|
9
10
|
registerInstance(this, hostRef);
|
|
10
11
|
}
|
|
11
12
|
get el() { return getElement(this); }
|
|
12
|
-
|
|
13
|
+
autoRemove = false;
|
|
14
|
+
entry;
|
|
13
15
|
isVisible = false;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
containerDismissTimerId;
|
|
17
|
-
previousBodyOverflow = null;
|
|
18
|
-
bodyScrollLocked = false;
|
|
19
|
-
handleKeydown(e) {
|
|
20
|
-
if (e.key === 'Escape') {
|
|
21
|
-
const top = this.getTopEntry();
|
|
22
|
-
if (!top)
|
|
23
|
-
return;
|
|
24
|
-
if (top.persistent) {
|
|
25
|
-
this.shakeModal(top.modalEl);
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
this.dispatchClose(top.modalEl);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
16
|
+
backdropVisible = false;
|
|
17
|
+
layerRef;
|
|
31
18
|
async open(options, modalRef) {
|
|
32
19
|
const id = `modal-${++modalIdCounter}`;
|
|
33
20
|
const modalEl = this.createConfirmModal(id, options);
|
|
34
21
|
this.attachModalEventListeners(id, modalEl);
|
|
35
|
-
this.
|
|
22
|
+
this.mountEntry({
|
|
23
|
+
id,
|
|
24
|
+
modalEl,
|
|
25
|
+
modalRef,
|
|
36
26
|
persistent: !!options.persistent,
|
|
27
|
+
closing: false,
|
|
37
28
|
});
|
|
38
29
|
return id;
|
|
39
30
|
}
|
|
@@ -41,8 +32,12 @@ const SdModalContainer = class {
|
|
|
41
32
|
const id = `modal-${++modalIdCounter}`;
|
|
42
33
|
const modalEl = this.createLoadingModal(id, options);
|
|
43
34
|
this.attachLoadingModalEventListeners(id, modalEl);
|
|
44
|
-
this.
|
|
35
|
+
this.mountEntry({
|
|
36
|
+
id,
|
|
37
|
+
modalEl,
|
|
38
|
+
modalRef,
|
|
45
39
|
persistent: !!options.persistent,
|
|
40
|
+
closing: false,
|
|
46
41
|
});
|
|
47
42
|
return id;
|
|
48
43
|
}
|
|
@@ -51,70 +46,118 @@ const SdModalContainer = class {
|
|
|
51
46
|
element.setAttribute('data-modal-id', id);
|
|
52
47
|
element.classList.add('sd-modal-container__modal');
|
|
53
48
|
this.attachModalEventListeners(id, element);
|
|
54
|
-
this.
|
|
49
|
+
this.mountEntry({
|
|
50
|
+
id,
|
|
51
|
+
modalEl: element,
|
|
52
|
+
modalRef,
|
|
55
53
|
persistent: !!options.persistent,
|
|
54
|
+
closing: false,
|
|
56
55
|
});
|
|
57
56
|
return id;
|
|
58
57
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
registerEntry(id, modalEl, modalRef, meta) {
|
|
74
|
-
if (this.containerDismissTimerId) {
|
|
75
|
-
clearTimeout(this.containerDismissTimerId);
|
|
76
|
-
this.containerDismissTimerId = undefined;
|
|
77
|
-
}
|
|
78
|
-
this.entries = [
|
|
79
|
-
...(this.entries ?? []),
|
|
80
|
-
{
|
|
81
|
-
id,
|
|
82
|
-
modalEl,
|
|
83
|
-
modalRef,
|
|
84
|
-
persistent: meta.persistent,
|
|
85
|
-
closing: false,
|
|
86
|
-
},
|
|
87
|
-
];
|
|
88
|
-
this.isVisible = true;
|
|
89
|
-
this.setBodyScrollLock(true);
|
|
90
|
-
requestAnimationFrame(() => {
|
|
91
|
-
if (!this.contentRef)
|
|
92
|
-
return;
|
|
93
|
-
this.contentRef.appendChild(modalEl);
|
|
94
|
-
this.waitForModalReady(modalEl).then(() => {
|
|
95
|
-
requestAnimationFrame(() => {
|
|
96
|
-
const currentEntry = (this.entries ?? []).find(item => item.id === id);
|
|
97
|
-
if (!currentEntry || currentEntry.closing || !modalEl.isConnected)
|
|
98
|
-
return;
|
|
99
|
-
this.isBackdropVisible = true;
|
|
100
|
-
modalEl.classList.add('sd-modal-container__modal--visible');
|
|
101
|
-
});
|
|
58
|
+
componentDidRender() {
|
|
59
|
+
if (!this.entry || this.entry.closing || !this.layerRef)
|
|
60
|
+
return;
|
|
61
|
+
if (this.entry.modalEl.isConnected)
|
|
62
|
+
return;
|
|
63
|
+
const { id, modalEl } = this.entry;
|
|
64
|
+
this.layerRef.appendChild(modalEl);
|
|
65
|
+
this.waitForModalReady(modalEl).then(() => {
|
|
66
|
+
requestAnimationFrame(() => {
|
|
67
|
+
if (!this.entry || this.entry.id !== id || this.entry.closing || !modalEl.isConnected)
|
|
68
|
+
return;
|
|
69
|
+
this.backdropVisible = true;
|
|
70
|
+
modalEl.classList.add('sd-modal-container__modal--visible');
|
|
102
71
|
});
|
|
103
72
|
});
|
|
104
73
|
}
|
|
74
|
+
disconnectedCallback() {
|
|
75
|
+
if (this.entry?.dismissTimerId)
|
|
76
|
+
clearTimeout(this.entry.dismissTimerId);
|
|
77
|
+
if (this.entry)
|
|
78
|
+
unregisterModal(this.entry.id);
|
|
79
|
+
}
|
|
105
80
|
async dismissById(id, reason) {
|
|
106
|
-
this.
|
|
81
|
+
if (this.entry?.id !== id)
|
|
82
|
+
return;
|
|
83
|
+
this.requestDismiss(reason);
|
|
107
84
|
}
|
|
108
85
|
async update(id, props) {
|
|
109
|
-
|
|
110
|
-
if (!entry || entry.closing)
|
|
86
|
+
if (!this.entry || this.entry.id !== id || this.entry.closing)
|
|
111
87
|
return;
|
|
112
|
-
const tag = entry.modalEl.tagName.toLowerCase();
|
|
88
|
+
const tag = this.entry.modalEl.tagName.toLowerCase();
|
|
113
89
|
if (tag === 'sd-loading-modal') {
|
|
114
|
-
this.applyLoadingProps(entry.modalEl, props);
|
|
90
|
+
this.applyLoadingProps(this.entry.modalEl, props);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
this.applyProps(this.entry.modalEl, props);
|
|
94
|
+
}
|
|
95
|
+
mountEntry(entry) {
|
|
96
|
+
if (this.entry) {
|
|
97
|
+
throw new Error('[sd-modal-container] This instance already manages an active modal.');
|
|
115
98
|
}
|
|
116
|
-
|
|
117
|
-
|
|
99
|
+
this.entry = entry;
|
|
100
|
+
this.backdropVisible = false;
|
|
101
|
+
this.isVisible = true;
|
|
102
|
+
registerModal({
|
|
103
|
+
id: entry.id,
|
|
104
|
+
persistent: entry.persistent,
|
|
105
|
+
requestClose: () => this.dispatchClose(),
|
|
106
|
+
shake: () => this.shakeModal(entry.modalEl),
|
|
107
|
+
setZIndex: zIndex => {
|
|
108
|
+
this.el.style.setProperty('--sd-modal-container-z-index', String(zIndex));
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
attachModalEventListeners(_id, modalEl) {
|
|
113
|
+
modalEl.addEventListener('sdOk', () => this.requestDismiss('confirm'));
|
|
114
|
+
modalEl.addEventListener('sdCancel', () => this.requestDismiss('cancel'));
|
|
115
|
+
modalEl.addEventListener('sdClose', () => this.requestDismiss('close'));
|
|
116
|
+
}
|
|
117
|
+
attachLoadingModalEventListeners(_id, modalEl) {
|
|
118
|
+
modalEl.addEventListener('sdClick', () => {
|
|
119
|
+
this.entry?.modalRef._triggerClick?.();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
dispatchClose() {
|
|
123
|
+
this.entry?.modalEl.dispatchEvent(new CustomEvent('sdClose'));
|
|
124
|
+
}
|
|
125
|
+
requestDismiss(reason) {
|
|
126
|
+
const currentEntry = this.entry;
|
|
127
|
+
if (!currentEntry || currentEntry.closing)
|
|
128
|
+
return;
|
|
129
|
+
currentEntry.modalEl.classList.remove('sd-modal-container__modal--visible');
|
|
130
|
+
const dismissTimerId = setTimeout(() => {
|
|
131
|
+
this.finalizeDismiss(currentEntry.id);
|
|
132
|
+
}, ANIMATION_DURATION);
|
|
133
|
+
setModalInteractive(currentEntry.id, false);
|
|
134
|
+
this.entry = {
|
|
135
|
+
...currentEntry,
|
|
136
|
+
closing: true,
|
|
137
|
+
dismissTimerId,
|
|
138
|
+
};
|
|
139
|
+
this.backdropVisible = false;
|
|
140
|
+
if (reason === 'confirm')
|
|
141
|
+
currentEntry.modalRef._triggerOk();
|
|
142
|
+
else if (reason === 'cancel')
|
|
143
|
+
currentEntry.modalRef._triggerCancel();
|
|
144
|
+
else if (reason === 'close')
|
|
145
|
+
currentEntry.modalRef._triggerClose();
|
|
146
|
+
}
|
|
147
|
+
finalizeDismiss(id) {
|
|
148
|
+
const currentEntry = this.entry;
|
|
149
|
+
if (!currentEntry || currentEntry.id !== id)
|
|
150
|
+
return;
|
|
151
|
+
if (currentEntry.dismissTimerId)
|
|
152
|
+
clearTimeout(currentEntry.dismissTimerId);
|
|
153
|
+
currentEntry.modalEl.remove();
|
|
154
|
+
unregisterModal(id);
|
|
155
|
+
currentEntry.modalRef._triggerDismissed();
|
|
156
|
+
this.entry = undefined;
|
|
157
|
+
this.backdropVisible = false;
|
|
158
|
+
this.isVisible = false;
|
|
159
|
+
if (this.autoRemove) {
|
|
160
|
+
this.el.remove();
|
|
118
161
|
}
|
|
119
162
|
}
|
|
120
163
|
createConfirmModal(id, options) {
|
|
@@ -136,6 +179,12 @@ const SdModalContainer = class {
|
|
|
136
179
|
this.setAttr(el, 'state', options.state);
|
|
137
180
|
if (this.hasOwnProp(options, 'message'))
|
|
138
181
|
this.setAttr(el, 'message', options.message);
|
|
182
|
+
if (this.hasOwnProp(options, 'useButton')) {
|
|
183
|
+
if (options.useButton)
|
|
184
|
+
el.setAttribute('use-button', '');
|
|
185
|
+
else
|
|
186
|
+
el.removeAttribute('use-button');
|
|
187
|
+
}
|
|
139
188
|
if (this.hasOwnProp(options, 'buttonLabel')) {
|
|
140
189
|
this.setAttr(el, 'button-label', options.buttonLabel);
|
|
141
190
|
}
|
|
@@ -176,14 +225,9 @@ const SdModalContainer = class {
|
|
|
176
225
|
el.tagContents = options.tagContents;
|
|
177
226
|
}
|
|
178
227
|
handleBackdropClick = () => {
|
|
179
|
-
|
|
180
|
-
if (!top)
|
|
228
|
+
if (!this.entry || !isTopInteractiveModal(this.entry.id))
|
|
181
229
|
return;
|
|
182
|
-
|
|
183
|
-
this.shakeModal(top.modalEl);
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
this.dispatchClose(top.modalEl);
|
|
230
|
+
requestCloseForModal(this.entry.id);
|
|
187
231
|
};
|
|
188
232
|
shakeModal(modalEl) {
|
|
189
233
|
const cls = 'sd-modal-container__modal--shake';
|
|
@@ -193,73 +237,6 @@ const SdModalContainer = class {
|
|
|
193
237
|
modalEl.classList.add(cls);
|
|
194
238
|
});
|
|
195
239
|
}
|
|
196
|
-
disconnectedCallback() {
|
|
197
|
-
(this.entries ?? []).forEach(entry => {
|
|
198
|
-
if (entry.dismissTimerId)
|
|
199
|
-
clearTimeout(entry.dismissTimerId);
|
|
200
|
-
});
|
|
201
|
-
if (this.containerDismissTimerId)
|
|
202
|
-
clearTimeout(this.containerDismissTimerId);
|
|
203
|
-
this.setBodyScrollLock(false);
|
|
204
|
-
}
|
|
205
|
-
setBodyScrollLock(lock) {
|
|
206
|
-
if (typeof document === 'undefined')
|
|
207
|
-
return;
|
|
208
|
-
if (lock === this.bodyScrollLocked)
|
|
209
|
-
return;
|
|
210
|
-
if (lock) {
|
|
211
|
-
this.previousBodyOverflow = document.body.style.overflow || '';
|
|
212
|
-
document.body.style.overflow = 'hidden';
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
215
|
-
document.body.style.overflow = this.previousBodyOverflow ?? '';
|
|
216
|
-
this.previousBodyOverflow = null;
|
|
217
|
-
}
|
|
218
|
-
this.bodyScrollLocked = lock;
|
|
219
|
-
}
|
|
220
|
-
getTopEntry() {
|
|
221
|
-
return [...(this.entries ?? [])].reverse().find(entry => !entry.closing);
|
|
222
|
-
}
|
|
223
|
-
requestDismiss(id, reason) {
|
|
224
|
-
const entry = (this.entries ?? []).find(item => item.id === id);
|
|
225
|
-
if (!entry || entry.closing)
|
|
226
|
-
return;
|
|
227
|
-
entry.modalEl.classList.remove('sd-modal-container__modal--visible');
|
|
228
|
-
const remainingActive = (this.entries ?? []).filter(item => item.id !== id && !item.closing);
|
|
229
|
-
if (remainingActive.length === 0) {
|
|
230
|
-
this.isBackdropVisible = false;
|
|
231
|
-
}
|
|
232
|
-
const dismissTimerId = setTimeout(() => {
|
|
233
|
-
this.finalizeDismiss(id);
|
|
234
|
-
}, ANIMATION_DURATION);
|
|
235
|
-
this.entries = (this.entries ?? []).map(item => item.id === id ? { ...item, closing: true, dismissTimerId } : item);
|
|
236
|
-
if (reason === 'confirm')
|
|
237
|
-
entry.modalRef._triggerOk();
|
|
238
|
-
else if (reason === 'cancel')
|
|
239
|
-
entry.modalRef._triggerCancel();
|
|
240
|
-
else if (reason === 'close')
|
|
241
|
-
entry.modalRef._triggerClose();
|
|
242
|
-
}
|
|
243
|
-
finalizeDismiss(id) {
|
|
244
|
-
const entry = (this.entries ?? []).find(item => item.id === id);
|
|
245
|
-
if (!entry)
|
|
246
|
-
return;
|
|
247
|
-
if (entry.dismissTimerId)
|
|
248
|
-
clearTimeout(entry.dismissTimerId);
|
|
249
|
-
entry.modalEl.remove();
|
|
250
|
-
const nextEntries = (this.entries ?? []).filter(item => item.id !== id);
|
|
251
|
-
this.entries = nextEntries;
|
|
252
|
-
if (nextEntries.length === 0) {
|
|
253
|
-
this.setBodyScrollLock(false);
|
|
254
|
-
this.containerDismissTimerId = setTimeout(() => {
|
|
255
|
-
if ((this.entries ?? []).length === 0) {
|
|
256
|
-
this.isVisible = false;
|
|
257
|
-
}
|
|
258
|
-
this.containerDismissTimerId = undefined;
|
|
259
|
-
}, ANIMATION_DURATION);
|
|
260
|
-
}
|
|
261
|
-
entry.modalRef._triggerDismissed();
|
|
262
|
-
}
|
|
263
240
|
waitForModalReady(modalEl) {
|
|
264
241
|
const componentOnReady = modalEl.componentOnReady;
|
|
265
242
|
if (typeof componentOnReady === 'function') {
|
|
@@ -280,12 +257,14 @@ const SdModalContainer = class {
|
|
|
280
257
|
el.setAttribute(name, value);
|
|
281
258
|
}
|
|
282
259
|
render() {
|
|
283
|
-
if (!this.isVisible)
|
|
260
|
+
if (!this.isVisible || !this.entry)
|
|
284
261
|
return null;
|
|
285
|
-
return (h("div", { class: "sd-modal-container" }, h("div", { class: {
|
|
262
|
+
return (h("div", { class: "sd-modal-container" }, h("div", { class: "sd-modal-container__layer", "data-modal-id": this.entry.id, ref: el => {
|
|
263
|
+
this.layerRef = el;
|
|
264
|
+
} }, h("div", { class: {
|
|
286
265
|
'sd-modal-container__backdrop': true,
|
|
287
|
-
'sd-modal-container__backdrop--visible': this.
|
|
288
|
-
}, onClick: this.handleBackdropClick })
|
|
266
|
+
'sd-modal-container__backdrop--visible': this.backdropVisible,
|
|
267
|
+
}, onClick: this.handleBackdropClick }))));
|
|
289
268
|
}
|
|
290
269
|
};
|
|
291
270
|
SdModalContainer.style = sdModalContainerCss();
|
|
@@ -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-BGyJgVXm.js';
|
|
2
2
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
3
|
|
|
4
4
|
const numberInput = {
|
|
@@ -382,12 +382,12 @@ const SdNumberInput = class {
|
|
|
382
382
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
383
383
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
384
384
|
};
|
|
385
|
-
return (h("sd-field", { key: '
|
|
385
|
+
return (h("sd-field", { key: 'edb2eaf473ba53fa340e39a350624e0a9e8b566e', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '408b984ca5c7f3edaf0afe4c56fab2901824b2de', class: "sd-number-input__content" }, this.useButton && (h("button", { key: 'da29f621914cbb7cac4c83f55056f52ef918f7c7', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, h("sd-icon", { key: 'a60c99bd949c2791608d269bc478b490dd4335e0', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
386
386
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
387
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '
|
|
387
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (h("span", { key: '3eae6cb2d277f3f830f7cb122b72cdcdedf57e10', class: "sd-number-input__prefix" }, this.inputPrefix)), h("input", { key: '19e42ab159a9df7721ca6ea5505d3a0aca2517c4', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
388
388
|
textAlign: this.useButton ? 'center' : 'right',
|
|
389
389
|
...this.inputStyle,
|
|
390
|
-
} }), this.inputSuffix && (h("span", { key: '
|
|
390
|
+
} }), this.inputSuffix && (h("span", { key: '5f9dc1e294a081cede120d9466d70910a9b1d6bb', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (h("button", { key: '50d96dd2556071480b17210b8db307ab4082c92b', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, h("sd-icon", { key: '1821a77886ac9dc169c8e2697282e813a334df35', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
391
391
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
392
392
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
393
393
|
}
|
|
@@ -1,16 +1,75 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, a as getElement } from './index-BGyJgVXm.js';
|
|
2
2
|
import { n as nanoid } from './index-CCwNgVmC.js';
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const pagination = {
|
|
5
|
+
height: "24",
|
|
6
|
+
paddingX: "6",
|
|
7
|
+
radius: "6",
|
|
8
|
+
gap: "12",
|
|
9
|
+
move: {
|
|
10
|
+
gap: "4"
|
|
11
|
+
},
|
|
12
|
+
icon: "12",
|
|
13
|
+
typography: {
|
|
14
|
+
"default": {
|
|
15
|
+
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",
|
|
16
|
+
fontSize: "12",
|
|
17
|
+
fontWeight: "500",
|
|
18
|
+
lineHeight: "20"},
|
|
19
|
+
selected: {
|
|
20
|
+
fontWeight: "700"}
|
|
21
|
+
},
|
|
22
|
+
item: {
|
|
23
|
+
bg: {
|
|
24
|
+
hover: "#EEEEEE",
|
|
25
|
+
selected: "#E6F1FF"
|
|
26
|
+
},
|
|
27
|
+
content: {
|
|
28
|
+
"default": "#555555",
|
|
29
|
+
hover: "#004290",
|
|
30
|
+
selected: "#004290"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var paginationTokens = {
|
|
35
|
+
pagination: pagination
|
|
36
|
+
};
|
|
5
37
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
38
|
+
const PAGINATION_LAYOUT = {
|
|
39
|
+
height: `${paginationTokens.pagination.height}px`,
|
|
40
|
+
paddingX: `${paginationTokens.pagination.paddingX}px`,
|
|
41
|
+
radius: `${paginationTokens.pagination.radius}px`,
|
|
42
|
+
gap: `${paginationTokens.pagination.gap}px`,
|
|
43
|
+
moveGap: `${paginationTokens.pagination.move.gap}px`,
|
|
44
|
+
iconSize: Number(paginationTokens.pagination.icon),
|
|
45
|
+
};
|
|
46
|
+
const PAGINATION_TYPOGRAPHY = {
|
|
47
|
+
fontFamily: paginationTokens.pagination.typography.default.fontFamily,
|
|
48
|
+
fontSize: `${paginationTokens.pagination.typography.default.fontSize}px`,
|
|
49
|
+
lineHeight: `${paginationTokens.pagination.typography.default.lineHeight}px`,
|
|
50
|
+
fontWeightDefault: paginationTokens.pagination.typography.default.fontWeight,
|
|
51
|
+
fontWeightSelected: paginationTokens.pagination.typography.selected.fontWeight,
|
|
12
52
|
};
|
|
53
|
+
const PAGINATION_COLORS = {
|
|
54
|
+
contentDefault: paginationTokens.pagination.item.content.default,
|
|
55
|
+
contentHover: paginationTokens.pagination.item.content.hover,
|
|
56
|
+
contentSelected: paginationTokens.pagination.item.content.selected,
|
|
57
|
+
bgHover: paginationTokens.pagination.item.bg.hover,
|
|
58
|
+
bgSelected: paginationTokens.pagination.item.bg.selected,
|
|
59
|
+
// TODO: 토큰 반영 후 교체 — nav 화살표 색상은 현재 토큰에 없음
|
|
60
|
+
iconDefault: '#888888',
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const sdPaginationCss = () => `sd-pagination{display:inline-flex}.sd-pagination{display:inline-flex;align-items:center;gap:var(--sd-pagination-gap);font-family:var(--sd-pagination-font-family)}.sd-pagination__group{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap);min-width:calc(var(--sd-pagination-height) * 2 + var(--sd-pagination-move-gap))}.sd-pagination__group--prev{justify-content:flex-end}.sd-pagination__group--next{justify-content:flex-start}.sd-pagination__numbers{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap)}.sd-pagination__nav{display:inline-flex;align-items:center;justify-content:center;width:var(--sd-pagination-height);height:var(--sd-pagination-height);padding:0;background:transparent;border:0;border-radius:var(--sd-pagination-radius);cursor:pointer;outline:none}.sd-pagination__nav:hover{background-color:var(--sd-pagination-bg-hover)}.sd-pagination__item{display:inline-flex;align-items:center;justify-content:center;width:var(--sd-pagination-item-width);height:var(--sd-pagination-height);padding:0 var(--sd-pagination-padding-x);background:transparent;border:0;border-radius:var(--sd-pagination-radius);color:var(--sd-pagination-content);font-size:var(--sd-pagination-font-size);font-weight:var(--sd-pagination-font-weight-default);line-height:var(--sd-pagination-line-height);cursor:pointer;outline:none;box-sizing:border-box}.sd-pagination__item:hover{background-color:var(--sd-pagination-bg-hover);color:var(--sd-pagination-content-hover)}.sd-pagination__item--selected{background-color:var(--sd-pagination-bg-selected);color:var(--sd-pagination-content-selected);font-weight:var(--sd-pagination-font-weight-selected);cursor:default}.sd-pagination__item--selected:hover{background-color:var(--sd-pagination-bg-selected);color:var(--sd-pagination-content-selected)}.sd-pagination__info{display:inline-flex;align-items:center;gap:var(--sd-pagination-move-gap);height:var(--sd-pagination-height);padding:0 var(--sd-pagination-padding-x);color:var(--sd-pagination-content);font-size:var(--sd-pagination-font-size);font-weight:var(--sd-pagination-font-weight-default);line-height:var(--sd-pagination-line-height)}.sd-pagination__current{color:var(--sd-pagination-content-selected);font-weight:var(--sd-pagination-font-weight-selected)}`;
|
|
64
|
+
|
|
13
65
|
const PER_PAGE = 10;
|
|
66
|
+
const BUTTON_WIDTH = {
|
|
67
|
+
1: 24,
|
|
68
|
+
2: 34,
|
|
69
|
+
3: 40,
|
|
70
|
+
4: 48,
|
|
71
|
+
5: 56,
|
|
72
|
+
};
|
|
14
73
|
const SdPagination = class {
|
|
15
74
|
constructor(hostRef) {
|
|
16
75
|
registerInstance(this, hostRef);
|
|
@@ -20,13 +79,6 @@ const SdPagination = class {
|
|
|
20
79
|
lastPage = 1;
|
|
21
80
|
simple = false;
|
|
22
81
|
pageChange;
|
|
23
|
-
get paginationClasses() {
|
|
24
|
-
const classes = ['sd-pagination'];
|
|
25
|
-
if (this.simple) {
|
|
26
|
-
classes.push('sd-pagination--simple');
|
|
27
|
-
}
|
|
28
|
-
return classes.join(' ');
|
|
29
|
-
}
|
|
30
82
|
get pageNumbers() {
|
|
31
83
|
const start = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
|
|
32
84
|
const end = Math.min(start + PER_PAGE - 1, this.lastPage);
|
|
@@ -37,51 +89,73 @@ const SdPagination = class {
|
|
|
37
89
|
const maxPageLength = lastPageNum.toString().length;
|
|
38
90
|
return BUTTON_WIDTH[maxPageLength] || BUTTON_WIDTH[1];
|
|
39
91
|
}
|
|
40
|
-
|
|
92
|
+
get isFirstGroup() {
|
|
93
|
+
return this.currentPage <= PER_PAGE;
|
|
94
|
+
}
|
|
95
|
+
get isLastGroup() {
|
|
96
|
+
const startPageGroup = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
|
|
97
|
+
return startPageGroup + PER_PAGE - 1 >= this.lastPage;
|
|
98
|
+
}
|
|
99
|
+
handlePageChange = (page) => {
|
|
41
100
|
if (page < 1 || page > this.lastPage)
|
|
42
101
|
return;
|
|
43
102
|
this.currentPage = page;
|
|
44
103
|
this.pageChange.emit(page);
|
|
45
|
-
}
|
|
46
|
-
handleGroupChange(direction) {
|
|
104
|
+
};
|
|
105
|
+
handleGroupChange = (direction) => {
|
|
47
106
|
const delta = direction === 'forward' ? PER_PAGE : -PER_PAGE;
|
|
48
107
|
const newPage = Math.min(Math.max(this.currentPage + delta, 1), this.lastPage);
|
|
49
108
|
this.handlePageChange(newPage);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return
|
|
53
|
-
}
|
|
54
|
-
get isLastGroup() {
|
|
55
|
-
const startPageGroup = Math.floor((this.currentPage - 1) / PER_PAGE) * PER_PAGE + 1;
|
|
56
|
-
return startPageGroup + PER_PAGE - 1 >= this.lastPage;
|
|
109
|
+
};
|
|
110
|
+
renderNavButton(iconName, ariaLabel, onClick) {
|
|
111
|
+
return (h("button", { type: "button", class: "sd-pagination__nav", "aria-label": ariaLabel, onClick: onClick }, h("sd-icon", { name: iconName, size: PAGINATION_LAYOUT.iconSize, color: PAGINATION_COLORS.iconDefault })));
|
|
57
112
|
}
|
|
58
113
|
renderPrevButtons() {
|
|
59
114
|
if (this.simple) {
|
|
60
115
|
if (this.currentPage <= 1)
|
|
61
116
|
return null;
|
|
62
|
-
return (h(Fragment, null,
|
|
63
|
-
}
|
|
64
|
-
if (!this.isFirstGroup) {
|
|
65
|
-
return (h(Fragment, null, h("button", { "aria-label": "Go to first page", onClick: () => this.handlePageChange(1) }, h("sd-icon", { name: "chevronLeftEnd", size: "12", color: "#222222" })), h("button", { "aria-label": "Go to previous page group", onClick: () => this.handleGroupChange('backward') }, h("sd-icon", { name: "arrowLeft", size: "12", color: "#222222" }))));
|
|
117
|
+
return (h(Fragment, null, this.renderNavButton('chevronLeftEnd', 'Go to first page', () => this.handlePageChange(1)), this.renderNavButton('chevronLeft', 'Go to previous page', () => this.handlePageChange(this.currentPage - 1))));
|
|
66
118
|
}
|
|
119
|
+
if (this.isFirstGroup)
|
|
120
|
+
return null;
|
|
121
|
+
return (h(Fragment, null, this.renderNavButton('chevronLeftEnd', 'Go to first page', () => this.handlePageChange(1)), this.renderNavButton('chevronLeft', 'Go to previous page group', () => this.handleGroupChange('backward'))));
|
|
67
122
|
}
|
|
68
123
|
renderNextButtons() {
|
|
69
124
|
if (this.simple) {
|
|
70
125
|
if (this.currentPage >= this.lastPage)
|
|
71
126
|
return null;
|
|
72
|
-
return (h(Fragment, null,
|
|
73
|
-
}
|
|
74
|
-
if (!this.isLastGroup) {
|
|
75
|
-
return (h(Fragment, null, h("button", { "aria-label": "Go to next page group", onClick: () => this.handleGroupChange('forward') }, h("sd-icon", { name: "arrowRight", size: "12", color: "#222222" })), h("button", { "aria-label": "Go to last page", onClick: () => this.handlePageChange(this.lastPage) }, h("sd-icon", { name: "chevronRightEnd", size: "12", color: "#222222" }))));
|
|
127
|
+
return (h(Fragment, null, this.renderNavButton('chevronRight', 'Go to next page', () => this.handlePageChange(this.currentPage + 1)), this.renderNavButton('chevronRightEnd', 'Go to last page', () => this.handlePageChange(this.lastPage))));
|
|
76
128
|
}
|
|
129
|
+
if (this.isLastGroup)
|
|
130
|
+
return null;
|
|
131
|
+
return (h(Fragment, null, this.renderNavButton('chevronRight', 'Go to next page group', () => this.handleGroupChange('forward')), this.renderNavButton('chevronRightEnd', 'Go to last page', () => this.handlePageChange(this.lastPage))));
|
|
77
132
|
}
|
|
78
133
|
render() {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
134
|
+
const cssVars = {
|
|
135
|
+
'--sd-pagination-height': PAGINATION_LAYOUT.height,
|
|
136
|
+
'--sd-pagination-padding-x': PAGINATION_LAYOUT.paddingX,
|
|
137
|
+
'--sd-pagination-radius': PAGINATION_LAYOUT.radius,
|
|
138
|
+
'--sd-pagination-gap': PAGINATION_LAYOUT.gap,
|
|
139
|
+
'--sd-pagination-move-gap': PAGINATION_LAYOUT.moveGap,
|
|
140
|
+
'--sd-pagination-font-family': PAGINATION_TYPOGRAPHY.fontFamily,
|
|
141
|
+
'--sd-pagination-font-size': PAGINATION_TYPOGRAPHY.fontSize,
|
|
142
|
+
'--sd-pagination-line-height': PAGINATION_TYPOGRAPHY.lineHeight,
|
|
143
|
+
'--sd-pagination-font-weight-default': PAGINATION_TYPOGRAPHY.fontWeightDefault,
|
|
144
|
+
'--sd-pagination-font-weight-selected': PAGINATION_TYPOGRAPHY.fontWeightSelected,
|
|
145
|
+
'--sd-pagination-content': PAGINATION_COLORS.contentDefault,
|
|
146
|
+
'--sd-pagination-content-hover': PAGINATION_COLORS.contentHover,
|
|
147
|
+
'--sd-pagination-content-selected': PAGINATION_COLORS.contentSelected,
|
|
148
|
+
'--sd-pagination-bg-hover': PAGINATION_COLORS.bgHover,
|
|
149
|
+
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
150
|
+
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
151
|
+
};
|
|
152
|
+
return (h("div", { key: '1f6d3909c5c7f17701c405f058bf999020d9424e', class: {
|
|
153
|
+
'sd-pagination': true,
|
|
154
|
+
'sd-pagination--simple': this.simple,
|
|
155
|
+
}, style: cssVars }, h("div", { key: '9faaf4f1033e406ecaad7ed593a1610bb7002631', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "sd-pagination__info" }, h("span", { class: "sd-pagination__current" }, this.currentPage), h("span", { class: "sd-pagination__divider" }, "/"), h("span", { class: "sd-pagination__last" }, this.lastPage))) : (h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
156
|
+
'sd-pagination__item': true,
|
|
157
|
+
'sd-pagination__item--selected': this.currentPage === n,
|
|
158
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), h("div", { key: 'c8d21679938032bee223f6dfefff3a87dc5badec', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
85
159
|
}
|
|
86
160
|
};
|
|
87
161
|
SdPagination.style = sdPaginationCss();
|
|
@@ -300,13 +374,13 @@ const SdSelectV2 = class {
|
|
|
300
374
|
this.closeDropdown();
|
|
301
375
|
},
|
|
302
376
|
};
|
|
303
|
-
return (h("sd-field", { key: '
|
|
377
|
+
return (h("sd-field", { key: 'ffca1287cefaeedf867a6b86a752942a1c8d1703', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
304
378
|
this.hovered = true;
|
|
305
379
|
}, onMouseLeave: () => {
|
|
306
380
|
this.hovered = false;
|
|
307
|
-
} }, h("div", { key: '
|
|
381
|
+
} }, h("div", { key: 'f53f38543b165040eb48236e2a25e43b78444350', class: "sd-select-v2", ref: el => {
|
|
308
382
|
this.triggerRef = el;
|
|
309
|
-
} }, h("sd-select-v2-trigger", { key: '
|
|
383
|
+
} }, h("sd-select-v2-trigger", { key: 'afd60ef0b492d9179318a5187565b45a58ef1ed5', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'e482c1fffc24e893fe1c04f136a116bac6c1b2e9', ...portalProps }, h("sd-select-v2-listbox", { key: 'c864fdef604eee7cea7c946de970e78b59e8b0da', name: this.name, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
310
384
|
}
|
|
311
385
|
static get watchers() { return {
|
|
312
386
|
"isOpen": [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h, F as Fragment } from './index-
|
|
2
|
-
import { T as TooltipArrow } from './tooltipArrow-
|
|
1
|
+
import { r as registerInstance, a as getElement, h, F as Fragment } from './index-BGyJgVXm.js';
|
|
2
|
+
import { T as TooltipArrow } from './tooltipArrow-BAjP9_Hx.js';
|
|
3
3
|
|
|
4
4
|
const popover = {
|
|
5
5
|
bg: "#07284A"};
|
|
@@ -54,14 +54,14 @@ const SdPopover = class {
|
|
|
54
54
|
this.showPopover = false;
|
|
55
55
|
};
|
|
56
56
|
render() {
|
|
57
|
-
return (h(Fragment, { key: '
|
|
57
|
+
return (h(Fragment, { key: '32e3a11baabd4f4fc8c570311b99b2113e4ce3b0' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onSdClick: () => (this.showPopover = !this.showPopover) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (this.showPopover = !this.showPopover) })), this.showPopover && (h("sd-floating-portal", { key: '8139e72f293319e4d5ed3fe67d4f47a03743b437', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement, offset: this.popoverOffset }, h("div", { key: 'fdb76f4a9a54be08fdf0d352ff389453840c4789', class: {
|
|
58
58
|
'sd-floating-menu': true,
|
|
59
59
|
'sd-floating-menu--popover': true,
|
|
60
60
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
61
61
|
[this.menuClass]: !!this.menuClass,
|
|
62
62
|
}, style: {
|
|
63
63
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
64
|
-
} }, h("i", { key: '
|
|
64
|
+
} }, h("i", { key: '94cb19bdf7182cd311800ac4d3fdf49c61db75fb', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '67394b2b751c485fc7198a10d54df2659c6f222b' })), h("div", { key: '1d6e143a931c24f28ef68afbfe7b84e73d3288db', class: "sd-floating-menu__content" }, this.menuTitle && h("div", { key: '33d47a87e6cab23131f360f7ea07809cec942ec0', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '28006b8958d1921eefa42c6282b8e735ae3e9367', class: "sd-floating-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '574604775790aa49591848eb5f86ca0c6735558f', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("sd-ghost-button", { key: '027260d65fc575f480ce23e081b8b80ac8a1daea', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.handleClose() })))))));
|
|
65
65
|
}
|
|
66
66
|
static get watchers() { return {
|
|
67
67
|
"show": [{
|