cnhis-design-vue 3.1.41-beta.26 → 3.1.41-beta.28
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/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/date-picker/index.d.ts +20 -0
- package/es/components/date-picker/index.js +1 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +20 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-config/index.d.ts +5 -5
- package/es/components/form-config/src/FormConfig.vue.d.ts +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +20 -7
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +18 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-filter/index.d.ts +64 -452
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +19 -88
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -1
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +37 -253
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +0 -42
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +2 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/search-filter/index.vue.d.ts +0 -84
- package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/set-classification/index.vue.d.ts +4 -130
- package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -1
- package/es/components/table-filter/src/components/table-modal/index.vue.d.ts +3 -43
- package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.d.ts +10 -113
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +6 -162
- package/es/components/table-filter/style/iconfont.ttf +0 -0
- package/es/components/table-filter/style/index.css +1 -1
- package/es/components/time-picker/index.d.ts +18 -0
- package/es/components/time-picker/index.js +1 -0
- package/es/components/time-picker/src/TimePicker.vue.d.ts +18 -0
- package/es/components/time-picker/src/TimePicker.vue.js +1 -0
- package/es/env.d.ts +24 -24
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +0 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +0 -1
|
@@ -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
|
-
|
|
83
|
-
onGetParam?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
onGetFilterParam?: ((...args: any[]) => any) | undefined;
|
|
84
87
|
}>>;
|
|
85
|
-
emit: (event: "
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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};
|