@ozdao/prometheus-framework 0.2.196 → 0.2.198
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.cjs +1 -1
- package/dist/node_modules/@googlemaps/js-api-loader/dist/index.js +21 -20
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +629 -622
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.cjs +1 -1
- package/dist/node_modules/embla-carousel-vue/esm/embla-carousel-vue.esm.js +19 -17
- package/dist/node_modules/qrcode/lib/core/byte-data.cjs +1 -1
- package/dist/node_modules/qrcode/lib/core/byte-data.js +6 -7
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +1 -1
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3 -3
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +3356 -3363
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +17 -17
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +46 -44
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +31 -31
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.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/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- 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 +1 -1
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +2528 -2518
- package/dist/style.css +1 -1
- package/package.json +25 -25
- package/src/modules/globals/views/components/layouts/Client.vue +4 -3
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),d=require("./FooterBlogpost.vue.cjs"),m=require("../../../../components/Text/Text.vue.cjs");;/* empty css */const g=require("vue-router"),b={class:"pos-relative bg-light radius-big flex-column flex"},p={class:"pd-t-zero pd-b-zero pd-medium"},y={key:0,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},f={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},h={key:1,class:"mn-b-small t-transp p-big"},k={key:2,class:"mn-b-small h2"},v=["src"],B={key:1,controls:"",class:"mn-b-medium object-fit-cover w-100 h-max-20r"},x=["src"],V={__name:"CardBlogpost",props:{blogpost:{type:Object},user:{type:String},type:{type:String},hideDescription:{type:Boolean,default:!1},hideTitle:{type:Boolean,default:!1}},setup(t){const i=g.useRouter(),n=t,l=e.computed(()=>n.blogpost.content.find(o=>o.type==="ImageUpload")),s=e.computed(()=>n.blogpost.content.find(o=>o.type==="Video")),a=e.computed(()=>n.blogpost.content.find(o=>o.type==="Textarea"));return(o,r)=>{var c;return e.openBlock(),e.createElementBlock("article",b,[e.createVNode(u.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.blogpost,entityType:"blogpost",user:t.user,owner:t.blogpost.owner,creator:t.blogpost.creator,date:t.blogpost.createdAt,actions:t.user&&t.user===t.blogpost.creator.target._id?[{to:{name:"Edit BlogPost",params:{url:t.blogpost.url}},label:"Edit"}]:null},null,8,["class","entity","user","owner","creator","date","actions"]),e.createElementVNode("section",p,[t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("div",y,[t.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m.default,{key:0,text:t.blogpost.name||"",maxLen:80,class:"h3 d-block",onClick:r[0]||(r[0]=E=>e.unref(i).push({name:"BlogPost",params:{url:t.blogpost.url}}))},null,8,["text"])),t.blogpost.status==="draft"?(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.blogpost.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),a.value&&a.value.content&&t.type!=="blogpostPage"&&!t.hideDescription?(e.openBlock(),e.createElementBlock("p",h,e.toDisplayString(a.value.content.slice(0,120))+"... ",1)):e.createCommentVNode("",!0),t.type==="blogpostPage"&&!t.hideTitle?(e.openBlock(),e.createElementBlock("h3",k,e.toDisplayString(t.blogpost.name),1)):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")]),l.value&&l.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("img",{key:0,src:(o.FILE_SERVER_URL||"")+l.value.content,alt:"Blog post image",class:"mn-b-medium object-fit-cover w-100 h-min-10r h-100"},null,8,v)):e.createCommentVNode("",!0),!((c=l.value)!=null&&c.content)&&s.value&&s.value.content&&t.type!=="blogpostPage"?(e.openBlock(),e.createElementBlock("video",B,[e.createElementVNode("source",{src:s.value.content,type:"video/mp4"},null,8,x),e.createTextVNode(" Your browser does not support the video tag. ")])):e.createCommentVNode("",!0),e.createVNode(d.default,{class:"pd-t-zero pd-medium",blogpost:t.blogpost,user:t.user},null,8,["blogpost","user"])])}}};exports.default=V;
|
package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js
CHANGED
@@ -2,7 +2,7 @@ import { computed as c, openBlock as o, createElementBlock as l, createVNode as
|
|
2
2
|
import k from "../../../globals/views/components/blocks/CardHeader.vue.js";
|
3
3
|
import w from "./FooterBlogpost.vue.js";
|
4
4
|
import B from "../../../../components/Text/Text.vue.js";
|
5
|
-
/* empty css
|
5
|
+
/* empty css */
|
6
6
|
import { useRouter as E } from "vue-router";
|
7
7
|
const P = { class: "pos-relative bg-light radius-big flex-column flex" }, T = { class: "pd-t-zero pd-b-zero pd-medium" }, V = {
|
8
8
|
key: 0,
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),b=require("isomorphic-dompurify");;/* empty css */const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),b=require("isomorphic-dompurify");;/* empty css */const h={key:0,class:"formatting-bar"},y={__name:"Textarea",props:{prop:Object,content:String,placeholder:String,index:Number,setFocus:Boolean},emits:["deleteBlock","updateBlock","addBlock","focus"],setup(s,{emit:k}){const T={ALLOWED_TAGS:["b","i","a","img"],ALLOWED_ATTR:["href","target","src"]},i=s,l=k,c=n.ref(null),u=n.ref(!1);n.ref(null);function C(t){const e=a(t.target.innerHTML);l("updateBlock",i.prop,{content:e})}function g(t){if(t.key==="Enter"&&!t.shiftKey){t.preventDefault();const o=window.getSelection().getRangeAt(0),r=E(o),d=a(c.value.innerHTML);l("updateBlock",i.prop,{content:d}),l("addBlock","Textarea",a(r),i.index)}else t.key==="Backspace"&&c.value.innerHTML.trim()===""&&(t.preventDefault(),l("deleteBlock",i.prop,{setCaretToEnd:!0}))}function E(t){const e=t.startContainer,o=t.startOffset;if(e.nodeType===Node.TEXT_NODE){const r=e.textContent.slice(o);return e.textContent=e.textContent.slice(0,o),r}else if(e.nodeType===Node.ELEMENT_NODE){const r=document.createElement("div"),d=Array.from(e.childNodes);let m=!1;for(d.forEach((L,N)=>{N===o&&(m=!0),m&&r.appendChild(L.cloneNode(!0))});e.childNodes[o];)e.removeChild(e.childNodes[o]);return r.innerHTML}return""}function f(t={}){n.nextTick(()=>{c.value.focus();let e=t.setCaretToEnd||i.prop.setCaretToEnd;if(i.prop.setFocus===!0&&!e){const o=document.createRange();o.setStart(c.value,0),o.collapse(!0);const r=window.getSelection();r.removeAllRanges(),r.addRange(o)}else v(c.value);l("updateBlock",i.prop,{setFocus:!1,setCaretToEnd:!1})})}n.onMounted(()=>{i.setFocus&&n.nextTick(()=>{f()})}),n.onUpdated(()=>{i.setFocus&&n.nextTick(()=>{f()})});function a(t){return b.sanitize(t,T)}function v(t){const e=document.createRange(),o=window.getSelection();e.selectNodeContents(t),e.collapse(!1),o.removeAllRanges(),o.addRange(e)}function x(){u.value=window.getSelection().toString().length>0}function p(t){document.execCommand(t,!1,null)}function B(){const t=prompt("Enter the URL:");t&&document.execCommand("createLink",!1,t)}return(t,e)=>(n.openBlock(),n.createElementBlock("div",null,[e[0]||(n.setBlockTracking(-1),(e[0]=n.createElementVNode("div",{ref_key:"editableDiv",ref:c,contenteditable:!0,onInput:C,onKeydown:g,onMouseup:x,tabindex:"0",innerHTML:i.prop[i.content],class:n.normalizeClass(["editable-div mn-b-thin",{"t-main t-semi":s.prop.type==="Link",h3:s.prop.type==="H2"}])},null,42,["innerHTML"])).cacheIndex=0,n.setBlockTracking(1),e[0]),u.value?(n.openBlock(),n.createElementBlock("div",h,[n.createElementVNode("button",{onClick:e[1]||(e[1]=o=>p("bold"))},"B"),n.createElementVNode("button",{onClick:e[2]||(e[2]=o=>p("italic"))},"I"),n.createElementVNode("button",{onClick:B},"Link")])):n.createCommentVNode("",!0)]))}};exports.default=y;
|
package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref as u, onMounted as D, nextTick as f, onUpdated as M, openBlock as T, createElementBlock as g, setBlockTracking as E, createElementVNode as
|
1
|
+
import { ref as u, onMounted as D, nextTick as f, onUpdated as M, openBlock as T, createElementBlock as g, setBlockTracking as E, createElementVNode as s, normalizeClass as A, createCommentVNode as R } from "vue";
|
2
2
|
import z from "isomorphic-dompurify";
|
3
3
|
/* empty css */
|
4
4
|
const H = {
|
@@ -18,20 +18,20 @@ const H = {
|
|
18
18
|
const x = {
|
19
19
|
ALLOWED_TAGS: ["b", "i", "a", "img"],
|
20
20
|
ALLOWED_ATTR: ["href", "target", "src"]
|
21
|
-
}, o = l,
|
21
|
+
}, o = l, c = v, r = u(null), p = u(!1);
|
22
22
|
u(null);
|
23
23
|
function L(t) {
|
24
24
|
const e = a(t.target.innerHTML);
|
25
|
-
|
25
|
+
c("updateBlock", o.prop, { content: e });
|
26
26
|
}
|
27
|
-
function
|
27
|
+
function h(t) {
|
28
28
|
if (t.key === "Enter" && !t.shiftKey) {
|
29
29
|
t.preventDefault();
|
30
|
-
const n = window.getSelection().getRangeAt(0), i =
|
31
|
-
|
32
|
-
} else t.key === "Backspace" && r.value.innerHTML.trim() === "" && (t.preventDefault(),
|
30
|
+
const n = window.getSelection().getRangeAt(0), i = B(n), d = a(r.value.innerHTML);
|
31
|
+
c("updateBlock", o.prop, { content: d }), c("addBlock", "Textarea", a(i), o.index);
|
32
|
+
} else t.key === "Backspace" && r.value.innerHTML.trim() === "" && (t.preventDefault(), c("deleteBlock", o.prop, { setCaretToEnd: !0 }));
|
33
33
|
}
|
34
|
-
function
|
34
|
+
function B(t) {
|
35
35
|
const e = t.startContainer, n = t.startOffset;
|
36
36
|
if (e.nodeType === Node.TEXT_NODE) {
|
37
37
|
const i = e.textContent.slice(n);
|
@@ -57,8 +57,8 @@ const H = {
|
|
57
57
|
const i = window.getSelection();
|
58
58
|
i.removeAllRanges(), i.addRange(n);
|
59
59
|
} else
|
60
|
-
|
61
|
-
|
60
|
+
b(r.value);
|
61
|
+
c("updateBlock", o.prop, { setFocus: !1, setCaretToEnd: !1 });
|
62
62
|
});
|
63
63
|
}
|
64
64
|
D(() => {
|
@@ -73,7 +73,7 @@ const H = {
|
|
73
73
|
function a(t) {
|
74
74
|
return z.sanitize(t, x);
|
75
75
|
}
|
76
|
-
function
|
76
|
+
function b(t) {
|
77
77
|
const e = document.createRange(), n = window.getSelection();
|
78
78
|
e.selectNodeContents(t), e.collapse(!1), n.removeAllRanges(), n.addRange(e);
|
79
79
|
}
|
@@ -88,12 +88,12 @@ const H = {
|
|
88
88
|
t && document.execCommand("createLink", !1, t);
|
89
89
|
}
|
90
90
|
return (t, e) => (T(), g("div", null, [
|
91
|
-
e[0] || (E(-1), e[0] =
|
91
|
+
e[0] || (E(-1), (e[0] = s("div", {
|
92
92
|
ref_key: "editableDiv",
|
93
93
|
ref: r,
|
94
94
|
contenteditable: !0,
|
95
95
|
onInput: L,
|
96
|
-
onKeydown:
|
96
|
+
onKeydown: h,
|
97
97
|
onMouseup: y,
|
98
98
|
tabindex: "0",
|
99
99
|
innerHTML: o.prop[o.content],
|
@@ -101,15 +101,15 @@ const H = {
|
|
101
101
|
"t-main t-semi": l.prop.type === "Link",
|
102
102
|
h3: l.prop.type === "H2"
|
103
103
|
}])
|
104
|
-
}, null, 42, ["innerHTML"]), E(1), e[0]),
|
104
|
+
}, null, 42, ["innerHTML"])).cacheIndex = 0, E(1), e[0]),
|
105
105
|
p.value ? (T(), g("div", H, [
|
106
|
-
|
106
|
+
s("button", {
|
107
107
|
onClick: e[1] || (e[1] = (n) => C("bold"))
|
108
108
|
}, "B"),
|
109
|
-
|
109
|
+
s("button", {
|
110
110
|
onClick: e[2] || (e[2] = (n) => C("italic"))
|
111
111
|
}, "I"),
|
112
|
-
|
112
|
+
s("button", { onClick: N }, "Link")
|
113
113
|
])) : R("", !0)
|
114
114
|
]));
|
115
115
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Chips/Chips.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../../../components/Chips/Chips.vue2.cjs"),y=require("../../../icons/navigation/IconEdit.vue.cjs"),C=require("../../../globals/views/components/blocks/CardHeader.vue.cjs");require("../../../community/store/reactions.cjs");const k=require("vue-router"),p={key:0,class:"o-hidden pos-relative bg-light mn-b-small w-100"},E=["src"],T=["src"],w={class:"w-max mn-r-thin pd-thin radius-small t-semi bg-main"},b={class:"t-semi"},B={key:0,class:"t-semi"},D={key:0,class:"t-semi uppercase"},U={key:1,class:"cursor-pointer mn-b-thin flex-nowrap flex w-100"},N={key:0,class:""},V={key:1,class:"pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-l-thin w-min bg-second radius-extra"},S={key:2,class:"mn-b-small p-big"},x={__name:"CardEvent",props:["event","user","short","type"],setup(t){e.ref(new Date),k.useRouter();const o=t;e.computed(()=>o.event.content.find(n=>n.type.name==="ImageUpload")),e.computed(()=>o.event.content.find(n=>n.type.name==="Textarea"));const u=e.computed(()=>{const n=new Date,s=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds()),r=new Date(o.event.date.start),a=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds())-s;if(a<0)return"Finished";if(a===0)return"Starting Now";{const d=Math.floor(a/1e3),l=Math.floor(d/60),i=Math.floor(l/60),m=Math.floor(i/24);return m>0?`${m} days until event`:i>0?`${i} hours until event`:l>0?`${l} minutes until event`:`${d} seconds until event`}}),v=e.computed(()=>{const n=new Date(o.event.date.start),s={day:"2-digit",month:"2-digit"};return n.toLocaleDateString(void 0,s)}),h=e.computed(()=>{console.log(o.event.date.start),console.log(o.event.date.end);const n=new Date(o.event.date.start),s=new Date(o.event.date.end),r=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(n),c=new Intl.DateTimeFormat(void 0,{hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).format(s);return`${r}-${c}`}),f=e.computed(()=>{const n=o.event.name;return n.length>26?`${n.substring(0,22)}…`:n});return(n,s)=>(e.openBlock(),e.createElementBlock("article",{class:e.normalizeClass([{"flex-nowrap flex-v-center flex":t.type==="short"},"pos-relative"])},[e.createVNode(C.default,{class:e.normalizeClass({"mn-b-small pd-medium":t.type!=="short","flex-child-order-last flex-child mn-l-small":t.type==="short"}),entity:t.event,entityType:"event",user:t.user,owner:t.event.owner,creator:t.event.creator,members:t.event.numberOfTickets,membersPhotos:t.event.participantsPhotos,type:t.type,dateFormatted:u.value},null,8,["class","entity","user","owner","creator","members","membersPhotos","type","dateFormatted"]),t.event.cover&&t.type!=="short"?(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("img",{src:(n.FILE_SERVER_URL||"")+t.event.cover,alt:"Event image",class:"pos-relative z-index-1 d-block mn-auto h-20r"},null,8,E),e.createElementVNode("img",{src:(n.FILE_SERVER_URL||"")+t.event.cover,alt:"Event Background",class:"z-index-0 pos-absolute w-100 h-100 pos-t-0 pos-r-0",style:{transform:"scale(1.5)",filter:"blur(2rem)","-webkit-filter":"blur(2rem)"}},null,8,T)])):e.createCommentVNode("",!0),e.createElementVNode("section",{class:e.normalizeClass(["pos-relative w-100",{"pd-t-zero pd-medium":t.type!=="short"}])},[t.user===t.event.creator.target._id?(e.openBlock(),e.createBlock(y.default,{key:0,onClick:s[0]||(s[0]=e.withModifiers(r=>n.$router.push({name:"Edit Event",params:{url:t.event.url}}),["stop"])),class:"z-index-2 pos-absolute pos-t-regular pos-r-regular i-regular t-transp"})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([{"mn-b-small":t.type!=="short"},"flex-v-center flex-nowrap flex"])},[e.createElementVNode("div",w,[e.createElementVNode("span",b,e.toDisplayString(v.value),1),t.type!=="short"?(e.openBlock(),e.createElementBlock("span",B," | "+e.toDisplayString(h.value),1)):e.createCommentVNode("",!0)]),t.type==="short"?(e.openBlock(),e.createElementBlock("span",D,e.toDisplayString(f.value),1)):e.createCommentVNode("",!0)],2),t.type!=="short"?(e.openBlock(),e.createElementBlock("div",U,[t.type!=="short"?(e.openBlock(),e.createElementBlock("h3",N,e.toDisplayString(t.event.name),1)):e.createCommentVNode("",!0),t.event.status==="draft"?(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(t.event.status),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.type!=="short"?(e.openBlock(),e.createElementBlock("p",S,e.toDisplayString(t.event.description),1)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default"),t.type!=="short"&&t.event.tags.length>0?(e.openBlock(),e.createBlock(g.default,{key:3,chips:t.event.tags},null,8,["chips"])):e.createCommentVNode("",!0)],2)],2))}};exports.default=x;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as k, computed as l, openBlock as n, createElementBlock as i, normalizeClass as m, createVNode as x, createElementVNode as c, createCommentVNode as a, createBlock as w, withModifiers as D, toDisplayString as d, renderSlot as E } from "vue";
|
2
|
-
import p from "../../../../components/Chips/Chips.
|
2
|
+
import p from "../../../../components/Chips/Chips.vue2.js";
|
3
3
|
import $ from "../../../icons/navigation/IconEdit.vue.js";
|
4
4
|
import I from "../../../globals/views/components/blocks/CardHeader.vue.js";
|
5
5
|
import "../../../community/store/reactions.js";
|
@@ -16,7 +16,7 @@ import Y from "../../../../components/EditImages/EditImages.vue.js";
|
|
16
16
|
import J from "../../../../components/Button/Button.vue2.js";
|
17
17
|
import L from "../../../icons/navigation/IconDelete.vue.js";
|
18
18
|
import { useRoute as j, useRouter as q } from "vue-router";
|
19
|
-
import { read as K, clean as Q, state as W, update as O, create as
|
19
|
+
import { read as K, clean as Q, state as W, update as O, create as V, remove as X } from "../../store/events.js";
|
20
20
|
import { state as d } from "../../../auth/views/store/auth.js";
|
21
21
|
import { actions as Z } from "../../../organizations/store/organizations.js";
|
22
22
|
/* empty css */
|
@@ -38,7 +38,7 @@ const ee = {
|
|
38
38
|
}, Le = {
|
39
39
|
key: 6,
|
40
40
|
class: "pd-thin pos-sticky pos-l-0 pos-b-0 w-100"
|
41
|
-
}, Oe = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" },
|
41
|
+
}, Oe = { class: "pd-thin radius-big bg-main w-100 flex-nowrap flex" }, Ve = /* @__PURE__ */ s("h3", { class: "mn-b-small" }, "Final Touches", -1), Ce = /* @__PURE__ */ s("h5", { class: "mn-b-thin" }, "Add to public:", -1), Me = {
|
42
42
|
key: 0,
|
43
43
|
class: "mn-b-thin"
|
44
44
|
}, Re = {
|
@@ -85,10 +85,10 @@ const ee = {
|
|
85
85
|
}));
|
86
86
|
});
|
87
87
|
const w = v(!1);
|
88
|
-
function
|
88
|
+
function C() {
|
89
89
|
w.value = !0;
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function M() {
|
92
92
|
w.value = !1;
|
93
93
|
}
|
94
94
|
function R() {
|
@@ -99,7 +99,7 @@ const ee = {
|
|
99
99
|
b.push({ name: "Event", params: { url: o.url } });
|
100
100
|
}).catch((o) => {
|
101
101
|
console.error(o);
|
102
|
-
}) :
|
102
|
+
}) : V(e.value).then((o) => {
|
103
103
|
b.push({ name: "Event", params: { url: o.url } });
|
104
104
|
}).catch((o) => {
|
105
105
|
console.error(o);
|
@@ -116,7 +116,7 @@ const ee = {
|
|
116
116
|
b.push({ name: "Event", params: { url: o.url } });
|
117
117
|
}).catch((o) => {
|
118
118
|
console.log(o);
|
119
|
-
})) :
|
119
|
+
})) : V(e.value).then((o) => {
|
120
120
|
b.push({ name: "Event", params: { url: o.url } });
|
121
121
|
}).catch((o) => {
|
122
122
|
console.log(o);
|
@@ -463,24 +463,24 @@ const ee = {
|
|
463
463
|
class: "mn-l-auto bg-white t-black button"
|
464
464
|
}, "To Drafts"),
|
465
465
|
s("a", {
|
466
|
-
onClick: t[36] || (t[36] = (l) =>
|
466
|
+
onClick: t[36] || (t[36] = (l) => C()),
|
467
467
|
class: "mn-l-thin bg-black t-white button"
|
468
468
|
}, "Publish")
|
469
469
|
])
|
470
470
|
])) : p("", !0),
|
471
471
|
i(I, {
|
472
472
|
title: "Publish",
|
473
|
-
onClosePopup:
|
473
|
+
onClosePopup: M,
|
474
474
|
isPopupOpen: w.value,
|
475
475
|
class: "w-m-33r t-left pd-big bg-white radius-big"
|
476
476
|
}, {
|
477
477
|
default: D(() => [
|
478
|
-
|
478
|
+
Ve,
|
479
479
|
i(z, {
|
480
480
|
onTagsChanged: t[37] || (t[37] = (l) => a(e).tags = l),
|
481
481
|
tags: a(e).tags
|
482
482
|
}, null, 8, ["tags"]),
|
483
|
-
|
483
|
+
Ce,
|
484
484
|
i(H, {
|
485
485
|
modelValue: m.value,
|
486
486
|
"onUpdate:modelValue": t[38] || (t[38] = (l) => m.value = l),
|
@@ -492,7 +492,7 @@ const ee = {
|
|
492
492
|
"track-by": "_id",
|
493
493
|
class: "mn-b-medium bg-light radius-medium pd-small"
|
494
494
|
}, null, 8, ["modelValue", "options"]),
|
495
|
-
m.value ? (u(), r("h5",
|
495
|
+
m.value ? (u(), r("h5", Me, "Options:")) : p("", !0),
|
496
496
|
m.value ? (u(), r("div", Re, [
|
497
497
|
i(P, {
|
498
498
|
label: "Hide Author",
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("vue-router");;/* empty css */const w=require("../../../../components/Button/Button.vue2.cjs");;/* empty css */const B=require("../../../../components/Chips/Chips.vue2.cjs");;/* empty css */const _=require("../../../../components/Popup/Popup.vue.cjs"),E=require("../../../../components/Feed/Feed.vue.cjs"),U=require("../../../../components/PhotoViewer/PhotoViewer.vue.cjs"),k=require("../../../auth/views/store/auth.cjs");require("../../../organizations/store/organizations.cjs");const o=require("../../store/gallery.cjs"),A=require("../../../globals/views/components/blocks/CardHeader.vue.cjs"),I=require("../../../globals/views/components/sections/SectionPageTitle.vue.cjs"),O=require("../../../../components/EditImages/EditImages.vue.cjs"),T=require("../../../../components/FieldTags/BlockTags.vue.cjs"),R={class:"cols-1 gap-thin pd-thin"},S={class:"pos-relative"},D=["src","onClick"],F={class:"pos-absolute pos-t-0 pos-r-0 pd-micro t-white uppercase t-semi p-small flex-center flex pd-r-small pd-l-small mn-r-small mn-t-small w-min bg-second radius-extra"},j={class:"pd-small"},L=["src"],G={class:"flex-nowrap flex gap-thin"},M={__name:"BackofficeGallery",setup(z){const h=C.useRoute(),i=e.ref("all");let c=e.ref({param:"createdAt",order:"desc",options:[{label:"Date",value:"createdAt"},{label:"Popularity",value:"views"},{label:"Creator",value:"creator"}]}),p=e.ref({start:null,end:null});const f=e.ref(!1);function x(a){f.value=!0,u.value=a}function y(){f.value=!1,u.value=null}const m=e.ref(!1);function V(a){m.value=!0,u.value=a}function v(){m.value=!1,u.value=null,n.value=[],r.value={tags:null,image:null}}const u=e.ref(null);e.ref("all");const r=e.ref({tags:null,image:null}),n=e.ref([]),N=a=>{n.value=a},d=e.ref([]),q=async a=>{await o.default.delete(a._id),o.default.removeItem(a,d.value)},g=async(a,s)=>{a.status=s,await o.default.update(a),o.default.updateItem(a,d.value)},b=async a=>{if(n.length<1){alert("Upload at least 1 image");return}let s=await o.default.create({images:n.value,tags:r.value.tags,status:a,owner:{type:"Organization",target:h.params._id},creator:{type:"User",target:k.state.user._id}});for(let t of s)o.default.addItem(t,d.value)};return(a,s)=>(e.openBlock(),e.createElementBlock("div",R,[e.createVNode(I.default,{title:"Gallery","onUpdate:tabs_current":s[0]||(s[0]=t=>i.value=t),tabs_current:i.value,tabs:[{name:"All",value:"all"},{name:"Featured",value:"featured"},{name:"Published",value:"published"},{name:"Draft",value:"draft"},{name:"Archived",value:"archived"}],actions:[{method:()=>V(null),label:"Add Photo"}],class:"mn-b-small bg-light bg-light radius-big"},null,8,["tabs_current","actions"]),e.createVNode(E.default,{items:d.value,"onUpdate:items":s[1]||(s[1]=t=>d.value=t),sort:e.unref(c),"onUpdate:sort":s[2]||(s[2]=t=>e.isRef(c)?c.value=t:c=t),date:e.unref(p),"onUpdate:date":s[3]||(s[3]=t=>e.isRef(p)?p.value=t:p=t),states:{empty:{title:"No Photos Found",description:"Currently, there are no photos in gallery."}},store:{read:t=>e.unref(o.default).read(t)},options:{limit:15,owner:e.unref(h).params._id,...i.value!=="all"&&{status:i.value}},class:"cols-3 gap-thin"},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,l=>{var P;return e.openBlock(),e.createElementBlock("div",{key:l._id,class:"bg-light radius-small flex-column pos-relative flex-wrap"},[e.createVNode(A.default,{entity:l,entityType:"photo",user:k.state.user._id,owner:l.creator,creator:l.creator,date:l.createdAt,actions:[{method:()=>q(l),label:"Delete"},{method:()=>g(l,"archived"),label:"Archive"},l.status==="draft"?{method:()=>g(l,"published"),label:"Publish"}:{method:()=>g(l,"draft"),label:"Draft"}],class:"pd-small mn-b-small"},null,8,["entity","user","owner","creator","date","actions"]),e.createElementVNode("div",S,[e.createElementVNode("img",{src:(a.FILE_SERVER_URL||"")+l.cover,class:"w-100 h-20r object-fit-contain bg-black",onClick:H=>x(l)},null,8,D),e.createElementVNode("div",F,e.toDisplayString(l.status),1)]),e.createElementVNode("div",j,[((P=l.tags)==null?void 0:P.length)>0?(e.openBlock(),e.createBlock(B.default,{key:0,chips:l.tags},null,8,["chips"])):e.createCommentVNode("",!0)])])}),128))]),_:1},8,["items","sort","date","store","options"]),e.createVNode(_.default,{onClosePopup:y,isPopupOpen:f.value,class:"bg-black o-hidden w-100 h-100 radius-big"},{default:e.withCtx(()=>[e.createVNode(U.default,{photoUrl:u.value.image},null,8,["photoUrl"])]),_:1},8,["isPopupOpen"]),e.createVNode(_.default,{title:"Add Photo",onClosePopup:v,isPopupOpen:m.value,class:"bg-white w-max-30r radius-big pd-big"},{default:e.withCtx(()=>[r.value.cover?(e.openBlock(),e.createElementBlock("img",{key:0,src:r.value.cover,class:"radius-small w-100 mn-b-small h-20r object-fit-cover"},null,8,L)):e.createCommentVNode("",!0),e.createVNode(O.default,{images:n.value,uploadPath:"/photos","onUpdate:images":N,class:"mn-b-semi bg-light radius-medium"},null,8,["images"]),e.createVNode(T.default,{onTagsChanged:s[4]||(s[4]=t=>r.value.tags=t),tags:r.value.tags,tagsSuggested:[{text:"people"},{text:"events"},{text:"place"},{text:"food"},{text:"drinks"},{text:"special"}],class:"mn-b-semi"},null,8,["tags"]),e.createElementVNode("div",G,[e.createVNode(w.default,{submit:()=>b("draft"),callback:v,class:"t-nowrap bg-second w-100"},{default:e.withCtx(()=>[e.createTextVNode(" To drafts ")]),_:1},8,["submit"]),e.createVNode(w.default,{submit:()=>b("published"),callback:v,class:"bg-main w-100"},{default:e.withCtx(()=>[e.createTextVNode(" Publish ")]),_:1},8,["submit"])])]),_:1},8,["isPopupOpen"])]))}};exports.default=M;
|
package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js
CHANGED
@@ -3,7 +3,7 @@ import { useRoute as j } from "vue-router";
|
|
3
3
|
/* empty css */
|
4
4
|
import I from "../../../../components/Button/Button.vue2.js";
|
5
5
|
/* empty css */
|
6
|
-
import G from "../../../../components/Chips/Chips.
|
6
|
+
import G from "../../../../components/Chips/Chips.vue2.js";
|
7
7
|
/* empty css */
|
8
8
|
import O from "../../../../components/Popup/Popup.vue.js";
|
9
9
|
import z from "../../../../components/Feed/Feed.vue.js";
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("vue-router"),t=require("../../store/globals.cjs"),v=require("../../../../../components/Loader/Loader.vue2.cjs"),_=require("../../../../../components/Status/Status.vue.cjs"),g=require("../../../../../components/Popup/Popup.vue.cjs");require("vue-i18n");;/* empty css */const h=require("../partials/LocationSelection.vue.cjs");require("../../../../products/store/categories.cjs");const w=require("../../../../orders/components/partials/ShopCart.vue.cjs");;/* empty css */const k={id:"app-wrapper",class:"pos-relative"},C={__name:"Client",setup(q){const s=i.useRoute();i.useRouter();let r=e.ref(!1);const a=e.ref(null);e.ref(null);const l=e.ref(s.query.referalCode);function c(){t.state.isOpenLocationPopup=!1}function u(){document.getElementById("app").scrollIntoView()}const p=e.ref(0);return e.ref(null),e.computed(()=>p.value>50?"light":s.meta.header_theme||"light"),e.onMounted(async()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/service-worker.js").then(o=>{console.log("SW registered: ",o)}).catch(o=>{console.log("SW registration failed: ",o)})}),a&&(r.value=!0);const n=localStorage.getItem("position");n?t.state.position=JSON.parse(n):t.state.isOpenLocationPopup=!0,l.value&&localStorage.setItem("referalCode",l.value)}),(n,o)=>{const d=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",k,[e.createVNode(e.Transition,{name:"moveFromTop",appear:""},{default:e.withCtx(()=>[!a.value&&!e.unref(r)?(e.openBlock(),e.createBlock(v.default,{key:0,class:"pos-fixed"})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(g.default,{onClosePopup:c,isPopupOpen:t.state.isOpenLocationPopup,class:"bg-white pd-semi w-m-33r radius-big"},{default:e.withCtx(()=>[e.createVNode(h.default)]),_:1},8,["isPopupOpen"]),e.createVNode(w.default),t.state.error.show?(e.openBlock(),e.createBlock(_.default,{key:0,data:t.state.error,class:"z-index-7"},null,8,["data"])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[e.withDirectives(e.createVNode(d,{class:"o-scroll"},{default:e.withCtx(({Component:f,route:m})=>[e.createVNode(e.Transition,{onBeforeEnter:u,name:"scaleIn",mode:"out-in",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f),{ref_key:"page",ref:a,key:m.path}))]),_:2},1024)]),_:1},512),[[e.vShow,e.unref(r)]])]),_:1}))])}}};exports.default=C;
|
package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js
CHANGED
@@ -1,97 +1,99 @@
|
|
1
|
-
import { ref as e, computed as
|
2
|
-
import { useRoute as
|
1
|
+
import { ref as e, computed as C, onMounted as y, resolveComponent as P, openBlock as r, createElementBlock as O, createVNode as o, Transition as m, withCtx as a, unref as f, createBlock as i, createCommentVNode as d, Suspense as S, withDirectives as L, resolveDynamicComponent as x, vShow as B } from "vue";
|
2
|
+
import { useRoute as I, useRouter as E } from "vue-router";
|
3
3
|
import { state as t } from "../../store/globals.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
4
|
+
import W from "../../../../../components/Loader/Loader.vue2.js";
|
5
|
+
import $ from "../../../../../components/Status/Status.vue.js";
|
6
|
+
import N from "../../../../../components/Popup/Popup.vue.js";
|
7
7
|
import "vue-i18n";
|
8
8
|
/* empty css */
|
9
|
-
import
|
9
|
+
import T from "../partials/LocationSelection.vue.js";
|
10
10
|
import "../../../../products/store/categories.js";
|
11
|
-
import
|
11
|
+
import V from "../../../../orders/components/partials/ShopCart.vue.js";
|
12
12
|
/* empty css */
|
13
|
-
const
|
13
|
+
const b = {
|
14
14
|
id: "app-wrapper",
|
15
15
|
class: "pos-relative"
|
16
|
-
},
|
16
|
+
}, U = {
|
17
17
|
__name: "Client",
|
18
|
-
setup(
|
19
|
-
const
|
20
|
-
|
21
|
-
let
|
22
|
-
const
|
18
|
+
setup(D) {
|
19
|
+
const c = I();
|
20
|
+
E();
|
21
|
+
let s = e(!1);
|
22
|
+
const l = e(null);
|
23
23
|
e(null);
|
24
|
-
const
|
25
|
-
function
|
24
|
+
const u = e(c.query.referalCode);
|
25
|
+
function _() {
|
26
26
|
t.isOpenLocationPopup = !1;
|
27
27
|
}
|
28
|
-
function
|
28
|
+
function v() {
|
29
29
|
document.getElementById("app").scrollIntoView();
|
30
30
|
}
|
31
|
-
const
|
32
|
-
return e(null),
|
31
|
+
const g = e(0);
|
32
|
+
return e(null), C(() => g.value > 50 ? "light" : c.meta.header_theme || "light"), y(async () => {
|
33
33
|
"serviceWorker" in navigator && window.addEventListener("load", () => {
|
34
34
|
navigator.serviceWorker.register("/service-worker.js").then((n) => {
|
35
35
|
console.log("SW registered: ", n);
|
36
36
|
}).catch((n) => {
|
37
37
|
console.log("SW registration failed: ", n);
|
38
38
|
});
|
39
|
-
}),
|
40
|
-
const
|
41
|
-
|
42
|
-
}), (
|
43
|
-
const
|
44
|
-
return r(),
|
45
|
-
o(
|
39
|
+
}), l && (s.value = !0);
|
40
|
+
const p = localStorage.getItem("position");
|
41
|
+
p ? t.position = JSON.parse(p) : t.isOpenLocationPopup = !0, u.value && localStorage.setItem("referalCode", u.value);
|
42
|
+
}), (p, n) => {
|
43
|
+
const h = P("router-view");
|
44
|
+
return r(), O("div", b, [
|
45
|
+
o(m, {
|
46
46
|
name: "moveFromTop",
|
47
47
|
appear: ""
|
48
48
|
}, {
|
49
49
|
default: a(() => [
|
50
|
-
|
50
|
+
!l.value && !f(s) ? (r(), i(W, {
|
51
51
|
key: 0,
|
52
52
|
class: "pos-fixed"
|
53
|
-
}))
|
53
|
+
})) : d("", !0)
|
54
54
|
]),
|
55
55
|
_: 1
|
56
56
|
}),
|
57
|
-
o(
|
58
|
-
onClosePopup:
|
57
|
+
o(N, {
|
58
|
+
onClosePopup: _,
|
59
59
|
isPopupOpen: t.isOpenLocationPopup,
|
60
60
|
class: "bg-white pd-semi w-m-33r radius-big"
|
61
61
|
}, {
|
62
62
|
default: a(() => [
|
63
|
-
o(
|
63
|
+
o(T)
|
64
64
|
]),
|
65
65
|
_: 1
|
66
66
|
}, 8, ["isPopupOpen"]),
|
67
|
-
o(
|
68
|
-
t.error.show ? (r(),
|
67
|
+
o(V),
|
68
|
+
t.error.show ? (r(), i($, {
|
69
69
|
key: 0,
|
70
70
|
data: t.error,
|
71
71
|
class: "z-index-7"
|
72
|
-
}, null, 8, ["data"])) :
|
73
|
-
(r(),
|
72
|
+
}, null, 8, ["data"])) : d("", !0),
|
73
|
+
(r(), i(S, null, {
|
74
74
|
default: a(() => [
|
75
|
-
o(
|
76
|
-
default: a(({ Component:
|
77
|
-
o(
|
78
|
-
onBeforeEnter:
|
75
|
+
L(o(h, { class: "o-scroll" }, {
|
76
|
+
default: a(({ Component: w, route: k }) => [
|
77
|
+
o(m, {
|
78
|
+
onBeforeEnter: v,
|
79
79
|
name: "scaleIn",
|
80
80
|
mode: "out-in",
|
81
81
|
appear: ""
|
82
82
|
}, {
|
83
83
|
default: a(() => [
|
84
|
-
(r(),
|
84
|
+
(r(), i(x(w), {
|
85
85
|
ref_key: "page",
|
86
|
-
ref:
|
87
|
-
key:
|
86
|
+
ref: l,
|
87
|
+
key: k.path
|
88
88
|
}))
|
89
89
|
]),
|
90
90
|
_: 2
|
91
91
|
}, 1024)
|
92
92
|
]),
|
93
93
|
_: 1
|
94
|
-
})
|
94
|
+
}, 512), [
|
95
|
+
[B, f(s)]
|
96
|
+
])
|
95
97
|
]),
|
96
98
|
_: 1
|
97
99
|
}))
|
@@ -100,5 +102,5 @@ const N = {
|
|
100
102
|
}
|
101
103
|
};
|
102
104
|
export {
|
103
|
-
|
105
|
+
U as default
|
104
106
|
};
|