@ozdao/prometheus-framework 0.2.34 → 0.2.36
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/events.server.js +2 -1
- package/dist/events.server.mjs +2 -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 +13 -14
- package/dist/prometheus-framework.es.js +594 -805
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Button/Button.vue +26 -19
- package/src/components/FieldBig/FieldBig.vue +1 -1
- package/src/components/FieldPhone/FieldPhone.vue +55 -304
- package/src/components/FieldPhone/FieldPhone2.vue +671 -0
- package/src/components/FieldPhone/click-outside.js +16 -11
- package/src/components/Footer/Footer.vue +4 -4
- package/src/components/Header/Header.vue +2 -1
- package/src/components/Select/Select.vue +2 -1
- package/src/modules/chats/components/sections/ChatWindow.vue +3 -1
- package/src/modules/chats/store/chat.store.js +1 -3
- package/src/modules/events/components/pages/EditEvent.vue +2 -1
- package/src/modules/events/components/pages/Event.vue +8 -2
- package/src/modules/events/components/sections/SectionMainGuest.vue +1 -1
- package/src/modules/events/components/sections/SectionSpecialGuests.vue +0 -1
- package/src/modules/events/store/events.js +23 -3
- package/src/modules/globals/mixins/mixins.js +33 -2
- package/src/modules/globals/store/globals.js +1 -0
- package/src/modules/landing/components/sections/HeroGovernance.vue +156 -0
- package/src/modules/marketplace/components/sections/Filters.vue +3 -0
- package/src/modules/marketplace/router/marketplace.js +1 -0
- package/src/modules/orders/components/blocks/StatusHistory.vue +8 -3
- package/src/modules/orders/components/pages/EditOrder.vue +9 -11
- package/src/modules/orders/components/pages/FormOrder.vue +58 -46
- package/src/modules/orders/components/pages/Order.vue +63 -42
- package/src/modules/orders/components/sections/FormOrderDetails.vue +50 -18
- package/src/modules/orders/controllers/orders.controller.js +10 -1
- package/src/modules/orders/models/order.model.js +1 -0
- package/src/modules/orders/store/orders.js +21 -27
- package/src/modules/orders/store/shopcart.js +14 -2
- package/src/modules/organizations/components/sections/DetailsTab.vue +2 -2
- package/src/modules/products/components/sections/FilterProducts.vue +3 -4
- package/src/modules/products/components/sections/HeroRecommendation.vue +29 -2
- package/src/modules/products/components/sections/SectionProduct.vue +14 -9
- package/src/modules/products/controllers/products.controller.js +26 -17
- package/src/modules/products/routes/products.routes.js +6 -6
- package/src/modules/products/store/products.js +10 -10
- package/src/styles/config.scss +10 -3
@@ -1,7 +1,9 @@
|
|
1
1
|
<script>
|
2
2
|
import { defineComponent } from 'vue';
|
3
3
|
import { parsePhoneNumberFromString } from 'libphonenumber-js';
|
4
|
+
|
4
5
|
import utils, { getCountry, setCaretPosition } from './utils';
|
6
|
+
|
5
7
|
import clickOutside from './click-outside';
|
6
8
|
|
7
9
|
function getDefault(key) {
|
@@ -13,241 +15,44 @@
|
|
13
15
|
}
|
14
16
|
|
15
17
|
export default /*#__PURE__*/defineComponent({
|
16
|
-
name: 'Vue3ReactiveTelInput',
|
18
|
+
name: 'Vue3ReactiveTelInput',
|
17
19
|
directives: {
|
18
20
|
clickOutside,
|
19
21
|
},
|
20
22
|
props: {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
},
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
},
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
},
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
},
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
default: '',
|
55
|
-
},
|
56
|
-
/**
|
57
|
-
* class assign when the input number is invalid belong to the country code
|
58
|
-
*/
|
59
|
-
badInputClass: {
|
60
|
-
type: [String, Array, Object],
|
61
|
-
default: '',
|
62
|
-
},
|
63
|
-
/**
|
64
|
-
* class assign when the input number is valid belong to the country code
|
65
|
-
*/
|
66
|
-
goodInputClass: {
|
67
|
-
type: [String, Array, Object],
|
68
|
-
default: '',
|
69
|
-
},
|
70
|
-
/**
|
71
|
-
* style assign when the input number is invalid belong to the country code
|
72
|
-
*/
|
73
|
-
badInputStyle: {
|
74
|
-
type: [String, Array, Object],
|
75
|
-
default: '',
|
76
|
-
},
|
77
|
-
/**
|
78
|
-
* style assign when the input number is valid belong to the country code
|
79
|
-
*/
|
80
|
-
goodInputStyle: {
|
81
|
-
type: [String, Array, Object],
|
82
|
-
default: '',
|
83
|
-
},
|
84
|
-
/**
|
85
|
-
* list of all contries
|
86
|
-
*/
|
87
|
-
allCountries: {
|
88
|
-
type: Array,
|
89
|
-
default: () => getDefault('allCountries'),
|
90
|
-
},
|
91
|
-
/**
|
92
|
-
* flag to know if the value will be automatically formatted
|
93
|
-
*/
|
94
|
-
autoFormat: {
|
95
|
-
type: Boolean,
|
96
|
-
default: () => getDefault('autoFormat'),
|
97
|
-
},
|
98
|
-
validation: {
|
99
|
-
type: [Boolean,Object],
|
100
|
-
default: false,
|
101
|
-
},
|
102
|
-
/**
|
103
|
-
* customized validation RegExp or flag
|
104
|
-
*/
|
105
|
-
customValidate: {
|
106
|
-
type: [Boolean, RegExp],
|
107
|
-
default: () => getDefault('customValidate'),
|
108
|
-
},
|
109
|
-
/**
|
110
|
-
* a default country
|
111
|
-
*/
|
112
|
-
defaultCountry: {
|
113
|
-
// Default country code, ie: 'AU'
|
114
|
-
// Will override the current country of user
|
115
|
-
type: String,
|
116
|
-
default: () => getDefault('defaultCountry'),
|
117
|
-
},
|
118
|
-
/**
|
119
|
-
* flag defining whether the input must be disabled
|
120
|
-
*/
|
121
|
-
disabled: {
|
122
|
-
type: Boolean,
|
123
|
-
default: () => getDefault('disabled'),
|
124
|
-
},
|
125
|
-
/**
|
126
|
-
* flag definir if we'll automatically choose a default country
|
127
|
-
*/
|
128
|
-
autoDefaultCountry: {
|
129
|
-
type: Boolean,
|
130
|
-
default: () => getDefault('autoDefaultCountry'),
|
131
|
-
},
|
132
|
-
/**
|
133
|
-
* object of dropdown options
|
134
|
-
*/
|
135
|
-
dropdownOptions: {
|
136
|
-
type: Object,
|
137
|
-
default: () => getDefault('dropdownOptions'),
|
138
|
-
},
|
139
|
-
/**
|
140
|
-
* list of countries to ignore
|
141
|
-
*/
|
142
|
-
ignoredCountries: {
|
143
|
-
type: Array,
|
144
|
-
default: () => getDefault('ignoredCountries'),
|
145
|
-
},
|
146
|
-
/**
|
147
|
-
* object of input options
|
148
|
-
*/
|
149
|
-
inputOptions: {
|
150
|
-
type: Object,
|
151
|
-
default: () => getDefault('inputOptions'),
|
152
|
-
},
|
153
|
-
/**
|
154
|
-
* valid message to display
|
155
|
-
*/
|
156
|
-
invalidMsg: {
|
157
|
-
type: String,
|
158
|
-
default: () => getDefault('invalidMsg'),
|
159
|
-
},
|
160
|
-
/**
|
161
|
-
* the mode of the input
|
162
|
-
*/
|
163
|
-
mode: {
|
164
|
-
type: String,
|
165
|
-
default: () => getDefault('mode'),
|
166
|
-
},
|
167
|
-
/**
|
168
|
-
* limit the giving input to only manage your list of contry
|
169
|
-
*/
|
170
|
-
onlyCountries: {
|
171
|
-
type: Array,
|
172
|
-
default: () => getDefault('onlyCountries'),
|
173
|
-
},
|
174
|
-
/**
|
175
|
-
* the list of preferred countries
|
176
|
-
*/
|
177
|
-
preferredCountries: {
|
178
|
-
type: Array,
|
179
|
-
default: () => getDefault('preferredCountries'),
|
180
|
-
},
|
181
|
-
/**
|
182
|
-
* the flag defining if the input must only content valid characters
|
183
|
-
*/
|
184
|
-
validCharactersOnly: {
|
185
|
-
type: Boolean,
|
186
|
-
default: () => getDefault('validCharactersOnly'),
|
187
|
-
},
|
188
|
-
/**
|
189
|
-
* the root default class
|
190
|
-
*/
|
191
|
-
rootClass: {
|
192
|
-
type: [String, Array, Object],
|
193
|
-
default: () => getDefault('styleClasses'),
|
194
|
-
},
|
195
|
-
/**
|
196
|
-
* the input default class
|
197
|
-
*/
|
198
|
-
inputClass: {
|
199
|
-
type: [String, Array, Object],
|
200
|
-
default: () => {return ''},
|
201
|
-
},
|
202
|
-
/**
|
203
|
-
* the div input default class
|
204
|
-
*/
|
205
|
-
divInputClass: {
|
206
|
-
type: [String, Array, Object],
|
207
|
-
default: () => {return ''},
|
208
|
-
},
|
209
|
-
/**
|
210
|
-
* the root default style
|
211
|
-
*/
|
212
|
-
rootStyle: {
|
213
|
-
type: [String, Array, Object],
|
214
|
-
default: () => {return ''},
|
215
|
-
},
|
216
|
-
/**
|
217
|
-
* the dropdown button style
|
218
|
-
*/
|
219
|
-
dropdownStyle: {
|
220
|
-
type: [String, Array, Object],
|
221
|
-
default: () => {return ''},
|
222
|
-
},
|
223
|
-
/**
|
224
|
-
* the dropdown list style
|
225
|
-
*/
|
226
|
-
listStyle: {
|
227
|
-
type: [String, Array, Object],
|
228
|
-
default: () => {return ''},
|
229
|
-
},
|
230
|
-
/**
|
231
|
-
* the input style
|
232
|
-
*/
|
233
|
-
inputStyle: {
|
234
|
-
type: [String, Array, Object],
|
235
|
-
default: () => {return ''},
|
236
|
-
},
|
237
|
-
/**
|
238
|
-
* the input id
|
239
|
-
*/
|
240
|
-
inputId: {
|
241
|
-
type: [String, Array, Object],
|
242
|
-
default: () => {return ''},
|
243
|
-
},
|
244
|
-
/**
|
245
|
-
* the input placeholder
|
246
|
-
*/
|
247
|
-
Placeholder: {
|
248
|
-
type: [String, Object, Function],
|
249
|
-
default: () => {return ''},
|
250
|
-
},
|
23
|
+
modelValue: { type: String, default: '',},
|
24
|
+
badClass: { type: [String, Array, Object], default: '', },
|
25
|
+
goodClass: { type: [String, Array, Object], default: '', },
|
26
|
+
badStyle: { type: [String, Array, Object], default: '', },
|
27
|
+
goodStyle: { type: [String, Array, Object], default: '', },
|
28
|
+
badInputClass: { type: [String, Array, Object], default: '', },
|
29
|
+
goodInputClass: { type: [String, Array, Object], default: '', },
|
30
|
+
badInputStyle: { type: [String, Array, Object], default: '', },
|
31
|
+
goodInputStyle: { type: [String, Array, Object], default: '', },
|
32
|
+
allCountries: { type: Array, default: () => getDefault('allCountries'), },
|
33
|
+
autoFormat: { type: Boolean, default: () => getDefault('autoFormat'), },
|
34
|
+
validation: { type: [Boolean, Object], default: false, },
|
35
|
+
customValidate: { type: [Boolean, RegExp], default: () => getDefault('customValidate'), },
|
36
|
+
defaultCountry: { type: String, default: () => getDefault('defaultCountry'), },
|
37
|
+
disabled: { type: Boolean, default: () => getDefault('disabled'), },
|
38
|
+
autoDefaultCountry: { type: Boolean, default: () => getDefault('autoDefaultCountry'), },
|
39
|
+
dropdownOptions: { type: Object, default: () => getDefault('dropdownOptions'), },
|
40
|
+
ignoredCountries: { type: Array, default: () => getDefault('ignoredCountries'), },
|
41
|
+
inputOptions: { type: Object, default: () => getDefault('inputOptions'), },
|
42
|
+
invalidMsg: { type: String, default: () => getDefault('invalidMsg'), },
|
43
|
+
mode: { type: String, default: () => getDefault('mode'), },
|
44
|
+
onlyCountries: { type: Array, default: () => getDefault('onlyCountries'), },
|
45
|
+
preferredCountries: { type: Array, default: () => getDefault('preferredCountries'), },
|
46
|
+
validCharactersOnly: { type: Boolean, default: () => getDefault('validCharactersOnly'), },
|
47
|
+
rootClass: { type: [String, Array, Object], default: () => getDefault('styleClasses'), },
|
48
|
+
inputClass: { type: [String, Array, Object], default: () => {return ''}, },
|
49
|
+
divInputClass: { type: [String, Array, Object], default: () => {return ''}, },
|
50
|
+
rootStyle: { type: [String, Array, Object], default: () => {return ''}, },
|
51
|
+
dropdownStyle: { type: [String, Array, Object], default: () => {return ''}, },
|
52
|
+
listStyle: { type: [String, Array, Object], default: () => {return ''}, },
|
53
|
+
inputStyle: { type: [String, Array, Object], default: () => {return ''}, },
|
54
|
+
inputId: { type: [String, Array, Object], default: () => {return ''}, },
|
55
|
+
Placeholder: { type: [String, Object, Function], default: () => {return ''}, },
|
251
56
|
},
|
252
57
|
data() {
|
253
58
|
return {
|
@@ -257,7 +62,6 @@
|
|
257
62
|
action: null,
|
258
63
|
amount: null,
|
259
64
|
},
|
260
|
-
// vue3-reactive-tel-data
|
261
65
|
phone: this.modelValue ? this.modelValue : '',
|
262
66
|
activeCountryCode: '',
|
263
67
|
open: false,
|
@@ -311,15 +115,6 @@
|
|
311
115
|
// console.log(this.phoneObject?this.phoneObject.number !== "":false)
|
312
116
|
this.$nextTick(() => { this.phone = oldValue; this.onInput(); });
|
313
117
|
} else {
|
314
|
-
// let dataphone;
|
315
|
-
// console.log(this.phoneObject?this.phoneObject !== "":false)
|
316
|
-
// if(this.phoneObject?this.phoneObject !== "":false)
|
317
|
-
// {
|
318
|
-
// dataphone = this.phoneObject.number
|
319
|
-
// }
|
320
|
-
// else{
|
321
|
-
// dataphone = value
|
322
|
-
// }
|
323
118
|
this.phone = value;
|
324
119
|
}
|
325
120
|
},
|
@@ -334,9 +129,9 @@
|
|
334
129
|
},
|
335
130
|
},
|
336
131
|
mounted() {
|
337
|
-
|
338
|
-
|
339
|
-
|
132
|
+
if (this.value) {
|
133
|
+
this.phone = this.value;
|
134
|
+
}
|
340
135
|
|
341
136
|
this.cleanInvalidCharacters();
|
342
137
|
|
@@ -352,7 +147,6 @@
|
|
352
147
|
.catch(console.error)
|
353
148
|
.then(() => {
|
354
149
|
this.finishMounted = true;
|
355
|
-
// console.log(123)
|
356
150
|
});
|
357
151
|
},
|
358
152
|
computed: {
|
@@ -400,18 +194,15 @@
|
|
400
194
|
},
|
401
195
|
phoneObject() {
|
402
196
|
let result;
|
197
|
+
|
403
198
|
if (this.phone?.[0] === '+') {
|
404
199
|
result = parsePhoneNumberFromString(this.phone) || {};
|
405
200
|
} else {
|
406
201
|
result = parsePhoneNumberFromString(this.phone, this.activeCountryCode) || {};
|
407
202
|
}
|
408
203
|
|
409
|
-
const {
|
410
|
-
metadata,
|
411
|
-
...phoneObject
|
412
|
-
} = result;
|
204
|
+
const { metadata, ...phoneObject } = result;
|
413
205
|
|
414
|
-
// console.log(result.isValid?result.isValid():'loll')
|
415
206
|
let valid = result.isValid?.();
|
416
207
|
let formatted = this.phone;
|
417
208
|
|
@@ -483,68 +274,28 @@
|
|
483
274
|
methods: {
|
484
275
|
resetPlaceholder() {
|
485
276
|
this.parsedPlaceholder = this.inputOptions.placeholder;
|
486
|
-
// TODO: Fix dynamicPlaceholder
|
487
|
-
// if (!this.inputOptions.dynamicPlaceholder) {
|
488
|
-
// return result;
|
489
|
-
// }
|
490
|
-
// getExamples()
|
491
|
-
// .then((results) => {
|
492
|
-
// examples = results;
|
493
|
-
// const mode = (!this.mode || this.mode === 'auto') ? 'international' : this.mode;
|
494
|
-
// const number = getExampleNumber(this.activeCountryCode.toUpperCase(), results);
|
495
|
-
// this.parsedPlaceholder = number?.format(mode.toUpperCase()) || this.placeholder;
|
496
|
-
// })
|
497
|
-
// .catch(console.error);
|
498
277
|
},
|
499
278
|
initializeCountry() {
|
500
279
|
return new Promise((resolve) => {
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
if (this.
|
505
|
-
resolve();
|
506
|
-
return;
|
507
|
-
}
|
508
|
-
/**
|
509
|
-
* 2. Use default country if passed from parent
|
510
|
-
*/
|
511
|
-
if (this.defaultCountry) {
|
512
|
-
this.choose(this.defaultCountry);
|
513
|
-
resolve();
|
514
|
-
return;
|
515
|
-
}
|
516
|
-
|
280
|
+
// 1. If the phone included prefix (i.e. +12), try to get the country and set it
|
281
|
+
if (this.phone?.[0] === '+') { resolve(); return; }
|
282
|
+
// 2. Use default country if passed from parent
|
283
|
+
if (this.defaultCountry) { this.choose(this.defaultCountry); resolve(); return; }
|
517
284
|
const fallbackCountry = this.preferredCountries[0] || this.filteredCountries[0];
|
518
|
-
|
519
|
-
* 3. Check if fetching country based on user's IP is allowed, set it as the default country
|
520
|
-
*/
|
285
|
+
// 3. Check if fetching country based on user's IP is allowed, set it as the default country
|
521
286
|
if (this.autoDefaultCountry) {
|
522
287
|
getCountry()
|
523
|
-
.then((res) => {
|
524
|
-
|
525
|
-
})
|
526
|
-
.catch((error) => {
|
527
|
-
console.warn(error);
|
528
|
-
/**
|
529
|
-
* 4. Use the first country from preferred list (if available) or all countries list
|
530
|
-
*/
|
531
|
-
this.choose(fallbackCountry);
|
532
|
-
})
|
533
|
-
.then(() => {
|
534
|
-
resolve();
|
535
|
-
});
|
288
|
+
.then((res) => { this.choose(res || this.activeCountryCode); })
|
289
|
+
.catch((error) => { console.warn(error); this.choose(fallbackCountry); })
|
290
|
+
.then(() => { resolve(); });
|
536
291
|
} else {
|
537
|
-
|
538
|
-
* 4. Use the first country from preferred list (if available) or all countries list
|
539
|
-
*/
|
292
|
+
// 4. Use the first country from preferred list (if available) or all countries list
|
540
293
|
this.choose(fallbackCountry);
|
541
294
|
resolve();
|
542
295
|
}
|
543
296
|
});
|
544
297
|
},
|
545
|
-
|
546
|
-
* Get the list of countries from the list of iso2 code
|
547
|
-
*/
|
298
|
+
// Get the list of countries from the list of iso2 code
|
548
299
|
getCountries(list = []) {
|
549
300
|
return list
|
550
301
|
.map((countryCode) => this.findCountry(countryCode))
|
@@ -628,9 +379,6 @@
|
|
628
379
|
},
|
629
380
|
onInput() {
|
630
381
|
this.$refs.input.setCustomValidity(this.phoneObject.valid ? '' : this.invalidMsg);
|
631
|
-
// Returns response.number to assign it to v-model (if being used)
|
632
|
-
// Returns full response for cases @input is used
|
633
|
-
// and parent wants to return the whole response.
|
634
382
|
this.emitInput(this.phoneObject);
|
635
383
|
},
|
636
384
|
emitInput(value) {
|
@@ -787,9 +535,11 @@
|
|
787
535
|
<!-- <div :class="[divInputClass]" > -->
|
788
536
|
<input
|
789
537
|
v-model="phone"
|
790
|
-
|
538
|
+
inputmode="numeric"
|
539
|
+
pattern="\d*"
|
791
540
|
ref="input"
|
792
541
|
:type="inputOptions.type"
|
542
|
+
|
793
543
|
:autocomplete="inputOptions.autocomplete"
|
794
544
|
:autofocus="inputOptions.autofocus"
|
795
545
|
:class="['vti__input', inputOptions.styleClasses, inputClass, Iclasses]"
|
@@ -819,6 +569,7 @@
|
|
819
569
|
</div>
|
820
570
|
</transition>
|
821
571
|
</template>
|
572
|
+
|
822
573
|
<style scoped>
|
823
574
|
.vue3-reactive-tel-input{
|
824
575
|
display:flex
|