@ozdao/prometheus-framework 0.2.44 → 0.2.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-AMWMdo3t.js +91 -0
- package/dist/main-R6dlNKp-.mjs +13606 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_assert.js +6 -6
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/_u64.js +8 -8
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -1
- package/dist/node_modules/@noble/hashes/esm/sha512.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +2 -2
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework/node_modules/axios/lib/utils.js +3 -3
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.cjs +1 -1
- package/dist/node_modules/@ozdao/prometheus-framework/dist/prometheus-framework.es.js +6 -6
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -1
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +3 -4
- package/dist/node_modules/vue3-carousel/dist/carousel.css.cjs +1 -1
- package/dist/node_modules/vue3-carousel/dist/carousel.css.js +1 -4
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +36 -36
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +27 -27
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +24 -24
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +33 -33
- 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 +10 -10
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +13 -13
- 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 +110 -110
- 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 +26 -26
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +14 -14
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +36 -36
- 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 +20 -20
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +23 -23
- 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 +17 -17
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +11 -11
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +24 -24
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +25 -25
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_polling.js +19 -19
- 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 +39 -39
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +7 -7
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -2
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +28 -28
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -1
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +3 -3
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +8 -8
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +15 -15
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +16 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +26 -26
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -1
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +2 -2
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +19 -19
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +35 -35
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +25 -25
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +25 -25
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +33 -33
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +5 -5
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +19 -19
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -1
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +27 -27
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -1
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +25 -25
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +15 -15
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +19 -19
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +17 -17
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +5 -5
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +5 -5
- package/dist/products.server.js +875 -0
- package/dist/products.server.mjs +875 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +1 -63
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +20 -20
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +18 -18
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue.js +1 -4
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/vue-tags-input.scss.js +1 -4
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -4
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Magnifier/Magnifier.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +70 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +95 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -4
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/sections/SliderFeatures.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +2 -2
- 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.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/layouts/Backoffice.vue2.js +1 -4
- 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/Community.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue2.js +1 -4
- 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/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/JoinUs.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue2.js +1 -4
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +65 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
- 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/elements/ButtonJoin.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue2.js +1 -4
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue2.js +1 -4
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- 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/BackofficeGallery.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue2.js +1 -4
- 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/gallery/components/sections/GalleryWithCategories.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/components/sections/MobileApp.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.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 +1 -4
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/CardOrder.vue.js +1 -4
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue2.js +1 -4
- 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/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue2.js +1 -4
- 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 +1 -1
- 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/blocks/DepartmentMemberModify.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentSub.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue2.js +1 -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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue2.js +1 -4
- 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/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/Documents.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue2.js +1 -4
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Unit.vue.js +1 -4
- 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/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.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 +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue2.js +1 -4
- 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 +14 -14
- 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 +14 -14
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue.js +43 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/CategoryCard.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue2.js +1 -4
- 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/blocks/ImagesThumbnails.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +39 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/THC.vue2.js +1 -4
- 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/EditLeftover.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue2.js +1 -4
- 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 +20 -21
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue2.js +1 -4
- 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 +90 -80
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +87 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue2.js +1 -0
- 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 +7 -6
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +138 -0
- 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/products/components/sections/FilterProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +114 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue2.js +1 -4
- 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 +51 -62
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +53 -0
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -0
- package/dist/prometheus-framework/src/modules/products/products.client.js +56 -0
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +3 -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/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue2.js +1 -4
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/store/wallet.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-HvAJWryM.js +1 -0
- package/dist/web-XMv5d7hK.mjs +55 -0
- package/package.json +1 -1
- package/src/components/Feed/Feed.vue +9 -7
- package/src/modules/products/components/blocks/CardPosition.vue +1 -1
- package/src/modules/products/components/blocks/CardProduct.vue +2 -3
- package/src/modules/products/components/pages/Product.vue +1 -1
- package/src/modules/products/components/pages/ProductEdit.vue +15 -0
- package/src/modules/products/components/pages/ProductRecommmendation.vue +2 -2
- package/src/modules/products/components/pages/Products.vue +1 -0
- package/src/modules/products/components/sections/SectionProduct.vue +10 -10
- package/src/modules/products/products.client.js +76 -20
- package/src/modules/products/products.server.js +8 -4
- package/src/modules/products/router/products.router.js +4 -2
- package/src/styles/base/all.scss +4 -1
@@ -1,89 +1,99 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRoute as
|
1
|
+
import { ref as N, onMounted as P, openBlock as i, createElementBlock as s, createVNode as a, withCtx as n, createElementVNode as m, toDisplayString as V, unref as x, createBlock as v, createTextVNode as k, createCommentVNode as q, Fragment as p, renderList as f } from "vue";
|
2
|
+
import { useRoute as A, useRouter as B } from "vue-router";
|
3
3
|
import "vue-i18n";
|
4
4
|
import "../../../globals/localization/vue-i18n.js";
|
5
5
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
6
|
-
import
|
6
|
+
import d from "../../../../components/Block/Block.vue.js";
|
7
7
|
import "../../../../components/Tab/Tab.vue.js";
|
8
|
-
import
|
9
|
-
import "../../../../components/Select/Select.
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import "../../../../components/Popup/Popup.
|
13
|
-
import
|
14
|
-
import
|
15
|
-
import
|
8
|
+
import u from "../../../../components/Field/Field.vue2.js";
|
9
|
+
import "../../../../components/Select/Select.vue2.js";
|
10
|
+
import E from "../../../../components/Checkbox/Checkbox.vue.js";
|
11
|
+
import U from "../../../../components/Button/Button.vue2.js";
|
12
|
+
import "../../../../components/Popup/Popup.vue2.js";
|
13
|
+
import R from "../../../../components/EditImages/EditImages.vue.js";
|
14
|
+
import w from "../../../icons/navigation/IconDelete.vue.js";
|
15
|
+
import C from "../blocks/CardPosition.vue.js";
|
16
16
|
import S from "../sections/EditProductInfo.vue.js";
|
17
|
-
import { actions as
|
18
|
-
import { state as e, actions as
|
17
|
+
import { actions as h } from "../../../globals/store/globals.js";
|
18
|
+
import { state as e, actions as _ } from "../../store/products.js";
|
19
19
|
import { actions as T, state as F } from "../../store/categories.js";
|
20
20
|
import "./ProductEdit.vue2.js";
|
21
|
-
const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class: "mn-r-auto" },
|
21
|
+
const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class: "mn-r-auto" }, I = { class: "cols-2 gap-thin" }, M = { class: "radius-small h-100 i-big flex-center flex aspect-1x1 bg-red" }, O = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, j = { class: "radius-small pd-small flex-center flex aspect-1x1 bg-red" }, pe = {
|
22
22
|
__name: "ProductEdit",
|
23
|
-
setup(
|
24
|
-
const
|
25
|
-
|
26
|
-
await T.fetchCategories()
|
23
|
+
setup(G) {
|
24
|
+
const o = A(), D = B(), g = N(e.all);
|
25
|
+
P(async () => {
|
26
|
+
await T.fetchCategories();
|
27
|
+
try {
|
28
|
+
const b = await _.read({
|
29
|
+
organization: o.params._id,
|
30
|
+
limit: 100
|
31
|
+
});
|
32
|
+
g.value = b;
|
33
|
+
} catch {
|
34
|
+
console.error("error");
|
35
|
+
}
|
36
|
+
o.params.product && await _.read({ _id: o.params.product }), e.current.ingridients || (e.current.ingridients = []);
|
27
37
|
});
|
28
|
-
function D() {
|
29
|
-
d.params.product ? h.update(d.params.product, e.current) : h.create(d.params._id, e.current);
|
30
|
-
}
|
31
38
|
function $() {
|
32
|
-
|
39
|
+
o.params.product ? _.update(o.params.product, e.current) : _.create(o.params._id, e.current);
|
40
|
+
}
|
41
|
+
function z() {
|
42
|
+
_.deleteProduct(e.current._id);
|
33
43
|
}
|
34
|
-
function
|
35
|
-
|
44
|
+
function y() {
|
45
|
+
D.push({
|
36
46
|
name: "Organization",
|
37
47
|
params: {
|
38
|
-
_id:
|
48
|
+
_id: o.params._id
|
39
49
|
}
|
40
50
|
});
|
41
51
|
}
|
42
|
-
return (
|
43
|
-
a(
|
52
|
+
return (b, c) => (i(), s("div", L, [
|
53
|
+
a(d, { class: "flex-nowrap flex-v-center flex" }, {
|
44
54
|
default: n(() => [
|
45
|
-
m("h1", Q,
|
46
|
-
x(
|
55
|
+
m("h1", Q, V(x(o).params.product ? e.current.name : "Create Product"), 1),
|
56
|
+
x(o).params.product ? (i(), v(U, {
|
47
57
|
key: 0,
|
48
|
-
submit:
|
49
|
-
callback:
|
58
|
+
submit: z,
|
59
|
+
callback: y,
|
50
60
|
class: "bg-red mn-r-thin"
|
51
61
|
}, {
|
52
62
|
default: n(() => [
|
53
|
-
|
63
|
+
k(" Delete ")
|
54
64
|
]),
|
55
65
|
_: 1
|
56
|
-
})) :
|
57
|
-
a(
|
58
|
-
submit:
|
59
|
-
callback:
|
66
|
+
})) : q("", !0),
|
67
|
+
a(U, {
|
68
|
+
submit: $,
|
69
|
+
callback: y,
|
60
70
|
class: "bg-main"
|
61
71
|
}, {
|
62
72
|
default: n(() => [
|
63
|
-
|
73
|
+
k(" Save ")
|
64
74
|
]),
|
65
75
|
_: 1
|
66
76
|
})
|
67
77
|
]),
|
68
78
|
_: 1
|
69
79
|
}),
|
70
|
-
a(
|
80
|
+
a(d, {
|
71
81
|
placeholder: "The product doesn't have any images yet.",
|
72
82
|
class: "h-min"
|
73
83
|
}, {
|
74
84
|
default: n(() => [
|
75
|
-
a(
|
85
|
+
a(R, {
|
76
86
|
images: e.current.images,
|
77
87
|
uploadPath: "photos",
|
78
|
-
"onUpdate:images":
|
88
|
+
"onUpdate:images": c[0] || (c[0] = (t) => {
|
79
89
|
e.current.images = t;
|
80
90
|
})
|
81
91
|
}, null, 8, ["images"])
|
82
92
|
]),
|
83
93
|
_: 1
|
84
94
|
}),
|
85
|
-
m("div",
|
86
|
-
a(
|
95
|
+
m("div", I, [
|
96
|
+
a(d, { title: "Profile" }, {
|
87
97
|
default: n(() => [
|
88
98
|
a(S, {
|
89
99
|
product: e.current
|
@@ -91,9 +101,9 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
91
101
|
]),
|
92
102
|
_: 1
|
93
103
|
}),
|
94
|
-
a(
|
104
|
+
a(d, { title: "Categories" }, {
|
95
105
|
default: n(() => [
|
96
|
-
(
|
106
|
+
(i(!0), s(p, null, f(F.all, (t, r) => (i(), v(E, {
|
97
107
|
label: t.name,
|
98
108
|
name: "categories",
|
99
109
|
value: t.url,
|
@@ -104,7 +114,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
104
114
|
]),
|
105
115
|
_: 1
|
106
116
|
}),
|
107
|
-
a(
|
117
|
+
a(d, {
|
108
118
|
title: "Parameters",
|
109
119
|
placeholder: "No parameters added yet",
|
110
120
|
actions: [{
|
@@ -114,25 +124,25 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
114
124
|
class: "cols-1 gap-thin"
|
115
125
|
}, {
|
116
126
|
default: n(() => [
|
117
|
-
(
|
127
|
+
(i(!0), s(p, null, f(e.current.information, (t, r) => (i(), s("div", {
|
118
128
|
class: "gap-thin flex-nowrap flex",
|
119
|
-
key:
|
129
|
+
key: r
|
120
130
|
}, [
|
121
|
-
a(
|
131
|
+
a(u, {
|
122
132
|
field: t.name,
|
123
133
|
"onUpdate:field": (l) => t.name = l,
|
124
134
|
placeholder: "Название параметра",
|
125
135
|
class: "w-100 bg-white radius-small pd-medium"
|
126
136
|
}, null, 8, ["field", "onUpdate:field"]),
|
127
|
-
a(
|
137
|
+
a(u, {
|
128
138
|
field: t.value,
|
129
139
|
"onUpdate:field": (l) => t.value = l,
|
130
140
|
placeholder: "Значение параметра",
|
131
141
|
class: "w-100 bg-white radius-small pd-medium"
|
132
142
|
}, null, 8, ["field", "onUpdate:field"]),
|
133
|
-
m("div",
|
134
|
-
a(
|
135
|
-
onClick: () => e.current.information.splice(
|
143
|
+
m("div", M, [
|
144
|
+
a(w, {
|
145
|
+
onClick: () => e.current.information.splice(r, 1),
|
136
146
|
class: "i-medium"
|
137
147
|
}, null, 8, ["onClick"])
|
138
148
|
])
|
@@ -140,7 +150,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
140
150
|
]),
|
141
151
|
_: 1
|
142
152
|
}, 8, ["actions"]),
|
143
|
-
a(
|
153
|
+
a(d, {
|
144
154
|
title: "Localization",
|
145
155
|
placeholder: "No localizations added yet",
|
146
156
|
actions: [{
|
@@ -149,25 +159,25 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
149
159
|
}]
|
150
160
|
}, {
|
151
161
|
default: n(() => [
|
152
|
-
(
|
162
|
+
(i(!0), s(p, null, f(e.current.localization, (t, r) => (i(), s("div", {
|
153
163
|
class: "gap-thin mn-b-thin flex-nowrap flex",
|
154
|
-
key:
|
164
|
+
key: r
|
155
165
|
}, [
|
156
|
-
a(
|
166
|
+
a(u, {
|
157
167
|
field: t.name,
|
158
168
|
"onUpdate:field": (l) => t.name = l,
|
159
169
|
placeholder: "Название параметра",
|
160
170
|
class: "w-100 bg-white radius-small pd-medium"
|
161
171
|
}, null, 8, ["field", "onUpdate:field"]),
|
162
|
-
a(
|
172
|
+
a(u, {
|
163
173
|
field: t.value,
|
164
174
|
"onUpdate:field": (l) => t.value = l,
|
165
175
|
placeholder: "Значение параметра",
|
166
176
|
class: "w-100 bg-white radius-small pd-medium"
|
167
177
|
}, null, 8, ["field", "onUpdate:field"]),
|
168
|
-
m("div",
|
169
|
-
a(
|
170
|
-
onClick: () => e.current.localization.splice(
|
178
|
+
m("div", O, [
|
179
|
+
a(w, {
|
180
|
+
onClick: () => e.current.localization.splice(r, 1),
|
171
181
|
class: "i-medium"
|
172
182
|
}, null, 8, ["onClick"])
|
173
183
|
])
|
@@ -176,7 +186,7 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
176
186
|
_: 1
|
177
187
|
}, 8, ["actions"])
|
178
188
|
]),
|
179
|
-
a(
|
189
|
+
a(d, {
|
180
190
|
title: "Quantity Discount",
|
181
191
|
class: "mn-b-semi",
|
182
192
|
actions: [{
|
@@ -185,25 +195,25 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
185
195
|
}]
|
186
196
|
}, {
|
187
197
|
default: n(() => [
|
188
|
-
(
|
198
|
+
(i(!0), s(p, null, f(e.current.quantityDiscount, (t, r) => (i(), s("div", {
|
189
199
|
class: "gap-thin mn-b-thin flex-nowrap flex",
|
190
|
-
key:
|
200
|
+
key: r
|
191
201
|
}, [
|
192
|
-
a(
|
202
|
+
a(u, {
|
193
203
|
field: t.name,
|
194
204
|
"onUpdate:field": (l) => t.name = l,
|
195
205
|
placeholder: "Quantity",
|
196
206
|
class: "w-100 bg-white radius-small pd-medium"
|
197
207
|
}, null, 8, ["field", "onUpdate:field"]),
|
198
|
-
a(
|
208
|
+
a(u, {
|
199
209
|
field: t.value,
|
200
210
|
"onUpdate:field": (l) => t.value = l,
|
201
211
|
placeholder: "Discount",
|
202
212
|
class: "w-100 bg-white radius-small pd-medium"
|
203
213
|
}, null, 8, ["field", "onUpdate:field"]),
|
204
|
-
m("div",
|
205
|
-
a(
|
206
|
-
onClick: () => e.current.quantityDiscount.splice(
|
214
|
+
m("div", j, [
|
215
|
+
a(w, {
|
216
|
+
onClick: () => e.current.quantityDiscount.splice(r, 1),
|
207
217
|
class: "i-medium"
|
208
218
|
}, null, 8, ["onClick"])
|
209
219
|
])
|
@@ -211,41 +221,41 @@ const L = { class: "for-transition w-100 cols-1 pd-thin gap-thin" }, Q = { class
|
|
211
221
|
]),
|
212
222
|
_: 1
|
213
223
|
}, 8, ["actions"]),
|
214
|
-
a(
|
224
|
+
a(d, {
|
215
225
|
title: "Add Ingridient",
|
216
226
|
class: "mn-b-semi"
|
217
227
|
}, {
|
218
228
|
default: n(() => [
|
219
|
-
a(
|
220
|
-
onAdd:
|
229
|
+
a(C, {
|
230
|
+
onAdd: c[1] || (c[1] = (t) => h.add(
|
221
231
|
e.current.ingridients,
|
222
232
|
t
|
223
233
|
)),
|
224
|
-
products:
|
234
|
+
products: g.value
|
225
235
|
}, null, 8, ["products"]),
|
226
|
-
a(
|
236
|
+
a(d, {
|
227
237
|
placeholder: "No positions added yet",
|
228
238
|
class: "pd-zero mn-b-semi"
|
229
239
|
}, {
|
230
240
|
default: n(() => [
|
231
|
-
(
|
241
|
+
(i(!0), s(p, null, f(e.current.ingridients, (t, r) => (i(), v(C, {
|
232
242
|
key: t._id,
|
233
243
|
product: t,
|
234
244
|
array: e.current.ingridients,
|
235
|
-
products:
|
236
|
-
onAdd:
|
245
|
+
products: g.value,
|
246
|
+
onAdd: c[2] || (c[2] = (l) => h.add(
|
237
247
|
e.current.ingridients,
|
238
248
|
l
|
239
249
|
)),
|
240
|
-
onUpdate: (l) =>
|
250
|
+
onUpdate: (l) => h.update(
|
241
251
|
e.current.ingridients,
|
242
252
|
l,
|
243
|
-
|
253
|
+
r
|
244
254
|
),
|
245
|
-
onDelete: (l) =>
|
255
|
+
onDelete: (l) => h.delete(
|
246
256
|
e.current.ingridients,
|
247
257
|
l,
|
248
|
-
|
258
|
+
r
|
249
259
|
)
|
250
260
|
}, null, 8, ["product", "array", "products", "onUpdate", "onDelete"]))), 128))
|
251
261
|
]),
|
package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue2.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),f=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const g=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs"),s=require("../../store/products.cjs");require("../sections/HeroRecommendation.vue2.cjs");require("./ProductRecommmendation.vue2.cjs");const I=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),q={id:"product-recommendation",class:"h-min-100vh t-white bg-black"},y={key:1,class:"section"},k={key:0,class:"mn-b-big"},R={__name:"ProductRecommmendation",setup(T){const r=b.useRouter(),t=e.ref(!0),m=e.ref(!1),u=e.ref(["Loading all we know about the buds","Processing the cannabis universe","Creating a strain of knowledge","Harvesting taste insights"]),p={messages:{en:{TITLE:"Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",DESCRIPTION:"AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",placeholder:"Describe your desired high, bro...",action:"Transmit Vibes →"},ru:{TITLE:"Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",DESCRIPTION:"AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",placeholder:"Опиши свой желамый хай, bro...",action:"Передать Вайб →"}}},{t:o}=f.useI18n(p),a=e.ref(u.value[0]);let c=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));e.watchEffect(async()=>{c.value=r.currentRoute.value.query.mood||o("Recommend me something"),t.value=!0,await s.actions.submitMood(c.value),t.value=!1}),e.onMounted(async()=>{}),setInterval(()=>{const i=u.value.indexOf(a.value);a.value=u.value[(i+1)%u.value.length]},2e3);let n=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));function v(){r.push({name:"Product Recommmendation",query:{mood:n.value}})}return(i,l)=>(e.openBlock(),e.createElementBlock("div",q,[t.value?(e.openBlock(),e.createBlock(h.default,{key:0,status:a.value,class:"pos-fixed"},null,8,["status"])):e.createCommentVNode("",!0),!t.value&&!m.value?(e.openBlock(),e.createElementBlock("div",y,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(g.default,{input:e.unref(n),loopTyping:!1,enableTyping:!1,placeholder:e.unref(o)("placeholder"),action:e.unref(o)("action"),"onUpdate:input":l[0]||(l[0]=d=>e.isRef(n)?n.value=d:n=d),onAction:v,class:"t-white bs-blur-regular w-100"},null,8,["input","placeholder","action"])])),e.createVNode(_.default,{product:s.state.current,recommendation:s.state.current.recommendation},null,8,["product","recommendation"])])):e.createCommentVNode("",!0)]))}},w=I.default(R,[["__scopeId","data-v-5fd744d4"]]);exports.default=w;
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { ref as e, watchEffect as I, onMounted as y, openBlock as s, createElementBlock as u, createBlock as w, createCommentVNode as c, createVNode as v, unref as l, isRef as R } from "vue";
|
2
|
+
import { useRouter as T } from "vue-router";
|
3
|
+
import { useI18n as k } from "vue-i18n";
|
4
|
+
import x from "../../../../components/Loader/Loader.vue2.js";
|
5
|
+
import "../../../globals/localization/vue-i18n.js";
|
6
|
+
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
7
|
+
import P from "../../../../components/FieldBig/FieldBig.vue.js";
|
8
|
+
import E from "../sections/SectionProduct.vue.js";
|
9
|
+
import { actions as A, state as f } from "../../store/products.js";
|
10
|
+
import "../sections/HeroRecommendation.vue2.js";
|
11
|
+
import "./ProductRecommmendation.vue2.js";
|
12
|
+
import q from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
13
|
+
const B = {
|
14
|
+
id: "product-recommendation",
|
15
|
+
class: "h-min-100vh t-white bg-black"
|
16
|
+
}, C = {
|
17
|
+
key: 1,
|
18
|
+
class: "section"
|
19
|
+
}, L = {
|
20
|
+
key: 0,
|
21
|
+
class: "mn-b-big"
|
22
|
+
}, N = {
|
23
|
+
__name: "ProductRecommmendation",
|
24
|
+
setup(V) {
|
25
|
+
const r = T(), o = e(!0), b = e(!1), a = e([
|
26
|
+
"Loading all we know about the buds",
|
27
|
+
"Processing the cannabis universe",
|
28
|
+
"Creating a strain of knowledge",
|
29
|
+
"Harvesting taste insights"
|
30
|
+
]), g = {
|
31
|
+
messages: {
|
32
|
+
en: {
|
33
|
+
TITLE: "Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",
|
34
|
+
DESCRIPTION: "AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",
|
35
|
+
placeholder: "Describe your desired high, bro...",
|
36
|
+
action: "Transmit Vibes →"
|
37
|
+
},
|
38
|
+
ru: {
|
39
|
+
TITLE: "Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",
|
40
|
+
DESCRIPTION: "AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",
|
41
|
+
placeholder: "Опиши свой желамый хай, bro...",
|
42
|
+
action: "Передать Вайб →"
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}, { t } = k(g), i = e(a.value[0]);
|
46
|
+
let m = e(r.currentRoute.value.query.mood || t("Recommend me something"));
|
47
|
+
I(async () => {
|
48
|
+
m.value = r.currentRoute.value.query.mood || t("Recommend me something"), o.value = !0, await A.submitMood(m.value), o.value = !1;
|
49
|
+
}), y(async () => {
|
50
|
+
}), setInterval(() => {
|
51
|
+
const d = a.value.indexOf(i.value);
|
52
|
+
i.value = a.value[(d + 1) % a.value.length];
|
53
|
+
}, 2e3);
|
54
|
+
let n = e(r.currentRoute.value.query.mood || t("Recommend me something"));
|
55
|
+
function _() {
|
56
|
+
r.push({ name: "Product Recommmendation", query: { mood: n.value } });
|
57
|
+
}
|
58
|
+
return (d, p) => (s(), u("div", B, [
|
59
|
+
o.value ? (s(), w(x, {
|
60
|
+
key: 0,
|
61
|
+
status: i.value,
|
62
|
+
class: "pos-fixed"
|
63
|
+
}, null, 8, ["status"])) : c("", !0),
|
64
|
+
!o.value && !b.value ? (s(), u("div", C, [
|
65
|
+
o.value ? c("", !0) : (s(), u("div", L, [
|
66
|
+
v(P, {
|
67
|
+
input: l(n),
|
68
|
+
loopTyping: !1,
|
69
|
+
enableTyping: !1,
|
70
|
+
placeholder: l(t)("placeholder"),
|
71
|
+
action: l(t)("action"),
|
72
|
+
"onUpdate:input": p[0] || (p[0] = (h) => R(n) ? n.value = h : n = h),
|
73
|
+
onAction: _,
|
74
|
+
class: "t-white bs-blur-regular w-100"
|
75
|
+
}, null, 8, ["input", "placeholder", "action"])
|
76
|
+
])),
|
77
|
+
v(E, {
|
78
|
+
product: f.current,
|
79
|
+
recommendation: f.current.recommendation
|
80
|
+
}, null, 8, ["product", "recommendation"])
|
81
|
+
])) : c("", !0)
|
82
|
+
]));
|
83
|
+
}
|
84
|
+
}, G = /* @__PURE__ */ q(N, [["__scopeId", "data-v-5fd744d4"]]);
|
85
|
+
export {
|
86
|
+
G as default
|
87
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -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"),s=require("vue-router"),n=require("../sections/FilterProducts.vue.cjs"),i=require("../../../../components/Feed/Feed.vue.cjs"),c=require("../blocks/CardProduct.vue.cjs"),u=require("../../store/products.cjs"),l={class:"cols-2-1_3 bg-grey radius-big gap-thin pd-thin"},d={__name:"Products",setup(p){const t=s.useRoute();return s.useRouter(),(a,_)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(n.default),e.createVNode(i.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:r=>u.actions.read(r),state:u.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery},class:"cols-3 gap-thin"},{default:e.withCtx(({items:r})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r,o=>(e.openBlock(),e.createBlock(c.default,{key:o._id,product:o,class:"h-max",onClick:m=>a.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:o._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])]))}};exports.default=d;
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { openBlock as
|
1
|
+
import { openBlock as s, createElementBlock as i, createVNode as a, unref as t, withCtx as c, Fragment as u, renderList as m, createBlock as p } from "vue";
|
2
2
|
import { useRoute as d, useRouter as l } from "vue-router";
|
3
3
|
import _ from "../sections/FilterProducts.vue.js";
|
4
4
|
import f from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import g from "../blocks/CardProduct.vue.js";
|
6
|
-
import { actions as
|
6
|
+
import { actions as h, state as y } from "../../store/products.js";
|
7
7
|
const k = { class: "cols-2-1_3 bg-grey radius-big gap-thin pd-thin" }, F = {
|
8
8
|
__name: "Products",
|
9
9
|
setup(v) {
|
10
10
|
const e = d();
|
11
|
-
return l(), (n, $) => (
|
11
|
+
return l(), (n, $) => (s(), i("div", k, [
|
12
12
|
a(_),
|
13
13
|
a(f, {
|
14
14
|
states: {
|
@@ -18,8 +18,8 @@ const k = { class: "cols-2-1_3 bg-grey radius-big gap-thin pd-thin" }, F = {
|
|
18
18
|
}
|
19
19
|
},
|
20
20
|
store: {
|
21
|
-
read: (r) =>
|
22
|
-
state:
|
21
|
+
read: (r) => h.read(r),
|
22
|
+
state: y
|
23
23
|
},
|
24
24
|
options: {
|
25
25
|
limit: 15,
|
@@ -34,9 +34,10 @@ const k = { class: "cols-2-1_3 bg-grey radius-big gap-thin pd-thin" }, F = {
|
|
34
34
|
default: c(({
|
35
35
|
items: r
|
36
36
|
}) => [
|
37
|
-
(
|
37
|
+
(s(!0), i(u, null, m(r, (o) => (s(), p(g, {
|
38
38
|
key: o._id,
|
39
39
|
product: o,
|
40
|
+
class: "h-max",
|
40
41
|
onClick: (C) => n.$router.push({
|
41
42
|
name: "Product Organization",
|
42
43
|
params: {
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../../../../components/Field/Field.vue2.cjs"),L={key:0,class:"mn-b-small w-100"},k={class:"w-100 flex-nowrap flex"},w=["onClick"],E=e.createElementVNode("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{width:"24",height:"24",transform:"translate(1 1)"}),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",fill:"rgb(var(--white))"})],-1),g=[E],N=e.createElementVNode("hr",{class:"mn-b-medium"},null,-1),V=["onClick"],B=e.createElementVNode("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{width:"24",height:"24",transform:"translate(1 1)"}),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",fill:"rgb(var(--white))"})],-1),x=[B],C=e.createElementVNode("hr",{class:"mn-b-medium"},null,-1),U=["onClick"],y={__name:"EditModifications",props:{product:Object},emits:["add-modification","delete-modification","add-characteristic","delete-characteristic","submit"],setup(u,{emit:m}){const o=m,f=u,{product:r}=e.toRefs(f);function p(){o("add-modification")}function h(l){o("delete-modification",l)}function b(l){o("add-characteristic",l)}function _(l,d){o("delete-characteristic",{modIndex:l,charIndex:d})}function v(){o("submit")}return(l,d)=>(e.openBlock(),e.createElementBlock("div",null,[e.unref(r).modifications.length==0?(e.openBlock(),e.createElementBlock("p",L,"У продукта еще не заданы модификации.")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).modifications,(n,i)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-small flex-column flex-wrap block",key:i},[e.createElementVNode("div",k,[e.createVNode(c.default,{field:n.quantity,"onUpdate:field":t=>n.quantity=t,disabled:!0,placeholder:"Количество",class:"mn-b-medium input-text input",type:"number"},null,8,["field","onUpdate:field"]),e.createVNode(c.default,{field:n.name,"onUpdate:field":t=>n.name=t,placeholder:"Новая модификация",class:"mn-b-medium input-text input"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:t=>h(i),class:"mn-l-small i-normal pd-regular button-delete button"},g,8,w)]),N,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.characteristics,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"mn-b-medium w-100 flex-nowrap flex variants-wrapper",key:s},[e.createVNode(c.default,{field:t.name,"onUpdate:field":a=>t.name=a,placeholder:"Название параметра",class:"input-text input"},null,8,["field","onUpdate:field"]),e.createVNode(c.default,{field:t.value,"onUpdate:field":a=>t.value=a,placeholder:"Значение параметра",class:"mn-l-small input-text input"},null,8,["field","onUpdate:field"]),e.createElementVNode("button",{onClick:a=>_(i,s),class:"mn-l-small i-normal pd-regular button-delete button"},x,8,V)]))),128)),C,e.createElementVNode("button",{onClick:t=>b(i),class:"button"},"Добавить характеристику",8,U)]))),128)),e.createElementVNode("div",{class:"mn-b-big t-center flex-center flex block"},[e.createElementVNode("button",{onClick:p,class:"w-100"},"Добавить модификацю")]),e.createElementVNode("button",{onClick:d[0]||(d[0]=n=>v()),class:"button"},"Сохранить модификации")]))}};exports.default=y;
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
import { toRefs as U, openBlock as i, createElementBlock as o, unref as p, createCommentVNode as y, Fragment as h, renderList as b, createElementVNode as e, createVNode as r } from "vue";
|
2
|
+
import u from "../../../../components/Field/Field.vue2.js";
|
3
|
+
const M = {
|
4
|
+
key: 0,
|
5
|
+
class: "mn-b-small w-100"
|
6
|
+
}, B = { class: "w-100 flex-nowrap flex" }, $ = ["onClick"], E = /* @__PURE__ */ e("svg", {
|
7
|
+
width: "26",
|
8
|
+
height: "26",
|
9
|
+
viewBox: "0 0 26 26",
|
10
|
+
fill: "none",
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
12
|
+
}, [
|
13
|
+
/* @__PURE__ */ e("rect", {
|
14
|
+
width: "24",
|
15
|
+
height: "24",
|
16
|
+
transform: "translate(1 1)"
|
17
|
+
}),
|
18
|
+
/* @__PURE__ */ e("path", {
|
19
|
+
"fill-rule": "evenodd",
|
20
|
+
"clip-rule": "evenodd",
|
21
|
+
d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",
|
22
|
+
fill: "rgb(var(--white))"
|
23
|
+
})
|
24
|
+
], -1), N = [
|
25
|
+
E
|
26
|
+
], V = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), q = ["onClick"], F = /* @__PURE__ */ e("svg", {
|
27
|
+
width: "26",
|
28
|
+
height: "26",
|
29
|
+
viewBox: "0 0 26 26",
|
30
|
+
fill: "none",
|
31
|
+
xmlns: "http://www.w3.org/2000/svg"
|
32
|
+
}, [
|
33
|
+
/* @__PURE__ */ e("rect", {
|
34
|
+
width: "24",
|
35
|
+
height: "24",
|
36
|
+
transform: "translate(1 1)"
|
37
|
+
}),
|
38
|
+
/* @__PURE__ */ e("path", {
|
39
|
+
"fill-rule": "evenodd",
|
40
|
+
"clip-rule": "evenodd",
|
41
|
+
d: "M12.9996 10.8L22.8994 0.900244L25.0993 3.1002L15.1995 13L25.0993 22.8998L22.8994 25.0998L12.9996 15.2L3.09976 25.0998L0.899801 22.8998L10.7996 13L0.899801 3.1002L3.09976 0.900244L12.9996 10.8Z",
|
42
|
+
fill: "rgb(var(--white))"
|
43
|
+
})
|
44
|
+
], -1), Z = [
|
45
|
+
F
|
46
|
+
], j = /* @__PURE__ */ e("hr", { class: "mn-b-medium" }, null, -1), O = ["onClick"], z = {
|
47
|
+
__name: "EditModifications",
|
48
|
+
props: {
|
49
|
+
product: Object
|
50
|
+
},
|
51
|
+
emits: ["add-modification", "delete-modification", "add-characteristic", "delete-characteristic", "submit"],
|
52
|
+
setup(_, { emit: L }) {
|
53
|
+
const d = L, v = _, { product: m } = U(v);
|
54
|
+
function w() {
|
55
|
+
d("add-modification");
|
56
|
+
}
|
57
|
+
function g(l) {
|
58
|
+
d("delete-modification", l);
|
59
|
+
}
|
60
|
+
function k(l) {
|
61
|
+
d("add-characteristic", l);
|
62
|
+
}
|
63
|
+
function x(l, s) {
|
64
|
+
d("delete-characteristic", { modIndex: l, charIndex: s });
|
65
|
+
}
|
66
|
+
function C() {
|
67
|
+
d("submit");
|
68
|
+
}
|
69
|
+
return (l, s) => (i(), o("div", null, [
|
70
|
+
p(m).modifications.length == 0 ? (i(), o("p", M, "У продукта еще не заданы модификации.")) : y("", !0),
|
71
|
+
(i(!0), o(h, null, b(p(m).modifications, (n, a) => (i(), o("div", {
|
72
|
+
class: "mn-b-small flex-column flex-wrap block",
|
73
|
+
key: a
|
74
|
+
}, [
|
75
|
+
e("div", B, [
|
76
|
+
r(u, {
|
77
|
+
field: n.quantity,
|
78
|
+
"onUpdate:field": (t) => n.quantity = t,
|
79
|
+
disabled: !0,
|
80
|
+
placeholder: "Количество",
|
81
|
+
class: "mn-b-medium input-text input",
|
82
|
+
type: "number"
|
83
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
84
|
+
r(u, {
|
85
|
+
field: n.name,
|
86
|
+
"onUpdate:field": (t) => n.name = t,
|
87
|
+
placeholder: "Новая модификация",
|
88
|
+
class: "mn-b-medium input-text input"
|
89
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
90
|
+
e("button", {
|
91
|
+
onClick: (t) => g(a),
|
92
|
+
class: "mn-l-small i-normal pd-regular button-delete button"
|
93
|
+
}, N, 8, $)
|
94
|
+
]),
|
95
|
+
V,
|
96
|
+
(i(!0), o(h, null, b(n.characteristics, (t, f) => (i(), o("div", {
|
97
|
+
class: "mn-b-medium w-100 flex-nowrap flex variants-wrapper",
|
98
|
+
key: f
|
99
|
+
}, [
|
100
|
+
r(u, {
|
101
|
+
field: t.name,
|
102
|
+
"onUpdate:field": (c) => t.name = c,
|
103
|
+
placeholder: "Название параметра",
|
104
|
+
class: "input-text input"
|
105
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
106
|
+
r(u, {
|
107
|
+
field: t.value,
|
108
|
+
"onUpdate:field": (c) => t.value = c,
|
109
|
+
placeholder: "Значение параметра",
|
110
|
+
class: "mn-l-small input-text input"
|
111
|
+
}, null, 8, ["field", "onUpdate:field"]),
|
112
|
+
e("button", {
|
113
|
+
onClick: (c) => x(a, f),
|
114
|
+
class: "mn-l-small i-normal pd-regular button-delete button"
|
115
|
+
}, Z, 8, q)
|
116
|
+
]))), 128)),
|
117
|
+
j,
|
118
|
+
e("button", {
|
119
|
+
onClick: (t) => k(a),
|
120
|
+
class: "button"
|
121
|
+
}, "Добавить характеристику", 8, O)
|
122
|
+
]))), 128)),
|
123
|
+
e("div", { class: "mn-b-big t-center flex-center flex block" }, [
|
124
|
+
e("button", {
|
125
|
+
onClick: w,
|
126
|
+
class: "w-100"
|
127
|
+
}, "Добавить модификацю")
|
128
|
+
]),
|
129
|
+
e("button", {
|
130
|
+
onClick: s[0] || (s[0] = (n) => C()),
|
131
|
+
class: "button"
|
132
|
+
}, "Сохранить модификации")
|
133
|
+
]));
|
134
|
+
}
|
135
|
+
};
|
136
|
+
export {
|
137
|
+
z as default
|
138
|
+
};
|