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
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import { c as e, i as t, n, o as r, s as i, t as a } from "./lit-C4H1jI4q.js";
|
|
2
|
+
//#region node_modules/@lit/context/lib/context-request-event.js
|
|
3
|
+
var o = class extends Event {
|
|
4
|
+
constructor(e, t, n, r) {
|
|
5
|
+
super("context-request", {
|
|
6
|
+
bubbles: !0,
|
|
7
|
+
composed: !0
|
|
8
|
+
}), this.context = e, this.contextTarget = t, this.callback = n, this.subscribe = r ?? !1;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region node_modules/@lit/context/lib/create-context.js
|
|
13
|
+
function s(e) {
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region node_modules/@lit/context/lib/controllers/context-consumer.js
|
|
18
|
+
var c = class {
|
|
19
|
+
constructor(e, t, n, r) {
|
|
20
|
+
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (e, t) => {
|
|
21
|
+
this.unsubscribe && (this.unsubscribe !== t && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = e, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(e, t)), this.unsubscribe = t;
|
|
22
|
+
}, this.host = e, t.context !== void 0) {
|
|
23
|
+
let e = t;
|
|
24
|
+
this.context = e.context, this.callback = e.callback, this.subscribe = e.subscribe ?? !1;
|
|
25
|
+
} else this.context = t, this.callback = n, this.subscribe = r ?? !1;
|
|
26
|
+
this.host.addController(this);
|
|
27
|
+
}
|
|
28
|
+
hostConnected() {
|
|
29
|
+
this.dispatchRequest();
|
|
30
|
+
}
|
|
31
|
+
hostDisconnected() {
|
|
32
|
+
this.unsubscribe &&= (this.unsubscribe(), void 0);
|
|
33
|
+
}
|
|
34
|
+
dispatchRequest() {
|
|
35
|
+
this.host.dispatchEvent(new o(this.context, this.host, this.t, this.subscribe));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region node_modules/@lit/context/lib/decorators/consume.js
|
|
40
|
+
function l({ context: e, subscribe: t }) {
|
|
41
|
+
return (n, r) => {
|
|
42
|
+
typeof r == "object" ? r.addInitializer((function() {
|
|
43
|
+
new c(this, {
|
|
44
|
+
context: e,
|
|
45
|
+
callback: (e) => {
|
|
46
|
+
n.set.call(this, e);
|
|
47
|
+
},
|
|
48
|
+
subscribe: t
|
|
49
|
+
});
|
|
50
|
+
})) : n.constructor.addInitializer(((n) => {
|
|
51
|
+
new c(n, {
|
|
52
|
+
context: e,
|
|
53
|
+
callback: (e) => {
|
|
54
|
+
n[r] = e;
|
|
55
|
+
},
|
|
56
|
+
subscribe: t
|
|
57
|
+
});
|
|
58
|
+
}));
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/lib/components/ids.ts
|
|
63
|
+
function u() {
|
|
64
|
+
return Math.random().toString(36).substring(2, 15);
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/lib/dialogs/context.ts
|
|
68
|
+
var d = { id: `noop-${u()}` }, f = s(Symbol("dialog"));
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/lib/components/decorators.ts
|
|
71
|
+
function p(e, t) {
|
|
72
|
+
customElements.get(e) || customElements.define(e, t);
|
|
73
|
+
}
|
|
74
|
+
function m(e) {
|
|
75
|
+
return (t, n) => {
|
|
76
|
+
if (n) {
|
|
77
|
+
n.addInitializer(() => p(e, t));
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
p(e, t);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/lib/dialogs/events/close-dialog.ts
|
|
85
|
+
var h = "solid-ui:close-dialog", g = class e extends Event {
|
|
86
|
+
static eventName = h;
|
|
87
|
+
constructor(t, n) {
|
|
88
|
+
super(e.eventName, {
|
|
89
|
+
bubbles: !0,
|
|
90
|
+
composed: !0
|
|
91
|
+
}), this.id = t, this.data = n;
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/lib/components/traits/DialogTrait.ts
|
|
96
|
+
function _(e, t, n) {
|
|
97
|
+
return (t = v(t)) in e ? Object.defineProperty(e, t, {
|
|
98
|
+
value: n,
|
|
99
|
+
enumerable: !0,
|
|
100
|
+
configurable: !0,
|
|
101
|
+
writable: !0
|
|
102
|
+
}) : e[t] = n, e;
|
|
103
|
+
}
|
|
104
|
+
function v(e) {
|
|
105
|
+
var t = y(e, "string");
|
|
106
|
+
return typeof t == "symbol" ? t : t + "";
|
|
107
|
+
}
|
|
108
|
+
function y(e, t) {
|
|
109
|
+
if (typeof e != "object" || !e) return e;
|
|
110
|
+
var n = e[Symbol.toPrimitive];
|
|
111
|
+
if (n !== void 0) {
|
|
112
|
+
var r = n.call(e, t || "default");
|
|
113
|
+
if (typeof r != "object") return r;
|
|
114
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
115
|
+
}
|
|
116
|
+
return (t === "string" ? String : Number)(e);
|
|
117
|
+
}
|
|
118
|
+
var b = class {
|
|
119
|
+
constructor(e, t) {
|
|
120
|
+
_(this, "target", void 0), _(this, "config", void 0), this.target = e, this.config = t;
|
|
121
|
+
}
|
|
122
|
+
close(e) {
|
|
123
|
+
window.dispatchEvent(new g(this.config.getContext().id, e));
|
|
124
|
+
}
|
|
125
|
+
}, x = e`/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid}::file-selector-button{box-sizing:border-box;border:0 solid}a,abbr,address,area,article,aside,audio,b,base,bdi,bdo,blockquote,body,br,button,canvas,caption,cite,code,col,colgroup,data,datalist,dd,del,details,dfn,dialog,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,img,input,ins,kbd,label,legend,li,link,main,map,mark,menu,meta,meter,nav,noscript,object,ol,optgroup,option,output,p,picture,pre,progress,q,rp,rt,ruby,s,samp,script,search,section,select,slot,small,source,span,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,u,ul,var,video,wbr,:after,:before,::backdrop{margin:0;padding:0}::file-selector-button{margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/lib/components/web-component/WebComponent.ts
|
|
128
|
+
function S(e, t, n) {
|
|
129
|
+
return (t = C(t)) in e ? Object.defineProperty(e, t, {
|
|
130
|
+
value: n,
|
|
131
|
+
enumerable: !0,
|
|
132
|
+
configurable: !0,
|
|
133
|
+
writable: !0
|
|
134
|
+
}) : e[t] = n, e;
|
|
135
|
+
}
|
|
136
|
+
function C(e) {
|
|
137
|
+
var t = w(e, "string");
|
|
138
|
+
return typeof t == "symbol" ? t : t + "";
|
|
139
|
+
}
|
|
140
|
+
function w(e, t) {
|
|
141
|
+
if (typeof e != "object" || !e) return e;
|
|
142
|
+
var n = e[Symbol.toPrimitive];
|
|
143
|
+
if (n !== void 0) {
|
|
144
|
+
var r = n.call(e, t || "default");
|
|
145
|
+
if (typeof r != "object") return r;
|
|
146
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
147
|
+
}
|
|
148
|
+
return (t === "string" ? String : Number)(e);
|
|
149
|
+
}
|
|
150
|
+
var T = Symbol("WebComponentMetadata"), E = class extends a {
|
|
151
|
+
constructor(...e) {
|
|
152
|
+
super(...e), S(this, T, void 0), S(this, "internals", void 0), S(this, "globalListeners", []), S(this, "traits", []);
|
|
153
|
+
}
|
|
154
|
+
static finalizeStyles(e) {
|
|
155
|
+
return [x, ...super.finalizeStyles(e)];
|
|
156
|
+
}
|
|
157
|
+
disconnectedCallback() {
|
|
158
|
+
super.disconnectedCallback();
|
|
159
|
+
for (let [e, t] of this.globalListeners) window.removeEventListener(e, t);
|
|
160
|
+
this.globalListeners = [];
|
|
161
|
+
}
|
|
162
|
+
addTrait(e) {
|
|
163
|
+
return this.traits.push(e), e;
|
|
164
|
+
}
|
|
165
|
+
firstUpdated() {
|
|
166
|
+
this.forwardMethodCall("firstUpdated");
|
|
167
|
+
}
|
|
168
|
+
updated(e) {
|
|
169
|
+
this.forwardMethodCall("updated", e);
|
|
170
|
+
}
|
|
171
|
+
formResetCallback() {
|
|
172
|
+
this.forwardMethodCall("formResetCallback");
|
|
173
|
+
}
|
|
174
|
+
willUpdate(e) {
|
|
175
|
+
super.willUpdate(e);
|
|
176
|
+
let t = this.static().states;
|
|
177
|
+
if (t) for (let [e, n] of Object.entries(t)) this.toggleAttribute(`data-state-${e}`, !!n(this));
|
|
178
|
+
}
|
|
179
|
+
addGlobalEventListener(e, t) {
|
|
180
|
+
this.globalListeners.push([e, t]), window.addEventListener(e, t);
|
|
181
|
+
}
|
|
182
|
+
render() {
|
|
183
|
+
return t`<slot></slot>`;
|
|
184
|
+
}
|
|
185
|
+
getInternals() {
|
|
186
|
+
return this.internals ??= this.attachInternals(), this.internals;
|
|
187
|
+
}
|
|
188
|
+
static() {
|
|
189
|
+
return this.constructor;
|
|
190
|
+
}
|
|
191
|
+
forwardMethodCall(e, ...t) {
|
|
192
|
+
for (let n of this.traits) n[e]?.(...t);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
S(E, "states", void 0);
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/lib/components/dialog-component/DialogComponent.ts
|
|
198
|
+
var D, O, k, A, j;
|
|
199
|
+
function ee(e, t, n) {
|
|
200
|
+
te(e, t), t.set(e, n);
|
|
201
|
+
}
|
|
202
|
+
function te(e, t) {
|
|
203
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
204
|
+
}
|
|
205
|
+
function ne(e, t, n) {
|
|
206
|
+
return (t = se(t)) in e ? Object.defineProperty(e, t, {
|
|
207
|
+
value: n,
|
|
208
|
+
enumerable: !0,
|
|
209
|
+
configurable: !0,
|
|
210
|
+
writable: !0
|
|
211
|
+
}) : e[t] = n, e;
|
|
212
|
+
}
|
|
213
|
+
function re(e, t, n) {
|
|
214
|
+
return e.set(ae(e, t), n), n;
|
|
215
|
+
}
|
|
216
|
+
function ie(e, t) {
|
|
217
|
+
return e.get(ae(e, t));
|
|
218
|
+
}
|
|
219
|
+
function ae(e, t, n) {
|
|
220
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
221
|
+
throw TypeError("Private element is not present on this object");
|
|
222
|
+
}
|
|
223
|
+
function oe(e, t, n, r, i, a) {
|
|
224
|
+
function o(e, t, n) {
|
|
225
|
+
return function(r, i) {
|
|
226
|
+
return n && n(r), e[t].call(r, i);
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
function s(e, t) {
|
|
230
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
231
|
+
return t;
|
|
232
|
+
}
|
|
233
|
+
function c(e, t, n, r) {
|
|
234
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
235
|
+
return e;
|
|
236
|
+
}
|
|
237
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
238
|
+
function h(e) {
|
|
239
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
240
|
+
}
|
|
241
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
242
|
+
if (!y) {
|
|
243
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
244
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
245
|
+
d ? (f || p ? b = {
|
|
246
|
+
get: le(function() {
|
|
247
|
+
return v(this);
|
|
248
|
+
}, r, "get"),
|
|
249
|
+
set: function(e) {
|
|
250
|
+
t[4](this, e);
|
|
251
|
+
}
|
|
252
|
+
} : b[S] = v, f || le(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
253
|
+
}
|
|
254
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
255
|
+
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
256
|
+
kind: [
|
|
257
|
+
"field",
|
|
258
|
+
"accessor",
|
|
259
|
+
"method",
|
|
260
|
+
"getter",
|
|
261
|
+
"setter",
|
|
262
|
+
"class"
|
|
263
|
+
][i],
|
|
264
|
+
name: r,
|
|
265
|
+
metadata: a,
|
|
266
|
+
addInitializer: function(e, t) {
|
|
267
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
268
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
269
|
+
}.bind(null, D)
|
|
270
|
+
};
|
|
271
|
+
try {
|
|
272
|
+
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
273
|
+
else {
|
|
274
|
+
var k, A;
|
|
275
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
276
|
+
return h(e), b.value;
|
|
277
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
278
|
+
return e[r];
|
|
279
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
280
|
+
e[r] = t;
|
|
281
|
+
}));
|
|
282
|
+
var j = O.access = { has: d ? m.bind() : function(e) {
|
|
283
|
+
return r in e;
|
|
284
|
+
} };
|
|
285
|
+
if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
|
|
286
|
+
get: b.get,
|
|
287
|
+
set: b.set
|
|
288
|
+
} : b[S], O), p) {
|
|
289
|
+
if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
|
|
290
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
291
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
292
|
+
}
|
|
293
|
+
} finally {
|
|
294
|
+
D.v = !0;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
return (f || p) && l.push(function(e, t) {
|
|
298
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
299
|
+
return t;
|
|
300
|
+
}), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
|
|
301
|
+
}
|
|
302
|
+
function u(e, t) {
|
|
303
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
304
|
+
configurable: !0,
|
|
305
|
+
enumerable: !0,
|
|
306
|
+
value: t
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
310
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
311
|
+
var i, a, o = [], c = function(t) {
|
|
312
|
+
return ue(t) === e;
|
|
313
|
+
}, u = /* @__PURE__ */ new Map();
|
|
314
|
+
function d(e) {
|
|
315
|
+
e && o.push(s.bind(null, e));
|
|
316
|
+
}
|
|
317
|
+
for (var f = 0; f < t.length; f++) {
|
|
318
|
+
var p = t[f];
|
|
319
|
+
if (Array.isArray(p)) {
|
|
320
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
321
|
+
if (!y && !g) {
|
|
322
|
+
var x = u.get(b);
|
|
323
|
+
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);
|
|
324
|
+
u.set(b, !(m > 2) || m);
|
|
325
|
+
}
|
|
326
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : se(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return d(i), d(a), o;
|
|
330
|
+
}(e, t, i, f);
|
|
331
|
+
return n.length || u(e, f), {
|
|
332
|
+
e: p,
|
|
333
|
+
get c() {
|
|
334
|
+
var t = [];
|
|
335
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
function se(e) {
|
|
340
|
+
var t = ce(e, "string");
|
|
341
|
+
return typeof t == "symbol" ? t : t + "";
|
|
342
|
+
}
|
|
343
|
+
function ce(e, t) {
|
|
344
|
+
if (typeof e != "object" || !e) return e;
|
|
345
|
+
var n = e[Symbol.toPrimitive];
|
|
346
|
+
if (n !== void 0) {
|
|
347
|
+
var r = n.call(e, t || "default");
|
|
348
|
+
if (typeof r != "object") return r;
|
|
349
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
350
|
+
}
|
|
351
|
+
return (t === "string" ? String : Number)(e);
|
|
352
|
+
}
|
|
353
|
+
function le(e, t, n) {
|
|
354
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
355
|
+
try {
|
|
356
|
+
Object.defineProperty(e, "name", {
|
|
357
|
+
configurable: !0,
|
|
358
|
+
value: n ? n + " " + t : t
|
|
359
|
+
});
|
|
360
|
+
} catch {}
|
|
361
|
+
return e;
|
|
362
|
+
}
|
|
363
|
+
function ue(e) {
|
|
364
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
365
|
+
return e;
|
|
366
|
+
}
|
|
367
|
+
var M = /*#__PURE__*/ new WeakMap();
|
|
368
|
+
j = (k = l({
|
|
369
|
+
context: f,
|
|
370
|
+
subscribe: !0
|
|
371
|
+
}), "dialogTrait");
|
|
372
|
+
var N = class extends E {
|
|
373
|
+
get context() {
|
|
374
|
+
return ie(M, this);
|
|
375
|
+
}
|
|
376
|
+
set context(e) {
|
|
377
|
+
re(M, this, e);
|
|
378
|
+
}
|
|
379
|
+
constructor() {
|
|
380
|
+
super(), ne(this, j, void O(this)), ee(this, M, A(this, d)), this.dialogTrait = this.addTrait(new b(this, { getContext: () => this.context }));
|
|
381
|
+
}
|
|
382
|
+
close(e) {
|
|
383
|
+
this.dialogTrait.close(e);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
D = N, [A, O] = oe(D, [[
|
|
387
|
+
k,
|
|
388
|
+
1,
|
|
389
|
+
"context"
|
|
390
|
+
]], [], 0, void 0, E).e;
|
|
391
|
+
//#endregion
|
|
392
|
+
//#region node_modules/@lit/reactive-element/decorators/property.js
|
|
393
|
+
var de = {
|
|
394
|
+
attribute: !0,
|
|
395
|
+
type: String,
|
|
396
|
+
converter: i,
|
|
397
|
+
reflect: !1,
|
|
398
|
+
hasChanged: r
|
|
399
|
+
}, fe = (e = de, t, n) => {
|
|
400
|
+
let { kind: r, metadata: i } = n, a = globalThis.litPropertyMetadata.get(i);
|
|
401
|
+
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), a.set(n.name, e), r === "accessor") {
|
|
402
|
+
let { name: r } = n;
|
|
403
|
+
return {
|
|
404
|
+
set(n) {
|
|
405
|
+
let i = t.get.call(this);
|
|
406
|
+
t.set.call(this, n), this.requestUpdate(r, i, e, !0, n);
|
|
407
|
+
},
|
|
408
|
+
init(t) {
|
|
409
|
+
return t !== void 0 && this.C(r, void 0, e, t), t;
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
if (r === "setter") {
|
|
414
|
+
let { name: r } = n;
|
|
415
|
+
return function(n) {
|
|
416
|
+
let i = this[r];
|
|
417
|
+
t.call(this, n), this.requestUpdate(r, i, e, !0, n);
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
throw Error("Unsupported decorator location: " + r);
|
|
421
|
+
};
|
|
422
|
+
function P(e) {
|
|
423
|
+
return (t, n) => typeof n == "object" ? fe(e, t, n) : ((e, t, n) => {
|
|
424
|
+
let r = t.hasOwnProperty(n);
|
|
425
|
+
return t.constructor.createProperty(n, e), r ? Object.getOwnPropertyDescriptor(t, n) : void 0;
|
|
426
|
+
})(e, t, n);
|
|
427
|
+
}
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region node_modules/@lit/reactive-element/decorators/state.js
|
|
430
|
+
function pe(e) {
|
|
431
|
+
return P({
|
|
432
|
+
...e,
|
|
433
|
+
state: !0,
|
|
434
|
+
attribute: !1
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region src/lib/components/traits/FormControlTrait.ts
|
|
439
|
+
function F(e, t, n) {
|
|
440
|
+
return (t = me(t)) in e ? Object.defineProperty(e, t, {
|
|
441
|
+
value: n,
|
|
442
|
+
enumerable: !0,
|
|
443
|
+
configurable: !0,
|
|
444
|
+
writable: !0
|
|
445
|
+
}) : e[t] = n, e;
|
|
446
|
+
}
|
|
447
|
+
function me(e) {
|
|
448
|
+
var t = he(e, "string");
|
|
449
|
+
return typeof t == "symbol" ? t : t + "";
|
|
450
|
+
}
|
|
451
|
+
function he(e, t) {
|
|
452
|
+
if (typeof e != "object" || !e) return e;
|
|
453
|
+
var n = e[Symbol.toPrimitive];
|
|
454
|
+
if (n !== void 0) {
|
|
455
|
+
var r = n.call(e, t || "default");
|
|
456
|
+
if (typeof r != "object") return r;
|
|
457
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
458
|
+
}
|
|
459
|
+
return (t === "string" ? String : Number)(e);
|
|
460
|
+
}
|
|
461
|
+
var I = class {
|
|
462
|
+
constructor(e, t) {
|
|
463
|
+
F(this, "controlId", void 0), F(this, "labelId", void 0), F(this, "target", void 0), F(this, "config", void 0), this.config = t, this.controlId = `control-${u()}`, this.labelId = `label-${this.controlId}`, this.target = e;
|
|
464
|
+
}
|
|
465
|
+
firstUpdated() {
|
|
466
|
+
this.config.getInternals().setFormValue(this.target.value ?? ""), this.updateValidity();
|
|
467
|
+
}
|
|
468
|
+
updated(e) {
|
|
469
|
+
(e.has("value") || e.has("required")) && this.updateValidity();
|
|
470
|
+
}
|
|
471
|
+
formResetCallback() {
|
|
472
|
+
this.target.value = "", this.config.getInternals().setFormValue(""), this.updateValidity();
|
|
473
|
+
}
|
|
474
|
+
renderLabel() {
|
|
475
|
+
return this.target.label ? t`<label id="${this.labelId}" for="${this.controlId}">${this.target.label}</label>` : n;
|
|
476
|
+
}
|
|
477
|
+
onInput() {
|
|
478
|
+
this.setValue(this.config.getControlElement()?.value ?? null);
|
|
479
|
+
}
|
|
480
|
+
onSubmit() {
|
|
481
|
+
this.config.getInternals().form?.requestSubmit();
|
|
482
|
+
}
|
|
483
|
+
setValue(e) {
|
|
484
|
+
this.target.value = e, this.config.getInternals().setFormValue(this.target.value ?? ""), this.target.dispatchEvent(new InputEvent("input", {
|
|
485
|
+
bubbles: !0,
|
|
486
|
+
composed: !0
|
|
487
|
+
}));
|
|
488
|
+
}
|
|
489
|
+
updateValidity() {
|
|
490
|
+
let e = this.config.getInternals();
|
|
491
|
+
this.target.required && (this.target.value ?? "") === "" ? e.setValidity({ valueMissing: !0 }, "Please fill out this field.", this.config.getControlElement() ?? void 0) : e.setValidity({});
|
|
492
|
+
}
|
|
493
|
+
}, L, R, z, B, V, H, ge, _e, ve, ye, be, xe, Se, Ce, we;
|
|
494
|
+
function U(e, t, n) {
|
|
495
|
+
Te(e, t), t.set(e, n);
|
|
496
|
+
}
|
|
497
|
+
function Te(e, t) {
|
|
498
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
499
|
+
}
|
|
500
|
+
function W(e, t, n) {
|
|
501
|
+
return (t = Oe(t)) in e ? Object.defineProperty(e, t, {
|
|
502
|
+
value: n,
|
|
503
|
+
enumerable: !0,
|
|
504
|
+
configurable: !0,
|
|
505
|
+
writable: !0
|
|
506
|
+
}) : e[t] = n, e;
|
|
507
|
+
}
|
|
508
|
+
function G(e, t, n) {
|
|
509
|
+
return e.set(Ee(e, t), n), n;
|
|
510
|
+
}
|
|
511
|
+
function K(e, t) {
|
|
512
|
+
return e.get(Ee(e, t));
|
|
513
|
+
}
|
|
514
|
+
function Ee(e, t, n) {
|
|
515
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
516
|
+
throw TypeError("Private element is not present on this object");
|
|
517
|
+
}
|
|
518
|
+
function De(e, t, n, r, i, a) {
|
|
519
|
+
function o(e, t, n) {
|
|
520
|
+
return function(r, i) {
|
|
521
|
+
return n && n(r), e[t].call(r, i);
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
function s(e, t) {
|
|
525
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
526
|
+
return t;
|
|
527
|
+
}
|
|
528
|
+
function c(e, t, n, r) {
|
|
529
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
530
|
+
return e;
|
|
531
|
+
}
|
|
532
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
533
|
+
function h(e) {
|
|
534
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
535
|
+
}
|
|
536
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
537
|
+
if (!y) {
|
|
538
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
539
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
540
|
+
d ? (f || p ? b = {
|
|
541
|
+
get: Ae(function() {
|
|
542
|
+
return v(this);
|
|
543
|
+
}, r, "get"),
|
|
544
|
+
set: function(e) {
|
|
545
|
+
t[4](this, e);
|
|
546
|
+
}
|
|
547
|
+
} : b[S] = v, f || Ae(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
548
|
+
}
|
|
549
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
550
|
+
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
551
|
+
kind: [
|
|
552
|
+
"field",
|
|
553
|
+
"accessor",
|
|
554
|
+
"method",
|
|
555
|
+
"getter",
|
|
556
|
+
"setter",
|
|
557
|
+
"class"
|
|
558
|
+
][i],
|
|
559
|
+
name: r,
|
|
560
|
+
metadata: a,
|
|
561
|
+
addInitializer: function(e, t) {
|
|
562
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
563
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
564
|
+
}.bind(null, D)
|
|
565
|
+
};
|
|
566
|
+
try {
|
|
567
|
+
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
568
|
+
else {
|
|
569
|
+
var k, A;
|
|
570
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
571
|
+
return h(e), b.value;
|
|
572
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
573
|
+
return e[r];
|
|
574
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
575
|
+
e[r] = t;
|
|
576
|
+
}));
|
|
577
|
+
var j = O.access = { has: d ? m.bind() : function(e) {
|
|
578
|
+
return r in e;
|
|
579
|
+
} };
|
|
580
|
+
if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
|
|
581
|
+
get: b.get,
|
|
582
|
+
set: b.set
|
|
583
|
+
} : b[S], O), p) {
|
|
584
|
+
if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
|
|
585
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
586
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
587
|
+
}
|
|
588
|
+
} finally {
|
|
589
|
+
D.v = !0;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
return (f || p) && l.push(function(e, t) {
|
|
593
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
594
|
+
return t;
|
|
595
|
+
}), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
|
|
596
|
+
}
|
|
597
|
+
function u(e, t) {
|
|
598
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
599
|
+
configurable: !0,
|
|
600
|
+
enumerable: !0,
|
|
601
|
+
value: t
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
605
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
606
|
+
var i, a, o = [], c = function(t) {
|
|
607
|
+
return je(t) === e;
|
|
608
|
+
}, u = /* @__PURE__ */ new Map();
|
|
609
|
+
function d(e) {
|
|
610
|
+
e && o.push(s.bind(null, e));
|
|
611
|
+
}
|
|
612
|
+
for (var f = 0; f < t.length; f++) {
|
|
613
|
+
var p = t[f];
|
|
614
|
+
if (Array.isArray(p)) {
|
|
615
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
616
|
+
if (!y && !g) {
|
|
617
|
+
var x = u.get(b);
|
|
618
|
+
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);
|
|
619
|
+
u.set(b, !(m > 2) || m);
|
|
620
|
+
}
|
|
621
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : Oe(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
return d(i), d(a), o;
|
|
625
|
+
}(e, t, i, f);
|
|
626
|
+
return n.length || u(e, f), {
|
|
627
|
+
e: p,
|
|
628
|
+
get c() {
|
|
629
|
+
var t = [];
|
|
630
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
631
|
+
}
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
function Oe(e) {
|
|
635
|
+
var t = ke(e, "string");
|
|
636
|
+
return typeof t == "symbol" ? t : t + "";
|
|
637
|
+
}
|
|
638
|
+
function ke(e, t) {
|
|
639
|
+
if (typeof e != "object" || !e) return e;
|
|
640
|
+
var n = e[Symbol.toPrimitive];
|
|
641
|
+
if (n !== void 0) {
|
|
642
|
+
var r = n.call(e, t || "default");
|
|
643
|
+
if (typeof r != "object") return r;
|
|
644
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
645
|
+
}
|
|
646
|
+
return (t === "string" ? String : Number)(e);
|
|
647
|
+
}
|
|
648
|
+
function Ae(e, t, n) {
|
|
649
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
650
|
+
try {
|
|
651
|
+
Object.defineProperty(e, "name", {
|
|
652
|
+
configurable: !0,
|
|
653
|
+
value: n ? n + " " + t : t
|
|
654
|
+
});
|
|
655
|
+
} catch {}
|
|
656
|
+
return e;
|
|
657
|
+
}
|
|
658
|
+
function je(e) {
|
|
659
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
660
|
+
return e;
|
|
661
|
+
}
|
|
662
|
+
var q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Y = /*#__PURE__*/ new WeakMap(), X = /*#__PURE__*/ new WeakMap(), Z = /*#__PURE__*/ new WeakMap(), Q = /*#__PURE__*/ new WeakMap();
|
|
663
|
+
we = (z = P({
|
|
664
|
+
type: String,
|
|
665
|
+
reflect: !0
|
|
666
|
+
}), V = P({
|
|
667
|
+
type: String,
|
|
668
|
+
reflect: !0
|
|
669
|
+
}), ge = P(), ve = P({
|
|
670
|
+
type: String,
|
|
671
|
+
reflect: !0
|
|
672
|
+
}), be = P({
|
|
673
|
+
type: Boolean,
|
|
674
|
+
reflect: !0
|
|
675
|
+
}), Se = P({
|
|
676
|
+
type: Boolean,
|
|
677
|
+
reflect: !0
|
|
678
|
+
}), "formAssociated");
|
|
679
|
+
var $ = class extends E {
|
|
680
|
+
get label() {
|
|
681
|
+
return K(q, this);
|
|
682
|
+
}
|
|
683
|
+
set label(e) {
|
|
684
|
+
G(q, this, e);
|
|
685
|
+
}
|
|
686
|
+
get name() {
|
|
687
|
+
return K(J, this);
|
|
688
|
+
}
|
|
689
|
+
set name(e) {
|
|
690
|
+
G(J, this, e);
|
|
691
|
+
}
|
|
692
|
+
get value() {
|
|
693
|
+
return K(Y, this);
|
|
694
|
+
}
|
|
695
|
+
set value(e) {
|
|
696
|
+
G(Y, this, e);
|
|
697
|
+
}
|
|
698
|
+
get placeholder() {
|
|
699
|
+
return K(X, this);
|
|
700
|
+
}
|
|
701
|
+
set placeholder(e) {
|
|
702
|
+
G(X, this, e);
|
|
703
|
+
}
|
|
704
|
+
get required() {
|
|
705
|
+
return K(Z, this);
|
|
706
|
+
}
|
|
707
|
+
set required(e) {
|
|
708
|
+
G(Z, this, e);
|
|
709
|
+
}
|
|
710
|
+
get disabled() {
|
|
711
|
+
return K(Q, this);
|
|
712
|
+
}
|
|
713
|
+
set disabled(e) {
|
|
714
|
+
G(Q, this, e);
|
|
715
|
+
}
|
|
716
|
+
constructor() {
|
|
717
|
+
super(), U(this, q, (R(this), B(this, ""))), U(this, J, H(this, "")), U(this, Y, _e(this, null)), U(this, X, ye(this, "")), U(this, Z, xe(this, !1)), U(this, Q, Ce(this, !1)), W(this, "controlTrait", void 0), this.controlTrait = this.addTrait(new I(this, {
|
|
718
|
+
getControlElement: () => this.controlElement,
|
|
719
|
+
getInternals: () => this.getInternals()
|
|
720
|
+
}));
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
L = $, [B, H, _e, ye, xe, Ce, R] = De(L, [
|
|
724
|
+
[
|
|
725
|
+
z,
|
|
726
|
+
1,
|
|
727
|
+
"label"
|
|
728
|
+
],
|
|
729
|
+
[
|
|
730
|
+
V,
|
|
731
|
+
1,
|
|
732
|
+
"name"
|
|
733
|
+
],
|
|
734
|
+
[
|
|
735
|
+
ge,
|
|
736
|
+
1,
|
|
737
|
+
"value"
|
|
738
|
+
],
|
|
739
|
+
[
|
|
740
|
+
ve,
|
|
741
|
+
1,
|
|
742
|
+
"placeholder"
|
|
743
|
+
],
|
|
744
|
+
[
|
|
745
|
+
be,
|
|
746
|
+
1,
|
|
747
|
+
"required"
|
|
748
|
+
],
|
|
749
|
+
[
|
|
750
|
+
Se,
|
|
751
|
+
1,
|
|
752
|
+
"disabled"
|
|
753
|
+
]
|
|
754
|
+
], [], 0, void 0, E).e, W($, we, !0);
|
|
755
|
+
//#endregion
|
|
756
|
+
export { N as a, g as c, f as d, u as f, o as h, P as i, m as l, s as m, I as n, E as o, l as p, pe as r, b as s, $ as t, d as u };
|
|
757
|
+
|
|
758
|
+
//# sourceMappingURL=components-BD458q30.js.map
|