@ozdao/prometheus-framework 0.2.66 → 0.2.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. package/dist/community.server.js +3 -3
  2. package/dist/community.server.mjs +2 -2
  3. package/dist/events.server.js +3 -3
  4. package/dist/events.server.mjs +2 -2
  5. package/dist/main-BDrW8oeL.mjs +13755 -0
  6. package/dist/main-CNIKtifM.js +91 -0
  7. package/dist/main.css +1 -1
  8. package/dist/metadata.schema-BLGSCSmy.mjs +55 -0
  9. package/dist/metadata.schema-DWR97jhW.js +54 -0
  10. package/dist/ownership.schema-CGqscZIi.js +159 -0
  11. package/dist/ownership.schema-DtT2IgqC.mjs +160 -0
  12. package/dist/products.server.js +51 -15
  13. package/dist/products.server.mjs +51 -15
  14. package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
  16. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +55 -1
  18. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -55
  20. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +40 -39
  22. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/Field/Field.vue.js +7 -6
  24. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/Select/Select.vue.js +97 -1
  26. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  27. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +1 -97
  28. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
  30. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
  31. package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
  32. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  34. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  36. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +5 -1
  39. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +66 -0
  40. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +1 -5
  41. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +0 -66
  42. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  46. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  47. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  48. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  49. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +9 -8
  50. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  53. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
  54. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +59 -45
  56. package/dist/prometheus-framework/src/modules/globals/store/globals.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/globals/store/globals.js +5 -5
  58. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
  70. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  74. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +86 -56
  76. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  78. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +82 -67
  82. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +14 -14
  84. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  85. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  86. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  87. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +10 -9
  88. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  89. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  90. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  91. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
  92. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  93. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +24 -23
  94. package/dist/prometheus-framework.cjs.js +1 -1
  95. package/dist/prometheus-framework.es.js +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/web-6-zYDWMA.js +1 -0
  98. package/dist/web-TZtLKurO.mjs +54 -0
  99. package/package.json +1 -1
  100. package/src/modules/products/controllers/leftovers.controller.js +3 -3
  101. package/src/modules/products/models/leftover.model.js +2 -3
  102. package/src/modules/products/store/leftovers.js +4 -3
@@ -1 +1,55 @@
1
-
1
+ import { ref as u, computed as f, withDirectives as i, openBlock as o, createElementBlock as l, withModifiers as m, createBlock as p, resolveDynamicComponent as v, normalizeClass as b, toDisplayString as g, createVNode as k, Transition as w, withCtx as y, createElementVNode as h, normalizeStyle as C, renderSlot as O, vShow as S, unref as D } from "vue";
2
+ import x from "../FieldPhone/click-outside.js";
3
+ import "./Dropdown.vue2.js";
4
+ import B from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const T = { key: 0 }, j = { key: 1 }, z = {
6
+ __name: "Dropdown",
7
+ props: {
8
+ label: {
9
+ type: [String, Object],
10
+ default: "Open"
11
+ },
12
+ align: {
13
+ type: String,
14
+ default: "left"
15
+ }
16
+ },
17
+ setup(e) {
18
+ let a = x;
19
+ const s = e, t = u(!1), r = f(() => typeof s.label == "object");
20
+ function c() {
21
+ t.value = !1;
22
+ }
23
+ return (d, n) => i((o(), l("div", {
24
+ class: "dropdown pos-relative",
25
+ onClick: n[0] || (n[0] = m((E) => t.value = !t.value, ["stop"]))
26
+ }, [
27
+ r.value ? (o(), l("div", T, [
28
+ (o(), p(v(e.label.component), {
29
+ class: b(e.label.class)
30
+ }, null, 8, ["class"]))
31
+ ])) : (o(), l("div", j, g(e.label), 1)),
32
+ k(w, {
33
+ name: "TransitionTranslateY",
34
+ mode: "out-in"
35
+ }, {
36
+ default: y(() => [
37
+ i(h("div", {
38
+ style: C({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
39
+ class: "dropdown-content w-15r radius-big"
40
+ }, [
41
+ O(d.$slots, "default", {}, void 0, !0)
42
+ ], 4), [
43
+ [S, t.value]
44
+ ])
45
+ ]),
46
+ _: 3
47
+ })
48
+ ])), [
49
+ [D(a), c]
50
+ ]);
51
+ }
52
+ }, I = /* @__PURE__ */ B(z, [["__scopeId", "data-v-542fc6b9"]]);
53
+ export {
54
+ I as default
55
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("../FieldPhone/click-outside.cjs");require("./Dropdown.vue.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),d={key:0},f={key:1},p={__name:"Dropdown",props:{label:{type:[String,Object],default:"Open"},align:{type:String,default:"left"}},setup(t){let n=c.default;const i=t,l=e.ref(!1),a=e.computed(()=>typeof i.label=="object");function s(){l.value=!1}return(r,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"dropdown pos-relative",onClick:o[0]||(o[0]=e.withModifiers(m=>l.value=!l.value,["stop"]))},[a.value?(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.label.component),{class:e.normalizeClass(t.label.class)},null,8,["class"]))])):(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(t.label),1)),e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{style:e.normalizeStyle({left:t.align==="left"?"0":"auto",right:t.align==="right"?"0":"auto"}),class:"dropdown-content w-15r radius-big"},[e.renderSlot(r.$slots,"default",{},void 0,!0)],4),[[e.vShow,l.value]])]),_:3})])),[[e.unref(n),s]])}},v=u.default(p,[["__scopeId","data-v-542fc6b9"]]);exports.default=v;
1
+ "use strict";
@@ -1,55 +1 @@
1
- import { ref as u, computed as f, withDirectives as i, openBlock as o, createElementBlock as l, withModifiers as m, createBlock as p, resolveDynamicComponent as v, normalizeClass as b, toDisplayString as g, createVNode as k, Transition as w, withCtx as y, createElementVNode as h, normalizeStyle as C, renderSlot as O, vShow as S, unref as D } from "vue";
2
- import x from "../FieldPhone/click-outside.js";
3
- import "./Dropdown.vue.js";
4
- import B from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const T = { key: 0 }, j = { key: 1 }, z = {
6
- __name: "Dropdown",
7
- props: {
8
- label: {
9
- type: [String, Object],
10
- default: "Open"
11
- },
12
- align: {
13
- type: String,
14
- default: "left"
15
- }
16
- },
17
- setup(e) {
18
- let a = x;
19
- const s = e, t = u(!1), r = f(() => typeof s.label == "object");
20
- function c() {
21
- t.value = !1;
22
- }
23
- return (d, n) => i((o(), l("div", {
24
- class: "dropdown pos-relative",
25
- onClick: n[0] || (n[0] = m((E) => t.value = !t.value, ["stop"]))
26
- }, [
27
- r.value ? (o(), l("div", T, [
28
- (o(), p(v(e.label.component), {
29
- class: b(e.label.class)
30
- }, null, 8, ["class"]))
31
- ])) : (o(), l("div", j, g(e.label), 1)),
32
- k(w, {
33
- name: "TransitionTranslateY",
34
- mode: "out-in"
35
- }, {
36
- default: y(() => [
37
- i(h("div", {
38
- style: C({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
39
- class: "dropdown-content w-15r radius-big"
40
- }, [
41
- O(d.$slots, "default", {}, void 0, !0)
42
- ], 4), [
43
- [S, t.value]
44
- ])
45
- ]),
46
- _: 3
47
- })
48
- ])), [
49
- [D(a), c]
50
- ]);
51
- }
52
- }, I = /* @__PURE__ */ B(z, [["__scopeId", "data-v-542fc6b9"]]);
53
- export {
54
- I as default
55
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),f=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const g=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const h=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),k={__name:"Feed",props:{search:{type:Boolean,default:!1},showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(l){const a=l,n=e.ref([]),r=e.ref(!1);let i=e.ref(!0),u=e.ref(a.options.skip?a.options.skip:0),s=e.ref(a.options.limit?a.options.limit:10);const d=async()=>{if(r.value){u.value+=s.value;const t=await a.store.read({skip:u.value,limit:s.value,...a.options});t.length===0||t.length<s.value?r.value=!1:r.value=!0,n.value=[...n.value,...t]}},c=async()=>{const t=await a.store.read({skip:u.value,limit:s.value,...a.options});t.length===0||t.length<s.value?r.value=!1:r.value=!0,console.log(t),n.value=t,i.value=!1};e.watch(()=>a.options,(t,o)=>{(t.organization!==o.organization||t.categories!==o.categories||t.prices!==o.prices||t.delivery!==o.delivery||t.search!==o.search||t.status!==o.status||t.hidden!==o.hidden||t.type!==o.type)&&c()},{deep:!0});function m(t){a.options.search=t,console.log(t),c()}return e.onMounted(async()=>{await c()}),(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[l.search?(e.openBlock(),e.createBlock(h.default,{key:0,onSearch:m,placeholder:"Enter product name",class:"bg-white mn-b-thin"})):e.createCommentVNode("",!0)]),_:1}),e.unref(i)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(s),p=>(e.openBlock(),e.createBlock(f.default,{key:p}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&n.value.length<1?(e.openBlock(),e.createBlock(g.default,{key:0,title:l.states.empty.title,description:l.states.empty.description,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(i)&&n.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:n.value,user:t.user}):e.createCommentVNode("",!0),l.showLoadMore&&r.value&&n.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:d,class:"col-w-100 w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3},8,["class"])],64))}};exports.default=k;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("../../modules/icons/skeletons/SkeletonEvent.vue.cjs");require("../Loader/Loader.vue.cjs");const v=require("../EmptyState/EmptyState.vue.cjs");require("vue-i18n");const g=require("../../modules/globals/components/blocks/BlockSearch.vue.cjs"),k={__name:"Feed",props:{search:{type:Boolean,default:!1},showLoadMore:{type:Boolean,default:!0},states:{type:Object,default:()=>({empty:{title:String,description:String}})},store:{type:Object,default:()=>({read:Function,state:Object})},options:{type:Object,default:()=>({category:null,limit:20,skip:0,owner:null,creator:null,user:null,status:null,period:null,contain:null})}},setup(s){const a=s,o=e.ref([]),n=e.ref(!1);let i=e.ref(!0),u=e.ref(a.options.skip?a.options.skip:0),l=e.ref(a.options.limit?a.options.limit:10),c=e.ref("");function m(t){c.value=t,d()}const p=async()=>{if(n.value){u.value+=l.value;const t=await a.store.read({skip:u.value,limit:l.value,search:c.value,...a.options});t.length===0||t.length<l.value?n.value=!1:n.value=!0,o.value=[...o.value,...t]}},d=async()=>{const t=await a.store.read({skip:u.value,limit:l.value,search:c.value,...a.options});t.length===0||t.length<l.value?n.value=!1:n.value=!0,o.value=t,i.value=!1};return e.watch(()=>a.options,(t,r)=>{(t.organization!==r.organization||t.categories!==r.categories||t.prices!==r.prices||t.delivery!==r.delivery||t.search!==r.search||t.status!==r.status||t.hidden!==r.hidden||t.type!==r.type)&&d()},{deep:!0}),e.onMounted(async()=>{await d()}),(t,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition"},{default:e.withCtx(()=>[s.search?(e.openBlock(),e.createBlock(g.default,{key:0,onSearch:m,placeholder:"Enter product name",class:"bg-white mn-b-thin"})):e.createCommentVNode("",!0)]),_:1}),e.unref(i)?(e.openBlock(),e.createBlock(e.TransitionGroup,{key:0,tag:"ul",name:"scaleTransition",class:"o-hidden bg-grey radius-big"},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(e.unref(l),f=>(e.openBlock(),e.createBlock(h.default,{key:f}))),128)):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"scaleTransition"},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length<1?(e.openBlock(),e.createBlock(v.default,{key:0,title:s.states.empty.title,description:s.states.empty.description,class:"pd-medium mn-b-thin bg-grey radius-big"},null,8,["title","description"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.TransitionGroup,{tag:"ul",name:"scaleTransition",class:e.normalizeClass(t.$attrs.class)},{default:e.withCtx(()=>[!e.unref(i)&&o.value.length>0?e.renderSlot(t.$slots,"default",{key:0,items:o.value,user:t.user}):e.createCommentVNode("",!0),s.showLoadMore&&n.value&&o.value.length>0?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:p,class:"col-w-100 w-100 bg-main button"}," Load more ")):e.createCommentVNode("",!0)]),_:3},8,["class"])],64))}};exports.default=k;
@@ -1,10 +1,10 @@
1
- import { ref as c, watch as T, onMounted as B, openBlock as n, createElementBlock as h, Fragment as k, createVNode as v, TransitionGroup as y, withCtx as p, createBlock as d, createCommentVNode as o, unref as m, renderList as M, Transition as j, normalizeClass as w, renderSlot as C } from "vue";
2
- import O from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
1
+ import { ref as l, watch as B, onMounted as M, openBlock as r, createElementBlock as g, Fragment as b, createVNode as y, TransitionGroup as k, withCtx as p, createBlock as d, createCommentVNode as o, unref as m, renderList as j, Transition as w, normalizeClass as C, renderSlot as O } from "vue";
2
+ import $ from "../../modules/icons/skeletons/SkeletonEvent.vue.js";
3
3
  import "../Loader/Loader.vue.js";
4
- import $ from "../EmptyState/EmptyState.vue.js";
4
+ import z from "../EmptyState/EmptyState.vue.js";
5
5
  import "vue-i18n";
6
- import z from "../../modules/globals/components/blocks/BlockSearch.vue.js";
7
- const q = {
6
+ import E from "../../modules/globals/components/blocks/BlockSearch.vue.js";
7
+ const x = {
8
8
  __name: "Feed",
9
9
  props: {
10
10
  search: {
@@ -46,86 +46,87 @@ const q = {
46
46
  })
47
47
  }
48
48
  },
49
- setup(r) {
50
- const t = r, i = c([]), s = c(!1);
51
- let u = c(!0), f = c(t.options.skip ? t.options.skip : 0), l = c(t.options.limit ? t.options.limit : 10);
52
- const b = async () => {
49
+ setup(u) {
50
+ const t = u, i = l([]), s = l(!1);
51
+ let c = l(!0), f = l(t.options.skip ? t.options.skip : 0), n = l(t.options.limit ? t.options.limit : 10), h = l("");
52
+ function S(e) {
53
+ h.value = e, v();
54
+ }
55
+ const L = async () => {
53
56
  if (s.value) {
54
- f.value += l.value;
57
+ f.value += n.value;
55
58
  const e = await t.store.read({
56
59
  skip: f.value,
57
- limit: l.value,
60
+ limit: n.value,
61
+ search: h.value,
58
62
  ...t.options
59
63
  });
60
- e.length === 0 || e.length < l.value ? s.value = !1 : s.value = !0, i.value = [...i.value, ...e];
64
+ e.length === 0 || e.length < n.value ? s.value = !1 : s.value = !0, i.value = [...i.value, ...e];
61
65
  }
62
- }, g = async () => {
66
+ }, v = async () => {
63
67
  const e = await t.store.read({
64
68
  skip: f.value,
65
- limit: l.value,
69
+ limit: n.value,
70
+ search: h.value,
66
71
  ...t.options
67
72
  });
68
- e.length === 0 || e.length < l.value ? s.value = !1 : s.value = !0, console.log(e), i.value = e, u.value = !1;
73
+ e.length === 0 || e.length < n.value ? s.value = !1 : s.value = !0, i.value = e, c.value = !1;
69
74
  };
70
- T(() => t.options, (e, a) => {
71
- (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) && g();
72
- }, { deep: !0 });
73
- function L(e) {
74
- t.options.search = e, console.log(e), g();
75
- }
76
- return B(async () => {
77
- await g();
78
- }), (e, a) => (n(), h(k, null, [
79
- v(y, {
75
+ return B(() => t.options, (e, a) => {
76
+ (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) && v();
77
+ }, { deep: !0 }), M(async () => {
78
+ await v();
79
+ }), (e, a) => (r(), g(b, null, [
80
+ y(k, {
80
81
  tag: "ul",
81
82
  name: "scaleTransition"
82
83
  }, {
83
84
  default: p(() => [
84
- r.search ? (n(), d(z, {
85
+ u.search ? (r(), d(E, {
85
86
  key: 0,
86
- onSearch: L,
87
+ onSearch: S,
87
88
  placeholder: "Enter product name",
88
89
  class: "bg-white mn-b-thin"
89
90
  })) : o("", !0)
90
91
  ]),
91
92
  _: 1
92
93
  }),
93
- m(u) ? (n(), d(y, {
94
+ m(c) ? (r(), d(k, {
94
95
  key: 0,
95
96
  tag: "ul",
96
97
  name: "scaleTransition",
97
98
  class: "o-hidden bg-grey radius-big"
98
99
  }, {
99
100
  default: p(() => [
100
- m(u) ? (n(!0), h(k, { key: 0 }, M(m(l), (S) => (n(), d(O, { key: S }))), 128)) : o("", !0)
101
+ m(c) ? (r(!0), g(b, { key: 0 }, j(m(n), (T) => (r(), d($, { key: T }))), 128)) : o("", !0)
101
102
  ]),
102
103
  _: 1
103
104
  })) : o("", !0),
104
- v(j, { name: "scaleTransition" }, {
105
+ y(w, { name: "scaleTransition" }, {
105
106
  default: p(() => [
106
- !m(u) && i.value.length < 1 ? (n(), d($, {
107
+ !m(c) && i.value.length < 1 ? (r(), d(z, {
107
108
  key: 0,
108
- title: r.states.empty.title,
109
- description: r.states.empty.description,
109
+ title: u.states.empty.title,
110
+ description: u.states.empty.description,
110
111
  class: "pd-medium mn-b-thin bg-grey radius-big"
111
112
  }, null, 8, ["title", "description"])) : o("", !0)
112
113
  ]),
113
114
  _: 1
114
115
  }),
115
- v(y, {
116
+ y(k, {
116
117
  tag: "ul",
117
118
  name: "scaleTransition",
118
- class: w(e.$attrs.class)
119
+ class: C(e.$attrs.class)
119
120
  }, {
120
121
  default: p(() => [
121
- !m(u) && i.value.length > 0 ? C(e.$slots, "default", {
122
+ !m(c) && i.value.length > 0 ? O(e.$slots, "default", {
122
123
  key: 0,
123
124
  items: i.value,
124
125
  user: e.user
125
126
  }) : o("", !0),
126
- r.showLoadMore && s.value && i.value.length > 0 ? (n(), h("button", {
127
+ u.showLoadMore && s.value && i.value.length > 0 ? (r(), g("button", {
127
128
  key: 1,
128
- onClick: b,
129
+ onClick: L,
129
130
  class: "col-w-100 w-100 bg-main button"
130
131
  }, " Load more ")) : o("", !0)
131
132
  ]),
@@ -135,5 +136,5 @@ const q = {
135
136
  }
136
137
  };
137
138
  export {
138
- q as default
139
+ x as default
139
140
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue2.cjs");const s=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:u}){const a=u,d=l;d.value&&a("update:field",d.value);const o=e.ref(d.field);return(i,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[i.$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=>o.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=>o.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",value:l.field,placeholder:l.placeholder,tabindex:l.tabindex,disabled:l.disabled},null,40,b))]),e.renderSlot(i.$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=s.default(k,[["__scopeId","data-v-38ec9074"]]);exports.default=y;
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,4 +1,4 @@
1
- import { ref as b, 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";
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
2
  import "./Field.vue2.js";
3
3
  import g from "../../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const w = {
@@ -24,10 +24,10 @@ const w = {
24
24
  tabindex: -1
25
25
  },
26
26
  emits: ["update:field", "focus", "blur"],
27
- setup(e, { emit: f }) {
28
- const a = f, s = e;
27
+ setup(e, { emit: b }) {
28
+ const a = b, s = e;
29
29
  s.value && a("update:field", s.value);
30
- const r = b(s.field);
30
+ const r = f(s.field);
31
31
  return (m, l) => (n(), d(v, null, [
32
32
  i("div", {
33
33
  class: c([[
@@ -58,6 +58,7 @@ const w = {
58
58
  onFocus: l[4] || (l[4] = (t) => a("focus", t)),
59
59
  onBlur: l[5] || (l[5] = (t) => a("blur", t)),
60
60
  class: "w-100",
61
+ style: { resize: "vertical" },
61
62
  value: e.field,
62
63
  placeholder: e.placeholder,
63
64
  tabindex: e.tabindex,
@@ -77,7 +78,7 @@ const w = {
77
78
  })
78
79
  ], 64));
79
80
  }
80
- }, $ = /* @__PURE__ */ g(I, [["__scopeId", "data-v-38ec9074"]]);
81
+ }, S = /* @__PURE__ */ g(I, [["__scopeId", "data-v-47c78b3c"]]);
81
82
  export {
82
- $ as default
83
+ S as default
83
84
  };
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),y=require("../FieldPhone/click-outside.cjs");require("./Select.vue2.cjs");const g=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={key:0,class:"t-transp mn-r-small"},w={class:"w-100"},b=["onClick"],S={key:0,class:"w-100"},_={key:0,class:"mn-t-thin invalid-feedback"},C={__name:"Select",props:{label:String,select:[String,Object],property:String,placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(o,{emit:m}){const i=m;let f=y.default;const t=o,n=e.ref(t.property?u(t.select,t.property,t.options):t.select),a=e.ref(!1);function v(){a.value=!1}function u(l,p,c){for(const s of c)if(s[p]===l||s===l)return s;return null}e.watch(()=>t.select,l=>{n.value=t.property?u(t.select,t.property,t.options):t.select});const k=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options),d=()=>{a.value=!a.value,i(a.value?"focus":"blur")},h=l=>{n.value=l,d(),t.property?i("update:select",n.value[t.property]):i("update:select",n.value)};return(l,p)=>{var c,s;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[o.label?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("span",null,e.toDisplayString(o.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",w,[e.createElementVNode("span",null,e.toDisplayString((c=n.value)!=null&&c.name?(s=n.value)==null?void 0:s.name:n.value||o.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(k.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,b))),256))],2),[[e.vShow,a.value]])]),_:1})],2)),[[e.unref(f),v]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[o.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(o.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=g.default(C,[["__scopeId","data-v-67f55841"]]);exports.default=E;
@@ -1 +1,97 @@
1
-
1
+ import { ref as y, watch as M, computed as N, openBlock as s, createElementBlock as n, Fragment as k, withDirectives as b, withModifiers as w, normalizeClass as _, createElementVNode as u, toDisplayString as d, createCommentVNode as m, createVNode as g, Transition as S, withCtx as x, renderList as T, vShow as $, unref as z } from "vue";
2
+ import D from "../FieldPhone/click-outside.js";
3
+ import "./Select.vue2.js";
4
+ import E from "../../../../_virtual/_plugin-vue_export-helper.js";
5
+ const L = {
6
+ key: 0,
7
+ class: "t-transp mn-r-small"
8
+ }, A = { class: "w-100" }, F = ["onClick"], I = {
9
+ key: 0,
10
+ class: "w-100"
11
+ }, P = {
12
+ key: 0,
13
+ class: "mn-t-thin invalid-feedback"
14
+ }, Y = {
15
+ __name: "Select",
16
+ props: {
17
+ label: String,
18
+ select: [String, Object],
19
+ property: String,
20
+ placeholder: { type: String, default: "Please select an item" },
21
+ options: { type: Array, default: () => [] },
22
+ validation: Boolean
23
+ },
24
+ emits: ["update:select", "focus", "blur"],
25
+ setup(o, { emit: C }) {
26
+ const p = C;
27
+ let O = D;
28
+ const e = o, l = y(e.property ? f(e.select, e.property, e.options) : e.select), i = y(!1);
29
+ function B() {
30
+ i.value = !1;
31
+ }
32
+ function f(t, h, c) {
33
+ for (const a of c)
34
+ if (a[h] === t || a === t)
35
+ return a;
36
+ return null;
37
+ }
38
+ M(() => e.select, (t) => {
39
+ l.value = e.property ? f(e.select, e.property, e.options) : e.select;
40
+ });
41
+ const V = N(() => e.select ? e.options.filter((t) => t !== e.select) : e.options), v = () => {
42
+ i.value = !i.value, p(i.value ? "focus" : "blur");
43
+ }, j = (t) => {
44
+ l.value = t, v(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
45
+ };
46
+ return (t, h) => {
47
+ var c, a;
48
+ return s(), n(k, null, [
49
+ b((s(), n("div", {
50
+ onClick: w(v, ["stop"]),
51
+ class: _([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
52
+ }, [
53
+ o.label ? (s(), n("div", L, [
54
+ u("span", null, d(o.label), 1)
55
+ ])) : m("", !0),
56
+ u("li", A, [
57
+ u("span", null, d((c = l.value) != null && c.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
58
+ ]),
59
+ g(S, {
60
+ mode: "out-in",
61
+ name: "TransitionTranslateY"
62
+ }, {
63
+ default: x(() => [
64
+ b(u("ul", {
65
+ class: _([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
66
+ style: { "min-width": "max-content" }
67
+ }, [
68
+ (s(!0), n(k, null, T(V.value, (r) => (s(), n("li", {
69
+ onClick: w((q) => j(r), ["stop"])
70
+ }, [
71
+ r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
72
+ ], 8, F))), 256))
73
+ ], 2), [
74
+ [$, i.value]
75
+ ])
76
+ ]),
77
+ _: 1
78
+ })
79
+ ], 2)), [
80
+ [z(O), B]
81
+ ]),
82
+ g(S, {
83
+ mode: "out-in",
84
+ name: "fade"
85
+ }, {
86
+ default: x(() => [
87
+ o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
88
+ ]),
89
+ _: 1
90
+ })
91
+ ], 64);
92
+ };
93
+ }
94
+ }, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-67f55841"]]);
95
+ export {
96
+ Q as default
97
+ };
@@ -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.vue.cjs");const g=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),B={key:0,class:"t-transp mn-r-small"},w={class:"w-100"},b=["onClick"],S={key:0,class:"w-100"},_={key:0,class:"mn-t-thin invalid-feedback"},C={__name:"Select",props:{label:String,select:[String,Object],property:String,placeholder:{type:String,default:"Please select an item"},options:{type:Array,default:()=>[]},validation:Boolean},emits:["update:select","focus","blur"],setup(o,{emit:m}){const i=m;let f=y.default;const t=o,n=e.ref(t.property?u(t.select,t.property,t.options):t.select),a=e.ref(!1);function v(){a.value=!1}function u(l,p,c){for(const s of c)if(s[p]===l||s===l)return s;return null}e.watch(()=>t.select,l=>{n.value=t.property?u(t.select,t.property,t.options):t.select});const k=e.computed(()=>t.select?t.options.filter(l=>l!==t.select):t.options),d=()=>{a.value=!a.value,i(a.value?"focus":"blur")},h=l=>{n.value=l,d(),t.property?i("update:select",n.value[t.property]):i("update:select",n.value)};return(l,p)=>{var c,s;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),class:e.normalizeClass([l.$attrs.class,"cursor-pointer flex-v-center flex-nowrap flex pos-relative"])},[o.label?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("span",null,e.toDisplayString(o.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("li",w,[e.createElementVNode("span",null,e.toDisplayString((c=n.value)!=null&&c.name?(s=n.value)==null?void 0:s.name:n.value||o.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(k.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,b))),256))],2),[[e.vShow,a.value]])]),_:1})],2)),[[e.unref(f),v]]),e.createVNode(e.Transition,{mode:"out-in",name:"fade"},{default:e.withCtx(()=>[o.validation?(e.openBlock(),e.createElementBlock("div",_," * "+e.toDisplayString(o.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64)}}},E=g.default(C,[["__scopeId","data-v-67f55841"]]);exports.default=E;
1
+ "use strict";
@@ -1,97 +1 @@
1
- import { ref as y, watch as M, computed as N, openBlock as s, createElementBlock as n, Fragment as k, withDirectives as b, withModifiers as w, normalizeClass as _, createElementVNode as u, toDisplayString as d, createCommentVNode as m, createVNode as g, Transition as S, withCtx as x, renderList as T, vShow as $, unref as z } from "vue";
2
- import D from "../FieldPhone/click-outside.js";
3
- import "./Select.vue.js";
4
- import E from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const L = {
6
- key: 0,
7
- class: "t-transp mn-r-small"
8
- }, A = { class: "w-100" }, F = ["onClick"], I = {
9
- key: 0,
10
- class: "w-100"
11
- }, P = {
12
- key: 0,
13
- class: "mn-t-thin invalid-feedback"
14
- }, Y = {
15
- __name: "Select",
16
- props: {
17
- label: String,
18
- select: [String, Object],
19
- property: String,
20
- placeholder: { type: String, default: "Please select an item" },
21
- options: { type: Array, default: () => [] },
22
- validation: Boolean
23
- },
24
- emits: ["update:select", "focus", "blur"],
25
- setup(o, { emit: C }) {
26
- const p = C;
27
- let O = D;
28
- const e = o, l = y(e.property ? f(e.select, e.property, e.options) : e.select), i = y(!1);
29
- function B() {
30
- i.value = !1;
31
- }
32
- function f(t, h, c) {
33
- for (const a of c)
34
- if (a[h] === t || a === t)
35
- return a;
36
- return null;
37
- }
38
- M(() => e.select, (t) => {
39
- l.value = e.property ? f(e.select, e.property, e.options) : e.select;
40
- });
41
- const V = N(() => e.select ? e.options.filter((t) => t !== e.select) : e.options), v = () => {
42
- i.value = !i.value, p(i.value ? "focus" : "blur");
43
- }, j = (t) => {
44
- l.value = t, v(), e.property ? p("update:select", l.value[e.property]) : p("update:select", l.value);
45
- };
46
- return (t, h) => {
47
- var c, a;
48
- return s(), n(k, null, [
49
- b((s(), n("div", {
50
- onClick: w(v, ["stop"]),
51
- class: _([t.$attrs.class, "cursor-pointer flex-v-center flex-nowrap flex pos-relative"])
52
- }, [
53
- o.label ? (s(), n("div", L, [
54
- u("span", null, d(o.label), 1)
55
- ])) : m("", !0),
56
- u("li", A, [
57
- u("span", null, d((c = l.value) != null && c.name ? (a = l.value) == null ? void 0 : a.name : l.value || o.placeholder), 1)
58
- ]),
59
- g(S, {
60
- mode: "out-in",
61
- name: "TransitionTranslateY"
62
- }, {
63
- default: x(() => [
64
- b(u("ul", {
65
- class: _([t.$attrs.class, "bs-black pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"]),
66
- style: { "min-width": "max-content" }
67
- }, [
68
- (s(!0), n(k, null, T(V.value, (r) => (s(), n("li", {
69
- onClick: w((q) => j(r), ["stop"])
70
- }, [
71
- r ? (s(), n("span", I, d(r.name || r), 1)) : m("", !0)
72
- ], 8, F))), 256))
73
- ], 2), [
74
- [$, i.value]
75
- ])
76
- ]),
77
- _: 1
78
- })
79
- ], 2)), [
80
- [z(O), B]
81
- ]),
82
- g(S, {
83
- mode: "out-in",
84
- name: "fade"
85
- }, {
86
- default: x(() => [
87
- o.validation ? (s(), n("div", P, " * " + d(o.validation.message), 1)) : m("", !0)
88
- ]),
89
- _: 1
90
- })
91
- ], 64);
92
- };
93
- }
94
- }, Q = /* @__PURE__ */ E(Y, [["__scopeId", "data-v-67f55841"]]);
95
- export {
96
- Q as default
97
- };
1
+
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tooltip.vue2.cjs");const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),u={__name:"Tooltip",props:{text:{type:String,required:!0}},setup(i){const l=e.ref(!1),t=e.reactive({position:"absolute","min-width":"20rem",zIndex:1e3,background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"3px",fontSize:"14px",display:"none"});function n(o){l.value=!0,t.left=`${o.clientX/100+10}px`,t.top=`${o.clientY/100+10}px`,t.display="block"}function r(){l.value=!1,t.display="none"}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:"cursor-pointer tooltip-container",onMouseover:n,onMouseleave:r},[e.renderSlot(o.$slots,"default",{},void 0,!0),e.createElementVNode("div",{class:"tooltip-content",style:e.normalizeStyle(t)},e.toDisplayString(i.text),5)],32))}},a=s.default(u,[["__scopeId","data-v-0065753a"]]);exports.default=a;
1
+ "use strict";
@@ -1,45 +1 @@
1
- import { ref as r, reactive as p, openBlock as s, createElementBlock as a, renderSlot as c, createElementVNode as d, normalizeStyle as u, toDisplayString as f } from "vue";
2
- import "./Tooltip.vue2.js";
3
- import m from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const x = {
5
- __name: "Tooltip",
6
- props: {
7
- text: {
8
- type: String,
9
- required: !0
10
- }
11
- },
12
- setup(i) {
13
- const t = r(!1), e = p({
14
- position: "absolute",
15
- "min-width": "20rem",
16
- zIndex: 1e3,
17
- background: "#333",
18
- color: "#fff",
19
- padding: "5px 10px",
20
- borderRadius: "3px",
21
- fontSize: "14px",
22
- display: "none"
23
- });
24
- function n(o) {
25
- t.value = !0, e.left = `${o.clientX / 100 + 10}px`, e.top = `${o.clientY / 100 + 10}px`, e.display = "block";
26
- }
27
- function l() {
28
- t.value = !1, e.display = "none";
29
- }
30
- return (o, _) => (s(), a("div", {
31
- class: "cursor-pointer tooltip-container",
32
- onMouseover: n,
33
- onMouseleave: l
34
- }, [
35
- c(o.$slots, "default", {}, void 0, !0),
36
- d("div", {
37
- class: "tooltip-content",
38
- style: u(e)
39
- }, f(i.text), 5)
40
- ], 32));
41
- }
42
- }, b = /* @__PURE__ */ m(x, [["__scopeId", "data-v-0065753a"]]);
43
- export {
44
- b as default
45
- };
1
+
@@ -1 +1 @@
1
- "use strict";
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Tooltip.vue.cjs");const s=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),a={__name:"Tooltip",props:{text:{type:String,required:!0}},setup(n){const l=e.ref(!1),t=e.reactive({position:"absolute",width:"max-content",zIndex:1e3,background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"3px",fontSize:"14px",display:"none"});function i(o){l.value=!0,t.left=`${o.clientX/100+10}px`,t.top=`${o.clientY/100+10}px`,t.display="block"}function r(){l.value=!1,t.display="none"}return(o,p)=>(e.openBlock(),e.createElementBlock("div",{class:"cursor-pointer tooltip-container",onMouseover:i,onMouseleave:r},[e.renderSlot(o.$slots,"default",{},void 0,!0),e.createElementVNode("div",{class:"tooltip-content",style:e.normalizeStyle(t)},e.toDisplayString(n.text),5)],32))}},u=s.default(a,[["__scopeId","data-v-f89d5a93"]]);exports.default=u;