@poni/adjutant-ui 0.0.103 → 0.0.105

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.
Files changed (38) hide show
  1. package/dist/AdjUploadFile-34R1a94_.cjs +1 -0
  2. package/dist/AdjUploadFile-CsU9FOzc.js +705 -0
  3. package/dist/components/AdjFilterSelect/AdjFilterSelect.vue.d.ts +1 -1
  4. package/dist/components/AdjHint/AdjHint.vue.d.ts +4 -4
  5. package/dist/components/AdjSelect/AdjSelect.vue.d.ts +2 -2
  6. package/dist/components/AdjSelectImage/AdjSelectImage.vue.d.ts +2 -2
  7. package/dist/components/AdjSelectModern/AdjSelectModern.vue.d.ts +1 -1
  8. package/dist/components/AdjUploadFile/AdjUploadFile.vue.d.ts +1 -1
  9. package/dist/components/constructor/AdjPersonalizationConfigurator/AdjPersonalizationConfigurator.mock.d.ts +2 -0
  10. package/dist/components/constructor/AdjPersonalizationConfigurator/AdjPersonalizationConfigurator.stories.d.ts +6 -0
  11. package/dist/components/constructor/{AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.vue.d.ts → AdjPersonalizationConfigurator/AdjPersonalizationConfigurator.vue.d.ts} +8 -12
  12. package/dist/components/constructor/elements/AdjImageItem/AdjImageItem.mock.d.ts +1 -1
  13. package/dist/components/constructor/elements/AdjImageItem/AdjImageItem.stories.d.ts +2 -2
  14. package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/AdjPersonalizationConfiguratorElements.d.ts +6 -0
  15. package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/AdjPersonalizationConfiguratorElements.mock.d.ts +6 -0
  16. package/dist/components/constructor/elements/{AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.vue.d.ts → AdjPersonalizationConfiguratorElements/AdjPersonalizationConfiguratorElements.vue.d.ts} +8 -12
  17. package/dist/components/constructor/elements/{AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsItem.d.ts → AdjPersonalizationConfiguratorElements/IAdjPersonalizationConfiguratorElementsItem.d.ts} +3 -3
  18. package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/IAdjPersonalizationConfiguratorElementsModel.d.ts +4 -0
  19. package/dist/components/constructor/elements/AdjPersonalizationConfiguratorElements/IAdjPersonalizationConfiguratorElementsNumber.d.ts +5 -0
  20. package/dist/components/constructor/elements/{AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsTexture.d.ts → AdjPersonalizationConfiguratorElements/IAdjPersonalizationConfiguratorElementsTexture.d.ts} +1 -1
  21. package/dist/components/constructor/elements/{AdjPersonalizitionConfiguratorElements/TAdjPersonalizitionConfiguratorElementsValue.d.ts → AdjPersonalizationConfiguratorElements/TAdjPersonalizationConfiguratorElementsValue.d.ts} +3 -3
  22. package/dist/components.cjs +1 -1
  23. package/dist/components.js +222 -614
  24. package/dist/constructor.cjs +1 -1
  25. package/dist/constructor.js +863 -348
  26. package/dist/plugin/constructor.d.ts +2 -1
  27. package/dist/plugin/types.d.ts +3 -1
  28. package/dist/style.css +1 -1
  29. package/dist/vars.scss +3 -1
  30. package/package.json +14 -14
  31. package/dist/AdjSvgActive-9kTmj0ZZ.cjs +0 -1
  32. package/dist/AdjSvgActive-Cg9d-T7U.js +0 -312
  33. package/dist/components/constructor/AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.mock.d.ts +0 -2
  34. package/dist/components/constructor/AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.stories.d.ts +0 -6
  35. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.mock.d.ts +0 -6
  36. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.stories.d.ts +0 -6
  37. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsModel.d.ts +0 -4
  38. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsNumber.d.ts +0 -5
@@ -1,312 +0,0 @@
1
- import { defineComponent as f, openBlock as i, createElementBlock as s, normalizeClass as m, createCommentVNode as P, createElementVNode as n, toDisplayString as D, useCssVars as H, createVNode as B, Transition as W, withCtx as z, withDirectives as A, vShow as I, withModifiers as g, renderSlot as E, ref as r, useTemplateRef as N, normalizeStyle as Q, computed as V, Fragment as X, renderList as Y, createBlock as x } from "vue";
2
- import { useWindowSize as tt, useMouseInElement as q } from "@vueuse/core";
3
- const et = /* @__PURE__ */ f({
4
- __name: "AdjButton",
5
- props: {
6
- title: {},
7
- flex: { type: Boolean, default: !1 },
8
- size: { default: "medium" },
9
- design: { default: "primary" },
10
- disabled: { type: Boolean, default: !1 },
11
- round: { type: Boolean, default: !1 },
12
- iconLeft: { default: "" },
13
- iconRight: { default: "" }
14
- },
15
- emits: ["click"],
16
- setup(l) {
17
- return (t, e) => (i(), s("button", {
18
- class: m(["adj-button", {
19
- [`adj-button_${t.size}`]: !0,
20
- [`adj-button_${t.design}`]: !0,
21
- "adj-button_disabled": t.disabled,
22
- "adj-button_flex": t.flex,
23
- "adj-button_round": t.round
24
- }]),
25
- onClick: e[0] || (e[0] = (o) => t.disabled ? 0 : t.$emit("click"))
26
- }, [
27
- t.iconLeft ? (i(), s("i", {
28
- key: 0,
29
- class: m(t.iconLeft)
30
- }, null, 2)) : P("", !0),
31
- n("div", null, D(t.title), 1),
32
- t.iconRight ? (i(), s("i", {
33
- key: 1,
34
- class: m(t.iconRight)
35
- }, null, 2)) : P("", !0)
36
- ], 2));
37
- }
38
- }), c = (l, t) => {
39
- const e = l.__vccOpts || l;
40
- for (const [o, a] of t)
41
- e[o] = a;
42
- return e;
43
- }, yt = /* @__PURE__ */ c(et, [["__scopeId", "data-v-602b5e80"]]), ot = ["innerHTML"], at = /* @__PURE__ */ f({
44
- __name: "AdjHintDesktop",
45
- props: {
46
- html: { default: "" },
47
- horizontalPosition: { default: "left" },
48
- verticalPosition: { default: "top" },
49
- dark: { type: Boolean, default: !1 },
50
- width: { default: "200px" }
51
- },
52
- setup(l) {
53
- return H((t) => ({
54
- "7aca7e46": t.width
55
- })), (t, e) => (i(), s("div", {
56
- class: m([
57
- "adj-hint-desktop",
58
- { "adj-hint-desktop_dark": t.dark },
59
- `adj-hint-desktop_${t.verticalPosition}`,
60
- `adj-hint-desktop_${t.horizontalPosition}`
61
- ])
62
- }, [
63
- n("div", {
64
- class: "adj-hint-desktop__text",
65
- innerHTML: t.html
66
- }, null, 8, ot),
67
- e[0] || (e[0] = n("svg", {
68
- class: "adj-hint-desktop__triangle",
69
- width: "14",
70
- height: "14",
71
- viewBox: "0 0 14 14",
72
- fill: "none",
73
- xmlns: "http://www.w3.org/2000/svg"
74
- }, [
75
- n("path", {
76
- class: "adj-hint-desktop__triangle_inner",
77
- d: "M13 13L7 2L1 13H13Z"
78
- }),
79
- n("path", {
80
- class: "adj-hint-desktop__triangle_border",
81
- d: "M13 13L7 2L1 13"
82
- })
83
- ], -1))
84
- ], 2));
85
- }
86
- }), nt = /* @__PURE__ */ c(at, [["__scopeId", "data-v-c37cada5"]]), it = { class: "adj-modal" }, lt = { class: "adj-modal_wrapper" }, st = /* @__PURE__ */ f({
87
- __name: "AdjModal",
88
- props: {
89
- show: { type: Boolean },
90
- width: { default: "100%" },
91
- hideClose: { type: Boolean, default: !1 }
92
- },
93
- emits: ["update:show"],
94
- setup(l, { emit: t }) {
95
- H((a) => ({
96
- 65069964: a.width
97
- }));
98
- const e = t;
99
- function o() {
100
- e("update:show", !1);
101
- }
102
- return (a, d) => (i(), s("div", it, [
103
- B(W, { name: "adj-fade" }, {
104
- default: z(() => [
105
- A(n("div", lt, d[1] || (d[1] = [
106
- n("div", { class: "adj-modal__background" }, null, -1)
107
- ]), 512), [
108
- [I, a.show]
109
- ])
110
- ]),
111
- _: 1
112
- }),
113
- B(W, { name: "adj-popup-bottom" }, {
114
- default: z(() => [
115
- A(n("div", {
116
- class: "adj-modal_wrapper",
117
- onClick: g(o, ["stop"])
118
- }, [
119
- n("div", {
120
- class: "adj-modal__window",
121
- onClick: d[0] || (d[0] = g(() => {
122
- }, ["stop"]))
123
- }, [
124
- a.hideClose ? P("", !0) : (i(), s("div", {
125
- key: 0,
126
- class: "adj-modal__close icon-close",
127
- onClick: g(o, ["stop"])
128
- })),
129
- E(a.$slots, "default", {}, void 0, !0)
130
- ])
131
- ], 512), [
132
- [I, a.show]
133
- ])
134
- ]),
135
- _: 3
136
- })
137
- ]));
138
- }
139
- }), dt = /* @__PURE__ */ c(st, [["__scopeId", "data-v-921de616"]]), ut = { class: "adj-hint" }, rt = ["innerHTML"], y = 14, $ = 14, ct = /* @__PURE__ */ f({
140
- __name: "AdjHint",
141
- props: {
142
- html: { default: "" },
143
- horizontalPosition: { default: "left" },
144
- verticalPosition: { default: "bottom" },
145
- dark: { type: Boolean, default: !0 },
146
- modalMode: { type: Boolean, default: !1 }
147
- },
148
- setup(l) {
149
- const t = l, e = r(!1), o = r(!1), { width: a, height: d } = tt(), k = N("targetSlot"), S = N("targetHint"), v = r(0), j = r(0), { elementWidth: w, elementHeight: R } = q(k), b = r(0), M = r(80), { elementWidth: C, elementHeight: L } = q(S), p = r(t.horizontalPosition), h = r(t.verticalPosition);
150
- let _ = 10 + $ / 2;
151
- function O() {
152
- (!t.modalMode || a.value >= 1200) && (U(), G(), J(), e.value = !0);
153
- }
154
- function F() {
155
- (!t.modalMode || a.value >= 1200) && (e.value = !1);
156
- }
157
- function Z() {
158
- t.modalMode && a.value < 1200 && (o.value = !0);
159
- }
160
- function U() {
161
- if (k.value !== null) {
162
- const u = k.value.getBoundingClientRect();
163
- v.value = u.left, j.value = u.top;
164
- }
165
- }
166
- function G() {
167
- t.dark && (_ = 15 + $ / 2), p.value = t.horizontalPosition, h.value = t.verticalPosition, t.horizontalPosition === "left" && v.value + w.value / 2 + _ - C.value < 0 ? p.value = "right" : t.horizontalPosition === "right" && v.value + w.value / 2 - _ + C.value > a.value && (p.value = "left"), t.verticalPosition === "top" && j.value - y - L.value < 0 ? h.value = "bottom" : t.verticalPosition === "bottom" && j.value + R.value + y + L.value > d.value && (h.value = "top");
168
- }
169
- function J() {
170
- t.dark && (_ = 15 + $ / 2), p.value === "left" ? b.value = v.value + w.value / 2 + _ - C.value : p.value === "center" ? b.value = v.value + w.value / 2 - $ / 2 - C.value / 2 : p.value === "right" && (b.value = v.value + w.value / 2 - _), h.value == "top" ? M.value = j.value - y - L.value : h.value == "bottom" && (M.value = j.value + R.value + y);
171
- }
172
- return (u, T) => (i(), s("div", ut, [
173
- n("div", {
174
- class: "adj-hint__slot",
175
- onMouseenter: g(O, ["stop"]),
176
- onMouseleave: g(F, ["stop"]),
177
- onClick: g(Z, ["stop"]),
178
- ref_key: "targetSlot",
179
- ref: k
180
- }, [
181
- E(u.$slots, "default", {}, void 0, !0)
182
- ], 544),
183
- n("div", {
184
- class: "adj-hint__hint",
185
- style: Q({
186
- left: b.value + "px",
187
- top: M.value + "px",
188
- visibility: e.value ? "visible" : "hidden"
189
- }),
190
- ref_key: "targetHint",
191
- ref: S
192
- }, [
193
- A(B(nt, {
194
- html: u.html,
195
- horizontalPosition: p.value,
196
- verticalPosition: h.value,
197
- dark: u.dark,
198
- width: "252px"
199
- }, null, 8, ["html", "horizontalPosition", "verticalPosition", "dark"]), [
200
- [I, u.html !== ""]
201
- ])
202
- ], 4),
203
- B(dt, {
204
- show: o.value,
205
- "onUpdate:show": T[0] || (T[0] = (K) => o.value = K),
206
- width: "430px"
207
- }, {
208
- default: z(() => [
209
- n("div", {
210
- class: "adj-hint__modal",
211
- innerHTML: u.html
212
- }, null, 8, rt)
213
- ]),
214
- _: 1
215
- }, 8, ["show"])
216
- ]));
217
- }
218
- }), $t = /* @__PURE__ */ c(ct, [["__scopeId", "data-v-4e4cccc0"]]), pt = {
219
- key: 0,
220
- class: "adj-icon-button__qty adj-text-12"
221
- }, ft = /* @__PURE__ */ f({
222
- __name: "AdjIconButton",
223
- props: {
224
- iconName: {},
225
- qty: { default: 0 },
226
- size: { default: "medium" },
227
- design: { default: "white-back" },
228
- disabled: { type: Boolean, default: !1 }
229
- },
230
- emits: ["click"],
231
- setup(l) {
232
- return (t, e) => (i(), s("div", {
233
- class: m(["adj-icon-button", {
234
- [`adj-icon-button_${t.size}`]: !0,
235
- [`adj-icon-button_${t.design}`]: !0,
236
- "adj-icon-button_disabled": t.disabled
237
- }]),
238
- onClick: e[0] || (e[0] = (o) => t.$emit("click"))
239
- }, [
240
- n("i", {
241
- class: m(["adj-icon-button__icon", t.iconName])
242
- }, null, 2),
243
- t.qty > 0 ? (i(), s("div", pt, D(t.qty), 1)) : P("", !0)
244
- ], 2));
245
- }
246
- }), Pt = /* @__PURE__ */ c(ft, [["__scopeId", "data-v-bd9a4816"]]), vt = { class: "adj-skeleton-item" }, ht = /* @__PURE__ */ f({
247
- __name: "AdjSkeletonItem",
248
- props: {
249
- width: { default: "100%" },
250
- height: { default: "unset" },
251
- aspectRatio: { default: "unset" },
252
- marginTop: { default: "0px" }
253
- },
254
- setup(l) {
255
- H((o) => ({
256
- "73b36252": o.width,
257
- "5f18ed58": o.marginTop,
258
- ac595bde: e.value,
259
- "3656db94": o.height
260
- }));
261
- const t = l, e = V(() => t.height !== "unset" ? "unset" : t.aspectRatio);
262
- return (o, a) => (i(), s("div", vt));
263
- }
264
- }), _t = /* @__PURE__ */ c(ht, [["__scopeId", "data-v-c6820958"]]), mt = { class: "adj-skeleton" }, gt = /* @__PURE__ */ f({
265
- __name: "AdjSkeleton",
266
- props: {
267
- loaders: { default: () => [] },
268
- width: { default: "100%" },
269
- centered: { type: Boolean, default: !1 }
270
- },
271
- setup(l) {
272
- H((o) => ({
273
- c2e40cd4: e.value,
274
- "019b6ab8": o.width
275
- }));
276
- const t = l, e = V(() => t.centered ? "center" : "unset");
277
- return (o, a) => (i(), s("div", mt, [
278
- (i(!0), s(X, null, Y(o.loaders, (d) => (i(), x(_t, {
279
- width: d.width,
280
- height: d.height,
281
- "aspect-ratio": d.aspectRatio,
282
- "margin-top": d.marginTop
283
- }, null, 8, ["width", "height", "aspect-ratio", "margin-top"]))), 256))
284
- ]));
285
- }
286
- }), Bt = /* @__PURE__ */ c(gt, [["__scopeId", "data-v-080d9f14"]]), jt = {}, wt = {
287
- viewBox: "0 0 34 34",
288
- fill: "none",
289
- xmlns: "http://www.w3.org/2000/svg"
290
- };
291
- function kt(l, t) {
292
- return i(), s("svg", wt, t[0] || (t[0] = [
293
- n("circle", {
294
- cx: "17",
295
- cy: "17",
296
- r: "16.5"
297
- }, null, -1),
298
- 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
- ]));
300
- }
301
- const Ht = /* @__PURE__ */ c(jt, [["render", kt], ["__scopeId", "data-v-f04662e9"]]);
302
- export {
303
- Pt as A,
304
- c as _,
305
- Ht as a,
306
- Bt as b,
307
- $t as c,
308
- yt as d,
309
- nt as e,
310
- dt as f,
311
- _t as g
312
- };
@@ -1,2 +0,0 @@
1
- import { default as AdjPersonalizitionConfigurator } from './AdjPersonalizitionConfigurator.vue';
2
- export declare const argsConfigurator: InstanceType<typeof AdjPersonalizitionConfigurator>['$props'];
@@ -1,6 +0,0 @@
1
- import { default as AdjPersonalizitionConfigurator } from './AdjPersonalizitionConfigurator.vue';
2
- import { Meta, StoryObj } from '@storybook/vue3';
3
- declare const meta: Meta<typeof AdjPersonalizitionConfigurator>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const LeftBottom: Story;
@@ -1,6 +0,0 @@
1
- import { default as AdjPersonalizitionConfiguratorElements } from './AdjPersonalizitionConfiguratorElements.vue';
2
- import { IAdjPersonalizitionConfiguratorElementsItem } from './IAdjPersonalizitionConfiguratorElementsItem';
3
- import { IAdjPersonalizitionConfiguratorElementsModel } from './IAdjPersonalizitionConfiguratorElementsModel';
4
- export declare const items: IAdjPersonalizitionConfiguratorElementsItem[];
5
- export declare const modelValue: IAdjPersonalizitionConfiguratorElementsModel;
6
- export declare const argsConfigurator: InstanceType<typeof AdjPersonalizitionConfiguratorElements>['$props'];
@@ -1,6 +0,0 @@
1
- import { default as AdjPersonalizitionConfiguratorElements } from './AdjPersonalizitionConfiguratorElements.vue';
2
- import { Meta, StoryObj } from '@storybook/vue3';
3
- declare const meta: Meta<typeof AdjPersonalizitionConfiguratorElements>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const LeftBottom: Story;
@@ -1,4 +0,0 @@
1
- import { TAdjPersonalizitionConfiguratorElementsValue } from './TAdjPersonalizitionConfiguratorElementsValue';
2
- export interface IAdjPersonalizitionConfiguratorElementsModel {
3
- [id: string]: TAdjPersonalizitionConfiguratorElementsValue;
4
- }
@@ -1,5 +0,0 @@
1
- export interface IAdjPersonalizitionConfiguratorElementsNumber {
2
- value: number;
3
- min?: number;
4
- max?: number;
5
- }