@sellmate/design-system 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/design-system.cjs.js +2 -2
- package/dist/cjs/{index-Qvv0fGgj.js → index-BQt-JC6r.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sd-action-modal.cjs.entry.js +3 -3
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +4 -4
- package/dist/cjs/sd-button-v2_2.cjs.entry.js +2 -2
- package/dist/cjs/{sd-button_4.cjs.entry.js → sd-button_5.cjs.entry.js} +202 -26
- package/dist/cjs/sd-calendar.cjs.entry.js +3 -3
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal.cjs.entry.js +4 -4
- package/dist/cjs/sd-date-box.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-file-picker.cjs.entry.js +141 -23
- package/dist/cjs/sd-form.cjs.entry.js +3 -3
- package/dist/cjs/sd-guide.cjs.entry.js +3 -3
- package/dist/cjs/sd-input_2.cjs.entry.js +11 -11
- package/dist/cjs/sd-loading-spinner_3.cjs.entry.js +7 -7
- package/dist/cjs/sd-modal-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-number-input.cjs.entry.js +7 -7
- package/dist/cjs/sd-popover.cjs.entry.js +4 -4
- package/dist/cjs/sd-portal.cjs.entry.js +3 -3
- package/dist/cjs/sd-progress.cjs.entry.js +3 -3
- package/dist/cjs/sd-radio-button-group.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 +8 -8
- package/dist/cjs/sd-select-group.cjs.entry.js +4 -4
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-select-multiple.cjs.entry.js +4 -4
- package/dist/cjs/sd-select-option-group.cjs.entry.js +5 -5
- package/dist/cjs/sd-select-v2-list-item_2.cjs.entry.js +9 -9
- package/dist/cjs/sd-select-v2-listbox_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select-v2.cjs.entry.js +6 -6
- package/dist/cjs/sd-table.cjs.entry.js +4 -4
- package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
- package/dist/cjs/sd-tag.cjs.entry.js +3 -3
- package/dist/cjs/sd-text-link.cjs.entry.js +5 -5
- package/dist/cjs/sd-textarea.cjs.entry.js +6 -6
- package/dist/cjs/sd-toast-container.cjs.entry.js +4 -4
- package/dist/cjs/sd-toast.cjs.entry.js +4 -4
- package/dist/cjs/sd-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-toggle.cjs.entry.js +3 -3
- package/dist/cjs/{tooltipArrow-Mb2Dhc7T.js → tooltipArrow-CRCpqOYA.js} +1 -1
- package/dist/collection/components/sd-field/sd-field.css +11 -6
- package/dist/collection/components/sd-field/sd-field.js +34 -16
- package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +23 -0
- package/dist/collection/components/sd-file-picker/sd-file-picker.css +33 -38
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +518 -21
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.js +2 -2
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-modal-container/sd-modal-container.css +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +2 -2
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- 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-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-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 +3 -3
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +1 -1
- 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.js +3 -3
- 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 +2 -2
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-toggle-button/sd-toggle-button.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.css +2 -2
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/p-5aLT6ILZ.js +1 -0
- package/dist/components/p-B3CfLqLu.js +1 -0
- package/dist/components/p-B9t9pwo_.js +1 -0
- package/dist/components/p-BIpitpaB.js +1 -0
- package/dist/components/p-BZwAZpfW.js +1 -0
- package/dist/components/{p-D-ian_bu.js → p-C2Yw3PoX.js} +1 -1
- package/dist/components/p-C2uZkOBj.js +1 -0
- package/dist/components/{p-z1GAfC0Y.js → p-C9GMwYKA.js} +1 -1
- package/dist/components/p-CDR-4auv.js +1 -0
- package/dist/components/p-CKl79fdN.js +1 -0
- package/dist/components/p-Ck-2jtzb.js +1 -0
- package/dist/components/p-CnUsbdL7.js +1 -0
- package/dist/components/p-CpGiSLY_.js +1 -0
- package/dist/components/p-CqU3a1re.js +1 -0
- package/dist/components/p-D-pFdq6g.js +1 -0
- package/dist/components/p-DB_gU4hh.js +1 -0
- package/dist/components/p-DCJWAesd.js +1 -0
- package/dist/components/{p-9cpjtLyu.js → p-DSYw-7RA.js} +1 -1
- package/dist/components/p-DXAB0k9r.js +1 -0
- package/dist/components/p-DkMewZNL.js +1 -0
- package/dist/components/{p-DgH5_0xH.js → p-DuqfYDrU.js} +1 -1
- package/dist/components/p-Dx7R5s53.js +1 -0
- package/dist/components/p-IRd25v7v.js +1 -0
- package/dist/components/p-UUxu2akd.js +1 -0
- package/dist/components/p-eOGZo-WB.js +1 -0
- package/dist/components/p-hWm-Llzv.js +1 -0
- package/dist/components/p-iZSyoiHU.js +1 -0
- package/dist/components/{p-BNuWMSR_.js → p-lKwhftf9.js} +1 -1
- package/dist/components/p-mnDAufNv.js +1 -0
- package/dist/components/p-tR70yRjm.js +1 -0
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button-v2.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-box.js +1 -1
- package/dist/components/sd-date-picker.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-spinner.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-group.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-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-text-link.js +1 -1
- package/dist/components/sd-textarea.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-button.js +1 -1
- package/dist/components/sd-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/p-00e236e1.entry.js +1 -0
- package/dist/design-system/p-09369f2c.entry.js +1 -0
- package/dist/design-system/p-0c026571.entry.js +1 -0
- package/dist/design-system/p-15c051cb.entry.js +1 -0
- package/dist/design-system/p-17429476.entry.js +1 -0
- package/dist/design-system/p-1cf60275.entry.js +1 -0
- package/dist/design-system/p-2a25b3dc.entry.js +1 -0
- package/dist/design-system/p-3686b44e.entry.js +1 -0
- package/dist/design-system/{p-d0414155.entry.js → p-3b824d36.entry.js} +1 -1
- package/dist/design-system/p-3f657bf8.entry.js +1 -0
- package/dist/design-system/{p-426c7f12.entry.js → p-3fdfb2ed.entry.js} +1 -1
- package/dist/design-system/{p-2436d5f5.entry.js → p-3fff78c7.entry.js} +1 -1
- package/dist/design-system/p-43512d46.entry.js +1 -0
- package/dist/design-system/p-4487b2ec.entry.js +1 -0
- package/dist/design-system/p-47931c26.entry.js +1 -0
- package/dist/design-system/p-47f068ca.entry.js +1 -0
- package/dist/design-system/{p-d83673a2.entry.js → p-4e13256e.entry.js} +1 -1
- package/dist/design-system/p-52d6d7b5.entry.js +1 -0
- package/dist/design-system/p-5ba8caa2.entry.js +1 -0
- package/dist/design-system/{p-8b11f4f1.entry.js → p-5db2b37b.entry.js} +1 -1
- package/dist/design-system/p-64f2a188.entry.js +1 -0
- package/dist/design-system/p-6aaacaef.entry.js +1 -0
- package/dist/design-system/p-74079256.entry.js +1 -0
- package/dist/design-system/p-7a18a52b.entry.js +1 -0
- package/dist/design-system/p-8187020e.entry.js +1 -0
- package/dist/design-system/p-85e22acd.entry.js +1 -0
- package/dist/design-system/p-99bcc635.entry.js +1 -0
- package/dist/design-system/p-DSRYrM1n.js +1 -0
- package/dist/design-system/p-DsU722JF.js +2 -0
- package/dist/design-system/p-a7e4994e.entry.js +1 -0
- package/dist/design-system/p-c7c0aa6c.entry.js +1 -0
- package/dist/design-system/p-c9af0fc9.entry.js +1 -0
- package/dist/design-system/p-c9bc4fa6.entry.js +1 -0
- package/dist/design-system/p-cebaca7c.entry.js +1 -0
- package/dist/design-system/p-cee768a2.entry.js +1 -0
- package/dist/design-system/p-cf7d46cf.entry.js +1 -0
- package/dist/design-system/p-d5b5cfc7.entry.js +1 -0
- package/dist/design-system/p-d8a3e32d.entry.js +1 -0
- package/dist/design-system/{p-03160e15.entry.js → p-d8b4b24f.entry.js} +1 -1
- package/dist/design-system/p-dea33b4d.entry.js +1 -0
- package/dist/design-system/p-dee605b1.entry.js +1 -0
- package/dist/design-system/p-e37772c2.entry.js +1 -0
- package/dist/design-system/p-ea768c2e.entry.js +1 -0
- package/dist/design-system/p-eb11f6cc.entry.js +1 -0
- package/dist/design-system/{p-d87aa2ec.entry.js → p-fd11ac4d.entry.js} +1 -1
- package/dist/esm/design-system.js +3 -3
- package/dist/esm/{index-B8tGP77V.js → index-DsU722JF.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/sd-action-modal.entry.js +3 -3
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +4 -4
- package/dist/esm/sd-button-v2_2.entry.js +2 -2
- package/dist/esm/{sd-button_4.entry.js → sd-button_5.entry.js} +202 -27
- package/dist/esm/sd-calendar.entry.js +3 -3
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +2 -2
- package/dist/esm/sd-confirm-modal.entry.js +4 -4
- package/dist/esm/sd-date-box.entry.js +3 -3
- package/dist/esm/sd-date-picker.entry.js +3 -3
- package/dist/esm/sd-date-range-picker.entry.js +3 -3
- package/dist/esm/sd-dropdown-button.entry.js +3 -3
- package/dist/esm/sd-file-picker.entry.js +141 -23
- package/dist/esm/sd-form.entry.js +3 -3
- package/dist/esm/sd-guide.entry.js +3 -3
- package/dist/esm/sd-input_2.entry.js +11 -11
- package/dist/esm/sd-loading-spinner_3.entry.js +7 -7
- package/dist/esm/sd-modal-container.entry.js +2 -2
- package/dist/esm/sd-number-input.entry.js +7 -7
- package/dist/esm/sd-popover.entry.js +4 -4
- package/dist/esm/sd-portal.entry.js +3 -3
- package/dist/esm/sd-progress.entry.js +3 -3
- package/dist/esm/sd-radio-button-group.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 +8 -8
- package/dist/esm/sd-select-group.entry.js +4 -4
- package/dist/esm/sd-select-multiple-group.entry.js +3 -3
- package/dist/esm/sd-select-multiple.entry.js +4 -4
- package/dist/esm/sd-select-option-group.entry.js +5 -5
- package/dist/esm/sd-select-v2-list-item_2.entry.js +9 -9
- package/dist/esm/sd-select-v2-listbox_2.entry.js +6 -6
- package/dist/esm/sd-select-v2.entry.js +6 -6
- package/dist/esm/sd-table.entry.js +4 -4
- package/dist/esm/sd-tabs.entry.js +2 -2
- package/dist/esm/sd-tag.entry.js +3 -3
- package/dist/esm/sd-text-link.entry.js +5 -5
- package/dist/esm/sd-textarea.entry.js +6 -6
- package/dist/esm/sd-toast-container.entry.js +4 -4
- package/dist/esm/sd-toast.entry.js +4 -4
- package/dist/esm/sd-toggle-button.entry.js +3 -3
- package/dist/esm/sd-toggle.entry.js +3 -3
- package/dist/esm/{tooltipArrow-Pdc3NIc9.js → tooltipArrow-CJuzsrdH.js} +1 -1
- package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +31 -0
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +29 -2
- package/dist/types/components.d.ts +125 -0
- package/hydrate/index.js +341 -172
- package/hydrate/index.mjs +341 -172
- package/package.json +1 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +0 -148
- package/dist/components/p-AFiQTtI8.js +0 -1
- package/dist/components/p-B1vJXa29.js +0 -1
- package/dist/components/p-B2f7Cose.js +0 -1
- package/dist/components/p-B9ODOaHR.js +0 -1
- package/dist/components/p-BDddwnsY.js +0 -1
- package/dist/components/p-BSD19ZXd.js +0 -1
- package/dist/components/p-BWpdlAkY.js +0 -1
- package/dist/components/p-BkGwQ37a.js +0 -1
- package/dist/components/p-BlIVa7pk.js +0 -1
- package/dist/components/p-Bm5vdtK6.js +0 -1
- package/dist/components/p-C-ITXCaO.js +0 -1
- package/dist/components/p-C6dJGijx.js +0 -1
- package/dist/components/p-CID8dmhm.js +0 -1
- package/dist/components/p-CMIQp1d_.js +0 -1
- package/dist/components/p-CS_IUXhu.js +0 -1
- package/dist/components/p-Chqlvi5E.js +0 -1
- package/dist/components/p-CuKx-cil.js +0 -1
- package/dist/components/p-CxJY5DLb.js +0 -1
- package/dist/components/p-CzJDdzv9.js +0 -1
- package/dist/components/p-D3hfkcth.js +0 -1
- package/dist/components/p-DVFkk4Uh.js +0 -1
- package/dist/components/p-DYzmoNdd.js +0 -1
- package/dist/components/p-Do9_zPoB.js +0 -1
- package/dist/components/p-Dpm7Otkw.js +0 -1
- package/dist/components/p-jilbrMIA.js +0 -1
- package/dist/design-system/p-075c1811.entry.js +0 -1
- package/dist/design-system/p-15aa5f57.entry.js +0 -1
- package/dist/design-system/p-28f46b43.entry.js +0 -1
- package/dist/design-system/p-3046d095.entry.js +0 -1
- package/dist/design-system/p-3165d54b.entry.js +0 -1
- package/dist/design-system/p-3a507d25.entry.js +0 -1
- package/dist/design-system/p-45f6bd30.entry.js +0 -1
- package/dist/design-system/p-49611410.entry.js +0 -1
- package/dist/design-system/p-50cecb3a.entry.js +0 -1
- package/dist/design-system/p-513306a1.entry.js +0 -1
- package/dist/design-system/p-559d6c56.entry.js +0 -1
- package/dist/design-system/p-57e3132f.entry.js +0 -1
- package/dist/design-system/p-5ce6b4e1.entry.js +0 -1
- package/dist/design-system/p-5eb98ac7.entry.js +0 -1
- package/dist/design-system/p-6a0fe603.entry.js +0 -1
- package/dist/design-system/p-6d9e16bd.entry.js +0 -1
- package/dist/design-system/p-7b14c068.entry.js +0 -1
- package/dist/design-system/p-833f828d.entry.js +0 -1
- package/dist/design-system/p-83e46793.entry.js +0 -1
- package/dist/design-system/p-9616d8d1.entry.js +0 -1
- package/dist/design-system/p-9d5d578e.entry.js +0 -1
- package/dist/design-system/p-9e044f42.entry.js +0 -1
- package/dist/design-system/p-B8tGP77V.js +0 -2
- package/dist/design-system/p-BeCHKP_I.js +0 -1
- package/dist/design-system/p-a589cab8.entry.js +0 -1
- package/dist/design-system/p-a6946300.entry.js +0 -1
- package/dist/design-system/p-ae21d6ba.entry.js +0 -1
- package/dist/design-system/p-b924251e.entry.js +0 -1
- package/dist/design-system/p-bffc1455.entry.js +0 -1
- package/dist/design-system/p-cf641008.entry.js +0 -1
- package/dist/design-system/p-d2db1b44.entry.js +0 -1
- package/dist/design-system/p-d47fdd44.entry.js +0 -1
- package/dist/design-system/p-d5dcd2ff.entry.js +0 -1
- package/dist/design-system/p-dd330438.entry.js +0 -1
- package/dist/design-system/p-f193b3b9.entry.js +0 -1
- package/dist/design-system/p-f23038d4.entry.js +0 -1
- package/dist/design-system/p-f496bd56.entry.js +0 -1
- package/dist/design-system/p-fc235907.entry.js +0 -1
- package/dist/design-system/p-fc2dc308.entry.js +0 -1
- package/dist/esm/sd-ghost-button.entry.js +0 -146
package/hydrate/index.mjs
CHANGED
|
@@ -1380,9 +1380,9 @@ var createEvent = (ref, name, flags) => {
|
|
|
1380
1380
|
return {
|
|
1381
1381
|
emit: (detail) => {
|
|
1382
1382
|
return emitEvent(elm, name, {
|
|
1383
|
-
bubbles:
|
|
1384
|
-
composed:
|
|
1385
|
-
cancelable:
|
|
1383
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1384
|
+
composed: !!(flags & 2 /* Composed */),
|
|
1385
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1386
1386
|
detail
|
|
1387
1387
|
});
|
|
1388
1388
|
}
|
|
@@ -4806,8 +4806,8 @@ const sdActionModalCss = () => `sd-action-modal{display:block;width:fit-content;
|
|
|
4806
4806
|
class SdActionModal {
|
|
4807
4807
|
constructor(hostRef) {
|
|
4808
4808
|
registerInstance(this, hostRef);
|
|
4809
|
-
this.close = createEvent(this, "sdClose");
|
|
4810
|
-
this.ok = createEvent(this, "sdOk");
|
|
4809
|
+
this.close = createEvent(this, "sdClose", 7);
|
|
4810
|
+
this.ok = createEvent(this, "sdOk", 7);
|
|
4811
4811
|
}
|
|
4812
4812
|
modalTitle = '';
|
|
4813
4813
|
buttonLabel = '확인';
|
|
@@ -4980,9 +4980,9 @@ const sdBarcodeInputCss = () => `sd-icon{display:inline-block;line-height:0}sd-i
|
|
|
4980
4980
|
class SdBarcodeInput {
|
|
4981
4981
|
constructor(hostRef) {
|
|
4982
4982
|
registerInstance(this, hostRef);
|
|
4983
|
-
this.input = createEvent(this, "sdUpdate");
|
|
4984
|
-
this.focus = createEvent(this, "sdFocus");
|
|
4985
|
-
this.blur = createEvent(this, "sdBlur");
|
|
4983
|
+
this.input = createEvent(this, "sdUpdate", 7);
|
|
4984
|
+
this.focus = createEvent(this, "sdFocus", 7);
|
|
4985
|
+
this.blur = createEvent(this, "sdBlur", 7);
|
|
4986
4986
|
}
|
|
4987
4987
|
get host() { return getElement(this); }
|
|
4988
4988
|
value = null;
|
|
@@ -5521,7 +5521,7 @@ const ICON_SIZES = {
|
|
|
5521
5521
|
class SdButton {
|
|
5522
5522
|
constructor(hostRef) {
|
|
5523
5523
|
registerInstance(this, hostRef);
|
|
5524
|
-
this.click = createEvent(this, "sdClick");
|
|
5524
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
5525
5525
|
}
|
|
5526
5526
|
get el() { return getElement(this); }
|
|
5527
5527
|
variant = 'primary';
|
|
@@ -5762,7 +5762,7 @@ const sdButtonV2Css = () => `sd-button-v2{display:inline-flex;width:fit-content;
|
|
|
5762
5762
|
class SdButtonV2 {
|
|
5763
5763
|
constructor(hostRef) {
|
|
5764
5764
|
registerInstance(this, hostRef);
|
|
5765
|
-
this.click = createEvent(this, "sdClick");
|
|
5765
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
5766
5766
|
}
|
|
5767
5767
|
name = 'primary_sm';
|
|
5768
5768
|
label = '';
|
|
@@ -5921,8 +5921,8 @@ const DEFAULT_COLORS = [
|
|
|
5921
5921
|
class SdCalendar {
|
|
5922
5922
|
constructor(hostRef) {
|
|
5923
5923
|
registerInstance(this, hostRef);
|
|
5924
|
-
this.select = createEvent(this, "sdSelect");
|
|
5925
|
-
this.viewChange = createEvent(this, "sdViewChange");
|
|
5924
|
+
this.select = createEvent(this, "sdSelect", 7);
|
|
5925
|
+
this.viewChange = createEvent(this, "sdViewChange", 7);
|
|
5926
5926
|
}
|
|
5927
5927
|
value = null;
|
|
5928
5928
|
selectable;
|
|
@@ -6159,7 +6159,7 @@ const sdCheckboxCss = () => `sd-checkbox{display:block;height:var(--sd-checkbox-
|
|
|
6159
6159
|
class SdCheckbox {
|
|
6160
6160
|
constructor(hostRef) {
|
|
6161
6161
|
registerInstance(this, hostRef);
|
|
6162
|
-
this.update = createEvent(this, "sdUpdate");
|
|
6162
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
6163
6163
|
}
|
|
6164
6164
|
get el() { return getElement(this); }
|
|
6165
6165
|
/** 현재 선택 상태 또는 배열 형태의 값 */
|
|
@@ -6296,9 +6296,9 @@ const sdConfirmModalCss = () => `sd-confirm-modal{display:block;width:fit-conten
|
|
|
6296
6296
|
class SdConfirmModal {
|
|
6297
6297
|
constructor(hostRef) {
|
|
6298
6298
|
registerInstance(this, hostRef);
|
|
6299
|
-
this.close = createEvent(this, "sdClose");
|
|
6300
|
-
this.cancel = createEvent(this, "sdCancel");
|
|
6301
|
-
this.ok = createEvent(this, "sdOk");
|
|
6299
|
+
this.close = createEvent(this, "sdClose", 7);
|
|
6300
|
+
this.cancel = createEvent(this, "sdCancel", 7);
|
|
6301
|
+
this.ok = createEvent(this, "sdOk", 7);
|
|
6302
6302
|
}
|
|
6303
6303
|
get el() { return getElement(this); }
|
|
6304
6304
|
hasSlottedContent = false;
|
|
@@ -6400,8 +6400,8 @@ const sdDateBoxCss = () => `.sd-date-box.sc-sd-date-box{display:flex;align-items
|
|
|
6400
6400
|
class SdDateBox {
|
|
6401
6401
|
constructor(hostRef) {
|
|
6402
6402
|
registerInstance(this, hostRef);
|
|
6403
|
-
this.click = createEvent(this, "sdClick");
|
|
6404
|
-
this.mouseOver = createEvent(this, "sdMouseOver");
|
|
6403
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
6404
|
+
this.mouseOver = createEvent(this, "sdMouseOver", 7);
|
|
6405
6405
|
}
|
|
6406
6406
|
date = null;
|
|
6407
6407
|
disabled = false;
|
|
@@ -6464,8 +6464,8 @@ const sdDatePickerCss = () => `.sd-date-picker.sc-sd-date-picker{width:100%;disp
|
|
|
6464
6464
|
class SdDatePicker {
|
|
6465
6465
|
constructor(hostRef) {
|
|
6466
6466
|
registerInstance(this, hostRef);
|
|
6467
|
-
this.update = createEvent(this, "sdUpdate");
|
|
6468
|
-
this.viewChange = createEvent(this, "sdViewChange");
|
|
6467
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
6468
|
+
this.viewChange = createEvent(this, "sdViewChange", 7);
|
|
6469
6469
|
}
|
|
6470
6470
|
get el() { return getElement(this); }
|
|
6471
6471
|
value = null;
|
|
@@ -6519,8 +6519,8 @@ const sdDateRangePickerCss = () => `sd-date-range-picker.sc-sd-date-range-picker
|
|
|
6519
6519
|
class SdDateRangePicker {
|
|
6520
6520
|
constructor(hostRef) {
|
|
6521
6521
|
registerInstance(this, hostRef);
|
|
6522
|
-
this.update = createEvent(this, "sdUpdate");
|
|
6523
|
-
this.viewChange = createEvent(this, "sdViewChange");
|
|
6522
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
6523
|
+
this.viewChange = createEvent(this, "sdViewChange", 7);
|
|
6524
6524
|
}
|
|
6525
6525
|
get el() { return getElement(this); }
|
|
6526
6526
|
value = ['', ''];
|
|
@@ -6876,8 +6876,8 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
6876
6876
|
constructor(hostRef) {
|
|
6877
6877
|
super();
|
|
6878
6878
|
registerInstance(this, hostRef);
|
|
6879
|
-
this.click = createEvent(this, "sdClick");
|
|
6880
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
6879
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
6880
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
6881
6881
|
}
|
|
6882
6882
|
get el() { return getElement(this); }
|
|
6883
6883
|
name = 'primary_sm';
|
|
@@ -7102,7 +7102,19 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
7102
7102
|
}
|
|
7103
7103
|
|
|
7104
7104
|
const field = {
|
|
7105
|
+
label: {
|
|
7106
|
+
sm: {
|
|
7107
|
+
height: "28",
|
|
7108
|
+
gap: "6",
|
|
7109
|
+
icon: "12",
|
|
7110
|
+
typography: {
|
|
7111
|
+
fontWeight: "700",
|
|
7112
|
+
fontSize: "12",
|
|
7113
|
+
lineHeight: "20"
|
|
7114
|
+
}
|
|
7115
|
+
}},
|
|
7105
7116
|
addonLabel: {
|
|
7117
|
+
gap: "6",
|
|
7106
7118
|
paddingX: "12",
|
|
7107
7119
|
typography: {
|
|
7108
7120
|
fontWeight: "500",
|
|
@@ -7112,14 +7124,16 @@ const field = {
|
|
|
7112
7124
|
bg: "#F6F6F6",
|
|
7113
7125
|
border: {
|
|
7114
7126
|
"default": "#AAAAAA",
|
|
7115
|
-
disabled: "#CCCCCC"
|
|
7127
|
+
disabled: "#CCCCCC",
|
|
7128
|
+
width: "1"
|
|
7129
|
+
}
|
|
7116
7130
|
}
|
|
7117
7131
|
};
|
|
7118
7132
|
var fieldTokens = {
|
|
7119
7133
|
field: field
|
|
7120
7134
|
};
|
|
7121
7135
|
|
|
7122
|
-
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field:not(.sd-field--disabled):hover .sd-field__control{border:1px solid var(--sd-system-color-field-border-hover) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;margin-right:var(--sd-system-space-field-sm-gap)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:
|
|
7136
|
+
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field:not(.sd-field--disabled):hover .sd-field__control{border:1px solid var(--sd-system-color-field-border-hover) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;height:var(--sd-field-label-height);margin-right:var(--sd-system-space-field-sm-gap)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap)}sd-field .sd-field--has-addon .sd-field__control{gap:var(--sd-field-addon-gap)}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;align-items:center;white-space:nowrap;padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-system-radius-field-sm) - 1px) 0 0 calc(var(--sd-system-radius-field-sm) - 1px)}sd-field .sd-field__wrapper{width:100%;height:var(--sd-system-size-field-sm-height);display:flex;align-items:center;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);cursor:pointer;-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:100%;display:flex;flex:1;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-system-radius-field-sm);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error:not(:hover) .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--focus .sd-field__wrapper .sd-field__control,sd-field .sd-field.sd-field--hover .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field .sd-field__error-message{color:var(--sd-textinput-input-text-error-message);font-size:var(--sd-textinput-input-error-message-typography-font-size);line-height:var(--sd-textinput-input-error-message-typography-line-height);margin-top:var(--sd-textinput-input-contents-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-textinput-input-text-hint);font-size:var(--sd-textinput-input-hint-typography-font-size);line-height:var(--sd-textinput-input-hint-typography-line-height);margin-top:var(--sd-textinput-input-contents-gap)}`;
|
|
7123
7137
|
|
|
7124
7138
|
const FORM_PARENT_TAGS = [
|
|
7125
7139
|
'sd-select',
|
|
@@ -7130,6 +7144,7 @@ const FORM_PARENT_TAGS = [
|
|
|
7130
7144
|
'sd-textarea',
|
|
7131
7145
|
'sd-number-input',
|
|
7132
7146
|
'sd-select-v2',
|
|
7147
|
+
'sd-file-picker',
|
|
7133
7148
|
];
|
|
7134
7149
|
class SdField {
|
|
7135
7150
|
constructor(hostRef) {
|
|
@@ -7246,32 +7261,49 @@ class SdField {
|
|
|
7246
7261
|
render() {
|
|
7247
7262
|
const addon = this.addonLabel;
|
|
7248
7263
|
const addonTokens = fieldTokens.field.addonLabel;
|
|
7249
|
-
const
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7264
|
+
const labelTokens = fieldTokens.field.label.sm;
|
|
7265
|
+
const labelCssVars = this.label
|
|
7266
|
+
? {
|
|
7267
|
+
'--sd-field-label-height': `${labelTokens.height}px`,
|
|
7268
|
+
'--sd-field-label-gap': `${labelTokens.gap}px`,
|
|
7269
|
+
'--sd-field-label-font-size': `${labelTokens.typography.fontSize}px`,
|
|
7270
|
+
'--sd-field-label-line-height': `${labelTokens.typography.lineHeight}px`,
|
|
7271
|
+
'--sd-field-label-font-weight': labelTokens.typography.fontWeight,
|
|
7272
|
+
}
|
|
7273
|
+
: {};
|
|
7274
|
+
const addonCssVars = addon
|
|
7275
|
+
? {
|
|
7276
|
+
'--sd-field-addon-padding-x': `${addonTokens.paddingX}px`,
|
|
7277
|
+
'--sd-field-addon-font-size': `${addonTokens.typography.fontSize}px`,
|
|
7278
|
+
'--sd-field-addon-line-height': `${addonTokens.typography.lineHeight}px`,
|
|
7279
|
+
'--sd-field-addon-font-weight': addonTokens.typography.fontWeight,
|
|
7280
|
+
'--sd-field-addon-bg': addonTokens.bg,
|
|
7281
|
+
'--sd-field-addon-border-color': this.disabled
|
|
7282
|
+
? addonTokens.border.disabled
|
|
7283
|
+
: addonTokens.border.default,
|
|
7284
|
+
'--sd-field-addon-gap': `${addonTokens.gap}px`,
|
|
7285
|
+
'--sd-field-addon-border-width': `${addonTokens.border.width}px`,
|
|
7286
|
+
}
|
|
7287
|
+
: {};
|
|
7288
|
+
return (hAsync("div", { key: 'e37722a9afbd78654328954262d4bc458634170a', class: {
|
|
7260
7289
|
'sd-field': true,
|
|
7261
7290
|
'sd-field--has-label': !!this.label,
|
|
7262
7291
|
'sd-field--has-addon': !!addon,
|
|
7263
7292
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
7264
|
-
}, style: addonCssVars }, hAsync("div", { key: '
|
|
7293
|
+
}, style: { ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '38440e5f21fba28ff49fd00bfd20189af9c43707', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: 'b6d65e0db6667cbe9b4dd85ec72f9ecd08afa291', class: {
|
|
7265
7294
|
'sd-field__control': true,
|
|
7266
7295
|
'sd-field__control--has-addon': !!addon,
|
|
7267
|
-
}, style: this.width
|
|
7268
|
-
|
|
7269
|
-
|
|
7296
|
+
}, style: this.width
|
|
7297
|
+
? {
|
|
7298
|
+
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
7299
|
+
flex: 'none',
|
|
7300
|
+
}
|
|
7301
|
+
: {} }, addon && hAsync("div", { key: '71a50d839dbbd7075c1f7f7b2daad0308ebc1225', class: "sd-field__addon" }, addon), hAsync("slot", { key: '5c0696834e82eddde81c6603d26373a745a1febb' }))), this.errorMsg || this.errorMessage ? (hAsync("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && hAsync("div", { class: "sd-field__hint" }, this.hint))));
|
|
7270
7302
|
}
|
|
7271
7303
|
renderLabel(label) {
|
|
7272
7304
|
if (!label)
|
|
7273
7305
|
return null;
|
|
7274
|
-
return (hAsync("label", { class: "sd-field__label" }, this.icon && (hAsync("sd-icon", { name: this.icon.name, size: this.icon.size ??
|
|
7306
|
+
return (hAsync("label", { class: "sd-field__label" }, this.icon && (hAsync("sd-icon", { name: this.icon.name, size: this.icon.size ?? Number(fieldTokens.field.label.sm.icon), color: this.icon.color, rotate: this.icon.rotate, class: "sd-field__label__icon" })), hAsync("div", { class: "sd-field__label__text" }, label), this.labelTooltip && (hAsync("sd-tooltip", { class: "sd-field__label__tooltip", ...this.labelTooltipProps }, this.labelTooltip))));
|
|
7275
7307
|
}
|
|
7276
7308
|
static get style() { return sdFieldCss(); }
|
|
7277
7309
|
static get cmpMeta() { return {
|
|
@@ -7305,12 +7337,56 @@ class SdField {
|
|
|
7305
7337
|
}; }
|
|
7306
7338
|
}
|
|
7307
7339
|
|
|
7308
|
-
const
|
|
7340
|
+
const filepicker = {
|
|
7341
|
+
height: "28",
|
|
7342
|
+
paddingX: "12",
|
|
7343
|
+
gap: "8",
|
|
7344
|
+
radius: "4",
|
|
7345
|
+
typography: {
|
|
7346
|
+
fontWeight: "400",
|
|
7347
|
+
fontSize: "12",
|
|
7348
|
+
lineHeight: "20"},
|
|
7349
|
+
size: {
|
|
7350
|
+
icon: "16"
|
|
7351
|
+
},
|
|
7352
|
+
text: {
|
|
7353
|
+
"default": "#222222",
|
|
7354
|
+
placeholder: "#AAAAAA",
|
|
7355
|
+
disabled: "#888888"
|
|
7356
|
+
},
|
|
7357
|
+
icon: {
|
|
7358
|
+
disabled: "#BBBBBB"
|
|
7359
|
+
}
|
|
7360
|
+
};
|
|
7361
|
+
var filePickerTokens = {
|
|
7362
|
+
filepicker: filepicker
|
|
7363
|
+
};
|
|
7364
|
+
|
|
7365
|
+
const fp = filePickerTokens.filepicker;
|
|
7366
|
+
const FILE_PICKER_LAYOUT = {
|
|
7367
|
+
height: fp.height,
|
|
7368
|
+
paddingX: fp.paddingX,
|
|
7369
|
+
gap: fp.gap,
|
|
7370
|
+
radius: fp.radius,
|
|
7371
|
+
fontSize: fp.typography.fontSize,
|
|
7372
|
+
lineHeight: fp.typography.lineHeight,
|
|
7373
|
+
fontWeight: fp.typography.fontWeight,
|
|
7374
|
+
iconSize: fp.size.icon};
|
|
7375
|
+
const FILE_PICKER_COLORS = {
|
|
7376
|
+
text: fp.text,
|
|
7377
|
+
icon: {
|
|
7378
|
+
default: '#888888', // TODO: 토큰 반영 후 교체
|
|
7379
|
+
disabled: fp.icon.disabled,
|
|
7380
|
+
},
|
|
7381
|
+
};
|
|
7382
|
+
|
|
7383
|
+
const sdFilePickerCss = () => `sd-file-picker{display:inline-flex;width:100%}.sd-file-picker__content{width:100%;height:100%;display:flex;align-items:center;padding:0 var(--sd-file-picker-padding-x);gap:var(--sd-file-picker-gap);cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;vertical-align:middle}.sd-file-picker__text{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:var(--sd-file-picker-font-weight);font-size:var(--sd-file-picker-font-size);line-height:var(--sd-file-picker-line-height);color:var(--sd-file-picker-placeholder-color)}.sd-file-picker__text--active{color:var(--sd-file-picker-text-color)}.sd-file-picker__text--placeholder{color:var(--sd-file-picker-placeholder-color)}.sd-file-picker__icon{flex-shrink:0}.sd-file-picker__clear-icon{flex-shrink:0;cursor:pointer;transition:opacity 0.2s ease}.sd-file-picker__clear-icon:hover{opacity:0.7}.sd-file-picker__input{display:none}.sd-file-picker__tooltip{position:absolute;top:calc(100% - 4px);left:50%;transform:translate(-50%);z-index:1000;white-space:nowrap;padding:8px 12px;background:rgba(0, 0, 0, 0.8);color:white;font-size:12px;line-height:18px;border-radius:4px;pointer-events:none}.sd-field--disabled .sd-file-picker__content{cursor:not-allowed}.sd-field--disabled .sd-file-picker__text{color:var(--sd-file-picker-disabled-color)}.sd-file-picker--inline .sd-file-picker__content{border:none;background-color:transparent;padding:0;height:auto}.sd-file-picker--inline .sd-file-picker__text{color:var(--sd-file-picker-placeholder-color)}.sd-file-picker--inline:hover:not(.sd-file-picker--inline-disabled) .sd-file-picker__text{color:var(--sd-file-picker-text-color)}.sd-file-picker--inline .sd-file-picker__text--active{color:var(--sd-file-picker-text-color)}.sd-file-picker--inline.sd-file-picker--inline-disabled .sd-file-picker__content{cursor:not-allowed}.sd-file-picker--inline.sd-file-picker--inline-disabled .sd-file-picker__text{color:var(--sd-file-picker-disabled-color)}`;
|
|
7309
7384
|
|
|
7310
7385
|
class SdFilePicker {
|
|
7311
7386
|
constructor(hostRef) {
|
|
7312
7387
|
registerInstance(this, hostRef);
|
|
7313
|
-
this.update = createEvent(this, "sdUpdate");
|
|
7388
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
7389
|
+
this.reject = createEvent(this, "sdReject", 7);
|
|
7314
7390
|
}
|
|
7315
7391
|
get el() { return getElement(this); }
|
|
7316
7392
|
value = null;
|
|
@@ -7319,12 +7395,31 @@ class SdFilePicker {
|
|
|
7319
7395
|
inline = false;
|
|
7320
7396
|
multiple = false;
|
|
7321
7397
|
accept;
|
|
7322
|
-
|
|
7398
|
+
maxFileSize;
|
|
7399
|
+
maxTotalSize;
|
|
7400
|
+
maxFiles;
|
|
7401
|
+
// sd-field 패스스루 props
|
|
7402
|
+
name = '';
|
|
7403
|
+
label = '';
|
|
7404
|
+
addonLabel = '';
|
|
7405
|
+
hint = '';
|
|
7406
|
+
errorMessage = '';
|
|
7407
|
+
width = '';
|
|
7408
|
+
rules;
|
|
7409
|
+
error = false;
|
|
7410
|
+
status;
|
|
7411
|
+
icon = undefined;
|
|
7412
|
+
labelTooltip = '';
|
|
7413
|
+
labelTooltipProps = null;
|
|
7414
|
+
focused = false;
|
|
7323
7415
|
hovered = false;
|
|
7416
|
+
internalValue = null;
|
|
7324
7417
|
showTooltip = false;
|
|
7325
7418
|
fileInputRef;
|
|
7326
7419
|
fileNamesRef;
|
|
7420
|
+
formField;
|
|
7327
7421
|
update;
|
|
7422
|
+
reject;
|
|
7328
7423
|
valueChanged(newValue) {
|
|
7329
7424
|
this.internalValue = newValue;
|
|
7330
7425
|
}
|
|
@@ -7334,6 +7429,47 @@ class SdFilePicker {
|
|
|
7334
7429
|
componentDidUpdate() {
|
|
7335
7430
|
this.checkOverflow();
|
|
7336
7431
|
}
|
|
7432
|
+
async sdValidate() {
|
|
7433
|
+
return this.formField?.sdValidate() ?? Promise.resolve(true);
|
|
7434
|
+
}
|
|
7435
|
+
async sdReset() {
|
|
7436
|
+
const clearedValue = this.multiple ? [] : null;
|
|
7437
|
+
this.value = clearedValue;
|
|
7438
|
+
this.internalValue = clearedValue;
|
|
7439
|
+
if (this.fileInputRef) {
|
|
7440
|
+
this.fileInputRef.value = '';
|
|
7441
|
+
}
|
|
7442
|
+
await this.formField?.sdReset();
|
|
7443
|
+
}
|
|
7444
|
+
async sdResetValidate() {
|
|
7445
|
+
await this.formField?.sdResetValidation();
|
|
7446
|
+
}
|
|
7447
|
+
toBytes(value) {
|
|
7448
|
+
if (value == null)
|
|
7449
|
+
return undefined;
|
|
7450
|
+
return typeof value === 'string' ? Number(value) : value;
|
|
7451
|
+
}
|
|
7452
|
+
validateFiles(files) {
|
|
7453
|
+
const maxFileSize = this.toBytes(this.maxFileSize);
|
|
7454
|
+
const maxTotalSize = this.toBytes(this.maxTotalSize);
|
|
7455
|
+
const maxFiles = this.maxFiles != null ? Number(this.maxFiles) : undefined;
|
|
7456
|
+
if (maxFiles != null && files.length > maxFiles) {
|
|
7457
|
+
return { accepted: [], rejected: files, reason: 'max-files' };
|
|
7458
|
+
}
|
|
7459
|
+
if (maxFileSize != null) {
|
|
7460
|
+
const oversized = files.filter(f => f.size > maxFileSize);
|
|
7461
|
+
if (oversized.length > 0) {
|
|
7462
|
+
return { accepted: [], rejected: oversized, reason: 'max-file-size' };
|
|
7463
|
+
}
|
|
7464
|
+
}
|
|
7465
|
+
if (maxTotalSize != null) {
|
|
7466
|
+
const totalSize = files.reduce((sum, f) => sum + f.size, 0);
|
|
7467
|
+
if (totalSize > maxTotalSize) {
|
|
7468
|
+
return { accepted: [], rejected: files, reason: 'max-total-size' };
|
|
7469
|
+
}
|
|
7470
|
+
}
|
|
7471
|
+
return { accepted: files, rejected: [] };
|
|
7472
|
+
}
|
|
7337
7473
|
handleFileChange = (event) => {
|
|
7338
7474
|
const input = event.target;
|
|
7339
7475
|
const files = input.files;
|
|
@@ -7341,11 +7477,19 @@ class SdFilePicker {
|
|
|
7341
7477
|
return;
|
|
7342
7478
|
}
|
|
7343
7479
|
const fileArray = Array.from(files);
|
|
7480
|
+
const { accepted, rejected, reason } = this.validateFiles(fileArray);
|
|
7481
|
+
if (reason) {
|
|
7482
|
+
this.reject?.emit({ files: rejected, reason });
|
|
7483
|
+
if (this.fileInputRef) {
|
|
7484
|
+
this.fileInputRef.value = '';
|
|
7485
|
+
}
|
|
7486
|
+
return;
|
|
7487
|
+
}
|
|
7344
7488
|
if (this.multiple) {
|
|
7345
|
-
this.internalValue =
|
|
7489
|
+
this.internalValue = accepted;
|
|
7346
7490
|
}
|
|
7347
7491
|
else {
|
|
7348
|
-
this.internalValue =
|
|
7492
|
+
this.internalValue = accepted[0];
|
|
7349
7493
|
}
|
|
7350
7494
|
this.value = this.internalValue;
|
|
7351
7495
|
this.update?.emit(this.value);
|
|
@@ -7367,13 +7511,6 @@ class SdFilePicker {
|
|
|
7367
7511
|
return;
|
|
7368
7512
|
this.fileInputRef?.click();
|
|
7369
7513
|
};
|
|
7370
|
-
getStatusClass() {
|
|
7371
|
-
if (this.disabled)
|
|
7372
|
-
return 'sd-file-picker--disabled';
|
|
7373
|
-
if (this.hasFiles())
|
|
7374
|
-
return 'sd-file-picker--active';
|
|
7375
|
-
return '';
|
|
7376
|
-
}
|
|
7377
7514
|
hasFiles() {
|
|
7378
7515
|
if (!this.internalValue)
|
|
7379
7516
|
return false;
|
|
@@ -7397,23 +7534,36 @@ class SdFilePicker {
|
|
|
7397
7534
|
this.showTooltip = isOverflowing;
|
|
7398
7535
|
}
|
|
7399
7536
|
getIconColor() {
|
|
7400
|
-
|
|
7401
|
-
return this.inline ? 'grey_45' : 'grey_55';
|
|
7402
|
-
}
|
|
7403
|
-
return 'grey_70';
|
|
7537
|
+
return this.disabled ? FILE_PICKER_COLORS.icon.disabled : FILE_PICKER_COLORS.icon.default;
|
|
7404
7538
|
}
|
|
7405
7539
|
render() {
|
|
7406
7540
|
const hasFiles = this.hasFiles();
|
|
7407
7541
|
const displayText = this.getDisplayText();
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7542
|
+
const cssVars = {
|
|
7543
|
+
'--sd-file-picker-font-size': `${FILE_PICKER_LAYOUT.fontSize}px`,
|
|
7544
|
+
'--sd-file-picker-line-height': `${FILE_PICKER_LAYOUT.lineHeight}px`,
|
|
7545
|
+
'--sd-file-picker-font-weight': FILE_PICKER_LAYOUT.fontWeight,
|
|
7546
|
+
'--sd-file-picker-padding-x': `${FILE_PICKER_LAYOUT.paddingX}px`,
|
|
7547
|
+
'--sd-file-picker-gap': `${FILE_PICKER_LAYOUT.gap}px`,
|
|
7548
|
+
'--sd-file-picker-text-color': FILE_PICKER_COLORS.text.default,
|
|
7549
|
+
'--sd-file-picker-placeholder-color': FILE_PICKER_COLORS.text.placeholder,
|
|
7550
|
+
'--sd-file-picker-disabled-color': FILE_PICKER_COLORS.text.disabled,
|
|
7551
|
+
// sd-field 시스템 변수 override
|
|
7552
|
+
'--sd-system-size-field-sm-height': `${FILE_PICKER_LAYOUT.height}px`,
|
|
7553
|
+
'--sd-system-radius-field-sm': `${FILE_PICKER_LAYOUT.radius}px`,
|
|
7554
|
+
};
|
|
7555
|
+
const content = (hAsync("div", { class: "sd-file-picker__content", onClick: this.handleClick }, hAsync("input", { ref: el => (this.fileInputRef = el), type: "file", class: "sd-file-picker__input", disabled: this.disabled, multiple: this.multiple, accept: this.accept, onInput: this.handleFileChange, "aria-label": this.placeholder }), hAsync("sd-icon", { name: "attachFile", size: Number(FILE_PICKER_LAYOUT.iconSize), color: this.getIconColor(), class: "sd-file-picker__icon" }), hAsync("div", { ref: el => (this.fileNamesRef = el), class: {
|
|
7413
7556
|
'sd-file-picker__text': true,
|
|
7414
7557
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
7415
7558
|
'sd-file-picker__text--active': hasFiles,
|
|
7416
|
-
} }, displayText), !this.disabled && hasFiles && (hAsync("sd-ghost-button", {
|
|
7559
|
+
} }, displayText), !this.disabled && hasFiles && (hAsync("sd-ghost-button", { icon: "close", size: "xxs", disabled: this.disabled, class: "sd-file-picker__clear-icon", onClick: this.handleClear })), this.showTooltip && hasFiles && this.hovered && (hAsync("div", { class: "sd-file-picker__tooltip" }, displayText))));
|
|
7560
|
+
if (this.inline) {
|
|
7561
|
+
return (hAsync("div", { class: {
|
|
7562
|
+
'sd-file-picker--inline': true,
|
|
7563
|
+
'sd-file-picker--inline-disabled': this.disabled,
|
|
7564
|
+
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content));
|
|
7565
|
+
}
|
|
7566
|
+
return (hAsync("sd-field", { name: this.name, label: this.label, 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, content));
|
|
7417
7567
|
}
|
|
7418
7568
|
static get watchers() { return {
|
|
7419
7569
|
"value": [{
|
|
@@ -7431,9 +7581,28 @@ class SdFilePicker {
|
|
|
7431
7581
|
"inline": [4],
|
|
7432
7582
|
"multiple": [4],
|
|
7433
7583
|
"accept": [1],
|
|
7584
|
+
"maxFileSize": [8, "max-file-size"],
|
|
7585
|
+
"maxTotalSize": [8, "max-total-size"],
|
|
7586
|
+
"maxFiles": [8, "max-files"],
|
|
7587
|
+
"name": [1],
|
|
7588
|
+
"label": [1],
|
|
7589
|
+
"addonLabel": [1, "addon-label"],
|
|
7590
|
+
"hint": [1],
|
|
7591
|
+
"errorMessage": [1, "error-message"],
|
|
7592
|
+
"width": [8],
|
|
7593
|
+
"rules": [16],
|
|
7594
|
+
"error": [1028],
|
|
7595
|
+
"status": [1],
|
|
7596
|
+
"icon": [16],
|
|
7597
|
+
"labelTooltip": [1, "label-tooltip"],
|
|
7598
|
+
"labelTooltipProps": [16],
|
|
7599
|
+
"focused": [1028],
|
|
7600
|
+
"hovered": [1028],
|
|
7434
7601
|
"internalValue": [32],
|
|
7435
|
-
"
|
|
7436
|
-
"
|
|
7602
|
+
"showTooltip": [32],
|
|
7603
|
+
"sdValidate": [64],
|
|
7604
|
+
"sdReset": [64],
|
|
7605
|
+
"sdResetValidate": [64]
|
|
7437
7606
|
},
|
|
7438
7607
|
"$listeners$": undefined,
|
|
7439
7608
|
"$lazyBundleId$": "-",
|
|
@@ -7446,7 +7615,7 @@ const sdFloatingPortalCss = () => `.sd-floating-menu{width:fit-content;padding:1
|
|
|
7446
7615
|
class SdFloatingPopover {
|
|
7447
7616
|
constructor(hostRef) {
|
|
7448
7617
|
registerInstance(this, hostRef);
|
|
7449
|
-
this.close = createEvent(this, "sdClose");
|
|
7618
|
+
this.close = createEvent(this, "sdClose", 7);
|
|
7450
7619
|
}
|
|
7451
7620
|
get el() { return getElement(this); }
|
|
7452
7621
|
to = 'body';
|
|
@@ -7592,7 +7761,7 @@ class SdFloatingPopover {
|
|
|
7592
7761
|
this.close.emit();
|
|
7593
7762
|
}
|
|
7594
7763
|
render() {
|
|
7595
|
-
return hAsync("slot", { key: '
|
|
7764
|
+
return hAsync("slot", { key: '025daba88b77d9e250893b20261bfce08f37e332' });
|
|
7596
7765
|
}
|
|
7597
7766
|
static get style() { return sdFloatingPortalCss(); }
|
|
7598
7767
|
static get cmpMeta() { return {
|
|
@@ -7615,8 +7784,8 @@ class SdFloatingPopover {
|
|
|
7615
7784
|
class SdForm {
|
|
7616
7785
|
constructor(hostRef) {
|
|
7617
7786
|
registerInstance(this, hostRef);
|
|
7618
|
-
this.submitSuccess = createEvent(this, "sdSubmit");
|
|
7619
|
-
this.submitFail = createEvent(this, "sdValidationError");
|
|
7787
|
+
this.submitSuccess = createEvent(this, "sdSubmit", 7);
|
|
7788
|
+
this.submitFail = createEvent(this, "sdValidationError", 7);
|
|
7620
7789
|
}
|
|
7621
7790
|
formClass = '';
|
|
7622
7791
|
fields = [];
|
|
@@ -7789,7 +7958,7 @@ const sdGhostButtonCss = () => `sd-ghost-button{display:inline-flex;width:fit-co
|
|
|
7789
7958
|
class SdGhostButton {
|
|
7790
7959
|
constructor(hostRef) {
|
|
7791
7960
|
registerInstance(this, hostRef);
|
|
7792
|
-
this.click = createEvent(this, "sdClick");
|
|
7961
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
7793
7962
|
}
|
|
7794
7963
|
icon;
|
|
7795
7964
|
size = 'sm';
|
|
@@ -7825,7 +7994,7 @@ class SdGhostButton {
|
|
|
7825
7994
|
? GHOST_BUTTON_DISABLED_ICON
|
|
7826
7995
|
: GHOST_BUTTON_CONTENT_COLORS[this.intent];
|
|
7827
7996
|
const accessibleName = this.ariaLabel.trim() || undefined;
|
|
7828
|
-
return (hAsync("button", { key: '
|
|
7997
|
+
return (hAsync("button", { key: '8d6aa7e82d3e3f31638e98870283723fdb87e0e2', class: {
|
|
7829
7998
|
'sd-ghost-button': true,
|
|
7830
7999
|
'sd-ghost-button--disabled': this.disabled,
|
|
7831
8000
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
@@ -7834,7 +8003,7 @@ class SdGhostButton {
|
|
|
7834
8003
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[this.intent],
|
|
7835
8004
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
7836
8005
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
7837
|
-
}, onClick: this.handleClick }, hAsync("sd-icon", { key: '
|
|
8006
|
+
}, onClick: this.handleClick }, hAsync("sd-icon", { key: 'd858b173e3f93c49703b31cde6be4fa81440ae7a', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
7838
8007
|
}
|
|
7839
8008
|
static get style() { return sdGhostButtonCss(); }
|
|
7840
8009
|
static get cmpMeta() { return {
|
|
@@ -7906,9 +8075,9 @@ class SdGuide {
|
|
|
7906
8075
|
};
|
|
7907
8076
|
render() {
|
|
7908
8077
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
7909
|
-
return (hAsync("div", { key: '
|
|
8078
|
+
return (hAsync("div", { key: 'd98a48deb586592dbb379acb4e3725a97601dccd', class: "sd-guide", style: {
|
|
7910
8079
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
7911
|
-
} }, hAsync("sd-button", { key: '
|
|
8080
|
+
} }, hAsync("sd-button", { key: '35b3215ac7d73f2ae9375ab46b2981b314769fdd', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: this.label || GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (hAsync("sd-portal", { key: '56bda42619f3f10fbdc428e3d11abc1a4a812029', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, hAsync("div", { key: 'a73954469eb2f711ece68c8b17fe2d197b4fd515', style: { position: 'absolute', width: '0px', height: '0px' } }, hAsync("div", { key: 'bf07222fe61b7121d99f0ae39e1e7ffb539db1de', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, hAsync("sd-button", { key: 'c9b8d6c2a311e7a83e9c8b2568b3010e5619ad51', class: "sd-guide__popup__close", icon: "close", color: "grey_65", size: "md", variant: "ghost", noHover: true, onSdClick: this.closeDropdown }), hAsync("div", { key: 'da280eb73610cb0f70c5adbf10e413ea4d8a4629', class: "sd-guide__popup__header" }, hAsync("sd-icon", { key: 'ec73b6ed0777b464208e9bf94d96b044d8770714', name: "helpOutline", size: 24, color: "green_65" }), hAsync("h3", { key: '18a221c3dedb1882479c2a567b3c870d7dfd157b', class: "sd-guide__popup__title" }, this.popupTitle || GUIDE_LABEL[this.type])), hAsync("ul", { key: '5a8abec7b5c3246a5eb6a7ec45a3c16a05ccab72', class: "sd-guide__popup__list" }, this.renderListItem(this.message))))))));
|
|
7912
8081
|
}
|
|
7913
8082
|
// 현재 2depth까지만 스타일 적용
|
|
7914
8083
|
renderListItem(message, depth = 0) {
|
|
@@ -8499,9 +8668,9 @@ const sdInputCss = () => `sd-icon{display:inline-block;line-height:0}sd-icon .sd
|
|
|
8499
8668
|
class SdInput {
|
|
8500
8669
|
constructor(hostRef) {
|
|
8501
8670
|
registerInstance(this, hostRef);
|
|
8502
|
-
this.input = createEvent(this, "sdUpdate");
|
|
8503
|
-
this.focus = createEvent(this, "sdFocus");
|
|
8504
|
-
this.blur = createEvent(this, "sdBlur");
|
|
8671
|
+
this.input = createEvent(this, "sdUpdate", 7);
|
|
8672
|
+
this.focus = createEvent(this, "sdFocus", 7);
|
|
8673
|
+
this.blur = createEvent(this, "sdBlur", 7);
|
|
8505
8674
|
}
|
|
8506
8675
|
get host() { return getElement(this); }
|
|
8507
8676
|
value = null;
|
|
@@ -8605,12 +8774,12 @@ class SdInput {
|
|
|
8605
8774
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
8606
8775
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
8607
8776
|
};
|
|
8608
|
-
return (hAsync("sd-field", { key: '
|
|
8777
|
+
return (hAsync("sd-field", { key: '942bba44bffb9c047ce07c07c9cefd02b6b50e62', name: this.name, label: this.label, 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("label", { key: '67b37ad7d802c11f9fc1bb372371040a267b9fb9', class: "sd-input__content" }, hAsync("slot", { key: '0068eac35163a12efe74288eb7a0871bf1bbbf81', name: "prefix" }), hAsync("input", { key: '5c48d3c102ff8cb01a98a60a2128bdd5422aa032', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: 'faa652d843aaba6229961566590ea564604fd183', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (hAsync("sd-ghost-button", { key: '2935121a60b1cdbb2d1fdfc83d29fdad5da796c3', icon: "close", ariaLabel: "close", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
8609
8778
|
if (this.disabled)
|
|
8610
8779
|
return;
|
|
8611
8780
|
this.internalValue = '';
|
|
8612
8781
|
await this.formField?.sdValidate();
|
|
8613
|
-
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '
|
|
8782
|
+
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '800f789b3cff3b8b32fe2c048f8fabe332f69d66', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
8614
8783
|
if (this.disabled)
|
|
8615
8784
|
return;
|
|
8616
8785
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -8677,7 +8846,7 @@ class SdLoadingSpinner {
|
|
|
8677
8846
|
return resolveColor(this.color);
|
|
8678
8847
|
}
|
|
8679
8848
|
render() {
|
|
8680
|
-
return (hAsync(Fragment, { key: '
|
|
8849
|
+
return (hAsync(Fragment, { key: '1a4edb8be9cc83ab900cd615ee30958d9822e98b' }, hAsync("svg", { key: '634070026b58303bf3423b10f37ed6603179b9b1', class: "sd-loading-spinner", width: "72px", height: "72px", viewBox: "25 25 50 50", style: { color: this.resolvedColor } }, hAsync("circle", { key: 'fda3f7e4f787176f6030e19a3f2c1dd59326d35a', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
8681
8850
|
}
|
|
8682
8851
|
static get style() { return sdLoadingSpinnerCss(); }
|
|
8683
8852
|
static get cmpMeta() { return {
|
|
@@ -8692,7 +8861,7 @@ class SdLoadingSpinner {
|
|
|
8692
8861
|
}; }
|
|
8693
8862
|
}
|
|
8694
8863
|
|
|
8695
|
-
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,
|
|
8864
|
+
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, 9999);display:flex;align-items:center;justify-content:center}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}sd-modal-container .sd-modal-container__backdrop--visible{opacity:1}sd-modal-container .sd-modal-container__content{position:relative;z-index:1;display:grid;place-items:center}sd-modal-container .sd-modal-container__content>*{grid-row:1;grid-column:1}sd-modal-container .sd-modal-container__modal{opacity:0;transform:scale(0);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)}}`;
|
|
8696
8865
|
|
|
8697
8866
|
let modalIdCounter = 0;
|
|
8698
8867
|
const ANIMATION_DURATION = 350;
|
|
@@ -9043,9 +9212,9 @@ const sdNumberInputCss = () => `sd-number-input{display:inline-flex}sd-number-in
|
|
|
9043
9212
|
class SdNumberInput {
|
|
9044
9213
|
constructor(hostRef) {
|
|
9045
9214
|
registerInstance(this, hostRef);
|
|
9046
|
-
this.update = createEvent(this, "sdUpdate");
|
|
9047
|
-
this.focus = createEvent(this, "sdFocus");
|
|
9048
|
-
this.blur = createEvent(this, "sdBlur");
|
|
9215
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
9216
|
+
this.focus = createEvent(this, "sdFocus", 7);
|
|
9217
|
+
this.blur = createEvent(this, "sdBlur", 7);
|
|
9049
9218
|
}
|
|
9050
9219
|
get el() { return getElement(this); }
|
|
9051
9220
|
size = 'sm';
|
|
@@ -9316,12 +9485,12 @@ class SdNumberInput {
|
|
|
9316
9485
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
9317
9486
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
9318
9487
|
};
|
|
9319
|
-
return (hAsync("sd-field", { key: '
|
|
9488
|
+
return (hAsync("sd-field", { key: 'c09a48d9c0bfb0eb6c4327e63ff190b4fee7eff9', name: this.name, label: this.label, 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, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: '7ba690b017d58326640083feb4f88ab74e20f7e3', class: "sd-number-input__content" }, this.useButton && (hAsync("button", { key: '0eb3ccd26428fce21d74b1e2f06258b054337017', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '4af528aa82ddc6f8abbee1fa8617f5fefc77f41b', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
9320
9489
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
9321
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: '
|
|
9490
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: 'f524a85295c29dc02b6803d5a145d24d6d7c3f1b', class: "sd-number-input__prefix" }, this.inputPrefix)), hAsync("input", { key: '4f3c539cb82745b317ebc2e17f2852a5b386ba6b', 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: {
|
|
9322
9491
|
textAlign: this.useButton ? 'center' : 'right',
|
|
9323
9492
|
...this.inputStyle,
|
|
9324
|
-
} }), this.inputSuffix && (hAsync("span", { key: '
|
|
9493
|
+
} }), this.inputSuffix && (hAsync("span", { key: '35a1cd706a87cf9320262b12aab7679cbb9eb7f2', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (hAsync("button", { key: 'a818bf380ac32291155bf8a3c35cf9b9a007ec5e', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: '0d2e75fb5ebada9aa0846e807695d31f29b18647', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
9325
9494
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
9326
9495
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
9327
9496
|
}
|
|
@@ -9390,7 +9559,7 @@ const PER_PAGE = 10;
|
|
|
9390
9559
|
class SdPagination {
|
|
9391
9560
|
constructor(hostRef) {
|
|
9392
9561
|
registerInstance(this, hostRef);
|
|
9393
|
-
this.pageChange = createEvent(this, "sdPageChange");
|
|
9562
|
+
this.pageChange = createEvent(this, "sdPageChange", 7);
|
|
9394
9563
|
}
|
|
9395
9564
|
currentPage = 1;
|
|
9396
9565
|
lastPage = 1;
|
|
@@ -9452,12 +9621,12 @@ class SdPagination {
|
|
|
9452
9621
|
}
|
|
9453
9622
|
}
|
|
9454
9623
|
render() {
|
|
9455
|
-
return (hAsync("div", { key: '
|
|
9624
|
+
return (hAsync("div", { key: 'd370dfd96244d439f83aa6f283ea3601b51ca8f1', class: this.paginationClasses }, hAsync("div", { key: '4287df0cbd99892e643b1e68ce051ac119c758d2', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "pagination-info" }, hAsync("span", { class: "current-page" }, this.currentPage), hAsync("span", null, "/"), hAsync("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
9456
9625
|
'pagination-btn': true,
|
|
9457
9626
|
'pagination-btn--selected': this.currentPage === n,
|
|
9458
9627
|
}, disabled: this.currentPage === n, style: {
|
|
9459
9628
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
9460
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
9629
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: 'ad51e05546d929ac01898e93ab4285018837394a', class: "append-btns" }, this.renderNextButtons())));
|
|
9461
9630
|
}
|
|
9462
9631
|
static get style() { return sdPaginationCss(); }
|
|
9463
9632
|
static get cmpMeta() { return {
|
|
@@ -9529,14 +9698,14 @@ class SdPopover {
|
|
|
9529
9698
|
this.showPopover = false;
|
|
9530
9699
|
};
|
|
9531
9700
|
render() {
|
|
9532
|
-
return (hAsync(Fragment, { key: '
|
|
9701
|
+
return (hAsync(Fragment, { key: '6a0b64ce442f1bd1dc76f22a160172a87a63a1d8' }, this.label ? (hAsync("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) })) : (hAsync("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 && (hAsync("sd-floating-portal", { key: 'e8d39da8af440c81773805331ab97a0105124d81', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement, offset: this.popoverOffset }, hAsync("div", { key: 'f608e4dc384f48a9f52133055b718e305d1e9f86', class: {
|
|
9533
9702
|
'sd-floating-menu': true,
|
|
9534
9703
|
'sd-floating-menu--popover': true,
|
|
9535
9704
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
9536
9705
|
[this.menuClass]: !!this.menuClass,
|
|
9537
9706
|
}, style: {
|
|
9538
9707
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
9539
|
-
} }, hAsync("i", { key: '
|
|
9708
|
+
} }, hAsync("i", { key: '8052d9f446b03770c22857048c88048f0bc982cd', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${this.placement}` }, hAsync(TooltipArrow, { key: 'f6266c4da625b539f9864da6b09599a5b4bf07cb' })), hAsync("div", { key: '8de90282dae5ba223b6495c1f5ef9baaac88ed17', class: "sd-floating-menu__content" }, this.menuTitle && hAsync("div", { key: '79e26ede34d97abce06bfda8dc1bd29122c2e1ac', class: "sd-floating-menu__title" }, this.menuTitle), this.messages.length > 0 && (hAsync("div", { key: 'a25d8a379e373e136363a3bce19be76fd2fba182', class: "sd-floating-menu__messages" }, this.messages.map(message => (hAsync("div", null, message))))), this.buttons.length > 0 && (hAsync("div", { key: '9cf61069c654a2d884ae0660ec6ffceb563e3617', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (hAsync("sd-button", { ...button })))))), this.useClose && (hAsync("sd-ghost-button", { key: '14ef6918e763521ff4db0a0f05e1598e767f257d', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.handleClose() })))))));
|
|
9540
9709
|
}
|
|
9541
9710
|
static get watchers() { return {
|
|
9542
9711
|
"show": [{
|
|
@@ -9574,7 +9743,7 @@ class SdPopover {
|
|
|
9574
9743
|
class SdPortal {
|
|
9575
9744
|
constructor(hostRef) {
|
|
9576
9745
|
registerInstance(this, hostRef);
|
|
9577
|
-
this.close = createEvent(this, "sdClose");
|
|
9746
|
+
this.close = createEvent(this, "sdClose", 3);
|
|
9578
9747
|
}
|
|
9579
9748
|
get hostEl() { return getElement(this); }
|
|
9580
9749
|
to = 'body';
|
|
@@ -9796,7 +9965,7 @@ class SdPortal {
|
|
|
9796
9965
|
this.close.emit();
|
|
9797
9966
|
}
|
|
9798
9967
|
render() {
|
|
9799
|
-
return hAsync("slot", { key: '
|
|
9968
|
+
return hAsync("slot", { key: 'c1e05f5d7c809418279e4ded8bbb8c4b29703bb1' });
|
|
9800
9969
|
}
|
|
9801
9970
|
static get watchers() { return {
|
|
9802
9971
|
"open": [{
|
|
@@ -9859,10 +10028,10 @@ class SdProgress {
|
|
|
9859
10028
|
return this.statusColor[this.progressStatus];
|
|
9860
10029
|
}
|
|
9861
10030
|
render() {
|
|
9862
|
-
return (hAsync("div", { key: '
|
|
10031
|
+
return (hAsync("div", { key: 'f5b723807c29b9e4a742febaf7d2f984f9de61d5', style: {
|
|
9863
10032
|
'--progress-color': this.progressColor,
|
|
9864
10033
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
9865
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '
|
|
10034
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '369e1b7805414b8a2fa5e44f4746435335a251cb', class: "sd-progress__label" }, this.label)));
|
|
9866
10035
|
}
|
|
9867
10036
|
renderBarProgress() {
|
|
9868
10037
|
return (hAsync("div", { class: `sd-progress__bar sd-progress__bar--${this.progressStatus}` }, hAsync("div", { class: ['sd-progress__bar__percent', this.progressPercentage < 100 ? 'proceed' : ''].join(' ') }), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.progressPercentage, "%"), hAsync("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.progressPercentage, "%")));
|
|
@@ -9898,7 +10067,7 @@ const sdRadioCss = () => `sd-radio{display:inline-flex;width:fit-content}sd-radi
|
|
|
9898
10067
|
class SdRadio {
|
|
9899
10068
|
constructor(hostRef) {
|
|
9900
10069
|
registerInstance(this, hostRef);
|
|
9901
|
-
this.update = createEvent(this, "sdUpdate");
|
|
10070
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
9902
10071
|
}
|
|
9903
10072
|
value;
|
|
9904
10073
|
disabled = false;
|
|
@@ -9944,7 +10113,7 @@ const sdRadioButtonGroupCss = () => `sd-radio-button-group{display:inline-flex;w
|
|
|
9944
10113
|
class SdRadioButtonGroup {
|
|
9945
10114
|
constructor(hostRef) {
|
|
9946
10115
|
registerInstance(this, hostRef);
|
|
9947
|
-
this.change = createEvent(this, "sdUpdate");
|
|
10116
|
+
this.change = createEvent(this, "sdUpdate", 7);
|
|
9948
10117
|
}
|
|
9949
10118
|
value;
|
|
9950
10119
|
options = [];
|
|
@@ -10010,7 +10179,7 @@ const sdRadioGroupCss = () => `sd-radio{display:inline-flex;width:fit-content}sd
|
|
|
10010
10179
|
class SdRadioGroup {
|
|
10011
10180
|
constructor(hostRef) {
|
|
10012
10181
|
registerInstance(this, hostRef);
|
|
10013
|
-
this.change = createEvent(this, "sdUpdate");
|
|
10182
|
+
this.change = createEvent(this, "sdUpdate", 7);
|
|
10014
10183
|
}
|
|
10015
10184
|
value;
|
|
10016
10185
|
options = [];
|
|
@@ -10093,8 +10262,8 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
10093
10262
|
constructor(hostRef) {
|
|
10094
10263
|
super();
|
|
10095
10264
|
registerInstance(this, hostRef);
|
|
10096
|
-
this.update = createEvent(this, "sdUpdate");
|
|
10097
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
10265
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
10266
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
10098
10267
|
}
|
|
10099
10268
|
get el() { return getElement(this); }
|
|
10100
10269
|
// props
|
|
@@ -10298,9 +10467,9 @@ const sdSelectDropdownCss = () => `.sd-select-dropdown .sd-select-option-placeho
|
|
|
10298
10467
|
class SdSelectDropdown {
|
|
10299
10468
|
constructor(hostRef) {
|
|
10300
10469
|
registerInstance(this, hostRef);
|
|
10301
|
-
this.optionClick = createEvent(this, "sdOptionClick");
|
|
10302
|
-
this.optionFiltered = createEvent(this, "sdOptionFiltered");
|
|
10303
|
-
this.scroll = createEvent(this, "sdScroll");
|
|
10470
|
+
this.optionClick = createEvent(this, "sdOptionClick", 7);
|
|
10471
|
+
this.optionFiltered = createEvent(this, "sdOptionFiltered", 7);
|
|
10472
|
+
this.scroll = createEvent(this, "sdScroll", 7);
|
|
10304
10473
|
}
|
|
10305
10474
|
itemIndex;
|
|
10306
10475
|
value = null;
|
|
@@ -10446,10 +10615,10 @@ class SdSelectDropdown {
|
|
|
10446
10615
|
this.isScrolled = scrollTop > 0;
|
|
10447
10616
|
};
|
|
10448
10617
|
render() {
|
|
10449
|
-
return (hAsync("div", { key: '
|
|
10618
|
+
return (hAsync("div", { key: '47a99b4faac3adb110a548860ef094ba3bd4630a', class: {
|
|
10450
10619
|
'sd-select-dropdown': true,
|
|
10451
10620
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
10452
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (hAsync("sd-select-search-input", { key: '
|
|
10621
|
+
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (hAsync("sd-select-search-input", { key: '0ed08c8a422d7d0be26ffcd68a424700feb6d66f', ref: el => (this.searchRef = el), isScrolled: this.isScrolled, searchText: this.searchText, onSdSearchInput: (event) => (this.searchText = event.detail || ''), onSdSearchFocus: () => (this.itemIndex = -1) })), this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (hAsync("slot", { name: `option-${option.value}` }, hAsync("sd-select-option", { option: option, index: index, isSelected: this.isOptionSelected(option.value), isFocused: index === this.itemIndex, onOptionClick: ({ detail }) => this.optionClick.emit(detail), useCheckbox: this.useCheckbox }))))) : (hAsync("slot", { name: "option-placeholder" }, hAsync("div", { class: 'sd-select-option-placeholder' }, this.optionPlaceholder)))));
|
|
10453
10622
|
}
|
|
10454
10623
|
static get watchers() { return {
|
|
10455
10624
|
"filteredOptions": [{
|
|
@@ -10496,8 +10665,8 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
10496
10665
|
constructor(hostRef) {
|
|
10497
10666
|
super();
|
|
10498
10667
|
registerInstance(this, hostRef);
|
|
10499
|
-
this.update = createEvent(this, "sdUpdate");
|
|
10500
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
10668
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
10669
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
10501
10670
|
}
|
|
10502
10671
|
get el() { return getElement(this); }
|
|
10503
10672
|
// props
|
|
@@ -10760,7 +10929,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
10760
10929
|
});
|
|
10761
10930
|
}
|
|
10762
10931
|
render() {
|
|
10763
|
-
return (hAsync("sd-field", { key: '
|
|
10932
|
+
return (hAsync("sd-field", { key: 'a0269e6ebfce2363c451fdb6afbe3979265ffb52', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: '55c8f062080befa65986e29d3b7835146150302a', class: {
|
|
10764
10933
|
'sd-select-group': true,
|
|
10765
10934
|
'sd-select-group--open': this.isOpen,
|
|
10766
10935
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -10864,8 +11033,8 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
10864
11033
|
constructor(hostRef) {
|
|
10865
11034
|
super();
|
|
10866
11035
|
registerInstance(this, hostRef);
|
|
10867
|
-
this.update = createEvent(this, "sdUpdate");
|
|
10868
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
11036
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
11037
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
10869
11038
|
}
|
|
10870
11039
|
get el() { return getElement(this); }
|
|
10871
11040
|
// props
|
|
@@ -11008,7 +11177,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
11008
11177
|
this.handleOptionSelection(option);
|
|
11009
11178
|
};
|
|
11010
11179
|
render() {
|
|
11011
|
-
return (hAsync("sd-field", { key: '
|
|
11180
|
+
return (hAsync("sd-field", { key: 'c2509aa07a6d69bd24bca0afd708d92db47e8084', label: this.label, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, hAsync("div", { key: 'd0e5ac84ad2aeb947b02b5a2cd4fbb66bf6e9419', class: {
|
|
11012
11181
|
'sd-select-multiple': true,
|
|
11013
11182
|
'sd-select-multiple--open': this.isOpen,
|
|
11014
11183
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -11085,8 +11254,8 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
11085
11254
|
constructor(hostRef) {
|
|
11086
11255
|
super();
|
|
11087
11256
|
registerInstance(this, hostRef);
|
|
11088
|
-
this.update = createEvent(this, "sdUpdate");
|
|
11089
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
11257
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
11258
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
11090
11259
|
}
|
|
11091
11260
|
get el() { return getElement(this); }
|
|
11092
11261
|
// props
|
|
@@ -11578,7 +11747,7 @@ const sdSelectOptionCss = () => `sd-select-option{display:block;height:fit-conte
|
|
|
11578
11747
|
class SdSelectOption {
|
|
11579
11748
|
constructor(hostRef) {
|
|
11580
11749
|
registerInstance(this, hostRef);
|
|
11581
|
-
this.optionClick = createEvent(this, "optionClick");
|
|
11750
|
+
this.optionClick = createEvent(this, "optionClick", 7);
|
|
11582
11751
|
}
|
|
11583
11752
|
get el() { return getElement(this); }
|
|
11584
11753
|
option;
|
|
@@ -11604,7 +11773,7 @@ class SdSelectOption {
|
|
|
11604
11773
|
}
|
|
11605
11774
|
};
|
|
11606
11775
|
render() {
|
|
11607
|
-
return (hAsync("div", { key: '
|
|
11776
|
+
return (hAsync("div", { key: 'b9844296973b6e85d3c3e3652671e89f470ec7a9', class: {
|
|
11608
11777
|
'sd-select__option': true,
|
|
11609
11778
|
'sd-select__option--selected': this.isSelected,
|
|
11610
11779
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -11649,7 +11818,7 @@ const sdSelectOptionGroupCss = () => `sd-select-option-group{display:block;heigh
|
|
|
11649
11818
|
class SdSelectOptionGroup {
|
|
11650
11819
|
constructor(hostRef) {
|
|
11651
11820
|
registerInstance(this, hostRef);
|
|
11652
|
-
this.optionClick = createEvent(this, "optionClick");
|
|
11821
|
+
this.optionClick = createEvent(this, "optionClick", 7);
|
|
11653
11822
|
}
|
|
11654
11823
|
get el() { return getElement(this); }
|
|
11655
11824
|
option;
|
|
@@ -11690,7 +11859,7 @@ class SdSelectOptionGroup {
|
|
|
11690
11859
|
}
|
|
11691
11860
|
};
|
|
11692
11861
|
render() {
|
|
11693
|
-
return (hAsync("div", { key: '
|
|
11862
|
+
return (hAsync("div", { key: '9742c10ec20db29db941ac58666eb662b7b4275e', class: {
|
|
11694
11863
|
'sd-select__option-group': true,
|
|
11695
11864
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
11696
11865
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -11699,10 +11868,10 @@ class SdSelectOptionGroup {
|
|
|
11699
11868
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
11700
11869
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
11701
11870
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
11702
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: '
|
|
11871
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, hAsync("div", { key: 'e09a53d6c7e9897266a6b7b2ba2725afd2d45f67', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (hAsync("sd-checkbox", { key: '4b1d68eade6a25b44ad8c28c7bbaaf894d3b6158', value: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
11703
11872
|
e.preventDefault();
|
|
11704
11873
|
this.handleClick(this.option, this.isSelected, e);
|
|
11705
|
-
} })), hAsync("span", { key: '
|
|
11874
|
+
} })), hAsync("span", { key: '5bd439162ed1ac623a8bec83e31c924294c61b75', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (hAsync("span", { key: '39a6367f373ffd7403eb37a40e119e1534e79d22', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
11706
11875
|
}
|
|
11707
11876
|
static get style() { return sdSelectOptionGroupCss(); }
|
|
11708
11877
|
static get cmpMeta() { return {
|
|
@@ -11732,8 +11901,8 @@ const sdSelectSearchInputCss = () => `sd-select-search-input{position:sticky;top
|
|
|
11732
11901
|
class SdSelectSearchInput {
|
|
11733
11902
|
constructor(hostRef) {
|
|
11734
11903
|
registerInstance(this, hostRef);
|
|
11735
|
-
this.searchInput = createEvent(this, "sdSearchInput");
|
|
11736
|
-
this.searchFocus = createEvent(this, "sdSearchFocus");
|
|
11904
|
+
this.searchInput = createEvent(this, "sdSearchInput", 7);
|
|
11905
|
+
this.searchFocus = createEvent(this, "sdSearchFocus", 7);
|
|
11737
11906
|
}
|
|
11738
11907
|
isScrolled = false;
|
|
11739
11908
|
searchText = '';
|
|
@@ -11751,17 +11920,17 @@ class SdSelectSearchInput {
|
|
|
11751
11920
|
input?.focus({ preventScroll: true });
|
|
11752
11921
|
}
|
|
11753
11922
|
render() {
|
|
11754
|
-
return (hAsync("div", { key: '
|
|
11923
|
+
return (hAsync("div", { key: '2d211645dc4041411e187f248a260a23b7c544f6', class: {
|
|
11755
11924
|
'sd-select-search-input': true,
|
|
11756
11925
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
11757
|
-
}, onClick: event => event.stopPropagation() }, hAsync("sd-input", { key: '
|
|
11926
|
+
}, onClick: event => event.stopPropagation() }, hAsync("sd-input", { key: 'c609af0ab36359c8ccaea5827821dbc509d13eac', ref: el => (this.searchRef = el), value: this.searchText, placeholder: "\uAC80\uC0C9", clearable: true, inputStyle: { 'padding-left': '8px' }, autofocus: true, onSdUpdate: event => {
|
|
11758
11927
|
this.searchInput.emit(String(event?.detail));
|
|
11759
11928
|
}, onSdFocus: () => {
|
|
11760
11929
|
this.searchFocus.emit();
|
|
11761
11930
|
}, onKeyDown: event => {
|
|
11762
11931
|
if (event.code === 'Enter')
|
|
11763
11932
|
event.stopPropagation();
|
|
11764
|
-
} }, hAsync("sd-icon", { key: '
|
|
11933
|
+
} }, hAsync("sd-icon", { key: '96a511b1f8625c883ec50d5e2985ff396d7b57c7', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
11765
11934
|
}
|
|
11766
11935
|
static get style() { return sdSelectSearchInputCss(); }
|
|
11767
11936
|
static get cmpMeta() { return {
|
|
@@ -11784,8 +11953,8 @@ const sdSelectV2Css = () => `sd-select-v2{display:inline-flex}sd-select-v2 sd-po
|
|
|
11784
11953
|
class SdSelectV2 {
|
|
11785
11954
|
constructor(hostRef) {
|
|
11786
11955
|
registerInstance(this, hostRef);
|
|
11787
|
-
this.update = createEvent(this, "sdUpdate");
|
|
11788
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
11956
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
11957
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
11789
11958
|
}
|
|
11790
11959
|
static VIEWPORT_PADDING = 20;
|
|
11791
11960
|
static PORTAL_OFFSET_Y = 4;
|
|
@@ -11992,13 +12161,13 @@ class SdSelectV2 {
|
|
|
11992
12161
|
this.closeDropdown();
|
|
11993
12162
|
},
|
|
11994
12163
|
};
|
|
11995
|
-
return (hAsync("sd-field", { key: '
|
|
12164
|
+
return (hAsync("sd-field", { key: '85614fb127c63bec86a17e73ac1942aefbc62ad1', name: this.fieldName || this.internalName, label: this.label, 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: () => {
|
|
11996
12165
|
this.hovered = true;
|
|
11997
12166
|
}, onMouseLeave: () => {
|
|
11998
12167
|
this.hovered = false;
|
|
11999
|
-
} }, hAsync("div", { key: '
|
|
12168
|
+
} }, hAsync("div", { key: '4231e75590fec54915d580d7a4f6248232bca365', class: "sd-select-v2", ref: el => {
|
|
12000
12169
|
this.triggerRef = el;
|
|
12001
|
-
} }, hAsync("sd-select-v2-trigger", { key: '
|
|
12170
|
+
} }, hAsync("sd-select-v2-trigger", { key: '4e75ec1af0ba09ba8cd63c795e527035114037a9', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: 'de609975a56d52e542fc46a4d367b74bdcaa7e7b', ...portalProps }, hAsync("sd-select-v2-listbox", { key: '7d2fff4a3877701a68e422aa29e4f5a18e1d033c', 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) })))));
|
|
12002
12171
|
}
|
|
12003
12172
|
static get watchers() { return {
|
|
12004
12173
|
"isOpen": [{
|
|
@@ -12206,7 +12375,7 @@ const sdSelectV2ListItemCss = () => `sd-select-v2-list-item{display:block}sd-sel
|
|
|
12206
12375
|
class SdSelectV2ListItem {
|
|
12207
12376
|
constructor(hostRef) {
|
|
12208
12377
|
registerInstance(this, hostRef);
|
|
12209
|
-
this.listItemClick = createEvent(this, "sdListItemClick");
|
|
12378
|
+
this.listItemClick = createEvent(this, "sdListItemClick", 7);
|
|
12210
12379
|
}
|
|
12211
12380
|
option;
|
|
12212
12381
|
depth = 1;
|
|
@@ -12271,7 +12440,7 @@ class SdSelectV2ListItem {
|
|
|
12271
12440
|
if (isDepth1Group) {
|
|
12272
12441
|
cssVars['--list-item-border-top'] = `${LIST_ITEM_COLORS.depth1.borderWidth}px solid ${LIST_ITEM_COLORS.depth1.border}`;
|
|
12273
12442
|
}
|
|
12274
|
-
return (hAsync("div", { key: '
|
|
12443
|
+
return (hAsync("div", { key: 'a7d424f1b7025cd41273a0264cdc1f973ff13061', class: {
|
|
12275
12444
|
'sd-select-v2-list-item': true,
|
|
12276
12445
|
'sd-select-v2-list-item--group': isGroup,
|
|
12277
12446
|
'sd-select-v2-list-item--depth1-group': isDepth1Group,
|
|
@@ -12281,7 +12450,7 @@ class SdSelectV2ListItem {
|
|
|
12281
12450
|
'sd-select-v2-list-item--focused': this.isFocused,
|
|
12282
12451
|
'sd-select-v2-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
12283
12452
|
'sd-select-v2-list-item--disabled': !!this.option.disabled,
|
|
12284
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("sd-checkbox", { key: '
|
|
12453
|
+
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("sd-checkbox", { key: 'bbcd2a4ce4b0a2efdc06647a7b2d6c1f0875667c', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, class: "sd-select-v2-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), hAsync("span", { key: '6f0df85e664b797547d2f24038f5112767b3fa67', class: "sd-select-v2-list-item__label" }, this.option.label), this.countInfo && (hAsync("span", { key: '04e862cc16406c1fd3e27e716c33f54d72f7d80d', class: "sd-select-v2-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
|
|
12285
12454
|
}
|
|
12286
12455
|
static get style() { return sdSelectV2ListItemCss(); }
|
|
12287
12456
|
static get cmpMeta() { return {
|
|
@@ -12306,8 +12475,8 @@ const sdSelectV2ListItemSearchCss = () => `sd-select-v2-list-item-search{display
|
|
|
12306
12475
|
class SdSelectV2ListItemSearch {
|
|
12307
12476
|
constructor(hostRef) {
|
|
12308
12477
|
registerInstance(this, hostRef);
|
|
12309
|
-
this.searchFilter = createEvent(this, "sdSearchFilter");
|
|
12310
|
-
this.searchFocus = createEvent(this, "sdSearchFocus");
|
|
12478
|
+
this.searchFilter = createEvent(this, "sdSearchFilter", 7);
|
|
12479
|
+
this.searchFocus = createEvent(this, "sdSearchFocus", 7);
|
|
12311
12480
|
}
|
|
12312
12481
|
isScrolled = false;
|
|
12313
12482
|
searchText = '';
|
|
@@ -12349,12 +12518,12 @@ class SdSelectV2ListItemSearch {
|
|
|
12349
12518
|
clearTimeout(this.debounceTimer);
|
|
12350
12519
|
}
|
|
12351
12520
|
render() {
|
|
12352
|
-
return (hAsync("div", { key: '
|
|
12521
|
+
return (hAsync("div", { key: '87f0a8fc24fe4b80cd29f63ca4f269b242a35f56', class: {
|
|
12353
12522
|
'sd-select-v2-list-item-search': true,
|
|
12354
12523
|
'sd-select-v2-list-item-search--scrolled': this.isScrolled,
|
|
12355
|
-
} }, hAsync("div", { key: '
|
|
12524
|
+
} }, hAsync("div", { key: '980ad86deb07ae25373c8802caa46febbdc1d8f6', class: "sd-select-v2-list-item-search__inner" }, hAsync("sd-icon", { key: '9e9fc2104743c1ec7790cffffb955135908b36e7', name: "search", size: 16, color: "grey_70", class: "sd-select-v2-list-item-search__icon" }), hAsync("input", { key: '601668bfaffcba5285375e845d0b2ef59238f1a8', ref: el => {
|
|
12356
12525
|
this.inputEl = el;
|
|
12357
|
-
}, type: "text", class: "sd-select-v2-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), this.searchText && (hAsync("button", { key: '
|
|
12526
|
+
}, type: "text", class: "sd-select-v2-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), this.searchText && (hAsync("button", { key: '56973c7d365f9734b2135aa406651edd372f9789', type: "button", class: "sd-select-v2-list-item-search__clear", onClick: this.handleClear }, hAsync("sd-icon", { key: '84161963570776fe9ecfb519d654fe00aa4e7c6a', name: "close", size: 12, color: "#888888" }))))));
|
|
12358
12527
|
}
|
|
12359
12528
|
static get style() { return sdSelectV2ListItemSearchCss(); }
|
|
12360
12529
|
static get cmpMeta() { return {
|
|
@@ -12376,7 +12545,7 @@ const sdSelectV2ListboxCss = () => `sd-select-v2-listbox{display:block}sd-select
|
|
|
12376
12545
|
class SdSelectV2Listbox {
|
|
12377
12546
|
constructor(hostRef) {
|
|
12378
12547
|
registerInstance(this, hostRef);
|
|
12379
|
-
this.optionSelect = createEvent(this, "sdOptionSelect");
|
|
12548
|
+
this.optionSelect = createEvent(this, "sdOptionSelect", 7);
|
|
12380
12549
|
}
|
|
12381
12550
|
name = 'default';
|
|
12382
12551
|
options = [];
|
|
@@ -12660,7 +12829,7 @@ class SdSelectV2Listbox {
|
|
|
12660
12829
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
12661
12830
|
'--listbox-padding-bottom': `${LIST_BOX_LAYOUT.paddingBottom}px`,
|
|
12662
12831
|
};
|
|
12663
|
-
return (hAsync("div", { key: '
|
|
12832
|
+
return (hAsync("div", { key: 'c04974ad387df3d23efbf27afdb6cc92f24a744e', class: "sd-select-v2-listbox", style: cssVars }, this.showSearch && (hAsync("sd-select-v2-list-item-search", { key: 'b8ef69dc0a35cc2110665095feea58d4132a6bad', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), hAsync("div", { key: 'd8a2f04f1dbbd8fde39203ac52a1bd220097495d', class: "sd-select-v2-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
12664
12833
|
this.listEl = el;
|
|
12665
12834
|
} }, this.isEmpty ? (hAsync("div", { class: "sd-select-v2-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (hAsync("sd-select-v2-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
12666
12835
|
}
|
|
@@ -12696,7 +12865,7 @@ const sdSelectV2TriggerCss = () => `sd-select-v2-trigger{display:block;width:100
|
|
|
12696
12865
|
class SdSelectV2Trigger {
|
|
12697
12866
|
constructor(hostRef) {
|
|
12698
12867
|
registerInstance(this, hostRef);
|
|
12699
|
-
this.triggerClick = createEvent(this, "sdTriggerClick");
|
|
12868
|
+
this.triggerClick = createEvent(this, "sdTriggerClick", 7);
|
|
12700
12869
|
}
|
|
12701
12870
|
displayText = '';
|
|
12702
12871
|
placeholder = '선택';
|
|
@@ -12725,11 +12894,11 @@ class SdSelectV2Trigger {
|
|
|
12725
12894
|
? SELECT_COLORS.icon.disabled
|
|
12726
12895
|
: SELECT_COLORS.icon.default,
|
|
12727
12896
|
};
|
|
12728
|
-
return (hAsync("div", { key: '
|
|
12897
|
+
return (hAsync("div", { key: '9bbda5c8b8b359f6df1079f9f5b1b170472ba7d3', class: {
|
|
12729
12898
|
'sd-select-v2-trigger': true,
|
|
12730
12899
|
'sd-select-v2-trigger--open': this.isOpen,
|
|
12731
12900
|
'sd-select-v2-trigger--disabled': this.disabled,
|
|
12732
|
-
}, style: cssVars, onClick: this.handleClick }, hAsync("div", { key: '
|
|
12901
|
+
}, style: cssVars, onClick: this.handleClick }, hAsync("div", { key: 'b129a7bcbdae8b6873f0b9f97cf37f69829de36a', class: "sd-select-v2-trigger__content" }, hAsync("span", { key: 'fff9c48504e54ea4bedd1494c3d321197f9b0e8d', class: "sd-select-v2-trigger__text" }, hasValue ? this.displayText : this.placeholder), hAsync("sd-icon", { key: 'd3e88a0de9fc773a3f5e3c173159ba2feff1ba67', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
12733
12902
|
'sd-select-v2-trigger__icon': true,
|
|
12734
12903
|
'sd-select-v2-trigger__icon--open': this.isOpen,
|
|
12735
12904
|
} }))));
|
|
@@ -12755,9 +12924,9 @@ const sdTableCss = () => `.sd-table__wrapper{height:var(--table-height, auto);wi
|
|
|
12755
12924
|
class SdTable {
|
|
12756
12925
|
constructor(hostRef) {
|
|
12757
12926
|
registerInstance(this, hostRef);
|
|
12758
|
-
this.sdSelectChange = createEvent(this, "sdSelectChange");
|
|
12759
|
-
this.sdPageChange = createEvent(this, "sdPageChange");
|
|
12760
|
-
this.sdRowsPerPageChange = createEvent(this, "sdRowsPerPageChange");
|
|
12927
|
+
this.sdSelectChange = createEvent(this, "sdSelectChange", 7);
|
|
12928
|
+
this.sdPageChange = createEvent(this, "sdPageChange", 7);
|
|
12929
|
+
this.sdRowsPerPageChange = createEvent(this, "sdRowsPerPageChange", 7);
|
|
12761
12930
|
}
|
|
12762
12931
|
get el() { return getElement(this); }
|
|
12763
12932
|
columns;
|
|
@@ -13607,7 +13776,7 @@ const sdTabsCss = () => `sd-tabs{display:inline-block;width:100%;border-bottom:1
|
|
|
13607
13776
|
class SdTabs {
|
|
13608
13777
|
constructor(hostRef) {
|
|
13609
13778
|
registerInstance(this, hostRef);
|
|
13610
|
-
this.update = createEvent(this, "sdUpdate");
|
|
13779
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
13611
13780
|
}
|
|
13612
13781
|
value;
|
|
13613
13782
|
tabs = [];
|
|
@@ -13843,7 +14012,7 @@ class SdTag {
|
|
|
13843
14012
|
render() {
|
|
13844
14013
|
const config = this.resolvedConfig;
|
|
13845
14014
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
13846
|
-
return (hAsync("span", { key: '
|
|
14015
|
+
return (hAsync("span", { key: '0a1fe7d5e6a3fcdf3a392e1e8d16032139116c7e', class: "sd-tag", style: {
|
|
13847
14016
|
'--sd-tag-background': config.background,
|
|
13848
14017
|
'--sd-tag-content': config.content,
|
|
13849
14018
|
'--sd-tag-height': config.height,
|
|
@@ -13853,7 +14022,7 @@ class SdTag {
|
|
|
13853
14022
|
'--sd-tag-font-weight': config.fontWeight,
|
|
13854
14023
|
'--sd-tag-line-height': config.lineHeight,
|
|
13855
14024
|
'--sd-tag-radius': config.radius,
|
|
13856
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '
|
|
14025
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '405deaf8fa66c9ea703035211ff2274d2dc78884', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
13857
14026
|
}
|
|
13858
14027
|
static get style() { return sdTagCss(); }
|
|
13859
14028
|
static get cmpMeta() { return {
|
|
@@ -13924,7 +14093,7 @@ const sdTextLinkCss = () => `sd-text-link{display:inline-flex}sd-text-link .sd-t
|
|
|
13924
14093
|
class SdTextLink {
|
|
13925
14094
|
constructor(hostRef) {
|
|
13926
14095
|
registerInstance(this, hostRef);
|
|
13927
|
-
this.click = createEvent(this, "sdClick");
|
|
14096
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
13928
14097
|
}
|
|
13929
14098
|
label = '';
|
|
13930
14099
|
icon = '';
|
|
@@ -13955,16 +14124,16 @@ class SdTextLink {
|
|
|
13955
14124
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
13956
14125
|
'--sd-text-link-color': contentColor,
|
|
13957
14126
|
};
|
|
13958
|
-
return (hAsync("span", { key: '
|
|
14127
|
+
return (hAsync("span", { key: '8eadcc89bb334780afa4997f0fcfa6492636f641', class: {
|
|
13959
14128
|
'sd-text-link': true,
|
|
13960
14129
|
'sd-text-link--disabled': this.disabled,
|
|
13961
|
-
}, style: cssVars, onClick: this.handleClick }, this.icon && (hAsync("sd-icon", { key: '
|
|
14130
|
+
}, style: cssVars, onClick: this.handleClick }, this.icon && (hAsync("sd-icon", { key: 'a4e9ecae685a9a07e9b09cbd44d5132fd9c9961b', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), hAsync("span", { key: '2c7de496aa3e1ac5be85d9920d0673aebc8738f0', class: "sd-text-link__label" }, this.label), this.useArrow && (hAsync("span", { key: '735ee80a90f1f2bb8c5d009cea60664c4760aef7', class: "sd-text-link__arrow", style: {
|
|
13962
14131
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
13963
14132
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
13964
14133
|
display: 'inline-flex',
|
|
13965
14134
|
alignItems: 'center',
|
|
13966
14135
|
justifyContent: 'center',
|
|
13967
|
-
} }, hAsync("sd-icon", { key: '
|
|
14136
|
+
} }, hAsync("sd-icon", { key: '61f57de237b92461ea387ad0bd71bbbb7d7cd08c', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
13968
14137
|
}
|
|
13969
14138
|
static get style() { return sdTextLinkCss(); }
|
|
13970
14139
|
static get cmpMeta() { return {
|
|
@@ -13989,9 +14158,9 @@ const sdTextareaCss = () => `sd-textarea{display:block}sd-textarea .sd-textarea{
|
|
|
13989
14158
|
class SdTextarea {
|
|
13990
14159
|
constructor(hostRef) {
|
|
13991
14160
|
registerInstance(this, hostRef);
|
|
13992
|
-
this.input = createEvent(this, "sdUpdate");
|
|
13993
|
-
this.focus = createEvent(this, "sdFocus");
|
|
13994
|
-
this.blur = createEvent(this, "sdBlur");
|
|
14161
|
+
this.input = createEvent(this, "sdUpdate", 7);
|
|
14162
|
+
this.focus = createEvent(this, "sdFocus", 7);
|
|
14163
|
+
this.blur = createEvent(this, "sdBlur", 7);
|
|
13995
14164
|
}
|
|
13996
14165
|
get host() { return getElement(this); }
|
|
13997
14166
|
value = null;
|
|
@@ -14068,10 +14237,10 @@ class SdTextarea {
|
|
|
14068
14237
|
}
|
|
14069
14238
|
render() {
|
|
14070
14239
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
14071
|
-
return (hAsync("div", { key: '
|
|
14240
|
+
return (hAsync("div", { key: '05fa25ff5bc2a8a0927fbc5301c1404a92e26d5c', class: {
|
|
14072
14241
|
'sd-textarea': true,
|
|
14073
14242
|
[this.getTextareaStatus()]: true,
|
|
14074
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("div", { key: '
|
|
14243
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("div", { key: 'a15fabde4ef35369129cb638aa0a680f4c8e231c', class: "sd-textarea__content" }, hAsync("textarea", { key: '1967728740bfa9b749040eefbd813116f281db91', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, autofocus: this.autoFocus, maxLength: this.maxLength, onInput: this.handleInput.bind(this), onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) })), this.hasFooter() && (hAsync("div", { key: 'ad466295bab42461aeb7a29e81ca147cc473cbea', class: "sd-textarea__footer" }, this.helpText !== undefined && hAsync("span", { key: 'd3ad4c9ae5e16114b2b1216ae643c5a53b7bd02a', class: "sd-textarea__help-text" }, this.helpText), maxLengthCounter !== null && hAsync("span", { key: 'bd8ee146625f96e4b19b15247ca72a3b0816d2a9', class: "sd-textarea__counter" }, maxLengthCounter)))));
|
|
14075
14244
|
}
|
|
14076
14245
|
static get watchers() { return {
|
|
14077
14246
|
"value": [{
|
|
@@ -14149,7 +14318,7 @@ const sdToastCss = () => `sd-toast{display:block;width:fit-content;height:fit-co
|
|
|
14149
14318
|
class SdToast {
|
|
14150
14319
|
constructor(hostRef) {
|
|
14151
14320
|
registerInstance(this, hostRef);
|
|
14152
|
-
this.close = createEvent(this, "sdClose");
|
|
14321
|
+
this.close = createEvent(this, "sdClose", 7);
|
|
14153
14322
|
}
|
|
14154
14323
|
icon;
|
|
14155
14324
|
message;
|
|
@@ -14161,10 +14330,10 @@ class SdToast {
|
|
|
14161
14330
|
render() {
|
|
14162
14331
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
14163
14332
|
const iconSize = Number(TOAST_LAYOUT.iconSize);
|
|
14164
|
-
return (hAsync("div", { key: '
|
|
14333
|
+
return (hAsync("div", { key: '630fa227d71315f8e0e61bb19d0f37ca8363b856', style: {
|
|
14165
14334
|
'--sd-toast-bg': typeConfig.bg,
|
|
14166
14335
|
'--sd-toast-text': typeConfig.content,
|
|
14167
|
-
} }, hAsync("div", { key: '
|
|
14336
|
+
} }, hAsync("div", { key: '49fd9cb53f3c12aa372b44191ccd9f09cc159deb', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (hAsync("div", { key: 'c57ccceb89350863b19f00b7d725c20ddde33789', class: "sd-toast__icon" }, hAsync("sd-icon", { key: 'f17a78f7e326005117d69dddcb03e8c0a1443efe', name: this.icon, size: iconSize, color: typeConfig.content }))), hAsync("div", { key: '713c2c40003b17f29c6921826b4ef3a68d201761', class: "sd-toast__content" }, hAsync("span", { key: '50e48da188d6ab805d7cce55705be5da19207724', class: "sd-toast__message" }, this.message)), this.link && (hAsync("a", { key: 'f04fa2c7386cfb1655bfcfd76e6c1dcb1c5c1ea4', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (hAsync("sd-ghost-button", { key: '994248033b0d762693a9bacded1454ae1b66c770', class: "sd-toast__close", icon: "close", ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
14168
14337
|
}
|
|
14169
14338
|
static get style() { return sdToastCss(); }
|
|
14170
14339
|
static get cmpMeta() { return {
|
|
@@ -14199,8 +14368,8 @@ let toastIdCounter = 0;
|
|
|
14199
14368
|
class SdToastContainer {
|
|
14200
14369
|
constructor(hostRef) {
|
|
14201
14370
|
registerInstance(this, hostRef);
|
|
14202
|
-
this.toastShow = createEvent(this, "sdToastShow");
|
|
14203
|
-
this.toastDismiss = createEvent(this, "sdToastDismiss");
|
|
14371
|
+
this.toastShow = createEvent(this, "sdToastShow", 7);
|
|
14372
|
+
this.toastDismiss = createEvent(this, "sdToastDismiss", 7);
|
|
14204
14373
|
}
|
|
14205
14374
|
get el() { return getElement(this); }
|
|
14206
14375
|
position = 'bottom-center';
|
|
@@ -14416,7 +14585,7 @@ class SdToastContainer {
|
|
|
14416
14585
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
14417
14586
|
const indexMap = new Map();
|
|
14418
14587
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
14419
|
-
return (hAsync("div", { key: '
|
|
14588
|
+
return (hAsync("div", { key: '857b7a794e3dd945d706744519456ad033672760', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
14420
14589
|
this.expanded = true;
|
|
14421
14590
|
this.pauseTimers();
|
|
14422
14591
|
}, onMouseLeave: () => {
|
|
@@ -14461,7 +14630,7 @@ const sdToggleCss = () => `sd-toggle{display:inline-block;height:20px;line-heigh
|
|
|
14461
14630
|
class SdToggle {
|
|
14462
14631
|
constructor(hostRef) {
|
|
14463
14632
|
registerInstance(this, hostRef);
|
|
14464
|
-
this.change = createEvent(this, "sdUpdate");
|
|
14633
|
+
this.change = createEvent(this, "sdUpdate", 7);
|
|
14465
14634
|
}
|
|
14466
14635
|
value = false;
|
|
14467
14636
|
label = '';
|
|
@@ -14491,7 +14660,7 @@ class SdToggle {
|
|
|
14491
14660
|
this.change.emit(newValue);
|
|
14492
14661
|
};
|
|
14493
14662
|
render() {
|
|
14494
|
-
return (hAsync("label", { key: '
|
|
14663
|
+
return (hAsync("label", { key: '2a50a4c8bd89f40db18b78ad5e5ed5885596f0d0', "aria-label": this.label || 'toggle', class: this.toggleClasses }, hAsync("input", { key: 'cfdea2ecd3d5946f3b4264d05da09af6e82ca4cd', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), this.label && hAsync("span", { key: 'f27cc85d92d47649f31e096ba09894c85a934c52', class: "sd-toggle__label" }, this.label), hAsync("div", { key: '4a19cae7fdc7e3b12e03281e31b8b3a2a4cfc88b', class: "sd-toggle__track" }, hAsync("div", { key: 'e99a72c39e20e8ea6b4d2df14e74c592b3b0eb22', class: "sd-toggle__thumb" }))));
|
|
14495
14664
|
}
|
|
14496
14665
|
static get style() { return sdToggleCss(); }
|
|
14497
14666
|
static get cmpMeta() { return {
|
|
@@ -14513,7 +14682,7 @@ const sdToggleButtonCss = () => `sd-toggle-button{display:inline-block;line-heig
|
|
|
14513
14682
|
class SdToggleButton {
|
|
14514
14683
|
constructor(hostRef) {
|
|
14515
14684
|
registerInstance(this, hostRef);
|
|
14516
|
-
this.change = createEvent(this, "sdUpdate");
|
|
14685
|
+
this.change = createEvent(this, "sdUpdate", 7);
|
|
14517
14686
|
}
|
|
14518
14687
|
value = false;
|
|
14519
14688
|
label = '';
|
|
@@ -14547,7 +14716,7 @@ class SdToggleButton {
|
|
|
14547
14716
|
this.change.emit(newValue);
|
|
14548
14717
|
};
|
|
14549
14718
|
render() {
|
|
14550
|
-
return (hAsync("label", { key: '
|
|
14719
|
+
return (hAsync("label", { key: '964590e261c212de41cae1cbb6e7e2054182d1f6', class: this.buttonClasses, "aria-label": this.label || 'toggle button' }, this.label, hAsync("input", { key: 'f1bfd190408a6e2899cdcd1d66688b94a8d2ecc0', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
14551
14720
|
}
|
|
14552
14721
|
static get style() { return sdToggleButtonCss(); }
|
|
14553
14722
|
static get cmpMeta() { return {
|
|
@@ -14590,7 +14759,7 @@ const TOOLTIP_TYPE_CONFIG = {
|
|
|
14590
14759
|
accent: { bg: tooltipTokens.tooltip.accent.bg, content: tooltipTokens.tooltip.accent.content },
|
|
14591
14760
|
};
|
|
14592
14761
|
|
|
14593
|
-
const sdTooltipCss = () => `sd-tooltip{visibility:hidden !important;display:inline-flex}sd-tooltip.visible{visibility:visible !important}sd-tooltip .sd-tooltip{position:relative;cursor:pointer;
|
|
14762
|
+
const sdTooltipCss = () => `sd-tooltip{visibility:hidden !important;display:inline-flex}sd-tooltip.visible{visibility:visible !important}sd-tooltip .sd-tooltip-trigger{display:inline-flex;position:relative;cursor:pointer;align-items:center;justify-content:center}`;
|
|
14594
14763
|
|
|
14595
14764
|
class SdTooltip {
|
|
14596
14765
|
constructor(hostRef) {
|
|
@@ -14675,14 +14844,14 @@ class SdTooltip {
|
|
|
14675
14844
|
const toggleTooltip = () => (this.showTooltip = !this.showTooltip);
|
|
14676
14845
|
const divTrigger = trigger === 'hover' ? hoverTrigger : this.label ? {} : { onClick: toggleTooltip };
|
|
14677
14846
|
const buttonClickTrigger = trigger === 'click' && this.label ? { onSdClick: toggleTooltip } : {};
|
|
14678
|
-
return (hAsync(Fragment, { key: '
|
|
14847
|
+
return (hAsync(Fragment, { key: '45662c35d1eb8cd1f23e0c62646a02fd244fee13' }, hAsync("div", { key: '7f04bfcc31aecad132ce95eeb1a6d936f79189ee', class: `sd-tooltip-trigger ${this.sdClass || ''}`, ...divTrigger }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: icon, size: this.buttonSize ?? 'sm', color: color, variant: this.buttonVariant ?? 'primary', class: "sd-tooltip", ...buttonClickTrigger })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (hAsync("sd-floating-portal", { key: '95c16d600733dca5f40d06b222b422bd48ddb2dd', parentRef: this.buttonEl, onSdClose: this.handleClose.bind(this), placement: placement, offset: this.tooltipOffset }, hAsync("div", { key: '84b63cb44fbe9e7a81e033acde6be32b72ed24ba', ref: el => (this.menuEl = el), class: {
|
|
14679
14848
|
'sd-floating-menu': true,
|
|
14680
14849
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
14681
14850
|
[`sd-floating-menu--${placement}`]: true,
|
|
14682
14851
|
}, style: {
|
|
14683
14852
|
'--sd-floating-bg': typeConfig.bg,
|
|
14684
14853
|
'--sd-floating-content': typeConfig.content,
|
|
14685
|
-
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: '
|
|
14854
|
+
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: 'c05e9ecb128e780f3596e8e17b6796255e21b61e', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, hAsync(TooltipArrow, { key: 'fa56346eb836456d4a646cd2d3959e2c4c98c2d7' })), hAsync("div", { key: '926e918d55db0f79e5e776b341fe4d0d6b0bf574', class: "sd-floating-menu__content", innerHTML: this.slotContentHTML }))))));
|
|
14686
14855
|
}
|
|
14687
14856
|
static get style() { return sdTooltipCss(); }
|
|
14688
14857
|
static get cmpMeta() { return {
|