@ozdao/prometheus-framework 0.2.130 → 0.2.133
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +0 -1
- package/dist/auth.server.mjs +0 -1
- package/dist/community.server.js +172 -31
- package/dist/community.server.mjs +172 -31
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +38 -4
- package/dist/files.server.mjs +38 -4
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/main-CI9l9xMs.js +92 -0
- package/dist/main-DPg58GOU.mjs +14509 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +4 -3
- package/dist/organizations.server.mjs +4 -3
- package/dist/products.server.js +2 -1
- package/dist/products.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +89 -0
- package/dist/prometheus-framework/src/components/Address/Address.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue2.js +22 -23
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +13 -13
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +95 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +12 -13
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Chips/Chips.vue2.js +26 -0
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +32 -33
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Draggable/Draggable.vue.js +75 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +14 -15
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +57 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +93 -87
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -0
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +32 -29
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +22 -23
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/FieldTags.vue.js +39 -39
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/tag-input.vue2.js +5 -5
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +127 -0
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +46 -47
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +13 -0
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/PhotoViewer/PhotoViewer.vue.js +22 -23
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +103 -0
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +14 -15
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +9 -10
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +37 -34
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +18 -18
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +11 -11
- package/dist/prometheus-framework/src/modules/community/community.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/community.client.js +12 -14
- 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 +54 -71
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/FooterBlogpost.vue.js +57 -29
- 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 +86 -76
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Blog.vue.js +58 -28
- 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 +71 -80
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/community/components/sections/Comment.vue.js +104 -0
- 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 +99 -54
- 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 +27 -28
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +45 -34
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +31 -29
- 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 +32 -27
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -0
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +67 -0
- 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 +16 -16
- 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 +119 -112
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +6 -6
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +22 -22
- 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 +27 -27
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockFilter.vue.js +33 -22
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/marketplace/store/marketplace.js +3 -9
- 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 +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 +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +9 -9
- 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 +39 -38
- 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 +1 -1
- 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 +2 -2
- 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 +112 -85
- 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 -35
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +8 -8
- 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/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- 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 +17 -17
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +18 -18
- 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 +6 -6
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +12 -12
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +3 -2
- 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 +32 -37
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/blocks/CardUser.vue.js +14 -14
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +29 -29
- 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 +53 -35
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardBalanceReplenished.vue.js +30 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CardDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CashDeposite.vue.js +26 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/blocks/CryptoDeposite.vue.js +42 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/localization/Wallet.json.js +26 -0
- 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 +154 -77
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +14 -14
- package/dist/queryProcessor-DQSFR9YA.mjs +179 -0
- package/dist/queryProcessor-iewDZq_f.js +178 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +80 -27
- package/dist/wallet.server.mjs +80 -27
- package/dist/web-DZUec7pP.js +1 -0
- package/dist/web-krQQeSb6.mjs +54 -0
- package/package.json +1 -1
- package/src/components/Address/Address.vue +1 -1
- package/src/components/Chips/Chips.vue +1 -1
- package/src/components/Completion/Completion.vue +1 -4
- package/src/components/DatePicker/Calendar.vue +1 -1
- package/src/components/Draggable/Draggable.vue +113 -0
- package/src/components/Dropdown/Dropdown.vue +1 -1
- package/src/components/Feed/Feed.vue +18 -12
- package/src/components/FieldBig/FieldBig.vue +11 -1
- package/src/components/FieldPhone/FieldPhone.vue +1 -1
- package/src/components/FieldTags/FieldTags.vue +2 -1
- package/src/components/FieldTags/tag-input.vue +1 -1
- package/src/components/LocationMarker/LocationMarker.vue +1 -1
- package/src/components/PhotoViewer/PhotoViewer.vue +1 -1
- package/src/components/Shader/Shader.vue +2 -2
- package/src/components/Slider/Slider.vue +1 -5
- package/src/components/Spoiler/Spoiler.vue +1 -1
- package/src/components/Text/Text.vue +1 -4
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/Upload/Upload.vue +5 -3
- package/src/modules/auth/controllers/auth.controller.js +0 -2
- package/src/modules/auth/store/auth.js +2 -2
- package/src/modules/community/DOCUMENTATION.MD +4 -0
- package/src/modules/community/community.client.js +0 -2
- package/src/modules/community/components/blocks/CardBlogpost.vue +6 -2
- package/src/modules/community/components/blocks/FooterBlogpost.vue +21 -5
- package/src/modules/community/components/layouts/Community.vue +15 -11
- package/src/modules/community/components/pages/Blog.vue +25 -32
- package/src/modules/community/components/pages/CreateBlogPost.vue +8 -15
- package/src/modules/community/components/sections/Comment.vue +123 -0
- package/src/modules/community/components/sections/Comments.vue +90 -19
- package/src/modules/community/components/sections/HotPosts.vue +3 -6
- package/src/modules/community/controllers/blog.controller.js +1 -1
- package/src/modules/community/controllers/comments.controller.aggr.js +280 -0
- package/src/modules/community/controllers/comments.controller.js +187 -38
- package/src/modules/community/controllers/comments.controller.populate.js +180 -0
- package/src/modules/community/models/comment.model.js +15 -0
- package/src/modules/community/store/blogposts.js +20 -2
- package/src/modules/constructor/components/elements/Audio.vue +28 -40
- package/src/modules/constructor/components/elements/ImageUpload.vue +12 -7
- package/src/modules/constructor/components/elements/Video.vue +10 -18
- package/src/modules/constructor/components/sections/Constructor.vue +54 -47
- package/src/modules/files/controllers/files.controller.js +2 -0
- package/src/modules/files/middlewares/server/middlewareBusboy.js +32 -4
- package/src/modules/files/routes/files.routes.js +8 -0
- package/src/modules/globals/components/blocks/BlockFilter.vue +17 -7
- package/src/modules/globals/components/partials/Header.vue +12 -7
- package/src/modules/globals/controllers/utils/queryProcessor.js +1 -0
- package/src/modules/icons/logos/Logotype.vue +8 -6
- package/src/modules/icons/logos/LogotypeNunito.vue +12 -0
- package/src/modules/marketplace/components/layouts/Marketplace.vue +29 -27
- package/src/modules/marketplace/store/marketplace.js +2 -8
- package/src/modules/organizations/components/blocks/CardOrganization.vue +1 -1
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +33 -5
- package/src/modules/organizations/components/pages/OrganizationEdit.vue +7 -4
- package/src/modules/organizations/components/sections/DetailsTab.vue +10 -10
- package/src/modules/organizations/components/sections/Publics.vue +2 -2
- package/src/modules/organizations/controllers/memberships.controller.js +2 -3
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/store/memberships.js +4 -1
- package/src/modules/products/components/blocks/CardProduct.vue +1 -1
- package/src/modules/products/components/sections/HeroRecommendation.vue +11 -8
- package/src/modules/products/models/product.model.js +2 -1
- package/src/modules/spots/components/layouts/Spots.vue +0 -3
- package/src/modules/spots/components/pages/Map.vue +13 -3
- package/src/modules/users/components/blocks/CardUser.vue +2 -2
- package/src/modules/users/components/pages/ProfileBlogposts.vue +45 -28
- package/src/modules/wallet/components/blocks/CardBalanceReplenished.vue +40 -0
- package/src/modules/wallet/components/blocks/CardDeposite.vue +55 -0
- package/src/modules/wallet/components/blocks/CashDeposite.vue +28 -0
- package/src/modules/wallet/components/blocks/CryptoDeposite.vue +55 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.aggr.js +181 -0
- package/src/modules/wallet/controllers/factories/rewards.factory.js +87 -113
- package/src/modules/wallet/controllers/factories/rewards.factory.population.js +213 -0
- package/src/modules/wallet/localization/Wallet.json +22 -0
- package/src/modules/wallet/views/components/pages/Wallet.vue +153 -53
- package/src/styles/base/all.scss +16 -26
- package/src/styles/config.scss +70 -34
- package/src/styles/typography.scss +5 -5
- package/src/modules/community/components/sections/Feed.vue +0 -148
- package/src/modules/middlewares/server/accessors/AccessController.js +0 -33
- package/src/modules/middlewares/server/accessors/ReadDepartments.js +0 -101
package/dist/orders.server.js
CHANGED
@@ -3,7 +3,7 @@ const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
|
3
3
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
4
4
|
const profile_schema = require("./profile.schema-CkOhhf37.js");
|
5
5
|
const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
|
6
|
-
const queryProcessor = require("./queryProcessor-
|
6
|
+
const queryProcessor = require("./queryProcessor-iewDZq_f.js");
|
7
7
|
const mailing = require("./mailing-BX0q8DIs.js");
|
8
8
|
const index = require("./index-BshfsiQG.js");
|
9
9
|
const require$$0 = require("node-cache");
|
package/dist/orders.server.mjs
CHANGED
@@ -2,7 +2,7 @@ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
|
2
2
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
3
3
|
import { p as profile_schema } from "./profile.schema-24ZpZQJe.mjs";
|
4
4
|
import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
|
5
|
-
import { q as queryProcessor } from "./queryProcessor-
|
5
|
+
import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
|
6
6
|
import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
|
7
7
|
import { s as server } from "./index-DKtnWDNC.mjs";
|
8
8
|
import require$$0 from "node-cache";
|
@@ -7,7 +7,7 @@ const require$$3 = require("uuidv4");
|
|
7
7
|
const require$$0 = require("mongoose");
|
8
8
|
const require$$5 = require("@googlemaps/google-maps-services-js");
|
9
9
|
const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
|
10
|
-
const queryProcessor = require("./queryProcessor-
|
10
|
+
const queryProcessor = require("./queryProcessor-iewDZq_f.js");
|
11
11
|
const mailing = require("./mailing-BX0q8DIs.js");
|
12
12
|
const index = require("./index-BshfsiQG.js");
|
13
13
|
const engagement_schema = require("./engagement.schema-D-9md46B.js");
|
@@ -100,8 +100,8 @@ const controllerFactory$5 = (db) => {
|
|
100
100
|
const sortOrder = req.query.sortOrder || "desc";
|
101
101
|
const sort = {
|
102
102
|
...sortParam === "distance" ? { "distanceExist": -1 } : {},
|
103
|
-
"numberOfProducts": -1,
|
104
103
|
[sortParam]: sortOrder === "desc" ? -1 : 1,
|
104
|
+
"numberOfProducts": -1,
|
105
105
|
"_id": 1
|
106
106
|
};
|
107
107
|
console.log(sort);
|
@@ -537,9 +537,10 @@ const controllerFactory$4 = (db) => {
|
|
537
537
|
}
|
538
538
|
};
|
539
539
|
const deleteMembership = async (req, res) => {
|
540
|
+
const { _id, type, target, user: user2, role } = req.body;
|
540
541
|
console.log(req.body);
|
541
542
|
try {
|
542
|
-
const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) });
|
543
|
+
const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) }) : await Membership.findOne({ type, target, user: user2, role });
|
543
544
|
if (!membership) {
|
544
545
|
return res.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
|
545
546
|
} else {
|
@@ -6,7 +6,7 @@ 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-DQSFR9YA.mjs";
|
10
10
|
import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
|
11
11
|
import { s as server } from "./index-DKtnWDNC.mjs";
|
12
12
|
import { e as engagement_schema } from "./engagement.schema-CCdSLKd4.mjs";
|
@@ -99,8 +99,8 @@ const controllerFactory$5 = (db) => {
|
|
99
99
|
const sortOrder = req.query.sortOrder || "desc";
|
100
100
|
const sort = {
|
101
101
|
...sortParam === "distance" ? { "distanceExist": -1 } : {},
|
102
|
-
"numberOfProducts": -1,
|
103
102
|
[sortParam]: sortOrder === "desc" ? -1 : 1,
|
103
|
+
"numberOfProducts": -1,
|
104
104
|
"_id": 1
|
105
105
|
};
|
106
106
|
console.log(sort);
|
@@ -536,9 +536,10 @@ const controllerFactory$4 = (db) => {
|
|
536
536
|
}
|
537
537
|
};
|
538
538
|
const deleteMembership = async (req, res) => {
|
539
|
+
const { _id, type, target, user: user2, role } = req.body;
|
539
540
|
console.log(req.body);
|
540
541
|
try {
|
541
|
-
const membership = await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) });
|
542
|
+
const membership = _id ? await Membership.findOneAndDelete({ _id: new ObjectId(req.body._id) }) : await Membership.findOne({ type, target, user: user2, role });
|
542
543
|
if (!membership) {
|
543
544
|
return res.status(404).send({ errorCode: "MEMBERSHIP_NOT_FOUND" });
|
544
545
|
} else {
|
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-BshfsiQG.js");
|
10
|
-
const queryProcessor = require("./queryProcessor-
|
10
|
+
const queryProcessor = require("./queryProcessor-iewDZq_f.js");
|
11
11
|
var product_model = (mongoose) => {
|
12
12
|
const ProductSchema = new mongoose.Schema({
|
13
13
|
status: { type: String },
|
@@ -26,6 +26,7 @@ var product_model = (mongoose) => {
|
|
26
26
|
}],
|
27
27
|
// ЗАДАЧА: Нужно отрефачить price, перенести его в default variant
|
28
28
|
price: { type: Number },
|
29
|
+
prices: { type: Array },
|
29
30
|
//
|
30
31
|
variants: [{
|
31
32
|
_id: { type: mongoose.Schema.Types.ObjectId, auto: true },
|
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-DKtnWDNC.mjs";
|
8
|
-
import { q as queryProcessor } from "./queryProcessor-
|
8
|
+
import { q as queryProcessor } from "./queryProcessor-DQSFR9YA.mjs";
|
9
9
|
var product_model = (mongoose) => {
|
10
10
|
const ProductSchema = new mongoose.Schema({
|
11
11
|
status: { type: String },
|
@@ -24,6 +24,7 @@ var product_model = (mongoose) => {
|
|
24
24
|
}],
|
25
25
|
// ЗАДАЧА: Нужно отрефачить price, перенести его в default variant
|
26
26
|
price: { type: Number },
|
27
|
+
prices: { type: Array },
|
27
28
|
//
|
28
29
|
variants: [{
|
29
30
|
_id: { type: mongoose.Schema.Types.ObjectId, auto: true },
|
@@ -0,0 +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");;/* empty css */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;
|
@@ -0,0 +1,89 @@
|
|
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
|
+
import { Loader as S } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
3
|
+
/* empty css */
|
4
|
+
import E from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const K = {
|
6
|
+
key: 0,
|
7
|
+
class: "t-transp mn-r-small"
|
8
|
+
}, L = ["placeholder", "value"], N = {
|
9
|
+
key: 0,
|
10
|
+
class: "mn-t-thin invalid-feedback"
|
11
|
+
}, V = {
|
12
|
+
__name: "Address",
|
13
|
+
props: {
|
14
|
+
apiKey: {
|
15
|
+
type: String,
|
16
|
+
required: !0
|
17
|
+
},
|
18
|
+
label: null,
|
19
|
+
placeholder: "Enter something here",
|
20
|
+
field: null,
|
21
|
+
location: {
|
22
|
+
type: Object,
|
23
|
+
default: { lat: 48.6900735, lng: 41.1620239 }
|
24
|
+
},
|
25
|
+
address: {
|
26
|
+
type: String,
|
27
|
+
default: ""
|
28
|
+
},
|
29
|
+
locale: {
|
30
|
+
type: String,
|
31
|
+
default: "en"
|
32
|
+
}
|
33
|
+
},
|
34
|
+
emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
|
35
|
+
setup(n, { emit: g }) {
|
36
|
+
const c = n, l = g, p = w(null);
|
37
|
+
let s;
|
38
|
+
const h = () => {
|
39
|
+
const e = s.getPlace();
|
40
|
+
if (!e.geometry || !e.address_components)
|
41
|
+
return;
|
42
|
+
let t = "", o = "", u = "";
|
43
|
+
for (let d = 0; d < e.address_components.length; d++) {
|
44
|
+
let a = e.address_components[d];
|
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
|
+
}
|
47
|
+
const _ = e.formatted_address, v = { lat: e.geometry.location.lat(), lng: e.geometry.location.lng() };
|
48
|
+
l("update:address", _), l("update:location", v), l("update:country", t), l("update:state", o), l("update:city", u);
|
49
|
+
};
|
50
|
+
return k(() => {
|
51
|
+
new S({
|
52
|
+
apiKey: c.apiKey,
|
53
|
+
version: "weekly",
|
54
|
+
libraries: ["places"],
|
55
|
+
language: c.locale
|
56
|
+
}).load().then(() => {
|
57
|
+
s = new google.maps.places.Autocomplete(p.value), s.addListener("place_changed", h);
|
58
|
+
}).catch((t) => {
|
59
|
+
console.error(t);
|
60
|
+
});
|
61
|
+
}), (e, t) => (r(), i("div", {
|
62
|
+
class: b([e.$attrs.class, "flex-nowrap flex"])
|
63
|
+
}, [
|
64
|
+
n.label ? (r(), i("div", K, [
|
65
|
+
m("span", null, y(n.label), 1)
|
66
|
+
])) : f("", !0),
|
67
|
+
m("input", {
|
68
|
+
ref_key: "addressInput",
|
69
|
+
ref: p,
|
70
|
+
class: "w-100",
|
71
|
+
placeholder: n.placeholder,
|
72
|
+
value: n.address,
|
73
|
+
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o))
|
74
|
+
}, null, 40, L),
|
75
|
+
I(A, {
|
76
|
+
mode: "out-in",
|
77
|
+
name: "fade"
|
78
|
+
}, {
|
79
|
+
default: C(() => [
|
80
|
+
e.validation ? (r(), i("div", N, " * " + y(e.validation.message), 1)) : f("", !0)
|
81
|
+
]),
|
82
|
+
_: 1
|
83
|
+
})
|
84
|
+
], 2));
|
85
|
+
}
|
86
|
+
}, x = /* @__PURE__ */ E(V, [["__scopeId", "data-v-0fc64e8d"]]);
|
87
|
+
export {
|
88
|
+
x as default
|
89
|
+
};
|
@@ -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");;/* empty css */const
|
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");;/* empty css */const h={key:0,class:"t-transp mn-r-small"},v=["placeholder","value"],_={key:0,class:"mn-t-thin invalid-feedback"},k={__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",h,[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,v),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],2))}};exports.default=k;
|
@@ -1,14 +1,13 @@
|
|
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
|
2
|
-
import { Loader 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 g, createVNode as I, Transition as C, withCtx as S } from "vue";
|
2
|
+
import { Loader as A } from "../../../../node_modules/@googlemaps/js-api-loader/dist/index.js";
|
3
3
|
/* empty css */
|
4
|
-
|
5
|
-
const K = {
|
4
|
+
const E = {
|
6
5
|
key: 0,
|
7
6
|
class: "t-transp mn-r-small"
|
8
|
-
},
|
7
|
+
}, K = ["placeholder", "value"], L = {
|
9
8
|
key: 0,
|
10
9
|
class: "mn-t-thin invalid-feedback"
|
11
|
-
},
|
10
|
+
}, P = {
|
12
11
|
__name: "Address",
|
13
12
|
props: {
|
14
13
|
apiKey: {
|
@@ -32,58 +31,58 @@ const K = {
|
|
32
31
|
}
|
33
32
|
},
|
34
33
|
emits: ["update:address", "update:location", "update:country", "update:state", "update:city"],
|
35
|
-
setup(n, { emit:
|
36
|
-
const c = n, l =
|
34
|
+
setup(n, { emit: f }) {
|
35
|
+
const c = n, l = f, u = w(null);
|
37
36
|
let s;
|
38
37
|
const h = () => {
|
39
38
|
const e = s.getPlace();
|
40
39
|
if (!e.geometry || !e.address_components)
|
41
40
|
return;
|
42
|
-
let t = "", o = "",
|
41
|
+
let t = "", o = "", p = "";
|
43
42
|
for (let d = 0; d < e.address_components.length; d++) {
|
44
43
|
let a = e.address_components[d];
|
45
|
-
a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (o = a.long_name), a.types.includes("locality") && (
|
44
|
+
a.types.includes("country") && (t = a.long_name), a.types.includes("administrative_area_level_1") && (o = a.long_name), a.types.includes("locality") && (p = a.long_name);
|
46
45
|
}
|
47
|
-
const
|
48
|
-
l("update:address",
|
46
|
+
const v = e.formatted_address, _ = { lat: e.geometry.location.lat(), lng: e.geometry.location.lng() };
|
47
|
+
l("update:address", v), l("update:location", _), l("update:country", t), l("update:state", o), l("update:city", p);
|
49
48
|
};
|
50
49
|
return k(() => {
|
51
|
-
new
|
50
|
+
new A({
|
52
51
|
apiKey: c.apiKey,
|
53
52
|
version: "weekly",
|
54
53
|
libraries: ["places"],
|
55
54
|
language: c.locale
|
56
55
|
}).load().then(() => {
|
57
|
-
s = new google.maps.places.Autocomplete(
|
56
|
+
s = new google.maps.places.Autocomplete(u.value), s.addListener("place_changed", h);
|
58
57
|
}).catch((t) => {
|
59
58
|
console.error(t);
|
60
59
|
});
|
61
60
|
}), (e, t) => (r(), i("div", {
|
62
61
|
class: b([e.$attrs.class, "flex-nowrap flex"])
|
63
62
|
}, [
|
64
|
-
n.label ? (r(), i("div",
|
63
|
+
n.label ? (r(), i("div", E, [
|
65
64
|
m("span", null, y(n.label), 1)
|
66
|
-
])) :
|
65
|
+
])) : g("", !0),
|
67
66
|
m("input", {
|
68
67
|
ref_key: "addressInput",
|
69
|
-
ref:
|
68
|
+
ref: u,
|
70
69
|
class: "w-100",
|
71
70
|
placeholder: n.placeholder,
|
72
71
|
value: n.address,
|
73
72
|
onInput: t[0] || (t[0] = (...o) => e.onInput && e.onInput(...o))
|
74
|
-
}, null, 40,
|
75
|
-
I(
|
73
|
+
}, null, 40, K),
|
74
|
+
I(C, {
|
76
75
|
mode: "out-in",
|
77
76
|
name: "fade"
|
78
77
|
}, {
|
79
|
-
default:
|
80
|
-
e.validation ? (r(), i("div",
|
78
|
+
default: S(() => [
|
79
|
+
e.validation ? (r(), i("div", L, " * " + y(e.validation.message), 1)) : g("", !0)
|
81
80
|
]),
|
82
81
|
_: 1
|
83
82
|
})
|
84
83
|
], 2));
|
85
84
|
}
|
86
|
-
}
|
85
|
+
};
|
87
86
|
export {
|
88
|
-
|
87
|
+
P as default
|
89
88
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { useSlots as
|
1
|
+
import { useSlots as c, openBlock as l, createElementBlock as n, toDisplayString as s, createCommentVNode as r, Fragment as u, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as y, createElementVNode as g, Comment as p } from "vue";
|
2
2
|
import b from "../Tooltip/Tooltip.vue.js";
|
3
3
|
const k = { class: "bg-light pd-medium radius-big" }, C = {
|
4
4
|
key: 0,
|
@@ -6,10 +6,10 @@ const k = { class: "bg-light pd-medium radius-big" }, C = {
|
|
6
6
|
}, S = {
|
7
7
|
key: 0,
|
8
8
|
class: "mn-r-thin t-medium p-big"
|
9
|
-
}, x = ["onClick"],
|
9
|
+
}, x = ["onClick"], _ = /* @__PURE__ */ g("p", { class: "bg-main radius-small t-center i-medium" }, "i", -1), w = {
|
10
10
|
key: 1,
|
11
11
|
class: "w-100"
|
12
|
-
},
|
12
|
+
}, N = {
|
13
13
|
__name: "Block",
|
14
14
|
props: {
|
15
15
|
title: {
|
@@ -36,30 +36,30 @@ const k = { class: "bg-light pd-medium radius-big" }, C = {
|
|
36
36
|
}
|
37
37
|
},
|
38
38
|
setup(t) {
|
39
|
-
|
40
|
-
const
|
41
|
-
return (i,
|
39
|
+
c();
|
40
|
+
const o = (i, a = {}) => i ? i(a).some((e) => Array.isArray(e.children) ? !!e.children.length : e.type !== p) : !1;
|
41
|
+
return (i, a) => (l(), n("div", k, [
|
42
42
|
t.title || t.actions ? (l(), n("div", C, [
|
43
|
-
t.title ? (l(), n("p", S,
|
44
|
-
(l(!0), n(
|
43
|
+
t.title ? (l(), n("p", S, s(t.title), 1)) : r("", !0),
|
44
|
+
(l(!0), n(u, null, d(t.actions, (e) => (l(), n("button", {
|
45
45
|
onClick: e.function,
|
46
46
|
class: m(["pd-thin button-delete button", e.class || "bg-main radius-small t-center i-medium"])
|
47
|
-
},
|
47
|
+
}, s(e.label), 11, x))), 256)),
|
48
48
|
t.tooltip ? (l(), h(b, {
|
49
49
|
key: 1,
|
50
50
|
text: t.tooltip
|
51
51
|
}, {
|
52
52
|
default: f(() => [
|
53
|
-
|
53
|
+
_
|
54
54
|
]),
|
55
55
|
_: 1
|
56
56
|
}, 8, ["text"])) : r("", !0)
|
57
57
|
])) : r("", !0),
|
58
|
-
|
59
|
-
|
58
|
+
o(i.$slots.default) ? r("", !0) : (l(), n("span", w, s(t.placeholder), 1)),
|
59
|
+
y(i.$slots, "default")
|
60
60
|
]));
|
61
61
|
}
|
62
62
|
};
|
63
63
|
export {
|
64
|
-
|
64
|
+
N as default
|
65
65
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../Loader/Loader.vue2.cjs");;/* empty css */const v=["disabled"],b={key:0},m={key:1},k={key:2,class:"t-semi loading t-black"},y={key:3,class:"error"},p={key:0,class:"button-counter"},g={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},emits:["error"],setup(t,{emit:r}){const o=t,i=r,l=e.ref(null),a=e.ref(null),s=e.ref(!1),n=e.ref(!1);async function d(){l.value.style["pointer-events"]="none",a.value=null,s.value=!0;const c=()=>{l.value&&(l.value.classList.replace("bg-second","bg-main"),l.value.style.pointerEvents="auto",s.value=!1,n.value=!1,a.value=null)};try{await o.submit(),l.value.classList.replace("bg-main","bg-second"),s.value=!1,o.showSucces?(n.value=!0,setTimeout(c,500)):c(),o.callback&&setTimeout(()=>o.callback(),o.callbackDelay)}catch(u){i("error",u),l.value.classList.replace("bg-main","bg-fourth-nano"),a.value=o.error,setTimeout(()=>{c(),l.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(c,u)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(d,["stop"]),disabled:t.validation,ref_key:"button",ref:l,class:"button"},[e.createVNode(e.Transition,{name:"FromTop"},{default:e.withCtx(()=>[!s.value&&!a.value&&!n.value||!t.showLoader?(e.openBlock(),e.createElementBlock("span",b,[e.renderSlot(c.$slots,"default")])):s.value&&!a.value&&t.showLoader?(e.openBlock(),e.createElementBlock("span",m,[e.createVNode(f.default,{class:"pos-relative pos-t-0 pos-l-0 loading"})])):n.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",k,e.toDisplayString(t.text.success),1)):a.value?(e.openBlock(),e.createElementBlock("span",y,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",p,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,v))}};exports.default=g;
|
@@ -0,0 +1,95 @@
|
|
1
|
+
import { ref as r, openBlock as o, createElementBlock as s, withModifiers as h, createVNode as f, Transition as p, withCtx as k, renderSlot as g, toDisplayString as i, createCommentVNode as b } from "vue";
|
2
|
+
import w from "../Loader/Loader.vue2.js";
|
3
|
+
/* empty css */
|
4
|
+
const B = ["disabled"], L = { key: 0 }, S = { key: 1 }, T = {
|
5
|
+
key: 2,
|
6
|
+
class: "t-semi loading t-black"
|
7
|
+
}, _ = {
|
8
|
+
key: 3,
|
9
|
+
class: "error"
|
10
|
+
}, x = {
|
11
|
+
key: 0,
|
12
|
+
class: "button-counter"
|
13
|
+
}, j = {
|
14
|
+
__name: "Button",
|
15
|
+
props: {
|
16
|
+
submit: {
|
17
|
+
type: Function,
|
18
|
+
default: async () => {
|
19
|
+
console.log("Button click.");
|
20
|
+
}
|
21
|
+
},
|
22
|
+
text: {
|
23
|
+
type: Object,
|
24
|
+
default: (e) => (console.log(e), e = {
|
25
|
+
...e.text,
|
26
|
+
success: "✔",
|
27
|
+
error: "✖"
|
28
|
+
})
|
29
|
+
},
|
30
|
+
counter: {
|
31
|
+
type: Object
|
32
|
+
},
|
33
|
+
callback: {
|
34
|
+
type: Function,
|
35
|
+
default: async () => {
|
36
|
+
console.log("Button callback.");
|
37
|
+
}
|
38
|
+
},
|
39
|
+
callbackDelay: {
|
40
|
+
type: Number,
|
41
|
+
default: 750
|
42
|
+
},
|
43
|
+
showSucces: {
|
44
|
+
type: Boolean,
|
45
|
+
default: !0
|
46
|
+
},
|
47
|
+
showLoader: {
|
48
|
+
type: Boolean,
|
49
|
+
default: !0
|
50
|
+
},
|
51
|
+
validation: {
|
52
|
+
type: Boolean,
|
53
|
+
default: !1
|
54
|
+
}
|
55
|
+
},
|
56
|
+
emits: ["error"],
|
57
|
+
setup(e, { emit: v }) {
|
58
|
+
const l = e, m = v, t = r(null), a = r(null), n = r(!1), u = r(!1);
|
59
|
+
async function y() {
|
60
|
+
t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
|
61
|
+
const c = () => {
|
62
|
+
t.value && (t.value.classList.replace("bg-second", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, u.value = !1, a.value = null);
|
63
|
+
};
|
64
|
+
try {
|
65
|
+
await l.submit(), t.value.classList.replace("bg-main", "bg-second"), n.value = !1, l.showSucces ? (u.value = !0, setTimeout(c, 500)) : c(), l.callback && setTimeout(() => l.callback(), l.callbackDelay);
|
66
|
+
} catch (d) {
|
67
|
+
m("error", d), t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = l.error, setTimeout(() => {
|
68
|
+
c(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
69
|
+
}, 1330);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
return (c, d) => (o(), s("button", {
|
73
|
+
onClick: h(y, ["stop"]),
|
74
|
+
disabled: e.validation,
|
75
|
+
ref_key: "button",
|
76
|
+
ref: t,
|
77
|
+
class: "button"
|
78
|
+
}, [
|
79
|
+
f(p, { name: "FromTop" }, {
|
80
|
+
default: k(() => [
|
81
|
+
!n.value && !a.value && !u.value || !e.showLoader ? (o(), s("span", L, [
|
82
|
+
g(c.$slots, "default")
|
83
|
+
])) : n.value && !a.value && e.showLoader ? (o(), s("span", S, [
|
84
|
+
f(w, { class: "pos-relative pos-t-0 pos-l-0 loading" })
|
85
|
+
])) : u.value && e.showSucces ? (o(), s("span", T, i(e.text.success), 1)) : a.value ? (o(), s("span", _, i(a.value), 1)) : b("", !0)
|
86
|
+
]),
|
87
|
+
_: 3
|
88
|
+
}),
|
89
|
+
e.counter ? (o(), s("p", x, i(e.counter), 1)) : b("", !0)
|
90
|
+
], 8, B));
|
91
|
+
}
|
92
|
+
};
|
93
|
+
export {
|
94
|
+
j as default
|
95
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i={class:"t-trimmed font-main"},l={class:"font-main t-truncate"},o={key:1,class:"pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"},a={__name:"Chips",props:["chips"],setup(n){return(s,c)=>{var r;return e.openBlock(),e.createElementBlock("div",i,[(r=n.chips)!=null&&r.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.chips,(t,d)=>(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",l,e.toDisplayString(t.text?t.text:t),1)],2))),256)):(e.openBlock(),e.createElementBlock("div",o,[e.renderSlot(s.$slots,"default")]))])}}};exports.default=a;
|
@@ -1,27 +1,26 @@
|
|
1
|
-
import { openBlock as t, createElementBlock as e, Fragment as a, renderList as
|
1
|
+
import { openBlock as t, createElementBlock as e, Fragment as a, renderList as m, normalizeClass as o, createElementVNode as d, toDisplayString as l, renderSlot as c } from "vue";
|
2
2
|
/* empty css */
|
3
|
-
|
4
|
-
const u = { class: "t-trimmed font-main" }, h = { class: "font-main t-truncate" }, _ = {
|
3
|
+
const p = { class: "t-trimmed font-main" }, h = { class: "font-main t-truncate" }, u = {
|
5
4
|
key: 1,
|
6
5
|
class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
|
7
|
-
},
|
6
|
+
}, k = {
|
8
7
|
__name: "Chips",
|
9
8
|
props: ["chips"],
|
10
9
|
setup(n) {
|
11
|
-
return (i,
|
10
|
+
return (i, _) => {
|
12
11
|
var r;
|
13
|
-
return t(), e("div",
|
14
|
-
(r = n.chips) != null && r.length ? (t(!0), e(a, { key: 0 },
|
15
|
-
class:
|
12
|
+
return t(), e("div", p, [
|
13
|
+
(r = n.chips) != null && r.length ? (t(!0), e(a, { key: 0 }, m(n.chips, (s, f) => (t(), e("span", {
|
14
|
+
class: o([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
15
|
}, [
|
17
|
-
|
18
|
-
], 2))), 256)) : (t(), e("div",
|
19
|
-
|
16
|
+
d("span", h, l(s.text ? s.text : s), 1)
|
17
|
+
], 2))), 256)) : (t(), e("div", u, [
|
18
|
+
c(i.$slots, "default")
|
20
19
|
]))
|
21
20
|
]);
|
22
21
|
};
|
23
22
|
}
|
24
|
-
}
|
23
|
+
};
|
25
24
|
export {
|
26
|
-
|
25
|
+
k as default
|
27
26
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i={class:"t-trimmed font-main"},l={class:"font-main t-truncate"},o={key:1,class:"pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"},a={__name:"Chips",props:["chips"],setup(n){return(s,c)=>{var r;return e.openBlock(),e.createElementBlock("div",i,[(r=n.chips)!=null&&r.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.chips,(t,d)=>(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",l,e.toDisplayString(t.text?t.text:t),1)],2))),256)):(e.openBlock(),e.createElementBlock("div",o,[e.renderSlot(s.$slots,"default")]))])}}};exports.default=a;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { openBlock as t, createElementBlock as e, Fragment as a, renderList as m, normalizeClass as o, createElementVNode as d, toDisplayString as l, renderSlot as c } from "vue";
|
2
|
+
/* empty css */
|
3
|
+
const p = { class: "t-trimmed font-main" }, h = { class: "font-main t-truncate" }, u = {
|
4
|
+
key: 1,
|
5
|
+
class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
|
6
|
+
}, k = {
|
7
|
+
__name: "Chips",
|
8
|
+
props: ["chips"],
|
9
|
+
setup(n) {
|
10
|
+
return (i, _) => {
|
11
|
+
var r;
|
12
|
+
return t(), e("div", p, [
|
13
|
+
(r = n.chips) != null && r.length ? (t(!0), e(a, { key: 0 }, m(n.chips, (s, f) => (t(), e("span", {
|
14
|
+
class: o([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"])
|
15
|
+
}, [
|
16
|
+
d("span", h, l(s.text ? s.text : s), 1)
|
17
|
+
], 2))), 256)) : (t(), e("div", u, [
|
18
|
+
c(i.$slots, "default")
|
19
|
+
]))
|
20
|
+
]);
|
21
|
+
};
|
22
|
+
}
|
23
|
+
};
|
24
|
+
export {
|
25
|
+
k as default
|
26
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");;/* empty css */const O={class:"calendar"},x={key:0,class:"br-b br-solid br-grey-transp-25 gap-thin flex flex-nowrap pd-thin"},N={class:"pd-thin flex flex-nowrap flex-v-center flex-justify-between"},B={class:"t-semi"},I={class:"pd-thin calendar__body"},L={class:"calendar__week"},W={class:"gap-micro calendar__dates"},R=["onClick"],H={__name:"Calendar",props:t.mergeModels({modelValue:[Date,Object],allowRange:Boolean},{date:{},dateModifiers:{}}),emits:t.mergeModels(["update:modelValue"],["update:date"]),setup(g,{emit:j}){const C=g,c=t.useModel(g,"date"),m=new Date,r=t.ref(m),v=t.ref(null),l=t.ref(null),s=t.ref(null),U=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],h=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),d=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59)),p=t.computed(()=>{const e=r.value.toLocaleString("default",{month:"long",timeZone:"UTC"}),a=r.value.getUTCFullYear();return`${e} ${a}`}),f=t.computed(()=>{const e=[],a=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth(),1)),n=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()+1,0)),u=a.getUTCDay();let o=new Date(a);o.setUTCDate(o.getUTCDate()-u);for(let i=0;i<u;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<=n;o.setUTCDate(o.getUTCDate()+1))e.push({date:new Date(o),day:D,isToday:T(o)}),D++;const Y=e[e.length-1].date.getUTCDay();for(let i=Y+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()},w=e=>e.getUTCMonth()===r.value.getUTCMonth()&&e.getUTCFullYear()===r.value.getUTCFullYear(),y=e=>{if(C.allowRange){if(l.value&&s.value)return e>=new Date(l.value)&&d(e)<=new Date(s.value);if(l.value)return e.getTime()===new Date(l.value).getTime()}else return v.value&&e.getTime()===new Date(v.value).getTime()},_=e=>l.value&&s.value?e>l.value&&d(e)<s.value:!1,M=e=>{const a=h(e);if(!C.allowRange)v.value=a,c.value=a;else if(!l.value&&!s.value)l.value=a,c.value.start=a;else if(s.value)l.value=a,s.value=null,c.value={start:a,end:null};else{if(s.value=d(e),a<l.value){const n=d(l.value);l.value=a,s.value=n}c.value={start:l.value,end:s.value}}},k=()=>{r.value=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()-1,1))},b=()=>{r.value=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()+1,1))},S=()=>{const e=new Date,a=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0)),n=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),23,59,59,999));l.value=a.toISOString(),s.value=n.toISOString(),c.value={start:l.value,end:s.value}},E=()=>{const e=new Date,a=new Date(e);a.setUTCDate(e.getUTCDate()-7),a.setUTCHours(0,0,0,0),l.value=a,s.value=d(e),e.setUTCHours(23,59,59,999);const n=a.toISOString(),u=e.toISOString();c.value={start:n,end:u}},F=()=>{const e=new Date,a=new Date(e);a.setUTCMonth(e.getUTCMonth()-1),a.setUTCHours(0,0,0,0),l.value=a,s.value=d(e),e.setUTCHours(23,59,59,999);const n=a.toISOString(),u=e.toISOString();c.value={start:n,end:u}},V=()=>{l.value=null,s.value=null,c.value={start:null,end:null}};return(e,a)=>(t.openBlock(),t.createElementBlock("div",O,[g.allowRange?(t.openBlock(),t.createElementBlock("div",x,[t.createElementVNode("button",{onClick:S,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Today"),t.createElementVNode("button",{onClick:E,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Week"),t.createElementVNode("button",{onClick:F,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Month"),t.createElementVNode("button",{onClick:V,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"All time")])):t.createCommentVNode("",!0),t.createElementVNode("div",N,[t.createElementVNode("button",{onClick:t.withModifiers(k,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},"<"),t.createElementVNode("span",B,t.toDisplayString(p.value),1),t.createElementVNode("button",{onClick:t.withModifiers(b,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},">")]),t.createElementVNode("div",I,[t.createElementVNode("div",L,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(U,(n,u)=>t.createElementVNode("div",{key:u,class:"calendar__weekday"},t.toDisplayString(n),1)),64))]),t.createElementVNode("div",W,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,n=>(t.openBlock(),t.createElementBlock("div",{key:n.date,class:t.normalizeClass(["flex flex-center cursor-pointer aspect-ratio-1x1 radius-small",{"bg-main t-white":n.isToday},{"calendar__date--selected":y(n.date)},{"calendar__date--range":_(n.date)},{"calendar__date--disabled":!w(n.date)}]),onClick:t.withModifiers(u=>M(n.date),["stop"])},t.toDisplayString(n.day),11,R))),128))])])]))}};exports.default=H;
|