@validol4ik/uikit 0.12.4 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AppButtonCopy-DkKIzW9L.js → AppButtonCopy-CLZCSKyr.js} +3 -3
- package/dist/{AppButtonCopy-D7F2P8Pu.cjs → AppButtonCopy-XI1HWz10.cjs} +1 -1
- package/dist/{BottomSheet-DBb5RCTS.js → BottomSheet-DqBEWidj.js} +18 -17
- package/dist/BottomSheet-b8Poogb3.cjs +1 -0
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{index-CLm0CauV.js → index-2PkAza2F.js} +252 -262
- package/dist/index-DHlCr_6h.cjs +1 -0
- package/dist/pdf/pdf.cjs +1 -0
- package/dist/pdf/pdf.es.js +196 -0
- package/dist/style.css +1 -1
- package/dist/types/components/media/AppPdfViewer/AppPdfViewer.vue.d.ts +9 -0
- package/dist/types/components/media/AppPdfViewer/types.d.ts +5 -0
- package/dist/types/components/media/AppVideo/AppVideo.vue.d.ts +8 -0
- package/dist/types/components/media/AppVideo/types.d.ts +43 -0
- package/dist/types/components/media/AppVideo/videoMode.d.ts +3 -0
- package/dist/types/components/menu/BottomSheet/BottomSheet.vue.d.ts +2 -2
- package/dist/types/index.d.ts +6 -54
- package/dist/types/pdf.d.ts +3 -0
- package/dist/types/video.d.ts +3 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/dist/video/video.cjs +1 -0
- package/dist/video/video.es.js +309 -0
- package/package.json +43 -1
- package/dist/BottomSheet-BHNOYwU-.cjs +0 -1
- package/dist/index-lSGx0PZ1.cjs +0 -1
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { defineComponent as P, computed as M,
|
|
2
|
-
import { boot as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as P, computed as M, createBlock as S, openBlock as s, unref as C, normalizeClass as v, withCtx as T, createElementBlock as i, createCommentVNode as b, renderSlot as E, Fragment as I, createTextVNode as W, toDisplayString as L, createElementVNode as w, ref as N, withModifiers as H, withDirectives as ae, createVNode as G, normalizeStyle as K, watch as ee, onMounted as ne, renderList as F, withKeys as re, vModelText as de, nextTick as Q, mergeModels as X, useModel as Y, useTemplateRef as Z, onBeforeUnmount as ue, mergeProps as pe, createSlots as ce, defineAsyncComponent as te } from "vue";
|
|
2
|
+
import { boot as me } from "quasar/wrappers";
|
|
3
|
+
import fe from "quasar/src/components/btn/QBtn.js";
|
|
4
|
+
import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import be from "quasar/src/components/btn-dropdown/QBtnDropdown.js";
|
|
4
6
|
import ve from "quasar/src/components/checkbox/QCheckbox.js";
|
|
5
7
|
import ge from "quasar/src/directives/close-popup/ClosePopup.js";
|
|
6
8
|
import ke from "quasar/src/components/spinner/QSpinner.js";
|
|
7
9
|
import ye from "quasar/src/components/linear-progress/QLinearProgress.js";
|
|
8
|
-
import he from "quasar/src/components/
|
|
9
|
-
import $e from "quasar/src/components/
|
|
10
|
-
import _e from "quasar/src/components/
|
|
11
|
-
import Be from "quasar/src/
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
const r = m.config.globalProperties.$q;
|
|
10
|
+
import he from "quasar/src/components/item/QItem.js";
|
|
11
|
+
import $e from "quasar/src/components/chip/QChip.js";
|
|
12
|
+
import _e from "quasar/src/components/select/QSelect.js";
|
|
13
|
+
import Be from "quasar/src/utils/patterns/patterns.js";
|
|
14
|
+
const Bl = me(({ app: f }) => {
|
|
15
|
+
const r = f.config.globalProperties.$q;
|
|
15
16
|
r.iconMapFn = (o) => {
|
|
16
17
|
if (o.startsWith("icon-kl:"))
|
|
17
18
|
return {
|
|
18
19
|
cls: `icon-kl icon-kl-${o.slice(8)}`
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
|
-
}),
|
|
22
|
+
}), j = {
|
|
22
23
|
PRIMARY: "primary",
|
|
23
24
|
INFO: "info"
|
|
24
25
|
}, A = {
|
|
@@ -26,19 +27,19 @@ const Bl = fe(({ app: m }) => {
|
|
|
26
27
|
MD: "md",
|
|
27
28
|
LG: "lg",
|
|
28
29
|
XL: "xl"
|
|
29
|
-
},
|
|
30
|
+
}, we = {
|
|
30
31
|
[A.SM]: "3px 9px",
|
|
31
32
|
[A.MD]: "5px 12px",
|
|
32
33
|
[A.LG]: "6px 15px",
|
|
33
34
|
[A.XL]: "9px 20px"
|
|
34
|
-
},
|
|
35
|
+
}, Me = /* @__PURE__ */ P({
|
|
35
36
|
__name: "AppButton",
|
|
36
37
|
props: {
|
|
37
38
|
size: { default: A.MD },
|
|
38
39
|
transparent: { type: Boolean },
|
|
39
40
|
flat: { type: Boolean },
|
|
40
41
|
rounded: { type: Boolean },
|
|
41
|
-
color: { default:
|
|
42
|
+
color: { default: j.PRIMARY },
|
|
42
43
|
iconLeft: {},
|
|
43
44
|
iconRight: {},
|
|
44
45
|
iconMiddle: {},
|
|
@@ -54,8 +55,8 @@ const Bl = fe(({ app: m }) => {
|
|
|
54
55
|
dark: { type: Boolean, default: void 0 }
|
|
55
56
|
},
|
|
56
57
|
emits: ["click"],
|
|
57
|
-
setup(
|
|
58
|
-
const r =
|
|
58
|
+
setup(f) {
|
|
59
|
+
const r = f, o = M(() => [
|
|
59
60
|
"app-btn",
|
|
60
61
|
{
|
|
61
62
|
"app-btn_default": !r.transparent && !r.flat,
|
|
@@ -69,14 +70,14 @@ const Bl = fe(({ app: m }) => {
|
|
|
69
70
|
`app-btn_${r.size}`,
|
|
70
71
|
`app-btn_${r.color}`
|
|
71
72
|
]);
|
|
72
|
-
return (e, p) => (s(), S(C(
|
|
73
|
+
return (e, p) => (s(), S(C(fe), {
|
|
73
74
|
"no-caps": "",
|
|
74
75
|
unelevated: "",
|
|
75
76
|
class: v([
|
|
76
77
|
o.value,
|
|
77
78
|
{ "app-btn_theme-dark": e.dark ?? e.$q.dark.isActive }
|
|
78
79
|
]),
|
|
79
|
-
padding: C(
|
|
80
|
+
padding: C(we)[e.size || C(A).MD],
|
|
80
81
|
loading: e.loading,
|
|
81
82
|
disable: e.disabled || void 0,
|
|
82
83
|
to: e.to,
|
|
@@ -87,7 +88,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
87
88
|
download: e.download,
|
|
88
89
|
onClick: p[0] || (p[0] = (n) => e.$emit("click", n))
|
|
89
90
|
}, {
|
|
90
|
-
default:
|
|
91
|
+
default: T(() => [
|
|
91
92
|
e.iconLeft || e.iconMiddle ? (s(), i("i", {
|
|
92
93
|
key: 0,
|
|
93
94
|
class: v([
|
|
@@ -114,20 +115,15 @@ const Bl = fe(({ app: m }) => {
|
|
|
114
115
|
_: 3
|
|
115
116
|
}, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
|
|
116
117
|
}
|
|
117
|
-
}),
|
|
118
|
-
const o = m.__vccOpts || m;
|
|
119
|
-
for (const [e, p] of r)
|
|
120
|
-
o[e] = p;
|
|
121
|
-
return o;
|
|
122
|
-
}, wl = /* @__PURE__ */ R(Ae, [["__scopeId", "data-v-aade6d9b"]]), Ve = /* @__PURE__ */ P({
|
|
118
|
+
}), wl = /* @__PURE__ */ R(Me, [["__scopeId", "data-v-aade6d9b"]]), Ae = /* @__PURE__ */ P({
|
|
123
119
|
__name: "CloseButton",
|
|
124
120
|
props: {
|
|
125
121
|
size: { default: A.MD },
|
|
126
122
|
glass: { type: Boolean },
|
|
127
123
|
dark: { type: Boolean, default: void 0 }
|
|
128
124
|
},
|
|
129
|
-
setup(
|
|
130
|
-
const r =
|
|
125
|
+
setup(f) {
|
|
126
|
+
const r = f, o = M(() => ["close-btn", `close-btn_${r.size}`]);
|
|
131
127
|
return (e, p) => (s(), i("button", {
|
|
132
128
|
class: v([
|
|
133
129
|
o.value,
|
|
@@ -142,20 +138,118 @@ const Bl = fe(({ app: m }) => {
|
|
|
142
138
|
w("i", { class: "icon-kl icon-kl-close" }, null, -1)
|
|
143
139
|
])], 2));
|
|
144
140
|
}
|
|
145
|
-
}), Ml = /* @__PURE__ */ R(
|
|
141
|
+
}), Ml = /* @__PURE__ */ R(Ae, [["__scopeId", "data-v-fa0e7419"]]), Ve = {
|
|
142
|
+
[A.SM]: "3px 9px",
|
|
143
|
+
[A.MD]: "5px 12px",
|
|
144
|
+
[A.LG]: "6px 15px",
|
|
145
|
+
[A.XL]: "9px 20px"
|
|
146
|
+
}, Ce = {
|
|
147
|
+
key: 1,
|
|
148
|
+
class: "dropdown-btn__label"
|
|
149
|
+
}, ze = /* @__PURE__ */ P({
|
|
150
|
+
__name: "DropdownButton",
|
|
151
|
+
props: {
|
|
152
|
+
size: { default: A.MD },
|
|
153
|
+
transparent: { type: Boolean },
|
|
154
|
+
flat: { type: Boolean },
|
|
155
|
+
rounded: { type: Boolean },
|
|
156
|
+
color: { default: j.PRIMARY },
|
|
157
|
+
iconLeft: {},
|
|
158
|
+
iconMiddle: {},
|
|
159
|
+
hideDropIcon: { type: Boolean },
|
|
160
|
+
disabled: { type: Boolean },
|
|
161
|
+
loading: { type: Boolean },
|
|
162
|
+
ariaLabel: {},
|
|
163
|
+
label: {},
|
|
164
|
+
menuOffset: {},
|
|
165
|
+
menuAnchor: {},
|
|
166
|
+
menuSelf: {},
|
|
167
|
+
menuClass: {},
|
|
168
|
+
glass: { type: Boolean },
|
|
169
|
+
dark: { type: Boolean, default: void 0 }
|
|
170
|
+
},
|
|
171
|
+
emits: ["menuShown", "menuHidden"],
|
|
172
|
+
setup(f, { emit: r }) {
|
|
173
|
+
const o = f, e = r, p = N(!1), n = M(() => [
|
|
174
|
+
"dropdown-btn",
|
|
175
|
+
{
|
|
176
|
+
"dropdown-btn_default": !o.transparent && !o.flat,
|
|
177
|
+
"dropdown-btn_trans": o.transparent,
|
|
178
|
+
"dropdown-btn_flat": o.flat,
|
|
179
|
+
"dropdown-btn_rounded": o.rounded,
|
|
180
|
+
"dropdown-btn_icon-left": o.iconLeft,
|
|
181
|
+
"dropdown-btn_icon-middle": o.iconMiddle,
|
|
182
|
+
"dropdown-btn_no-drop": o.hideDropIcon
|
|
183
|
+
},
|
|
184
|
+
`dropdown-btn_${o.size}`,
|
|
185
|
+
`dropdown-btn_${o.color}`
|
|
186
|
+
]), l = () => {
|
|
187
|
+
p.value = !0, e("menuShown");
|
|
188
|
+
}, m = () => {
|
|
189
|
+
p.value = !1, e("menuHidden");
|
|
190
|
+
};
|
|
191
|
+
return (c, g) => (s(), S(C(be), {
|
|
192
|
+
"no-caps": "",
|
|
193
|
+
unelevated: "",
|
|
194
|
+
modelValue: p.value,
|
|
195
|
+
"onUpdate:modelValue": g[0] || (g[0] = (z) => p.value = z),
|
|
196
|
+
class: v([
|
|
197
|
+
n.value,
|
|
198
|
+
{ "dropdown-btn_theme-dark": c.dark ?? c.$q.dark.isActive }
|
|
199
|
+
]),
|
|
200
|
+
padding: C(Ve)[c.size || C(A).MD],
|
|
201
|
+
loading: c.loading,
|
|
202
|
+
disable: c.disabled || void 0,
|
|
203
|
+
"aria-label": c.ariaLabel,
|
|
204
|
+
"menu-offset": c.menuOffset,
|
|
205
|
+
"menu-anchor": c.menuAnchor,
|
|
206
|
+
"menu-self": c.menuSelf,
|
|
207
|
+
"content-class": [
|
|
208
|
+
"kl-menu dropdown-menu",
|
|
209
|
+
{ "glass-menu": c.glass },
|
|
210
|
+
c.menuClass
|
|
211
|
+
],
|
|
212
|
+
"dropdown-icon": "icon-kl icon-kl-arrow-down",
|
|
213
|
+
onBeforeShow: l,
|
|
214
|
+
onBeforeHide: m
|
|
215
|
+
}, {
|
|
216
|
+
label: T(() => [
|
|
217
|
+
c.iconLeft || c.iconMiddle ? (s(), i("i", {
|
|
218
|
+
key: 0,
|
|
219
|
+
class: v([
|
|
220
|
+
"icon-kl",
|
|
221
|
+
c.iconLeft ? "icon-kl_left" : "icon-kl_middle",
|
|
222
|
+
`icon-kl-${c.iconLeft || c.iconMiddle}`,
|
|
223
|
+
c.transparent || c.flat ? `text-${c.color}` : "text-secondary"
|
|
224
|
+
])
|
|
225
|
+
}, null, 2)) : b("", !0),
|
|
226
|
+
c.label ? (s(), i("span", Ce, L(c.label), 1)) : b("", !0),
|
|
227
|
+
E(c.$slots, "label", {}, void 0, !0)
|
|
228
|
+
]),
|
|
229
|
+
default: T(() => [
|
|
230
|
+
E(c.$slots, "default", {}, void 0, !0),
|
|
231
|
+
E(c.$slots, "options", {
|
|
232
|
+
hideMenu: m,
|
|
233
|
+
showMenu: l
|
|
234
|
+
}, void 0, !0)
|
|
235
|
+
]),
|
|
236
|
+
_: 3
|
|
237
|
+
}, 8, ["modelValue", "class", "padding", "loading", "disable", "aria-label", "menu-offset", "menu-anchor", "menu-self", "content-class"]));
|
|
238
|
+
}
|
|
239
|
+
}), Ie = /* @__PURE__ */ R(ze, [["__scopeId", "data-v-2fede54d"]]), Le = {
|
|
146
240
|
key: 0,
|
|
147
241
|
class: "app-toggle__label app-toggle__label_left"
|
|
148
|
-
},
|
|
242
|
+
}, Se = { class: "app-toggle__container" }, Pe = ["checked", "disabled"], Re = { class: "app-toggle__thumb" }, De = {
|
|
149
243
|
key: 1,
|
|
150
244
|
class: "app-toggle__label"
|
|
151
|
-
},
|
|
245
|
+
}, qe = /* @__PURE__ */ P({
|
|
152
246
|
__name: "AppToggle",
|
|
153
247
|
props: {
|
|
154
248
|
modelValue: { type: Boolean },
|
|
155
249
|
size: { default: A.MD },
|
|
156
250
|
label: {},
|
|
157
251
|
disabled: { type: Boolean },
|
|
158
|
-
color: { default:
|
|
252
|
+
color: { default: j.PRIMARY },
|
|
159
253
|
iconColor: {},
|
|
160
254
|
icon: {},
|
|
161
255
|
iconActive: {},
|
|
@@ -163,8 +257,8 @@ const Bl = fe(({ app: m }) => {
|
|
|
163
257
|
dark: { type: Boolean, default: void 0 }
|
|
164
258
|
},
|
|
165
259
|
emits: ["update:modelValue"],
|
|
166
|
-
setup(
|
|
167
|
-
const o =
|
|
260
|
+
setup(f, { emit: r }) {
|
|
261
|
+
const o = f, e = r, p = M({
|
|
168
262
|
get: () => o.modelValue,
|
|
169
263
|
set: (l) => {
|
|
170
264
|
e("update:modelValue", l);
|
|
@@ -178,27 +272,27 @@ const Bl = fe(({ app: m }) => {
|
|
|
178
272
|
`app-toggle_${o.size}`,
|
|
179
273
|
`app-toggle_${o.color}`
|
|
180
274
|
]);
|
|
181
|
-
return (l,
|
|
275
|
+
return (l, m) => (s(), i("div", {
|
|
182
276
|
class: v([
|
|
183
277
|
n.value,
|
|
184
278
|
{ "app-toggle_theme-dark": l.dark ?? l.$q.dark.isActive }
|
|
185
279
|
]),
|
|
186
|
-
onClick:
|
|
280
|
+
onClick: m[1] || (m[1] = H(() => {
|
|
187
281
|
}, ["stop"]))
|
|
188
282
|
}, [
|
|
189
|
-
l.label && l.labelLeft ? (s(), i("span",
|
|
190
|
-
w("label",
|
|
283
|
+
l.label && l.labelLeft ? (s(), i("span", Le, L(l.label), 1)) : b("", !0),
|
|
284
|
+
w("label", Se, [
|
|
191
285
|
w("input", {
|
|
192
286
|
type: "checkbox",
|
|
193
287
|
checked: p.value,
|
|
194
|
-
onChange:
|
|
288
|
+
onChange: m[0] || (m[0] = (c) => p.value = !p.value),
|
|
195
289
|
disabled: l.disabled,
|
|
196
290
|
class: "app-toggle__input"
|
|
197
|
-
}, null, 40,
|
|
291
|
+
}, null, 40, Pe),
|
|
198
292
|
w("span", {
|
|
199
293
|
class: v(["app-toggle__slider", p.value ? `bg-${l.color}` : ""])
|
|
200
294
|
}, [
|
|
201
|
-
w("span",
|
|
295
|
+
w("span", Re, [
|
|
202
296
|
l.icon && !l.modelValue ? (s(), i("i", {
|
|
203
297
|
key: 0,
|
|
204
298
|
class: v(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
|
|
@@ -216,22 +310,22 @@ const Bl = fe(({ app: m }) => {
|
|
|
216
310
|
], 2),
|
|
217
311
|
E(l.$slots, "default", {}, void 0, !0)
|
|
218
312
|
]),
|
|
219
|
-
l.label && !l.labelLeft ? (s(), i("span",
|
|
313
|
+
l.label && !l.labelLeft ? (s(), i("span", De, L(l.label), 1)) : b("", !0)
|
|
220
314
|
], 2));
|
|
221
315
|
}
|
|
222
|
-
}), se = /* @__PURE__ */ R(
|
|
316
|
+
}), se = /* @__PURE__ */ R(qe, [["__scopeId", "data-v-419b27a2"]]), Oe = {
|
|
223
317
|
key: 0,
|
|
224
318
|
class: "menu-item__loading"
|
|
225
|
-
},
|
|
319
|
+
}, Ne = {
|
|
226
320
|
key: 0,
|
|
227
321
|
class: "menu-item__checked"
|
|
228
|
-
},
|
|
322
|
+
}, Ee = {
|
|
229
323
|
key: 2,
|
|
230
324
|
class: "menu-item__icon"
|
|
231
|
-
},
|
|
325
|
+
}, Ue = { class: "menu-item__label" }, Te = {
|
|
232
326
|
key: 3,
|
|
233
327
|
class: "menu-item__icon-right icon-kl icon-kl-arrow-right"
|
|
234
|
-
},
|
|
328
|
+
}, Qe = /* @__PURE__ */ P({
|
|
235
329
|
__name: "PopupItem",
|
|
236
330
|
props: {
|
|
237
331
|
label: {},
|
|
@@ -253,11 +347,11 @@ const Bl = fe(({ app: m }) => {
|
|
|
253
347
|
dark: { type: Boolean, default: void 0 }
|
|
254
348
|
},
|
|
255
349
|
emits: ["update:modelValue", "closePopup"],
|
|
256
|
-
setup(
|
|
257
|
-
const o =
|
|
350
|
+
setup(f, { emit: r }) {
|
|
351
|
+
const o = f, e = r, p = () => {
|
|
258
352
|
o.disabled || (o.toggle || o.checkbox ? e("update:modelValue", !o.modelValue) : o.persistent || e("closePopup"));
|
|
259
353
|
};
|
|
260
|
-
return (n, l) =>
|
|
354
|
+
return (n, l) => ae((s(), i("div", {
|
|
261
355
|
class: v(["menu-item", [
|
|
262
356
|
{ "menu-item_gap": n.gap },
|
|
263
357
|
{ "menu-item_disabled": n.disabled },
|
|
@@ -270,13 +364,13 @@ const Bl = fe(({ app: m }) => {
|
|
|
270
364
|
w("div", {
|
|
271
365
|
class: v(["row items-center no-wrap", `text-${n.color ? n.color : "dark"}`])
|
|
272
366
|
}, [
|
|
273
|
-
n.loading ? (s(), i("div",
|
|
367
|
+
n.loading ? (s(), i("div", Oe, [
|
|
274
368
|
G(C(ke), {
|
|
275
369
|
size: "19px",
|
|
276
370
|
color: n.color ? n.color : "dark"
|
|
277
371
|
}, null, 8, ["color"])
|
|
278
372
|
])) : (s(), i(I, { key: 1 }, [
|
|
279
|
-
n.checked ? (s(), i("div",
|
|
373
|
+
n.checked ? (s(), i("div", Ne, [...l[3] || (l[3] = [
|
|
280
374
|
w("i", { class: "icon-kl icon-kl-check" }, null, -1)
|
|
281
375
|
])])) : b("", !0),
|
|
282
376
|
n.checkbox ? (s(), S(ve, {
|
|
@@ -285,18 +379,18 @@ const Bl = fe(({ app: m }) => {
|
|
|
285
379
|
size: "34px",
|
|
286
380
|
dark: n.dark ?? n.$q.dark.isActive,
|
|
287
381
|
"model-value": n.modelValue,
|
|
288
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
382
|
+
"onUpdate:modelValue": l[0] || (l[0] = (m) => e("update:modelValue", m)),
|
|
289
383
|
onClick: l[1] || (l[1] = H(() => {
|
|
290
384
|
}, ["stop"]))
|
|
291
385
|
}, null, 8, ["dark", "model-value"])) : b("", !0),
|
|
292
|
-
n.icon ? (s(), i("div",
|
|
386
|
+
n.icon ? (s(), i("div", Ee, [
|
|
293
387
|
w("i", {
|
|
294
388
|
class: v(`icon-kl icon-kl-${n.icon}`),
|
|
295
|
-
style:
|
|
389
|
+
style: K({ fontSize: n.iconSize || "27px" })
|
|
296
390
|
}, null, 6)
|
|
297
391
|
])) : b("", !0)
|
|
298
392
|
], 64)),
|
|
299
|
-
w("span",
|
|
393
|
+
w("span", Ue, L(n.label), 1)
|
|
300
394
|
], 2),
|
|
301
395
|
n.$slots.right ? E(n.$slots, "right", { key: 0 }, void 0, !0) : n.toggle ? (s(), S(se, {
|
|
302
396
|
key: 1,
|
|
@@ -304,35 +398,35 @@ const Bl = fe(({ app: m }) => {
|
|
|
304
398
|
"model-value": n.modelValue,
|
|
305
399
|
disabled: n.disabled || n.loading,
|
|
306
400
|
dark: n.dark,
|
|
307
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
401
|
+
"onUpdate:modelValue": l[2] || (l[2] = (m) => e("update:modelValue", m))
|
|
308
402
|
}, null, 8, ["model-value", "disabled", "dark"])) : n.iconRight ? (s(), i("i", {
|
|
309
403
|
key: 2,
|
|
310
404
|
class: v([
|
|
311
405
|
"menu-item__icon-right menu-item__icon-right_custom icon-kl",
|
|
312
406
|
`icon-kl-${n.iconRight}`
|
|
313
407
|
])
|
|
314
|
-
}, null, 2)) : n.arrow ? (s(), i("i",
|
|
408
|
+
}, null, 2)) : n.arrow ? (s(), i("i", Te)) : b("", !0)
|
|
315
409
|
], 2)), [
|
|
316
410
|
[ge, !n.toggle && !n.checkbox && !n.persistent && !n.disabled]
|
|
317
411
|
]);
|
|
318
412
|
}
|
|
319
|
-
}), ie = /* @__PURE__ */ R(
|
|
413
|
+
}), ie = /* @__PURE__ */ R(Qe, [["__scopeId", "data-v-3b919ff2"]]), We = /* @__PURE__ */ P({
|
|
320
414
|
__name: "AppIcon",
|
|
321
415
|
props: {
|
|
322
416
|
name: {},
|
|
323
417
|
size: {},
|
|
324
418
|
color: {}
|
|
325
419
|
},
|
|
326
|
-
setup(
|
|
420
|
+
setup(f) {
|
|
327
421
|
return (r, o) => (s(), i("i", {
|
|
328
422
|
class: v(["icon-kl", `icon-kl-${r.name}`, r.color ? `text-${r.color}` : ""]),
|
|
329
|
-
style:
|
|
423
|
+
style: K(r.size ? `font-size: ${r.size}` : void 0)
|
|
330
424
|
}, null, 6));
|
|
331
425
|
}
|
|
332
|
-
}), J = /* @__PURE__ */ R(
|
|
426
|
+
}), J = /* @__PURE__ */ R(We, [["__scopeId", "data-v-941765ee"]]), Fe = {
|
|
333
427
|
key: 0,
|
|
334
428
|
class: "code-field__label"
|
|
335
|
-
},
|
|
429
|
+
}, He = { class: "code-field__inputs" }, Ge = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], Xe = /* @__PURE__ */ P({
|
|
336
430
|
__name: "AppCodeInput",
|
|
337
431
|
props: {
|
|
338
432
|
length: { default: 5 },
|
|
@@ -345,8 +439,8 @@ const Bl = fe(({ app: m }) => {
|
|
|
345
439
|
dark: { type: Boolean, default: void 0 }
|
|
346
440
|
},
|
|
347
441
|
emits: ["update:modelValue", "completed"],
|
|
348
|
-
setup(
|
|
349
|
-
const e =
|
|
442
|
+
setup(f, { expose: r, emit: o }) {
|
|
443
|
+
const e = f, p = o, n = N(Array(e.length).fill("")), l = N([]), m = M(() => [
|
|
350
444
|
"code-field",
|
|
351
445
|
{
|
|
352
446
|
"code-field_disabled": e.disabled || e.loading
|
|
@@ -390,29 +484,29 @@ const Bl = fe(({ app: m }) => {
|
|
|
390
484
|
n,
|
|
391
485
|
(a) => {
|
|
392
486
|
const u = a.join("");
|
|
393
|
-
|
|
487
|
+
U(u);
|
|
394
488
|
},
|
|
395
489
|
{ deep: !0 }
|
|
396
490
|
);
|
|
397
|
-
const
|
|
491
|
+
const U = (a) => {
|
|
398
492
|
p("update:modelValue", a), a.length === e.length && !a.includes(" ") && p("completed", a);
|
|
399
493
|
}, d = (a) => {
|
|
400
494
|
a && (n.value = a.split("").slice(0, e.length));
|
|
401
495
|
};
|
|
402
|
-
return
|
|
496
|
+
return ne(() => {
|
|
403
497
|
e.autofocus && l.value && l.value[0] && l.value[0].focus();
|
|
404
498
|
}), r({
|
|
405
499
|
injectCode: d
|
|
406
500
|
}), (a, u) => (s(), i("div", {
|
|
407
501
|
class: v([
|
|
408
|
-
|
|
502
|
+
m.value,
|
|
409
503
|
{ "code-field_theme-dark": a.dark ?? a.$q.dark.isActive }
|
|
410
504
|
]),
|
|
411
|
-
style:
|
|
505
|
+
style: K(c.value)
|
|
412
506
|
}, [
|
|
413
|
-
a.label ? (s(), i("label",
|
|
414
|
-
w("div",
|
|
415
|
-
(s(!0), i(I, null, F(a.length, (_, h) =>
|
|
507
|
+
a.label ? (s(), i("label", Fe, L(a.label), 1)) : b("", !0),
|
|
508
|
+
w("div", He, [
|
|
509
|
+
(s(!0), i(I, null, F(a.length, (_, h) => ae((s(), i("input", {
|
|
416
510
|
key: h,
|
|
417
511
|
"onUpdate:modelValue": (B) => n.value[h] = B,
|
|
418
512
|
ref_for: !0,
|
|
@@ -423,10 +517,10 @@ const Bl = fe(({ app: m }) => {
|
|
|
423
517
|
class: "code-field__input",
|
|
424
518
|
disabled: a.disabled || a.loading,
|
|
425
519
|
onInput: (B) => g(B, h),
|
|
426
|
-
onKeydown:
|
|
520
|
+
onKeydown: re((B) => z(h), ["backspace"]),
|
|
427
521
|
onPaste: (B) => D(B, h)
|
|
428
|
-
}, null, 40,
|
|
429
|
-
[
|
|
522
|
+
}, null, 40, Ge)), [
|
|
523
|
+
[de, n.value[h]]
|
|
430
524
|
])), 128))
|
|
431
525
|
]),
|
|
432
526
|
a.loading ? (s(), S(ye, {
|
|
@@ -438,9 +532,9 @@ const Bl = fe(({ app: m }) => {
|
|
|
438
532
|
}, null, 8, ["color"])) : b("", !0)
|
|
439
533
|
], 6));
|
|
440
534
|
}
|
|
441
|
-
}), Al = /* @__PURE__ */ R(
|
|
535
|
+
}), Al = /* @__PURE__ */ R(Xe, [["__scopeId", "data-v-779baa1e"]]), Ye = ["onClick", "disabled"], Ke = /* @__PURE__ */ P({
|
|
442
536
|
__name: "AppSegment",
|
|
443
|
-
props: /* @__PURE__ */
|
|
537
|
+
props: /* @__PURE__ */ X({
|
|
444
538
|
options: {},
|
|
445
539
|
disabled: { type: Boolean },
|
|
446
540
|
size: { default: A.MD },
|
|
@@ -453,12 +547,12 @@ const Bl = fe(({ app: m }) => {
|
|
|
453
547
|
modelModifiers: {}
|
|
454
548
|
}),
|
|
455
549
|
emits: ["update:modelValue"],
|
|
456
|
-
setup(
|
|
457
|
-
const r =
|
|
550
|
+
setup(f) {
|
|
551
|
+
const r = Y(f, "modelValue"), o = f, e = Z("scroller"), p = Z("content"), n = Z("buttons"), l = N(!1), m = N(!1), c = N({ left: 0, width: 0 }), g = M(() => [
|
|
458
552
|
"app-segment",
|
|
459
553
|
{
|
|
460
554
|
"app-segment_disabled": o.disabled,
|
|
461
|
-
"app-segment_scrollable":
|
|
555
|
+
"app-segment_scrollable": m.value,
|
|
462
556
|
"app-segment_glass": o.glass,
|
|
463
557
|
"app-segment_blur": o.blur
|
|
464
558
|
},
|
|
@@ -471,10 +565,10 @@ const Bl = fe(({ app: m }) => {
|
|
|
471
565
|
transform: `translateX(${c.value.left}px)`,
|
|
472
566
|
opacity: c.value.width ? 1 : 0
|
|
473
567
|
}));
|
|
474
|
-
function
|
|
568
|
+
function U() {
|
|
475
569
|
var V;
|
|
476
570
|
const k = (V = n.value) == null ? void 0 : V[z.value];
|
|
477
|
-
c.value = k ? { left: k.offsetLeft, width: k.offsetWidth } : { left: 0, width: 0 }, e.value && (
|
|
571
|
+
c.value = k ? { left: k.offsetLeft, width: k.offsetWidth } : { left: 0, width: 0 }, e.value && (m.value = e.value.scrollWidth - e.value.clientWidth > 1);
|
|
478
572
|
}
|
|
479
573
|
function d(k = "smooth") {
|
|
480
574
|
var t, $;
|
|
@@ -492,14 +586,14 @@ const Bl = fe(({ app: m }) => {
|
|
|
492
586
|
u = !1;
|
|
493
587
|
}
|
|
494
588
|
function h() {
|
|
495
|
-
|
|
589
|
+
U(), u && d();
|
|
496
590
|
}
|
|
497
591
|
let B;
|
|
498
|
-
return
|
|
499
|
-
|
|
500
|
-
}),
|
|
501
|
-
[z,
|
|
502
|
-
() => Q(
|
|
592
|
+
return ne(async () => {
|
|
593
|
+
U(), await Q(), d("auto"), l.value = !0, typeof ResizeObserver < "u" && e.value && p.value && (B = new ResizeObserver(h), B.observe(e.value), B.observe(p.value));
|
|
594
|
+
}), ue(() => B == null ? void 0 : B.disconnect()), ee(
|
|
595
|
+
[z, m, () => o.options, () => o.size],
|
|
596
|
+
() => Q(U)
|
|
503
597
|
), ee(z, () => {
|
|
504
598
|
u = !0, Q(() => d());
|
|
505
599
|
}), (k, V) => (s(), i("div", {
|
|
@@ -519,7 +613,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
519
613
|
}, [
|
|
520
614
|
w("div", {
|
|
521
615
|
class: v(["app-segment__thumb", { "app-segment__thumb_animated": l.value }]),
|
|
522
|
-
style:
|
|
616
|
+
style: K(D.value)
|
|
523
617
|
}, null, 6),
|
|
524
618
|
(s(!0), i(I, null, F(k.options, (t, $) => (s(), i("button", {
|
|
525
619
|
ref_for: !0,
|
|
@@ -533,114 +627,13 @@ const Bl = fe(({ app: m }) => {
|
|
|
533
627
|
E(k.$slots, "option", { option: t }, () => [
|
|
534
628
|
W(L(t.label), 1)
|
|
535
629
|
], !0)
|
|
536
|
-
], 10,
|
|
630
|
+
], 10, Ye))), 128))
|
|
537
631
|
], 512)
|
|
538
632
|
], 34));
|
|
539
633
|
}
|
|
540
|
-
}), Vl = /* @__PURE__ */ R(
|
|
541
|
-
[A.SM]: "3px 9px",
|
|
542
|
-
[A.MD]: "5px 12px",
|
|
543
|
-
[A.LG]: "6px 15px",
|
|
544
|
-
[A.XL]: "9px 20px"
|
|
545
|
-
}, je = {
|
|
546
|
-
key: 1,
|
|
547
|
-
class: "dropdown-btn__label"
|
|
548
|
-
}, Ke = /* @__PURE__ */ P({
|
|
549
|
-
__name: "DropdownButton",
|
|
550
|
-
props: {
|
|
551
|
-
size: { default: A.MD },
|
|
552
|
-
transparent: { type: Boolean },
|
|
553
|
-
flat: { type: Boolean },
|
|
554
|
-
rounded: { type: Boolean },
|
|
555
|
-
color: { default: K.PRIMARY },
|
|
556
|
-
iconLeft: {},
|
|
557
|
-
iconMiddle: {},
|
|
558
|
-
hideDropIcon: { type: Boolean },
|
|
559
|
-
disabled: { type: Boolean },
|
|
560
|
-
loading: { type: Boolean },
|
|
561
|
-
ariaLabel: {},
|
|
562
|
-
label: {},
|
|
563
|
-
menuOffset: {},
|
|
564
|
-
menuAnchor: {},
|
|
565
|
-
menuSelf: {},
|
|
566
|
-
menuClass: {},
|
|
567
|
-
glass: { type: Boolean },
|
|
568
|
-
dark: { type: Boolean, default: void 0 }
|
|
569
|
-
},
|
|
570
|
-
emits: ["menuShown", "menuHidden"],
|
|
571
|
-
setup(m, { emit: r }) {
|
|
572
|
-
const o = m, e = r, p = N(!1), n = M(() => [
|
|
573
|
-
"dropdown-btn",
|
|
574
|
-
{
|
|
575
|
-
"dropdown-btn_default": !o.transparent && !o.flat,
|
|
576
|
-
"dropdown-btn_trans": o.transparent,
|
|
577
|
-
"dropdown-btn_flat": o.flat,
|
|
578
|
-
"dropdown-btn_rounded": o.rounded,
|
|
579
|
-
"dropdown-btn_icon-left": o.iconLeft,
|
|
580
|
-
"dropdown-btn_icon-middle": o.iconMiddle,
|
|
581
|
-
"dropdown-btn_no-drop": o.hideDropIcon
|
|
582
|
-
},
|
|
583
|
-
`dropdown-btn_${o.size}`,
|
|
584
|
-
`dropdown-btn_${o.color}`
|
|
585
|
-
]), l = () => {
|
|
586
|
-
p.value = !0, e("menuShown");
|
|
587
|
-
}, f = () => {
|
|
588
|
-
p.value = !1, e("menuHidden");
|
|
589
|
-
};
|
|
590
|
-
return (c, g) => (s(), S(C(he), {
|
|
591
|
-
"no-caps": "",
|
|
592
|
-
unelevated: "",
|
|
593
|
-
modelValue: p.value,
|
|
594
|
-
"onUpdate:modelValue": g[0] || (g[0] = (z) => p.value = z),
|
|
595
|
-
class: v([
|
|
596
|
-
n.value,
|
|
597
|
-
{ "dropdown-btn_theme-dark": c.dark ?? c.$q.dark.isActive }
|
|
598
|
-
]),
|
|
599
|
-
padding: C(Ye)[c.size || C(A).MD],
|
|
600
|
-
loading: c.loading,
|
|
601
|
-
disable: c.disabled || void 0,
|
|
602
|
-
"aria-label": c.ariaLabel,
|
|
603
|
-
"menu-offset": c.menuOffset,
|
|
604
|
-
"menu-anchor": c.menuAnchor,
|
|
605
|
-
"menu-self": c.menuSelf,
|
|
606
|
-
"content-class": [
|
|
607
|
-
"kl-menu dropdown-menu",
|
|
608
|
-
{ "glass-menu": c.glass },
|
|
609
|
-
c.menuClass
|
|
610
|
-
],
|
|
611
|
-
"dropdown-icon": "icon-kl icon-kl-arrow-down",
|
|
612
|
-
onBeforeShow: l,
|
|
613
|
-
onBeforeHide: f
|
|
614
|
-
}, {
|
|
615
|
-
label: U(() => [
|
|
616
|
-
c.iconLeft || c.iconMiddle ? (s(), i("i", {
|
|
617
|
-
key: 0,
|
|
618
|
-
class: v([
|
|
619
|
-
"icon-kl",
|
|
620
|
-
c.iconLeft ? "icon-kl_left" : "icon-kl_middle",
|
|
621
|
-
`icon-kl-${c.iconLeft || c.iconMiddle}`,
|
|
622
|
-
c.transparent || c.flat ? `text-${c.color}` : "text-secondary"
|
|
623
|
-
])
|
|
624
|
-
}, null, 2)) : b("", !0),
|
|
625
|
-
c.label ? (s(), i("span", je, L(c.label), 1)) : b("", !0),
|
|
626
|
-
E(c.$slots, "label", {}, void 0, !0)
|
|
627
|
-
]),
|
|
628
|
-
default: U(() => [
|
|
629
|
-
E(c.$slots, "default", {}, void 0, !0),
|
|
630
|
-
E(c.$slots, "options", {
|
|
631
|
-
hideMenu: f,
|
|
632
|
-
showMenu: l
|
|
633
|
-
}, void 0, !0)
|
|
634
|
-
]),
|
|
635
|
-
_: 3
|
|
636
|
-
}, 8, ["modelValue", "class", "padding", "loading", "disable", "aria-label", "menu-offset", "menu-anchor", "menu-self", "content-class"]));
|
|
637
|
-
}
|
|
638
|
-
}), re = /* @__PURE__ */ R(Ke, [["__scopeId", "data-v-2fede54d"]]), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
639
|
-
__proto__: null,
|
|
640
|
-
default: re
|
|
641
|
-
}, Symbol.toStringTag, { value: "Module" })), Je = ["disabled"], xe = ["disabled"], el = ["disabled", "aria-current", "onClick"], ll = ["disabled"], ol = ["disabled"], x = "...", al = /* @__PURE__ */ P({
|
|
634
|
+
}), Vl = /* @__PURE__ */ R(Ke, [["__scopeId", "data-v-b48db2e8"]]), le = [10, 20, 50, 100], je = "стор.", Ze = ["disabled"], Je = ["disabled"], xe = ["disabled", "aria-current", "onClick"], el = ["disabled"], ll = ["disabled"], x = "...", ol = /* @__PURE__ */ P({
|
|
642
635
|
__name: "AppPagination",
|
|
643
|
-
props: /* @__PURE__ */
|
|
636
|
+
props: /* @__PURE__ */ X({
|
|
644
637
|
max: {},
|
|
645
638
|
maxPages: { default: 5 },
|
|
646
639
|
boundaryNumbers: { type: Boolean, default: !0 },
|
|
@@ -649,26 +642,26 @@ const Bl = fe(({ app: m }) => {
|
|
|
649
642
|
boundaryLinks: { type: Boolean },
|
|
650
643
|
perPage: { type: Boolean },
|
|
651
644
|
size: { default: A.MD },
|
|
652
|
-
color: { default:
|
|
645
|
+
color: { default: j.PRIMARY },
|
|
653
646
|
glass: { type: Boolean },
|
|
654
647
|
disabled: { type: Boolean },
|
|
655
648
|
dark: { type: Boolean, default: void 0 }
|
|
656
649
|
}, {
|
|
657
650
|
modelValue: { default: 1 },
|
|
658
651
|
modelModifiers: {},
|
|
659
|
-
limit: { default:
|
|
652
|
+
limit: { default: le[0] },
|
|
660
653
|
limitModifiers: {}
|
|
661
654
|
}),
|
|
662
655
|
emits: ["update:modelValue", "update:limit"],
|
|
663
|
-
setup(
|
|
664
|
-
const r =
|
|
656
|
+
setup(f) {
|
|
657
|
+
const r = Y(f, "modelValue"), o = Y(f, "limit"), e = f, p = (d, a, u) => Math.min(Math.max(d, a), u), n = M(() => Math.max(1, Math.floor(e.max) || 1)), l = M(() => p(r.value, 1, n.value)), m = M(
|
|
665
658
|
() => p(Math.floor(e.maxPages) || 1, 1, 100)
|
|
666
659
|
), c = M(() => {
|
|
667
660
|
const d = n.value;
|
|
668
|
-
if (d <=
|
|
661
|
+
if (d <= m.value)
|
|
669
662
|
return Array.from({ length: d }, (h, B) => B + 1);
|
|
670
|
-
let a = Math.max(1, l.value - Math.floor((
|
|
671
|
-
u > d && (u = d, a = u -
|
|
663
|
+
let a = Math.max(1, l.value - Math.floor((m.value - 1) / 2)), u = a + m.value - 1;
|
|
664
|
+
u > d && (u = d, a = u - m.value + 1);
|
|
672
665
|
const _ = [];
|
|
673
666
|
e.boundaryNumbers && a > 1 && (_.push(1), e.ellipses && a > 2 && _.push(x));
|
|
674
667
|
for (let h = a; h <= u; h++) _.push(h);
|
|
@@ -682,11 +675,11 @@ const Bl = fe(({ app: m }) => {
|
|
|
682
675
|
},
|
|
683
676
|
`app-pagination_${e.size}`,
|
|
684
677
|
`app-pagination_${e.color}`
|
|
685
|
-
]), z = (d) => `${d} / ${
|
|
678
|
+
]), z = (d) => `${d} / ${je}`, D = (d) => {
|
|
686
679
|
if (e.disabled) return;
|
|
687
680
|
const a = p(d, 1, n.value);
|
|
688
681
|
a !== r.value && (r.value = a);
|
|
689
|
-
},
|
|
682
|
+
}, U = (d, a) => {
|
|
690
683
|
a(), d !== o.value && (o.value = d, r.value = 1);
|
|
691
684
|
};
|
|
692
685
|
return (d, a) => (s(), i("nav", {
|
|
@@ -706,7 +699,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
706
699
|
onClick: a[0] || (a[0] = (u) => D(1))
|
|
707
700
|
}, [...a[4] || (a[4] = [
|
|
708
701
|
w("i", { class: "icon-kl icon-kl-arrow-start" }, null, -1)
|
|
709
|
-
])], 8,
|
|
702
|
+
])], 8, Ze)) : b("", !0),
|
|
710
703
|
d.directionLinks ? (s(), i("button", {
|
|
711
704
|
key: 1,
|
|
712
705
|
type: "button",
|
|
@@ -716,7 +709,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
716
709
|
onClick: a[1] || (a[1] = (u) => D(l.value - 1))
|
|
717
710
|
}, [...a[5] || (a[5] = [
|
|
718
711
|
w("i", { class: "icon-kl icon-kl-arrow-left" }, null, -1)
|
|
719
|
-
])], 8,
|
|
712
|
+
])], 8, Je)) : b("", !0),
|
|
720
713
|
(s(!0), i(I, null, F(c.value, (u, _) => (s(), i(I, null, [
|
|
721
714
|
u === x ? (s(), i("span", {
|
|
722
715
|
key: `gap-${_}`,
|
|
@@ -730,7 +723,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
730
723
|
disabled: d.disabled,
|
|
731
724
|
"aria-current": u === l.value ? "page" : void 0,
|
|
732
725
|
onClick: (h) => D(u)
|
|
733
|
-
}, L(u), 11,
|
|
726
|
+
}, L(u), 11, xe))
|
|
734
727
|
], 64))), 256)),
|
|
735
728
|
d.directionLinks ? (s(), i("button", {
|
|
736
729
|
key: 2,
|
|
@@ -741,7 +734,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
741
734
|
onClick: a[2] || (a[2] = (u) => D(l.value + 1))
|
|
742
735
|
}, [...a[7] || (a[7] = [
|
|
743
736
|
w("i", { class: "icon-kl icon-kl-arrow-right" }, null, -1)
|
|
744
|
-
])], 8,
|
|
737
|
+
])], 8, el)) : b("", !0),
|
|
745
738
|
d.boundaryLinks ? (s(), i("button", {
|
|
746
739
|
key: 3,
|
|
747
740
|
type: "button",
|
|
@@ -751,10 +744,10 @@ const Bl = fe(({ app: m }) => {
|
|
|
751
744
|
onClick: a[3] || (a[3] = (u) => D(n.value))
|
|
752
745
|
}, [...a[8] || (a[8] = [
|
|
753
746
|
w("i", { class: "icon-kl icon-kl-arrow-end" }, null, -1)
|
|
754
|
-
])], 8,
|
|
747
|
+
])], 8, ll)) : b("", !0),
|
|
755
748
|
d.perPage ? (s(), i(I, { key: 4 }, [
|
|
756
749
|
a[9] || (a[9] = w("span", { class: "app-pagination__divider" }, null, -1)),
|
|
757
|
-
G(
|
|
750
|
+
G(Ie, {
|
|
758
751
|
flat: "",
|
|
759
752
|
rounded: "",
|
|
760
753
|
size: d.size,
|
|
@@ -765,14 +758,14 @@ const Bl = fe(({ app: m }) => {
|
|
|
765
758
|
label: z(o.value),
|
|
766
759
|
class: "app-pagination__per-page"
|
|
767
760
|
}, {
|
|
768
|
-
options:
|
|
769
|
-
(s(!0), i(I, null, F(C(
|
|
761
|
+
options: T(({ hideMenu: u }) => [
|
|
762
|
+
(s(!0), i(I, null, F(C(le), (_) => (s(), S(ie, {
|
|
770
763
|
key: _,
|
|
771
764
|
"no-arrow": "",
|
|
772
765
|
label: z(_),
|
|
773
766
|
active: _ === o.value,
|
|
774
767
|
dark: d.dark,
|
|
775
|
-
onClick: (h) =>
|
|
768
|
+
onClick: (h) => U(_, u)
|
|
776
769
|
}, null, 8, ["label", "active", "dark", "onClick"]))), 128))
|
|
777
770
|
]),
|
|
778
771
|
_: 1
|
|
@@ -780,24 +773,24 @@ const Bl = fe(({ app: m }) => {
|
|
|
780
773
|
], 64)) : b("", !0)
|
|
781
774
|
], 2));
|
|
782
775
|
}
|
|
783
|
-
}), Cl = /* @__PURE__ */ R(
|
|
776
|
+
}), Cl = /* @__PURE__ */ R(ol, [["__scopeId", "data-v-d305e690"]]), al = /* @__PURE__ */ P({
|
|
784
777
|
__name: "SystemMenu",
|
|
785
778
|
props: {
|
|
786
779
|
dark: { type: Boolean, default: void 0 }
|
|
787
780
|
},
|
|
788
|
-
setup(
|
|
781
|
+
setup(f) {
|
|
789
782
|
return (r, o) => (s(), i("div", {
|
|
790
783
|
class: v(["system-menu", { "system-menu_dark": r.dark ?? r.$q.dark.isActive }])
|
|
791
784
|
}, [
|
|
792
785
|
E(r.$slots, "default", {}, void 0, !0)
|
|
793
786
|
], 2));
|
|
794
787
|
}
|
|
795
|
-
}), zl = /* @__PURE__ */ R(
|
|
788
|
+
}), zl = /* @__PURE__ */ R(al, [["__scopeId", "data-v-0cca883b"]]), nl = { class: "menu-item__content" }, tl = {
|
|
796
789
|
key: 0,
|
|
797
790
|
class: "menu-item__value"
|
|
798
|
-
},
|
|
791
|
+
}, sl = /* @__PURE__ */ P({
|
|
799
792
|
__name: "MenuItem",
|
|
800
|
-
props: /* @__PURE__ */
|
|
793
|
+
props: /* @__PURE__ */ X({
|
|
801
794
|
dark: { type: Boolean, default: void 0 },
|
|
802
795
|
label: {},
|
|
803
796
|
icon: {},
|
|
@@ -816,12 +809,12 @@ const Bl = fe(({ app: m }) => {
|
|
|
816
809
|
modelValue: { type: Boolean },
|
|
817
810
|
modelModifiers: {}
|
|
818
811
|
}),
|
|
819
|
-
emits: /* @__PURE__ */
|
|
820
|
-
setup(
|
|
821
|
-
const o =
|
|
812
|
+
emits: /* @__PURE__ */ X(["click"], ["update:modelValue"]),
|
|
813
|
+
setup(f, { emit: r }) {
|
|
814
|
+
const o = f, e = r, p = Y(f, "modelValue"), n = async () => {
|
|
822
815
|
o.toggle && (p.value = !p.value), e("click");
|
|
823
816
|
};
|
|
824
|
-
return (l,
|
|
817
|
+
return (l, m) => (s(), S(C(he), {
|
|
825
818
|
class: v(["menu-item", {
|
|
826
819
|
"menu-item_disabled": l.disabled,
|
|
827
820
|
"menu-item_mobile": l.isMobile,
|
|
@@ -835,26 +828,26 @@ const Bl = fe(({ app: m }) => {
|
|
|
835
828
|
clickable: "",
|
|
836
829
|
onClick: n
|
|
837
830
|
}, {
|
|
838
|
-
default:
|
|
831
|
+
default: T(() => [
|
|
839
832
|
l.icon ? (s(), S(C(J), {
|
|
840
833
|
key: 0,
|
|
841
834
|
name: l.icon.name,
|
|
842
835
|
class: v(["menu-item__icon", `bg-${l.icon.color}`])
|
|
843
836
|
}, null, 8, ["name", "class"])) : b("", !0),
|
|
844
|
-
w("div",
|
|
837
|
+
w("div", nl, [
|
|
845
838
|
w("span", {
|
|
846
839
|
class: v(["app-menu-item__label", l.color ? `text-${l.color}` : ""])
|
|
847
840
|
}, [
|
|
848
841
|
W(L(l.label) + " ", 1),
|
|
849
842
|
E(l.$slots, "default", {}, void 0, !0)
|
|
850
843
|
], 2),
|
|
851
|
-
l.$slots.value ? (s(), i("span",
|
|
844
|
+
l.$slots.value ? (s(), i("span", tl, [
|
|
852
845
|
E(l.$slots, "value", {}, void 0, !0)
|
|
853
846
|
])) : b("", !0),
|
|
854
847
|
l.toggle ? (s(), S(C(se), {
|
|
855
848
|
key: 1,
|
|
856
849
|
modelValue: p.value,
|
|
857
|
-
"onUpdate:modelValue":
|
|
850
|
+
"onUpdate:modelValue": m[0] || (m[0] = (c) => p.value = c),
|
|
858
851
|
icon: l.toggleIcon,
|
|
859
852
|
"icon-active": l.toggleIconActive,
|
|
860
853
|
dark: l.dark
|
|
@@ -875,7 +868,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
875
868
|
_: 3
|
|
876
869
|
}, 8, ["class", "dark", "to", "href", "target", "disable"]));
|
|
877
870
|
}
|
|
878
|
-
}), Il = /* @__PURE__ */ R(
|
|
871
|
+
}), Il = /* @__PURE__ */ R(sl, [["__scopeId", "data-v-e94ed84f"]]), oe = (f) => f ? !0 : "Обовʼязкове поле", il = { class: "app-select__amount" }, rl = ["onClick"], dl = /* @__PURE__ */ P({
|
|
879
872
|
__name: "AppSelect",
|
|
880
873
|
props: {
|
|
881
874
|
modelValue: {},
|
|
@@ -908,8 +901,8 @@ const Bl = fe(({ app: m }) => {
|
|
|
908
901
|
"popupHide",
|
|
909
902
|
"delete"
|
|
910
903
|
],
|
|
911
|
-
setup(
|
|
912
|
-
const o =
|
|
904
|
+
setup(f, { emit: r }) {
|
|
905
|
+
const o = f, e = r, p = N(!1), n = N(""), l = N(!1), m = N(""), c = M(() => o.filtering || o.creatable), g = M({
|
|
913
906
|
get() {
|
|
914
907
|
if (o.modelValue) {
|
|
915
908
|
if (o.multiple && Array.isArray(o.modelValue))
|
|
@@ -939,13 +932,13 @@ const Bl = fe(({ app: m }) => {
|
|
|
939
932
|
return o.placeholder;
|
|
940
933
|
} else return ((t = g.value) == null ? void 0 : t.label) || o.placeholder || "";
|
|
941
934
|
return "";
|
|
942
|
-
}),
|
|
935
|
+
}), U = M(() => !(!o.clearable || !o.modelValue || o.modelValue && Array.isArray(o.modelValue) && !o.modelValue.length)), d = M(() => n.value ? o.options.filter(
|
|
943
936
|
(t) => t.label.toLowerCase().includes(n.value.toLowerCase())
|
|
944
937
|
) : o.options), a = M(() => {
|
|
945
938
|
if (o.rules)
|
|
946
|
-
return o.required ? [...o.rules,
|
|
939
|
+
return o.required ? [...o.rules, oe] : o.rules;
|
|
947
940
|
if (o.required)
|
|
948
|
-
return [
|
|
941
|
+
return [oe];
|
|
949
942
|
}), u = () => {
|
|
950
943
|
p.value = !0, e("popupShow");
|
|
951
944
|
}, _ = () => {
|
|
@@ -954,11 +947,11 @@ const Bl = fe(({ app: m }) => {
|
|
|
954
947
|
g.value = void 0;
|
|
955
948
|
}, B = (t, $) => {
|
|
956
949
|
$(() => {
|
|
957
|
-
n.value = t,
|
|
950
|
+
n.value = t, m.value = "";
|
|
958
951
|
});
|
|
959
952
|
}, k = async (t) => {
|
|
960
953
|
var y;
|
|
961
|
-
const { testPattern: $ } =
|
|
954
|
+
const { testPattern: $ } = Be;
|
|
962
955
|
for (const q of o.createRules ?? []) {
|
|
963
956
|
const O = typeof q == "function" ? await q(t, $) : (y = $[q]) == null ? void 0 : y.call($, t);
|
|
964
957
|
if (typeof O == "string") return O;
|
|
@@ -975,7 +968,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
975
968
|
if (q) return $(q, "add-unique");
|
|
976
969
|
l.value = !0;
|
|
977
970
|
try {
|
|
978
|
-
if (
|
|
971
|
+
if (m.value = await k(y), m.value || !o.onCreate) return;
|
|
979
972
|
const O = await o.onCreate(y);
|
|
980
973
|
$(O || void 0, "add-unique");
|
|
981
974
|
} catch {
|
|
@@ -997,7 +990,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
997
990
|
key: 0,
|
|
998
991
|
class: v(["app-select__label", { "app-select__label_bold": t.required }])
|
|
999
992
|
}, L(t.required ? `${t.label} *` : t.label), 3)) : b("", !0),
|
|
1000
|
-
G(C(
|
|
993
|
+
G(C(_e), {
|
|
1001
994
|
standout: "",
|
|
1002
995
|
"hide-bottom-space": "",
|
|
1003
996
|
"hide-dropdown-icon": "",
|
|
@@ -1015,8 +1008,8 @@ const Bl = fe(({ app: m }) => {
|
|
|
1015
1008
|
"use-input": t.creatable || t.filtering && (Array.isArray(g.value) || !g.value),
|
|
1016
1009
|
rules: a.value,
|
|
1017
1010
|
"lazy-rules": t.lazyRules,
|
|
1018
|
-
error: !!
|
|
1019
|
-
"error-message":
|
|
1011
|
+
error: !!m.value,
|
|
1012
|
+
"error-message": m.value,
|
|
1020
1013
|
autofocus: t.autofocus,
|
|
1021
1014
|
disable: t.disabled,
|
|
1022
1015
|
loading: t.loading || l.value,
|
|
@@ -1026,18 +1019,18 @@ const Bl = fe(({ app: m }) => {
|
|
|
1026
1019
|
onPopupShow: u,
|
|
1027
1020
|
onPopupHide: _
|
|
1028
1021
|
}, {
|
|
1029
|
-
append:
|
|
1030
|
-
|
|
1022
|
+
append: T(() => [
|
|
1023
|
+
U.value ? (s(), i("i", {
|
|
1031
1024
|
key: 0,
|
|
1032
1025
|
class: "icon-kl icon-kl-circle-close app-select__clear",
|
|
1033
1026
|
onClick: H(h, ["stop", "prevent"])
|
|
1034
1027
|
})) : b("", !0),
|
|
1035
1028
|
$[1] || ($[1] = w("i", { class: "icon-kl icon-kl-arrow-down app-select__drop-icon" }, null, -1))
|
|
1036
1029
|
]),
|
|
1037
|
-
selected:
|
|
1030
|
+
selected: T(() => {
|
|
1038
1031
|
var y, q;
|
|
1039
1032
|
return [
|
|
1040
|
-
t.chips && z.value.length ? (s(!0), i(I, { key: 0 }, F(z.value, (O) => (s(), S(C(
|
|
1033
|
+
t.chips && z.value.length ? (s(!0), i(I, { key: 0 }, F(z.value, (O) => (s(), S(C($e), {
|
|
1041
1034
|
key: O.value,
|
|
1042
1035
|
dense: "",
|
|
1043
1036
|
class: "app-select__chip",
|
|
@@ -1054,7 +1047,7 @@ const Bl = fe(({ app: m }) => {
|
|
|
1054
1047
|
}, [
|
|
1055
1048
|
(q = g.value) != null && q.length ? (s(), i(I, { key: 0 }, [
|
|
1056
1049
|
$[2] || ($[2] = W(" Вибрано ", -1)),
|
|
1057
|
-
w("span",
|
|
1050
|
+
w("span", il, L(g.value.length), 1)
|
|
1058
1051
|
], 64)) : (s(), i(I, { key: 1 }, [
|
|
1059
1052
|
W(L(o.placeholder), 1)
|
|
1060
1053
|
], 64))
|
|
@@ -1070,8 +1063,8 @@ const Bl = fe(({ app: m }) => {
|
|
|
1070
1063
|
], 64))
|
|
1071
1064
|
];
|
|
1072
1065
|
}),
|
|
1073
|
-
option:
|
|
1074
|
-
G(ie,
|
|
1066
|
+
option: T((y) => [
|
|
1067
|
+
G(ie, pe({
|
|
1075
1068
|
"no-arrow": "",
|
|
1076
1069
|
label: y.opt.label,
|
|
1077
1070
|
checked: y.opt.done,
|
|
@@ -1082,14 +1075,14 @@ const Bl = fe(({ app: m }) => {
|
|
|
1082
1075
|
"model-value": y.selected
|
|
1083
1076
|
}, o.multiple ? { ...y.itemProps, onClick: void 0 } : y.itemProps, {
|
|
1084
1077
|
"onUpdate:modelValue": () => y.toggleOption(y.opt)
|
|
1085
|
-
}),
|
|
1078
|
+
}), ce({ _: 2 }, [
|
|
1086
1079
|
t.deletable ? {
|
|
1087
1080
|
name: "right",
|
|
1088
|
-
fn:
|
|
1081
|
+
fn: T(() => [
|
|
1089
1082
|
w("i", {
|
|
1090
1083
|
class: "icon-kl icon-kl-trash app-select__delete",
|
|
1091
1084
|
onClick: H((q) => e("delete", y.opt), ["stop"])
|
|
1092
|
-
}, null, 8,
|
|
1085
|
+
}, null, 8, rl)
|
|
1093
1086
|
]),
|
|
1094
1087
|
key: "0"
|
|
1095
1088
|
} : void 0
|
|
@@ -1099,29 +1092,26 @@ const Bl = fe(({ app: m }) => {
|
|
|
1099
1092
|
}, 8, ["dark", "popup-content-class", "placeholder", "modelValue", "options", "multiple", "use-input", "rules", "lazy-rules", "error", "error-message", "autofocus", "disable", "loading", "onNewValue"])
|
|
1100
1093
|
], 2));
|
|
1101
1094
|
}
|
|
1102
|
-
}), Ll = /* @__PURE__ */ R(
|
|
1103
|
-
() => import("./AppButtonCopy-
|
|
1104
|
-
), Pl =
|
|
1105
|
-
() =>
|
|
1106
|
-
), Rl = le(
|
|
1107
|
-
() => import("./BottomSheet-DBb5RCTS.js")
|
|
1095
|
+
}), Ll = /* @__PURE__ */ R(dl, [["__scopeId", "data-v-be6b0d2d"]]), Sl = te(
|
|
1096
|
+
() => import("./AppButtonCopy-CLZCSKyr.js")
|
|
1097
|
+
), Pl = te(
|
|
1098
|
+
() => import("./BottomSheet-DqBEWidj.js")
|
|
1108
1099
|
);
|
|
1109
1100
|
export {
|
|
1110
1101
|
wl as A,
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1102
|
+
Pl as B,
|
|
1103
|
+
j as C,
|
|
1104
|
+
Ie as D,
|
|
1114
1105
|
Il as M,
|
|
1115
1106
|
ie as P,
|
|
1116
1107
|
zl as S,
|
|
1117
|
-
R as _,
|
|
1118
1108
|
Ml as a,
|
|
1119
1109
|
Sl as b,
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1110
|
+
Ll as c,
|
|
1111
|
+
Vl as d,
|
|
1112
|
+
Al as e,
|
|
1113
|
+
Cl as f,
|
|
1114
|
+
se as g,
|
|
1115
|
+
J as h,
|
|
1126
1116
|
Bl as i
|
|
1127
1117
|
};
|