@sellmate/design-system 1.0.67 → 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-BpT5VmKY.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 +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 +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 +126 -155
- 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 +2 -2
- package/dist/cjs/sd-radio.cjs.entry.js +2 -2
- 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 +12 -16
- 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-C9i0ZsG_.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 +1 -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 +150 -164
- 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.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- 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.js +2 -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 +0 -1
- 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-DHh_uT9m.js → p-B1j9ZWLJ.js} +1 -1
- package/dist/components/{p-DPJPXCqf.js → p-BBluw-CU.js} +1 -1
- package/dist/components/{p-D74FHxKd.js → p-BFd54Imz.js} +1 -1
- package/dist/components/{p-IbLrnrk8.js → p-BPXQ6DXz.js} +1 -1
- package/dist/components/p-BaHpEtbz.js +1 -0
- package/dist/components/{p-DZJZLfsh.js → p-BlqLear7.js} +1 -1
- package/dist/components/{p-CJwbBrt5.js → p-ByhWX2NK.js} +1 -1
- package/dist/components/{p-ByYIyCZY.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-Ds4UCVE1.js → p-CEeNVTzW.js} +1 -1
- package/dist/components/{p-DDOw5GBw.js → p-CLZ8NObl.js} +1 -1
- package/dist/components/{p-tZWFjQm2.js → p-COM91Bya.js} +1 -1
- package/dist/components/{p-BH4I7hqf.js → p-CS62OEXf.js} +1 -1
- package/dist/components/{p-iWu6aGXE.js → p-CX0V7awA.js} +1 -1
- package/dist/components/{p-DlsWuYWL.js → p-Cb1M05mf.js} +1 -1
- package/dist/{design-system/p-CRTx3YEe.js → components/p-Cj4NAUzE.js} +1 -1
- package/dist/components/{p-1iOCtFn5.js → p-CsPyZohK.js} +1 -1
- package/dist/components/{p-DhkPKN1J.js → p-CsVPC3FD.js} +1 -1
- package/dist/components/{p-tvysh3yO.js → p-Csfk-CtX.js} +1 -1
- package/dist/components/{p-DqYRbHxW.js → p-CtrDZYN5.js} +1 -1
- package/dist/components/p-D21iKAp7.js +1 -0
- package/dist/components/{p-cNJ6VOYI.js → p-D6C4-apu.js} +1 -1
- package/dist/components/{p-V6yl4lMM.js → p-DGPGMB_Z.js} +1 -1
- package/dist/components/{p-CymMpTU-.js → p-DIro-Wat.js} +1 -1
- package/dist/components/{p-BstWg2vS.js → p-DPCj-bFr.js} +1 -1
- package/dist/components/{p-DLeCo2gh.js → p-DQLyH3dr.js} +1 -1
- package/dist/components/p-DRVnqiWc.js +1 -0
- package/dist/components/{p-C02KLCcO.js → p-DWW5xr6r.js} +1 -1
- package/dist/components/p-D_lyw4rN.js +1 -0
- package/dist/components/{p-DL69hClF.js → p-Diis5oCN.js} +1 -1
- package/dist/components/{p-BRRvU4ZQ.js → p-DlkxQ9Jn.js} +1 -1
- package/dist/components/{p-CkMs7IA8.js → p-N_EbEY8s.js} +1 -1
- package/dist/components/{p-hN9rpxkR.js → p-T5BGXHZg.js} +1 -1
- package/dist/components/{p-BF4hokOY.js → p-YgnF5oje.js} +1 -1
- package/dist/components/{p-CX2EDIQM.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-c44ba991.entry.js → p-002e10ac.entry.js} +1 -1
- package/dist/design-system/p-01ac7743.entry.js +1 -0
- package/dist/design-system/{p-244d2d6e.entry.js → p-07736d67.entry.js} +1 -1
- package/dist/design-system/p-0929f910.entry.js +1 -0
- package/dist/design-system/{p-b2b5b2d3.entry.js → p-0b216b11.entry.js} +1 -1
- package/dist/design-system/{p-5b2486c9.entry.js → p-0bffdbf4.entry.js} +1 -1
- package/dist/design-system/{p-e1c17466.entry.js → p-0c98676e.entry.js} +1 -1
- package/dist/design-system/{p-5224553e.entry.js → p-0d485537.entry.js} +1 -1
- package/dist/design-system/{p-7fe09661.entry.js → p-16eae7ae.entry.js} +1 -1
- package/dist/design-system/{p-aebf903f.entry.js → p-1a455448.entry.js} +1 -1
- package/dist/design-system/{p-10763304.entry.js → p-1b8e63a6.entry.js} +1 -1
- package/dist/design-system/{p-525aefd5.entry.js → p-23c31074.entry.js} +1 -1
- package/dist/design-system/{p-7cf63a80.entry.js → p-23ff6bee.entry.js} +1 -1
- package/dist/design-system/{p-87a23bd0.entry.js → p-2a4b6bc7.entry.js} +1 -1
- package/dist/design-system/{p-298d9b57.entry.js → p-2a663b3b.entry.js} +1 -1
- package/dist/design-system/{p-fa1072f7.entry.js → p-308c2a72.entry.js} +1 -1
- package/dist/design-system/{p-e9d36c02.entry.js → p-33713805.entry.js} +1 -1
- package/dist/design-system/p-35b29182.entry.js +1 -0
- package/dist/design-system/{p-9e0b944f.entry.js → p-449e58ee.entry.js} +1 -1
- package/dist/design-system/{p-73383b2f.entry.js → p-48f1f9ff.entry.js} +1 -1
- package/dist/design-system/{p-504fdb4e.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-40371bf6.entry.js → p-59aa62ff.entry.js} +1 -1
- package/dist/design-system/{p-7b433296.entry.js → p-5a0b0a1b.entry.js} +1 -1
- package/dist/design-system/p-60ece09d.entry.js +1 -0
- package/dist/design-system/{p-10ed0768.entry.js → p-641c2f3d.entry.js} +1 -1
- package/dist/design-system/{p-2841d5e1.entry.js → p-64a56a4e.entry.js} +1 -1
- package/dist/design-system/{p-dff0060e.entry.js → p-6b2f6efb.entry.js} +1 -1
- package/dist/design-system/{p-e1202ad3.entry.js → p-6b478f5c.entry.js} +1 -1
- package/dist/design-system/{p-6eb3462d.entry.js → p-6ca6dfaf.entry.js} +1 -1
- package/dist/design-system/{p-337267a7.entry.js → p-6ef2d08f.entry.js} +1 -1
- package/dist/design-system/{p-51fcc29f.entry.js → p-703eee55.entry.js} +1 -1
- package/dist/design-system/p-75c5e31b.entry.js +1 -0
- package/dist/design-system/{p-768efd5a.entry.js → p-7dd8beba.entry.js} +1 -1
- package/dist/design-system/{p-348eff76.entry.js → p-7ef0c428.entry.js} +1 -1
- package/dist/design-system/{p-d263d476.entry.js → p-8281dc36.entry.js} +1 -1
- package/dist/design-system/p-87222184.entry.js +1 -0
- package/dist/design-system/p-8cd1b533.entry.js +1 -0
- package/dist/design-system/{p-f9559741.entry.js → p-92a52f89.entry.js} +1 -1
- package/dist/design-system/{p-19257b97.entry.js → p-95d96917.entry.js} +1 -1
- package/dist/design-system/{p-fb7e8c54.entry.js → p-9ecde011.entry.js} +1 -1
- package/dist/design-system/{p-b4e56b67.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-C4tHYnB4.js +1 -0
- package/dist/design-system/p-DRVnqiWc.js +1 -0
- package/dist/design-system/{p-513d85e1.entry.js → p-ade9319d.entry.js} +1 -1
- package/dist/design-system/{p-671a9ca8.entry.js → p-aeadfb9c.entry.js} +1 -1
- package/dist/design-system/{p-b56ae914.entry.js → p-ca6b4d4a.entry.js} +1 -1
- package/dist/design-system/{p-b6e7b8c8.entry.js → p-cdedac3c.entry.js} +1 -1
- package/dist/design-system/{p-5982bcd0.entry.js → p-d43772c0.entry.js} +1 -1
- package/dist/design-system/{p-c6d2f909.entry.js → p-dfa716e0.entry.js} +1 -1
- package/dist/design-system/{p-a66529a5.entry.js → p-e1288299.entry.js} +1 -1
- package/dist/design-system/{p-2edd355b.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-e385cbf4.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-Dcpqhs6V.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 +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 +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 +126 -155
- 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 +2 -2
- package/dist/esm/sd-radio.entry.js +2 -2
- 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 +12 -16
- 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-fP-ISMAm.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-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-select-v2/sd-select-v2.config.d.ts +0 -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 +125 -16
- package/dist/types/utils/modal-stack.d.ts +17 -0
- package/hydrate/index.js +963 -354
- package/hydrate/index.mjs +963 -354
- package/package.json +1 -1
- package/dist/components/p-B_7ozne7.js +0 -1
- package/dist/components/p-BsPBl6g5.js +0 -1
- package/dist/components/p-BuSniZ67.js +0 -1
- package/dist/components/p-CCHce_Dt.js +0 -1
- package/dist/components/p-DNVUhw5A.js +0 -1
- package/dist/components/p-UR2Cf2Sm.js +0 -1
- package/dist/design-system/p-1645da95.entry.js +0 -1
- package/dist/design-system/p-3b8595de.entry.js +0 -1
- package/dist/design-system/p-3bbf23b4.entry.js +0 -1
- package/dist/design-system/p-4c55ba79.entry.js +0 -1
- package/dist/design-system/p-6e9d6063.entry.js +0 -1
- package/dist/design-system/p-87b2c270.entry.js +0 -1
- package/dist/design-system/p-9925857c.entry.js +0 -1
- package/dist/design-system/p-9cb3be8c.entry.js +0 -1
- package/dist/design-system/p-Dcpqhs6V.js +0 -2
- package/dist/design-system/p-e232fb11.entry.js +0 -1
- package/dist/design-system/p-e474fa8c.entry.js +0 -1
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { CHIP_COLORS, CHIP_LAYOUT, CHIP_TYPOGRAPHY } from "./sd-chip.config";
|
|
3
|
+
export class SdChip {
|
|
4
|
+
el;
|
|
5
|
+
name = '';
|
|
6
|
+
value = '';
|
|
7
|
+
error = false;
|
|
8
|
+
disabled = false;
|
|
9
|
+
placeholder = '';
|
|
10
|
+
rules = [];
|
|
11
|
+
internalValue = '';
|
|
12
|
+
isEditing = false;
|
|
13
|
+
update;
|
|
14
|
+
remove;
|
|
15
|
+
focus;
|
|
16
|
+
blur;
|
|
17
|
+
inputEl;
|
|
18
|
+
draftValue = '';
|
|
19
|
+
shouldInitInput = false;
|
|
20
|
+
valueChanged(newValue) {
|
|
21
|
+
const nextValue = newValue ?? '';
|
|
22
|
+
const wasEditing = this.isEditing;
|
|
23
|
+
this.internalValue = nextValue;
|
|
24
|
+
this.draftValue = nextValue;
|
|
25
|
+
if (wasEditing) {
|
|
26
|
+
this.isEditing = false;
|
|
27
|
+
this.shouldInitInput = false;
|
|
28
|
+
this.inputEl?.blur();
|
|
29
|
+
this.blur.emit();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
componentWillLoad() {
|
|
33
|
+
this.internalValue = this.value ?? '';
|
|
34
|
+
}
|
|
35
|
+
componentDidLoad() {
|
|
36
|
+
this.registerToForm();
|
|
37
|
+
}
|
|
38
|
+
disconnectedCallback() {
|
|
39
|
+
this.unregisterFromForm();
|
|
40
|
+
}
|
|
41
|
+
async sdValidate() {
|
|
42
|
+
if (!this.rules || this.rules.length === 0) {
|
|
43
|
+
this.error = false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
for (const rule of this.rules) {
|
|
47
|
+
const result = rule(this.internalValue ?? '');
|
|
48
|
+
if (result !== true) {
|
|
49
|
+
this.error = true;
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
this.error = false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
async sdReset() {
|
|
57
|
+
this.internalValue = '';
|
|
58
|
+
this.value = '';
|
|
59
|
+
this.error = false;
|
|
60
|
+
this.draftValue = '';
|
|
61
|
+
this.isEditing = false;
|
|
62
|
+
this.shouldInitInput = false;
|
|
63
|
+
}
|
|
64
|
+
async sdResetValidate() {
|
|
65
|
+
this.error = false;
|
|
66
|
+
}
|
|
67
|
+
async sdResetValidation() {
|
|
68
|
+
this.error = false;
|
|
69
|
+
}
|
|
70
|
+
async sdFocus() {
|
|
71
|
+
if (this.disabled)
|
|
72
|
+
return;
|
|
73
|
+
this.enterEditMode();
|
|
74
|
+
}
|
|
75
|
+
async sdGetNativeElement() {
|
|
76
|
+
return this.inputEl ?? null;
|
|
77
|
+
}
|
|
78
|
+
enterEditMode = () => {
|
|
79
|
+
if (this.disabled || this.isEditing)
|
|
80
|
+
return;
|
|
81
|
+
this.draftValue = this.internalValue;
|
|
82
|
+
this.shouldInitInput = true;
|
|
83
|
+
this.isEditing = true;
|
|
84
|
+
this.focus.emit();
|
|
85
|
+
};
|
|
86
|
+
commitEdit = async () => {
|
|
87
|
+
if (!this.isEditing)
|
|
88
|
+
return;
|
|
89
|
+
const next = (this.inputEl?.textContent ?? this.draftValue).trim();
|
|
90
|
+
const changed = next !== this.draftValue;
|
|
91
|
+
this.internalValue = next;
|
|
92
|
+
this.isEditing = false;
|
|
93
|
+
this.shouldInitInput = false;
|
|
94
|
+
this.value = next;
|
|
95
|
+
if (changed) {
|
|
96
|
+
this.update.emit(next);
|
|
97
|
+
}
|
|
98
|
+
await this.sdValidate();
|
|
99
|
+
this.blur.emit();
|
|
100
|
+
};
|
|
101
|
+
cancelEdit = () => {
|
|
102
|
+
if (!this.isEditing)
|
|
103
|
+
return;
|
|
104
|
+
this.internalValue = this.draftValue;
|
|
105
|
+
this.isEditing = false;
|
|
106
|
+
this.shouldInitInput = false;
|
|
107
|
+
this.blur.emit();
|
|
108
|
+
};
|
|
109
|
+
handleChipClick = () => {
|
|
110
|
+
if (this.disabled || this.isEditing)
|
|
111
|
+
return;
|
|
112
|
+
this.enterEditMode();
|
|
113
|
+
};
|
|
114
|
+
handleChipKeyDown = (event) => {
|
|
115
|
+
if (this.disabled || this.isEditing)
|
|
116
|
+
return;
|
|
117
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
118
|
+
event.preventDefault();
|
|
119
|
+
this.enterEditMode();
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
handleInputChange = (event) => {
|
|
123
|
+
const target = event.target;
|
|
124
|
+
this.internalValue = target.textContent ?? '';
|
|
125
|
+
};
|
|
126
|
+
handleInputKeyDown = (event) => {
|
|
127
|
+
if (event.key === 'Enter') {
|
|
128
|
+
event.preventDefault();
|
|
129
|
+
this.commitEdit();
|
|
130
|
+
}
|
|
131
|
+
else if (event.key === 'Escape') {
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
this.cancelEdit();
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
handleInputBlur = () => {
|
|
137
|
+
this.commitEdit();
|
|
138
|
+
};
|
|
139
|
+
handlePaste = (event) => {
|
|
140
|
+
event.preventDefault();
|
|
141
|
+
const text = event.clipboardData?.getData('text/plain') ?? '';
|
|
142
|
+
document.execCommand('insertText', false, text);
|
|
143
|
+
};
|
|
144
|
+
handleRemoveClick = (event) => {
|
|
145
|
+
event.stopPropagation();
|
|
146
|
+
if (this.disabled)
|
|
147
|
+
return;
|
|
148
|
+
this.remove.emit();
|
|
149
|
+
};
|
|
150
|
+
syncInputValue(value) {
|
|
151
|
+
if (!this.inputEl)
|
|
152
|
+
return;
|
|
153
|
+
this.inputEl.textContent = value;
|
|
154
|
+
const range = document.createRange();
|
|
155
|
+
range.selectNodeContents(this.inputEl);
|
|
156
|
+
range.collapse(false);
|
|
157
|
+
const selection = window.getSelection();
|
|
158
|
+
selection?.removeAllRanges();
|
|
159
|
+
selection?.addRange(range);
|
|
160
|
+
}
|
|
161
|
+
registerToForm() {
|
|
162
|
+
const formEl = this.el.closest('sd-form');
|
|
163
|
+
if (!formEl || typeof formEl.componentOnReady !== 'function')
|
|
164
|
+
return;
|
|
165
|
+
formEl.componentOnReady().then(form => {
|
|
166
|
+
form.sdRegisterField(this);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
unregisterFromForm() {
|
|
170
|
+
if (!this.name)
|
|
171
|
+
return;
|
|
172
|
+
const formEl = this.el.closest('sd-form');
|
|
173
|
+
formEl?.componentOnReady().then(form => {
|
|
174
|
+
form.sdUnregisterField(this.name);
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
componentDidUpdate() {
|
|
178
|
+
if (this.isEditing && this.inputEl && this.shouldInitInput) {
|
|
179
|
+
this.inputEl.focus();
|
|
180
|
+
this.syncInputValue(this.internalValue);
|
|
181
|
+
this.shouldInitInput = false;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
resolveState() {
|
|
185
|
+
if (this.isEditing)
|
|
186
|
+
return 'focus';
|
|
187
|
+
if (this.error)
|
|
188
|
+
return 'error';
|
|
189
|
+
return 'default';
|
|
190
|
+
}
|
|
191
|
+
render() {
|
|
192
|
+
const state = this.resolveState();
|
|
193
|
+
const typography = state === 'focus' ? CHIP_TYPOGRAPHY.focus : CHIP_TYPOGRAPHY.default;
|
|
194
|
+
const cssVars = {
|
|
195
|
+
'--sd-chip-height': CHIP_LAYOUT.height,
|
|
196
|
+
'--sd-chip-padding-x': CHIP_LAYOUT.paddingX,
|
|
197
|
+
'--sd-chip-gap': CHIP_LAYOUT.gap,
|
|
198
|
+
'--sd-chip-radius': CHIP_LAYOUT.radius,
|
|
199
|
+
'--sd-chip-border-width': CHIP_LAYOUT.borderWidth,
|
|
200
|
+
'--sd-chip-bg': CHIP_COLORS.bg[state],
|
|
201
|
+
'--sd-chip-content': CHIP_COLORS.content[state],
|
|
202
|
+
'--sd-chip-border-color': state === 'focus' ? CHIP_COLORS.border.focus : 'transparent',
|
|
203
|
+
'--sd-chip-font-family': typography.fontFamily,
|
|
204
|
+
'--sd-chip-font-size': typography.fontSize,
|
|
205
|
+
'--sd-chip-font-weight': typography.fontWeight,
|
|
206
|
+
'--sd-chip-line-height': typography.lineHeight,
|
|
207
|
+
};
|
|
208
|
+
return (h("span", { key: 'ec814d57fb4032de1370e56d61cd51b6e831312a', class: {
|
|
209
|
+
'sd-chip': true,
|
|
210
|
+
[`sd-chip--${state}`]: true,
|
|
211
|
+
'sd-chip--disabled': this.disabled,
|
|
212
|
+
'sd-chip--editable': !this.disabled,
|
|
213
|
+
}, role: this.disabled ? undefined : 'button', tabIndex: this.disabled || this.isEditing ? -1 : 0, "aria-disabled": this.disabled ? 'true' : undefined, style: cssVars, onClick: this.handleChipClick, onKeyDown: this.handleChipKeyDown }, this.isEditing ? (h("span", { key: "chip-input", ref: el => (this.inputEl = el), class: "sd-chip__input", contentEditable: !this.disabled, "data-placeholder": this.placeholder, spellcheck: false, onInput: this.handleInputChange, onKeyDown: this.handleInputKeyDown, onBlur: this.handleInputBlur, onPaste: this.handlePaste, onClick: event => event.stopPropagation() })) : ([
|
|
214
|
+
h("span", { key: "chip-label", class: "sd-chip__label" }, this.internalValue),
|
|
215
|
+
!this.disabled && (h("sd-ghost-button", { key: "chip-remove", class: "sd-chip__remove", icon: "close", size: "xxs", ariaLabel: "remove", onClick: this.handleRemoveClick })),
|
|
216
|
+
])));
|
|
217
|
+
}
|
|
218
|
+
static get is() { return "sd-chip"; }
|
|
219
|
+
static get originalStyleUrls() {
|
|
220
|
+
return {
|
|
221
|
+
"$": ["sd-chip.scss"]
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
static get styleUrls() {
|
|
225
|
+
return {
|
|
226
|
+
"$": ["sd-chip.css"]
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
static get properties() {
|
|
230
|
+
return {
|
|
231
|
+
"name": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "string",
|
|
236
|
+
"resolved": "string",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": ""
|
|
244
|
+
},
|
|
245
|
+
"getter": false,
|
|
246
|
+
"setter": false,
|
|
247
|
+
"reflect": false,
|
|
248
|
+
"attribute": "name",
|
|
249
|
+
"defaultValue": "''"
|
|
250
|
+
},
|
|
251
|
+
"value": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"mutable": true,
|
|
254
|
+
"complexType": {
|
|
255
|
+
"original": "string",
|
|
256
|
+
"resolved": "string",
|
|
257
|
+
"references": {}
|
|
258
|
+
},
|
|
259
|
+
"required": false,
|
|
260
|
+
"optional": false,
|
|
261
|
+
"docs": {
|
|
262
|
+
"tags": [],
|
|
263
|
+
"text": ""
|
|
264
|
+
},
|
|
265
|
+
"getter": false,
|
|
266
|
+
"setter": false,
|
|
267
|
+
"reflect": false,
|
|
268
|
+
"attribute": "value",
|
|
269
|
+
"defaultValue": "''"
|
|
270
|
+
},
|
|
271
|
+
"error": {
|
|
272
|
+
"type": "boolean",
|
|
273
|
+
"mutable": true,
|
|
274
|
+
"complexType": {
|
|
275
|
+
"original": "boolean",
|
|
276
|
+
"resolved": "boolean",
|
|
277
|
+
"references": {}
|
|
278
|
+
},
|
|
279
|
+
"required": false,
|
|
280
|
+
"optional": false,
|
|
281
|
+
"docs": {
|
|
282
|
+
"tags": [],
|
|
283
|
+
"text": ""
|
|
284
|
+
},
|
|
285
|
+
"getter": false,
|
|
286
|
+
"setter": false,
|
|
287
|
+
"reflect": false,
|
|
288
|
+
"attribute": "error",
|
|
289
|
+
"defaultValue": "false"
|
|
290
|
+
},
|
|
291
|
+
"disabled": {
|
|
292
|
+
"type": "boolean",
|
|
293
|
+
"mutable": false,
|
|
294
|
+
"complexType": {
|
|
295
|
+
"original": "boolean",
|
|
296
|
+
"resolved": "boolean",
|
|
297
|
+
"references": {}
|
|
298
|
+
},
|
|
299
|
+
"required": false,
|
|
300
|
+
"optional": false,
|
|
301
|
+
"docs": {
|
|
302
|
+
"tags": [],
|
|
303
|
+
"text": ""
|
|
304
|
+
},
|
|
305
|
+
"getter": false,
|
|
306
|
+
"setter": false,
|
|
307
|
+
"reflect": false,
|
|
308
|
+
"attribute": "disabled",
|
|
309
|
+
"defaultValue": "false"
|
|
310
|
+
},
|
|
311
|
+
"placeholder": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"mutable": false,
|
|
314
|
+
"complexType": {
|
|
315
|
+
"original": "string",
|
|
316
|
+
"resolved": "string",
|
|
317
|
+
"references": {}
|
|
318
|
+
},
|
|
319
|
+
"required": false,
|
|
320
|
+
"optional": false,
|
|
321
|
+
"docs": {
|
|
322
|
+
"tags": [],
|
|
323
|
+
"text": ""
|
|
324
|
+
},
|
|
325
|
+
"getter": false,
|
|
326
|
+
"setter": false,
|
|
327
|
+
"reflect": false,
|
|
328
|
+
"attribute": "placeholder",
|
|
329
|
+
"defaultValue": "''"
|
|
330
|
+
},
|
|
331
|
+
"rules": {
|
|
332
|
+
"type": "unknown",
|
|
333
|
+
"mutable": false,
|
|
334
|
+
"complexType": {
|
|
335
|
+
"original": "Rule[]",
|
|
336
|
+
"resolved": "Rule[] | undefined",
|
|
337
|
+
"references": {
|
|
338
|
+
"Rule": {
|
|
339
|
+
"location": "import",
|
|
340
|
+
"path": "../../types/form",
|
|
341
|
+
"id": "src/types/form.d.ts::Rule",
|
|
342
|
+
"referenceLocation": "Rule"
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": true,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": ""
|
|
351
|
+
},
|
|
352
|
+
"getter": false,
|
|
353
|
+
"setter": false,
|
|
354
|
+
"defaultValue": "[]"
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
static get states() {
|
|
359
|
+
return {
|
|
360
|
+
"internalValue": {},
|
|
361
|
+
"isEditing": {}
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
static get events() {
|
|
365
|
+
return [{
|
|
366
|
+
"method": "update",
|
|
367
|
+
"name": "sdUpdate",
|
|
368
|
+
"bubbles": true,
|
|
369
|
+
"cancelable": true,
|
|
370
|
+
"composed": true,
|
|
371
|
+
"docs": {
|
|
372
|
+
"tags": [],
|
|
373
|
+
"text": ""
|
|
374
|
+
},
|
|
375
|
+
"complexType": {
|
|
376
|
+
"original": "string",
|
|
377
|
+
"resolved": "string",
|
|
378
|
+
"references": {}
|
|
379
|
+
}
|
|
380
|
+
}, {
|
|
381
|
+
"method": "remove",
|
|
382
|
+
"name": "sdRemove",
|
|
383
|
+
"bubbles": true,
|
|
384
|
+
"cancelable": true,
|
|
385
|
+
"composed": true,
|
|
386
|
+
"docs": {
|
|
387
|
+
"tags": [],
|
|
388
|
+
"text": ""
|
|
389
|
+
},
|
|
390
|
+
"complexType": {
|
|
391
|
+
"original": "void",
|
|
392
|
+
"resolved": "void",
|
|
393
|
+
"references": {}
|
|
394
|
+
}
|
|
395
|
+
}, {
|
|
396
|
+
"method": "focus",
|
|
397
|
+
"name": "sdFocus",
|
|
398
|
+
"bubbles": true,
|
|
399
|
+
"cancelable": true,
|
|
400
|
+
"composed": true,
|
|
401
|
+
"docs": {
|
|
402
|
+
"tags": [],
|
|
403
|
+
"text": ""
|
|
404
|
+
},
|
|
405
|
+
"complexType": {
|
|
406
|
+
"original": "void",
|
|
407
|
+
"resolved": "void",
|
|
408
|
+
"references": {}
|
|
409
|
+
}
|
|
410
|
+
}, {
|
|
411
|
+
"method": "blur",
|
|
412
|
+
"name": "sdBlur",
|
|
413
|
+
"bubbles": true,
|
|
414
|
+
"cancelable": true,
|
|
415
|
+
"composed": true,
|
|
416
|
+
"docs": {
|
|
417
|
+
"tags": [],
|
|
418
|
+
"text": ""
|
|
419
|
+
},
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "void",
|
|
422
|
+
"resolved": "void",
|
|
423
|
+
"references": {}
|
|
424
|
+
}
|
|
425
|
+
}];
|
|
426
|
+
}
|
|
427
|
+
static get methods() {
|
|
428
|
+
return {
|
|
429
|
+
"sdValidate": {
|
|
430
|
+
"complexType": {
|
|
431
|
+
"signature": "() => Promise<boolean>",
|
|
432
|
+
"parameters": [],
|
|
433
|
+
"references": {
|
|
434
|
+
"Promise": {
|
|
435
|
+
"location": "global",
|
|
436
|
+
"id": "global::Promise"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"return": "Promise<boolean>"
|
|
440
|
+
},
|
|
441
|
+
"docs": {
|
|
442
|
+
"text": "",
|
|
443
|
+
"tags": []
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"sdReset": {
|
|
447
|
+
"complexType": {
|
|
448
|
+
"signature": "() => Promise<void>",
|
|
449
|
+
"parameters": [],
|
|
450
|
+
"references": {
|
|
451
|
+
"Promise": {
|
|
452
|
+
"location": "global",
|
|
453
|
+
"id": "global::Promise"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"return": "Promise<void>"
|
|
457
|
+
},
|
|
458
|
+
"docs": {
|
|
459
|
+
"text": "",
|
|
460
|
+
"tags": []
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
"sdResetValidate": {
|
|
464
|
+
"complexType": {
|
|
465
|
+
"signature": "() => Promise<void>",
|
|
466
|
+
"parameters": [],
|
|
467
|
+
"references": {
|
|
468
|
+
"Promise": {
|
|
469
|
+
"location": "global",
|
|
470
|
+
"id": "global::Promise"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"return": "Promise<void>"
|
|
474
|
+
},
|
|
475
|
+
"docs": {
|
|
476
|
+
"text": "",
|
|
477
|
+
"tags": []
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"sdResetValidation": {
|
|
481
|
+
"complexType": {
|
|
482
|
+
"signature": "() => Promise<void>",
|
|
483
|
+
"parameters": [],
|
|
484
|
+
"references": {
|
|
485
|
+
"Promise": {
|
|
486
|
+
"location": "global",
|
|
487
|
+
"id": "global::Promise"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"return": "Promise<void>"
|
|
491
|
+
},
|
|
492
|
+
"docs": {
|
|
493
|
+
"text": "",
|
|
494
|
+
"tags": []
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"sdFocus": {
|
|
498
|
+
"complexType": {
|
|
499
|
+
"signature": "() => Promise<void>",
|
|
500
|
+
"parameters": [],
|
|
501
|
+
"references": {
|
|
502
|
+
"Promise": {
|
|
503
|
+
"location": "global",
|
|
504
|
+
"id": "global::Promise"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"return": "Promise<void>"
|
|
508
|
+
},
|
|
509
|
+
"docs": {
|
|
510
|
+
"text": "",
|
|
511
|
+
"tags": []
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"sdGetNativeElement": {
|
|
515
|
+
"complexType": {
|
|
516
|
+
"signature": "() => Promise<HTMLSpanElement | null>",
|
|
517
|
+
"parameters": [],
|
|
518
|
+
"references": {
|
|
519
|
+
"Promise": {
|
|
520
|
+
"location": "global",
|
|
521
|
+
"id": "global::Promise"
|
|
522
|
+
},
|
|
523
|
+
"HTMLSpanElement": {
|
|
524
|
+
"location": "global",
|
|
525
|
+
"id": "global::HTMLSpanElement"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
"return": "Promise<HTMLSpanElement | null>"
|
|
529
|
+
},
|
|
530
|
+
"docs": {
|
|
531
|
+
"text": "",
|
|
532
|
+
"tags": []
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
static get elementRef() { return "el"; }
|
|
538
|
+
static get watchers() {
|
|
539
|
+
return [{
|
|
540
|
+
"propName": "value",
|
|
541
|
+
"methodName": "valueChanged"
|
|
542
|
+
}];
|
|
543
|
+
}
|
|
544
|
+
}
|
|
@@ -22,7 +22,7 @@ export class SdCircleProgress {
|
|
|
22
22
|
arcStyle.strokeDashoffset = '0';
|
|
23
23
|
}
|
|
24
24
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
25
|
-
return (h(Host, { key: '
|
|
25
|
+
return (h(Host, { key: '50b598305810f4f91c5afb7ede87c60178e4e6df', style: hostStyle }, h("svg", { key: '7edcf8a57bf5589910d08a47b64179222ce9c03b', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, h("circle", { key: '43810b096bdd644e4b09bfd770de6b0194afe3c8', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), h("circle", { key: '701cfdd0eadabea530d3a9deada993a568f3fb19', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle }))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "sd-circle-progress"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -67,9 +67,9 @@ export class SdConfirmModal {
|
|
|
67
67
|
render() {
|
|
68
68
|
const iconName = CONFIRM_MODAL_ICON_MAP[this.type];
|
|
69
69
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[this.type];
|
|
70
|
-
return (h("div", { key: '
|
|
70
|
+
return (h("div", { key: '0ec5edeaef4920bb9193c225e5b39465e138eb25', class: "sd-confirm-modal" }, h("sd-ghost-button", { key: '78db09f415f399302048280a2d3eb6eb737c1d47', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (h("sd-icon", { key: '30921f2c1fc59b7baa608c5b270f45cced3b4a69', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), h("h2", { key: 'fdb1fa855a980ccad41101de0b1b0fc87a8a503b', class: `sd-confirm-modal__title ${this.titleClass}` }, this.modalTitle), h("div", { key: 'e3539c1d7e82c957ba65e3d63e18e74108ed4ccc', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (h("div", { key: '010bb3a2918672714a664cc9afa561d82ea2af30', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg }))))), this.showContentBox && (h("div", { key: '6501c456b1cac2fc14e62e8094c5996472eb10cc', class: "sd-confirm-modal__content-box" }, this.tagContents ? (h("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
71
71
|
this.customContentRef = el;
|
|
72
|
-
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: '
|
|
72
|
+
} })) : (h("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && h("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (h("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (h("div", { key: 'fb38b92bc7ee05ede36eab14d65062a0b6289762', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (h("p", { class: "sd-confirm-modal__message-text", innerHTML: msg })))))), h("div", { key: '7834c5baf84a1537e511f77f1d2bb2c018b2e5df', class: "sd-confirm-modal__button" }, this.subButtonLabel && (h("sd-button-v2", { key: 'ca7a8fa074bde0339052adbacb52a60459e3da23', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), h("sd-button-v2", { key: '5e3238161e753a8ea2a0266d099ff03a89b63871', name: this.resolvedMainButton, label: this.mainButtonLabel, onSdClick: () => this.ok.emit() }))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "sd-confirm-modal"; }
|
|
75
75
|
static get originalStyleUrls() {
|
package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js
CHANGED
|
@@ -133,7 +133,7 @@ export class SdDatePickerCalendar {
|
|
|
133
133
|
'--calendar-day-font-weight': CALENDAR_LAYOUT.day.fontWeight,
|
|
134
134
|
'--calendar-day-bold-font-weight': CALENDAR_LAYOUT.day.boldFontWeight,
|
|
135
135
|
};
|
|
136
|
-
return (h("div", { key: '
|
|
136
|
+
return (h("div", { key: 'd23c08b38605dad1e5b3266a7e1ad72e0aeb7eb9', class: "sd-date-picker-calendar", style: cssVars }, h("div", { key: '1c25bd19272e1e7f4e81601a0ffa13d7b882e4e4', class: "sd-date-picker-calendar__header" }, h("div", { key: 'aed9a7ff3282d363c61b49dde6b6e9d6131a456c', class: "sd-date-picker-calendar__nav-group" }, h("sd-ghost-button", { key: '68ae361b1cc4bfd9351b093aee6d4193f2ac5549', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), h("span", { key: 'e17d9a962faf96e8b70b0890e59e4c2e5ca515b0', class: "sd-date-picker-calendar__label" }, this.currentYear), h("sd-ghost-button", { key: 'ab65ce4f9f64fcc9f4084c073a0a0625ceeb9f2d', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), h("span", { key: 'a01cb1691e9f112efdd6fd632c7594aa082d7f9f', class: "sd-date-picker-calendar__divider", "aria-hidden": "true" }), h("div", { key: '577085a6007e5e2c6b291bbe0a27c0ff4ec4ca78', class: "sd-date-picker-calendar__nav-group sd-date-picker-calendar__nav-group-month" }, h("sd-ghost-button", { key: 'c6b51b60d1bcc06e537800c10946ac49639fcb2c', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), h("span", { key: '836008030a0d66533ffba9392fee0234a9b0b425', class: "sd-date-picker-calendar__label sd-date-picker-calendar__label-month" }, this.currentMonth, "\uC6D4"), h("sd-ghost-button", { key: 'a602cb65934157c171201f01699aacf1eeee8a57', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), h("div", { key: '0c1a368d4e878b2942f2b37ddff47ac13262c580', class: "sd-date-picker-calendar__week" }, WEEK_LABELS.map(label => (h("span", { key: label, class: "sd-date-picker-calendar__week-cell" }, label)))), h("div", { key: '31cfa57cd8890a7cd70209c771598d6350009cc6', class: "sd-date-picker-calendar__grid" }, this.cells.map(cell => {
|
|
137
137
|
const isSelected = cell.inCurrentMonth && !!this.value && this.value === cell.date;
|
|
138
138
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
139
139
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js
CHANGED
|
@@ -31,10 +31,10 @@ export class SdDatePickerTrigger {
|
|
|
31
31
|
? DATEPICKER_COLORS.icon.disabled
|
|
32
32
|
: DATEPICKER_COLORS.icon.default,
|
|
33
33
|
};
|
|
34
|
-
return (h("div", { key: '
|
|
34
|
+
return (h("div", { key: 'ebe886b3df3b50c53d31081f6ad7e251721b5cb1', class: {
|
|
35
35
|
'sd-date-picker-trigger': true,
|
|
36
36
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
37
|
-
}, style: cssVars, onClick: this.handleClick }, h("sd-icon", { key: '
|
|
37
|
+
}, style: cssVars, onClick: this.handleClick }, h("sd-icon", { key: '563d3bb0221d5ba17788e1fa1e970fd2d702a4fd', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), h("span", { key: '3bfc4c6671e70571a4b71a62cf0fd78f0297027f', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "sd-date-picker-trigger"; }
|
|
40
40
|
static get originalStyleUrls() {
|
|
@@ -92,9 +92,9 @@ export class SdDatePicker {
|
|
|
92
92
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
93
93
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
94
94
|
};
|
|
95
|
-
return (h("sd-field", { key: '
|
|
95
|
+
return (h("sd-field", { key: '1a84754cdc67bd6603e1fb48479f9d3ac6424d6a', 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, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'e4d8e05b04ac7bd4f2f96809b33d67125fe7c6d8', class: "sd-date-picker", ref: el => {
|
|
96
96
|
this.triggerRef = el;
|
|
97
|
-
} }, h("sd-date-picker-trigger", { key: '
|
|
97
|
+
} }, h("sd-date-picker-trigger", { key: '244924af2c3ea207b2a90c5aef5064755da3ae52', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'f3d882d3450f629b6ed501b984d89ffd9633531f', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-date-picker-calendar", { key: 'a0f47851a27dd777f77da40f3258638a0fbc37a5', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "sd-date-picker"; }
|
|
100
100
|
static get originalStyleUrls() {
|
|
@@ -239,7 +239,7 @@ export class SdDateRangePickerCalendar {
|
|
|
239
239
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
240
240
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
241
241
|
};
|
|
242
|
-
return (h(Fragment, { key: '
|
|
242
|
+
return (h(Fragment, { key: '595c17bc338f96117d87c5ac3c2b26895b9e5283' }, h("div", { key: '39ce76545cc612422ab5024a2838fbc9faabb9a8', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), h("div", { key: '21764e31a3fbcfa8de22d1f243f5739fc02c38fd', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), h("span", { key: '402ea75f3bf8b58d30c34238285eef7099118e28', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
243
243
|
}
|
|
244
244
|
static get is() { return "sd-date-range-picker-calendar"; }
|
|
245
245
|
static get originalStyleUrls() {
|
|
@@ -186,7 +186,7 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
186
186
|
}
|
|
187
187
|
render() {
|
|
188
188
|
const { config, preset } = this.resolvedConfig;
|
|
189
|
-
return (h("div", { key: '
|
|
189
|
+
return (h("div", { key: '5493b94262ecdd20a5fbb7ad2993dd473b1ae9e3', class: "sd-dropdown-button" }, h("button", { key: 'a64187dec0d84dce3532f8b3d7112ed6d6ae8e0d', type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: {
|
|
190
190
|
'--sd-dropdown-button-bg': config.color,
|
|
191
191
|
'--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
192
192
|
'--sd-dropdown-button-border': PRESET_BORDER_COLORS[preset],
|
|
@@ -196,10 +196,10 @@ export class SdDropdownButton extends BaseDropdownEvent {
|
|
|
196
196
|
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
197
197
|
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_TEXT,
|
|
198
198
|
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
199
|
-
} }, h("span", { key: '
|
|
199
|
+
} }, h("span", { key: '71ed27650dcb1beb1cfa4864a6449ab190f04829', class: "sd-dropdown-button__trigger-label" }, this.label), h("span", { key: '6c34575c0587fb288165cf0e15db52ed6b3f50db', class: "sd-dropdown-button__trigger-divider", "aria-hidden": "true" }), h("span", { key: '0544b9d36657a80b5f51b9c1849d55ab7a7dbdc2', class: {
|
|
200
200
|
'sd-dropdown-button__trigger-icon': true,
|
|
201
201
|
'sd-dropdown-button__trigger-icon--open': this.isOpen,
|
|
202
|
-
}, "aria-hidden": "true" }, h("sd-icon", { key: '
|
|
202
|
+
}, "aria-hidden": "true" }, h("sd-icon", { key: 'cd73a4dffbe1fc31c76fea221cd080b455bb3131', name: "chevronDown", size: DROPDOWN_CHEVRON_ICON_SIZE[config.size], color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
|
|
203
203
|
}
|
|
204
204
|
static get is() { return "sd-dropdown-button"; }
|
|
205
205
|
static get originalStyleUrls() {
|