prlg-ui 1.8.65 → 1.8.66
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/Image-CC-8vrJo.js +259 -0
- package/dist/Image-Cbf_uRLj.cjs +1 -0
- package/dist/blocks/index.cjs.js +1 -1
- package/dist/blocks/index.es.js +3 -3
- package/dist/eventBus.util-Bl8G4ISe.js +75 -0
- package/dist/eventBus.util-D6hW1PTE.cjs +1 -0
- package/dist/index.d.ts +15 -66
- package/dist/parseFileSize.util-Bg1rLRLQ.cjs +1 -0
- package/dist/{parseFileSize.util-BYvPolRo.js → parseFileSize.util-CxVk4CvB.js} +349 -374
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +2405 -2518
- package/dist/{uploadFile.util-DUcrBxO_.cjs → uploadFile.util-DCFkx3w3.cjs} +1 -1
- package/dist/{uploadFile.util-Dgr-qsrj.js → uploadFile.util-DhavPrlY.js} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +3 -3
- package/dist/utils.d.ts +6 -17
- package/package.json +1 -1
- package/dist/Image-DBUjo8i1.js +0 -201
- package/dist/Image-DL600oqG.cjs +0 -1
- package/dist/eventBus.util-7AmGBWLO.cjs +0 -1
- package/dist/eventBus.util-BDMuoJDS.js +0 -88
- package/dist/parseFileSize.util-CjKeh3NJ.cjs +0 -1
- package/dist/utils/overlayManager.ts +0 -90
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { inject as P, ref as h, onMounted as z, provide as O, onUnmounted as T, defineComponent as w, useId as S, computed as k, createElementBlock as d, openBlock as n, normalizeClass as C, createCommentVNode as f, createBlock as b, createVNode as _, unref as v, resolveDynamicComponent as V, toDisplayString as y, Teleport as R, Transition as N, withCtx as A, normalizeStyle as Z, createElementVNode as m, useTemplateRef as j, Fragment as W } from "vue";
|
|
2
|
+
import { F as Y, E as D, W as L, P as K, C as E, _ as F, a as U } from "./FileIcon-maHE2Nhr.js";
|
|
3
|
+
import { f as M } from "./parseFileSize.util-CxVk4CvB.js";
|
|
4
|
+
class q {
|
|
5
|
+
stack = [];
|
|
6
|
+
baseZIndex = {
|
|
7
|
+
confirm: 1400,
|
|
8
|
+
modal: 1300,
|
|
9
|
+
drawer: 1200,
|
|
10
|
+
popover: 1100,
|
|
11
|
+
tooltip: 1e3
|
|
12
|
+
};
|
|
13
|
+
step = 10;
|
|
14
|
+
// шаг между "корневыми" оверлеями одного типа
|
|
15
|
+
childStep = 1;
|
|
16
|
+
// шаг для вложенных (popover внутри modal и т.д.)
|
|
17
|
+
idCounter = 0;
|
|
18
|
+
listeners = /* @__PURE__ */ new Set();
|
|
19
|
+
subscribe(a) {
|
|
20
|
+
return this.listeners.add(a), () => this.listeners.delete(a);
|
|
21
|
+
}
|
|
22
|
+
notify() {
|
|
23
|
+
this.listeners.forEach((a) => a());
|
|
24
|
+
}
|
|
25
|
+
register(a, t) {
|
|
26
|
+
const o = ++this.idCounter, l = t ? this.stack.find((c) => c.id === t) : void 0;
|
|
27
|
+
let i;
|
|
28
|
+
if (l)
|
|
29
|
+
i = l.zIndex + this.childStep;
|
|
30
|
+
else {
|
|
31
|
+
const c = this.stack.filter((u) => u.type === a && !u.parentId);
|
|
32
|
+
i = (c.length ? Math.max(...c.map((u) => u.zIndex)) : this.baseZIndex[a]) + this.step;
|
|
33
|
+
}
|
|
34
|
+
const s = { id: o, type: a, parentId: t ?? null, zIndex: i };
|
|
35
|
+
return this.stack.push(s), this.notify(), s;
|
|
36
|
+
}
|
|
37
|
+
unregister(a) {
|
|
38
|
+
this.stack = this.stack.filter((t) => t.id !== a), this.notify();
|
|
39
|
+
}
|
|
40
|
+
getTop() {
|
|
41
|
+
return this.stack.length ? this.stack[this.stack.length - 1] : null;
|
|
42
|
+
}
|
|
43
|
+
isTop(a) {
|
|
44
|
+
return this.getTop()?.id === a;
|
|
45
|
+
}
|
|
46
|
+
getStack() {
|
|
47
|
+
return [...this.stack];
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const I = new q(), x = Symbol("OVERLAY_PARENT");
|
|
51
|
+
function G(e) {
|
|
52
|
+
const a = P(x, null), t = h(null);
|
|
53
|
+
return z(() => {
|
|
54
|
+
t.value = I.register(e, a ?? null), t.value && O(x, t.value.id);
|
|
55
|
+
}), T(() => {
|
|
56
|
+
t.value && I.unregister(t.value.id);
|
|
57
|
+
}), {
|
|
58
|
+
zIndex: t,
|
|
59
|
+
isTop: () => t.value ? I.isTop(t.value.id) : !1
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function H(e) {
|
|
63
|
+
return e.startsWith("image/") ? "image" : e === "application/pdf" ? "pdf" : e === "application/msword" || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? "word" : e === "application/vnd.ms-excel" || e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? "excel" : "other";
|
|
64
|
+
}
|
|
65
|
+
const J = {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: "file__title"
|
|
68
|
+
}, Q = {
|
|
69
|
+
key: 2,
|
|
70
|
+
class: "file__info"
|
|
71
|
+
}, X = {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "file__type"
|
|
74
|
+
}, ee = {
|
|
75
|
+
key: 1,
|
|
76
|
+
class: "file__info-separator"
|
|
77
|
+
}, te = {
|
|
78
|
+
key: 2,
|
|
79
|
+
class: "file__size"
|
|
80
|
+
}, le = /* @__PURE__ */ w({
|
|
81
|
+
__name: "File",
|
|
82
|
+
props: {
|
|
83
|
+
file: {},
|
|
84
|
+
viewName: { type: Boolean, default: !1 },
|
|
85
|
+
outlined: { type: Boolean, default: !0 },
|
|
86
|
+
removable: { type: Boolean }
|
|
87
|
+
},
|
|
88
|
+
emits: ["remove"],
|
|
89
|
+
setup(e, { emit: a }) {
|
|
90
|
+
const t = a, o = S(), l = h(null);
|
|
91
|
+
async function i(r, u = "image") {
|
|
92
|
+
const p = await (await fetch(r)).blob(), $ = p.type.split("/")[1] || "", B = $ ? `${u}.${$}` : u;
|
|
93
|
+
return new File([p], B, { type: p.type });
|
|
94
|
+
}
|
|
95
|
+
const s = k(() => l.value && l.value.mime ? H(l.value.mime) : null), c = k(() => {
|
|
96
|
+
switch (s.value) {
|
|
97
|
+
case "pdf":
|
|
98
|
+
return K;
|
|
99
|
+
case "word":
|
|
100
|
+
return L;
|
|
101
|
+
case "excel":
|
|
102
|
+
return D;
|
|
103
|
+
case "other":
|
|
104
|
+
default:
|
|
105
|
+
return Y;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
return z(async () => {
|
|
109
|
+
if (typeof e.file == "string") {
|
|
110
|
+
const r = await i(e.file);
|
|
111
|
+
l.value = {
|
|
112
|
+
id: o,
|
|
113
|
+
url: e.file,
|
|
114
|
+
name: r.name,
|
|
115
|
+
mime: r.type,
|
|
116
|
+
size: r.size
|
|
117
|
+
};
|
|
118
|
+
} else
|
|
119
|
+
l.value = e.file;
|
|
120
|
+
}), (r, u) => (n(), d("div", {
|
|
121
|
+
class: C(["file", { "file--outlined": r.outlined }])
|
|
122
|
+
}, [
|
|
123
|
+
r.removable && typeof r.file != "string" ? (n(), d("button", {
|
|
124
|
+
key: 0,
|
|
125
|
+
class: "file__remove",
|
|
126
|
+
onClick: u[0] || (u[0] = (g) => t("remove", r.file))
|
|
127
|
+
}, [
|
|
128
|
+
_(v(E))
|
|
129
|
+
])) : f("", !0),
|
|
130
|
+
(n(), b(V(c.value), { class: "file__icon" })),
|
|
131
|
+
l.value && l.value.name && r.viewName ? (n(), d("div", J, y(l.value ? l.value.name.split(".")[0] : "unknown"), 1)) : f("", !0),
|
|
132
|
+
l.value ? (n(), d("div", Q, [
|
|
133
|
+
l.value.mime ? (n(), d("div", X, y(s.value), 1)) : f("", !0),
|
|
134
|
+
l.value.mime && l.value.size ? (n(), d("div", ee)) : f("", !0),
|
|
135
|
+
l.value.size ? (n(), d("div", te, y(l.value ? v(M)(l.value.size) : "0 Б"), 1)) : f("", !0)
|
|
136
|
+
])) : f("", !0)
|
|
137
|
+
], 2));
|
|
138
|
+
}
|
|
139
|
+
}), ge = /* @__PURE__ */ F(le, [["__scopeId", "data-v-9dee864d"]]), se = { class: "image-full-modal__wrapper" }, ae = { class: "image-full-modal__header" }, ie = { class: "image-full-modal__main" }, ne = ["src", "alt"], oe = /* @__PURE__ */ w({
|
|
140
|
+
__name: "ImageFullModal",
|
|
141
|
+
props: {
|
|
142
|
+
src: {},
|
|
143
|
+
alt: {}
|
|
144
|
+
},
|
|
145
|
+
setup(e, { expose: a }) {
|
|
146
|
+
const t = h(!1), { zIndex: o } = G("modal");
|
|
147
|
+
return a({
|
|
148
|
+
open: () => {
|
|
149
|
+
t.value = !0;
|
|
150
|
+
},
|
|
151
|
+
close: () => {
|
|
152
|
+
t.value = !1;
|
|
153
|
+
}
|
|
154
|
+
}), (l, i) => (n(), b(R, { to: "body" }, [
|
|
155
|
+
_(N, { name: "fade" }, {
|
|
156
|
+
default: A(() => [
|
|
157
|
+
t.value ? (n(), d("div", {
|
|
158
|
+
key: 0,
|
|
159
|
+
class: "image-full-modal",
|
|
160
|
+
style: Z({ zIndex: v(o)?.zIndex })
|
|
161
|
+
}, [
|
|
162
|
+
m("div", {
|
|
163
|
+
class: "image-full-modal__overlay",
|
|
164
|
+
onClick: i[0] || (i[0] = (s) => t.value = !1)
|
|
165
|
+
}),
|
|
166
|
+
m("div", se, [
|
|
167
|
+
m("div", ae, [
|
|
168
|
+
m("button", {
|
|
169
|
+
class: "image-full-modal__close",
|
|
170
|
+
onClick: i[1] || (i[1] = (s) => t.value = !1)
|
|
171
|
+
}, [
|
|
172
|
+
_(v(E))
|
|
173
|
+
])
|
|
174
|
+
]),
|
|
175
|
+
m("div", ie, [
|
|
176
|
+
m("img", {
|
|
177
|
+
src: l.src,
|
|
178
|
+
alt: l.alt
|
|
179
|
+
}, null, 8, ne)
|
|
180
|
+
]),
|
|
181
|
+
i[2] || (i[2] = m("div", { class: "image-full-modal__footer" }, null, -1))
|
|
182
|
+
])
|
|
183
|
+
], 4)) : f("", !0)
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
})
|
|
187
|
+
]));
|
|
188
|
+
}
|
|
189
|
+
}), re = /* @__PURE__ */ F(oe, [["__scopeId", "data-v-b9bc03dd"]]), ue = ["src", "alt"], ce = {
|
|
190
|
+
key: 1,
|
|
191
|
+
class: "image__info"
|
|
192
|
+
}, de = {
|
|
193
|
+
key: 0,
|
|
194
|
+
class: "image__size"
|
|
195
|
+
}, fe = /* @__PURE__ */ w({
|
|
196
|
+
__name: "Image",
|
|
197
|
+
props: {
|
|
198
|
+
file: {},
|
|
199
|
+
alt: {},
|
|
200
|
+
size: { default: "medium" },
|
|
201
|
+
fullScreen: { type: Boolean },
|
|
202
|
+
viewInfo: { type: Boolean, default: !1 },
|
|
203
|
+
zIndexPreview: { default: 1002 }
|
|
204
|
+
},
|
|
205
|
+
setup(e) {
|
|
206
|
+
const a = S(), t = j("imageFullModal"), o = h(null);
|
|
207
|
+
async function l(s, c = "image") {
|
|
208
|
+
const u = await (await fetch(s)).blob(), g = u.type.split("/")[1] || "", p = g ? `${c}.${g}` : c;
|
|
209
|
+
return new File([u], p, { type: u.type });
|
|
210
|
+
}
|
|
211
|
+
const i = k(() => typeof e.file == "string" ? e.file : e.file.url);
|
|
212
|
+
return z(async () => {
|
|
213
|
+
if (e.viewInfo)
|
|
214
|
+
if (typeof e.file == "string") {
|
|
215
|
+
const s = await l(e.file);
|
|
216
|
+
o.value = {
|
|
217
|
+
id: a,
|
|
218
|
+
url: e.file,
|
|
219
|
+
name: s.name,
|
|
220
|
+
mime: s.type,
|
|
221
|
+
size: s.size
|
|
222
|
+
};
|
|
223
|
+
} else
|
|
224
|
+
o.value = e.file;
|
|
225
|
+
}), (s, c) => (n(), d(W, null, [
|
|
226
|
+
m("div", {
|
|
227
|
+
class: C(["image", `image--${s.size}`, { "image--full-screen": s.fullScreen }])
|
|
228
|
+
}, [
|
|
229
|
+
s.fullScreen ? (n(), d("div", {
|
|
230
|
+
key: 0,
|
|
231
|
+
class: "image__overlay",
|
|
232
|
+
onClick: c[0] || (c[0] = (r) => t.value?.open())
|
|
233
|
+
}, [
|
|
234
|
+
_(v(U))
|
|
235
|
+
])) : f("", !0),
|
|
236
|
+
m("img", {
|
|
237
|
+
src: i.value,
|
|
238
|
+
alt: s.alt
|
|
239
|
+
}, null, 8, ue),
|
|
240
|
+
s.viewInfo && o.value && (o.value.mime || o.value.size) && s.size === "large" ? (n(), d("div", ce, [
|
|
241
|
+
o.value.size ? (n(), d("div", de, y(o.value ? v(M)(o.value.size) : "0 Б"), 1)) : f("", !0)
|
|
242
|
+
])) : f("", !0)
|
|
243
|
+
], 2),
|
|
244
|
+
s.fullScreen ? (n(), b(re, {
|
|
245
|
+
key: 0,
|
|
246
|
+
ref: "imageFullModal",
|
|
247
|
+
src: i.value,
|
|
248
|
+
alt: s.alt,
|
|
249
|
+
zIndexPreview: s.zIndexPreview
|
|
250
|
+
}, null, 8, ["src", "alt", "zIndexPreview"])) : f("", !0)
|
|
251
|
+
], 64));
|
|
252
|
+
}
|
|
253
|
+
}), ye = /* @__PURE__ */ F(fe, [["__scopeId", "data-v-1f4b3241"]]);
|
|
254
|
+
export {
|
|
255
|
+
ge as F,
|
|
256
|
+
ye as I,
|
|
257
|
+
H as g,
|
|
258
|
+
G as u
|
|
259
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./FileIcon-BE4ItwkK.cjs"),g=require("./parseFileSize.util-Bg1rLRLQ.cjs");class B{stack=[];baseZIndex={confirm:1400,modal:1300,drawer:1200,popover:1100,tooltip:1e3};step=10;childStep=1;idCounter=0;listeners=new Set;subscribe(a){return this.listeners.add(a),()=>this.listeners.delete(a)}notify(){this.listeners.forEach(a=>a())}register(a,l){const s=++this.idCounter,n=l?this.stack.find(u=>u.id===l):void 0;let i;if(n)i=n.zIndex+this.childStep;else{const u=this.stack.filter(c=>c.type===a&&!c.parentId);i=(u.length?Math.max(...u.map(c=>c.zIndex)):this.baseZIndex[a])+this.step}const o={id:s,type:a,parentId:l??null,zIndex:i};return this.stack.push(o),this.notify(),o}unregister(a){this.stack=this.stack.filter(l=>l.id!==a),this.notify()}getTop(){return this.stack.length?this.stack[this.stack.length-1]:null}isTop(a){return this.getTop()?.id===a}getStack(){return[...this.stack]}}const v=new B,k=Symbol("OVERLAY_PARENT");function y(t){const a=e.inject(k,null),l=e.ref(null);return e.onMounted(()=>{l.value=v.register(t,a??null),l.value&&e.provide(k,l.value.id)}),e.onUnmounted(()=>{l.value&&v.unregister(l.value.id)}),{zIndex:l,isTop:()=>l.value?v.isTop(l.value.id):!1}}function _(t){return t.startsWith("image/")?"image":t==="application/pdf"?"pdf":t==="application/msword"||t==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"?"word":t==="application/vnd.ms-excel"||t==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?"excel":"other"}const I={key:1,class:"file__title"},z={key:2,class:"file__info"},E={key:0,class:"file__type"},w={key:1,class:"file__info-separator"},V={key:2,class:"file__size"},C=e.defineComponent({__name:"File",props:{file:{},viewName:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},removable:{type:Boolean}},emits:["remove"],setup(t,{emit:a}){const l=a,s=e.useId(),n=e.ref(null);async function i(r,c="image"){const m=await(await fetch(r)).blob(),p=m.type.split("/")[1]||"",h=p?`${c}.${p}`:c;return new File([m],h,{type:m.type})}const o=e.computed(()=>n.value&&n.value.mime?_(n.value.mime):null),u=e.computed(()=>{switch(o.value){case"pdf":return d.PdfIcon;case"word":return d.WordIcon;case"excel":return d.ExcelIcon;case"other":default:return d.FileIcon}});return e.onMounted(async()=>{if(typeof t.file=="string"){const r=await i(t.file);n.value={id:s,url:t.file,name:r.name,mime:r.type,size:r.size}}else n.value=t.file}),(r,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["file",{"file--outlined":r.outlined}])},[r.removable&&typeof r.file!="string"?(e.openBlock(),e.createElementBlock("button",{key:0,class:"file__remove",onClick:c[0]||(c[0]=f=>l("remove",r.file))},[e.createVNode(e.unref(d.CloseIcon))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{class:"file__icon"})),n.value&&n.value.name&&r.viewName?(e.openBlock(),e.createElementBlock("div",I,e.toDisplayString(n.value?n.value.name.split(".")[0]:"unknown"),1)):e.createCommentVNode("",!0),n.value?(e.openBlock(),e.createElementBlock("div",z,[n.value.mime?(e.openBlock(),e.createElementBlock("div",E,e.toDisplayString(o.value),1)):e.createCommentVNode("",!0),n.value.mime&&n.value.size?(e.openBlock(),e.createElementBlock("div",w)):e.createCommentVNode("",!0),n.value.size?(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(n.value?e.unref(g.formatFileSize)(n.value.size):"0 Б"),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),N=d._export_sfc(C,[["__scopeId","data-v-9dee864d"]]),b={class:"image-full-modal__wrapper"},F={class:"image-full-modal__header"},S={class:"image-full-modal__main"},$=["src","alt"],x=e.defineComponent({__name:"ImageFullModal",props:{src:{},alt:{}},setup(t,{expose:a}){const l=e.ref(!1),{zIndex:s}=y("modal");return a({open:()=>{l.value=!0},close:()=>{l.value=!1}}),(n,i)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"image-full-modal",style:e.normalizeStyle({zIndex:e.unref(s)?.zIndex})},[e.createElementVNode("div",{class:"image-full-modal__overlay",onClick:i[0]||(i[0]=o=>l.value=!1)}),e.createElementVNode("div",b,[e.createElementVNode("div",F,[e.createElementVNode("button",{class:"image-full-modal__close",onClick:i[1]||(i[1]=o=>l.value=!1)},[e.createVNode(e.unref(d.CloseIcon))])]),e.createElementVNode("div",S,[e.createElementVNode("img",{src:n.src,alt:n.alt},null,8,$)]),i[2]||(i[2]=e.createElementVNode("div",{class:"image-full-modal__footer"},null,-1))])],4)):e.createCommentVNode("",!0)]),_:1})]))}}),M=d._export_sfc(x,[["__scopeId","data-v-b9bc03dd"]]),O=["src","alt"],T={key:1,class:"image__info"},P={key:0,class:"image__size"},R=e.defineComponent({__name:"Image",props:{file:{},alt:{},size:{default:"medium"},fullScreen:{type:Boolean},viewInfo:{type:Boolean,default:!1},zIndexPreview:{default:1002}},setup(t){const a=e.useId(),l=e.useTemplateRef("imageFullModal"),s=e.ref(null);async function n(o,u="image"){const c=await(await fetch(o)).blob(),f=c.type.split("/")[1]||"",m=f?`${u}.${f}`:u;return new File([c],m,{type:c.type})}const i=e.computed(()=>typeof t.file=="string"?t.file:t.file.url);return e.onMounted(async()=>{if(t.viewInfo)if(typeof t.file=="string"){const o=await n(t.file);s.value={id:a,url:t.file,name:o.name,mime:o.type,size:o.size}}else s.value=t.file}),(o,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["image",`image--${o.size}`,{"image--full-screen":o.fullScreen}])},[o.fullScreen?(e.openBlock(),e.createElementBlock("div",{key:0,class:"image__overlay",onClick:u[0]||(u[0]=r=>l.value?.open())},[e.createVNode(e.unref(d.EyeIcon))])):e.createCommentVNode("",!0),e.createElementVNode("img",{src:i.value,alt:o.alt},null,8,O),o.viewInfo&&s.value&&(s.value.mime||s.value.size)&&o.size==="large"?(e.openBlock(),e.createElementBlock("div",T,[s.value.size?(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString(s.value?e.unref(g.formatFileSize)(s.value.size):"0 Б"),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),o.fullScreen?(e.openBlock(),e.createBlock(M,{key:0,ref:"imageFullModal",src:i.value,alt:o.alt,zIndexPreview:o.zIndexPreview},null,8,["src","alt","zIndexPreview"])):e.createCommentVNode("",!0)],64))}}),D=d._export_sfc(R,[["__scopeId","data-v-1f4b3241"]]);exports.File=N;exports.Image=D;exports.getFileTypeByMime=_;exports.useOverlay=y;
|
package/dist/blocks/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("../Image-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),u=require("../Image-Cbf_uRLj.cjs"),f=require("../FileIcon-BE4ItwkK.cjs"),m=require("../SendIcon-CH6S0QWh.cjs"),p=require("../parseFileSize.util-Bg1rLRLQ.cjs"),_=require("../uploadFile.util-DCFkx3w3.cjs"),v={class:"chat-file__content"},h=e.defineComponent({__name:"ChatFile",props:{file:{}},emits:["deleteFile"],setup(s,{emit:n}){const i=n,r=e.computed(()=>URL.createObjectURL(s.file));return(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["chat-file",{"chat-file--image":e.unref(u.getFileTypeByMime)(t.file.type)==="image"}])},[e.createElementVNode("button",{class:"chat-file__delete",onClick:c[0]||(c[0]=l=>i("deleteFile",t.file))},[e.createVNode(e.unref(f.CloseIcon))]),e.createElementVNode("div",v,[e.unref(u.getFileTypeByMime)(t.file.type)==="image"?(e.openBlock(),e.createBlock(e.unref(u.Image),{key:0,file:r.value,size:"large",fullScreen:""},null,8,["file"])):(e.openBlock(),e.createBlock(e.unref(u.File),{key:1,file:r.value,outlined:!1},null,8,["file"]))])],2))}}),k=f._export_sfc(h,[["__scopeId","data-v-25ab2b0f"]]),g={class:"chat-field-actions"},B={ref:"overlay",class:"chat-field-actions__overlay"},y=["onClick"],b={class:"chat-field-actions__overlay-item__label"},C=["disabled"],V=e.defineComponent({__name:"ChatFieldActions",props:e.mergeModels({actions:{},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const n=e.useModel(s,"modelValue"),i=e.useTemplateRef("button"),r=e.useTemplateRef("overlay"),t=e.ref(!1),c=e.reactive({image:{icon:e.shallowRef(m.ImageIcon),label:"Добавить изображение"},file:{icon:e.shallowRef(f.FileIcon),label:"Добавить файл"}}),l=a=>{_.openFileDialog({accept:a==="image"?["image"]:["pdf","excel","word"],maxFileSize:"5mb",maxFiles:1}).then(o=>{n.value?n.value=s.multiple?[...n.value,...o]:o:n.value=[...o],t.value=!1})};return e.onMounted(()=>{p.onClickOutside(r.value,()=>{t.value=!1},{ignore:[i.value]})}),(a,o)=>(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(e.Transition,{name:"slide-up"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",B,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.actions,d=>(e.openBlock(),e.createElementBlock("div",{class:"chat-field-actions__overlay-item",key:d,onClick:D=>l(d)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c[d].icon),{class:"chat-field-actions__overlay-item__icon"})),e.createElementVNode("span",b,e.toDisplayString(c[d].label),1)],8,y))),128))],512),[[e.vShow,t.value]])]),_:1}),e.createElementVNode("button",{ref:"button",onClick:o[0]||(o[0]=d=>t.value=!t.value),class:e.normalizeClass(["chat-field-actions__button",{"chat-field-actions__button--active":t.value}]),disabled:a.disabled},[e.createVNode(e.unref(m.PlusRoundedIcon))],10,C)]))}}),F=f._export_sfc(V,[["__scopeId","data-v-e64085d6"]]),E={class:"chat-field"},N={key:0,class:"chat-field__files"},M={class:"chat-field__wrapper"},T=["maxlength","placeholder"],S={key:1,class:"chat-field__footer"},$={key:1,class:"chat-field__char-count"},I=e.defineComponent({__name:"ChatField",props:e.mergeModels({viewActions:{type:Boolean,default:!1},actions:{default:()=>["file","image"]},placeholder:{default:"Введите сообщение"},maxLength:{},smallText:{},error:{type:Boolean},errorText:{},disabled:{type:Boolean,default:!1}},{message:{required:!0},messageModifiers:{},files:{},filesModifiers:{}}),emits:e.mergeModels(["sendMessage"],["update:message","update:files"]),setup(s,{emit:n}){const i=n,r=e.useModel(s,"message"),t=e.useModel(s,"files"),c=l=>{t.value&&(t.value=t.value.filter(a=>a.name!==l.name))};return(l,a)=>(e.openBlock(),e.createElementBlock("div",E,[t.value&&t.value.length>0?(e.openBlock(),e.createElementBlock("div",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,o=>(e.openBlock(),e.createBlock(k,{key:o.name,file:o,onDeleteFile:c},null,8,["file"]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("div",M,[l.viewActions&&l.actions.length>0?(e.openBlock(),e.createBlock(F,{key:0,modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=o=>t.value=o),actions:l.actions,disabled:l.disabled},null,8,["modelValue","actions","disabled"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=o=>r.value=o),class:"chat-field__input",maxlength:l.maxLength,placeholder:l.placeholder},null,8,T),[[e.vModelText,r.value]]),e.createElementVNode("button",{class:"chat-field__button",onClick:a[2]||(a[2]=o=>i("sendMessage"))},[e.createVNode(e.unref(m.SendIcon))])]),l.smallText||l.error&&l.errorText||l.maxLength?(e.openBlock(),e.createElementBlock("div",S,[l.smallText||l.error&&l.errorText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["chat-field__small",{"chat-field__small--error":l.error}])},e.toDisplayString(l.error?l.errorText:l.smallText),3)):e.createCommentVNode("",!0),l.maxLength?(e.openBlock(),e.createElementBlock("div",$,e.toDisplayString(r.value.length)+" / "+e.toDisplayString(l.maxLength),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}}),w={class:"bonus-summary"},L=e.defineComponent({__name:"BonusSummary",setup(s){return(n,i)=>(e.openBlock(),e.createElementBlock("div",w,[e.createVNode(e.unref(m.BonusIcon),{class:"bonus-summary__icon"}),i[0]||(i[0]=e.createElementVNode("div",{class:"bonus-summary__number"},"123",-1))]))}});exports.BonusSummary=L;exports.ChatField=I;
|
package/dist/blocks/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as g, computed as V, createElementBlock as o, openBlock as a, normalizeClass as C, unref as c, createElementVNode as n, createVNode as v, createBlock as p, mergeModels as y, useModel as b, useTemplateRef as F, ref as L, reactive as w, shallowRef as k, onMounted as S, Transition as R, withCtx as D, withDirectives as B, Fragment as I, renderList as T, resolveDynamicComponent as U, toDisplayString as h, vShow as z, createCommentVNode as _, vModelText as N } from "vue";
|
|
2
|
-
import { g as $, I as O, F as x } from "../Image-
|
|
2
|
+
import { g as $, I as O, F as x } from "../Image-CC-8vrJo.js";
|
|
3
3
|
import { C as A, _ as M, F as E } from "../FileIcon-maHE2Nhr.js";
|
|
4
4
|
import { I as P, P as j, S as q, B as H } from "../SendIcon-Cqdt2QWN.js";
|
|
5
|
-
import { o as G } from "../parseFileSize.util-
|
|
6
|
-
import { o as J } from "../uploadFile.util-
|
|
5
|
+
import { o as G } from "../parseFileSize.util-CxVk4CvB.js";
|
|
6
|
+
import { o as J } from "../uploadFile.util-DhavPrlY.js";
|
|
7
7
|
const K = { class: "chat-file__content" }, Q = /* @__PURE__ */ g({
|
|
8
8
|
__name: "ChatFile",
|
|
9
9
|
props: {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as s, computed as a, createBlock as d, createCommentVNode as c, openBlock as i, Teleport as u, createElementVNode as p, normalizeStyle as f, renderSlot as y } from "vue";
|
|
2
|
+
let n = null;
|
|
3
|
+
function m() {
|
|
4
|
+
const o = window.scrollY;
|
|
5
|
+
return document.body.style.position = "fixed", document.body.style.top = `-${o}px`, () => {
|
|
6
|
+
document.body.style.position = "", document.body.style.top = "", window.scrollTo(0, o);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
const S = () => {
|
|
10
|
+
n || (n = m());
|
|
11
|
+
}, h = () => {
|
|
12
|
+
n && (n(), n = null);
|
|
13
|
+
}, w = () => ({
|
|
14
|
+
unlockScroll: h,
|
|
15
|
+
lockScroll: S
|
|
16
|
+
}), b = ["data-layer"], B = /* @__PURE__ */ s({
|
|
17
|
+
__name: "Portal",
|
|
18
|
+
props: {
|
|
19
|
+
overlayType: { default: "modal" },
|
|
20
|
+
teleport: { type: Boolean, default: !0 },
|
|
21
|
+
target: { default: "body" },
|
|
22
|
+
zIndex: {},
|
|
23
|
+
show: { type: Boolean, default: !0 },
|
|
24
|
+
parentId: {}
|
|
25
|
+
},
|
|
26
|
+
setup(o) {
|
|
27
|
+
const t = o, l = a(() => {
|
|
28
|
+
if (t.zIndex) return t.zIndex;
|
|
29
|
+
});
|
|
30
|
+
return (e, r) => e.show ? (i(), d(u, {
|
|
31
|
+
key: 0,
|
|
32
|
+
to: e.target,
|
|
33
|
+
disabled: !e.teleport
|
|
34
|
+
}, [
|
|
35
|
+
p("div", {
|
|
36
|
+
style: f({
|
|
37
|
+
zIndex: l.value,
|
|
38
|
+
position: "relative",
|
|
39
|
+
isolation: "isolate"
|
|
40
|
+
}),
|
|
41
|
+
"data-layer": e.overlayType
|
|
42
|
+
}, [
|
|
43
|
+
y(e.$slots, "default")
|
|
44
|
+
], 12, b)
|
|
45
|
+
], 8, ["to", "disabled"])) : c("", !0);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
function I() {
|
|
49
|
+
const o = /* @__PURE__ */ new Map();
|
|
50
|
+
return {
|
|
51
|
+
on(t, l) {
|
|
52
|
+
const e = o.get(t) || [];
|
|
53
|
+
e.push(l), o.set(t, e);
|
|
54
|
+
},
|
|
55
|
+
off(t, l) {
|
|
56
|
+
const e = o.get(t);
|
|
57
|
+
e && o.set(
|
|
58
|
+
t,
|
|
59
|
+
e.filter((r) => r !== l)
|
|
60
|
+
);
|
|
61
|
+
},
|
|
62
|
+
emit(t, l) {
|
|
63
|
+
const e = o.get(t);
|
|
64
|
+
e && e.forEach((r) => r(l));
|
|
65
|
+
},
|
|
66
|
+
clear() {
|
|
67
|
+
o.clear();
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
I as E,
|
|
73
|
+
B as _,
|
|
74
|
+
w as u
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=require("vue");let r=null;function a(){const o=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${o}px`,()=>{document.body.style.position="",document.body.style.top="",window.scrollTo(0,o)}}const d=()=>{r||(r=a())},c=()=>{r&&(r(),r=null)},u=()=>({unlockScroll:c,lockScroll:d}),i=["data-layer"],p=l.defineComponent({__name:"Portal",props:{overlayType:{default:"modal"},teleport:{type:Boolean,default:!0},target:{default:"body"},zIndex:{},show:{type:Boolean,default:!0},parentId:{}},setup(o){const t=o,n=l.computed(()=>{if(t.zIndex)return t.zIndex});return(e,s)=>e.show?(l.openBlock(),l.createBlock(l.Teleport,{key:0,to:e.target,disabled:!e.teleport},[l.createElementVNode("div",{style:l.normalizeStyle({zIndex:n.value,position:"relative",isolation:"isolate"}),"data-layer":e.overlayType},[l.renderSlot(e.$slots,"default")],12,i)],8,["to","disabled"])):l.createCommentVNode("",!0)}});function f(){const o=new Map;return{on(t,n){const e=o.get(t)||[];e.push(n),o.set(t,e)},off(t,n){const e=o.get(t);e&&o.set(t,e.filter(s=>s!==n))},emit(t,n){const e=o.get(t);e&&e.forEach(s=>s(n))},clear(){o.clear()}}}exports.EventBus=f;exports._sfc_main=p;exports.useBodyScroll=u;
|
package/dist/index.d.ts
CHANGED
|
@@ -80,13 +80,6 @@ modelValue: {
|
|
|
80
80
|
type: BooleanConstructor;
|
|
81
81
|
default: undefined;
|
|
82
82
|
};
|
|
83
|
-
zIndex: {
|
|
84
|
-
type: NumberConstructor;
|
|
85
|
-
};
|
|
86
|
-
zIndexLayer: {
|
|
87
|
-
type: PropType<ZIndexLayer>;
|
|
88
|
-
default: string;
|
|
89
|
-
};
|
|
90
83
|
withoutStyle: {
|
|
91
84
|
type: BooleanConstructor;
|
|
92
85
|
default: boolean;
|
|
@@ -121,13 +114,6 @@ modelValue: {
|
|
|
121
114
|
type: BooleanConstructor;
|
|
122
115
|
default: undefined;
|
|
123
116
|
};
|
|
124
|
-
zIndex: {
|
|
125
|
-
type: NumberConstructor;
|
|
126
|
-
};
|
|
127
|
-
zIndexLayer: {
|
|
128
|
-
type: PropType<ZIndexLayer>;
|
|
129
|
-
default: string;
|
|
130
|
-
};
|
|
131
117
|
withoutStyle: {
|
|
132
118
|
type: BooleanConstructor;
|
|
133
119
|
default: boolean;
|
|
@@ -139,7 +125,6 @@ modelValue: boolean;
|
|
|
139
125
|
placement: Placement;
|
|
140
126
|
arrowVisible: boolean;
|
|
141
127
|
closeMode: PopoverCloseMode;
|
|
142
|
-
zIndexLayer: "BASE" | "DROPDOWN" | "STICKY" | "TOOLTIP" | "POPOVER" | "DRAWER" | "MODAL" | "NOTIFICATION" | "DEBUG";
|
|
143
128
|
withoutStyle: boolean;
|
|
144
129
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
145
130
|
reference: HTMLDivElement;
|
|
@@ -157,7 +142,7 @@ contentRef: HTMLDivElement;
|
|
|
157
142
|
bodyRef: HTMLDivElement;
|
|
158
143
|
}, any>;
|
|
159
144
|
|
|
160
|
-
declare const __VLS_component_15: DefineComponent<
|
|
145
|
+
declare const __VLS_component_15: DefineComponent<__VLS_Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_28> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
161
146
|
|
|
162
147
|
declare const __VLS_component_16: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
163
148
|
contentRef: HTMLDivElement;
|
|
@@ -165,9 +150,9 @@ contentRef: HTMLDivElement;
|
|
|
165
150
|
|
|
166
151
|
declare const __VLS_component_17: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
167
152
|
|
|
168
|
-
declare const __VLS_component_18: DefineComponent<
|
|
153
|
+
declare const __VLS_component_18: DefineComponent<__VLS_Props_29, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_29> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
169
154
|
|
|
170
|
-
declare const __VLS_component_19: DefineComponent<
|
|
155
|
+
declare const __VLS_component_19: DefineComponent<__VLS_Props_30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_30> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
171
156
|
|
|
172
157
|
declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
173
158
|
"update:currentPage": (value: number) => any;
|
|
@@ -223,9 +208,9 @@ updateContainerHeight: (scrollContainer?: HTMLElement) => void;
|
|
|
223
208
|
}, {}, {}, {}, {}> | null;
|
|
224
209
|
}, any>;
|
|
225
210
|
|
|
226
|
-
declare const __VLS_component_20: DefineComponent<
|
|
211
|
+
declare const __VLS_component_20: DefineComponent<__VLS_Props_31, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
227
212
|
"update:value": (value: string | number) => any;
|
|
228
|
-
}, string, PublicProps, Readonly<
|
|
213
|
+
}, string, PublicProps, Readonly<__VLS_Props_31> & Readonly<{
|
|
229
214
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
230
215
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
231
216
|
|
|
@@ -233,9 +218,9 @@ declare const __VLS_component_21: DefineComponent< {}, {}, {}, {}, {}, Compon
|
|
|
233
218
|
|
|
234
219
|
declare const __VLS_component_22: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
235
220
|
|
|
236
|
-
declare const __VLS_component_23: DefineComponent<
|
|
221
|
+
declare const __VLS_component_23: DefineComponent<__VLS_Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_32> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
237
222
|
|
|
238
|
-
declare const __VLS_component_24: DefineComponent<
|
|
223
|
+
declare const __VLS_component_24: DefineComponent<__VLS_Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_33> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
239
224
|
|
|
240
225
|
declare const __VLS_component_25: DefineComponent<ScheduleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
241
226
|
clear: () => any;
|
|
@@ -439,42 +424,35 @@ declare type __VLS_Props_27 = {
|
|
|
439
424
|
title?: string;
|
|
440
425
|
style?: CSSProperties;
|
|
441
426
|
position?: 'top' | 'center' | 'bottom';
|
|
442
|
-
zIndex?: number;
|
|
443
|
-
zIndexLayer?: ZIndexLayer;
|
|
444
427
|
};
|
|
445
428
|
|
|
446
429
|
declare type __VLS_Props_28 = {
|
|
447
|
-
zIndex?: number;
|
|
448
|
-
zIndexLayer?: ZIndexLayer;
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
declare type __VLS_Props_29 = {
|
|
452
430
|
value?: string | number | (string | number)[];
|
|
453
431
|
multiple?: boolean;
|
|
454
432
|
styleView?: 'fill' | 'inline';
|
|
455
433
|
};
|
|
456
434
|
|
|
457
|
-
declare type
|
|
458
|
-
|
|
459
|
-
declare type __VLS_Props_30 = {
|
|
435
|
+
declare type __VLS_Props_29 = {
|
|
460
436
|
value: string | number;
|
|
461
437
|
};
|
|
462
438
|
|
|
463
|
-
declare type
|
|
439
|
+
declare type __VLS_Props_3 = PaginatorProps;
|
|
440
|
+
|
|
441
|
+
declare type __VLS_Props_30 = {
|
|
464
442
|
layouts?: 'vertical' | 'horizontal';
|
|
465
443
|
type?: 'solid' | 'dashed' | 'dotted';
|
|
466
444
|
align?: 'left' | 'right' | 'center';
|
|
467
445
|
};
|
|
468
446
|
|
|
469
|
-
declare type
|
|
447
|
+
declare type __VLS_Props_31 = {
|
|
470
448
|
value: string | number;
|
|
471
449
|
};
|
|
472
450
|
|
|
473
|
-
declare type
|
|
451
|
+
declare type __VLS_Props_32 = {
|
|
474
452
|
value: string | number;
|
|
475
453
|
};
|
|
476
454
|
|
|
477
|
-
declare type
|
|
455
|
+
declare type __VLS_Props_33 = {
|
|
478
456
|
value: string | number;
|
|
479
457
|
};
|
|
480
458
|
|
|
@@ -566,7 +544,7 @@ declare type __VLS_PublicProps_18 = {
|
|
|
566
544
|
|
|
567
545
|
declare type __VLS_PublicProps_19 = {
|
|
568
546
|
'open': boolean;
|
|
569
|
-
}
|
|
547
|
+
};
|
|
570
548
|
|
|
571
549
|
declare type __VLS_PublicProps_2 = {
|
|
572
550
|
'currentPage': number;
|
|
@@ -1140,7 +1118,6 @@ labelKey: string;
|
|
|
1140
1118
|
maxTags: number;
|
|
1141
1119
|
clearable: boolean;
|
|
1142
1120
|
required: boolean;
|
|
1143
|
-
inputKey: string;
|
|
1144
1121
|
minQueryLength: number;
|
|
1145
1122
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1146
1123
|
autocompleteTrigger: HTMLDivElement;
|
|
@@ -1164,7 +1141,6 @@ declare interface AutocompleteProps {
|
|
|
1164
1141
|
loading?: boolean;
|
|
1165
1142
|
valueKey?: string;
|
|
1166
1143
|
labelKey?: string;
|
|
1167
|
-
inputKey?: string;
|
|
1168
1144
|
maxTags?: number;
|
|
1169
1145
|
clearable?: boolean;
|
|
1170
1146
|
minQueryLength?: number;
|
|
@@ -1365,8 +1341,6 @@ declare type DrawerProps = {
|
|
|
1365
1341
|
width?: number | string;
|
|
1366
1342
|
beforeClose?: (next: () => void) => void;
|
|
1367
1343
|
wrapperNoStyle?: boolean;
|
|
1368
|
-
zIndex?: number;
|
|
1369
|
-
zIndexLayer?: ZIndexLayer;
|
|
1370
1344
|
};
|
|
1371
1345
|
|
|
1372
1346
|
export declare const Dropdown: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
@@ -1527,7 +1501,6 @@ declare const Image_2: DefineComponent<__VLS_Props_18, {}, {}, {}, {}, Component
|
|
|
1527
1501
|
imageFullModal: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1528
1502
|
src: string;
|
|
1529
1503
|
alt?: string;
|
|
1530
|
-
zIndexPreview?: number;
|
|
1531
1504
|
}> & Readonly<{}>, {
|
|
1532
1505
|
open: () => void;
|
|
1533
1506
|
close: () => void;
|
|
@@ -1541,7 +1514,6 @@ Defaults: {};
|
|
|
1541
1514
|
}, Readonly<{
|
|
1542
1515
|
src: string;
|
|
1543
1516
|
alt?: string;
|
|
1544
|
-
zIndexPreview?: number;
|
|
1545
1517
|
}> & Readonly<{}>, {
|
|
1546
1518
|
open: () => void;
|
|
1547
1519
|
close: () => void;
|
|
@@ -2014,15 +1986,6 @@ declare interface ToastProps {
|
|
|
2014
1986
|
* @type {ToastMessageOptions}
|
|
2015
1987
|
*/
|
|
2016
1988
|
message?: ToastMessageOptions;
|
|
2017
|
-
/**
|
|
2018
|
-
* Custom z-index value for the toast container.
|
|
2019
|
-
*/
|
|
2020
|
-
zIndex?: number;
|
|
2021
|
-
/**
|
|
2022
|
-
* Z-index layer for the toast component.
|
|
2023
|
-
* @defaultValue NOTIFICATION
|
|
2024
|
-
*/
|
|
2025
|
-
zIndexLayer?: ZIndexLayer;
|
|
2026
1989
|
}
|
|
2027
1990
|
|
|
2028
1991
|
export declare const ToastService: {
|
|
@@ -2097,18 +2060,4 @@ export declare const useConfirmPopup: () => ConfirmPopupService;
|
|
|
2097
2060
|
|
|
2098
2061
|
export declare function useToast(): ToastServiceMethods;
|
|
2099
2062
|
|
|
2100
|
-
declare const Z_INDEX: {
|
|
2101
|
-
readonly BASE: 1000;
|
|
2102
|
-
readonly DROPDOWN: 1010;
|
|
2103
|
-
readonly STICKY: 1020;
|
|
2104
|
-
readonly TOOLTIP: 1030;
|
|
2105
|
-
readonly POPOVER: 1040;
|
|
2106
|
-
readonly DRAWER: 1050;
|
|
2107
|
-
readonly MODAL: 1060;
|
|
2108
|
-
readonly NOTIFICATION: 1070;
|
|
2109
|
-
readonly DEBUG: 9999;
|
|
2110
|
-
};
|
|
2111
|
-
|
|
2112
|
-
declare type ZIndexLayer = keyof typeof Z_INDEX;
|
|
2113
|
-
|
|
2114
2063
|
export { }
|