@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.
Files changed (170) hide show
  1. package/dist/community.server.js +1 -1
  2. package/dist/community.server.mjs +1 -1
  3. package/dist/events.server.js +1 -1
  4. package/dist/events.server.mjs +1 -1
  5. package/dist/gallery.server.js +9 -3
  6. package/dist/gallery.server.mjs +9 -3
  7. package/dist/main-DL3vRQCi.js +92 -0
  8. package/dist/main-Ds3Z5x5d.mjs +14206 -0
  9. package/dist/main.css +1 -1
  10. package/dist/orders.server.js +1 -1
  11. package/dist/orders.server.mjs +1 -1
  12. package/dist/organizations.server.js +1 -1
  13. package/dist/organizations.server.mjs +1 -1
  14. package/dist/products.server.js +1 -1
  15. package/dist/products.server.mjs +1 -1
  16. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  18. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +116 -117
  20. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +58 -1
  22. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -58
  24. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +123 -109
  26. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +32 -26
  28. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
  30. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -1
  32. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
  34. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  35. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
  36. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
  38. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  39. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
  40. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  42. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  48. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +16 -17
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
  52. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  53. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
  54. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  60. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +44 -69
  64. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +1 -0
  65. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.js +64 -0
  66. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue2.cjs +1 -0
  67. package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue2.js +1 -0
  68. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +101 -14
  70. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +165 -102
  72. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +3 -3
  74. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +38 -1
  76. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +3 -3
  78. package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -21
  80. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js +3 -3
  82. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js +1 -1
  84. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js +5 -5
  86. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js +1 -1
  88. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
  92. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
  94. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  96. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  98. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  99. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  100. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  101. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  102. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  103. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  111. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  114. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  115. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  116. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  120. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  128. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  131. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  132. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +31 -32
  134. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  136. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  138. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
  140. package/dist/prometheus-framework.cjs.js +1 -1
  141. package/dist/prometheus-framework.es.js +1 -1
  142. package/dist/queryProcessor-g8208K6g.mjs +178 -0
  143. package/dist/queryProcessor-haY_gPGg.js +177 -0
  144. package/dist/style.css +1 -1
  145. package/dist/wallet.server.js +1 -1
  146. package/dist/wallet.server.mjs +1 -1
  147. package/dist/web-B8tq3Fda.mjs +54 -0
  148. package/dist/web-ByJkgGrt.js +1 -0
  149. package/package.json +1 -1
  150. package/src/components/DatePicker/Calendar.vue +82 -55
  151. package/src/components/Feed/Feed.vue +45 -16
  152. package/src/components/FieldTags/BlockTags.vue +30 -23
  153. package/src/components/Popup/Popup.vue +2 -2
  154. package/src/modules/events/components/pages/Events.vue +2 -48
  155. package/src/modules/gallery/components/blocks/PhotoViewer.vue +115 -0
  156. package/src/modules/gallery/components/pages/Gallery.vue +103 -6
  157. package/src/modules/gallery/components/sections/BackofficeGallery.vue +100 -32
  158. package/src/modules/gallery/controllers/gallery.controller.js +45 -38
  159. package/src/modules/globals/components/blocks/CardHeader.vue +1 -1
  160. package/src/modules/globals/components/elements/ButtonDate.vue +37 -43
  161. package/src/modules/globals/components/layouts/Client.vue +1 -1
  162. package/src/modules/globals/components/sections/SectionPageTitle.vue +1 -1
  163. package/src/modules/globals/controllers/utils/queryProcessor.js +21 -2
  164. package/src/modules/globals/services/globals.store.js +13 -17
  165. package/src/modules/icons/skeletons/SkeletonBlogpost.vue +1 -1
  166. package/src/modules/icons/skeletons/SkeletonEvent.vue +1 -1
  167. package/src/modules/icons/skeletons/SkeletonEventShort.vue +1 -1
  168. package/src/modules/icons/skeletons/SkeletonOrganization.vue +1 -1
  169. package/src/modules/products/components/sections/FilterProducts.vue +2 -1
  170. package/src/modules/gallery/components/sections/GalleryWithCategories.vue +0 -176
@@ -1,21 +1,20 @@
1
- import { mergeModels as D, useModel as M, ref as i, watch as U, onMounted as A, onUnmounted as G, openBlock as o, createElementBlock as x, Fragment as z, createBlock as h, normalizeClass as g, createCommentVNode as u, createElementVNode as E, createVNode as p, withCtx as b, unref as y, TransitionGroup as F, renderList as R, Transition as q, renderSlot as H } from "vue";
2
- import J from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
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 K from "../EmptyState/EmptyState.vue.js";
5
- import N from "../Dropdown/Dropdown.vue2.js";
6
- import Q from "../DatePicker/Calendar.vue2.js";
7
- import W from "../../modules/globals/components/blocks/BlockSearch.vue.js";
8
- import X from "../../modules/globals/components/blocks/BlockSorting.vue.js";
9
- import Y from "../../modules/globals/components/elements/ButtonSort.vue.js";
10
- import Z from "../../modules/globals/components/elements/ButtonDate.vue2.js";
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 V = {
12
+ const W = {
14
13
  key: 0,
15
14
  class: "flex-nowrap flex gap-thin mn-b-thin"
16
- }, ee = { class: "flex-center flex pd-thin bg-light radius-extra aspect-1x1 h-100" }, O = null, pe = {
15
+ }, O = null, ie = {
17
16
  __name: "Feed",
18
- props: /* @__PURE__ */ D({
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(l) {
73
- var I, T;
74
- const m = M(l, "search"), s = M(l, "sort"), $ = M(l, "date"), f = M(l, "items"), a = l, r = i(f.value || []), n = i(!1);
75
- let v = i(!0), L = i(null), k = i(a.options.skip ? a.options.skip : 0), c = i(a.options.limit ? a.options.limit : 10), B = i(((I = s.value) == null ? void 0 : I.param) || "createdAt"), j = i(((T = s.value) == null ? void 0 : T.order) || "asc"), S = i("");
76
- function P(e) {
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 C = async () => {
80
- if (n.value) {
81
- k.value += c.value;
82
- const e = await a.store.read({
83
- skip: k.value,
84
- limit: c.value,
85
- search: S.value,
86
- sortParam: B.value,
87
- sortOrder: j.value,
88
- ...a.options
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 < c.value ? n.value = !1 : n.value = !0, r.value = [...r.value, ...e], f.value && (f.value = r.value);
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
- }, w = async () => {
93
- const e = await a.store.read({
94
- skip: k.value,
95
- limit: c.value,
96
- sortParam: B.value,
97
- sortOrder: j.value,
98
- search: S.value,
99
- ...a.options
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 < c.value ? n.value = !1 : n.value = !0, r.value = e, f.value && (f.value = r.value), v.value = !1;
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 U(() => a.external, (e, t) => {
104
- e !== t && w();
105
- }, { deep: !0 }), U(() => a.options, (e, t) => {
106
- (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) && w();
107
- }, { deep: !0 }), A(async () => {
108
- await w(), typeof window < "u" && !a.showLoadMore && (O = new IntersectionObserver((e) => {
109
- e.some((t) => t.isIntersecting) && C();
110
- }), O.observe(L.value));
111
- }), G(() => {
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) => (o(), x(z, null, [
114
- m.value ? (o(), x("div", V, [
115
- m.value ? (o(), h(W, {
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: m.value.placeholder || "Search...",
118
- class: g(m.value.class || "bg-light"),
119
- onSearch: P
120
- }, null, 8, ["placeholder", "class"])) : u("", !0),
121
- E("div", ee, [
122
- p(_, { class: "w-1r h-auto" })
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: Z
139
+ component: Q,
140
+ props: { date: l.value }
127
141
  },
128
- class: g([m.value.class || "bg-light", "flex-child flex-child-grow-1 flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),
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: b(() => [
132
- p(Q, {
133
- date: $.value,
134
- "onUpdate:date": t[0] || (t[0] = (d) => $.value = d),
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
- s.value ? (o(), h(N, {
143
- key: 1,
155
+ }, 8, ["label", "class", "align"])) : o("", !0),
156
+ a.value ? (i(), f(I, {
157
+ key: 2,
144
158
  label: {
145
- component: Y,
146
- props: { order: s.value.order },
159
+ component: K,
160
+ props: { order: a.value.order },
147
161
  class: "w-1r"
148
162
  },
149
- class: g([m.value.class || "bg-light", "radius-extra aspect-1x1 h-100"]),
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: b(() => [
153
- p(X, {
154
- param: s.value.param,
155
- "onUpdate:param": t[1] || (t[1] = (d) => s.value.param = d),
156
- order: s.value.order,
157
- "onUpdate:order": t[2] || (t[2] = (d) => s.value.order = d),
158
- options: s.value.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"])) : u("", !0)
164
- ])) : u("", !0),
165
- y(v) ? (o(), h(F, {
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: g(["o-hidden bg-light radius-big", e.$attrs.class])
183
+ class: y(["o-hidden bg-light radius-big", e.$attrs.class])
170
184
  }, {
171
- default: b(() => [
172
- y(v) ? (o(!0), x(z, { key: 0 }, R(y(c), (d) => (o(), h(J, {
173
- key: "skeleton-" + d
174
- }))), 128)) : u("", !0)
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"])) : u("", !0),
178
- p(q, { name: "scaleTransition" }, {
179
- default: b(() => [
180
- !y(v) && r.value.length < 1 ? (o(), h(K, {
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: l.states.empty.title,
183
- description: l.states.empty.description,
184
- action: l.states.empty.action,
185
- callback: l.states.empty.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"])) : u("", !0)
201
+ }, null, 8, ["title", "description", "action", "callback"])) : o("", !0)
188
202
  ]),
189
203
  _: 1
190
204
  }),
191
- p(F, {
205
+ L(E, {
192
206
  tag: "ul",
193
207
  name: "feed",
194
- class: g(e.$attrs.class)
208
+ class: y(e.$attrs.class)
195
209
  }, {
196
- default: b(() => [
197
- !y(v) && r.value.length > 0 ? H(e.$slots, "default", {
210
+ default: k(() => [
211
+ !M(h) && n.value.length > 0 ? P(e.$slots, "default", {
198
212
  key: 0,
199
- items: r.value
200
- }) : u("", !0),
201
- l.showLoadMore && n.value && r.value.length > 0 ? (o(), x("button", {
213
+ items: n.value
214
+ }) : o("", !0),
215
+ r.showLoadMore && u.value && n.value.length > 0 ? (i(), $("button", {
202
216
  key: 1,
203
- onClick: C,
217
+ onClick: j,
204
218
  class: "col-w-100 w-100 bg-main button"
205
- }, " Load More ")) : u("", !0),
206
- E("div", {
219
+ }, " Load More ")) : o("", !0),
220
+ G("div", {
207
221
  key: "sentinel",
208
222
  ref_key: "sentinel",
209
- ref: L,
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
- pe as default
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={class:"mn-b-medium"},_=e.createElementVNode("p",{class:"p-small mn-b-thin"},"Suggested:",-1),k=["onClick"],B={key:1},T={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(d,{emit:m}){const r=m,u=d,o=e.ref(""),s=e.ref([]),c=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);u.tags&&(s.value=u.tags.map(t=>({text:t})));const i=e.computed(()=>c.value.filter(t=>t.text.toLowerCase().includes(o.value.toLowerCase()))),n=e.computed(()=>c.value.filter(t=>!s.value.some(a=>a.text===t.text)));function g(t){s.value.push(t),r("tags-changed",s.value.map(a=>a.text))}function p(t){s.value=t,r("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[f,e.createVNode(h.default,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),tags:s.value,"autocomplete-items":i.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"]),e.createElementVNode("p",x,[_,n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.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!==n.value.length-1}])},e.toDisplayString(l.text),11,k))),256)):(e.openBlock(),e.createElementBlock("span",B,"You added all suggested tags"))])]))}};exports.default=T;
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 u, computed as g, openBlock as o, createElementBlock as l, createVNode as k, createElementVNode as m, Fragment as C, renderList as T, normalizeClass as y, toDisplayString as b } from "vue";
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 w = /* @__PURE__ */ m("h5", { class: "mn-b-thin" }, "Tags (maximum 20):", -1), B = { class: "mn-b-medium" }, I = /* @__PURE__ */ m("p", { class: "p-small mn-b-thin" }, "Suggested:", -1), L = ["onClick"], S = { key: 1 }, z = {
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: ["tags"],
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 d = h, i = p, n = u(""), a = u([]), c = u([
10
- { text: "story" },
11
- { text: "news" },
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), d("tags-changed", a.value.map((t) => t.text));
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, d("tags-changed", a.value.map((t) => t.text));
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
- w,
26
- k(V, {
27
- modelValue: n.value,
28
- "onUpdate:modelValue": t[0] || (t[0] = (s) => n.value = 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
- m("p", B, [
43
- I,
44
- r.value.length > 0 ? (o(!0), l(C, { key: 0 }, T(r.value, (s, _) => (o(), l("span", {
45
- onClick: (D) => x(s),
46
- class: y(["cursor-pointer t-medium ti-tag-toDefactor", { "mn-r-micro": _ !== r.value.length - 1 }])
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
- z as default
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"},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
+ "use strict";
@@ -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.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";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../FieldPhone/click-outside.cjs");require("./Select.vue2.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
+ "use strict";