@ozdao/prometheus-framework 0.2.118 → 0.2.119
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/gallery.server.js +9 -3
- package/dist/gallery.server.mjs +9 -3
- package/dist/main-DL3vRQCi.js +92 -0
- package/dist/main-Ds3Z5x5d.mjs +14206 -0
- package/dist/main.css +1 -1
- package/dist/orders.server.js +1 -1
- package/dist/orders.server.mjs +1 -1
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Block/Block.vue.js +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/Calendar.vue2.js +116 -117
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +58 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +1 -58
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +123 -109
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +32 -26
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +1 -73
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +77 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -103
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +103 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue.js +1 -45
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tooltip/Tooltip.vue2.js +45 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +16 -17
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +44 -69
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue.js +64 -0
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/gallery/components/blocks/PhotoViewer.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/pages/Gallery.vue.js +101 -14
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +165 -102
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/elements/ButtonDate.vue.js +38 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/sections/SectionPageTitle.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/services/globals.store.js +21 -21
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonBlogpost.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonEventShort.vue.js +5 -5
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/skeletons/SkeletonOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderBackoffice.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +31 -32
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +4 -4
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/queryProcessor-g8208K6g.mjs +178 -0
- package/dist/queryProcessor-haY_gPGg.js +177 -0
- package/dist/style.css +1 -1
- package/dist/wallet.server.js +1 -1
- package/dist/wallet.server.mjs +1 -1
- package/dist/web-B8tq3Fda.mjs +54 -0
- package/dist/web-ByJkgGrt.js +1 -0
- package/package.json +1 -1
- package/src/components/DatePicker/Calendar.vue +82 -55
- package/src/components/Feed/Feed.vue +45 -16
- package/src/components/FieldTags/BlockTags.vue +30 -23
- package/src/components/Popup/Popup.vue +2 -2
- package/src/modules/events/components/pages/Events.vue +2 -48
- package/src/modules/gallery/components/blocks/PhotoViewer.vue +115 -0
- package/src/modules/gallery/components/pages/Gallery.vue +103 -6
- package/src/modules/gallery/components/sections/BackofficeGallery.vue +100 -32
- package/src/modules/gallery/controllers/gallery.controller.js +45 -38
- package/src/modules/globals/components/blocks/CardHeader.vue +1 -1
- package/src/modules/globals/components/elements/ButtonDate.vue +37 -43
- package/src/modules/globals/components/layouts/Client.vue +1 -1
- package/src/modules/globals/components/sections/SectionPageTitle.vue +1 -1
- package/src/modules/globals/controllers/utils/queryProcessor.js +21 -2
- package/src/modules/globals/services/globals.store.js +13 -17
- package/src/modules/icons/skeletons/SkeletonBlogpost.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonEvent.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonEventShort.vue +1 -1
- package/src/modules/icons/skeletons/SkeletonOrganization.vue +1 -1
- package/src/modules/products/components/sections/FilterProducts.vue +2 -1
- package/src/modules/gallery/components/sections/GalleryWithCategories.vue +0 -176
package/dist/orders.server.js
CHANGED
@@ -3,7 +3,7 @@ const _commonjsHelpers = require("./_commonjsHelpers-DHfMLFPC.js");
|
|
3
3
|
const ownership_schema = require("./ownership.schema-DN0SlQL6.js");
|
4
4
|
const profile_schema = require("./profile.schema-CkOhhf37.js");
|
5
5
|
const credentials_schema = require("./credentials.schema-B-KD_ozQ.js");
|
6
|
-
const queryProcessor = require("./queryProcessor-
|
6
|
+
const queryProcessor = require("./queryProcessor-haY_gPGg.js");
|
7
7
|
const mailing = require("./mailing-BX0q8DIs.js");
|
8
8
|
const index = require("./index-BCCiEK_u.js");
|
9
9
|
const require$$0 = require("node-cache");
|
package/dist/orders.server.mjs
CHANGED
@@ -2,7 +2,7 @@ import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.mjs";
|
|
2
2
|
import { o as ownership_schema } from "./ownership.schema-oyx6eNkZ.mjs";
|
3
3
|
import { p as profile_schema } from "./profile.schema-24ZpZQJe.mjs";
|
4
4
|
import { c as credentials_schema } from "./credentials.schema-C9dmNy7o.mjs";
|
5
|
-
import { q as queryProcessor } from "./queryProcessor-
|
5
|
+
import { q as queryProcessor } from "./queryProcessor-g8208K6g.mjs";
|
6
6
|
import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
|
7
7
|
import { s as server } from "./index-B6a1mPgp.mjs";
|
8
8
|
import require$$0 from "node-cache";
|
@@ -7,7 +7,7 @@ const require$$3 = require("uuidv4");
|
|
7
7
|
const require$$0 = require("mongoose");
|
8
8
|
const require$$5 = require("@googlemaps/google-maps-services-js");
|
9
9
|
const addMembersQuantity$1 = require("./addMembersQuantity-B8UgqlUM.js");
|
10
|
-
const queryProcessor = require("./queryProcessor-
|
10
|
+
const queryProcessor = require("./queryProcessor-haY_gPGg.js");
|
11
11
|
const mailing = require("./mailing-BX0q8DIs.js");
|
12
12
|
const index = require("./index-BCCiEK_u.js");
|
13
13
|
const engagement_schema = require("./engagement.schema-fdLNO2_6.js");
|
@@ -6,7 +6,7 @@ import require$$3 from "uuidv4";
|
|
6
6
|
import require$$0 from "mongoose";
|
7
7
|
import require$$5 from "@googlemaps/google-maps-services-js";
|
8
8
|
import { a as addUserStatusFields_1, b as addMembersQuantity_1 } from "./addMembersQuantity-BXp_LeQd.mjs";
|
9
|
-
import { q as queryProcessor } from "./queryProcessor-
|
9
|
+
import { q as queryProcessor } from "./queryProcessor-g8208K6g.mjs";
|
10
10
|
import { m as mailing } from "./mailing-Cdp8NXhP.mjs";
|
11
11
|
import { s as server } from "./index-B6a1mPgp.mjs";
|
12
12
|
import { e as engagement_schema } from "./engagement.schema-CI2ifjXN.mjs";
|
package/dist/products.server.js
CHANGED
@@ -7,7 +7,7 @@ const require$$0 = require("mongoose");
|
|
7
7
|
require("path");
|
8
8
|
const require$$3 = require("openai");
|
9
9
|
const index = require("./index-BCCiEK_u.js");
|
10
|
-
const queryProcessor = require("./queryProcessor-
|
10
|
+
const queryProcessor = require("./queryProcessor-haY_gPGg.js");
|
11
11
|
var product_model = (mongoose) => {
|
12
12
|
const ProductSchema = new mongoose.Schema({
|
13
13
|
status: { type: String },
|
package/dist/products.server.mjs
CHANGED
@@ -5,7 +5,7 @@ import require$$0 from "mongoose";
|
|
5
5
|
import "path";
|
6
6
|
import require$$3 from "openai";
|
7
7
|
import { s as server } from "./index-B6a1mPgp.mjs";
|
8
|
-
import { q as queryProcessor } from "./queryProcessor-
|
8
|
+
import { q as queryProcessor } from "./queryProcessor-g8208K6g.mjs";
|
9
9
|
var product_model = (mongoose) => {
|
10
10
|
const ProductSchema = new mongoose.Schema({
|
11
11
|
status: { type: String },
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../Tooltip/Tooltip.
|
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,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.
|
2
|
+
import b from "../Tooltip/Tooltip.vue2.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";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("./Calendar.vue.cjs");const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue");require("./Calendar.vue.cjs");const x=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),O={class:"calendar"},N={key:0,class:"br-b br-solid br-grey-transp-25 gap-thin flex flex-nowrap pd-thin"},B={class:"pd-thin flex flex-nowrap flex-v-center flex-justify-between"},I={class:"t-semi"},L={class:"pd-thin calendar__body"},W={class:"calendar__week"},H={class:"gap-micro calendar__dates"},R=["onClick"],j={__name:"Calendar",props:t.mergeModels({modelValue:[Date,Object],allowRange:Boolean},{date:{},dateModifiers:{}}),emits:t.mergeModels(["update:modelValue"],["update:date"]),setup(g,{emit:$}){const C=g,c=t.useModel(g,"date"),m=new Date,r=t.ref(m),v=t.ref(null),l=t.ref(null),s=t.ref(null),U=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],p=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),d=e=>new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59)),h=t.computed(()=>{const e=r.value.toLocaleString("default",{month:"long",timeZone:"UTC"}),a=r.value.getUTCFullYear();return`${e} ${a}`}),f=t.computed(()=>{const e=[],a=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth(),1)),n=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()+1,0)),u=a.getUTCDay();let o=new Date(a);o.setUTCDate(o.getUTCDate()-u);for(let i=0;i<u;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);let D=1;for(o=a;o<=n;o.setUTCDate(o.getUTCDate()+1))e.push({date:new Date(o),day:D,isToday:T(o)}),D++;const Y=e[e.length-1].date.getUTCDay();for(let i=Y+1;i<=6;i++)e.push({date:new Date(o),day:o.getUTCDate(),isToday:T(o)}),o.setUTCDate(o.getUTCDate()+1);return e}),T=e=>{const a=new Date;return e.getUTCDate()===a.getUTCDate()&&e.getUTCMonth()===a.getUTCMonth()&&e.getUTCFullYear()===a.getUTCFullYear()},w=e=>e.getUTCMonth()===r.value.getUTCMonth()&&e.getUTCFullYear()===r.value.getUTCFullYear(),_=e=>{if(C.allowRange){if(l.value&&s.value)return e>=new Date(l.value)&&d(e)<=new Date(s.value);if(l.value)return e.getTime()===new Date(l.value).getTime()}else return v.value&&e.getTime()===new Date(v.value).getTime()},y=e=>l.value&&s.value?e>l.value&&d(e)<s.value:!1,M=e=>{const a=p(e);if(!C.allowRange)v.value=a,c.value=a;else if(!l.value&&!s.value)l.value=a,c.value.start=a;else if(s.value)l.value=a,s.value=null,c.value={start:a,end:null};else{if(s.value=d(e),a<l.value){const n=d(l.value);l.value=a,s.value=n}c.value={start:l.value,end:s.value}}},k=()=>{r.value=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()-1,1))},b=()=>{r.value=new Date(Date.UTC(r.value.getUTCFullYear(),r.value.getUTCMonth()+1,1))},S=()=>{const e=new Date,a=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0)),n=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),23,59,59,999));l.value=a.toISOString(),s.value=n.toISOString(),c.value={start:l.value,end:s.value}},E=()=>{const e=new Date,a=new Date(e);a.setUTCDate(e.getUTCDate()-7),a.setUTCHours(0,0,0,0),l.value=a,s.value=d(e),e.setUTCHours(23,59,59,999);const n=a.toISOString(),u=e.toISOString();c.value={start:n,end:u}},F=()=>{const e=new Date,a=new Date(e);a.setUTCMonth(e.getUTCMonth()-1),a.setUTCHours(0,0,0,0),l.value=a,s.value=d(e),e.setUTCHours(23,59,59,999);const n=a.toISOString(),u=e.toISOString();c.value={start:n,end:u}},V=()=>{l.value=null,s.value=null,c.value={start:null,end:null}};return(e,a)=>(t.openBlock(),t.createElementBlock("div",O,[g.allowRange?(t.openBlock(),t.createElementBlock("div",N,[t.createElementVNode("button",{onClick:S,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Today"),t.createElementVNode("button",{onClick:E,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Week"),t.createElementVNode("button",{onClick:F,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"Last Month"),t.createElementVNode("button",{onClick:V,class:"font-second t-nowrap pd-thin bg-main-transp-10 radius-small"},"All time")])):t.createCommentVNode("",!0),t.createElementVNode("div",B,[t.createElementVNode("button",{onClick:t.withModifiers(k,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},"<"),t.createElementVNode("span",I,t.toDisplayString(h.value),1),t.createElementVNode("button",{onClick:t.withModifiers(b,["stop"]),class:"aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"},">")]),t.createElementVNode("div",L,[t.createElementVNode("div",W,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(U,(n,u)=>t.createElementVNode("div",{key:u,class:"calendar__weekday"},t.toDisplayString(n),1)),64))]),t.createElementVNode("div",H,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.value,n=>(t.openBlock(),t.createElementBlock("div",{key:n.date,class:t.normalizeClass(["flex flex-center cursor-pointer aspect-ratio-1x1 radius-small",{"bg-main t-white":n.isToday},{"calendar__date--selected":_(n.date)},{"calendar__date--range":y(n.date)},{"calendar__date--disabled":!w(n.date)}]),onClick:t.withModifiers(u=>M(n.date),["stop"])},t.toDisplayString(n.day),11,R))),128))])])]))}},q=x.default(j,[["__scopeId","data-v-6bc137b0"]]);exports.default=q;
|
@@ -1,165 +1,164 @@
|
|
1
|
-
import { ref as C, computed as _, openBlock as
|
1
|
+
import { mergeModels as w, useModel as $, ref as C, computed as _, openBlock as g, createElementBlock as v, createElementVNode as r, createCommentVNode as j, withModifiers as h, toDisplayString as p, Fragment as y, renderList as M, normalizeClass as N } from "vue";
|
2
2
|
import "./Calendar.vue.js";
|
3
|
-
import
|
4
|
-
const
|
3
|
+
import z from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const A = { class: "calendar" }, Z = {
|
5
5
|
key: 0,
|
6
|
-
class: "br-b br-solid br-grey gap-thin flex flex-nowrap pd-thin"
|
7
|
-
},
|
6
|
+
class: "br-b br-solid br-grey-transp-25 gap-thin flex flex-nowrap pd-thin"
|
7
|
+
}, q = { class: "pd-thin flex flex-nowrap flex-v-center flex-justify-between" }, G = { class: "t-semi" }, J = { class: "pd-thin calendar__body" }, K = { class: "calendar__week" }, P = { class: "gap-micro calendar__dates" }, Q = ["onClick"], X = {
|
8
8
|
__name: "Calendar",
|
9
|
-
props: {
|
9
|
+
props: /* @__PURE__ */ w({
|
10
10
|
modelValue: [Date, Object],
|
11
11
|
allowRange: Boolean
|
12
|
-
},
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
}, {
|
13
|
+
date: {},
|
14
|
+
dateModifiers: {}
|
15
|
+
}),
|
16
|
+
emits: /* @__PURE__ */ w(["update:modelValue"], ["update:date"]),
|
17
|
+
setup(T, { emit: ee }) {
|
18
|
+
const m = T, c = $(T, "date"), o = C(/* @__PURE__ */ new Date()), D = C(null), n = C(null), s = C(null), b = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], k = (e) => new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate())), d = (e) => new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), 23, 59, 59)), S = _(() => {
|
19
|
+
const e = o.value.toLocaleString("default", { month: "long", timeZone: "UTC" }), t = o.value.getUTCFullYear();
|
17
20
|
return `${e} ${t}`;
|
18
|
-
}),
|
21
|
+
}), x = _(() => {
|
19
22
|
const e = [], t = new Date(Date.UTC(
|
20
|
-
|
21
|
-
|
23
|
+
o.value.getUTCFullYear(),
|
24
|
+
o.value.getUTCMonth(),
|
22
25
|
1
|
23
|
-
)),
|
24
|
-
|
25
|
-
|
26
|
+
)), a = new Date(Date.UTC(
|
27
|
+
o.value.getUTCFullYear(),
|
28
|
+
o.value.getUTCMonth() + 1,
|
26
29
|
0
|
27
|
-
)),
|
28
|
-
let
|
29
|
-
|
30
|
-
for (let i = 0; i <
|
30
|
+
)), u = t.getUTCDay();
|
31
|
+
let l = new Date(t);
|
32
|
+
l.setUTCDate(l.getUTCDate() - u);
|
33
|
+
for (let i = 0; i < u; i++)
|
31
34
|
e.push({
|
32
|
-
date: new Date(
|
33
|
-
day:
|
34
|
-
isToday: U(
|
35
|
-
}),
|
35
|
+
date: new Date(l),
|
36
|
+
day: l.getUTCDate(),
|
37
|
+
isToday: U(l)
|
38
|
+
}), l.setUTCDate(l.getUTCDate() + 1);
|
36
39
|
let f = 1;
|
37
|
-
for (
|
40
|
+
for (l = t; l <= a; l.setUTCDate(l.getUTCDate() + 1))
|
38
41
|
e.push({
|
39
|
-
date: new Date(
|
42
|
+
date: new Date(l),
|
40
43
|
day: f,
|
41
|
-
isToday: U(
|
44
|
+
isToday: U(l)
|
42
45
|
}), f++;
|
43
|
-
const
|
44
|
-
for (let i =
|
46
|
+
const B = e[e.length - 1].date.getUTCDay();
|
47
|
+
for (let i = B + 1; i <= 6; i++)
|
45
48
|
e.push({
|
46
|
-
date: new Date(
|
47
|
-
day:
|
48
|
-
isToday: U(
|
49
|
-
}),
|
49
|
+
date: new Date(l),
|
50
|
+
day: l.getUTCDate(),
|
51
|
+
isToday: U(l)
|
52
|
+
}), l.setUTCDate(l.getUTCDate() + 1);
|
50
53
|
return e;
|
51
54
|
}), U = (e) => {
|
52
55
|
const t = /* @__PURE__ */ new Date();
|
53
56
|
return e.getUTCDate() === t.getUTCDate() && e.getUTCMonth() === t.getUTCMonth() && e.getUTCFullYear() === t.getUTCFullYear();
|
54
|
-
}, F = (e) => e.getUTCMonth() ===
|
55
|
-
if (
|
56
|
-
if (
|
57
|
-
return e >=
|
58
|
-
if (
|
59
|
-
return e.getTime() ===
|
57
|
+
}, F = (e) => e.getUTCMonth() === o.value.getUTCMonth() && e.getUTCFullYear() === o.value.getUTCFullYear(), Y = (e) => {
|
58
|
+
if (m.allowRange) {
|
59
|
+
if (n.value && s.value)
|
60
|
+
return e >= new Date(n.value) && d(e) <= new Date(s.value);
|
61
|
+
if (n.value)
|
62
|
+
return e.getTime() === new Date(n.value).getTime();
|
60
63
|
} else
|
61
|
-
return D.value && e.getTime() === D.value.getTime();
|
62
|
-
},
|
63
|
-
const t =
|
64
|
-
if (!
|
65
|
-
|
66
|
-
else if (!
|
67
|
-
|
68
|
-
else if (
|
69
|
-
|
64
|
+
return D.value && e.getTime() === new Date(D.value).getTime();
|
65
|
+
}, O = (e) => n.value && s.value ? e > n.value && d(e) < s.value : !1, I = (e) => {
|
66
|
+
const t = k(e);
|
67
|
+
if (!m.allowRange)
|
68
|
+
D.value = t, c.value = t;
|
69
|
+
else if (!n.value && !s.value)
|
70
|
+
n.value = t, c.value.start = t;
|
71
|
+
else if (s.value)
|
72
|
+
n.value = t, s.value = null, c.value = { start: t, end: null };
|
70
73
|
else {
|
71
|
-
if (
|
72
|
-
const
|
73
|
-
|
74
|
+
if (s.value = d(e), t < n.value) {
|
75
|
+
const a = d(n.value);
|
76
|
+
n.value = t, s.value = a;
|
74
77
|
}
|
75
|
-
|
78
|
+
c.value = { start: n.value, end: s.value };
|
76
79
|
}
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
s.value.getUTCMonth() - 1,
|
80
|
+
}, L = () => {
|
81
|
+
o.value = new Date(Date.UTC(
|
82
|
+
o.value.getUTCFullYear(),
|
83
|
+
o.value.getUTCMonth() - 1,
|
82
84
|
1
|
83
85
|
));
|
84
86
|
}, W = () => {
|
85
|
-
|
86
|
-
|
87
|
-
|
87
|
+
o.value = new Date(Date.UTC(
|
88
|
+
o.value.getUTCFullYear(),
|
89
|
+
o.value.getUTCMonth() + 1,
|
88
90
|
1
|
89
91
|
));
|
90
92
|
}, R = () => {
|
91
|
-
const e = new Date(
|
92
|
-
|
93
|
-
const t = new Date(e);
|
94
|
-
t.setUTCHours(24, 0, 0, -1), a.value = c(e), l.value = c(t), r("update:modelValue", { start: a.value, end: l.value });
|
95
|
-
}, O = () => {
|
96
|
-
const e = /* @__PURE__ */ new Date();
|
97
|
-
e.setUTCDate(e.getUTCDate() - 7), a.value = c(e), l.value = c(g), r("update:modelValue", { start: a.value, end: l.value });
|
98
|
-
}, B = () => {
|
99
|
-
const e = /* @__PURE__ */ new Date();
|
100
|
-
e.setUTCMonth(e.getUTCMonth() - 1), a.value = new Date(Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), 1)), l.value = new Date(Date.UTC(
|
101
|
-
e.getUTCFullYear(),
|
102
|
-
e.getUTCMonth() + 1,
|
103
|
-
0
|
104
|
-
)), r("update:modelValue", { start: a.value, end: l.value });
|
93
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate(), 0, 0, 0, 0)), a = new Date(Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate(), 23, 59, 59, 999));
|
94
|
+
n.value = t.toISOString(), s.value = a.toISOString(), c.value = { start: n.value, end: s.value };
|
105
95
|
}, E = () => {
|
106
|
-
const e = /* @__PURE__ */ new Date();
|
107
|
-
|
96
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e);
|
97
|
+
t.setUTCDate(e.getUTCDate() - 7), t.setUTCHours(0, 0, 0, 0), n.value = t, s.value = d(e), e.setUTCHours(23, 59, 59, 999);
|
98
|
+
const a = t.toISOString(), u = e.toISOString();
|
99
|
+
c.value = { start: a, end: u };
|
100
|
+
}, H = () => {
|
101
|
+
const e = /* @__PURE__ */ new Date(), t = new Date(e);
|
102
|
+
t.setUTCMonth(e.getUTCMonth() - 1), t.setUTCHours(0, 0, 0, 0), n.value = t, s.value = d(e), e.setUTCHours(23, 59, 59, 999);
|
103
|
+
const a = t.toISOString(), u = e.toISOString();
|
104
|
+
c.value = { start: a, end: u };
|
105
|
+
}, V = () => {
|
106
|
+
n.value = null, s.value = null, c.value = { start: null, end: null };
|
108
107
|
};
|
109
|
-
return (e, t) => (
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
108
|
+
return (e, t) => (g(), v("div", A, [
|
109
|
+
T.allowRange ? (g(), v("div", Z, [
|
110
|
+
r("button", {
|
111
|
+
onClick: R,
|
112
|
+
class: "font-second t-nowrap pd-thin bg-main-transp-10 radius-small"
|
114
113
|
}, "Today"),
|
115
|
-
|
116
|
-
|
117
|
-
|
114
|
+
r("button", {
|
115
|
+
onClick: E,
|
116
|
+
class: "font-second t-nowrap pd-thin bg-main-transp-10 radius-small"
|
118
117
|
}, "Last Week"),
|
119
|
-
|
120
|
-
|
121
|
-
|
118
|
+
r("button", {
|
119
|
+
onClick: H,
|
120
|
+
class: "font-second t-nowrap pd-thin bg-main-transp-10 radius-small"
|
122
121
|
}, "Last Month"),
|
123
|
-
|
124
|
-
|
125
|
-
|
122
|
+
r("button", {
|
123
|
+
onClick: V,
|
124
|
+
class: "font-second t-nowrap pd-thin bg-main-transp-10 radius-small"
|
126
125
|
}, "All time")
|
127
|
-
])) :
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
126
|
+
])) : j("", !0),
|
127
|
+
r("div", q, [
|
128
|
+
r("button", {
|
129
|
+
onClick: h(L, ["stop"]),
|
130
|
+
class: "aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"
|
132
131
|
}, "<"),
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
132
|
+
r("span", G, p(S.value), 1),
|
133
|
+
r("button", {
|
134
|
+
onClick: h(W, ["stop"]),
|
135
|
+
class: "aspect-ratio-1x1 w-10 pd-thin bg-main-transp-10 radius-small"
|
137
136
|
}, ">")
|
138
137
|
]),
|
139
|
-
|
140
|
-
|
141
|
-
(
|
142
|
-
key:
|
138
|
+
r("div", J, [
|
139
|
+
r("div", K, [
|
140
|
+
(g(), v(y, null, M(b, (a, u) => r("div", {
|
141
|
+
key: u,
|
143
142
|
class: "calendar__weekday"
|
144
|
-
},
|
143
|
+
}, p(a), 1)), 64))
|
145
144
|
]),
|
146
|
-
|
147
|
-
(
|
148
|
-
key:
|
149
|
-
class:
|
145
|
+
r("div", P, [
|
146
|
+
(g(!0), v(y, null, M(x.value, (a) => (g(), v("div", {
|
147
|
+
key: a.date,
|
148
|
+
class: N([
|
150
149
|
"flex flex-center cursor-pointer aspect-ratio-1x1 radius-small",
|
151
|
-
{ "bg-main t-white":
|
152
|
-
{ "calendar__date--selected":
|
153
|
-
{ "calendar__date--range":
|
154
|
-
{ "calendar__date--disabled": !F(
|
150
|
+
{ "bg-main t-white": a.isToday },
|
151
|
+
{ "calendar__date--selected": Y(a.date) },
|
152
|
+
{ "calendar__date--range": O(a.date) },
|
153
|
+
{ "calendar__date--disabled": !F(a.date) }
|
155
154
|
]),
|
156
|
-
onClick: (
|
157
|
-
},
|
155
|
+
onClick: h((u) => I(a.date), ["stop"])
|
156
|
+
}, p(a.day), 11, Q))), 128))
|
158
157
|
])
|
159
158
|
])
|
160
159
|
]));
|
161
160
|
}
|
162
|
-
},
|
161
|
+
}, se = /* @__PURE__ */ z(X, [["__scopeId", "data-v-6bc137b0"]]);
|
163
162
|
export {
|
164
|
-
|
163
|
+
se as default
|
165
164
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
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.vue2.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),d={key:0,class:"w-100 h-100 flex-center flex"},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),e.mergeProps(t.label.props,{class:t.label.class}),null,16,["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 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-96fe1329"]]);exports.default=v;
|
@@ -1 +1,58 @@
|
|
1
|
-
|
1
|
+
import { ref as u, computed as f, withDirectives as a, openBlock as l, createElementBlock as o, withModifiers as m, createBlock as p, resolveDynamicComponent as v, mergeProps as b, toDisplayString as g, createVNode as k, Transition as w, withCtx as y, createElementVNode as h, normalizeStyle as O, renderSlot as S, vShow as x, unref as C } from "vue";
|
2
|
+
import D from "../FieldPhone/click-outside.js";
|
3
|
+
import "./Dropdown.vue2.js";
|
4
|
+
import B from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const T = {
|
6
|
+
key: 0,
|
7
|
+
class: "w-100 h-100 flex-center flex"
|
8
|
+
}, j = { key: 1 }, E = {
|
9
|
+
__name: "Dropdown",
|
10
|
+
props: {
|
11
|
+
label: {
|
12
|
+
type: [String, Object],
|
13
|
+
default: "Open"
|
14
|
+
},
|
15
|
+
align: {
|
16
|
+
type: String,
|
17
|
+
default: "left"
|
18
|
+
}
|
19
|
+
},
|
20
|
+
setup(e) {
|
21
|
+
let i = D;
|
22
|
+
const s = e, t = u(!1), r = f(() => typeof s.label == "object");
|
23
|
+
function c() {
|
24
|
+
t.value = !1;
|
25
|
+
}
|
26
|
+
return (d, n) => a((l(), o("div", {
|
27
|
+
class: "dropdown pos-relative",
|
28
|
+
onClick: n[0] || (n[0] = m((N) => t.value = !t.value, ["stop"]))
|
29
|
+
}, [
|
30
|
+
r.value ? (l(), o("div", T, [
|
31
|
+
(l(), p(v(e.label.component), b(e.label.props, {
|
32
|
+
class: e.label.class
|
33
|
+
}), null, 16, ["class"]))
|
34
|
+
])) : (l(), o("div", j, g(e.label), 1)),
|
35
|
+
k(w, {
|
36
|
+
name: "TransitionTranslateY",
|
37
|
+
mode: "out-in"
|
38
|
+
}, {
|
39
|
+
default: y(() => [
|
40
|
+
a(h("div", {
|
41
|
+
style: O({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
|
42
|
+
class: "dropdown-content radius-big"
|
43
|
+
}, [
|
44
|
+
S(d.$slots, "default", {}, void 0, !0)
|
45
|
+
], 4), [
|
46
|
+
[x, t.value]
|
47
|
+
])
|
48
|
+
]),
|
49
|
+
_: 3
|
50
|
+
})
|
51
|
+
])), [
|
52
|
+
[C(i), c]
|
53
|
+
]);
|
54
|
+
}
|
55
|
+
}, L = /* @__PURE__ */ B(E, [["__scopeId", "data-v-96fe1329"]]);
|
56
|
+
export {
|
57
|
+
L as default
|
58
|
+
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";
|
@@ -1,58 +1 @@
|
|
1
|
-
|
2
|
-
import D from "../FieldPhone/click-outside.js";
|
3
|
-
import "./Dropdown.vue.js";
|
4
|
-
import B from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
-
const T = {
|
6
|
-
key: 0,
|
7
|
-
class: "w-100 h-100 flex-center flex"
|
8
|
-
}, j = { key: 1 }, E = {
|
9
|
-
__name: "Dropdown",
|
10
|
-
props: {
|
11
|
-
label: {
|
12
|
-
type: [String, Object],
|
13
|
-
default: "Open"
|
14
|
-
},
|
15
|
-
align: {
|
16
|
-
type: String,
|
17
|
-
default: "left"
|
18
|
-
}
|
19
|
-
},
|
20
|
-
setup(e) {
|
21
|
-
let i = D;
|
22
|
-
const s = e, t = u(!1), r = f(() => typeof s.label == "object");
|
23
|
-
function c() {
|
24
|
-
t.value = !1;
|
25
|
-
}
|
26
|
-
return (d, n) => a((l(), o("div", {
|
27
|
-
class: "dropdown pos-relative",
|
28
|
-
onClick: n[0] || (n[0] = m((N) => t.value = !t.value, ["stop"]))
|
29
|
-
}, [
|
30
|
-
r.value ? (l(), o("div", T, [
|
31
|
-
(l(), p(v(e.label.component), b(e.label.props, {
|
32
|
-
class: e.label.class
|
33
|
-
}), null, 16, ["class"]))
|
34
|
-
])) : (l(), o("div", j, g(e.label), 1)),
|
35
|
-
k(w, {
|
36
|
-
name: "TransitionTranslateY",
|
37
|
-
mode: "out-in"
|
38
|
-
}, {
|
39
|
-
default: y(() => [
|
40
|
-
a(h("div", {
|
41
|
-
style: O({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
|
42
|
-
class: "dropdown-content radius-big"
|
43
|
-
}, [
|
44
|
-
S(d.$slots, "default", {}, void 0, !0)
|
45
|
-
], 4), [
|
46
|
-
[x, t.value]
|
47
|
-
])
|
48
|
-
]),
|
49
|
-
_: 3
|
50
|
-
})
|
51
|
-
])), [
|
52
|
-
[C(i), c]
|
53
|
-
]);
|
54
|
-
}
|
55
|
-
}, L = /* @__PURE__ */ B(E, [["__scopeId", "data-v-96fe1329"]]);
|
56
|
-
export {
|
57
|
-
L as default
|
58
|
-
};
|
1
|
+
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
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;
|