@ozdao/prometheus-framework 0.2.33 → 0.2.35
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/events.server.js +32 -0
- package/dist/events.server.mjs +32 -0
- package/dist/files.server.js +99 -78
- package/dist/files.server.mjs +99 -78
- package/dist/globals.server.js +0 -1
- package/dist/globals.server.mjs +0 -1
- package/dist/main.css +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/js.cookie.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/_virtual/js.cookie.js +4 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/node_modules/js-cookie/src/js.cookie.cjs +7 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/node_modules/js-cookie/src/js.cookie.js +97 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/node_modules/vue-select/dist/vue-select.es.js +173 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +337 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/index.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/index.js +7 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/web.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/@capacitor/preferences/dist/esm/web.js +54 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +3 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +51 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +109 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/axios.js +47 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +73 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +117 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +54 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +59 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +8 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +72 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +14 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +13 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +88 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +19 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +30 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +37 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +84 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +51 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +7 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +224 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/auth.js +44 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/auth/store/twofa.js +19 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/blogposts.js +38 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/community/store/reactions.js +16 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/events/store/events.js +42 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +22 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/globals/store/globals.js +59 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +28 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/dribbble.vue.js +21 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/facebook.vue.js +21 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +21 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +23 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +21 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +29 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +21 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +3 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/middlewares/client/inputs.validation.js +35 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +60 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +80 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/departments.js +34 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/invites.js +17 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/memberships.js +16 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/organizations/store/organizations.js +42 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/categories.js +20 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/products/store/products.js +28 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/reports/store/reports.js +28 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/src/modules/spots/store/spots.js +34 -0
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +2 -61
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +61 -2
- package/dist/prometheus-framework/src/components/Countdown/Countdown.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Countdown/Countdown.vue.js +62 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +49 -2
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +2 -49
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +42 -34
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +70 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -93
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +93 -2
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +99 -2
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +2 -73
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +30 -28
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +25 -24
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +381 -140
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +122 -48
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +116 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionLineup.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionLineup.vue.js +29 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.cjs +3 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.js +117 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +108 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionSpecialGuests.vue.js +70 -0
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +20 -16
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +58 -55
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +3 -3
- package/dist/prometheus-framework.cjs.js +19 -19
- package/dist/prometheus-framework.es.js +390 -376
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +20 -5
- package/src/modules/events/components/pages/Event.vue +5 -2
- package/src/modules/events/components/sections/SectionPreviousEvents.vue +1 -1
- package/src/modules/events/models/event.model.js +2 -1
- package/src/modules/marketplace/components/pages/Catalog.vue +1 -0
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +1 -1
@@ -1,72 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useRoute as O, useRouter as T } from "vue-router";
|
3
|
-
import { useI18n as b } from "vue-i18n";
|
4
|
-
import g from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
-
import "./Popup.vue2.js";
|
6
|
-
const z = {
|
7
|
-
key: "popup-content",
|
8
|
-
class: "pd-small popup-wrapper"
|
9
|
-
}, I = {
|
10
|
-
__name: "Popup",
|
11
|
-
props: {
|
12
|
-
isPopupOpen: {
|
13
|
-
type: Boolean,
|
14
|
-
default: !1
|
15
|
-
},
|
16
|
-
style: String
|
17
|
-
},
|
18
|
-
emits: ["close-popup"],
|
19
|
-
setup(e, { emit: u }) {
|
20
|
-
const m = e, c = u;
|
21
|
-
function p() {
|
22
|
-
c("close-popup");
|
23
|
-
}
|
24
|
-
return f(() => m.isPopupOpen, (o) => {
|
25
|
-
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
-
}), O(), T(), b({
|
27
|
-
messages: {
|
28
|
-
en: {},
|
29
|
-
ru: {}
|
30
|
-
}
|
31
|
-
}), (o, t) => e.isPopupOpen ? (s(), v(y, {
|
32
|
-
key: 0,
|
33
|
-
to: "body"
|
34
|
-
}, [
|
35
|
-
n(l, {
|
36
|
-
name: "TransitionTranslateY",
|
37
|
-
appear: ""
|
38
|
-
}, {
|
39
|
-
default: i(() => [
|
40
|
-
e.isPopupOpen ? (s(), a("div", z, [
|
41
|
-
n(l, {
|
42
|
-
name: "TransitionTranslateY",
|
43
|
-
mode: "out-in"
|
44
|
-
}, {
|
45
|
-
default: i(() => [
|
46
|
-
e.isPopupOpen ? (s(), a("section", P({
|
47
|
-
key: 0,
|
48
|
-
class: "pos-relative z-index-4"
|
49
|
-
}, o.$attrs), [
|
50
|
-
n(g, {
|
51
|
-
onClick: t[0] || (t[0] = (d) => p()),
|
52
|
-
class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
|
53
|
-
}),
|
54
|
-
k(o.$slots, "default")
|
55
|
-
], 16)) : r("", !0)
|
56
|
-
]),
|
57
|
-
_: 3
|
58
|
-
}),
|
59
|
-
x("div", {
|
60
|
-
onClick: t[1] || (t[1] = (d) => p()),
|
61
|
-
class: C([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
62
|
-
}, null, 2)
|
63
|
-
])) : r("", !0)
|
64
|
-
]),
|
65
|
-
_: 3
|
66
|
-
})
|
67
|
-
])) : r("", !0);
|
68
|
-
}
|
69
|
-
};
|
1
|
+
const e = "";
|
70
2
|
export {
|
71
|
-
|
3
|
+
e as default
|
72
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),c=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(o,{emit:l}){const u=o,a=l;function n(){a("close-popup")}e.watch(()=>u.isPopupOpen,t=>{t?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const i={messages:{en:{},ru:{}}};return c.useI18n(i),(t,s)=>o.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[o.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[o.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},t.$attrs),[e.createVNode(d.default,{onClick:s[0]||(s[0]=p=>n()),class:"cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"}),e.renderSlot(t.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:s[1]||(s[1]=p=>n()),class:e.normalizeClass([{active:o.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=v;
|
@@ -1,4 +1,72 @@
|
|
1
|
-
|
1
|
+
import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as i, createElementBlock as a, mergeProps as P, renderSlot as k, createCommentVNode as r, createElementVNode as x, normalizeClass as C } from "vue";
|
2
|
+
import { useRoute as O, useRouter as T } from "vue-router";
|
3
|
+
import { useI18n as b } from "vue-i18n";
|
4
|
+
import g from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
+
import "./Popup.vue.js";
|
6
|
+
const z = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, I = {
|
10
|
+
__name: "Popup",
|
11
|
+
props: {
|
12
|
+
isPopupOpen: {
|
13
|
+
type: Boolean,
|
14
|
+
default: !1
|
15
|
+
},
|
16
|
+
style: String
|
17
|
+
},
|
18
|
+
emits: ["close-popup"],
|
19
|
+
setup(e, { emit: u }) {
|
20
|
+
const m = e, c = u;
|
21
|
+
function p() {
|
22
|
+
c("close-popup");
|
23
|
+
}
|
24
|
+
return f(() => m.isPopupOpen, (o) => {
|
25
|
+
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
+
}), O(), T(), b({
|
27
|
+
messages: {
|
28
|
+
en: {},
|
29
|
+
ru: {}
|
30
|
+
}
|
31
|
+
}), (o, t) => e.isPopupOpen ? (s(), v(y, {
|
32
|
+
key: 0,
|
33
|
+
to: "body"
|
34
|
+
}, [
|
35
|
+
n(l, {
|
36
|
+
name: "TransitionTranslateY",
|
37
|
+
appear: ""
|
38
|
+
}, {
|
39
|
+
default: i(() => [
|
40
|
+
e.isPopupOpen ? (s(), a("div", z, [
|
41
|
+
n(l, {
|
42
|
+
name: "TransitionTranslateY",
|
43
|
+
mode: "out-in"
|
44
|
+
}, {
|
45
|
+
default: i(() => [
|
46
|
+
e.isPopupOpen ? (s(), a("section", P({
|
47
|
+
key: 0,
|
48
|
+
class: "pos-relative z-index-4"
|
49
|
+
}, o.$attrs), [
|
50
|
+
n(g, {
|
51
|
+
onClick: t[0] || (t[0] = (d) => p()),
|
52
|
+
class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
|
53
|
+
}),
|
54
|
+
k(o.$slots, "default")
|
55
|
+
], 16)) : r("", !0)
|
56
|
+
]),
|
57
|
+
_: 3
|
58
|
+
}),
|
59
|
+
x("div", {
|
60
|
+
onClick: t[1] || (t[1] = (d) => p()),
|
61
|
+
class: C([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
62
|
+
}, null, 2)
|
63
|
+
])) : r("", !0)
|
64
|
+
]),
|
65
|
+
_: 3
|
66
|
+
})
|
67
|
+
])) : r("", !0);
|
68
|
+
}
|
69
|
+
};
|
2
70
|
export {
|
3
|
-
|
71
|
+
I as default
|
4
72
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,95 +1,4 @@
|
|
1
|
-
|
2
|
-
import z from "../FieldPhone/click-outside.js";
|
3
|
-
import "./Select.vue2.js";
|
4
|
-
import D from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
-
const E = {
|
6
|
-
key: 0,
|
7
|
-
class: "t-transp mn-r-small"
|
8
|
-
}, L = { class: "w-100" }, A = ["onClick"], F = {
|
9
|
-
key: 0,
|
10
|
-
class: "w-100"
|
11
|
-
}, I = {
|
12
|
-
key: 0,
|
13
|
-
class: "mn-t-thin invalid-feedback"
|
14
|
-
}, P = {
|
15
|
-
__name: "Select",
|
16
|
-
props: {
|
17
|
-
label: String,
|
18
|
-
select: [String, Object],
|
19
|
-
property: String,
|
20
|
-
placeholder: { type: String, default: "Please select an item" },
|
21
|
-
options: { type: Array, default: () => [] },
|
22
|
-
validation: Boolean
|
23
|
-
},
|
24
|
-
emits: ["update:select", "focus", "blur"],
|
25
|
-
setup(o, { emit: C }) {
|
26
|
-
const p = C;
|
27
|
-
let O = z;
|
28
|
-
const e = o, n = h(e.property ? f(e.select, e.property, e.options) : e.select), c = h(!1);
|
29
|
-
function x() {
|
30
|
-
c.value = !1;
|
31
|
-
}
|
32
|
-
function f(t, y, r) {
|
33
|
-
for (const a of r)
|
34
|
-
if (a[y] === t || a === t)
|
35
|
-
return a;
|
36
|
-
return null;
|
37
|
-
}
|
38
|
-
j(() => e.select, (t) => {
|
39
|
-
n.value = e.property ? f(e.select, e.property, e.options) : e.select;
|
40
|
-
});
|
41
|
-
const B = M(() => e.select ? e.options.filter((t) => t !== e.select) : e.options), v = () => {
|
42
|
-
c.value = !c.value, p(c.value ? "focus" : "blur");
|
43
|
-
}, V = (t) => {
|
44
|
-
n.value = t, v(), e.property ? p("update:select", n.value[e.property]) : p("update:select", n.value);
|
45
|
-
};
|
46
|
-
return (t, y) => {
|
47
|
-
var r, a;
|
48
|
-
return l(), s(k, null, [
|
49
|
-
N((l(), s("div", {
|
50
|
-
onClick: b(v, ["stop"]),
|
51
|
-
class: w([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
|
52
|
-
}, [
|
53
|
-
o.label ? (l(), s("div", E, [
|
54
|
-
m("span", null, u(o.label), 1)
|
55
|
-
])) : d("", !0),
|
56
|
-
m("li", L, [
|
57
|
-
m("span", null, u((r = n.value) != null && r.name ? (a = n.value) == null ? void 0 : a.name : n.value || o.placeholder), 1)
|
58
|
-
]),
|
59
|
-
_(g, {
|
60
|
-
mode: "out-in",
|
61
|
-
name: "TransitionTranslateY"
|
62
|
-
}, {
|
63
|
-
default: S(() => [
|
64
|
-
c.value ? (l(), s("ul", {
|
65
|
-
key: 0,
|
66
|
-
class: w([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
67
|
-
}, [
|
68
|
-
(l(!0), s(k, null, T(B.value, (i) => (l(), s("li", {
|
69
|
-
onClick: b((Y) => V(i), ["stop"])
|
70
|
-
}, [
|
71
|
-
i ? (l(), s("span", F, u(i.name || i), 1)) : d("", !0)
|
72
|
-
], 8, A))), 256))
|
73
|
-
], 2)) : d("", !0)
|
74
|
-
]),
|
75
|
-
_: 1
|
76
|
-
})
|
77
|
-
], 2)), [
|
78
|
-
[$(O), x]
|
79
|
-
]),
|
80
|
-
_(g, {
|
81
|
-
mode: "out-in",
|
82
|
-
name: "fade"
|
83
|
-
}, {
|
84
|
-
default: S(() => [
|
85
|
-
o.validation ? (l(), s("div", I, " * " + u(o.validation.message), 1)) : d("", !0)
|
86
|
-
]),
|
87
|
-
_: 1
|
88
|
-
})
|
89
|
-
], 64);
|
90
|
-
};
|
91
|
-
}
|
92
|
-
}, K = /* @__PURE__ */ D(P, [["__scopeId", "data-v-f58c80d7"]]);
|
1
|
+
const e = "";
|
93
2
|
export {
|
94
|
-
|
3
|
+
e as default
|
95
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("../FieldPhone/click-outside.cjs");require("./Select.vue.cjs");const h=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),g={key:0,class:"t-transp mn-r-small"},b={class:"w-100"},S=["onClick"],w={key:0,class:"w-100"},C={key:0,class:"mn-t-thin invalid-feedback"},_={__name:"Select",props:{label:String,select:[String,Object],property:String,placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(n,{emit:m}){const i=m;let f=B.default;const t=n,o=e.ref(t.property?u(t.select,t.property,t.options):t.select),s=e.ref(!1);function k(){s.value=!1}function u(l,p,c){for(const a of c)if(a[p]===l||a===l)return a;return null}e.watch(()=>t.select,l=>{o.value=t.property?u(t.select,t.property,t.options):t.select});const v=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options),d=()=>{s.value=!s.value,i(s.value?"focus":"blur")},y=l=>{o.value=l,d(),t.property?i("update:select",o.value[t.property]):i("update:select",o.value)};return(l,p)=>{var c,a;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[n.label?(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("span",null,e.toDisplayString(n.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",b,[e.createElementVNode("span",null,e.toDisplayString((c=o.value)!=null&&c.name?(a=o.value)==null?void 0:a.name:o.value||n.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([l.$attrs.class,"bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,r=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(V=>y(r),["stop"])},[r?(e.openBlock(),e.createElementBlock("span",w,e.toDisplayString(r.name||r),1)):e.createCommentVNode("",!0)],8,S))),256))],2)):e.createCommentVNode("",!0)]),_:1})],2)),[[e.unref(f),k]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[n.validation?(e.openBlock(),e.createElementBlock("div",C," * "+e.toDisplayString(n.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=h.default(_,[["__scopeId","data-v-f58c80d7"]]);exports.default=E;
|
@@ -1,4 +1,95 @@
|
|
1
|
-
|
1
|
+
import { ref as h, watch as j, computed as M, openBlock as l, createElementBlock as s, Fragment as k, withDirectives as N, withModifiers as b, normalizeClass as w, createElementVNode as m, toDisplayString as u, createCommentVNode as d, createVNode as _, Transition as g, withCtx as S, renderList as T, unref as $ } from "vue";
|
2
|
+
import z from "../FieldPhone/click-outside.js";
|
3
|
+
import "./Select.vue.js";
|
4
|
+
import D from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const E = {
|
6
|
+
key: 0,
|
7
|
+
class: "t-transp mn-r-small"
|
8
|
+
}, L = { class: "w-100" }, A = ["onClick"], F = {
|
9
|
+
key: 0,
|
10
|
+
class: "w-100"
|
11
|
+
}, I = {
|
12
|
+
key: 0,
|
13
|
+
class: "mn-t-thin invalid-feedback"
|
14
|
+
}, P = {
|
15
|
+
__name: "Select",
|
16
|
+
props: {
|
17
|
+
label: String,
|
18
|
+
select: [String, Object],
|
19
|
+
property: String,
|
20
|
+
placeholder: { type: String, default: "Please select an item" },
|
21
|
+
options: { type: Array, default: () => [] },
|
22
|
+
validation: Boolean
|
23
|
+
},
|
24
|
+
emits: ["update:select", "focus", "blur"],
|
25
|
+
setup(o, { emit: C }) {
|
26
|
+
const p = C;
|
27
|
+
let O = z;
|
28
|
+
const e = o, n = h(e.property ? f(e.select, e.property, e.options) : e.select), c = h(!1);
|
29
|
+
function x() {
|
30
|
+
c.value = !1;
|
31
|
+
}
|
32
|
+
function f(t, y, r) {
|
33
|
+
for (const a of r)
|
34
|
+
if (a[y] === t || a === t)
|
35
|
+
return a;
|
36
|
+
return null;
|
37
|
+
}
|
38
|
+
j(() => e.select, (t) => {
|
39
|
+
n.value = e.property ? f(e.select, e.property, e.options) : e.select;
|
40
|
+
});
|
41
|
+
const B = M(() => e.select ? e.options.filter((t) => t !== e.select) : e.options), v = () => {
|
42
|
+
c.value = !c.value, p(c.value ? "focus" : "blur");
|
43
|
+
}, V = (t) => {
|
44
|
+
n.value = t, v(), e.property ? p("update:select", n.value[e.property]) : p("update:select", n.value);
|
45
|
+
};
|
46
|
+
return (t, y) => {
|
47
|
+
var r, a;
|
48
|
+
return l(), s(k, null, [
|
49
|
+
N((l(), s("div", {
|
50
|
+
onClick: b(v, ["stop"]),
|
51
|
+
class: w([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
|
52
|
+
}, [
|
53
|
+
o.label ? (l(), s("div", E, [
|
54
|
+
m("span", null, u(o.label), 1)
|
55
|
+
])) : d("", !0),
|
56
|
+
m("li", L, [
|
57
|
+
m("span", null, u((r = n.value) != null && r.name ? (a = n.value) == null ? void 0 : a.name : n.value || o.placeholder), 1)
|
58
|
+
]),
|
59
|
+
_(g, {
|
60
|
+
mode: "out-in",
|
61
|
+
name: "TransitionTranslateY"
|
62
|
+
}, {
|
63
|
+
default: S(() => [
|
64
|
+
c.value ? (l(), s("ul", {
|
65
|
+
key: 0,
|
66
|
+
class: w([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
67
|
+
}, [
|
68
|
+
(l(!0), s(k, null, T(B.value, (i) => (l(), s("li", {
|
69
|
+
onClick: b((Y) => V(i), ["stop"])
|
70
|
+
}, [
|
71
|
+
i ? (l(), s("span", F, u(i.name || i), 1)) : d("", !0)
|
72
|
+
], 8, A))), 256))
|
73
|
+
], 2)) : d("", !0)
|
74
|
+
]),
|
75
|
+
_: 1
|
76
|
+
})
|
77
|
+
], 2)), [
|
78
|
+
[$(O), x]
|
79
|
+
]),
|
80
|
+
_(g, {
|
81
|
+
mode: "out-in",
|
82
|
+
name: "fade"
|
83
|
+
}, {
|
84
|
+
default: S(() => [
|
85
|
+
o.validation ? (l(), s("div", I, " * " + u(o.validation.message), 1)) : d("", !0)
|
86
|
+
]),
|
87
|
+
_: 1
|
88
|
+
})
|
89
|
+
], 64);
|
90
|
+
};
|
91
|
+
}
|
92
|
+
}, K = /* @__PURE__ */ D(P, [["__scopeId", "data-v-f58c80d7"]]);
|
2
93
|
export {
|
3
|
-
|
94
|
+
K as default
|
4
95
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),m=require("../../../node_modules/axios/lib/axios.cjs"),p=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Upload.vue2.cjs");const h=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),v={key:0,class:"t-transp mn-r-small"},g={key:1,class:"flex-nowrap flex w-100 flex-v-center"},k=["href"],y={key:2,class:"w-100"},x=["placeholder","multiple"],b={key:0,class:"mn-t-thin mn-b-thin invalid-feedback"},_={__name:"Upload",props:{field:String,label:null,type:"file",placeholder:"Upload a file",validation:!1,uploadPath:{type:String,default:"/files"},multiple:{type:Boolean,default:!1}},emits:["update:field","focus","blur","file-change"],setup(l,{emit:d}){const o=d,n=l,t=e.ref(n.field);e.ref(null),e.watch(()=>n.field,a=>{t.value=a});async function u(a){let i=a.target.files[0],r=new FormData;r.append("file",i);try{let s=await m.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/file?folderName=${encodeURIComponent(n.uploadPath)}`,r,{headers:{"Content-Type":"multipart/form-data"}});console.log(s.data),t.value=s.data[0].filepath,o("file-change",t.value)}catch(c){console.error(c)}}const f=()=>{t.value=null,o("update:field",null),o("file-change",null)};return(a,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[a.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),t.value?(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("a",{href:t.value,class:"w-100",target:"_blank"},e.toDisplayString(t.value),9,k),e.createVNode(p.default,{onClick:f,class:"cursor-pointer t-center flex-center flex radius-extra i-medium bg-red pd-micro"})])):(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("input",{onChange:u,type:"file",class:"w-100",placeholder:l.placeholder,multiple:l.multiple,id:"photo",name:"photo"},null,40,x)]))],2),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",b," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},w=h.default(_,[["__scopeId","data-v-d8ca273c"]]);exports.default=w;
|
@@ -1,4 +1,101 @@
|
|
1
|
-
|
1
|
+
import { ref as m, watch as y, openBlock as a, createElementBlock as o, Fragment as w, createElementVNode as n, normalizeClass as b, toDisplayString as r, createCommentVNode as p, createVNode as h, Transition as C, withCtx as _ } from "vue";
|
2
|
+
import k from "../../../node_modules/axios/lib/axios.js";
|
3
|
+
import U from "../../modules/icons/navigation/IconCross.vue.js";
|
4
|
+
import "./Upload.vue2.js";
|
5
|
+
import F from "../../../../_virtual/_plugin-vue_export-helper.js";
|
6
|
+
const I = {
|
7
|
+
key: 0,
|
8
|
+
class: "t-transp mn-r-small"
|
9
|
+
}, N = {
|
10
|
+
key: 1,
|
11
|
+
class: "flex-nowrap flex w-100 flex-v-center"
|
12
|
+
}, R = ["href"], $ = {
|
13
|
+
key: 2,
|
14
|
+
class: "w-100"
|
15
|
+
}, B = ["placeholder", "multiple"], D = {
|
16
|
+
key: 0,
|
17
|
+
class: "mn-t-thin mn-b-thin invalid-feedback"
|
18
|
+
}, L = {
|
19
|
+
__name: "Upload",
|
20
|
+
props: {
|
21
|
+
field: String,
|
22
|
+
label: null,
|
23
|
+
type: "file",
|
24
|
+
placeholder: "Upload a file",
|
25
|
+
validation: !1,
|
26
|
+
uploadPath: {
|
27
|
+
type: String,
|
28
|
+
default: "/files"
|
29
|
+
},
|
30
|
+
multiple: {
|
31
|
+
type: Boolean,
|
32
|
+
default: !1
|
33
|
+
}
|
34
|
+
},
|
35
|
+
emits: ["update:field", "focus", "blur", "file-change"],
|
36
|
+
setup(e, { emit: v }) {
|
37
|
+
const i = v, s = e, l = m(s.field);
|
38
|
+
m(null), y(() => s.field, (t) => {
|
39
|
+
l.value = t;
|
40
|
+
});
|
41
|
+
async function g(t) {
|
42
|
+
let c = t.target.files[0], d = new FormData();
|
43
|
+
d.append("file", c);
|
44
|
+
try {
|
45
|
+
let u = await k.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(s.uploadPath)}`, d, {
|
46
|
+
headers: {
|
47
|
+
"Content-Type": "multipart/form-data"
|
48
|
+
}
|
49
|
+
});
|
50
|
+
console.log(u.data), l.value = u.data[0].filepath, i("file-change", l.value);
|
51
|
+
} catch (f) {
|
52
|
+
console.error(f);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
const x = () => {
|
56
|
+
l.value = null, i("update:field", null), i("file-change", null);
|
57
|
+
};
|
58
|
+
return (t, c) => (a(), o(w, null, [
|
59
|
+
n("div", {
|
60
|
+
class: b([[t.$attrs.class, { "bg-fourth-nano": e.validation }], "flex-center flex-nowrap flex"])
|
61
|
+
}, [
|
62
|
+
e.label ? (a(), o("div", I, [
|
63
|
+
n("span", null, r(e.label), 1)
|
64
|
+
])) : p("", !0),
|
65
|
+
l.value ? (a(), o("div", N, [
|
66
|
+
n("a", {
|
67
|
+
href: l.value,
|
68
|
+
class: "w-100",
|
69
|
+
target: "_blank"
|
70
|
+
}, r(l.value), 9, R),
|
71
|
+
h(U, {
|
72
|
+
onClick: x,
|
73
|
+
class: "cursor-pointer t-center flex-center flex radius-extra i-medium bg-red pd-micro"
|
74
|
+
})
|
75
|
+
])) : (a(), o("div", $, [
|
76
|
+
n("input", {
|
77
|
+
onChange: g,
|
78
|
+
type: "file",
|
79
|
+
class: "w-100",
|
80
|
+
placeholder: e.placeholder,
|
81
|
+
multiple: e.multiple,
|
82
|
+
id: "photo",
|
83
|
+
name: "photo"
|
84
|
+
}, null, 40, B)
|
85
|
+
]))
|
86
|
+
], 2),
|
87
|
+
h(C, {
|
88
|
+
mode: "out-in",
|
89
|
+
name: "fade"
|
90
|
+
}, {
|
91
|
+
default: _(() => [
|
92
|
+
e.validation ? (a(), o("div", D, " * " + r(e.validation.message), 1)) : p("", !0)
|
93
|
+
]),
|
94
|
+
_: 1
|
95
|
+
})
|
96
|
+
], 64));
|
97
|
+
}
|
98
|
+
}, z = /* @__PURE__ */ F(L, [["__scopeId", "data-v-d8ca273c"]]);
|
2
99
|
export {
|
3
|
-
|
100
|
+
z as default
|
4
101
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,75 +1,4 @@
|
|
1
|
-
|
2
|
-
import U from "../../../node_modules/axios/lib/axios.js";
|
3
|
-
import "./Upload.vue.js";
|
4
|
-
import k from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
-
const N = {
|
6
|
-
key: 0,
|
7
|
-
class: "t-transp mn-r-small"
|
8
|
-
}, _ = { class: "w-100" }, R = ["placeholder", "multiple"], V = {
|
9
|
-
key: 0,
|
10
|
-
class: "mn-t-thin mn-b-thin invalid-feedback"
|
11
|
-
}, $ = {
|
12
|
-
__name: "Upload",
|
13
|
-
props: {
|
14
|
-
label: null,
|
15
|
-
type: "file",
|
16
|
-
placeholder: "Upload a file",
|
17
|
-
validation: !1,
|
18
|
-
multiple: {
|
19
|
-
type: Boolean,
|
20
|
-
default: !1
|
21
|
-
}
|
22
|
-
},
|
23
|
-
emits: ["update:field", "focus", "blur", "file-change"],
|
24
|
-
setup(e, { emit: f }) {
|
25
|
-
const p = f, u = e, a = c(null);
|
26
|
-
c(null);
|
27
|
-
async function h(l) {
|
28
|
-
let s = l.target.files[0], r = new FormData();
|
29
|
-
r.append("file", s);
|
30
|
-
try {
|
31
|
-
let v = await U.create({ baseURL: process.env.API_URL, withCredentials: !0 }).post(`/api/upload/file?folderName=${encodeURIComponent(u.uploadPath)}`, r, {
|
32
|
-
headers: {
|
33
|
-
"Content-Type": "multipart/form-data"
|
34
|
-
}
|
35
|
-
});
|
36
|
-
a.value = v.data.filepath, p("file-change", a.value);
|
37
|
-
} catch (d) {
|
38
|
-
console.error(d);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
return (l, s) => (o(), n(x, null, [
|
42
|
-
t("div", {
|
43
|
-
class: g([[l.$attrs.class, { "bg-fourth-nano": e.validation }], "flex-center flex-nowrap flex"])
|
44
|
-
}, [
|
45
|
-
y(i(a.value) + " ", 1),
|
46
|
-
e.label ? (o(), n("div", N, [
|
47
|
-
t("span", null, i(e.label), 1)
|
48
|
-
])) : m("", !0),
|
49
|
-
t("div", _, [
|
50
|
-
t("input", {
|
51
|
-
onChange: h,
|
52
|
-
type: "file",
|
53
|
-
class: "w-100",
|
54
|
-
placeholder: e.placeholder,
|
55
|
-
multiple: e.multiple,
|
56
|
-
id: "photo",
|
57
|
-
name: "photo"
|
58
|
-
}, null, 40, R)
|
59
|
-
])
|
60
|
-
], 2),
|
61
|
-
b(C, {
|
62
|
-
mode: "out-in",
|
63
|
-
name: "fade"
|
64
|
-
}, {
|
65
|
-
default: w(() => [
|
66
|
-
e.validation ? (o(), n("div", V, " * " + i(e.validation.message), 1)) : m("", !0)
|
67
|
-
]),
|
68
|
-
_: 1
|
69
|
-
})
|
70
|
-
], 64));
|
71
|
-
}
|
72
|
-
}, L = /* @__PURE__ */ k($, [["__scopeId", "data-v-5dd2f570"]]);
|
1
|
+
const _ = "";
|
73
2
|
export {
|
74
|
-
|
3
|
+
_ as default
|
75
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../node_modules/axios/lib/axios.cjs"),C=["src"],v={key:1,class:"flex-v-center flex-h-center flex w-100 h-100 bg-second"},g=e.createElementVNode("svg",{class:"i-medium",width:"104",height:"104",viewBox:"0 0 104 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"rgb(var(--white))",d:"M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"})],-1),w=[g],_={__name:"UploadImage",props:["uploadPath","photo"],emits:["update:photo"],setup(
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../../node_modules/axios/lib/axios.cjs"),C=["src"],v={key:1,class:"flex-v-center flex-h-center flex w-100 h-100 bg-second"},g=e.createElementVNode("svg",{class:"i-medium",width:"104",height:"104",viewBox:"0 0 104 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{fill:"rgb(var(--white))",d:"M21.2784 37.2973C18.8466 34.6628 18.8466 30.6098 21.2784 27.9753L47.2179 2.03584C48.6364 0.81993 50.2577 0.211974 51.8789 0.211974C53.5001 0.211974 55.1213 0.81993 56.5399 2.03584L82.4793 27.9753C84.9111 30.6098 84.9111 34.6628 82.4793 37.2973C79.8448 39.7291 75.7918 39.7291 73.1573 37.2973L58.3637 22.301V71.5454C58.3637 75.1932 55.5266 78.0303 51.8789 78.0303C48.2311 78.0303 45.394 75.1932 45.394 71.5454V22.301L30.6004 37.2973C27.966 39.7291 23.9129 39.7291 21.2784 37.2973ZM97.2729 71.5454C100.921 71.5454 103.758 74.3825 103.758 78.0303V97.4849C103.758 101.133 100.921 103.97 97.2729 103.97H6.48486C2.83713 103.97 0 101.133 0 97.4849V78.0303C0 74.3825 2.83713 71.5454 6.48486 71.5454H38.9092C38.9092 78.6382 44.7861 84.5151 51.8789 84.5151C58.9717 84.5151 64.8486 78.6382 64.8486 71.5454H97.2729ZM87.5456 92.6212C90.1801 92.6212 92.4092 90.392 92.4092 87.7576C92.4092 85.1231 90.1801 82.8939 87.5456 82.8939C84.9111 82.8939 82.682 85.1231 82.682 87.7576C82.682 90.392 84.9111 92.6212 87.5456 92.6212Z"})],-1),w=[g],_={__name:"UploadImage",props:["uploadPath","photo"],emits:["update:photo"],setup(n,{emit:u}){const l=e.ref(null),a=e.ref(null),r=n,d=u;e.watch(r,({photo:t})=>{t&&(l.value=t)});function f(){a.value.click()}async function i(t){let o=t.target.files[0];if(!o){console.error("No file selected");return}let s=new FormData;s.append("file",o),console.log("Sending file:",o.name);try{let p=await h.default.create({baseURL:process.env.API_URL,withCredentials:!0}).post(`/api/upload/multiple?folderName=${encodeURIComponent(r.uploadPath)}`,s);console.log("Upload response:",p),l.value=p.data[0].filepath,d("update:photo",l.value)}catch(c){console.error("Upload error:",c)}}function m(t){t.preventDefault(),i({target:{files:t.dataTransfer.files}})}return(t,o)=>(e.openBlock(),e.createElementBlock("div",{onClick:f,onDrop:m,onDragover:o[0]||(o[0]=e.withModifiers(()=>{},["prevent"])),class:"image-upload-area flex-v-center flex-h-center flex"},[l.value||n.photo?(e.openBlock(),e.createElementBlock("img",{key:0,src:(t.FILE_SERVER_URL||"")+(l.value||n.photo),alt:"Uploaded image",class:"w-100 h-100 object-fit-cover"},null,8,C)):(e.openBlock(),e.createElementBlock("div",v,w)),e.createElementVNode("input",{type:"file",name:"file",ref_key:"fileInput",ref:a,onChange:i,style:{display:"none"}},null,544)],32))}};exports.default=_;
|