@ozdao/prometheus-framework 0.1.82 → 0.1.84
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +4 -4
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +3 -3
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +22 -22
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2981 -2804
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.js +10 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +26 -26
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +28 -29
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +55 -65
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +23 -23
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +31 -31
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +22 -22
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +18 -18
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +24 -24
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +31 -30
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +20 -20
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +33 -33
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +21 -21
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Text/Text.vue.js +11 -11
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +27 -27
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +18 -18
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +44 -43
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +65 -96
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -62
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +56 -56
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +44 -43
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +51 -53
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +59 -61
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +25 -25
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +23 -23
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +21 -21
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +1949 -1937
- package/dist/style.css +1 -1
- package/package.json +2 -4
- package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +1 -0
- package/src/modules/auth/store/auth.js +42 -51
@@ -1,4 +1,78 @@
|
|
1
|
-
|
1
|
+
import { ref as f, openBlock as a, createElementBlock as d, Fragment as b, createElementVNode as i, normalizeClass as c, toDisplayString as o, createCommentVNode as s, renderSlot as v, createVNode as x, Transition as y, withCtx as h } from "vue";
|
2
|
+
import "./Field.vue.js";
|
3
|
+
import k from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
+
const p = {
|
5
|
+
key: 0,
|
6
|
+
class: "t-transp mn-r-small"
|
7
|
+
}, g = { class: "w-100" }, w = ["type", "value", "placeholder", "tabindex"], F = ["value", "placeholder", "tabindex"], B = {
|
8
|
+
key: 1,
|
9
|
+
class: "t-transp mn-l-small"
|
10
|
+
}, C = {
|
11
|
+
key: 0,
|
12
|
+
class: "mn-t-thin mn-thin mn-b-thin invalid-feedback"
|
13
|
+
}, E = {
|
14
|
+
__name: "Field",
|
15
|
+
props: {
|
16
|
+
label: null,
|
17
|
+
symbol: null,
|
18
|
+
type: "text",
|
19
|
+
placeholder: "Enter something here",
|
20
|
+
field: null,
|
21
|
+
validation: !1,
|
22
|
+
disabled: !1,
|
23
|
+
tabindex: -1
|
24
|
+
},
|
25
|
+
emits: ["update:field", "focus", "blur"],
|
26
|
+
setup(e, { emit: m }) {
|
27
|
+
const n = m, u = f(e.field);
|
28
|
+
return (r, t) => (a(), d(b, null, [
|
29
|
+
i("div", {
|
30
|
+
class: c([[
|
31
|
+
r.$attrs.class,
|
32
|
+
{
|
33
|
+
"bg-fourth-nano": e.validation
|
34
|
+
}
|
35
|
+
], "flex-center flex-nowrap flex"])
|
36
|
+
}, [
|
37
|
+
e.label ? (a(), d("div", p, [
|
38
|
+
i("span", null, o(e.label), 1)
|
39
|
+
])) : s("", !0),
|
40
|
+
i("div", g, [
|
41
|
+
e.type !== "textarea" ? (a(), d("input", {
|
42
|
+
key: 0,
|
43
|
+
onInput: t[0] || (t[0] = (l) => u.value = n("update:field", l.target.value)),
|
44
|
+
onFocus: t[1] || (t[1] = (l) => n("focus", l)),
|
45
|
+
onBlur: t[2] || (t[2] = (l) => n("blur", l)),
|
46
|
+
type: e.type,
|
47
|
+
class: "w-100",
|
48
|
+
value: e.field,
|
49
|
+
placeholder: e.placeholder,
|
50
|
+
tabindex: e.tabindex
|
51
|
+
}, null, 40, w)) : (a(), d("textarea", {
|
52
|
+
key: 1,
|
53
|
+
onInput: t[3] || (t[3] = (l) => u.value = n("update:field", l.target.value)),
|
54
|
+
onFocus: t[4] || (t[4] = (l) => n("focus", l)),
|
55
|
+
onBlur: t[5] || (t[5] = (l) => n("blur", l)),
|
56
|
+
class: "w-100",
|
57
|
+
value: e.field,
|
58
|
+
placeholder: e.placeholder,
|
59
|
+
tabindex: e.tabindex
|
60
|
+
}, null, 40, F))
|
61
|
+
]),
|
62
|
+
v(r.$slots, "default", {}, void 0, !0),
|
63
|
+
e.symbol ? (a(), d("div", B, [
|
64
|
+
i("span", null, o(e.symbol), 1)
|
65
|
+
])) : s("", !0)
|
66
|
+
], 2),
|
67
|
+
x(y, { name: "fade" }, {
|
68
|
+
default: h(() => [
|
69
|
+
e.validation ? (a(), d("div", C, " * " + o(e.validation.message), 1)) : s("", !0)
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
})
|
73
|
+
], 64));
|
74
|
+
}
|
75
|
+
}, $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-839e7ced"]]);
|
2
76
|
export {
|
3
|
-
|
77
|
+
$ as default
|
4
78
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue2.cjs"),B=require("vue-i18n"),S={class:"pd-thin radius-extra flex-nowrap flex"},_=["innerHTML"],w={__name:"FieldBig",props:{input:String,placeholder:{type:String},action:{type:String,default:"Action"},placeholderTexts:{type:Object,default:()=>({en:["First placeholder","Second placeholder","Third placeholder"],ru:["Первый плейсхолдер","Второй плейсхолдер","Третий плейсхолдер"]})},typingSpeed:{type:Number,default:200},loopTyping:{type:Boolean,default:!1},enableTyping:{type:Boolean,default:!1}},emits:["update:input","action"],setup(c,{emit:b}){const t=c,{t:F,locale:p}=B.useI18n();let i=e.ref(0),n=e.ref(t.input),s=e.ref(t.placeholder),r=e.ref(t.enableTyping),d=e.ref(null),f=e.ref(""),o=e.ref(!0),v=null;const h=b;function T(){h("action")}function m(a){h("update:input",a),f.value=a}function g(){i.value=(i.value+1)%t.placeholderTexts[p.value].length}function I(){r.value=!1,clearInterval(d.value),s.value=t.placeholder,f.value||(n.value="")}function x(){!f.value&&t.enableTyping&&(r.value=!0,s.value="",y())}function y(){let a=t.placeholderTexts[p.value][i.value],l=0,u=!1;v=setInterval(()=>{o.value=!o.value},200),d.value=setInterval(()=>{r.value&&(u?(n.value=n.value.slice(0,-1),n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l--):(n.value=a.substring(0,l)+(o.value&&l%2?"|":""),l++),l>a.length&&t.loopTyping&&setTimeout(()=>{u=!0,n.value=a.substring(0,l)},333),l===0&&u&&(u=!1,g(),a=t.placeholderTexts[p.value][i.value]))},t.typingSpeed)}return e.onMounted(()=>{t.enableTyping&&y()}),e.watchEffect(()=>{r.value||(clearInterval(d.value),clearInterval(v))}),(a,l)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(k.default,{field:e.unref(n),"onUpdate:field":[l[0]||(l[0]=u=>e.isRef(n)?n.value=u:n=u),m],placeholder:e.unref(s),onInput:g,onFocus:I,onBlur:x,class:"w-100 pd-small p-big"},null,8,["field","placeholder"]),c.action?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:T,class:"w-min hover_bg-white hover-t-black t-black bg-main button",innerHTML:c.action},null,8,_)):e.createCommentVNode("",!0)]))}};exports.default=w;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as u, onMounted as
|
2
|
-
import
|
3
|
-
import { useI18n as
|
4
|
-
const
|
1
|
+
import { ref as u, onMounted as F, watchEffect as S, openBlock as y, createElementBlock as b, createVNode as _, unref as T, isRef as M, createCommentVNode as N } from "vue";
|
2
|
+
import V from "../Field/Field.vue2.js";
|
3
|
+
import { useI18n as A } from "vue-i18n";
|
4
|
+
const C = { class: "pd-thin radius-extra flex-nowrap flex" }, E = ["innerHTML"], P = {
|
5
5
|
__name: "FieldBig",
|
6
6
|
props: {
|
7
7
|
input: String,
|
@@ -33,27 +33,28 @@ const A = { class: "pd-thin radius-extra flex-nowrap flex" }, C = ["innerHTML"],
|
|
33
33
|
}
|
34
34
|
},
|
35
35
|
emits: ["update:input", "action"],
|
36
|
-
setup(c, { emit:
|
37
|
-
const l = c, { t:
|
38
|
-
let i = u(0), t = u(l.input), s = u(l.placeholder), o = u(l.enableTyping), d = u(null), f = u(""), r = u(!0),
|
39
|
-
|
40
|
-
|
36
|
+
setup(c, { emit: I }) {
|
37
|
+
const l = c, { t: H, locale: p } = A();
|
38
|
+
let i = u(0), t = u(l.input), s = u(l.placeholder), o = u(l.enableTyping), d = u(null), f = u(""), r = u(!0), v = null;
|
39
|
+
const h = I;
|
40
|
+
function x() {
|
41
|
+
h("action");
|
41
42
|
}
|
42
|
-
function
|
43
|
-
|
43
|
+
function k(a) {
|
44
|
+
h("update:input", a), f.value = a;
|
44
45
|
}
|
45
46
|
function g() {
|
46
47
|
i.value = (i.value + 1) % l.placeholderTexts[p.value].length;
|
47
48
|
}
|
48
|
-
function
|
49
|
+
function B() {
|
49
50
|
o.value = !1, clearInterval(d.value), s.value = l.placeholder, f.value || (t.value = "");
|
50
51
|
}
|
51
|
-
function
|
52
|
-
!f.value && l.enableTyping && (o.value = !0, s.value = "",
|
52
|
+
function w() {
|
53
|
+
!f.value && l.enableTyping && (o.value = !0, s.value = "", m());
|
53
54
|
}
|
54
|
-
function
|
55
|
+
function m() {
|
55
56
|
let a = l.placeholderTexts[p.value][i.value], e = 0, n = !1;
|
56
|
-
|
57
|
+
v = setInterval(() => {
|
57
58
|
r.value = !r.value;
|
58
59
|
}, 200), d.value = setInterval(() => {
|
59
60
|
o.value && (n ? (t.value = t.value.slice(0, -1), t.value = a.substring(0, e) + (r.value && e % 2 ? "|" : ""), e--) : (t.value = a.substring(0, e) + (r.value && e % 2 ? "|" : ""), e++), e > a.length && l.loopTyping && setTimeout(() => {
|
@@ -61,32 +62,32 @@ const A = { class: "pd-thin radius-extra flex-nowrap flex" }, C = ["innerHTML"],
|
|
61
62
|
}, 333), e === 0 && n && (n = !1, g(), a = l.placeholderTexts[p.value][i.value]));
|
62
63
|
}, l.typingSpeed);
|
63
64
|
}
|
64
|
-
return
|
65
|
-
l.enableTyping &&
|
66
|
-
}),
|
67
|
-
o.value || (clearInterval(d.value), clearInterval(
|
68
|
-
}), (a, e) => (
|
69
|
-
|
65
|
+
return F(() => {
|
66
|
+
l.enableTyping && m();
|
67
|
+
}), S(() => {
|
68
|
+
o.value || (clearInterval(d.value), clearInterval(v));
|
69
|
+
}), (a, e) => (y(), b("div", C, [
|
70
|
+
_(V, {
|
70
71
|
field: T(t),
|
71
72
|
"onUpdate:field": [
|
72
|
-
e[0] || (e[0] = (n) =>
|
73
|
-
|
73
|
+
e[0] || (e[0] = (n) => M(t) ? t.value = n : t = n),
|
74
|
+
k
|
74
75
|
],
|
75
76
|
placeholder: T(s),
|
76
77
|
onInput: g,
|
77
|
-
onFocus:
|
78
|
-
onBlur:
|
78
|
+
onFocus: B,
|
79
|
+
onBlur: w,
|
79
80
|
class: "w-100 pd-small p-big"
|
80
81
|
}, null, 8, ["field", "placeholder"]),
|
81
|
-
c.action ? (
|
82
|
+
c.action ? (y(), b("button", {
|
82
83
|
key: 0,
|
83
|
-
onClick:
|
84
|
+
onClick: x,
|
84
85
|
class: "w-min hover_bg-white hover-t-black t-black bg-main button",
|
85
86
|
innerHTML: c.action
|
86
|
-
}, null, 8,
|
87
|
+
}, null, 8, E)) : N("", !0)
|
87
88
|
]));
|
88
89
|
}
|
89
90
|
};
|
90
91
|
export {
|
91
|
-
|
92
|
+
P as default
|
92
93
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),h=require("./FieldTags.vue.cjs");require("./BlockTags.vue2.cjs");const f=e.createElementVNode("h5",{class:"mn-thin"},"Tags (maximum 20):",-1),x={class:"mn-medium"},_=e.createElementVNode("p",{class:"p-small mn-thin"},"Suggested:",-1),k=["onClick"],B={key:1},y={__name:"BlockTags",props:["tags"],emits:["tags-changed"],setup(d,{emit:m}){const r=m,u=d,o=e.ref(""),s=e.ref([]),c=e.ref([{text:"story"},{text:"news"},{text:"guide"},{text:"discussion"},{text:"photos"}]);u.tags&&(s.value=u.tags.map(t=>({text:t})));const i=e.computed(()=>c.value.filter(t=>t.text.toLowerCase().includes(o.value.toLowerCase()))),n=e.computed(()=>c.value.filter(t=>!s.value.some(a=>a.text===t.text)));function g(t){s.value.push(t),r("tags-changed",s.value.map(a=>a.text))}function p(t){s.value=t,r("tags-changed",s.value.map(a=>a.text))}return(t,a)=>(e.openBlock(),e.createElementBlock("div",null,[f,e.createVNode(h.default,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l),tags:s.value,"autocomplete-items":i.value,"add-on-key":[13,":",";",","],"save-on-key":[13,":",";",","],separators:[";",","],"max-tags":20,maxlength:20,placeholder:"Please add tags","add-from-paste":!0,"allow-edit-tags":!0,onTagsChanged:p,class:"mn-thin bg-grey radius-medium pd-small"},null,8,["modelValue","tags","autocomplete-items"]),e.createElementVNode("p",x,[_,n.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(n.value,(l,v)=>(e.openBlock(),e.createElementBlock("span",{onClick:T=>g(l),class:e.normalizeClass(["cursor-pointer ti-tag-toDefactor",{"mn-r-micro":v!==n.value.length-1}])},e.toDisplayString(l.text),11,k))),256)):(e.openBlock(),e.createElementBlock("span",B,"You added all suggested tags"))])]))}};exports.default=y;
|
@@ -1,33 +1,33 @@
|
|
1
|
-
import { ref as
|
1
|
+
import { ref as u, computed as g, openBlock as o, createElementBlock as l, createVNode as k, createElementVNode as d, Fragment as y, renderList as C, normalizeClass as T, toDisplayString as V } from "vue";
|
2
2
|
import w from "./FieldTags.vue.js";
|
3
3
|
import "./BlockTags.vue2.js";
|
4
|
-
const B = /* @__PURE__ */
|
4
|
+
const B = /* @__PURE__ */ d("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1), I = { class: "mn-medium" }, L = /* @__PURE__ */ d("p", { class: "p-small mn-thin" }, "Suggested:", -1), S = ["onClick"], D = { key: 1 }, z = {
|
5
5
|
__name: "BlockTags",
|
6
6
|
props: ["tags"],
|
7
7
|
emits: ["tags-changed"],
|
8
|
-
setup(
|
9
|
-
const
|
8
|
+
setup(p, { emit: h }) {
|
9
|
+
const m = h, i = p, n = u(""), a = u([]), c = u([
|
10
10
|
{ text: "story" },
|
11
11
|
{ text: "news" },
|
12
12
|
{ text: "guide" },
|
13
13
|
{ text: "discussion" },
|
14
14
|
{ text: "photos" }
|
15
15
|
]);
|
16
|
-
|
17
|
-
const
|
18
|
-
function
|
19
|
-
a.value.push(e),
|
16
|
+
i.tags && (a.value = i.tags.map((e) => ({ text: e })));
|
17
|
+
const v = g(() => c.value.filter((e) => e.text.toLowerCase().includes(n.value.toLowerCase()))), r = g(() => c.value.filter((e) => !a.value.some((t) => t.text === e.text)));
|
18
|
+
function x(e) {
|
19
|
+
a.value.push(e), m("tags-changed", a.value.map((t) => t.text));
|
20
20
|
}
|
21
|
-
function
|
22
|
-
a.value = e,
|
21
|
+
function f(e) {
|
22
|
+
a.value = e, m("tags-changed", a.value.map((t) => t.text));
|
23
23
|
}
|
24
|
-
return (e, t) => (o(),
|
24
|
+
return (e, t) => (o(), l("div", null, [
|
25
25
|
B,
|
26
26
|
k(w, {
|
27
|
-
modelValue:
|
28
|
-
"onUpdate:modelValue": t[0] || (t[0] = (s) =>
|
27
|
+
modelValue: n.value,
|
28
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => n.value = s),
|
29
29
|
tags: a.value,
|
30
|
-
"autocomplete-items":
|
30
|
+
"autocomplete-items": v.value,
|
31
31
|
"add-on-key": [13, ":", ";", ","],
|
32
32
|
"save-on-key": [13, ":", ";", ","],
|
33
33
|
separators: [";", ","],
|
@@ -36,15 +36,15 @@ const B = /* @__PURE__ */ m("h5", { class: "mn-thin" }, "Tags (maximum 20):", -1
|
|
36
36
|
placeholder: "Please add tags",
|
37
37
|
"add-from-paste": !0,
|
38
38
|
"allow-edit-tags": !0,
|
39
|
-
onTagsChanged:
|
39
|
+
onTagsChanged: f,
|
40
40
|
class: "mn-thin bg-grey radius-medium pd-small"
|
41
41
|
}, null, 8, ["modelValue", "tags", "autocomplete-items"]),
|
42
|
-
|
42
|
+
d("p", I, [
|
43
43
|
L,
|
44
|
-
|
45
|
-
onClick: (E) =>
|
46
|
-
class: T(["cursor-pointer ti-tag-toDefactor", { "mn-r-micro": _ !==
|
47
|
-
}, V(s.text), 11, S))), 256)) : (o(),
|
44
|
+
r.value.length > 0 ? (o(!0), l(y, { key: 0 }, C(r.value, (s, _) => (o(), l("span", {
|
45
|
+
onClick: (E) => x(s),
|
46
|
+
class: T(["cursor-pointer ti-tag-toDefactor", { "mn-r-micro": _ !== r.value.length - 1 }])
|
47
|
+
}, V(s.text), 11, S))), 256)) : (o(), l("span", D, "You added all suggested tags"))
|
48
48
|
])
|
49
49
|
]));
|
50
50
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../Button/Button.vue.cjs");require("./LocationMarker.vue2.cjs");const w=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),h=r=>(e.pushScopeId("data-v-29acef04"),r=r(),e.popScopeId(),r),y={class:"pos-relative map-container"},v=h(()=>e.createElementVNode("svg",{class:"i-medium",width:"98",height:"98",viewBox:"0 0 98 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M50.0004 31.4995C39.7996 31.4995 31.5 39.7991 31.5 49.9999C31.5 60.2007 39.7996 68.5003 50.0004 68.5003C60.2012 68.5003 68.5008 60.2007 68.5008 49.9999C68.5008 39.7991 60.2012 31.4995 50.0004 31.4995ZM50.0004 63.7944C42.3941 63.7944 36.2059 57.6062 36.2059 49.9999C36.2059 42.3936 42.3941 36.2054 50.0004 36.2054C57.6067 36.2054 63.7949 42.3936 63.7949 49.9999C63.7949 57.6062 57.6067 63.7944 50.0004 63.7944Z",fill:"white"}),e.createElementVNode("path",{d:"M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",fill:"white"})],-1)),L=[v],M={__name:"LocationMarker",props:{location:{type:Object,default:{lat:48.6900735,lng:41.1620239}},address:{type:String,default:""},apiKey:String},emits:["update:location","update:address","update:country","update:state","update:city"],setup(r,{emit:C}){const t=r,a=C,d=e.ref(null);let c,i;e.onMounted(()=>{c=new google.maps.Map(d.value,{center:t.location,zoom:15,mapTypeControl:!1,fullscreenControl:!1}),i=new google.maps.Marker({position:t.location,map:c,draggable:!0}),i.addListener("dragend",o=>{const n={lat:o.latLng.lat(),lng:o.latLng.lng()};a("update:location",n),u(n)})}),e.watchEffect(()=>{t.location&&i&&i.setPosition(new google.maps.LatLng(t.location.lat,t.location.lng))}),e.watchEffect(()=>{if(t.location&&c){const o=new google.maps.LatLng(t.location.lat,t.location.lng);c.setCenter(o)}});function u(o){new google.maps.Geocoder().geocode({location:o},(s,p)=>{if(p==="OK")if(s[0]){a("update:address",s[0].formatted_address);let g="",f="",m="";s[0].address_components.forEach(l=>{l.types.includes("country")&&(g=l.long_name),l.types.includes("administrative_area_level_1")&&(f=l.long_name),l.types.includes("locality")&&(m=l.long_name)}),a("update:country",g),a("update:state",f),a("update:city",m)}else console.error("No results found");else console.error("Geocoder failed due to: "+p)})}async function _(){navigator.geolocation?navigator.geolocation.getCurrentPosition(o=>{const n={lat:o.coords.latitude,lng:o.coords.longitude};a("update:location",n),u(n)},()=>{console.error("Error getting location")}):console.error("Geolocation is not supported by this browser.")}return(o,n)=>(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",{ref_key:"mapContainer",ref:d,class:"w-100 h-100"},null,512),e.createElementVNode("button",{class:"pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",onClick:_},L)]))}},E=w.default(M,[["__scopeId","data-v-29acef04"]]);exports.default=E;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ref as
|
2
|
-
import "../Button/Button.
|
1
|
+
import { ref as h, onMounted as y, watchEffect as C, openBlock as v, createElementBlock as L, createElementVNode as s, pushScopeId as M, popScopeId as k } from "vue";
|
2
|
+
import "../Button/Button.vue.js";
|
3
3
|
import "./LocationMarker.vue2.js";
|
4
|
-
import
|
5
|
-
const
|
4
|
+
import b from "../../../../_virtual/_plugin-vue_export-helper.js";
|
5
|
+
const x = (l) => (M("data-v-29acef04"), l = l(), k(), l), E = { class: "pos-relative map-container" }, S = /* @__PURE__ */ x(() => /* @__PURE__ */ s("svg", {
|
6
6
|
class: "i-medium",
|
7
7
|
width: "98",
|
8
8
|
height: "98",
|
@@ -18,9 +18,9 @@ const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-rela
|
|
18
18
|
d: "M97.6471 47.6471H84.56C83.3977 30.4141 69.5859 16.6024 52.3529 15.44V2.35294C52.3529 1.05255 51.2988 0 50 0C48.6996 0 47.6471 1.05255 47.6471 2.35294V15.44C30.4141 16.6024 16.6024 30.4141 15.44 47.6471H2.35294C1.05255 47.6471 0 48.6996 0 50C0 51.2988 1.05255 52.3529 2.35294 52.3529H15.44C16.6024 69.5859 30.4141 83.3977 47.6471 84.56V97.6471C47.6471 98.9459 48.6996 100 50 100C51.2988 100 52.3529 98.9459 52.3529 97.6471V84.56C69.5859 83.3977 83.3977 69.5859 84.56 52.3529H97.6471C98.9459 52.3529 100 51.2988 100 50C100 48.6996 98.9459 47.6471 97.6471 47.6471ZM50 79.9435C33.4886 79.9435 20.0565 66.5114 20.0565 50C20.0565 33.4886 33.4886 20.0565 50 20.0565C66.5098 20.0565 79.9435 33.4886 79.9435 50C79.9435 66.5098 66.5098 79.9435 50 79.9435Z",
|
19
19
|
fill: "white"
|
20
20
|
})
|
21
|
-
], -1)),
|
22
|
-
|
23
|
-
],
|
21
|
+
], -1)), V = [
|
22
|
+
S
|
23
|
+
], H = {
|
24
24
|
__name: "LocationMarker",
|
25
25
|
props: {
|
26
26
|
location: {
|
@@ -34,47 +34,47 @@ const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-rela
|
|
34
34
|
apiKey: String
|
35
35
|
},
|
36
36
|
emits: ["update:location", "update:address", "update:country", "update:state", "update:city"],
|
37
|
-
setup(l, { emit:
|
38
|
-
const e = l, d =
|
39
|
-
let
|
40
|
-
|
41
|
-
|
37
|
+
setup(l, { emit: _ }) {
|
38
|
+
const e = l, n = _, d = h(null);
|
39
|
+
let i, c;
|
40
|
+
y(() => {
|
41
|
+
i = new google.maps.Map(d.value, {
|
42
42
|
center: e.location,
|
43
43
|
zoom: 15,
|
44
44
|
mapTypeControl: !1,
|
45
45
|
fullscreenControl: !1
|
46
|
-
}),
|
46
|
+
}), c = new google.maps.Marker({
|
47
47
|
position: e.location,
|
48
|
-
map:
|
48
|
+
map: i,
|
49
49
|
draggable: !0
|
50
|
-
}),
|
50
|
+
}), c.addListener("dragend", (o) => {
|
51
51
|
const t = { lat: o.latLng.lat(), lng: o.latLng.lng() };
|
52
52
|
n("update:location", t), p(t);
|
53
53
|
});
|
54
|
-
}),
|
55
|
-
e.location &&
|
56
|
-
}),
|
57
|
-
if (e.location &&
|
54
|
+
}), C(() => {
|
55
|
+
e.location && c && c.setPosition(new google.maps.LatLng(e.location.lat, e.location.lng));
|
56
|
+
}), C(() => {
|
57
|
+
if (e.location && i) {
|
58
58
|
const o = new google.maps.LatLng(e.location.lat, e.location.lng);
|
59
|
-
|
59
|
+
i.setCenter(o);
|
60
60
|
}
|
61
61
|
});
|
62
62
|
function p(o) {
|
63
|
-
new google.maps.Geocoder().geocode({ location: o }, (
|
63
|
+
new google.maps.Geocoder().geocode({ location: o }, (r, g) => {
|
64
64
|
if (g === "OK")
|
65
|
-
if (
|
66
|
-
n("update:address",
|
67
|
-
let u = "",
|
68
|
-
|
69
|
-
a.types.includes("country") && (u = a.long_name), a.types.includes("administrative_area_level_1") && (
|
70
|
-
}), n("update:country", u), n("update:state",
|
65
|
+
if (r[0]) {
|
66
|
+
n("update:address", r[0].formatted_address);
|
67
|
+
let u = "", m = "", f = "";
|
68
|
+
r[0].address_components.forEach((a) => {
|
69
|
+
a.types.includes("country") && (u = a.long_name), a.types.includes("administrative_area_level_1") && (m = a.long_name), a.types.includes("locality") && (f = a.long_name);
|
70
|
+
}), n("update:country", u), n("update:state", m), n("update:city", f);
|
71
71
|
} else
|
72
72
|
console.error("No results found");
|
73
73
|
else
|
74
74
|
console.error("Geocoder failed due to: " + g);
|
75
75
|
});
|
76
76
|
}
|
77
|
-
async function
|
77
|
+
async function w() {
|
78
78
|
navigator.geolocation ? navigator.geolocation.getCurrentPosition((o) => {
|
79
79
|
const t = { lat: o.coords.latitude, lng: o.coords.longitude };
|
80
80
|
n("update:location", t), p(t);
|
@@ -82,7 +82,7 @@ const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-rela
|
|
82
82
|
console.error("Error getting location");
|
83
83
|
}) : console.error("Geolocation is not supported by this browser.");
|
84
84
|
}
|
85
|
-
return (o, t) => (
|
85
|
+
return (o, t) => (v(), L("div", E, [
|
86
86
|
s("div", {
|
87
87
|
ref_key: "mapContainer",
|
88
88
|
ref: d,
|
@@ -90,11 +90,11 @@ const b = (l) => (L("data-v-29acef04"), l = l(), M(), l), x = { class: "pos-rela
|
|
90
90
|
}, null, 512),
|
91
91
|
s("button", {
|
92
92
|
class: "pos-absolute pos-t-regular pos-r-regular i-semi bg-second radius-extra",
|
93
|
-
onClick:
|
94
|
-
},
|
93
|
+
onClick: w
|
94
|
+
}, V)
|
95
95
|
]));
|
96
96
|
}
|
97
|
-
},
|
97
|
+
}, K = /* @__PURE__ */ b(H, [["__scopeId", "data-v-29acef04"]]);
|
98
98
|
export {
|
99
|
-
|
99
|
+
K as default
|
100
100
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("vue-router"),c=require("vue-i18n"),d=require("../../modules/icons/navigation/IconCross.vue.cjs");require("./Popup.vue2.cjs");const m={key:"popup-content",class:"pd-small popup-wrapper"},v={__name:"Popup",props:{isPopupOpen:{type:Boolean,default:!1},style:String},emits:["close-popup"],setup(t,{emit:l}){const u=t,a=l;function s(){a("close-popup")}e.watch(()=>u.isPopupOpen,o=>{o?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")}),r.useRoute(),r.useRouter();const p={messages:{en:{},ru:{}}};return c.useI18n(p),(o,n)=>t.isPopupOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"TransitionTranslateY",appear:""},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("div",m,[e.createVNode(e.Transition,{name:"TransitionTranslateY",mode:"out-in"},{default:e.withCtx(()=>[t.isPopupOpen?(e.openBlock(),e.createElementBlock("section",e.mergeProps({key:0,class:"pos-relative z-index-4"},o.$attrs),[e.createElementVNode("button",{onClick:n[0]||(n[0]=i=>s()),class:"pd-regular hover-scale-1 z-index-5 button-close-popup button"},[e.createVNode(d.default)]),e.renderSlot(o.$slots,"default")],16)):e.createCommentVNode("",!0)]),_:3}),e.createElementVNode("div",{onClick:n[1]||(n[1]=i=>s()),class:e.normalizeClass([{active:t.isPopupOpen===!0},"color-overlay z-index-3"])},null,2)])):e.createCommentVNode("",!0)]),_:3})])):e.createCommentVNode("",!0)}};exports.default=v;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { watch as
|
2
|
-
import { useRoute as
|
3
|
-
import { useI18n as
|
4
|
-
import
|
1
|
+
import { watch as v, openBlock as s, createBlock as y, Teleport as P, createVNode as n, Transition as l, withCtx as a, createElementBlock as i, mergeProps as k, createElementVNode as u, renderSlot as b, createCommentVNode as p, normalizeClass as x } from "vue";
|
2
|
+
import { useRoute as C, useRouter as O } from "vue-router";
|
3
|
+
import { useI18n as T } from "vue-i18n";
|
4
|
+
import g from "../../modules/icons/navigation/IconCross.vue.js";
|
5
5
|
import "./Popup.vue2.js";
|
6
|
-
const
|
6
|
+
const z = {
|
7
7
|
key: "popup-content",
|
8
8
|
class: "pd-small popup-wrapper"
|
9
|
-
},
|
9
|
+
}, I = {
|
10
10
|
__name: "Popup",
|
11
11
|
props: {
|
12
12
|
isPopupOpen: {
|
@@ -17,18 +17,18 @@ const g = {
|
|
17
17
|
},
|
18
18
|
emits: ["close-popup"],
|
19
19
|
setup(e, { emit: c }) {
|
20
|
-
const m = e;
|
20
|
+
const m = e, d = c;
|
21
21
|
function r() {
|
22
|
-
|
22
|
+
d("close-popup");
|
23
23
|
}
|
24
|
-
return
|
24
|
+
return v(() => m.isPopupOpen, (o) => {
|
25
25
|
o ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll");
|
26
|
-
}),
|
26
|
+
}), C(), O(), T({
|
27
27
|
messages: {
|
28
28
|
en: {},
|
29
29
|
ru: {}
|
30
30
|
}
|
31
|
-
}), (o, t) => e.isPopupOpen ? (s(),
|
31
|
+
}), (o, t) => e.isPopupOpen ? (s(), y(P, {
|
32
32
|
key: 0,
|
33
33
|
to: "body"
|
34
34
|
}, [
|
@@ -37,30 +37,30 @@ const g = {
|
|
37
37
|
appear: ""
|
38
38
|
}, {
|
39
39
|
default: a(() => [
|
40
|
-
e.isPopupOpen ? (s(),
|
40
|
+
e.isPopupOpen ? (s(), i("div", z, [
|
41
41
|
n(l, {
|
42
42
|
name: "TransitionTranslateY",
|
43
43
|
mode: "out-in"
|
44
44
|
}, {
|
45
45
|
default: a(() => [
|
46
|
-
e.isPopupOpen ? (s(),
|
46
|
+
e.isPopupOpen ? (s(), i("section", k({
|
47
47
|
key: 0,
|
48
48
|
class: "pos-relative z-index-4"
|
49
49
|
}, o.$attrs), [
|
50
|
-
|
51
|
-
onClick: t[0] || (t[0] = (
|
50
|
+
u("button", {
|
51
|
+
onClick: t[0] || (t[0] = (f) => r()),
|
52
52
|
class: "pd-regular hover-scale-1 z-index-5 button-close-popup button"
|
53
53
|
}, [
|
54
|
-
n(
|
54
|
+
n(g)
|
55
55
|
]),
|
56
|
-
|
56
|
+
b(o.$slots, "default")
|
57
57
|
], 16)) : p("", !0)
|
58
58
|
]),
|
59
59
|
_: 3
|
60
60
|
}),
|
61
|
-
|
62
|
-
onClick: t[1] || (t[1] = (
|
63
|
-
class:
|
61
|
+
u("div", {
|
62
|
+
onClick: t[1] || (t[1] = (f) => r()),
|
63
|
+
class: x([{ active: e.isPopupOpen === !0 }, "color-overlay z-index-3"])
|
64
64
|
}, null, 2)
|
65
65
|
])) : p("", !0)
|
66
66
|
]),
|
@@ -70,5 +70,5 @@ const g = {
|
|
70
70
|
}
|
71
71
|
};
|
72
72
|
export {
|
73
|
-
|
73
|
+
I as default
|
74
74
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,80 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Select.vue2.js";
|
3
|
-
import M from "../../../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const N = ["onClick"], O = {
|
5
|
-
key: 0,
|
6
|
-
class: "t-transp mn-r-small"
|
7
|
-
}, T = { class: "w-100" }, V = ["onClick"], $ = {
|
8
|
-
key: 0,
|
9
|
-
class: "w-100"
|
10
|
-
}, z = {
|
11
|
-
key: 0,
|
12
|
-
class: "mn-t-thin invalid-feedback"
|
13
|
-
}, E = {
|
14
|
-
__name: "Select",
|
15
|
-
props: {
|
16
|
-
label: String,
|
17
|
-
select: [String, Object],
|
18
|
-
placeholder: { type: String, default: "Please select an item" },
|
19
|
-
options: { type: Array, default: () => [] },
|
20
|
-
validation: Boolean
|
21
|
-
},
|
22
|
-
emits: ["update:select", "focus", "blur"],
|
23
|
-
setup(s, { emit: d }) {
|
24
|
-
const a = s, n = f(a.select), o = f(!1);
|
25
|
-
C(() => a.select, (e) => {
|
26
|
-
n.value = e;
|
27
|
-
});
|
28
|
-
const w = S(() => a.select ? a.options.filter((e) => e !== a.select) : a.options), m = () => {
|
29
|
-
o.value = !o.value, d(o.value ? "focus" : "blur");
|
30
|
-
}, y = (e) => {
|
31
|
-
n.value = e, m(), d("update:select", n.value);
|
32
|
-
};
|
33
|
-
return (e, L) => {
|
34
|
-
var p;
|
35
|
-
return t(), l(v, null, [
|
36
|
-
i("div", {
|
37
|
-
onClick: h(m, ["stop"]),
|
38
|
-
class: _([e.$attrs.class, "cursor-pointer flex-nowrap flex"])
|
39
|
-
}, [
|
40
|
-
s.label ? (t(), l("div", O, [
|
41
|
-
i("span", null, r(s.label), 1)
|
42
|
-
])) : u("", !0),
|
43
|
-
i("li", T, [
|
44
|
-
i("span", null, r(((p = n.value) == null ? void 0 : p.name) || n.value || s.placeholder), 1)
|
45
|
-
]),
|
46
|
-
k(b, {
|
47
|
-
mode: "out-in",
|
48
|
-
name: "TransitionTranslateY"
|
49
|
-
}, {
|
50
|
-
default: g(() => [
|
51
|
-
o.value ? (t(), l("ul", {
|
52
|
-
key: 0,
|
53
|
-
class: _([e.$attrs.class, "pos-absolute pos-t-100 pos-l-0 z-index-5 w-100 mn-t-thin"])
|
54
|
-
}, [
|
55
|
-
(t(!0), l(v, null, x(B(w), (c) => (t(), l("li", {
|
56
|
-
onClick: h((j) => y(c), ["stop"])
|
57
|
-
}, [
|
58
|
-
c ? (t(), l("span", $, r(c.name || c), 1)) : u("", !0)
|
59
|
-
], 8, V))), 256))
|
60
|
-
], 2)) : u("", !0)
|
61
|
-
]),
|
62
|
-
_: 1
|
63
|
-
})
|
64
|
-
], 10, N),
|
65
|
-
k(b, {
|
66
|
-
mode: "out-in",
|
67
|
-
name: "fade"
|
68
|
-
}, {
|
69
|
-
default: g(() => [
|
70
|
-
s.validation ? (t(), l("div", z, " * " + r(s.validation.message), 1)) : u("", !0)
|
71
|
-
]),
|
72
|
-
_: 1
|
73
|
-
})
|
74
|
-
], 64);
|
75
|
-
};
|
76
|
-
}
|
77
|
-
}, I = /* @__PURE__ */ M(E, [["__scopeId", "data-v-dfe03dc2"]]);
|
1
|
+
const e = "";
|
78
2
|
export {
|
79
|
-
|
3
|
+
e as default
|
80
4
|
};
|