@ozdao/prometheus-framework 0.2.112 → 0.2.113
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common.schema-BFhpUXUt.js +12 -0
- package/dist/common.schema-ChBVARrs.mjs +13 -0
- package/dist/community.server.js +6 -4
- package/dist/community.server.mjs +4 -2
- package/dist/engagement.schema-CI2ifjXN.mjs +28 -0
- package/dist/engagement.schema-fdLNO2_6.js +27 -0
- package/dist/events.server.js +6 -4
- package/dist/events.server.mjs +4 -2
- package/dist/files.server.js +81 -29
- package/dist/files.server.mjs +81 -29
- package/dist/gallery.server.js +66 -39
- package/dist/gallery.server.mjs +66 -39
- package/dist/main-8APITHuW.mjs +14201 -0
- package/dist/main-8N2Jmsuk.js +2 -2
- package/dist/main-BJvlNekm.mjs +5 -5
- package/dist/main-BQisDfLk.js +2 -2
- package/dist/main-BV1Yv9Hy.js +2 -2
- package/dist/main-Bw0PvTs-.mjs +5 -5
- package/dist/main-ByCtZbHD.mjs +5 -5
- package/dist/main-CX2ISR43.mjs +5 -5
- package/dist/main-CXObXjv-.js +2 -2
- package/dist/main-CkeuHuCY.mjs +5 -5
- package/dist/main-CnfcBov2.mjs +5 -5
- package/dist/main-D50VqYhy.js +2 -2
- package/dist/main-D8gNZLSa.js +2 -2
- package/dist/main-DPsHxX0l.mjs +5 -5
- package/dist/main-DTlUA63C.mjs +5 -5
- package/dist/main-DfD5hLQo.mjs +5 -5
- package/dist/main-Dh6Zfei9.js +2 -2
- package/dist/main-DmNP-t33.mjs +5 -5
- package/dist/main-DwyUYWFX.js +2 -2
- package/dist/main-VcxO-jAt.js +92 -0
- package/dist/main-cffh4bbv.js +2 -2
- package/dist/main-pGo7JpSP.js +2 -2
- package/dist/main.css +1 -1
- package/dist/metadata.schema-6slGhpQS.js +40 -0
- package/dist/metadata.schema-CK5e2O3f.mjs +41 -0
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +410 -407
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -3
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +469 -456
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/accounts.js +5 -2
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3/lib/esm/index.js +45 -42
- 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 +40 -37
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +28 -18
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -1
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +56 -53
- 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 +100 -87
- package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/error_codes.js +97 -95
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +8 -8
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +20 -20
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +4 -4
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +2 -2
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +33 -27
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -1
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +33 -12
- 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 +183 -179
- 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 +10 -10
- 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 +45 -44
- 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 +59 -57
- 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 +43 -43
- 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 +31 -31
- 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 +26 -26
- 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 +53 -51
- 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 +25 -23
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -1
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +103 -101
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +2 -2
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +159 -156
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +11 -8
- package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/index.js +3 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -1
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +5 -2
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +19 -16
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -1
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +5 -2
- 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 +50 -47
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -1
- package/dist/node_modules/web3-net/lib/esm/net.js +27 -27
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/converters.js +100 -83
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -1
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +123 -104
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/utils.js +21 -21
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +10 -10
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -1
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +30 -28
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +56 -59
- package/dist/organizations.server.mjs +56 -59
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +17 -17
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +4 -4
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +33 -30
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +9 -9
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue.js +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +165 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +22 -19
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +132 -64
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue2.js +1 -0
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +9 -9
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +12 -12
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +16 -16
- package/dist/prometheus-framework/src/components/Map/Map.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Map/Map.vue.js +14 -13
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Marquee/Marquee.vue.js +8 -8
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Radio/Radio.vue.js +29 -36
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +6 -6
- 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 +17 -17
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- 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 +24 -24
- 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 +24 -24
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +10 -10
- 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 +26 -26
- 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 +14 -14
- 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 +6 -6
- 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 +45 -45
- 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 +13 -13
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +5 -5
- 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 +19 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Video.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.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 +213 -213
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +23 -23
- 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 +9 -9
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +8 -8
- 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 +167 -202
- 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 +73 -165
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +3 -47
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSorting.vue.js +75 -0
- 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 +96 -77
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue2.js +27 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonSort.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -19
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +10 -4
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconCalendar.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconFilter.vue.js +31 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/icons/navigation/IconSort.vue.js +59 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue.js +80 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/landing/components/sections/SubscribeNewsletter.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/landing/landing.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/landing/landing.client.js +8 -6
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Cookies.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/EULA.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Privacy.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/legal/Terms.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +21 -45
- 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 +36 -36
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/blocks/StatusHistory.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Order.vue.js +53 -53
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +33 -33
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreate.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +10 -10
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/partials/ShopCart.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/orders/store/applications.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/store/applications.js +37 -0
- 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 +5 -5
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.js +16 -16
- 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 +41 -41
- 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 +9 -9
- 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 +16 -16
- 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 +36 -36
- 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 +8 -8
- 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 +2 -2
- 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 +20 -20
- 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 +12 -12
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Publics.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +33 -34
- 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 +16 -16
- 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 +15 -15
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +8 -8
- 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 +8 -8
- 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 +9 -9
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +22 -22
- 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 +6 -6
- 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 +8 -8
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/HeroRecommendation.vue.js +51 -56
- 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 +4 -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 +32 -32
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SortProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/products.client.js +28 -30
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/pages/BackofficeReports.vue.js +12 -12
- 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 +30 -26
- 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 +34 -34
- 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 +11 -11
- 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 +41 -41
- 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 +13 -13
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/FeaturedUsers.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Payments.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +13 -10
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-BJoJAetd.mjs +162 -0
- package/dist/queryProcessor-DWf9tsis.js +161 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-TGdVOTnw.js +1 -0
- package/dist/web-_W9a_nWD.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/AskToLogin/AskToLogin.vue +1 -1
- package/src/components/Block/Block.vue +1 -1
- package/src/components/Checkbox/Checkbox.vue +40 -43
- package/src/components/Chips/Chips.vue +2 -2
- package/src/components/DatePicker/Calendar.vue +29 -31
- package/src/components/Dropdown/Dropdown.vue +5 -11
- package/src/components/Feed/Feed.vue +98 -15
- package/src/components/FieldTags/BlockTags.vue +3 -3
- package/src/components/FieldTags/FieldTags.vue +1 -1
- package/src/components/FieldTags/vue-tags-input.scss +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/LocationSelection/LocationSelection.vue +5 -30
- package/src/components/Map/LoaderGMaps.js +66 -0
- package/src/components/Map/Map.vue +2 -1
- package/src/components/Marquee/Marquee.vue +1 -1
- package/src/components/Radio/Radio.vue +36 -13
- package/src/configurator/components/pages/Styles.vue +1 -1
- package/src/modules/auth/components/layouts/Auth.vue +1 -1
- package/src/modules/auth/components/pages/EnterCode.vue +4 -4
- package/src/modules/auth/components/pages/EnterPassword.vue +2 -2
- package/src/modules/auth/components/pages/Invite.vue +2 -2
- package/src/modules/auth/components/pages/ResetPassword.vue +3 -3
- package/src/modules/auth/components/pages/SignIn.vue +4 -4
- package/src/modules/auth/components/pages/SignUp.vue +3 -3
- package/src/modules/backoffice/components/admin/Backcalls.vue +1 -1
- package/src/modules/backoffice/components/admin/FastOrders.vue +1 -1
- package/src/modules/backoffice/components/admin/Pages.vue +1 -1
- package/src/modules/backoffice/components/admin/ProductEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/UserEdit.vue +1 -1
- package/src/modules/backoffice/components/admin/Users.vue +1 -1
- package/src/modules/backoffice/components/pages/Dashboard.vue +3 -3
- package/src/modules/community/components/blocks/CardBlogpost.vue +1 -1
- package/src/modules/community/components/layouts/Community.vue +2 -2
- package/src/modules/community/components/pages/BlogPost.vue +2 -2
- package/src/modules/community/components/pages/CreateBlogPost.vue +4 -4
- package/src/modules/community/components/sections/Comments.vue +2 -2
- package/src/modules/community/components/sections/Feed.vue +1 -1
- package/src/modules/community/components/sections/HotPosts.vue +1 -1
- package/src/modules/constructor/components/elements/Image.vue +1 -1
- package/src/modules/constructor/components/elements/Video.vue +2 -2
- package/src/modules/events/components/blocks/CardEvent.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +32 -32
- package/src/modules/events/components/pages/EditEventTickets.vue +1 -1
- package/src/modules/events/components/pages/Event.vue +3 -3
- package/src/modules/events/components/pages/Events.vue +4 -3
- package/src/modules/events/components/sections/Feed.vue +3 -3
- package/src/modules/events/components/sections/List.vue +2 -2
- package/src/modules/files/controllers/files.controller.js +8 -6
- package/src/modules/files/middlewares/server/middlewareBusboy.js +79 -14
- package/src/modules/files/routes/files.routes.js +11 -9
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +158 -355
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +26 -244
- package/src/modules/gallery/controllers/gallery.controller.js +57 -38
- package/src/modules/gallery/models/photo.model.js +20 -11
- package/src/modules/gallery/routes/gallery.routes.js +3 -3
- package/src/modules/gallery/store/gallery.js +3 -78
- package/src/modules/globals/components/blocks/BlockSearch.vue +1 -1
- package/src/modules/globals/components/blocks/BlockSorting.vue +77 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +27 -25
- package/src/modules/globals/components/elements/ButtonDate.vue +66 -0
- package/src/modules/globals/components/elements/ButtonSort.vue +41 -0
- package/src/modules/globals/components/layouts/Client.vue +273 -0
- package/src/{components/Footer → modules/globals/components/partials}/Footer.vue +1 -1
- package/src/{components/Header → modules/globals/components/partials}/Header.vue +98 -84
- package/src/modules/globals/controllers/utils/queryProcessor.js +3 -3
- package/src/modules/globals/models/common.schema.js +1 -1
- package/src/modules/globals/services/globals.store.js +11 -6
- package/src/modules/globals/store/globals.js +12 -10
- package/src/modules/icons/logos/Logotype.vue +23 -19
- package/src/modules/icons/navigation/IconCalendar.vue +18 -0
- package/src/modules/icons/navigation/IconFilter.vue +18 -0
- package/src/modules/icons/navigation/IconSearch.vue +1 -3
- package/src/modules/icons/navigation/IconSort.vue +21 -0
- package/src/modules/landing/components/pages/Home.vue +4 -4
- package/src/modules/landing/components/sections/FeatureSection.vue +5 -5
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeature.vue +2 -2
- package/src/modules/landing/components/sections/SectionFeaturesImages.vue +2 -2
- package/src/modules/landing/components/sections/SectionsSection.vue +4 -4
- package/src/modules/{orders → landing}/components/sections/SubscribeNewsletter.vue +0 -2
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +6 -6
- package/src/modules/landing/landing.client.js +2 -0
- package/src/modules/landing/router/landing.js +1 -1
- package/src/modules/legal/components/pages/Legal.vue +2 -2
- package/src/modules/legal/components/pages/legal/Cookies.vue +1 -1
- package/src/modules/legal/components/pages/legal/EULA.vue +1 -1
- package/src/modules/legal/components/pages/legal/Privacy.vue +1 -1
- package/src/modules/legal/components/pages/legal/Terms.vue +1 -1
- package/src/modules/marketplace/components/layouts/Marketplace.vue +37 -49
- package/src/modules/marketplace/components/pages/Catalog.vue +43 -131
- package/src/modules/marketplace/components/sections/Filters.vue +63 -115
- package/src/modules/marketplace/store/marketplace.js +22 -167
- package/src/modules/mobile/components/Walkthrough/Walkthrough.vue +1 -1
- package/src/modules/orders/components/blocks/CardOrderItem.vue +6 -6
- package/src/modules/orders/components/blocks/CardOrderVar1.vue +1 -1
- package/src/modules/orders/components/blocks/StatusHistory.vue +1 -1
- package/src/modules/orders/components/pages/Order.vue +8 -8
- package/src/modules/orders/components/pages/OrderBackoffice.vue +7 -7
- package/src/modules/orders/components/pages/OrderCreate.vue +1 -1
- package/src/modules/orders/components/pages/OrderCreateBackoffice.vue +3 -3
- package/src/modules/orders/components/pages/Orders.vue +3 -5
- package/src/modules/orders/components/partials/ShopCart.vue +5 -1
- package/src/modules/orders/components/sections/FormAddCustomer.vue +2 -2
- package/src/modules/orders/components/sections/FormDelivery.vue +1 -1
- package/src/modules/orders/store/applications.js +1 -1
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/blocks/Contacts.vue +4 -4
- package/src/modules/organizations/components/pages/Department.vue +3 -3
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +6 -6
- package/src/modules/organizations/components/pages/Members.vue +4 -4
- package/src/modules/organizations/components/pages/Organization.vue +3 -3
- package/src/modules/organizations/components/pages/OrganizationCreate.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationDetails.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationDocuments.vue +1 -1
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +9 -9
- package/src/modules/organizations/components/pages/OrganizationPeople.vue +1 -1
- package/src/modules/organizations/components/pages/Organizations.vue +1 -1
- package/src/modules/organizations/components/sections/DetailsTab.vue +4 -4
- package/src/modules/organizations/components/sections/Feed.vue +2 -2
- package/src/modules/organizations/components/sections/MembersAdd.vue +2 -2
- package/src/modules/organizations/components/sections/Publics.vue +1 -1
- package/src/modules/organizations/controllers/organizations.controller.js +103 -93
- package/src/modules/organizations/models/organization.model.js +10 -7
- package/src/modules/organizations/store/organizations.js +3 -34
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/blocks/LeftoverPositions.vue +2 -2
- package/src/modules/products/components/pages/Categories.vue +1 -1
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/Leftovers.vue +4 -4
- package/src/modules/products/components/pages/Product.vue +1 -5
- package/src/modules/products/components/pages/ProductEdit.vue +1 -1
- package/src/modules/products/components/pages/Products.vue +2 -2
- package/src/modules/products/components/sections/EditProductInfo.vue +1 -1
- package/src/modules/products/components/sections/FilterProducts.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +67 -74
- package/src/modules/products/components/sections/MenuSection.vue +2 -2
- package/src/modules/products/components/sections/PopularProducts.vue +2 -2
- package/src/modules/products/components/sections/SectionProduct.vue +3 -3
- package/src/modules/products/products.client.js +0 -2
- package/src/modules/reports/components/pages/BackofficeReports.vue +4 -4
- package/src/modules/spots/components/blocks/CardSpot.vue +9 -1
- package/src/modules/spots/components/blocks/SpotMemberModify.vue +2 -2
- package/src/modules/spots/components/layouts/Spots.vue +0 -2
- package/src/modules/spots/components/pages/Spot.vue +4 -4
- package/src/modules/spots/components/pages/SpotEdit.vue +1 -1
- package/src/modules/spots/components/sections/PlaceModify.vue +1 -1
- package/src/modules/spots/components/sections/Places.vue +1 -1
- package/src/modules/users/components/pages/Profile.vue +5 -5
- package/src/modules/users/components/pages/ProfileBlogposts.vue +1 -1
- package/src/modules/users/components/pages/ProfileComments.vue +1 -1
- package/src/modules/users/components/pages/ProfileEdit.vue +11 -11
- package/src/modules/users/components/pages/ProfileEvents.vue +1 -1
- package/src/modules/users/components/pages/ProfileLikes.vue +1 -1
- package/src/modules/users/components/sections/FeaturedUsers.vue +3 -3
- package/src/modules/wallet/views/components/pages/Payments.vue +2 -2
- package/src/modules/wallet/views/components/pages/Wallet.vue +3 -3
- package/src/styles/base/borders.scss +4 -0
- package/src/styles/base/shadow_transitions_hover_refactor.scss +4 -0
- package/src/styles/config.scss +15 -9
- package/src/styles/layout.scss +37 -8
- package/src/styles/typography.scss +24 -24
- package/src/modules/products/components/sections/SortProducts.vue +0 -74
- /package/src/{components/Navigation → modules/globals/components/partials}/Navigation.vue +0 -0
@@ -6,10 +6,10 @@ import require$$3 from "uuidv4";
|
|
6
6
|
import require$$0 from "mongoose";
|
7
7
|
import require$$5 from "@googlemaps/google-maps-services-js";
|
8
8
|
import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-BXp_LeQd.mjs";
|
9
|
-
import { q as queryProcessor } from "./queryProcessor-
|
9
|
+
import { q as queryProcessor } from "./queryProcessor-BJoJAetd.mjs";
|
10
10
|
import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
|
11
11
|
import { s as server } from "./index-B6a1mPgp.mjs";
|
12
|
-
import
|
12
|
+
import { e as engagement_schema } from "./engagement.schema-CI2ifjXN.mjs";
|
13
13
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
14
14
|
import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
|
15
15
|
const controllerFactory$6 = (db) => {
|
@@ -84,7 +84,7 @@ const controllerFactory$6 = (db) => {
|
|
84
84
|
};
|
85
85
|
var departments_controller = controllerFactory$6;
|
86
86
|
const jwt = require$$0$1;
|
87
|
-
const ObjectId$
|
87
|
+
const ObjectId$1 = require$$0.Types.ObjectId;
|
88
88
|
const { Client } = require$$5;
|
89
89
|
const client = new Client({});
|
90
90
|
const addUserStatusFields = addUserStatusFields_1;
|
@@ -95,23 +95,19 @@ const controllerFactory$5 = (db) => {
|
|
95
95
|
db.user;
|
96
96
|
db.role;
|
97
97
|
const read = async (req, res2) => {
|
98
|
-
const Organization2 = db.organization;
|
99
|
-
db.membership;
|
100
|
-
db.user;
|
101
|
-
db.role;
|
102
98
|
const sortParam = req.query.sortParam || "numberOfProducts";
|
103
99
|
const sortOrder = req.query.sortOrder || "desc";
|
104
100
|
const sort = {
|
101
|
+
...sortParam === "distance" ? { "distanceExist": -1 } : {},
|
105
102
|
"numberOfProducts": -1,
|
106
103
|
[sortParam]: sortOrder === "desc" ? -1 : 1,
|
107
104
|
"_id": 1
|
108
105
|
};
|
109
|
-
|
106
|
+
console.log(sort);
|
107
|
+
const pagination = {
|
110
108
|
skip: parseInt(req.query.skip) || 0,
|
111
109
|
limit: parseInt(req.query.limit) || 20
|
112
110
|
};
|
113
|
-
const categories = req.query.categories?.split(",") || [];
|
114
|
-
const delivery = req.query.delivery?.split(",") || [];
|
115
111
|
const prices = req.query.prices?.split(",") || [];
|
116
112
|
let priceConditions = prices.map((priceRange) => {
|
117
113
|
if (priceRange.startsWith("<"))
|
@@ -128,20 +124,36 @@ const controllerFactory$5 = (db) => {
|
|
128
124
|
}));
|
129
125
|
}
|
130
126
|
const matchConditions = [
|
131
|
-
...req.query._id ? [{ _id: new ObjectId$
|
132
|
-
...req.query.owner ? [{ owner: new ObjectId$
|
133
|
-
...req.query.member ? [{ "memberships.user": new ObjectId$
|
134
|
-
...req.query.subscriber ? [{ "memberships.user": new ObjectId$
|
135
|
-
...req.query.postable ? [{ $or: [{ $and: [{ types: { $elemMatch: { $eq: "public" } } }, { "memberships.user": new ObjectId$
|
127
|
+
...req.query._id ? [{ _id: new ObjectId$1(req.query._id) }] : [],
|
128
|
+
...req.query.owner ? [{ owner: new ObjectId$1(req.query.owner) }] : [],
|
129
|
+
...req.query.member ? [{ "memberships.user": new ObjectId$1(req.query.member), "memberships.role": "member" }] : [],
|
130
|
+
...req.query.subscriber ? [{ "memberships.user": new ObjectId$1(req.query.subscriber), "memberships.role": "subscriber" }] : [],
|
131
|
+
...req.query.postable ? [{ $or: [{ $and: [{ types: { $elemMatch: { $eq: "public" } } }, { "memberships.user": new ObjectId$1(req.query.postable) }] }, { $and: [{ types: { $elemMatch: { $in: ["exclusive", "hidden"] } } }, { "memberships.user": new ObjectId$1(req.query.postable) }, { "memberships.role": { $ne: "subscriber" } }] }] }] : [],
|
136
132
|
...req.query.types ? [{ types: { $in: req.query.types } }] : [],
|
137
133
|
// Если req.query.types - строка
|
138
134
|
// to remove
|
139
|
-
...req.query.onlyuser ? [{ "memberships.user": new ObjectId$
|
140
|
-
...categories.length > 0 ? [{ "products.category": { $in: categories } }] : [],
|
141
|
-
...delivery.length > 0 ? [{ "spots.delivery": { $all: delivery } }] : [],
|
135
|
+
...req.query.onlyuser ? [{ "memberships.user": new ObjectId$1(req.query.onlyuser) }] : [],
|
136
|
+
...req.query.categories?.split(",").length > 0 ? [{ "products.category": { $in: req.query.categories?.split(",") } }] : [],
|
137
|
+
...req.query.delivery?.split(",").length > 0 ? [{ "spots.delivery": { $all: req.query.delivery?.split(",") } }] : [],
|
142
138
|
...priceConditions.length > 0 ? [{ $or: priceConditions }] : [],
|
143
139
|
...req.query.contain ? containConditions : []
|
144
140
|
];
|
141
|
+
const search = req.query.search;
|
142
|
+
if (search) {
|
143
|
+
const parts = search.split(".");
|
144
|
+
let regexPattern = "";
|
145
|
+
if (parts.length === 2) {
|
146
|
+
regexPattern = parts.map((part) => part.substr(0, part.length - 1) + ".{1}").join("\\.");
|
147
|
+
} else {
|
148
|
+
regexPattern = search.substr(0, search.length - 1) + ".{1}";
|
149
|
+
}
|
150
|
+
matchConditions.push({
|
151
|
+
$or: [
|
152
|
+
{ "profile.name": { $regex: regexPattern, $options: "i" } },
|
153
|
+
{ "products.name": { $regex: regexPattern, $options: "i" } }
|
154
|
+
]
|
155
|
+
});
|
156
|
+
}
|
145
157
|
let { location, address, locationRadius, city, state, country } = req.query;
|
146
158
|
let userLocation = { coordinates: [0, 0] };
|
147
159
|
if (!location && (address || city || state || country)) {
|
@@ -180,22 +192,6 @@ const controllerFactory$5 = (db) => {
|
|
180
192
|
}
|
181
193
|
});
|
182
194
|
}
|
183
|
-
const search = req.query.search;
|
184
|
-
if (search) {
|
185
|
-
const parts = search.split(".");
|
186
|
-
let regexPattern = "";
|
187
|
-
if (parts.length === 2) {
|
188
|
-
regexPattern = parts.map((part) => part.substr(0, part.length - 1) + ".{1}").join("\\.");
|
189
|
-
} else {
|
190
|
-
regexPattern = search.substr(0, search.length - 1) + ".{1}";
|
191
|
-
}
|
192
|
-
matchConditions.push({
|
193
|
-
$or: [
|
194
|
-
{ "profile.name": { $regex: regexPattern, $options: "i" } },
|
195
|
-
{ "products.name": { $regex: regexPattern, $options: "i" } }
|
196
|
-
]
|
197
|
-
});
|
198
|
-
}
|
199
195
|
if (location) {
|
200
196
|
console.log(location);
|
201
197
|
if (typeof location === "string") {
|
@@ -247,6 +243,11 @@ const controllerFactory$5 = (db) => {
|
|
247
243
|
as: "products"
|
248
244
|
}
|
249
245
|
},
|
246
|
+
{
|
247
|
+
$addFields: {
|
248
|
+
numberOfProducts: { $size: "$products" }
|
249
|
+
}
|
250
|
+
},
|
250
251
|
{
|
251
252
|
$lookup: {
|
252
253
|
from: "blogposts",
|
@@ -255,11 +256,6 @@ const controllerFactory$5 = (db) => {
|
|
255
256
|
as: "blogposts"
|
256
257
|
}
|
257
258
|
},
|
258
|
-
{
|
259
|
-
$addFields: {
|
260
|
-
numberOfProducts: { $size: "$products" }
|
261
|
-
}
|
262
|
-
},
|
263
259
|
{
|
264
260
|
$lookup: {
|
265
261
|
from: "departments",
|
@@ -325,7 +321,13 @@ const controllerFactory$5 = (db) => {
|
|
325
321
|
{
|
326
322
|
$addFields: {
|
327
323
|
distance: { $min: "$spots.distance" }
|
328
|
-
|
324
|
+
}
|
325
|
+
},
|
326
|
+
{
|
327
|
+
$addFields: {
|
328
|
+
distanceExist: {
|
329
|
+
$cond: { if: { $eq: [{ $type: "$distance" }, "double"] }, then: true, else: false }
|
330
|
+
}
|
329
331
|
}
|
330
332
|
},
|
331
333
|
{
|
@@ -338,20 +340,14 @@ const controllerFactory$5 = (db) => {
|
|
338
340
|
},
|
339
341
|
addMembersQuantity(),
|
340
342
|
addUserStatusFields(req.query.user),
|
341
|
-
{
|
342
|
-
$addFields: {
|
343
|
-
numberOfProducts: { $size: "$products" }
|
344
|
-
}
|
345
|
-
},
|
346
343
|
...matchStage != null ? [matchStage] : [],
|
347
344
|
{ $sort: sort },
|
348
|
-
{ $skip:
|
349
|
-
{ $limit:
|
345
|
+
{ $skip: pagination.skip },
|
346
|
+
{ $limit: pagination.limit }
|
350
347
|
];
|
351
348
|
try {
|
352
349
|
console.log(stages);
|
353
|
-
const organizations = await
|
354
|
-
console.log(organizations);
|
350
|
+
const organizations = await Organization.aggregate(stages);
|
355
351
|
res2.status(200).send(organizations);
|
356
352
|
} catch (err) {
|
357
353
|
console.log(err);
|
@@ -426,7 +422,7 @@ const controllerFactory$5 = (db) => {
|
|
426
422
|
if (!organization) {
|
427
423
|
return res2.status(404).send({ message: "Organization not found" });
|
428
424
|
}
|
429
|
-
Membership.deleteMany({
|
425
|
+
Membership.deleteMany({ target: req.params._id }).then(() => {
|
430
426
|
const newToken = jwt.sign({
|
431
427
|
_id: user._id,
|
432
428
|
organization: null
|
@@ -452,7 +448,7 @@ const controllerFactory$5 = (db) => {
|
|
452
448
|
};
|
453
449
|
};
|
454
450
|
var organizations_controller = controllerFactory$5;
|
455
|
-
const ObjectId
|
451
|
+
const ObjectId = require$$0.Types.ObjectId;
|
456
452
|
const queryProcessorGlobals = queryProcessor;
|
457
453
|
const controllerFactory$4 = (db) => {
|
458
454
|
const Membership = db.membership;
|
@@ -480,9 +476,9 @@ const controllerFactory$4 = (db) => {
|
|
480
476
|
},
|
481
477
|
{
|
482
478
|
$match: {
|
483
|
-
...req.query.user && { user: new ObjectId
|
479
|
+
...req.query.user && { user: new ObjectId(req.query.user) },
|
484
480
|
...req.query.type && { type: req.query.type },
|
485
|
-
...req.query.target && { target: new ObjectId
|
481
|
+
...req.query.target && { target: new ObjectId(req.query.target) },
|
486
482
|
...req.query.role && { role: { $in: req.query.role } },
|
487
483
|
...req.query.search && {
|
488
484
|
$or: [
|
@@ -544,7 +540,7 @@ const controllerFactory$4 = (db) => {
|
|
544
540
|
const deleteMembership = async (req, res2) => {
|
545
541
|
console.log(req.body);
|
546
542
|
try {
|
547
|
-
const membership = await Membership.findOneAndDelete({ _id: new ObjectId
|
543
|
+
const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) });
|
548
544
|
if (!membership) {
|
549
545
|
return res2.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
|
550
546
|
} else {
|
@@ -952,12 +948,12 @@ var department_model = (mongoose) => {
|
|
952
948
|
const Department = mongoose.model("Department", departmentSchema);
|
953
949
|
return Department;
|
954
950
|
};
|
955
|
-
const
|
956
|
-
var organization_model = (
|
957
|
-
const OrganizationSchema = new mongoose.Schema({
|
951
|
+
const applyEngagementSchema = engagement_schema;
|
952
|
+
var organization_model = (db) => {
|
953
|
+
const OrganizationSchema = new db.mongoose.Schema({
|
958
954
|
// Creator and owner of organizations
|
959
955
|
owner: {
|
960
|
-
type: ObjectId,
|
956
|
+
type: db.mongoose.Schema.Types.ObjectId,
|
961
957
|
ref: "User",
|
962
958
|
required: true
|
963
959
|
},
|
@@ -1018,7 +1014,8 @@ var organization_model = (mongoose) => {
|
|
1018
1014
|
}, {
|
1019
1015
|
timestamps: true
|
1020
1016
|
});
|
1021
|
-
|
1017
|
+
applyEngagementSchema(OrganizationSchema);
|
1018
|
+
const Organization = db.mongoose.model("Organization", OrganizationSchema);
|
1022
1019
|
return Organization;
|
1023
1020
|
};
|
1024
1021
|
var membership_model = (mongoose) => {
|
package/dist/products.server.js
CHANGED
@@ -7,7 +7,7 @@ const require$$0 = require("mongoose");
|
|
7
7
|
require("path");
|
8
8
|
const require$$3 = require("openai");
|
9
9
|
const index = require("./index-BCCiEK_u.js");
|
10
|
-
const queryProcessor = require("./queryProcessor-
|
10
|
+
const queryProcessor = require("./queryProcessor-DWf9tsis.js");
|
11
11
|
var product_model = (mongoose) => {
|
12
12
|
const ProductSchema = new mongoose.Schema({
|
13
13
|
status: { type: String },
|
package/dist/products.server.mjs
CHANGED
@@ -5,7 +5,7 @@ import require$$0 from "mongoose";
|
|
5
5
|
import "path";
|
6
6
|
import require$$3 from "openai";
|
7
7
|
import { s as server } from "./index-B6a1mPgp.mjs";
|
8
|
-
import { q as queryProcessor } from "./queryProcessor-
|
8
|
+
import { q as queryProcessor } from "./queryProcessor-BJoJAetd.mjs";
|
9
9
|
var product_model = (mongoose) => {
|
10
10
|
const ProductSchema = new mongoose.Schema({
|
11
11
|
status: { type: String },
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");require("./Address.vue.cjs");const v=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_={key:0,class:"t-transp mn-r-small"},h=["placeholder","value"],k={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},locale:{type:String,default:"en"}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(l,{emit:
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../../../node_modules/@googlemaps/js-api-loader/dist/index.cjs");require("./Address.vue.cjs");const v=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),_={key:0,class:"t-transp mn-r-small"},h=["placeholder","value"],k={key:0,class:"mn-t-thin invalid-feedback"},b={__name:"Address",props:{apiKey:{type:String,required:!0},label:null,placeholder:"Enter something here",field:null,location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},locale:{type:String,default:"en"}},emits:["update:address","update:location","update:country","update:state","update:city"],setup(l,{emit:p}){const c=l,o=p,i=e.ref(null);let d;const m=()=>{const t=d.getPlace();if(!t.geometry||!t.address_components)return;let a="",s="",u="";for(let r=0;r<t.address_components.length;r++){let n=t.address_components[r];n.types.includes("country")&&(a=n.long_name),n.types.includes("administrative_area_level_1")&&(s=n.long_name),n.types.includes("locality")&&(u=n.long_name)}const y=t.formatted_address,g={lat:t.geometry.location.lat(),lng:t.geometry.location.lng()};o("update:address",y),o("update:location",g),o("update:country",a),o("update:state",s),o("update:city",u)};return e.onMounted(()=>{new f.Loader({apiKey:c.apiKey,version:"weekly",libraries:["places"],language:c.locale}).load().then(()=>{d=new google.maps.places.Autocomplete(i.value),d.addListener("place_changed",m)}).catch(a=>{console.error(a)})}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.$attrs.class,"flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("input",{ref_key:"addressInput",ref:i,class:"w-100",placeholder:l.placeholder,value:l.address,onInput:a[0]||(a[0]=(...s)=>t.onInput&&t.onInput(...s))},null,40,h),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",k," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}},w=v.default(b,[["__scopeId","data-v-0fc64e8d"]]);exports.default=w;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as w, onMounted as k, openBlock as r, createElementBlock as i, normalizeClass as b, createElementVNode as
|
1
|
+
import { ref as w, onMounted as k, openBlock as r, createElementBlock as i, normalizeClass as b, createElementVNode as m, toDisplayString as y, createCommentVNode as f, createVNode as I, Transition as A, withCtx as C } from "vue";
|
2
2
|
import { Loader as S } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
3
3
|
import "./Address.vue.js";
|
4
4
|
import E from "../../../../_virtual/_plugin-vue_export-helper.js";
|
@@ -32,29 +32,29 @@ const K = {
|
|
32
32
|
}
|
33
33
|
},
|
34
34
|
emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
|
35
|
-
setup(n, { emit:
|
36
|
-
const
|
35
|
+
setup(n, { emit: g }) {
|
36
|
+
const c = n, l = g, p = w(null);
|
37
37
|
let s;
|
38
38
|
const h = () => {
|
39
39
|
const e = s.getPlace();
|
40
40
|
if (!e.geometry || !e.address_components)
|
41
41
|
return;
|
42
|
-
let t = "",
|
42
|
+
let t = "", o = "", u = "";
|
43
43
|
for (let d = 0; d < e.address_components.length; d++) {
|
44
44
|
let a = e.address_components[d];
|
45
|
-
a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (
|
45
|
+
a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (o = a.long_name), a.types.includes("locality") && (u = a.long_name);
|
46
46
|
}
|
47
47
|
const _ = e.formatted_address, v = { lat: e.geometry.location.lat(), lng: e.geometry.location.lng() };
|
48
|
-
|
48
|
+
l("update:address", _), l("update:location", v), l("update:country", t), l("update:state", o), l("update:city", u);
|
49
49
|
};
|
50
50
|
return k(() => {
|
51
51
|
new S({
|
52
|
-
apiKey:
|
52
|
+
apiKey: c.apiKey,
|
53
53
|
version: "weekly",
|
54
|
-
libraries: ["places"]
|
55
|
-
|
54
|
+
libraries: ["places"],
|
55
|
+
language: c.locale
|
56
56
|
}).load().then(() => {
|
57
|
-
s = new google.maps.places.Autocomplete(
|
57
|
+
s = new google.maps.places.Autocomplete(p.value), s.addListener("place_changed", h);
|
58
58
|
}).catch((t) => {
|
59
59
|
console.error(t);
|
60
60
|
});
|
@@ -62,28 +62,28 @@ const K = {
|
|
62
62
|
class: b([e.$attrs.class, "flex-nowrap flex"])
|
63
63
|
}, [
|
64
64
|
n.label ? (r(), i("div", K, [
|
65
|
-
|
66
|
-
])) :
|
67
|
-
|
65
|
+
m("span", null, y(n.label), 1)
|
66
|
+
])) : f("", !0),
|
67
|
+
m("input", {
|
68
68
|
ref_key: "addressInput",
|
69
|
-
ref:
|
69
|
+
ref: p,
|
70
70
|
class: "w-100",
|
71
71
|
placeholder: n.placeholder,
|
72
72
|
value: n.address,
|
73
|
-
onInput: t[0] || (t[0] = (...
|
73
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o))
|
74
74
|
}, null, 40, L),
|
75
75
|
I(A, {
|
76
76
|
mode: "out-in",
|
77
77
|
name: "fade"
|
78
78
|
}, {
|
79
79
|
default: C(() => [
|
80
|
-
e.validation ? (r(), i("div", N, " * " +
|
80
|
+
e.validation ? (r(), i("div", N, " * " + y(e.validation.message), 1)) : f("", !0)
|
81
81
|
]),
|
82
82
|
_: 1
|
83
83
|
})
|
84
84
|
], 2));
|
85
85
|
}
|
86
|
-
}, x = /* @__PURE__ */ E(V, [["__scopeId", "data-v-
|
86
|
+
}, x = /* @__PURE__ */ E(V, [["__scopeId", "data-v-0fc64e8d"]]);
|
87
87
|
export {
|
88
88
|
x as default
|
89
89
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue2.cjs"),a={class:"bg-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue2.cjs"),a={class:"bg-light pd-medium radius-big"},c={key:0,class:"mn-b-small flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-thin t-medium p-big"},u=["onClick"],d=e.createElementVNode("p",{class:"bg-main radius-small t-center i-medium"},"i",-1),m={key:1,class:"w-100"},h={__name:"Block",props:{title:{type:String,default:null},tooltip:{type:String,default:null},actions:{type:Array,default:null},placeholder:{type:String,default:"Nothing here"},options:{type:Object,default:{theme:"white"}}},setup(t){e.useSlots();const r=(n,o={})=>n?n(o).some(l=>Array.isArray(l.children)?!!l.children.length:l.type!==e.Comment):!1;return(n,o)=>(e.openBlock(),e.createElementBlock("div",a,[t.title||t.actions?(e.openBlock(),e.createElementBlock("div",c,[t.title?(e.openBlock(),e.createElementBlock("p",s,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("button",{onClick:l.function,class:e.normalizeClass(["pd-thin button-delete button",l.class||"bg-main radius-small t-center i-medium"])},e.toDisplayString(l.label),11,u))),256)),t.tooltip?(e.openBlock(),e.createBlock(i.default,{key:1,text:t.tooltip},{default:e.withCtx(()=>[d]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r(n.$slots.default)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.placeholder),1)),e.renderSlot(n.$slots,"default")]))}};exports.default=h;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { useSlots as u, openBlock as l, createElementBlock as n, toDisplayString as o, createCommentVNode as r, Fragment as c, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as
|
1
|
+
import { useSlots as u, openBlock as l, createElementBlock as n, toDisplayString as o, createCommentVNode as r, Fragment as c, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as p, createElementVNode as y, Comment as g } from "vue";
|
2
2
|
import b from "../Tooltip/Tooltip.vue2.js";
|
3
|
-
const k = { class: "bg-
|
3
|
+
const k = { class: "bg-light pd-medium radius-big" }, C = {
|
4
4
|
key: 0,
|
5
5
|
class: "mn-b-small flex-v-center flex-nowrap flex"
|
6
6
|
}, S = {
|
7
7
|
key: 0,
|
8
8
|
class: "mn-r-thin t-medium p-big"
|
9
|
-
}, x = ["onClick"], w = /* @__PURE__ */
|
9
|
+
}, x = ["onClick"], w = /* @__PURE__ */ y("p", { class: "bg-main radius-small t-center i-medium" }, "i", -1), B = {
|
10
10
|
key: 1,
|
11
11
|
class: "w-100"
|
12
12
|
}, _ = {
|
@@ -56,7 +56,7 @@ const k = { class: "bg-grey pd-medium radius-big" }, C = {
|
|
56
56
|
}, 8, ["text"])) : r("", !0)
|
57
57
|
])) : r("", !0),
|
58
58
|
a(i.$slots.default) ? r("", !0) : (l(), n("span", B, o(t.placeholder), 1)),
|
59
|
-
|
59
|
+
p(i.$slots, "default")
|
60
60
|
]));
|
61
61
|
}
|
62
62
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),u={class:"flex-v-center flex-nowrap flex"},o={key:0,class:"mn-r-auto t-transp mn-r-small"},s=["name","value","checked"],m={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]},theme:{type:String,default:"light"}},emits:["update:radio"],setup(e,{emit:d}){const t=e,l=d,c=r=>{if(Array.isArray(t.radio)){let i=[...t.radio];if(r.target.checked)i.push(t.value);else{const n=i.indexOf(t.value);n!==-1&&i.splice(n,1)}l("update:radio",i)}else typeof t.radio=="boolean"&&l("update:radio",r.target.checked)};return(r,i)=>(a.openBlock(),a.createElementBlock("label",u,[e.label?(a.openBlock(),a.createElementBlock("div",o,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:c,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,s),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra",{"bg-dark":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio)&&e.theme==="dark","bg-light":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio)&&e.theme==="light","bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}};exports.default=m;
|
@@ -1,10 +1,8 @@
|
|
1
|
-
import { openBlock as d, createElementBlock as
|
2
|
-
|
3
|
-
import y from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const f = { class: "flex-v-center flex-nowrap flex" }, v = {
|
1
|
+
import { openBlock as d, createElementBlock as c, createElementVNode as t, toDisplayString as s, createCommentVNode as h, normalizeClass as u } from "vue";
|
2
|
+
const y = { class: "flex-v-center flex-nowrap flex" }, g = {
|
5
3
|
key: 0,
|
6
4
|
class: "mn-r-auto t-transp mn-r-small"
|
7
|
-
},
|
5
|
+
}, v = ["name", "value", "checked"], f = {
|
8
6
|
__name: "Checkbox",
|
9
7
|
props: {
|
10
8
|
label: String,
|
@@ -13,51 +11,56 @@ const f = { class: "flex-v-center flex-nowrap flex" }, v = {
|
|
13
11
|
radio: {
|
14
12
|
type: [Array, Boolean, Object],
|
15
13
|
default: () => []
|
14
|
+
},
|
15
|
+
theme: {
|
16
|
+
type: String,
|
17
|
+
default: "light"
|
16
18
|
}
|
17
19
|
},
|
18
20
|
emits: ["update:radio"],
|
19
|
-
setup(
|
20
|
-
const
|
21
|
-
if (Array.isArray(
|
22
|
-
let i = [...
|
21
|
+
setup(a, { emit: o }) {
|
22
|
+
const e = a, l = o, m = (r) => {
|
23
|
+
if (Array.isArray(e.radio)) {
|
24
|
+
let i = [...e.radio];
|
23
25
|
if (r.target.checked)
|
24
|
-
i.push(
|
26
|
+
i.push(e.value);
|
25
27
|
else {
|
26
|
-
const
|
27
|
-
|
28
|
+
const n = i.indexOf(e.value);
|
29
|
+
n !== -1 && i.splice(n, 1);
|
28
30
|
}
|
29
|
-
|
31
|
+
l("update:radio", i);
|
30
32
|
} else
|
31
|
-
typeof
|
33
|
+
typeof e.radio == "boolean" && l("update:radio", r.target.checked);
|
32
34
|
};
|
33
|
-
return (r, i) => (d(),
|
34
|
-
|
35
|
-
t("span", null,
|
35
|
+
return (r, i) => (d(), c("label", y, [
|
36
|
+
a.label ? (d(), c("div", g, [
|
37
|
+
t("span", null, s(a.label), 1)
|
36
38
|
])) : h("", !0),
|
37
39
|
t("input", {
|
38
|
-
onChange:
|
40
|
+
onChange: m,
|
39
41
|
class: "round radiobutton",
|
40
42
|
type: "checkbox",
|
41
|
-
name:
|
42
|
-
value:
|
43
|
-
checked: Array.isArray(
|
44
|
-
}, null, 40,
|
43
|
+
name: a.name,
|
44
|
+
value: a.value,
|
45
|
+
checked: Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio
|
46
|
+
}, null, 40, v),
|
45
47
|
t("div", {
|
46
|
-
class:
|
47
|
-
"bg-
|
48
|
-
"bg-
|
48
|
+
class: u(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra", {
|
49
|
+
"bg-dark": !(Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio) && a.theme === "dark",
|
50
|
+
"bg-light": !(Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio) && a.theme === "light",
|
51
|
+
"bg-main": Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio
|
49
52
|
}])
|
50
53
|
}, [
|
51
54
|
t("div", {
|
52
|
-
class:
|
53
|
-
"mn-r-auto": !(Array.isArray(
|
54
|
-
"mn-l-auto": Array.isArray(
|
55
|
+
class: u(["transition-linear w-1r h-1r radius-extra h-100 bg-white", {
|
56
|
+
"mn-r-auto": !(Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio),
|
57
|
+
"mn-l-auto": Array.isArray(a.radio) ? a.radio.includes(a.value) : a.radio
|
55
58
|
}])
|
56
59
|
}, null, 2)
|
57
60
|
], 2)
|
58
61
|
]));
|
59
62
|
}
|
60
|
-
}
|
63
|
+
};
|
61
64
|
export {
|
62
|
-
|
65
|
+
f as default
|
63
66
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Chips.vue2.cjs");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Chips.vue2.cjs");const i=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),l={class:"t-trimmed font-main"},o={class:"font-main t-truncate"},a={key:1,class:"pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"},c={__name:"Chips",props:["chips"],setup(n){return(s,m)=>{var r;return e.openBlock(),e.createElementBlock("div",l,[(r=n.chips)!=null&&r.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.chips,(t,u)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([s.$attrs.class||"p-medium","mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])},[e.createElementVNode("span",o,e.toDisplayString(t.text?t.text:t),1)],2))),256)):(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(s.$slots,"default",{},void 0,!0)]))])}}},d=i.default(c,[["__scopeId","data-v-20cd2675"]]);exports.default=d;
|
@@ -1,27 +1,27 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as e, Fragment as
|
1
|
+
import { openBlock as t, createElementBlock as e, Fragment as a, renderList as o, normalizeClass as d, createElementVNode as m, toDisplayString as c, renderSlot as l } from "vue";
|
2
2
|
import "./Chips.vue2.js";
|
3
3
|
import p from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const u = { class: "t-trimmed" }, h = { class: "t-truncate" }, _ = {
|
4
|
+
const u = { class: "t-trimmed font-main" }, h = { class: "font-main t-truncate" }, _ = {
|
5
5
|
key: 1,
|
6
6
|
class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
|
7
7
|
}, f = {
|
8
8
|
__name: "Chips",
|
9
9
|
props: ["chips"],
|
10
|
-
setup(
|
11
|
-
return (
|
12
|
-
var
|
10
|
+
setup(n) {
|
11
|
+
return (i, b) => {
|
12
|
+
var r;
|
13
13
|
return t(), e("div", u, [
|
14
|
-
(
|
15
|
-
class:
|
14
|
+
(r = n.chips) != null && r.length ? (t(!0), e(a, { key: 0 }, o(n.chips, (s, g) => (t(), e("span", {
|
15
|
+
class: d([i.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
|
16
16
|
}, [
|
17
17
|
m("span", h, c(s.text ? s.text : s), 1)
|
18
18
|
], 2))), 256)) : (t(), e("div", _, [
|
19
|
-
l(
|
19
|
+
l(i.$slots, "default", {}, void 0, !0)
|
20
20
|
]))
|
21
21
|
]);
|
22
22
|
};
|
23
23
|
}
|
24
|
-
}, y = /* @__PURE__ */ p(f, [["__scopeId", "data-v-
|
24
|
+
}, y = /* @__PURE__ */ p(f, [["__scopeId", "data-v-20cd2675"]]);
|
25
25
|
export {
|
26
26
|
y as default
|
27
27
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("./Calendar.vue.cjs");const N=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={class:"calendar"},S={key:0,class:"br-b br-solid br-grey gap-thin flex flex-nowrap pd-thin"},L={class:"pd-thin flex flex-nowrap flex-v-center flex-justify-between"},W={class:"calendar__body"},O={class:"calendar__week"},R={class:"gap-micro calendar__dates"},j=["onClick"],q={__name:"Calendar",props:{modelValue:[Date,Object],allowRange:Boolean},emits:["update:modelValue"],setup(C,{emit:U}){const m=C,r=U,v=new Date,s=t.ref(v),g=t.ref(null),l=t.ref(null),n=t.ref(null),p=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),h=t.computed(()=>{const e=s.value.toLocaleString("default",{month:"long",timeZone:"UTC"}),a=s.value.getUTCFullYear();return`${e} ${a}`}),f=t.computed(()=>{const e=[],a=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth(),1)),u=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()+1,0)),d=a.getUTCDay();let o=new Date(a);o.setUTCDate(o.getUTCDate()-d);for(let i=0;i<d;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);let D=1;for(o=a;o<=u;o.setUTCDate(o.getUTCDate()+1))e.push({date:new Date(o),day:D,isToday:T(o)}),D++;const x=e[e.length-1].date.getUTCDay();for(let i=x+1;i<=6;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);return e}),T=e=>{const a=new Date;return e.getUTCDate()===a.getUTCDate()&&e.getUTCMonth()===a.getUTCMonth()&&e.getUTCFullYear()===a.getUTCFullYear()},_=e=>e.getUTCMonth()===s.value.getUTCMonth()&&e.getUTCFullYear()===s.value.getUTCFullYear(),w=e=>{if(m.allowRange){if(l.value&&n.value)return e>=l.value&&e<=n.value;if(l.value)return e.getTime()===l.value.getTime()}else return g.value&&e.getTime()===g.value.getTime()},y=e=>l.value&&n.value?e>l.value&&e<n.value:!1,k=e=>{const a=c(e);if(!m.allowRange)r("update:modelValue",a),g.value=a;else if(!l.value&&!n.value)r("update:modelValue",a),l.value=a;else if(n.value)l.value=a,n.value=null,r("update:modelValue",a);else{if(n.value=a,a<l.value){const u=l.value;l.value=a,n.value=u}r("update:modelValue",{start:l.value,end:n.value})}s.value=a},b=()=>{s.value=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()-1,1))},V=()=>{s.value=new Date(Date.UTC(s.value.getUTCFullYear(),s.value.getUTCMonth()+1,1))},M=()=>{const e=new Date(v);e.setUTCHours(0,0,0,0);const a=new Date(e);a.setUTCHours(24,0,0,-1),l.value=c(e),n.value=c(a),r("update:modelValue",{start:l.value,end:n.value})},F=()=>{const e=new Date;e.setUTCDate(e.getUTCDate()-7),l.value=c(e),n.value=c(v),r("update:modelValue",{start:l.value,end:n.value})},Y=()=>{const e=new Date;e.setUTCMonth(e.getUTCMonth()-1),l.value=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),1)),n.value=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth()+1,0)),r("update:modelValue",{start:l.value,end:n.value})},E=()=>{const e=new Date;e.setUTCFullYear(e.getUTCFullYear()-1),l.value=new Date(Date.UTC(e.getUTCFullYear(),0,1)),n.value=new Date(Date.UTC(e.getUTCFullYear(),11,31)),r("update:modelValue",{start:l.value,end:n.value})};return(e,a)=>(t.openBlock(),t.createElementBlock("div",B,[C.allowRange?(t.openBlock(),t.createElementBlock("div",S,[t.createElementVNode("button",{class:"font-second pd-thin bg-main-transp-10 radius-small",onClick:M},"Today"),t.createElementVNode("button",{class:"font-second pd-thin bg-main-transp-10 radius-small",onClick:F},"Last Week"),t.createElementVNode("button",{class:"font-second pd-thin bg-main-transp-10 radius-small",onClick:Y},"Last Month"),t.createElementVNode("button",{class:"font-second pd-thin bg-main-transp-10 radius-small",onClick:E},"All time")])):t.createCommentVNode("",!0),t.createElementVNode("div",L,[t.createElementVNode("button",{class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small",onClick:b},"<"),t.createElementVNode("span",null,t.toDisplayString(h.value),1),t.createElementVNode("button",{class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small",onClick:V},">")]),t.createElementVNode("div",W,[t.createElementVNode("div",O,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(p,(u,d)=>t.createElementVNode("div",{key:d,class:"calendar__weekday"},t.toDisplayString(u),1)),64))]),t.createElementVNode("div",R,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,u=>(t.openBlock(),t.createElementBlock("div",{key:u.date,class:t.normalizeClass(["flex flex-center cursor-pointer aspect-ratio-1x1 radius-small",{"bg-main t-white":u.isToday},{"calendar__date--selected":w(u.date)},{"calendar__date--range":y(u.date)},{"calendar__date--disabled":!_(u.date)}]),onClick:d=>k(u.date)},t.toDisplayString(u.day),11,j))),128))])])]))}},H=N.default(q,[["__scopeId","data-v-f695bc9a"]]);exports.default=H;
|