@ozdao/prometheus-framework 0.2.200 → 0.2.202

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +113 -1
  2. package/dist/prometheus-framework/src/components/Address/Address.vue.cjs.map +1 -0
  3. package/dist/prometheus-framework/src/components/Address/Address.vue.js +76 -51
  4. package/dist/prometheus-framework/src/components/Address/Address.vue.js.map +1 -0
  5. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +133 -1
  6. package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs.map +1 -0
  7. package/dist/prometheus-framework/src/components/Button/Button.vue2.js +82 -44
  8. package/dist/prometheus-framework/src/components/Button/Button.vue2.js.map +1 -0
  9. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +32 -1
  10. package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs.map +1 -0
  11. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +20 -14
  12. package/dist/prometheus-framework/src/components/Chips/Chips.vue.js.map +1 -0
  13. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +64 -1
  14. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs.map +1 -0
  15. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +45 -38
  16. package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js.map +1 -0
  17. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +121 -1
  18. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs.map +1 -0
  19. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +97 -76
  20. package/dist/prometheus-framework/src/components/Field/Field.vue2.js.map +1 -0
  21. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
  22. package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
  23. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +169 -1
  24. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs.map +1 -0
  25. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +125 -82
  26. package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js.map +1 -0
  27. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs +17 -1
  28. package/dist/prometheus-framework/src/components/Menu/Menu.vue.cjs.map +1 -0
  29. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js +11 -7
  30. package/dist/prometheus-framework/src/components/Menu/Menu.vue.js.map +1 -0
  31. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +92 -1
  32. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs.map +1 -0
  33. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +69 -54
  34. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js.map +1 -0
  35. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +127 -1
  36. package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs.map +1 -0
  37. package/dist/prometheus-framework/src/components/Select/Select.vue2.js +75 -51
  38. package/dist/prometheus-framework/src/components/Select/Select.vue2.js.map +1 -0
  39. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.cjs +2 -2
  40. package/dist/prometheus-framework/src/modules/auth/views/components/layouts/Auth.vue.js +2 -2
  41. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.cjs +1 -1
  42. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterCode.vue.js +1 -1
  43. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.cjs +2 -2
  44. package/dist/prometheus-framework/src/modules/auth/views/components/pages/EnterPassword.vue.js +2 -2
  45. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.cjs +2 -2
  46. package/dist/prometheus-framework/src/modules/auth/views/components/pages/Invite.vue.js +2 -2
  47. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.cjs +2 -2
  48. package/dist/prometheus-framework/src/modules/auth/views/components/pages/ResetPassword.vue.js +2 -2
  49. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.cjs +2 -2
  50. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignIn.vue.js +2 -2
  51. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.cjs +2 -2
  52. package/dist/prometheus-framework/src/modules/auth/views/components/pages/SignUp.vue.js +2 -2
  53. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  54. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  55. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  56. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  57. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +2 -2
  58. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +2 -2
  59. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +2 -2
  60. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
  61. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
  62. package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
  63. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
  64. package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
  65. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -1
  66. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +1 -1
  67. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
  68. package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +1 -1
  69. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +2 -2
  70. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +2 -2
  71. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +2 -2
  72. package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +2 -2
  73. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +2 -2
  74. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +2 -2
  75. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +1 -1
  76. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +1 -1
  77. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.cjs +1 -1
  78. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/CardHeader.vue.js +1 -1
  79. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  80. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  81. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  82. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  83. package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.cjs +2 -2
  84. package/dist/prometheus-framework/src/modules/globals/views/components/partials/LocationSelection.vue.js +2 -2
  85. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.cjs +1 -1
  86. package/dist/prometheus-framework/src/modules/globals/views/components/partials/NavigationBar.vue.js +1 -1
  87. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +3 -3
  88. package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +3 -3
  89. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
  90. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  91. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +2 -2
  92. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +2 -2
  93. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  94. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  95. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +3 -3
  96. package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +3 -3
  97. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
  98. package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +1 -1
  99. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +4 -4
  100. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
  101. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
  102. package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
  103. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
  104. package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
  105. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +1 -1
  106. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +1 -1
  107. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
  108. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  109. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +2 -2
  110. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
  111. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +2 -2
  112. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +2 -2
  113. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +2 -2
  114. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +2 -2
  115. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.cjs +2 -2
  116. package/dist/prometheus-framework/src/modules/pages/views/components/blocks/CardPage.vue.js +2 -2
  117. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.cjs +2 -2
  118. package/dist/prometheus-framework/src/modules/pages/views/components/pages/PageEdit.vue.js +2 -2
  119. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.cjs +1 -1
  120. package/dist/prometheus-framework/src/modules/pages/views/components/partials/SidebarPages.vue.js +1 -1
  121. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
  123. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.cjs +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
  125. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +1 -1
  127. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  128. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  129. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +2 -2
  130. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
  131. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
  132. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +1 -1
  133. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +2 -2
  134. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +2 -2
  135. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
  136. package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +1 -1
  137. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +2 -2
  138. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +2 -2
  139. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +1 -1
  140. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +1 -1
  141. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  142. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  143. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  144. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  145. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.cjs +1 -1
  146. package/dist/prometheus-framework/src/modules/spots/components/layouts/Spots.vue.js +1 -1
  147. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.cjs +1 -1
  148. package/dist/prometheus-framework/src/modules/spots/components/pages/Map.vue.js +1 -1
  149. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +4 -4
  150. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +4 -4
  151. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +3 -3
  152. package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
  153. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +2 -2
  154. package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +2 -2
  155. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.cjs +1 -1
  156. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CardDeposit.vue.js +1 -1
  157. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  158. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  159. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +1 -1
  160. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +1 -1
  161. package/package.json +1 -1
  162. package/src/modules/globals/views/components/layouts/Client.vue +2 -2
@@ -1 +1,32 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const i={class:"t-trimmed font-main"},l={class:"font-main t-truncate"},o={key:1,class:"pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"},a={__name:"Chips",props:["chips"],setup(n){return(s,c)=>{var r;return e.openBlock(),e.createElementBlock("div",i,[(r=n.chips)!=null&&r.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.chips,(t,d)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([s.$attrs.class||"p-medium","mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])},[e.createElementVNode("span",l,e.toDisplayString(t.text?t.text:t),1)],2))),256)):(e.openBlock(),e.createElementBlock("div",o,[e.renderSlot(s.$slots,"default")]))])}}};exports.default=a;
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ ;/* empty css */
5
+ const _hoisted_1 = { class: "t-trimmed font-main" };
6
+ const _hoisted_2 = { class: "font-main t-truncate" };
7
+ const _hoisted_3 = {
8
+ key: 1,
9
+ class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
10
+ };
11
+ const _sfc_main = {
12
+ __name: "Chips",
13
+ props: ["chips"],
14
+ setup(__props) {
15
+ return (_ctx, _cache) => {
16
+ var _a;
17
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
18
+ ((_a = __props.chips) == null ? void 0 : _a.length) ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(__props.chips, (chip, index) => {
19
+ return vue.openBlock(), vue.createElementBlock("span", {
20
+ class: vue.normalizeClass([_ctx.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
21
+ }, [
22
+ vue.createElementVNode("span", _hoisted_2, vue.toDisplayString(chip.text ? chip.text : chip), 1)
23
+ ], 2);
24
+ }), 256)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
25
+ vue.renderSlot(_ctx.$slots, "default")
26
+ ]))
27
+ ]);
28
+ };
29
+ }
30
+ };
31
+ exports.default = _sfc_main;
32
+ //# sourceMappingURL=Chips.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chips.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,26 +1,32 @@
1
- import { openBlock as t, createElementBlock as e, Fragment as a, renderList as m, normalizeClass as o, createElementVNode as d, toDisplayString as l, renderSlot as c } from "vue";
1
+ import { openBlock, createElementBlock, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, renderSlot } from "vue";
2
2
  /* empty css */
3
- const p = { class: "t-trimmed font-main" }, h = { class: "font-main t-truncate" }, u = {
3
+ const _hoisted_1 = { class: "t-trimmed font-main" };
4
+ const _hoisted_2 = { class: "font-main t-truncate" };
5
+ const _hoisted_3 = {
4
6
  key: 1,
5
7
  class: "pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-semi bg-white"
6
- }, k = {
8
+ };
9
+ const _sfc_main = {
7
10
  __name: "Chips",
8
11
  props: ["chips"],
9
- setup(n) {
10
- return (i, _) => {
11
- var r;
12
- return t(), e("div", p, [
13
- (r = n.chips) != null && r.length ? (t(!0), e(a, { key: 0 }, m(n.chips, (s, f) => (t(), e("span", {
14
- class: o([i.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
15
- }, [
16
- d("span", h, l(s.text ? s.text : s), 1)
17
- ], 2))), 256)) : (t(), e("div", u, [
18
- c(i.$slots, "default")
12
+ setup(__props) {
13
+ return (_ctx, _cache) => {
14
+ var _a;
15
+ return openBlock(), createElementBlock("div", _hoisted_1, [
16
+ ((_a = __props.chips) == null ? void 0 : _a.length) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(__props.chips, (chip, index) => {
17
+ return openBlock(), createElementBlock("span", {
18
+ class: normalizeClass([_ctx.$attrs.class || "p-medium", "mn-r-nano d-inline-block w-max pd-b-micro pd-t-micro pd-r-thin pd-l-thin radius-small t-medium bg-main"])
19
+ }, [
20
+ createElementVNode("span", _hoisted_2, toDisplayString(chip.text ? chip.text : chip), 1)
21
+ ], 2);
22
+ }), 256)) : (openBlock(), createElementBlock("div", _hoisted_3, [
23
+ renderSlot(_ctx.$slots, "default")
19
24
  ]))
20
25
  ]);
21
26
  };
22
27
  }
23
28
  };
24
29
  export {
25
- k as default
30
+ _sfc_main as default
26
31
  };
32
+ //# sourceMappingURL=Chips.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chips.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1,64 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../FieldPhone/click-outside.cjs");;/* empty css */const u={key:0,class:"w-100 h-100 flex-center flex"},d={key:1},f={__name:"Dropdown",props:{label:{type:[String,Object],default:"Open"},align:{type:String,default:"left"}},setup(t){let n=r.default;const i=t,l=e.ref(!1),a=e.computed(()=>typeof i.label=="object");function s(){l.value=!1}return(c,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:"dropdown pos-relative",onClick:o[0]||(o[0]=e.withModifiers(v=>l.value=!l.value,["stop"]))},[a.value?(e.openBlock(),e.createElementBlock("div",u,[(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",d,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(c.$slots,"default")],4),[[e.vShow,l.value]])]),_:3})])),[[e.unref(n),s]])}};exports.default=f;
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const clickOutside = require("../FieldPhone/click-outside.cjs");
5
+ ;/* empty css */
6
+ const _hoisted_1 = {
7
+ key: 0,
8
+ class: "w-100 h-100 flex-center flex"
9
+ };
10
+ const _hoisted_2 = { key: 1 };
11
+ const _sfc_main = {
12
+ __name: "Dropdown",
13
+ props: {
14
+ label: {
15
+ type: [String, Object],
16
+ default: "Open"
17
+ },
18
+ align: {
19
+ type: String,
20
+ default: "left"
21
+ }
22
+ },
23
+ setup(__props) {
24
+ let vClickOutside = clickOutside.default;
25
+ const props = __props;
26
+ const isOpen = vue.ref(false);
27
+ const isComponentLabel = vue.computed(() => typeof props.label === "object");
28
+ function clickedOutside() {
29
+ isOpen.value = false;
30
+ }
31
+ return (_ctx, _cache) => {
32
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
33
+ class: "dropdown pos-relative",
34
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => isOpen.value = !isOpen.value, ["stop"]))
35
+ }, [
36
+ isComponentLabel.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
37
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(__props.label.component), vue.mergeProps(__props.label.props, {
38
+ class: __props.label.class
39
+ }), null, 16, ["class"]))
40
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, vue.toDisplayString(__props.label), 1)),
41
+ vue.createVNode(vue.Transition, {
42
+ name: "TransitionTranslateY",
43
+ mode: "out-in"
44
+ }, {
45
+ default: vue.withCtx(() => [
46
+ vue.withDirectives(vue.createElementVNode("div", {
47
+ style: vue.normalizeStyle({ left: __props.align === "left" ? "0" : "auto", right: __props.align === "right" ? "0" : "auto" }),
48
+ class: "dropdown-content radius-big"
49
+ }, [
50
+ vue.renderSlot(_ctx.$slots, "default")
51
+ ], 4), [
52
+ [vue.vShow, isOpen.value]
53
+ ])
54
+ ]),
55
+ _: 3
56
+ })
57
+ ])), [
58
+ [vue.unref(vClickOutside), clickedOutside]
59
+ ]);
60
+ };
61
+ }
62
+ };
63
+ exports.default = _sfc_main;
64
+ //# sourceMappingURL=Dropdown.vue.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.vue.cjs","sources":["../../../../../src/components/Dropdown/Dropdown.vue"],"sourcesContent":["<template>\n <div class=\"dropdown pos-relative\" v-click-outside=\"clickedOutside\" @click.stop=\"isOpen = !isOpen\">\n <div v-if=\"isComponentLabel\" class=\"w-100 h-100 flex-center flex\">\n <component :is=\"label.component\" v-bind=\"label.props\" :class=\"label.class\"></component>\n </div>\n <div v-else>\n {{ label }}\n </div>\n <transition name=\"TransitionTranslateY\" mode=\"out-in\">\n <div \n v-show=\"isOpen\" \n :style=\"{ left: align === 'left' ? '0' : 'auto', right: align === 'right' ? '0' : 'auto' }\" \n class=\"dropdown-content radius-big\" \n >\n <slot></slot>\n </div>\n </transition>\n </div>\n</template>\n\n<script setup>\nimport { ref, computed } from 'vue';\nimport clickOutside from '../FieldPhone/click-outside';\n\nlet vClickOutside = clickOutside\n\nconst props = defineProps({\n label: {\n type: [String, Object],\n default: 'Open'\n },\n align: {\n type: String,\n default: 'left'\n }\n})\n\nconst isOpen = ref(false);\nconst isComponentLabel = computed(() => typeof props.label === 'object');\n\nfunction clickedOutside () {\n isOpen.value = false\n}\n</script>\n\n<style >\n.dropdown-content {\n display: block;\n position: absolute;\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n z-index: 1;\n}\n\n/*.dropdown:hover .dropdown-content {\n display: block;\n}*/\n</style>\n"],"names":["clickOutside","ref","computed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAwBA,QAAI,gBAAgBA,aAAY;AAEhC,UAAM,QAAQ;AAWd,UAAM,SAASC,IAAAA,IAAI,KAAK;AACxB,UAAM,mBAAmBC,IAAQ,SAAC,MAAM,OAAO,MAAM,UAAU,QAAQ;AAEvE,aAAS,iBAAkB;AACzB,aAAO,QAAQ;AAAA,IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,10 +1,12 @@
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 y, withCtx as h, createElementVNode as w, normalizeStyle as O, renderSlot as S, vShow as C, unref as x } from "vue";
2
- import D from "../FieldPhone/click-outside.js";
1
+ import { ref, computed, withDirectives, openBlock, createElementBlock, withModifiers, createBlock, resolveDynamicComponent, mergeProps, toDisplayString, createVNode, Transition, withCtx, createElementVNode, normalizeStyle, renderSlot, vShow, unref } from "vue";
2
+ import clickOutside from "../FieldPhone/click-outside.js";
3
3
  /* empty css */
4
- const B = {
4
+ const _hoisted_1 = {
5
5
  key: 0,
6
6
  class: "w-100 h-100 flex-center flex"
7
- }, T = { key: 1 }, $ = {
7
+ };
8
+ const _hoisted_2 = { key: 1 };
9
+ const _sfc_main = {
8
10
  __name: "Dropdown",
9
11
  props: {
10
12
  label: {
@@ -16,42 +18,47 @@ const B = {
16
18
  default: "left"
17
19
  }
18
20
  },
19
- setup(e) {
20
- let i = D;
21
- const s = e, t = u(!1), r = f(() => typeof s.label == "object");
22
- function c() {
23
- t.value = !1;
21
+ setup(__props) {
22
+ let vClickOutside = clickOutside;
23
+ const props = __props;
24
+ const isOpen = ref(false);
25
+ const isComponentLabel = computed(() => typeof props.label === "object");
26
+ function clickedOutside() {
27
+ isOpen.value = false;
24
28
  }
25
- return (d, n) => a((l(), o("div", {
26
- class: "dropdown pos-relative",
27
- onClick: n[0] || (n[0] = m((j) => t.value = !t.value, ["stop"]))
28
- }, [
29
- r.value ? (l(), o("div", B, [
30
- (l(), p(v(e.label.component), b(e.label.props, {
31
- class: e.label.class
32
- }), null, 16, ["class"]))
33
- ])) : (l(), o("div", T, g(e.label), 1)),
34
- k(y, {
35
- name: "TransitionTranslateY",
36
- mode: "out-in"
37
- }, {
38
- default: h(() => [
39
- a(w("div", {
40
- style: O({ left: e.align === "left" ? "0" : "auto", right: e.align === "right" ? "0" : "auto" }),
41
- class: "dropdown-content radius-big"
42
- }, [
43
- S(d.$slots, "default")
44
- ], 4), [
45
- [C, t.value]
46
- ])
47
- ]),
48
- _: 3
49
- })
50
- ])), [
51
- [x(i), c]
52
- ]);
29
+ return (_ctx, _cache) => {
30
+ return withDirectives((openBlock(), createElementBlock("div", {
31
+ class: "dropdown pos-relative",
32
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => isOpen.value = !isOpen.value, ["stop"]))
33
+ }, [
34
+ isComponentLabel.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
35
+ (openBlock(), createBlock(resolveDynamicComponent(__props.label.component), mergeProps(__props.label.props, {
36
+ class: __props.label.class
37
+ }), null, 16, ["class"]))
38
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(__props.label), 1)),
39
+ createVNode(Transition, {
40
+ name: "TransitionTranslateY",
41
+ mode: "out-in"
42
+ }, {
43
+ default: withCtx(() => [
44
+ withDirectives(createElementVNode("div", {
45
+ style: normalizeStyle({ left: __props.align === "left" ? "0" : "auto", right: __props.align === "right" ? "0" : "auto" }),
46
+ class: "dropdown-content radius-big"
47
+ }, [
48
+ renderSlot(_ctx.$slots, "default")
49
+ ], 4), [
50
+ [vShow, isOpen.value]
51
+ ])
52
+ ]),
53
+ _: 3
54
+ })
55
+ ])), [
56
+ [unref(vClickOutside), clickedOutside]
57
+ ]);
58
+ };
53
59
  }
54
60
  };
55
61
  export {
56
- $ as default
62
+ _sfc_main as default
57
63
  };
64
+ //# sourceMappingURL=Dropdown.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dropdown.vue.js","sources":["../../../../../src/components/Dropdown/Dropdown.vue"],"sourcesContent":["<template>\n <div class=\"dropdown pos-relative\" v-click-outside=\"clickedOutside\" @click.stop=\"isOpen = !isOpen\">\n <div v-if=\"isComponentLabel\" class=\"w-100 h-100 flex-center flex\">\n <component :is=\"label.component\" v-bind=\"label.props\" :class=\"label.class\"></component>\n </div>\n <div v-else>\n {{ label }}\n </div>\n <transition name=\"TransitionTranslateY\" mode=\"out-in\">\n <div \n v-show=\"isOpen\" \n :style=\"{ left: align === 'left' ? '0' : 'auto', right: align === 'right' ? '0' : 'auto' }\" \n class=\"dropdown-content radius-big\" \n >\n <slot></slot>\n </div>\n </transition>\n </div>\n</template>\n\n<script setup>\nimport { ref, computed } from 'vue';\nimport clickOutside from '../FieldPhone/click-outside';\n\nlet vClickOutside = clickOutside\n\nconst props = defineProps({\n label: {\n type: [String, Object],\n default: 'Open'\n },\n align: {\n type: String,\n default: 'left'\n }\n})\n\nconst isOpen = ref(false);\nconst isComponentLabel = computed(() => typeof props.label === 'object');\n\nfunction clickedOutside () {\n isOpen.value = false\n}\n</script>\n\n<style >\n.dropdown-content {\n display: block;\n position: absolute;\n box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n z-index: 1;\n}\n\n/*.dropdown:hover .dropdown-content {\n display: block;\n}*/\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAwBA,QAAI,gBAAgB;AAEpB,UAAM,QAAQ;AAWd,UAAM,SAAS,IAAI,KAAK;AACxB,UAAM,mBAAmB,SAAS,MAAM,OAAO,MAAM,UAAU,QAAQ;AAEvE,aAAS,iBAAkB;AACzB,aAAO,QAAQ;AAAA,IACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1,121 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");;/* empty css */const c=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),m={key:0,class:"t-transp mn-r-small"},f={class:"w-100"},v=["type","value","placeholder","tabindex","disabled"],b=["value","placeholder","tabindex","disabled"],y={key:1,class:"t-transp mn-l-small"},x={key:0,class:"mn-t-thin mn-b-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,value:null,validation:!1,disabled:null,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:r}){const n=r,d=t;d.value&&n("update:field",d.value);const i=e.ref(null);function u(){var o;i.value&&(i.value.style.height="1rem"),i.value&&(i.value.style.height=((o=i.value)==null?void 0:o.scrollHeight)+"px")}e.onUpdated(()=>{d.type==="textarea"&&e.nextTick(()=>{focus()}),u()}),e.onMounted(()=>{d.type==="textarea"&&e.nextTick(()=>{focus()}),u()});const s=e.ref(d.field);return(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[o.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",f,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=a=>s.value=n("update:field",a.target.value)),onFocus:l[1]||(l[1]=a=>n("focus",a)),onBlur:l[2]||(l[2]=a=>n("blur",a)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex,disabled:t.disabled},null,40,v)):(e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textarea",ref:i,onInput:l[3]||(l[3]=a=>s.value=n("update:field",a.target.value)),onFocus:l[4]||(l[4]=a=>n("focus",a)),onBlur:l[5]||(l[5]=a=>n("blur",a)),class:"w-100",style:{resize:"vertical"},value:t.field,placeholder:t.placeholder,tabindex:t.tabindex,disabled:t.disabled},null,40,b))]),e.renderSlot(o.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",y,[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",x," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},g=c.default(k,[["__scopeId","data-v-5659d4ce"]]);exports.default=g;
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ ;/* empty css */
5
+ const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.cjs");
6
+ const _hoisted_1 = {
7
+ key: 0,
8
+ class: "t-transp mn-r-small"
9
+ };
10
+ const _hoisted_2 = { class: "w-100" };
11
+ const _hoisted_3 = ["type", "value", "placeholder", "tabindex", "disabled"];
12
+ const _hoisted_4 = ["value", "placeholder", "tabindex", "disabled"];
13
+ const _hoisted_5 = {
14
+ key: 1,
15
+ class: "t-transp mn-l-small"
16
+ };
17
+ const _hoisted_6 = {
18
+ key: 0,
19
+ class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
20
+ };
21
+ const _sfc_main = {
22
+ __name: "Field",
23
+ props: {
24
+ label: null,
25
+ symbol: null,
26
+ type: "text",
27
+ placeholder: "Enter something here",
28
+ field: null,
29
+ value: null,
30
+ validation: false,
31
+ disabled: null,
32
+ tabindex: -1
33
+ },
34
+ emits: ["update:field", "focus", "blur"],
35
+ setup(__props, { emit: __emit }) {
36
+ const emit = __emit;
37
+ const props = __props;
38
+ if (props.value) {
39
+ emit("update:field", props.value);
40
+ }
41
+ const textarea = vue.ref(null);
42
+ function resize() {
43
+ var _a;
44
+ if (textarea.value) textarea.value.style.height = "1rem";
45
+ if (textarea.value) textarea.value.style.height = ((_a = textarea.value) == null ? void 0 : _a.scrollHeight) + "px";
46
+ }
47
+ vue.onUpdated(() => {
48
+ if (props.type === "textarea") vue.nextTick(() => {
49
+ {
50
+ focus();
51
+ }
52
+ });
53
+ resize();
54
+ });
55
+ vue.onMounted(() => {
56
+ if (props.type === "textarea") vue.nextTick(() => {
57
+ {
58
+ focus();
59
+ }
60
+ });
61
+ resize();
62
+ });
63
+ const text = vue.ref(props.field);
64
+ return (_ctx, _cache) => {
65
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
66
+ vue.createElementVNode("div", {
67
+ class: vue.normalizeClass([[
68
+ _ctx.$attrs.class,
69
+ {
70
+ "bg-fourth-nano": __props.validation
71
+ }
72
+ ], "flex-center flex-nowrap flex"])
73
+ }, [
74
+ __props.label ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
75
+ vue.createElementVNode("span", null, vue.toDisplayString(__props.label), 1)
76
+ ])) : vue.createCommentVNode("", true),
77
+ vue.createElementVNode("div", _hoisted_2, [
78
+ __props.type !== "textarea" ? (vue.openBlock(), vue.createElementBlock("input", {
79
+ key: 0,
80
+ onInput: _cache[0] || (_cache[0] = (event) => text.value = emit("update:field", event.target.value)),
81
+ onFocus: _cache[1] || (_cache[1] = (event) => emit("focus", event)),
82
+ onBlur: _cache[2] || (_cache[2] = (event) => emit("blur", event)),
83
+ type: __props.type,
84
+ class: "w-100",
85
+ value: __props.field,
86
+ placeholder: __props.placeholder,
87
+ tabindex: __props.tabindex,
88
+ disabled: __props.disabled
89
+ }, null, 40, _hoisted_3)) : (vue.openBlock(), vue.createElementBlock("textarea", {
90
+ key: 1,
91
+ ref_key: "textarea",
92
+ ref: textarea,
93
+ onInput: _cache[3] || (_cache[3] = (event) => text.value = emit("update:field", event.target.value)),
94
+ onFocus: _cache[4] || (_cache[4] = (event) => emit("focus", event)),
95
+ onBlur: _cache[5] || (_cache[5] = (event) => emit("blur", event)),
96
+ class: "w-100",
97
+ style: { "resize": "vertical" },
98
+ value: __props.field,
99
+ placeholder: __props.placeholder,
100
+ tabindex: __props.tabindex,
101
+ disabled: __props.disabled
102
+ }, null, 40, _hoisted_4))
103
+ ]),
104
+ vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
105
+ __props.symbol ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
106
+ vue.createElementVNode("span", null, vue.toDisplayString(__props.symbol), 1)
107
+ ])) : vue.createCommentVNode("", true)
108
+ ], 2),
109
+ vue.createVNode(vue.Transition, { name: "fade" }, {
110
+ default: vue.withCtx(() => [
111
+ __props.validation ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, " * " + vue.toDisplayString(__props.validation.message), 1)) : vue.createCommentVNode("", true)
112
+ ]),
113
+ _: 1
114
+ })
115
+ ], 64);
116
+ };
117
+ }
118
+ };
119
+ const Field = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-5659d4ce"]]);
120
+ exports.default = Field;
121
+ //# sourceMappingURL=Field.vue2.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Field.vue2.cjs","sources":["../../../../../src/components/Field/Field.vue"],"sourcesContent":["<script setup>\n import { ref, computed, onUpdated, onMounted, nextTick } from 'vue'\n\n const emit = defineEmits(['update:field', 'focus', 'blur']);\n\n const props = defineProps({\n label: null,\n symbol: null,\n type: 'text',\n placeholder: 'Enter something here',\n field: null,\n value: null,\n validation: false,\n disabled: null,\n tabindex: -1\n });\n\n if (props.value) {\n emit('update:field', props.value)\n }\n\n const textarea = ref(null);\n\n function resize() {\n if (textarea.value) textarea.value.style.height = \"1rem\";\n if (textarea.value) textarea.value.style.height = textarea.value?.scrollHeight + \"px\";\n }\n\n\n onUpdated(() => {\n if (props.type === 'textarea') nextTick(() => { { focus()} })\n resize()\n });\n\n onMounted(() => {\n if (props.type === 'textarea') nextTick(() => { { focus()} })\n resize()\n });\n\n const text = ref(props.field);\n</script>\n\n<template>\n <div \n :class=\"[\n $attrs.class, \n { \n 'bg-fourth-nano': validation \n }\n ]\" \n class=\"flex-center flex-nowrap flex\"\n >\n <div \n v-if=\"label\" \n class=\"t-transp mn-r-small\"\n >\n <span>\n {{label}}\n </span>\n </div>\n\n <div class=\"w-100\">\n <input \n v-if=\"type !== 'textarea'\"\n @input=\"event => text = emit('update:field', event.target.value)\"\n @focus=\"event => emit('focus', event)\"\n @blur=\"event => emit('blur', event)\"\n :type=\"type\"\n class=\"w-100\"\n :value=\"field\"\n :placeholder=\"placeholder\"\n :tabindex=\"tabindex\"\n :disabled=\"disabled\"\n />\n <textarea \n v-else\n ref=\"textarea\"\n @input=\"event => text = emit('update:field', event.target.value)\"\n @focus=\"event => emit('focus', event)\"\n @blur=\"event => emit('blur', event)\"\n class=\"w-100\"\n style=\"resize: vertical;\"\n :value=\"field\"\n :placeholder=\"placeholder\"\n :tabindex=\"tabindex\"\n :disabled=\"disabled\"\n />\n </div> \n\n <slot></slot>\n\n <div \n v-if=\"symbol\" \n class=\"t-transp mn-l-small\"\n >\n <span>\n {{symbol}}\n </span>\n </div>\n </div>\n\n <!-- Validation -->\n <transition name=\"fade\">\n <div v-if=\"validation\" class=\"mn-t-thin mn-b-thin mn-b-thin invalid-feedback\">\n * {{validation.message}}\n </div>\n </transition>\n</template>\n\n<style lang=\"scss\" scoped>\n input, textarea, span {\n line-height: 1;\n color: inherit;\n }\n</style>"],"names":["ref","onUpdated","nextTick","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGE,UAAM,OAAO;AAEb,UAAM,QAAQ;AAYd,QAAI,MAAM,OAAO;AACf,WAAK,gBAAgB,MAAM,KAAK;AAAA,IACjC;AAED,UAAM,WAAWA,QAAI,IAAI;AAEzB,aAAS,SAAS;;AAChB,UAAI,SAAS,MAAO,UAAS,MAAM,MAAM,SAAS;AAClD,UAAI,SAAS,MAAO,UAAS,MAAM,MAAM,WAAS,cAAS,UAAT,mBAAgB,gBAAe;AAAA,IAClF;AAGDC,QAAAA,UAAU,MAAM;AACf,UAAI,MAAM,SAAS,WAAYC,KAAAA,SAAS,MAAM;AAAG;AAAE,gBAAO;AAAA,QAAA;AAAA,OAAG;AAC5D,aAAQ;AAAA,IACZ,CAAG;AAEDC,QAAAA,UAAU,MAAM;AACd,UAAI,MAAM,SAAS,WAAYD,KAAAA,SAAS,MAAM;AAAG;AAAE,gBAAO;AAAA,QAAA;AAAA,OAAG;AAC7D,aAAQ;AAAA,IACZ,CAAG;AAED,UAAM,OAAOF,IAAAA,IAAI,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,16 +1,22 @@
1
- import { ref as b, onUpdated as y, nextTick as c, onMounted as h, openBlock as i, createElementBlock as d, Fragment as g, createElementVNode as o, normalizeClass as k, toDisplayString as r, createCommentVNode as f, renderSlot as p, createVNode as w, Transition as F, withCtx as B } from "vue";
1
+ import { ref, onUpdated, nextTick, onMounted, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, renderSlot, createVNode, Transition, withCtx } from "vue";
2
2
  /* empty css */
3
- import z from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const C = {
3
+ import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const _hoisted_1 = {
5
5
  key: 0,
6
6
  class: "t-transp mn-r-small"
7
- }, E = { class: "w-100" }, I = ["type", "value", "placeholder", "tabindex", "disabled"], N = ["value", "placeholder", "tabindex", "disabled"], V = {
7
+ };
8
+ const _hoisted_2 = { class: "w-100" };
9
+ const _hoisted_3 = ["type", "value", "placeholder", "tabindex", "disabled"];
10
+ const _hoisted_4 = ["value", "placeholder", "tabindex", "disabled"];
11
+ const _hoisted_5 = {
8
12
  key: 1,
9
13
  class: "t-transp mn-l-small"
10
- }, S = {
14
+ };
15
+ const _hoisted_6 = {
11
16
  key: 0,
12
17
  class: "mn-t-thin mn-b-thin mn-b-thin invalid-feedback"
13
- }, T = {
18
+ };
19
+ const _sfc_main = {
14
20
  __name: "Field",
15
21
  props: {
16
22
  label: null,
@@ -19,82 +25,97 @@ const C = {
19
25
  placeholder: "Enter something here",
20
26
  field: null,
21
27
  value: null,
22
- validation: !1,
28
+ validation: false,
23
29
  disabled: null,
24
30
  tabindex: -1
25
31
  },
26
32
  emits: ["update:field", "focus", "blur"],
27
- setup(e, { emit: x }) {
28
- const a = x, s = e;
29
- s.value && a("update:field", s.value);
30
- const n = b(null);
31
- function m() {
32
- var u;
33
- n.value && (n.value.style.height = "1rem"), n.value && (n.value.style.height = ((u = n.value) == null ? void 0 : u.scrollHeight) + "px");
33
+ setup(__props, { emit: __emit }) {
34
+ const emit = __emit;
35
+ const props = __props;
36
+ if (props.value) {
37
+ emit("update:field", props.value);
34
38
  }
35
- y(() => {
36
- s.type === "textarea" && c(() => {
37
- focus();
38
- }), m();
39
- }), h(() => {
40
- s.type === "textarea" && c(() => {
41
- focus();
42
- }), m();
39
+ const textarea = ref(null);
40
+ function resize() {
41
+ var _a;
42
+ if (textarea.value) textarea.value.style.height = "1rem";
43
+ if (textarea.value) textarea.value.style.height = ((_a = textarea.value) == null ? void 0 : _a.scrollHeight) + "px";
44
+ }
45
+ onUpdated(() => {
46
+ if (props.type === "textarea") nextTick(() => {
47
+ {
48
+ focus();
49
+ }
50
+ });
51
+ resize();
52
+ });
53
+ onMounted(() => {
54
+ if (props.type === "textarea") nextTick(() => {
55
+ {
56
+ focus();
57
+ }
58
+ });
59
+ resize();
43
60
  });
44
- const v = b(s.field);
45
- return (u, l) => (i(), d(g, null, [
46
- o("div", {
47
- class: k([[
48
- u.$attrs.class,
49
- {
50
- "bg-fourth-nano": e.validation
51
- }
52
- ], "flex-center flex-nowrap flex"])
53
- }, [
54
- e.label ? (i(), d("div", C, [
55
- o("span", null, r(e.label), 1)
56
- ])) : f("", !0),
57
- o("div", E, [
58
- e.type !== "textarea" ? (i(), d("input", {
59
- key: 0,
60
- onInput: l[0] || (l[0] = (t) => v.value = a("update:field", t.target.value)),
61
- onFocus: l[1] || (l[1] = (t) => a("focus", t)),
62
- onBlur: l[2] || (l[2] = (t) => a("blur", t)),
63
- type: e.type,
64
- class: "w-100",
65
- value: e.field,
66
- placeholder: e.placeholder,
67
- tabindex: e.tabindex,
68
- disabled: e.disabled
69
- }, null, 40, I)) : (i(), d("textarea", {
70
- key: 1,
71
- ref_key: "textarea",
72
- ref: n,
73
- onInput: l[3] || (l[3] = (t) => v.value = a("update:field", t.target.value)),
74
- onFocus: l[4] || (l[4] = (t) => a("focus", t)),
75
- onBlur: l[5] || (l[5] = (t) => a("blur", t)),
76
- class: "w-100",
77
- style: { resize: "vertical" },
78
- value: e.field,
79
- placeholder: e.placeholder,
80
- tabindex: e.tabindex,
81
- disabled: e.disabled
82
- }, null, 40, N))
83
- ]),
84
- p(u.$slots, "default", {}, void 0, !0),
85
- e.symbol ? (i(), d("div", V, [
86
- o("span", null, r(e.symbol), 1)
87
- ])) : f("", !0)
88
- ], 2),
89
- w(F, { name: "fade" }, {
90
- default: B(() => [
91
- e.validation ? (i(), d("div", S, " * " + r(e.validation.message), 1)) : f("", !0)
92
- ]),
93
- _: 1
94
- })
95
- ], 64));
61
+ const text = ref(props.field);
62
+ return (_ctx, _cache) => {
63
+ return openBlock(), createElementBlock(Fragment, null, [
64
+ createElementVNode("div", {
65
+ class: normalizeClass([[
66
+ _ctx.$attrs.class,
67
+ {
68
+ "bg-fourth-nano": __props.validation
69
+ }
70
+ ], "flex-center flex-nowrap flex"])
71
+ }, [
72
+ __props.label ? (openBlock(), createElementBlock("div", _hoisted_1, [
73
+ createElementVNode("span", null, toDisplayString(__props.label), 1)
74
+ ])) : createCommentVNode("", true),
75
+ createElementVNode("div", _hoisted_2, [
76
+ __props.type !== "textarea" ? (openBlock(), createElementBlock("input", {
77
+ key: 0,
78
+ onInput: _cache[0] || (_cache[0] = (event) => text.value = emit("update:field", event.target.value)),
79
+ onFocus: _cache[1] || (_cache[1] = (event) => emit("focus", event)),
80
+ onBlur: _cache[2] || (_cache[2] = (event) => emit("blur", event)),
81
+ type: __props.type,
82
+ class: "w-100",
83
+ value: __props.field,
84
+ placeholder: __props.placeholder,
85
+ tabindex: __props.tabindex,
86
+ disabled: __props.disabled
87
+ }, null, 40, _hoisted_3)) : (openBlock(), createElementBlock("textarea", {
88
+ key: 1,
89
+ ref_key: "textarea",
90
+ ref: textarea,
91
+ onInput: _cache[3] || (_cache[3] = (event) => text.value = emit("update:field", event.target.value)),
92
+ onFocus: _cache[4] || (_cache[4] = (event) => emit("focus", event)),
93
+ onBlur: _cache[5] || (_cache[5] = (event) => emit("blur", event)),
94
+ class: "w-100",
95
+ style: { "resize": "vertical" },
96
+ value: __props.field,
97
+ placeholder: __props.placeholder,
98
+ tabindex: __props.tabindex,
99
+ disabled: __props.disabled
100
+ }, null, 40, _hoisted_4))
101
+ ]),
102
+ renderSlot(_ctx.$slots, "default", {}, void 0, true),
103
+ __props.symbol ? (openBlock(), createElementBlock("div", _hoisted_5, [
104
+ createElementVNode("span", null, toDisplayString(__props.symbol), 1)
105
+ ])) : createCommentVNode("", true)
106
+ ], 2),
107
+ createVNode(Transition, { name: "fade" }, {
108
+ default: withCtx(() => [
109
+ __props.validation ? (openBlock(), createElementBlock("div", _hoisted_6, " * " + toDisplayString(__props.validation.message), 1)) : createCommentVNode("", true)
110
+ ]),
111
+ _: 1
112
+ })
113
+ ], 64);
114
+ };
96
115
  }
97
- }, M = /* @__PURE__ */ z(T, [["__scopeId", "data-v-5659d4ce"]]);
116
+ };
117
+ const Field = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5659d4ce"]]);
98
118
  export {
99
- M as default
119
+ Field as default
100
120
  };
121
+ //# sourceMappingURL=Field.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Field.vue2.js","sources":["../../../../../src/components/Field/Field.vue"],"sourcesContent":["<script setup>\n import { ref, computed, onUpdated, onMounted, nextTick } from 'vue'\n\n const emit = defineEmits(['update:field', 'focus', 'blur']);\n\n const props = defineProps({\n label: null,\n symbol: null,\n type: 'text',\n placeholder: 'Enter something here',\n field: null,\n value: null,\n validation: false,\n disabled: null,\n tabindex: -1\n });\n\n if (props.value) {\n emit('update:field', props.value)\n }\n\n const textarea = ref(null);\n\n function resize() {\n if (textarea.value) textarea.value.style.height = \"1rem\";\n if (textarea.value) textarea.value.style.height = textarea.value?.scrollHeight + \"px\";\n }\n\n\n onUpdated(() => {\n if (props.type === 'textarea') nextTick(() => { { focus()} })\n resize()\n });\n\n onMounted(() => {\n if (props.type === 'textarea') nextTick(() => { { focus()} })\n resize()\n });\n\n const text = ref(props.field);\n</script>\n\n<template>\n <div \n :class=\"[\n $attrs.class, \n { \n 'bg-fourth-nano': validation \n }\n ]\" \n class=\"flex-center flex-nowrap flex\"\n >\n <div \n v-if=\"label\" \n class=\"t-transp mn-r-small\"\n >\n <span>\n {{label}}\n </span>\n </div>\n\n <div class=\"w-100\">\n <input \n v-if=\"type !== 'textarea'\"\n @input=\"event => text = emit('update:field', event.target.value)\"\n @focus=\"event => emit('focus', event)\"\n @blur=\"event => emit('blur', event)\"\n :type=\"type\"\n class=\"w-100\"\n :value=\"field\"\n :placeholder=\"placeholder\"\n :tabindex=\"tabindex\"\n :disabled=\"disabled\"\n />\n <textarea \n v-else\n ref=\"textarea\"\n @input=\"event => text = emit('update:field', event.target.value)\"\n @focus=\"event => emit('focus', event)\"\n @blur=\"event => emit('blur', event)\"\n class=\"w-100\"\n style=\"resize: vertical;\"\n :value=\"field\"\n :placeholder=\"placeholder\"\n :tabindex=\"tabindex\"\n :disabled=\"disabled\"\n />\n </div> \n\n <slot></slot>\n\n <div \n v-if=\"symbol\" \n class=\"t-transp mn-l-small\"\n >\n <span>\n {{symbol}}\n </span>\n </div>\n </div>\n\n <!-- Validation -->\n <transition name=\"fade\">\n <div v-if=\"validation\" class=\"mn-t-thin mn-b-thin mn-b-thin invalid-feedback\">\n * {{validation.message}}\n </div>\n </transition>\n</template>\n\n<style lang=\"scss\" scoped>\n input, textarea, span {\n line-height: 1;\n color: inherit;\n }\n</style>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGE,UAAM,OAAO;AAEb,UAAM,QAAQ;AAYd,QAAI,MAAM,OAAO;AACf,WAAK,gBAAgB,MAAM,KAAK;AAAA,IACjC;AAED,UAAM,WAAW,IAAI,IAAI;AAEzB,aAAS,SAAS;;AAChB,UAAI,SAAS,MAAO,UAAS,MAAM,MAAM,SAAS;AAClD,UAAI,SAAS,MAAO,UAAS,MAAM,MAAM,WAAS,cAAS,UAAT,mBAAgB,gBAAe;AAAA,IAClF;AAGD,cAAU,MAAM;AACf,UAAI,MAAM,SAAS,WAAY,UAAS,MAAM;AAAG;AAAE,gBAAO;AAAA,QAAA;AAAA,OAAG;AAC5D,aAAQ;AAAA,IACZ,CAAG;AAED,cAAU,MAAM;AACd,UAAI,MAAM,SAAS,WAAY,UAAS,MAAM;AAAG;AAAE,gBAAO;AAAA,QAAA;AAAA,OAAG;AAC7D,aAAQ;AAAA,IACZ,CAAG;AAED,UAAM,OAAO,IAAI,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const Field = require("../Field/Field.vue.cjs");
4
+ const Field = require("../Field/Field.vue2.cjs");
5
5
  const IconArrow = require("../../modules/icons/navigation/IconArrow.vue.cjs");
6
6
  const vueI18n = require("vue-i18n");
7
7
  const _hoisted_1 = { class: "pd-thin radius-extra flex-nowrap flex" };