@poni/adjutant-ui 0.0.102 → 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.
Files changed (31) hide show
  1. package/dist/AdjSvgActive-BrJ67q86.js +310 -0
  2. package/dist/AdjSvgActive-pl2OlG7l.cjs +1 -0
  3. package/dist/components/AdjFilterSelect/AdjFilterSelect.vue.d.ts +3 -1
  4. package/dist/components/AdjFilterSelect/IAdjFilterSelectItem.d.ts +1 -1
  5. package/dist/components/AdjHint/AdjHint.vue.d.ts +6 -3
  6. package/dist/components/AdjSelect/AdjSelect.vue.d.ts +4 -1
  7. package/dist/components/AdjSelectImage/AdjSelectImage.vue.d.ts +2 -1
  8. package/dist/components/AdjSelectModern/AdjSelectModern.vue.d.ts +3 -1
  9. package/dist/components/AdjUploadFile/AdjUploadFile.vue.d.ts +3 -1
  10. package/dist/components/constructor/AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.mock.d.ts +2 -0
  11. package/dist/components/constructor/AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.stories.d.ts +6 -0
  12. package/dist/components/constructor/AdjPersonalizitionConfigurator/AdjPersonalizitionConfigurator.vue.d.ts +74 -0
  13. package/dist/components/constructor/elements/AdjNavigatorWrapper/AdjNavigatorWrapper.vue.d.ts +1 -1
  14. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.mock.d.ts +6 -0
  15. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.stories.d.ts +6 -0
  16. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/AdjPersonalizitionConfiguratorElements.vue.d.ts +34 -0
  17. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsItem.d.ts +18 -0
  18. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsModel.d.ts +4 -0
  19. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsNumber.d.ts +5 -0
  20. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsTexture.d.ts +14 -0
  21. package/dist/components/constructor/elements/AdjPersonalizitionConfiguratorElements/TAdjPersonalizitionConfiguratorElementsValue.d.ts +9 -0
  22. package/dist/components.cjs +1 -1
  23. package/dist/components.js +294 -301
  24. package/dist/constructor.cjs +1 -1
  25. package/dist/constructor.js +6 -6
  26. package/dist/misc/types.d.ts +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/vars.scss +3 -1
  29. package/package.json +18 -18
  30. package/dist/AdjSvgActive-_jf_nXsW.js +0 -312
  31. package/dist/AdjSvgActive-q5vUaXKl.cjs +0 -1
@@ -0,0 +1,310 @@
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
+ __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 (e, t) => (i(), s("button", {
18
+ class: m(["adj-button", {
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
+ }]),
25
+ onClick: t[0] || (t[0] = (o) => e.disabled ? 0 : e.$emit("click"))
26
+ }, [
27
+ e.iconLeft ? (i(), s("i", {
28
+ key: 0,
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
+ key: 1,
34
+ class: m(e.iconRight)
35
+ }, null, 2)) : y("", !0)
36
+ ], 2));
37
+ }
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
+ __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 B((e) => ({
54
+ "7aca7e46": e.width
55
+ })), (e, t) => (i(), s("div", {
56
+ class: m([
57
+ "adj-hint-desktop",
58
+ { "adj-hint-desktop_dark": e.dark },
59
+ `adj-hint-desktop_${e.verticalPosition}`,
60
+ `adj-hint-desktop_${e.horizontalPosition}`
61
+ ])
62
+ }, [
63
+ n("div", {
64
+ class: "adj-hint-desktop__text",
65
+ innerHTML: e.html
66
+ }, null, 8, oe),
67
+ t[0] || (t[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
+ }), ne = /* @__PURE__ */ c(ae, [["__scopeId", "data-v-c37cada5"]]), ie = { class: "adj-modal" }, le = { class: "adj-modal_wrapper" }, se = /* @__PURE__ */ p({
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: e }) {
95
+ B((a) => ({
96
+ 65069964: a.width
97
+ }));
98
+ const t = e;
99
+ function o() {
100
+ t("update:show", !1);
101
+ }
102
+ return (a, d) => (i(), s("div", ie, [
103
+ P(T, { name: "adj-fade" }, {
104
+ default: z(() => [
105
+ A(n("div", le, 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
+ P(T, { 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 ? y("", !0) : (i(), s("div", {
125
+ key: 0,
126
+ class: "adj-modal__close icon-close",
127
+ onClick: g(o, ["stop"])
128
+ })),
129
+ D(a.$slots, "default", {}, void 0, !0)
130
+ ])
131
+ ], 512), [
132
+ [I, a.show]
133
+ ])
134
+ ]),
135
+ _: 3
136
+ })
137
+ ]));
138
+ }
139
+ }), de = /* @__PURE__ */ c(se, [["__scopeId", "data-v-921de616"]]), ue = { class: "adj-hint" }, re = ["innerHTML"], C = 14, $ = 14, ce = /* @__PURE__ */ p({
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 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
+ let _ = 10 + $ / 2;
151
+ function O() {
152
+ (!e.modalMode || a.value >= 1200) && (U(), G(), J(), t.value = !0);
153
+ }
154
+ function F() {
155
+ (!e.modalMode || a.value >= 1200) && (t.value = !1);
156
+ }
157
+ function Z() {
158
+ e.modalMode && a.value < 1200 && (o.value = !0);
159
+ }
160
+ function U() {
161
+ if (H.value !== null) {
162
+ const u = H.value.getBoundingClientRect();
163
+ v.value = u.left, j.value = u.top;
164
+ }
165
+ }
166
+ function G() {
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
+ }
169
+ function J() {
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
+ }
172
+ return (u, R) => (i(), s("div", ue, [
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: "refSlot"
179
+ }, [
180
+ D(u.$slots, "default", {}, void 0, !0)
181
+ ], 544),
182
+ n("div", {
183
+ class: "adj-hint__hint",
184
+ style: Q({
185
+ left: k.value + "px",
186
+ top: M.value + "px",
187
+ visibility: t.value ? "visible" : "hidden"
188
+ }),
189
+ ref: "refHint"
190
+ }, [
191
+ A(P(ne, {
192
+ html: u.html,
193
+ horizontalPosition: f.value,
194
+ verticalPosition: h.value,
195
+ dark: u.dark,
196
+ width: "252px"
197
+ }, null, 8, ["html", "horizontalPosition", "verticalPosition", "dark"]), [
198
+ [I, u.html !== ""]
199
+ ])
200
+ ], 4),
201
+ P(de, {
202
+ show: o.value,
203
+ "onUpdate:show": R[0] || (R[0] = (K) => o.value = K),
204
+ width: "430px"
205
+ }, {
206
+ default: z(() => [
207
+ n("div", {
208
+ class: "adj-hint__modal",
209
+ innerHTML: u.html
210
+ }, null, 8, re)
211
+ ]),
212
+ _: 1
213
+ }, 8, ["show"])
214
+ ]));
215
+ }
216
+ }), ye = /* @__PURE__ */ c(ce, [["__scopeId", "data-v-be48db98"]]), fe = {
217
+ key: 0,
218
+ class: "adj-icon-button__qty adj-text-12"
219
+ }, pe = /* @__PURE__ */ p({
220
+ __name: "AdjIconButton",
221
+ props: {
222
+ iconName: {},
223
+ qty: { default: 0 },
224
+ size: { default: "medium" },
225
+ design: { default: "white-back" },
226
+ disabled: { type: Boolean, default: !1 }
227
+ },
228
+ emits: ["click"],
229
+ setup(l) {
230
+ return (e, t) => (i(), s("div", {
231
+ class: m(["adj-icon-button", {
232
+ [`adj-icon-button_${e.size}`]: !0,
233
+ [`adj-icon-button_${e.design}`]: !0,
234
+ "adj-icon-button_disabled": e.disabled
235
+ }]),
236
+ onClick: t[0] || (t[0] = (o) => e.$emit("click"))
237
+ }, [
238
+ n("i", {
239
+ class: m(["adj-icon-button__icon", e.iconName])
240
+ }, null, 2),
241
+ e.qty > 0 ? (i(), s("div", fe, q(e.qty), 1)) : y("", !0)
242
+ ], 2));
243
+ }
244
+ }), Pe = /* @__PURE__ */ c(pe, [["__scopeId", "data-v-bd9a4816"]]), ve = { class: "adj-skeleton-item" }, he = /* @__PURE__ */ p({
245
+ __name: "AdjSkeletonItem",
246
+ props: {
247
+ width: { default: "100%" },
248
+ height: { default: "unset" },
249
+ aspectRatio: { default: "unset" },
250
+ marginTop: { default: "0px" }
251
+ },
252
+ setup(l) {
253
+ B((o) => ({
254
+ "73b36252": o.width,
255
+ "5f18ed58": o.marginTop,
256
+ ac595bde: t.value,
257
+ "3656db94": o.height
258
+ }));
259
+ const e = l, t = E(() => e.height !== "unset" ? "unset" : e.aspectRatio);
260
+ return (o, a) => (i(), s("div", ve));
261
+ }
262
+ }), _e = /* @__PURE__ */ c(he, [["__scopeId", "data-v-c6820958"]]), me = { class: "adj-skeleton" }, ge = /* @__PURE__ */ p({
263
+ __name: "AdjSkeleton",
264
+ props: {
265
+ loaders: { default: () => [] },
266
+ width: { default: "100%" },
267
+ centered: { type: Boolean, default: !1 }
268
+ },
269
+ setup(l) {
270
+ B((o) => ({
271
+ c2e40cd4: t.value,
272
+ "019b6ab8": o.width
273
+ }));
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, {
277
+ width: d.width,
278
+ height: d.height,
279
+ "aspect-ratio": d.aspectRatio,
280
+ "margin-top": d.marginTop
281
+ }, null, 8, ["width", "height", "aspect-ratio", "margin-top"]))), 256))
282
+ ]));
283
+ }
284
+ }), Be = /* @__PURE__ */ c(ge, [["__scopeId", "data-v-080d9f14"]]), je = {}, we = {
285
+ viewBox: "0 0 34 34",
286
+ fill: "none",
287
+ xmlns: "http://www.w3.org/2000/svg"
288
+ };
289
+ function ke(l, e) {
290
+ return i(), s("svg", we, e[0] || (e[0] = [
291
+ n("circle", {
292
+ cx: "17",
293
+ cy: "17",
294
+ r: "16.5"
295
+ }, null, -1),
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)
297
+ ]));
298
+ }
299
+ const He = /* @__PURE__ */ c(je, [["render", ke], ["__scopeId", "data-v-f04662e9"]]);
300
+ export {
301
+ Pe as A,
302
+ c as _,
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
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;
@@ -25,5 +25,7 @@ declare const _default: import('vue').DefineComponent<{
25
25
  }>, {
26
26
  items: IAdjFilterSelectItem[];
27
27
  position: THorizontalPosition;
28
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
29
+ refElement: HTMLDivElement;
30
+ }, any>;
29
31
  export default _default;
@@ -1,5 +1,5 @@
1
1
  export interface IAdjFilterSelectItem {
2
2
  id: number;
3
- label: string;
3
+ name: string;
4
4
  disabled?: boolean;
5
5
  }
@@ -4,8 +4,8 @@ declare function __VLS_template(): {
4
4
  default?(_: {}): any;
5
5
  };
6
6
  refs: {
7
- targetSlot: HTMLDivElement;
8
- targetHint: HTMLDivElement;
7
+ refSlot: HTMLDivElement;
8
+ refHint: HTMLDivElement;
9
9
  };
10
10
  attrs: Partial<{}>;
11
11
  };
@@ -38,7 +38,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
38
38
  verticalPosition: TVerticalPosition;
39
39
  dark: boolean;
40
40
  modalMode: boolean;
41
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
42
+ refSlot: HTMLDivElement;
43
+ refHint: HTMLDivElement;
44
+ }, any>;
42
45
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
43
46
  export default _default;
44
47
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -49,5 +49,8 @@ declare const _default: import('vue').DefineComponent<{
49
49
  items: IAdjSelectItem[];
50
50
  comment: string;
51
51
  showSearch: boolean;
52
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
52
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
53
+ refElement: HTMLDivElement;
54
+ refInput: HTMLInputElement;
55
+ }, any>;
53
56
  export default _default;
@@ -33,6 +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
- targetRoot: HTMLDivElement;
36
+ refRoot: HTMLDivElement;
37
+ refElement: HTMLDivElement;
37
38
  }, any>;
38
39
  export default _default;
@@ -26,5 +26,7 @@ declare const _default: import('vue').DefineComponent<{
26
26
  design: "text" | "image" | "background";
27
27
  items: IAdjSelectModernItem[];
28
28
  position: THorizontalPosition;
29
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
30
+ refElement: HTMLDivElement;
31
+ }, any>;
30
32
  export default _default;
@@ -24,5 +24,7 @@ declare const _default: import('vue').DefineComponent<{
24
24
  }>, {
25
25
  width: number;
26
26
  height: number;
27
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
28
+ refFileInput: HTMLInputElement;
29
+ }, any>;
28
30
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as AdjPersonalizitionConfigurator } from './AdjPersonalizitionConfigurator.vue';
2
+ export declare const argsConfigurator: InstanceType<typeof AdjPersonalizitionConfigurator>['$props'];
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,74 @@
1
+ import { TPersonalizationID } from '../../../misc/types';
2
+ import { IAdjPersonalizitionConfiguratorElementsItem } from '../elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsItem';
3
+ import { IAdjPersonalizitionConfiguratorElementsModel } from '../elements/AdjPersonalizitionConfiguratorElements/IAdjPersonalizitionConfiguratorElementsModel';
4
+ declare const _default: import('vue').DefineComponent<{
5
+ /** ID */
6
+ id: TPersonalizationID;
7
+ /** Название/заголовок */
8
+ name: string;
9
+ /** Заголовок кнопки Сохранить */
10
+ titleSave: string;
11
+ /** Заголовок кнопки Добавить... */
12
+ titleAdd: string;
13
+ /** Может ли быть несколько персонализаций */
14
+ multiple?: boolean;
15
+ /** Выбранный элемент */
16
+ activeModelAndItemId?: number;
17
+ /** Персонализации и модели */
18
+ modelsAndItems: {
19
+ items: IAdjPersonalizitionConfiguratorElementsItem[];
20
+ modelValue: IAdjPersonalizitionConfiguratorElementsModel;
21
+ }[];
22
+ /** Надпись при отсутствии файла для AdjUploadFile */
23
+ textUploadFile: string;
24
+ /** Надпись "Показать все" для AdjSelectImage */
25
+ expandTextAdjSelectImage: string;
26
+ /** Надпись "Свернуть" для AdjSelectImage */
27
+ foldTextAdjSelectImage: string;
28
+ /** Надпись "Название" для фильтра материалов AdjFilterSelect */
29
+ textAdjFilterSelect: string;
30
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
31
+ "update:modelValue": (idx: number, value: IAdjPersonalizitionConfiguratorElementsModel) => any;
32
+ clickClose: () => any;
33
+ clickSave: () => any;
34
+ clickAddPersonalization: () => any;
35
+ clickDeletePersonalization: (idx: number) => any;
36
+ "update:activeModelAndItemId": (idx: number) => any;
37
+ }, string, import('vue').PublicProps, Readonly<{
38
+ /** ID */
39
+ id: TPersonalizationID;
40
+ /** Название/заголовок */
41
+ name: string;
42
+ /** Заголовок кнопки Сохранить */
43
+ titleSave: string;
44
+ /** Заголовок кнопки Добавить... */
45
+ titleAdd: string;
46
+ /** Может ли быть несколько персонализаций */
47
+ multiple?: boolean;
48
+ /** Выбранный элемент */
49
+ activeModelAndItemId?: number;
50
+ /** Персонализации и модели */
51
+ modelsAndItems: {
52
+ items: IAdjPersonalizitionConfiguratorElementsItem[];
53
+ modelValue: IAdjPersonalizitionConfiguratorElementsModel;
54
+ }[];
55
+ /** Надпись при отсутствии файла для AdjUploadFile */
56
+ textUploadFile: string;
57
+ /** Надпись "Показать все" для AdjSelectImage */
58
+ expandTextAdjSelectImage: string;
59
+ /** Надпись "Свернуть" для AdjSelectImage */
60
+ foldTextAdjSelectImage: string;
61
+ /** Надпись "Название" для фильтра материалов AdjFilterSelect */
62
+ textAdjFilterSelect: string;
63
+ }> & Readonly<{
64
+ "onUpdate:modelValue"?: ((idx: number, value: IAdjPersonalizitionConfiguratorElementsModel) => any) | undefined;
65
+ onClickClose?: (() => any) | undefined;
66
+ onClickSave?: (() => any) | undefined;
67
+ onClickAddPersonalization?: (() => any) | undefined;
68
+ onClickDeletePersonalization?: ((idx: number) => any) | undefined;
69
+ "onUpdate:activeModelAndItemId"?: ((idx: number) => any) | undefined;
70
+ }>, {
71
+ multiple: boolean;
72
+ activeModelAndItemId: number;
73
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
74
+ export default _default;
@@ -1,5 +1,5 @@
1
- import { IAdjNavigatorWrapperActive } from './IAdjNavigatorWrapperActive';
2
1
  import { IAdjNavigatorPassive } from '../AdjNavigatorItem/IAdjNavigatorPassive';
2
+ import { IAdjNavigatorWrapperActive } from './IAdjNavigatorWrapperActive';
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  items: (IAdjNavigatorPassive | IAdjNavigatorWrapperActive)[];
5
5
  /** Отображать надписи под квадратами */
@@ -0,0 +1,6 @@
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'];
@@ -0,0 +1,6 @@
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;
@@ -0,0 +1,34 @@
1
+ import { IAdjPersonalizitionConfiguratorElementsModel } from './IAdjPersonalizitionConfiguratorElementsModel';
2
+ import { IAdjPersonalizitionConfiguratorElementsItem } from './IAdjPersonalizitionConfiguratorElementsItem';
3
+ declare const _default: import('vue').DefineComponent<{
4
+ /** Массив ui-элементов */
5
+ items: IAdjPersonalizitionConfiguratorElementsItem[];
6
+ /** Выбранные значения */
7
+ modelValue: IAdjPersonalizitionConfiguratorElementsModel;
8
+ /** Надпись при отсутствии файла для AdjUploadFile */
9
+ textUploadFile: string;
10
+ /** Надпись "Показать все" для AdjSelectImage */
11
+ expandTextAdjSelectImage: string;
12
+ /** Надпись "Свернуть" для AdjSelectImage */
13
+ foldTextAdjSelectImage: string;
14
+ /** Надпись "Название" для фильтра материалов AdjFilterSelect */
15
+ textAdjFilterSelect: string;
16
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
+ "update:modelValue": (value: IAdjPersonalizitionConfiguratorElementsModel) => any;
18
+ }, string, import('vue').PublicProps, Readonly<{
19
+ /** Массив ui-элементов */
20
+ items: IAdjPersonalizitionConfiguratorElementsItem[];
21
+ /** Выбранные значения */
22
+ modelValue: IAdjPersonalizitionConfiguratorElementsModel;
23
+ /** Надпись при отсутствии файла для AdjUploadFile */
24
+ textUploadFile: string;
25
+ /** Надпись "Показать все" для AdjSelectImage */
26
+ expandTextAdjSelectImage: string;
27
+ /** Надпись "Свернуть" для AdjSelectImage */
28
+ foldTextAdjSelectImage: string;
29
+ /** Надпись "Название" для фильтра материалов AdjFilterSelect */
30
+ textAdjFilterSelect: string;
31
+ }> & Readonly<{
32
+ "onUpdate:modelValue"?: ((value: IAdjPersonalizitionConfiguratorElementsModel) => any) | undefined;
33
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { TPersonalizationTemplate } from '../../../../misc/types';
2
+ import { TAdjPersonalizitionConfiguratorElementsValue } from './TAdjPersonalizitionConfiguratorElementsValue';
3
+ export interface IAdjPersonalizitionConfiguratorElementsItem {
4
+ /** ID */
5
+ id: string;
6
+ /** Название/заголовок */
7
+ name: string;
8
+ /** Шаблон */
9
+ template: TPersonalizationTemplate;
10
+ /** Порядок сортировки */
11
+ sort: number;
12
+ /** Прятать ли разделитель */
13
+ hideHr?: boolean;
14
+ /** Использовать ли фильтр */
15
+ useFilter?: boolean;
16
+ /** Значения персонализации */
17
+ values: TAdjPersonalizitionConfiguratorElementsValue[];
18
+ }
@@ -0,0 +1,4 @@
1
+ import { TAdjPersonalizitionConfiguratorElementsValue } from './TAdjPersonalizitionConfiguratorElementsValue';
2
+ export interface IAdjPersonalizitionConfiguratorElementsModel {
3
+ [id: string]: TAdjPersonalizitionConfiguratorElementsValue;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface IAdjPersonalizitionConfiguratorElementsNumber {
2
+ value: number;
3
+ min?: number;
4
+ max?: number;
5
+ }
@@ -0,0 +1,14 @@
1
+ export interface IAdjPersonalizitionConfiguratorElementsTexture {
2
+ /** ID */
3
+ id: number | string;
4
+ /** Название/заголовок */
5
+ name: string;
6
+ /** Url-адрес картинки */
7
+ image: string;
8
+ textureRef: {
9
+ id: number;
10
+ type: number;
11
+ name: string;
12
+ key: string;
13
+ };
14
+ }
@@ -0,0 +1,9 @@
1
+ import { IAdjCheckboxItem } from '../../../AdjCheckbox/IAdjCheckboxItem';
2
+ import { IAdjRadioItem } from '../../../AdjRadio/IAdjRadioItem';
3
+ import { IAdjSelectImageItem } from '../../../AdjSelectImage/IAdjSelectImageItem';
4
+ import { IAdjSelectModernItem } from '../../../AdjSelectModern/IAdjSelectModernItem';
5
+ import { IAdjTabsItem } from '../../../AdjTabs/IAdjTabsItem';
6
+ import { IAdjUploadFileItem } from '../../../AdjUploadFile/IAdjUploadFileItem';
7
+ import { IAdjPersonalizitionConfiguratorElementsNumber } from './IAdjPersonalizitionConfiguratorElementsNumber';
8
+ import { IAdjPersonalizitionConfiguratorElementsTexture } from './IAdjPersonalizitionConfiguratorElementsTexture';
9
+ export type TAdjPersonalizitionConfiguratorElementsValue = Partial<IAdjCheckboxItem | IAdjRadioItem | IAdjSelectImageItem | IAdjSelectModernItem | IAdjTabsItem | IAdjUploadFileItem | IAdjPersonalizitionConfiguratorElementsNumber | IAdjPersonalizitionConfiguratorElementsTexture>;