@ozdao/prometheus-framework 0.2.124 → 0.2.126

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. package/dist/gallery.server.js +0 -3
  2. package/dist/gallery.server.mjs +0 -3
  3. package/dist/main-Ba3zK8PO.js +92 -0
  4. package/dist/main-Btlny-89.mjs +14207 -0
  5. package/dist/main-D0va05OD.js +92 -0
  6. package/dist/main-o_2eO2tP.mjs +14208 -0
  7. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  9. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Button/Button.vue.js +94 -1
  11. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +1 -94
  13. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +75 -74
  15. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Field/Field.vue.js +84 -1
  17. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +1 -84
  19. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  21. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +77 -1
  23. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +1 -77
  25. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  26. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +45 -1
  27. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +1 -45
  29. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  30. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  31. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  43. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  45. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +3 -3
  47. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  49. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  52. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +2 -2
  53. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +3 -3
  57. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +3 -3
  59. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  63. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +2 -2
  67. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  69. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
  70. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
  71. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +3 -3
  73. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  75. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  81. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
  83. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +3 -3
  87. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  89. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  91. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
  93. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  105. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  107. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
  109. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  111. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
  117. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  121. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +3 -3
  123. package/dist/prometheus-framework.cjs.js +1 -1
  124. package/dist/prometheus-framework.es.js +1 -1
  125. package/dist/style.css +1 -1
  126. package/dist/web-BEJCRWop.mjs +54 -0
  127. package/dist/web-CkrMHYIU.js +1 -0
  128. package/dist/web-CvRd3N_J.mjs +54 -0
  129. package/dist/web-DEysqj0n.js +1 -0
  130. package/package.json +1 -1
  131. package/src/components/Feed/Feed.vue +6 -2
  132. package/src/modules/gallery/models/photo.model.js +0 -3
  133. package/src/modules/marketplace/components/pages/Catalog.vue +1 -0
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue2.cjs"),a={class:"bg-light pd-medium radius-big"},c={key:0,class:"mn-b-small flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-thin t-medium p-big"},u=["onClick"],d=e.createElementVNode("p",{class:"bg-main radius-small t-center i-medium"},"i",-1),m={key:1,class:"w-100"},h={__name:"Block",props:{title:{type:String,default:null},tooltip:{type:String,default:null},actions:{type:Array,default:null},placeholder:{type:String,default:"Nothing here"},options:{type:Object,default:{theme:"white"}}},setup(t){e.useSlots();const r=(n,o={})=>n?n(o).some(l=>Array.isArray(l.children)?!!l.children.length:l.type!==e.Comment):!1;return(n,o)=>(e.openBlock(),e.createElementBlock("div",a,[t.title||t.actions?(e.openBlock(),e.createElementBlock("div",c,[t.title?(e.openBlock(),e.createElementBlock("p",s,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("button",{onClick:l.function,class:e.normalizeClass(["pd-thin button-delete button",l.class||"bg-main radius-small t-center i-medium"])},e.toDisplayString(l.label),11,u))),256)),t.tooltip?(e.openBlock(),e.createBlock(i.default,{key:1,text:t.tooltip},{default:e.withCtx(()=>[d]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r(n.$slots.default)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.placeholder),1)),e.renderSlot(n.$slots,"default")]))}};exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.vue.cjs"),a={class:"bg-light pd-medium radius-big"},c={key:0,class:"mn-b-small flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-thin t-medium p-big"},u=["onClick"],d=e.createElementVNode("p",{class:"bg-main radius-small t-center i-medium"},"i",-1),m={key:1,class:"w-100"},h={__name:"Block",props:{title:{type:String,default:null},tooltip:{type:String,default:null},actions:{type:Array,default:null},placeholder:{type:String,default:"Nothing here"},options:{type:Object,default:{theme:"white"}}},setup(t){e.useSlots();const r=(n,o={})=>n?n(o).some(l=>Array.isArray(l.children)?!!l.children.length:l.type!==e.Comment):!1;return(n,o)=>(e.openBlock(),e.createElementBlock("div",a,[t.title||t.actions?(e.openBlock(),e.createElementBlock("div",c,[t.title?(e.openBlock(),e.createElementBlock("p",s,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,l=>(e.openBlock(),e.createElementBlock("button",{onClick:l.function,class:e.normalizeClass(["pd-thin button-delete button",l.class||"bg-main radius-small t-center i-medium"])},e.toDisplayString(l.label),11,u))),256)),t.tooltip?(e.openBlock(),e.createBlock(i.default,{key:1,text:t.tooltip},{default:e.withCtx(()=>[d]),_:1},8,["text"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r(n.$slots.default)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(t.placeholder),1)),e.renderSlot(n.$slots,"default")]))}};exports.default=h;
@@ -1,5 +1,5 @@
1
1
  import { useSlots as u, openBlock as l, createElementBlock as n, toDisplayString as o, createCommentVNode as r, Fragment as c, renderList as d, normalizeClass as m, createBlock as h, withCtx as f, renderSlot as p, createElementVNode as y, Comment as g } from "vue";
2
- import b from "../Tooltip/Tooltip.vue2.js";
2
+ import b from "../Tooltip/Tooltip.vue.js";
3
3
  const k = { class: "bg-light pd-medium radius-big" }, C = {
4
4
  key: 0,
5
5
  class: "mn-b-small flex-v-center flex-nowrap flex"
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../Loader/Loader.vue2.cjs");require("./Button.vue2.cjs");const v=["disabled"],b={key:2,class:"t-semi loading t-black"},m={key:3,class:"error"},y={key:0,class:"button-counter"},k={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},emits:["error"],setup(t,{emit:r}){const o=t,i=r,l=e.ref(null),a=e.ref(null),s=e.ref(!1),n=e.ref(!1);async function d(){l.value.style["pointer-events"]="none",a.value=null,s.value=!0;const c=()=>{l.value&&(l.value.classList.replace("bg-second","bg-main"),l.value.style.pointerEvents="auto",s.value=!1,n.value=!1,a.value=null)};try{await o.submit(),l.value.classList.replace("bg-main","bg-second"),s.value=!1,o.showSucces?(n.value=!0,setTimeout(c,500)):c(),o.callback&&setTimeout(()=>o.callback(),o.callbackDelay)}catch(u){i("error",u),l.value.classList.replace("bg-main","bg-fourth-nano"),a.value=o.error,setTimeout(()=>{c(),l.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(c,u)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(d,["stop"]),disabled:t.validation,ref_key:"button",ref:l,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!s.value&&!a.value&&!n.value||!t.showLoader?e.renderSlot(c.$slots,"default",{key:0}):s.value&&!a.value&&t.showLoader?(e.openBlock(),e.createBlock(f.default,{key:1,class:"pos-relative pos-t-0 pos-l-0 loading"})):n.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(t.text.success),1)):a.value?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",y,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,v))}};exports.default=k;
@@ -1 +1,94 @@
1
-
1
+ import { ref as n, openBlock as c, createElementBlock as r, withModifiers as y, createVNode as k, Transition as h, withCtx as p, renderSlot as g, createBlock as B, toDisplayString as i, createCommentVNode as f } from "vue";
2
+ import w from "../Loader/Loader.vue2.js";
3
+ import "./Button.vue2.js";
4
+ const L = ["disabled"], S = {
5
+ key: 2,
6
+ class: "t-semi loading t-black"
7
+ }, T = {
8
+ key: 3,
9
+ class: "error"
10
+ }, x = {
11
+ key: 0,
12
+ class: "button-counter"
13
+ }, j = {
14
+ __name: "Button",
15
+ props: {
16
+ submit: {
17
+ type: Function,
18
+ default: async () => {
19
+ console.log("Button click.");
20
+ }
21
+ },
22
+ text: {
23
+ type: Object,
24
+ default: (e) => (console.log(e), e = {
25
+ ...e.text,
26
+ success: "✔",
27
+ error: "✖"
28
+ })
29
+ },
30
+ counter: {
31
+ type: Object
32
+ },
33
+ callback: {
34
+ type: Function,
35
+ default: async () => {
36
+ console.log("Button callback.");
37
+ }
38
+ },
39
+ callbackDelay: {
40
+ type: Number,
41
+ default: 750
42
+ },
43
+ showSucces: {
44
+ type: Boolean,
45
+ default: !0
46
+ },
47
+ showLoader: {
48
+ type: Boolean,
49
+ default: !0
50
+ },
51
+ validation: {
52
+ type: Boolean,
53
+ default: !1
54
+ }
55
+ },
56
+ emits: ["error"],
57
+ setup(e, { emit: b }) {
58
+ const l = e, v = b, t = n(null), a = n(null), o = n(!1), u = n(!1);
59
+ async function m() {
60
+ t.value.style["pointer-events"] = "none", a.value = null, o.value = !0;
61
+ const s = () => {
62
+ t.value && (t.value.classList.replace("bg-second", "bg-main"), t.value.style.pointerEvents = "auto", o.value = !1, u.value = !1, a.value = null);
63
+ };
64
+ try {
65
+ await l.submit(), t.value.classList.replace("bg-main", "bg-second"), o.value = !1, l.showSucces ? (u.value = !0, setTimeout(s, 500)) : s(), l.callback && setTimeout(() => l.callback(), l.callbackDelay);
66
+ } catch (d) {
67
+ v("error", d), t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = l.error, setTimeout(() => {
68
+ s(), t.value.classList.replace("bg-fourth-nano", "bg-main");
69
+ }, 1330);
70
+ }
71
+ }
72
+ return (s, d) => (c(), r("button", {
73
+ onClick: y(m, ["stop"]),
74
+ disabled: e.validation,
75
+ ref_key: "button",
76
+ ref: t,
77
+ class: "button"
78
+ }, [
79
+ k(h, { name: "moveFromTopAbsolute" }, {
80
+ default: p(() => [
81
+ !o.value && !a.value && !u.value || !e.showLoader ? g(s.$slots, "default", { key: 0 }) : o.value && !a.value && e.showLoader ? (c(), B(w, {
82
+ key: 1,
83
+ class: "pos-relative pos-t-0 pos-l-0 loading"
84
+ })) : u.value && e.showSucces ? (c(), r("span", S, i(e.text.success), 1)) : a.value ? (c(), r("span", T, i(a.value), 1)) : f("", !0)
85
+ ]),
86
+ _: 3
87
+ }),
88
+ e.counter ? (c(), r("p", x, i(e.counter), 1)) : f("", !0)
89
+ ], 8, L));
90
+ }
91
+ };
92
+ export {
93
+ j as default
94
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../Loader/Loader.vue2.cjs");require("./Button.vue.cjs");const v=["disabled"],b={key:2,class:"t-semi loading t-black"},m={key:3,class:"error"},y={key:0,class:"button-counter"},k={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},emits:["error"],setup(t,{emit:r}){const o=t,i=r,l=e.ref(null),a=e.ref(null),s=e.ref(!1),n=e.ref(!1);async function d(){l.value.style["pointer-events"]="none",a.value=null,s.value=!0;const c=()=>{l.value&&(l.value.classList.replace("bg-second","bg-main"),l.value.style.pointerEvents="auto",s.value=!1,n.value=!1,a.value=null)};try{await o.submit(),l.value.classList.replace("bg-main","bg-second"),s.value=!1,o.showSucces?(n.value=!0,setTimeout(c,500)):c(),o.callback&&setTimeout(()=>o.callback(),o.callbackDelay)}catch(u){i("error",u),l.value.classList.replace("bg-main","bg-fourth-nano"),a.value=o.error,setTimeout(()=>{c(),l.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(c,u)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(d,["stop"]),disabled:t.validation,ref_key:"button",ref:l,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!s.value&&!a.value&&!n.value||!t.showLoader?e.renderSlot(c.$slots,"default",{key:0}):s.value&&!a.value&&t.showLoader?(e.openBlock(),e.createBlock(f.default,{key:1,class:"pos-relative pos-t-0 pos-l-0 loading"})):n.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",b,e.toDisplayString(t.text.success),1)):a.value?(e.openBlock(),e.createElementBlock("span",m,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",y,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,v))}};exports.default=k;
1
+ "use strict";
@@ -1,94 +1 @@
1
- import { ref as n, openBlock as c, createElementBlock as r, withModifiers as y, createVNode as k, Transition as h, withCtx as p, renderSlot as g, createBlock as B, toDisplayString as i, createCommentVNode as f } from "vue";
2
- import w from "../Loader/Loader.vue2.js";
3
- import "./Button.vue.js";
4
- const L = ["disabled"], S = {
5
- key: 2,
6
- class: "t-semi loading t-black"
7
- }, T = {
8
- key: 3,
9
- class: "error"
10
- }, x = {
11
- key: 0,
12
- class: "button-counter"
13
- }, j = {
14
- __name: "Button",
15
- props: {
16
- submit: {
17
- type: Function,
18
- default: async () => {
19
- console.log("Button click.");
20
- }
21
- },
22
- text: {
23
- type: Object,
24
- default: (e) => (console.log(e), e = {
25
- ...e.text,
26
- success: "✔",
27
- error: "✖"
28
- })
29
- },
30
- counter: {
31
- type: Object
32
- },
33
- callback: {
34
- type: Function,
35
- default: async () => {
36
- console.log("Button callback.");
37
- }
38
- },
39
- callbackDelay: {
40
- type: Number,
41
- default: 750
42
- },
43
- showSucces: {
44
- type: Boolean,
45
- default: !0
46
- },
47
- showLoader: {
48
- type: Boolean,
49
- default: !0
50
- },
51
- validation: {
52
- type: Boolean,
53
- default: !1
54
- }
55
- },
56
- emits: ["error"],
57
- setup(e, { emit: b }) {
58
- const l = e, v = b, t = n(null), a = n(null), o = n(!1), u = n(!1);
59
- async function m() {
60
- t.value.style["pointer-events"] = "none", a.value = null, o.value = !0;
61
- const s = () => {
62
- t.value && (t.value.classList.replace("bg-second", "bg-main"), t.value.style.pointerEvents = "auto", o.value = !1, u.value = !1, a.value = null);
63
- };
64
- try {
65
- await l.submit(), t.value.classList.replace("bg-main", "bg-second"), o.value = !1, l.showSucces ? (u.value = !0, setTimeout(s, 500)) : s(), l.callback && setTimeout(() => l.callback(), l.callbackDelay);
66
- } catch (d) {
67
- v("error", d), t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = l.error, setTimeout(() => {
68
- s(), t.value.classList.replace("bg-fourth-nano", "bg-main");
69
- }, 1330);
70
- }
71
- }
72
- return (s, d) => (c(), r("button", {
73
- onClick: y(m, ["stop"]),
74
- disabled: e.validation,
75
- ref_key: "button",
76
- ref: t,
77
- class: "button"
78
- }, [
79
- k(h, { name: "moveFromTopAbsolute" }, {
80
- default: p(() => [
81
- !o.value && !a.value && !u.value || !e.showLoader ? g(s.$slots, "default", { key: 0 }) : o.value && !a.value && e.showLoader ? (c(), B(w, {
82
- key: 1,
83
- class: "pos-relative pos-t-0 pos-l-0 loading"
84
- })) : u.value && e.showSucces ? (c(), r("span", S, i(e.text.success), 1)) : a.value ? (c(), r("span", T, i(a.value), 1)) : f("", !0)
85
- ]),
86
- _: 3
87
- }),
88
- e.counter ? (c(), r("p", x, i(e.counter), 1)) : f("", !0)
89
- ], 8, L));
90
- }
91
- };
92
- export {
93
- j as default
94
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const w=require("../EmptyState/EmptyState.vue.cjs"),y=require("../Dropdown/Dropdown.vue.cjs"),M=require("../DatePicker/Calendar.vue2.cjs"),S=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),N=require("../../modules/globals/components/blocks/BlockSorting.vue.cjs"),q=require("../../modules/globals/components/elements/ButtonSort.vue.cjs"),x=require("../../modules/globals/components/elements/ButtonDate.vue.cjs");require("./Feed.vue2.cjs");const E={key:0,class:"flex-nowrap flex gap-thin mn-b-thin"},h=null,O={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:date","update:items"],setup(o){const v=e.useModel(o,"search"),l=e.useModel(o,"sort"),r=e.useModel(o,"date"),m=e.useModel(o,"items"),s=o,n=e.ref(m.value||[]),u=e.ref(!1);let p=e.ref(!0),k=e.ref(null),f=e.ref(s.options.skip?s.options.skip:0),i=e.ref(s.options.limit?s.options.limit:10),g=e.ref("");function B(t){g.value=t,f.value=0,i.value=10,c()}const b=async()=>{if(u.value){f.value+=i.value;const t=await s.store.read({skip:f.value,limit:i.value,search:g.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:l.value?l.value.param:null,sortOrder:l.value?l.value.order:null,...s.options});t.length===0||t.length<i.value?u.value=!1:u.value=!0,n.value=[...n.value,...t],m.value&&(m.value=n.value)}},c=async()=>{console.log("Date is",r.value);const t=await s.store.read({skip:f.value,limit:i.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:l.value?l.value.param:null,sortOrder:l.value?l.value.order:null,search:g.value,...s.options});t.length===0||t.length<i.value?u.value=!1:u.value=!0,n.value=t,m.value&&(m.value=n.value),p.value=!1};return e.watch(()=>s.external,(t,a)=>{t!==a&&c()},{deep:!0}),e.watch(()=>r.value,(t,a)=>{t!==a&&c()},{deep:!0}),e.watch(()=>{var t;return(t=l.value)==null?void 0:t.order},(t,a)=>{t!==a&&c()},{deep:!0}),e.watch(()=>{var t;return(t=l.value)==null?void 0:t.param},(t,a)=>{t!==a&&c()},{deep:!0}),e.watch(()=>s.options,(t,a)=>{(t.organization!==a.organization||t.categories!==a.categories||t.prices!==a.prices||t.delivery!==a.delivery||t.search!==a.search||t.status!==a.status||t.hidden!==a.hidden||t.type!==a.type||t.tags!==a.tags)&&c()},{deep:!0}),e.onMounted(async()=>{await c(),typeof window<"u"&&!s.showLoadMore&&(h=new IntersectionObserver(t=>{t.some(a=>a.isIntersecting)&&b()}),h.observe(k.value))}),e.onUnmounted(()=>{h&&h.disconnect()}),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[v.value||r.value||l.value?(e.openBlock(),e.createElementBlock("div",E,[v.value?(e.openBlock(),e.createBlock(S.default,{key:0,placeholder:v.value.placeholder||"Search...",class:e.normalizeClass(v.value.class||"bg-light"),onSearch:B},null,8,["placeholder","class"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(y.default,{key:1,label:{component:x.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:v.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(M.default,{date:r.value,"onUpdate:date":a[0]||(a[0]=d=>r.value=d),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(y.default,{key:2,label:{component:q.default,props:{order:l.value.order},class:"w-1r"},class:e.normalizeClass([l.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:v.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{param:l.value.param,"onUpdate:param":a[1]||(a[1]=d=>l.value.param=d),order:l.value.order,"onUpdate:order":a[2]||(a[2]=d=>l.value.order=d),options:l.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition",class:e.normalizeClass(["o-hidden bg-light radius-big",t.$attrs.class])},{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(i),d=>(e.openBlock(),e.createBlock(C.default,{key:"skeleton-"+d}))),128)):e.createCommentVNode("",!0)]),_:1},8,["class"])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length<1?(e.openBlock(),e.createBlock(w.default,{key:0,title:o.states.empty.title,description:o.states.empty.description,action:o.states.empty.action,callback:o.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(p)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),o.showLoadMore&&u.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:b,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:k,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const w=require("../EmptyState/EmptyState.vue.cjs"),y=require("../Dropdown/Dropdown.vue.cjs"),M=require("../DatePicker/Calendar.vue2.cjs"),S=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),N=require("../../modules/globals/components/blocks/BlockSorting.vue.cjs"),q=require("../../modules/globals/components/elements/ButtonSort.vue.cjs"),x=require("../../modules/globals/components/elements/ButtonDate.vue.cjs");require("./Feed.vue2.cjs");const E={key:0,class:"flex-nowrap flex gap-thin mn-b-thin"},O={__name:"Feed",props:e.mergeModels({showLoadMore:{type:Boolean,default:!0},search:{type:[Boolean,Object],default:!1},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},external:{type:Boolean,default:!1},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},{search:{},searchModifiers:{},sort:{},sortModifiers:{},date:{},dateModifiers:{},items:{},itemsModifiers:{}}),emits:["update:search","update:sort","update:date","update:items"],setup(o){const m=e.useModel(o,"search"),l=e.useModel(o,"sort"),r=e.useModel(o,"date"),p=e.useModel(o,"items"),s=o,n=e.ref(p.value||[]),i=e.ref(!1);let f=e.ref(!0),k=e.ref(null),u=e.ref(s.options.skip?s.options.skip:0),c=e.ref(s.options.limit?s.options.limit:10),g=e.ref("");function B(t){g.value=t,u.value=0,c.value=10,d()}const b=async()=>{if(i.value){u.value+=c.value;const t=await s.store.read({skip:u.value,limit:c.value,search:g.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:l.value?l.value.param:null,sortOrder:l.value?l.value.order:null,...s.options});t.length===0||t.length<c.value?i.value=!1:i.value=!0,n.value=[...n.value,...t],p.value&&(p.value=n.value)}},d=async()=>{const t=await s.store.read({skip:u.value,limit:c.value,dateStart:r.value?r.value.start:null,dateEnd:r.value?r.value.end:null,sortParam:l.value?l.value.param:null,sortOrder:l.value?l.value.order:null,search:g.value,...s.options});t.length===0||t.length<c.value?i.value=!1:i.value=!0,n.value=t,p.value&&(p.value=n.value),f.value=!1};e.watch(()=>s.external,(t,a)=>{t!==a&&(u.value=0,d())},{deep:!0}),e.watch(()=>r.value,(t,a)=>{t!==a&&(u.value=0,d())},{deep:!0}),e.watch(()=>{var t;return(t=l.value)==null?void 0:t.order},(t,a)=>{t!==a&&(u.value=0,d())},{deep:!0}),e.watch(()=>{var t;return(t=l.value)==null?void 0:t.param},(t,a)=>{t!==a&&(u.value=0,d())},{deep:!0}),e.watch(()=>s.options,(t,a)=>{(t.organization!==a.organization||t.categories!==a.categories||t.prices!==a.prices||t.delivery!==a.delivery||t.search!==a.search||t.status!==a.status||t.hidden!==a.hidden||t.type!==a.type||t.tags!==a.tags)&&(u.value=0,d())},{deep:!0});let h=null;return e.onMounted(async()=>{await d(),typeof window<"u"&&!s.showLoadMore&&(h=new IntersectionObserver(t=>{t.some(a=>a.isIntersecting)&&b()}),h.observe(k.value))}),e.onUnmounted(()=>{h&&h.disconnect()}),(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[m.value||r.value||l.value?(e.openBlock(),e.createElementBlock("div",E,[m.value?(e.openBlock(),e.createBlock(S.default,{key:0,placeholder:m.value.placeholder||"Search...",class:e.normalizeClass(m.value.class||"bg-light"),onSearch:B},null,8,["placeholder","class"])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createBlock(y.default,{key:1,label:{component:x.default,props:{date:r.value}},class:e.normalizeClass([r.value.class||"bg-light","flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(M.default,{date:r.value,"onUpdate:date":a[0]||(a[0]=v=>r.value=v),locale:t.$i18n.locale,allowRange:!0,class:"radius-semi w-100 o-hidden bg-light"},null,8,["date","locale"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createBlock(y.default,{key:2,label:{component:q.default,props:{order:l.value.order},class:"w-1r"},class:e.normalizeClass([l.value.class||"bg-light","radius-extra aspect-1x1 h-100"]),align:m.value?"right":"left"},{default:e.withCtx(()=>[e.createVNode(N.default,{param:l.value.param,"onUpdate:param":a[1]||(a[1]=v=>l.value.param=v),order:l.value.order,"onUpdate:order":a[2]||(a[2]=v=>l.value.order=v),options:l.value.options,class:"h-100 pd-small radius-semi t-white bg-black"},null,8,["param","order","options"])]),_:1},8,["label","class","align"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:1,tag:"ul",name:"scaleTransition",class:e.normalizeClass(["o-hidden bg-light radius-big",t.$attrs.class])},{default:e.withCtx(()=>[e.unref(f)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(c),v=>(e.openBlock(),e.createBlock(C.default,{key:"skeleton-"+v}))),128)):e.createCommentVNode("",!0)]),_:1},8,["class"])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(f)&&n.value.length<1?(e.openBlock(),e.createBlock(w.default,{key:0,title:o.states.empty.title,description:o.states.empty.description,action:o.states.empty.action,callback:o.states.empty.callback,class:"pd-medium mn-b-thin bg-light radius-big"},null,8,["title","description","action","callback"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"feed",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(f)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value}):e.createCommentVNode("",!0),o.showLoadMore&&i.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:b,class:"col-w-100 w-100 bg-main button"}," Load More ")):e.createCommentVNode("",!0),e.createElementVNode("div",{key:"sentinel",ref_key:"sentinel",ref:k,class:"sentinel"},null,512)]),_:3},8,["class"])],64))}};exports.default=O;
@@ -1,4 +1,4 @@
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";
1
+ import { mergeModels as U, useModel as $, ref as p, watch as y, onMounted as z, onUnmounted as F, openBlock as i, createElementBlock as L, Fragment as C, createBlock as h, normalizeClass as k, createCommentVNode as o, withCtx as M, createVNode as O, unref as w, TransitionGroup as E, renderList as N, Transition as P, renderSlot as D, createElementVNode as G } from "vue";
2
2
  import R from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
3
3
  import "../Loader/Loader.vue.js";
4
4
  import q from "../EmptyState/EmptyState.vue.js";
@@ -12,7 +12,7 @@ import "./Feed.vue2.js";
12
12
  const W = {
13
13
  key: 0,
14
14
  class: "flex-nowrap flex gap-thin mn-b-thin"
15
- }, O = null, ie = {
15
+ }, ie = {
16
16
  __name: "Feed",
17
17
  props: /* @__PURE__ */ U({
18
18
  showLoadMore: {
@@ -69,83 +69,84 @@ const W = {
69
69
  }),
70
70
  emits: ["update:search", "update:sort", "update:date", "update:items"],
71
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("");
72
+ const f = $(r, "search"), t = $(r, "sort"), l = $(r, "date"), g = $(r, "items"), s = r, u = p(g.value || []), d = p(!1);
73
+ let b = p(!0), B = p(null), n = p(s.options.skip ? s.options.skip : 0), c = p(s.options.limit ? s.options.limit : 10), x = p("");
74
74
  function T(e) {
75
- x.value = e, w.value = 0, d.value = 10, c();
75
+ x.value = e, n.value = 0, c.value = 10, v();
76
76
  }
77
77
  const j = async () => {
78
- if (u.value) {
79
- w.value += d.value;
78
+ if (d.value) {
79
+ n.value += c.value;
80
80
  const e = await s.store.read({
81
- skip: w.value,
82
- limit: d.value,
81
+ skip: n.value,
82
+ limit: c.value,
83
83
  search: x.value,
84
84
  dateStart: l.value ? l.value.start : null,
85
85
  dateEnd: l.value ? l.value.end : null,
86
- sortParam: a.value ? a.value.param : null,
87
- sortOrder: a.value ? a.value.order : null,
86
+ sortParam: t.value ? t.value.param : null,
87
+ sortOrder: t.value ? t.value.order : null,
88
88
  ...s.options
89
89
  });
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);
90
+ e.length === 0 || e.length < c.value ? d.value = !1 : d.value = !0, u.value = [...u.value, ...e], g.value && (g.value = u.value);
91
91
  }
92
- }, c = async () => {
93
- console.log("Date is", l.value);
92
+ }, v = async () => {
94
93
  const e = await s.store.read({
95
- skip: w.value,
96
- limit: d.value,
94
+ skip: n.value,
95
+ limit: c.value,
97
96
  dateStart: l.value ? l.value.start : null,
98
97
  dateEnd: l.value ? l.value.end : null,
99
- sortParam: a.value ? a.value.param : null,
100
- sortOrder: a.value ? a.value.order : null,
98
+ sortParam: t.value ? t.value.param : null,
99
+ sortOrder: t.value ? t.value.order : null,
101
100
  search: x.value,
102
101
  ...s.options
103
102
  });
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;
103
+ e.length === 0 || e.length < c.value ? d.value = !1 : d.value = !0, u.value = e, g.value && (g.value = u.value), b.value = !1;
105
104
  };
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(() => {
105
+ y(() => s.external, (e, a) => {
106
+ e !== a && (n.value = 0, v());
107
+ }, { deep: !0 }), y(() => l.value, (e, a) => {
108
+ e !== a && (n.value = 0, v());
109
+ }, { deep: !0 }), y(() => {
111
110
  var e;
112
- return (e = a.value) == null ? void 0 : e.order;
113
- }, (e, t) => {
114
- e !== t && c();
115
- }, { deep: !0 }), b(() => {
111
+ return (e = t.value) == null ? void 0 : e.order;
112
+ }, (e, a) => {
113
+ e !== a && (n.value = 0, v());
114
+ }, { deep: !0 }), y(() => {
116
115
  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));
116
+ return (e = t.value) == null ? void 0 : e.param;
117
+ }, (e, a) => {
118
+ e !== a && (n.value = 0, v());
119
+ }, { deep: !0 }), y(() => s.options, (e, a) => {
120
+ (e.organization !== a.organization || e.categories !== a.categories || e.prices !== a.prices || e.delivery !== a.delivery || e.search !== a.search || e.status !== a.status || e.hidden !== a.hidden || e.type !== a.type || e.tags !== a.tags) && (n.value = 0, v());
121
+ }, { deep: !0 });
122
+ let S = null;
123
+ return z(async () => {
124
+ await v(), typeof window < "u" && !s.showLoadMore && (S = new IntersectionObserver((e) => {
125
+ e.some((a) => a.isIntersecting) && j();
126
+ }), S.observe(B.value));
126
127
  }), F(() => {
127
- O && O.disconnect();
128
- }), (e, t) => (i(), $(C, null, [
129
- p.value || l.value || a.value ? (i(), $("div", W, [
130
- p.value ? (i(), f(H, {
128
+ S && S.disconnect();
129
+ }), (e, a) => (i(), L(C, null, [
130
+ f.value || l.value || t.value ? (i(), L("div", W, [
131
+ f.value ? (i(), h(H, {
131
132
  key: 0,
132
- placeholder: p.value.placeholder || "Search...",
133
- class: y(p.value.class || "bg-light"),
133
+ placeholder: f.value.placeholder || "Search...",
134
+ class: k(f.value.class || "bg-light"),
134
135
  onSearch: T
135
136
  }, null, 8, ["placeholder", "class"])) : o("", !0),
136
- l.value ? (i(), f(I, {
137
+ l.value ? (i(), h(I, {
137
138
  key: 1,
138
139
  label: {
139
140
  component: Q,
140
141
  props: { date: l.value }
141
142
  },
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"
143
+ class: k([l.value.class || "bg-light", "flex-child flex-child-shrink-0 pd-r-small pd-l-small pd-thin bg-light radius-big"]),
144
+ align: f.value ? "right" : "left"
144
145
  }, {
145
- default: k(() => [
146
- L(A, {
146
+ default: M(() => [
147
+ O(A, {
147
148
  date: l.value,
148
- "onUpdate:date": t[0] || (t[0] = (v) => l.value = v),
149
+ "onUpdate:date": a[0] || (a[0] = (m) => l.value = m),
149
150
  locale: e.$i18n.locale,
150
151
  allowRange: !0,
151
152
  class: "radius-semi w-100 o-hidden bg-light"
@@ -153,45 +154,45 @@ const W = {
153
154
  ]),
154
155
  _: 1
155
156
  }, 8, ["label", "class", "align"])) : o("", !0),
156
- a.value ? (i(), f(I, {
157
+ t.value ? (i(), h(I, {
157
158
  key: 2,
158
159
  label: {
159
160
  component: K,
160
- props: { order: a.value.order },
161
+ props: { order: t.value.order },
161
162
  class: "w-1r"
162
163
  },
163
- class: y([a.value.class || "bg-light", "radius-extra aspect-1x1 h-100"]),
164
- align: p.value ? "right" : "left"
164
+ class: k([t.value.class || "bg-light", "radius-extra aspect-1x1 h-100"]),
165
+ align: f.value ? "right" : "left"
165
166
  }, {
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,
167
+ default: M(() => [
168
+ O(J, {
169
+ param: t.value.param,
170
+ "onUpdate:param": a[1] || (a[1] = (m) => t.value.param = m),
171
+ order: t.value.order,
172
+ "onUpdate:order": a[2] || (a[2] = (m) => t.value.order = m),
173
+ options: t.value.options,
173
174
  class: "h-100 pd-small radius-semi t-white bg-black"
174
175
  }, null, 8, ["param", "order", "options"])
175
176
  ]),
176
177
  _: 1
177
178
  }, 8, ["label", "class", "align"])) : o("", !0)
178
179
  ])) : o("", !0),
179
- M(h) ? (i(), f(E, {
180
+ w(b) ? (i(), h(E, {
180
181
  key: 1,
181
182
  tag: "ul",
182
183
  name: "scaleTransition",
183
- class: y(["o-hidden bg-light radius-big", e.$attrs.class])
184
+ class: k(["o-hidden bg-light radius-big", e.$attrs.class])
184
185
  }, {
185
- default: k(() => [
186
- M(h) ? (i(!0), $(C, { key: 0 }, N(M(d), (v) => (i(), f(R, {
187
- key: "skeleton-" + v
186
+ default: M(() => [
187
+ w(b) ? (i(!0), L(C, { key: 0 }, N(w(c), (m) => (i(), h(R, {
188
+ key: "skeleton-" + m
188
189
  }))), 128)) : o("", !0)
189
190
  ]),
190
191
  _: 1
191
192
  }, 8, ["class"])) : o("", !0),
192
- L(D, { name: "scaleTransition" }, {
193
- default: k(() => [
194
- !M(h) && n.value.length < 1 ? (i(), f(q, {
193
+ O(P, { name: "scaleTransition" }, {
194
+ default: M(() => [
195
+ !w(b) && u.value.length < 1 ? (i(), h(q, {
195
196
  key: 0,
196
197
  title: r.states.empty.title,
197
198
  description: r.states.empty.description,
@@ -202,17 +203,17 @@ const W = {
202
203
  ]),
203
204
  _: 1
204
205
  }),
205
- L(E, {
206
+ O(E, {
206
207
  tag: "ul",
207
208
  name: "feed",
208
- class: y(e.$attrs.class)
209
+ class: k(e.$attrs.class)
209
210
  }, {
210
- default: k(() => [
211
- !M(h) && n.value.length > 0 ? P(e.$slots, "default", {
211
+ default: M(() => [
212
+ !w(b) && u.value.length > 0 ? D(e.$slots, "default", {
212
213
  key: 0,
213
- items: n.value
214
+ items: u.value
214
215
  }) : o("", !0),
215
- r.showLoadMore && u.value && n.value.length > 0 ? (i(), $("button", {
216
+ r.showLoadMore && d.value && u.value.length > 0 ? (i(), L("button", {
216
217
  key: 1,
217
218
  onClick: j,
218
219
  class: "col-w-100 w-100 bg-main button"
@@ -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";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue.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
+ "use strict";