solid-ui 3.1.3-12 → 3.1.3-13
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/README.md +9 -0
- package/dist/chunks/{DialogProvider-ge2aA77F.js → DialogProvider-B7wEBrVN.js} +11 -13
- package/dist/chunks/{DialogProvider-ge2aA77F.js.map → DialogProvider-B7wEBrVN.js.map} +1 -1
- package/dist/chunks/{account-Bb818bGF.js → account-DeNlj01m.js} +24 -26
- package/dist/chunks/{account-Bb818bGF.js.map → account-DeNlj01m.js.map} +1 -1
- package/dist/chunks/{auth-ClVI18ss.js → auth-Knq99zZ9.js} +75 -103
- package/dist/chunks/auth-Knq99zZ9.js.map +1 -0
- package/dist/chunks/{avatar-DGu_PX5y.js → avatar-DgO_p94F.js} +8 -9
- package/dist/chunks/{avatar-DGu_PX5y.js.map → avatar-DgO_p94F.js.map} +1 -1
- package/dist/chunks/{button-B9-nlEpz.js → button-Dvkek1tx.js} +10 -11
- package/dist/chunks/{button-B9-nlEpz.js.map → button-Dvkek1tx.js.map} +1 -1
- package/dist/chunks/{chunk.7MPIABXH-CEYdxYyt.js → chunk.7MPIABXH-DNcYOuE8.js} +22 -22
- package/dist/chunks/{chunk.7MPIABXH-CEYdxYyt.js.map → chunk.7MPIABXH-DNcYOuE8.js.map} +1 -1
- package/dist/chunks/{combobox-DrT0Nb-A.js → combobox-B5j4LoHY.js} +108 -179
- package/dist/chunks/combobox-B5j4LoHY.js.map +1 -0
- package/dist/chunks/{combobox-option-DxJvAZ_Q.js → combobox-option-C5lKAumO.js} +7 -8
- package/dist/chunks/{combobox-option-DxJvAZ_Q.js.map → combobox-option-C5lKAumO.js.map} +1 -1
- package/dist/chunks/components-BD458q30.js +758 -0
- package/dist/chunks/components-BD458q30.js.map +1 -0
- package/dist/chunks/{dialog-kyHgc-uy.js → dialog-DZgm_Tph.js} +57 -114
- package/dist/chunks/dialog-DZgm_Tph.js.map +1 -0
- package/dist/chunks/{dialog-content-CEITrC59.js → dialog-content-DY-ROHyi.js} +4 -4
- package/dist/chunks/{dialog-content-CEITrC59.js.map → dialog-content-DY-ROHyi.js.map} +1 -1
- package/dist/chunks/{dialog-footer-DVLEK5bU.js → dialog-footer-BAZTjZ8J.js} +4 -4
- package/dist/chunks/{dialog-footer-DVLEK5bU.js.map → dialog-footer-BAZTjZ8J.js.map} +1 -1
- package/dist/chunks/{dialog-header-kEWl21oD.js → dialog-header-COzPcK8F.js} +4 -4
- package/dist/chunks/{dialog-header-kEWl21oD.js.map → dialog-header-COzPcK8F.js.map} +1 -1
- package/dist/chunks/dialogs-DEuwXC46.js +26 -0
- package/dist/chunks/dialogs-DEuwXC46.js.map +1 -0
- package/dist/chunks/{dialogs-root-dPGfuzSZ.js → dialogs-root-BYp6fIUE.js} +12 -17
- package/dist/chunks/dialogs-root-BYp6fIUE.js.map +1 -0
- package/dist/chunks/{guard-DEqOFEs4.js → guard-DI4k0FkM.js} +8 -9
- package/dist/chunks/{guard-DEqOFEs4.js.map → guard-DI4k0FkM.js.map} +1 -1
- package/dist/chunks/{input-BjCX2bFe.js → input-CCpEhtqA.js} +57 -131
- package/dist/chunks/input-CCpEhtqA.js.map +1 -0
- package/dist/chunks/{login-button-Czm-E9Na.js → login-button-BafqiKef.js} +9 -10
- package/dist/chunks/{login-button-Czm-E9Na.js.map → login-button-BafqiKef.js.map} +1 -1
- package/dist/chunks/{logout-button-BrR_jOhK.js → logout-button-D54NF9EW.js} +9 -10
- package/dist/chunks/{logout-button-BrR_jOhK.js.map → logout-button-D54NF9EW.js.map} +1 -1
- package/dist/chunks/{menu-1PG19fCC.js → menu-DKxtACGA.js} +45 -46
- package/dist/chunks/{menu-1PG19fCC.js.map → menu-DKxtACGA.js.map} +1 -1
- package/dist/chunks/{menu-item-C9uErV38.js → menu-item-D9BqJtKZ.js} +10 -11
- package/dist/chunks/{menu-item-C9uErV38.js.map → menu-item-D9BqJtKZ.js.map} +1 -1
- package/dist/chunks/photo-capture-BoZF621r.js +403 -0
- package/dist/chunks/photo-capture-BoZF621r.js.map +1 -0
- package/dist/chunks/photo-capture-modal-BLZtHDj1.js +560 -0
- package/dist/chunks/photo-capture-modal-BLZtHDj1.js.map +1 -0
- package/dist/chunks/{provider-qd_4VaKB.js → provider-Btl6Lnki.js} +13 -14
- package/dist/chunks/{provider-qd_4VaKB.js.map → provider-Btl6Lnki.js.map} +1 -1
- package/dist/chunks/{select-OM-SgY4K.js → select-XkieYvDm.js} +53 -110
- package/dist/chunks/select-XkieYvDm.js.map +1 -0
- package/dist/chunks/{select-option-pVhYlXrt.js → select-option-DUg4AWzw.js} +7 -8
- package/dist/chunks/{select-option-pVhYlXrt.js.map → select-option-DUg4AWzw.js.map} +1 -1
- package/dist/chunks/{signup-button-BnA5p-uJ.js → signup-button-D5wS8_gB.js} +9 -10
- package/dist/chunks/{signup-button-BnA5p-uJ.js.map → signup-button-D5wS8_gB.js.map} +1 -1
- package/dist/chunks/{solid-emblem-D2clBuKZ.js → solid-emblem-XHk-oomv.js} +5 -5
- package/dist/chunks/{solid-emblem-D2clBuKZ.js.map → solid-emblem-XHk-oomv.js.map} +1 -1
- package/dist/chunks/{src-DJOb1wMf.js → src-CJICzMIV.js} +4 -3
- package/dist/chunks/{src-DJOb1wMf.js.map → src-CJICzMIV.js.map} +1 -1
- package/dist/components/account/Account.stories.d.ts +3 -13
- package/dist/components/account/Account.stories.d.ts.map +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/all.cjs.js +1 -1
- package/dist/components/all.esm.js +1 -0
- package/dist/components/avatar/Avatar.stories.d.ts +3 -21
- package/dist/components/avatar/Avatar.stories.d.ts.map +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/button/Button.stories.d.ts +15 -154
- package/dist/components/button/Button.stories.d.ts.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/combobox/Combobox.cjs.js +11 -11
- package/dist/components/combobox/Combobox.cjs.js.map +1 -1
- package/dist/components/combobox/Combobox.d.ts +4 -11
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.esm.js +101 -172
- package/dist/components/combobox/Combobox.esm.js.map +1 -1
- package/dist/components/combobox/Combobox.stories.d.ts +9 -46
- package/dist/components/combobox/Combobox.stories.d.ts.map +1 -1
- package/dist/components/combobox-option.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog/Dialog.cjs.js +3 -3
- package/dist/components/dialog/Dialog.cjs.js.map +1 -1
- package/dist/components/dialog/Dialog.esm.js +6 -6
- package/dist/components/dialog/Dialog.esm.js.map +1 -1
- package/dist/components/dialog/Dialog.stories.d.ts +22 -0
- package/dist/components/dialog/Dialog.stories.d.ts.map +1 -0
- package/dist/components/dialog/docs/sample-modal/SampleModal.d.ts +6 -0
- package/dist/components/dialog/docs/sample-modal/SampleModal.d.ts.map +1 -0
- package/dist/components/dialog/docs/sample-modal/index.d.ts +4 -0
- package/dist/components/dialog/docs/sample-modal/index.d.ts.map +1 -0
- package/dist/components/dialog-content.js +1 -1
- package/dist/components/dialog-footer.js +1 -1
- package/dist/components/dialog-header.js +1 -1
- package/dist/components/dialog-provider.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/dialogs-root/DialogsRoot.cjs.js +4 -7
- package/dist/components/dialogs-root/DialogsRoot.cjs.js.map +1 -1
- package/dist/components/dialogs-root/DialogsRoot.d.ts.map +1 -1
- package/dist/components/dialogs-root/DialogsRoot.esm.js +7 -10
- package/dist/components/dialogs-root/DialogsRoot.esm.js.map +1 -1
- package/dist/components/dialogs-root.js +1 -1
- package/dist/components/guard/Guard.stories.d.ts +3 -21
- package/dist/components/guard/Guard.stories.d.ts.map +1 -1
- package/dist/components/guard.js +1 -1
- package/dist/components/input/Input.cjs.js +2 -2
- package/dist/components/input/Input.cjs.js.map +1 -1
- package/dist/components/input/Input.d.ts +3 -11
- package/dist/components/input/Input.d.ts.map +1 -1
- package/dist/components/input/Input.esm.js +61 -135
- package/dist/components/input/Input.esm.js.map +1 -1
- package/dist/components/input/Input.stories.d.ts +13 -22
- package/dist/components/input/Input.stories.d.ts.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/login-button/LoginButton.stories.d.ts +4 -4
- package/dist/components/login-button/LoginButton.stories.d.ts.map +1 -1
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal/LoginModal.cjs.js +1 -1
- package/dist/components/login-modal/LoginModal.cjs.js.map +1 -1
- package/dist/components/login-modal/LoginModal.esm.js +1 -1
- package/dist/components/login-modal/LoginModal.esm.js.map +1 -1
- package/dist/components/login-modal/LoginModal.stories.d.ts +13 -5
- package/dist/components/login-modal/LoginModal.stories.d.ts.map +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button/LogoutButton.stories.d.ts +4 -4
- package/dist/components/logout-button/LogoutButton.stories.d.ts.map +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu/Menu.stories.d.ts +3 -4
- package/dist/components/menu/Menu.stories.d.ts.map +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/photo-capture/PhotoCapture.cjs.js +6 -0
- package/dist/components/photo-capture/PhotoCapture.cjs.js.map +1 -0
- package/dist/components/photo-capture/PhotoCapture.d.ts +20 -0
- package/dist/components/photo-capture/PhotoCapture.d.ts.map +1 -0
- package/dist/components/photo-capture/PhotoCapture.esm.js +404 -0
- package/dist/components/photo-capture/PhotoCapture.esm.js.map +1 -0
- package/dist/components/photo-capture/PhotoCapture.stories.d.ts +16 -0
- package/dist/components/photo-capture/PhotoCapture.stories.d.ts.map +1 -0
- package/dist/components/photo-capture/docs/photo-capture-sandbox/PhotoCaptureSandbox.d.ts +9 -0
- package/dist/components/photo-capture/docs/photo-capture-sandbox/PhotoCaptureSandbox.d.ts.map +1 -0
- package/dist/components/photo-capture/docs/photo-capture-sandbox/index.d.ts +4 -0
- package/dist/components/photo-capture/docs/photo-capture-sandbox/index.d.ts.map +1 -0
- package/dist/components/photo-capture/index.cjs.js +2 -1
- package/dist/components/photo-capture/index.cjs.js.map +1 -0
- package/dist/components/photo-capture/index.d.ts +4 -1
- package/dist/components/photo-capture/index.d.ts.map +1 -1
- package/dist/components/photo-capture/index.esm.js +7 -3
- package/dist/components/photo-capture/index.esm.js.map +1 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js +24 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.cjs.js.map +1 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.d.ts +42 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.d.ts.map +1 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js +561 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.esm.js.map +1 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.cjs.js +2 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.cjs.js.map +1 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.esm.js +7 -0
- package/dist/components/photo-capture-modal/PhotoCaptureModal.styles.esm.js.map +1 -0
- package/dist/components/photo-capture-modal/index.cjs.js +2 -0
- package/dist/components/photo-capture-modal/index.cjs.js.map +1 -0
- package/dist/components/photo-capture-modal/index.d.ts +4 -0
- package/dist/components/photo-capture-modal/index.d.ts.map +1 -0
- package/dist/components/photo-capture-modal/index.esm.js +7 -0
- package/dist/components/photo-capture-modal/index.esm.js.map +1 -0
- package/dist/components/photo-capture-modal.js +2 -0
- package/dist/components/photo-capture.js +2 -2
- package/dist/components/provider.js +1 -1
- package/dist/components/select/Select.cjs.js +3 -3
- package/dist/components/select/Select.cjs.js.map +1 -1
- package/dist/components/select/Select.d.ts +3 -10
- package/dist/components/select/Select.d.ts.map +1 -1
- package/dist/components/select/Select.esm.js +52 -109
- package/dist/components/select/Select.esm.js.map +1 -1
- package/dist/components/select/Select.stories.d.ts +9 -13
- package/dist/components/select/Select.stories.d.ts.map +1 -1
- package/dist/components/select-option.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/signup-button/SignupButton.stories.d.ts +4 -4
- package/dist/components/signup-button/SignupButton.stories.d.ts.map +1 -1
- package/dist/components/signup-button.js +1 -1
- package/dist/components/solid-emblem.js +1 -1
- package/dist/components.js +24 -23
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -10
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -8
- package/dist/lib/auth/SolidAuth.cjs.js +1 -1
- package/dist/lib/auth/SolidAuth.cjs.js.map +1 -1
- package/dist/lib/auth/SolidAuth.d.ts.map +1 -1
- package/dist/lib/auth/SolidAuth.esm.js +15 -16
- package/dist/lib/auth/SolidAuth.esm.js.map +1 -1
- package/dist/lib/components/decorators.cjs.js.map +1 -1
- package/dist/lib/components/decorators.esm.js.map +1 -1
- package/dist/lib/components/dialog-component/DialogComponent.cjs.js +2 -0
- package/dist/lib/components/dialog-component/DialogComponent.cjs.js.map +1 -0
- package/dist/lib/components/dialog-component/DialogComponent.d.ts +10 -0
- package/dist/lib/components/dialog-component/DialogComponent.d.ts.map +1 -0
- package/dist/lib/components/dialog-component/DialogComponent.esm.js +203 -0
- package/dist/lib/components/dialog-component/DialogComponent.esm.js.map +1 -0
- package/dist/lib/components/dialog-component/index.cjs.js +1 -0
- package/dist/lib/components/dialog-component/index.d.ts +4 -0
- package/dist/lib/components/dialog-component/index.d.ts.map +1 -0
- package/dist/lib/components/dialog-component/index.esm.js +2 -0
- package/dist/lib/components/form-control-component/FormControlComponent.cjs.js +2 -0
- package/dist/lib/components/form-control-component/FormControlComponent.cjs.js.map +1 -0
- package/dist/lib/components/form-control-component/FormControlComponent.d.ts +15 -0
- package/dist/lib/components/form-control-component/FormControlComponent.d.ts.map +1 -0
- package/dist/lib/components/form-control-component/FormControlComponent.esm.js +271 -0
- package/dist/lib/components/form-control-component/FormControlComponent.esm.js.map +1 -0
- package/dist/lib/components/form-control-component/index.cjs.js +1 -0
- package/dist/lib/components/form-control-component/index.d.ts +4 -0
- package/dist/lib/components/form-control-component/index.d.ts.map +1 -0
- package/dist/lib/components/form-control-component/index.esm.js +2 -0
- package/dist/lib/components/ids.cjs.js.map +1 -1
- package/dist/lib/components/ids.esm.js.map +1 -1
- package/dist/lib/components/index.cjs.js +1 -1
- package/dist/lib/components/index.d.ts +3 -1
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/components/index.esm.js +8 -4
- package/dist/lib/components/traits/DialogTrait.cjs.js +1 -1
- package/dist/lib/components/traits/DialogTrait.cjs.js.map +1 -1
- package/dist/lib/components/traits/DialogTrait.d.ts +2 -1
- package/dist/lib/components/traits/DialogTrait.d.ts.map +1 -1
- package/dist/lib/components/traits/DialogTrait.esm.js +26 -6
- package/dist/lib/components/traits/DialogTrait.esm.js.map +1 -1
- package/dist/lib/components/traits/FormControlTrait.cjs.js +1 -1
- package/dist/lib/components/traits/FormControlTrait.cjs.js.map +1 -1
- package/dist/lib/components/traits/FormControlTrait.d.ts +4 -2
- package/dist/lib/components/traits/FormControlTrait.d.ts.map +1 -1
- package/dist/lib/components/traits/FormControlTrait.esm.js +28 -10
- package/dist/lib/components/traits/FormControlTrait.esm.js.map +1 -1
- package/dist/lib/components/web-component/WebComponent.cjs.js +1 -1
- package/dist/lib/components/web-component/WebComponent.cjs.js.map +1 -1
- package/dist/lib/components/web-component/WebComponent.d.ts +12 -1
- package/dist/lib/components/web-component/WebComponent.d.ts.map +1 -1
- package/dist/lib/components/web-component/WebComponent.esm.js +28 -6
- package/dist/lib/components/web-component/WebComponent.esm.js.map +1 -1
- package/dist/lib/components/web-component/WebComponent.styles.cjs.js +1 -1
- package/dist/lib/components/web-component/WebComponent.styles.esm.js +1 -1
- package/dist/lib/dialogs/Dialog.cjs.js +1 -1
- package/dist/lib/dialogs/Dialog.cjs.js.map +1 -1
- package/dist/lib/dialogs/Dialog.d.ts +4 -8
- package/dist/lib/dialogs/Dialog.d.ts.map +1 -1
- package/dist/lib/dialogs/Dialog.esm.js +1 -8
- package/dist/lib/dialogs/Dialog.esm.js.map +1 -1
- package/dist/lib/dialogs/helpers.cjs.js +1 -1
- package/dist/lib/dialogs/helpers.cjs.js.map +1 -1
- package/dist/lib/dialogs/helpers.d.ts +7 -2
- package/dist/lib/dialogs/helpers.d.ts.map +1 -1
- package/dist/lib/dialogs/helpers.esm.js +5 -3
- package/dist/lib/dialogs/helpers.esm.js.map +1 -1
- package/dist/loader.js +6 -8
- package/dist/solid-ui.js +130 -386
- package/dist/solid-ui.min.js +130 -386
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/storybook/helpers.d.ts +2 -6
- package/dist/storybook/helpers.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/chunks/auth-ClVI18ss.js.map +0 -1
- package/dist/chunks/close-dialog-DfAh83bX.js +0 -14
- package/dist/chunks/close-dialog-DfAh83bX.js.map +0 -1
- package/dist/chunks/combobox-DrT0Nb-A.js.map +0 -1
- package/dist/chunks/components-PQfnwrHI.js +0 -107
- package/dist/chunks/components-PQfnwrHI.js.map +0 -1
- package/dist/chunks/context-B_xwK-Y_.js +0 -22
- package/dist/chunks/context-B_xwK-Y_.js.map +0 -1
- package/dist/chunks/decorators-BqWyWiL9.js +0 -50
- package/dist/chunks/decorators-BqWyWiL9.js.map +0 -1
- package/dist/chunks/dialog-kyHgc-uy.js.map +0 -1
- package/dist/chunks/dialogs-root-dPGfuzSZ.js.map +0 -1
- package/dist/chunks/input-BjCX2bFe.js.map +0 -1
- package/dist/chunks/photo-capture-DzK6wZF4.js +0 -624
- package/dist/chunks/photo-capture-DzK6wZF4.js.map +0 -1
- package/dist/chunks/select-OM-SgY4K.js.map +0 -1
- package/dist/v2/components/media/photoCapture/PhotoCapture.cjs.js +0 -281
- package/dist/v2/components/media/photoCapture/PhotoCapture.cjs.js.map +0 -1
- package/dist/v2/components/media/photoCapture/PhotoCapture.d.ts +0 -200
- package/dist/v2/components/media/photoCapture/PhotoCapture.d.ts.map +0 -1
- package/dist/v2/components/media/photoCapture/PhotoCapture.esm.js +0 -623
- package/dist/v2/components/media/photoCapture/PhotoCapture.esm.js.map +0 -1
- package/dist/v2/components/media/photoCapture/PhotoCapture.test.d.ts +0 -1
- package/dist/v2/components/media/photoCapture/PhotoCapture.test.d.ts.map +0 -1
- package/dist/v2/components/media/photoCapture/index.cjs.js +0 -2
- package/dist/v2/components/media/photoCapture/index.cjs.js.map +0 -1
- package/dist/v2/components/media/photoCapture/index.d.ts +0 -3
- package/dist/v2/components/media/photoCapture/index.d.ts.map +0 -1
- package/dist/v2/components/media/photoCapture/index.esm.js +0 -8
- package/dist/v2/components/media/photoCapture/index.esm.js.map +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import "./chunk.7MPIABXH-
|
|
4
|
-
import {
|
|
5
|
-
import { t as l } from "./query-BYu9q8lA.js";
|
|
1
|
+
import { i as e, l as t, r as n, t as r } from "./components-BD458q30.js";
|
|
2
|
+
import { c as i, i as a, n as o, o as s } from "./lit-C4H1jI4q.js";
|
|
3
|
+
import "./chunk.7MPIABXH-DNcYOuE8.js";
|
|
4
|
+
import { t as c } from "./query-BYu9q8lA.js";
|
|
6
5
|
import "./chevron-down-ujxRg3MD.js";
|
|
7
6
|
//#region node_modules/@lit/task/task.js
|
|
8
|
-
var
|
|
7
|
+
var l = Symbol(), u = class {
|
|
9
8
|
get taskComplete() {
|
|
10
9
|
return this.t || (this.i === 1 ? this.t = new Promise(((e, t) => {
|
|
11
10
|
this.o = e, this.h = t;
|
|
@@ -17,7 +16,7 @@ var u = Symbol(), d = class {
|
|
|
17
16
|
task: t,
|
|
18
17
|
args: n
|
|
19
18
|
};
|
|
20
|
-
this.v = r.task, this.j = r.args, this.m = r.argsEqual ??
|
|
19
|
+
this.v = r.task, this.j = r.args, this.m = r.argsEqual ?? d, this.k = r.onComplete, this.A = r.onError, this.autoRun = r.autoRun ?? !0, "initialValue" in r && (this.u = r.initialValue, this.i = 2, this.O = this.T?.());
|
|
21
20
|
}
|
|
22
21
|
hostUpdate() {
|
|
23
22
|
!0 === this.autoRun && this.S();
|
|
@@ -47,7 +46,7 @@ var u = Symbol(), d = class {
|
|
|
47
46
|
i = !0, n = e;
|
|
48
47
|
}
|
|
49
48
|
if (this.p === r) {
|
|
50
|
-
if (t ===
|
|
49
|
+
if (t === l) this.i = 0;
|
|
51
50
|
else {
|
|
52
51
|
if (!1 === i) {
|
|
53
52
|
try {
|
|
@@ -86,10 +85,10 @@ var u = Symbol(), d = class {
|
|
|
86
85
|
default: throw Error("Unexpected status: " + this.i);
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
|
-
},
|
|
88
|
+
}, d = (e, t) => e === t || e.length === t.length && e.every(((e, n) => !s(e, t[n])));
|
|
90
89
|
//#endregion
|
|
91
90
|
//#region src/lib/timing.ts
|
|
92
|
-
function
|
|
91
|
+
function f(e, t) {
|
|
93
92
|
let n = null, r = (...i) => {
|
|
94
93
|
r.cancel(), n = setTimeout(() => t(...i), e);
|
|
95
94
|
};
|
|
@@ -99,40 +98,40 @@ function p(e, t) {
|
|
|
99
98
|
}
|
|
100
99
|
//#endregion
|
|
101
100
|
//#region ~icons/svg-spinners/3-dots-fade
|
|
102
|
-
var
|
|
101
|
+
var p = class extends HTMLElement {
|
|
103
102
|
constructor() {
|
|
104
103
|
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><circle cx=\"4\" cy=\"12\" r=\"3\" fill=\"currentColor\"><animate id=\"SVG7x14Dcom\" fill=\"freeze\" attributeName=\"opacity\" begin=\"0;SVGqSjG0dUp.end-0.25s\" dur=\"0.75s\" values=\"1;.2\"/></circle><circle cx=\"12\" cy=\"12\" r=\"3\" fill=\"currentColor\" opacity=\".4\"><animate fill=\"freeze\" attributeName=\"opacity\" begin=\"SVG7x14Dcom.begin+0.15s\" dur=\"0.75s\" values=\"1;.2\"/></circle><circle cx=\"20\" cy=\"12\" r=\"3\" fill=\"currentColor\" opacity=\".3\"><animate id=\"SVGqSjG0dUp\" fill=\"freeze\" attributeName=\"opacity\" begin=\"SVG7x14Dcom.begin+0.3s\" dur=\"0.75s\" values=\"1;.2\"/></circle></svg>";
|
|
105
104
|
}
|
|
106
105
|
};
|
|
107
|
-
customElements.get("icon-svg-spinners-3-dots-fade") || customElements.define("icon-svg-spinners-3-dots-fade",
|
|
106
|
+
customElements.get("icon-svg-spinners-3-dots-fade") || customElements.define("icon-svg-spinners-3-dots-fade", p);
|
|
108
107
|
//#endregion
|
|
109
108
|
//#region src/components/combobox/Combobox.styles.css
|
|
110
|
-
var
|
|
111
|
-
function
|
|
112
|
-
|
|
109
|
+
var m = i`:host{flex-direction:column;align-items:flex-start;gap:5px;display:inline-flex;& label{color:var(--solid-ui-color-gray-600);font-size:var(--solid-ui-font-size-sm);font-weight:400}& wa-popup{width:100%;display:block}& wa-popup::part(popup){border:1px solid var(--solid-ui-color-gray-100);background:#fff;border-radius:5px;padding:4px;overflow:hidden;box-shadow:0 4px 16px #00000059}& .input-wrapper{width:100%;position:relative;& input{border:1px solid var(--solid-ui-color-gray-400);border-radius:5px;width:100%;padding:10px 40px 10px 10px}& icon-lucide-chevron-down{color:var(--solid-ui-color-gray-500);width:var(--solid-ui-font-size-lg);height:var(--solid-ui-font-size-lg);pointer-events:none;position:absolute;top:50%;right:15px;transform:translateY(-50%)}}& .listbox{max-height:inherit;flex-direction:column;gap:2px;display:flex;overflow:auto;& [role=option],& .non-selectable-option{color:var(--solid-ui-color-gray-700);border-radius:5px;padding:12px 8px}& [role=option]{cursor:pointer;&:hover,&[data-active]{background:var(--solid-ui-color-primary-hover)}&[aria-selected=true]{background:var(--solid-ui-color-primary-selected)}}& .non-selectable-option{justify-content:center;align-items:center;display:flex;& icon-svg-spinners-3-dots-fade{width:2rem}& .message--error{color:var(--solid-ui-color-error)}}}}`, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, M, oe, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, se, ce, le;
|
|
110
|
+
function J(e, t, n) {
|
|
111
|
+
ue(e, t), t.set(e, n);
|
|
113
112
|
}
|
|
114
|
-
function
|
|
113
|
+
function ue(e, t) {
|
|
115
114
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
116
115
|
}
|
|
117
|
-
function
|
|
118
|
-
return e.set(
|
|
116
|
+
function Y(e, t, n) {
|
|
117
|
+
return e.set(de(e, t), n), n;
|
|
119
118
|
}
|
|
120
|
-
function
|
|
121
|
-
return e.get(
|
|
119
|
+
function X(e, t) {
|
|
120
|
+
return e.get(de(e, t));
|
|
122
121
|
}
|
|
123
|
-
function
|
|
122
|
+
function de(e, t, n) {
|
|
124
123
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
125
124
|
throw TypeError("Private element is not present on this object");
|
|
126
125
|
}
|
|
127
|
-
function
|
|
128
|
-
return (t =
|
|
126
|
+
function Z(e, t, n) {
|
|
127
|
+
return (t = pe(t)) in e ? Object.defineProperty(e, t, {
|
|
129
128
|
value: n,
|
|
130
129
|
enumerable: !0,
|
|
131
130
|
configurable: !0,
|
|
132
131
|
writable: !0
|
|
133
132
|
}) : e[t] = n, e;
|
|
134
133
|
}
|
|
135
|
-
function
|
|
134
|
+
function fe(e, t, n, r, i, a) {
|
|
136
135
|
function o(e, t, n) {
|
|
137
136
|
return function(r, i) {
|
|
138
137
|
return n && n(r), e[t].call(r, i);
|
|
@@ -155,13 +154,13 @@ function ke(e, t, n, r, i, a) {
|
|
|
155
154
|
n || Array.isArray(_) || (_ = [_]);
|
|
156
155
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
157
156
|
d ? (f || p ? b = {
|
|
158
|
-
get:
|
|
157
|
+
get: he(function() {
|
|
159
158
|
return v(this);
|
|
160
159
|
}, r, "get"),
|
|
161
160
|
set: function(e) {
|
|
162
161
|
t[4](this, e);
|
|
163
162
|
}
|
|
164
|
-
} : b[S] = v, f ||
|
|
163
|
+
} : b[S] = v, f || he(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
165
164
|
}
|
|
166
165
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
167
166
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -221,7 +220,7 @@ function ke(e, t, n, r, i, a) {
|
|
|
221
220
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
222
221
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
223
222
|
var i, a, o = [], c = function(t) {
|
|
224
|
-
return
|
|
223
|
+
return ge(t) === e;
|
|
225
224
|
}, u = /* @__PURE__ */ new Map();
|
|
226
225
|
function d(e) {
|
|
227
226
|
e && o.push(s.bind(null, e));
|
|
@@ -235,7 +234,7 @@ function ke(e, t, n, r, i, a) {
|
|
|
235
234
|
if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
236
235
|
u.set(b, !(m > 2) || m);
|
|
237
236
|
}
|
|
238
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
237
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : pe(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
239
238
|
}
|
|
240
239
|
}
|
|
241
240
|
return d(i), d(a), o;
|
|
@@ -248,11 +247,11 @@ function ke(e, t, n, r, i, a) {
|
|
|
248
247
|
}
|
|
249
248
|
};
|
|
250
249
|
}
|
|
251
|
-
function
|
|
252
|
-
var t =
|
|
250
|
+
function pe(e) {
|
|
251
|
+
var t = me(e, "string");
|
|
253
252
|
return typeof t == "symbol" ? t : t + "";
|
|
254
253
|
}
|
|
255
|
-
function
|
|
254
|
+
function me(e, t) {
|
|
256
255
|
if (typeof e != "object" || !e) return e;
|
|
257
256
|
var n = e[Symbol.toPrimitive];
|
|
258
257
|
if (n !== void 0) {
|
|
@@ -262,7 +261,7 @@ function Ae(e, t) {
|
|
|
262
261
|
}
|
|
263
262
|
return (t === "string" ? String : Number)(e);
|
|
264
263
|
}
|
|
265
|
-
function
|
|
264
|
+
function he(e, t, n) {
|
|
266
265
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
267
266
|
try {
|
|
268
267
|
Object.defineProperty(e, "name", {
|
|
@@ -272,159 +271,114 @@ function je(e, t, n) {
|
|
|
272
271
|
} catch {}
|
|
273
272
|
return e;
|
|
274
273
|
}
|
|
275
|
-
function
|
|
274
|
+
function ge(e) {
|
|
276
275
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
277
276
|
return e;
|
|
278
277
|
}
|
|
279
|
-
function
|
|
278
|
+
function _e(e) {
|
|
280
279
|
return e;
|
|
281
280
|
}
|
|
282
281
|
var Q = class extends Error {};
|
|
283
|
-
function
|
|
282
|
+
function ve(e) {
|
|
284
283
|
return e;
|
|
285
284
|
}
|
|
286
|
-
|
|
285
|
+
j = [t("solid-ui-combobox")];
|
|
287
286
|
var $;
|
|
288
|
-
new (
|
|
289
|
-
type: String,
|
|
290
|
-
reflect: !0
|
|
291
|
-
}), ae = s({
|
|
292
|
-
type: String,
|
|
293
|
-
reflect: !0
|
|
294
|
-
}), se = s(), I = s({
|
|
295
|
-
type: String,
|
|
296
|
-
reflect: !0
|
|
297
|
-
}), R = s({
|
|
298
|
-
type: Boolean,
|
|
299
|
-
reflect: !0
|
|
300
|
-
}), B = s({
|
|
287
|
+
new (ce = (_ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), w = /*#__PURE__*/ new WeakMap(), T = /*#__PURE__*/ new WeakMap(), E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), le = (ee = e({
|
|
301
288
|
type: Boolean,
|
|
302
289
|
reflect: !0,
|
|
303
290
|
attribute: "select-only"
|
|
304
|
-
}),
|
|
291
|
+
}), ne = e({
|
|
305
292
|
type: String,
|
|
306
293
|
attribute: "async-options-url"
|
|
307
|
-
}),
|
|
294
|
+
}), ie = e({
|
|
308
295
|
type: String,
|
|
309
296
|
attribute: "async-options-results-field"
|
|
310
|
-
}),
|
|
297
|
+
}), M = e({
|
|
311
298
|
type: String,
|
|
312
299
|
attribute: "async-options-label-field"
|
|
313
|
-
}),
|
|
300
|
+
}), N = e({
|
|
314
301
|
type: String,
|
|
315
302
|
attribute: "async-options-value-field"
|
|
316
|
-
}),
|
|
317
|
-
get [
|
|
318
|
-
return
|
|
319
|
-
}
|
|
320
|
-
set label(e) {
|
|
321
|
-
J(v, this, e);
|
|
322
|
-
}
|
|
323
|
-
get name() {
|
|
324
|
-
return Y(y, this);
|
|
325
|
-
}
|
|
326
|
-
set name(e) {
|
|
327
|
-
J(y, this, e);
|
|
328
|
-
}
|
|
329
|
-
get value() {
|
|
330
|
-
return Y(b, this);
|
|
331
|
-
}
|
|
332
|
-
set value(e) {
|
|
333
|
-
J(b, this, e);
|
|
334
|
-
}
|
|
335
|
-
get placeholder() {
|
|
336
|
-
return Y(x, this);
|
|
337
|
-
}
|
|
338
|
-
set placeholder(e) {
|
|
339
|
-
J(x, this, e);
|
|
340
|
-
}
|
|
341
|
-
get required() {
|
|
342
|
-
return Y(S, this);
|
|
343
|
-
}
|
|
344
|
-
set required(e) {
|
|
345
|
-
J(S, this, e);
|
|
346
|
-
}
|
|
347
|
-
get selectOnly() {
|
|
348
|
-
return Y(C, this);
|
|
303
|
+
}), F = e({ type: Function }), L = e({ type: Array }), z = c("input"), V = n(), U = n(), G = n(), q = n(), "selectOnly"), g = class extends r {
|
|
304
|
+
get [le]() {
|
|
305
|
+
return X(_, this);
|
|
349
306
|
}
|
|
350
307
|
set selectOnly(e) {
|
|
351
|
-
|
|
308
|
+
Y(_, this, e);
|
|
352
309
|
}
|
|
353
310
|
get asyncOptionsUrl() {
|
|
354
|
-
return
|
|
311
|
+
return X(v, this);
|
|
355
312
|
}
|
|
356
313
|
set asyncOptionsUrl(e) {
|
|
357
|
-
|
|
314
|
+
Y(v, this, e);
|
|
358
315
|
}
|
|
359
316
|
get asyncOptionsResultsField() {
|
|
360
|
-
return
|
|
317
|
+
return X(y, this);
|
|
361
318
|
}
|
|
362
319
|
set asyncOptionsResultsField(e) {
|
|
363
|
-
|
|
320
|
+
Y(y, this, e);
|
|
364
321
|
}
|
|
365
322
|
get asyncOptionsLabelField() {
|
|
366
|
-
return
|
|
323
|
+
return X(b, this);
|
|
367
324
|
}
|
|
368
325
|
set asyncOptionsLabelField(e) {
|
|
369
|
-
|
|
326
|
+
Y(b, this, e);
|
|
370
327
|
}
|
|
371
328
|
get asyncOptionsValueField() {
|
|
372
|
-
return
|
|
329
|
+
return X(x, this);
|
|
373
330
|
}
|
|
374
331
|
set asyncOptionsValueField(e) {
|
|
375
|
-
|
|
332
|
+
Y(x, this, e);
|
|
376
333
|
}
|
|
377
334
|
get asyncOptionsProvider() {
|
|
378
|
-
return
|
|
335
|
+
return X(S, this);
|
|
379
336
|
}
|
|
380
337
|
set asyncOptionsProvider(e) {
|
|
381
|
-
|
|
338
|
+
Y(S, this, e);
|
|
382
339
|
}
|
|
383
340
|
get optionsFallback() {
|
|
384
|
-
return
|
|
341
|
+
return X(C, this);
|
|
385
342
|
}
|
|
386
343
|
set optionsFallback(e) {
|
|
387
|
-
|
|
344
|
+
Y(C, this, e);
|
|
388
345
|
}
|
|
389
|
-
get
|
|
390
|
-
return
|
|
346
|
+
get controlElement() {
|
|
347
|
+
return X(w, this);
|
|
391
348
|
}
|
|
392
|
-
set
|
|
393
|
-
|
|
349
|
+
set controlElement(e) {
|
|
350
|
+
Y(w, this, e);
|
|
394
351
|
}
|
|
395
352
|
get filter() {
|
|
396
|
-
return
|
|
353
|
+
return X(T, this);
|
|
397
354
|
}
|
|
398
355
|
set filter(e) {
|
|
399
|
-
|
|
356
|
+
Y(T, this, e);
|
|
400
357
|
}
|
|
401
358
|
get displayValue() {
|
|
402
|
-
return
|
|
359
|
+
return X(E, this);
|
|
403
360
|
}
|
|
404
361
|
set displayValue(e) {
|
|
405
|
-
|
|
362
|
+
Y(E, this, e);
|
|
406
363
|
}
|
|
407
364
|
get open() {
|
|
408
|
-
return
|
|
365
|
+
return X(D, this);
|
|
409
366
|
}
|
|
410
367
|
set open(e) {
|
|
411
|
-
|
|
368
|
+
Y(D, this, e);
|
|
412
369
|
}
|
|
413
370
|
get activeIndex() {
|
|
414
|
-
return
|
|
371
|
+
return X(O, this);
|
|
415
372
|
}
|
|
416
373
|
set activeIndex(e) {
|
|
417
|
-
|
|
374
|
+
Y(O, this, e);
|
|
418
375
|
}
|
|
419
376
|
constructor() {
|
|
420
|
-
super(),
|
|
377
|
+
super(), J(this, _, (k(this), te(this, !1))), J(this, v, re(this, "")), J(this, y, ae(this, "")), J(this, b, oe(this, "")), J(this, x, P(this, "")), J(this, S, I(this, null)), J(this, C, R(this, null)), J(this, w, B(this, null)), J(this, T, H(this, "")), J(this, E, W(this, "")), J(this, D, K(this, !1)), J(this, O, se(this, -1)), Z(this, "openListenersAttached", !1), Z(this, "updateDebouncedFilter", f(300, (e) => this.filter = e)), Z(this, "asyncOptionsTask", void 0), Z(this, "_selectedOption", void 0), Z(this, "listboxId", void 0), Z(this, "handleDocumentFocusIn", (e) => {
|
|
421
378
|
e.composedPath().includes(this) || this.hide();
|
|
422
|
-
}),
|
|
379
|
+
}), Z(this, "handleDocumentMouseDown", (e) => {
|
|
423
380
|
e.composedPath().includes(this) || this.hide();
|
|
424
|
-
}), this.
|
|
425
|
-
getControlElement: () => this.inputElement,
|
|
426
|
-
getInternals: () => this.getInternals()
|
|
427
|
-
})), this.listboxId = `listbox-${this.controlTrait.controlId}`;
|
|
381
|
+
}), this.listboxId = `listbox-${this.controlTrait.controlId}`;
|
|
428
382
|
}
|
|
429
383
|
get selectedOption() {
|
|
430
384
|
return this._selectedOption;
|
|
@@ -440,7 +394,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
440
394
|
}
|
|
441
395
|
render() {
|
|
442
396
|
let e = this.getFilteredOptions(), t = (this.open && this.activeIndex >= 0 ? e[this.activeIndex] : void 0) === void 0 ? void 0 : this.getOptionId(this.activeIndex), n = this.placeholder || "Combobox";
|
|
443
|
-
return
|
|
397
|
+
return a`
|
|
444
398
|
${this.controlTrait.renderLabel()}
|
|
445
399
|
<wa-popup
|
|
446
400
|
placement="bottom"
|
|
@@ -462,17 +416,17 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
462
416
|
aria-haspopup="listbox"
|
|
463
417
|
aria-expanded=${this.open ? "true" : "false"}
|
|
464
418
|
aria-controls=${this.listboxId}
|
|
465
|
-
aria-activedescendant=${t ??
|
|
466
|
-
aria-labelledby=${this.label ? this.controlTrait.labelId :
|
|
467
|
-
aria-label=${this.label ?
|
|
468
|
-
aria-required=${this.required ? "true" :
|
|
419
|
+
aria-activedescendant=${t ?? o}
|
|
420
|
+
aria-labelledby=${this.label ? this.controlTrait.labelId : o}
|
|
421
|
+
aria-label=${this.label ? o : n}
|
|
422
|
+
aria-required=${this.required ? "true" : o}
|
|
469
423
|
autocomplete="off"
|
|
470
424
|
spellcheck="false"
|
|
471
425
|
?required=${this.required}
|
|
472
426
|
.value=${this.displayValue}
|
|
473
427
|
@keydown=${this.onInputKeyDown}
|
|
474
428
|
@focus=${this.onInputFocus}
|
|
475
|
-
@input=${() => this.selectOnly ? this.updateDisplayValue(this.
|
|
429
|
+
@input=${() => this.selectOnly ? this.updateDisplayValue(this.controlElement?.value ?? "") : this.controlTrait.onInput()}
|
|
476
430
|
/>
|
|
477
431
|
<icon-lucide-chevron-down></icon-lucide-chevron-down>
|
|
478
432
|
</div>
|
|
@@ -481,16 +435,16 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
481
435
|
class="listbox"
|
|
482
436
|
role="listbox"
|
|
483
437
|
aria-orientation="vertical"
|
|
484
|
-
aria-labelledby=${this.label ? this.controlTrait.labelId :
|
|
485
|
-
aria-label=${this.label ?
|
|
438
|
+
aria-labelledby=${this.label ? this.controlTrait.labelId : o}
|
|
439
|
+
aria-label=${this.label ? o : n}
|
|
486
440
|
?hidden=${!this.open}
|
|
487
441
|
@mousedown=${this.onListboxMouseDown}
|
|
488
442
|
>
|
|
489
|
-
${e.map((e, t) => e.selectable === !1 ?
|
|
443
|
+
${e.map((e, t) => e.selectable === !1 ? a`<div class="non-selectable-option">${e.template ?? e.label}</div>` : a`<div
|
|
490
444
|
id=${this.getOptionId(t)}
|
|
491
445
|
role="option"
|
|
492
446
|
aria-selected=${e.value === this.value ? "true" : "false"}
|
|
493
|
-
data-active=${t === this.activeIndex ||
|
|
447
|
+
data-active=${t === this.activeIndex || o}
|
|
494
448
|
@mousemove=${() => this.setActiveIndex(t)}
|
|
495
449
|
>
|
|
496
450
|
${e.template ?? e.label}
|
|
@@ -506,7 +460,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
506
460
|
pending: () => [{
|
|
507
461
|
value: "",
|
|
508
462
|
label: "Loading...",
|
|
509
|
-
template:
|
|
463
|
+
template: a`<icon-svg-spinners-3-dots-fade></icon-svg-spinners-3-dots-fade>`,
|
|
510
464
|
selectable: !1
|
|
511
465
|
}],
|
|
512
466
|
error: (e) => {
|
|
@@ -514,7 +468,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
514
468
|
return [{
|
|
515
469
|
value: "",
|
|
516
470
|
label: n,
|
|
517
|
-
template:
|
|
471
|
+
template: a`<span class="message message--${t ? "error" : "info"}">${n}</span>`,
|
|
518
472
|
selectable: !1
|
|
519
473
|
}];
|
|
520
474
|
}
|
|
@@ -541,7 +495,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
541
495
|
this.activeIndex = e;
|
|
542
496
|
}
|
|
543
497
|
updateDisplayValue(e) {
|
|
544
|
-
if (this.displayValue = String(e), this.open) {
|
|
498
|
+
if (this.displayValue = e ? String(e) : "", this.open) {
|
|
545
499
|
let e = this.displayValue.toLowerCase();
|
|
546
500
|
this.asyncOptionsTask ? this.updateDebouncedFilter(e) : this.filter = e;
|
|
547
501
|
}
|
|
@@ -551,7 +505,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
551
505
|
this.asyncOptionsTask = void 0;
|
|
552
506
|
return;
|
|
553
507
|
}
|
|
554
|
-
this.asyncOptionsTask ??= new
|
|
508
|
+
this.asyncOptionsTask ??= new u(this, async ([e]) => {
|
|
555
509
|
if (this.asyncOptionsProvider) {
|
|
556
510
|
let t = await this.asyncOptionsProvider(e);
|
|
557
511
|
if (t.length === 0) throw new Q("No results found");
|
|
@@ -576,7 +530,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
576
530
|
}
|
|
577
531
|
selectOption(e) {
|
|
578
532
|
let t = this.value;
|
|
579
|
-
this._selectedOption = e, this.hide(), this.controlTrait.setValue(e.value), this.
|
|
533
|
+
this._selectedOption = e, this.hide(), this.controlTrait.setValue(e.value), this.controlElement?.focus({ preventScroll: !0 }), this.dispatchEvent(new CustomEvent("change", {
|
|
580
534
|
bubbles: !0,
|
|
581
535
|
composed: !0,
|
|
582
536
|
detail: { option: e }
|
|
@@ -598,7 +552,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
598
552
|
e !== document && e.removeEventListener("focusin", this.handleDocumentFocusIn), this.openListenersAttached = !1;
|
|
599
553
|
}
|
|
600
554
|
onAnchorMouseDown(e) {
|
|
601
|
-
e.target !== this.
|
|
555
|
+
e.target !== this.controlElement && (e.preventDefault(), this.controlElement?.focus({ preventScroll: !0 }));
|
|
602
556
|
}
|
|
603
557
|
onInputFocus() {
|
|
604
558
|
this.show();
|
|
@@ -619,7 +573,7 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
619
573
|
this.open && this.activeIndex >= 0 && t[this.activeIndex] ? (e.preventDefault(), this.selectOption(t[this.activeIndex])) : this.open || (e.preventDefault(), this.controlTrait.onSubmit());
|
|
620
574
|
break;
|
|
621
575
|
case "Escape":
|
|
622
|
-
this.open && (e.preventDefault(), e.stopPropagation(), this.hide(), this.
|
|
576
|
+
this.open && (e.preventDefault(), e.stopPropagation(), this.hide(), this.controlElement?.focus({ preventScroll: !0 }));
|
|
623
577
|
break;
|
|
624
578
|
case "Tab":
|
|
625
579
|
this.hide();
|
|
@@ -634,101 +588,76 @@ new (Te = (v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b =
|
|
|
634
588
|
let n = t.id, r = Number.parseInt(n.replace(`${this.listboxId}-option-`, ""), 10), i = this.getFilteredOptions()[r];
|
|
635
589
|
i && this.selectOption(i);
|
|
636
590
|
}
|
|
637
|
-
}, {e: [
|
|
638
|
-
[
|
|
639
|
-
re,
|
|
640
|
-
1,
|
|
641
|
-
"label"
|
|
642
|
-
],
|
|
643
|
-
[
|
|
644
|
-
ae,
|
|
645
|
-
1,
|
|
646
|
-
"name"
|
|
647
|
-
],
|
|
648
|
-
[
|
|
649
|
-
se,
|
|
650
|
-
1,
|
|
651
|
-
"value"
|
|
652
|
-
],
|
|
653
|
-
[
|
|
654
|
-
I,
|
|
655
|
-
1,
|
|
656
|
-
"placeholder"
|
|
657
|
-
],
|
|
658
|
-
[
|
|
659
|
-
R,
|
|
660
|
-
1,
|
|
661
|
-
"required"
|
|
662
|
-
],
|
|
591
|
+
}, {e: [te, re, ae, oe, P, I, R, B, H, W, K, se, k], c: [$, A]} = fe(g, [
|
|
663
592
|
[
|
|
664
|
-
|
|
593
|
+
ee,
|
|
665
594
|
1,
|
|
666
595
|
"selectOnly"
|
|
667
596
|
],
|
|
668
597
|
[
|
|
669
|
-
|
|
598
|
+
ne,
|
|
670
599
|
1,
|
|
671
600
|
"asyncOptionsUrl"
|
|
672
601
|
],
|
|
673
602
|
[
|
|
674
|
-
|
|
603
|
+
ie,
|
|
675
604
|
1,
|
|
676
605
|
"asyncOptionsResultsField"
|
|
677
606
|
],
|
|
678
607
|
[
|
|
679
|
-
|
|
608
|
+
M,
|
|
680
609
|
1,
|
|
681
610
|
"asyncOptionsLabelField"
|
|
682
611
|
],
|
|
683
612
|
[
|
|
684
|
-
|
|
613
|
+
N,
|
|
685
614
|
1,
|
|
686
615
|
"asyncOptionsValueField"
|
|
687
616
|
],
|
|
688
617
|
[
|
|
689
|
-
|
|
618
|
+
F,
|
|
690
619
|
1,
|
|
691
620
|
"asyncOptionsProvider"
|
|
692
621
|
],
|
|
693
622
|
[
|
|
694
|
-
|
|
623
|
+
L,
|
|
695
624
|
1,
|
|
696
625
|
"optionsFallback"
|
|
697
626
|
],
|
|
698
627
|
[
|
|
699
|
-
|
|
628
|
+
z,
|
|
700
629
|
1,
|
|
701
|
-
"
|
|
630
|
+
"controlElement"
|
|
702
631
|
],
|
|
703
632
|
[
|
|
704
|
-
|
|
633
|
+
V,
|
|
705
634
|
1,
|
|
706
635
|
"filter"
|
|
707
636
|
],
|
|
708
637
|
[
|
|
709
|
-
|
|
638
|
+
U,
|
|
710
639
|
1,
|
|
711
640
|
"displayValue"
|
|
712
641
|
],
|
|
713
642
|
[
|
|
714
|
-
|
|
643
|
+
G,
|
|
715
644
|
1,
|
|
716
645
|
"open"
|
|
717
646
|
],
|
|
718
647
|
[
|
|
719
|
-
|
|
648
|
+
q,
|
|
720
649
|
1,
|
|
721
650
|
"activeIndex"
|
|
722
651
|
]
|
|
723
|
-
],
|
|
652
|
+
], j, 0, void 0, r), g), h = class extends _e {
|
|
724
653
|
constructor() {
|
|
725
|
-
super($),
|
|
654
|
+
super($), Z(this, "styles", m), A();
|
|
726
655
|
}
|
|
727
|
-
},
|
|
656
|
+
}, Z(h, ce, void 0), h)();
|
|
728
657
|
//#endregion
|
|
729
658
|
//#region src/components/combobox/index.ts
|
|
730
|
-
var
|
|
659
|
+
var ye = $;
|
|
731
660
|
//#endregion
|
|
732
|
-
export { $ as n,
|
|
661
|
+
export { $ as n, ve as r, ye as t };
|
|
733
662
|
|
|
734
|
-
//# sourceMappingURL=combobox-
|
|
663
|
+
//# sourceMappingURL=combobox-B5j4LoHY.js.map
|