@ozdao/prometheus-framework 0.1.47 → 0.1.49
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/axios.js +12 -12
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +21 -21
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +37 -31
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +72 -2
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +2 -72
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +78 -2
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +2 -78
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- 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 +10 -13
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +2 -197
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/gallery/components/pages/Gallery.vue +4 -9
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +2 -0
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../_virtual/axios.cjs"),c=require("./utils.cjs"),l=require("./helpers/bind.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../_virtual/axios.cjs"),c=require("./utils.cjs"),l=require("./helpers/bind.cjs"),_=require("./core/Axios.cjs"),q=require("./core/mergeConfig.cjs"),x=require("./defaults/index.cjs"),d=require("./cancel/CanceledError.cjs"),p=require("./cancel/CancelToken.cjs"),v=require("./cancel/isCancel.cjs"),E=require("./env/data.cjs"),m=require("./helpers/toFormData.cjs"),C=require("./core/AxiosError.cjs"),A=require("./helpers/spread.cjs"),f=require("./helpers/isAxiosError.cjs");var s=c.utils,g=l.bind,i=_.Axios_1,b=q.mergeConfig,$=x.defaults_1;function a(t){var e=new i(t),o=g(i.prototype.request,e);return s.extend(o,i.prototype,e),s.extend(o,e),o.create=function(u){return a(b(t,u))},o}var r=a($);r.Axios=i;r.CanceledError=d.__require();r.CancelToken=p.__require();r.isCancel=v.__require();r.VERSION=E.__require().version;r.toFormData=m.__require();r.AxiosError=C.AxiosError_1;r.Cancel=r.CanceledError;r.all=function(e){return Promise.all(e)};r.spread=A.__require();r.isAxiosError=f.__require();n.__module.exports=r;n.__module.exports.default=r;var y=n.__module.exports;exports.axiosExports=y;
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import { __module as t } from "../../../../_virtual/axios.js";
|
2
|
-
import { u
|
3
|
-
import { b as
|
2
|
+
import { u } from "./utils.js";
|
3
|
+
import { b as p } from "./helpers/bind.js";
|
4
4
|
import { A as f } from "./core/Axios.js";
|
5
5
|
import { m as l } from "./core/mergeConfig.js";
|
6
|
-
import { d as
|
7
|
-
import { __require as
|
6
|
+
import { d as _ } from "./defaults/index.js";
|
7
|
+
import { __require as x } from "./cancel/CanceledError.js";
|
8
8
|
import { __require as c } from "./cancel/CancelToken.js";
|
9
|
-
import { __require as
|
10
|
-
import { __require as
|
11
|
-
import {
|
9
|
+
import { __require as q } from "./cancel/isCancel.js";
|
10
|
+
import { __require as d } from "./env/data.js";
|
11
|
+
import { __require as v } from "./helpers/toFormData.js";
|
12
12
|
import { A } from "./core/AxiosError.js";
|
13
13
|
import { __require as C } from "./helpers/spread.js";
|
14
14
|
import { __require as E } from "./helpers/isAxiosError.js";
|
15
|
-
var s =
|
15
|
+
var s = u, I = p, a = f, $ = l, b = _;
|
16
16
|
function m(i) {
|
17
17
|
var e = new a(i), o = I(a.prototype.request, e);
|
18
18
|
return s.extend(o, a.prototype, e), s.extend(o, e), o.create = function(n) {
|
@@ -21,11 +21,11 @@ function m(i) {
|
|
21
21
|
}
|
22
22
|
var r = m(b);
|
23
23
|
r.Axios = a;
|
24
|
-
r.CanceledError =
|
24
|
+
r.CanceledError = x();
|
25
25
|
r.CancelToken = c();
|
26
|
-
r.isCancel =
|
27
|
-
r.VERSION =
|
28
|
-
r.toFormData = v;
|
26
|
+
r.isCancel = q();
|
27
|
+
r.VERSION = d().version;
|
28
|
+
r.toFormData = v();
|
29
29
|
r.AxiosError = A;
|
30
30
|
r.Cancel = r.CanceledError;
|
31
31
|
r.all = function(e) {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../utils.cjs"),S=require("../helpers/normalizeHeaderName.cjs"),y=require("../core/AxiosError.cjs"),v=require("./transitional.cjs"),h=require("../helpers/toFormData.cjs"),u=require("../adapters/xhr.cjs"),g=require("../helpers/null.cjs");var
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../utils.cjs"),S=require("../helpers/normalizeHeaderName.cjs"),y=require("../core/AxiosError.cjs"),v=require("./transitional.cjs"),h=require("../helpers/toFormData.cjs"),u=require("../adapters/xhr.cjs"),g=require("../helpers/null.cjs");var r=m.utils,c=S.normalizeHeaderName,l=y.AxiosError_1,N=v.transitional,E=h.__require(),O={"Content-Type":"application/x-www-form-urlencoded"};function p(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function T(){var t;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(t=u.__require()),t}function _(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}var f={transitional:N,adapter:T(),transformRequest:[function(e,n){if(c(n,"Accept"),c(n,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return p(n,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var i=r.isObject(e),a=n&&n["Content-Type"],s;if((s=r.isFileList(e))||i&&a==="multipart/form-data"){var o=this.env&&this.env.FormData;return E(s?{"files[]":e}:e,o&&new o)}else if(i||a==="application/json")return p(n,"application/json"),_(e);return e}],transformResponse:[function(e){var n=this.transitional||f.transitional,i=n&&n.silentJSONParsing,a=n&&n.forcedJSONParsing,s=!i&&this.responseType==="json";if(s||a&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?l.from(o,l.ERR_BAD_RESPONSE,this,null,this.response):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:g.__require()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){f.headers[e]={}});r.forEach(["post","put","patch"],function(e){f.headers[e]=r.merge(O)});var q=f;exports.defaults_1=q;
|
@@ -2,41 +2,41 @@ import { u as l } from "../utils.js";
|
|
2
2
|
import { n as S } from "../helpers/normalizeHeaderName.js";
|
3
3
|
import { A as h } from "../core/AxiosError.js";
|
4
4
|
import { t as v } from "./transitional.js";
|
5
|
-
import {
|
5
|
+
import { __require as y } from "../helpers/toFormData.js";
|
6
6
|
import { __require as p } from "../adapters/xhr.js";
|
7
7
|
import { __require as N } from "../helpers/null.js";
|
8
|
-
var
|
8
|
+
var e = l, u = S, m = h, g = v, E = y(), O = {
|
9
9
|
"Content-Type": "application/x-www-form-urlencoded"
|
10
10
|
};
|
11
|
-
function c(
|
12
|
-
!
|
11
|
+
function c(t, r) {
|
12
|
+
!e.isUndefined(t) && e.isUndefined(t["Content-Type"]) && (t["Content-Type"] = r);
|
13
13
|
}
|
14
14
|
function T() {
|
15
|
-
var
|
16
|
-
return typeof XMLHttpRequest < "u" ?
|
15
|
+
var t;
|
16
|
+
return typeof XMLHttpRequest < "u" ? t = p() : typeof process < "u" && Object.prototype.toString.call(process) === "[object process]" && (t = p()), t;
|
17
17
|
}
|
18
|
-
function x(
|
19
|
-
if (
|
18
|
+
function x(t, r, i) {
|
19
|
+
if (e.isString(t))
|
20
20
|
try {
|
21
|
-
return (r || JSON.parse)(
|
21
|
+
return (r || JSON.parse)(t), e.trim(t);
|
22
22
|
} catch (n) {
|
23
23
|
if (n.name !== "SyntaxError")
|
24
24
|
throw n;
|
25
25
|
}
|
26
|
-
return (i || JSON.stringify)(
|
26
|
+
return (i || JSON.stringify)(t);
|
27
27
|
}
|
28
28
|
var f = {
|
29
29
|
transitional: g,
|
30
30
|
adapter: T(),
|
31
31
|
transformRequest: [function(r, i) {
|
32
|
-
if (u(i, "Accept"), u(i, "Content-Type"),
|
32
|
+
if (u(i, "Accept"), u(i, "Content-Type"), e.isFormData(r) || e.isArrayBuffer(r) || e.isBuffer(r) || e.isStream(r) || e.isFile(r) || e.isBlob(r))
|
33
33
|
return r;
|
34
|
-
if (
|
34
|
+
if (e.isArrayBufferView(r))
|
35
35
|
return r.buffer;
|
36
|
-
if (
|
36
|
+
if (e.isURLSearchParams(r))
|
37
37
|
return c(i, "application/x-www-form-urlencoded;charset=utf-8"), r.toString();
|
38
|
-
var n =
|
39
|
-
if ((s =
|
38
|
+
var n = e.isObject(r), a = i && i["Content-Type"], s;
|
39
|
+
if ((s = e.isFileList(r)) || n && a === "multipart/form-data") {
|
40
40
|
var o = this.env && this.env.FormData;
|
41
41
|
return E(s ? { "files[]": r } : r, o && new o());
|
42
42
|
} else if (n || a === "application/json")
|
@@ -45,7 +45,7 @@ var f = {
|
|
45
45
|
}],
|
46
46
|
transformResponse: [function(r) {
|
47
47
|
var i = this.transitional || f.transitional, n = i && i.silentJSONParsing, a = i && i.forcedJSONParsing, s = !n && this.responseType === "json";
|
48
|
-
if (s || a &&
|
48
|
+
if (s || a && e.isString(r) && r.length)
|
49
49
|
try {
|
50
50
|
return JSON.parse(r);
|
51
51
|
} catch (o) {
|
@@ -75,13 +75,13 @@ var f = {
|
|
75
75
|
}
|
76
76
|
}
|
77
77
|
};
|
78
|
-
|
78
|
+
e.forEach(["delete", "get", "head"], function(r) {
|
79
79
|
f.headers[r] = {};
|
80
80
|
});
|
81
|
-
|
82
|
-
f.headers[r] =
|
81
|
+
e.forEach(["post", "put", "patch"], function(r) {
|
82
|
+
f.headers[r] = e.merge(O);
|
83
83
|
});
|
84
|
-
var
|
84
|
+
var C = f;
|
85
85
|
export {
|
86
|
-
|
86
|
+
C as d
|
87
87
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../utils.cjs");var s,p;function g(){if(p)return s;p=1;var i=S.utils;function F(O,t){t=t||new FormData;var f=[];function u(r){return r===null?"":i.isDate(r)?r.toISOString():i.isArrayBuffer(r)||i.isTypedArray(r)?typeof Blob=="function"?new Blob([r]):Buffer.from(r):r}function c(r,e){if(i.isPlainObject(r)||i.isArray(r)){if(f.indexOf(r)!==-1)throw Error("Circular reference detected in "+e);f.push(r),i.forEach(r,function(n,o){if(!i.isUndefined(n)){var d=e?e+"."+o:o,h;if(n&&!e&&typeof n=="object"){if(i.endsWith(o,"{}"))n=JSON.stringify(n);else if(i.endsWith(o,"[]")&&(h=i.toArray(n))){h.forEach(function(b){!i.isUndefined(b)&&t.append(d,u(b))});return}}c(n,d)}}),f.pop()}else t.append(e,u(r))}return c(O),t}return s=F,s}exports.__require=g;
|
@@ -1,37 +1,43 @@
|
|
1
|
-
import { u as
|
2
|
-
var
|
3
|
-
function
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
})
|
23
|
-
|
1
|
+
import { u as A } from "../utils.js";
|
2
|
+
var s, b;
|
3
|
+
function q() {
|
4
|
+
if (b)
|
5
|
+
return s;
|
6
|
+
b = 1;
|
7
|
+
var i = A;
|
8
|
+
function F(m, t) {
|
9
|
+
t = t || new FormData();
|
10
|
+
var e = [];
|
11
|
+
function c(r) {
|
12
|
+
return r === null ? "" : i.isDate(r) ? r.toISOString() : i.isArrayBuffer(r) || i.isTypedArray(r) ? typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
|
13
|
+
}
|
14
|
+
function u(r, f) {
|
15
|
+
if (i.isPlainObject(r) || i.isArray(r)) {
|
16
|
+
if (e.indexOf(r) !== -1)
|
17
|
+
throw Error("Circular reference detected in " + f);
|
18
|
+
e.push(r), i.forEach(r, function(n, o) {
|
19
|
+
if (!i.isUndefined(n)) {
|
20
|
+
var d = f ? f + "." + o : o, h;
|
21
|
+
if (n && !f && typeof n == "object") {
|
22
|
+
if (i.endsWith(o, "{}"))
|
23
|
+
n = JSON.stringify(n);
|
24
|
+
else if (i.endsWith(o, "[]") && (h = i.toArray(n))) {
|
25
|
+
h.forEach(function(p) {
|
26
|
+
!i.isUndefined(p) && t.append(d, c(p));
|
27
|
+
});
|
28
|
+
return;
|
29
|
+
}
|
24
30
|
}
|
31
|
+
u(n, d);
|
25
32
|
}
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
}
|
30
|
-
|
33
|
+
}), e.pop();
|
34
|
+
} else
|
35
|
+
t.append(f, c(r));
|
36
|
+
}
|
37
|
+
return u(m), t;
|
31
38
|
}
|
32
|
-
return
|
39
|
+
return s = F, s;
|
33
40
|
}
|
34
|
-
var w = A;
|
35
41
|
export {
|
36
|
-
|
42
|
+
q as __require
|
37
43
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),i=require("vue-i18n"),c=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue2.cjs");const d={key:"popup-content",class:"pd-small popup-wrapper"},m={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:l}){const u=t;function s(){l("close-popup")}e.watch(()=>u.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const a={messages:{en:{},ru:{}}};return i.useI18n(a),(o,n)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:n[0]||(n[0]=p=>s()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(c.default)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=p=>s()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=m;
|
@@ -1,4 +1,74 @@
|
|
1
|
-
|
1
|
+
import { watch as f, openBlock as s, createBlock as v, Teleport as y, createVNode as n, Transition as l, withCtx as a, createElementBlock as u, mergeProps as P, createElementVNode as i, renderSlot as k, createCommentVNode as p, normalizeClass as b } from "vue";
|
2
|
+
import { useRoute as x, useRouter as C } from "vue-router";
|
3
|
+
import { useI18n as O } from "vue-i18n";
|
4
|
+
import T from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
+
import "./Popup.vue2.js";
|
6
|
+
const g = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, E = {
|
10
|
+
__name: "Popup",
|
11
|
+
props: {
|
12
|
+
isPopupOpen: {
|
13
|
+
type: Boolean,
|
14
|
+
default: !1
|
15
|
+
},
|
16
|
+
style: String
|
17
|
+
},
|
18
|
+
emits: ["close-popup"],
|
19
|
+
setup(e, { emit: c }) {
|
20
|
+
const m = e;
|
21
|
+
function r() {
|
22
|
+
c("close-popup");
|
23
|
+
}
|
24
|
+
return f(() => m.isPopupOpen, (o) => {
|
25
|
+
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
+
}), x(), C(), O({
|
27
|
+
messages: {
|
28
|
+
en: {},
|
29
|
+
ru: {}
|
30
|
+
}
|
31
|
+
}), (o, t) => e.isPopupOpen ? (s(), v(y, {
|
32
|
+
key: 0,
|
33
|
+
to: "body"
|
34
|
+
}, [
|
35
|
+
n(l, {
|
36
|
+
name: "TransitionTranslateY",
|
37
|
+
appear: ""
|
38
|
+
}, {
|
39
|
+
default: a(() => [
|
40
|
+
e.isPopupOpen ? (s(), u("div", g, [
|
41
|
+
n(l, {
|
42
|
+
name: "TransitionTranslateY",
|
43
|
+
mode: "out-in"
|
44
|
+
}, {
|
45
|
+
default: a(() => [
|
46
|
+
e.isPopupOpen ? (s(), u("section", P({
|
47
|
+
key: 0,
|
48
|
+
class: "pos-relative z-index-4"
|
49
|
+
}, o.$attrs), [
|
50
|
+
i("button", {
|
51
|
+
onClick: t[0] || (t[0] = (d) => r()),
|
52
|
+
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
|
+
}, [
|
54
|
+
n(T)
|
55
|
+
]),
|
56
|
+
k(o.$slots, "default")
|
57
|
+
], 16)) : p("", !0)
|
58
|
+
]),
|
59
|
+
_: 3
|
60
|
+
}),
|
61
|
+
i("div", {
|
62
|
+
onClick: t[1] || (t[1] = (d) => r()),
|
63
|
+
class: b([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
|
+
}, null, 2)
|
65
|
+
])) : p("", !0)
|
66
|
+
]),
|
67
|
+
_: 3
|
68
|
+
})
|
69
|
+
])) : p("", !0);
|
70
|
+
}
|
71
|
+
};
|
2
72
|
export {
|
3
|
-
|
73
|
+
E as default
|
4
74
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,74 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useRoute as x, useRouter as C } from "vue-router";
|
3
|
-
import { useI18n as O } from "vue-i18n";
|
4
|
-
import T from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
-
import "./Popup.vue.js";
|
6
|
-
const g = {
|
7
|
-
key: "popup-content",
|
8
|
-
class: "pd-small popup-wrapper"
|
9
|
-
}, E = {
|
10
|
-
__name: "Popup",
|
11
|
-
props: {
|
12
|
-
isPopupOpen: {
|
13
|
-
type: Boolean,
|
14
|
-
default: !1
|
15
|
-
},
|
16
|
-
style: String
|
17
|
-
},
|
18
|
-
emits: ["close-popup"],
|
19
|
-
setup(e, { emit: c }) {
|
20
|
-
const m = e;
|
21
|
-
function r() {
|
22
|
-
c("close-popup");
|
23
|
-
}
|
24
|
-
return f(() => m.isPopupOpen, (o) => {
|
25
|
-
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
-
}), x(), C(), O({
|
27
|
-
messages: {
|
28
|
-
en: {},
|
29
|
-
ru: {}
|
30
|
-
}
|
31
|
-
}), (o, t) => e.isPopupOpen ? (s(), v(y, {
|
32
|
-
key: 0,
|
33
|
-
to: "body"
|
34
|
-
}, [
|
35
|
-
n(l, {
|
36
|
-
name: "TransitionTranslateY",
|
37
|
-
appear: ""
|
38
|
-
}, {
|
39
|
-
default: a(() => [
|
40
|
-
e.isPopupOpen ? (s(), u("div", g, [
|
41
|
-
n(l, {
|
42
|
-
name: "TransitionTranslateY",
|
43
|
-
mode: "out-in"
|
44
|
-
}, {
|
45
|
-
default: a(() => [
|
46
|
-
e.isPopupOpen ? (s(), u("section", P({
|
47
|
-
key: 0,
|
48
|
-
class: "pos-relative z-index-4"
|
49
|
-
}, o.$attrs), [
|
50
|
-
i("button", {
|
51
|
-
onClick: t[0] || (t[0] = (d) => r()),
|
52
|
-
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
|
-
}, [
|
54
|
-
n(T)
|
55
|
-
]),
|
56
|
-
k(o.$slots, "default")
|
57
|
-
], 16)) : p("", !0)
|
58
|
-
]),
|
59
|
-
_: 3
|
60
|
-
}),
|
61
|
-
i("div", {
|
62
|
-
onClick: t[1] || (t[1] = (d) => r()),
|
63
|
-
class: b([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
|
-
}, null, 2)
|
65
|
-
])) : p("", !0)
|
66
|
-
]),
|
67
|
-
_: 3
|
68
|
-
})
|
69
|
-
])) : p("", !0);
|
70
|
-
}
|
71
|
-
};
|
1
|
+
const e = "";
|
72
2
|
export {
|
73
|
-
|
3
|
+
e as default
|
74
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Select.vue2.cjs");const m=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),p=["onClick"],k={key:0,class:"t-transp mn-r-small"},f={class:"w-100"},v=["onClick"],h={key:0,class:"w-100"},g={key:0,class:"mn-t-thin invalid-feedback"},B={__name:"Select",props:{label:String,select:[String,Object],placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(l,{emit:c}){const n=l,o=e.ref(n.select),a=e.ref(!1);e.watch(()=>n.select,t=>{o.value=t});const u=e.computed(()=>n.select?n.options.filter(t=>t!==n.select):n.options),r=()=>{a.value=!a.value,c(a.value?"focus":"blur")},d=t=>{o.value=t,r(),c("update:select",o.value)};return(t,y)=>{var i;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{onClick:e.withModifiers(r,["stop"]),class:e.normalizeClass([t.$attrs.class,"cursor-pointer flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",k,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",f,[e.createElementVNode("span",null,e.toDisplayString(((i=o.value)==null?void 0:i.name)||o.value||l.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("ul",{key:0,class:e.normalizeClass([t.$attrs.class,"pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),s=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(C=>d(s),["stop"])},[s?(e.openBlock(),e.createElementBlock("span",h,e.toDisplayString(s.name||s),1)):e.createCommentVNode("",!0)],8,v))),256))],2)):e.createCommentVNode("",!0)]),_:1})],10,p),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",g," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},_=m.default(B,[["__scopeId","data-v-dfe03dc2"]]);exports.default=_;
|
@@ -1,4 +1,80 @@
|
|
1
|
-
|
1
|
+
import { ref as f, watch as C, computed as S, openBlock as t, createElementBlock as l, Fragment as v, createElementVNode as i, withModifiers as h, normalizeClass as _, toDisplayString as r, createCommentVNode as u, createVNode as k, Transition as b, withCtx as g, renderList as x, unref as B } from "vue";
|
2
|
+
import "./Select.vue2.js";
|
3
|
+
import M from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const N = ["onClick"], O = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, T = { class: "w-100" }, V = ["onClick"], $ = {
|
8
|
+
key: 0,
|
9
|
+
class: "w-100"
|
10
|
+
}, z = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin invalid-feedback"
|
13
|
+
}, E = {
|
14
|
+
__name: "Select",
|
15
|
+
props: {
|
16
|
+
label: String,
|
17
|
+
select: [String, Object],
|
18
|
+
placeholder: { type: String, default: "Please select an item" },
|
19
|
+
options: { type: Array, default: () => [] },
|
20
|
+
validation: Boolean
|
21
|
+
},
|
22
|
+
emits: ["update:select", "focus", "blur"],
|
23
|
+
setup(s, { emit: d }) {
|
24
|
+
const a = s, n = f(a.select), o = f(!1);
|
25
|
+
C(() => a.select, (e) => {
|
26
|
+
n.value = e;
|
27
|
+
});
|
28
|
+
const w = S(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
|
29
|
+
o.value = !o.value, d(o.value ? "focus" : "blur");
|
30
|
+
}, y = (e) => {
|
31
|
+
n.value = e, m(), d("update:select", n.value);
|
32
|
+
};
|
33
|
+
return (e, L) => {
|
34
|
+
var p;
|
35
|
+
return t(), l(v, null, [
|
36
|
+
i("div", {
|
37
|
+
onClick: h(m, ["stop"]),
|
38
|
+
class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
|
39
|
+
}, [
|
40
|
+
s.label ? (t(), l("div", O, [
|
41
|
+
i("span", null, r(s.label), 1)
|
42
|
+
])) : u("", !0),
|
43
|
+
i("li", T, [
|
44
|
+
i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
|
45
|
+
]),
|
46
|
+
k(b, {
|
47
|
+
mode: "out-in",
|
48
|
+
name: "TransitionTranslateY"
|
49
|
+
}, {
|
50
|
+
default: g(() => [
|
51
|
+
o.value ? (t(), l("ul", {
|
52
|
+
key: 0,
|
53
|
+
class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
54
|
+
}, [
|
55
|
+
(t(!0), l(v, null, x(B(w), (c) => (t(), l("li", {
|
56
|
+
onClick: h((j) => y(c), ["stop"])
|
57
|
+
}, [
|
58
|
+
c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
|
59
|
+
], 8, V))), 256))
|
60
|
+
], 2)) : u("", !0)
|
61
|
+
]),
|
62
|
+
_: 1
|
63
|
+
})
|
64
|
+
], 10, N),
|
65
|
+
k(b, {
|
66
|
+
mode: "out-in",
|
67
|
+
name: "fade"
|
68
|
+
}, {
|
69
|
+
default: g(() => [
|
70
|
+
s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
|
71
|
+
]),
|
72
|
+
_: 1
|
73
|
+
})
|
74
|
+
], 64);
|
75
|
+
};
|
76
|
+
}
|
77
|
+
}, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
|
2
78
|
export {
|
3
|
-
|
79
|
+
I as default
|
4
80
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,80 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Select.vue.js";
|
3
|
-
import M from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const N = ["onClick"], O = {
|
5
|
-
key: 0,
|
6
|
-
class: "t-transp mn-r-small"
|
7
|
-
}, T = { class: "w-100" }, V = ["onClick"], $ = {
|
8
|
-
key: 0,
|
9
|
-
class: "w-100"
|
10
|
-
}, z = {
|
11
|
-
key: 0,
|
12
|
-
class: "mn-t-thin invalid-feedback"
|
13
|
-
}, E = {
|
14
|
-
__name: "Select",
|
15
|
-
props: {
|
16
|
-
label: String,
|
17
|
-
select: [String, Object],
|
18
|
-
placeholder: { type: String, default: "Please select an item" },
|
19
|
-
options: { type: Array, default: () => [] },
|
20
|
-
validation: Boolean
|
21
|
-
},
|
22
|
-
emits: ["update:select", "focus", "blur"],
|
23
|
-
setup(s, { emit: d }) {
|
24
|
-
const a = s, n = f(a.select), o = f(!1);
|
25
|
-
C(() => a.select, (e) => {
|
26
|
-
n.value = e;
|
27
|
-
});
|
28
|
-
const w = S(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
|
29
|
-
o.value = !o.value, d(o.value ? "focus" : "blur");
|
30
|
-
}, y = (e) => {
|
31
|
-
n.value = e, m(), d("update:select", n.value);
|
32
|
-
};
|
33
|
-
return (e, L) => {
|
34
|
-
var p;
|
35
|
-
return t(), l(v, null, [
|
36
|
-
i("div", {
|
37
|
-
onClick: h(m, ["stop"]),
|
38
|
-
class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
|
39
|
-
}, [
|
40
|
-
s.label ? (t(), l("div", O, [
|
41
|
-
i("span", null, r(s.label), 1)
|
42
|
-
])) : u("", !0),
|
43
|
-
i("li", T, [
|
44
|
-
i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
|
45
|
-
]),
|
46
|
-
k(b, {
|
47
|
-
mode: "out-in",
|
48
|
-
name: "TransitionTranslateY"
|
49
|
-
}, {
|
50
|
-
default: g(() => [
|
51
|
-
o.value ? (t(), l("ul", {
|
52
|
-
key: 0,
|
53
|
-
class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
54
|
-
}, [
|
55
|
-
(t(!0), l(v, null, x(B(w), (c) => (t(), l("li", {
|
56
|
-
onClick: h((j) => y(c), ["stop"])
|
57
|
-
}, [
|
58
|
-
c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
|
59
|
-
], 8, V))), 256))
|
60
|
-
], 2)) : u("", !0)
|
61
|
-
]),
|
62
|
-
_: 1
|
63
|
-
})
|
64
|
-
], 10, N),
|
65
|
-
k(b, {
|
66
|
-
mode: "out-in",
|
67
|
-
name: "fade"
|
68
|
-
}, {
|
69
|
-
default: g(() => [
|
70
|
-
s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
|
71
|
-
]),
|
72
|
-
_: 1
|
73
|
-
})
|
74
|
-
], 64);
|
75
|
-
};
|
76
|
-
}
|
77
|
-
}, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
|
1
|
+
const e = "";
|
78
2
|
export {
|
79
|
-
|
3
|
+
e as default
|
80
4
|
};
|
package/dist/prometheus-framework/src/modules/community/components/layouts/Community.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"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("vue-router"),u=require("../../../../components/Select/Select.vue.cjs"),a=require("../../store/blogposts.cjs"),c=require("../../../auth/store/auth.cjs"),m={class:"min-h-100vh pd-thin"},d={class:"mn-thin flex-v-center t-left flex-nowrap flex"},p={class:"flex-v-center flex-nowrap flex t-left"},f=e.createElementVNode("span",{class:""},"Topics for ",-1),g={class:"w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex"},h={class:""},w={__name:"Community",setup(k){const l=n.useRoute(),r=n.useRouter();return(y,t)=>{const s=e.resolveComponent("router-view");return e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("header",d,[e.createElementVNode("h2",p,[f,e.createVNode(u.default,{options:["today","week","month","year"],select:a.state.filter.period,"onUpdate:select":t[0]||(t[0]=o=>a.state.filter.period=o),placeholder:"Select type",class:"w-max mn-l-small bg-grey pd-thin radius-medium h2 t-center t-black"},null,8,["select"])])]),e.createElementVNode("ul",g,[e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="featured"},"t-medium pd-thin radius-small"]),onClick:t[1]||(t[1]=o=>e.unref(r).push({name:"Blog"}))},"👑 Featured",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="popular"},"t-medium pd-thin radius-small"]),onClick:t[2]||(t[2]=o=>e.unref(r).push({name:"Blog",params:{category:"popular"}}))},"🔥 Popular",2),e.createElementVNode("li",{class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="new"},"t-medium pd-thin radius-small"]),onClick:t[3]||(t[3]=o=>e.unref(r).push({name:"Blog",params:{category:"new"}}))},"🆕 New",2),c.state.user._id?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([{"t-white bg-black":e.unref(l).params.category==="following"},"t-medium pd-thin radius-small"]),onClick:t[4]||(t[4]=o=>e.unref(r).push({name:"Blog",params:{category:"following"}}))},"👥 Following",2)):e.createCommentVNode("",!0)]),e.createElementVNode("section",h,[e.createVNode(s,null,{default:e.withCtx(({Component:o,route:i})=>[e.createVNode(e.Transition,{name:"scaleIn",mode:"out-in"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o),{ref:"page",key:i.query}))]),_:2},1024)]),_:1})])])}}};exports.default=w;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { resolveComponent as f, openBlock as n, createElementBlock as m, createElementVNode as o, createVNode as i, normalizeClass as r, unref as t, createCommentVNode as g, withCtx as p, Transition as h, createBlock as w, resolveDynamicComponent as y } from "vue";
|
2
2
|
import { useRoute as _, useRouter as k } from "vue-router";
|
3
|
-
import b from "../../../../components/Select/Select.
|
3
|
+
import b from "../../../../components/Select/Select.vue.js";
|
4
4
|
import { state as c } from "../../store/blogposts.js";
|
5
5
|
import { state as v } from "../../../auth/store/auth.js";
|
6
6
|
const x = { class: "min-h-100vh pd-thin" }, C = { class: "mn-thin flex-v-center t-left flex-nowrap flex" }, B = { class: "flex-v-center flex-nowrap flex t-left" }, $ = /* @__PURE__ */ o("span", { class: "" }, "Topics for ", -1), N = { class: "w-100 bg-grey pd-small radius-big mn-semi gap-thin flex-nowrap flex" }, V = { class: "" }, D = {
|