@poni/adjutant-ui 0.0.103 → 0.0.104
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/{AdjSvgActive-Cg9d-T7U.js → AdjSvgActive-BrJ67q86.js} +95 -97
- package/dist/AdjSvgActive-pl2OlG7l.cjs +1 -0
- package/dist/components/AdjFilterSelect/AdjFilterSelect.vue.d.ts +1 -1
- package/dist/components/AdjHint/AdjHint.vue.d.ts +4 -4
- package/dist/components/AdjSelect/AdjSelect.vue.d.ts +2 -2
- package/dist/components/AdjSelectImage/AdjSelectImage.vue.d.ts +2 -2
- package/dist/components/AdjSelectModern/AdjSelectModern.vue.d.ts +1 -1
- package/dist/components/AdjUploadFile/AdjUploadFile.vue.d.ts +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +184 -189
- package/dist/constructor.cjs +1 -1
- package/dist/constructor.js +1 -1
- package/dist/style.css +1 -1
- package/dist/vars.scss +3 -1
- package/package.json +5 -5
- package/dist/AdjSvgActive-9kTmj0ZZ.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useWindowSize as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as p, openBlock as i, createElementBlock as s, normalizeClass as m, createCommentVNode as y, createElementVNode as n, toDisplayString as q, useCssVars as B, createVNode as P, Transition as T, withCtx as z, withDirectives as A, vShow as I, withModifiers as g, renderSlot as D, ref as r, useTemplateRef as W, normalizeStyle as Q, computed as E, Fragment as X, renderList as Y, createBlock as x } from "vue";
|
|
2
|
+
import { useWindowSize as ee, useMouseInElement as N } from "@vueuse/core";
|
|
3
|
+
const te = /* @__PURE__ */ p({
|
|
4
4
|
__name: "AdjButton",
|
|
5
5
|
props: {
|
|
6
6
|
title: {},
|
|
@@ -14,33 +14,33 @@ const et = /* @__PURE__ */ f({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["click"],
|
|
16
16
|
setup(l) {
|
|
17
|
-
return (
|
|
17
|
+
return (e, t) => (i(), s("button", {
|
|
18
18
|
class: m(["adj-button", {
|
|
19
|
-
[`adj-button_${
|
|
20
|
-
[`adj-button_${
|
|
21
|
-
"adj-button_disabled":
|
|
22
|
-
"adj-button_flex":
|
|
23
|
-
"adj-button_round":
|
|
19
|
+
[`adj-button_${e.size}`]: !0,
|
|
20
|
+
[`adj-button_${e.design}`]: !0,
|
|
21
|
+
"adj-button_disabled": e.disabled,
|
|
22
|
+
"adj-button_flex": e.flex,
|
|
23
|
+
"adj-button_round": e.round
|
|
24
24
|
}]),
|
|
25
|
-
onClick:
|
|
25
|
+
onClick: t[0] || (t[0] = (o) => e.disabled ? 0 : e.$emit("click"))
|
|
26
26
|
}, [
|
|
27
|
-
|
|
27
|
+
e.iconLeft ? (i(), s("i", {
|
|
28
28
|
key: 0,
|
|
29
|
-
class: m(
|
|
30
|
-
}, null, 2)) :
|
|
31
|
-
n("div", null,
|
|
32
|
-
|
|
29
|
+
class: m(e.iconLeft)
|
|
30
|
+
}, null, 2)) : y("", !0),
|
|
31
|
+
n("div", null, q(e.title), 1),
|
|
32
|
+
e.iconRight ? (i(), s("i", {
|
|
33
33
|
key: 1,
|
|
34
|
-
class: m(
|
|
35
|
-
}, null, 2)) :
|
|
34
|
+
class: m(e.iconRight)
|
|
35
|
+
}, null, 2)) : y("", !0)
|
|
36
36
|
], 2));
|
|
37
37
|
}
|
|
38
|
-
}), c = (l,
|
|
39
|
-
const
|
|
40
|
-
for (const [o, a] of
|
|
41
|
-
|
|
42
|
-
return
|
|
43
|
-
},
|
|
38
|
+
}), c = (l, e) => {
|
|
39
|
+
const t = l.__vccOpts || l;
|
|
40
|
+
for (const [o, a] of e)
|
|
41
|
+
t[o] = a;
|
|
42
|
+
return t;
|
|
43
|
+
}, $e = /* @__PURE__ */ c(te, [["__scopeId", "data-v-602b5e80"]]), oe = ["innerHTML"], ae = /* @__PURE__ */ p({
|
|
44
44
|
__name: "AdjHintDesktop",
|
|
45
45
|
props: {
|
|
46
46
|
html: { default: "" },
|
|
@@ -50,21 +50,21 @@ const et = /* @__PURE__ */ f({
|
|
|
50
50
|
width: { default: "200px" }
|
|
51
51
|
},
|
|
52
52
|
setup(l) {
|
|
53
|
-
return
|
|
54
|
-
"7aca7e46":
|
|
55
|
-
})), (
|
|
53
|
+
return B((e) => ({
|
|
54
|
+
"7aca7e46": e.width
|
|
55
|
+
})), (e, t) => (i(), s("div", {
|
|
56
56
|
class: m([
|
|
57
57
|
"adj-hint-desktop",
|
|
58
|
-
{ "adj-hint-desktop_dark":
|
|
59
|
-
`adj-hint-desktop_${
|
|
60
|
-
`adj-hint-desktop_${
|
|
58
|
+
{ "adj-hint-desktop_dark": e.dark },
|
|
59
|
+
`adj-hint-desktop_${e.verticalPosition}`,
|
|
60
|
+
`adj-hint-desktop_${e.horizontalPosition}`
|
|
61
61
|
])
|
|
62
62
|
}, [
|
|
63
63
|
n("div", {
|
|
64
64
|
class: "adj-hint-desktop__text",
|
|
65
|
-
innerHTML:
|
|
66
|
-
}, null, 8,
|
|
67
|
-
|
|
65
|
+
innerHTML: e.html
|
|
66
|
+
}, null, 8, oe),
|
|
67
|
+
t[0] || (t[0] = n("svg", {
|
|
68
68
|
class: "adj-hint-desktop__triangle",
|
|
69
69
|
width: "14",
|
|
70
70
|
height: "14",
|
|
@@ -83,7 +83,7 @@ const et = /* @__PURE__ */ f({
|
|
|
83
83
|
], -1))
|
|
84
84
|
], 2));
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
86
|
+
}), ne = /* @__PURE__ */ c(ae, [["__scopeId", "data-v-c37cada5"]]), ie = { class: "adj-modal" }, le = { class: "adj-modal_wrapper" }, se = /* @__PURE__ */ p({
|
|
87
87
|
__name: "AdjModal",
|
|
88
88
|
props: {
|
|
89
89
|
show: { type: Boolean },
|
|
@@ -91,18 +91,18 @@ const et = /* @__PURE__ */ f({
|
|
|
91
91
|
hideClose: { type: Boolean, default: !1 }
|
|
92
92
|
},
|
|
93
93
|
emits: ["update:show"],
|
|
94
|
-
setup(l, { emit:
|
|
95
|
-
|
|
94
|
+
setup(l, { emit: e }) {
|
|
95
|
+
B((a) => ({
|
|
96
96
|
65069964: a.width
|
|
97
97
|
}));
|
|
98
|
-
const
|
|
98
|
+
const t = e;
|
|
99
99
|
function o() {
|
|
100
|
-
|
|
100
|
+
t("update:show", !1);
|
|
101
101
|
}
|
|
102
|
-
return (a, d) => (i(), s("div",
|
|
103
|
-
|
|
102
|
+
return (a, d) => (i(), s("div", ie, [
|
|
103
|
+
P(T, { name: "adj-fade" }, {
|
|
104
104
|
default: z(() => [
|
|
105
|
-
A(n("div",
|
|
105
|
+
A(n("div", le, d[1] || (d[1] = [
|
|
106
106
|
n("div", { class: "adj-modal__background" }, null, -1)
|
|
107
107
|
]), 512), [
|
|
108
108
|
[I, a.show]
|
|
@@ -110,7 +110,7 @@ const et = /* @__PURE__ */ f({
|
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
112
|
}),
|
|
113
|
-
|
|
113
|
+
P(T, { name: "adj-popup-bottom" }, {
|
|
114
114
|
default: z(() => [
|
|
115
115
|
A(n("div", {
|
|
116
116
|
class: "adj-modal_wrapper",
|
|
@@ -121,12 +121,12 @@ const et = /* @__PURE__ */ f({
|
|
|
121
121
|
onClick: d[0] || (d[0] = g(() => {
|
|
122
122
|
}, ["stop"]))
|
|
123
123
|
}, [
|
|
124
|
-
a.hideClose ?
|
|
124
|
+
a.hideClose ? y("", !0) : (i(), s("div", {
|
|
125
125
|
key: 0,
|
|
126
126
|
class: "adj-modal__close icon-close",
|
|
127
127
|
onClick: g(o, ["stop"])
|
|
128
128
|
})),
|
|
129
|
-
|
|
129
|
+
D(a.$slots, "default", {}, void 0, !0)
|
|
130
130
|
])
|
|
131
131
|
], 512), [
|
|
132
132
|
[I, a.show]
|
|
@@ -136,7 +136,7 @@ const et = /* @__PURE__ */ f({
|
|
|
136
136
|
})
|
|
137
137
|
]));
|
|
138
138
|
}
|
|
139
|
-
}),
|
|
139
|
+
}), de = /* @__PURE__ */ c(se, [["__scopeId", "data-v-921de616"]]), ue = { class: "adj-hint" }, re = ["innerHTML"], C = 14, $ = 14, ce = /* @__PURE__ */ p({
|
|
140
140
|
__name: "AdjHint",
|
|
141
141
|
props: {
|
|
142
142
|
html: { default: "" },
|
|
@@ -146,53 +146,51 @@ const et = /* @__PURE__ */ f({
|
|
|
146
146
|
modalMode: { type: Boolean, default: !1 }
|
|
147
147
|
},
|
|
148
148
|
setup(l) {
|
|
149
|
-
const
|
|
149
|
+
const e = l, t = r(!1), o = r(!1), { width: a, height: d } = ee(), H = W("refSlot"), V = W("refHint"), v = r(0), j = r(0), { elementWidth: w, elementHeight: S } = N(H), k = r(0), M = r(80), { elementWidth: b, elementHeight: L } = N(V), f = r(e.horizontalPosition), h = r(e.verticalPosition);
|
|
150
150
|
let _ = 10 + $ / 2;
|
|
151
151
|
function O() {
|
|
152
|
-
(!
|
|
152
|
+
(!e.modalMode || a.value >= 1200) && (U(), G(), J(), t.value = !0);
|
|
153
153
|
}
|
|
154
154
|
function F() {
|
|
155
|
-
(!
|
|
155
|
+
(!e.modalMode || a.value >= 1200) && (t.value = !1);
|
|
156
156
|
}
|
|
157
157
|
function Z() {
|
|
158
|
-
|
|
158
|
+
e.modalMode && a.value < 1200 && (o.value = !0);
|
|
159
159
|
}
|
|
160
160
|
function U() {
|
|
161
|
-
if (
|
|
162
|
-
const u =
|
|
161
|
+
if (H.value !== null) {
|
|
162
|
+
const u = H.value.getBoundingClientRect();
|
|
163
163
|
v.value = u.left, j.value = u.top;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
function G() {
|
|
167
|
-
|
|
167
|
+
e.dark && (_ = 15 + $ / 2), f.value = e.horizontalPosition, h.value = e.verticalPosition, e.horizontalPosition === "left" && v.value + w.value / 2 + _ - b.value < 0 ? f.value = "right" : e.horizontalPosition === "right" && v.value + w.value / 2 - _ + b.value > a.value && (f.value = "left"), e.verticalPosition === "top" && j.value - C - L.value < 0 ? h.value = "bottom" : e.verticalPosition === "bottom" && j.value + S.value + C + L.value > d.value && (h.value = "top");
|
|
168
168
|
}
|
|
169
169
|
function J() {
|
|
170
|
-
|
|
170
|
+
e.dark && (_ = 15 + $ / 2), f.value === "left" ? k.value = v.value + w.value / 2 + _ - b.value : f.value === "center" ? k.value = v.value + w.value / 2 - $ / 2 - b.value / 2 : f.value === "right" && (k.value = v.value + w.value / 2 - _), h.value == "top" ? M.value = j.value - C - L.value : h.value == "bottom" && (M.value = j.value + S.value + C);
|
|
171
171
|
}
|
|
172
|
-
return (u,
|
|
172
|
+
return (u, R) => (i(), s("div", ue, [
|
|
173
173
|
n("div", {
|
|
174
174
|
class: "adj-hint__slot",
|
|
175
175
|
onMouseenter: g(O, ["stop"]),
|
|
176
176
|
onMouseleave: g(F, ["stop"]),
|
|
177
177
|
onClick: g(Z, ["stop"]),
|
|
178
|
-
|
|
179
|
-
ref: k
|
|
178
|
+
ref: "refSlot"
|
|
180
179
|
}, [
|
|
181
|
-
|
|
180
|
+
D(u.$slots, "default", {}, void 0, !0)
|
|
182
181
|
], 544),
|
|
183
182
|
n("div", {
|
|
184
183
|
class: "adj-hint__hint",
|
|
185
184
|
style: Q({
|
|
186
|
-
left:
|
|
185
|
+
left: k.value + "px",
|
|
187
186
|
top: M.value + "px",
|
|
188
|
-
visibility:
|
|
187
|
+
visibility: t.value ? "visible" : "hidden"
|
|
189
188
|
}),
|
|
190
|
-
|
|
191
|
-
ref: S
|
|
189
|
+
ref: "refHint"
|
|
192
190
|
}, [
|
|
193
|
-
A(
|
|
191
|
+
A(P(ne, {
|
|
194
192
|
html: u.html,
|
|
195
|
-
horizontalPosition:
|
|
193
|
+
horizontalPosition: f.value,
|
|
196
194
|
verticalPosition: h.value,
|
|
197
195
|
dark: u.dark,
|
|
198
196
|
width: "252px"
|
|
@@ -200,25 +198,25 @@ const et = /* @__PURE__ */ f({
|
|
|
200
198
|
[I, u.html !== ""]
|
|
201
199
|
])
|
|
202
200
|
], 4),
|
|
203
|
-
|
|
201
|
+
P(de, {
|
|
204
202
|
show: o.value,
|
|
205
|
-
"onUpdate:show":
|
|
203
|
+
"onUpdate:show": R[0] || (R[0] = (K) => o.value = K),
|
|
206
204
|
width: "430px"
|
|
207
205
|
}, {
|
|
208
206
|
default: z(() => [
|
|
209
207
|
n("div", {
|
|
210
208
|
class: "adj-hint__modal",
|
|
211
209
|
innerHTML: u.html
|
|
212
|
-
}, null, 8,
|
|
210
|
+
}, null, 8, re)
|
|
213
211
|
]),
|
|
214
212
|
_: 1
|
|
215
213
|
}, 8, ["show"])
|
|
216
214
|
]));
|
|
217
215
|
}
|
|
218
|
-
}),
|
|
216
|
+
}), ye = /* @__PURE__ */ c(ce, [["__scopeId", "data-v-be48db98"]]), fe = {
|
|
219
217
|
key: 0,
|
|
220
218
|
class: "adj-icon-button__qty adj-text-12"
|
|
221
|
-
},
|
|
219
|
+
}, pe = /* @__PURE__ */ p({
|
|
222
220
|
__name: "AdjIconButton",
|
|
223
221
|
props: {
|
|
224
222
|
iconName: {},
|
|
@@ -229,21 +227,21 @@ const et = /* @__PURE__ */ f({
|
|
|
229
227
|
},
|
|
230
228
|
emits: ["click"],
|
|
231
229
|
setup(l) {
|
|
232
|
-
return (
|
|
230
|
+
return (e, t) => (i(), s("div", {
|
|
233
231
|
class: m(["adj-icon-button", {
|
|
234
|
-
[`adj-icon-button_${
|
|
235
|
-
[`adj-icon-button_${
|
|
236
|
-
"adj-icon-button_disabled":
|
|
232
|
+
[`adj-icon-button_${e.size}`]: !0,
|
|
233
|
+
[`adj-icon-button_${e.design}`]: !0,
|
|
234
|
+
"adj-icon-button_disabled": e.disabled
|
|
237
235
|
}]),
|
|
238
|
-
onClick:
|
|
236
|
+
onClick: t[0] || (t[0] = (o) => e.$emit("click"))
|
|
239
237
|
}, [
|
|
240
238
|
n("i", {
|
|
241
|
-
class: m(["adj-icon-button__icon",
|
|
239
|
+
class: m(["adj-icon-button__icon", e.iconName])
|
|
242
240
|
}, null, 2),
|
|
243
|
-
|
|
241
|
+
e.qty > 0 ? (i(), s("div", fe, q(e.qty), 1)) : y("", !0)
|
|
244
242
|
], 2));
|
|
245
243
|
}
|
|
246
|
-
}),
|
|
244
|
+
}), Pe = /* @__PURE__ */ c(pe, [["__scopeId", "data-v-bd9a4816"]]), ve = { class: "adj-skeleton-item" }, he = /* @__PURE__ */ p({
|
|
247
245
|
__name: "AdjSkeletonItem",
|
|
248
246
|
props: {
|
|
249
247
|
width: { default: "100%" },
|
|
@@ -252,16 +250,16 @@ const et = /* @__PURE__ */ f({
|
|
|
252
250
|
marginTop: { default: "0px" }
|
|
253
251
|
},
|
|
254
252
|
setup(l) {
|
|
255
|
-
|
|
253
|
+
B((o) => ({
|
|
256
254
|
"73b36252": o.width,
|
|
257
255
|
"5f18ed58": o.marginTop,
|
|
258
|
-
ac595bde:
|
|
256
|
+
ac595bde: t.value,
|
|
259
257
|
"3656db94": o.height
|
|
260
258
|
}));
|
|
261
|
-
const
|
|
262
|
-
return (o, a) => (i(), s("div",
|
|
259
|
+
const e = l, t = E(() => e.height !== "unset" ? "unset" : e.aspectRatio);
|
|
260
|
+
return (o, a) => (i(), s("div", ve));
|
|
263
261
|
}
|
|
264
|
-
}),
|
|
262
|
+
}), _e = /* @__PURE__ */ c(he, [["__scopeId", "data-v-c6820958"]]), me = { class: "adj-skeleton" }, ge = /* @__PURE__ */ p({
|
|
265
263
|
__name: "AdjSkeleton",
|
|
266
264
|
props: {
|
|
267
265
|
loaders: { default: () => [] },
|
|
@@ -269,13 +267,13 @@ const et = /* @__PURE__ */ f({
|
|
|
269
267
|
centered: { type: Boolean, default: !1 }
|
|
270
268
|
},
|
|
271
269
|
setup(l) {
|
|
272
|
-
|
|
273
|
-
c2e40cd4:
|
|
270
|
+
B((o) => ({
|
|
271
|
+
c2e40cd4: t.value,
|
|
274
272
|
"019b6ab8": o.width
|
|
275
273
|
}));
|
|
276
|
-
const
|
|
277
|
-
return (o, a) => (i(), s("div",
|
|
278
|
-
(i(!0), s(X, null, Y(o.loaders, (d) => (i(), x(
|
|
274
|
+
const e = l, t = E(() => e.centered ? "center" : "unset");
|
|
275
|
+
return (o, a) => (i(), s("div", me, [
|
|
276
|
+
(i(!0), s(X, null, Y(o.loaders, (d) => (i(), x(_e, {
|
|
279
277
|
width: d.width,
|
|
280
278
|
height: d.height,
|
|
281
279
|
"aspect-ratio": d.aspectRatio,
|
|
@@ -283,13 +281,13 @@ const et = /* @__PURE__ */ f({
|
|
|
283
281
|
}, null, 8, ["width", "height", "aspect-ratio", "margin-top"]))), 256))
|
|
284
282
|
]));
|
|
285
283
|
}
|
|
286
|
-
}),
|
|
284
|
+
}), Be = /* @__PURE__ */ c(ge, [["__scopeId", "data-v-080d9f14"]]), je = {}, we = {
|
|
287
285
|
viewBox: "0 0 34 34",
|
|
288
286
|
fill: "none",
|
|
289
287
|
xmlns: "http://www.w3.org/2000/svg"
|
|
290
288
|
};
|
|
291
|
-
function
|
|
292
|
-
return i(), s("svg",
|
|
289
|
+
function ke(l, e) {
|
|
290
|
+
return i(), s("svg", we, e[0] || (e[0] = [
|
|
293
291
|
n("circle", {
|
|
294
292
|
cx: "17",
|
|
295
293
|
cy: "17",
|
|
@@ -298,15 +296,15 @@ function kt(l, t) {
|
|
|
298
296
|
n("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)
|
|
299
297
|
]));
|
|
300
298
|
}
|
|
301
|
-
const
|
|
299
|
+
const He = /* @__PURE__ */ c(je, [["render", ke], ["__scopeId", "data-v-f04662e9"]]);
|
|
302
300
|
export {
|
|
303
|
-
|
|
301
|
+
Pe as A,
|
|
304
302
|
c as _,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
303
|
+
He as a,
|
|
304
|
+
Be as b,
|
|
305
|
+
ye as c,
|
|
306
|
+
$e as d,
|
|
307
|
+
ne as e,
|
|
308
|
+
de as f,
|
|
309
|
+
_e as g
|
|
312
310
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),g=require("@vueuse/core"),L=e.defineComponent({__name:"AdjButton",props:{title:{},flex:{type:Boolean,default:!1},size:{default:"medium"},design:{default:"primary"},disabled:{type:Boolean,default:!1},round:{type:Boolean,default:!1},iconLeft:{default:""},iconRight:{default:""}},emits:["click"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["adj-button",{[`adj-button_${t.size}`]:!0,[`adj-button_${t.design}`]:!0,"adj-button_disabled":t.disabled,"adj-button_flex":t.flex,"adj-button_round":t.round}]),onClick:o[0]||(o[0]=n=>t.disabled?0:t.$emit("click"))},[t.iconLeft?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(t.iconLeft)},null,2)):e.createCommentVNode("",!0),e.createElementVNode("div",null,e.toDisplayString(t.title),1),t.iconRight?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass(t.iconRight)},null,2)):e.createCommentVNode("",!0)],2))}}),s=(a,t)=>{const o=a.__vccOpts||a;for(const[n,l]of t)o[n]=l;return o},I=s(L,[["__scopeId","data-v-602b5e80"]]),R=["innerHTML"],T=e.defineComponent({__name:"AdjHintDesktop",props:{html:{default:""},horizontalPosition:{default:"left"},verticalPosition:{default:"top"},dark:{type:Boolean,default:!1},width:{default:"200px"}},setup(a){return e.useCssVars(t=>({"7aca7e46":t.width})),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["adj-hint-desktop",{"adj-hint-desktop_dark":t.dark},`adj-hint-desktop_${t.verticalPosition}`,`adj-hint-desktop_${t.horizontalPosition}`])},[e.createElementVNode("div",{class:"adj-hint-desktop__text",innerHTML:t.html},null,8,R),o[0]||(o[0]=e.createElementVNode("svg",{class:"adj-hint-desktop__triangle",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{class:"adj-hint-desktop__triangle_inner",d:"M13 13L7 2L1 13H13Z"}),e.createElementVNode("path",{class:"adj-hint-desktop__triangle_border",d:"M13 13L7 2L1 13"})],-1))],2))}}),E=s(T,[["__scopeId","data-v-c37cada5"]]),D={class:"adj-modal"},W={class:"adj-modal_wrapper"},q=e.defineComponent({__name:"AdjModal",props:{show:{type:Boolean},width:{default:"100%"},hideClose:{type:Boolean,default:!1}},emits:["update:show"],setup(a,{emit:t}){e.useCssVars(l=>({65069964:l.width}));const o=t;function n(){o("update:show",!1)}return(l,i)=>(e.openBlock(),e.createElementBlock("div",D,[e.createVNode(e.Transition,{name:"adj-fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",W,i[1]||(i[1]=[e.createElementVNode("div",{class:"adj-modal__background"},null,-1)]),512),[[e.vShow,l.show]])]),_:1}),e.createVNode(e.Transition,{name:"adj-popup-bottom"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"adj-modal_wrapper",onClick:e.withModifiers(n,["stop"])},[e.createElementVNode("div",{class:"adj-modal__window",onClick:i[0]||(i[0]=e.withModifiers(()=>{},["stop"]))},[l.hideClose?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"adj-modal__close icon-close",onClick:e.withModifiers(n,["stop"])})),e.renderSlot(l.$slots,"default",{},void 0,!0)])],512),[[e.vShow,l.show]])]),_:3})]))}}),M=s(q,[["__scopeId","data-v-921de616"]]),O={class:"adj-hint"},F=["innerHTML"],_=14,k=14,Z=e.defineComponent({__name:"AdjHint",props:{html:{default:""},horizontalPosition:{default:"left"},verticalPosition:{default:"bottom"},dark:{type:Boolean,default:!0},modalMode:{type:Boolean,default:!1}},setup(a){const t=a,o=e.ref(!1),n=e.ref(!1),{width:l,height:i}=g.useWindowSize(),w=e.useTemplateRef("refSlot"),y=e.useTemplateRef("refHint"),u=e.ref(0),f=e.ref(0),{elementWidth:m,elementHeight:B}=g.useMouseInElement(w),v=e.ref(0),j=e.ref(80),{elementWidth:h,elementHeight:C}=g.useMouseInElement(y),r=e.ref(t.horizontalPosition),c=e.ref(t.verticalPosition);let p=10+k/2;function $(){(!t.modalMode||l.value>=1200)&&(z(),H(),P(),o.value=!0)}function A(){(!t.modalMode||l.value>=1200)&&(o.value=!1)}function N(){t.modalMode&&l.value<1200&&(n.value=!0)}function z(){if(w.value!==null){const d=w.value.getBoundingClientRect();u.value=d.left,f.value=d.top}}function H(){t.dark&&(p=15+k/2),r.value=t.horizontalPosition,c.value=t.verticalPosition,t.horizontalPosition==="left"&&u.value+m.value/2+p-h.value<0?r.value="right":t.horizontalPosition==="right"&&u.value+m.value/2-p+h.value>l.value&&(r.value="left"),t.verticalPosition==="top"&&f.value-_-C.value<0?c.value="bottom":t.verticalPosition==="bottom"&&f.value+B.value+_+C.value>i.value&&(c.value="top")}function P(){t.dark&&(p=15+k/2),r.value==="left"?v.value=u.value+m.value/2+p-h.value:r.value==="center"?v.value=u.value+m.value/2-k/2-h.value/2:r.value==="right"&&(v.value=u.value+m.value/2-p),c.value=="top"?j.value=f.value-_-C.value:c.value=="bottom"&&(j.value=f.value+B.value+_)}return(d,b)=>(e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",{class:"adj-hint__slot",onMouseenter:e.withModifiers($,["stop"]),onMouseleave:e.withModifiers(A,["stop"]),onClick:e.withModifiers(N,["stop"]),ref:"refSlot"},[e.renderSlot(d.$slots,"default",{},void 0,!0)],544),e.createElementVNode("div",{class:"adj-hint__hint",style:e.normalizeStyle({left:v.value+"px",top:j.value+"px",visibility:o.value?"visible":"hidden"}),ref:"refHint"},[e.withDirectives(e.createVNode(E,{html:d.html,horizontalPosition:r.value,verticalPosition:c.value,dark:d.dark,width:"252px"},null,8,["html","horizontalPosition","verticalPosition","dark"]),[[e.vShow,d.html!==""]])],4),e.createVNode(M,{show:n.value,"onUpdate:show":b[0]||(b[0]=S=>n.value=S),width:"430px"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"adj-hint__modal",innerHTML:d.html},null,8,F)]),_:1},8,["show"])]))}}),U=s(Z,[["__scopeId","data-v-be48db98"]]),G={key:0,class:"adj-icon-button__qty adj-text-12"},J=e.defineComponent({__name:"AdjIconButton",props:{iconName:{},qty:{default:0},size:{default:"medium"},design:{default:"white-back"},disabled:{type:Boolean,default:!1}},emits:["click"],setup(a){return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["adj-icon-button",{[`adj-icon-button_${t.size}`]:!0,[`adj-icon-button_${t.design}`]:!0,"adj-icon-button_disabled":t.disabled}]),onClick:o[0]||(o[0]=n=>t.$emit("click"))},[e.createElementVNode("i",{class:e.normalizeClass(["adj-icon-button__icon",t.iconName])},null,2),t.qty>0?(e.openBlock(),e.createElementBlock("div",G,e.toDisplayString(t.qty),1)):e.createCommentVNode("",!0)],2))}}),K=s(J,[["__scopeId","data-v-bd9a4816"]]),Q={class:"adj-skeleton-item"},X=e.defineComponent({__name:"AdjSkeletonItem",props:{width:{default:"100%"},height:{default:"unset"},aspectRatio:{default:"unset"},marginTop:{default:"0px"}},setup(a){e.useCssVars(n=>({"73b36252":n.width,"5f18ed58":n.marginTop,ac595bde:o.value,"3656db94":n.height}));const t=a,o=e.computed(()=>t.height!=="unset"?"unset":t.aspectRatio);return(n,l)=>(e.openBlock(),e.createElementBlock("div",Q))}}),V=s(X,[["__scopeId","data-v-c6820958"]]),Y={class:"adj-skeleton"},x=e.defineComponent({__name:"AdjSkeleton",props:{loaders:{default:()=>[]},width:{default:"100%"},centered:{type:Boolean,default:!1}},setup(a){e.useCssVars(n=>({c2e40cd4:o.value,"019b6ab8":n.width}));const t=a,o=e.computed(()=>t.centered?"center":"unset");return(n,l)=>(e.openBlock(),e.createElementBlock("div",Y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.loaders,i=>(e.openBlock(),e.createBlock(V,{width:i.width,height:i.height,"aspect-ratio":i.aspectRatio,"margin-top":i.marginTop},null,8,["width","height","aspect-ratio","margin-top"]))),256))]))}}),ee=s(x,[["__scopeId","data-v-080d9f14"]]),te={},oe={viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ne(a,t){return e.openBlock(),e.createElementBlock("svg",oe,t[0]||(t[0]=[e.createElementVNode("circle",{cx:"17",cy:"17",r:"16.5"},null,-1),e.createElementVNode("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)]))}const le=s(te,[["render",ne],["__scopeId","data-v-f04662e9"]]);exports.AdjButton=I;exports.AdjHint=U;exports.AdjHintDesktop=E;exports.AdjIconButton=K;exports.AdjModal=M;exports.AdjSkeleton=ee;exports.AdjSkeletonItem=V;exports.AdjSvgActive=le;exports._export_sfc=s;
|
|
@@ -26,6 +26,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
26
|
items: IAdjFilterSelectItem[];
|
|
27
27
|
position: THorizontalPosition;
|
|
28
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
29
|
-
|
|
29
|
+
refElement: HTMLDivElement;
|
|
30
30
|
}, any>;
|
|
31
31
|
export default _default;
|
|
@@ -4,8 +4,8 @@ declare function __VLS_template(): {
|
|
|
4
4
|
default?(_: {}): any;
|
|
5
5
|
};
|
|
6
6
|
refs: {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
refSlot: HTMLDivElement;
|
|
8
|
+
refHint: HTMLDivElement;
|
|
9
9
|
};
|
|
10
10
|
attrs: Partial<{}>;
|
|
11
11
|
};
|
|
@@ -39,8 +39,8 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
39
39
|
dark: boolean;
|
|
40
40
|
modalMode: boolean;
|
|
41
41
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
refSlot: HTMLDivElement;
|
|
43
|
+
refHint: HTMLDivElement;
|
|
44
44
|
}, any>;
|
|
45
45
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
46
46
|
export default _default;
|
|
@@ -50,7 +50,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
50
50
|
comment: string;
|
|
51
51
|
showSearch: boolean;
|
|
52
52
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
refElement: HTMLDivElement;
|
|
54
|
+
refInput: HTMLInputElement;
|
|
55
55
|
}, any>;
|
|
56
56
|
export default _default;
|
|
@@ -33,7 +33,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
33
33
|
design: "text" | "image";
|
|
34
34
|
skeletonQty: number;
|
|
35
35
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
refRoot: HTMLDivElement;
|
|
37
|
+
refElement: HTMLDivElement;
|
|
38
38
|
}, any>;
|
|
39
39
|
export default _default;
|
|
@@ -27,6 +27,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
27
27
|
items: IAdjSelectModernItem[];
|
|
28
28
|
position: THorizontalPosition;
|
|
29
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
|
-
|
|
30
|
+
refElement: HTMLDivElement;
|
|
31
31
|
}, any>;
|
|
32
32
|
export default _default;
|
|
@@ -25,6 +25,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
25
25
|
width: number;
|
|
26
26
|
height: number;
|
|
27
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
-
|
|
28
|
+
refFileInput: HTMLInputElement;
|
|
29
29
|
}, any>;
|
|
30
30
|
export default _default;
|