@ozdao/prometheus-framework 0.1.95 → 0.1.97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. package/README.md +3 -2
  2. package/dist/auth.server.js +1 -1
  3. package/dist/auth.server.mjs +1 -1
  4. package/dist/community.server.js +1 -2
  5. package/dist/community.server.mjs +1 -2
  6. package/dist/events.server.js +1 -1
  7. package/dist/events.server.mjs +1 -1
  8. package/dist/files.server.js +1 -1
  9. package/dist/files.server.mjs +1 -1
  10. package/dist/gallery.server.js +1 -1
  11. package/dist/gallery.server.mjs +1 -1
  12. package/dist/middlewares.server.js +1 -1
  13. package/dist/middlewares.server.mjs +1 -1
  14. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  15. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
  16. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  17. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
  18. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  20. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  21. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
  22. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  24. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
  28. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  30. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +2 -2
  32. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +2 -2
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +2 -2
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +2 -2
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +2 -2
  40. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  41. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  42. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  43. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  44. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  45. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.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 +2 -2
  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 +1 -1
  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 +2 -2
  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 +2 -2
  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 +1 -1
  56. package/dist/prometheus-framework/src/modules/icons/icons.client.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/icons/icons.client.js +48 -46
  58. package/dist/prometheus-framework/src/modules/icons/navigation/IconInfo.vue.cjs +1 -0
  59. package/dist/prometheus-framework/src/modules/icons/navigation/IconInfo.vue.js +39 -0
  60. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  62. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  65. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +2 -2
  68. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +2 -2
  70. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  72. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  76. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  77. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  78. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  79. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  80. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  81. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  82. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  83. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  84. package/dist/reports.server.js +1 -1
  85. package/dist/reports.server.mjs +1 -1
  86. package/dist/style.css +1 -1
  87. package/package.json +5 -1
  88. package/src/modules/community/controllers/blog.controller.js +0 -2
  89. package/src/modules/icons/icons.client.js +23 -11
  90. package/src/modules/icons/navigation/IconInfo.vue +37 -0
  91. package/src/modules/middlewares/server/authJwt.js +9 -15
package/README.md CHANGED
@@ -143,9 +143,10 @@ Community contributions are encouraged. For guidelines, see the [contributing gu
143
143
  ## Special Thanks
144
144
  During the work process, we study a vast amount of open-source code and are grateful to all the programmers who have shared it. Without you, all of this would have been impossible. Special attention is deserved by the authors whose code we have fully utilized, your names will forever be in the history of OZ:
145
145
 
146
- For [sipec][https://github.com/sipec] for his [vue-tags-input](https://github.com/sipec/vue-tags-input)
147
- For [VictorNico][https://github.com/VictorNico] for his [vue3-reactive-tel-input](https://github.com/VictorNico/vue3-reactive-tel-input)
146
+ For [megasanjay][https://github.com/megasanjay] for his [vue3-marquee](https://github.com/megasanjay/vue3-marquee)
148
147
  For [shentao][https://github.com/shentao] for his [vue-multiselect](https://github.com/shentao/vue-multiselect)
148
+ For [VictorNico][https://github.com/VictorNico] for his [vue3-reactive-tel-input](https://github.com/VictorNico/vue3-reactive-tel-input)
149
+ For [sipec][https://github.com/sipec] for his [vue-tags-input](https://github.com/sipec/vue-tags-input)
149
150
 
150
151
  ## License
151
152
  Prometheus Framework is licensed under the [GNU GPLv3](https://www.gnu.org/licenses/gpl-3.0.txt).
@@ -7,7 +7,7 @@ const require$$3 = require("uuidv4");
7
7
  const require$$1 = require("node-fetch");
8
8
  const require$$2 = require("jwk-to-pem");
9
9
  const mailing = require("./mailing-9659b3c4.js");
10
- const index = require("./index-fd6fdd90.js");
10
+ const index = require("./index-21dfdbd9.js");
11
11
  require("dotenv");
12
12
  require("nodemailer");
13
13
  require("axios");
@@ -6,7 +6,7 @@ import require$$3 from "uuidv4";
6
6
  import require$$1 from "node-fetch";
7
7
  import require$$2 from "jwk-to-pem";
8
8
  import { m as mailing } from "./mailing-76895d59.mjs";
9
- import { s as server } from "./index-96ec80f2.mjs";
9
+ import { s as server } from "./index-fa8d5df4.mjs";
10
10
  import "dotenv";
11
11
  import "nodemailer";
12
12
  import "axios";
@@ -4,7 +4,7 @@ const require$$0 = require("mongoose");
4
4
  const metadata_schema = require("./metadata.schema-e4fe5c57.js");
5
5
  require("util");
6
6
  require("uuid");
7
- const index = require("./index-fd6fdd90.js");
7
+ const index = require("./index-21dfdbd9.js");
8
8
  require("jsonwebtoken");
9
9
  require("mongodb");
10
10
  function getPeriodConditions(period) {
@@ -247,7 +247,6 @@ const controllerFactory$3 = (db) => {
247
247
  }
248
248
  };
249
249
  const create = (req, res) => {
250
- JSON.parse(req.cookies.user);
251
250
  const newBlogpost = {
252
251
  url: req.body.name.toLowerCase().replace(/ /g, "-").replace(/[^\w-]+/g, ""),
253
252
  name: req.body.name,
@@ -3,7 +3,7 @@ import require$$0 from "mongoose";
3
3
  import { q as queryProcessor$3, c as common_schema, e as engagement_schema, o as ownership_schema, m as metadata_schema } from "./metadata.schema-a539dd65.mjs";
4
4
  import "util";
5
5
  import "uuid";
6
- import { s as server$1 } from "./index-96ec80f2.mjs";
6
+ import { s as server$1 } from "./index-fa8d5df4.mjs";
7
7
  import "jsonwebtoken";
8
8
  import "mongodb";
9
9
  function getPeriodConditions(period) {
@@ -246,7 +246,6 @@ const controllerFactory$3 = (db) => {
246
246
  }
247
247
  };
248
248
  const create = (req, res) => {
249
- JSON.parse(req.cookies.user);
250
249
  const newBlogpost = {
251
250
  url: req.body.name.toLowerCase().replace(/ /g, "-").replace(/[^\w-]+/g, ""),
252
251
  name: req.body.name,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const _commonjsHelpers = require("./_commonjsHelpers-3b53548e.js");
4
4
  const require$$0 = require("mongoose");
5
5
  const metadata_schema = require("./metadata.schema-e4fe5c57.js");
6
- const index = require("./index-fd6fdd90.js");
6
+ const index = require("./index-21dfdbd9.js");
7
7
  require("jsonwebtoken");
8
8
  require("mongodb");
9
9
  const ObjectId = require$$0.Types.ObjectId;
@@ -1,7 +1,7 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
2
2
  import require$$0 from "mongoose";
3
3
  import { q as queryProcessor$2, c as common_schema, e as engagement_schema, o as ownership_schema, m as metadata_schema } from "./metadata.schema-a539dd65.mjs";
4
- import { s as server$1 } from "./index-96ec80f2.mjs";
4
+ import { s as server$1 } from "./index-fa8d5df4.mjs";
5
5
  import "jsonwebtoken";
6
6
  import "mongodb";
7
7
  const ObjectId = require$$0.Types.ObjectId;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("./_commonjsHelpers-3b53548e.js");
3
- const index = require("./index-fd6fdd90.js");
3
+ const index = require("./index-21dfdbd9.js");
4
4
  const require$$0 = require("sharp");
5
5
  const require$$1 = require("fs");
6
6
  const require$$2 = require("path");
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
2
- import { s as server$1 } from "./index-96ec80f2.mjs";
2
+ import { s as server$1 } from "./index-fa8d5df4.mjs";
3
3
  import require$$0 from "sharp";
4
4
  import require$$1 from "fs";
5
5
  import require$$2 from "path";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("./_commonjsHelpers-3b53548e.js");
3
3
  const require$$2 = require("path");
4
- const index = require("./index-fd6fdd90.js");
4
+ const index = require("./index-21dfdbd9.js");
5
5
  require("jsonwebtoken");
6
6
  require("mongodb");
7
7
  const path = require$$2;
@@ -1,6 +1,6 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
2
2
  import require$$2 from "path";
3
- import { s as server } from "./index-96ec80f2.mjs";
3
+ import { s as server } from "./index-fa8d5df4.mjs";
4
4
  import "jsonwebtoken";
5
5
  import "mongodb";
6
6
  const path = require$$2;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const _commonjsHelpers = require("./_commonjsHelpers-3b53548e.js");
3
- const index = require("./index-fd6fdd90.js");
3
+ const index = require("./index-21dfdbd9.js");
4
4
  require("jsonwebtoken");
5
5
  require("mongodb");
6
6
  const verifyUser = index.verifyUser;
@@ -1,5 +1,5 @@
1
1
  import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-83b1d755.mjs";
2
- import { v as verifyUser$1, a as verifyInvites$1, b as authJwt$1, c as verifySignUp$1, d as verifyCategory$1, s as server } from "./index-96ec80f2.mjs";
2
+ import { v as verifyUser$1, a as verifyInvites$1, b as authJwt$1, c as verifySignUp$1, d as verifyCategory$1, s as server } from "./index-fa8d5df4.mjs";
3
3
  import "jsonwebtoken";
4
4
  import "mongodb";
5
5
  const verifyUser = verifyUser$1;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Button.vue2.cjs");const u=["onClick","disabled"],d={key:0},m={key:0,class:"loading"},h=e.createElementVNode("svg",{class:"i-regular",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[e.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])],-1),b=[h],f={key:0,class:"loading t-white"},g={key:0,class:"error"},v={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},setup(r){const n=r,t=e.ref(null),a=e.ref(null),l=e.ref(!1),o=e.ref(!1);async function s(){t.value.style["pointer-events"]="none",a.value=null,l.value=!0;const i=()=>{t.value&&(t.value.classList.replace("bg-light-main","bg-main"),t.value.style.pointerEvents="auto",l.value=!1,o.value=!1,a.value=null)};try{await n.submit(),t.value.classList.replace("bg-main","bg-light-main"),l.value=!1,n.showSucces?(o.value=!0,setTimeout(i,500)):i(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{t.value.classList.replace("bg-main","bg-fourth-nano"),a.value="❌",setTimeout(()=>{i(),t.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(i,c)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(s,["stop"]),disabled:r.validation,ref_key:"button",ref:t,class:"w-100 bg-main button"},[e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[!l.value&&!a.value&&!o.value?(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(i.$slots,"default")])):e.createCommentVNode("",!0)]),_:3}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[l.value&&!a.value?(e.openBlock(),e.createElementBlock("span",m,b)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[o.value&&r.showSucces?(e.openBlock(),e.createElementBlock("span",f,"✔")):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:1})],8,u))}};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,226 +1,4 @@
1
- import { ref as c, openBlock as s, createElementBlock as u, withModifiers as p, createVNode as d, Transition as m, withCtx as h, renderSlot as y, createCommentVNode as b, toDisplayString as _, createElementVNode as e, createTextVNode as o } from "vue";
2
- import "./Button.vue2.js";
3
- const w = ["onClick", "disabled"], k = { key: 0 }, N = {
4
- key: 0,
5
- class: "loading"
6
- }, x = /* @__PURE__ */ e("svg", {
7
- class: "i-regular",
8
- width: "135",
9
- height: "140",
10
- viewBox: "0 0 135 140",
11
- xmlns: "http://www.w3.org/2000/svg",
12
- fill: "#fff"
13
- }, [
14
- /* @__PURE__ */ e("rect", {
15
- y: "10",
16
- width: "15",
17
- height: "120",
18
- rx: "6"
19
- }, [
20
- /* @__PURE__ */ e("animate", {
21
- attributeName: "height",
22
- begin: "0.5s",
23
- dur: "1s",
24
- values: "120;110;100;90;80;70;60;50;40;140;120",
25
- calcMode: "linear",
26
- repeatCount: "indefinite"
27
- }),
28
- /* @__PURE__ */ o(),
29
- /* @__PURE__ */ e("animate", {
30
- attributeName: "y",
31
- begin: "0.5s",
32
- dur: "1s",
33
- values: "10;15;20;25;30;35;40;45;50;0;10",
34
- calcMode: "linear",
35
- repeatCount: "indefinite"
36
- })
37
- ]),
38
- /* @__PURE__ */ e("rect", {
39
- x: "30",
40
- y: "10",
41
- width: "15",
42
- height: "120",
43
- rx: "6"
44
- }, [
45
- /* @__PURE__ */ e("animate", {
46
- attributeName: "height",
47
- begin: "0.25s",
48
- dur: "1s",
49
- values: "120;110;100;90;80;70;60;50;40;140;120",
50
- calcMode: "linear",
51
- repeatCount: "indefinite"
52
- }),
53
- /* @__PURE__ */ o(),
54
- /* @__PURE__ */ e("animate", {
55
- attributeName: "y",
56
- begin: "0.25s",
57
- dur: "1s",
58
- values: "10;15;20;25;30;35;40;45;50;0;10",
59
- calcMode: "linear",
60
- repeatCount: "indefinite"
61
- })
62
- ]),
63
- /* @__PURE__ */ e("rect", {
64
- x: "60",
65
- width: "15",
66
- height: "140",
67
- rx: "6"
68
- }, [
69
- /* @__PURE__ */ e("animate", {
70
- attributeName: "height",
71
- begin: "0s",
72
- dur: "1s",
73
- values: "120;110;100;90;80;70;60;50;40;140;120",
74
- calcMode: "linear",
75
- repeatCount: "indefinite"
76
- }),
77
- /* @__PURE__ */ o(),
78
- /* @__PURE__ */ e("animate", {
79
- attributeName: "y",
80
- begin: "0s",
81
- dur: "1s",
82
- values: "10;15;20;25;30;35;40;45;50;0;10",
83
- calcMode: "linear",
84
- repeatCount: "indefinite"
85
- })
86
- ]),
87
- /* @__PURE__ */ e("rect", {
88
- x: "90",
89
- y: "10",
90
- width: "15",
91
- height: "120",
92
- rx: "6"
93
- }, [
94
- /* @__PURE__ */ e("animate", {
95
- attributeName: "height",
96
- begin: "0.25s",
97
- dur: "1s",
98
- values: "120;110;100;90;80;70;60;50;40;140;120",
99
- calcMode: "linear",
100
- repeatCount: "indefinite"
101
- }),
102
- /* @__PURE__ */ o(),
103
- /* @__PURE__ */ e("animate", {
104
- attributeName: "y",
105
- begin: "0.25s",
106
- dur: "1s",
107
- values: "10;15;20;25;30;35;40;45;50;0;10",
108
- calcMode: "linear",
109
- repeatCount: "indefinite"
110
- })
111
- ]),
112
- /* @__PURE__ */ e("rect", {
113
- x: "120",
114
- y: "10",
115
- width: "15",
116
- height: "120",
117
- rx: "6"
118
- }, [
119
- /* @__PURE__ */ e("animate", {
120
- attributeName: "height",
121
- begin: "0.5s",
122
- dur: "1s",
123
- values: "120;110;100;90;80;70;60;50;40;140;120",
124
- calcMode: "linear",
125
- repeatCount: "indefinite"
126
- }),
127
- /* @__PURE__ */ o(),
128
- /* @__PURE__ */ e("animate", {
129
- attributeName: "y",
130
- begin: "0.5s",
131
- dur: "1s",
132
- values: "10;15;20;25;30;35;40;45;50;0;10",
133
- calcMode: "linear",
134
- repeatCount: "indefinite"
135
- })
136
- ])
137
- ], -1), C = [
138
- x
139
- ], T = {
140
- key: 0,
141
- class: "loading t-white"
142
- }, M = {
143
- key: 0,
144
- class: "error"
145
- }, L = {
146
- __name: "Button",
147
- props: {
148
- submit: {
149
- type: Function,
150
- default: async () => {
151
- console.log("Button click.");
152
- }
153
- },
154
- callback: {
155
- type: Function,
156
- default: async () => {
157
- console.log("Button callback.");
158
- }
159
- },
160
- callbackDelay: {
161
- type: Number,
162
- default: 750
163
- },
164
- showSucces: {
165
- type: Boolean,
166
- default: !0
167
- },
168
- validation: {
169
- type: Boolean,
170
- default: !1
171
- }
172
- },
173
- setup(f) {
174
- const i = f, t = c(null), a = c(null), n = c(!1), r = c(!1);
175
- async function g() {
176
- t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
177
- const l = () => {
178
- t.value && (t.value.classList.replace("bg-light-main", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, r.value = !1, a.value = null);
179
- };
180
- try {
181
- await i.submit(), t.value.classList.replace("bg-main", "bg-light-main"), n.value = !1, i.showSucces ? (r.value = !0, setTimeout(l, 500)) : l(), i.callback && setTimeout(() => i.callback(), i.callbackDelay);
182
- } catch {
183
- t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = "❌", setTimeout(() => {
184
- l(), t.value.classList.replace("bg-fourth-nano", "bg-main");
185
- }, 1330);
186
- }
187
- }
188
- return (l, v) => (s(), u("button", {
189
- onClick: p(g, ["stop"]),
190
- disabled: f.validation,
191
- ref_key: "button",
192
- ref: t,
193
- class: "w-100 bg-main button"
194
- }, [
195
- d(m, { name: "TransitionTranslateY-small" }, {
196
- default: h(() => [
197
- !n.value && !a.value && !r.value ? (s(), u("span", k, [
198
- y(l.$slots, "default")
199
- ])) : b("", !0)
200
- ]),
201
- _: 3
202
- }),
203
- d(m, { name: "TransitionTranslateY-small" }, {
204
- default: h(() => [
205
- n.value && !a.value ? (s(), u("span", N, C)) : b("", !0)
206
- ]),
207
- _: 1
208
- }),
209
- d(m, { name: "TransitionTranslateY-small" }, {
210
- default: h(() => [
211
- r.value && f.showSucces ? (s(), u("span", T, "✔")) : b("", !0)
212
- ]),
213
- _: 1
214
- }),
215
- d(m, { name: "TransitionTranslateY-small" }, {
216
- default: h(() => [
217
- a.value ? (s(), u("span", M, _(a.value), 1)) : b("", !0)
218
- ]),
219
- _: 1
220
- })
221
- ], 8, w));
222
- }
223
- };
1
+ const e = "";
224
2
  export {
225
- L as default
3
+ e as default
226
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Button.vue.cjs");const u=["onClick","disabled"],d={key:0},m={key:0,class:"loading"},h=e.createElementVNode("svg",{class:"i-regular",width:"135",height:"140",viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:"#fff"},[e.createElementVNode("rect",{y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"60",width:"15",height:"140",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})]),e.createElementVNode("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},[e.createElementVNode("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),e.createTextVNode(),e.createElementVNode("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})])],-1),b=[h],f={key:0,class:"loading t-white"},g={key:0,class:"error"},v={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},setup(r){const n=r,t=e.ref(null),a=e.ref(null),l=e.ref(!1),o=e.ref(!1);async function s(){t.value.style["pointer-events"]="none",a.value=null,l.value=!0;const i=()=>{t.value&&(t.value.classList.replace("bg-light-main","bg-main"),t.value.style.pointerEvents="auto",l.value=!1,o.value=!1,a.value=null)};try{await n.submit(),t.value.classList.replace("bg-main","bg-light-main"),l.value=!1,n.showSucces?(o.value=!0,setTimeout(i,500)):i(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{t.value.classList.replace("bg-main","bg-fourth-nano"),a.value="❌",setTimeout(()=>{i(),t.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(i,c)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(s,["stop"]),disabled:r.validation,ref_key:"button",ref:t,class:"w-100 bg-main button"},[e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[!l.value&&!a.value&&!o.value?(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(i.$slots,"default")])):e.createCommentVNode("",!0)]),_:3}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[l.value&&!a.value?(e.openBlock(),e.createElementBlock("span",m,b)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[o.value&&r.showSucces?(e.openBlock(),e.createElementBlock("span",f,"✔")):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"TransitionTranslateY-small"},{default:e.withCtx(()=>[a.value?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)]),_:1})],8,u))}};exports.default=v;
@@ -1,4 +1,226 @@
1
- const e = "";
1
+ import { ref as c, openBlock as s, createElementBlock as u, withModifiers as p, createVNode as d, Transition as m, withCtx as h, renderSlot as y, createCommentVNode as b, toDisplayString as _, createElementVNode as e, createTextVNode as o } from "vue";
2
+ import "./Button.vue.js";
3
+ const w = ["onClick", "disabled"], k = { key: 0 }, N = {
4
+ key: 0,
5
+ class: "loading"
6
+ }, x = /* @__PURE__ */ e("svg", {
7
+ class: "i-regular",
8
+ width: "135",
9
+ height: "140",
10
+ viewBox: "0 0 135 140",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ fill: "#fff"
13
+ }, [
14
+ /* @__PURE__ */ e("rect", {
15
+ y: "10",
16
+ width: "15",
17
+ height: "120",
18
+ rx: "6"
19
+ }, [
20
+ /* @__PURE__ */ e("animate", {
21
+ attributeName: "height",
22
+ begin: "0.5s",
23
+ dur: "1s",
24
+ values: "120;110;100;90;80;70;60;50;40;140;120",
25
+ calcMode: "linear",
26
+ repeatCount: "indefinite"
27
+ }),
28
+ /* @__PURE__ */ o(),
29
+ /* @__PURE__ */ e("animate", {
30
+ attributeName: "y",
31
+ begin: "0.5s",
32
+ dur: "1s",
33
+ values: "10;15;20;25;30;35;40;45;50;0;10",
34
+ calcMode: "linear",
35
+ repeatCount: "indefinite"
36
+ })
37
+ ]),
38
+ /* @__PURE__ */ e("rect", {
39
+ x: "30",
40
+ y: "10",
41
+ width: "15",
42
+ height: "120",
43
+ rx: "6"
44
+ }, [
45
+ /* @__PURE__ */ e("animate", {
46
+ attributeName: "height",
47
+ begin: "0.25s",
48
+ dur: "1s",
49
+ values: "120;110;100;90;80;70;60;50;40;140;120",
50
+ calcMode: "linear",
51
+ repeatCount: "indefinite"
52
+ }),
53
+ /* @__PURE__ */ o(),
54
+ /* @__PURE__ */ e("animate", {
55
+ attributeName: "y",
56
+ begin: "0.25s",
57
+ dur: "1s",
58
+ values: "10;15;20;25;30;35;40;45;50;0;10",
59
+ calcMode: "linear",
60
+ repeatCount: "indefinite"
61
+ })
62
+ ]),
63
+ /* @__PURE__ */ e("rect", {
64
+ x: "60",
65
+ width: "15",
66
+ height: "140",
67
+ rx: "6"
68
+ }, [
69
+ /* @__PURE__ */ e("animate", {
70
+ attributeName: "height",
71
+ begin: "0s",
72
+ dur: "1s",
73
+ values: "120;110;100;90;80;70;60;50;40;140;120",
74
+ calcMode: "linear",
75
+ repeatCount: "indefinite"
76
+ }),
77
+ /* @__PURE__ */ o(),
78
+ /* @__PURE__ */ e("animate", {
79
+ attributeName: "y",
80
+ begin: "0s",
81
+ dur: "1s",
82
+ values: "10;15;20;25;30;35;40;45;50;0;10",
83
+ calcMode: "linear",
84
+ repeatCount: "indefinite"
85
+ })
86
+ ]),
87
+ /* @__PURE__ */ e("rect", {
88
+ x: "90",
89
+ y: "10",
90
+ width: "15",
91
+ height: "120",
92
+ rx: "6"
93
+ }, [
94
+ /* @__PURE__ */ e("animate", {
95
+ attributeName: "height",
96
+ begin: "0.25s",
97
+ dur: "1s",
98
+ values: "120;110;100;90;80;70;60;50;40;140;120",
99
+ calcMode: "linear",
100
+ repeatCount: "indefinite"
101
+ }),
102
+ /* @__PURE__ */ o(),
103
+ /* @__PURE__ */ e("animate", {
104
+ attributeName: "y",
105
+ begin: "0.25s",
106
+ dur: "1s",
107
+ values: "10;15;20;25;30;35;40;45;50;0;10",
108
+ calcMode: "linear",
109
+ repeatCount: "indefinite"
110
+ })
111
+ ]),
112
+ /* @__PURE__ */ e("rect", {
113
+ x: "120",
114
+ y: "10",
115
+ width: "15",
116
+ height: "120",
117
+ rx: "6"
118
+ }, [
119
+ /* @__PURE__ */ e("animate", {
120
+ attributeName: "height",
121
+ begin: "0.5s",
122
+ dur: "1s",
123
+ values: "120;110;100;90;80;70;60;50;40;140;120",
124
+ calcMode: "linear",
125
+ repeatCount: "indefinite"
126
+ }),
127
+ /* @__PURE__ */ o(),
128
+ /* @__PURE__ */ e("animate", {
129
+ attributeName: "y",
130
+ begin: "0.5s",
131
+ dur: "1s",
132
+ values: "10;15;20;25;30;35;40;45;50;0;10",
133
+ calcMode: "linear",
134
+ repeatCount: "indefinite"
135
+ })
136
+ ])
137
+ ], -1), C = [
138
+ x
139
+ ], T = {
140
+ key: 0,
141
+ class: "loading t-white"
142
+ }, M = {
143
+ key: 0,
144
+ class: "error"
145
+ }, L = {
146
+ __name: "Button",
147
+ props: {
148
+ submit: {
149
+ type: Function,
150
+ default: async () => {
151
+ console.log("Button click.");
152
+ }
153
+ },
154
+ callback: {
155
+ type: Function,
156
+ default: async () => {
157
+ console.log("Button callback.");
158
+ }
159
+ },
160
+ callbackDelay: {
161
+ type: Number,
162
+ default: 750
163
+ },
164
+ showSucces: {
165
+ type: Boolean,
166
+ default: !0
167
+ },
168
+ validation: {
169
+ type: Boolean,
170
+ default: !1
171
+ }
172
+ },
173
+ setup(f) {
174
+ const i = f, t = c(null), a = c(null), n = c(!1), r = c(!1);
175
+ async function g() {
176
+ t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
177
+ const l = () => {
178
+ t.value && (t.value.classList.replace("bg-light-main", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, r.value = !1, a.value = null);
179
+ };
180
+ try {
181
+ await i.submit(), t.value.classList.replace("bg-main", "bg-light-main"), n.value = !1, i.showSucces ? (r.value = !0, setTimeout(l, 500)) : l(), i.callback && setTimeout(() => i.callback(), i.callbackDelay);
182
+ } catch {
183
+ t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = "❌", setTimeout(() => {
184
+ l(), t.value.classList.replace("bg-fourth-nano", "bg-main");
185
+ }, 1330);
186
+ }
187
+ }
188
+ return (l, v) => (s(), u("button", {
189
+ onClick: p(g, ["stop"]),
190
+ disabled: f.validation,
191
+ ref_key: "button",
192
+ ref: t,
193
+ class: "w-100 bg-main button"
194
+ }, [
195
+ d(m, { name: "TransitionTranslateY-small" }, {
196
+ default: h(() => [
197
+ !n.value && !a.value && !r.value ? (s(), u("span", k, [
198
+ y(l.$slots, "default")
199
+ ])) : b("", !0)
200
+ ]),
201
+ _: 3
202
+ }),
203
+ d(m, { name: "TransitionTranslateY-small" }, {
204
+ default: h(() => [
205
+ n.value && !a.value ? (s(), u("span", N, C)) : b("", !0)
206
+ ]),
207
+ _: 1
208
+ }),
209
+ d(m, { name: "TransitionTranslateY-small" }, {
210
+ default: h(() => [
211
+ r.value && f.showSucces ? (s(), u("span", T, "✔")) : b("", !0)
212
+ ]),
213
+ _: 1
214
+ }),
215
+ d(m, { name: "TransitionTranslateY-small" }, {
216
+ default: h(() => [
217
+ a.value ? (s(), u("span", M, _(a.value), 1)) : b("", !0)
218
+ ]),
219
+ _: 1
220
+ })
221
+ ], 8, w));
222
+ }
223
+ };
2
224
  export {
3
- e as default
225
+ L as default
4
226
  };
@@ -1 +1 @@
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"],f=["value","placeholder","tabindex"],b={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:i}){const a=i,s=t,o=e.ref(s.field);return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=n=>o.value=a("update:field",n.target.value)),onFocus:l[1]||(l[1]=n=>a("focus",n)),onBlur:l[2]||(l[2]=n=>a("blur",n)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:l[3]||(l[3]=n=>o.value=a("update:field",n.target.value)),onFocus:l[4]||(l[4]=n=>a("focus",n)),onBlur:l[5]||(l[5]=n=>a("blur",n)),class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,f))]),e.renderSlot(d.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-839e7ced"]]);exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;