@ozdao/prometheus-framework 0.2.48 → 0.2.50
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +27 -25
- package/dist/auth.server.mjs +27 -25
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-3981e903.mjs +217 -0
- package/dist/index-4eecfdb9.js +216 -0
- package/dist/main-203b36b6.mjs +13628 -0
- package/dist/main-_b1_i8mt.mjs +13606 -0
- package/dist/main-a7ae4ce5.js +91 -0
- package/dist/main-uiQFxEks.js +91 -0
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/node_modules/vue-select/dist/vue-select.es.cjs +1 -3
- package/dist/node_modules/vue-select/dist/vue-select.es.js +49 -645
- package/dist/organizations.server.js +13 -27
- package/dist/organizations.server.mjs +13 -27
- package/dist/products.server.js +95 -15
- package/dist/products.server.mjs +95 -15
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +61 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +2 -61
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/SelectMulti/SelectMulti.vue.js +6 -6
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- 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 +3 -3
- 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 +1 -1
- 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 +3 -3
- 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 +44 -32
- 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 +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +45 -44
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +5 -5
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.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 +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/store/globals.js +22 -21
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +17 -17
- 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 +49 -42
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/User.vue.js +47 -15
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +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 +38 -37
- 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 +249 -61
- 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 +78 -45
- 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 +161 -86
- 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 +3 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- 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 +52 -54
- 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 +20 -26
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -46
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +34 -30
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +30 -28
- 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 +18 -18
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
- 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 +33 -28
- 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 +123 -113
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/web-7p76PGnO.mjs +55 -0
- package/dist/web-c63f0ecc.js +1 -0
- package/dist/web-d8173758.mjs +55 -0
- package/dist/web-dn8vgptQ.js +1 -0
- package/package.json +1 -1
- package/src/components/SelectMulti/SelectMulti.vue +1 -1
- package/src/modules/auth/components/pages/Invite.vue +17 -6
- package/src/modules/auth/controllers/auth.controller.js +24 -16
- package/src/modules/auth/controllers/invites.controller.js +17 -8
- package/src/modules/auth/store/auth.js +8 -1
- package/src/modules/auth/store/invites.js +1 -0
- package/src/modules/globals/store/globals.js +5 -1
- package/src/modules/landing/components/blocks/MapBlock.vue +37 -0
- package/src/modules/landing/components/pages/404.vue +3 -0
- package/src/modules/landing/components/pages/Governance.vue +155 -0
- package/src/modules/landing/components/pages/Home.vue +52 -0
- package/src/modules/landing/components/pages/Hotel.vue +54 -0
- package/src/modules/landing/components/pages/Page.vue +184 -0
- package/src/modules/landing/components/sections/AboutSection.vue +69 -0
- package/src/modules/landing/components/sections/Examples.vue +90 -0
- package/src/modules/landing/components/sections/FeatureSection.vue +80 -0
- package/src/modules/landing/components/sections/GiftSection.vue +63 -0
- package/src/modules/landing/components/sections/HeroSection.vue +74 -0
- package/src/modules/landing/components/sections/HowItWorksSection.vue +88 -0
- package/src/modules/landing/components/sections/HowToBuyWDR.vue +131 -0
- package/src/modules/landing/components/sections/InstagramSection.vue +181 -0
- package/src/modules/landing/components/sections/MapSection.vue +91 -0
- package/src/modules/landing/components/sections/SectionsSection.vue +69 -0
- package/src/modules/landing/components/sections/SliderFeatures.vue +131 -0
- package/src/modules/landing/components/sections/WhatIsWDRSection.vue +116 -0
- package/src/modules/landing/router/landing.js +34 -0
- package/src/modules/middlewares/server/verifySignUp.js +4 -0
- package/src/modules/organizations/components/blocks/CardDepartment.vue +3 -3
- package/src/modules/organizations/components/blocks/DepartmentMemberModify.vue +52 -44
- package/src/modules/organizations/components/blocks/User.vue +42 -10
- package/src/modules/organizations/components/pages/Department.vue +7 -6
- package/src/modules/organizations/components/pages/DepartmentEdit.vue +110 -134
- package/src/modules/organizations/components/pages/Members.vue +85 -26
- package/src/modules/organizations/components/pages/Organization.vue +60 -4
- package/src/modules/organizations/components/sections/MembersAdd.vue +27 -34
- package/src/modules/organizations/components/sections/Organizations.vue +0 -1
- package/src/modules/organizations/controllers/memberships.controller.js +6 -2
- package/src/modules/organizations/controllers/organizations.controller.js +1 -1
- package/src/modules/organizations/models/department.model.js +0 -19
- package/src/modules/organizations/models/membership.model.js +4 -0
- package/src/modules/organizations/organizations.client.js +1 -6
- package/src/modules/organizations/store/departments.js +48 -44
- package/src/modules/organizations/store/memberships.js +11 -3
- package/src/modules/products/components/blocks/CardPosition.vue +2 -2
- package/src/modules/products/components/pages/Product.vue +6 -1
- package/src/modules/products/components/pages/ProductEdit.vue +48 -28
- package/src/modules/products/controllers/products.controller.js +87 -24
- package/src/modules/products/models/product.model.js +16 -1
- package/src/modules/products/store/products.js +1 -1
- package/src/modules/users/components/pages/ProfileOrganizations.vue +41 -7
- package/src/modules/organizations/components/sections/FeedDepartments.vue +0 -64
- package/src/modules/organizations/components/sections/MembersList.vue +0 -85
- package/src/modules/organizations/store/invites.js +0 -93
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../../../node_modules/js-cookie/dist/js.cookie.cjs");require("../../../../components/Tab/Tab.vue.cjs");require("../../../../components/Field/Field.vue.cjs");require("../../../../components/Select/Select.vue.cjs");require("../../../../components/Button/Button.vue.cjs");require("../../../../components/Dropdown/Dropdown.vue2.cjs");require("../../../../components/Chips/Chips.vue2.cjs");const q=require("../../../auth/store/auth.cjs");require("../../store/memberships.cjs");require("vue-i18n");require("../../../../components/Popup/Popup.vue.cjs");require("../../../reports/store/reports.cjs");const y=require("../../store/organizations.cjs"),m=require("../blocks/CardOrganization.vue.cjs"),b=require("../blocks/EmptyState.vue.cjs");require("./Unit.vue.cjs");require("./Organizations.vue2.cjs");const g={class:"for-transition bg-white radius-big w-100"},k={class:""},_={key:1,class:"cols-1"},h={__name:"Organizations",props:{owner:{type:String,default:null},user:{type:[String,Number],default:null},onlyuser:{type:[String,Number],default:null}},async setup(c){let t,u;const o=c,a=e.ref(null);a.value=([t,u]=e.withAsyncContext(()=>y.actions.read({owner:o.owner,user:o.user,onlyuser:o.onlyuser})),t=await t,u(),t);const d=s.useRouter(),n=s.useRoute();let p=n.query.tab?n.query.tab:"details";const i=e.ref(p);return n.query.tab=i.value,e.watch(i,r=>{d.replace({query:{...n.query,tab:r}})}),(r,v)=>(e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",k,[a.value<1?(e.openBlock(),e.createBlock(b.default,{key:0,title:"You Haven't Joined Any Organization Yet",description:"Weeder is all about community. Join an organization or maybe you want to create your own?",action:"Create organization",callback:r.a=()=>r.$router.push("/app/organization/create/details")},null,8,["callback"])):(e.openBlock(),e.createElementBlock("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,l=>(e.openBlock(),e.createBlock(m.default,{key:l._id,organization:l,user:q.state.user,onUpdateMembership:r.handleMembershipUpdate,class:e.normalizeClass(["w-100",{"mn-r-small":r.index!==a.value.length-1}])},null,8,["organization","user","onUpdateMembership","class"]))),128))]))])]))}};exports.default=h;
|
package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ref as m, withAsyncContext as b, watch as _, openBlock as
|
1
|
+
import { ref as m, withAsyncContext as b, watch as _, openBlock as t, createElementBlock as i, createElementVNode as f, createBlock as p, Fragment as g, renderList as h, normalizeClass as w } from "vue";
|
2
2
|
import { useRouter as v, useRoute as z } from "vue-router";
|
3
3
|
import "../../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
4
|
-
import "../../../../components/Tab/Tab.
|
5
|
-
import "../../../../components/Field/Field.
|
4
|
+
import "../../../../components/Tab/Tab.vue.js";
|
5
|
+
import "../../../../components/Field/Field.vue.js";
|
6
6
|
import "../../../../components/Select/Select.vue.js";
|
7
|
-
import "../../../../components/Button/Button.
|
7
|
+
import "../../../../components/Button/Button.vue.js";
|
8
8
|
import "../../../../components/Dropdown/Dropdown.vue2.js";
|
9
9
|
import "../../../../components/Chips/Chips.vue2.js";
|
10
10
|
import { state as k } from "../../../auth/store/auth.js";
|
@@ -13,20 +13,14 @@ import "vue-i18n";
|
|
13
13
|
import "../../../../components/Popup/Popup.vue.js";
|
14
14
|
import "../../../reports/store/reports.js";
|
15
15
|
import { actions as q } from "../../store/organizations.js";
|
16
|
+
import $ from "../blocks/CardOrganization.vue.js";
|
16
17
|
import B from "../blocks/EmptyState.vue.js";
|
17
|
-
import "../../../../components/Spoiler/Spoiler.vue.js";
|
18
|
-
import "../../../../components/Map/Map.vue.js";
|
19
|
-
import "../blocks/DepartmentSub.vue2.js";
|
20
|
-
import "../blocks/User.vue2.js";
|
21
|
-
import "../blocks/CardDepartment.vue2.js";
|
22
|
-
import "../../store/departments.js";
|
23
|
-
import C from "../blocks/CardOrganization.vue.js";
|
24
18
|
import "./Unit.vue.js";
|
25
19
|
import "./Organizations.vue2.js";
|
26
|
-
const
|
20
|
+
const C = { class: "for-transition bg-white radius-big w-100" }, M = { class: "" }, N = {
|
27
21
|
key: 1,
|
28
22
|
class: "cols-1"
|
29
|
-
},
|
23
|
+
}, Q = {
|
30
24
|
__name: "Organizations",
|
31
25
|
props: {
|
32
26
|
owner: {
|
@@ -44,28 +38,28 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: ""
|
|
44
38
|
},
|
45
39
|
async setup(c) {
|
46
40
|
let r, s;
|
47
|
-
const
|
48
|
-
o.value = ([r, s] = b(() => q.read({ owner:
|
41
|
+
const n = c, o = m(null);
|
42
|
+
o.value = ([r, s] = b(() => q.read({ owner: n.owner, user: n.user, onlyuser: n.onlyuser })), r = await r, s(), r);
|
49
43
|
const d = v(), a = z();
|
50
44
|
let y = a.query.tab ? a.query.tab : "details";
|
51
45
|
const l = m(y);
|
52
|
-
return a.query.tab = l.value, _(l, (
|
53
|
-
d.replace({ query: { ...a.query, tab:
|
54
|
-
}), (
|
55
|
-
f("div",
|
56
|
-
o.value < 1 ? (
|
46
|
+
return a.query.tab = l.value, _(l, (e) => {
|
47
|
+
d.replace({ query: { ...a.query, tab: e } });
|
48
|
+
}), (e, O) => (t(), i("div", C, [
|
49
|
+
f("div", M, [
|
50
|
+
o.value < 1 ? (t(), p(B, {
|
57
51
|
key: 0,
|
58
52
|
title: "You Haven't Joined Any Organization Yet",
|
59
53
|
description: "Weeder is all about community. Join an organization or maybe you want to create your own?",
|
60
54
|
action: "Create organization",
|
61
|
-
callback:
|
62
|
-
}, null, 8, ["callback"])) : (
|
63
|
-
(
|
55
|
+
callback: e.a = () => e.$router.push("/app/organization/create/details")
|
56
|
+
}, null, 8, ["callback"])) : (t(), i("div", N, [
|
57
|
+
(t(!0), i(g, null, h(o.value, (u) => (t(), p($, {
|
64
58
|
key: u._id,
|
65
59
|
organization: u,
|
66
60
|
user: k.user,
|
67
|
-
onUpdateMembership:
|
68
|
-
class: w(["w-100", { "mn-r-small":
|
61
|
+
onUpdateMembership: e.handleMembershipUpdate,
|
62
|
+
class: w(["w-100", { "mn-r-small": e.index !== o.value.length - 1 }])
|
69
63
|
}, null, 8, ["organization", "user", "onUpdateMembership", "class"]))), 128))
|
70
64
|
]))
|
71
65
|
])
|
@@ -73,5 +67,5 @@ const M = { class: "for-transition bg-white radius-big w-100" }, N = { class: ""
|
|
73
67
|
}
|
74
68
|
};
|
75
69
|
export {
|
76
|
-
|
70
|
+
Q as default
|
77
71
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/pages/Organization.vue.cjs"),t=require("./components/pages/Department.vue.cjs"),r=require("./components/pages/OrganizationEdit.vue.cjs"),a=require("./components/pages/Organizations.vue.cjs"),i=require("./components/pages/DepartmentEdit.vue.cjs"),n=require("./components/blocks/CardOrganization.vue.cjs"),o=require("./components/blocks/EditArray.vue.cjs"),u=require("./components/blocks/User.vue.cjs"),s=require("./components/blocks/Unit.vue.cjs"),d=require("./components/blocks/DepartmentSub.vue.cjs"),c=require("./components/blocks/DepartmentMemberModify.vue.cjs"),l=require("./components/blocks/CardDepartment.vue.cjs"),m=require("./components/blocks/Rating.vue.cjs"),f=require("./components/blocks/EmptyState.vue.cjs"),q=require("./components/blocks/Contacts.vue.cjs"),g=require("./components/blocks/Socials.vue.cjs"),p=require("./components/sections/MembersAdd.vue.cjs"),b=require("./components/sections/DetailsTab.vue.cjs"),z=require("./components/sections/Organizations.vue.cjs"),D=require("./components/sections/Publics.vue.cjs"),S=require("./components/sections/Documents.vue.cjs"),O=require("./components/elements/ButtonToggleMembership.vue.cjs"),M=require("./store/departments.cjs"),y=require("./store/memberships.cjs"),E=require("./store/organizations.cjs"),C=require("./router/organizations.cjs");exports.Organization=e.default;exports.Department=t.default;exports.OrganizationEdit=r.default;exports.Organizations=a.default;exports.DepartmentEdit=i.default;exports.CardOrganization=n.default;exports.EditArray=o.default;exports.User=u.default;exports.Unit=s.default;exports.DepartmentSub=d.default;exports.DepartmentMemberModify=c.default;exports.CardDepartment=l.default;exports.Rating=m.default;exports.EmptyState=f.default;exports.Contacts=q.default;exports.Socials=g.default;exports.MembersAdd=p.default;exports.DetailsTab=b.default;exports.OrganizationsSection=z.default;exports.Publics=D.default;exports.Documents=S.default;exports.ButtonToggleMembership=O.default;exports.departmentsStore=M;exports.membershipsStore=y;exports.organizationStore=E;exports.organizationsRouter=C.default;
|
@@ -1,60 +1,54 @@
|
|
1
1
|
import { default as f } from "./components/pages/Organization.vue.js";
|
2
|
-
import { default as
|
2
|
+
import { default as m } from "./components/pages/Department.vue.js";
|
3
3
|
import { default as d } from "./components/pages/OrganizationEdit.vue.js";
|
4
|
-
import { default as
|
5
|
-
import { default as
|
6
|
-
import { default as
|
7
|
-
import { default as
|
8
|
-
import { default as
|
4
|
+
import { default as n } from "./components/pages/Organizations.vue.js";
|
5
|
+
import { default as l } from "./components/pages/DepartmentEdit.vue.js";
|
6
|
+
import { default as g } from "./components/blocks/CardOrganization.vue.js";
|
7
|
+
import { default as z } from "./components/blocks/EditArray.vue.js";
|
8
|
+
import { default as S } from "./components/blocks/User.vue.js";
|
9
9
|
import { default as O } from "./components/blocks/Unit.vue.js";
|
10
|
-
import { default as
|
11
|
-
import { default as
|
10
|
+
import { default as M } from "./components/blocks/DepartmentSub.vue.js";
|
11
|
+
import { default as y } from "./components/blocks/DepartmentMemberModify.vue.js";
|
12
12
|
import { default as A } from "./components/blocks/CardDepartment.vue.js";
|
13
13
|
import { default as T } from "./components/blocks/Rating.vue.js";
|
14
14
|
import { default as B } from "./components/blocks/EmptyState.vue.js";
|
15
|
-
import { default as
|
16
|
-
import { default as
|
17
|
-
import { default as
|
18
|
-
import { default as G } from "./components/sections/
|
19
|
-
import { default as I } from "./components/sections/
|
20
|
-
import { default as K } from "./components/sections/
|
21
|
-
import { default as
|
22
|
-
import { default as
|
23
|
-
import
|
24
|
-
import
|
25
|
-
import * as
|
26
|
-
import
|
27
|
-
import * as r from "./store/memberships.js";
|
28
|
-
import * as a from "./store/organizations.js";
|
29
|
-
import { default as tt } from "./router/organizations.js";
|
15
|
+
import { default as j } from "./components/blocks/Contacts.vue.js";
|
16
|
+
import { default as q } from "./components/blocks/Socials.vue.js";
|
17
|
+
import { default as w } from "./components/sections/MembersAdd.vue.js";
|
18
|
+
import { default as G } from "./components/sections/DetailsTab.vue.js";
|
19
|
+
import { default as I } from "./components/sections/Organizations.vue.js";
|
20
|
+
import { default as K } from "./components/sections/Publics.vue.js";
|
21
|
+
import { default as N } from "./components/sections/Documents.vue.js";
|
22
|
+
import { default as V } from "./components/elements/ButtonToggleMembership.vue.js";
|
23
|
+
import * as t from "./store/departments.js";
|
24
|
+
import * as a from "./store/memberships.js";
|
25
|
+
import * as r from "./store/organizations.js";
|
26
|
+
import { default as X } from "./router/organizations.js";
|
30
27
|
export {
|
31
|
-
|
28
|
+
V as ButtonToggleMembership,
|
32
29
|
A as CardDepartment,
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
30
|
+
g as CardOrganization,
|
31
|
+
j as Contacts,
|
32
|
+
m as Department,
|
33
|
+
l as DepartmentEdit,
|
34
|
+
y as DepartmentMemberModify,
|
35
|
+
M as DepartmentSub,
|
36
|
+
G as DetailsTab,
|
37
|
+
N as Documents,
|
38
|
+
z as EditArray,
|
42
39
|
B as EmptyState,
|
43
|
-
|
44
|
-
q as MembersAdd,
|
45
|
-
Y as MembersList,
|
40
|
+
w as MembersAdd,
|
46
41
|
f as Organization,
|
47
42
|
d as OrganizationEdit,
|
48
|
-
|
49
|
-
|
50
|
-
|
43
|
+
n as Organizations,
|
44
|
+
I as OrganizationsSection,
|
45
|
+
K as Publics,
|
51
46
|
T as Rating,
|
52
|
-
|
47
|
+
q as Socials,
|
53
48
|
O as Unit,
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
r as
|
58
|
-
|
59
|
-
tt as organizationsRouter
|
49
|
+
S as User,
|
50
|
+
t as departmentsStore,
|
51
|
+
a as membershipsStore,
|
52
|
+
r as organizationStore,
|
53
|
+
X as organizationsRouter
|
60
54
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../node_modules/axios/lib/axios.cjs");require("../../../../../node_modules/js-cookie/dist/js.cookie.cjs");const o=require("vue"),s=require("../../globals/store/globals.cjs"),n=l.default.create({baseURL:process.env.API_URL,withCredentials:!0});n.defaults.withCredentials=!0;const a=o.reactive({departments:[],department:{organization:"",profile:{photo:"",name:"",description:"",categories:[]},address:"",location:{lat:null,lng:null},worktime:[],delivery:[],payment:[],members:[],subdepartments:[]},error:null}),c={async readOne(r){try{const e=await n.get(`/api/departments/get/${r}`);return a.department=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async read(r){try{const e=await n.get(`/api/departments/${r}`);return console.log("Response:",e),a.departments=e.data,a.error=null,e.data}catch(e){return s.setError(e),null}},async create(r,e){try{const t=await n.post(`/api/departments/${r}/create`,e);return a.error=null,a.department=t.data,t.data}catch(t){return s.setError(t),null}},async update(r,e){try{const t=await n.post(`/api/departments/${r}/update`,e);return a.error=null,t}catch(t){return s.setError(t),null}},async delete(r,e){try{return await n.delete(`/api/departments/${r}/delete`,{data:{_id:e}}),a.error=null,!0}catch(t){return s.setError(t),!1}}};o.watch(a,(r,e)=>{});exports.actions=c;exports.state=a;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import s from "../../../../node_modules/axios/lib/axios.js";
|
2
2
|
import "../../../../../node_modules/js-cookie/dist/js.cookie.js";
|
3
|
-
import { reactive as
|
3
|
+
import { reactive as l, watch as p } from "vue";
|
4
4
|
import { setError as o } from "../../globals/store/globals.js";
|
5
5
|
const n = s.create({ baseURL: process.env.API_URL, withCredentials: !0 });
|
6
6
|
n.defaults.withCredentials = !0;
|
7
|
-
const a =
|
7
|
+
const a = l({
|
8
8
|
departments: [],
|
9
9
|
department: {
|
10
10
|
organization: "",
|
@@ -26,46 +26,50 @@ const a = i({
|
|
26
26
|
subdepartments: []
|
27
27
|
},
|
28
28
|
error: null
|
29
|
-
}),
|
29
|
+
}), m = {
|
30
30
|
async readOne(t) {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
try {
|
32
|
+
const e = await n.get(`/api/departments/get/${t}`);
|
33
|
+
return a.department = e.data, a.error = null, e.data;
|
34
|
+
} catch (e) {
|
35
|
+
return o(e), null;
|
36
|
+
}
|
36
37
|
},
|
37
38
|
async read(t) {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
try {
|
40
|
+
const e = await n.get(`/api/departments/${t}`);
|
41
|
+
return console.log("Response:", e), a.departments = e.data, a.error = null, e.data;
|
42
|
+
} catch (e) {
|
43
|
+
return o(e), null;
|
44
|
+
}
|
43
45
|
},
|
44
46
|
async create(t, e) {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
try {
|
48
|
+
const r = await n.post(`/api/departments/${t}/create`, e);
|
49
|
+
return a.error = null, a.department = r.data, r.data;
|
50
|
+
} catch (r) {
|
51
|
+
return o(r), null;
|
52
|
+
}
|
50
53
|
},
|
51
54
|
async update(t, e) {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
55
|
+
try {
|
56
|
+
const r = await n.post(`/api/departments/${t}/update`, e);
|
57
|
+
return a.error = null, r;
|
58
|
+
} catch (r) {
|
59
|
+
return o(r), null;
|
60
|
+
}
|
57
61
|
},
|
58
62
|
async delete(t, e) {
|
59
|
-
|
60
|
-
a.error = null;
|
61
|
-
}
|
62
|
-
o(r);
|
63
|
-
}
|
63
|
+
try {
|
64
|
+
return await n.delete(`/api/departments/${t}/delete`, { data: { _id: e } }), a.error = null, !0;
|
65
|
+
} catch (r) {
|
66
|
+
return o(r), !1;
|
67
|
+
}
|
64
68
|
}
|
65
69
|
};
|
66
|
-
|
70
|
+
p(a, (t, e) => {
|
67
71
|
});
|
68
72
|
export {
|
69
|
-
|
73
|
+
m as actions,
|
70
74
|
a as state
|
71
75
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../node_modules/axios/lib/axios.cjs"),l=require("vue"),o=require("../../globals/store/globals.cjs"),n=d.default.create({baseURL:process.env.API_URL,withCredentials:!0}),a=l.reactive({memberships:[],error:null}),p={async read(r={}){let e={};r._id&&(e._id=r._id),r.user&&(e.user=r.user),r.target&&(e.target=r.target),r.roles&&(e.roles=r.roles);try{const s=await n.get("/api/memberships",{params:e});return a.error=null,a.memberships=s.data,Promise.resolve(s.data)}catch(s){return o.setError(s),Promise.reject(s)}},async create(r){try{const e=await n.post("/api/memberships/create",r);return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async update(r){try{const e=await n.post("/api/memberships/update",r);return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}},async delete(r){try{const e=await n.post("/api/memberships/delete",{_id:r});return a.error=null,Promise.resolve(e.data)}catch(e){return o.setError(e),Promise.reject(e)}}},h={handleMembershipUpdate(r,e,s,f,u,c){let t;if(Array.isArray(r)?t=r.find(i=>i._id===e.target):typeof r=="object"&&r._id===e.target&&(t=r),t)if(t[u]=s,s)t.memberships.push(e),t[c]+=1;else{const i=t.memberships.findIndex(m=>m._id===e._id);i!==-1&&(t.memberships.splice(i,1),t[c]-=1)}}};l.watch(a,r=>{});exports.actions=p;exports.mutations=h;exports.state=a;
|
@@ -1,61 +1,63 @@
|
|
1
|
-
import
|
2
|
-
import { reactive as
|
3
|
-
import { setError as
|
4
|
-
const c =
|
1
|
+
import p from "../../../../node_modules/axios/lib/axios.js";
|
2
|
+
import { reactive as d, watch as u } from "vue";
|
3
|
+
import { setError as o } from "../../globals/store/globals.js";
|
4
|
+
const c = p.create({
|
5
5
|
baseURL: process.env.API_URL,
|
6
6
|
withCredentials: !0
|
7
|
-
}),
|
7
|
+
}), a = d({
|
8
8
|
memberships: [],
|
9
9
|
error: null
|
10
|
-
}),
|
11
|
-
async read(
|
10
|
+
}), _ = {
|
11
|
+
async read(r = {}) {
|
12
|
+
let e = {};
|
13
|
+
r._id && (e._id = r._id), r.user && (e.user = r.user), r.target && (e.target = r.target), r.roles && (e.roles = r.roles);
|
12
14
|
try {
|
13
|
-
const s = await c.get("/api/memberships", { params:
|
14
|
-
return
|
15
|
+
const s = await c.get("/api/memberships", { params: e });
|
16
|
+
return a.error = null, a.memberships = s.data, Promise.resolve(s.data);
|
15
17
|
} catch (s) {
|
16
|
-
return
|
18
|
+
return o(s), Promise.reject(s);
|
17
19
|
}
|
18
20
|
},
|
19
21
|
async create(r) {
|
20
22
|
try {
|
21
23
|
const e = await c.post("/api/memberships/create", r);
|
22
|
-
return
|
24
|
+
return a.error = null, Promise.resolve(e.data);
|
23
25
|
} catch (e) {
|
24
|
-
return
|
26
|
+
return o(e), Promise.reject(e);
|
25
27
|
}
|
26
28
|
},
|
27
29
|
async update(r) {
|
28
30
|
try {
|
29
31
|
const e = await c.post("/api/memberships/update", r);
|
30
|
-
return
|
32
|
+
return a.error = null, Promise.resolve(e.data);
|
31
33
|
} catch (e) {
|
32
|
-
return
|
34
|
+
return o(e), Promise.reject(e);
|
33
35
|
}
|
34
36
|
},
|
35
37
|
async delete(r) {
|
36
38
|
try {
|
37
|
-
const e = await c.post("/api/memberships/delete", r);
|
38
|
-
return
|
39
|
+
const e = await c.post("/api/memberships/delete", { _id: r });
|
40
|
+
return a.error = null, Promise.resolve(e.data);
|
39
41
|
} catch (e) {
|
40
|
-
return
|
42
|
+
return o(e), Promise.reject(e);
|
41
43
|
}
|
42
44
|
}
|
43
|
-
},
|
44
|
-
handleMembershipUpdate(r, e,
|
45
|
+
}, b = {
|
46
|
+
handleMembershipUpdate(r, e, s, f, m, n) {
|
45
47
|
let t;
|
46
|
-
if (Array.isArray(r) ? t = r.find((
|
47
|
-
if (t[
|
48
|
-
t.memberships.push(e), t[
|
48
|
+
if (Array.isArray(r) ? t = r.find((i) => i._id === e.target) : typeof r == "object" && r._id === e.target && (t = r), t)
|
49
|
+
if (t[m] = s, s)
|
50
|
+
t.memberships.push(e), t[n] += 1;
|
49
51
|
else {
|
50
|
-
const
|
51
|
-
|
52
|
+
const i = t.memberships.findIndex((l) => l._id === e._id);
|
53
|
+
i !== -1 && (t.memberships.splice(i, 1), t[n] -= 1);
|
52
54
|
}
|
53
55
|
}
|
54
56
|
};
|
55
|
-
u(
|
57
|
+
u(a, (r) => {
|
56
58
|
});
|
57
59
|
export {
|
58
|
-
|
59
|
-
|
60
|
-
|
60
|
+
_ as actions,
|
61
|
+
b as mutations,
|
62
|
+
a as state
|
61
63
|
};
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../../../../components/Field/Field.vue2.cjs"),y=require("../../../../components/Select/Select.vue2.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),q={class:"gap-thin flex-nowrap flex"},k=["disabled"],N={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(c,{emit:i}){const t=c,s=i,l=e.ref(null),a=e.ref(null),d=e.ref("pcs"),u=e.ref(null),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity,u.value=t.product.price,d.value=t.product.type),e.watch([l,a,u,d],()=>{s("update",{...l.value,price:u.value,quantity:a.value,type:d.value})});function m(){s("add",{...l.value,price:u.value,quantity:a.value,type:d.value})}function v(){s("delete",{...l.value,price:u.value,quantity:a.value,type:d.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(b.default,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=o=>l.value=o),options:c.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white pd-small radius-small"},null,8,["modelValue","options"]),e.createVNode(n.default,{field:u.value,"onUpdate:field":r[1]||(r[1]=o=>u.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(n.default,{field:a.value,"onUpdate:field":r[3]||(r[3]=o=>a.value=o),type:"number",label:"Quantity",class:"bg-white pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(y.default,{select:d.value,"onUpdate:select":r[2]||(r[2]=o=>d.value=o),options:["pcs","g","ml"],class:"bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),c.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,k)),c.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]))}};exports.default=N;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ref as i, computed as
|
2
|
-
import y from "../../../../components/Field/Field.
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
1
|
+
import { ref as i, computed as C, watch as m, openBlock as c, createElementBlock as n, createVNode as d, withCtx as P, unref as v, createCommentVNode as f } from "vue";
|
2
|
+
import y from "../../../../components/Field/Field.vue2.js";
|
3
|
+
import V from "../../../../components/Select/Select.vue2.js";
|
4
|
+
import q from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
5
|
+
import h from "../../../icons/navigation/IconAdd.vue.js";
|
6
6
|
import S from "../../../icons/navigation/IconDelete.vue.js";
|
7
7
|
const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
8
8
|
__name: "CardPosition",
|
@@ -17,7 +17,7 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
17
17
|
"update"
|
18
18
|
],
|
19
19
|
setup(s, { emit: b }) {
|
20
|
-
const e = s, p = b, l = i(null), t = i(null), u = i("pcs"), a = i(null), g =
|
20
|
+
const e = s, p = b, l = i(null), t = i(null), u = i("pcs"), a = i(null), g = C(
|
21
21
|
() => l.value && t.value > 0 && a.value > 0
|
22
22
|
);
|
23
23
|
m(e.array, () => {
|
@@ -30,7 +30,7 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
30
30
|
type: u.value
|
31
31
|
});
|
32
32
|
});
|
33
|
-
function
|
33
|
+
function k() {
|
34
34
|
p("add", {
|
35
35
|
...l.value,
|
36
36
|
price: a.value,
|
@@ -38,7 +38,7 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
38
38
|
type: u.value
|
39
39
|
});
|
40
40
|
}
|
41
|
-
function
|
41
|
+
function w() {
|
42
42
|
p("delete", {
|
43
43
|
...l.value,
|
44
44
|
price: a.value,
|
@@ -46,8 +46,8 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
46
46
|
type: u.value
|
47
47
|
});
|
48
48
|
}
|
49
|
-
return (
|
50
|
-
d(
|
49
|
+
return (x, o) => (c(), n("div", U, [
|
50
|
+
d(q, {
|
51
51
|
modelValue: l.value,
|
52
52
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => l.value = r),
|
53
53
|
options: s.products,
|
@@ -55,14 +55,14 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
55
55
|
multiple: !1,
|
56
56
|
taggable: !1,
|
57
57
|
placeholder: "Select a product",
|
58
|
-
class: "bg-white
|
58
|
+
class: "bg-white pd-small radius-small"
|
59
59
|
}, null, 8, ["modelValue", "options"]),
|
60
60
|
d(y, {
|
61
61
|
field: a.value,
|
62
62
|
"onUpdate:field": o[1] || (o[1] = (r) => a.value = r),
|
63
63
|
type: "number",
|
64
64
|
label: "Price",
|
65
|
-
symbol:
|
65
|
+
symbol: x.returnCurrency(),
|
66
66
|
class: "bg-white pd-small radius-small"
|
67
67
|
}, null, 8, ["field", "symbol"]),
|
68
68
|
d(y, {
|
@@ -72,8 +72,8 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
72
72
|
label: "Quantity",
|
73
73
|
class: "bg-white pd-small radius-small"
|
74
74
|
}, {
|
75
|
-
default:
|
76
|
-
d(
|
75
|
+
default: P(() => [
|
76
|
+
d(V, {
|
77
77
|
select: u.value,
|
78
78
|
"onUpdate:select": o[2] || (o[2] = (r) => u.value = r),
|
79
79
|
options: [
|
@@ -81,7 +81,7 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
81
81
|
"g",
|
82
82
|
"ml"
|
83
83
|
],
|
84
|
-
class: "
|
84
|
+
class: "bg-grey pd-thin radius-thin"
|
85
85
|
}, null, 8, ["select"])
|
86
86
|
]),
|
87
87
|
_: 1
|
@@ -89,14 +89,14 @@ const U = { class: "gap-thin flex-nowrap flex" }, Q = ["disabled"], F = {
|
|
89
89
|
s.product ? f("", !0) : (c(), n("button", {
|
90
90
|
key: 0,
|
91
91
|
disabled: !g.value,
|
92
|
-
onClick:
|
92
|
+
onClick: k,
|
93
93
|
class: "bg-main aspect-1x1 radius-small pd-small"
|
94
94
|
}, [
|
95
|
-
d(v(
|
95
|
+
d(v(h), { class: "i-semi" })
|
96
96
|
], 8, Q)),
|
97
97
|
s.product ? (c(), n("button", {
|
98
98
|
key: 1,
|
99
|
-
onClick:
|
99
|
+
onClick: w,
|
100
100
|
class: "bg-red aspect-1x1 radius-small pd-small"
|
101
101
|
}, [
|
102
102
|
d(v(S), { class: "i-semi" })
|
package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),s=require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),s=require("../../../../components/Field/Field.vue2.cjs"),d=require("../../store/leftovers.cjs");require("./LeftoverPositions.vue2.cjs");const u={class:"flex-column flex-wrap block"},m={key:0,class:"w-100"},f={class:"mn-r-regular w-100"},p=["onClick"],y={__name:"LeftoverPositions",props:{order:Object},setup(o){r.useRouter(),r.useRoute();const i=o;function a(n){d.actions.deleteItemFromLeftover(i.order.positions[n])}return(n,b)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",u,[o.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",m," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.order.positions,(t,c)=>(e.openBlock(),e.createElementBlock("li",{key:t._id,class:"w-100 flex-center flex-nowrap flex"},[e.createElementVNode("span",f,e.toDisplayString(t.name),1),e.createVNode(s.default,{field:t.price,"onUpdate:field":l=>t.price=l,type:"number",label:"Price",symbol:n.returnCurrency(),class:"bg-grey pd-medium radius-small"},null,8,["field","onUpdate:field","symbol"]),e.createVNode(s.default,{field:t.quantity,"onUpdate:field":l=>t.quantity=l,type:"number",label:"Quantity",class:"bg-grey pd-medium radius-small",symbol:t.type},null,8,["field","onUpdate:field","symbol"]),e.createElementVNode("a",{class:"button",onClick:l=>a(c)}," Delete ",8,p)]))),128))])]))}};exports.default=y;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as o, createElementBlock as l, createElementVNode as s, createCommentVNode as u, Fragment as f, renderList as p, toDisplayString as y, createVNode as i } from "vue";
|
2
2
|
import { useRouter as b, useRoute as _ } from "vue-router";
|
3
|
-
import a from "../../../../components/Field/Field.
|
3
|
+
import a from "../../../../components/Field/Field.vue2.js";
|
4
4
|
import { actions as g } from "../../store/leftovers.js";
|
5
5
|
import "./LeftoverPositions.vue2.js";
|
6
6
|
const k = { class: "flex-column flex-wrap block" }, h = {
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router");require("../../../../components/Field/Field.vue.cjs");const i=require("./CardPosition.vue.cjs"),u=require("../../store/leftovers.cjs");require("./ListPositions.vue2.cjs");const a={class:"flex-column flex-wrap"},d={key:0,class:"w-100"},m={class:"flex-v-center flex radius-medium pd-small bg-white w-100"},p={__name:"ListPositions",props:{order:Object},setup(t){n.useRouter(),n.useRoute();const l=t;function s(r){u.actions.deleteItemFromLeftover(l.order.positions[r])}return(r,f)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("ul",a,[t.order.positions.length===0?(e.openBlock(),e.createElementBlock("span",d," No positions added yet ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.order.positions,(o,c)=>(e.openBlock(),e.createElementBlock("li",{key:o._id,class:"w-100 gap-small flex-stretch flex-center flex-nowrap flex"},[e.createElementVNode("span",m,e.toDisplayString(o.name),1),e.createVNode(i.default,{products:[],product:o,onAdd:_=>s(c)},null,8,["product","onAdd"])]))),128))])]))}};exports.default=p;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { openBlock as e, createElementBlock as t, createElementVNode as n, createCommentVNode as d, Fragment as a, renderList as m, toDisplayString as p, createVNode as u } from "vue";
|
2
2
|
import { useRouter as f, useRoute as _ } from "vue-router";
|
3
|
-
import "../../../../components/Field/Field.
|
3
|
+
import "../../../../components/Field/Field.vue.js";
|
4
4
|
import x from "./CardPosition.vue.js";
|
5
5
|
import { actions as h } from "../../store/leftovers.js";
|
6
6
|
import "./ListPositions.vue2.js";
|