@ozdao/prometheus-framework 0.2.96 → 0.2.98
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/orders.server.js +12 -12
- package/dist/orders.server.mjs +12 -12
- package/dist/organizations.server.js +2 -1
- package/dist/organizations.server.mjs +2 -1
- package/dist/prometheus-framework/src/components/Completion/Completion.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Completion/Completion.vue.js +17 -17
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +73 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -36
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +36 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +1 -36
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/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/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/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 +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- 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/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/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 +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +1 -1
- 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 +1 -1
- 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 +1 -13
- 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 +13 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
- 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/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/customers.store.js +3 -3
- 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 +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 +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 +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +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 +3 -3
- 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/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.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 +2 -2
- 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/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/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.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 +1 -1
- 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/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- 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 +1 -1
- 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 +13 -13
- 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 +1 -1
- 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/users/components/sections/ProfileCompletion.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +18 -18
- 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 +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/orders.server.js
CHANGED
@@ -263,7 +263,7 @@ const controllerFactory$1 = (db) => {
|
|
263
263
|
const Customer = db.customer;
|
264
264
|
const create = async (req, res) => {
|
265
265
|
const orderData = req.body;
|
266
|
-
req.userId;
|
266
|
+
req.userId || req.body.creator.target;
|
267
267
|
orderData.status = "created";
|
268
268
|
orderData.status_history = orderData.status_history || [];
|
269
269
|
orderData.status_history.push({
|
@@ -346,7 +346,7 @@ const controllerFactory$1 = (db) => {
|
|
346
346
|
order.status = req.body.status;
|
347
347
|
order.status_history.push({
|
348
348
|
status: req.body.status,
|
349
|
-
user: new db.mongoose.Types.ObjectId(req.userId),
|
349
|
+
user: new db.mongoose.Types.ObjectId(req.userId || req.body.creator.target),
|
350
350
|
timestamp: /* @__PURE__ */ new Date(),
|
351
351
|
comment: ""
|
352
352
|
});
|
@@ -397,12 +397,12 @@ const controllerFactory = orders_controller;
|
|
397
397
|
const middlewareFactory = index.server;
|
398
398
|
var orders_routes = function(app, db, origins, publicPath) {
|
399
399
|
const controller = controllerFactory(db);
|
400
|
-
|
400
|
+
middlewareFactory(db);
|
401
401
|
app.post(
|
402
402
|
"/api/orders/create",
|
403
|
-
[
|
404
|
-
|
405
|
-
],
|
403
|
+
// [
|
404
|
+
// middleware.authJwt.verifyToken
|
405
|
+
// ],
|
406
406
|
controller.create
|
407
407
|
);
|
408
408
|
app.get(
|
@@ -411,16 +411,16 @@ var orders_routes = function(app, db, origins, publicPath) {
|
|
411
411
|
);
|
412
412
|
app.post(
|
413
413
|
"/api/orders/update",
|
414
|
-
[
|
415
|
-
|
416
|
-
],
|
414
|
+
// [
|
415
|
+
// middleware.authJwt.verifyToken
|
416
|
+
// ],
|
417
417
|
controller.update
|
418
418
|
);
|
419
419
|
app.post(
|
420
420
|
"/api/orders/delete",
|
421
|
-
[
|
422
|
-
|
423
|
-
],
|
421
|
+
// [
|
422
|
+
// middleware.authJwt.verifyToken
|
423
|
+
// ],
|
424
424
|
controller.deleteOrder
|
425
425
|
);
|
426
426
|
};
|
package/dist/orders.server.mjs
CHANGED
@@ -262,7 +262,7 @@ const controllerFactory$1 = (db) => {
|
|
262
262
|
const Customer = db.customer;
|
263
263
|
const create = async (req, res) => {
|
264
264
|
const orderData = req.body;
|
265
|
-
req.userId;
|
265
|
+
req.userId || req.body.creator.target;
|
266
266
|
orderData.status = "created";
|
267
267
|
orderData.status_history = orderData.status_history || [];
|
268
268
|
orderData.status_history.push({
|
@@ -345,7 +345,7 @@ const controllerFactory$1 = (db) => {
|
|
345
345
|
order.status = req.body.status;
|
346
346
|
order.status_history.push({
|
347
347
|
status: req.body.status,
|
348
|
-
user: new db.mongoose.Types.ObjectId(req.userId),
|
348
|
+
user: new db.mongoose.Types.ObjectId(req.userId || req.body.creator.target),
|
349
349
|
timestamp: /* @__PURE__ */ new Date(),
|
350
350
|
comment: ""
|
351
351
|
});
|
@@ -396,12 +396,12 @@ const controllerFactory = orders_controller;
|
|
396
396
|
const middlewareFactory = server;
|
397
397
|
var orders_routes = function(app, db, origins, publicPath) {
|
398
398
|
const controller = controllerFactory(db);
|
399
|
-
|
399
|
+
middlewareFactory(db);
|
400
400
|
app.post(
|
401
401
|
"/api/orders/create",
|
402
|
-
[
|
403
|
-
|
404
|
-
],
|
402
|
+
// [
|
403
|
+
// middleware.authJwt.verifyToken
|
404
|
+
// ],
|
405
405
|
controller.create
|
406
406
|
);
|
407
407
|
app.get(
|
@@ -410,16 +410,16 @@ var orders_routes = function(app, db, origins, publicPath) {
|
|
410
410
|
);
|
411
411
|
app.post(
|
412
412
|
"/api/orders/update",
|
413
|
-
[
|
414
|
-
|
415
|
-
],
|
413
|
+
// [
|
414
|
+
// middleware.authJwt.verifyToken
|
415
|
+
// ],
|
416
416
|
controller.update
|
417
417
|
);
|
418
418
|
app.post(
|
419
419
|
"/api/orders/delete",
|
420
|
-
[
|
421
|
-
|
422
|
-
],
|
420
|
+
// [
|
421
|
+
// middleware.authJwt.verifyToken
|
422
|
+
// ],
|
423
423
|
controller.deleteOrder
|
424
424
|
);
|
425
425
|
};
|
@@ -395,7 +395,8 @@ const controllerFactory$5 = (db) => {
|
|
395
395
|
user: savedOrganization.owner,
|
396
396
|
type: "organization",
|
397
397
|
target: savedOrganization._id,
|
398
|
-
role: "owner"
|
398
|
+
role: "owner",
|
399
|
+
label: "owner"
|
399
400
|
});
|
400
401
|
const savedMembership = await membership.save();
|
401
402
|
res2.status(201).json(savedOrganization);
|
@@ -394,7 +394,8 @@ const controllerFactory$5 = (db) => {
|
|
394
394
|
user: savedOrganization.owner,
|
395
395
|
type: "organization",
|
396
396
|
target: savedOrganization._id,
|
397
|
-
role: "owner"
|
397
|
+
role: "owner",
|
398
|
+
label: "owner"
|
398
399
|
});
|
399
400
|
const savedMembership = await membership.save();
|
400
401
|
res2.status(201).json(savedOrganization);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d={class:"w-100 radius-big pd-medium bg-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d={class:"w-100 radius-big pd-medium bg-second t-black"},m={class:"mn-b-thin flex-v-center flex-nowrap flex"},g={class:"mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin"},p={class:"w-100 h-2r pos-relative pd-nano bg-black radius-big"},h={__name:"Completion",props:{user:Object,target:Object,cta:Boolean,percentage:Number,text:String,text_cta:String},setup(a){const{user:f,cta:b,target:c}=a,l=e.ref(0),u=o=>{let r=0,i=0;function s(t){for(let n in t)t.hasOwnProperty(n)&&(t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?s(t[n]):(r++,t[n]!=null&&t[n]!==""&&i++))}return s(o),r===0?0:Math.round(i/r*100)};return c&&(l.value=u(c)),(o,r)=>{const i=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("section",d,[e.createElementVNode("div",m,[e.createElementVNode("h3",null,e.toDisplayString(a.text),1),e.createElementVNode("h4",g,e.toDisplayString(a.percentage||l.value)+"% ",1),a.cta?(e.openBlock(),e.createBlock(i,{key:0,to:{name:"User Edit Profile",params:{_id:a.user}},class:"mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.text_cta),1)]),_:1},8,["to"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",p,[e.createElementVNode("div",{style:e.normalizeStyle(`width: ${l.value}%`),class:"h-100 bg-second mn-b-thin radius-big"},null,4)])])}}};exports.default=h;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ref as h, resolveComponent as p, openBlock as
|
2
|
-
const w = { class: "w-100 radius-big pd-medium bg-
|
1
|
+
import { ref as h, resolveComponent as p, openBlock as d, createElementBlock as g, createElementVNode as n, toDisplayString as l, createBlock as f, withCtx as b, createTextVNode as x, createCommentVNode as k, normalizeStyle as _ } from "vue";
|
2
|
+
const w = { class: "w-100 radius-big pd-medium bg-second t-black" }, v = { class: "mn-b-thin flex-v-center flex-nowrap flex" }, y = { class: "mn-l-thin uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin" }, C = { class: "w-100 h-2r pos-relative pd-nano bg-black radius-big" }, S = {
|
3
3
|
__name: "Completion",
|
4
4
|
props: {
|
5
5
|
user: Object,
|
@@ -10,21 +10,21 @@ const w = { class: "w-100 radius-big pd-medium bg-main t-black" }, v = { class:
|
|
10
10
|
text_cta: String
|
11
11
|
},
|
12
12
|
setup(a) {
|
13
|
-
const { user: P, cta: B, target: s } = a,
|
14
|
-
let
|
13
|
+
const { user: P, cta: B, target: s } = a, c = h(0), m = (o) => {
|
14
|
+
let i = 0, r = 0;
|
15
15
|
function u(e) {
|
16
16
|
for (let t in e)
|
17
|
-
e.hasOwnProperty(t) && (e[t] && typeof e[t] == "object" && !Array.isArray(e[t]) ? u(e[t]) : (
|
17
|
+
e.hasOwnProperty(t) && (e[t] && typeof e[t] == "object" && !Array.isArray(e[t]) ? u(e[t]) : (i++, e[t] != null && e[t] !== "" && r++));
|
18
18
|
}
|
19
|
-
return u(o),
|
19
|
+
return u(o), i === 0 ? 0 : Math.round(r / i * 100);
|
20
20
|
};
|
21
|
-
return s && (
|
21
|
+
return s && (c.value = m(s)), (o, i) => {
|
22
22
|
const r = p("router-link");
|
23
|
-
return
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
a.cta ? (
|
23
|
+
return d(), g("section", w, [
|
24
|
+
n("div", v, [
|
25
|
+
n("h3", null, l(a.text), 1),
|
26
|
+
n("h4", y, l(a.percentage || c.value) + "% ", 1),
|
27
|
+
a.cta ? (d(), f(r, {
|
28
28
|
key: 0,
|
29
29
|
to: {
|
30
30
|
name: "User Edit Profile",
|
@@ -33,15 +33,15 @@ const w = { class: "w-100 radius-big pd-medium bg-main t-black" }, v = { class:
|
|
33
33
|
class: "mn-l-auto uppercase radius-big t-semi t-medium t-white bg-black w-max pd-thin"
|
34
34
|
}, {
|
35
35
|
default: b(() => [
|
36
|
-
x(
|
36
|
+
x(l(a.text_cta), 1)
|
37
37
|
]),
|
38
38
|
_: 1
|
39
39
|
}, 8, ["to"])) : k("", !0)
|
40
40
|
]),
|
41
|
-
|
42
|
-
|
43
|
-
style: _(`width: ${
|
44
|
-
class: "h-100 bg-
|
41
|
+
n("div", C, [
|
42
|
+
n("div", {
|
43
|
+
style: _(`width: ${c.value}%`),
|
44
|
+
class: "h-100 bg-second mn-b-thin radius-big"
|
45
45
|
}, null, 4)
|
46
46
|
])
|
47
47
|
]);
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,73 +1 @@
|
|
1
|
-
|
2
|
-
import { useRoute as b, useRouter as x } from "vue-router";
|
3
|
-
import { useI18n as C } from "vue-i18n";
|
4
|
-
import O from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
-
import "./Popup.vue2.js";
|
6
|
-
const z = {
|
7
|
-
key: "popup-content",
|
8
|
-
class: "pd-small popup-wrapper"
|
9
|
-
}, B = { class: "mn-b-small" }, L = {
|
10
|
-
__name: "Popup",
|
11
|
-
props: {
|
12
|
-
isPopupOpen: {
|
13
|
-
type: Boolean,
|
14
|
-
default: !1
|
15
|
-
},
|
16
|
-
style: String,
|
17
|
-
title: String
|
18
|
-
},
|
19
|
-
emits: ["close-popup"],
|
20
|
-
setup(e, { emit: m }) {
|
21
|
-
const c = e, d = m;
|
22
|
-
function r() {
|
23
|
-
d("close-popup");
|
24
|
-
}
|
25
|
-
return v(() => c.isPopupOpen, (t) => {
|
26
|
-
t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
27
|
-
}), b(), x(), C({
|
28
|
-
messages: {
|
29
|
-
en: {},
|
30
|
-
ru: {}
|
31
|
-
}
|
32
|
-
}), (t, o) => (s(), l(a, {
|
33
|
-
name: "TransitionTranslateY",
|
34
|
-
appear: ""
|
35
|
-
}, {
|
36
|
-
default: i(() => [
|
37
|
-
e.isPopupOpen ? (s(), l(y, {
|
38
|
-
key: 0,
|
39
|
-
to: "body"
|
40
|
-
}, [
|
41
|
-
e.isPopupOpen ? (s(), P("div", z, [
|
42
|
-
p(a, {
|
43
|
-
name: "TransitionTranslateY",
|
44
|
-
mode: "out-in"
|
45
|
-
}, {
|
46
|
-
default: i(() => [
|
47
|
-
n("section", k({ class: "pos-relative z-index-4" }, t.$attrs, {
|
48
|
-
class: t.$attrs.class
|
49
|
-
}), [
|
50
|
-
n("h4", B, g(e.title), 1),
|
51
|
-
p(O, {
|
52
|
-
onClick: o[0] || (o[0] = (f) => r()),
|
53
|
-
class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
|
54
|
-
}),
|
55
|
-
T(t.$slots, "default")
|
56
|
-
], 16)
|
57
|
-
]),
|
58
|
-
_: 3
|
59
|
-
}),
|
60
|
-
n("div", {
|
61
|
-
onClick: o[1] || (o[1] = (f) => r()),
|
62
|
-
class: $([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
63
|
-
}, null, 2)
|
64
|
-
])) : u("", !0)
|
65
|
-
])) : u("", !0)
|
66
|
-
]),
|
67
|
-
_: 3
|
68
|
-
}));
|
69
|
-
}
|
70
|
-
};
|
71
|
-
export {
|
72
|
-
L as default
|
73
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),p=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={class:"mn-b-small"},f={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String,title:String},emits:["close-popup"],setup(t,{emit:l}){const a=t,i=l;function n(){i("close-popup")}e.watch(()=>a.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const u={messages:{en:{},ru:{}}};return p.useI18n(u),(o,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.createElementVNode("section",e.mergeProps({class:"pos-relative z-index-4"},o.$attrs,{class:o.$attrs.class}),[e.createElementVNode("h4",v,e.toDisplayString(t.title),1),e.createVNode(d.default,{onClick:s[0]||(s[0]=c=>n()),class:"cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"}),e.renderSlot(o.$slots,"default")],16)]),_:3}),e.createElementVNode("div",{onClick:s[1]||(s[1]=c=>n()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:3}))}};exports.default=f;
|
@@ -1 +1,73 @@
|
|
1
|
-
|
1
|
+
import { watch as v, openBlock as s, createBlock as l, Transition as a, withCtx as i, Teleport as y, createElementBlock as P, createVNode as p, createElementVNode as n, mergeProps as k, toDisplayString as g, renderSlot as T, normalizeClass as $, createCommentVNode as u } from "vue";
|
2
|
+
import { useRoute as b, useRouter as x } from "vue-router";
|
3
|
+
import { useI18n as C } from "vue-i18n";
|
4
|
+
import O from "../../modules/icons/navigation/IconCross.vue.js";
|
5
|
+
import "./Popup.vue.js";
|
6
|
+
const z = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, B = { class: "mn-b-small" }, L = {
|
10
|
+
__name: "Popup",
|
11
|
+
props: {
|
12
|
+
isPopupOpen: {
|
13
|
+
type: Boolean,
|
14
|
+
default: !1
|
15
|
+
},
|
16
|
+
style: String,
|
17
|
+
title: String
|
18
|
+
},
|
19
|
+
emits: ["close-popup"],
|
20
|
+
setup(e, { emit: m }) {
|
21
|
+
const c = e, d = m;
|
22
|
+
function r() {
|
23
|
+
d("close-popup");
|
24
|
+
}
|
25
|
+
return v(() => c.isPopupOpen, (t) => {
|
26
|
+
t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
27
|
+
}), b(), x(), C({
|
28
|
+
messages: {
|
29
|
+
en: {},
|
30
|
+
ru: {}
|
31
|
+
}
|
32
|
+
}), (t, o) => (s(), l(a, {
|
33
|
+
name: "TransitionTranslateY",
|
34
|
+
appear: ""
|
35
|
+
}, {
|
36
|
+
default: i(() => [
|
37
|
+
e.isPopupOpen ? (s(), l(y, {
|
38
|
+
key: 0,
|
39
|
+
to: "body"
|
40
|
+
}, [
|
41
|
+
e.isPopupOpen ? (s(), P("div", z, [
|
42
|
+
p(a, {
|
43
|
+
name: "TransitionTranslateY",
|
44
|
+
mode: "out-in"
|
45
|
+
}, {
|
46
|
+
default: i(() => [
|
47
|
+
n("section", k({ class: "pos-relative z-index-4" }, t.$attrs, {
|
48
|
+
class: t.$attrs.class
|
49
|
+
}), [
|
50
|
+
n("h4", B, g(e.title), 1),
|
51
|
+
p(O, {
|
52
|
+
onClick: o[0] || (o[0] = (f) => r()),
|
53
|
+
class: "cursor-pointer pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-regular z-index-5"
|
54
|
+
}),
|
55
|
+
T(t.$slots, "default")
|
56
|
+
], 16)
|
57
|
+
]),
|
58
|
+
_: 3
|
59
|
+
}),
|
60
|
+
n("div", {
|
61
|
+
onClick: o[1] || (o[1] = (f) => r()),
|
62
|
+
class: $([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
63
|
+
}, null, 2)
|
64
|
+
])) : u("", !0)
|
65
|
+
])) : u("", !0)
|
66
|
+
]),
|
67
|
+
_: 3
|
68
|
+
}));
|
69
|
+
}
|
70
|
+
};
|
71
|
+
export {
|
72
|
+
L as default
|
73
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,103 +1 @@
|
|
1
|
-
|
2
|
-
import D from "../FieldPhone/click-outside.js";
|
3
|
-
import "./Select.vue2.js";
|
4
|
-
import E from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
-
const L = {
|
6
|
-
key: 0,
|
7
|
-
class: "t-transp mn-r-small"
|
8
|
-
}, A = { class: "w-100" }, F = ["onClick"], I = {
|
9
|
-
key: 0,
|
10
|
-
class: "w-100"
|
11
|
-
}, P = {
|
12
|
-
key: 0,
|
13
|
-
class: "mn-t-thin invalid-feedback"
|
14
|
-
}, Y = {
|
15
|
-
__name: "Select",
|
16
|
-
props: {
|
17
|
-
label: String,
|
18
|
-
placeholder: { type: String, default: "Please select an item" },
|
19
|
-
select: [String, Object],
|
20
|
-
property: String,
|
21
|
-
options: { type: Array, default: () => [] },
|
22
|
-
validation: Boolean
|
23
|
-
},
|
24
|
-
emits: [
|
25
|
-
"update:select",
|
26
|
-
"focus",
|
27
|
-
"blur"
|
28
|
-
],
|
29
|
-
setup(o, { emit: C }) {
|
30
|
-
let O = D;
|
31
|
-
const p = C, e = o, c = y(!1), l = y(
|
32
|
-
e.property ? v(e.select, e.property, e.options) : e.select
|
33
|
-
), B = M(() => e.select ? e.options.filter((t) => t !== e.select) : e.options);
|
34
|
-
N(() => e.select, (t) => {
|
35
|
-
l.value = e.property ? v(e.select, e.property, e.options) : e.select;
|
36
|
-
});
|
37
|
-
const f = () => {
|
38
|
-
c.value = !c.value, p(c.value ? "focus" : "blur");
|
39
|
-
};
|
40
|
-
function V() {
|
41
|
-
c.value = !1;
|
42
|
-
}
|
43
|
-
const j = (t) => {
|
44
|
-
l.value = t, f(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
|
45
|
-
};
|
46
|
-
function v(t, h, i) {
|
47
|
-
for (const a of i)
|
48
|
-
if (a[h] === t || a === t)
|
49
|
-
return a;
|
50
|
-
return null;
|
51
|
-
}
|
52
|
-
return (t, h) => {
|
53
|
-
var i, a;
|
54
|
-
return s(), n(b, null, [
|
55
|
-
k((s(), n("div", {
|
56
|
-
onClick: w(f, ["stop"]),
|
57
|
-
class: S([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
|
58
|
-
}, [
|
59
|
-
o.label ? (s(), n("div", L, [
|
60
|
-
u("span", null, d(o.label), 1)
|
61
|
-
])) : m("", !0),
|
62
|
-
u("li", A, [
|
63
|
-
u("span", null, d((i = l.value) != null && i.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
|
64
|
-
]),
|
65
|
-
_(g, {
|
66
|
-
mode: "out-in",
|
67
|
-
name: "TransitionTranslateY"
|
68
|
-
}, {
|
69
|
-
default: x(() => [
|
70
|
-
k(u("ul", {
|
71
|
-
class: S([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
|
72
|
-
style: { "min-width": "max-content" }
|
73
|
-
}, [
|
74
|
-
(s(!0), n(b, null, T(B.value, (r) => (s(), n("li", {
|
75
|
-
onClick: w((q) => j(r), ["stop"])
|
76
|
-
}, [
|
77
|
-
r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
|
78
|
-
], 8, F))), 256))
|
79
|
-
], 2), [
|
80
|
-
[$, c.value]
|
81
|
-
])
|
82
|
-
]),
|
83
|
-
_: 1
|
84
|
-
})
|
85
|
-
], 2)), [
|
86
|
-
[z(O), V]
|
87
|
-
]),
|
88
|
-
_(g, {
|
89
|
-
mode: "out-in",
|
90
|
-
name: "fade"
|
91
|
-
}, {
|
92
|
-
default: x(() => [
|
93
|
-
o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
|
94
|
-
]),
|
95
|
-
_: 1
|
96
|
-
})
|
97
|
-
], 64);
|
98
|
-
};
|
99
|
-
}
|
100
|
-
}, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-bf25c24d"]]);
|
101
|
-
export {
|
102
|
-
Q as default
|
103
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../FieldPhone/click-outside.cjs");require("./Select.vue.cjs");const g=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={key:0,class:"t-transp mn-r-small"},b={class:"w-100"},w=["onClick"],S={key:0,class:"w-100"},_={key:0,class:"mn-t-thin invalid-feedback"},C={__name:"Select",props:{label:String,placeholder:{type:String,default:"Please select an item"},select:[String,Object],property:String,options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(n,{emit:m}){let f=y.default;const i=m,t=n,a=e.ref(!1),o=e.ref(t.property?d(t.select,t.property,t.options):t.select),v=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options);e.watch(()=>t.select,l=>{o.value=t.property?d(t.select,t.property,t.options):t.select});const u=()=>{a.value=!a.value,i(a.value?"focus":"blur")};function k(){a.value=!1}const h=l=>{o.value=l,u(),t.property?i("update:select",o.value[t.property]):i("update:select",o.value)};function d(l,p,c){for(const s of c)if(s[p]===l||s===l)return s;return null}return(l,p)=>{var c,s;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[n.label?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("span",null,e.toDisplayString(n.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",b,[e.createElementVNode("span",null,e.toDisplayString((c=o.value)!=null&&c.name?(s=o.value)==null?void 0:s.name:o.value||n.placeholder),1)]),e.createVNode(e.Transition,{mode:"out-in",name:"TransitionTranslateY"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("ul",{class:e.normalizeClass([l.$attrs.class,"bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),style:{"min-width":"max-content"}},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,r=>(e.openBlock(),e.createElementBlock("li",{onClick:e.withModifiers(V=>h(r),["stop"])},[r?(e.openBlock(),e.createElementBlock("span",S,e.toDisplayString(r.name||r),1)):e.createCommentVNode("",!0)],8,w))),256))],2),[[e.vShow,a.value]])]),_:1})],2)),[[e.unref(f),k]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[n.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(n.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=g.default(C,[["__scopeId","data-v-bf25c24d"]]);exports.default=E;
|
@@ -1 +1,103 @@
|
|
1
|
-
|
1
|
+
import { ref as y, computed as M, watch as N, openBlock as s, createElementBlock as n, Fragment as b, withDirectives as k, withModifiers as w, normalizeClass as S, createElementVNode as u, toDisplayString as d, createCommentVNode as m, createVNode as _, Transition as g, withCtx as x, renderList as T, vShow as $, unref as z } from "vue";
|
2
|
+
import D from "../FieldPhone/click-outside.js";
|
3
|
+
import "./Select.vue.js";
|
4
|
+
import E from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const L = {
|
6
|
+
key: 0,
|
7
|
+
class: "t-transp mn-r-small"
|
8
|
+
}, A = { class: "w-100" }, F = ["onClick"], I = {
|
9
|
+
key: 0,
|
10
|
+
class: "w-100"
|
11
|
+
}, P = {
|
12
|
+
key: 0,
|
13
|
+
class: "mn-t-thin invalid-feedback"
|
14
|
+
}, Y = {
|
15
|
+
__name: "Select",
|
16
|
+
props: {
|
17
|
+
label: String,
|
18
|
+
placeholder: { type: String, default: "Please select an item" },
|
19
|
+
select: [String, Object],
|
20
|
+
property: String,
|
21
|
+
options: { type: Array, default: () => [] },
|
22
|
+
validation: Boolean
|
23
|
+
},
|
24
|
+
emits: [
|
25
|
+
"update:select",
|
26
|
+
"focus",
|
27
|
+
"blur"
|
28
|
+
],
|
29
|
+
setup(o, { emit: C }) {
|
30
|
+
let O = D;
|
31
|
+
const p = C, e = o, c = y(!1), l = y(
|
32
|
+
e.property ? v(e.select, e.property, e.options) : e.select
|
33
|
+
), B = M(() => e.select ? e.options.filter((t) => t !== e.select) : e.options);
|
34
|
+
N(() => e.select, (t) => {
|
35
|
+
l.value = e.property ? v(e.select, e.property, e.options) : e.select;
|
36
|
+
});
|
37
|
+
const f = () => {
|
38
|
+
c.value = !c.value, p(c.value ? "focus" : "blur");
|
39
|
+
};
|
40
|
+
function V() {
|
41
|
+
c.value = !1;
|
42
|
+
}
|
43
|
+
const j = (t) => {
|
44
|
+
l.value = t, f(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
|
45
|
+
};
|
46
|
+
function v(t, h, i) {
|
47
|
+
for (const a of i)
|
48
|
+
if (a[h] === t || a === t)
|
49
|
+
return a;
|
50
|
+
return null;
|
51
|
+
}
|
52
|
+
return (t, h) => {
|
53
|
+
var i, a;
|
54
|
+
return s(), n(b, null, [
|
55
|
+
k((s(), n("div", {
|
56
|
+
onClick: w(f, ["stop"]),
|
57
|
+
class: S([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
|
58
|
+
}, [
|
59
|
+
o.label ? (s(), n("div", L, [
|
60
|
+
u("span", null, d(o.label), 1)
|
61
|
+
])) : m("", !0),
|
62
|
+
u("li", A, [
|
63
|
+
u("span", null, d((i = l.value) != null && i.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
|
64
|
+
]),
|
65
|
+
_(g, {
|
66
|
+
mode: "out-in",
|
67
|
+
name: "TransitionTranslateY"
|
68
|
+
}, {
|
69
|
+
default: x(() => [
|
70
|
+
k(u("ul", {
|
71
|
+
class: S([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
|
72
|
+
style: { "min-width": "max-content" }
|
73
|
+
}, [
|
74
|
+
(s(!0), n(b, null, T(B.value, (r) => (s(), n("li", {
|
75
|
+
onClick: w((q) => j(r), ["stop"])
|
76
|
+
}, [
|
77
|
+
r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
|
78
|
+
], 8, F))), 256))
|
79
|
+
], 2), [
|
80
|
+
[$, c.value]
|
81
|
+
])
|
82
|
+
]),
|
83
|
+
_: 1
|
84
|
+
})
|
85
|
+
], 2)), [
|
86
|
+
[z(O), V]
|
87
|
+
]),
|
88
|
+
_(g, {
|
89
|
+
mode: "out-in",
|
90
|
+
name: "fade"
|
91
|
+
}, {
|
92
|
+
default: x(() => [
|
93
|
+
o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
|
94
|
+
]),
|
95
|
+
_: 1
|
96
|
+
})
|
97
|
+
], 64);
|
98
|
+
};
|
99
|
+
}
|
100
|
+
}, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-bf25c24d"]]);
|
101
|
+
export {
|
102
|
+
Q as default
|
103
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,36 +1 @@
|
|
1
|
-
|
2
|
-
import "./Spoiler.vue2.js";
|
3
|
-
const m = {
|
4
|
-
key: 0,
|
5
|
-
class: "spoiler"
|
6
|
-
}, x = {
|
7
|
-
__name: "Spoiler",
|
8
|
-
props: {
|
9
|
-
status: {
|
10
|
-
type: Boolean,
|
11
|
-
default: !1
|
12
|
-
}
|
13
|
-
},
|
14
|
-
setup(r) {
|
15
|
-
const t = r, e = i(!1);
|
16
|
-
return t.status && (e.value = t.status), (o, l) => (s(), a("div", null, [
|
17
|
-
p("div", {
|
18
|
-
onClick: l[0] || (l[0] = (v) => e.value = !e.value),
|
19
|
-
class: "flex-v-center flex-nowrap flex"
|
20
|
-
}, [
|
21
|
-
n(o.$slots, "header", { isOpen: e.value })
|
22
|
-
]),
|
23
|
-
u(c, { name: "collapse" }, {
|
24
|
-
default: d(() => [
|
25
|
-
e.value ? (s(), a("div", m, [
|
26
|
-
n(o.$slots, "content")
|
27
|
-
])) : f("", !0)
|
28
|
-
]),
|
29
|
-
_: 3
|
30
|
-
})
|
31
|
-
]));
|
32
|
-
}
|
33
|
-
};
|
34
|
-
export {
|
35
|
-
x as default
|
36
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Spoiler.vue.cjs");const n={key:0,class:"spoiler"},a={__name:"Spoiler",props:{status:{type:Boolean,default:!1}},setup(r){const l=r,t=e.ref(!1);return l.status&&(t.value=l.status),(o,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{onClick:s[0]||(s[0]=u=>t.value=!t.value),class:"flex-v-center flex-nowrap flex"},[e.renderSlot(o.$slots,"header",{isOpen:t.value})]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[t.value?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(o.$slots,"content")])):e.createCommentVNode("",!0)]),_:3})]))}};exports.default=a;
|