@webitel/ui-sdk 25.8.77 → 25.8.79
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/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/components/on-demand/wt-display-chip-items/wt-display-chip-items.vue +21 -21
- package/src/enums/ProcessingTableColumnType/ProcessingTableColumnType.ts +10 -0
- package/src/enums/index.ts +2 -0
- package/src/plugins/primevue/primevue.scss +1 -0
- package/src/plugins/primevue/theme/components/popover/popover.scss +5 -0
- package/types/enums/ProcessingTableColumnType/ProcessingTableColumnType.d.ts +8 -0
- package/types/enums/index.d.ts +2 -1
package/dist/ui-sdk.js
CHANGED
|
@@ -5822,7 +5822,7 @@ const {
|
|
|
5822
5822
|
for (const [r, l] of i)
|
|
5823
5823
|
a[r] = l;
|
|
5824
5824
|
return a;
|
|
5825
|
-
}, Sk = /* @__PURE__ */ Fe(Ak, [["__scopeId", "data-v-
|
|
5825
|
+
}, Sk = /* @__PURE__ */ Fe(Ak, [["__scopeId", "data-v-d19c7f3b"]]), Ok = { class: "nav-menu__category nav-menu-lvl-1" }, Tk = ["onClick"], Dk = {
|
|
5826
5826
|
__name: "nav-menu-lvl-1",
|
|
5827
5827
|
props: {
|
|
5828
5828
|
categories: {
|
package/dist/ui-sdk.umd.cjs
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...a){const r=new this(i);return a.forEach(s=>r.set(s)),r}static accessor(i){const r=(this[r1]=this[r1]={accessors:{}}).accessors,s=this.prototype;function c(p){const f=ma(p);r[f]||($x(s,p),r[f]=!0)}return le.isArray(i)?i.forEach(c):c(i),this}};uo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),le.reduceDescriptors(uo.prototype,({value:o},i)=>{let a=i[0].toUpperCase()+i.slice(1);return{get:()=>o,set(r){this[a]=r}}}),le.freezeMethods(uo);function Ls(o,i){const a=this||fa,r=i||a,s=uo.from(r.headers);let c=r.data;return le.forEach(o,function(f){c=f.call(a,c,s.normalize(),i?i.status:void 0)}),s.normalize(),c}function l1(o){return!!(o&&o.__CANCEL__)}function Nn(o,i,a){Ke.call(this,o??"canceled",Ke.ERR_CANCELED,i,a),this.name="CanceledError"}le.inherits(Nn,Ke,{__CANCEL__:!0});function s1(o,i,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?o(a):i(new Ke("Request failed with status code "+a.status,[Ke.ERR_BAD_REQUEST,Ke.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Mx(o){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return i&&i[1]||""}function qx(o,i){o=o||10;const a=new Array(o),r=new Array(o);let s=0,c=0,p;return i=i!==void 0?i:1e3,function(h){const b=Date.now(),g=r[c];p||(p=b),a[s]=h,r[s]=b;let v=c,y=0;for(;v!==s;)y+=a[v++],v=v%o;if(s=(s+1)%o,s===c&&(c=(c+1)%o),b-p<i)return;const C=g&&b-g;return C?Math.round(y*1e3/C):void 0}}function jx(o,i){let a=0,r=1e3/i,s,c;const p=(b,g=Date.now())=>{a=g,s=null,c&&(clearTimeout(c),c=null),o.apply(null,b)};return[(...b)=>{const g=Date.now(),v=g-a;v>=r?p(b,g):(s=b,c||(c=setTimeout(()=>{c=null,p(s)},r-v)))},()=>s&&p(s)]}const Ur=(o,i,a=3)=>{let r=0;const s=qx(50,250);return jx(c=>{const p=c.loaded,f=c.lengthComputable?c.total:void 0,h=p-r,b=s(h),g=p<=f;r=p;const v={loaded:p,total:f,progress:f?p/f:void 0,bytes:h,rate:b||void 0,estimated:b&&f&&g?(f-p)/b:void 0,event:c,lengthComputable:f!=null,[i?"download":"upload"]:!0};o(v)},a)},c1=(o,i)=>{const a=o!=null;return[r=>i[0]({lengthComputable:a,total:o,loaded:r}),i[1]]},d1=o=>(...i)=>le.asap(()=>o(...i)),Fx=Qt.hasStandardBrowserEnv?((o,i)=>a=>(a=new URL(a,Qt.origin),o.protocol===a.protocol&&o.host===a.host&&(i||o.port===a.port)))(new URL(Qt.origin),Qt.navigator&&/(msie|trident)/i.test(Qt.navigator.userAgent)):()=>!0,Vx=Qt.hasStandardBrowserEnv?{write(o,i,a,r,s,c){const p=[o+"="+encodeURIComponent(i)];le.isNumber(a)&&p.push("expires="+new Date(a).toGMTString()),le.isString(r)&&p.push("path="+r),le.isString(s)&&p.push("domain="+s),c===!0&&p.push("secure"),document.cookie=p.join("; ")},read(o){const i=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Ux(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function zx(o,i){return i?o.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):o}function p1(o,i,a){let r=!Ux(i);return o&&(r||a==!1)?zx(o,i):i}const u1=o=>o instanceof uo?{...o}:o;function Qi(o,i){i=i||{};const a={};function r(b,g,v,y){return le.isPlainObject(b)&&le.isPlainObject(g)?le.merge.call({caseless:y},b,g):le.isPlainObject(g)?le.merge({},g):le.isArray(g)?g.slice():g}function s(b,g,v,y){if(le.isUndefined(g)){if(!le.isUndefined(b))return r(void 0,b,v,y)}else return r(b,g,v,y)}function c(b,g){if(!le.isUndefined(g))return r(void 0,g)}function p(b,g){if(le.isUndefined(g)){if(!le.isUndefined(b))return r(void 0,b)}else return r(void 0,g)}function f(b,g,v){if(v in i)return r(b,g);if(v in o)return r(void 0,b)}const h={url:c,method:c,data:c,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:f,headers:(b,g,v)=>s(u1(b),u1(g),v,!0)};return le.forEach(Object.keys(Object.assign({},o,i)),function(g){const v=h[g]||s,y=v(o[g],i[g],g);le.isUndefined(y)&&v!==f||(a[g]=y)}),a}const f1=o=>{const i=Qi({},o);let{data:a,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:c,headers:p,auth:f}=i;i.headers=p=uo.from(p),i.url=o1(p1(i.baseURL,i.url,i.allowAbsoluteUrls),o.params,o.paramsSerializer),f&&p.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let h;if(le.isFormData(a)){if(Qt.hasStandardBrowserEnv||Qt.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((h=p.getContentType())!==!1){const[b,...g]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];p.setContentType([b||"multipart/form-data",...g].join("; "))}}if(Qt.hasStandardBrowserEnv&&(r&&le.isFunction(r)&&(r=r(i)),r||r!==!1&&Fx(i.url))){const b=s&&c&&Vx.read(c);b&&p.set(s,b)}return i},Hx=typeof XMLHttpRequest<"u"&&function(o){return new Promise(function(a,r){const s=f1(o);let c=s.data;const p=uo.from(s.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:b}=s,g,v,y,C,E;function S(){C&&C(),E&&E(),s.cancelToken&&s.cancelToken.unsubscribe(g),s.signal&&s.signal.removeEventListener("abort",g)}let I=new XMLHttpRequest;I.open(s.method.toUpperCase(),s.url,!0),I.timeout=s.timeout;function k(){if(!I)return;const T=uo.from("getAllResponseHeaders"in I&&I.getAllResponseHeaders()),D={data:!f||f==="text"||f==="json"?I.responseText:I.response,status:I.status,statusText:I.statusText,headers:T,config:o,request:I};s1(function(R){a(R),S()},function(R){r(R),S()},D),I=null}"onloadend"in I?I.onloadend=k:I.onreadystatechange=function(){!I||I.readyState!==4||I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0)||setTimeout(k)},I.onabort=function(){I&&(r(new Ke("Request aborted",Ke.ECONNABORTED,o,I)),I=null)},I.onerror=function(){r(new Ke("Network Error",Ke.ERR_NETWORK,o,I)),I=null},I.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const D=s.transitional||n1;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),r(new Ke(A,D.clarifyTimeoutError?Ke.ETIMEDOUT:Ke.ECONNABORTED,o,I)),I=null},c===void 0&&p.setContentType(null),"setRequestHeader"in I&&le.forEach(p.toJSON(),function(A,D){I.setRequestHeader(D,A)}),le.isUndefined(s.withCredentials)||(I.withCredentials=!!s.withCredentials),f&&f!=="json"&&(I.responseType=s.responseType),b&&([y,E]=Ur(b,!0),I.addEventListener("progress",y)),h&&I.upload&&([v,C]=Ur(h),I.upload.addEventListener("progress",v),I.upload.addEventListener("loadend",C)),(s.cancelToken||s.signal)&&(g=T=>{I&&(r(!T||T.type?new Nn(null,o,I):T),I.abort(),I=null)},s.cancelToken&&s.cancelToken.subscribe(g),s.signal&&(s.signal.aborted?g():s.signal.addEventListener("abort",g)));const x=Mx(s.url);if(x&&Qt.protocols.indexOf(x)===-1){r(new Ke("Unsupported protocol "+x+":",Ke.ERR_BAD_REQUEST,o));return}I.send(c||null)})},Wx=(o,i)=>{const{length:a}=o=o?o.filter(Boolean):[];if(i||a){let r=new AbortController,s;const c=function(b){if(!s){s=!0,f();const g=b instanceof Error?b:this.reason;r.abort(g instanceof Ke?g:new Nn(g instanceof Error?g.message:g))}};let p=i&&setTimeout(()=>{p=null,c(new Ke(`timeout ${i} of ms exceeded`,Ke.ETIMEDOUT))},i);const f=()=>{o&&(p&&clearTimeout(p),p=null,o.forEach(b=>{b.unsubscribe?b.unsubscribe(c):b.removeEventListener("abort",c)}),o=null)};o.forEach(b=>b.addEventListener("abort",c));const{signal:h}=r;return h.unsubscribe=()=>le.asap(f),h}},Zx=function*(o,i){let a=o.byteLength;if(a<i){yield o;return}let r=0,s;for(;r<a;)s=r+i,yield o.slice(r,s),r=s},Yx=async function*(o,i){for await(const a of Kx(o))yield*Zx(a,i)},Kx=async function*(o){if(o[Symbol.asyncIterator]){yield*o;return}const i=o.getReader();try{for(;;){const{done:a,value:r}=await i.read();if(a)break;yield r}}finally{await i.cancel()}},m1=(o,i,a,r)=>{const s=Yx(o,i);let c=0,p,f=h=>{p||(p=!0,r&&r(h))};return new ReadableStream({async pull(h){try{const{done:b,value:g}=await s.next();if(b){f(),h.close();return}let v=g.byteLength;if(a){let y=c+=v;a(y)}h.enqueue(new Uint8Array(g))}catch(b){throw f(b),b}},cancel(h){return f(h),s.return()}},{highWaterMark:2})},zr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",h1=zr&&typeof ReadableStream=="function",Gx=zr&&(typeof TextEncoder=="function"?(o=>i=>o.encode(i))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),b1=(o,...i)=>{try{return!!o(...i)}catch{return!1}},Xx=h1&&b1(()=>{let o=!1;const i=new Request(Qt.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!i}),g1=64*1024,Ns=h1&&b1(()=>le.isReadableStream(new Response("").body)),Hr={stream:Ns&&(o=>o.body)};zr&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Hr[i]&&(Hr[i]=le.isFunction(o[i])?a=>a[i]():(a,r)=>{throw new Ke(`Response type '${i}' is not supported`,Ke.ERR_NOT_SUPPORT,r)})})})(new Response);const Qx=async o=>{if(o==null)return 0;if(le.isBlob(o))return o.size;if(le.isSpecCompliantForm(o))return(await new Request(Qt.origin,{method:"POST",body:o}).arrayBuffer()).byteLength;if(le.isArrayBufferView(o)||le.isArrayBuffer(o))return o.byteLength;if(le.isURLSearchParams(o)&&(o=o+""),le.isString(o))return(await Gx(o)).byteLength},Jx=async(o,i)=>{const a=le.toFiniteNumber(o.getContentLength());return a??Qx(i)},Ps={http:wx,xhr:Hx,fetch:zr&&(async o=>{let{url:i,method:a,data:r,signal:s,cancelToken:c,timeout:p,onDownloadProgress:f,onUploadProgress:h,responseType:b,headers:g,withCredentials:v="same-origin",fetchOptions:y}=f1(o);b=b?(b+"").toLowerCase():"text";let C=Wx([s,c&&c.toAbortSignal()],p),E;const S=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let I;try{if(h&&Xx&&a!=="get"&&a!=="head"&&(I=await Jx(g,r))!==0){let D=new Request(i,{method:"POST",body:r,duplex:"half"}),P;if(le.isFormData(r)&&(P=D.headers.get("content-type"))&&g.setContentType(P),D.body){const[R,M]=c1(I,Ur(d1(h)));r=m1(D.body,g1,R,M)}}le.isString(v)||(v=v?"include":"omit");const k="credentials"in Request.prototype;E=new Request(i,{...y,signal:C,method:a.toUpperCase(),headers:g.normalize().toJSON(),body:r,duplex:"half",credentials:k?v:void 0});let x=await fetch(E,y);const T=Ns&&(b==="stream"||b==="response");if(Ns&&(f||T&&S)){const D={};["status","statusText","headers"].forEach(j=>{D[j]=x[j]});const P=le.toFiniteNumber(x.headers.get("content-length")),[R,M]=f&&c1(P,Ur(d1(f),!0))||[];x=new Response(m1(x.body,g1,R,()=>{M&&M(),S&&S()}),D)}b=b||"text";let A=await Hr[le.findKey(Hr,b)||"text"](x,o);return!T&&S&&S(),await new Promise((D,P)=>{s1(D,P,{data:A,headers:uo.from(x.headers),status:x.status,statusText:x.statusText,config:o,request:E})})}catch(k){throw S&&S(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new Ke("Network Error",Ke.ERR_NETWORK,o,E),{cause:k.cause||k}):Ke.from(k,k&&k.code,o,E)}})};le.forEach(Ps,(o,i)=>{if(o){try{Object.defineProperty(o,"name",{value:i})}catch{}Object.defineProperty(o,"adapterName",{value:i})}});const y1=o=>`- ${o}`,e_=o=>le.isFunction(o)||o===null||o===!1,v1={getAdapter:o=>{o=le.isArray(o)?o:[o];const{length:i}=o;let a,r;const s={};for(let c=0;c<i;c++){a=o[c];let p;if(r=a,!e_(a)&&(r=Ps[(p=String(a)).toLowerCase()],r===void 0))throw new Ke(`Unknown adapter '${p}'`);if(r)break;s[p||"#"+c]=r}if(!r){const c=Object.entries(s).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let p=i?c.length>1?`since :
|
|
34
34
|
`+c.map(y1).join(`
|
|
35
35
|
`):" "+y1(c[0]):"as no adapter specified";throw new Ke("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return r},adapters:Ps};function $s(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new Nn(null,o)}function w1(o){return $s(o),o.headers=uo.from(o.headers),o.data=Ls.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),v1.getAdapter(o.adapter||fa.adapter)(o).then(function(r){return $s(o),r.data=Ls.call(o,o.transformResponse,r),r.headers=uo.from(r.headers),r},function(r){return l1(r)||($s(o),r&&r.response&&(r.response.data=Ls.call(o,o.transformResponse,r.response),r.response.headers=uo.from(r.response.headers))),Promise.reject(r)})}const C1="1.10.0",Wr={};["object","boolean","number","function","string","symbol"].forEach((o,i)=>{Wr[o]=function(r){return typeof r===o||"a"+(i<1?"n ":" ")+o}});const k1={};Wr.transitional=function(i,a,r){function s(c,p){return"[Axios v"+C1+"] Transitional option '"+c+"'"+p+(r?". "+r:"")}return(c,p,f)=>{if(i===!1)throw new Ke(s(p," has been removed"+(a?" in "+a:"")),Ke.ERR_DEPRECATED);return a&&!k1[p]&&(k1[p]=!0,console.warn(s(p," has been deprecated since v"+a+" and will be removed in the near future"))),i?i(c,p,f):!0}},Wr.spelling=function(i){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${i}`),!0)};function t_(o,i,a){if(typeof o!="object")throw new Ke("options must be an object",Ke.ERR_BAD_OPTION_VALUE);const r=Object.keys(o);let s=r.length;for(;s-- >0;){const c=r[s],p=i[c];if(p){const f=o[c],h=f===void 0||p(f,c,o);if(h!==!0)throw new Ke("option "+c+" must be "+h,Ke.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Ke("Unknown option "+c,Ke.ERR_BAD_OPTION)}}const Zr={assertOptions:t_,validators:Wr},Uo=Zr.validators;let Ji=class{constructor(i){this.defaults=i||{},this.interceptors={request:new i1,response:new i1}}async request(i,a){try{return await this._request(i,a)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const c=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?c&&!String(r.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
36
|
-
`+c):r.stack=c}catch{}}throw r}}_request(i,a){typeof i=="string"?(a=a||{},a.url=i):a=i||{},a=Qi(this.defaults,a);const{transitional:r,paramsSerializer:s,headers:c}=a;r!==void 0&&Zr.assertOptions(r,{silentJSONParsing:Uo.transitional(Uo.boolean),forcedJSONParsing:Uo.transitional(Uo.boolean),clarifyTimeoutError:Uo.transitional(Uo.boolean)},!1),s!=null&&(le.isFunction(s)?a.paramsSerializer={serialize:s}:Zr.assertOptions(s,{encode:Uo.function,serialize:Uo.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Zr.assertOptions(a,{baseUrl:Uo.spelling("baseURL"),withXsrfToken:Uo.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let p=c&&le.merge(c.common,c[a.method]);c&&le.forEach(["delete","get","head","post","put","patch","common"],E=>{delete c[E]}),a.headers=uo.concat(p,c);const f=[];let h=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(a)===!1||(h=h&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const b=[];this.interceptors.response.forEach(function(S){b.push(S.fulfilled,S.rejected)});let g,v=0,y;if(!h){const E=[w1.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,b),y=E.length,g=Promise.resolve(a);v<y;)g=g.then(E[v++],E[v++]);return g}y=f.length;let C=a;for(v=0;v<y;){const E=f[v++],S=f[v++];try{C=E(C)}catch(I){S.call(this,I);break}}try{g=w1.call(this,C)}catch(E){return Promise.reject(E)}for(v=0,y=b.length;v<y;)g=g.then(b[v++],b[v++]);return g}getUri(i){i=Qi(this.defaults,i);const a=p1(i.baseURL,i.url,i.allowAbsoluteUrls);return o1(a,i.params,i.paramsSerializer)}};le.forEach(["delete","get","head","options"],function(i){Ji.prototype[i]=function(a,r){return this.request(Qi(r||{},{method:i,url:a,data:(r||{}).data}))}}),le.forEach(["post","put","patch"],function(i){function a(r){return function(c,p,f){return this.request(Qi(f||{},{method:i,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:p}))}}Ji.prototype[i]=a(),Ji.prototype[i+"Form"]=a(!0)});let o_=class O6{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const r=this;this.promise.then(s=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](s);r._listeners=null}),this.promise.then=s=>{let c;const p=new Promise(f=>{r.subscribe(f),c=f}).then(s);return p.cancel=function(){r.unsubscribe(c)},p},i(function(c,p,f){r.reason||(r.reason=new Nn(c,p,f),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const i=new AbortController,a=r=>{i.abort(r)};return this.subscribe(a),i.signal.unsubscribe=()=>this.unsubscribe(a),i.signal}static source(){let i;return{token:new O6(function(s){i=s}),cancel:i}}};function i_(o){return function(a){return o.apply(null,a)}}function n_(o){return le.isObject(o)&&o.isAxiosError===!0}const Ms={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ms).forEach(([o,i])=>{Ms[i]=o});function x1(o){const i=new Ji(o),a=qu(Ji.prototype.request,i);return le.extend(a,Ji.prototype,i,{allOwnKeys:!0}),le.extend(a,i,null,{allOwnKeys:!0}),a.create=function(s){return x1(Qi(o,s))},a}const Et=x1(fa);Et.Axios=Ji,Et.CanceledError=Nn,Et.CancelToken=o_,Et.isCancel=l1,Et.VERSION=C1,Et.toFormData=Fr,Et.AxiosError=Ke,Et.Cancel=Et.CanceledError,Et.all=function(i){return Promise.all(i)},Et.spread=i_,Et.isAxiosError=n_,Et.mergeConfig=Qi,Et.AxiosHeaders=uo,Et.formToJSON=o=>a1(le.isHTMLForm(o)?new FormData(o):o),Et.getAdapter=v1.getAdapter,Et.HttpStatusCode=Ms,Et.default=Et;const{Axios:Qne,AxiosError:Jne,CanceledError:eae,isCancel:tae,CancelToken:oae,VERSION:iae,all:nae,Cancel:aae,isAxiosError:rae,spread:lae,toFormData:sae,AxiosHeaders:cae,HttpStatusCode:dae,formToJSON:pae,getAdapter:uae,mergeConfig:fae}=Et,_1=({interceptors:o,baseURL:i,...a}={})=>{const r=Et.create({baseURL:i,headers:{"X-Webitel-Access":localStorage.getItem("access-token")||""},...a});if(o){const{request:s,response:c}=o;if(s)for(const p of s)r.interceptors.request.use(...p);if(c)for(const p of c)r.interceptors.response.use(...p)}return r},I1="-",a_=o=>o||I1,r_={class:"wt-display-chip-items"},l_={key:0},s_=["onClick"],c_=l.defineComponent({__name:"wt-display-chip-items",props:{hideFirstItem:{type:Boolean},useEmptySymbol:{type:Boolean},title:{},items:{}},setup(o){const i=o,a=l.computed(()=>{var s,c;return(s=i.items)!=null&&s.length?(c=i.items[0])==null?void 0:c.name:i.useEmptySymbol?I1:""}),r=l.computed(()=>{var s;return(s=i.items)!=null&&s.length?i.hideFirstItem?i.items:i.items.slice(1):[]});return(s,c)=>(l.openBlock(),l.createElementBlock("div",r_,[i.title?(l.openBlock(),l.createElementBlock("p",l_,l.toDisplayString(s.title)+":",1)):l.createCommentVNode("",!0),i.hideFirstItem?l.createCommentVNode("",!0):l.renderSlot(s.$slots,"first-item",{key:1},()=>[l.createTextVNode(l.toDisplayString(l.unref(a_)(a.value)),1)],!0),l.createVNode(l.unref(Gh),null,{activator:l.withCtx(({toggle:p})=>[l.renderSlot(s.$slots,"activator",{toggle:p},()=>[r.value.length?(l.openBlock(),l.createElementBlock("div",{key:0,onClick:p},[l.createVNode(l.unref(Lm),null,{default:l.withCtx(()=>[l.createTextVNode(" +"+l.toDisplayString(r.value.length),1)],void 0,!0),_:1})],8,s_)):l.createCommentVNode("",!0)],!0)]),default:l.withCtx(()=>[l.renderSlot(s.$slots,"items",{items:r.value},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,({name:p,id:f})=>(l.openBlock(),l.createElementBlock("div",{key:f},l.toDisplayString(p),1))),128))],!0)]),_:3})]))}}),Oe=(o,i)=>{const a=o.__vccOpts||o;for(const[r,s]of i)a[r]=s;return a},d_=Oe(c_,[["__scopeId","data-v-25de82fe"]]),p_={class:"nav-menu__category nav-menu-lvl-1"},u_=["onClick"],f_=Oe({__name:"nav-menu-lvl-1",props:{categories:{type:Array,default:()=>[]},selected:{type:Object,default:()=>({})},icons:{type:Array,default:()=>[]}},emits:["select"],setup(o,{emit:i}){const a=i;function r(s){a("select",s)}return(s,c)=>{const p=l.resolveComponent("wt-icon");return l.openBlock(),l.createElementBlock("ul",p_,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.categories,(f,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"nav-menu__option"},[l.createElementVNode("button",{class:l.normalizeClass([{"nav-menu__item--selected":o.selected.value===f.value},"nav-menu__item nav-menu__item--active"]),onClick:b=>r(f)},[l.createVNode(p,{color:o.selected.value===f.value?"on-primary":"default",icon:o.icons.find(b=>b.includes(f.value))},null,8,["color","icon"]),l.createTextVNode(" "+l.toDisplayString(f.name),1)],10,u_),l.withDirectives(l.createElementVNode("div",null,[l.renderSlot(s.$slots,"default",{},void 0,!0)],512),[[l.vShow,o.selected.value===f.value]])]))),128))])}}},[["__scopeId","data-v-0364be24"]]),m_={class:"nav-menu__category nav-menu-lvl-2"},S1=Oe({__name:"nav-menu-lvl-2",props:{categories:{type:Array,default:()=>[]}},setup(o){return(i,a)=>{const r=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("ul",m_,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.categories,(s,c)=>(l.openBlock(),l.createElementBlock("li",{key:c,class:"nav-menu__option nav-menu__item nav-menu-lvl-2--inner"},[a[0]||(a[0]=l.createElementVNode("span",{class:"nav-menu-lvl-2__indicator"},null,-1)),l.createVNode(r,{to:s.route,class:"nav-menu-lvl-2__link"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(s.name),1)],void 0,!0),_:2},1032,["to"])]))),128))])}}},[["__scopeId","data-v-45d689f4"]]),h_={class:"wt-navigation-menu"},b_={class:"wt-navigation-menu__wrapper"},g_=Oe({__name:"wt-navigation-menu",props:{nav:{type:Array,required:!0},icons:{type:Array,default:()=>[]}},setup(o){const i=o,a=l.ref(""),r=l.computed(()=>{const b=new Map;return i.nav.forEach(g=>{b.set(g.value,{...g,name:g.name})}),b}),s=l.computed(()=>{const b=new Map;return i.nav.forEach(g=>{if(g.subNav){const v=g.subNav.map(y=>{const C=g.route?`${g.route}/${y.route}`:y.route;return{...y,name:y.name,route:C}});b.set(g.value,v)}else b.set(g.value,[])}),b}),c=l.computed(()=>Array.from(r.value.values()).filter(b=>{const g=s.value.get(b.value);return g&&g.length>0})),p=l.computed(()=>{var b;return s.value.get((b=f.value)==null?void 0:b.value)||[]}),f=l.computed(()=>r.value.get(a.value)||c.value[0]);function h(b){a.value=b.value}return(b,g)=>(l.openBlock(),l.createElementBlock("section",h_,[l.createElementVNode("article",b_,[l.createVNode(f_,{categories:c.value,icons:o.icons,selected:f.value,onSelect:h},{default:l.withCtx(()=>[l.createVNode(S1,{categories:p.value,class:"wt-navigation-menu__categories--display"},null,8,["categories"])],void 0,!0),_:1},8,["categories","icons","selected"]),l.createVNode(S1,{categories:p.value,class:"wt-navigation-menu__categories--hidden"},null,8,["categories"])])]))}},[["__scopeId","data-v-e96ba792"]]);/*!
|
|
36
|
+
`+c):r.stack=c}catch{}}throw r}}_request(i,a){typeof i=="string"?(a=a||{},a.url=i):a=i||{},a=Qi(this.defaults,a);const{transitional:r,paramsSerializer:s,headers:c}=a;r!==void 0&&Zr.assertOptions(r,{silentJSONParsing:Uo.transitional(Uo.boolean),forcedJSONParsing:Uo.transitional(Uo.boolean),clarifyTimeoutError:Uo.transitional(Uo.boolean)},!1),s!=null&&(le.isFunction(s)?a.paramsSerializer={serialize:s}:Zr.assertOptions(s,{encode:Uo.function,serialize:Uo.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Zr.assertOptions(a,{baseUrl:Uo.spelling("baseURL"),withXsrfToken:Uo.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let p=c&&le.merge(c.common,c[a.method]);c&&le.forEach(["delete","get","head","post","put","patch","common"],E=>{delete c[E]}),a.headers=uo.concat(p,c);const f=[];let h=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(a)===!1||(h=h&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const b=[];this.interceptors.response.forEach(function(S){b.push(S.fulfilled,S.rejected)});let g,v=0,y;if(!h){const E=[w1.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,b),y=E.length,g=Promise.resolve(a);v<y;)g=g.then(E[v++],E[v++]);return g}y=f.length;let C=a;for(v=0;v<y;){const E=f[v++],S=f[v++];try{C=E(C)}catch(I){S.call(this,I);break}}try{g=w1.call(this,C)}catch(E){return Promise.reject(E)}for(v=0,y=b.length;v<y;)g=g.then(b[v++],b[v++]);return g}getUri(i){i=Qi(this.defaults,i);const a=p1(i.baseURL,i.url,i.allowAbsoluteUrls);return o1(a,i.params,i.paramsSerializer)}};le.forEach(["delete","get","head","options"],function(i){Ji.prototype[i]=function(a,r){return this.request(Qi(r||{},{method:i,url:a,data:(r||{}).data}))}}),le.forEach(["post","put","patch"],function(i){function a(r){return function(c,p,f){return this.request(Qi(f||{},{method:i,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:p}))}}Ji.prototype[i]=a(),Ji.prototype[i+"Form"]=a(!0)});let o_=class O6{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const r=this;this.promise.then(s=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](s);r._listeners=null}),this.promise.then=s=>{let c;const p=new Promise(f=>{r.subscribe(f),c=f}).then(s);return p.cancel=function(){r.unsubscribe(c)},p},i(function(c,p,f){r.reason||(r.reason=new Nn(c,p,f),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const i=new AbortController,a=r=>{i.abort(r)};return this.subscribe(a),i.signal.unsubscribe=()=>this.unsubscribe(a),i.signal}static source(){let i;return{token:new O6(function(s){i=s}),cancel:i}}};function i_(o){return function(a){return o.apply(null,a)}}function n_(o){return le.isObject(o)&&o.isAxiosError===!0}const Ms={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ms).forEach(([o,i])=>{Ms[i]=o});function x1(o){const i=new Ji(o),a=qu(Ji.prototype.request,i);return le.extend(a,Ji.prototype,i,{allOwnKeys:!0}),le.extend(a,i,null,{allOwnKeys:!0}),a.create=function(s){return x1(Qi(o,s))},a}const Et=x1(fa);Et.Axios=Ji,Et.CanceledError=Nn,Et.CancelToken=o_,Et.isCancel=l1,Et.VERSION=C1,Et.toFormData=Fr,Et.AxiosError=Ke,Et.Cancel=Et.CanceledError,Et.all=function(i){return Promise.all(i)},Et.spread=i_,Et.isAxiosError=n_,Et.mergeConfig=Qi,Et.AxiosHeaders=uo,Et.formToJSON=o=>a1(le.isHTMLForm(o)?new FormData(o):o),Et.getAdapter=v1.getAdapter,Et.HttpStatusCode=Ms,Et.default=Et;const{Axios:Qne,AxiosError:Jne,CanceledError:eae,isCancel:tae,CancelToken:oae,VERSION:iae,all:nae,Cancel:aae,isAxiosError:rae,spread:lae,toFormData:sae,AxiosHeaders:cae,HttpStatusCode:dae,formToJSON:pae,getAdapter:uae,mergeConfig:fae}=Et,_1=({interceptors:o,baseURL:i,...a}={})=>{const r=Et.create({baseURL:i,headers:{"X-Webitel-Access":localStorage.getItem("access-token")||""},...a});if(o){const{request:s,response:c}=o;if(s)for(const p of s)r.interceptors.request.use(...p);if(c)for(const p of c)r.interceptors.response.use(...p)}return r},I1="-",a_=o=>o||I1,r_={class:"wt-display-chip-items"},l_={key:0},s_=["onClick"],c_=l.defineComponent({__name:"wt-display-chip-items",props:{hideFirstItem:{type:Boolean},useEmptySymbol:{type:Boolean},title:{},items:{}},setup(o){const i=o,a=l.computed(()=>{var s,c;return(s=i.items)!=null&&s.length?(c=i.items[0])==null?void 0:c.name:i.useEmptySymbol?I1:""}),r=l.computed(()=>{var s;return(s=i.items)!=null&&s.length?i.hideFirstItem?i.items:i.items.slice(1):[]});return(s,c)=>(l.openBlock(),l.createElementBlock("div",r_,[i.title?(l.openBlock(),l.createElementBlock("p",l_,l.toDisplayString(s.title)+":",1)):l.createCommentVNode("",!0),i.hideFirstItem?l.createCommentVNode("",!0):l.renderSlot(s.$slots,"first-item",{key:1},()=>[l.createTextVNode(l.toDisplayString(l.unref(a_)(a.value)),1)],!0),l.createVNode(l.unref(Gh),null,{activator:l.withCtx(({toggle:p})=>[l.renderSlot(s.$slots,"activator",{toggle:p},()=>[r.value.length?(l.openBlock(),l.createElementBlock("div",{key:0,onClick:p},[l.createVNode(l.unref(Lm),null,{default:l.withCtx(()=>[l.createTextVNode(" +"+l.toDisplayString(r.value.length),1)],void 0,!0),_:1})],8,s_)):l.createCommentVNode("",!0)],!0)]),default:l.withCtx(()=>[l.renderSlot(s.$slots,"items",{items:r.value},()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,({name:p,id:f})=>(l.openBlock(),l.createElementBlock("div",{key:f},l.toDisplayString(p),1))),128))],!0)]),_:3})]))}}),Oe=(o,i)=>{const a=o.__vccOpts||o;for(const[r,s]of i)a[r]=s;return a},d_=Oe(c_,[["__scopeId","data-v-d19c7f3b"]]),p_={class:"nav-menu__category nav-menu-lvl-1"},u_=["onClick"],f_=Oe({__name:"nav-menu-lvl-1",props:{categories:{type:Array,default:()=>[]},selected:{type:Object,default:()=>({})},icons:{type:Array,default:()=>[]}},emits:["select"],setup(o,{emit:i}){const a=i;function r(s){a("select",s)}return(s,c)=>{const p=l.resolveComponent("wt-icon");return l.openBlock(),l.createElementBlock("ul",p_,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.categories,(f,h)=>(l.openBlock(),l.createElementBlock("li",{key:h,class:"nav-menu__option"},[l.createElementVNode("button",{class:l.normalizeClass([{"nav-menu__item--selected":o.selected.value===f.value},"nav-menu__item nav-menu__item--active"]),onClick:b=>r(f)},[l.createVNode(p,{color:o.selected.value===f.value?"on-primary":"default",icon:o.icons.find(b=>b.includes(f.value))},null,8,["color","icon"]),l.createTextVNode(" "+l.toDisplayString(f.name),1)],10,u_),l.withDirectives(l.createElementVNode("div",null,[l.renderSlot(s.$slots,"default",{},void 0,!0)],512),[[l.vShow,o.selected.value===f.value]])]))),128))])}}},[["__scopeId","data-v-0364be24"]]),m_={class:"nav-menu__category nav-menu-lvl-2"},S1=Oe({__name:"nav-menu-lvl-2",props:{categories:{type:Array,default:()=>[]}},setup(o){return(i,a)=>{const r=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("ul",m_,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.categories,(s,c)=>(l.openBlock(),l.createElementBlock("li",{key:c,class:"nav-menu__option nav-menu__item nav-menu-lvl-2--inner"},[a[0]||(a[0]=l.createElementVNode("span",{class:"nav-menu-lvl-2__indicator"},null,-1)),l.createVNode(r,{to:s.route,class:"nav-menu-lvl-2__link"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(s.name),1)],void 0,!0),_:2},1032,["to"])]))),128))])}}},[["__scopeId","data-v-45d689f4"]]),h_={class:"wt-navigation-menu"},b_={class:"wt-navigation-menu__wrapper"},g_=Oe({__name:"wt-navigation-menu",props:{nav:{type:Array,required:!0},icons:{type:Array,default:()=>[]}},setup(o){const i=o,a=l.ref(""),r=l.computed(()=>{const b=new Map;return i.nav.forEach(g=>{b.set(g.value,{...g,name:g.name})}),b}),s=l.computed(()=>{const b=new Map;return i.nav.forEach(g=>{if(g.subNav){const v=g.subNav.map(y=>{const C=g.route?`${g.route}/${y.route}`:y.route;return{...y,name:y.name,route:C}});b.set(g.value,v)}else b.set(g.value,[])}),b}),c=l.computed(()=>Array.from(r.value.values()).filter(b=>{const g=s.value.get(b.value);return g&&g.length>0})),p=l.computed(()=>{var b;return s.value.get((b=f.value)==null?void 0:b.value)||[]}),f=l.computed(()=>r.value.get(a.value)||c.value[0]);function h(b){a.value=b.value}return(b,g)=>(l.openBlock(),l.createElementBlock("section",h_,[l.createElementVNode("article",b_,[l.createVNode(f_,{categories:c.value,icons:o.icons,selected:f.value,onSelect:h},{default:l.withCtx(()=>[l.createVNode(S1,{categories:p.value,class:"wt-navigation-menu__categories--display"},null,8,["categories"])],void 0,!0),_:1},8,["categories","icons","selected"]),l.createVNode(S1,{categories:p.value,class:"wt-navigation-menu__categories--hidden"},null,8,["categories"])])]))}},[["__scopeId","data-v-e96ba792"]]);/*!
|
|
37
37
|
* shared v11.1.3
|
|
38
38
|
* (c) 2025 kazuya kawaguchi
|
|
39
39
|
* Released under the MIT License.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.8.
|
|
3
|
+
"version": "25.8.79",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -6,28 +6,28 @@
|
|
|
6
6
|
{{ displayText(firstItemName) }}
|
|
7
7
|
</slot>
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
<wt-popover>
|
|
10
|
+
<template #activator="{ toggle }">
|
|
11
|
+
<slot name="activator" :toggle="toggle">
|
|
12
|
+
<div v-if="displayList.length" @click="toggle">
|
|
13
|
+
<wt-chip>
|
|
14
|
+
+{{ displayList.length }}
|
|
15
|
+
</wt-chip>
|
|
16
|
+
</div>
|
|
17
|
+
</slot>
|
|
18
|
+
</template>
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
<template #default>
|
|
21
|
+
<slot name="items" :items="displayList">
|
|
22
|
+
<div
|
|
23
|
+
v-for="({ name, id }) of displayList"
|
|
24
|
+
:key="id"
|
|
25
|
+
>
|
|
26
|
+
{{ name }}
|
|
27
|
+
</div>
|
|
28
|
+
</slot>
|
|
29
|
+
</template>
|
|
30
|
+
</wt-popover>
|
|
31
31
|
</div>
|
|
32
32
|
</template>
|
|
33
33
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const ProcessingTableColumnType = {
|
|
2
|
+
TEXT: 'text',
|
|
3
|
+
NUMBER: 'number',
|
|
4
|
+
BOOL: 'bool',
|
|
5
|
+
DATETIME: 'datetime',
|
|
6
|
+
LINK: 'link',
|
|
7
|
+
} as const;
|
|
8
|
+
|
|
9
|
+
export type ProcessingTableColumnType =
|
|
10
|
+
(typeof ProcessingTableColumnType)[keyof typeof ProcessingTableColumnType];
|
package/src/enums/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ComponentSize } from './ComponentSize/ComponentSize';
|
|
|
7
7
|
import { CrudAction } from './CrudAction/CrudAction';
|
|
8
8
|
import IconAction from './IconAction/IconAction.enum.js';
|
|
9
9
|
import { IconColor } from './IconColor/IconColor';
|
|
10
|
+
import { ProcessingTableColumnType } from './ProcessingTableColumnType/ProcessingTableColumnType';
|
|
10
11
|
import QueueType from './QueueType/QueueType.enum.js';
|
|
11
12
|
import { RelativeDatetimeValue } from './RelativeDatetimeValue/RelativeDatetimeValue';
|
|
12
13
|
import TypesExportedSettings from './TypesExportedSettings/TypesExportedSettings.enum.js';
|
|
@@ -32,6 +33,7 @@ export {
|
|
|
32
33
|
CrudAction,
|
|
33
34
|
IconAction,
|
|
34
35
|
IconColor,
|
|
36
|
+
ProcessingTableColumnType,
|
|
35
37
|
QueueType,
|
|
36
38
|
RelativeDatetimeValue,
|
|
37
39
|
SupervisorSections,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const ProcessingTableColumnType: {
|
|
2
|
+
readonly TEXT: "text";
|
|
3
|
+
readonly NUMBER: "number";
|
|
4
|
+
readonly BOOL: "bool";
|
|
5
|
+
readonly DATETIME: "datetime";
|
|
6
|
+
readonly LINK: "link";
|
|
7
|
+
};
|
|
8
|
+
export type ProcessingTableColumnType = (typeof ProcessingTableColumnType)[keyof typeof ProcessingTableColumnType];
|
package/types/enums/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ComponentSize } from './ComponentSize/ComponentSize';
|
|
|
7
7
|
import { CrudAction } from './CrudAction/CrudAction';
|
|
8
8
|
import IconAction from './IconAction/IconAction.enum.js';
|
|
9
9
|
import { IconColor } from './IconColor/IconColor';
|
|
10
|
+
import { ProcessingTableColumnType } from './ProcessingTableColumnType/ProcessingTableColumnType';
|
|
10
11
|
import QueueType from './QueueType/QueueType.enum.js';
|
|
11
12
|
import { RelativeDatetimeValue } from './RelativeDatetimeValue/RelativeDatetimeValue';
|
|
12
13
|
import TypesExportedSettings from './TypesExportedSettings/TypesExportedSettings.enum.js';
|
|
@@ -18,4 +19,4 @@ import WebitelApplications from './WebitelApplications/WebitelApplications.enum.
|
|
|
18
19
|
import { WtApplication } from './WebitelApplications/WtApplication';
|
|
19
20
|
import { WtObject } from './WtObject/WtObject';
|
|
20
21
|
import { WtTypeExtensionFieldKind } from './WtTypeExtensionFieldKind/WtTypeExtensionFieldKind';
|
|
21
|
-
export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, ButtonColor, ChatGatewayProvider, ChipColor, ComponentSize, CrmSections, CrudAction, IconAction, IconColor, QueueType, RelativeDatetimeValue, SupervisorSections, TypesExportedSettings, WebitelApplications, WtApplication, WtObject, WtTypeExtensionFieldKind, };
|
|
22
|
+
export { AbstractUserStatus, AdminSections, AgentStatus, AuditorSections, ButtonColor, ChatGatewayProvider, ChipColor, ComponentSize, CrmSections, CrudAction, IconAction, IconColor, ProcessingTableColumnType, QueueType, RelativeDatetimeValue, SupervisorSections, TypesExportedSettings, WebitelApplications, WtApplication, WtObject, WtTypeExtensionFieldKind, };
|