cnhis-design-vue 3.1.41-beta.25 → 3.1.41-beta.27

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.
Files changed (49) hide show
  1. package/README.md +87 -87
  2. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  3. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  4. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  5. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  6. package/es/components/date-picker/index.d.ts +20 -0
  7. package/es/components/date-picker/index.js +1 -0
  8. package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
  9. package/es/components/date-picker/src/DatePicker.vue.js +1 -0
  10. package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
  11. package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
  12. package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
  13. package/es/components/form-config/index.d.ts +5 -5
  14. package/es/components/form-config/src/FormConfig.vue.d.ts +5 -5
  15. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  16. package/es/components/index.css +1 -1
  17. package/es/components/index.d.ts +3 -1
  18. package/es/components/index.js +1 -1
  19. package/es/components/scale-view/src/ScaleView.vue.js +1 -1
  20. package/es/components/shortcut-setter/index.d.ts +1 -1
  21. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  22. package/es/components/table-filter/index.d.ts +64 -452
  23. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +19 -88
  24. package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
  25. package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +37 -253
  26. package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
  27. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +0 -42
  28. package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
  29. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
  30. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  31. package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +0 -84
  32. package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -1
  33. package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +4 -130
  34. package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -1
  35. package/es/components/table-filter/src/components/table-modal/index.vue.d.ts +3 -43
  36. package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -1
  37. package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +10 -113
  38. package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
  39. package/es/components/table-filter/src/types/index.d.ts +6 -162
  40. package/es/components/table-filter/style/iconfont.ttf +0 -0
  41. package/es/components/table-filter/style/index.css +1 -1
  42. package/es/components/time-picker/index.d.ts +18 -0
  43. package/es/components/time-picker/index.js +1 -0
  44. package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
  45. package/es/components/time-picker/src/TimePicker.vue.js +1 -0
  46. package/es/env.d.ts +24 -24
  47. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  48. package/es/shared/utils/tapable/index.d.ts +139 -0
  49. package/package.json +65 -65
@@ -1,9 +1,11 @@
1
1
  import { PropType } from 'vue';
2
- import { ISearchType, IsettingsType, IApiServerType } from '../../../../../es/components/table-filter/src/types';
2
+ import { ISearchType, IsettingsType, IApiServerType, ISearchParamsType } from '../../../../../es/components/table-filter/src/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  showSettings: {
5
5
  type: PropType<IsettingsType>;
6
- default: () => {};
6
+ default: () => {
7
+ hideQuickSearch: number;
8
+ };
7
9
  };
8
10
  searchFieldList: {
9
11
  type: PropType<IApiServerType[]>;
@@ -62,7 +64,9 @@ declare const _default: import("vue").DefineComponent<{
62
64
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
63
65
  showSettings: {
64
66
  type: PropType<IsettingsType>;
65
- default: () => {};
67
+ default: () => {
68
+ hideQuickSearch: number;
69
+ };
66
70
  };
67
71
  searchFieldList: {
68
72
  type: PropType<IApiServerType[]>;
@@ -76,13 +80,12 @@ declare const _default: import("vue").DefineComponent<{
76
80
  default: number;
77
81
  };
78
82
  }>> & {
79
- onOnSave?: ((...args: any[]) => any) | undefined;
80
83
  onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
84
+ onOnFilterSearch?: ((...args: any[]) => any) | undefined;
81
85
  onHandleReset?: ((...args: any[]) => any) | undefined;
82
- onOutSearchInit?: ((...args: any[]) => any) | undefined;
83
- onGetParam?: ((...args: any[]) => any) | undefined;
86
+ onGetFilterParam?: ((...args: any[]) => any) | undefined;
84
87
  }>>;
85
- emit: (event: "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", ...args: any[]) => void;
88
+ emit: (event: "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", ...args: any[]) => void;
86
89
  baseLeftWidth: import("vue").Ref<number>;
87
90
  classificationWidth: import("vue").Ref<number>;
88
91
  quickSearchWidth: import("vue").Ref<number>;
@@ -99,32 +102,6 @@ declare const _default: import("vue").DefineComponent<{
99
102
  settingObj?: any;
100
103
  placeholder?: string | undefined;
101
104
  AGEAttr?: boolean | undefined;
102
- BIRTHDAY?: {
103
- con: any;
104
- limit_date?: any;
105
- start_val: any;
106
- end_val: any;
107
- unit?: string | undefined;
108
- units?: {
109
- con: string;
110
- title: string;
111
- name: string;
112
- units?: number | undefined;
113
- }[] | undefined;
114
- } | undefined;
115
- DATE?: {
116
- con: any;
117
- limit_date?: any;
118
- start_val: any;
119
- end_val: any;
120
- unit?: string | undefined;
121
- units?: {
122
- con: string;
123
- title: string;
124
- name: string;
125
- units?: number | undefined;
126
- }[] | undefined;
127
- } | undefined;
128
105
  CL?: string | undefined;
129
106
  CONVERT?: any;
130
107
  EVALUATEAttr?: boolean | undefined;
@@ -148,12 +125,6 @@ declare const _default: import("vue").DefineComponent<{
148
125
  comAttr?: string | undefined;
149
126
  con?: string | undefined;
150
127
  dataSource?: any;
151
- dateTeam?: {
152
- con: string;
153
- title: string;
154
- name: string;
155
- units?: number | undefined;
156
- }[] | undefined;
157
128
  dictionarieObj?: any;
158
129
  explicitRequired?: number | undefined;
159
130
  explicitDefaultVal?: string | undefined;
@@ -247,7 +218,7 @@ declare const _default: import("vue").DefineComponent<{
247
218
  outFilterChange: (config?: {}) => void;
248
219
  getConObjParams: () => any;
249
220
  getConObj: (arr: any) => any;
250
- onSave: (obj: any, isOutFilter?: boolean, config?: {}) => void;
221
+ onFilterSearch: (obj: ISearchParamsType[], isOutFilter?: boolean, config?: {}) => void;
251
222
  handleReset: () => void;
252
223
  resetFunc: (arr: ISearchType[]) => void;
253
224
  vResize: {
@@ -273,7 +244,7 @@ declare const _default: import("vue").DefineComponent<{
273
244
  [key: string]: any;
274
245
  }> | null;
275
246
  handleUpdate(val: any, widgetType: any, defValueUnit: any): void;
276
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
247
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange")[], "update:modelValue" | "outFilterChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
277
248
  cfg: {
278
249
  type: ObjectConstructor;
279
250
  required: true;
@@ -283,56 +254,17 @@ declare const _default: import("vue").DefineComponent<{
283
254
  };
284
255
  }>> & {
285
256
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
257
+ onOutFilterChange?: ((...args: any[]) => any) | undefined;
286
258
  }, {}>;
287
259
  NIcon: any;
288
260
  NButton: any;
289
261
  Search: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
290
- SvgIcon: import("vue").DefineComponent<{
291
- iconClass: {
292
- type: StringConstructor;
293
- required: true;
294
- default: string;
295
- };
296
- title: {
297
- type: StringConstructor;
298
- required: false;
299
- default: string;
300
- };
301
- className: {
302
- type: StringConstructor;
303
- required: false;
304
- };
305
- }, {
306
- props: {
307
- iconClass: string;
308
- title: string;
309
- className?: string | undefined;
310
- };
311
- iconName: import("vue").ComputedRef<string>;
312
- svgClass: import("vue").ComputedRef<string>;
313
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
314
- iconClass: {
315
- type: StringConstructor;
316
- required: true;
317
- default: string;
318
- };
319
- title: {
320
- type: StringConstructor;
321
- required: false;
322
- default: string;
323
- };
324
- className: {
325
- type: StringConstructor;
326
- required: false;
327
- };
328
- }>>, {
329
- title: string;
330
- iconClass: string;
331
- }>;
332
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam")[], "onSave" | "foldQuickSearch" | "handleReset" | "outSearchInit" | "getParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
262
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam")[], "foldQuickSearch" | "onFilterSearch" | "handleReset" | "getFilterParam", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
333
263
  showSettings: {
334
264
  type: PropType<IsettingsType>;
335
- default: () => {};
265
+ default: () => {
266
+ hideQuickSearch: number;
267
+ };
336
268
  };
337
269
  searchFieldList: {
338
270
  type: PropType<IApiServerType[]>;
@@ -346,11 +278,10 @@ declare const _default: import("vue").DefineComponent<{
346
278
  default: number;
347
279
  };
348
280
  }>> & {
349
- onOnSave?: ((...args: any[]) => any) | undefined;
350
281
  onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
282
+ onOnFilterSearch?: ((...args: any[]) => any) | undefined;
351
283
  onHandleReset?: ((...args: any[]) => any) | undefined;
352
- onOutSearchInit?: ((...args: any[]) => any) | undefined;
353
- onGetParam?: ((...args: any[]) => any) | undefined;
284
+ onGetFilterParam?: ((...args: any[]) => any) | undefined;
354
285
  }, {
355
286
  showSettings: IsettingsType;
356
287
  searchFieldList: IApiServerType[];
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as i,watch as a,openBlock as l,createElementBlock as n,createElementVNode as r,withDirectives as o,renderSlot as u,unref as s,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as m,createCommentVNode as v,Fragment as h,renderList as p}from"vue";import g from"xe-utils";import"moment";import y from"../directive/resize.js";import S from"../components/render-widget/index.vue.js";import x from"../hooks/useMixins.js";import b from"../hooks/useAdvanced.js";import k from"../hooks/useRenderWidget.js";import{NButton as j,NIcon as I}from"naive-ui";import{Search as _}from"@vicons/ionicons5";import C from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import{cloneDeep as R}from"lodash-es";import q from"../../../../_virtual/plugin-vue_export-helper.js";const V={class:"base-search-block"},A={class:"base-container"},O={class:"base-ul"},Q={key:1,class:"baseli"},z={key:2,class:"baseli"};var F=q(e({__name:"BaseSearch",props:{showSettings:{type:Object,default:()=>({})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onSave","handleReset","outSearchInit","getParam"],setup(e,{emit:q}){const F=e,{outQuickSearchFn:L}=x(),{isRender:W,getRenderSearchConObj:w,isExistDefValByRenderWidget:B,resetRenderWidgetValue:D}=k(),{transformData:E}=b(),N=t(null),P=t(null),U=t(0),$=t(0),M=t(0),T=t(0),G=t(!1),H=t(!1),J=t([]),K=i((()=>{var e;return e="hideQuickSearch",0==F.showSettings[e]}));function X(e){var t;if(H.value)return;let i=N.value;if(!i)return;H.value=!0,U.value=i.clientWidth,$.value=2===F.classificationIndex?160:0,M.value=(null==(t=P.value)?void 0:t.clientWidth)||0;let a=$.value+M.value,l=U.value-a;T.value=l,e.type&&"resize"===e.type&&function(){if(J.value.length>0)return;H.value=!1}()}function Y(){g.debounce(X({type:"resize"}),300)}function Z(){q("foldQuickSearch",!0)}function ee(e={}){!function(e,t=!1,i={}){let a=[];J.value.length>0&&(a=R(J.value));q("onSave",e,t,a,i)}(te()||[],!0,e)}function te(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let a=e[i];const l=w(a);l&&t.push(l)}return t.filter((e=>e.value))}(J.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{D(e)})),L.handlerInitSearchItem(e)}(J.value),q("handleReset",{targetType:"outQuickSearchReset"})}return a((()=>F.searchFieldList),(e=>{e&&e.length>0&&function(e={}){J.value=[];let t=R(E(F.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));J.value=t,L.handlerInitSearchItem(J.value),J.value.some((e=>W(e)?B(e):!!e.explicitDefaultVal))&&(q("outSearchInit"),"reset"!=(null==e?void 0:e.type)&&ee({type:"outSearchInit"}))}()}),{immediate:!0,deep:!0}),a((()=>J),(()=>{const e=te()||[];q("getParam",e),G.value=!!e.length}),{immediate:!0,deep:!0}),(t,i)=>(l(),n("div",V,[r("div",A,[o((l(),n("div",{class:"bease-left",ref_key:"baseLeft",ref:N},[r("ul",O,[u(t.$slots,"classification"),s(K)?(l(),n("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:P},[c(s(j),{class:"search-default",type:"default",onClick:Z},{default:f((()=>[c(s(C),{"icon-class":"anniushaixuan",style:{color:"inherit","margin-right":"6px"}}),d(" 筛选 "+m(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):v("v-if",!0),v(" start--筛选外显--start "),(l(!0),n(h,null,p(J.value,(e=>(l(),n(h,null,[e.isRender?(l(),n("li",{class:"baseli outQuickSearch-li",key:e._frontId},[c(S,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:ee},null,8,["cfg","modelValue","onUpdate:modelValue"])])):v("v-if",!0)],64)))),256)),v(" end--筛选外显--end "),v(" 查询按钮 "),J.value&&J.value.length>0?(l(),n("li",Q,[c(s(j),{type:"primary",onClick:ee,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(I),{component:s(_),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):v("v-if",!0),v(" 重置按钮 "),G.value?(l(),n("li",z,[c(s(j),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:f((()=>[c(s(C),{"icon-class":"xitongtubiaoliebiaocaozuoanniushanchu",style:{"margin-right":"6px"}}),d(" 重置 ")])),_:1})])):v("v-if",!0)])])),[[s(y),Y]])])]))}}),[["__file","BaseSearch.vue"]]);export{F as default};
1
+ import{defineComponent as e,ref as t,computed as l,watch as i,openBlock as a,createElementBlock as r,createElementVNode as n,withDirectives as s,createCommentVNode as u,renderSlot as o,unref as c,createVNode as f,withCtx as d,createTextVNode as m,toDisplayString as h,Fragment as p,renderList as v}from"vue";import g from"xe-utils";import"moment";import y from"../directive/resize.js";import b from"../components/render-widget/index.vue.js";import k from"../hooks/useMixins.js";import x from"../hooks/useAdvanced.js";import S from"../hooks/useRenderWidget.js";import{NButton as _,NIcon as j}from"naive-ui";import{Search as C}from"@vicons/ionicons5";import{cloneDeep as F}from"lodash-es";import R from"../../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},I={class:"base-container"},Q={class:"base-ul"},V=n("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),A={key:1,class:"baseli"},O={key:2,class:"baseli"},L=n("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var W=R(e({__name:"BaseSearch",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0})},searchFieldList:{type:Array,default:()=>[]},classificationIndex:{type:Number},qqConObjCount:{type:Number,default:0}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:R}){const W=e,{outQuickSearchFn:w}=k(),{isRender:z,getRenderSearchConObj:B,isExistDefValByRenderWidget:D,resetRenderWidgetValue:E}=S(),{transformData:N}=x(),P=t(null),U=t(null),$=t(0),M=t(0),T=t(0),G=t(0),H=t(!1),J=t(!1),K=t([]),X=l((()=>{var e;return e="hideQuickSearch",0==W.showSettings[e]}));function Y(e){var t;if(J.value)return;let l=P.value;if(!l)return;J.value=!0,$.value=l.clientWidth,M.value=2===W.classificationIndex?160:0,T.value=(null==(t=U.value)?void 0:t.clientWidth)||0;let i=M.value+T.value,a=$.value-i;G.value=a,e.type&&"resize"===e.type&&function(){if(K.value.length>0)return;J.value=!1}()}function Z(){g.debounce(Y({type:"resize"}),300)}function ee(){R("foldQuickSearch",!0)}function te(e={}){!function(e,t=!1,l={}){let i=[];K.value.length>0&&(i=F(K.value));R("onFilterSearch",e,t,i,l)}(le()||[],!0,e)}function le(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let l=0;l<e.length;l++){let i=e[l];const a=B(i);a&&t.push(a)}return t.filter((e=>e.value))}(K.value)}function ie(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{E(e)})),w.handlerInitSearchItem(e)}(K.value),R("handleReset",{targetType:"outQuickSearchReset"})}return i((()=>W.searchFieldList),(e=>{e&&e.length>0&&function(e={}){K.value=[];let t=F(N(W.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));K.value=t,w.handlerInitSearchItem(K.value),K.value.some((e=>z(e)?D(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),i((()=>K),(()=>{const e=le()||[];R("getFilterParam",e),H.value=!!e.length}),{immediate:!0,deep:!0}),(t,l)=>(a(),r("div",q,[n("div",I,[s((a(),r("div",{class:"bease-left",ref_key:"baseLeft",ref:P},[n("ul",Q,[u(" 筛选分类插槽内容 "),o(t.$slots,"classification"),c(X)?(a(),r("li",{key:0,class:"baseli",ref_key:"quickSearchLi",ref:U},[f(c(_),{class:"search-default",type:"default",onClick:ee},{default:d((()=>[V,m(" 筛选 "+h(e.qqConObjCount?`(${e.qqConObjCount})`:""),1)])),_:1})],512)):u("v-if",!0),u(" start--筛选外显--start "),(a(!0),r(p,null,v(K.value,(e=>(a(),r(p,null,[e.isRender?(a(),r("li",{class:"baseli outQuickSearch-li",key:e._frontId},[f(b,{style:{margin:"0 8px 8px 0"},cfg:e,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,onOutFilterChange:te},null,8,["cfg","modelValue","onUpdate:modelValue"])])):u("v-if",!0)],64)))),256)),u(" end--筛选外显--end "),u(" 查询按钮 "),K.value&&K.value.length>0?(a(),r("li",A,[f(c(_),{type:"primary",onClick:te,style:{margin:"0 8px 8px 0"}},{default:d((()=>[f(c(j),{component:c(C),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),m(" 查询 ")])),_:1})])):u("v-if",!0),u(" 重置按钮 "),H.value?(a(),r("li",O,[f(c(_),{onClick:ie,style:{margin:"0 8px 8px 0"}},{default:d((()=>[L,m(" 重置 ")])),_:1})])):u("v-if",!0)])])),[[c(y),Z]])])]))}}),[["__file","BaseSearch.vue"]]);export{W as default};