prlg-ui 1.8.62 → 1.8.64
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-DdrY_gj3.js → Image-DBUjo8i1.js} +1 -1
- package/dist/{Image-CTHVD4pk.cjs → Image-DL600oqG.cjs} +1 -1
- package/dist/blocks/index.cjs.js +1 -1
- package/dist/blocks/index.es.js +3 -3
- package/dist/eventBus.util-7AmGBWLO.cjs +1 -0
- package/dist/eventBus.util-BDMuoJDS.js +88 -0
- package/dist/index.d.ts +3 -0
- package/dist/{parseFileSize.util-CxVk4CvB.js → parseFileSize.util-BYvPolRo.js} +374 -349
- package/dist/parseFileSize.util-CjKeh3NJ.cjs +1 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +1892 -1820
- package/dist/{uploadFile.util-DCFkx3w3.cjs → uploadFile.util-DUcrBxO_.cjs} +1 -1
- package/dist/{uploadFile.util-DhavPrlY.js → uploadFile.util-Dgr-qsrj.js} +1 -1
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +3 -3
- package/dist/utils/overlayManager.ts +90 -0
- package/package.json +1 -1
- package/dist/eventBus.util-ClEh5UYl.js +0 -90
- package/dist/eventBus.util-DRia0POu.cjs +0 -1
- package/dist/parseFileSize.util-Bg1rLRLQ.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as I, useId as b, ref as z, computed as w, onMounted as h, createElementBlock as n, openBlock as t, normalizeClass as C, createCommentVNode as o, createBlock as F, createVNode as _, unref as p, resolveDynamicComponent as M, toDisplayString as y, Teleport as x, Transition as E, withCtx as V, normalizeStyle as N, createElementVNode as c, useTemplateRef as O, Fragment as W } from "vue";
|
|
2
2
|
import { F as j, E as D, W as R, P as q, C as B, _ as k, a as A } from "./FileIcon-maHE2Nhr.js";
|
|
3
|
-
import { f as S } from "./parseFileSize.util-
|
|
3
|
+
import { f as S } from "./parseFileSize.util-BYvPolRo.js";
|
|
4
4
|
function G(l) {
|
|
5
5
|
return l.startsWith("image/") ? "image" : l === "application/pdf" ? "pdf" : l === "application/msword" || l === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? "word" : l === "application/vnd.ms-excel" || l === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? "excel" : "other";
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),i=require("./FileIcon-BE4ItwkK.cjs"),p=require("./parseFileSize.util-
|
|
1
|
+
"use strict";const e=require("vue"),i=require("./FileIcon-BE4ItwkK.cjs"),p=require("./parseFileSize.util-CjKeh3NJ.cjs");function k(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 g={key:1,class:"file__title"},_={key:2,class:"file__info"},B={key:0,class:"file__type"},I={key:1,class:"file__info-separator"},z={key:2,class:"file__size"},w=e.defineComponent({__name:"File",props:{file:{},viewName:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},removable:{type:Boolean}},emits:["remove"],setup(t,{emit:u}){const s=u,n=e.useId(),l=e.ref(null);async function m(a,c="image"){const d=await(await fetch(a)).blob(),v=d.type.split("/")[1]||"",y=v?`${c}.${v}`:c;return new File([d],y,{type:d.type})}const o=e.computed(()=>l.value&&l.value.mime?k(l.value.mime):null),r=e.computed(()=>{switch(o.value){case"pdf":return i.PdfIcon;case"word":return i.WordIcon;case"excel":return i.ExcelIcon;case"other":default:return i.FileIcon}});return e.onMounted(async()=>{if(typeof t.file=="string"){const a=await m(t.file);l.value={id:n,url:t.file,name:a.name,mime:a.type,size:a.size}}else l.value=t.file}),(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["file",{"file--outlined":a.outlined}])},[a.removable&&typeof a.file!="string"?(e.openBlock(),e.createElementBlock("button",{key:0,class:"file__remove",onClick:c[0]||(c[0]=f=>s("remove",a.file))},[e.createVNode(e.unref(i.CloseIcon))])):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{class:"file__icon"})),l.value&&l.value.name&&a.viewName?(e.openBlock(),e.createElementBlock("div",g,e.toDisplayString(l.value?l.value.name.split(".")[0]:"unknown"),1)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("div",_,[l.value.mime?(e.openBlock(),e.createElementBlock("div",B,e.toDisplayString(o.value),1)):e.createCommentVNode("",!0),l.value.mime&&l.value.size?(e.openBlock(),e.createElementBlock("div",I)):e.createCommentVNode("",!0),l.value.size?(e.openBlock(),e.createElementBlock("div",z,e.toDisplayString(l.value?e.unref(p.formatFileSize)(l.value.size):"0 Б"),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2))}}),V=i._export_sfc(w,[["__scopeId","data-v-9dee864d"]]),C={class:"image-full-modal__wrapper"},N={class:"image-full-modal__header"},E={class:"image-full-modal__main"},F=["src","alt"],$=e.defineComponent({__name:"ImageFullModal",props:{src:{},alt:{},zIndexPreview:{}},setup(t,{expose:u}){const s=e.ref(!1);return u({open:()=>{s.value=!0},close:()=>{s.value=!1}}),(n,l)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"image-full-modal",style:e.normalizeStyle({zIndex:n.zIndexPreview})},[e.createElementVNode("div",{class:"image-full-modal__overlay",onClick:l[0]||(l[0]=m=>s.value=!1)}),e.createElementVNode("div",C,[e.createElementVNode("div",N,[e.createElementVNode("button",{class:"image-full-modal__close",onClick:l[1]||(l[1]=m=>s.value=!1)},[e.createVNode(e.unref(i.CloseIcon))])]),e.createElementVNode("div",E,[e.createElementVNode("img",{src:n.src,alt:n.alt},null,8,F)]),l[2]||(l[2]=e.createElementVNode("div",{class:"image-full-modal__footer"},null,-1))])],4)):e.createCommentVNode("",!0)]),_:1})]))}}),b=i._export_sfc($,[["__scopeId","data-v-1ff3e050"]]),h=["src","alt"],S={key:1,class:"image__info"},M={key:0,class:"image__size"},P=e.defineComponent({__name:"Image",props:{file:{},alt:{},size:{default:"medium"},fullScreen:{type:Boolean},viewInfo:{type:Boolean,default:!1},zIndexPreview:{default:1002}},setup(t){const u=e.useId(),s=e.useTemplateRef("imageFullModal"),n=e.ref(null);async function l(o,r="image"){const c=await(await fetch(o)).blob(),f=c.type.split("/")[1]||"",d=f?`${r}.${f}`:r;return new File([c],d,{type:c.type})}const m=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 l(t.file);n.value={id:u,url:t.file,name:o.name,mime:o.type,size:o.size}}else n.value=t.file}),(o,r)=>(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:r[0]||(r[0]=a=>s.value?.open())},[e.createVNode(e.unref(i.EyeIcon))])):e.createCommentVNode("",!0),e.createElementVNode("img",{src:m.value,alt:o.alt},null,8,h),o.viewInfo&&n.value&&(n.value.mime||n.value.size)&&o.size==="large"?(e.openBlock(),e.createElementBlock("div",S,[n.value.size?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(n.value?e.unref(p.formatFileSize)(n.value.size):"0 Б"),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2),o.fullScreen?(e.openBlock(),e.createBlock(b,{key:0,ref:"imageFullModal",src:m.value,alt:o.alt,zIndexPreview:o.zIndexPreview},null,8,["src","alt","zIndexPreview"])):e.createCommentVNode("",!0)],64))}}),x=i._export_sfc(P,[["__scopeId","data-v-1f4b3241"]]);exports.File=V;exports.Image=x;exports.getFileTypeByMime=k;
|
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-DL600oqG.cjs"),f=require("../FileIcon-BE4ItwkK.cjs"),m=require("../SendIcon-CH6S0QWh.cjs"),p=require("../parseFileSize.util-CjKeh3NJ.cjs"),_=require("../uploadFile.util-DUcrBxO_.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-DBUjo8i1.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-BYvPolRo.js";
|
|
6
|
+
import { o as J } from "../uploadFile.util-Dgr-qsrj.js";
|
|
7
7
|
const K = { class: "chat-file__content" }, Q = /* @__PURE__ */ g({
|
|
8
8
|
__name: "ChatFile",
|
|
9
9
|
props: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("vue"),u=require("./parseFileSize.util-CjKeh3NJ.cjs");let s=null;function y(){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 f=()=>{s||(s=y())},p=()=>{s&&(s(),s=null)},m=()=>({unlockScroll:p,lockScroll:f}),S=["data-layer"],x=r.defineComponent({__name:"Portal",props:{layer:{default:"BASE"},teleport:{type:Boolean,default:!0},target:{default:"body"},zIndex:{},show:{type:Boolean,default:!0}},setup(o){const e=o,{getNextLayer:n}=u.useZIndex(),l=r.computed(()=>{if(e.zIndex)return e.zIndex;if(e.layer&&e.layer!=="BASE"){const t=u.Z_INDEX[e.layer],a=document.querySelectorAll("[data-layer]");if(a.length>0){const c=Math.max(...Array.from(a).map(i=>{const d=parseInt(i.style.zIndex||"0",10);return d>0?d:0}));if(c>=t)return c+10}return t}return n()});return(t,a)=>t.show?(r.openBlock(),r.createBlock(r.Teleport,{key:0,to:t.target,disabled:!t.teleport},[r.createElementVNode("div",{style:r.normalizeStyle({zIndex:l.value,position:"relative",isolation:"isolate"}),"data-layer":t.layer},[r.renderSlot(t.$slots,"default")],12,S)],8,["to","disabled"])):r.createCommentVNode("",!0)}});function I(){const o=new Map;return{on(e,n){const l=o.get(e)||[];l.push(n),o.set(e,l)},off(e,n){const l=o.get(e);l&&o.set(e,l.filter(t=>t!==n))},emit(e,n){const l=o.get(e);l&&l.forEach(t=>t(n))},clear(){o.clear()}}}exports.EventBus=I;exports._sfc_main=x;exports.useBodyScroll=m;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { defineComponent as u, computed as i, createBlock as p, createCommentVNode as f, openBlock as y, Teleport as m, createElementVNode as x, normalizeStyle as S, renderSlot as I } from "vue";
|
|
2
|
+
import { u as h, Z as b } from "./parseFileSize.util-BYvPolRo.js";
|
|
3
|
+
let n = null;
|
|
4
|
+
function g() {
|
|
5
|
+
const o = window.scrollY;
|
|
6
|
+
return document.body.style.position = "fixed", document.body.style.top = `-${o}px`, () => {
|
|
7
|
+
document.body.style.position = "", document.body.style.top = "", window.scrollTo(0, o);
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
const w = () => {
|
|
11
|
+
n || (n = g());
|
|
12
|
+
}, B = () => {
|
|
13
|
+
n && (n(), n = null);
|
|
14
|
+
}, Z = () => ({
|
|
15
|
+
unlockScroll: B,
|
|
16
|
+
lockScroll: w
|
|
17
|
+
}), z = ["data-layer"], k = /* @__PURE__ */ u({
|
|
18
|
+
__name: "Portal",
|
|
19
|
+
props: {
|
|
20
|
+
layer: { default: "BASE" },
|
|
21
|
+
teleport: { type: Boolean, default: !0 },
|
|
22
|
+
target: { default: "body" },
|
|
23
|
+
zIndex: {},
|
|
24
|
+
show: { type: Boolean, default: !0 }
|
|
25
|
+
},
|
|
26
|
+
setup(o) {
|
|
27
|
+
const e = o, { getNextLayer: l } = h(), r = i(() => {
|
|
28
|
+
if (e.zIndex) return e.zIndex;
|
|
29
|
+
if (e.layer && e.layer !== "BASE") {
|
|
30
|
+
const t = b[e.layer], a = document.querySelectorAll("[data-layer]");
|
|
31
|
+
if (a.length > 0) {
|
|
32
|
+
const s = Math.max(...Array.from(a).map((c) => {
|
|
33
|
+
const d = parseInt(c.style.zIndex || "0", 10);
|
|
34
|
+
return d > 0 ? d : 0;
|
|
35
|
+
}));
|
|
36
|
+
if (s >= t)
|
|
37
|
+
return s + 10;
|
|
38
|
+
}
|
|
39
|
+
return t;
|
|
40
|
+
}
|
|
41
|
+
return l();
|
|
42
|
+
});
|
|
43
|
+
return (t, a) => t.show ? (y(), p(m, {
|
|
44
|
+
key: 0,
|
|
45
|
+
to: t.target,
|
|
46
|
+
disabled: !t.teleport
|
|
47
|
+
}, [
|
|
48
|
+
x("div", {
|
|
49
|
+
style: S({
|
|
50
|
+
zIndex: r.value,
|
|
51
|
+
position: "relative",
|
|
52
|
+
isolation: "isolate"
|
|
53
|
+
}),
|
|
54
|
+
"data-layer": t.layer
|
|
55
|
+
}, [
|
|
56
|
+
I(t.$slots, "default")
|
|
57
|
+
], 12, z)
|
|
58
|
+
], 8, ["to", "disabled"])) : f("", !0);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
function _() {
|
|
62
|
+
const o = /* @__PURE__ */ new Map();
|
|
63
|
+
return {
|
|
64
|
+
on(e, l) {
|
|
65
|
+
const r = o.get(e) || [];
|
|
66
|
+
r.push(l), o.set(e, r);
|
|
67
|
+
},
|
|
68
|
+
off(e, l) {
|
|
69
|
+
const r = o.get(e);
|
|
70
|
+
r && o.set(
|
|
71
|
+
e,
|
|
72
|
+
r.filter((t) => t !== l)
|
|
73
|
+
);
|
|
74
|
+
},
|
|
75
|
+
emit(e, l) {
|
|
76
|
+
const r = o.get(e);
|
|
77
|
+
r && r.forEach((t) => t(l));
|
|
78
|
+
},
|
|
79
|
+
clear() {
|
|
80
|
+
o.clear();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
export {
|
|
85
|
+
_ as E,
|
|
86
|
+
k as _,
|
|
87
|
+
Z as u
|
|
88
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1140,6 +1140,7 @@ labelKey: string;
|
|
|
1140
1140
|
maxTags: number;
|
|
1141
1141
|
clearable: boolean;
|
|
1142
1142
|
required: boolean;
|
|
1143
|
+
inputKey: string;
|
|
1143
1144
|
minQueryLength: number;
|
|
1144
1145
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1145
1146
|
autocompleteTrigger: HTMLDivElement;
|
|
@@ -1163,6 +1164,7 @@ declare interface AutocompleteProps {
|
|
|
1163
1164
|
loading?: boolean;
|
|
1164
1165
|
valueKey?: string;
|
|
1165
1166
|
labelKey?: string;
|
|
1167
|
+
inputKey?: string;
|
|
1166
1168
|
maxTags?: number;
|
|
1167
1169
|
clearable?: boolean;
|
|
1168
1170
|
minQueryLength?: number;
|
|
@@ -1285,6 +1287,7 @@ declare interface ConfirmOptions {
|
|
|
1285
1287
|
closable?: boolean;
|
|
1286
1288
|
dismissableMask?: boolean;
|
|
1287
1289
|
blockScroll?: boolean;
|
|
1290
|
+
zIndex?: number;
|
|
1288
1291
|
accept?: () => void;
|
|
1289
1292
|
reject?: () => void;
|
|
1290
1293
|
acceptProps?: {
|