@ozdao/prometheus-framework 0.2.118 → 0.2.120
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 +13 -3
- package/dist/gallery.server.mjs +13 -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/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -94
- 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/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +123 -109
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/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 +30 -26
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/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/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +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 +2 -2
- 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 +166 -103
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
- 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 +2 -2
- 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 +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 +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 +2 -2
- 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/FormDelivery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/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/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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
- 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/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.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 +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/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/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +31 -32
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- 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 +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 +1 -1
- 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/gallery/models/photo.model.js +4 -0
- 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.vue2.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";
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue2.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex","disabled"],b=["value","placeholder","tabindex","disabled"],f={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,value:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(l,{emit:s}){const a=s,d=l;d.value&&a("update:field",d.value);const i=e.ref(d.field);return(o,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":l.validation}],"flex-center flex-nowrap flex"])},[l.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(l.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[l.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:t[0]||(t[0]=n=>i.value=a("update:field",n.target.value)),onFocus:t[1]||(t[1]=n=>a("focus",n)),onBlur:t[2]||(t[2]=n=>a("blur",n)),type:l.type,class:"w-100",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:t[3]||(t[3]=n=>i.value=a("update:field",n.target.value)),onFocus:t[4]||(t[4]=n=>a("focus",n)),onBlur:t[5]||(t[5]=n=>a("blur",n)),class:"w-100",style:{resize:"vertical"},value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,b))]),e.renderSlot(o.$slots,"default",{},void 0,!0),l.symbol?(e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("span",null,e.toDisplayString(l.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(l.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-47c78b3c"]]);exports.default=y;
|
@@ -1 +1,84 @@
|
|
1
|
-
|
1
|
+
import { ref as f, openBlock as n, createElementBlock as d, Fragment as v, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as u, renderSlot as x, createVNode as y, Transition as h, withCtx as k } from "vue";
|
2
|
+
import "./Field.vue2.js";
|
3
|
+
import g from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const w = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, F = { class: "w-100" }, B = ["type", "value", "placeholder", "tabindex", "disabled"], p = ["value", "placeholder", "tabindex", "disabled"], C = {
|
8
|
+
key: 1,
|
9
|
+
class: "t-transp mn-l-small"
|
10
|
+
}, E = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
|
13
|
+
}, I = {
|
14
|
+
__name: "Field",
|
15
|
+
props: {
|
16
|
+
label: null,
|
17
|
+
symbol: null,
|
18
|
+
type: "text",
|
19
|
+
placeholder: "Enter something here",
|
20
|
+
field: null,
|
21
|
+
value: null,
|
22
|
+
validation: !1,
|
23
|
+
disabled: null,
|
24
|
+
tabindex: -1
|
25
|
+
},
|
26
|
+
emits: ["update:field", "focus", "blur"],
|
27
|
+
setup(e, { emit: b }) {
|
28
|
+
const a = b, s = e;
|
29
|
+
s.value && a("update:field", s.value);
|
30
|
+
const r = f(s.field);
|
31
|
+
return (m, l) => (n(), d(v, null, [
|
32
|
+
i("div", {
|
33
|
+
class: c([[
|
34
|
+
m.$attrs.class,
|
35
|
+
{
|
36
|
+
"bg-fourth-nano": e.validation
|
37
|
+
}
|
38
|
+
], "flex-center flex-nowrap flex"])
|
39
|
+
}, [
|
40
|
+
e.label ? (n(), d("div", w, [
|
41
|
+
i("span", null, o(e.label), 1)
|
42
|
+
])) : u("", !0),
|
43
|
+
i("div", F, [
|
44
|
+
e.type !== "textarea" ? (n(), d("input", {
|
45
|
+
key: 0,
|
46
|
+
onInput: l[0] || (l[0] = (t) => r.value = a("update:field", t.target.value)),
|
47
|
+
onFocus: l[1] || (l[1] = (t) => a("focus", t)),
|
48
|
+
onBlur: l[2] || (l[2] = (t) => a("blur", t)),
|
49
|
+
type: e.type,
|
50
|
+
class: "w-100",
|
51
|
+
value: e.field,
|
52
|
+
placeholder: e.placeholder,
|
53
|
+
tabindex: e.tabindex,
|
54
|
+
disabled: e.disabled
|
55
|
+
}, null, 40, B)) : (n(), d("textarea", {
|
56
|
+
key: 1,
|
57
|
+
onInput: l[3] || (l[3] = (t) => r.value = a("update:field", t.target.value)),
|
58
|
+
onFocus: l[4] || (l[4] = (t) => a("focus", t)),
|
59
|
+
onBlur: l[5] || (l[5] = (t) => a("blur", t)),
|
60
|
+
class: "w-100",
|
61
|
+
style: { resize: "vertical" },
|
62
|
+
value: e.field,
|
63
|
+
placeholder: e.placeholder,
|
64
|
+
tabindex: e.tabindex,
|
65
|
+
disabled: e.disabled
|
66
|
+
}, null, 40, p))
|
67
|
+
]),
|
68
|
+
x(m.$slots, "default", {}, void 0, !0),
|
69
|
+
e.symbol ? (n(), d("div", C, [
|
70
|
+
i("span", null, o(e.symbol), 1)
|
71
|
+
])) : u("", !0)
|
72
|
+
], 2),
|
73
|
+
y(h, { name: "fade" }, {
|
74
|
+
default: k(() => [
|
75
|
+
e.validation ? (n(), d("div", E, " * " + o(e.validation.message), 1)) : u("", !0)
|
76
|
+
]),
|
77
|
+
_: 1
|
78
|
+
})
|
79
|
+
], 64));
|
80
|
+
}
|
81
|
+
}, S = /* @__PURE__ */ g(I, [["__scopeId", "data-v-47c78b3c"]]);
|
82
|
+
export {
|
83
|
+
S as default
|
84
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,84 +1 @@
|
|
1
|
-
|
2
|
-
import "./Field.vue.js";
|
3
|
-
import g from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const w = {
|
5
|
-
key: 0,
|
6
|
-
class: "t-transp mn-r-small"
|
7
|
-
}, F = { class: "w-100" }, B = ["type", "value", "placeholder", "tabindex", "disabled"], p = ["value", "placeholder", "tabindex", "disabled"], C = {
|
8
|
-
key: 1,
|
9
|
-
class: "t-transp mn-l-small"
|
10
|
-
}, E = {
|
11
|
-
key: 0,
|
12
|
-
class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
|
13
|
-
}, I = {
|
14
|
-
__name: "Field",
|
15
|
-
props: {
|
16
|
-
label: null,
|
17
|
-
symbol: null,
|
18
|
-
type: "text",
|
19
|
-
placeholder: "Enter something here",
|
20
|
-
field: null,
|
21
|
-
value: null,
|
22
|
-
validation: !1,
|
23
|
-
disabled: null,
|
24
|
-
tabindex: -1
|
25
|
-
},
|
26
|
-
emits: ["update:field", "focus", "blur"],
|
27
|
-
setup(e, { emit: b }) {
|
28
|
-
const a = b, s = e;
|
29
|
-
s.value && a("update:field", s.value);
|
30
|
-
const r = f(s.field);
|
31
|
-
return (m, l) => (n(), d(v, null, [
|
32
|
-
i("div", {
|
33
|
-
class: c([[
|
34
|
-
m.$attrs.class,
|
35
|
-
{
|
36
|
-
"bg-fourth-nano": e.validation
|
37
|
-
}
|
38
|
-
], "flex-center flex-nowrap flex"])
|
39
|
-
}, [
|
40
|
-
e.label ? (n(), d("div", w, [
|
41
|
-
i("span", null, o(e.label), 1)
|
42
|
-
])) : u("", !0),
|
43
|
-
i("div", F, [
|
44
|
-
e.type !== "textarea" ? (n(), d("input", {
|
45
|
-
key: 0,
|
46
|
-
onInput: l[0] || (l[0] = (t) => r.value = a("update:field", t.target.value)),
|
47
|
-
onFocus: l[1] || (l[1] = (t) => a("focus", t)),
|
48
|
-
onBlur: l[2] || (l[2] = (t) => a("blur", t)),
|
49
|
-
type: e.type,
|
50
|
-
class: "w-100",
|
51
|
-
value: e.field,
|
52
|
-
placeholder: e.placeholder,
|
53
|
-
tabindex: e.tabindex,
|
54
|
-
disabled: e.disabled
|
55
|
-
}, null, 40, B)) : (n(), d("textarea", {
|
56
|
-
key: 1,
|
57
|
-
onInput: l[3] || (l[3] = (t) => r.value = a("update:field", t.target.value)),
|
58
|
-
onFocus: l[4] || (l[4] = (t) => a("focus", t)),
|
59
|
-
onBlur: l[5] || (l[5] = (t) => a("blur", t)),
|
60
|
-
class: "w-100",
|
61
|
-
style: { resize: "vertical" },
|
62
|
-
value: e.field,
|
63
|
-
placeholder: e.placeholder,
|
64
|
-
tabindex: e.tabindex,
|
65
|
-
disabled: e.disabled
|
66
|
-
}, null, 40, p))
|
67
|
-
]),
|
68
|
-
x(m.$slots, "default", {}, void 0, !0),
|
69
|
-
e.symbol ? (n(), d("div", C, [
|
70
|
-
i("span", null, o(e.symbol), 1)
|
71
|
-
])) : u("", !0)
|
72
|
-
], 2),
|
73
|
-
y(h, { name: "fade" }, {
|
74
|
-
default: k(() => [
|
75
|
-
e.validation ? (n(), d("div", E, " * " + o(e.validation.message), 1)) : u("", !0)
|
76
|
-
]),
|
77
|
-
_: 1
|
78
|
-
})
|
79
|
-
], 64));
|
80
|
-
}
|
81
|
-
}, S = /* @__PURE__ */ g(I, [["__scopeId", "data-v-47c78b3c"]]);
|
82
|
-
export {
|
83
|
-
S as default
|
84
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue.cjs"),B=require("vue-i18n"),S={class:"pd-thin radius-extra flex-nowrap flex"},w=["innerHTML"],_={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["Lowest THC, please!","Something with banana flavors?","I'm in the mood for trippy vibes."],ru:["Я хочу самый низкий THC","Я хочу чего-нибудь бананового","Я хочу курнуть хейза"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(s,{emit:y}){const t=s,{t:F,locale:c}=B.useI18n();let r=e.ref(0),n=e.ref(t.input),p=e.ref(t.placeholder),i=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const g=y;function b(){g("action")}function T(a){g("update:input",a),f.value=a}function m(){r.value=(r.value+1)%t.placeholderTexts[c.value].length}function I(){i.value=!1,clearInterval(d.value),p.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(i.value=!0,p.value="",h())}function h(){let a=t.placeholderTexts[c.value][r.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{i.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,m(),a=t.placeholderTexts[c.value][r.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&h()}),e.watchEffect(()=>{i.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),T],placeholder:e.unref(i)?" ":e.unref(p),onInput:m,onFocus:I,onBlur:x,class:"w-100 p-medium t-regular uppercase pd-small"},null,8,["field","placeholder"]),s.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:b,class:"t-medium radius-big uppercase cursor-pointer pd-l-semi pd-r-semi w-max hover-bg-fifth t-semi transition-linear transition-timing-1 t-black bg-main",innerHTML:s.action},null,8,w)):e.createCommentVNode("",!0)]))}};exports.default=_;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as i, onMounted as S, watchEffect as F, openBlock as T, createElementBlock as b, createVNode as C, unref as v, isRef as H, createCommentVNode as _ } from "vue";
|
2
|
-
import L from "../Field/Field.
|
2
|
+
import L from "../Field/Field.vue.js";
|
3
3
|
import { useI18n as M } from "vue-i18n";
|
4
4
|
const N = { class: "pd-thin radius-extra flex-nowrap flex" }, V = ["innerHTML"], P = {
|
5
5
|
__name: "FieldBig",
|
@@ -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";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.vue2.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={class:"mn-b-small"},
|
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.vue2.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;
|