@ozdao/prometheus-framework 0.2.31 → 0.2.32
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -1
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +222 -218
- package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/modular.js +102 -91
- package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/utils.js +138 -115
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +185 -185
- package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -1
- package/dist/node_modules/@noble/curves/esm/secp256k1.js +11 -8
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +29 -33
- package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_sha2.js +15 -15
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +38 -20
- package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/hmac.js +20 -20
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +20 -20
- package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/scrypt.js +41 -41
- package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha256.js +23 -29
- package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha3.js +44 -55
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +23 -41
- package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/utils.js +37 -33
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +20 -0
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +3974 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1202 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-autoplay/esm/embla-carousel-autoplay.esm.js +97 -0
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +37 -0
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -0
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +22 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +1 -4
- package/dist/node_modules/js-cookie/dist/js.cookie.cjs +1 -0
- package/dist/node_modules/js-cookie/dist/js.cookie.js +74 -0
- package/dist/node_modules/vue3-carousel/dist/carousel.es.cjs +4 -4
- package/dist/node_modules/vue3-carousel/dist/carousel.es.js +340 -244
- package/dist/node_modules/web3/lib/esm/abi.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/abi.js +5 -10
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +27 -24
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/version.js +1 -1
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/web3.js +53 -57
- package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/utils.js +3 -4
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +22 -19
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +72 -57
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +53 -61
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +8 -8
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +42 -42
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +19 -19
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +29 -29
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +51 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +132 -47
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +21 -15
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +15 -13
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +61 -53
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -1
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +36 -9
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +107 -103
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +135 -133
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +47 -31
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +18 -17
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +113 -111
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +27 -27
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +28 -40
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +10 -10
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +78 -75
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +8 -8
- package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/hash.js +44 -43
- package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/index.js +64 -62
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +78 -40
- package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/uint8array.js +16 -11
- package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/validation.js +45 -33
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +127 -104
- package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/address.js +12 -11
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +17 -13
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +7 -9
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +8 -8
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +3 -3
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +52 -52
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2501 -2482
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +2 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +75 -61
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +33 -33
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +4 -2
- package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.cjs +1 -0
- package/dist/prometheus-framework/node_modules/bignumber.js/bignumber.js +701 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +14 -7
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +2 -80
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +80 -2
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +62 -0
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +15 -15
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +51 -40
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +21 -21
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -7
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +2 -49
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +49 -2
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +53 -36
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +117 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +48 -40
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -2
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +20 -10
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +2 -98
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue.js +2 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +25 -27
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +55 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +55 -40
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +4 -0
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +2 -73
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +73 -2
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +3 -3
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +94 -33
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +69 -61
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +26 -27
- package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/EnterCode.json.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/EnterPassword.json.js +7 -7
- package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/ResetPassword.json.js +2 -2
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignIn.json.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/localization/SignUp.json.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue.js +9 -9
- 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 +90 -47
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +166 -133
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +86 -68
- 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 +105 -41
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +51 -42
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +2 -2
- 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 +108 -94
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue.js +40 -29
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +10 -9
- 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/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +27 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +21 -21
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +31 -28
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +48 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/VideoPlayer.vue.js +33 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Youtube.vue.js +13 -0
- 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 +106 -85
- 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 +31 -34
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +8 -8
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.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 +1 -1
- 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/globals/localization/vue-i18n.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/localization/vue-i18n.js +13 -6
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +50 -22
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconCommunity.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconGroups.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconPrice.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconShopcart.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/entities/IconTime.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/icons.client.js +38 -34
- package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/labels/LabelAppStore.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/labels/LabelGooglePlay.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconAdd.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/navigation/IconChevronRight.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconDelete.vue.js +27 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconMinus.vue.js +29 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconUpload.vue.js +33 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderImage.vue.js +21 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderOrganizationPic.vue.js +28 -0
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/placeholders/PlaceholderUserpic.vue.js +21 -20
- package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/instagram.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/icons/socials/line.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/line.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/reddit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/telegram.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/twitter.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/socials/youtube.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue.js +48 -35
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -0
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +63 -0
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/auth.validation.js +6 -8
- package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.cjs +1 -1
- package/dist/prometheus-framework/src/modules/middlewares/client/states.validation.js +5 -7
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/MenuItem.vue.js +16 -22
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +4 -0
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrderItem.vue.js +61 -88
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +104 -193
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +29 -31
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +129 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +45 -36
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +27 -26
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +6 -6
- 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 +85 -79
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Rating.vue.js +10 -10
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +29 -23
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +4 -4
- 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 +55 -169
- 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 +48 -59
- 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 +173 -94
- 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 +27 -20
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +43 -33
- 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 +67 -63
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.js +28 -30
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/members.router.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/organizations.js +9 -6
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/router/products.router.js +69 -20
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +38 -38
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +39 -44
- 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 +73 -44
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +25 -54
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +39 -39
- 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 +12 -12
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +18 -11
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +140 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +27 -23
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +24 -25
- 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 +246 -102
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +28 -24
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +23 -24
- 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 +56 -7
- 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 +82 -65
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +71 -54
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +4 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +60 -86
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +29 -37
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +32 -29
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +43 -107
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +46 -40
- 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 +89 -94
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/router/users.js +2 -2
- 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 +80 -71
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +29 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/orders/components/blocks/CardOrder.vue +2 -2
- package/src/modules/orders/components/pages/Orders.vue +0 -4
- package/src/modules/products/components/sections/FilterProducts.vue +9 -10
- package/src/modules/wallet/components/pages/Wallet.vue +2 -3
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
2
|
-
import l from "../../../../../node_modules/js-cookie/
|
3
|
-
import { reactive as
|
4
|
-
import { setError as
|
5
|
-
const
|
1
|
+
import n from "../../../../node_modules/axios/lib/axios.js";
|
2
|
+
import l from "../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
|
+
import { reactive as o, watch as u } from "vue";
|
4
|
+
import { setError as i } from "../../globals/store/globals.js";
|
5
|
+
const c = n.create({ baseURL: process.env.API_URL, withCredentials: !0 }), t = o({
|
6
6
|
all: [],
|
7
7
|
current: {
|
8
8
|
_id: null,
|
@@ -25,7 +25,8 @@ const m = i.create({ baseURL: process.env.API_URL, withCredentials: !0 }), s = u
|
|
25
25
|
telegram: "",
|
26
26
|
line: "",
|
27
27
|
facebook: "",
|
28
|
-
instagram: ""
|
28
|
+
instagram: "",
|
29
|
+
youtube: ""
|
29
30
|
},
|
30
31
|
rating: {
|
31
32
|
popularity: 0,
|
@@ -33,51 +34,50 @@ const m = i.create({ baseURL: process.env.API_URL, withCredentials: !0 }), s = u
|
|
33
34
|
amount: 0
|
34
35
|
}
|
35
36
|
}
|
36
|
-
}),
|
37
|
+
}), y = {
|
37
38
|
// Create
|
38
|
-
async create(
|
39
|
-
|
39
|
+
async create(e, r) {
|
40
|
+
e.owner = r;
|
40
41
|
try {
|
41
|
-
const
|
42
|
-
return console.log("Organization created successfully"),
|
43
|
-
} catch (
|
44
|
-
throw console.log("Organization creation failed"),
|
42
|
+
const a = await c.post("/api/organizations/create", e);
|
43
|
+
return console.log("Organization created successfully"), t.current = a.data, a.data;
|
44
|
+
} catch (a) {
|
45
|
+
throw console.log("Organization creation failed"), i(a), a;
|
45
46
|
}
|
46
47
|
},
|
47
|
-
|
48
|
-
|
49
|
-
|
48
|
+
async read(e = {}) {
|
49
|
+
let r = {};
|
50
|
+
e._id && (r._id = e._id), e.owner && (r.owner = e.owner), e.user && (r.user = e.user), e.member && (r.member = e.member), e.subscriber && (r.subscriber = e.subscriber), e.postable && (r.postable = e.postable), e.location && (r.location = e.location), e.search && (r.search = e.search), e.location && (r.location = e.location), e.locationRadius && (r.locationRadius = e.locationRadius), e.country && (r.country = e.country), e.state && (r.state = e.state), e.city && (r.city = e.city), e.categories && (r.categories = e.categories), e.prices && (r.prices = e.prices), e.delivery && (r.delivery = e.delivery), e.types && (r.types = e.types), e.skip && (r.skip = e.skip), e.limit && (r.limit = e.limit), r.contain = e.contain || [], r.sortParam = e.sortParam, r.sortOrder = e.sortOrder, console.log(r);
|
50
51
|
try {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
return c(e), Promise.reject(e);
|
52
|
+
const a = await c.get("/api/organizations", { params: r });
|
53
|
+
return e._id && Object.assign(t.current || {}, a.data[0]), Promise.resolve(a.data);
|
54
|
+
} catch (a) {
|
55
|
+
return i(a), Promise.reject(a);
|
56
56
|
}
|
57
57
|
},
|
58
58
|
// Update
|
59
|
-
async update(
|
60
|
-
return console.log(
|
61
|
-
(
|
62
|
-
(
|
59
|
+
async update(e, r) {
|
60
|
+
return console.log(e, r), await c.post(`/api/organizations/${e}/update`, r).then(
|
61
|
+
(a) => (console.log("Organization updated successfully"), Promise.resolve(a.data)),
|
62
|
+
(a) => (console.log("Updating organization failed"), Promise.reject(a))
|
63
63
|
);
|
64
64
|
},
|
65
65
|
// Remove
|
66
|
-
async remove(
|
67
|
-
await
|
68
|
-
(
|
69
|
-
|
70
|
-
let
|
71
|
-
return
|
66
|
+
async remove(e) {
|
67
|
+
await c.delete(`/api/organizations/${e}/delete`).then(
|
68
|
+
(r) => {
|
69
|
+
t.error = null;
|
70
|
+
let a = l.get("user"), s = JSON.parse(a);
|
71
|
+
return s.organization = null, l.set("user", JSON.stringify(s), { expires: 7, domain: ".osi.plus", sameSite: "none", secure: !0 }), Promise.resolve(r.data);
|
72
72
|
},
|
73
|
-
(
|
74
|
-
).catch((
|
75
|
-
|
73
|
+
(r) => (i(r), Promise.reject(r))
|
74
|
+
).catch((r) => {
|
75
|
+
i(r);
|
76
76
|
});
|
77
77
|
},
|
78
78
|
// Reset
|
79
79
|
async reset() {
|
80
|
-
|
80
|
+
t.current = {
|
81
81
|
_id: null,
|
82
82
|
profile: {
|
83
83
|
categories: [],
|
@@ -108,9 +108,9 @@ const m = i.create({ baseURL: process.env.API_URL, withCredentials: !0 }), s = u
|
|
108
108
|
};
|
109
109
|
}
|
110
110
|
};
|
111
|
-
|
111
|
+
u(t, (e, r) => {
|
112
112
|
});
|
113
113
|
export {
|
114
|
-
|
115
|
-
|
114
|
+
y as actions,
|
115
|
+
t as state
|
116
116
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("./Payments.vue2.cjs");const r=e.createElementVNode("section",{class:"br-bot-dark bg-white pd-big"},[e.createElementVNode("header",{class:"flex-nojustify flex-bottom flex-nowrap flex"},[e.createElementVNode("h1",{class:"mn-r-small"},"Заказы")])],-1),s={class:"flex-nowrap flex product-tab-header"},o={class:"round-stat-tab round-stat"},i={class:"cols-3 bg-grey pd-big"},c={class:"order-card col"},d={class:"flex block"},b={class:"w-100 mn-b-thin p-big"},u={class:"mn-b-small t-transp w-100"},m=e.createElementVNode("br",null,null,-1),g={__name:"Payments",setup(p){return n.useRoute(),n.useRouter(),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[r,e.createElementVNode("div",s,[e.createElementVNode("button",{onClick:a[0]||(a[0]=l=>t.changeTab("Создан")),class:e.normalizeClass([{"product-tab-active":t.data.currentTab==="Создан"},"br-right-dark w-100 bg-white flex-center pd-semi-big flex"])},[e.createTextVNode(" Новые "),e.createElementVNode("div",o,e.toDisplayString(t.tabLenght("Создан")),1)],2),e.createElementVNode("button",{onClick:a[1]||(a[1]=l=>t.changeTab("Подтвержден")),class:e.normalizeClass([{"product-tab-active":t.data.currentTab==="Подтвержден"},"br-right-dark w-100 bg-white flex-center pd-semi-big flex"])}," Подтвержденные ",2),e.createElementVNode("button",{onClick:a[2]||(a[2]=l=>t.changeTab("Ожидает отправки")),class:e.normalizeClass([{"product-tab-active":t.data.currentTab==="Ожидает отправки"},"br-right-dark w-100 bg-white flex-center pd-semi-big flex"])}," Ожидают отправки ",2),e.createElementVNode("button",{onClick:a[3]||(a[3]=l=>t.changeTab("Отправлен")),class:e.normalizeClass([{"product-tab-active":t.data.currentTab==="Отправлен"},"br-right-dark w-100 bg-white flex-center pd-semi-big flex"])}," Отправлены ",2),e.createElementVNode("button",{onClick:a[4]||(a[4]=l=>t.changeTab("all")),class:e.normalizeClass([{"product-tab-active":t.data.currentTab==="all"},"br-right-dark w-100 bg-white flex-center pd-semi-big flex"])}," Все ",2)]),e.createElementVNode("section",i,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.orders,l=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",d,[e.createElementVNode("p",b," Заказ #"+e.toDisplayString(l._id.slice(0,8)),1),e.createElementVNode("p",u,[e.createTextVNode(" Номер клиента: +7"+e.toDisplayString(l.phone),1),m])]),e.createElementVNode("p",{class:e.normalizeClass([{new:l.status==="Создан"},"mn-b-small order-status w-100 flex-center flex"])},e.toDisplayString(l.status)+" "+e.toDisplayString(t.DateToFormattedString(l.createdAt)),3)]))),256))])],64))}};exports.default=g;
|
@@ -5,7 +5,7 @@ const g = /* @__PURE__ */ t("section", { class: "br-bot-dark bg-white pd-big" },
|
|
5
5
|
/* @__PURE__ */ t("header", { class: "flex-nojustify flex-bottom flex-nowrap flex" }, [
|
6
6
|
/* @__PURE__ */ t("h1", { class: "mn-r-small" }, "Заказы")
|
7
7
|
])
|
8
|
-
], -1), p = { class: "flex-nowrap flex product-tab-header" }, m = { class: "round-stat-tab round-stat" }, f = { class: "cols-3 bg-grey pd-big" }, h = { class: "order-card col" }, w = { class: "flex block" }, k = { class: "w-100 mn-thin p-big" }, v = { class: "mn-small t-transp w-100" }, T = /* @__PURE__ */ t("br", null, null, -1), _ = {
|
8
|
+
], -1), p = { class: "flex-nowrap flex product-tab-header" }, m = { class: "round-stat-tab round-stat" }, f = { class: "cols-3 bg-grey pd-big" }, h = { class: "order-card col" }, w = { class: "flex block" }, k = { class: "w-100 mn-b-thin p-big" }, v = { class: "mn-b-small t-transp w-100" }, T = /* @__PURE__ */ t("br", null, null, -1), _ = {
|
9
9
|
__name: "Payments",
|
10
10
|
setup(x) {
|
11
11
|
return c(), u(), (e, s) => (l(), o(i, null, [
|
@@ -45,7 +45,7 @@ const g = /* @__PURE__ */ t("section", { class: "br-bot-dark bg-white pd-big" },
|
|
45
45
|
])
|
46
46
|
]),
|
47
47
|
t("p", {
|
48
|
-
class: n([{ new: a.status === "Создан" }, "mn-small order-status w-100 flex-center flex"])
|
48
|
+
class: n([{ new: a.status === "Создан" }, "mn-b-small order-status w-100 flex-center flex"])
|
49
49
|
}, r(a.status) + " " + r(e.DateToFormattedString(a.createdAt)), 3)
|
50
50
|
]))), 256))
|
51
51
|
])
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),i=require("../../../icons/navigation/IconEdit.vue.cjs"),c=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs");require("./CardLeftover.vue2.cjs");const d={class:"flex-column pos-relative flex-wrap block"},u={class:"w-100 mn-b-thin flex"},v={class:"p-big"},f={class:"w-100 spoiler"},m={key:0},p={class:"w-100 mn-b-thin flex"},g={class:"w-50 flex"},_={class:"t-right w-50 flex"},E={class:"w-100"},N={class:"t-transp"},V={__name:"CardLeftover",props:{leftover:Object},setup(t){a.useRouter();const r=e.ref(!1);function s(o,l){return l[o%100>4&&o%100<20?2:[2,0,1,1,1,2][o%10<5?o%10:5]]}return(o,l)=>(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",u,[e.createElementVNode("p",v,e.toDisplayString(t.leftover.type)+" #"+e.toDisplayString(t.leftover._id)+" "+e.toDisplayString(t.leftover.organization),1),e.createVNode(i.default,{onClick:l[0]||(l[0]=n=>o.$router.push({name:"LeftoverEdit",params:{_id:t.leftover.organization,leftover:t.leftover._id}})),class:"pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})]),e.createElementVNode("div",f,[e.createElementVNode("div",{onClick:l[1]||(l[1]=n=>r.value=!r.value),class:"mn-b-small flex"},[e.createElementVNode("span",null,"Всего товаров "+e.toDisplayString(t.leftover.positions.length),1)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",m,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.leftover.positions,n=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",g,[e.createElementVNode("span",null,e.toDisplayString(n.name),1)]),e.createElementVNode("div",_,[e.createElementVNode("span",E,[e.createTextVNode(e.toDisplayString(n.quantity)+" ",1),e.createElementVNode("span",N,e.toDisplayString(s(n.quantity,["единица"," единицы"," единиц"])),1)])])]))),256))])):e.createCommentVNode("",!0)]),_:1})])]))}},h=c.default(V,[["__scopeId","data-v-5c28c501"]]);exports.default=h;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js
CHANGED
@@ -1,67 +1,62 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRouter as
|
3
|
-
import
|
4
|
-
import
|
1
|
+
import { ref as f, openBlock as n, createElementBlock as a, createElementVNode as e, toDisplayString as o, createVNode as c, Transition as v, withCtx as u, Fragment as m, renderList as p, createTextVNode as _, createCommentVNode as h } from "vue";
|
2
|
+
import { useRouter as x } from "vue-router";
|
3
|
+
import g from "../../../icons/navigation/IconEdit.vue.js";
|
4
|
+
import w from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
5
5
|
import "./CardLeftover.vue2.js";
|
6
|
-
const
|
6
|
+
const k = { class: "flex-column pos-relative flex-wrap block" }, C = { class: "w-100 mn-b-thin flex" }, y = { class: "p-big" }, N = { class: "w-100 spoiler" }, b = { key: 0 }, E = { class: "w-100 mn-b-thin flex" }, L = { class: "w-50 flex" }, V = { class: "t-right w-50 flex" }, $ = { class: "w-100" }, q = { class: "t-transp" }, z = {
|
7
7
|
__name: "CardLeftover",
|
8
8
|
props: {
|
9
9
|
leftover: Object
|
10
10
|
},
|
11
11
|
setup(t) {
|
12
|
-
|
13
|
-
const i =
|
14
|
-
function
|
15
|
-
return
|
12
|
+
x();
|
13
|
+
const i = f(!1);
|
14
|
+
function d(s, l) {
|
15
|
+
return l[s % 100 > 4 && s % 100 < 20 ? 2 : [2, 0, 1, 1, 1, 2][s % 10 < 5 ? s % 10 : 5]];
|
16
16
|
}
|
17
|
-
return (s,
|
18
|
-
e("div",
|
19
|
-
e("
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
})),
|
31
|
-
class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
32
|
-
})
|
33
|
-
]),
|
34
|
-
S
|
17
|
+
return (s, l) => (n(), a("div", k, [
|
18
|
+
e("div", C, [
|
19
|
+
e("p", y, o(t.leftover.type) + " #" + o(t.leftover._id) + " " + o(t.leftover.organization), 1),
|
20
|
+
c(g, {
|
21
|
+
onClick: l[0] || (l[0] = (r) => s.$router.push({
|
22
|
+
name: "LeftoverEdit",
|
23
|
+
params: {
|
24
|
+
_id: t.leftover.organization,
|
25
|
+
leftover: t.leftover._id
|
26
|
+
}
|
27
|
+
})),
|
28
|
+
class: "pos-absolute pos-t-regular pos-r-regular i-regular t-transp"
|
29
|
+
})
|
35
30
|
]),
|
36
|
-
e("div",
|
31
|
+
e("div", N, [
|
37
32
|
e("div", {
|
38
|
-
onClick:
|
39
|
-
class: "mn-small flex"
|
33
|
+
onClick: l[1] || (l[1] = (r) => i.value = !i.value),
|
34
|
+
class: "mn-b-small flex"
|
40
35
|
}, [
|
41
|
-
e("span", null, "Всего товаров " +
|
36
|
+
e("span", null, "Всего товаров " + o(t.leftover.positions.length), 1)
|
42
37
|
]),
|
43
|
-
c(
|
44
|
-
default:
|
45
|
-
i.value ? (
|
46
|
-
(
|
47
|
-
e("div",
|
48
|
-
e("span", null,
|
38
|
+
c(v, { name: "fade" }, {
|
39
|
+
default: u(() => [
|
40
|
+
i.value ? (n(), a("div", b, [
|
41
|
+
(n(!0), a(m, null, p(t.leftover.positions, (r) => (n(), a("div", E, [
|
42
|
+
e("div", L, [
|
43
|
+
e("span", null, o(r.name), 1)
|
49
44
|
]),
|
50
|
-
e("div",
|
51
|
-
e("span",
|
52
|
-
|
53
|
-
e("span",
|
45
|
+
e("div", V, [
|
46
|
+
e("span", $, [
|
47
|
+
_(o(r.quantity) + " ", 1),
|
48
|
+
e("span", q, o(d(r.quantity, ["единица", " единицы", " единиц"])), 1)
|
54
49
|
])
|
55
50
|
])
|
56
51
|
]))), 256))
|
57
|
-
])) :
|
52
|
+
])) : h("", !0)
|
58
53
|
]),
|
59
54
|
_: 1
|
60
55
|
})
|
61
56
|
])
|
62
57
|
]));
|
63
58
|
}
|
64
|
-
},
|
59
|
+
}, D = /* @__PURE__ */ w(z, [["__scopeId", "data-v-5c28c501"]]);
|
65
60
|
export {
|
66
|
-
|
61
|
+
D as default
|
67
62
|
};
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.vue2.cjs"),y=require("../../../../components/Select/Select.vue.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),q={class:"gap-thin flex-nowrap flex"},k=["disabled"],N={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(c,{emit:i}){const t=c,s=i,l=e.ref(null),a=e.ref(null),d=e.ref("pcs"),u=e.ref(null),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type),e.watch([l,a,u,d],()=>{s("update",{...l.value,price:u.value,quantity:a.value,type:d.value})});function m(){s("add",{...l.value,price:u.value,quantity:a.value,type:d.value})}function v(){s("delete",{...l.value,price:u.value,quantity:a.value,type:d.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(b.default,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=o=>l.value=o),options:c.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white h-100 pd-small radius-small"},null,8,["modelValue","options"]),e.createVNode(n.default,{field:u.value,"onUpdate:field":r[1]||(r[1]=o=>u.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(n.default,{field:a.value,"onUpdate:field":r[3]||(r[3]=o=>a.value=o),type:"number",label:"Quantity",class:"bg-white pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(y.default,{select:d.value,"onUpdate:select":r[2]||(r[2]=o=>d.value=o),options:["pcs","g","ml"],class:"bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),c.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,k)),c.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]))}};exports.default=N;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,80 +1,109 @@
|
|
1
|
-
import { ref as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import
|
5
|
-
|
1
|
+
import { ref as i, computed as C, watch as m, openBlock as c, createElementBlock as n, createVNode as d, withCtx as P, unref as v, createCommentVNode as f } from "vue";
|
2
|
+
import y from "../../../../components/Field/Field.vue2.js";
|
3
|
+
import V from "../../../../components/Select/Select.vue.js";
|
4
|
+
import h from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
5
|
+
import q from "../../../icons/navigation/IconAdd.vue.js";
|
6
|
+
import S from "../../../icons/navigation/IconDelete.vue.js";
|
7
|
+
const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
6
8
|
__name: "CardPosition",
|
7
9
|
props: {
|
8
10
|
product: Object,
|
9
|
-
|
10
|
-
|
11
|
-
type: String,
|
12
|
-
price: Number
|
11
|
+
array: Array,
|
12
|
+
products: Array
|
13
13
|
},
|
14
14
|
emits: [
|
15
15
|
"add",
|
16
|
-
"
|
16
|
+
"delete",
|
17
|
+
"update"
|
17
18
|
],
|
18
|
-
setup(
|
19
|
-
const
|
20
|
-
() =>
|
19
|
+
setup(s, { emit: b }) {
|
20
|
+
const e = s, p = b, l = i(null), t = i(null), u = i("pcs"), a = i(null), g = C(
|
21
|
+
() => l.value && t.value > 0 && a.value > 0
|
21
22
|
);
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
m(e.array, () => {
|
24
|
+
l.value = e.product, t.value = e.product.quantity, a.value = e.product.price, u.value = e.product.type;
|
25
|
+
}), e.product && (l.value = e.product, t.value = e.product.quantity, a.value = e.product.price, u.value = e.product.type), m([l, t, a, u], () => {
|
26
|
+
p("update", {
|
27
|
+
...l.value,
|
25
28
|
price: a.value,
|
26
|
-
quantity:
|
27
|
-
type:
|
29
|
+
quantity: t.value,
|
30
|
+
type: u.value
|
31
|
+
});
|
32
|
+
});
|
33
|
+
function k() {
|
34
|
+
p("add", {
|
35
|
+
...l.value,
|
36
|
+
price: a.value,
|
37
|
+
quantity: t.value,
|
38
|
+
type: u.value
|
39
|
+
});
|
40
|
+
}
|
41
|
+
function w() {
|
42
|
+
p("delete", {
|
43
|
+
...l.value,
|
44
|
+
price: a.value,
|
45
|
+
quantity: t.value,
|
46
|
+
type: u.value
|
28
47
|
});
|
29
48
|
}
|
30
|
-
return (
|
31
|
-
d(
|
32
|
-
modelValue:
|
33
|
-
"onUpdate:modelValue":
|
34
|
-
options:
|
49
|
+
return (x, o) => (c(), n("div", U, [
|
50
|
+
d(h, {
|
51
|
+
modelValue: l.value,
|
52
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => l.value = r),
|
53
|
+
options: s.products,
|
35
54
|
label: "name",
|
36
55
|
multiple: !1,
|
37
56
|
taggable: !1,
|
38
57
|
placeholder: "Select a product",
|
39
|
-
class: "bg-
|
58
|
+
class: "bg-white h-100 pd-small radius-small"
|
40
59
|
}, null, 8, ["modelValue", "options"]),
|
41
|
-
d(
|
60
|
+
d(y, {
|
42
61
|
field: a.value,
|
43
|
-
"onUpdate:field":
|
62
|
+
"onUpdate:field": o[1] || (o[1] = (r) => a.value = r),
|
44
63
|
type: "number",
|
45
64
|
label: "Price",
|
46
|
-
symbol:
|
47
|
-
class: "bg-
|
65
|
+
symbol: x.returnCurrency(),
|
66
|
+
class: "bg-white pd-small radius-small"
|
48
67
|
}, null, 8, ["field", "symbol"]),
|
49
|
-
d(
|
50
|
-
field:
|
51
|
-
"onUpdate:field":
|
68
|
+
d(y, {
|
69
|
+
field: t.value,
|
70
|
+
"onUpdate:field": o[3] || (o[3] = (r) => t.value = r),
|
52
71
|
type: "number",
|
53
72
|
label: "Quantity",
|
54
|
-
class: "bg-
|
73
|
+
class: "bg-white pd-small radius-small"
|
55
74
|
}, {
|
56
|
-
default:
|
57
|
-
d(
|
58
|
-
select:
|
59
|
-
"onUpdate:select":
|
75
|
+
default: P(() => [
|
76
|
+
d(V, {
|
77
|
+
select: u.value,
|
78
|
+
"onUpdate:select": o[2] || (o[2] = (r) => u.value = r),
|
60
79
|
options: [
|
61
80
|
"pcs",
|
62
81
|
"g",
|
63
82
|
"ml"
|
64
83
|
],
|
65
|
-
class: "bg-
|
84
|
+
class: "bg-grey pd-thin radius-thin"
|
66
85
|
}, null, 8, ["select"])
|
67
86
|
]),
|
68
87
|
_: 1
|
69
88
|
}, 8, ["field"]),
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
89
|
+
s.product ? f("", !0) : (c(), n("button", {
|
90
|
+
key: 0,
|
91
|
+
disabled: !g.value,
|
92
|
+
onClick: k,
|
93
|
+
class: "bg-main aspect-1x1 radius-small pd-small"
|
94
|
+
}, [
|
95
|
+
d(v(q), { class: "i-semi" })
|
96
|
+
], 8, Q)),
|
97
|
+
s.product ? (c(), n("button", {
|
98
|
+
key: 1,
|
99
|
+
onClick: w,
|
100
|
+
class: "bg-red aspect-1x1 radius-small pd-small"
|
101
|
+
}, [
|
102
|
+
d(v(S), { class: "i-semi" })
|
103
|
+
])) : f("", !0)
|
104
|
+
]));
|
76
105
|
}
|
77
106
|
};
|
78
107
|
export {
|
79
|
-
|
108
|
+
F as default
|
80
109
|
};
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-i18n"),a=require("../elements/THC.vue.cjs"),n=require("../elements/Price.vue.cjs"),l=require("../../../icons/placeholders/PlaceholderImage.vue.cjs"),i=["src"],r={class:"pd-medium t-left product-card-content"},u={class:"mn-b-thin t-semi h4"},d={key:1,class:"mn-b-small t-transp p-small"},s={__name:"CardProduct",props:["product"],setup(t){return c.useI18n(),(o,m)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["radius-big cols-1 o-hidden",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black t-white":"bg-white"])},[e.createElementVNode("div",{class:e.normalizeClass(["o-hidden w-100 pos-relative aspect-1x1",t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-black":"bg-white"])},[t.product.images[0]?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+t.product.images[0],class:"pos-absolute object-fit-cover h-max-100 w-100"},null,8,i)):(e.openBlock(),e.createBlock(l.default,{key:1,class:"pos-absolute h-100 w-100"})),t.product.information.length>0?(e.openBlock(),e.createBlock(a.default,{key:2,product:t.product},null,8,["product"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",r,[t.product.information.length>0?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["t-semi h6",t.product.information[2]&&t.product.information[2].value==="AAAA"?"t-violet":"t-main"])},e.toDisplayString(t.product.information[0].value),3)):e.createCommentVNode("",!0),e.createElementVNode("p",u,e.toDisplayString(t.product.name),1),t.product.description&&!t.product.localization?(e.openBlock(),e.createElementBlock("p",d,e.toDisplayString(t.product.description.substring(0,99))+"... ",1)):e.createCommentVNode("",!0),e.createVNode(n.default,{product:t.product,size:"small",class:e.normalizeClass(t.product.information[2]&&t.product.information[2].value==="AAAA"?"bg-third t-white":"")},null,8,["product","class"])])],2))}};exports.default=s;
|
@@ -1,90 +1,61 @@
|
|
1
|
-
import { openBlock as o, createElementBlock as e, normalizeClass as c, createElementVNode as i, createBlock as
|
2
|
-
import { useI18n as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import "
|
6
|
-
const h = ["src"],
|
7
|
-
key: 1,
|
8
|
-
class: "h-100 w-100",
|
9
|
-
style: { "object-fit": "cover" },
|
10
|
-
width: "524",
|
11
|
-
height: "345",
|
12
|
-
viewBox: "0 0 524 345",
|
13
|
-
fill: "none",
|
14
|
-
xmlns: "http://www.w3.org/2000/svg"
|
15
|
-
}, C = /* @__PURE__ */ i("rect", {
|
16
|
-
width: "524",
|
17
|
-
height: "345",
|
18
|
-
fill: "white"
|
19
|
-
}, null, -1), g = /* @__PURE__ */ i("rect", {
|
20
|
-
width: "524",
|
21
|
-
height: "345",
|
22
|
-
fill: "white"
|
23
|
-
}, null, -1), w = /* @__PURE__ */ i("circle", {
|
24
|
-
cx: "262",
|
25
|
-
cy: "172",
|
26
|
-
r: "56",
|
27
|
-
fill: "#00ff88",
|
28
|
-
"fill-opacity": "0.1"
|
29
|
-
}, null, -1), A = /* @__PURE__ */ i("path", {
|
30
|
-
fill: "#00ff88",
|
31
|
-
d: "M229.348 186.819C230.243 191.884 233.393 194.231 238.458 193.273V193.644C238.458 198.832 241.206 201.581 246.364 201.581H291.545C296.733 201.581 299.481 198.74 299.481 193.644V162.576C299.481 157.481 296.733 154.64 291.545 154.64H285.677L284.071 145.653C283.175 140.619 279.995 138.303 274.899 139.198L230.398 147.043C225.302 147.969 223.048 151.15 223.943 156.246L229.348 186.819ZM230.83 186.479L225.456 156.06C224.715 151.86 226.537 149.266 230.737 148.525L275.084 140.712C279.13 140.001 281.848 141.762 282.62 145.993L284.102 154.64H246.364C241.206 154.64 238.458 157.419 238.458 162.576V191.729L238.365 191.76C234.165 192.532 231.571 190.679 230.83 186.479ZM239.971 162.669C239.971 158.376 242.164 156.153 246.456 156.153H291.483C295.59 156.153 297.968 158.376 297.968 162.669V190.093L284.565 177.894C283.145 176.597 281.662 175.856 279.809 175.856C277.987 175.856 276.628 176.566 275.146 177.863L262.052 189.073L257.142 184.565C255.875 183.36 254.764 182.743 253.158 182.743C251.675 182.743 250.656 183.36 249.39 184.503L239.971 193.212V162.669ZM257.636 178.419C261.373 178.419 264.43 175.3 264.43 171.471C264.43 167.734 261.373 164.584 257.636 164.584C253.806 164.584 250.718 167.734 250.718 171.471C250.718 175.3 253.806 178.419 257.636 178.419Z"
|
32
|
-
}, null, -1), v = [
|
33
|
-
C,
|
34
|
-
g,
|
35
|
-
w,
|
36
|
-
A
|
37
|
-
], L = { class: "pd-medium t-left product-card-content" }, b = { class: "mn-b-thin h4" }, p = {
|
1
|
+
import { openBlock as o, createElementBlock as e, normalizeClass as c, createElementVNode as i, createBlock as r, createCommentVNode as a, toDisplayString as n, createVNode as l } from "vue";
|
2
|
+
import { useI18n as u } from "vue-i18n";
|
3
|
+
import m from "../elements/THC.vue.js";
|
4
|
+
import s from "../elements/Price.vue.js";
|
5
|
+
import f from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
6
|
+
const h = ["src"], A = { class: "pd-medium t-left product-card-content" }, b = { class: "mn-b-thin t-semi h4" }, g = {
|
38
7
|
key: 1,
|
39
8
|
class: "mn-b-small t-transp p-small"
|
40
|
-
},
|
9
|
+
}, V = {
|
41
10
|
__name: "CardProduct",
|
42
11
|
props: ["product"],
|
43
12
|
setup(t) {
|
44
|
-
return
|
13
|
+
return u(), (d, p) => (o(), e("div", {
|
45
14
|
class: c([
|
46
|
-
"radius-big
|
15
|
+
"radius-big cols-1 o-hidden",
|
47
16
|
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black t-white" : "bg-white"
|
48
17
|
])
|
49
18
|
}, [
|
50
19
|
i("div", {
|
51
20
|
class: c([
|
52
|
-
"o-hidden w-100
|
21
|
+
"o-hidden w-100 pos-relative aspect-1x1",
|
53
22
|
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-black" : "bg-white"
|
54
23
|
])
|
55
24
|
}, [
|
56
25
|
t.product.images[0] ? (o(), e("img", {
|
57
26
|
key: 0,
|
58
|
-
src: (
|
59
|
-
class: "
|
60
|
-
}, null, 8, h)) : (o(),
|
61
|
-
|
27
|
+
src: (d.FILE_SERVER_URL || "") + t.product.images[0],
|
28
|
+
class: "pos-absolute object-fit-cover h-max-100 w-100"
|
29
|
+
}, null, 8, h)) : (o(), r(f, {
|
30
|
+
key: 1,
|
31
|
+
class: "pos-absolute h-100 w-100"
|
32
|
+
})),
|
33
|
+
t.product.information.length > 0 ? (o(), r(m, {
|
62
34
|
key: 2,
|
63
35
|
product: t.product
|
64
|
-
}, null, 8, ["product"])) :
|
36
|
+
}, null, 8, ["product"])) : a("", !0)
|
65
37
|
], 2),
|
66
|
-
i("div",
|
38
|
+
i("div", A, [
|
67
39
|
t.product.information.length > 0 ? (o(), e("p", {
|
68
40
|
key: 0,
|
69
41
|
class: c([
|
70
42
|
"t-semi h6",
|
71
43
|
t.product.information[2] && t.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
|
72
44
|
])
|
73
|
-
},
|
74
|
-
i("p", b,
|
75
|
-
t.product.description && !t.product.localization ? (o(), e("p",
|
76
|
-
|
45
|
+
}, n(t.product.information[0].value), 3)) : a("", !0),
|
46
|
+
i("p", b, n(t.product.name), 1),
|
47
|
+
t.product.description && !t.product.localization ? (o(), e("p", g, n(t.product.description.substring(0, 99)) + "... ", 1)) : a("", !0),
|
48
|
+
l(s, {
|
77
49
|
product: t.product,
|
78
50
|
size: "small",
|
79
51
|
class: c(
|
80
52
|
t.product.information[2] && t.product.information[2].value === "AAAA" ? "bg-third t-white" : ""
|
81
53
|
)
|
82
54
|
}, null, 8, ["product", "class"])
|
83
|
-
])
|
84
|
-
k
|
55
|
+
])
|
85
56
|
], 2));
|
86
57
|
}
|
87
58
|
};
|
88
59
|
export {
|
89
|
-
|
60
|
+
V as default
|
90
61
|
};
|