@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.js
CHANGED
|
@@ -1382,9 +1382,9 @@ var createEvent = (ref, name, flags) => {
|
|
|
1382
1382
|
return {
|
|
1383
1383
|
emit: (detail) => {
|
|
1384
1384
|
return emitEvent(elm, name, {
|
|
1385
|
-
bubbles:
|
|
1386
|
-
composed:
|
|
1387
|
-
cancelable:
|
|
1385
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
1386
|
+
composed: !!(flags & 2 /* Composed */),
|
|
1387
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
1388
1388
|
detail
|
|
1389
1389
|
});
|
|
1390
1390
|
}
|
|
@@ -4808,8 +4808,8 @@ const sdActionModalCss = () => `sd-action-modal{display:block;width:fit-content;
|
|
|
4808
4808
|
class SdActionModal {
|
|
4809
4809
|
constructor(hostRef) {
|
|
4810
4810
|
registerInstance(this, hostRef);
|
|
4811
|
-
this.close = createEvent(this, "sdClose");
|
|
4812
|
-
this.ok = createEvent(this, "sdOk");
|
|
4811
|
+
this.close = createEvent(this, "sdClose", 7);
|
|
4812
|
+
this.ok = createEvent(this, "sdOk", 7);
|
|
4813
4813
|
}
|
|
4814
4814
|
modalTitle = '';
|
|
4815
4815
|
buttonLabel = '확인';
|
|
@@ -4982,9 +4982,9 @@ const sdBarcodeInputCss = () => `sd-icon{display:inline-block;line-height:0}sd-i
|
|
|
4982
4982
|
class SdBarcodeInput {
|
|
4983
4983
|
constructor(hostRef) {
|
|
4984
4984
|
registerInstance(this, hostRef);
|
|
4985
|
-
this.input = createEvent(this, "sdUpdate");
|
|
4986
|
-
this.focus = createEvent(this, "sdFocus");
|
|
4987
|
-
this.blur = createEvent(this, "sdBlur");
|
|
4985
|
+
this.input = createEvent(this, "sdUpdate", 7);
|
|
4986
|
+
this.focus = createEvent(this, "sdFocus", 7);
|
|
4987
|
+
this.blur = createEvent(this, "sdBlur", 7);
|
|
4988
4988
|
}
|
|
4989
4989
|
get host() { return getElement(this); }
|
|
4990
4990
|
value = null;
|
|
@@ -5523,7 +5523,7 @@ const ICON_SIZES = {
|
|
|
5523
5523
|
class SdButton {
|
|
5524
5524
|
constructor(hostRef) {
|
|
5525
5525
|
registerInstance(this, hostRef);
|
|
5526
|
-
this.click = createEvent(this, "sdClick");
|
|
5526
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
5527
5527
|
}
|
|
5528
5528
|
get el() { return getElement(this); }
|
|
5529
5529
|
variant = 'primary';
|
|
@@ -5764,7 +5764,7 @@ const sdButtonV2Css = () => `sd-button-v2{display:inline-flex;width:fit-content;
|
|
|
5764
5764
|
class SdButtonV2 {
|
|
5765
5765
|
constructor(hostRef) {
|
|
5766
5766
|
registerInstance(this, hostRef);
|
|
5767
|
-
this.click = createEvent(this, "sdClick");
|
|
5767
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
5768
5768
|
}
|
|
5769
5769
|
name = 'primary_sm';
|
|
5770
5770
|
label = '';
|
|
@@ -5923,8 +5923,8 @@ const DEFAULT_COLORS = [
|
|
|
5923
5923
|
class SdCalendar {
|
|
5924
5924
|
constructor(hostRef) {
|
|
5925
5925
|
registerInstance(this, hostRef);
|
|
5926
|
-
this.select = createEvent(this, "sdSelect");
|
|
5927
|
-
this.viewChange = createEvent(this, "sdViewChange");
|
|
5926
|
+
this.select = createEvent(this, "sdSelect", 7);
|
|
5927
|
+
this.viewChange = createEvent(this, "sdViewChange", 7);
|
|
5928
5928
|
}
|
|
5929
5929
|
value = null;
|
|
5930
5930
|
selectable;
|
|
@@ -6161,7 +6161,7 @@ const sdCheckboxCss = () => `sd-checkbox{display:block;height:var(--sd-checkbox-
|
|
|
6161
6161
|
class SdCheckbox {
|
|
6162
6162
|
constructor(hostRef) {
|
|
6163
6163
|
registerInstance(this, hostRef);
|
|
6164
|
-
this.update = createEvent(this, "sdUpdate");
|
|
6164
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
6165
6165
|
}
|
|
6166
6166
|
get el() { return getElement(this); }
|
|
6167
6167
|
/** 현재 선택 상태 또는 배열 형태의 값 */
|
|
@@ -6298,9 +6298,9 @@ const sdConfirmModalCss = () => `sd-confirm-modal{display:block;width:fit-conten
|
|
|
6298
6298
|
class SdConfirmModal {
|
|
6299
6299
|
constructor(hostRef) {
|
|
6300
6300
|
registerInstance(this, hostRef);
|
|
6301
|
-
this.close = createEvent(this, "sdClose");
|
|
6302
|
-
this.cancel = createEvent(this, "sdCancel");
|
|
6303
|
-
this.ok = createEvent(this, "sdOk");
|
|
6301
|
+
this.close = createEvent(this, "sdClose", 7);
|
|
6302
|
+
this.cancel = createEvent(this, "sdCancel", 7);
|
|
6303
|
+
this.ok = createEvent(this, "sdOk", 7);
|
|
6304
6304
|
}
|
|
6305
6305
|
get el() { return getElement(this); }
|
|
6306
6306
|
hasSlottedContent = false;
|
|
@@ -6402,8 +6402,8 @@ const sdDateBoxCss = () => `.sd-date-box.sc-sd-date-box{display:flex;align-items
|
|
|
6402
6402
|
class SdDateBox {
|
|
6403
6403
|
constructor(hostRef) {
|
|
6404
6404
|
registerInstance(this, hostRef);
|
|
6405
|
-
this.click = createEvent(this, "sdClick");
|
|
6406
|
-
this.mouseOver = createEvent(this, "sdMouseOver");
|
|
6405
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
6406
|
+
this.mouseOver = createEvent(this, "sdMouseOver", 7);
|
|
6407
6407
|
}
|
|
6408
6408
|
date = null;
|
|
6409
6409
|
disabled = false;
|
|
@@ -6466,8 +6466,8 @@ const sdDatePickerCss = () => `.sd-date-picker.sc-sd-date-picker{width:100%;disp
|
|
|
6466
6466
|
class SdDatePicker {
|
|
6467
6467
|
constructor(hostRef) {
|
|
6468
6468
|
registerInstance(this, hostRef);
|
|
6469
|
-
this.update = createEvent(this, "sdUpdate");
|
|
6470
|
-
this.viewChange = createEvent(this, "sdViewChange");
|
|
6469
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
6470
|
+
this.viewChange = createEvent(this, "sdViewChange", 7);
|
|
6471
6471
|
}
|
|
6472
6472
|
get el() { return getElement(this); }
|
|
6473
6473
|
value = null;
|
|
@@ -6521,8 +6521,8 @@ const sdDateRangePickerCss = () => `sd-date-range-picker.sc-sd-date-range-picker
|
|
|
6521
6521
|
class SdDateRangePicker {
|
|
6522
6522
|
constructor(hostRef) {
|
|
6523
6523
|
registerInstance(this, hostRef);
|
|
6524
|
-
this.update = createEvent(this, "sdUpdate");
|
|
6525
|
-
this.viewChange = createEvent(this, "sdViewChange");
|
|
6524
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
6525
|
+
this.viewChange = createEvent(this, "sdViewChange", 7);
|
|
6526
6526
|
}
|
|
6527
6527
|
get el() { return getElement(this); }
|
|
6528
6528
|
value = ['', ''];
|
|
@@ -6878,8 +6878,8 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
6878
6878
|
constructor(hostRef) {
|
|
6879
6879
|
super();
|
|
6880
6880
|
registerInstance(this, hostRef);
|
|
6881
|
-
this.click = createEvent(this, "sdClick");
|
|
6882
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
6881
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
6882
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
6883
6883
|
}
|
|
6884
6884
|
get el() { return getElement(this); }
|
|
6885
6885
|
name = 'primary_sm';
|
|
@@ -7104,7 +7104,19 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
7104
7104
|
}
|
|
7105
7105
|
|
|
7106
7106
|
const field = {
|
|
7107
|
+
label: {
|
|
7108
|
+
sm: {
|
|
7109
|
+
height: "28",
|
|
7110
|
+
gap: "6",
|
|
7111
|
+
icon: "12",
|
|
7112
|
+
typography: {
|
|
7113
|
+
fontWeight: "700",
|
|
7114
|
+
fontSize: "12",
|
|
7115
|
+
lineHeight: "20"
|
|
7116
|
+
}
|
|
7117
|
+
}},
|
|
7107
7118
|
addonLabel: {
|
|
7119
|
+
gap: "6",
|
|
7108
7120
|
paddingX: "12",
|
|
7109
7121
|
typography: {
|
|
7110
7122
|
fontWeight: "500",
|
|
@@ -7114,14 +7126,16 @@ const field = {
|
|
|
7114
7126
|
bg: "#F6F6F6",
|
|
7115
7127
|
border: {
|
|
7116
7128
|
"default": "#AAAAAA",
|
|
7117
|
-
disabled: "#CCCCCC"
|
|
7129
|
+
disabled: "#CCCCCC",
|
|
7130
|
+
width: "1"
|
|
7131
|
+
}
|
|
7118
7132
|
}
|
|
7119
7133
|
};
|
|
7120
7134
|
var fieldTokens = {
|
|
7121
7135
|
field: field
|
|
7122
7136
|
};
|
|
7123
7137
|
|
|
7124
|
-
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:
|
|
7138
|
+
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)}`;
|
|
7125
7139
|
|
|
7126
7140
|
const FORM_PARENT_TAGS = [
|
|
7127
7141
|
'sd-select',
|
|
@@ -7132,6 +7146,7 @@ const FORM_PARENT_TAGS = [
|
|
|
7132
7146
|
'sd-textarea',
|
|
7133
7147
|
'sd-number-input',
|
|
7134
7148
|
'sd-select-v2',
|
|
7149
|
+
'sd-file-picker',
|
|
7135
7150
|
];
|
|
7136
7151
|
class SdField {
|
|
7137
7152
|
constructor(hostRef) {
|
|
@@ -7248,32 +7263,49 @@ class SdField {
|
|
|
7248
7263
|
render() {
|
|
7249
7264
|
const addon = this.addonLabel;
|
|
7250
7265
|
const addonTokens = fieldTokens.field.addonLabel;
|
|
7251
|
-
const
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7266
|
+
const labelTokens = fieldTokens.field.label.sm;
|
|
7267
|
+
const labelCssVars = this.label
|
|
7268
|
+
? {
|
|
7269
|
+
'--sd-field-label-height': `${labelTokens.height}px`,
|
|
7270
|
+
'--sd-field-label-gap': `${labelTokens.gap}px`,
|
|
7271
|
+
'--sd-field-label-font-size': `${labelTokens.typography.fontSize}px`,
|
|
7272
|
+
'--sd-field-label-line-height': `${labelTokens.typography.lineHeight}px`,
|
|
7273
|
+
'--sd-field-label-font-weight': labelTokens.typography.fontWeight,
|
|
7274
|
+
}
|
|
7275
|
+
: {};
|
|
7276
|
+
const addonCssVars = addon
|
|
7277
|
+
? {
|
|
7278
|
+
'--sd-field-addon-padding-x': `${addonTokens.paddingX}px`,
|
|
7279
|
+
'--sd-field-addon-font-size': `${addonTokens.typography.fontSize}px`,
|
|
7280
|
+
'--sd-field-addon-line-height': `${addonTokens.typography.lineHeight}px`,
|
|
7281
|
+
'--sd-field-addon-font-weight': addonTokens.typography.fontWeight,
|
|
7282
|
+
'--sd-field-addon-bg': addonTokens.bg,
|
|
7283
|
+
'--sd-field-addon-border-color': this.disabled
|
|
7284
|
+
? addonTokens.border.disabled
|
|
7285
|
+
: addonTokens.border.default,
|
|
7286
|
+
'--sd-field-addon-gap': `${addonTokens.gap}px`,
|
|
7287
|
+
'--sd-field-addon-border-width': `${addonTokens.border.width}px`,
|
|
7288
|
+
}
|
|
7289
|
+
: {};
|
|
7290
|
+
return (hAsync("div", { key: 'e37722a9afbd78654328954262d4bc458634170a', class: {
|
|
7262
7291
|
'sd-field': true,
|
|
7263
7292
|
'sd-field--has-label': !!this.label,
|
|
7264
7293
|
'sd-field--has-addon': !!addon,
|
|
7265
7294
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
7266
|
-
}, style: addonCssVars }, hAsync("div", { key: '
|
|
7295
|
+
}, style: { ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '38440e5f21fba28ff49fd00bfd20189af9c43707', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: 'b6d65e0db6667cbe9b4dd85ec72f9ecd08afa291', class: {
|
|
7267
7296
|
'sd-field__control': true,
|
|
7268
7297
|
'sd-field__control--has-addon': !!addon,
|
|
7269
|
-
}, style: this.width
|
|
7270
|
-
|
|
7271
|
-
|
|
7298
|
+
}, style: this.width
|
|
7299
|
+
? {
|
|
7300
|
+
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
7301
|
+
flex: 'none',
|
|
7302
|
+
}
|
|
7303
|
+
: {} }, 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))));
|
|
7272
7304
|
}
|
|
7273
7305
|
renderLabel(label) {
|
|
7274
7306
|
if (!label)
|
|
7275
7307
|
return null;
|
|
7276
|
-
return (hAsync("label", { class: "sd-field__label" }, this.icon && (hAsync("sd-icon", { name: this.icon.name, size: this.icon.size ??
|
|
7308
|
+
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))));
|
|
7277
7309
|
}
|
|
7278
7310
|
static get style() { return sdFieldCss(); }
|
|
7279
7311
|
static get cmpMeta() { return {
|
|
@@ -7307,12 +7339,56 @@ class SdField {
|
|
|
7307
7339
|
}; }
|
|
7308
7340
|
}
|
|
7309
7341
|
|
|
7310
|
-
const
|
|
7342
|
+
const filepicker = {
|
|
7343
|
+
height: "28",
|
|
7344
|
+
paddingX: "12",
|
|
7345
|
+
gap: "8",
|
|
7346
|
+
radius: "4",
|
|
7347
|
+
typography: {
|
|
7348
|
+
fontWeight: "400",
|
|
7349
|
+
fontSize: "12",
|
|
7350
|
+
lineHeight: "20"},
|
|
7351
|
+
size: {
|
|
7352
|
+
icon: "16"
|
|
7353
|
+
},
|
|
7354
|
+
text: {
|
|
7355
|
+
"default": "#222222",
|
|
7356
|
+
placeholder: "#AAAAAA",
|
|
7357
|
+
disabled: "#888888"
|
|
7358
|
+
},
|
|
7359
|
+
icon: {
|
|
7360
|
+
disabled: "#BBBBBB"
|
|
7361
|
+
}
|
|
7362
|
+
};
|
|
7363
|
+
var filePickerTokens = {
|
|
7364
|
+
filepicker: filepicker
|
|
7365
|
+
};
|
|
7366
|
+
|
|
7367
|
+
const fp = filePickerTokens.filepicker;
|
|
7368
|
+
const FILE_PICKER_LAYOUT = {
|
|
7369
|
+
height: fp.height,
|
|
7370
|
+
paddingX: fp.paddingX,
|
|
7371
|
+
gap: fp.gap,
|
|
7372
|
+
radius: fp.radius,
|
|
7373
|
+
fontSize: fp.typography.fontSize,
|
|
7374
|
+
lineHeight: fp.typography.lineHeight,
|
|
7375
|
+
fontWeight: fp.typography.fontWeight,
|
|
7376
|
+
iconSize: fp.size.icon};
|
|
7377
|
+
const FILE_PICKER_COLORS = {
|
|
7378
|
+
text: fp.text,
|
|
7379
|
+
icon: {
|
|
7380
|
+
default: '#888888', // TODO: 토큰 반영 후 교체
|
|
7381
|
+
disabled: fp.icon.disabled,
|
|
7382
|
+
},
|
|
7383
|
+
};
|
|
7384
|
+
|
|
7385
|
+
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)}`;
|
|
7311
7386
|
|
|
7312
7387
|
class SdFilePicker {
|
|
7313
7388
|
constructor(hostRef) {
|
|
7314
7389
|
registerInstance(this, hostRef);
|
|
7315
|
-
this.update = createEvent(this, "sdUpdate");
|
|
7390
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
7391
|
+
this.reject = createEvent(this, "sdReject", 7);
|
|
7316
7392
|
}
|
|
7317
7393
|
get el() { return getElement(this); }
|
|
7318
7394
|
value = null;
|
|
@@ -7321,12 +7397,31 @@ class SdFilePicker {
|
|
|
7321
7397
|
inline = false;
|
|
7322
7398
|
multiple = false;
|
|
7323
7399
|
accept;
|
|
7324
|
-
|
|
7400
|
+
maxFileSize;
|
|
7401
|
+
maxTotalSize;
|
|
7402
|
+
maxFiles;
|
|
7403
|
+
// sd-field 패스스루 props
|
|
7404
|
+
name = '';
|
|
7405
|
+
label = '';
|
|
7406
|
+
addonLabel = '';
|
|
7407
|
+
hint = '';
|
|
7408
|
+
errorMessage = '';
|
|
7409
|
+
width = '';
|
|
7410
|
+
rules;
|
|
7411
|
+
error = false;
|
|
7412
|
+
status;
|
|
7413
|
+
icon = undefined;
|
|
7414
|
+
labelTooltip = '';
|
|
7415
|
+
labelTooltipProps = null;
|
|
7416
|
+
focused = false;
|
|
7325
7417
|
hovered = false;
|
|
7418
|
+
internalValue = null;
|
|
7326
7419
|
showTooltip = false;
|
|
7327
7420
|
fileInputRef;
|
|
7328
7421
|
fileNamesRef;
|
|
7422
|
+
formField;
|
|
7329
7423
|
update;
|
|
7424
|
+
reject;
|
|
7330
7425
|
valueChanged(newValue) {
|
|
7331
7426
|
this.internalValue = newValue;
|
|
7332
7427
|
}
|
|
@@ -7336,6 +7431,47 @@ class SdFilePicker {
|
|
|
7336
7431
|
componentDidUpdate() {
|
|
7337
7432
|
this.checkOverflow();
|
|
7338
7433
|
}
|
|
7434
|
+
async sdValidate() {
|
|
7435
|
+
return this.formField?.sdValidate() ?? Promise.resolve(true);
|
|
7436
|
+
}
|
|
7437
|
+
async sdReset() {
|
|
7438
|
+
const clearedValue = this.multiple ? [] : null;
|
|
7439
|
+
this.value = clearedValue;
|
|
7440
|
+
this.internalValue = clearedValue;
|
|
7441
|
+
if (this.fileInputRef) {
|
|
7442
|
+
this.fileInputRef.value = '';
|
|
7443
|
+
}
|
|
7444
|
+
await this.formField?.sdReset();
|
|
7445
|
+
}
|
|
7446
|
+
async sdResetValidate() {
|
|
7447
|
+
await this.formField?.sdResetValidation();
|
|
7448
|
+
}
|
|
7449
|
+
toBytes(value) {
|
|
7450
|
+
if (value == null)
|
|
7451
|
+
return undefined;
|
|
7452
|
+
return typeof value === 'string' ? Number(value) : value;
|
|
7453
|
+
}
|
|
7454
|
+
validateFiles(files) {
|
|
7455
|
+
const maxFileSize = this.toBytes(this.maxFileSize);
|
|
7456
|
+
const maxTotalSize = this.toBytes(this.maxTotalSize);
|
|
7457
|
+
const maxFiles = this.maxFiles != null ? Number(this.maxFiles) : undefined;
|
|
7458
|
+
if (maxFiles != null && files.length > maxFiles) {
|
|
7459
|
+
return { accepted: [], rejected: files, reason: 'max-files' };
|
|
7460
|
+
}
|
|
7461
|
+
if (maxFileSize != null) {
|
|
7462
|
+
const oversized = files.filter(f => f.size > maxFileSize);
|
|
7463
|
+
if (oversized.length > 0) {
|
|
7464
|
+
return { accepted: [], rejected: oversized, reason: 'max-file-size' };
|
|
7465
|
+
}
|
|
7466
|
+
}
|
|
7467
|
+
if (maxTotalSize != null) {
|
|
7468
|
+
const totalSize = files.reduce((sum, f) => sum + f.size, 0);
|
|
7469
|
+
if (totalSize > maxTotalSize) {
|
|
7470
|
+
return { accepted: [], rejected: files, reason: 'max-total-size' };
|
|
7471
|
+
}
|
|
7472
|
+
}
|
|
7473
|
+
return { accepted: files, rejected: [] };
|
|
7474
|
+
}
|
|
7339
7475
|
handleFileChange = (event) => {
|
|
7340
7476
|
const input = event.target;
|
|
7341
7477
|
const files = input.files;
|
|
@@ -7343,11 +7479,19 @@ class SdFilePicker {
|
|
|
7343
7479
|
return;
|
|
7344
7480
|
}
|
|
7345
7481
|
const fileArray = Array.from(files);
|
|
7482
|
+
const { accepted, rejected, reason } = this.validateFiles(fileArray);
|
|
7483
|
+
if (reason) {
|
|
7484
|
+
this.reject?.emit({ files: rejected, reason });
|
|
7485
|
+
if (this.fileInputRef) {
|
|
7486
|
+
this.fileInputRef.value = '';
|
|
7487
|
+
}
|
|
7488
|
+
return;
|
|
7489
|
+
}
|
|
7346
7490
|
if (this.multiple) {
|
|
7347
|
-
this.internalValue =
|
|
7491
|
+
this.internalValue = accepted;
|
|
7348
7492
|
}
|
|
7349
7493
|
else {
|
|
7350
|
-
this.internalValue =
|
|
7494
|
+
this.internalValue = accepted[0];
|
|
7351
7495
|
}
|
|
7352
7496
|
this.value = this.internalValue;
|
|
7353
7497
|
this.update?.emit(this.value);
|
|
@@ -7369,13 +7513,6 @@ class SdFilePicker {
|
|
|
7369
7513
|
return;
|
|
7370
7514
|
this.fileInputRef?.click();
|
|
7371
7515
|
};
|
|
7372
|
-
getStatusClass() {
|
|
7373
|
-
if (this.disabled)
|
|
7374
|
-
return 'sd-file-picker--disabled';
|
|
7375
|
-
if (this.hasFiles())
|
|
7376
|
-
return 'sd-file-picker--active';
|
|
7377
|
-
return '';
|
|
7378
|
-
}
|
|
7379
7516
|
hasFiles() {
|
|
7380
7517
|
if (!this.internalValue)
|
|
7381
7518
|
return false;
|
|
@@ -7399,23 +7536,36 @@ class SdFilePicker {
|
|
|
7399
7536
|
this.showTooltip = isOverflowing;
|
|
7400
7537
|
}
|
|
7401
7538
|
getIconColor() {
|
|
7402
|
-
|
|
7403
|
-
return this.inline ? 'grey_45' : 'grey_55';
|
|
7404
|
-
}
|
|
7405
|
-
return 'grey_70';
|
|
7539
|
+
return this.disabled ? FILE_PICKER_COLORS.icon.disabled : FILE_PICKER_COLORS.icon.default;
|
|
7406
7540
|
}
|
|
7407
7541
|
render() {
|
|
7408
7542
|
const hasFiles = this.hasFiles();
|
|
7409
7543
|
const displayText = this.getDisplayText();
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7544
|
+
const cssVars = {
|
|
7545
|
+
'--sd-file-picker-font-size': `${FILE_PICKER_LAYOUT.fontSize}px`,
|
|
7546
|
+
'--sd-file-picker-line-height': `${FILE_PICKER_LAYOUT.lineHeight}px`,
|
|
7547
|
+
'--sd-file-picker-font-weight': FILE_PICKER_LAYOUT.fontWeight,
|
|
7548
|
+
'--sd-file-picker-padding-x': `${FILE_PICKER_LAYOUT.paddingX}px`,
|
|
7549
|
+
'--sd-file-picker-gap': `${FILE_PICKER_LAYOUT.gap}px`,
|
|
7550
|
+
'--sd-file-picker-text-color': FILE_PICKER_COLORS.text.default,
|
|
7551
|
+
'--sd-file-picker-placeholder-color': FILE_PICKER_COLORS.text.placeholder,
|
|
7552
|
+
'--sd-file-picker-disabled-color': FILE_PICKER_COLORS.text.disabled,
|
|
7553
|
+
// sd-field 시스템 변수 override
|
|
7554
|
+
'--sd-system-size-field-sm-height': `${FILE_PICKER_LAYOUT.height}px`,
|
|
7555
|
+
'--sd-system-radius-field-sm': `${FILE_PICKER_LAYOUT.radius}px`,
|
|
7556
|
+
};
|
|
7557
|
+
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: {
|
|
7415
7558
|
'sd-file-picker__text': true,
|
|
7416
7559
|
'sd-file-picker__text--placeholder': !hasFiles,
|
|
7417
7560
|
'sd-file-picker__text--active': hasFiles,
|
|
7418
|
-
} }, displayText), !this.disabled && hasFiles && (hAsync("sd-ghost-button", {
|
|
7561
|
+
} }, 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))));
|
|
7562
|
+
if (this.inline) {
|
|
7563
|
+
return (hAsync("div", { class: {
|
|
7564
|
+
'sd-file-picker--inline': true,
|
|
7565
|
+
'sd-file-picker--inline-disabled': this.disabled,
|
|
7566
|
+
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content));
|
|
7567
|
+
}
|
|
7568
|
+
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));
|
|
7419
7569
|
}
|
|
7420
7570
|
static get watchers() { return {
|
|
7421
7571
|
"value": [{
|
|
@@ -7433,9 +7583,28 @@ class SdFilePicker {
|
|
|
7433
7583
|
"inline": [4],
|
|
7434
7584
|
"multiple": [4],
|
|
7435
7585
|
"accept": [1],
|
|
7586
|
+
"maxFileSize": [8, "max-file-size"],
|
|
7587
|
+
"maxTotalSize": [8, "max-total-size"],
|
|
7588
|
+
"maxFiles": [8, "max-files"],
|
|
7589
|
+
"name": [1],
|
|
7590
|
+
"label": [1],
|
|
7591
|
+
"addonLabel": [1, "addon-label"],
|
|
7592
|
+
"hint": [1],
|
|
7593
|
+
"errorMessage": [1, "error-message"],
|
|
7594
|
+
"width": [8],
|
|
7595
|
+
"rules": [16],
|
|
7596
|
+
"error": [1028],
|
|
7597
|
+
"status": [1],
|
|
7598
|
+
"icon": [16],
|
|
7599
|
+
"labelTooltip": [1, "label-tooltip"],
|
|
7600
|
+
"labelTooltipProps": [16],
|
|
7601
|
+
"focused": [1028],
|
|
7602
|
+
"hovered": [1028],
|
|
7436
7603
|
"internalValue": [32],
|
|
7437
|
-
"
|
|
7438
|
-
"
|
|
7604
|
+
"showTooltip": [32],
|
|
7605
|
+
"sdValidate": [64],
|
|
7606
|
+
"sdReset": [64],
|
|
7607
|
+
"sdResetValidate": [64]
|
|
7439
7608
|
},
|
|
7440
7609
|
"$listeners$": undefined,
|
|
7441
7610
|
"$lazyBundleId$": "-",
|
|
@@ -7448,7 +7617,7 @@ const sdFloatingPortalCss = () => `.sd-floating-menu{width:fit-content;padding:1
|
|
|
7448
7617
|
class SdFloatingPopover {
|
|
7449
7618
|
constructor(hostRef) {
|
|
7450
7619
|
registerInstance(this, hostRef);
|
|
7451
|
-
this.close = createEvent(this, "sdClose");
|
|
7620
|
+
this.close = createEvent(this, "sdClose", 7);
|
|
7452
7621
|
}
|
|
7453
7622
|
get el() { return getElement(this); }
|
|
7454
7623
|
to = 'body';
|
|
@@ -7594,7 +7763,7 @@ class SdFloatingPopover {
|
|
|
7594
7763
|
this.close.emit();
|
|
7595
7764
|
}
|
|
7596
7765
|
render() {
|
|
7597
|
-
return hAsync("slot", { key: '
|
|
7766
|
+
return hAsync("slot", { key: '025daba88b77d9e250893b20261bfce08f37e332' });
|
|
7598
7767
|
}
|
|
7599
7768
|
static get style() { return sdFloatingPortalCss(); }
|
|
7600
7769
|
static get cmpMeta() { return {
|
|
@@ -7617,8 +7786,8 @@ class SdFloatingPopover {
|
|
|
7617
7786
|
class SdForm {
|
|
7618
7787
|
constructor(hostRef) {
|
|
7619
7788
|
registerInstance(this, hostRef);
|
|
7620
|
-
this.submitSuccess = createEvent(this, "sdSubmit");
|
|
7621
|
-
this.submitFail = createEvent(this, "sdValidationError");
|
|
7789
|
+
this.submitSuccess = createEvent(this, "sdSubmit", 7);
|
|
7790
|
+
this.submitFail = createEvent(this, "sdValidationError", 7);
|
|
7622
7791
|
}
|
|
7623
7792
|
formClass = '';
|
|
7624
7793
|
fields = [];
|
|
@@ -7791,7 +7960,7 @@ const sdGhostButtonCss = () => `sd-ghost-button{display:inline-flex;width:fit-co
|
|
|
7791
7960
|
class SdGhostButton {
|
|
7792
7961
|
constructor(hostRef) {
|
|
7793
7962
|
registerInstance(this, hostRef);
|
|
7794
|
-
this.click = createEvent(this, "sdClick");
|
|
7963
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
7795
7964
|
}
|
|
7796
7965
|
icon;
|
|
7797
7966
|
size = 'sm';
|
|
@@ -7827,7 +7996,7 @@ class SdGhostButton {
|
|
|
7827
7996
|
? GHOST_BUTTON_DISABLED_ICON
|
|
7828
7997
|
: GHOST_BUTTON_CONTENT_COLORS[this.intent];
|
|
7829
7998
|
const accessibleName = this.ariaLabel.trim() || undefined;
|
|
7830
|
-
return (hAsync("button", { key: '
|
|
7999
|
+
return (hAsync("button", { key: '8d6aa7e82d3e3f31638e98870283723fdb87e0e2', class: {
|
|
7831
8000
|
'sd-ghost-button': true,
|
|
7832
8001
|
'sd-ghost-button--disabled': this.disabled,
|
|
7833
8002
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
@@ -7836,7 +8005,7 @@ class SdGhostButton {
|
|
|
7836
8005
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[this.intent],
|
|
7837
8006
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
7838
8007
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
7839
|
-
}, onClick: this.handleClick }, hAsync("sd-icon", { key: '
|
|
8008
|
+
}, onClick: this.handleClick }, hAsync("sd-icon", { key: 'd858b173e3f93c49703b31cde6be4fa81440ae7a', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
7840
8009
|
}
|
|
7841
8010
|
static get style() { return sdGhostButtonCss(); }
|
|
7842
8011
|
static get cmpMeta() { return {
|
|
@@ -7908,9 +8077,9 @@ class SdGuide {
|
|
|
7908
8077
|
};
|
|
7909
8078
|
render() {
|
|
7910
8079
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
7911
|
-
return (hAsync("div", { key: '
|
|
8080
|
+
return (hAsync("div", { key: 'd98a48deb586592dbb379acb4e3725a97601dccd', class: "sd-guide", style: {
|
|
7912
8081
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
7913
|
-
} }, hAsync("sd-button", { key: '
|
|
8082
|
+
} }, 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))))))));
|
|
7914
8083
|
}
|
|
7915
8084
|
// 현재 2depth까지만 스타일 적용
|
|
7916
8085
|
renderListItem(message, depth = 0) {
|
|
@@ -8501,9 +8670,9 @@ const sdInputCss = () => `sd-icon{display:inline-block;line-height:0}sd-icon .sd
|
|
|
8501
8670
|
class SdInput {
|
|
8502
8671
|
constructor(hostRef) {
|
|
8503
8672
|
registerInstance(this, hostRef);
|
|
8504
|
-
this.input = createEvent(this, "sdUpdate");
|
|
8505
|
-
this.focus = createEvent(this, "sdFocus");
|
|
8506
|
-
this.blur = createEvent(this, "sdBlur");
|
|
8673
|
+
this.input = createEvent(this, "sdUpdate", 7);
|
|
8674
|
+
this.focus = createEvent(this, "sdFocus", 7);
|
|
8675
|
+
this.blur = createEvent(this, "sdBlur", 7);
|
|
8507
8676
|
}
|
|
8508
8677
|
get host() { return getElement(this); }
|
|
8509
8678
|
value = null;
|
|
@@ -8607,12 +8776,12 @@ class SdInput {
|
|
|
8607
8776
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
8608
8777
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
8609
8778
|
};
|
|
8610
|
-
return (hAsync("sd-field", { key: '
|
|
8779
|
+
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 () => {
|
|
8611
8780
|
if (this.disabled)
|
|
8612
8781
|
return;
|
|
8613
8782
|
this.internalValue = '';
|
|
8614
8783
|
await this.formField?.sdValidate();
|
|
8615
|
-
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '
|
|
8784
|
+
} })), 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: () => {
|
|
8616
8785
|
if (this.disabled)
|
|
8617
8786
|
return;
|
|
8618
8787
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -8679,7 +8848,7 @@ class SdLoadingSpinner {
|
|
|
8679
8848
|
return resolveColor(this.color);
|
|
8680
8849
|
}
|
|
8681
8850
|
render() {
|
|
8682
|
-
return (hAsync(Fragment, { key: '
|
|
8851
|
+
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" }))));
|
|
8683
8852
|
}
|
|
8684
8853
|
static get style() { return sdLoadingSpinnerCss(); }
|
|
8685
8854
|
static get cmpMeta() { return {
|
|
@@ -8694,7 +8863,7 @@ class SdLoadingSpinner {
|
|
|
8694
8863
|
}; }
|
|
8695
8864
|
}
|
|
8696
8865
|
|
|
8697
|
-
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,
|
|
8866
|
+
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)}}`;
|
|
8698
8867
|
|
|
8699
8868
|
let modalIdCounter = 0;
|
|
8700
8869
|
const ANIMATION_DURATION = 350;
|
|
@@ -9045,9 +9214,9 @@ const sdNumberInputCss = () => `sd-number-input{display:inline-flex}sd-number-in
|
|
|
9045
9214
|
class SdNumberInput {
|
|
9046
9215
|
constructor(hostRef) {
|
|
9047
9216
|
registerInstance(this, hostRef);
|
|
9048
|
-
this.update = createEvent(this, "sdUpdate");
|
|
9049
|
-
this.focus = createEvent(this, "sdFocus");
|
|
9050
|
-
this.blur = createEvent(this, "sdBlur");
|
|
9217
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
9218
|
+
this.focus = createEvent(this, "sdFocus", 7);
|
|
9219
|
+
this.blur = createEvent(this, "sdBlur", 7);
|
|
9051
9220
|
}
|
|
9052
9221
|
get el() { return getElement(this); }
|
|
9053
9222
|
size = 'sm';
|
|
@@ -9318,12 +9487,12 @@ class SdNumberInput {
|
|
|
9318
9487
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
9319
9488
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
9320
9489
|
};
|
|
9321
|
-
return (hAsync("sd-field", { key: '
|
|
9490
|
+
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()
|
|
9322
9491
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
9323
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: '
|
|
9492
|
+
: 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: {
|
|
9324
9493
|
textAlign: this.useButton ? 'center' : 'right',
|
|
9325
9494
|
...this.inputStyle,
|
|
9326
|
-
} }), this.inputSuffix && (hAsync("span", { key: '
|
|
9495
|
+
} }), 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()
|
|
9327
9496
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
9328
9497
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
9329
9498
|
}
|
|
@@ -9392,7 +9561,7 @@ const PER_PAGE = 10;
|
|
|
9392
9561
|
class SdPagination {
|
|
9393
9562
|
constructor(hostRef) {
|
|
9394
9563
|
registerInstance(this, hostRef);
|
|
9395
|
-
this.pageChange = createEvent(this, "sdPageChange");
|
|
9564
|
+
this.pageChange = createEvent(this, "sdPageChange", 7);
|
|
9396
9565
|
}
|
|
9397
9566
|
currentPage = 1;
|
|
9398
9567
|
lastPage = 1;
|
|
@@ -9454,12 +9623,12 @@ class SdPagination {
|
|
|
9454
9623
|
}
|
|
9455
9624
|
}
|
|
9456
9625
|
render() {
|
|
9457
|
-
return (hAsync("div", { key: '
|
|
9626
|
+
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: {
|
|
9458
9627
|
'pagination-btn': true,
|
|
9459
9628
|
'pagination-btn--selected': this.currentPage === n,
|
|
9460
9629
|
}, disabled: this.currentPage === n, style: {
|
|
9461
9630
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
9462
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: '
|
|
9631
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), hAsync("div", { key: 'ad51e05546d929ac01898e93ab4285018837394a', class: "append-btns" }, this.renderNextButtons())));
|
|
9463
9632
|
}
|
|
9464
9633
|
static get style() { return sdPaginationCss(); }
|
|
9465
9634
|
static get cmpMeta() { return {
|
|
@@ -9531,14 +9700,14 @@ class SdPopover {
|
|
|
9531
9700
|
this.showPopover = false;
|
|
9532
9701
|
};
|
|
9533
9702
|
render() {
|
|
9534
|
-
return (hAsync(Fragment, { key: '
|
|
9703
|
+
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: {
|
|
9535
9704
|
'sd-floating-menu': true,
|
|
9536
9705
|
'sd-floating-menu--popover': true,
|
|
9537
9706
|
[`sd-floating-menu--${this.placement}`]: true,
|
|
9538
9707
|
[this.menuClass]: !!this.menuClass,
|
|
9539
9708
|
}, style: {
|
|
9540
9709
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
9541
|
-
} }, hAsync("i", { key: '
|
|
9710
|
+
} }, 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() })))))));
|
|
9542
9711
|
}
|
|
9543
9712
|
static get watchers() { return {
|
|
9544
9713
|
"show": [{
|
|
@@ -9576,7 +9745,7 @@ class SdPopover {
|
|
|
9576
9745
|
class SdPortal {
|
|
9577
9746
|
constructor(hostRef) {
|
|
9578
9747
|
registerInstance(this, hostRef);
|
|
9579
|
-
this.close = createEvent(this, "sdClose");
|
|
9748
|
+
this.close = createEvent(this, "sdClose", 3);
|
|
9580
9749
|
}
|
|
9581
9750
|
get hostEl() { return getElement(this); }
|
|
9582
9751
|
to = 'body';
|
|
@@ -9798,7 +9967,7 @@ class SdPortal {
|
|
|
9798
9967
|
this.close.emit();
|
|
9799
9968
|
}
|
|
9800
9969
|
render() {
|
|
9801
|
-
return hAsync("slot", { key: '
|
|
9970
|
+
return hAsync("slot", { key: 'c1e05f5d7c809418279e4ded8bbb8c4b29703bb1' });
|
|
9802
9971
|
}
|
|
9803
9972
|
static get watchers() { return {
|
|
9804
9973
|
"open": [{
|
|
@@ -9861,10 +10030,10 @@ class SdProgress {
|
|
|
9861
10030
|
return this.statusColor[this.progressStatus];
|
|
9862
10031
|
}
|
|
9863
10032
|
render() {
|
|
9864
|
-
return (hAsync("div", { key: '
|
|
10033
|
+
return (hAsync("div", { key: 'f5b723807c29b9e4a742febaf7d2f984f9de61d5', style: {
|
|
9865
10034
|
'--progress-color': this.progressColor,
|
|
9866
10035
|
'--progress-percentage': `${this.progressPercentage}%`,
|
|
9867
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '
|
|
10036
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && hAsync("div", { key: '369e1b7805414b8a2fa5e44f4746435335a251cb', class: "sd-progress__label" }, this.label)));
|
|
9868
10037
|
}
|
|
9869
10038
|
renderBarProgress() {
|
|
9870
10039
|
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, "%")));
|
|
@@ -9900,7 +10069,7 @@ const sdRadioCss = () => `sd-radio{display:inline-flex;width:fit-content}sd-radi
|
|
|
9900
10069
|
class SdRadio {
|
|
9901
10070
|
constructor(hostRef) {
|
|
9902
10071
|
registerInstance(this, hostRef);
|
|
9903
|
-
this.update = createEvent(this, "sdUpdate");
|
|
10072
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
9904
10073
|
}
|
|
9905
10074
|
value;
|
|
9906
10075
|
disabled = false;
|
|
@@ -9946,7 +10115,7 @@ const sdRadioButtonGroupCss = () => `sd-radio-button-group{display:inline-flex;w
|
|
|
9946
10115
|
class SdRadioButtonGroup {
|
|
9947
10116
|
constructor(hostRef) {
|
|
9948
10117
|
registerInstance(this, hostRef);
|
|
9949
|
-
this.change = createEvent(this, "sdUpdate");
|
|
10118
|
+
this.change = createEvent(this, "sdUpdate", 7);
|
|
9950
10119
|
}
|
|
9951
10120
|
value;
|
|
9952
10121
|
options = [];
|
|
@@ -10012,7 +10181,7 @@ const sdRadioGroupCss = () => `sd-radio{display:inline-flex;width:fit-content}sd
|
|
|
10012
10181
|
class SdRadioGroup {
|
|
10013
10182
|
constructor(hostRef) {
|
|
10014
10183
|
registerInstance(this, hostRef);
|
|
10015
|
-
this.change = createEvent(this, "sdUpdate");
|
|
10184
|
+
this.change = createEvent(this, "sdUpdate", 7);
|
|
10016
10185
|
}
|
|
10017
10186
|
value;
|
|
10018
10187
|
options = [];
|
|
@@ -10095,8 +10264,8 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
10095
10264
|
constructor(hostRef) {
|
|
10096
10265
|
super();
|
|
10097
10266
|
registerInstance(this, hostRef);
|
|
10098
|
-
this.update = createEvent(this, "sdUpdate");
|
|
10099
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
10267
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
10268
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
10100
10269
|
}
|
|
10101
10270
|
get el() { return getElement(this); }
|
|
10102
10271
|
// props
|
|
@@ -10300,9 +10469,9 @@ const sdSelectDropdownCss = () => `.sd-select-dropdown .sd-select-option-placeho
|
|
|
10300
10469
|
class SdSelectDropdown {
|
|
10301
10470
|
constructor(hostRef) {
|
|
10302
10471
|
registerInstance(this, hostRef);
|
|
10303
|
-
this.optionClick = createEvent(this, "sdOptionClick");
|
|
10304
|
-
this.optionFiltered = createEvent(this, "sdOptionFiltered");
|
|
10305
|
-
this.scroll = createEvent(this, "sdScroll");
|
|
10472
|
+
this.optionClick = createEvent(this, "sdOptionClick", 7);
|
|
10473
|
+
this.optionFiltered = createEvent(this, "sdOptionFiltered", 7);
|
|
10474
|
+
this.scroll = createEvent(this, "sdScroll", 7);
|
|
10306
10475
|
}
|
|
10307
10476
|
itemIndex;
|
|
10308
10477
|
value = null;
|
|
@@ -10448,10 +10617,10 @@ class SdSelectDropdown {
|
|
|
10448
10617
|
this.isScrolled = scrollTop > 0;
|
|
10449
10618
|
};
|
|
10450
10619
|
render() {
|
|
10451
|
-
return (hAsync("div", { key: '
|
|
10620
|
+
return (hAsync("div", { key: '47a99b4faac3adb110a548860ef094ba3bd4630a', class: {
|
|
10452
10621
|
'sd-select-dropdown': true,
|
|
10453
10622
|
'sd-select-dropdown--ready': this.isDropdownReady,
|
|
10454
|
-
}, style: this.dropdownSize, onScroll: this.handleDropdownScroll, ref: el => (this.dropdownRef = el) }, this.searchable && (hAsync("sd-select-search-input", { key: '
|
|
10623
|
+
}, 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)))));
|
|
10455
10624
|
}
|
|
10456
10625
|
static get watchers() { return {
|
|
10457
10626
|
"filteredOptions": [{
|
|
@@ -10498,8 +10667,8 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
10498
10667
|
constructor(hostRef) {
|
|
10499
10668
|
super();
|
|
10500
10669
|
registerInstance(this, hostRef);
|
|
10501
|
-
this.update = createEvent(this, "sdUpdate");
|
|
10502
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
10670
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
10671
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
10503
10672
|
}
|
|
10504
10673
|
get el() { return getElement(this); }
|
|
10505
10674
|
// props
|
|
@@ -10762,7 +10931,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
10762
10931
|
});
|
|
10763
10932
|
}
|
|
10764
10933
|
render() {
|
|
10765
|
-
return (hAsync("sd-field", { key: '
|
|
10934
|
+
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: {
|
|
10766
10935
|
'sd-select-group': true,
|
|
10767
10936
|
'sd-select-group--open': this.isOpen,
|
|
10768
10937
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -10866,8 +11035,8 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
10866
11035
|
constructor(hostRef) {
|
|
10867
11036
|
super();
|
|
10868
11037
|
registerInstance(this, hostRef);
|
|
10869
|
-
this.update = createEvent(this, "sdUpdate");
|
|
10870
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
11038
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
11039
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
10871
11040
|
}
|
|
10872
11041
|
get el() { return getElement(this); }
|
|
10873
11042
|
// props
|
|
@@ -11010,7 +11179,7 @@ class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
11010
11179
|
this.handleOptionSelection(option);
|
|
11011
11180
|
};
|
|
11012
11181
|
render() {
|
|
11013
|
-
return (hAsync("sd-field", { key: '
|
|
11182
|
+
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: {
|
|
11014
11183
|
'sd-select-multiple': true,
|
|
11015
11184
|
'sd-select-multiple--open': this.isOpen,
|
|
11016
11185
|
'sd-select-multiple--disabled': this.disabled,
|
|
@@ -11087,8 +11256,8 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
11087
11256
|
constructor(hostRef) {
|
|
11088
11257
|
super();
|
|
11089
11258
|
registerInstance(this, hostRef);
|
|
11090
|
-
this.update = createEvent(this, "sdUpdate");
|
|
11091
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
11259
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
11260
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
11092
11261
|
}
|
|
11093
11262
|
get el() { return getElement(this); }
|
|
11094
11263
|
// props
|
|
@@ -11580,7 +11749,7 @@ const sdSelectOptionCss = () => `sd-select-option{display:block;height:fit-conte
|
|
|
11580
11749
|
class SdSelectOption {
|
|
11581
11750
|
constructor(hostRef) {
|
|
11582
11751
|
registerInstance(this, hostRef);
|
|
11583
|
-
this.optionClick = createEvent(this, "optionClick");
|
|
11752
|
+
this.optionClick = createEvent(this, "optionClick", 7);
|
|
11584
11753
|
}
|
|
11585
11754
|
get el() { return getElement(this); }
|
|
11586
11755
|
option;
|
|
@@ -11606,7 +11775,7 @@ class SdSelectOption {
|
|
|
11606
11775
|
}
|
|
11607
11776
|
};
|
|
11608
11777
|
render() {
|
|
11609
|
-
return (hAsync("div", { key: '
|
|
11778
|
+
return (hAsync("div", { key: 'b9844296973b6e85d3c3e3652671e89f470ec7a9', class: {
|
|
11610
11779
|
'sd-select__option': true,
|
|
11611
11780
|
'sd-select__option--selected': this.isSelected,
|
|
11612
11781
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -11651,7 +11820,7 @@ const sdSelectOptionGroupCss = () => `sd-select-option-group{display:block;heigh
|
|
|
11651
11820
|
class SdSelectOptionGroup {
|
|
11652
11821
|
constructor(hostRef) {
|
|
11653
11822
|
registerInstance(this, hostRef);
|
|
11654
|
-
this.optionClick = createEvent(this, "optionClick");
|
|
11823
|
+
this.optionClick = createEvent(this, "optionClick", 7);
|
|
11655
11824
|
}
|
|
11656
11825
|
get el() { return getElement(this); }
|
|
11657
11826
|
option;
|
|
@@ -11692,7 +11861,7 @@ class SdSelectOptionGroup {
|
|
|
11692
11861
|
}
|
|
11693
11862
|
};
|
|
11694
11863
|
render() {
|
|
11695
|
-
return (hAsync("div", { key: '
|
|
11864
|
+
return (hAsync("div", { key: '9742c10ec20db29db941ac58666eb662b7b4275e', class: {
|
|
11696
11865
|
'sd-select__option-group': true,
|
|
11697
11866
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
11698
11867
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -11701,10 +11870,10 @@ class SdSelectOptionGroup {
|
|
|
11701
11870
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
11702
11871
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
11703
11872
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
11704
|
-
}, 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: '
|
|
11873
|
+
}, 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 => {
|
|
11705
11874
|
e.preventDefault();
|
|
11706
11875
|
this.handleClick(this.option, this.isSelected, e);
|
|
11707
|
-
} })), hAsync("span", { key: '
|
|
11876
|
+
} })), 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})`)))));
|
|
11708
11877
|
}
|
|
11709
11878
|
static get style() { return sdSelectOptionGroupCss(); }
|
|
11710
11879
|
static get cmpMeta() { return {
|
|
@@ -11734,8 +11903,8 @@ const sdSelectSearchInputCss = () => `sd-select-search-input{position:sticky;top
|
|
|
11734
11903
|
class SdSelectSearchInput {
|
|
11735
11904
|
constructor(hostRef) {
|
|
11736
11905
|
registerInstance(this, hostRef);
|
|
11737
|
-
this.searchInput = createEvent(this, "sdSearchInput");
|
|
11738
|
-
this.searchFocus = createEvent(this, "sdSearchFocus");
|
|
11906
|
+
this.searchInput = createEvent(this, "sdSearchInput", 7);
|
|
11907
|
+
this.searchFocus = createEvent(this, "sdSearchFocus", 7);
|
|
11739
11908
|
}
|
|
11740
11909
|
isScrolled = false;
|
|
11741
11910
|
searchText = '';
|
|
@@ -11753,17 +11922,17 @@ class SdSelectSearchInput {
|
|
|
11753
11922
|
input?.focus({ preventScroll: true });
|
|
11754
11923
|
}
|
|
11755
11924
|
render() {
|
|
11756
|
-
return (hAsync("div", { key: '
|
|
11925
|
+
return (hAsync("div", { key: '2d211645dc4041411e187f248a260a23b7c544f6', class: {
|
|
11757
11926
|
'sd-select-search-input': true,
|
|
11758
11927
|
'sd-select-search-input--scrolled': !!this.isScrolled,
|
|
11759
|
-
}, onClick: event => event.stopPropagation() }, hAsync("sd-input", { key: '
|
|
11928
|
+
}, 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 => {
|
|
11760
11929
|
this.searchInput.emit(String(event?.detail));
|
|
11761
11930
|
}, onSdFocus: () => {
|
|
11762
11931
|
this.searchFocus.emit();
|
|
11763
11932
|
}, onKeyDown: event => {
|
|
11764
11933
|
if (event.code === 'Enter')
|
|
11765
11934
|
event.stopPropagation();
|
|
11766
|
-
} }, hAsync("sd-icon", { key: '
|
|
11935
|
+
} }, hAsync("sd-icon", { key: '96a511b1f8625c883ec50d5e2985ff396d7b57c7', name: "search", size: 16, color: "#737373", style: { marginRight: '4px' }, slot: "prefix" }))));
|
|
11767
11936
|
}
|
|
11768
11937
|
static get style() { return sdSelectSearchInputCss(); }
|
|
11769
11938
|
static get cmpMeta() { return {
|
|
@@ -11786,8 +11955,8 @@ const sdSelectV2Css = () => `sd-select-v2{display:inline-flex}sd-select-v2 sd-po
|
|
|
11786
11955
|
class SdSelectV2 {
|
|
11787
11956
|
constructor(hostRef) {
|
|
11788
11957
|
registerInstance(this, hostRef);
|
|
11789
|
-
this.update = createEvent(this, "sdUpdate");
|
|
11790
|
-
this.dropDownShow = createEvent(this, "sdDropDownShow");
|
|
11958
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
11959
|
+
this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
|
|
11791
11960
|
}
|
|
11792
11961
|
static VIEWPORT_PADDING = 20;
|
|
11793
11962
|
static PORTAL_OFFSET_Y = 4;
|
|
@@ -11994,13 +12163,13 @@ class SdSelectV2 {
|
|
|
11994
12163
|
this.closeDropdown();
|
|
11995
12164
|
},
|
|
11996
12165
|
};
|
|
11997
|
-
return (hAsync("sd-field", { key: '
|
|
12166
|
+
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: () => {
|
|
11998
12167
|
this.hovered = true;
|
|
11999
12168
|
}, onMouseLeave: () => {
|
|
12000
12169
|
this.hovered = false;
|
|
12001
|
-
} }, hAsync("div", { key: '
|
|
12170
|
+
} }, hAsync("div", { key: '4231e75590fec54915d580d7a4f6248232bca365', class: "sd-select-v2", ref: el => {
|
|
12002
12171
|
this.triggerRef = el;
|
|
12003
|
-
} }, hAsync("sd-select-v2-trigger", { key: '
|
|
12172
|
+
} }, 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) })))));
|
|
12004
12173
|
}
|
|
12005
12174
|
static get watchers() { return {
|
|
12006
12175
|
"isOpen": [{
|
|
@@ -12208,7 +12377,7 @@ const sdSelectV2ListItemCss = () => `sd-select-v2-list-item{display:block}sd-sel
|
|
|
12208
12377
|
class SdSelectV2ListItem {
|
|
12209
12378
|
constructor(hostRef) {
|
|
12210
12379
|
registerInstance(this, hostRef);
|
|
12211
|
-
this.listItemClick = createEvent(this, "sdListItemClick");
|
|
12380
|
+
this.listItemClick = createEvent(this, "sdListItemClick", 7);
|
|
12212
12381
|
}
|
|
12213
12382
|
option;
|
|
12214
12383
|
depth = 1;
|
|
@@ -12273,7 +12442,7 @@ class SdSelectV2ListItem {
|
|
|
12273
12442
|
if (isDepth1Group) {
|
|
12274
12443
|
cssVars['--list-item-border-top'] = `${LIST_ITEM_COLORS.depth1.borderWidth}px solid ${LIST_ITEM_COLORS.depth1.border}`;
|
|
12275
12444
|
}
|
|
12276
|
-
return (hAsync("div", { key: '
|
|
12445
|
+
return (hAsync("div", { key: 'a7d424f1b7025cd41273a0264cdc1f973ff13061', class: {
|
|
12277
12446
|
'sd-select-v2-list-item': true,
|
|
12278
12447
|
'sd-select-v2-list-item--group': isGroup,
|
|
12279
12448
|
'sd-select-v2-list-item--depth1-group': isDepth1Group,
|
|
@@ -12283,7 +12452,7 @@ class SdSelectV2ListItem {
|
|
|
12283
12452
|
'sd-select-v2-list-item--focused': this.isFocused,
|
|
12284
12453
|
'sd-select-v2-list-item--selectable': this.isSelectable && !this.option.disabled,
|
|
12285
12454
|
'sd-select-v2-list-item--disabled': !!this.option.disabled,
|
|
12286
|
-
}, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (hAsync("sd-checkbox", { key: '
|
|
12455
|
+
}, 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, ")"))));
|
|
12287
12456
|
}
|
|
12288
12457
|
static get style() { return sdSelectV2ListItemCss(); }
|
|
12289
12458
|
static get cmpMeta() { return {
|
|
@@ -12308,8 +12477,8 @@ const sdSelectV2ListItemSearchCss = () => `sd-select-v2-list-item-search{display
|
|
|
12308
12477
|
class SdSelectV2ListItemSearch {
|
|
12309
12478
|
constructor(hostRef) {
|
|
12310
12479
|
registerInstance(this, hostRef);
|
|
12311
|
-
this.searchFilter = createEvent(this, "sdSearchFilter");
|
|
12312
|
-
this.searchFocus = createEvent(this, "sdSearchFocus");
|
|
12480
|
+
this.searchFilter = createEvent(this, "sdSearchFilter", 7);
|
|
12481
|
+
this.searchFocus = createEvent(this, "sdSearchFocus", 7);
|
|
12313
12482
|
}
|
|
12314
12483
|
isScrolled = false;
|
|
12315
12484
|
searchText = '';
|
|
@@ -12351,12 +12520,12 @@ class SdSelectV2ListItemSearch {
|
|
|
12351
12520
|
clearTimeout(this.debounceTimer);
|
|
12352
12521
|
}
|
|
12353
12522
|
render() {
|
|
12354
|
-
return (hAsync("div", { key: '
|
|
12523
|
+
return (hAsync("div", { key: '87f0a8fc24fe4b80cd29f63ca4f269b242a35f56', class: {
|
|
12355
12524
|
'sd-select-v2-list-item-search': true,
|
|
12356
12525
|
'sd-select-v2-list-item-search--scrolled': this.isScrolled,
|
|
12357
|
-
} }, hAsync("div", { key: '
|
|
12526
|
+
} }, 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 => {
|
|
12358
12527
|
this.inputEl = el;
|
|
12359
|
-
}, 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: '
|
|
12528
|
+
}, 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" }))))));
|
|
12360
12529
|
}
|
|
12361
12530
|
static get style() { return sdSelectV2ListItemSearchCss(); }
|
|
12362
12531
|
static get cmpMeta() { return {
|
|
@@ -12378,7 +12547,7 @@ const sdSelectV2ListboxCss = () => `sd-select-v2-listbox{display:block}sd-select
|
|
|
12378
12547
|
class SdSelectV2Listbox {
|
|
12379
12548
|
constructor(hostRef) {
|
|
12380
12549
|
registerInstance(this, hostRef);
|
|
12381
|
-
this.optionSelect = createEvent(this, "sdOptionSelect");
|
|
12550
|
+
this.optionSelect = createEvent(this, "sdOptionSelect", 7);
|
|
12382
12551
|
}
|
|
12383
12552
|
name = 'default';
|
|
12384
12553
|
options = [];
|
|
@@ -12662,7 +12831,7 @@ class SdSelectV2Listbox {
|
|
|
12662
12831
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
12663
12832
|
'--listbox-padding-bottom': `${LIST_BOX_LAYOUT.paddingBottom}px`,
|
|
12664
12833
|
};
|
|
12665
|
-
return (hAsync("div", { key: '
|
|
12834
|
+
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 => {
|
|
12666
12835
|
this.listEl = el;
|
|
12667
12836
|
} }, 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) })))))));
|
|
12668
12837
|
}
|
|
@@ -12698,7 +12867,7 @@ const sdSelectV2TriggerCss = () => `sd-select-v2-trigger{display:block;width:100
|
|
|
12698
12867
|
class SdSelectV2Trigger {
|
|
12699
12868
|
constructor(hostRef) {
|
|
12700
12869
|
registerInstance(this, hostRef);
|
|
12701
|
-
this.triggerClick = createEvent(this, "sdTriggerClick");
|
|
12870
|
+
this.triggerClick = createEvent(this, "sdTriggerClick", 7);
|
|
12702
12871
|
}
|
|
12703
12872
|
displayText = '';
|
|
12704
12873
|
placeholder = '선택';
|
|
@@ -12727,11 +12896,11 @@ class SdSelectV2Trigger {
|
|
|
12727
12896
|
? SELECT_COLORS.icon.disabled
|
|
12728
12897
|
: SELECT_COLORS.icon.default,
|
|
12729
12898
|
};
|
|
12730
|
-
return (hAsync("div", { key: '
|
|
12899
|
+
return (hAsync("div", { key: '9bbda5c8b8b359f6df1079f9f5b1b170472ba7d3', class: {
|
|
12731
12900
|
'sd-select-v2-trigger': true,
|
|
12732
12901
|
'sd-select-v2-trigger--open': this.isOpen,
|
|
12733
12902
|
'sd-select-v2-trigger--disabled': this.disabled,
|
|
12734
|
-
}, style: cssVars, onClick: this.handleClick }, hAsync("div", { key: '
|
|
12903
|
+
}, 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: {
|
|
12735
12904
|
'sd-select-v2-trigger__icon': true,
|
|
12736
12905
|
'sd-select-v2-trigger__icon--open': this.isOpen,
|
|
12737
12906
|
} }))));
|
|
@@ -12757,9 +12926,9 @@ const sdTableCss = () => `.sd-table__wrapper{height:var(--table-height, auto);wi
|
|
|
12757
12926
|
class SdTable {
|
|
12758
12927
|
constructor(hostRef) {
|
|
12759
12928
|
registerInstance(this, hostRef);
|
|
12760
|
-
this.sdSelectChange = createEvent(this, "sdSelectChange");
|
|
12761
|
-
this.sdPageChange = createEvent(this, "sdPageChange");
|
|
12762
|
-
this.sdRowsPerPageChange = createEvent(this, "sdRowsPerPageChange");
|
|
12929
|
+
this.sdSelectChange = createEvent(this, "sdSelectChange", 7);
|
|
12930
|
+
this.sdPageChange = createEvent(this, "sdPageChange", 7);
|
|
12931
|
+
this.sdRowsPerPageChange = createEvent(this, "sdRowsPerPageChange", 7);
|
|
12763
12932
|
}
|
|
12764
12933
|
get el() { return getElement(this); }
|
|
12765
12934
|
columns;
|
|
@@ -13609,7 +13778,7 @@ const sdTabsCss = () => `sd-tabs{display:inline-block;width:100%;border-bottom:1
|
|
|
13609
13778
|
class SdTabs {
|
|
13610
13779
|
constructor(hostRef) {
|
|
13611
13780
|
registerInstance(this, hostRef);
|
|
13612
|
-
this.update = createEvent(this, "sdUpdate");
|
|
13781
|
+
this.update = createEvent(this, "sdUpdate", 7);
|
|
13613
13782
|
}
|
|
13614
13783
|
value;
|
|
13615
13784
|
tabs = [];
|
|
@@ -13845,7 +14014,7 @@ class SdTag {
|
|
|
13845
14014
|
render() {
|
|
13846
14015
|
const config = this.resolvedConfig;
|
|
13847
14016
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
13848
|
-
return (hAsync("span", { key: '
|
|
14017
|
+
return (hAsync("span", { key: '0a1fe7d5e6a3fcdf3a392e1e8d16032139116c7e', class: "sd-tag", style: {
|
|
13849
14018
|
'--sd-tag-background': config.background,
|
|
13850
14019
|
'--sd-tag-content': config.content,
|
|
13851
14020
|
'--sd-tag-height': config.height,
|
|
@@ -13855,7 +14024,7 @@ class SdTag {
|
|
|
13855
14024
|
'--sd-tag-font-weight': config.fontWeight,
|
|
13856
14025
|
'--sd-tag-line-height': config.lineHeight,
|
|
13857
14026
|
'--sd-tag-radius': config.radius,
|
|
13858
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, hAsync("span", { key: '
|
|
14027
|
+
}, "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));
|
|
13859
14028
|
}
|
|
13860
14029
|
static get style() { return sdTagCss(); }
|
|
13861
14030
|
static get cmpMeta() { return {
|
|
@@ -13926,7 +14095,7 @@ const sdTextLinkCss = () => `sd-text-link{display:inline-flex}sd-text-link .sd-t
|
|
|
13926
14095
|
class SdTextLink {
|
|
13927
14096
|
constructor(hostRef) {
|
|
13928
14097
|
registerInstance(this, hostRef);
|
|
13929
|
-
this.click = createEvent(this, "sdClick");
|
|
14098
|
+
this.click = createEvent(this, "sdClick", 7);
|
|
13930
14099
|
}
|
|
13931
14100
|
label = '';
|
|
13932
14101
|
icon = '';
|
|
@@ -13957,16 +14126,16 @@ class SdTextLink {
|
|
|
13957
14126
|
'--sd-text-link-text-decoration': typo.textDecoration,
|
|
13958
14127
|
'--sd-text-link-color': contentColor,
|
|
13959
14128
|
};
|
|
13960
|
-
return (hAsync("span", { key: '
|
|
14129
|
+
return (hAsync("span", { key: '8eadcc89bb334780afa4997f0fcfa6492636f641', class: {
|
|
13961
14130
|
'sd-text-link': true,
|
|
13962
14131
|
'sd-text-link--disabled': this.disabled,
|
|
13963
|
-
}, style: cssVars, onClick: this.handleClick }, this.icon && (hAsync("sd-icon", { key: '
|
|
14132
|
+
}, 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: {
|
|
13964
14133
|
width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
13965
14134
|
height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
|
|
13966
14135
|
display: 'inline-flex',
|
|
13967
14136
|
alignItems: 'center',
|
|
13968
14137
|
justifyContent: 'center',
|
|
13969
|
-
} }, hAsync("sd-icon", { key: '
|
|
14138
|
+
} }, hAsync("sd-icon", { key: '61f57de237b92461ea387ad0bd71bbbb7d7cd08c', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
|
|
13970
14139
|
}
|
|
13971
14140
|
static get style() { return sdTextLinkCss(); }
|
|
13972
14141
|
static get cmpMeta() { return {
|
|
@@ -13991,9 +14160,9 @@ const sdTextareaCss = () => `sd-textarea{display:block}sd-textarea .sd-textarea{
|
|
|
13991
14160
|
class SdTextarea {
|
|
13992
14161
|
constructor(hostRef) {
|
|
13993
14162
|
registerInstance(this, hostRef);
|
|
13994
|
-
this.input = createEvent(this, "sdUpdate");
|
|
13995
|
-
this.focus = createEvent(this, "sdFocus");
|
|
13996
|
-
this.blur = createEvent(this, "sdBlur");
|
|
14163
|
+
this.input = createEvent(this, "sdUpdate", 7);
|
|
14164
|
+
this.focus = createEvent(this, "sdFocus", 7);
|
|
14165
|
+
this.blur = createEvent(this, "sdBlur", 7);
|
|
13997
14166
|
}
|
|
13998
14167
|
get host() { return getElement(this); }
|
|
13999
14168
|
value = null;
|
|
@@ -14070,10 +14239,10 @@ class SdTextarea {
|
|
|
14070
14239
|
}
|
|
14071
14240
|
render() {
|
|
14072
14241
|
const maxLengthCounter = this.getMaxLengthCounter();
|
|
14073
|
-
return (hAsync("div", { key: '
|
|
14242
|
+
return (hAsync("div", { key: '05fa25ff5bc2a8a0927fbc5301c1404a92e26d5c', class: {
|
|
14074
14243
|
'sd-textarea': true,
|
|
14075
14244
|
[this.getTextareaStatus()]: true,
|
|
14076
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, hAsync("div", { key: '
|
|
14245
|
+
}, 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)))));
|
|
14077
14246
|
}
|
|
14078
14247
|
static get watchers() { return {
|
|
14079
14248
|
"value": [{
|
|
@@ -14151,7 +14320,7 @@ const sdToastCss = () => `sd-toast{display:block;width:fit-content;height:fit-co
|
|
|
14151
14320
|
class SdToast {
|
|
14152
14321
|
constructor(hostRef) {
|
|
14153
14322
|
registerInstance(this, hostRef);
|
|
14154
|
-
this.close = createEvent(this, "sdClose");
|
|
14323
|
+
this.close = createEvent(this, "sdClose", 7);
|
|
14155
14324
|
}
|
|
14156
14325
|
icon;
|
|
14157
14326
|
message;
|
|
@@ -14163,10 +14332,10 @@ class SdToast {
|
|
|
14163
14332
|
render() {
|
|
14164
14333
|
const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
|
|
14165
14334
|
const iconSize = Number(TOAST_LAYOUT.iconSize);
|
|
14166
|
-
return (hAsync("div", { key: '
|
|
14335
|
+
return (hAsync("div", { key: '630fa227d71315f8e0e61bb19d0f37ca8363b856', style: {
|
|
14167
14336
|
'--sd-toast-bg': typeConfig.bg,
|
|
14168
14337
|
'--sd-toast-text': typeConfig.content,
|
|
14169
|
-
} }, hAsync("div", { key: '
|
|
14338
|
+
} }, 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() })))));
|
|
14170
14339
|
}
|
|
14171
14340
|
static get style() { return sdToastCss(); }
|
|
14172
14341
|
static get cmpMeta() { return {
|
|
@@ -14201,8 +14370,8 @@ let toastIdCounter = 0;
|
|
|
14201
14370
|
class SdToastContainer {
|
|
14202
14371
|
constructor(hostRef) {
|
|
14203
14372
|
registerInstance(this, hostRef);
|
|
14204
|
-
this.toastShow = createEvent(this, "sdToastShow");
|
|
14205
|
-
this.toastDismiss = createEvent(this, "sdToastDismiss");
|
|
14373
|
+
this.toastShow = createEvent(this, "sdToastShow", 7);
|
|
14374
|
+
this.toastDismiss = createEvent(this, "sdToastDismiss", 7);
|
|
14206
14375
|
}
|
|
14207
14376
|
get el() { return getElement(this); }
|
|
14208
14377
|
position = 'bottom-center';
|
|
@@ -14418,7 +14587,7 @@ class SdToastContainer {
|
|
|
14418
14587
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
14419
14588
|
const indexMap = new Map();
|
|
14420
14589
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
14421
|
-
return (hAsync("div", { key: '
|
|
14590
|
+
return (hAsync("div", { key: '857b7a794e3dd945d706744519456ad033672760', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
14422
14591
|
this.expanded = true;
|
|
14423
14592
|
this.pauseTimers();
|
|
14424
14593
|
}, onMouseLeave: () => {
|
|
@@ -14463,7 +14632,7 @@ const sdToggleCss = () => `sd-toggle{display:inline-block;height:20px;line-heigh
|
|
|
14463
14632
|
class SdToggle {
|
|
14464
14633
|
constructor(hostRef) {
|
|
14465
14634
|
registerInstance(this, hostRef);
|
|
14466
|
-
this.change = createEvent(this, "sdUpdate");
|
|
14635
|
+
this.change = createEvent(this, "sdUpdate", 7);
|
|
14467
14636
|
}
|
|
14468
14637
|
value = false;
|
|
14469
14638
|
label = '';
|
|
@@ -14493,7 +14662,7 @@ class SdToggle {
|
|
|
14493
14662
|
this.change.emit(newValue);
|
|
14494
14663
|
};
|
|
14495
14664
|
render() {
|
|
14496
|
-
return (hAsync("label", { key: '
|
|
14665
|
+
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" }))));
|
|
14497
14666
|
}
|
|
14498
14667
|
static get style() { return sdToggleCss(); }
|
|
14499
14668
|
static get cmpMeta() { return {
|
|
@@ -14515,7 +14684,7 @@ const sdToggleButtonCss = () => `sd-toggle-button{display:inline-block;line-heig
|
|
|
14515
14684
|
class SdToggleButton {
|
|
14516
14685
|
constructor(hostRef) {
|
|
14517
14686
|
registerInstance(this, hostRef);
|
|
14518
|
-
this.change = createEvent(this, "sdUpdate");
|
|
14687
|
+
this.change = createEvent(this, "sdUpdate", 7);
|
|
14519
14688
|
}
|
|
14520
14689
|
value = false;
|
|
14521
14690
|
label = '';
|
|
@@ -14549,7 +14718,7 @@ class SdToggleButton {
|
|
|
14549
14718
|
this.change.emit(newValue);
|
|
14550
14719
|
};
|
|
14551
14720
|
render() {
|
|
14552
|
-
return (hAsync("label", { key: '
|
|
14721
|
+
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 })));
|
|
14553
14722
|
}
|
|
14554
14723
|
static get style() { return sdToggleButtonCss(); }
|
|
14555
14724
|
static get cmpMeta() { return {
|
|
@@ -14592,7 +14761,7 @@ const TOOLTIP_TYPE_CONFIG = {
|
|
|
14592
14761
|
accent: { bg: tooltipTokens.tooltip.accent.bg, content: tooltipTokens.tooltip.accent.content },
|
|
14593
14762
|
};
|
|
14594
14763
|
|
|
14595
|
-
const sdTooltipCss = () => `sd-tooltip{visibility:hidden !important;display:inline-flex}sd-tooltip.visible{visibility:visible !important}sd-tooltip .sd-tooltip{position:relative;cursor:pointer;
|
|
14764
|
+
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}`;
|
|
14596
14765
|
|
|
14597
14766
|
class SdTooltip {
|
|
14598
14767
|
constructor(hostRef) {
|
|
@@ -14677,14 +14846,14 @@ class SdTooltip {
|
|
|
14677
14846
|
const toggleTooltip = () => (this.showTooltip = !this.showTooltip);
|
|
14678
14847
|
const divTrigger = trigger === 'hover' ? hoverTrigger : this.label ? {} : { onClick: toggleTooltip };
|
|
14679
14848
|
const buttonClickTrigger = trigger === 'click' && this.label ? { onSdClick: toggleTooltip } : {};
|
|
14680
|
-
return (hAsync(Fragment, { key: '
|
|
14849
|
+
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: {
|
|
14681
14850
|
'sd-floating-menu': true,
|
|
14682
14851
|
[`sd-floating-menu--${tooltipType}`]: true,
|
|
14683
14852
|
[`sd-floating-menu--${placement}`]: true,
|
|
14684
14853
|
}, style: {
|
|
14685
14854
|
'--sd-floating-bg': typeConfig.bg,
|
|
14686
14855
|
'--sd-floating-content': typeConfig.content,
|
|
14687
|
-
}, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, hAsync("i", { key: '
|
|
14856
|
+
}, 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 }))))));
|
|
14688
14857
|
}
|
|
14689
14858
|
static get style() { return sdTooltipCss(); }
|
|
14690
14859
|
static get cmpMeta() { return {
|