@poni/adjutant-ui 0.0.107 → 0.0.108
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/AdjUploadFile-CyQywon3.cjs +1 -0
- package/dist/{AdjUploadFile-BNk0Ibab.js → AdjUploadFile-hEC_M0bi.js} +182 -188
- package/dist/components/AdjButton/AdjButton.vue.d.ts +6 -22
- package/dist/components/AdjButtonCheckbox/AdjButtonCheckbox.vue.d.ts +5 -11
- package/dist/components/AdjCheckbox/AdjCheckbox.vue.d.ts +6 -19
- package/dist/components/AdjDownloadLink/AdjDownloadLink.vue.d.ts +3 -7
- package/dist/components/AdjDropdownLink/AdjDropdownLink.vue.d.ts +3 -10
- package/dist/components/AdjFilterCheckbox/AdjFilterCheckbox.vue.d.ts +5 -9
- package/dist/components/AdjFilterSelect/AdjFilterSelect.vue.d.ts +5 -13
- package/dist/components/AdjFilters/AdjFilters.vue.d.ts +5 -7
- package/dist/components/AdjFiltersMobile/AdjFiltersMobile.vue.d.ts +5 -15
- package/dist/components/AdjHint/AdjHint.vue.d.ts +16 -25
- package/dist/components/AdjHintDesktop/AdjHintDesktop.vue.d.ts +4 -14
- package/dist/components/AdjIcon/AdjIcon.vue.d.ts +6 -18
- package/dist/components/AdjIconButton/AdjIconButton.vue.d.ts +7 -17
- package/dist/components/AdjIconButtonText/AdjIconButtonText.vue.d.ts +6 -14
- package/dist/components/AdjImageButton/AdjImageButton.vue.d.ts +4 -8
- package/dist/components/AdjInput/AdjInput.vue.d.ts +7 -27
- package/dist/components/AdjInputModern/AdjInputModern.vue.d.ts +5 -13
- package/dist/components/AdjInputNumber/AdjInputNumber.vue.d.ts +5 -15
- package/dist/components/AdjModal/AdjModal.vue.d.ts +13 -18
- package/dist/components/AdjRadio/AdjRadio.vue.d.ts +6 -14
- package/dist/components/AdjScroll/AdjScroll.vue.d.ts +10 -13
- package/dist/components/AdjSelect/AdjSelect.vue.d.ts +6 -24
- package/dist/components/AdjSelectImage/AdjSelectImage.vue.d.ts +5 -17
- package/dist/components/AdjSelectModern/AdjSelectModern.vue.d.ts +6 -16
- package/dist/components/AdjSkeleton/AdjSkeleton.vue.d.ts +5 -11
- package/dist/components/AdjSkeletonItem/AdjSkeletonItem.vue.d.ts +4 -12
- package/dist/components/AdjSliderButton/AdjSliderButton.vue.d.ts +6 -10
- package/dist/components/AdjSvg/AdjSvgActive.vue.d.ts +1 -1
- package/dist/components/AdjSvg/AdjSvgEdit.vue.d.ts +1 -1
- package/dist/components/AdjSvg/AdjSvgFly.vue.d.ts +1 -1
- package/dist/components/AdjSvg/AdjSvgYoutube.vue.d.ts +1 -1
- package/dist/components/AdjTabs/AdjTabs.vue.d.ts +5 -9
- package/dist/components/AdjUploadFile/AdjUploadFile.vue.d.ts +5 -13
- package/dist/components/constructor/AdjBlocks/AdjBlocks.vue.d.ts +5 -11
- package/dist/components/constructor/AdjLaminates/AdjLaminates.vue.d.ts +5 -11
- package/dist/components/constructor/AdjMaterials/AdjMaterials.vue.d.ts +5 -11
- package/dist/components/constructor/AdjModels/AdjModels.vue.d.ts +5 -13
- package/dist/components/constructor/AdjNavigator/AdjNavigator.vue.d.ts +5 -10
- package/dist/components/constructor/AdjPersonalizationConfigurator/AdjPersonalizationConfigurator.vue.d.ts +5 -28
- package/dist/components/constructor/AdjPersonalizations/AdjPersonalizations.vue.d.ts +5 -13
- package/dist/components/constructor/AdjPricebar/AdjPricebar.vue.d.ts +5 -35
- package/dist/components/constructor/AdjProducts/AdjProducts.vue.d.ts +5 -11
- package/dist/components/constructor/AdjStitchings/AdjStitchings.vue.d.ts +5 -11
- package/dist/components/constructor/elements/AdjCoverGroupItem/AdjCoverGroupItem.vue.d.ts +5 -13
- package/dist/components/constructor/elements/AdjCoverItem/AdjCoverItem.vue.d.ts +5 -27
- package/dist/components/constructor/elements/AdjImageItem/AdjImageItem.vue.d.ts +5 -43
- package/dist/components/constructor/elements/AdjNavigatorItem/AdjNavigatorItem.vue.d.ts +1 -1
- package/dist/components/constructor/elements/AdjNavigatorWrapper/AdjNavigatorWrapper.vue.d.ts +4 -9
- package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/AdjPersonalizationConfiguratorElements.vue.d.ts +5 -15
- package/dist/components/constructor/elements/AdjPricebarWrapper/AdjPricebarWrapper.vue.d.ts +5 -8
- package/dist/components.cjs +1 -1
- package/dist/components.js +2 -2
- package/dist/constructor.cjs +1 -1
- package/dist/constructor.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/AdjUploadFile-Ddv4QCCr.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as k, openBlock as
|
|
2
|
-
import { onClickOutside as ie, useWindowSize as se, useMouseInElement as
|
|
1
|
+
import { defineComponent as k, openBlock as i, createElementBlock as n, normalizeClass as m, createCommentVNode as H, createElementVNode as o, toDisplayString as $, withDirectives as O, vShow as N, normalizeStyle as F, renderSlot as ee, useTemplateRef as S, ref as _, createVNode as M, Transition as x, withCtx as R, Fragment as D, renderList as U, withModifiers as A, useCssVars as q, computed as te, onMounted as de, watchEffect as ue, createBlock as re } from "vue";
|
|
2
|
+
import { onClickOutside as ie, useWindowSize as se, useMouseInElement as Q, useWindowScroll as ce } from "@vueuse/core";
|
|
3
3
|
const fe = /* @__PURE__ */ k({
|
|
4
4
|
__name: "AdjButton",
|
|
5
5
|
props: {
|
|
@@ -14,7 +14,7 @@ const fe = /* @__PURE__ */ k({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["click"],
|
|
16
16
|
setup(r) {
|
|
17
|
-
return (e, t) => (
|
|
17
|
+
return (e, t) => (i(), n("button", {
|
|
18
18
|
class: m(["adj-button", {
|
|
19
19
|
[`adj-button_${e.size}`]: !0,
|
|
20
20
|
[`adj-button_${e.design}`]: !0,
|
|
@@ -24,15 +24,15 @@ const fe = /* @__PURE__ */ k({
|
|
|
24
24
|
}]),
|
|
25
25
|
onClick: t[0] || (t[0] = (a) => e.disabled ? 0 : e.$emit("click"))
|
|
26
26
|
}, [
|
|
27
|
-
e.iconLeft ? (
|
|
27
|
+
e.iconLeft ? (i(), n("i", {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: m(e.iconLeft)
|
|
30
|
-
}, null, 2)) :
|
|
31
|
-
|
|
32
|
-
e.iconRight ? (
|
|
30
|
+
}, null, 2)) : H("", !0),
|
|
31
|
+
o("div", null, $(e.title), 1),
|
|
32
|
+
e.iconRight ? (i(), n("i", {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: m(e.iconRight)
|
|
35
|
-
}, null, 2)) :
|
|
35
|
+
}, null, 2)) : H("", !0)
|
|
36
36
|
], 2));
|
|
37
37
|
}
|
|
38
38
|
}), g = (r, e) => {
|
|
@@ -67,24 +67,24 @@ const fe = /* @__PURE__ */ k({
|
|
|
67
67
|
function u() {
|
|
68
68
|
t.modelValue.checked === t.items[0].checked ? a("update:modelValue", t.items[1]) : a("update:modelValue", t.items[0]);
|
|
69
69
|
}
|
|
70
|
-
return (l, c) => (
|
|
70
|
+
return (l, c) => (i(), n("div", {
|
|
71
71
|
class: m(["adj-checkbox", { disabled: l.disabled }]),
|
|
72
72
|
onClick: c[0] || (c[0] = (f) => u())
|
|
73
73
|
}, [
|
|
74
|
-
l.title && l.titlePosition === "left" ? (
|
|
75
|
-
|
|
76
|
-
O((
|
|
77
|
-
|
|
74
|
+
l.title && l.titlePosition === "left" ? (i(), n("span", pe, $(l.title), 1)) : H("", !0),
|
|
75
|
+
o("div", ve, [
|
|
76
|
+
O((i(), n("svg", me, c[1] || (c[1] = [
|
|
77
|
+
o("rect", {
|
|
78
78
|
width: "16",
|
|
79
79
|
height: "16",
|
|
80
80
|
rx: "4"
|
|
81
81
|
}, null, -1),
|
|
82
|
-
|
|
82
|
+
o("path", { d: "M12.7423 4.27169C12.3993 3.90944 11.842 3.90944 11.4993 4.27169L6.31133 9.75632L4.50067 7.84213C4.169 7.4915 3.58867 7.49185 3.258 7.84178C3.09167 8.01691 3 8.25055 3 8.49899C3 8.74742 3.09167 8.98106 3.25767 9.1562L5.69 11.7276C5.856 11.9034 6.07667 12 6.31167 12C6.54667 12 6.76767 11.9031 6.93333 11.7276L12.7423 5.58647C12.9083 5.41098 13 5.17734 13 4.9289C13 4.68047 12.9087 4.44719 12.7423 4.27169Z" }, null, -1)
|
|
83
83
|
]), 512)), [
|
|
84
84
|
[N, l.modelValue.checked]
|
|
85
85
|
])
|
|
86
86
|
]),
|
|
87
|
-
l.title && l.titlePosition === "right" ? (
|
|
87
|
+
l.title && l.titlePosition === "right" ? (i(), n("span", he, $(l.title), 1)) : H("", !0)
|
|
88
88
|
], 2));
|
|
89
89
|
}
|
|
90
90
|
}), mt = /* @__PURE__ */ g(_e, [["__scopeId", "data-v-f8f6e87a"]]), je = /* @__PURE__ */ k({
|
|
@@ -95,7 +95,7 @@ const fe = /* @__PURE__ */ k({
|
|
|
95
95
|
},
|
|
96
96
|
setup(r) {
|
|
97
97
|
const e = r;
|
|
98
|
-
return (t, a) => (
|
|
98
|
+
return (t, a) => (i(), n("div", {
|
|
99
99
|
class: m(["adj-scroll", { "adj-scroll_white": t.white }]),
|
|
100
100
|
style: F({ maxHeight: `${e.maxHeight}` })
|
|
101
101
|
}, [
|
|
@@ -121,7 +121,7 @@ const fe = /* @__PURE__ */ k({
|
|
|
121
121
|
},
|
|
122
122
|
emits: ["update:modelValue"],
|
|
123
123
|
setup(r, { emit: e }) {
|
|
124
|
-
const t = r, a = e, u =
|
|
124
|
+
const t = r, a = e, u = S("refElement");
|
|
125
125
|
ie(u, () => l.value = !1);
|
|
126
126
|
const l = _(!1);
|
|
127
127
|
function c(d) {
|
|
@@ -130,34 +130,34 @@ const fe = /* @__PURE__ */ k({
|
|
|
130
130
|
function f() {
|
|
131
131
|
"id" in t.modelValue ? c({}) : l.value = !l.value;
|
|
132
132
|
}
|
|
133
|
-
return (d, b) => (
|
|
133
|
+
return (d, b) => (i(), n("div", {
|
|
134
134
|
ref: "refElement",
|
|
135
135
|
class: m(["adj-filter-select", [{ show: l.value, active: "id" in d.modelValue && d.modelValue.id }, d.position]])
|
|
136
136
|
}, [
|
|
137
|
-
|
|
137
|
+
o("div", {
|
|
138
138
|
class: "adj-filter-select__name adj-text-14",
|
|
139
|
-
onClick: b[0] || (b[0] = (
|
|
139
|
+
onClick: b[0] || (b[0] = (s) => f())
|
|
140
140
|
}, [
|
|
141
|
-
|
|
142
|
-
"id" in d.modelValue && d.modelValue.id ? (
|
|
143
|
-
|
|
144
|
-
default:
|
|
145
|
-
l.value ? (
|
|
146
|
-
|
|
147
|
-
default:
|
|
148
|
-
|
|
149
|
-
(
|
|
150
|
-
key:
|
|
151
|
-
class: m(["adj-filter-select__item adj-text-14", { "adj-filter-select__item_disabled":
|
|
152
|
-
onClick:
|
|
141
|
+
o("span", null, $("id" in d.modelValue && d.modelValue.id ? d.modelValue.name : d.title), 1),
|
|
142
|
+
"id" in d.modelValue && d.modelValue.id ? (i(), n("i", ge)) : (i(), n("i", ke)),
|
|
143
|
+
M(x, { name: "adj-fade" }, {
|
|
144
|
+
default: R(() => [
|
|
145
|
+
l.value ? (i(), n("div", be, [
|
|
146
|
+
M(ne, { maxHeight: "384px" }, {
|
|
147
|
+
default: R(() => [
|
|
148
|
+
o("div", null, [
|
|
149
|
+
(i(!0), n(D, null, U(d.items, (s) => (i(), n("div", {
|
|
150
|
+
key: s.id,
|
|
151
|
+
class: m(["adj-filter-select__item adj-text-14", { "adj-filter-select__item_disabled": s.disabled }]),
|
|
152
|
+
onClick: A((p) => c(s), ["stop"])
|
|
153
153
|
}, [
|
|
154
|
-
|
|
154
|
+
o("span", null, $(s.name), 1)
|
|
155
155
|
], 10, we))), 128))
|
|
156
156
|
])
|
|
157
157
|
]),
|
|
158
158
|
_: 1
|
|
159
159
|
})
|
|
160
|
-
])) :
|
|
160
|
+
])) : H("", !0)
|
|
161
161
|
]),
|
|
162
162
|
_: 1
|
|
163
163
|
})
|
|
@@ -176,7 +176,7 @@ const fe = /* @__PURE__ */ k({
|
|
|
176
176
|
setup(r) {
|
|
177
177
|
return q((e) => ({
|
|
178
178
|
"7aca7e46": e.width
|
|
179
|
-
})), (e, t) => (
|
|
179
|
+
})), (e, t) => (i(), n("div", {
|
|
180
180
|
class: m([
|
|
181
181
|
"adj-hint-desktop",
|
|
182
182
|
{ "adj-hint-desktop_dark": e.dark },
|
|
@@ -184,11 +184,11 @@ const fe = /* @__PURE__ */ k({
|
|
|
184
184
|
`adj-hint-desktop_${e.horizontalPosition}`
|
|
185
185
|
])
|
|
186
186
|
}, [
|
|
187
|
-
|
|
187
|
+
o("div", {
|
|
188
188
|
class: "adj-hint-desktop__text",
|
|
189
189
|
innerHTML: e.html
|
|
190
190
|
}, null, 8, Ce),
|
|
191
|
-
t[0] || (t[0] =
|
|
191
|
+
t[0] || (t[0] = o("svg", {
|
|
192
192
|
class: "adj-hint-desktop__triangle",
|
|
193
193
|
width: "14",
|
|
194
194
|
height: "14",
|
|
@@ -196,11 +196,11 @@ const fe = /* @__PURE__ */ k({
|
|
|
196
196
|
fill: "none",
|
|
197
197
|
xmlns: "http://www.w3.org/2000/svg"
|
|
198
198
|
}, [
|
|
199
|
-
|
|
199
|
+
o("path", {
|
|
200
200
|
class: "adj-hint-desktop__triangle_inner",
|
|
201
201
|
d: "M13 13L7 2L1 13H13Z"
|
|
202
202
|
}),
|
|
203
|
-
|
|
203
|
+
o("path", {
|
|
204
204
|
class: "adj-hint-desktop__triangle_border",
|
|
205
205
|
d: "M13 13L7 2L1 13"
|
|
206
206
|
})
|
|
@@ -223,32 +223,32 @@ const fe = /* @__PURE__ */ k({
|
|
|
223
223
|
function a() {
|
|
224
224
|
t("update:show", !1);
|
|
225
225
|
}
|
|
226
|
-
return (u, l) => (
|
|
227
|
-
|
|
228
|
-
default:
|
|
229
|
-
O(
|
|
230
|
-
|
|
226
|
+
return (u, l) => (i(), n("div", Ve, [
|
|
227
|
+
M(x, { name: "adj-fade" }, {
|
|
228
|
+
default: R(() => [
|
|
229
|
+
O(o("div", Ie, l[1] || (l[1] = [
|
|
230
|
+
o("div", { class: "adj-modal__background" }, null, -1)
|
|
231
231
|
]), 512), [
|
|
232
232
|
[N, u.show]
|
|
233
233
|
])
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
236
|
}),
|
|
237
|
-
|
|
238
|
-
default:
|
|
239
|
-
O(
|
|
237
|
+
M(x, { name: "adj-popup-bottom" }, {
|
|
238
|
+
default: R(() => [
|
|
239
|
+
O(o("div", {
|
|
240
240
|
class: "adj-modal_wrapper",
|
|
241
|
-
onClick:
|
|
241
|
+
onClick: A(a, ["stop"])
|
|
242
242
|
}, [
|
|
243
|
-
|
|
243
|
+
o("div", {
|
|
244
244
|
class: "adj-modal__window",
|
|
245
|
-
onClick: l[0] || (l[0] =
|
|
245
|
+
onClick: l[0] || (l[0] = A(() => {
|
|
246
246
|
}, ["stop"]))
|
|
247
247
|
}, [
|
|
248
|
-
u.hideClose ?
|
|
248
|
+
u.hideClose ? H("", !0) : (i(), n("div", {
|
|
249
249
|
key: 0,
|
|
250
250
|
class: "adj-modal__close icon-close",
|
|
251
|
-
onClick:
|
|
251
|
+
onClick: A(a, ["stop"])
|
|
252
252
|
})),
|
|
253
253
|
ee(u.$slots, "default", {}, void 0, !0)
|
|
254
254
|
])
|
|
@@ -270,40 +270,40 @@ const fe = /* @__PURE__ */ k({
|
|
|
270
270
|
modalMode: { type: Boolean, default: !1 }
|
|
271
271
|
},
|
|
272
272
|
setup(r) {
|
|
273
|
-
const e = r, t = _(!1), a = _(!1), { width: u, height: l } = se(), c =
|
|
274
|
-
let
|
|
273
|
+
const e = r, t = _(!1), a = _(!1), { width: u, height: l } = se(), c = S("refSlot"), f = S("refHint"), d = _(0), b = _(0), { elementWidth: s, elementHeight: p } = Q(c), v = _(0), h = _(80), { elementWidth: w, elementHeight: y } = Q(f), P = _(e.horizontalPosition), C = _(e.verticalPosition);
|
|
274
|
+
let V = 10 + K / 2;
|
|
275
275
|
function T() {
|
|
276
|
-
(!e.modalMode || u.value >= 1200) && (
|
|
276
|
+
(!e.modalMode || u.value >= 1200) && (L(), Z(), X(), t.value = !0);
|
|
277
277
|
}
|
|
278
278
|
function W() {
|
|
279
279
|
(!e.modalMode || u.value >= 1200) && (t.value = !1);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function B() {
|
|
282
282
|
e.modalMode && u.value < 1200 && (a.value = !0);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function L() {
|
|
285
285
|
if (c.value !== null) {
|
|
286
|
-
const
|
|
287
|
-
d.value =
|
|
286
|
+
const I = c.value.getBoundingClientRect();
|
|
287
|
+
d.value = I.left, b.value = I.top;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
function Z() {
|
|
291
|
-
e.dark && (
|
|
291
|
+
e.dark && (V = 15 + K / 2), P.value = e.horizontalPosition, C.value = e.verticalPosition, e.horizontalPosition === "left" && d.value + s.value / 2 + V - w.value < 0 ? P.value = "right" : e.horizontalPosition === "right" && d.value + s.value / 2 - V + w.value > u.value && (P.value = "left"), e.verticalPosition === "top" && b.value - J - y.value < 0 ? C.value = "bottom" : e.verticalPosition === "bottom" && b.value + p.value + J + y.value > l.value && (C.value = "top");
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
e.dark && (
|
|
293
|
+
function X() {
|
|
294
|
+
e.dark && (V = 15 + K / 2), P.value === "left" ? v.value = d.value + s.value / 2 + V - w.value : P.value === "center" ? v.value = d.value + s.value / 2 - K / 2 - w.value / 2 : P.value === "right" && (v.value = d.value + s.value / 2 - V), C.value == "top" ? h.value = b.value - J - y.value : C.value == "bottom" && (h.value = b.value + p.value + J);
|
|
295
295
|
}
|
|
296
|
-
return (
|
|
297
|
-
|
|
296
|
+
return (I, G) => (i(), n("div", ze, [
|
|
297
|
+
o("div", {
|
|
298
298
|
class: "adj-hint__slot",
|
|
299
|
-
onMouseenter:
|
|
300
|
-
onMouseleave:
|
|
301
|
-
onClick:
|
|
299
|
+
onMouseenter: A(T, ["stop"]),
|
|
300
|
+
onMouseleave: A(W, ["stop"]),
|
|
301
|
+
onClick: A(B, ["stop"]),
|
|
302
302
|
ref: "refSlot"
|
|
303
303
|
}, [
|
|
304
|
-
ee(
|
|
304
|
+
ee(I.$slots, "default", {}, void 0, !0)
|
|
305
305
|
], 544),
|
|
306
|
-
|
|
306
|
+
o("div", {
|
|
307
307
|
class: "adj-hint__hint",
|
|
308
308
|
style: F({
|
|
309
309
|
left: v.value + "px",
|
|
@@ -312,25 +312,25 @@ const fe = /* @__PURE__ */ k({
|
|
|
312
312
|
}),
|
|
313
313
|
ref: "refHint"
|
|
314
314
|
}, [
|
|
315
|
-
O(
|
|
316
|
-
html:
|
|
317
|
-
horizontalPosition:
|
|
315
|
+
O(M(Pe, {
|
|
316
|
+
html: I.html,
|
|
317
|
+
horizontalPosition: P.value,
|
|
318
318
|
verticalPosition: C.value,
|
|
319
|
-
dark:
|
|
319
|
+
dark: I.dark,
|
|
320
320
|
width: "252px"
|
|
321
321
|
}, null, 8, ["html", "horizontalPosition", "verticalPosition", "dark"]), [
|
|
322
|
-
[N,
|
|
322
|
+
[N, I.html !== ""]
|
|
323
323
|
])
|
|
324
324
|
], 4),
|
|
325
|
-
|
|
325
|
+
M(He, {
|
|
326
326
|
show: a.value,
|
|
327
|
-
"onUpdate:show": G[0] || (G[0] = (
|
|
327
|
+
"onUpdate:show": G[0] || (G[0] = (Y) => a.value = Y),
|
|
328
328
|
width: "430px"
|
|
329
329
|
}, {
|
|
330
|
-
default:
|
|
331
|
-
|
|
330
|
+
default: R(() => [
|
|
331
|
+
o("div", {
|
|
332
332
|
class: "adj-hint__modal",
|
|
333
|
-
innerHTML:
|
|
333
|
+
innerHTML: I.html
|
|
334
334
|
}, null, 8, Be)
|
|
335
335
|
]),
|
|
336
336
|
_: 1
|
|
@@ -353,19 +353,19 @@ const fe = /* @__PURE__ */ k({
|
|
|
353
353
|
"7fb84d06": t.value
|
|
354
354
|
}));
|
|
355
355
|
const e = r, t = te(() => e.size + "px");
|
|
356
|
-
return (a, u) => (
|
|
356
|
+
return (a, u) => (i(), n("div", {
|
|
357
357
|
class: m(["adj-icon", {
|
|
358
358
|
[`adj-icon_${a.design}`]: !0,
|
|
359
359
|
"adj-icon_disabled": a.disabled
|
|
360
360
|
}])
|
|
361
361
|
}, [
|
|
362
|
-
|
|
362
|
+
M(Le, {
|
|
363
363
|
dark: !1,
|
|
364
364
|
html: a.disabled ? "" : a.tooltip,
|
|
365
365
|
horizontalPosition: a.tooltipPosition
|
|
366
366
|
}, {
|
|
367
|
-
default:
|
|
368
|
-
|
|
367
|
+
default: R(() => [
|
|
368
|
+
o("i", {
|
|
369
369
|
class: m([a.iconName]),
|
|
370
370
|
onClick: u[0] || (u[0] = (l) => a.$emit("click"))
|
|
371
371
|
}, null, 2)
|
|
@@ -388,7 +388,7 @@ const fe = /* @__PURE__ */ k({
|
|
|
388
388
|
},
|
|
389
389
|
emits: ["click"],
|
|
390
390
|
setup(r) {
|
|
391
|
-
return (e, t) => (
|
|
391
|
+
return (e, t) => (i(), n("div", {
|
|
392
392
|
class: m(["adj-icon-button", {
|
|
393
393
|
[`adj-icon-button_${e.size}`]: !0,
|
|
394
394
|
[`adj-icon-button_${e.design}`]: !0,
|
|
@@ -396,10 +396,10 @@ const fe = /* @__PURE__ */ k({
|
|
|
396
396
|
}]),
|
|
397
397
|
onClick: t[0] || (t[0] = (a) => e.$emit("click"))
|
|
398
398
|
}, [
|
|
399
|
-
|
|
399
|
+
o("i", {
|
|
400
400
|
class: m(["adj-icon-button__icon", e.iconName])
|
|
401
401
|
}, null, 2),
|
|
402
|
-
e.qty > 0 ? (
|
|
402
|
+
e.qty > 0 ? (i(), n("div", Re, $(e.qty), 1)) : H("", !0)
|
|
403
403
|
], 2));
|
|
404
404
|
}
|
|
405
405
|
}), jt = /* @__PURE__ */ g(Te, [["__scopeId", "data-v-bd9a4816"]]), We = ["onClick"], Ee = { class: "adj-radio__item_name adj-text-13" }, Fe = /* @__PURE__ */ k({
|
|
@@ -417,12 +417,12 @@ const fe = /* @__PURE__ */ k({
|
|
|
417
417
|
var c;
|
|
418
418
|
l.id !== ((c = t.modelValue) == null ? void 0 : c.id) && a("update:modelValue", l);
|
|
419
419
|
}
|
|
420
|
-
return (l, c) => (
|
|
420
|
+
return (l, c) => (i(), n("div", {
|
|
421
421
|
class: m(["adj-radio", { "adj-radio_disabled": l.disabled }])
|
|
422
422
|
}, [
|
|
423
|
-
(
|
|
423
|
+
(i(!0), n(D, null, U(l.items, (f) => {
|
|
424
424
|
var d;
|
|
425
|
-
return
|
|
425
|
+
return i(), n("div", {
|
|
426
426
|
key: f.id,
|
|
427
427
|
class: m(["adj-radio__item", {
|
|
428
428
|
active: ((d = l.modelValue) == null ? void 0 : d.id) === f.id,
|
|
@@ -430,10 +430,10 @@ const fe = /* @__PURE__ */ k({
|
|
|
430
430
|
}]),
|
|
431
431
|
onClick: (b) => u(f)
|
|
432
432
|
}, [
|
|
433
|
-
|
|
433
|
+
o("div", {
|
|
434
434
|
class: m(["adj-radio__item_button", { "adj-effect-overlay-small": !l.disabled }])
|
|
435
435
|
}, null, 2),
|
|
436
|
-
|
|
436
|
+
o("span", Ee, $(f.name), 1)
|
|
437
437
|
], 10, We);
|
|
438
438
|
}), 128))
|
|
439
439
|
], 2));
|
|
@@ -448,7 +448,7 @@ const fe = /* @__PURE__ */ k({
|
|
|
448
448
|
__name: "AdjSelectModern",
|
|
449
449
|
props: {
|
|
450
450
|
design: { default: "text" },
|
|
451
|
-
horizontalPosition: { default: "
|
|
451
|
+
horizontalPosition: { default: "right" },
|
|
452
452
|
verticalPosition: { default: "bottom" },
|
|
453
453
|
items: { default: () => [] },
|
|
454
454
|
modelValue: {}
|
|
@@ -461,107 +461,101 @@ const fe = /* @__PURE__ */ k({
|
|
|
461
461
|
u.value >= 0 && l.value >= 0 && c.value >= 0 && Z();
|
|
462
462
|
});
|
|
463
463
|
});
|
|
464
|
-
const d =
|
|
465
|
-
ie(d, () =>
|
|
464
|
+
const d = S("refElement");
|
|
465
|
+
ie(d, () => s.value = !1);
|
|
466
466
|
function b(j) {
|
|
467
467
|
var z;
|
|
468
|
-
|
|
468
|
+
s.value = !1, j.id != ((z = t.modelValue) == null ? void 0 : z.id) && a("update:modelValue", j);
|
|
469
469
|
}
|
|
470
|
-
const
|
|
470
|
+
const s = _(!1), p = S("refInput"), v = S("refItems"), h = _(0), w = _(0), { elementWidth: y, elementHeight: P } = Q(p), C = _(0), V = _(80), { elementWidth: T, elementHeight: W } = Q(v), B = _(t.horizontalPosition), L = _(t.verticalPosition);
|
|
471
471
|
function Z() {
|
|
472
|
-
|
|
472
|
+
s.value && (I(), G(), Y());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
|
|
474
|
+
function X() {
|
|
475
|
+
s.value = !s.value, Z();
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function I() {
|
|
478
478
|
if (p.value !== null) {
|
|
479
479
|
const j = p.value.getBoundingClientRect();
|
|
480
480
|
h.value = j.left, w.value = j.top;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
function G() {
|
|
484
|
-
|
|
484
|
+
B.value = t.horizontalPosition, L.value = t.verticalPosition, t.horizontalPosition === "left" && h.value + y.value < T.value ? B.value = "right" : t.horizontalPosition === "right" && T.value > c.value - h.value && (B.value = "left"), t.verticalPosition === "top" && w.value - W.value < 0 ? L.value = "bottom" : t.verticalPosition === "bottom" && w.value + P.value + W.value > f.value && (L.value = "top");
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
|
|
486
|
+
function Y() {
|
|
487
|
+
B.value === "left" ? C.value = h.value + y.value - T.value : B.value === "center" ? C.value = h.value + y.value / 2 - T.value / 2 : B.value === "right" && (C.value = h.value), L.value == "top" ? V.value = w.value - W.value : L.value == "bottom" && (V.value = w.value + P.value);
|
|
488
488
|
}
|
|
489
489
|
return (j, z) => {
|
|
490
490
|
var le, ae, oe;
|
|
491
|
-
return
|
|
491
|
+
return i(), n("div", {
|
|
492
492
|
ref: "refElement",
|
|
493
493
|
class: m([
|
|
494
494
|
"adj-select-modern",
|
|
495
495
|
"adj-text-14",
|
|
496
496
|
j.horizontalPosition,
|
|
497
497
|
`adj-select-modern_${j.design}`,
|
|
498
|
-
{ showItems:
|
|
498
|
+
{ showItems: s.value }
|
|
499
499
|
])
|
|
500
500
|
}, [
|
|
501
|
-
|
|
501
|
+
o("div", {
|
|
502
502
|
ref: "refInput",
|
|
503
503
|
class: "adj-input adj-text-14",
|
|
504
|
-
onClick:
|
|
504
|
+
onClick: A(X, ["stop"])
|
|
505
505
|
}, [
|
|
506
|
-
j.design === "image" ? (
|
|
507
|
-
|
|
506
|
+
j.design === "image" ? (i(), n("div", Oe, [
|
|
507
|
+
o("img", {
|
|
508
508
|
src: (le = j.modelValue) == null ? void 0 : le.image,
|
|
509
509
|
alt: ""
|
|
510
510
|
}, null, 8, Ne),
|
|
511
|
-
z[0] || (z[0] =
|
|
512
|
-
])) : j.design === "background" ? (
|
|
511
|
+
z[0] || (z[0] = o("div", { class: "adj-input__border" }, null, -1))
|
|
512
|
+
])) : j.design === "background" ? (i(), n("div", {
|
|
513
513
|
key: 1,
|
|
514
514
|
class: "adj-input__image",
|
|
515
515
|
style: F({ background: (ae = j.modelValue) == null ? void 0 : ae.background })
|
|
516
|
-
}, null, 4)) :
|
|
517
|
-
|
|
518
|
-
z[1] || (z[1] =
|
|
516
|
+
}, null, 4)) : H("", !0),
|
|
517
|
+
o("span", De, $((oe = j.modelValue) == null ? void 0 : oe.name), 1),
|
|
518
|
+
z[1] || (z[1] = o("i", { class: "adj-input__icon icon-arrow-down" }, null, -1))
|
|
519
519
|
], 512),
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
_: 1
|
|
556
|
-
})
|
|
557
|
-
], 4)) : y("", !0)
|
|
558
|
-
]),
|
|
559
|
-
_: 1
|
|
560
|
-
})
|
|
520
|
+
o("div", {
|
|
521
|
+
class: "adj-select-modern__items adj-effect-overlay-big",
|
|
522
|
+
style: F({
|
|
523
|
+
left: C.value + "px",
|
|
524
|
+
top: V.value + "px",
|
|
525
|
+
visibility: s.value ? "visible" : "hidden"
|
|
526
|
+
}),
|
|
527
|
+
ref: "refItems"
|
|
528
|
+
}, [
|
|
529
|
+
M(ne, { maxHeight: "384px" }, {
|
|
530
|
+
default: R(() => [
|
|
531
|
+
o("div", null, [
|
|
532
|
+
(i(!0), n(D, null, U(j.items, (E) => (i(), n("div", {
|
|
533
|
+
key: E.id,
|
|
534
|
+
class: "adj-select-modern__item adj-text-14",
|
|
535
|
+
onClick: A((ct) => b(E), ["stop"])
|
|
536
|
+
}, [
|
|
537
|
+
j.design === "image" ? (i(), n("div", qe, [
|
|
538
|
+
o("img", {
|
|
539
|
+
src: E.image,
|
|
540
|
+
alt: ""
|
|
541
|
+
}, null, 8, Ze),
|
|
542
|
+
z[2] || (z[2] = o("div", { class: "adj-select-modern__item-border" }, null, -1))
|
|
543
|
+
])) : j.design === "background" ? (i(), n("div", {
|
|
544
|
+
key: 1,
|
|
545
|
+
class: "adj-select-modern__item-image",
|
|
546
|
+
style: F({ background: E.background })
|
|
547
|
+
}, null, 4)) : H("", !0),
|
|
548
|
+
o("span", Ge, $(E.name), 1)
|
|
549
|
+
], 8, Ue))), 128))
|
|
550
|
+
])
|
|
551
|
+
]),
|
|
552
|
+
_: 1
|
|
553
|
+
})
|
|
554
|
+
], 4)
|
|
561
555
|
], 2);
|
|
562
556
|
};
|
|
563
557
|
}
|
|
564
|
-
}), kt = /* @__PURE__ */ g(Je, [["__scopeId", "data-v-
|
|
558
|
+
}), kt = /* @__PURE__ */ g(Je, [["__scopeId", "data-v-70707141"]]), Ke = { class: "adj-skeleton-item" }, Qe = /* @__PURE__ */ k({
|
|
565
559
|
__name: "AdjSkeletonItem",
|
|
566
560
|
props: {
|
|
567
561
|
width: { default: "100%" },
|
|
@@ -577,7 +571,7 @@ const fe = /* @__PURE__ */ k({
|
|
|
577
571
|
"3656db94": a.height
|
|
578
572
|
}));
|
|
579
573
|
const e = r, t = te(() => e.height !== "unset" ? "unset" : e.aspectRatio);
|
|
580
|
-
return (a, u) => (
|
|
574
|
+
return (a, u) => (i(), n("div", Ke));
|
|
581
575
|
}
|
|
582
576
|
}), Xe = /* @__PURE__ */ g(Qe, [["__scopeId", "data-v-c6820958"]]), Ye = { class: "adj-skeleton" }, xe = /* @__PURE__ */ k({
|
|
583
577
|
__name: "AdjSkeleton",
|
|
@@ -592,8 +586,8 @@ const fe = /* @__PURE__ */ k({
|
|
|
592
586
|
"019b6ab8": a.width
|
|
593
587
|
}));
|
|
594
588
|
const e = r, t = te(() => e.centered ? "center" : "unset");
|
|
595
|
-
return (a, u) => (
|
|
596
|
-
(
|
|
589
|
+
return (a, u) => (i(), n("div", Ye, [
|
|
590
|
+
(i(!0), n(D, null, U(a.loaders, (l) => (i(), re(Xe, {
|
|
597
591
|
width: l.width,
|
|
598
592
|
height: l.height,
|
|
599
593
|
"aspect-ratio": l.aspectRatio,
|
|
@@ -607,13 +601,13 @@ const fe = /* @__PURE__ */ k({
|
|
|
607
601
|
xmlns: "http://www.w3.org/2000/svg"
|
|
608
602
|
};
|
|
609
603
|
function lt(r, e) {
|
|
610
|
-
return
|
|
611
|
-
|
|
604
|
+
return i(), n("svg", tt, e[0] || (e[0] = [
|
|
605
|
+
o("circle", {
|
|
612
606
|
cx: "17",
|
|
613
607
|
cy: "17",
|
|
614
608
|
r: "16.5"
|
|
615
609
|
}, null, -1),
|
|
616
|
-
|
|
610
|
+
o("path", { d: "M22.7034 12.9285C22.6244 12.8488 22.5304 12.7856 22.4268 12.7424C22.3232 12.6993 22.2121 12.6771 22.0999 12.6771C21.9877 12.6771 21.8766 12.6993 21.773 12.7424C21.6694 12.7856 21.5754 12.8488 21.4964 12.9285L15.1639 19.2695L12.5034 16.6005C12.4213 16.5212 12.3245 16.4589 12.2184 16.4171C12.1122 16.3753 11.9989 16.3548 11.8849 16.3567C11.7708 16.3587 11.6583 16.3831 11.5536 16.4286C11.449 16.4741 11.3544 16.5397 11.2751 16.6217C11.1959 16.7038 11.1336 16.8006 11.0917 16.9068C11.0499 17.0129 11.0294 17.1262 11.0314 17.2403C11.0334 17.3543 11.0578 17.4669 11.1032 17.5715C11.1487 17.6761 11.2143 17.7707 11.2964 17.85L14.5604 21.114C14.6394 21.1937 14.7334 21.2569 14.837 21.3C14.9406 21.3432 15.0517 21.3654 15.1639 21.3654C15.2761 21.3654 15.3872 21.3432 15.4908 21.3C15.5944 21.2569 15.6884 21.1937 15.7674 21.114L22.7034 14.178C22.7897 14.0984 22.8585 14.0018 22.9056 13.8943C22.9527 13.7867 22.977 13.6706 22.977 13.5532C22.977 13.4359 22.9527 13.3197 22.9056 13.2122C22.8585 13.1047 22.7897 13.0081 22.7034 12.9285Z" }, null, -1)
|
|
617
611
|
]));
|
|
618
612
|
}
|
|
619
613
|
const wt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-f04662e9"]]), at = { class: "adj-tabs" }, ot = { class: "adj-tabs-wrapper" }, it = ["onClick"], st = { key: 0 }, nt = /* @__PURE__ */ k({
|
|
@@ -629,17 +623,17 @@ const wt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-f04662e9
|
|
|
629
623
|
var c;
|
|
630
624
|
!l.disabled && l.id !== ((c = t.modelValue) == null ? void 0 : c.id) && a("update:modelValue", l);
|
|
631
625
|
}
|
|
632
|
-
return (l, c) => (
|
|
633
|
-
|
|
634
|
-
(
|
|
626
|
+
return (l, c) => (i(), n("div", at, [
|
|
627
|
+
o("div", ot, [
|
|
628
|
+
(i(!0), n(D, null, U(l.items, (f) => {
|
|
635
629
|
var d;
|
|
636
|
-
return
|
|
630
|
+
return i(), n("div", {
|
|
637
631
|
key: f.name,
|
|
638
632
|
class: m(["adj-tabs__item", { active: f.id == ((d = l.modelValue) == null ? void 0 : d.id), disabled: f.disabled }]),
|
|
639
633
|
onClick: (b) => u(f)
|
|
640
634
|
}, [
|
|
641
|
-
|
|
642
|
-
f.number ? (
|
|
635
|
+
o("p", null, $(f.name), 1),
|
|
636
|
+
f.number ? (i(), n("span", st, $(f.number), 1)) : H("", !0)
|
|
643
637
|
], 10, it);
|
|
644
638
|
}), 128))
|
|
645
639
|
])
|
|
@@ -655,19 +649,19 @@ const wt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-f04662e9
|
|
|
655
649
|
},
|
|
656
650
|
emits: ["update:modelValue"],
|
|
657
651
|
setup(r, { emit: e }) {
|
|
658
|
-
const t = r, a = e, u =
|
|
652
|
+
const t = r, a = e, u = S("refFileInput"), l = _(!1);
|
|
659
653
|
function c() {
|
|
660
|
-
var
|
|
661
|
-
l.value || (
|
|
654
|
+
var s;
|
|
655
|
+
l.value || (s = u.value) == null || s.click();
|
|
662
656
|
}
|
|
663
|
-
async function f(
|
|
657
|
+
async function f(s) {
|
|
664
658
|
return new Promise((p, v) => {
|
|
665
659
|
const h = new FileReader();
|
|
666
|
-
h.readAsDataURL(
|
|
660
|
+
h.readAsDataURL(s), h.onload = () => p(h.result), h.onerror = (w) => v(w);
|
|
667
661
|
});
|
|
668
662
|
}
|
|
669
|
-
async function d(
|
|
670
|
-
if (!
|
|
663
|
+
async function d(s) {
|
|
664
|
+
if (!s)
|
|
671
665
|
return {
|
|
672
666
|
url: ""
|
|
673
667
|
};
|
|
@@ -679,7 +673,7 @@ const wt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-f04662e9
|
|
|
679
673
|
key: "fvk34lkjf03fd93j9dfsaf0d",
|
|
680
674
|
lang: "ru",
|
|
681
675
|
testMode: !0,
|
|
682
|
-
params:
|
|
676
|
+
params: s
|
|
683
677
|
})
|
|
684
678
|
})).json();
|
|
685
679
|
return {
|
|
@@ -687,12 +681,12 @@ const wt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-f04662e9
|
|
|
687
681
|
// urlFull: `https://api.adjutant.ru/tmp/upload/constructorzakaz/${responseJson?.result}`,
|
|
688
682
|
};
|
|
689
683
|
}
|
|
690
|
-
async function b(
|
|
691
|
-
var
|
|
692
|
-
if (!(
|
|
684
|
+
async function b(s) {
|
|
685
|
+
var y;
|
|
686
|
+
if (!(s.files && ((y = s == null ? void 0 : s.files) == null ? void 0 : y.length) > 0))
|
|
693
687
|
return;
|
|
694
688
|
l.value = !0;
|
|
695
|
-
const p =
|
|
689
|
+
const p = s == null ? void 0 : s.files[0];
|
|
696
690
|
let v = p.type;
|
|
697
691
|
v === "image/svg+xml" && (v = "image/svg");
|
|
698
692
|
const h = await f(p), w = await d({
|
|
@@ -703,21 +697,21 @@ const wt = /* @__PURE__ */ g(et, [["render", lt], ["__scopeId", "data-v-f04662e9
|
|
|
703
697
|
});
|
|
704
698
|
a("update:modelValue", { ...t.modelValue, ...w }), l.value = !1;
|
|
705
699
|
}
|
|
706
|
-
return (
|
|
700
|
+
return (s, p) => (i(), n("div", {
|
|
707
701
|
class: m(["adj-upload-file", { "adj-upload-file_loading": l.value }]),
|
|
708
702
|
onClick: c
|
|
709
703
|
}, [
|
|
710
|
-
|
|
711
|
-
p[2] || (p[2] =
|
|
712
|
-
|
|
704
|
+
o("div", dt, [
|
|
705
|
+
p[2] || (p[2] = o("i", { class: "icon-arrow-circle-up" }, null, -1)),
|
|
706
|
+
o("span", ut, $(s.modelValue.url || s.text), 1)
|
|
713
707
|
]),
|
|
714
|
-
O(
|
|
708
|
+
O(o("i", {
|
|
715
709
|
class: "icon-close",
|
|
716
|
-
onClick: p[0] || (p[0] =
|
|
710
|
+
onClick: p[0] || (p[0] = A((v) => s.$emit("update:modelValue", { url: "" }), ["stop"]))
|
|
717
711
|
}, null, 512), [
|
|
718
|
-
[N,
|
|
712
|
+
[N, s.modelValue.url]
|
|
719
713
|
]),
|
|
720
|
-
|
|
714
|
+
o("input", {
|
|
721
715
|
id: "file",
|
|
722
716
|
ref: "refFileInput",
|
|
723
717
|
type: "file",
|