cnhis-design-vue 3.2.10-beta.11 → 3.2.10-beta.18
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/README.md +87 -87
- package/es/components/base-search/index.d.ts +1 -0
- package/es/components/base-search/src/index.vue.d.ts +1 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/utils/index.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/field-set/index.d.ts +13 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +71 -25
- package/es/components/field-set/src/FieldColor.vue2.js +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +18 -3
- package/es/components/field-set/src/FieldFilter.vue2.js +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +4 -1
- package/es/components/field-set/src/Index.vue.d.ts +13 -0
- package/es/components/field-set/src/Index.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +18 -4
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +63 -22
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +44 -44
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +4 -1
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/iho-chat/index.d.ts +7 -7
- package/es/components/iho-chat/src/Index.vue.d.ts +7 -7
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +30 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.d.ts +3 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +15 -0
- package/es/components/quick-search/src/index.vue.d.ts +15 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/ai__avatar.png.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/logo.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/index.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
package/es/shared/utils/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{getCurrentInstance as n,defineComponent as t,provide as e,createVNode as r}from"vue";import{isObject as o}from"@vue/shared";import{useMemoize as i}from"@vueuse/core";import{isString as u,isNumber as c,isArray as s,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isConditionsMatchSqlExpression,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression,isMatchNewLowCodeConditionsWithSqlExpression}from"./business.js";function l(n,t,e="children",r){let o=!1;function i(){o=!0}!function n(t,e,r="children",u,c=0){r=p(r),t=p(t);for(let s=0;s<t.length;s++){if(e(t[s],i,u,c),o)return;for(let i=0;i<r.length;i++){const u=t[s][r[i]];if(Array.isArray(u)&&n(u,e,r,t[s],c+1),o)return}}}(n,t,e,r,0)}function d(n,t,e=t.name,r){if(!e)throw new Error(`[CUI]: invalid component name for ${t}`);const{components:i={}}=n._context;i[e]||(!Reflect.get(n,"__cnhis_version")&&o(a)&&Reflect.set(n,"__cnhis_version",a.version),r?r():n.component(e,t))}function m(n){if(!u(n))return;const t=n.match(/[Hms:]+/);return t?t[0]:void 0}function p(n){return Array.isArray(n)?n:[n]}function h(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){const t=16*Math.random()|0;return("x"==n?t:3&t|8).toString(16)}))}`}const x={a:7.7,b:8.6,c:7.7,d:8.6,e:7.7,f:5,g:8.6,h:8.2,i:3.3,j:3.3,k:7.6,l:3.5,m:12.1,n:8.2,o:8.2,p:8.6,q:8.6,r:5.4,s:7.1,t:5,u:8.2,v:7.6,w:10.9,x:7.3,y:7.6,z:7.6,A:9.43,B:9.33,C:9.93,D:10,E:8.27,F:8.1,G:10.4,H:10.4,I:3.7,J:7.5,K:9.2,L:7.9,M:12.4,N:10.4,O:10.8,P:8.9,Q:10.8,R:9.1,S:8.8,T:8.9,U:10.4,V:9.4,W:13.5,X:9.4,Y:9.1,Z:9.1,".":4.03,",":4.03,"(":5.17,")":5.17,"-":7.51,"+":7.51,"/":4.11,"\\":4.11,"%":12.68,"‰":17.75,";":13.95,"、":13.95,",":13.95,"。":13.95},g=/\d/,v=/[\u4e00-\u9fa5():,。]/;function w(n){return x[n]?x[n]:g.test(n)?8.9:v.test(n)?13.95:void 0}const y=i((function(n){if(!n)return 0;let t="";return[...n].reduce(((n,e)=>{const r=t;return t=e," "===e?" "===r?n:n+4:n+(w(e)||6)}),0)})),E=Object.seal(Object.create(null));function O(n,t){return function n(t,e){return o(t)?s(t)?t.map((t=>n(t,e))):Object.entries(t).reduce(((t,[r,i])=>(e.includes(r)||(o(i)&&!f(i)?t[r]=n(i,e):t[r]=i),t)),{}):t}(n,t)}function b(n){return Object.values(n).reduce(((n,t)=>Object.assign(n,t)),{})}function j(n,t){if(!n)return n;if(t(n))return n;let e=n.parentElement;for(;e&&!t(e);)e=e.parentElement;return e}function C(n,t="px"){if(c(n))return`${n}${t}`;if(!n)return"";if(u(n))return n.endsWith(t)?n:`${n}${t}`;throw new Error(`invalid width value ${n}, it need to be a string or number!`)}function S(n,t){return n.some((n=>t.includes(n)))}const M=i((n=>{try{return JSON.parse(n)}catch(n){return{}}}),{getKey:n=>n});function $(n,t){if(!o(n))return n;const e={...n};for(let n=0;n<t.length;n++)Reflect.deleteProperty(e,t[n]);return e}function _(t){if(!n())throw new Error(t||"can't use this hook out of setup environment")}function I(n,t=1){const[e,r,o,i,u]=n.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[255,255,255,t];const s=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(c(s)?s.toFixed(2):t)]}function A(n){return t({setup(t,{slots:o}){let i=(null==n?void 0:n.parent)&&Reflect.get(n.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([n,t])=>{u.includes(n)||(u.push(n),e(n,t))})),i=Object.getPrototypeOf(i);return()=>{var n;return r("div",null,[null==(n=o.default)?void 0:n.call(o)])}}})}const H=i((function(n,t){return!(!u(t)||!u(n))&&t.split(",").some((t=>t.trim().includes(n)))}),{getKey:(...n)=>n.reduce(((n,t)=>String(n)+"_"+String(t)),"")});function L(n){try{return n instanceof HTMLElement}catch(t){return o(n)&&1===n.nodeType&&o(n.style)&&o(n.ownerDocument)}}function N(n){let t=0;return function n(e,r=0){e.forEach((e=>{e.children?n(e.children,r+1):t=Math.max(t,r)}))}(n),t}function R(n,t){var e;(null==(e=null==window?void 0:window.$CMonitor)?void 0:e.notify)&&window.$CMonitor.notify({name:"custom_info",message:JSON.stringify(n),businessName:t||"SDK"})}export{E as DMZ,p as arrayed,_ as checkInSetupEnv,A as createProviderWrapper,O as deepOmit,R as encapBrowserLog,j as findAncestor,m as generateTimeFormat,N as getArrDepth,w as getCharWidth,y as getStringWidth,I as hex2rgba,L as isHTMLElement,M as jsonParse,H as keywordMatcher,d as safeComponentRegister,b as separateMetaModule,$ as shallowOmit,S as targetStringIncludes,l as traverse,h as uuidGenerator,C as widthAppend};
|
1
|
+
import{getCurrentInstance as n,defineComponent as t,provide as e,createVNode as r}from"vue";import{isObject as o}from"@vue/shared";import{useMemoize as i}from"@vueuse/core";import{isString as u,isNumber as c,isArray as s,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isConditionsMatchSqlExpression,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression,isMatchNewLowCodeConditionsWithSqlExpression}from"./business.js";function l(n,t,e="children",r){let o=!1;function i(){o=!0}!function n(t,e,r="children",u,c=0){r=p(r),t=p(t);for(let s=0;s<t.length;s++){if(e(t[s],i,u,c),o)return;for(let i=0;i<r.length;i++){const u=t[s][r[i]];if(Array.isArray(u)&&n(u,e,r,t[s],c+1),o)return}}}(n,t,e,r,0)}function d(n,t,e=t.name,r){if(!e)throw new Error(`[CUI]: invalid component name for ${t}`);const{components:i={}}=n._context;i[e]||(!Reflect.get(n,"__cnhis_version")&&o(a)&&Reflect.set(n,"__cnhis_version",a.version),r?r():n.component(e,t))}function m(n){if(!u(n))return;const t=n.match(/[Hms:]+/);return t?t[0]:void 0}function p(n){return Array.isArray(n)?n:[n]}function h(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){const t=16*Math.random()|0;return("x"==n?t:3&t|8).toString(16)}))}`}const x={a:7.7,b:8.6,c:7.7,d:8.6,e:7.7,f:5,g:8.6,h:8.2,i:3.3,j:3.3,k:7.6,l:3.5,m:12.1,n:8.2,o:8.2,p:8.6,q:8.6,r:5.4,s:7.1,t:5,u:8.2,v:7.6,w:10.9,x:7.3,y:7.6,z:7.6,A:9.43,B:9.33,C:9.93,D:10,E:8.27,F:8.1,G:10.4,H:10.4,I:3.7,J:7.5,K:9.2,L:7.9,M:12.4,N:10.4,O:10.8,P:8.9,Q:10.8,R:9.1,S:8.8,T:8.9,U:10.4,V:9.4,W:13.5,X:9.4,Y:9.1,Z:9.1,".":4.03,",":4.03,"(":5.17,")":5.17,"-":7.51,"+":7.51,"/":4.11,"\\":4.11,"%":12.68,"‰":17.75,";":13.95,"、":13.95,",":13.95,"。":13.95},g=/\d/,v=/[\u4e00-\u9fa5():,。]/;function w(n){return x[n]?x[n]:g.test(n)?8.9:v.test(n)?13.95:void 0}const y=i((function(n){if(!n)return 0;let t="";return[...n].reduce(((n,e)=>{const r=t;return t=e," "===e?" "===r?n:n+4:n+(w(e)||6)}),0)})),E=Object.seal(Object.create(null));function O(n,t){return function n(t,e){return o(t)?s(t)?t.map((t=>n(t,e))):Object.entries(t).reduce(((t,[r,i])=>(e.includes(r)||(o(i)&&!f(i)?t[r]=n(i,e):t[r]=i),t)),{}):t}(n,t)}function b(n){return Object.values(n).reduce(((n,t)=>Object.assign(n,t)),{})}function j(n,t){if(!n)return n;if(t(n))return n;let e=n.parentElement;for(;e&&!t(e);)e=e.parentElement;return e}function C(n,t="px"){if(c(n))return`${n}${t}`;if(!n)return"";if(u(n))return n.endsWith(t)?n:`${n}${t}`;throw new Error(`invalid width value ${n}, it need to be a string or number!`)}function S(n,t){return n.some((n=>t.includes(n)))}const M=i((n=>{try{return JSON.parse(n)}catch(n){return{}}}),{getKey:n=>n});function $(n,t){if(!o(n))return n;const e={...n};for(let n=0;n<t.length;n++)Reflect.deleteProperty(e,t[n]);return e}function _(t){if(!n())throw new Error(t||"can't use this hook out of setup environment")}function I(n,t=1){const[e,r,o,i,u]=n.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!e)return[255,255,255,t];const s=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(c(s)?s.toFixed(2):t)]}function A(n){return t({setup(t,{slots:o}){let i=(null==n?void 0:n.parent)&&Reflect.get(n.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([n,t])=>{u.includes(n)||(u.push(n),e(n,t))})),i=Object.getPrototypeOf(i);return()=>{var n;return r("div",null,[null==(n=o.default)?void 0:n.call(o)])}}})}const H=i((function(n,t){return!(!u(t)||!u(n))&&t.split(",").some((t=>t.trim().includes(n)))}),{getKey:(...n)=>n.reduce(((n,t)=>String(n)+"_"+String(t)),"")});function L(n){try{return n instanceof HTMLElement}catch(t){return o(n)&&1===n.nodeType&&o(n.style)&&o(n.ownerDocument)}}function N(n){let t=0;return function n(e,r=0){e.forEach((e=>{var o;(null==(o=e.children)?void 0:o.length)?n(e.children,r+1):t=Math.max(t,r)}))}(n),t}function R(n,t){var e;(null==(e=null==window?void 0:window.$CMonitor)?void 0:e.notify)&&window.$CMonitor.notify({name:"custom_info",message:JSON.stringify(n),businessName:t||"SDK"})}export{E as DMZ,p as arrayed,_ as checkInSetupEnv,A as createProviderWrapper,O as deepOmit,R as encapBrowserLog,j as findAncestor,m as generateTimeFormat,N as getArrDepth,w as getCharWidth,y as getStringWidth,I as hex2rgba,L as isHTMLElement,M as jsonParse,H as keywordMatcher,d as safeComponentRegister,b as separateMetaModule,$ as shallowOmit,S as targetStringIncludes,l as traverse,h as uuidGenerator,C as widthAppend};
|
@@ -0,0 +1,139 @@
|
|
1
|
+
type FixedSizeArray<T extends number, U> = T extends 0
|
2
|
+
? void[]
|
3
|
+
: ReadonlyArray<U> & {
|
4
|
+
0: U;
|
5
|
+
length: T;
|
6
|
+
};
|
7
|
+
type Measure<T extends number> = T extends 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 ? T : never;
|
8
|
+
type Append<T extends any[], U> = {
|
9
|
+
0: [U];
|
10
|
+
1: [T[0], U];
|
11
|
+
2: [T[0], T[1], U];
|
12
|
+
3: [T[0], T[1], T[2], U];
|
13
|
+
4: [T[0], T[1], T[2], T[3], U];
|
14
|
+
5: [T[0], T[1], T[2], T[3], T[4], U];
|
15
|
+
6: [T[0], T[1], T[2], T[3], T[4], T[5], U];
|
16
|
+
7: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], U];
|
17
|
+
8: [T[0], T[1], T[2], T[3], T[4], T[5], T[6], T[7], U];
|
18
|
+
}[Measure<T['length']>];
|
19
|
+
type AsArray<T> = T extends any[] ? T : [T];
|
20
|
+
|
21
|
+
declare class UnsetAdditionalOptions {
|
22
|
+
_UnsetAdditionalOptions: true;
|
23
|
+
}
|
24
|
+
type IfSet<X> = X extends UnsetAdditionalOptions ? {} : X;
|
25
|
+
|
26
|
+
type Callback<E, T> = (error: E | null, result?: T) => void;
|
27
|
+
type InnerCallback<E, T> = (error?: E | null | false, result?: T) => void;
|
28
|
+
|
29
|
+
type FullTap = Tap & {
|
30
|
+
type: 'sync' | 'async' | 'promise';
|
31
|
+
fn: Function;
|
32
|
+
};
|
33
|
+
|
34
|
+
type Tap = TapOptions & {
|
35
|
+
name: string;
|
36
|
+
};
|
37
|
+
|
38
|
+
type TapOptions = {
|
39
|
+
before?: string;
|
40
|
+
stage?: number;
|
41
|
+
};
|
42
|
+
|
43
|
+
interface HookInterceptor<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
44
|
+
name?: string;
|
45
|
+
tap?: (tap: FullTap & IfSet<AdditionalOptions>) => void;
|
46
|
+
call?: (...args: any[]) => void;
|
47
|
+
loop?: (...args: any[]) => void;
|
48
|
+
error?: (err: Error) => void;
|
49
|
+
result?: (result: R) => void;
|
50
|
+
done?: () => void;
|
51
|
+
register?: (tap: FullTap & IfSet<AdditionalOptions>) => FullTap & IfSet<AdditionalOptions>;
|
52
|
+
}
|
53
|
+
|
54
|
+
type ArgumentNames<T extends any[]> = FixedSizeArray<T['length'], string>;
|
55
|
+
|
56
|
+
declare class Hook<T, R, AdditionalOptions = UnsetAdditionalOptions> {
|
57
|
+
constructor(args?: ArgumentNames<AsArray<T>>, name?: string);
|
58
|
+
name: string | undefined;
|
59
|
+
taps: FullTap[];
|
60
|
+
intercept(interceptor: HookInterceptor<T, R, AdditionalOptions>): void;
|
61
|
+
isUsed(): boolean;
|
62
|
+
callAsync(...args: Append<AsArray<T>, Callback<Error, R>>): void;
|
63
|
+
promise(...args: AsArray<T>): Promise<R>;
|
64
|
+
tap(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => R): void;
|
65
|
+
withOptions(options: TapOptions & IfSet<AdditionalOptions>): Omit<this, 'call' | 'callAsync' | 'promise'>;
|
66
|
+
}
|
67
|
+
|
68
|
+
export class SyncHook<T, R = void, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
69
|
+
call(...args: AsArray<T>): R;
|
70
|
+
}
|
71
|
+
|
72
|
+
export class SyncBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, R, AdditionalOptions> {}
|
73
|
+
export class SyncLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<T, void, AdditionalOptions> {}
|
74
|
+
export class SyncWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends SyncHook<
|
75
|
+
T,
|
76
|
+
AsArray<T>[0],
|
77
|
+
AdditionalOptions
|
78
|
+
> {}
|
79
|
+
|
80
|
+
declare class AsyncHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends Hook<T, R, AdditionalOptions> {
|
81
|
+
tapAsync(
|
82
|
+
options: string | (Tap & IfSet<AdditionalOptions>),
|
83
|
+
fn: (...args: Append<AsArray<T>, InnerCallback<Error, R>>) => void
|
84
|
+
): void;
|
85
|
+
tapPromise(options: string | (Tap & IfSet<AdditionalOptions>), fn: (...args: AsArray<T>) => Promise<R>): void;
|
86
|
+
}
|
87
|
+
|
88
|
+
export class AsyncParallelHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
89
|
+
T,
|
90
|
+
void,
|
91
|
+
AdditionalOptions
|
92
|
+
> {}
|
93
|
+
export class AsyncParallelBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
94
|
+
T,
|
95
|
+
R,
|
96
|
+
AdditionalOptions
|
97
|
+
> {}
|
98
|
+
export class AsyncSeriesHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
99
|
+
T,
|
100
|
+
void,
|
101
|
+
AdditionalOptions
|
102
|
+
> {}
|
103
|
+
export class AsyncSeriesBailHook<T, R, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
104
|
+
T,
|
105
|
+
R,
|
106
|
+
AdditionalOptions
|
107
|
+
> {}
|
108
|
+
export class AsyncSeriesLoopHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
109
|
+
T,
|
110
|
+
void,
|
111
|
+
AdditionalOptions
|
112
|
+
> {}
|
113
|
+
export class AsyncSeriesWaterfallHook<T, AdditionalOptions = UnsetAdditionalOptions> extends AsyncHook<
|
114
|
+
T,
|
115
|
+
AsArray<T>[0],
|
116
|
+
AdditionalOptions
|
117
|
+
> {}
|
118
|
+
|
119
|
+
type HookFactory<H> = (key: any, hook?: H) => H;
|
120
|
+
|
121
|
+
interface HookMapInterceptor<H> {
|
122
|
+
factory?: HookFactory<H>;
|
123
|
+
}
|
124
|
+
|
125
|
+
export class HookMap<H> {
|
126
|
+
constructor(factory: HookFactory<H>, name?: string);
|
127
|
+
name: string | undefined;
|
128
|
+
get(key: any): H | undefined;
|
129
|
+
for(key: any): H;
|
130
|
+
intercept(interceptor: HookMapInterceptor<H>): void;
|
131
|
+
}
|
132
|
+
|
133
|
+
export class MultiHook<H> {
|
134
|
+
constructor(hooks: H[], name?: string);
|
135
|
+
name: string | undefined;
|
136
|
+
tap(options: string | Tap, fn?: Function): void;
|
137
|
+
tapAsync(options: string | Tap, fn?: Function): void;
|
138
|
+
tapPromise(options: string | Tap, fn?: Function): void;
|
139
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.2.10-beta.
|
3
|
+
"version": "3.2.10-beta.18",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"iOS 7",
|
73
73
|
"last 3 iOS versions"
|
74
74
|
],
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "d3c5389776d1d0c3e82888fdd6e2e54c6ea8a39f"
|
76
76
|
}
|