@ozdao/prometheus-framework 0.2.118 → 0.2.119
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/gallery.server.js +9 -3
- package/dist/gallery.server.mjs +9 -3
- package/dist/main-DL3vRQCi.js +92 -0
- package/dist/main-Ds3Z5x5d.mjs +14206 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +116 -117
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +58 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -58
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +123 -109
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +32 -26
- 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 +77 -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/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -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/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +16 -17
- 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/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +44 -69
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.js +64 -0
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue2.js +1 -0
- 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 +101 -14
- 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 +165 -102
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +38 -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 +3 -3
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -21
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.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 +13 -1
- 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 +1 -13
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- 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/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/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 +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/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/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/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/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 +31 -32
- 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 +2 -2
- 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 +4 -4
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-g8208K6g.mjs +178 -0
- package/dist/queryProcessor-haY_gPGg.js +177 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-B8tq3Fda.mjs +54 -0
- package/dist/web-ByJkgGrt.js +1 -0
- package/package.json +1 -1
- package/src/components/DatePicker/Calendar.vue +82 -55
- package/src/components/Feed/Feed.vue +45 -16
- package/src/components/FieldTags/BlockTags.vue +30 -23
- package/src/components/Popup/Popup.vue +2 -2
- package/src/modules/events/components/pages/Events.vue +2 -48
- package/src/modules/gallery/components/blocks/PhotoViewer.vue +115 -0
- package/src/modules/gallery/components/pages/Gallery.vue +103 -6
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +100 -32
- package/src/modules/gallery/controllers/gallery.controller.js +45 -38
- package/src/modules/globals/components/blocks/CardHeader.vue +1 -1
- package/src/modules/globals/components/elements/ButtonDate.vue +37 -43
- package/src/modules/globals/components/layouts/Client.vue +1 -1
- package/src/modules/globals/components/sections/SectionPageTitle.vue +1 -1
- package/src/modules/globals/controllers/utils/queryProcessor.js +21 -2
- package/src/modules/globals/services/globals.store.js +13 -17
- package/src/modules/icons/skeletons/SkeletonBlogpost.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonEvent.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonEventShort.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonOrganization.vue +1 -1
- package/src/modules/products/components/sections/FilterProducts.vue +2 -1
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +0 -176
@@ -1,21 +1,20 @@
|
|
1
|
-
import { mergeModels as
|
2
|
-
import
|
1
|
+
import { mergeModels as U, useModel as S, ref as m, watch as b, onMounted as z, onUnmounted as F, openBlock as i, createElementBlock as $, Fragment as C, createBlock as f, normalizeClass as y, createCommentVNode as o, withCtx as k, createVNode as L, unref as M, TransitionGroup as E, renderList as N, Transition as D, renderSlot as P, createElementVNode as G } from "vue";
|
2
|
+
import R from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
|
3
3
|
import "../Loader/Loader.vue.js";
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import _ from "../../modules/icons/navigation/IconFilter.vue.js";
|
4
|
+
import q from "../EmptyState/EmptyState.vue.js";
|
5
|
+
import I from "../Dropdown/Dropdown.vue.js";
|
6
|
+
import A from "../DatePicker/Calendar.vue2.js";
|
7
|
+
import H from "../../modules/globals/components/blocks/BlockSearch.vue.js";
|
8
|
+
import J from "../../modules/globals/components/blocks/BlockSorting.vue.js";
|
9
|
+
import K from "../../modules/globals/components/elements/ButtonSort.vue.js";
|
10
|
+
import Q from "../../modules/globals/components/elements/ButtonDate.vue.js";
|
12
11
|
import "./Feed.vue2.js";
|
13
|
-
const
|
12
|
+
const W = {
|
14
13
|
key: 0,
|
15
14
|
class: "flex-nowrap flex gap-thin mn-b-thin"
|
16
|
-
},
|
15
|
+
}, O = null, ie = {
|
17
16
|
__name: "Feed",
|
18
|
-
props: /* @__PURE__ */
|
17
|
+
props: /* @__PURE__ */ U({
|
19
18
|
showLoadMore: {
|
20
19
|
type: Boolean,
|
21
20
|
default: !0
|
@@ -69,144 +68,159 @@ const V = {
|
|
69
68
|
itemsModifiers: {}
|
70
69
|
}),
|
71
70
|
emits: ["update:search", "update:sort", "update:date", "update:items"],
|
72
|
-
setup(
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
S.value = e, k.value = 0, c.value = 10, w();
|
71
|
+
setup(r) {
|
72
|
+
const p = S(r, "search"), a = S(r, "sort"), l = S(r, "date"), g = S(r, "items"), s = r, n = m(g.value || []), u = m(!1);
|
73
|
+
let h = m(!0), B = m(null), w = m(s.options.skip ? s.options.skip : 0), d = m(s.options.limit ? s.options.limit : 10), x = m("");
|
74
|
+
function T(e) {
|
75
|
+
x.value = e, w.value = 0, d.value = 10, c();
|
78
76
|
}
|
79
|
-
const
|
80
|
-
if (
|
81
|
-
|
82
|
-
const e = await
|
83
|
-
skip:
|
84
|
-
limit:
|
85
|
-
search:
|
86
|
-
|
87
|
-
|
88
|
-
|
77
|
+
const j = async () => {
|
78
|
+
if (u.value) {
|
79
|
+
w.value += d.value;
|
80
|
+
const e = await s.store.read({
|
81
|
+
skip: w.value,
|
82
|
+
limit: d.value,
|
83
|
+
search: x.value,
|
84
|
+
dateStart: l.value ? l.value.start : null,
|
85
|
+
dateEnd: l.value ? l.value.end : null,
|
86
|
+
sortParam: a.value ? a.value.param : null,
|
87
|
+
sortOrder: a.value ? a.value.order : null,
|
88
|
+
...s.options
|
89
89
|
});
|
90
|
-
e.length === 0 || e.length <
|
90
|
+
e.length === 0 || e.length < d.value ? u.value = !1 : u.value = !0, n.value = [...n.value, ...e], g.value && (g.value = n.value);
|
91
91
|
}
|
92
|
-
},
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
92
|
+
}, c = async () => {
|
93
|
+
console.log("Date is", l.value);
|
94
|
+
const e = await s.store.read({
|
95
|
+
skip: w.value,
|
96
|
+
limit: d.value,
|
97
|
+
dateStart: l.value ? l.value.start : null,
|
98
|
+
dateEnd: l.value ? l.value.end : null,
|
99
|
+
sortParam: a.value ? a.value.param : null,
|
100
|
+
sortOrder: a.value ? a.value.order : null,
|
101
|
+
search: x.value,
|
102
|
+
...s.options
|
100
103
|
});
|
101
|
-
e.length === 0 || e.length <
|
104
|
+
e.length === 0 || e.length < d.value ? u.value = !1 : u.value = !0, n.value = e, g.value && (g.value = n.value), h.value = !1;
|
102
105
|
};
|
103
|
-
return
|
104
|
-
e !== t &&
|
105
|
-
}, { deep: !0 }),
|
106
|
-
|
107
|
-
}, { deep: !0 }),
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
106
|
+
return b(() => s.external, (e, t) => {
|
107
|
+
e !== t && c();
|
108
|
+
}, { deep: !0 }), b(() => l.value, (e, t) => {
|
109
|
+
e !== t && c();
|
110
|
+
}, { deep: !0 }), b(() => {
|
111
|
+
var e;
|
112
|
+
return (e = a.value) == null ? void 0 : e.order;
|
113
|
+
}, (e, t) => {
|
114
|
+
e !== t && c();
|
115
|
+
}, { deep: !0 }), b(() => {
|
116
|
+
var e;
|
117
|
+
return (e = a.value) == null ? void 0 : e.param;
|
118
|
+
}, (e, t) => {
|
119
|
+
e !== t && c();
|
120
|
+
}, { deep: !0 }), b(() => s.options, (e, t) => {
|
121
|
+
(e.organization !== t.organization || e.categories !== t.categories || e.prices !== t.prices || e.delivery !== t.delivery || e.search !== t.search || e.status !== t.status || e.hidden !== t.hidden || e.type !== t.type || e.tags !== t.tags) && c();
|
122
|
+
}, { deep: !0 }), z(async () => {
|
123
|
+
await c(), typeof window < "u" && !s.showLoadMore && (O = new IntersectionObserver((e) => {
|
124
|
+
e.some((t) => t.isIntersecting) && j();
|
125
|
+
}), O.observe(B.value));
|
126
|
+
}), F(() => {
|
112
127
|
O && O.disconnect();
|
113
|
-
}), (e, t) => (
|
114
|
-
|
115
|
-
|
128
|
+
}), (e, t) => (i(), $(C, null, [
|
129
|
+
p.value || l.value || a.value ? (i(), $("div", W, [
|
130
|
+
p.value ? (i(), f(H, {
|
116
131
|
key: 0,
|
117
|
-
placeholder:
|
118
|
-
class:
|
119
|
-
onSearch:
|
120
|
-
}, null, 8, ["placeholder", "class"])) :
|
121
|
-
|
122
|
-
|
123
|
-
]),
|
124
|
-
p(N, {
|
132
|
+
placeholder: p.value.placeholder || "Search...",
|
133
|
+
class: y(p.value.class || "bg-light"),
|
134
|
+
onSearch: T
|
135
|
+
}, null, 8, ["placeholder", "class"])) : o("", !0),
|
136
|
+
l.value ? (i(), f(I, {
|
137
|
+
key: 1,
|
125
138
|
label: {
|
126
|
-
component:
|
139
|
+
component: Q,
|
140
|
+
props: { date: l.value }
|
127
141
|
},
|
128
|
-
class:
|
129
|
-
align: "right"
|
142
|
+
class: y([l.value.class || "bg-light", "flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),
|
143
|
+
align: p.value ? "right" : "left"
|
130
144
|
}, {
|
131
|
-
default:
|
132
|
-
|
133
|
-
date:
|
134
|
-
"onUpdate:date": t[0] || (t[0] = (
|
145
|
+
default: k(() => [
|
146
|
+
L(A, {
|
147
|
+
date: l.value,
|
148
|
+
"onUpdate:date": t[0] || (t[0] = (v) => l.value = v),
|
135
149
|
locale: e.$i18n.locale,
|
136
150
|
allowRange: !0,
|
137
151
|
class: "radius-semi w-100 o-hidden bg-light"
|
138
152
|
}, null, 8, ["date", "locale"])
|
139
153
|
]),
|
140
154
|
_: 1
|
141
|
-
}, 8, ["label", "class"]),
|
142
|
-
|
143
|
-
key:
|
155
|
+
}, 8, ["label", "class", "align"])) : o("", !0),
|
156
|
+
a.value ? (i(), f(I, {
|
157
|
+
key: 2,
|
144
158
|
label: {
|
145
|
-
component:
|
146
|
-
props: { order:
|
159
|
+
component: K,
|
160
|
+
props: { order: a.value.order },
|
147
161
|
class: "w-1r"
|
148
162
|
},
|
149
|
-
class:
|
150
|
-
align: "right"
|
163
|
+
class: y([a.value.class || "bg-light", "radius-extra aspect-1x1 h-100"]),
|
164
|
+
align: p.value ? "right" : "left"
|
151
165
|
}, {
|
152
|
-
default:
|
153
|
-
|
154
|
-
param:
|
155
|
-
"onUpdate:param": t[1] || (t[1] = (
|
156
|
-
order:
|
157
|
-
"onUpdate:order": t[2] || (t[2] = (
|
158
|
-
options:
|
166
|
+
default: k(() => [
|
167
|
+
L(J, {
|
168
|
+
param: a.value.param,
|
169
|
+
"onUpdate:param": t[1] || (t[1] = (v) => a.value.param = v),
|
170
|
+
order: a.value.order,
|
171
|
+
"onUpdate:order": t[2] || (t[2] = (v) => a.value.order = v),
|
172
|
+
options: a.value.options,
|
159
173
|
class: "h-100 pd-small radius-semi t-white bg-black"
|
160
174
|
}, null, 8, ["param", "order", "options"])
|
161
175
|
]),
|
162
176
|
_: 1
|
163
|
-
}, 8, ["label", "class"])) :
|
164
|
-
])) :
|
165
|
-
|
177
|
+
}, 8, ["label", "class", "align"])) : o("", !0)
|
178
|
+
])) : o("", !0),
|
179
|
+
M(h) ? (i(), f(E, {
|
166
180
|
key: 1,
|
167
181
|
tag: "ul",
|
168
182
|
name: "scaleTransition",
|
169
|
-
class:
|
183
|
+
class: y(["o-hidden bg-light radius-big", e.$attrs.class])
|
170
184
|
}, {
|
171
|
-
default:
|
172
|
-
|
173
|
-
key: "skeleton-" +
|
174
|
-
}))), 128)) :
|
185
|
+
default: k(() => [
|
186
|
+
M(h) ? (i(!0), $(C, { key: 0 }, N(M(d), (v) => (i(), f(R, {
|
187
|
+
key: "skeleton-" + v
|
188
|
+
}))), 128)) : o("", !0)
|
175
189
|
]),
|
176
190
|
_: 1
|
177
|
-
}, 8, ["class"])) :
|
178
|
-
|
179
|
-
default:
|
180
|
-
!
|
191
|
+
}, 8, ["class"])) : o("", !0),
|
192
|
+
L(D, { name: "scaleTransition" }, {
|
193
|
+
default: k(() => [
|
194
|
+
!M(h) && n.value.length < 1 ? (i(), f(q, {
|
181
195
|
key: 0,
|
182
|
-
title:
|
183
|
-
description:
|
184
|
-
action:
|
185
|
-
callback:
|
196
|
+
title: r.states.empty.title,
|
197
|
+
description: r.states.empty.description,
|
198
|
+
action: r.states.empty.action,
|
199
|
+
callback: r.states.empty.callback,
|
186
200
|
class: "pd-medium mn-b-thin bg-light radius-big"
|
187
|
-
}, null, 8, ["title", "description", "action", "callback"])) :
|
201
|
+
}, null, 8, ["title", "description", "action", "callback"])) : o("", !0)
|
188
202
|
]),
|
189
203
|
_: 1
|
190
204
|
}),
|
191
|
-
|
205
|
+
L(E, {
|
192
206
|
tag: "ul",
|
193
207
|
name: "feed",
|
194
|
-
class:
|
208
|
+
class: y(e.$attrs.class)
|
195
209
|
}, {
|
196
|
-
default:
|
197
|
-
!
|
210
|
+
default: k(() => [
|
211
|
+
!M(h) && n.value.length > 0 ? P(e.$slots, "default", {
|
198
212
|
key: 0,
|
199
|
-
items:
|
200
|
-
}) :
|
201
|
-
|
213
|
+
items: n.value
|
214
|
+
}) : o("", !0),
|
215
|
+
r.showLoadMore && u.value && n.value.length > 0 ? (i(), $("button", {
|
202
216
|
key: 1,
|
203
|
-
onClick:
|
217
|
+
onClick: j,
|
204
218
|
class: "col-w-100 w-100 bg-main button"
|
205
|
-
}, " Load More ")) :
|
206
|
-
|
219
|
+
}, " Load More ")) : o("", !0),
|
220
|
+
G("div", {
|
207
221
|
key: "sentinel",
|
208
222
|
ref_key: "sentinel",
|
209
|
-
ref:
|
223
|
+
ref: B,
|
210
224
|
class: "sentinel"
|
211
225
|
}, null, 512)
|
212
226
|
]),
|
@@ -216,5 +230,5 @@ const V = {
|
|
216
230
|
}
|
217
231
|
};
|
218
232
|
export {
|
219
|
-
|
233
|
+
ie as default
|
220
234
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const f=e.createElementVNode("h5",{class:"mn-b-thin"},"Tags (maximum 20):",-1),x=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const f=e.createElementVNode("h5",{class:"mn-b-thin"},"Tags (maximum 20):",-1),x=e.createElementVNode("p",{class:"p-small mn-b-thin"},"Suggested:",-1),k=["onClick"],_={key:1},y={__name:"BlockTags",props:{tags:{type:Array},tagsSuggested:{type:Array,default:[{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]}},emits:["tags-changed"],setup(c,{emit:i}){const u=i,o=c,n=e.ref(""),s=e.ref([]),d=e.ref(o.tagsSuggested);o.tags&&(s.value=o.tags.map(t=>({text:t})));const m=e.computed(()=>d.value.filter(t=>t.text.toLowerCase().includes(n.value.toLowerCase()))),r=e.computed(()=>d.value.filter(t=>!s.value.some(a=>a.text===t.text)));function g(t){s.value.push(t),u("tags-changed",s.value.map(a=>a.text))}function p(t){s.value=t,u("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[f,e.createVNode(h.default,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=l=>n.value=l),tags:s.value,"autocomplete-items":m.value,"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:p,class:"mn-b-thin bg-light radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),x,r.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(l,v)=>(e.openBlock(),e.createElementBlock("span",{onClick:B=>g(l),class:e.normalizeClass(["cursor-pointer t-medium ti-tag-toDefactor",{"mn-r-micro":v!==r.value.length-1}])},e.toDisplayString(l.text),11,k))),256)):(e.openBlock(),e.createElementBlock("span",_,"You added all suggested tags"))]))}};exports.default=y;
|
@@ -1,31 +1,39 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as d, computed as i, openBlock as o, createElementBlock as l, createVNode as y, Fragment as k, renderList as C, normalizeClass as T, toDisplayString as S, createElementVNode as c } from "vue";
|
2
2
|
import V from "./FieldTags.vue.js";
|
3
3
|
import "./BlockTags.vue2.js";
|
4
|
-
const
|
4
|
+
const b = /* @__PURE__ */ c("h5", { class: "mn-b-thin" }, "Tags (maximum 20):", -1), w = /* @__PURE__ */ c("p", { class: "p-small mn-b-thin" }, "Suggested:", -1), B = ["onClick"], I = { key: 1 }, F = {
|
5
5
|
__name: "BlockTags",
|
6
|
-
props:
|
6
|
+
props: {
|
7
|
+
tags: {
|
8
|
+
type: Array
|
9
|
+
},
|
10
|
+
tagsSuggested: {
|
11
|
+
type: Array,
|
12
|
+
default: [
|
13
|
+
{ text: "story" },
|
14
|
+
{ text: "news" },
|
15
|
+
{ text: "guide" },
|
16
|
+
{ text: "discussion" },
|
17
|
+
{ text: "photos" }
|
18
|
+
]
|
19
|
+
}
|
20
|
+
},
|
7
21
|
emits: ["tags-changed"],
|
8
22
|
setup(p, { emit: h }) {
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
{ text: "guide" },
|
13
|
-
{ text: "discussion" },
|
14
|
-
{ text: "photos" }
|
15
|
-
]);
|
16
|
-
i.tags && (a.value = i.tags.map((e) => ({ text: e })));
|
17
|
-
const v = g(() => c.value.filter((e) => e.text.toLowerCase().includes(n.value.toLowerCase()))), r = g(() => c.value.filter((e) => !a.value.some((t) => t.text === e.text)));
|
23
|
+
const m = h, n = p, r = d(""), a = d([]), g = d(n.tagsSuggested);
|
24
|
+
n.tags && (a.value = n.tags.map((e) => ({ text: e })));
|
25
|
+
const v = i(() => g.value.filter((e) => e.text.toLowerCase().includes(r.value.toLowerCase()))), u = i(() => g.value.filter((e) => !a.value.some((t) => t.text === e.text)));
|
18
26
|
function x(e) {
|
19
|
-
a.value.push(e),
|
27
|
+
a.value.push(e), m("tags-changed", a.value.map((t) => t.text));
|
20
28
|
}
|
21
29
|
function f(e) {
|
22
|
-
a.value = e,
|
30
|
+
a.value = e, m("tags-changed", a.value.map((t) => t.text));
|
23
31
|
}
|
24
32
|
return (e, t) => (o(), l("div", null, [
|
25
|
-
|
26
|
-
|
27
|
-
modelValue:
|
28
|
-
"onUpdate:modelValue": t[0] || (t[0] = (s) =>
|
33
|
+
b,
|
34
|
+
y(V, {
|
35
|
+
modelValue: r.value,
|
36
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => r.value = s),
|
29
37
|
tags: a.value,
|
30
38
|
"autocomplete-items": v.value,
|
31
39
|
"add-on-key": [13, ":", ";", ","],
|
@@ -39,16 +47,14 @@ const w = /* @__PURE__ */ m("h5", { class: "mn-b-thin" }, "Tags (maximum 20):",
|
|
39
47
|
onTagsChanged: f,
|
40
48
|
class: "mn-b-thin bg-light radius-medium pd-small"
|
41
49
|
}, null, 8, ["modelValue", "tags", "autocomplete-items"]),
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
}, b(s.text), 11, L))), 256)) : (o(), l("span", S, "You added all suggested tags"))
|
48
|
-
])
|
50
|
+
w,
|
51
|
+
u.value.length > 0 ? (o(!0), l(k, { key: 0 }, C(u.value, (s, _) => (o(), l("span", {
|
52
|
+
onClick: (L) => x(s),
|
53
|
+
class: T(["cursor-pointer t-medium ti-tag-toDefactor", { "mn-r-micro": _ !== u.value.length - 1 }])
|
54
|
+
}, S(s.text), 11, B))), 256)) : (o(), l("span", I, "You added all suggested tags"))
|
49
55
|
]));
|
50
56
|
}
|
51
57
|
};
|
52
58
|
export {
|
53
|
-
|
59
|
+
F as default
|
54
60
|
};
|
@@ -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={key:0,class:"mn-b-small"},k={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String,title:String},emits:["close-popup"],setup(t,{emit:l}){const i=t,a=l;function n(){a("close-popup")}e.watch(()=>i.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}),[t.title?(e.openBlock(),e.createElementBlock("h4",v,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createVNode(d.default,{fill:"rgb(var(--white))",onClick:s[0]||(s[0]=c=>n()),class:"cursor-pointer bg-second pd-micro radius-extra pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-medium 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=k;
|
@@ -1 +1,77 @@
|
|
1
|
-
|
1
|
+
import { watch as y, openBlock as s, createBlock as i, Transition as l, withCtx as a, Teleport as k, createElementBlock as p, createVNode as m, createElementVNode as u, mergeProps as P, toDisplayString as b, createCommentVNode as n, renderSlot as g, normalizeClass as x } from "vue";
|
2
|
+
import { useRoute as T, useRouter as $ } 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 h = {
|
7
|
+
key: "popup-content",
|
8
|
+
class: "pd-small popup-wrapper"
|
9
|
+
}, w = {
|
10
|
+
key: 0,
|
11
|
+
class: "mn-b-small"
|
12
|
+
}, L = {
|
13
|
+
__name: "Popup",
|
14
|
+
props: {
|
15
|
+
isPopupOpen: {
|
16
|
+
type: Boolean,
|
17
|
+
default: !1
|
18
|
+
},
|
19
|
+
style: String,
|
20
|
+
title: String
|
21
|
+
},
|
22
|
+
emits: ["close-popup"],
|
23
|
+
setup(e, { emit: c }) {
|
24
|
+
const d = e, f = c;
|
25
|
+
function r() {
|
26
|
+
f("close-popup");
|
27
|
+
}
|
28
|
+
return y(() => d.isPopupOpen, (t) => {
|
29
|
+
t ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
30
|
+
}), T(), $(), C({
|
31
|
+
messages: {
|
32
|
+
en: {},
|
33
|
+
ru: {}
|
34
|
+
}
|
35
|
+
}), (t, o) => (s(), i(l, {
|
36
|
+
name: "TransitionTranslateY",
|
37
|
+
appear: ""
|
38
|
+
}, {
|
39
|
+
default: a(() => [
|
40
|
+
e.isPopupOpen ? (s(), i(k, {
|
41
|
+
key: 0,
|
42
|
+
to: "body"
|
43
|
+
}, [
|
44
|
+
e.isPopupOpen ? (s(), p("div", h, [
|
45
|
+
m(l, {
|
46
|
+
name: "TransitionTranslateY",
|
47
|
+
mode: "out-in"
|
48
|
+
}, {
|
49
|
+
default: a(() => [
|
50
|
+
u("section", P({ class: "pos-relative z-index-4" }, t.$attrs, {
|
51
|
+
class: t.$attrs.class
|
52
|
+
}), [
|
53
|
+
e.title ? (s(), p("h4", w, b(e.title), 1)) : n("", !0),
|
54
|
+
m(O, {
|
55
|
+
fill: "rgb(var(--white))",
|
56
|
+
onClick: o[0] || (o[0] = (v) => r()),
|
57
|
+
class: "cursor-pointer bg-second pd-micro radius-extra pos-absolute pos-t-0 pos-r-0 mn-t-semi mn-r-semi hover-scale-1 i-medium z-index-5"
|
58
|
+
}),
|
59
|
+
g(t.$slots, "default")
|
60
|
+
], 16)
|
61
|
+
]),
|
62
|
+
_: 3
|
63
|
+
}),
|
64
|
+
u("div", {
|
65
|
+
onClick: o[1] || (o[1] = (v) => r()),
|
66
|
+
class: x([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
67
|
+
}, null, 2)
|
68
|
+
])) : n("", !0)
|
69
|
+
])) : n("", !0)
|
70
|
+
]),
|
71
|
+
_: 3
|
72
|
+
}));
|
73
|
+
}
|
74
|
+
};
|
75
|
+
export {
|
76
|
+
L as default
|
77
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|