@ozdao/prometheus-framework 0.1.94 → 0.1.95
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +1 -1
- package/dist/auth.server.mjs +1 -1
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +1 -1
- package/dist/events.server.mjs +1 -1
- package/dist/files.server.js +1 -1
- package/dist/files.server.mjs +1 -1
- package/dist/gallery.server.js +1 -1
- package/dist/gallery.server.mjs +1 -1
- package/dist/index-96ec80f2.mjs +217 -0
- package/dist/index-fd6fdd90.js +216 -0
- package/dist/middlewares.server.js +1 -1
- package/dist/middlewares.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +224 -2
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +2 -224
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +76 -2
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +2 -76
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +1 -1
- 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/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +11 -2
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +2 -11
- 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 +2 -2
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +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 +3 -3
- 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/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/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +3 -3
- 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 +2 -2
- package/dist/reports.server.js +1 -1
- package/dist/reports.server.mjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +3 -2
- package/src/modules/community/store/blogposts.js +1 -0
- package/src/modules/middlewares/server/authJwt.js +15 -8
@@ -1,4 +1,226 @@
|
|
1
|
-
|
1
|
+
import { ref as c, openBlock as s, createElementBlock as u, withModifiers as p, createVNode as d, Transition as m, withCtx as h, renderSlot as y, createCommentVNode as b, toDisplayString as _, createElementVNode as e, createTextVNode as o } from "vue";
|
2
|
+
import "./Button.vue2.js";
|
3
|
+
const w = ["onClick", "disabled"], k = { key: 0 }, N = {
|
4
|
+
key: 0,
|
5
|
+
class: "loading"
|
6
|
+
}, x = /* @__PURE__ */ e("svg", {
|
7
|
+
class: "i-regular",
|
8
|
+
width: "135",
|
9
|
+
height: "140",
|
10
|
+
viewBox: "0 0 135 140",
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12
|
+
fill: "#fff"
|
13
|
+
}, [
|
14
|
+
/* @__PURE__ */ e("rect", {
|
15
|
+
y: "10",
|
16
|
+
width: "15",
|
17
|
+
height: "120",
|
18
|
+
rx: "6"
|
19
|
+
}, [
|
20
|
+
/* @__PURE__ */ e("animate", {
|
21
|
+
attributeName: "height",
|
22
|
+
begin: "0.5s",
|
23
|
+
dur: "1s",
|
24
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
25
|
+
calcMode: "linear",
|
26
|
+
repeatCount: "indefinite"
|
27
|
+
}),
|
28
|
+
/* @__PURE__ */ o(),
|
29
|
+
/* @__PURE__ */ e("animate", {
|
30
|
+
attributeName: "y",
|
31
|
+
begin: "0.5s",
|
32
|
+
dur: "1s",
|
33
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
34
|
+
calcMode: "linear",
|
35
|
+
repeatCount: "indefinite"
|
36
|
+
})
|
37
|
+
]),
|
38
|
+
/* @__PURE__ */ e("rect", {
|
39
|
+
x: "30",
|
40
|
+
y: "10",
|
41
|
+
width: "15",
|
42
|
+
height: "120",
|
43
|
+
rx: "6"
|
44
|
+
}, [
|
45
|
+
/* @__PURE__ */ e("animate", {
|
46
|
+
attributeName: "height",
|
47
|
+
begin: "0.25s",
|
48
|
+
dur: "1s",
|
49
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
50
|
+
calcMode: "linear",
|
51
|
+
repeatCount: "indefinite"
|
52
|
+
}),
|
53
|
+
/* @__PURE__ */ o(),
|
54
|
+
/* @__PURE__ */ e("animate", {
|
55
|
+
attributeName: "y",
|
56
|
+
begin: "0.25s",
|
57
|
+
dur: "1s",
|
58
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
59
|
+
calcMode: "linear",
|
60
|
+
repeatCount: "indefinite"
|
61
|
+
})
|
62
|
+
]),
|
63
|
+
/* @__PURE__ */ e("rect", {
|
64
|
+
x: "60",
|
65
|
+
width: "15",
|
66
|
+
height: "140",
|
67
|
+
rx: "6"
|
68
|
+
}, [
|
69
|
+
/* @__PURE__ */ e("animate", {
|
70
|
+
attributeName: "height",
|
71
|
+
begin: "0s",
|
72
|
+
dur: "1s",
|
73
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
74
|
+
calcMode: "linear",
|
75
|
+
repeatCount: "indefinite"
|
76
|
+
}),
|
77
|
+
/* @__PURE__ */ o(),
|
78
|
+
/* @__PURE__ */ e("animate", {
|
79
|
+
attributeName: "y",
|
80
|
+
begin: "0s",
|
81
|
+
dur: "1s",
|
82
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
83
|
+
calcMode: "linear",
|
84
|
+
repeatCount: "indefinite"
|
85
|
+
})
|
86
|
+
]),
|
87
|
+
/* @__PURE__ */ e("rect", {
|
88
|
+
x: "90",
|
89
|
+
y: "10",
|
90
|
+
width: "15",
|
91
|
+
height: "120",
|
92
|
+
rx: "6"
|
93
|
+
}, [
|
94
|
+
/* @__PURE__ */ e("animate", {
|
95
|
+
attributeName: "height",
|
96
|
+
begin: "0.25s",
|
97
|
+
dur: "1s",
|
98
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
99
|
+
calcMode: "linear",
|
100
|
+
repeatCount: "indefinite"
|
101
|
+
}),
|
102
|
+
/* @__PURE__ */ o(),
|
103
|
+
/* @__PURE__ */ e("animate", {
|
104
|
+
attributeName: "y",
|
105
|
+
begin: "0.25s",
|
106
|
+
dur: "1s",
|
107
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
108
|
+
calcMode: "linear",
|
109
|
+
repeatCount: "indefinite"
|
110
|
+
})
|
111
|
+
]),
|
112
|
+
/* @__PURE__ */ e("rect", {
|
113
|
+
x: "120",
|
114
|
+
y: "10",
|
115
|
+
width: "15",
|
116
|
+
height: "120",
|
117
|
+
rx: "6"
|
118
|
+
}, [
|
119
|
+
/* @__PURE__ */ e("animate", {
|
120
|
+
attributeName: "height",
|
121
|
+
begin: "0.5s",
|
122
|
+
dur: "1s",
|
123
|
+
values: "120;110;100;90;80;70;60;50;40;140;120",
|
124
|
+
calcMode: "linear",
|
125
|
+
repeatCount: "indefinite"
|
126
|
+
}),
|
127
|
+
/* @__PURE__ */ o(),
|
128
|
+
/* @__PURE__ */ e("animate", {
|
129
|
+
attributeName: "y",
|
130
|
+
begin: "0.5s",
|
131
|
+
dur: "1s",
|
132
|
+
values: "10;15;20;25;30;35;40;45;50;0;10",
|
133
|
+
calcMode: "linear",
|
134
|
+
repeatCount: "indefinite"
|
135
|
+
})
|
136
|
+
])
|
137
|
+
], -1), C = [
|
138
|
+
x
|
139
|
+
], T = {
|
140
|
+
key: 0,
|
141
|
+
class: "loading t-white"
|
142
|
+
}, M = {
|
143
|
+
key: 0,
|
144
|
+
class: "error"
|
145
|
+
}, L = {
|
146
|
+
__name: "Button",
|
147
|
+
props: {
|
148
|
+
submit: {
|
149
|
+
type: Function,
|
150
|
+
default: async () => {
|
151
|
+
console.log("Button click.");
|
152
|
+
}
|
153
|
+
},
|
154
|
+
callback: {
|
155
|
+
type: Function,
|
156
|
+
default: async () => {
|
157
|
+
console.log("Button callback.");
|
158
|
+
}
|
159
|
+
},
|
160
|
+
callbackDelay: {
|
161
|
+
type: Number,
|
162
|
+
default: 750
|
163
|
+
},
|
164
|
+
showSucces: {
|
165
|
+
type: Boolean,
|
166
|
+
default: !0
|
167
|
+
},
|
168
|
+
validation: {
|
169
|
+
type: Boolean,
|
170
|
+
default: !1
|
171
|
+
}
|
172
|
+
},
|
173
|
+
setup(f) {
|
174
|
+
const i = f, t = c(null), a = c(null), n = c(!1), r = c(!1);
|
175
|
+
async function g() {
|
176
|
+
t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
|
177
|
+
const l = () => {
|
178
|
+
t.value && (t.value.classList.replace("bg-light-main", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, r.value = !1, a.value = null);
|
179
|
+
};
|
180
|
+
try {
|
181
|
+
await i.submit(), t.value.classList.replace("bg-main", "bg-light-main"), n.value = !1, i.showSucces ? (r.value = !0, setTimeout(l, 500)) : l(), i.callback && setTimeout(() => i.callback(), i.callbackDelay);
|
182
|
+
} catch {
|
183
|
+
t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = "❌", setTimeout(() => {
|
184
|
+
l(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
185
|
+
}, 1330);
|
186
|
+
}
|
187
|
+
}
|
188
|
+
return (l, v) => (s(), u("button", {
|
189
|
+
onClick: p(g, ["stop"]),
|
190
|
+
disabled: f.validation,
|
191
|
+
ref_key: "button",
|
192
|
+
ref: t,
|
193
|
+
class: "w-100 bg-main button"
|
194
|
+
}, [
|
195
|
+
d(m, { name: "TransitionTranslateY-small" }, {
|
196
|
+
default: h(() => [
|
197
|
+
!n.value && !a.value && !r.value ? (s(), u("span", k, [
|
198
|
+
y(l.$slots, "default")
|
199
|
+
])) : b("", !0)
|
200
|
+
]),
|
201
|
+
_: 3
|
202
|
+
}),
|
203
|
+
d(m, { name: "TransitionTranslateY-small" }, {
|
204
|
+
default: h(() => [
|
205
|
+
n.value && !a.value ? (s(), u("span", N, C)) : b("", !0)
|
206
|
+
]),
|
207
|
+
_: 1
|
208
|
+
}),
|
209
|
+
d(m, { name: "TransitionTranslateY-small" }, {
|
210
|
+
default: h(() => [
|
211
|
+
r.value && f.showSucces ? (s(), u("span", T, "✔")) : b("", !0)
|
212
|
+
]),
|
213
|
+
_: 1
|
214
|
+
}),
|
215
|
+
d(m, { name: "TransitionTranslateY-small" }, {
|
216
|
+
default: h(() => [
|
217
|
+
a.value ? (s(), u("span", M, _(a.value), 1)) : b("", !0)
|
218
|
+
]),
|
219
|
+
_: 1
|
220
|
+
})
|
221
|
+
], 8, w));
|
222
|
+
}
|
223
|
+
};
|
2
224
|
export {
|
3
|
-
|
225
|
+
L as default
|
4
226
|
};
|
@@ -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,226 +1,4 @@
|
|
1
|
-
|
2
|
-
import "./Button.vue.js";
|
3
|
-
const w = ["onClick", "disabled"], k = { key: 0 }, N = {
|
4
|
-
key: 0,
|
5
|
-
class: "loading"
|
6
|
-
}, x = /* @__PURE__ */ e("svg", {
|
7
|
-
class: "i-regular",
|
8
|
-
width: "135",
|
9
|
-
height: "140",
|
10
|
-
viewBox: "0 0 135 140",
|
11
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12
|
-
fill: "#fff"
|
13
|
-
}, [
|
14
|
-
/* @__PURE__ */ e("rect", {
|
15
|
-
y: "10",
|
16
|
-
width: "15",
|
17
|
-
height: "120",
|
18
|
-
rx: "6"
|
19
|
-
}, [
|
20
|
-
/* @__PURE__ */ e("animate", {
|
21
|
-
attributeName: "height",
|
22
|
-
begin: "0.5s",
|
23
|
-
dur: "1s",
|
24
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
25
|
-
calcMode: "linear",
|
26
|
-
repeatCount: "indefinite"
|
27
|
-
}),
|
28
|
-
/* @__PURE__ */ o(),
|
29
|
-
/* @__PURE__ */ e("animate", {
|
30
|
-
attributeName: "y",
|
31
|
-
begin: "0.5s",
|
32
|
-
dur: "1s",
|
33
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
34
|
-
calcMode: "linear",
|
35
|
-
repeatCount: "indefinite"
|
36
|
-
})
|
37
|
-
]),
|
38
|
-
/* @__PURE__ */ e("rect", {
|
39
|
-
x: "30",
|
40
|
-
y: "10",
|
41
|
-
width: "15",
|
42
|
-
height: "120",
|
43
|
-
rx: "6"
|
44
|
-
}, [
|
45
|
-
/* @__PURE__ */ e("animate", {
|
46
|
-
attributeName: "height",
|
47
|
-
begin: "0.25s",
|
48
|
-
dur: "1s",
|
49
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
50
|
-
calcMode: "linear",
|
51
|
-
repeatCount: "indefinite"
|
52
|
-
}),
|
53
|
-
/* @__PURE__ */ o(),
|
54
|
-
/* @__PURE__ */ e("animate", {
|
55
|
-
attributeName: "y",
|
56
|
-
begin: "0.25s",
|
57
|
-
dur: "1s",
|
58
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
59
|
-
calcMode: "linear",
|
60
|
-
repeatCount: "indefinite"
|
61
|
-
})
|
62
|
-
]),
|
63
|
-
/* @__PURE__ */ e("rect", {
|
64
|
-
x: "60",
|
65
|
-
width: "15",
|
66
|
-
height: "140",
|
67
|
-
rx: "6"
|
68
|
-
}, [
|
69
|
-
/* @__PURE__ */ e("animate", {
|
70
|
-
attributeName: "height",
|
71
|
-
begin: "0s",
|
72
|
-
dur: "1s",
|
73
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
74
|
-
calcMode: "linear",
|
75
|
-
repeatCount: "indefinite"
|
76
|
-
}),
|
77
|
-
/* @__PURE__ */ o(),
|
78
|
-
/* @__PURE__ */ e("animate", {
|
79
|
-
attributeName: "y",
|
80
|
-
begin: "0s",
|
81
|
-
dur: "1s",
|
82
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
83
|
-
calcMode: "linear",
|
84
|
-
repeatCount: "indefinite"
|
85
|
-
})
|
86
|
-
]),
|
87
|
-
/* @__PURE__ */ e("rect", {
|
88
|
-
x: "90",
|
89
|
-
y: "10",
|
90
|
-
width: "15",
|
91
|
-
height: "120",
|
92
|
-
rx: "6"
|
93
|
-
}, [
|
94
|
-
/* @__PURE__ */ e("animate", {
|
95
|
-
attributeName: "height",
|
96
|
-
begin: "0.25s",
|
97
|
-
dur: "1s",
|
98
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
99
|
-
calcMode: "linear",
|
100
|
-
repeatCount: "indefinite"
|
101
|
-
}),
|
102
|
-
/* @__PURE__ */ o(),
|
103
|
-
/* @__PURE__ */ e("animate", {
|
104
|
-
attributeName: "y",
|
105
|
-
begin: "0.25s",
|
106
|
-
dur: "1s",
|
107
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
108
|
-
calcMode: "linear",
|
109
|
-
repeatCount: "indefinite"
|
110
|
-
})
|
111
|
-
]),
|
112
|
-
/* @__PURE__ */ e("rect", {
|
113
|
-
x: "120",
|
114
|
-
y: "10",
|
115
|
-
width: "15",
|
116
|
-
height: "120",
|
117
|
-
rx: "6"
|
118
|
-
}, [
|
119
|
-
/* @__PURE__ */ e("animate", {
|
120
|
-
attributeName: "height",
|
121
|
-
begin: "0.5s",
|
122
|
-
dur: "1s",
|
123
|
-
values: "120;110;100;90;80;70;60;50;40;140;120",
|
124
|
-
calcMode: "linear",
|
125
|
-
repeatCount: "indefinite"
|
126
|
-
}),
|
127
|
-
/* @__PURE__ */ o(),
|
128
|
-
/* @__PURE__ */ e("animate", {
|
129
|
-
attributeName: "y",
|
130
|
-
begin: "0.5s",
|
131
|
-
dur: "1s",
|
132
|
-
values: "10;15;20;25;30;35;40;45;50;0;10",
|
133
|
-
calcMode: "linear",
|
134
|
-
repeatCount: "indefinite"
|
135
|
-
})
|
136
|
-
])
|
137
|
-
], -1), C = [
|
138
|
-
x
|
139
|
-
], T = {
|
140
|
-
key: 0,
|
141
|
-
class: "loading t-white"
|
142
|
-
}, M = {
|
143
|
-
key: 0,
|
144
|
-
class: "error"
|
145
|
-
}, L = {
|
146
|
-
__name: "Button",
|
147
|
-
props: {
|
148
|
-
submit: {
|
149
|
-
type: Function,
|
150
|
-
default: async () => {
|
151
|
-
console.log("Button click.");
|
152
|
-
}
|
153
|
-
},
|
154
|
-
callback: {
|
155
|
-
type: Function,
|
156
|
-
default: async () => {
|
157
|
-
console.log("Button callback.");
|
158
|
-
}
|
159
|
-
},
|
160
|
-
callbackDelay: {
|
161
|
-
type: Number,
|
162
|
-
default: 750
|
163
|
-
},
|
164
|
-
showSucces: {
|
165
|
-
type: Boolean,
|
166
|
-
default: !0
|
167
|
-
},
|
168
|
-
validation: {
|
169
|
-
type: Boolean,
|
170
|
-
default: !1
|
171
|
-
}
|
172
|
-
},
|
173
|
-
setup(f) {
|
174
|
-
const i = f, t = c(null), a = c(null), n = c(!1), r = c(!1);
|
175
|
-
async function g() {
|
176
|
-
t.value.style["pointer-events"] = "none", a.value = null, n.value = !0;
|
177
|
-
const l = () => {
|
178
|
-
t.value && (t.value.classList.replace("bg-light-main", "bg-main"), t.value.style.pointerEvents = "auto", n.value = !1, r.value = !1, a.value = null);
|
179
|
-
};
|
180
|
-
try {
|
181
|
-
await i.submit(), t.value.classList.replace("bg-main", "bg-light-main"), n.value = !1, i.showSucces ? (r.value = !0, setTimeout(l, 500)) : l(), i.callback && setTimeout(() => i.callback(), i.callbackDelay);
|
182
|
-
} catch {
|
183
|
-
t.value.classList.replace("bg-main", "bg-fourth-nano"), a.value = "❌", setTimeout(() => {
|
184
|
-
l(), t.value.classList.replace("bg-fourth-nano", "bg-main");
|
185
|
-
}, 1330);
|
186
|
-
}
|
187
|
-
}
|
188
|
-
return (l, v) => (s(), u("button", {
|
189
|
-
onClick: p(g, ["stop"]),
|
190
|
-
disabled: f.validation,
|
191
|
-
ref_key: "button",
|
192
|
-
ref: t,
|
193
|
-
class: "w-100 bg-main button"
|
194
|
-
}, [
|
195
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
196
|
-
default: h(() => [
|
197
|
-
!n.value && !a.value && !r.value ? (s(), u("span", k, [
|
198
|
-
y(l.$slots, "default")
|
199
|
-
])) : b("", !0)
|
200
|
-
]),
|
201
|
-
_: 3
|
202
|
-
}),
|
203
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
204
|
-
default: h(() => [
|
205
|
-
n.value && !a.value ? (s(), u("span", N, C)) : b("", !0)
|
206
|
-
]),
|
207
|
-
_: 1
|
208
|
-
}),
|
209
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
210
|
-
default: h(() => [
|
211
|
-
r.value && f.showSucces ? (s(), u("span", T, "✔")) : b("", !0)
|
212
|
-
]),
|
213
|
-
_: 1
|
214
|
-
}),
|
215
|
-
d(m, { name: "TransitionTranslateY-small" }, {
|
216
|
-
default: h(() => [
|
217
|
-
a.value ? (s(), u("span", M, _(a.value), 1)) : b("", !0)
|
218
|
-
]),
|
219
|
-
_: 1
|
220
|
-
})
|
221
|
-
], 8, w));
|
222
|
-
}
|
223
|
-
};
|
1
|
+
const e = "";
|
224
2
|
export {
|
225
|
-
|
3
|
+
e as default
|
226
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("./Field.vue2.cjs");const u=require("../../../../_virtual/_plugin-vue_export-helper.cjs"),r={key:0,class:"t-transp mn-r-small"},c={class:"w-100"},m=["type","value","placeholder","tabindex"],f=["value","placeholder","tabindex"],b={key:1,class:"t-transp mn-l-small"},v={key:0,class:"mn-t-thin mn-thin mn-b-thin invalid-feedback"},k={__name:"Field",props:{label:null,symbol:null,type:"text",placeholder:"Enter something here",field:null,validation:!1,disabled:!1,tabindex:-1},emits:["update:field","focus","blur"],setup(t,{emit:i}){const a=i,s=t,o=e.ref(s.field);return(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass([[d.$attrs.class,{"bg-fourth-nano":t.validation}],"flex-center flex-nowrap flex"])},[t.label?(e.openBlock(),e.createElementBlock("div",r,[e.createElementVNode("span",null,e.toDisplayString(t.label),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[t.type!=="textarea"?(e.openBlock(),e.createElementBlock("input",{key:0,onInput:l[0]||(l[0]=n=>o.value=a("update:field",n.target.value)),onFocus:l[1]||(l[1]=n=>a("focus",n)),onBlur:l[2]||(l[2]=n=>a("blur",n)),type:t.type,class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,m)):(e.openBlock(),e.createElementBlock("textarea",{key:1,onInput:l[3]||(l[3]=n=>o.value=a("update:field",n.target.value)),onFocus:l[4]||(l[4]=n=>a("focus",n)),onBlur:l[5]||(l[5]=n=>a("blur",n)),class:"w-100",value:t.field,placeholder:t.placeholder,tabindex:t.tabindex},null,40,f))]),e.renderSlot(d.$slots,"default",{},void 0,!0),t.symbol?(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("span",null,e.toDisplayString(t.symbol),1)])):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[t.validation?(e.openBlock(),e.createElementBlock("div",v," * "+e.toDisplayString(t.validation.message),1)):e.createCommentVNode("",!0)]),_:1})],64))}},y=u.default(k,[["__scopeId","data-v-839e7ced"]]);exports.default=y;
|
@@ -1,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.vue2.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=
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="";exports.default=e;
|
@@ -1,78 +1,4 @@
|
|
1
|
-
|
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"]]);
|
1
|
+
const e = "";
|
76
2
|
export {
|
77
|
-
|
3
|
+
e as default
|
78
4
|
};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),k=require("../Field/Field.vue.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,5 +1,5 @@
|
|
1
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.
|
2
|
+
import V from "../Field/Field.vue.js";
|
3
3
|
import { useI18n as A } from "vue-i18n";
|
4
4
|
const C = { class: "pd-thin radius-extra flex-nowrap flex" }, E = ["innerHTML"], P = {
|
5
5
|
__name: "FieldBig",
|