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,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import { n as i } from "./decorators-BqWyWiL9.js";
|
|
1
|
+
import { i as e, l as t, o as n } from "./components-BD458q30.js";
|
|
2
|
+
import { c as r, i } from "./lit-C4H1jI4q.js";
|
|
4
3
|
import { t as a } from "./query-BYu9q8lA.js";
|
|
5
4
|
//#region src/components/menu-item/MenuItem.styles.css
|
|
6
|
-
var o =
|
|
5
|
+
var o = r`:host{&>a,&>div{width:100%;color:var(--solid-ui-color-gray-600);font-weight:500;font-size:var(--solid-ui-font-size-md);border-radius:5px;justify-content:flex-start;align-items:center;gap:5px;padding:10px;display:flex;position:relative;&[data-selected]{background:var(--solid-ui-color-primary-selected)}}& ::slotted([slot=left-icon]),& ::slotted([slot=right-icon]){width:var(--solid-ui-font-size-xl);height:var(--solid-ui-font-size-xl)}& a:after{content:\"\";width:100%;height:100%;position:absolute;top:0;left:0}}`, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S;
|
|
7
6
|
function C(e, t, n) {
|
|
8
7
|
w(e, t), t.set(e, n);
|
|
9
8
|
}
|
|
@@ -177,13 +176,13 @@ function P(e) {
|
|
|
177
176
|
}
|
|
178
177
|
m = [t("solid-ui-menu-item")];
|
|
179
178
|
var F;
|
|
180
|
-
new (x = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), S = (h =
|
|
179
|
+
new (x = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), S = (h = e({
|
|
181
180
|
type: String,
|
|
182
181
|
reflect: !0
|
|
183
|
-
}), _ =
|
|
182
|
+
}), _ = e({
|
|
184
183
|
type: Boolean,
|
|
185
184
|
reflect: !0
|
|
186
|
-
}), y = a("a"), "href"), c = class extends
|
|
185
|
+
}), y = a("a"), "href"), c = class extends n {
|
|
187
186
|
constructor(...e) {
|
|
188
187
|
super(...e), C(this, l, (f(this), g(this))), C(this, u, v(this, !1)), C(this, d, b(this, null));
|
|
189
188
|
}
|
|
@@ -206,13 +205,13 @@ new (x = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
206
205
|
T(d, this, e);
|
|
207
206
|
}
|
|
208
207
|
render() {
|
|
209
|
-
return this.href ?
|
|
208
|
+
return this.href ? i`
|
|
210
209
|
<a href="${this.href}" target="_blank" rel="noopener noreferrer" ?data-selected=${this.selected}>
|
|
211
210
|
<slot name="left-icon"></slot>
|
|
212
211
|
<slot></slot>
|
|
213
212
|
<slot name="right-icon"></slot>
|
|
214
213
|
</a>
|
|
215
|
-
` :
|
|
214
|
+
` : i`
|
|
216
215
|
<div ?data-selected=${this.selected}>
|
|
217
216
|
<slot name="left-icon"></slot>
|
|
218
217
|
<slot></slot>
|
|
@@ -239,7 +238,7 @@ new (x = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
|
|
|
239
238
|
1,
|
|
240
239
|
"anchor"
|
|
241
240
|
]
|
|
242
|
-
], m, 0, void 0,
|
|
241
|
+
], m, 0, void 0, n), c), s = class extends P {
|
|
243
242
|
constructor() {
|
|
244
243
|
super(F), O(this, "styles", o), p();
|
|
245
244
|
}
|
|
@@ -250,4 +249,4 @@ var I = F;
|
|
|
250
249
|
//#endregion
|
|
251
250
|
export { F as n, I as t };
|
|
252
251
|
|
|
253
|
-
//# sourceMappingURL=menu-item-
|
|
252
|
+
//# sourceMappingURL=menu-item-D9BqJtKZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item-
|
|
1
|
+
{"version":3,"file":"menu-item-D9BqJtKZ.js","names":["customElement","WebComponent","property","query","html","styles","_classDecs","_MenuItem","_MenuItem2","_A","WeakMap","_B","_C","_ref","_hrefDecs","type","String","reflect","_selectedDecs","Boolean","_anchorDecs","_MenuItem3","MenuItem","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_href","_init_selected","_init_anchor","_classPrivateFieldGet","href","v","_classPrivateFieldSet","selected","anchor","render","click","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","MenuItem"],"sources":["../../src/components/menu-item/MenuItem.styles.css","../../src/components/menu-item/MenuItem.ts","../../src/components/menu-item/index.ts"],"sourcesContent":[":host {\n & > a,\n & > div {\n width: 100%;\n display: flex;\n position: relative;\n justify-content: flex-start;\n align-items: center;\n gap: 5px;\n padding: 10px;\n border-radius: 5px;\n color: var(--solid-ui-color-gray-600);\n font-weight: 500;\n font-size: var(--solid-ui-font-size-md);\n\n &[data-selected] {\n background: var(--solid-ui-color-primary-selected);\n }\n }\n\n ::slotted([slot=\"left-icon\"]), ::slotted([slot=\"right-icon\"]) {\n width: var(--solid-ui-font-size-xl);\n height: var(--solid-ui-font-size-xl);\n }\n\n a::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n}\n","import { customElement, WebComponent } from '@/lib/components'\nimport { property, query } from 'lit/decorators.js'\nimport { html } from 'lit'\n\nimport styles from './MenuItem.styles.css'\n\n@customElement('solid-ui-menu-item')\nexport default class MenuItem extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor href: string | undefined\n\n @property({ type: Boolean, reflect: true })\n accessor selected: boolean = false\n\n @query('a')\n private accessor anchor: HTMLAnchorElement | null = null\n\n render () {\n if (this.href) {\n return html`\n <a href=\"${this.href}\" target=\"_blank\" rel=\"noopener noreferrer\" ?data-selected=${this.selected}>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </a>\n `\n }\n\n return html`\n <div ?data-selected=${this.selected}>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </div>\n `\n }\n\n click () {\n this.anchor?.click()\n }\n}\n","import MenuItem from './MenuItem'\n\nexport { MenuItem }\nexport default MenuItem\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACI0CM,IAAA,CAEzCN,EAAc,oBAAoB,CAAC;AAAA,IAAAO;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,KAAAC,IAIjCZ,EAAS;CAAEa,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzChB,EAAS;CAAEa,MAAMI;CAASF,SAAS;AAAK,CAAC,GAACG,IAG1CjB,EAAM,GAAG,GAAC,SAAAkB,IAVb,cACsCpB,EAAa;CAAAsB,YAAA,GAAAC,GAAA;EAOfC,AAPe,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAhB,IAAAiB,EAAA,IAAA,GAAAC,EAAA,IAAA,EAAA,GAAAF,EAAA,MAAAd,GAAAiB,EAAA,MAOpB,EAAK,CAAA,GAAAH,EAAA,MAAAb,GAAAiB,EAAA,MAGkB,IAAI,CAAA;CAAA;CAAA,KAAAhB,KAAA;EAAA,OAAAiB,EAAArB,GAAA,IAAA;CAAA;CAAA,IAN/CsB,KAAIC,GAAA;EAAAC,EAAAxB,GAAA,MAAAuB,CAAA;CAAA;CAAA,IAGJE,WAAQ;EAAA,OAAAJ,EAAAnB,GAAA,IAAA;CAAA;CAAA,IAARuB,SAAQF,GAAA;EAAAC,EAAAtB,GAAA,MAAAqB,CAAA;CAAA;CAAA,IAGAG,SAAM;EAAA,OAAAL,EAAAlB,GAAA,IAAA;CAAA;CAAA,IAANuB,OAAMH,GAAA;EAAAC,EAAArB,GAAA,MAAAoB,CAAA;CAAA;CAEvBI,SAAU;EAWR,OAVI,KAAKL,OACA3B,CAAI;mBACE,KAAK2B,KAAI,6DAA8D,KAAKG,SAAQ;;;;;UAQ5F9B,CAAI;8BACe,KAAK8B,SAAQ;;;;;;CAMzC;CAEAG,QAAS;EACP,KAAKF,QAAQE,MAAM;CACrB;AACF,GAAC,CAAAC,GAAA,CAAAX,GAAAC,GAAAC,GAAAH,IAAAa,GAAA,CAAAhC,GAAAiC,MAAAC,EAAApB,GAAA;CAAA;EAAAP;EAAA;EAAA;CAAA;CAAA;EAAAI;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;AAAA,GAAAd,GAAA,GAAA,KAAA,GAnCqCL,CAAY,GAAAoB,IAAAqB,IAAA,cAAAC,EAAA;CAAApB,cAAA;EAAA,MAAAhB,CAAA,GAAAqC,EAAA,MAAA,UAChCvC,CAAM,GAAAmC,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAlC,GAAA,KAAA,CAAA,GAAAkC,GAAA;;;ACLxB,IAAA,IAAeI"}
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { i as e, l as t, t as n } from "./components-BD458q30.js";
|
|
2
|
+
import { i as r } from "./lit-C4H1jI4q.js";
|
|
3
|
+
import { t as i } from "./dialogs-DEuwXC46.js";
|
|
4
|
+
import { t as a } from "./photo-capture-modal-BLZtHDj1.js";
|
|
5
|
+
//#region src/components/photo-capture/PhotoCapture.ts
|
|
6
|
+
var o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P, ee, F;
|
|
7
|
+
function te(e, t, n) {
|
|
8
|
+
return (t = ie(t)) in e ? Object.defineProperty(e, t, {
|
|
9
|
+
value: n,
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
configurable: !0,
|
|
12
|
+
writable: !0
|
|
13
|
+
}) : e[t] = n, e;
|
|
14
|
+
}
|
|
15
|
+
function I(e, t, n) {
|
|
16
|
+
ne(e, t), t.set(e, n);
|
|
17
|
+
}
|
|
18
|
+
function ne(e, t) {
|
|
19
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
20
|
+
}
|
|
21
|
+
function L(e, t, n) {
|
|
22
|
+
return e.set(z(e, t), n), n;
|
|
23
|
+
}
|
|
24
|
+
function R(e, t) {
|
|
25
|
+
return e.get(z(e, t));
|
|
26
|
+
}
|
|
27
|
+
function z(e, t, n) {
|
|
28
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
29
|
+
throw TypeError("Private element is not present on this object");
|
|
30
|
+
}
|
|
31
|
+
function re(e, t, n, r, i, a) {
|
|
32
|
+
function o(e, t, n) {
|
|
33
|
+
return function(r, i) {
|
|
34
|
+
return n && n(r), e[t].call(r, i);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function s(e, t) {
|
|
38
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
39
|
+
return t;
|
|
40
|
+
}
|
|
41
|
+
function c(e, t, n, r) {
|
|
42
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
43
|
+
return e;
|
|
44
|
+
}
|
|
45
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
46
|
+
function h(e) {
|
|
47
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
48
|
+
}
|
|
49
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
50
|
+
if (!y) {
|
|
51
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
52
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
53
|
+
d ? (f || p ? b = {
|
|
54
|
+
get: oe(function() {
|
|
55
|
+
return v(this);
|
|
56
|
+
}, r, "get"),
|
|
57
|
+
set: function(e) {
|
|
58
|
+
t[4](this, e);
|
|
59
|
+
}
|
|
60
|
+
} : b[S] = v, f || oe(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
61
|
+
}
|
|
62
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
63
|
+
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
64
|
+
kind: [
|
|
65
|
+
"field",
|
|
66
|
+
"accessor",
|
|
67
|
+
"method",
|
|
68
|
+
"getter",
|
|
69
|
+
"setter",
|
|
70
|
+
"class"
|
|
71
|
+
][i],
|
|
72
|
+
name: r,
|
|
73
|
+
metadata: a,
|
|
74
|
+
addInitializer: function(e, t) {
|
|
75
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
76
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
77
|
+
}.bind(null, D)
|
|
78
|
+
};
|
|
79
|
+
try {
|
|
80
|
+
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
81
|
+
else {
|
|
82
|
+
var k, A;
|
|
83
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
84
|
+
return h(e), b.value;
|
|
85
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
86
|
+
return e[r];
|
|
87
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
88
|
+
e[r] = t;
|
|
89
|
+
}));
|
|
90
|
+
var j = O.access = { has: d ? m.bind() : function(e) {
|
|
91
|
+
return r in e;
|
|
92
|
+
} };
|
|
93
|
+
if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
|
|
94
|
+
get: b.get,
|
|
95
|
+
set: b.set
|
|
96
|
+
} : b[S], O), p) {
|
|
97
|
+
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);
|
|
98
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
99
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
100
|
+
}
|
|
101
|
+
} finally {
|
|
102
|
+
D.v = !0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return (f || p) && l.push(function(e, t) {
|
|
106
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
107
|
+
return t;
|
|
108
|
+
}), 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;
|
|
109
|
+
}
|
|
110
|
+
function u(e, t) {
|
|
111
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
112
|
+
configurable: !0,
|
|
113
|
+
enumerable: !0,
|
|
114
|
+
value: t
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
118
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
119
|
+
var i, a, o = [], c = function(t) {
|
|
120
|
+
return se(t) === e;
|
|
121
|
+
}, u = /* @__PURE__ */ new Map();
|
|
122
|
+
function d(e) {
|
|
123
|
+
e && o.push(s.bind(null, e));
|
|
124
|
+
}
|
|
125
|
+
for (var f = 0; f < t.length; f++) {
|
|
126
|
+
var p = t[f];
|
|
127
|
+
if (Array.isArray(p)) {
|
|
128
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
129
|
+
if (!y && !g) {
|
|
130
|
+
var x = u.get(b);
|
|
131
|
+
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);
|
|
132
|
+
u.set(b, !(m > 2) || m);
|
|
133
|
+
}
|
|
134
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : ie(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return d(i), d(a), o;
|
|
138
|
+
}(e, t, i, f);
|
|
139
|
+
return n.length || u(e, f), {
|
|
140
|
+
e: p,
|
|
141
|
+
get c() {
|
|
142
|
+
var t = [];
|
|
143
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function ie(e) {
|
|
148
|
+
var t = ae(e, "string");
|
|
149
|
+
return typeof t == "symbol" ? t : t + "";
|
|
150
|
+
}
|
|
151
|
+
function ae(e, t) {
|
|
152
|
+
if (typeof e != "object" || !e) return e;
|
|
153
|
+
var n = e[Symbol.toPrimitive];
|
|
154
|
+
if (n !== void 0) {
|
|
155
|
+
var r = n.call(e, t || "default");
|
|
156
|
+
if (typeof r != "object") return r;
|
|
157
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
158
|
+
}
|
|
159
|
+
return (t === "string" ? String : Number)(e);
|
|
160
|
+
}
|
|
161
|
+
function oe(e, t, n) {
|
|
162
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
163
|
+
try {
|
|
164
|
+
Object.defineProperty(e, "name", {
|
|
165
|
+
configurable: !0,
|
|
166
|
+
value: n ? n + " " + t : t
|
|
167
|
+
});
|
|
168
|
+
} catch {}
|
|
169
|
+
return e;
|
|
170
|
+
}
|
|
171
|
+
function se(e) {
|
|
172
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
173
|
+
return e;
|
|
174
|
+
}
|
|
175
|
+
l = [t("solid-ui-photo-capture")];
|
|
176
|
+
var B, V = /*#__PURE__*/ new WeakMap(), H = /*#__PURE__*/ new WeakMap(), U = /*#__PURE__*/ new WeakMap(), W = /*#__PURE__*/ new WeakMap(), G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Y = /*#__PURE__*/ new WeakMap(), X = /*#__PURE__*/ new WeakMap(), Z = /*#__PURE__*/ new WeakMap(), Q = /*#__PURE__*/ new WeakMap(), $ = /*#__PURE__*/ new WeakMap();
|
|
177
|
+
F = (u = e({
|
|
178
|
+
type: String,
|
|
179
|
+
reflect: !0
|
|
180
|
+
}), f = e({
|
|
181
|
+
type: String,
|
|
182
|
+
reflect: !0
|
|
183
|
+
}), m = e({
|
|
184
|
+
type: String,
|
|
185
|
+
attribute: "capture-label",
|
|
186
|
+
reflect: !0
|
|
187
|
+
}), g = e({
|
|
188
|
+
type: String,
|
|
189
|
+
attribute: "confirm-label",
|
|
190
|
+
reflect: !0
|
|
191
|
+
}), v = e({
|
|
192
|
+
type: String,
|
|
193
|
+
attribute: "retake-label",
|
|
194
|
+
reflect: !0
|
|
195
|
+
}), b = e({
|
|
196
|
+
type: String,
|
|
197
|
+
attribute: "cancel-label",
|
|
198
|
+
reflect: !0
|
|
199
|
+
}), S = e({
|
|
200
|
+
type: String,
|
|
201
|
+
attribute: "facing-mode",
|
|
202
|
+
reflect: !0
|
|
203
|
+
}), w = e({
|
|
204
|
+
type: String,
|
|
205
|
+
reflect: !0
|
|
206
|
+
}), E = e({
|
|
207
|
+
type: String,
|
|
208
|
+
attribute: "capture-format",
|
|
209
|
+
reflect: !0
|
|
210
|
+
}), O = e({
|
|
211
|
+
type: Number,
|
|
212
|
+
attribute: "capture-quality"
|
|
213
|
+
}), A = e({
|
|
214
|
+
type: Boolean,
|
|
215
|
+
attribute: "show-cancel-button",
|
|
216
|
+
reflect: !0
|
|
217
|
+
}), M = e({
|
|
218
|
+
type: String,
|
|
219
|
+
attribute: "file-name-prefix",
|
|
220
|
+
reflect: !0
|
|
221
|
+
}), P = e({ attribute: !1 }), "label"), o = class extends n {
|
|
222
|
+
constructor(...e) {
|
|
223
|
+
super(...e), I(this, V, (s(this), d(this, "Take Photo"))), I(this, H, p(this, "Take a photo")), I(this, U, h(this, "Take Photo")), I(this, W, _(this, "Use Photo")), I(this, G, y(this, "Retake")), I(this, K, x(this, "Cancel")), I(this, q, C(this, "user")), I(this, J, T(this, "")), I(this, Y, D(this, "image/png")), I(this, X, k(this, void 0)), I(this, Z, j(this, !0)), I(this, Q, N(this, "")), I(this, $, ee(this, void 0)), te(this, "controlElement", null);
|
|
224
|
+
}
|
|
225
|
+
get [F]() {
|
|
226
|
+
return R(V, this);
|
|
227
|
+
}
|
|
228
|
+
set label(e) {
|
|
229
|
+
L(V, this, e);
|
|
230
|
+
}
|
|
231
|
+
get heading() {
|
|
232
|
+
return R(H, this);
|
|
233
|
+
}
|
|
234
|
+
set heading(e) {
|
|
235
|
+
L(H, this, e);
|
|
236
|
+
}
|
|
237
|
+
get captureLabel() {
|
|
238
|
+
return R(U, this);
|
|
239
|
+
}
|
|
240
|
+
set captureLabel(e) {
|
|
241
|
+
L(U, this, e);
|
|
242
|
+
}
|
|
243
|
+
get confirmLabel() {
|
|
244
|
+
return R(W, this);
|
|
245
|
+
}
|
|
246
|
+
set confirmLabel(e) {
|
|
247
|
+
L(W, this, e);
|
|
248
|
+
}
|
|
249
|
+
get retakeLabel() {
|
|
250
|
+
return R(G, this);
|
|
251
|
+
}
|
|
252
|
+
set retakeLabel(e) {
|
|
253
|
+
L(G, this, e);
|
|
254
|
+
}
|
|
255
|
+
get cancelLabel() {
|
|
256
|
+
return R(K, this);
|
|
257
|
+
}
|
|
258
|
+
set cancelLabel(e) {
|
|
259
|
+
L(K, this, e);
|
|
260
|
+
}
|
|
261
|
+
get facingMode() {
|
|
262
|
+
return R(q, this);
|
|
263
|
+
}
|
|
264
|
+
set facingMode(e) {
|
|
265
|
+
L(q, this, e);
|
|
266
|
+
}
|
|
267
|
+
get constraints() {
|
|
268
|
+
return R(J, this);
|
|
269
|
+
}
|
|
270
|
+
set constraints(e) {
|
|
271
|
+
L(J, this, e);
|
|
272
|
+
}
|
|
273
|
+
get captureFormat() {
|
|
274
|
+
return R(Y, this);
|
|
275
|
+
}
|
|
276
|
+
set captureFormat(e) {
|
|
277
|
+
L(Y, this, e);
|
|
278
|
+
}
|
|
279
|
+
get captureQuality() {
|
|
280
|
+
return R(X, this);
|
|
281
|
+
}
|
|
282
|
+
set captureQuality(e) {
|
|
283
|
+
L(X, this, e);
|
|
284
|
+
}
|
|
285
|
+
get showCancelButton() {
|
|
286
|
+
return R(Z, this);
|
|
287
|
+
}
|
|
288
|
+
set showCancelButton(e) {
|
|
289
|
+
L(Z, this, e);
|
|
290
|
+
}
|
|
291
|
+
get fileNamePrefix() {
|
|
292
|
+
return R(Q, this);
|
|
293
|
+
}
|
|
294
|
+
set fileNamePrefix(e) {
|
|
295
|
+
L(Q, this, e);
|
|
296
|
+
}
|
|
297
|
+
get mediaConstraints() {
|
|
298
|
+
return R($, this);
|
|
299
|
+
}
|
|
300
|
+
set mediaConstraints(e) {
|
|
301
|
+
L($, this, e);
|
|
302
|
+
}
|
|
303
|
+
render() {
|
|
304
|
+
return r`
|
|
305
|
+
<slot name="trigger" @click=${this.onClick}>
|
|
306
|
+
<solid-ui-button ?disabled="${this.disabled}">${this.label}</solid-ui-button>
|
|
307
|
+
</slot>
|
|
308
|
+
`;
|
|
309
|
+
}
|
|
310
|
+
onClick() {
|
|
311
|
+
i(a, {
|
|
312
|
+
props: {
|
|
313
|
+
name: this.name,
|
|
314
|
+
heading: this.heading,
|
|
315
|
+
captureLabel: this.captureLabel,
|
|
316
|
+
confirmLabel: this.confirmLabel,
|
|
317
|
+
retakeLabel: this.retakeLabel,
|
|
318
|
+
cancelLabel: this.cancelLabel,
|
|
319
|
+
fileNamePrefix: this.fileNamePrefix,
|
|
320
|
+
mediaConstraints: this.mediaConstraints,
|
|
321
|
+
constraints: this.constraints,
|
|
322
|
+
captureFormat: this.captureFormat,
|
|
323
|
+
captureQuality: this.captureQuality,
|
|
324
|
+
showCancelButton: this.showCancelButton,
|
|
325
|
+
facingMode: this.facingMode
|
|
326
|
+
},
|
|
327
|
+
onClose: (e) => this.controlTrait.setValue(e ?? null)
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
}, {e: [d, p, h, _, y, x, C, T, D, k, j, N, ee, s], c: [B, c]} = re(o, [
|
|
331
|
+
[
|
|
332
|
+
u,
|
|
333
|
+
1,
|
|
334
|
+
"label"
|
|
335
|
+
],
|
|
336
|
+
[
|
|
337
|
+
f,
|
|
338
|
+
1,
|
|
339
|
+
"heading"
|
|
340
|
+
],
|
|
341
|
+
[
|
|
342
|
+
m,
|
|
343
|
+
1,
|
|
344
|
+
"captureLabel"
|
|
345
|
+
],
|
|
346
|
+
[
|
|
347
|
+
g,
|
|
348
|
+
1,
|
|
349
|
+
"confirmLabel"
|
|
350
|
+
],
|
|
351
|
+
[
|
|
352
|
+
v,
|
|
353
|
+
1,
|
|
354
|
+
"retakeLabel"
|
|
355
|
+
],
|
|
356
|
+
[
|
|
357
|
+
b,
|
|
358
|
+
1,
|
|
359
|
+
"cancelLabel"
|
|
360
|
+
],
|
|
361
|
+
[
|
|
362
|
+
S,
|
|
363
|
+
1,
|
|
364
|
+
"facingMode"
|
|
365
|
+
],
|
|
366
|
+
[
|
|
367
|
+
w,
|
|
368
|
+
1,
|
|
369
|
+
"constraints"
|
|
370
|
+
],
|
|
371
|
+
[
|
|
372
|
+
E,
|
|
373
|
+
1,
|
|
374
|
+
"captureFormat"
|
|
375
|
+
],
|
|
376
|
+
[
|
|
377
|
+
O,
|
|
378
|
+
1,
|
|
379
|
+
"captureQuality"
|
|
380
|
+
],
|
|
381
|
+
[
|
|
382
|
+
A,
|
|
383
|
+
1,
|
|
384
|
+
"showCancelButton"
|
|
385
|
+
],
|
|
386
|
+
[
|
|
387
|
+
M,
|
|
388
|
+
1,
|
|
389
|
+
"fileNamePrefix"
|
|
390
|
+
],
|
|
391
|
+
[
|
|
392
|
+
P,
|
|
393
|
+
1,
|
|
394
|
+
"mediaConstraints"
|
|
395
|
+
]
|
|
396
|
+
], l, 0, void 0, n), c();
|
|
397
|
+
//#endregion
|
|
398
|
+
//#region src/components/photo-capture/index.ts
|
|
399
|
+
var ce = B;
|
|
400
|
+
//#endregion
|
|
401
|
+
export { B as n, ce as t };
|
|
402
|
+
|
|
403
|
+
//# sourceMappingURL=photo-capture-BoZF621r.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"photo-capture-BoZF621r.js","names":["html","property","customElement","FormControlComponent","showDialog","PhotoCaptureModal","_classDecs","_PhotoCapture","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_ref","_labelDecs","type","String","reflect","_headingDecs","_captureLabelDecs","attribute","_confirmLabelDecs","_retakeLabelDecs","_cancelLabelDecs","_facingModeDecs","_constraintsDecs","_captureFormatDecs","_captureQualityDecs","Number","_showCancelButtonDecs","Boolean","_fileNamePrefixDecs","_mediaConstraintsDecs","PhotoCapture","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_label","_init_heading","_init_captureLabel","_init_confirmLabel","_init_retakeLabel","_init_cancelLabel","_init_facingMode","_init_constraints","_init_captureFormat","_init_captureQuality","undefined","_init_showCancelButton","_init_fileNamePrefix","_init_mediaConstraints","_defineProperty","_classPrivateFieldGet","label","v","_classPrivateFieldSet","heading","captureLabel","confirmLabel","retakeLabel","cancelLabel","facingMode","constraints","captureFormat","captureQuality","showCancelButton","fileNamePrefix","mediaConstraints","render","onClick","disabled","props","name","onClose","value","controlTrait","setValue","_PhotoCapture2","e","c","_initClass","_applyDecs","default","PhotoCapture"],"sources":["../../src/components/photo-capture/PhotoCapture.ts","../../src/components/photo-capture/index.ts"],"sourcesContent":["import { html } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { customElement, FormControlComponent } from '@/lib/components'\nimport { showDialog } from '@/lib/dialogs'\n\nimport PhotoCaptureModal from '@/components/photo-capture-modal'\n\n@customElement('solid-ui-photo-capture')\nexport default class PhotoCapture extends FormControlComponent<File> {\n @property({ type: String, reflect: true })\n accessor label = 'Take Photo'\n\n @property({ type: String, reflect: true })\n accessor heading = 'Take a photo'\n\n @property({ type: String, attribute: 'capture-label', reflect: true })\n accessor captureLabel = 'Take Photo'\n\n @property({ type: String, attribute: 'confirm-label', reflect: true })\n accessor confirmLabel = 'Use Photo'\n\n @property({ type: String, attribute: 'retake-label', reflect: true })\n accessor retakeLabel = 'Retake'\n\n @property({ type: String, attribute: 'cancel-label', reflect: true })\n accessor cancelLabel = 'Cancel'\n\n @property({ type: String, attribute: 'facing-mode', reflect: true })\n accessor facingMode = 'user'\n\n @property({ type: String, reflect: true })\n accessor constraints = ''\n\n @property({ type: String, attribute: 'capture-format', reflect: true })\n accessor captureFormat = 'image/png'\n\n @property({ type: Number, attribute: 'capture-quality' })\n accessor captureQuality: number | undefined = undefined\n\n @property({ type: Boolean, attribute: 'show-cancel-button', reflect: true })\n accessor showCancelButton = true\n\n @property({ type: String, attribute: 'file-name-prefix', reflect: true })\n accessor fileNamePrefix = ''\n\n @property({ attribute: false })\n accessor mediaConstraints: MediaStreamConstraints | undefined = undefined\n\n protected controlElement = null\n\n protected render () {\n return html`\n <slot name=\"trigger\" @click=${this.onClick}>\n <solid-ui-button ?disabled=\"${this.disabled}\">${this.label}</solid-ui-button>\n </slot>\n `\n }\n\n private onClick () {\n showDialog(PhotoCaptureModal, {\n props: {\n name: this.name,\n heading: this.heading,\n captureLabel: this.captureLabel,\n confirmLabel: this.confirmLabel,\n retakeLabel: this.retakeLabel,\n cancelLabel: this.cancelLabel,\n fileNamePrefix: this.fileNamePrefix,\n mediaConstraints: this.mediaConstraints,\n constraints: this.constraints,\n captureFormat: this.captureFormat,\n captureQuality: this.captureQuality,\n showCancelButton: this.showCancelButton,\n facingMode: this.facingMode,\n },\n onClose: value => this.controlTrait.setValue(value ?? null)\n })\n }\n}\n","import PhotoCapture from './PhotoCapture'\n\nexport * from './PhotoCapture'\nexport { PhotoCapture }\nexport default PhotoCapture\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKgEM,IAAA,CAE/DJ,EAAc,wBAAwB,CAAC;AAAA,IAAAK,GAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,kBAAA,IAAAN,QAAA,GAAAO,kBAAA,IAAAP,QAAA,GAAAQ,kBAAA,IAAAR,QAAA,GAAAS,kBAAA,IAAAT,QAAA,GAAAU,kBAAA,IAAAV,QAAA,GAAAW,kBAAA,IAAAX,QAAA,GAAAY,kBAAA,IAAAZ,QAAA;AAAAa,KAAAC,IAErCtB,EAAS;CAAEuB,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACC,IAGzC1B,EAAS;CAAEuB,MAAMC;CAAQC,SAAS;AAAK,CAAC,GAACE,IAGzC3B,EAAS;CAAEuB,MAAMC;CAAQI,WAAW;CA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