@ozdao/prometheus-framework 0.2.40 → 0.2.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. package/dist/events.server.js +9 -0
  2. package/dist/events.server.mjs +9 -0
  3. package/dist/files.server.js +4 -1
  4. package/dist/files.server.mjs +4 -1
  5. package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
  6. package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -225
  7. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
  8. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -2
  9. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
  10. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +2 -61
  11. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.cjs +1 -1
  12. package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue2.js +61 -2
  13. package/dist/prometheus-framework/src/components/Countdown/Countdown.vue.cjs +1 -1
  14. package/dist/prometheus-framework/src/components/Countdown/Countdown.vue.js +26 -28
  15. package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
  16. package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
  17. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
  18. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
  19. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  20. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -70
  21. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +70 -2
  23. package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
  24. package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -95
  25. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
  26. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +95 -2
  27. package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
  28. package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
  29. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
  30. package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
  31. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
  32. package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
  33. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
  34. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
  35. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
  36. package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
  37. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
  38. package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
  39. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
  40. package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
  41. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
  43. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
  44. package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
  45. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  46. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +3 -3
  47. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  48. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +24 -23
  49. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  50. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  51. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
  52. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -65
  53. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
  54. package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +65 -2
  55. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +2 -2
  57. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  58. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  59. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
  60. package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
  61. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +125 -81
  63. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +3 -3
  64. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +65 -56
  65. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
  67. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/events/components/sections/HeroEvent.vue.js +67 -53
  69. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.cjs +2 -2
  70. package/dist/prometheus-framework/src/modules/events/components/sections/SectionMainGuest.vue.js +48 -37
  71. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.cjs +1 -1
  72. package/dist/prometheus-framework/src/modules/events/components/sections/SectionPreviousEvents.vue.js +71 -57
  73. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
  74. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  75. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +3 -3
  77. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
  80. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
  81. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
  84. package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +1 -1
  85. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/orders/components/sections/FormOrderDetails.vue.js +2 -2
  87. package/dist/prometheus-framework/src/modules/orders/store/shopcart.cjs +1 -1
  88. package/dist/prometheus-framework/src/modules/orders/store/shopcart.js +20 -11
  89. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
  90. package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +2 -2
  91. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  92. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  93. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +6 -6
  95. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  96. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  97. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +5 -5
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
  101. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +3 -3
  103. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
  107. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
  108. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +1 -1
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +5 -5
  111. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  114. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  115. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  117. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +1 -1
  119. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +22 -19
  121. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +6 -6
  123. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/pages/ProductsBackoffice.vue.js +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +3 -3
  127. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  130. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +31 -28
  131. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +3 -3
  133. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
  134. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
  135. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
  137. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
  138. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
  139. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +78 -80
  143. package/dist/style.css +1 -1
  144. package/package.json +1 -1
  145. package/src/components/Countdown/Countdown.vue +4 -3
  146. package/src/components/Header/Header.vue +2 -0
  147. package/src/modules/community/components/layouts/Community.vue +2 -2
  148. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -0
  149. package/src/modules/constructor/components/sections/Constructor.vue +1 -1
  150. package/src/modules/events/components/pages/EditEvent.vue +48 -3
  151. package/src/modules/events/components/pages/Event.vue +16 -8
  152. package/src/modules/events/components/sections/HeroEvent.vue +32 -28
  153. package/src/modules/events/components/sections/SectionMainGuest.vue +3 -2
  154. package/src/modules/events/components/sections/SectionPreviousEvents.vue +22 -15
  155. package/src/modules/events/models/event.model.js +9 -0
  156. package/src/modules/files/middlewares/server/middlewareBusboy.js +13 -2
  157. package/src/modules/marketplace/components/layouts/Marketplace.vue +1 -1
  158. package/src/modules/orders/store/shopcart.js +21 -5
  159. package/src/modules/payments/controller/payments.controller.js +54 -200
  160. package/src/modules/payments/controller/payments.tinkoff.controller.js +242 -0
  161. package/src/modules/payments/models/payment.model.js +22 -0
  162. package/src/modules/payments/routes/payments.routes.js +4 -25
  163. package/src/modules/payments/routes/payments.tinkoff.routes.js +58 -0
  164. package/src/modules/products/components/pages/Product.vue +3 -1
  165. package/src/modules/products/components/sections/SectionProduct.vue +3 -0
  166. package/src/modules/products/controllers/products.controller.js +188 -109
  167. package/src/modules/products/models/product.model.js +1 -0
  168. package/src/modules/wallet/components/pages/Wallet.vue +72 -87
  169. package/src/modules/wallet/controllers/crypto.controller.js +79 -0
  170. package/src/modules/wallet/models/wallet.model.js +27 -0
  171. /package/src/modules/{orders/models/payment.model.js → payments/models/payment.tinkoff.model.js} +0 -0
@@ -564,6 +564,8 @@ var event_model = (db) => {
564
564
  default: () => ({
565
565
  subtitle: "NMS Presents",
566
566
  ticketPrice: "499",
567
+ ticketText: "Hurry up and purchase your ticket at a special price of only",
568
+ ticketTextButton: "Buy Ticket Now →",
567
569
  ticketImage: null,
568
570
  ticketLinkStripe: null,
569
571
  video: null,
@@ -577,6 +579,13 @@ var event_model = (db) => {
577
579
  guestTwitter: null,
578
580
  guestSoundcloud: null,
579
581
  guestSpotify: null,
582
+ guestYoutube: null,
583
+ paymentContact: null,
584
+ paymentText: "For extra payment options contact",
585
+ previousTitle: null,
586
+ previousDescription: null,
587
+ previousLink: null,
588
+ previousLinkText: null,
580
589
  logos: [],
581
590
  lineup: [],
582
591
  lineupBackground: null,
@@ -562,6 +562,8 @@ var event_model = (db) => {
562
562
  default: () => ({
563
563
  subtitle: "NMS Presents",
564
564
  ticketPrice: "499",
565
+ ticketText: "Hurry up and purchase your ticket at a special price of only",
566
+ ticketTextButton: "Buy Ticket Now →",
565
567
  ticketImage: null,
566
568
  ticketLinkStripe: null,
567
569
  video: null,
@@ -575,6 +577,13 @@ var event_model = (db) => {
575
577
  guestTwitter: null,
576
578
  guestSoundcloud: null,
577
579
  guestSpotify: null,
580
+ guestYoutube: null,
581
+ paymentContact: null,
582
+ paymentText: "For extra payment options contact",
583
+ previousTitle: null,
584
+ previousDescription: null,
585
+ previousLink: null,
586
+ previousLinkText: null,
578
587
  logos: [],
579
588
  lineup: [],
580
589
  lineupBackground: null,
@@ -88,7 +88,10 @@ function requireMiddlewareBusboy() {
88
88
  file.resume();
89
89
  return;
90
90
  }
91
- const fileName = `${Math.floor(Math.random() * 1e4)}-${info.filename}`;
91
+ const normalizeFileName = (filename) => {
92
+ return filename.replace(/\s/g, "_").replace(/[^a-zA-Z0-9-_\.]/g, "").slice(0, 80);
93
+ };
94
+ const fileName = `${Math.floor(Math.random() * 1e4)}-${normalizeFileName(info.filename)}`;
92
95
  const fileFullPath = path2.join(filePath, fileName);
93
96
  const fileProcess = fsp.mkdir(path2.dirname(fileFullPath), { recursive: true }).then(() => new Promise((resolve, reject) => {
94
97
  const stream = file.pipe(fs.createWriteStream(fileFullPath));
@@ -87,7 +87,10 @@ function requireMiddlewareBusboy() {
87
87
  file.resume();
88
88
  return;
89
89
  }
90
- const fileName = `${Math.floor(Math.random() * 1e4)}-${info.filename}`;
90
+ const normalizeFileName = (filename) => {
91
+ return filename.replace(/\s/g, "_").replace(/[^a-zA-Z0-9-_\.]/g, "").slice(0, 80);
92
+ };
93
+ const fileName = `${Math.floor(Math.random() * 1e4)}-${normalizeFileName(info.filename)}`;
91
94
  const fileFullPath = path2.join(filePath, fileName);
92
95
  const fileProcess = fsp.mkdir(path2.dirname(fileFullPath), { recursive: true }).then(() => new Promise((resolve, reject) => {
93
96
  const stream = file.pipe(fs.createWriteStream(fileFullPath));
@@ -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=["disabled"],d={key:0},m={key:1,class:"loading"},b=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),h=[b],f={key:2,class:"t-semi loading t-black"},g={key:3,class:"error"},v={key:0,class:"button-counter"},y={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},setup(t){const n=t,a=e.ref(null),l=e.ref(null),o=e.ref(!1),c=e.ref(!1);async function r(){a.value.style["pointer-events"]="none",l.value=null,o.value=!0;const i=()=>{a.value&&(a.value.classList.replace("bg-second","bg-main"),a.value.style.pointerEvents="auto",o.value=!1,c.value=!1,l.value=null)};try{await n.submit(),a.value.classList.replace("bg-main","bg-second"),o.value=!1,n.showSucces?(c.value=!0,setTimeout(i,500)):i(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{a.value.classList.replace("bg-main","bg-fourth-nano"),l.value=n.error,setTimeout(()=>{i(),a.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(i,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(r,["stop"]),disabled:t.validation,ref_key:"button",ref:a,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!o.value&&!l.value&&!c.value||!t.showLoader?(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(i.$slots,"default")])):o.value&&!l.value&&t.showLoader?(e.openBlock(),e.createElementBlock("span",m,h)):c.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",f,e.toDisplayString(t.text.success),1)):l.value?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",v,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,u))}};exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,227 +1,4 @@
1
- import { ref as d, openBlock as l, createElementBlock as s, withModifiers as v, createVNode as g, Transition as y, withCtx as p, renderSlot as w, toDisplayString as h, createCommentVNode as b, createElementVNode as e, createTextVNode as r } from "vue";
2
- import "./Button.vue2.js";
3
- const k = ["disabled"], x = { key: 0 }, N = {
4
- key: 1,
5
- class: "loading"
6
- }, C = /* @__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__ */ r(),
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__ */ r(),
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__ */ r(),
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__ */ r(),
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__ */ r(),
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), M = [
138
- C
139
- ], B = {
140
- key: 2,
141
- class: "t-semi loading t-black"
142
- }, _ = {
143
- key: 3,
144
- class: "error"
145
- }, L = {
146
- key: 0,
147
- class: "button-counter"
148
- }, V = {
149
- __name: "Button",
150
- props: {
151
- submit: {
152
- type: Function,
153
- default: async () => {
154
- console.log("Button click.");
155
- }
156
- },
157
- text: {
158
- type: Object,
159
- default: (t) => (console.log(t), t = {
160
- ...t.text,
161
- success: "✔",
162
- error: "✖"
163
- })
164
- },
165
- counter: {
166
- type: Object
167
- },
168
- callback: {
169
- type: Function,
170
- default: async () => {
171
- console.log("Button callback.");
172
- }
173
- },
174
- callbackDelay: {
175
- type: Number,
176
- default: 750
177
- },
178
- showSucces: {
179
- type: Boolean,
180
- default: !0
181
- },
182
- showLoader: {
183
- type: Boolean,
184
- default: !0
185
- },
186
- validation: {
187
- type: Boolean,
188
- default: !1
189
- }
190
- },
191
- setup(t) {
192
- const n = t, a = d(null), i = d(null), o = d(!1), c = d(!1);
193
- async function f() {
194
- a.value.style["pointer-events"] = "none", i.value = null, o.value = !0;
195
- const u = () => {
196
- a.value && (a.value.classList.replace("bg-second", "bg-main"), a.value.style.pointerEvents = "auto", o.value = !1, c.value = !1, i.value = null);
197
- };
198
- try {
199
- await n.submit(), a.value.classList.replace("bg-main", "bg-second"), o.value = !1, n.showSucces ? (c.value = !0, setTimeout(u, 500)) : u(), n.callback && setTimeout(() => n.callback(), n.callbackDelay);
200
- } catch {
201
- a.value.classList.replace("bg-main", "bg-fourth-nano"), i.value = n.error, setTimeout(() => {
202
- u(), a.value.classList.replace("bg-fourth-nano", "bg-main");
203
- }, 1330);
204
- }
205
- }
206
- return (u, m) => (l(), s("button", {
207
- onClick: v(f, ["stop"]),
208
- disabled: t.validation,
209
- ref_key: "button",
210
- ref: a,
211
- class: "button"
212
- }, [
213
- g(y, { name: "moveFromTopAbsolute" }, {
214
- default: p(() => [
215
- !o.value && !i.value && !c.value || !t.showLoader ? (l(), s("span", x, [
216
- w(u.$slots, "default")
217
- ])) : o.value && !i.value && t.showLoader ? (l(), s("span", N, M)) : c.value && t.showSucces ? (l(), s("span", B, h(t.text.success), 1)) : i.value ? (l(), s("span", _, h(i.value), 1)) : b("", !0)
218
- ]),
219
- _: 3
220
- }),
221
- t.counter ? (l(), s("p", L, h(t.counter), 1)) : b("", !0)
222
- ], 8, k));
223
- }
224
- };
1
+ const e = "";
225
2
  export {
226
- V as default
3
+ e as default
227
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=["disabled"],d={key:0},m={key:1,class:"loading"},b=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),h=[b],f={key:2,class:"t-semi loading t-black"},g={key:3,class:"error"},v={key:0,class:"button-counter"},y={__name:"Button",props:{submit:{type:Function,default:async()=>{console.log("Button click.")}},text:{type:Object,default:t=>(console.log(t),t={...t.text,success:"✔",error:"✖"})},counter:{type:Object},callback:{type:Function,default:async()=>{console.log("Button callback.")}},callbackDelay:{type:Number,default:750},showSucces:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!0},validation:{type:Boolean,default:!1}},setup(t){const n=t,a=e.ref(null),l=e.ref(null),o=e.ref(!1),c=e.ref(!1);async function r(){a.value.style["pointer-events"]="none",l.value=null,o.value=!0;const i=()=>{a.value&&(a.value.classList.replace("bg-second","bg-main"),a.value.style.pointerEvents="auto",o.value=!1,c.value=!1,l.value=null)};try{await n.submit(),a.value.classList.replace("bg-main","bg-second"),o.value=!1,n.showSucces?(c.value=!0,setTimeout(i,500)):i(),n.callback&&setTimeout(()=>n.callback(),n.callbackDelay)}catch{a.value.classList.replace("bg-main","bg-fourth-nano"),l.value=n.error,setTimeout(()=>{i(),a.value.classList.replace("bg-fourth-nano","bg-main")},1330)}}return(i,s)=>(e.openBlock(),e.createElementBlock("button",{onClick:e.withModifiers(r,["stop"]),disabled:t.validation,ref_key:"button",ref:a,class:"button"},[e.createVNode(e.Transition,{name:"moveFromTopAbsolute"},{default:e.withCtx(()=>[!o.value&&!l.value&&!c.value||!t.showLoader?(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(i.$slots,"default")])):o.value&&!l.value&&t.showLoader?(e.openBlock(),e.createElementBlock("span",m,h)):c.value&&t.showSucces?(e.openBlock(),e.createElementBlock("span",f,e.toDisplayString(t.text.success),1)):l.value?(e.openBlock(),e.createElementBlock("span",g,e.toDisplayString(l.value),1)):e.createCommentVNode("",!0)]),_:3}),t.counter?(e.openBlock(),e.createElementBlock("p",v,e.toDisplayString(t.counter),1)):e.createCommentVNode("",!0)],8,u))}};exports.default=y;
@@ -1,4 +1,227 @@
1
- const e = "";
1
+ import { ref as d, openBlock as l, createElementBlock as s, withModifiers as v, createVNode as g, Transition as y, withCtx as p, renderSlot as w, toDisplayString as h, createCommentVNode as b, createElementVNode as e, createTextVNode as r } from "vue";
2
+ import "./Button.vue.js";
3
+ const k = ["disabled"], x = { key: 0 }, N = {
4
+ key: 1,
5
+ class: "loading"
6
+ }, C = /* @__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__ */ r(),
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__ */ r(),
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__ */ r(),
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__ */ r(),
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__ */ r(),
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), M = [
138
+ C
139
+ ], B = {
140
+ key: 2,
141
+ class: "t-semi loading t-black"
142
+ }, _ = {
143
+ key: 3,
144
+ class: "error"
145
+ }, L = {
146
+ key: 0,
147
+ class: "button-counter"
148
+ }, V = {
149
+ __name: "Button",
150
+ props: {
151
+ submit: {
152
+ type: Function,
153
+ default: async () => {
154
+ console.log("Button click.");
155
+ }
156
+ },
157
+ text: {
158
+ type: Object,
159
+ default: (t) => (console.log(t), t = {
160
+ ...t.text,
161
+ success: "✔",
162
+ error: "✖"
163
+ })
164
+ },
165
+ counter: {
166
+ type: Object
167
+ },
168
+ callback: {
169
+ type: Function,
170
+ default: async () => {
171
+ console.log("Button callback.");
172
+ }
173
+ },
174
+ callbackDelay: {
175
+ type: Number,
176
+ default: 750
177
+ },
178
+ showSucces: {
179
+ type: Boolean,
180
+ default: !0
181
+ },
182
+ showLoader: {
183
+ type: Boolean,
184
+ default: !0
185
+ },
186
+ validation: {
187
+ type: Boolean,
188
+ default: !1
189
+ }
190
+ },
191
+ setup(t) {
192
+ const n = t, a = d(null), i = d(null), o = d(!1), c = d(!1);
193
+ async function f() {
194
+ a.value.style["pointer-events"] = "none", i.value = null, o.value = !0;
195
+ const u = () => {
196
+ a.value && (a.value.classList.replace("bg-second", "bg-main"), a.value.style.pointerEvents = "auto", o.value = !1, c.value = !1, i.value = null);
197
+ };
198
+ try {
199
+ await n.submit(), a.value.classList.replace("bg-main", "bg-second"), o.value = !1, n.showSucces ? (c.value = !0, setTimeout(u, 500)) : u(), n.callback && setTimeout(() => n.callback(), n.callbackDelay);
200
+ } catch {
201
+ a.value.classList.replace("bg-main", "bg-fourth-nano"), i.value = n.error, setTimeout(() => {
202
+ u(), a.value.classList.replace("bg-fourth-nano", "bg-main");
203
+ }, 1330);
204
+ }
205
+ }
206
+ return (u, m) => (l(), s("button", {
207
+ onClick: v(f, ["stop"]),
208
+ disabled: t.validation,
209
+ ref_key: "button",
210
+ ref: a,
211
+ class: "button"
212
+ }, [
213
+ g(y, { name: "moveFromTopAbsolute" }, {
214
+ default: p(() => [
215
+ !o.value && !i.value && !c.value || !t.showLoader ? (l(), s("span", x, [
216
+ w(u.$slots, "default")
217
+ ])) : o.value && !i.value && t.showLoader ? (l(), s("span", N, M)) : c.value && t.showSucces ? (l(), s("span", B, h(t.text.success), 1)) : i.value ? (l(), s("span", _, h(i.value), 1)) : b("", !0)
218
+ ]),
219
+ _: 3
220
+ }),
221
+ t.counter ? (l(), s("p", L, h(t.counter), 1)) : b("", !0)
222
+ ], 8, k));
223
+ }
224
+ };
2
225
  export {
3
- e as default
226
+ V as default
4
227
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue");require("./Checkbox.vue2.cjs");const o=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),u={class:"flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-auto t-transp mn-r-small"},m=["name","value","checked"],y={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:d}){const t=e,l=d,c=i=>{if(Array.isArray(t.radio)){let r=[...t.radio];if(i.target.checked)r.push(t.value);else{const n=r.indexOf(t.value);n!==-1&&r.splice(n,1)}l("update:radio",r)}else typeof t.radio=="boolean"&&l("update:radio",i.target.checked)};return(i,r)=>(a.openBlock(),a.createElementBlock("label",u,[e.label?(a.openBlock(),a.createElementBlock("div",s,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:c,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,m),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra",{"bg-grey":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},h=o.default(y,[["__scopeId","data-v-ef88ec33"]]);exports.default=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
@@ -1,63 +1,4 @@
1
- import { openBlock as d, createElementBlock as o, createElementVNode as t, toDisplayString as m, createCommentVNode as h, normalizeClass as c } from "vue";
2
- import "./Checkbox.vue2.js";
3
- import y from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = { class: "flex-v-center flex-nowrap flex" }, v = {
5
- key: 0,
6
- class: "mn-r-auto t-transp mn-r-small"
7
- }, x = ["name", "value", "checked"], b = {
8
- __name: "Checkbox",
9
- props: {
10
- label: String,
11
- name: String,
12
- value: String,
13
- radio: {
14
- type: [Array, Boolean, Object],
15
- default: () => []
16
- }
17
- },
18
- emits: ["update:radio"],
19
- setup(e, { emit: u }) {
20
- const a = e, n = u, s = (r) => {
21
- if (Array.isArray(a.radio)) {
22
- let i = [...a.radio];
23
- if (r.target.checked)
24
- i.push(a.value);
25
- else {
26
- const l = i.indexOf(a.value);
27
- l !== -1 && i.splice(l, 1);
28
- }
29
- n("update:radio", i);
30
- } else
31
- typeof a.radio == "boolean" && n("update:radio", r.target.checked);
32
- };
33
- return (r, i) => (d(), o("label", f, [
34
- e.label ? (d(), o("div", v, [
35
- t("span", null, m(e.label), 1)
36
- ])) : h("", !0),
37
- t("input", {
38
- onChange: s,
39
- class: "round radiobutton",
40
- type: "checkbox",
41
- name: e.name,
42
- value: e.value,
43
- checked: Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
44
- }, null, 40, x),
45
- t("div", {
46
- class: c(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra", {
47
- "bg-grey": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
48
- "bg-main": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
49
- }])
50
- }, [
51
- t("div", {
52
- class: c(["transition-linear w-1r h-1r radius-extra h-100 bg-white", {
53
- "mn-r-auto": !(Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio),
54
- "mn-l-auto": Array.isArray(e.radio) ? e.radio.includes(e.value) : e.radio
55
- }])
56
- }, null, 2)
57
- ], 2)
58
- ]));
59
- }
60
- }, w = /* @__PURE__ */ y(b, [["__scopeId", "data-v-ef88ec33"]]);
1
+ const e = "";
61
2
  export {
62
- w as default
3
+ e as default
63
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 a=require("vue");require("./Checkbox.vue.cjs");const o=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),u={class:"flex-v-center flex-nowrap flex"},s={key:0,class:"mn-r-auto t-transp mn-r-small"},m=["name","value","checked"],y={__name:"Checkbox",props:{label:String,name:String,value:String,radio:{type:[Array,Boolean,Object],default:()=>[]}},emits:["update:radio"],setup(e,{emit:d}){const t=e,l=d,c=i=>{if(Array.isArray(t.radio)){let r=[...t.radio];if(i.target.checked)r.push(t.value);else{const n=r.indexOf(t.value);n!==-1&&r.splice(n,1)}l("update:radio",r)}else typeof t.radio=="boolean"&&l("update:radio",i.target.checked)};return(i,r)=>(a.openBlock(),a.createElementBlock("label",u,[e.label?(a.openBlock(),a.createElementBlock("div",s,[a.createElementVNode("span",null,a.toDisplayString(e.label),1)])):a.createCommentVNode("",!0),a.createElementVNode("input",{onChange:c,class:"round radiobutton",type:"checkbox",name:e.name,value:e.value,checked:Array.isArray(e.radio)?e.radio.includes(e.value):e.radio},null,40,m),a.createElementVNode("div",{class:a.normalizeClass(["transition-elastic cursor-pointer mn-l-thin pd-thin h-2r w-4r radius-extra",{"bg-grey":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"bg-main":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},[a.createElementVNode("div",{class:a.normalizeClass(["transition-linear w-1r h-1r radius-extra h-100 bg-white",{"mn-r-auto":!(Array.isArray(e.radio)?e.radio.includes(e.value):e.radio),"mn-l-auto":Array.isArray(e.radio)?e.radio.includes(e.value):e.radio}])},null,2)],2)]))}},h=o.default(y,[["__scopeId","data-v-ef88ec33"]]);exports.default=h;