@robot-admin/naive-ui-components 0.41.2 → 0.42.0
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/CHANGELOG.md +9 -0
- package/README.md +3 -1
- package/README_EN.md +11 -9
- package/dist/ActionOverflow.cjs +1 -1
- package/dist/ActionOverflow.js +1 -1
- package/dist/C_ActionBar.cjs +1 -1
- package/dist/C_ActionBar.css +54 -54
- package/dist/C_ActionBar.js +1 -1
- package/dist/C_ActionBar2.cjs +1 -1
- package/dist/C_ActionBar2.js +1 -1
- package/dist/C_ApprovalViewer.css +15 -15
- package/dist/C_ApprovalViewer2.cjs +1 -1
- package/dist/C_ApprovalViewer2.js +1 -1
- package/dist/C_ContextMenu.css +3 -3
- package/dist/C_ContextMenu2.cjs +1 -1
- package/dist/C_ContextMenu2.js +1 -1
- package/dist/C_DataPicker.css +22 -22
- package/dist/C_DataPicker2.cjs +1 -1
- package/dist/C_DataPicker2.js +1 -1
- package/dist/C_Density2.cjs +1 -1
- package/dist/C_Density2.js +1 -1
- package/dist/C_Draggable.css +66 -53
- package/dist/C_Draggable2.cjs +1 -1
- package/dist/C_Draggable2.js +1 -1
- package/dist/C_Form.base.css +1 -1
- package/dist/C_Form.css +1 -1
- package/dist/C_FormModal.css +55 -55
- package/dist/C_FormModal2.cjs +1 -1
- package/dist/C_FormModal2.js +1 -1
- package/dist/C_FormSearch.css +1 -1
- package/dist/C_GlobalSearch2.cjs +1 -1
- package/dist/C_GlobalSearch2.js +1 -1
- package/dist/C_Language.css +2 -2
- package/dist/C_Language2.cjs +1 -1
- package/dist/C_Language2.js +1 -1
- package/dist/C_Login.css +85 -85
- package/dist/C_Login2.cjs +1 -1
- package/dist/C_Login2.js +1 -1
- package/dist/C_Markdown.css +37 -37
- package/dist/C_Markdown2.cjs +1 -1
- package/dist/C_Markdown2.js +1 -1
- package/dist/C_NotificationCenter2.cjs +1 -1
- package/dist/C_NotificationCenter2.js +1 -1
- package/dist/C_Progress2.cjs +1 -1
- package/dist/C_Progress2.js +1 -1
- package/dist/C_ResourceSchedule2.cjs +1 -1
- package/dist/C_ResourceSchedule2.js +1 -1
- package/dist/C_Select.css +1 -1
- package/dist/C_Select2.cjs +1 -1
- package/dist/C_Select2.js +1 -1
- package/dist/C_Signature.css +15 -15
- package/dist/C_Signature2.cjs +1 -1
- package/dist/C_Signature2.js +1 -1
- package/dist/C_SplitPane2.cjs +1 -1
- package/dist/C_SplitPane2.js +1 -1
- package/dist/C_Table.base.css +55 -55
- package/dist/C_Table.css +54 -54
- package/dist/C_Transfer.css +25 -25
- package/dist/C_Transfer2.cjs +1 -1
- package/dist/C_Transfer2.js +1 -1
- package/dist/C_Upload2.cjs +1 -1
- package/dist/C_Upload2.js +1 -1
- package/dist/C_UserPicker.css +1 -1
- package/dist/OptionStatus.cjs +1 -1
- package/dist/OptionStatus.js +1 -1
- package/dist/actionIcon.cjs +1 -1
- package/dist/actionIcon.js +1 -1
- package/dist/constants.d.cts +3 -3
- package/dist/constants.d.ts +3 -3
- package/dist/constants2.d.cts +2 -2
- package/dist/constants2.d.ts +2 -2
- package/dist/constants3.d.cts +4 -4
- package/dist/constants3.d.ts +4 -4
- package/dist/constants4.d.cts +6 -5
- package/dist/constants4.d.ts +6 -5
- package/dist/data2.d.cts +8 -8
- package/dist/data2.d.ts +8 -8
- package/dist/editors.d.cts +5 -5
- package/dist/editors.d.ts +5 -5
- package/dist/index.d.cts +1 -0
- package/dist/index10.vue.d.cts +2 -2
- package/dist/index11.vue.d.ts +2 -2
- package/dist/index12.vue.d.cts +2 -2
- package/dist/index12.vue.d.ts +2 -2
- package/dist/index13.vue.d.cts +2 -2
- package/dist/index13.vue.d.ts +3 -3
- package/dist/index14.vue.d.cts +3 -3
- package/dist/index14.vue.d.ts +3 -3
- package/dist/index15.vue.d.cts +3 -3
- package/dist/index17.vue.d.ts +4 -4
- package/dist/index18.vue.d.cts +4 -4
- package/dist/index19.vue.d.ts +2 -2
- package/dist/index2.vue.d.cts +2 -2
- package/dist/index2.vue.d.ts +2 -2
- package/dist/index20.vue.d.cts +2 -2
- package/dist/index20.vue.d.ts +3 -3
- package/dist/index21.vue.d.cts +3 -3
- package/dist/index21.vue.d.ts +5 -5
- package/dist/index22.vue.d.cts +5 -5
- package/dist/index24.vue.d.ts +2 -2
- package/dist/index25.vue.d.cts +2 -2
- package/dist/index27.vue.d.ts +4 -4
- package/dist/index28.vue.d.cts +4 -4
- package/dist/index29.vue.d.cts +2 -2
- package/dist/index29.vue.d.ts +2 -2
- package/dist/index3.vue.d.cts +2 -2
- package/dist/index3.vue.d.ts +2 -2
- package/dist/index31.vue.d.cts +1 -1
- package/dist/index31.vue.d.ts +1 -1
- package/dist/index35.vue.d.cts +2 -2
- package/dist/index35.vue.d.ts +2 -2
- package/dist/index38.vue.d.cts +2 -2
- package/dist/index38.vue.d.ts +2 -2
- package/dist/index41.vue.d.cts +1 -1
- package/dist/index41.vue.d.ts +1 -1
- package/dist/index42.vue.d.cts +1 -1
- package/dist/index42.vue.d.ts +1 -1
- package/dist/index43.vue.d.cts +2 -2
- package/dist/index43.vue.d.ts +2 -2
- package/dist/index5.vue.d.cts +1 -1
- package/dist/index5.vue.d.ts +1 -1
- package/dist/index6.vue.d.cts +4 -4
- package/dist/index6.vue.d.ts +4 -4
- package/dist/index9.vue.d.ts +2 -2
- package/dist/mapUtils.d.cts +2 -2
- package/dist/mapUtils.d.ts +2 -2
- package/dist/presets.d.cts +1 -1
- package/dist/presets.d.ts +1 -1
- package/dist/source.cjs +1 -1
- package/dist/source.js +1 -1
- package/dist/style.css +327 -314
- package/dist/types.d.cts +4 -0
- package/dist/types.d.ts +4 -0
- package/dist/useCalendarEvents.d.cts +1 -1
- package/dist/useCalendarEvents.d.ts +1 -1
- package/dist/useCollapsePanel.d.cts +3 -3
- package/dist/useCollapsePanel.d.ts +3 -3
- package/dist/useCropperCore.d.cts +4 -4
- package/dist/useCropperCore.d.ts +4 -4
- package/dist/useFormulaEvaluator.cjs +1 -1
- package/dist/useFormulaEvaluator.js +1 -1
- package/dist/useInfiniteScroll.d.cts +2 -2
- package/dist/useInfiniteScroll.d.ts +2 -2
- package/dist/useQRCode.d.cts +3 -3
- package/dist/useQRCode.d.ts +3 -3
- package/dist/useSignatureHistory.d.cts +1 -0
- package/dist/useSignatureHistory.d.ts +1 -0
- package/dist/useSplitResize.d.cts +2 -2
- package/dist/useSplitResize.d.ts +2 -2
- package/dist/useWorkflowValidation.d.cts +32 -32
- package/dist/useWorkflowValidation.d.ts +32 -32
- package/dist/verification.d.cts +7 -7
- package/dist/verification.d.ts +7 -7
- package/docs/guides/resource-schedule.md +1 -0
- package/docs/guides/usage.en.md +15 -4
- package/docs/guides/usage.md +13 -4
- package/package.json +1 -1
package/dist/OptionStatus.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);const e=require(`./useDataResource.cjs`),t=require(`./data2.cjs`),n=require(`./useComponentLocale.cjs`);let r=require(`vue`);const i=(e,t,n)=>Number.isFinite(e)&&Number.isInteger(e)&&e>=n?e:t;function a(n){let a=(0,r.computed)(()=>(0,r.toValue)(n.source)),o=(0,r.computed)(()=>n.values?(0,r.toValue)(n.values):[]),s=(0,r.ref)(``),c=(0,r.ref)(!1),l=(0,r.ref)(!1),u=(0,r.ref)(1),d=(0,r.ref)(0),f=(0,r.ref)(0),p=(0,r.shallowRef)([]),m=(0,r.ref)(0),h=(0,r.shallowRef)(new Map),g=(0,r.computed)(()=>i(a.value?.minChars,0,0)),_=(0,r.computed)(()=>i(a.value?.pageSize,20,1)),v,y=!1,b=!1,x=()=>{clearTimeout(v),v=void 0};function S(e=!1){if(x(),l.value=!1,b||y||!c.value||!a.value||(0,r.toValue)(n.disabled)||s.value.trim().length<g.value)return;let t=e?0:i(a.value.debounce,250,0);t?v=setTimeout(()=>{v=void 0,l.value=!0},t):l.value=!0}function C(){l.value=!1,d.value++,u.value=1,p.value=[],m.value=0}function w(e){s.value!==e&&(s.value=e,C(),S())}function T(){c.value||b||(c.value=!0,u.value=1,S(!0))}function E(){x(),l.value=!1,c.value=!1}let D=a.value?{...a.value,filters:t.t(a.value.filters)}:void 0;(0,r.watch)(a,e=>{([`request`,`resolve`,`value`,`label`,`pageSize`,`minChars`,`debounce`].some(t=>e?.[t]!==D?.[t])||!t.a(e?.filters,D?.filters))&&(D=e?{...e,filters:t.t(e.filters)}:void 0,f.value++,h.value=new Map,C(),S(!0))},{deep:!0,flush:`sync`}),(0,r.watch)(()=>(0,r.toValue)(n.disabled),e=>{e&&E()},{flush:`sync`});function O(e,t){if(!Array.isArray(e))throw TypeError(`Option source must return a row array`);let n=new Set;for(let r of e){let e=t.value(r);if(![`string`,`number`,`boolean`].includes(typeof e)||typeof e==`number`&&!Number.isFinite(e)||n.has(e))throw TypeError(`Option source must return unique string, number or boolean values`);if(typeof t.label(r)!=`string`)throw TypeError(`Option labels must be strings`);n.add(e)}}let k=e.t({key:(0,r.computed)(()=>l.value&&c.value&&a.value&&!(0,r.toValue)(n.disabled)?`${d.value}:${u.value}`:null),load:async({signal:e})=>{let n=a.value,r=u.value,i=r===1?[]:[...p.value],o=await n.request({search:s.value.trim(),page:r,pageSize:_.value,signal:e,...n.filters===void 0?{}:{filters:t.t(n.filters)}});if(O(o.rows,n),!Number.isSafeInteger(o.total)||o.total<o.rows.length||o.rows.length>_.value)throw TypeError(`Option source returned an invalid page`);let c=new Map(i.map(e=>[n.value(e),e]));return o.rows.forEach(e=>c.set(n.value(e),e)),{rows:[...c.values()],total:o.total,exhausted:o.rows.length===0||r*_.value>=o.total}},isEmpty:e=>!e.rows.length}),A=(0,r.ref)(!1);(0,r.watch)(k.data,e=>{!e||!a.value||(p.value=e.rows,m.value=e.total,A.value=e.exhausted,
|
|
1
|
+
require(`./chunk.cjs`);const e=require(`./useDataResource.cjs`),t=require(`./data2.cjs`),n=require(`./useComponentLocale.cjs`);let r=require(`vue`);const i=(e,t,n)=>Number.isFinite(e)&&Number.isInteger(e)&&e>=n?e:t;function a(n){let a=(0,r.computed)(()=>(0,r.toValue)(n.source)),o=(0,r.computed)(()=>n.values?(0,r.toValue)(n.values):[]),s=(0,r.ref)(``),c=(0,r.ref)(!1),l=(0,r.ref)(!1),u=(0,r.ref)(1),d=(0,r.ref)(0),f=(0,r.ref)(0),p=(0,r.shallowRef)([]),m=(0,r.ref)(0),h=(0,r.shallowRef)(new Map),g=(0,r.computed)(()=>i(a.value?.minChars,0,0)),_=(0,r.computed)(()=>i(a.value?.pageSize,20,1)),v,y=!1,b=!1,x=()=>{clearTimeout(v),v=void 0};function S(e=!1){if(x(),l.value=!1,b||y||!c.value||!a.value||(0,r.toValue)(n.disabled)||s.value.trim().length<g.value)return;let t=e?0:i(a.value.debounce,250,0);t?v=setTimeout(()=>{v=void 0,l.value=!0},t):l.value=!0}function C(){l.value=!1,d.value++,u.value=1,p.value=[],m.value=0}function w(e){s.value!==e&&(s.value=e,C(),S())}function T(){c.value||b||(c.value=!0,u.value=1,S(!0))}function E(){x(),l.value=!1,c.value=!1}let D=a.value?{...a.value,filters:t.t(a.value.filters)}:void 0;(0,r.watch)(a,e=>{([`request`,`resolve`,`value`,`label`,`pageSize`,`minChars`,`debounce`].some(t=>e?.[t]!==D?.[t])||!t.a(e?.filters,D?.filters))&&(D=e?{...e,filters:t.t(e.filters)}:void 0,f.value++,h.value=new Map,C(),S(!0))},{deep:!0,flush:`sync`}),(0,r.watch)(()=>(0,r.toValue)(n.disabled),e=>{e&&E()},{flush:`sync`});function O(e,t){if(!Array.isArray(e))throw TypeError(`Option source must return a row array`);let n=new Set;for(let r of e){let e=t.value(r);if(![`string`,`number`,`boolean`].includes(typeof e)||typeof e==`number`&&!Number.isFinite(e)||n.has(e))throw TypeError(`Option source must return unique string, number or boolean values`);if(typeof t.label(r)!=`string`)throw TypeError(`Option labels must be strings`);n.add(e)}}let k=e.t({key:(0,r.computed)(()=>l.value&&c.value&&a.value&&!(0,r.toValue)(n.disabled)?`${d.value}:${u.value}`:null),load:async({signal:e})=>{let n=a.value,r=u.value,i=r===1?[]:[...p.value],o=await n.request({search:s.value.trim(),page:r,pageSize:_.value,signal:e,...n.filters===void 0?{}:{filters:t.t(n.filters)}});if(O(o.rows,n),!Number.isSafeInteger(o.total)||o.total<o.rows.length||o.rows.length>_.value)throw TypeError(`Option source returned an invalid page`);let c=new Map(i.map(e=>[n.value(e),e]));return o.rows.forEach(e=>c.set(n.value(e),e)),{rows:[...c.values()],total:o.total,exhausted:o.rows.length===0||r*_.value>=o.total}},isEmpty:e=>!e.rows.length}),A=(0,r.ref)(!1);(0,r.watch)(k.data,e=>{!e||!a.value||(p.value=e.rows,m.value=e.total,A.value=e.exhausted,F(o.value))},{flush:`sync`});let j=(0,r.computed)(()=>o.value.filter(e=>!h.value.has(e))),M=e.t({key:(0,r.computed)(()=>a.value?.resolve&&j.value.length?JSON.stringify([f.value,j.value]):null),load:async({signal:e})=>{let t=a.value,n=[...j.value],r=await t.resolve(n,e);O(r,t);let i=new Set(n);return new Map(r.filter(e=>i.has(t.value(e))).map(e=>[t.value(e),e]))},isEmpty:e=>!e.size}),N=(0,r.computed)(()=>{let e=new Map,t=a.value;if(t)for(let n of p.value)e.set(t.value(n),n);return e});function P(e){return N.value.get(e)??M.data.value?.get(e)??h.value.get(e)}function F(e){let t=new Map;for(let n of e){let e=P(n);e&&t.set(n,e)}(t.size!==h.value.size||[...t].some(([e,t])=>h.value.get(e)!==t))&&(h.value=t)}(0,r.watch)(o,e=>F(e),{deep:!0,flush:`sync`});let I=(0,r.computed)(()=>{if(!a.value)return[];let e=new Map;for(let t of o.value){let n=P(t);n&&e.set(t,n)}for(let[t,n]of N.value)e.set(t,n);return[...e.values()]}),L=(0,r.computed)(()=>k.loading.value||M.loading.value),R=(0,r.computed)(()=>k.error.value??M.error.value),z=(0,r.computed)(()=>p.value.length>0&&!A.value&&p.value.length<m.value);function B(){!c.value||!l.value||k.loading.value||k.error.value||!z.value||u.value++}async function V(){M.error.value&&await M.reload(),k.error.value&&c.value&&await k.reload()}return(0,r.onScopeDispose)(()=>{b=!0,x()}),(0,r.getCurrentInstance)()&&((0,r.onDeactivated)(()=>{y=!0,x(),l.value=!1}),(0,r.onActivated)(()=>{y&&(y=!1,S(!0))})),{search:s,active:c,rows:p,available:I,minChars:g,pageSize:_,loading:L,error:R,hasMore:z,open:T,close:E,setSearch:w,loadMore:B,retry:V,rowFor:P,retain:F}}const o=[`role`],s={key:0},c={key:1},l={key:2},u={key:4},d=(0,r.defineComponent)({__name:`OptionStatus`,props:{active:{type:Boolean},loading:{type:Boolean},error:{},hasMore:{type:Boolean},incomplete:{type:Boolean},minChars:{},empty:{type:Boolean},compact:{type:Boolean},locale:{}},emits:[`retry`,`more`],setup(e,{emit:t}){let i=e,a=t,{t:d}=n.t(()=>i.locale);return(t,n)=>(e.error!=null||e.active&&(e.loading||e.hasMore||e.incomplete||e.empty))&&(!e.compact||e.error!=null||e.hasMore)?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:(0,r.normalizeClass)([`c-option-status`,{"c-option-status--compact":e.compact}]),role:e.error==null?`status`:`alert`,"aria-live":`polite`,onMousedown:n[4]||=(0,r.withModifiers)(()=>{},[`prevent`,`stop`]),onClick:n[5]||=(0,r.withModifiers)(()=>{},[`stop`])},[e.error==null?e.loading?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,c,(0,r.toDisplayString)((0,r.unref)(d)(`common.loading`)),1)):e.incomplete?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,l,(0,r.toDisplayString)((0,r.unref)(d)(`options.minChars`,{count:e.minChars??0})),1)):e.hasMore?((0,r.openBlock)(),(0,r.createElementBlock)(`button`,{key:3,type:`button`,onMousedown:n[2]||=(0,r.withModifiers)(()=>{},[`prevent`]),onClick:n[3]||=e=>a(`more`)},(0,r.toDisplayString)((0,r.unref)(d)(`options.loadMore`)),33)):e.empty?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,u,(0,r.toDisplayString)((0,r.unref)(d)(`options.empty`)),1)):(0,r.createCommentVNode)(`v-if`,!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.compact?(0,r.createCommentVNode)(`v-if`,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`span`,s,(0,r.toDisplayString)((0,r.unref)(d)(`options.failed`)),1)),(0,r.createElementVNode)(`button`,{type:`button`,onMousedown:n[0]||=(0,r.withModifiers)(()=>{},[`prevent`]),onClick:n[1]||=e=>a(`retry`)},(0,r.toDisplayString)((0,r.unref)(d)(`common.retry`)),33)],64))],42,o)):(0,r.createCommentVNode)(`v-if`,!0)}});Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
package/dist/OptionStatus.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./useDataResource.js";import{a as t,t as n}from"./data2.js";import{t as r}from"./useComponentLocale.js";import{Fragment as i,computed as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,defineComponent as l,getCurrentInstance as u,normalizeClass as d,onActivated as f,onDeactivated as p,onScopeDispose as m,openBlock as h,ref as g,shallowRef as _,toDisplayString as v,toValue as y,unref as b,watch as x,withModifiers as S}from"vue";const C=(e,t,n)=>Number.isFinite(e)&&Number.isInteger(e)&&e>=n?e:t;function w(r){let i=a(()=>y(r.source)),o=a(()=>r.values?y(r.values):[]),s=g(``),c=g(!1),l=g(!1),d=g(1),h=g(0),v=g(0),b=_([]),S=g(0),w=_(new Map),T=a(()=>C(i.value?.minChars,0,0)),E=a(()=>C(i.value?.pageSize,20,1)),D,O=!1,k=!1,A=()=>{clearTimeout(D),D=void 0};function j(e=!1){if(A(),l.value=!1,k||O||!c.value||!i.value||y(r.disabled)||s.value.trim().length<T.value)return;let t=e?0:C(i.value.debounce,250,0);t?D=setTimeout(()=>{D=void 0,l.value=!0},t):l.value=!0}function M(){l.value=!1,h.value++,d.value=1,b.value=[],S.value=0}function N(e){s.value!==e&&(s.value=e,M(),j())}function P(){c.value||k||(c.value=!0,d.value=1,j(!0))}function F(){A(),l.value=!1,c.value=!1}let I=i.value?{...i.value,filters:n(i.value.filters)}:void 0;x(i,e=>{([`request`,`resolve`,`value`,`label`,`pageSize`,`minChars`,`debounce`].some(t=>e?.[t]!==I?.[t])||!t(e?.filters,I?.filters))&&(I=e?{...e,filters:n(e.filters)}:void 0,v.value++,w.value=new Map,M(),j(!0))},{deep:!0,flush:`sync`}),x(()=>y(r.disabled),e=>{e&&F()},{flush:`sync`});function L(e,t){if(!Array.isArray(e))throw TypeError(`Option source must return a row array`);let n=new Set;for(let r of e){let e=t.value(r);if(![`string`,`number`,`boolean`].includes(typeof e)||typeof e==`number`&&!Number.isFinite(e)||n.has(e))throw TypeError(`Option source must return unique string, number or boolean values`);if(typeof t.label(r)!=`string`)throw TypeError(`Option labels must be strings`);n.add(e)}}let R=e({key:a(()=>l.value&&c.value&&i.value&&!y(r.disabled)?`${h.value}:${d.value}`:null),load:async({signal:e})=>{let t=i.value,r=d.value,a=r===1?[]:[...b.value],o=await t.request({search:s.value.trim(),page:r,pageSize:E.value,signal:e,...t.filters===void 0?{}:{filters:n(t.filters)}});if(L(o.rows,t),!Number.isSafeInteger(o.total)||o.total<o.rows.length||o.rows.length>E.value)throw TypeError(`Option source returned an invalid page`);let c=new Map(a.map(e=>[t.value(e),e]));return o.rows.forEach(e=>c.set(t.value(e),e)),{rows:[...c.values()],total:o.total,exhausted:o.rows.length===0||r*E.value>=o.total}},isEmpty:e=>!e.rows.length}),z=g(!1);x(R.data,e=>{!e||!i.value||(b.value=e.rows,S.value=e.total,z.value=e.exhausted,
|
|
1
|
+
import{t as e}from"./useDataResource.js";import{a as t,t as n}from"./data2.js";import{t as r}from"./useComponentLocale.js";import{Fragment as i,computed as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,defineComponent as l,getCurrentInstance as u,normalizeClass as d,onActivated as f,onDeactivated as p,onScopeDispose as m,openBlock as h,ref as g,shallowRef as _,toDisplayString as v,toValue as y,unref as b,watch as x,withModifiers as S}from"vue";const C=(e,t,n)=>Number.isFinite(e)&&Number.isInteger(e)&&e>=n?e:t;function w(r){let i=a(()=>y(r.source)),o=a(()=>r.values?y(r.values):[]),s=g(``),c=g(!1),l=g(!1),d=g(1),h=g(0),v=g(0),b=_([]),S=g(0),w=_(new Map),T=a(()=>C(i.value?.minChars,0,0)),E=a(()=>C(i.value?.pageSize,20,1)),D,O=!1,k=!1,A=()=>{clearTimeout(D),D=void 0};function j(e=!1){if(A(),l.value=!1,k||O||!c.value||!i.value||y(r.disabled)||s.value.trim().length<T.value)return;let t=e?0:C(i.value.debounce,250,0);t?D=setTimeout(()=>{D=void 0,l.value=!0},t):l.value=!0}function M(){l.value=!1,h.value++,d.value=1,b.value=[],S.value=0}function N(e){s.value!==e&&(s.value=e,M(),j())}function P(){c.value||k||(c.value=!0,d.value=1,j(!0))}function F(){A(),l.value=!1,c.value=!1}let I=i.value?{...i.value,filters:n(i.value.filters)}:void 0;x(i,e=>{([`request`,`resolve`,`value`,`label`,`pageSize`,`minChars`,`debounce`].some(t=>e?.[t]!==I?.[t])||!t(e?.filters,I?.filters))&&(I=e?{...e,filters:n(e.filters)}:void 0,v.value++,w.value=new Map,M(),j(!0))},{deep:!0,flush:`sync`}),x(()=>y(r.disabled),e=>{e&&F()},{flush:`sync`});function L(e,t){if(!Array.isArray(e))throw TypeError(`Option source must return a row array`);let n=new Set;for(let r of e){let e=t.value(r);if(![`string`,`number`,`boolean`].includes(typeof e)||typeof e==`number`&&!Number.isFinite(e)||n.has(e))throw TypeError(`Option source must return unique string, number or boolean values`);if(typeof t.label(r)!=`string`)throw TypeError(`Option labels must be strings`);n.add(e)}}let R=e({key:a(()=>l.value&&c.value&&i.value&&!y(r.disabled)?`${h.value}:${d.value}`:null),load:async({signal:e})=>{let t=i.value,r=d.value,a=r===1?[]:[...b.value],o=await t.request({search:s.value.trim(),page:r,pageSize:E.value,signal:e,...t.filters===void 0?{}:{filters:n(t.filters)}});if(L(o.rows,t),!Number.isSafeInteger(o.total)||o.total<o.rows.length||o.rows.length>E.value)throw TypeError(`Option source returned an invalid page`);let c=new Map(a.map(e=>[t.value(e),e]));return o.rows.forEach(e=>c.set(t.value(e),e)),{rows:[...c.values()],total:o.total,exhausted:o.rows.length===0||r*E.value>=o.total}},isEmpty:e=>!e.rows.length}),z=g(!1);x(R.data,e=>{!e||!i.value||(b.value=e.rows,S.value=e.total,z.value=e.exhausted,W(o.value))},{flush:`sync`});let B=a(()=>o.value.filter(e=>!w.value.has(e))),V=e({key:a(()=>i.value?.resolve&&B.value.length?JSON.stringify([v.value,B.value]):null),load:async({signal:e})=>{let t=i.value,n=[...B.value],r=await t.resolve(n,e);L(r,t);let a=new Set(n);return new Map(r.filter(e=>a.has(t.value(e))).map(e=>[t.value(e),e]))},isEmpty:e=>!e.size}),H=a(()=>{let e=new Map,t=i.value;if(t)for(let n of b.value)e.set(t.value(n),n);return e});function U(e){return H.value.get(e)??V.data.value?.get(e)??w.value.get(e)}function W(e){let t=new Map;for(let n of e){let e=U(n);e&&t.set(n,e)}(t.size!==w.value.size||[...t].some(([e,t])=>w.value.get(e)!==t))&&(w.value=t)}x(o,e=>W(e),{deep:!0,flush:`sync`});let G=a(()=>{if(!i.value)return[];let e=new Map;for(let t of o.value){let n=U(t);n&&e.set(t,n)}for(let[t,n]of H.value)e.set(t,n);return[...e.values()]}),K=a(()=>R.loading.value||V.loading.value),q=a(()=>R.error.value??V.error.value),J=a(()=>b.value.length>0&&!z.value&&b.value.length<S.value);function Y(){!c.value||!l.value||R.loading.value||R.error.value||!J.value||d.value++}async function X(){V.error.value&&await V.reload(),R.error.value&&c.value&&await R.reload()}return m(()=>{k=!0,A()}),u()&&(p(()=>{O=!0,A(),l.value=!1}),f(()=>{O&&(O=!1,j(!0))})),{search:s,active:c,rows:b,available:G,minChars:T,pageSize:E,loading:K,error:q,hasMore:J,open:P,close:F,setSearch:N,loadMore:Y,retry:X,rowFor:U,retain:W}}const T=[`role`],E={key:0},D={key:1},O={key:2},k={key:4},A=l({__name:`OptionStatus`,props:{active:{type:Boolean},loading:{type:Boolean},error:{},hasMore:{type:Boolean},incomplete:{type:Boolean},minChars:{},empty:{type:Boolean},compact:{type:Boolean},locale:{}},emits:[`retry`,`more`],setup(e,{emit:t}){let n=e,a=t,{t:l}=r(()=>n.locale);return(t,n)=>(e.error!=null||e.active&&(e.loading||e.hasMore||e.incomplete||e.empty))&&(!e.compact||e.error!=null||e.hasMore)?(h(),s(`div`,{key:0,class:d([`c-option-status`,{"c-option-status--compact":e.compact}]),role:e.error==null?`status`:`alert`,"aria-live":`polite`,onMousedown:n[4]||=S(()=>{},[`prevent`,`stop`]),onClick:n[5]||=S(()=>{},[`stop`])},[e.error==null?e.loading?(h(),s(`span`,D,v(b(l)(`common.loading`)),1)):e.incomplete?(h(),s(`span`,O,v(b(l)(`options.minChars`,{count:e.minChars??0})),1)):e.hasMore?(h(),s(`button`,{key:3,type:`button`,onMousedown:n[2]||=S(()=>{},[`prevent`]),onClick:n[3]||=e=>a(`more`)},v(b(l)(`options.loadMore`)),33)):e.empty?(h(),s(`span`,k,v(b(l)(`options.empty`)),1)):o(`v-if`,!0):(h(),s(i,{key:0},[e.compact?o(`v-if`,!0):(h(),s(`span`,E,v(b(l)(`options.failed`)),1)),c(`button`,{type:`button`,onMousedown:n[0]||=S(()=>{},[`prevent`]),onClick:n[1]||=e=>a(`retry`)},v(b(l)(`common.retry`)),33)],64))],42,T)):o(`v-if`,!0)}});export{w as n,A as t};
|
package/dist/actionIcon.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk.cjs`);
|
|
1
|
+
require(`./chunk.cjs`);let e=require(`vue`);const t=`M6 3v15l4-4 3 6 2-1-3-6h6z`,n=new Map(Object.entries({check:`m5 12 4 4L19 6`,close:`m6 6 12 12M6 18 18 6`,"content-save-outline":`M5 3h12l4 4v14H3V3zm2 0v6h10V3M7 21v-8h10v8`,"delete-outline":`M4 6h16M9 6V3h6v3M6 6l1 15h10l1-15m-8 4v7m4-7v7`,"dots-horizontal":`M5 12h1m6 0h1m6 0h1`,"eye-outline":`M2 12q10-14 20 0-10 14-20 0zm7 0a3 3 0 1 0 6 0 3 3 0 1 0-6 0`,"file-export-outline":`M12 20H4V4h10l4 4v3m-5 4h8m-3-3 3 3-3 3`,"file-import-outline":`M12 20H4V4h10l4 4v3m3 4h-8m3-3-3 3 3 3`,fullscreen:`M9 4H4v5m11-5h5v5m0 6v5h-5m-6 0H4v-5`,"gesture-tap-button":t,"pencil-outline":`m4 16-1 5 5-1L21 7l-4-4Zm10-10 4 4`,plus:`M12 5v14M5 12h14`,"printer-outline":`M7 8V3h10v5M7 17H3V8h18v9h-4M7 14h10v7H7zm-1-3h.1`,refresh:`M20 4v6h-6m6-2a8 8 0 1 0 0 8`,restore:`M4 4v6h6M4 8a8 8 0 1 1 0 8m8-8v4l3 2`,"tune-variant":`M3 6h18m0 6H3m0 6h18M9 4v4m6 2v4M7 16v4`,"view-column-outline":`M3 5h18v14H3zm6 0v14m6-14v14`}));function r(t,n){return(0,e.h)(`svg`,{viewBox:`0 0 24 24`,width:n,height:n,fill:`none`,stroke:`currentColor`,"stroke-width":1.7,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[(0,e.h)(`path`,{d:t})])}const i=({size:e})=>r(t,e),a=(0,e.defineAsyncComponent)({loader:()=>Promise.resolve().then(()=>require(`./C_Icon.cjs`)).then(e=>e.C_Icon,()=>i),loadingComponent:i,delay:0,suspensible:!1});function o(t,i){let o=t.startsWith(`mdi:`)&&n.get(t.slice(4));return o?r(o,i):(0,e.h)(a,{name:t,size:i,"aria-hidden":!0})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
package/dist/actionIcon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{defineAsyncComponent as e,h as t}from"vue";const n=`M6 3v15l4-4 3 6 2-1-3-6h6z`,r=new Map(Object.entries({check:`m5 12 4 4L19 6`,close:`m6 6 12 12M6 18 18 6`,"content-save-outline":`M5 3h12l4 4v14H3V3zm2 0v6h10V3M7 21v-8h10v8`,"delete-outline":`M4 6h16M9 6V3h6v3M6 6l1 15h10l1-15m-8 4v7m4-7v7`,"dots-horizontal":`M5 12h1m6 0h1m6 0h1`,"eye-outline":`M2 12q10-14 20 0-10 14-20 0zm7 0a3 3 0 1 0 6 0 3 3 0 1 0-6 0`,"file-export-outline":`M12 20H4V4h10l4 4v3m-5 4h8m-3-3 3 3-3 3`,"file-import-outline":`M12 20H4V4h10l4 4v3m3 4h-8m3-3-3 3 3 3`,fullscreen:`M9 4H4v5m11-5h5v5m0 6v5h-5m-6 0H4v-5`,"gesture-tap-button":n,"pencil-outline":`m4 16-1 5 5-1L21 7l-4-4Zm10-10 4 4`,plus:`M12 5v14M5 12h14`,"printer-outline":`M7 8V3h10v5M7 17H3V8h18v9h-4M7 14h10v7H7zm-1-3h.1`,refresh:`M20 4v6h-6m6-2a8 8 0 1 0 0 8`,restore:`M4 4v6h6M4 8a8 8 0 1 1 0 8m8-8v4l3 2`,"tune-variant":`M3 6h18m0 6H3m0 6h18M9 4v4m6 2v4M7 16v4`,"view-column-outline":`M3 5h18v14H3zm6 0v14m6-14v14`}));function i(e,n){return t(`svg`,{viewBox:`0 0 24 24`,width:n,height:n,fill:`none`,stroke:`currentColor`,"stroke-width":1.7,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[t(`path`,{d:e})])}const a=({size:e})=>i(n,e),o=e({loader:()=>import(`./C_Icon.js`).then(e=>e.C_Icon,()=>a),loadingComponent:a,delay:0,suspensible:!1});function s(e,n){let a=e.startsWith(`mdi:`)&&r.get(e.slice(4));return a?i(a,n):t(o,{name:e,size:n,"aria-hidden":!0})}export{s as t};
|
package/dist/constants.d.cts
CHANGED
|
@@ -108,17 +108,17 @@ interface CronEmits {
|
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/components/C_Cron/index.vue.d.ts
|
|
110
110
|
declare const __VLS_export: vue.DefineComponent<CronProps, CronExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
111
|
-
change: (value: string) => any;
|
|
112
111
|
"update:modelValue": (value: string) => any;
|
|
112
|
+
change: (value: string) => any;
|
|
113
113
|
"validation-change": (result: CronValidation) => any;
|
|
114
114
|
}, string, vue.PublicProps, Readonly<CronProps> & Readonly<{
|
|
115
|
-
onChange?: ((value: string) => any) | undefined;
|
|
116
115
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
116
|
+
onChange?: ((value: string) => any) | undefined;
|
|
117
117
|
"onValidation-change"?: ((result: CronValidation) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
119
|
disabled: boolean;
|
|
120
|
-
showPreview: boolean;
|
|
121
120
|
showTemplates: boolean;
|
|
121
|
+
showPreview: boolean;
|
|
122
122
|
showSecond: boolean;
|
|
123
123
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
124
124
|
declare const _default: typeof __VLS_export;
|
package/dist/constants.d.ts
CHANGED
|
@@ -108,17 +108,17 @@ interface CronEmits {
|
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/components/C_Cron/index.vue.d.ts
|
|
110
110
|
declare const __VLS_export: vue.DefineComponent<CronProps, CronExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
111
|
-
change: (value: string) => any;
|
|
112
111
|
"update:modelValue": (value: string) => any;
|
|
112
|
+
change: (value: string) => any;
|
|
113
113
|
"validation-change": (result: CronValidation) => any;
|
|
114
114
|
}, string, vue.PublicProps, Readonly<CronProps> & Readonly<{
|
|
115
|
-
onChange?: ((value: string) => any) | undefined;
|
|
116
115
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
116
|
+
onChange?: ((value: string) => any) | undefined;
|
|
117
117
|
"onValidation-change"?: ((result: CronValidation) => any) | undefined;
|
|
118
118
|
}>, {
|
|
119
119
|
disabled: boolean;
|
|
120
|
-
showPreview: boolean;
|
|
121
120
|
showTemplates: boolean;
|
|
121
|
+
showPreview: boolean;
|
|
122
122
|
showSecond: boolean;
|
|
123
123
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
124
124
|
declare const _default: typeof __VLS_export;
|
package/dist/constants2.d.cts
CHANGED
|
@@ -125,12 +125,12 @@ interface FormulaEditorExpose {
|
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/components/C_FormulaEditor/index.vue.d.ts
|
|
127
127
|
declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEditorExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
128
|
-
change: (value: string) => any;
|
|
129
128
|
"update:modelValue": (value: string) => any;
|
|
129
|
+
change: (value: string) => any;
|
|
130
130
|
"validation-change": (result: FormulaValidation) => any;
|
|
131
131
|
}, string, vue.PublicProps, Readonly<FormulaEditorProps> & Readonly<{
|
|
132
|
-
onChange?: ((value: string) => any) | undefined;
|
|
133
132
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
133
|
+
onChange?: ((value: string) => any) | undefined;
|
|
134
134
|
"onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
|
|
135
135
|
}>, {
|
|
136
136
|
disabled: boolean;
|
package/dist/constants2.d.ts
CHANGED
|
@@ -125,12 +125,12 @@ interface FormulaEditorExpose {
|
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/components/C_FormulaEditor/index.vue.d.ts
|
|
127
127
|
declare const __VLS_export: vue.DefineComponent<FormulaEditorProps, FormulaEditorExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
128
|
-
change: (value: string) => any;
|
|
129
128
|
"update:modelValue": (value: string) => any;
|
|
129
|
+
change: (value: string) => any;
|
|
130
130
|
"validation-change": (result: FormulaValidation) => any;
|
|
131
131
|
}, string, vue.PublicProps, Readonly<FormulaEditorProps> & Readonly<{
|
|
132
|
-
onChange?: ((value: string) => any) | undefined;
|
|
133
132
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
133
|
+
onChange?: ((value: string) => any) | undefined;
|
|
134
134
|
"onValidation-change"?: ((result: FormulaValidation) => any) | undefined;
|
|
135
135
|
}>, {
|
|
136
136
|
disabled: boolean;
|
package/dist/constants3.d.cts
CHANGED
|
@@ -6,23 +6,23 @@ type __VLS_Slots = NotificationCenterSlots;
|
|
|
6
6
|
declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
7
7
|
delete: (ids: string[]) => any;
|
|
8
8
|
read: (ids: string[]) => any;
|
|
9
|
-
navigate: (url: string) => any;
|
|
10
|
-
itemClick: (message: NotificationMessage) => any;
|
|
11
9
|
viewAll: () => any;
|
|
10
|
+
itemClick: (message: NotificationMessage) => any;
|
|
12
11
|
allRead: (category?: NotificationCategory | undefined) => any;
|
|
13
12
|
unreadChange: (count: number) => any;
|
|
14
13
|
wsStatusChange: (status: WSConnectionStatus) => any;
|
|
15
14
|
newMessage: (message: NotificationMessage) => any;
|
|
15
|
+
navigate: (url: string) => any;
|
|
16
16
|
}, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
|
|
17
17
|
onDelete?: ((ids: string[]) => any) | undefined;
|
|
18
18
|
onRead?: ((ids: string[]) => any) | undefined;
|
|
19
|
-
onNavigate?: ((url: string) => any) | undefined;
|
|
20
|
-
onItemClick?: ((message: NotificationMessage) => any) | undefined;
|
|
21
19
|
onViewAll?: (() => any) | undefined;
|
|
20
|
+
onItemClick?: ((message: NotificationMessage) => any) | undefined;
|
|
22
21
|
onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
|
|
23
22
|
onUnreadChange?: ((count: number) => any) | undefined;
|
|
24
23
|
onWsStatusChange?: ((status: WSConnectionStatus) => any) | undefined;
|
|
25
24
|
onNewMessage?: ((message: NotificationMessage) => any) | undefined;
|
|
25
|
+
onNavigate?: ((url: string) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
pageSize: number;
|
|
28
28
|
storageKey: string;
|
package/dist/constants3.d.ts
CHANGED
|
@@ -6,23 +6,23 @@ type __VLS_Slots = NotificationCenterSlots;
|
|
|
6
6
|
declare const __VLS_base: vue.DefineComponent<NotificationCenterProps, NotificationCenterExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
7
7
|
delete: (ids: string[]) => any;
|
|
8
8
|
read: (ids: string[]) => any;
|
|
9
|
-
navigate: (url: string) => any;
|
|
10
|
-
itemClick: (message: NotificationMessage) => any;
|
|
11
9
|
viewAll: () => any;
|
|
10
|
+
itemClick: (message: NotificationMessage) => any;
|
|
12
11
|
allRead: (category?: NotificationCategory | undefined) => any;
|
|
13
12
|
unreadChange: (count: number) => any;
|
|
14
13
|
wsStatusChange: (status: WSConnectionStatus) => any;
|
|
15
14
|
newMessage: (message: NotificationMessage) => any;
|
|
15
|
+
navigate: (url: string) => any;
|
|
16
16
|
}, string, vue.PublicProps, Readonly<NotificationCenterProps> & Readonly<{
|
|
17
17
|
onDelete?: ((ids: string[]) => any) | undefined;
|
|
18
18
|
onRead?: ((ids: string[]) => any) | undefined;
|
|
19
|
-
onNavigate?: ((url: string) => any) | undefined;
|
|
20
|
-
onItemClick?: ((message: NotificationMessage) => any) | undefined;
|
|
21
19
|
onViewAll?: (() => any) | undefined;
|
|
20
|
+
onItemClick?: ((message: NotificationMessage) => any) | undefined;
|
|
22
21
|
onAllRead?: ((category?: NotificationCategory | undefined) => any) | undefined;
|
|
23
22
|
onUnreadChange?: ((count: number) => any) | undefined;
|
|
24
23
|
onWsStatusChange?: ((status: WSConnectionStatus) => any) | undefined;
|
|
25
24
|
onNewMessage?: ((message: NotificationMessage) => any) | undefined;
|
|
25
|
+
onNavigate?: ((url: string) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
pageSize: number;
|
|
28
28
|
storageKey: string;
|
package/dist/constants4.d.cts
CHANGED
|
@@ -8,18 +8,18 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
area?: (props: typeof __VLS_11) => any;
|
|
9
9
|
};
|
|
10
10
|
declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
11
|
-
success: (file: UploadFileItem, response: unknown) => any;
|
|
12
11
|
error: (file: UploadFileItem, error: Error) => any;
|
|
13
12
|
change: (fileList: UploadFileItem[]) => any;
|
|
14
13
|
progress: (file: UploadFileItem, percent: number) => any;
|
|
14
|
+
success: (file: UploadFileItem, response: unknown) => any;
|
|
15
15
|
remove: (file: UploadFileItem) => any;
|
|
16
16
|
finish: (fileList: UploadFileItem[]) => any;
|
|
17
17
|
exceed: (files: File[], fileList: UploadFileItem[]) => any;
|
|
18
18
|
}, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
|
|
19
|
-
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
20
19
|
onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
|
|
21
20
|
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
22
21
|
onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
|
|
22
|
+
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
23
23
|
onRemove?: ((file: UploadFileItem) => any) | undefined;
|
|
24
24
|
onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
25
25
|
onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
|
|
@@ -27,13 +27,13 @@ declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {},
|
|
|
27
27
|
data: Record<string, unknown>;
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
multiple: boolean;
|
|
30
|
-
draggable: boolean;
|
|
31
30
|
action: string;
|
|
32
31
|
headers: Record<string, string>;
|
|
33
32
|
directory: boolean;
|
|
34
33
|
accept: string;
|
|
35
34
|
maxSize: number;
|
|
36
35
|
maxCount: number;
|
|
36
|
+
draggable: boolean;
|
|
37
37
|
pasteable: boolean;
|
|
38
38
|
chunked: boolean;
|
|
39
39
|
chunkSize: number;
|
|
@@ -132,7 +132,7 @@ declare function useUploadCore(props: UploadProps): {
|
|
|
132
132
|
pauseAll: () => void; /** 恢复所有 */
|
|
133
133
|
resumeAll: () => void; /** 重试 */
|
|
134
134
|
retryFile: (uid: string) => void; /** 处理单文件 */
|
|
135
|
-
processFile: (
|
|
135
|
+
processFile: (file: UploadFileItem) => Promise<void>; /** 获取成功列表 */
|
|
136
136
|
getSuccessList: () => UploadFileItem[];
|
|
137
137
|
};
|
|
138
138
|
//#endregion
|
|
@@ -198,11 +198,12 @@ interface UseChunkUploadOptions {
|
|
|
198
198
|
* 处理大文件分片切割、并发上传、断点续传、分片合并。
|
|
199
199
|
*/
|
|
200
200
|
declare function useChunkUpload(options: UseChunkUploadOptions): {
|
|
201
|
-
createChunks: (file: File) => UploadChunk[];
|
|
201
|
+
createChunks: (file: File, partSize?: number) => UploadChunk[];
|
|
202
202
|
uploadChunks: (params: {
|
|
203
203
|
uid: string;
|
|
204
204
|
file: File;
|
|
205
205
|
hash: string;
|
|
206
|
+
partSize?: number;
|
|
206
207
|
onProgress: (progress: ChunkProgress) => void;
|
|
207
208
|
onSuccess: (response: unknown) => void;
|
|
208
209
|
onError: (error: Error) => void;
|
package/dist/constants4.d.ts
CHANGED
|
@@ -9,18 +9,18 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
area?: (props: typeof __VLS_11) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
12
|
-
success: (file: UploadFileItem, response: unknown) => any;
|
|
13
12
|
error: (file: UploadFileItem, error: Error) => any;
|
|
14
13
|
change: (fileList: UploadFileItem[]) => any;
|
|
15
14
|
progress: (file: UploadFileItem, percent: number) => any;
|
|
15
|
+
success: (file: UploadFileItem, response: unknown) => any;
|
|
16
16
|
remove: (file: UploadFileItem) => any;
|
|
17
17
|
finish: (fileList: UploadFileItem[]) => any;
|
|
18
18
|
exceed: (files: File[], fileList: UploadFileItem[]) => any;
|
|
19
19
|
}, string, vue.PublicProps, Readonly<UploadProps> & Readonly<{
|
|
20
|
-
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
21
20
|
onError?: ((file: UploadFileItem, error: Error) => any) | undefined;
|
|
22
21
|
onChange?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
23
22
|
onProgress?: ((file: UploadFileItem, percent: number) => any) | undefined;
|
|
23
|
+
onSuccess?: ((file: UploadFileItem, response: unknown) => any) | undefined;
|
|
24
24
|
onRemove?: ((file: UploadFileItem) => any) | undefined;
|
|
25
25
|
onFinish?: ((fileList: UploadFileItem[]) => any) | undefined;
|
|
26
26
|
onExceed?: ((files: File[], fileList: UploadFileItem[]) => any) | undefined;
|
|
@@ -28,13 +28,13 @@ declare const __VLS_base: vue.DefineComponent<UploadProps, UploadExpose, {}, {},
|
|
|
28
28
|
data: Record<string, unknown>;
|
|
29
29
|
disabled: boolean;
|
|
30
30
|
multiple: boolean;
|
|
31
|
-
draggable: boolean;
|
|
32
31
|
action: string;
|
|
33
32
|
headers: Record<string, string>;
|
|
34
33
|
directory: boolean;
|
|
35
34
|
accept: string;
|
|
36
35
|
maxSize: number;
|
|
37
36
|
maxCount: number;
|
|
37
|
+
draggable: boolean;
|
|
38
38
|
pasteable: boolean;
|
|
39
39
|
chunked: boolean;
|
|
40
40
|
chunkSize: number;
|
|
@@ -133,7 +133,7 @@ declare function useUploadCore(props: UploadProps): {
|
|
|
133
133
|
pauseAll: () => void; /** 恢复所有 */
|
|
134
134
|
resumeAll: () => void; /** 重试 */
|
|
135
135
|
retryFile: (uid: string) => void; /** 处理单文件 */
|
|
136
|
-
processFile: (
|
|
136
|
+
processFile: (file: UploadFileItem) => Promise<void>; /** 获取成功列表 */
|
|
137
137
|
getSuccessList: () => UploadFileItem[];
|
|
138
138
|
};
|
|
139
139
|
//#endregion
|
|
@@ -199,11 +199,12 @@ interface UseChunkUploadOptions {
|
|
|
199
199
|
* 处理大文件分片切割、并发上传、断点续传、分片合并。
|
|
200
200
|
*/
|
|
201
201
|
declare function useChunkUpload(options: UseChunkUploadOptions): {
|
|
202
|
-
createChunks: (file: File) => UploadChunk[];
|
|
202
|
+
createChunks: (file: File, partSize?: number) => UploadChunk[];
|
|
203
203
|
uploadChunks: (params: {
|
|
204
204
|
uid: string;
|
|
205
205
|
file: File;
|
|
206
206
|
hash: string;
|
|
207
|
+
partSize?: number;
|
|
207
208
|
onProgress: (progress: ChunkProgress) => void;
|
|
208
209
|
onSuccess: (response: unknown) => void;
|
|
209
210
|
onError: (error: Error) => void;
|
package/dist/data2.d.cts
CHANGED
|
@@ -65,28 +65,28 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_37>]?: (props: typeof _
|
|
|
65
65
|
declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
66
66
|
activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
|
|
67
67
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
|
-
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
69
68
|
"update:modelValue": (value: TabsValue) => any;
|
|
70
69
|
close: (value: TabsValue) => any;
|
|
71
70
|
add: () => any;
|
|
71
|
+
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
72
72
|
}, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
|
|
73
|
-
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
74
73
|
"onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
|
|
75
74
|
onClose?: ((value: TabsValue) => any) | undefined;
|
|
76
75
|
onAdd?: (() => any) | undefined;
|
|
76
|
+
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
-
type: TabsType;
|
|
79
78
|
modelValue: TabsValue | null;
|
|
79
|
+
defaultValue: TabsValue | null;
|
|
80
|
+
items: readonly TabsItem[];
|
|
81
|
+
type: TabsType;
|
|
80
82
|
size: TabsSize;
|
|
81
83
|
placement: TabsPlacement;
|
|
82
|
-
|
|
84
|
+
justifyContent: TabsJustifyContent;
|
|
83
85
|
animated: boolean;
|
|
84
|
-
defaultValue: TabsValue | null;
|
|
85
|
-
items: readonly TabsItem[];
|
|
86
|
-
addable: boolean;
|
|
87
86
|
closable: boolean;
|
|
88
|
-
|
|
87
|
+
addable: boolean;
|
|
89
88
|
tabsOnly: boolean;
|
|
89
|
+
displayDirective: TabsDisplayDirective;
|
|
90
90
|
paneClass: string;
|
|
91
91
|
paneStyle: string | vue.CSSProperties;
|
|
92
92
|
beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
|
package/dist/data2.d.ts
CHANGED
|
@@ -65,28 +65,28 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_37>]?: (props: typeof _
|
|
|
65
65
|
declare const __VLS_base: vue.DefineComponent<CTabsProps, {
|
|
66
66
|
activeValue: vue.WritableComputedRef<TabsValue | null, TabsValue | null>;
|
|
67
67
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
68
|
-
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
69
68
|
"update:modelValue": (value: TabsValue) => any;
|
|
70
69
|
close: (value: TabsValue) => any;
|
|
71
70
|
add: () => any;
|
|
71
|
+
change: (value: TabsValue, item: TabsItem | undefined) => any;
|
|
72
72
|
}, string, vue.PublicProps, Readonly<CTabsProps> & Readonly<{
|
|
73
|
-
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
74
73
|
"onUpdate:modelValue"?: ((value: TabsValue) => any) | undefined;
|
|
75
74
|
onClose?: ((value: TabsValue) => any) | undefined;
|
|
76
75
|
onAdd?: (() => any) | undefined;
|
|
76
|
+
onChange?: ((value: TabsValue, item: TabsItem | undefined) => any) | undefined;
|
|
77
77
|
}>, {
|
|
78
|
-
type: TabsType;
|
|
79
78
|
modelValue: TabsValue | null;
|
|
79
|
+
defaultValue: TabsValue | null;
|
|
80
|
+
items: readonly TabsItem[];
|
|
81
|
+
type: TabsType;
|
|
80
82
|
size: TabsSize;
|
|
81
83
|
placement: TabsPlacement;
|
|
82
|
-
|
|
84
|
+
justifyContent: TabsJustifyContent;
|
|
83
85
|
animated: boolean;
|
|
84
|
-
defaultValue: TabsValue | null;
|
|
85
|
-
items: readonly TabsItem[];
|
|
86
|
-
addable: boolean;
|
|
87
86
|
closable: boolean;
|
|
88
|
-
|
|
87
|
+
addable: boolean;
|
|
89
88
|
tabsOnly: boolean;
|
|
89
|
+
displayDirective: TabsDisplayDirective;
|
|
90
90
|
paneClass: string;
|
|
91
91
|
paneStyle: string | vue.CSSProperties;
|
|
92
92
|
beforeChange: (target: TabsValue, current: TabsValue | null) => boolean | Promise<boolean>;
|
package/dist/editors.d.cts
CHANGED
|
@@ -558,16 +558,16 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
558
558
|
//#region src/components/C_Tree/index.vue.d.ts
|
|
559
559
|
declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
560
560
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
561
|
-
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "
|
|
562
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
561
|
+
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
563
562
|
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
564
563
|
onRefresh?: (() => any) | undefined;
|
|
565
564
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
566
|
-
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "
|
|
567
|
-
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "
|
|
565
|
+
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
566
|
+
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
568
567
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
569
568
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
570
569
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
570
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
571
571
|
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
572
572
|
}> & (typeof globalThis extends {
|
|
573
573
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -583,7 +583,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
583
583
|
}>) => void;
|
|
584
584
|
attrs: any;
|
|
585
585
|
slots: TreeSlots<T>;
|
|
586
|
-
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "
|
|
586
|
+
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "search-error", error: unknown) => void);
|
|
587
587
|
}>) => vue.VNode & {
|
|
588
588
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
589
589
|
};
|
package/dist/editors.d.ts
CHANGED
|
@@ -548,16 +548,16 @@ declare function setupHighlight(app: App, options?: HighlightPluginOptions): Hig
|
|
|
548
548
|
//#region src/components/C_Tree/index.vue.d.ts
|
|
549
549
|
declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
550
550
|
props: vue.PublicProps & __VLS_PrettifyLocal<TreeProps$1<T> & {
|
|
551
|
-
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "
|
|
552
|
-
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
551
|
+
"onUpdate:expandedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
553
552
|
onAdd?: ((parentNode?: T | undefined) => any) | undefined;
|
|
554
553
|
onRefresh?: (() => any) | undefined;
|
|
555
554
|
"onUpdate:searchPattern"?: ((pattern: string) => any) | undefined;
|
|
556
|
-
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "
|
|
557
|
-
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "
|
|
555
|
+
"onUpdate:selectedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
556
|
+
"onUpdate:checkedKeys"?: ((keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => any) | undefined;
|
|
558
557
|
"onNode-select"?: ((node: T | null, selectedKeys: TreeKey[]) => any) | undefined;
|
|
559
558
|
"onNode-action"?: ((action: string, node: T) => any) | undefined;
|
|
560
559
|
"onNode-drop"?: ((info: DropInfo<T>) => any) | undefined;
|
|
560
|
+
"onLoad-error"?: ((error: unknown, node: T) => any) | undefined;
|
|
561
561
|
"onSearch-error"?: ((error: unknown) => any) | undefined;
|
|
562
562
|
}> & (typeof globalThis extends {
|
|
563
563
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -573,7 +573,7 @@ declare const __VLS_export: <T extends object = TreeNodeData>(__VLS_props: NonNu
|
|
|
573
573
|
}>) => void;
|
|
574
574
|
attrs: any;
|
|
575
575
|
slots: TreeSlots<T>;
|
|
576
|
-
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "
|
|
576
|
+
emit: ((evt: "update:expandedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "add", parentNode?: T | undefined) => void) & ((evt: "refresh") => void) & ((evt: "update:searchPattern", pattern: string) => void) & ((evt: "update:selectedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "update:checkedKeys", keys: TreeKey[], options: (T | null)[], meta: TreeUpdateMeta<T, "select" | "filter" | "collapse" | "expand" | "unselect" | "check" | "uncheck">) => void) & ((evt: "node-select", node: T | null, selectedKeys: TreeKey[]) => void) & ((evt: "node-action", action: string, node: T) => void) & ((evt: "node-drop", info: DropInfo<T>) => void) & ((evt: "load-error", error: unknown, node: T) => void) & ((evt: "search-error", error: unknown) => void);
|
|
577
577
|
}>) => vue.VNode & {
|
|
578
578
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
579
579
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -102,6 +102,7 @@ import { a as TaskBoardMove, c as TaskBoardTask, i as TaskBoardLane, n as TaskBo
|
|
|
102
102
|
import { a as TaskPanelTask, i as TaskPanelStatus, n as TaskPanelKey, r as TaskPanelProps, t as _default$63 } from "./index45.vue.cjs";
|
|
103
103
|
import { a as ComponentColorMode, i as COMPONENT_CONTROL_HEIGHTS, n as createComponentTheme, o as ComponentThemeColors, r as COMPONENT_COLOR_PALETTES, s as ComponentThemeOptions, t as ComponentThemeConfig } from "./theme.cjs";
|
|
104
104
|
import "./config.cjs";
|
|
105
|
+
import "./C_Table.cjs";
|
|
105
106
|
import { App } from "vue";
|
|
106
107
|
|
|
107
108
|
//#region src/index.d.ts
|
package/dist/index10.vue.d.cts
CHANGED
|
@@ -24,11 +24,11 @@ interface CascadeValue {
|
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/components/C_Cascade/index.vue.d.ts
|
|
26
26
|
declare const __VLS_export: vue.DefineComponent<CascadeProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
27
|
-
change: (value: CascadeValue) => any;
|
|
28
27
|
"update:modelValue": (value: CascadeValue) => any;
|
|
28
|
+
change: (value: CascadeValue) => any;
|
|
29
29
|
}, string, vue.PublicProps, Readonly<CascadeProps> & Readonly<{
|
|
30
|
-
onChange?: ((value: CascadeValue) => any) | undefined;
|
|
31
30
|
"onUpdate:modelValue"?: ((value: CascadeValue) => any) | undefined;
|
|
31
|
+
onChange?: ((value: CascadeValue) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
placeholders: string[];
|
|
34
34
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index11.vue.d.ts
CHANGED
|
@@ -104,9 +104,9 @@ type __VLS_Slots = {
|
|
|
104
104
|
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
105
105
|
scrollToBottom: () => void;
|
|
106
106
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
107
|
+
"load-more": () => any;
|
|
107
108
|
send: (content: string) => any;
|
|
108
109
|
"select-contact": (id: string) => any;
|
|
109
|
-
"load-more": () => any;
|
|
110
110
|
"image-preview": (url: string) => any;
|
|
111
111
|
"file-click": (msg: ChatMessage) => any;
|
|
112
112
|
"file-upload": () => any;
|
|
@@ -114,9 +114,9 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
|
114
114
|
resend: (msg: ChatMessage) => any;
|
|
115
115
|
"source-click": (source: ChatSource, msg: ChatMessage) => any;
|
|
116
116
|
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
117
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
117
118
|
onSend?: ((content: string) => any) | undefined;
|
|
118
119
|
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
119
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
120
120
|
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
121
121
|
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
122
122
|
"onFile-upload"?: (() => any) | undefined;
|
package/dist/index12.vue.d.cts
CHANGED
|
@@ -104,9 +104,9 @@ type __VLS_Slots = {
|
|
|
104
104
|
declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
105
105
|
scrollToBottom: () => void;
|
|
106
106
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
107
|
+
"load-more": () => any;
|
|
107
108
|
send: (content: string) => any;
|
|
108
109
|
"select-contact": (id: string) => any;
|
|
109
|
-
"load-more": () => any;
|
|
110
110
|
"image-preview": (url: string) => any;
|
|
111
111
|
"file-click": (msg: ChatMessage) => any;
|
|
112
112
|
"file-upload": () => any;
|
|
@@ -114,9 +114,9 @@ declare const __VLS_base: vue.DefineComponent<ChatProps, {
|
|
|
114
114
|
resend: (msg: ChatMessage) => any;
|
|
115
115
|
"source-click": (source: ChatSource, msg: ChatMessage) => any;
|
|
116
116
|
}, string, vue.PublicProps, Readonly<ChatProps> & Readonly<{
|
|
117
|
+
"onLoad-more"?: (() => any) | undefined;
|
|
117
118
|
onSend?: ((content: string) => any) | undefined;
|
|
118
119
|
"onSelect-contact"?: ((id: string) => any) | undefined;
|
|
119
|
-
"onLoad-more"?: (() => any) | undefined;
|
|
120
120
|
"onImage-preview"?: ((url: string) => any) | undefined;
|
|
121
121
|
"onFile-click"?: ((msg: ChatMessage) => any) | undefined;
|
|
122
122
|
"onFile-upload"?: (() => any) | undefined;
|
package/dist/index12.vue.d.ts
CHANGED
|
@@ -20,11 +20,11 @@ type __VLS_Slots = {} & {
|
|
|
20
20
|
trigger?: (props: typeof __VLS_11) => any;
|
|
21
21
|
};
|
|
22
22
|
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
23
|
-
change: (value: string) => any;
|
|
24
23
|
"update:modelValue": (value: string) => any;
|
|
24
|
+
change: (value: string) => any;
|
|
25
25
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
26
|
-
onChange?: ((value: string) => any) | undefined;
|
|
27
26
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
+
onChange?: ((value: string) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
showLetters: boolean;
|
|
30
30
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index13.vue.d.cts
CHANGED
|
@@ -20,11 +20,11 @@ type __VLS_Slots = {} & {
|
|
|
20
20
|
trigger?: (props: typeof __VLS_11) => any;
|
|
21
21
|
};
|
|
22
22
|
declare const __VLS_base: vue.DefineComponent<Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
23
|
-
change: (value: string) => any;
|
|
24
23
|
"update:modelValue": (value: string) => any;
|
|
24
|
+
change: (value: string) => any;
|
|
25
25
|
}, string, vue.PublicProps, Readonly<Props> & Readonly<{
|
|
26
|
-
onChange?: ((value: string) => any) | undefined;
|
|
27
26
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
|
+
onChange?: ((value: string) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
showLetters: boolean;
|
|
30
30
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
package/dist/index13.vue.d.ts
CHANGED
|
@@ -27,17 +27,17 @@ declare const __VLS_export: vue.DefineComponent<CodeProps, {
|
|
|
27
27
|
toggleFullscreen: typeof toggleFullscreen;
|
|
28
28
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
29
29
|
click: (event: MouseEvent) => any;
|
|
30
|
-
fullscreen: (isFullscreen: boolean) => any;
|
|
31
30
|
copy: (code: string) => any;
|
|
31
|
+
fullscreen: (isFullscreen: boolean) => any;
|
|
32
32
|
}, string, vue.PublicProps, Readonly<CodeProps> & Readonly<{
|
|
33
33
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
34
|
-
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
35
34
|
onCopy?: ((code: string) => any) | undefined;
|
|
35
|
+
onFullscreen?: ((isFullscreen: boolean) => any) | undefined;
|
|
36
36
|
}>, {
|
|
37
37
|
trim: boolean;
|
|
38
|
+
code: string;
|
|
38
39
|
language: string;
|
|
39
40
|
showHeader: boolean;
|
|
40
|
-
code: string;
|
|
41
41
|
showLineNumbers: boolean;
|
|
42
42
|
wordWrap: boolean;
|
|
43
43
|
showFullscreen: boolean;
|