cnhis-design-vue 3.1.43-beta.4 → 3.1.43-beta.7

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 (42) hide show
  1. package/es/components/base-search/index.d.ts +46 -114
  2. package/es/components/base-search/src/index.vue.d.ts +46 -114
  3. package/es/components/base-search/src/index.vue.js +1 -1
  4. package/es/components/base-search/style/index.css +1 -1
  5. package/es/components/classification/index.d.ts +7 -6
  6. package/es/components/classification/src/components/search-filter/index.vue.d.ts +1 -0
  7. package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -5
  8. package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
  9. package/es/components/classification/src/components/table-modal/index.vue.d.ts +2 -2
  10. package/es/components/classification/src/index.vue.d.ts +7 -6
  11. package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
  12. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
  13. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -0
  14. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
  15. package/es/components/iho-table/style/index.css +1 -1
  16. package/es/components/index.css +1 -1
  17. package/es/components/quick-search/index.d.ts +54 -224
  18. package/es/components/quick-search/src/index.vue.d.ts +54 -224
  19. package/es/components/quick-search/src/index.vue.js +1 -1
  20. package/es/components/quick-search/style/index.css +1 -1
  21. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +1 -0
  22. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +1 -0
  23. package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +109 -0
  24. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
  25. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +67 -0
  26. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -0
  27. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +27 -7
  28. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  29. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +3 -2
  30. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  31. package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +13 -3
  32. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  33. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +134 -15
  34. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  35. package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
  36. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  37. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  38. package/es/components/table-filter/src/types/enums.d.ts +1 -0
  39. package/es/components/table-filter/src/types/enums.js +1 -1
  40. package/es/components/table-filter/src/types/index.d.ts +26 -87
  41. package/es/shared/package.json.js +1 -1
  42. package/package.json +2 -2
@@ -1,8 +1,9 @@
1
+ import { SelectOption } from 'naive-ui';
1
2
  declare const _default: import("vue").DefineComponent<{
2
3
  value: {
3
4
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
4
5
  };
5
- componentCfg: {
6
+ filterApiConfig: {
6
7
  type: ObjectConstructor;
7
8
  };
8
9
  }, {
@@ -10,25 +11,44 @@ declare const _default: import("vue").DefineComponent<{
10
11
  value: {
11
12
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
12
13
  };
13
- componentCfg: {
14
+ filterApiConfig: {
14
15
  type: ObjectConstructor;
15
16
  };
16
17
  }>> & {
17
18
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
19
+ onChangeInitState?: ((...args: any[]) => any) | undefined;
18
20
  }>>;
19
- emit: (event: "update:value", ...args: any[]) => void;
21
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
22
+ $attrs: {
23
+ [x: string]: unknown;
24
+ };
25
+ emit: (event: "update:value" | "changeInitState", ...args: any[]) => void;
26
+ selectOptions: import("vue").Ref<any[]>;
27
+ isRemote: import("vue").Ref<boolean>;
28
+ isLoading: import("vue").Ref<boolean>;
20
29
  valueCp: import("vue").WritableComputedRef<any>;
21
- maxTagCount: import("vue").ComputedRef<0 | 1 | undefined>;
22
- maxTagPlaceholder: () => string | undefined;
30
+ maxTagCount: import("vue").ComputedRef<"responsive" | undefined>;
31
+ searchOptions: (keyword: string) => Promise<any>;
32
+ _handleSearch: (query: string) => Promise<void>;
33
+ handleSearch: (query: string) => Promise<void>;
34
+ handleInitData: () => Promise<void>;
35
+ renderLabel: (option: SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
+ [key: string]: any;
37
+ }>;
38
+ renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
39
+ [key: string]: any;
40
+ }>;
41
+ init: () => Promise<void>;
23
42
  NSelect: any;
24
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "changeInitState")[], "update:value" | "changeInitState", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
44
  value: {
26
45
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
27
46
  };
28
- componentCfg: {
47
+ filterApiConfig: {
29
48
  type: ObjectConstructor;
30
49
  };
31
50
  }>> & {
32
51
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
52
+ onChangeInitState?: ((...args: any[]) => any) | undefined;
33
53
  }, {}>;
34
54
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,openBlock as u,createBlock as a,unref as r,mergeProps as l,isRef as n}from"vue";import{NSelect as p}from"naive-ui";import v from"../../../../../../_virtual/plugin-vue_export-helper.js";var o=v(e({__name:"Select",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:v}){const o=e,i=t({set(e){v("update:value",e)},get:()=>o.value}),m=t((()=>{if(!Array.isArray(o.value))return;return(o.value.length||0)>1?0:1}));return(e,t)=>(u(),a(r(p),l(e.$attrs,{value:r(i),"onUpdate:value":t[0]||(t[0]=e=>n(i)?i.value=e:null),"max-tag-count":r(m)}),null,16,["value","max-tag-count"]))}}),[["__file","Select.vue"]]);export{o as default};
1
+ import{defineComponent as e,useAttrs as a,ref as t,computed as n,openBlock as i,createBlock as l,unref as o,mergeProps as u,isRef as r,h as s}from"vue";import{NSelect as c,NTag as p}from"naive-ui";import{useDebounceFn as v}from"@vueuse/core";import d from"../../../hooks/useMixins.js";import f from"../../../../../../_virtual/plugin-vue_export-helper.js";var m=f(e({__name:"Select",props:{value:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:value","changeInitState"],setup(e,{emit:f}){const m=e,{handleGetConfigApi:y}=d(),g=a(),h=t([]),b=t(!1),w=t(!1),I=n({set(e){f("update:value",e)},get:()=>m.value}),S=n((()=>{if(!Array.isArray(m.value))return;return(m.value.length||0)>1?"responsive":void 0}));async function A(e){try{if(g.dynamicOptionInfo){const{autograph:a,dataSourceId:t,dataSourceType:n,filterKeys:i,showKeys:l,valueKey:o}=g.dynamicOptionInfo;let u={wordbookId:t,autograph:a,wordbookType:n,fieldKeys:i,keyword:e,page:1};w.value=!0;let r=await y(u,"requestDynamicSelect",{},m.filterApiConfig);if(r){const{fieldList:e,rows:a}=r,t=a.map((e=>({...e,label:e[l[0]],value:e[o]})));return h.value=t,t}}}catch(e){console.log(e)}finally{w.value=!1}}const C=v((async e=>{await async function(e){const{manualMapping:a}=g;if(a)return void(h.value=h.value.filter((a=>a.label.includes(e.trim()))));const t=e.trim();await A(t)}(e)}),300);async function O(){const{manualMapping:e,dynamicOptionInfo:a,valueList:t}=g;if(e&&Array.isArray(t))return b.value=!1,void(h.value=t.map((({value:e,label:a})=>({value:e,label:a}))));Object.keys(a).length>0&&m.filterApiConfig&&(b.value=!0,await A(""))}function _(e){const{manualMapping:a}=g;if(a)return s("div",e.label);const{showKeys:t=[]}=g.dynamicOptionInfo;return g.dynamicOptionInfo&&t.length>0?s("div",{class:"select-widget-dynamic-option"},t.map((a=>s("span",{class:"select-widget-dynamic-item"},e[a])))):s("div",e.label)}function k({option:e,handleClose:a}){const{multiple:t}=g;return t?s(p,{style:{padding:"0 8px"},closable:!0,onClose:e=>{e.stopPropagation(),a()}},{default:()=>s("div",e.label)}):s("div",e.label)}return async function(){const{manualMapping:e,defValue:a,defValueUnit:t,_frontId:n,isInit:i}=g;if(await O(),!i){if(e)return f("update:value",a),void f("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=h.value[0];f("update:value",[e.value]),f("changeInitState",n,!0);break}}}}(),(e,a)=>(i(),l(o(c),u(o(g),{value:o(I),"onUpdate:value":a[0]||(a[0]=e=>r(I)?I.value=e:null),loading:w.value,"max-tag-count":o(S),options:h.value,remote:b.value,"render-label":_,"render-tag":k,onSearch:o(C),onClear:O}),null,16,["value","loading","max-tag-count","options","remote","onSearch"]))}}),[["__file","Select.vue"]]);export{m as default};
@@ -1,3 +1,4 @@
1
1
  import CheckboxGroup from './CheckboxGroup.vue';
2
- import Select from './Select.vue';
3
- export { CheckboxGroup, Select };
2
+ import InputNumberGroup from './InputNumberGroup.vue';
3
+ import Date from './Date.vue';
4
+ export { CheckboxGroup, InputNumberGroup, Date };
@@ -1 +1 @@
1
- export{default as CheckboxGroup}from"./CheckboxGroup.vue.js";export{default as Select}from"./Select.vue.js";
1
+ export{default as CheckboxGroup}from"./CheckboxGroup.vue.js";export{default as InputNumberGroup}from"./InputNumberGroup.vue.js";export{default as Date}from"./Date.vue.js";
@@ -6,19 +6,25 @@ declare const _default: import("vue").DefineComponent<{
6
6
  modelValue: {
7
7
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
8
8
  };
9
+ filterApiConfig: {
10
+ type: ObjectConstructor;
11
+ };
9
12
  }, any, {
10
13
  initialProps: {};
11
14
  }, {
12
15
  valueCp(): any;
13
16
  }, {
14
17
  search(): void;
15
- getEleWidth(cfg: any): string | undefined;
18
+ getEleWidth(cfg: any): {
19
+ width: string;
20
+ } | undefined;
16
21
  initComponentProps(cfg: any): void;
17
22
  generateWidget(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
18
23
  [key: string]: any;
19
24
  }> | null;
20
- handleUpdate(val: any, widgetType: any, defValueUnit: any): void;
21
- }, 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<{
25
+ handleUpdate(val: any): void;
26
+ handleChangeInitState(_frontId: any, bool: any): void;
27
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange" | "changeInit")[], "update:modelValue" | "outFilterChange" | "changeInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
28
  cfg: {
23
29
  type: ObjectConstructor;
24
30
  required: true;
@@ -26,8 +32,12 @@ declare const _default: import("vue").DefineComponent<{
26
32
  modelValue: {
27
33
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
28
34
  };
35
+ filterApiConfig: {
36
+ type: ObjectConstructor;
37
+ };
29
38
  }>> & {
30
39
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
40
  onOutFilterChange?: ((...args: any[]) => any) | undefined;
41
+ onChangeInit?: ((...args: any[]) => any) | undefined;
32
42
  }, {}>;
33
43
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as r,formatItemData as a}from"./widgetCfgMaps.js";import l from"moment";import s from"../../../../../_virtual/plugin-vue_export-helper.js";const n=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var o=s(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]}},emits:["update:modelValue","outFilterChange"],computed:{valueCp(){const{widgetType:e}=this.cfg;return[i.DATE,i.DATE_TIME].includes(e)?this.cfg.value?l(this.cfg.value).valueOf():null:this.cfg.value}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){const{widgetType:t}=e;if(!n.includes(t))return`${e.advanceColWidth||200}px`},initComponentProps(e){const{widgetType:t,alias:i,title:a,placeholder:l,widgetCfg:s}=e,{props:n,handlerProps:o}=r.get(t);let p={...n};o&&(p=o(p,{...s,title:i||a})),l&&(p.placeholder=l),this.initialProps=p,p.value&&(this.valueCp=p.value)},generateWidget(e){const{widgetType:i}=e,{defValueUnit:a}=e.widgetCfg||{};if(!r.has(i))return null;const{value:l}=e,{component:s,style:n,eventsBySearch:o=[]}=r.get(i),p={...this.initialProps,value:l},u=o.reduce(((e,t)=>{const{name:i,handler:r}=t;let a=this.search;return r&&(a=e=>{r(e,this.search,p)}),{...e,[`on${i}`]:a}}),{});return t(s,{...n,...p,style:{width:this.getEleWidth(e)},value:this.valueCp,"onUpdate:value":e=>this.handleUpdate(e,i,a),...u})},handleUpdate(e,t,i){const r=a(e,t);this.$emit("update:modelValue",r)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{o as default};
1
+ import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as r}from"./widgetCfgMaps.js";import n from"../../../../../_virtual/plugin-vue_export-helper.js";const a=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var l=n(e({props:{cfg:{type:Object,required:!0},modelValue:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:modelValue","outFilterChange","changeInit"],computed:{valueCp(){return this.cfg.value}},data:()=>({initialProps:{}}),methods:{search(){this.$emit("outFilterChange")},getEleWidth(e){var t;const{widgetType:i,rangeFilter:r}=e;if(!a.includes(i))return r?void 0:{width:`${null!=(t=e.advanceColWidth)?t:200}px`}},initComponentProps(e){const{_frontId:t,widgetType:i,alias:n,title:a,placeholder:l,widgetCfg:s,rangeFilter:o}=e,{props:h,handlerProps:p}=r.get(i);let d={...h};p&&(d=p(d,{...s,title:n||a,rangeFilter:o,_frontId:t})),!o&&l&&(d.placeholder=l),this.initialProps=d,d.value&&(this.valueCp=d.value)},generateWidget(e){const{widgetType:i}=e;if(!r.has(i))return null;const{value:n}=e,{component:a,style:l,eventsBySearch:s=[]}=r.get(i),o={...this.initialProps,value:n,filterApiConfig:this.filterApiConfig},h=s.reduce(((e,t)=>{const{name:i,handler:r}=t;let n=this.search;return r&&(n=e=>{r(e,this.search,o)}),{...e,[`on${i}`]:n}}),{});return t(a,{...l,...o,style:this.getEleWidth(e),value:this.valueCp,"onUpdate:value":e=>this.handleUpdate(e),onChangeInitState:(...e)=>this.handleChangeInitState(...e),...h})},handleUpdate(e){this.$emit("update:modelValue",e)},handleChangeInitState(e,t){this.$emit("changeInit",e,t)}},created(){this.initComponentProps(this.cfg)},render(){return this.generateWidget(this.cfg)}}),[["__file","index.vue"]]);export{l as default};
@@ -3,7 +3,6 @@ export declare const WidgetCfgMaps: Map<string, {
3
3
  component: any;
4
4
  props: {
5
5
  clearable: boolean;
6
- options?: undefined;
7
6
  filterable?: undefined;
8
7
  multiple?: undefined;
9
8
  type?: undefined;
@@ -21,7 +20,7 @@ export declare const WidgetCfgMaps: Map<string, {
21
20
  value: {
22
21
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
23
22
  };
24
- componentCfg: {
23
+ filterApiConfig: {
25
24
  type: ObjectConstructor;
26
25
  };
27
26
  }, {
@@ -29,30 +28,48 @@ export declare const WidgetCfgMaps: Map<string, {
29
28
  value: {
30
29
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
31
30
  };
32
- componentCfg: {
31
+ filterApiConfig: {
33
32
  type: ObjectConstructor;
34
33
  };
35
34
  }>> & {
36
35
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
36
+ onChangeInitState?: ((...args: any[]) => any) | undefined;
37
37
  }>>;
38
- emit: (event: "update:value", ...args: any[]) => void;
38
+ handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
39
+ $attrs: {
40
+ [x: string]: unknown;
41
+ };
42
+ emit: (event: "update:value" | "changeInitState", ...args: any[]) => void;
43
+ selectOptions: import("vue").Ref<any[]>;
44
+ isRemote: import("vue").Ref<boolean>;
45
+ isLoading: import("vue").Ref<boolean>;
39
46
  valueCp: import("vue").WritableComputedRef<any>;
40
- maxTagCount: import("vue").ComputedRef<0 | 1 | undefined>;
41
- maxTagPlaceholder: () => string | undefined;
47
+ maxTagCount: import("vue").ComputedRef<"responsive" | undefined>;
48
+ searchOptions: (keyword: string) => Promise<any>;
49
+ _handleSearch: (query: string) => Promise<void>;
50
+ handleSearch: (query: string) => Promise<void>;
51
+ handleInitData: () => Promise<void>;
52
+ renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
53
+ [key: string]: any;
54
+ }>;
55
+ renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
56
+ [key: string]: any;
57
+ }>;
58
+ init: () => Promise<void>;
42
59
  NSelect: any;
43
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "changeInitState")[], "update:value" | "changeInitState", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
61
  value: {
45
62
  type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
46
63
  };
47
- componentCfg: {
64
+ filterApiConfig: {
48
65
  type: ObjectConstructor;
49
66
  };
50
67
  }>> & {
51
68
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
69
+ onChangeInitState?: ((...args: any[]) => any) | undefined;
52
70
  }, {}>;
53
71
  props: {
54
72
  clearable: boolean;
55
- options: never[];
56
73
  filterable: boolean;
57
74
  multiple: boolean;
58
75
  type?: undefined;
@@ -62,20 +79,124 @@ export declare const WidgetCfgMaps: Map<string, {
62
79
  name: string;
63
80
  handler(e: KeyboardEvent, search: funcVoid, props: any): void;
64
81
  }[];
65
- handlerProps(props: any, { valueList, multiple, title }?: any): any;
82
+ handlerProps(props: any, data?: any): any;
66
83
  setDefaultValue: (defaultValue: any) => any;
67
84
  style?: undefined;
68
85
  } | {
69
- component: any;
86
+ component: import("vue").DefineComponent<{
87
+ type: {
88
+ type: import("vue").PropType<"year" | "month" | "quarter" | "date" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
89
+ default: string;
90
+ };
91
+ clearable: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ valueFormat: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ startPlaceholder: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ endPlaceholder: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ placeholder: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ value: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ }, {
116
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
117
+ type: {
118
+ type: import("vue").PropType<"year" | "month" | "quarter" | "date" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
119
+ default: string;
120
+ };
121
+ clearable: {
122
+ type: BooleanConstructor;
123
+ default: boolean;
124
+ };
125
+ valueFormat: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ startPlaceholder: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ endPlaceholder: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ placeholder: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ value: {
142
+ type: StringConstructor;
143
+ default: string;
144
+ };
145
+ }>> & {
146
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
147
+ }>>;
148
+ emit: (event: "update:value", ...args: any[]) => void;
149
+ valueCp: import("vue").Ref<any>;
150
+ handleChange: (val: any) => false | undefined;
151
+ NDatePicker: any;
152
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
153
+ type: {
154
+ type: import("vue").PropType<"year" | "month" | "quarter" | "date" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
155
+ default: string;
156
+ };
157
+ clearable: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
161
+ valueFormat: {
162
+ type: StringConstructor;
163
+ default: string;
164
+ };
165
+ startPlaceholder: {
166
+ type: StringConstructor;
167
+ default: string;
168
+ };
169
+ endPlaceholder: {
170
+ type: StringConstructor;
171
+ default: string;
172
+ };
173
+ placeholder: {
174
+ type: StringConstructor;
175
+ default: string;
176
+ };
177
+ value: {
178
+ type: StringConstructor;
179
+ default: string;
180
+ };
181
+ }>> & {
182
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
183
+ }, {
184
+ type: "year" | "month" | "quarter" | "date" | "datetime" | "datetimerange" | "daterange" | "monthrange";
185
+ value: string;
186
+ placeholder: string;
187
+ clearable: boolean;
188
+ startPlaceholder: string;
189
+ endPlaceholder: string;
190
+ valueFormat: string;
191
+ }>;
70
192
  props: {
71
193
  type: string;
72
194
  clearable: boolean;
73
195
  valueFormat: string;
74
- options?: undefined;
75
196
  filterable?: undefined;
76
197
  multiple?: undefined;
77
198
  };
78
- handlerProps(props: any, { title }?: any): any;
199
+ handlerProps(props: any, data?: any): any;
79
200
  setDefaultValue(defaultValue: any, defValueUnit: any): any;
80
201
  eventsBySearch?: undefined;
81
202
  style?: undefined;
@@ -183,7 +304,6 @@ export declare const WidgetCfgMaps: Map<string, {
183
304
  }>;
184
305
  props: {
185
306
  clearable?: undefined;
186
- options?: undefined;
187
307
  filterable?: undefined;
188
308
  multiple?: undefined;
189
309
  type?: undefined;
@@ -196,4 +316,3 @@ export declare const WidgetCfgMaps: Map<string, {
196
316
  setDefaultValue: (defaultValue: any) => any;
197
317
  eventsBySearch?: undefined;
198
318
  }>;
199
- export declare const formatItemData: (val: any, widgetType: string) => any;
@@ -1 +1 @@
1
- import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as l}from"./enums.js";import{NInputNumber as t,NInput as a,NDatePicker as r}from"naive-ui";import o from"./components/CheckboxGroup.vue.js";import p from"./components/Select.vue.js";import s from"moment";import{presetValToTimestamp as n}from"./helpers/presetValToTimestamp.js";const m=e=>null==e?null:e,u=new Map([[e.INPUT_NUMBER,{component:t,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`输入${l}`}),setDefaultValue:m}],[e.INPUT,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,l){"Enter"===e.key&&l()}}],handlerProps:(e,{title:l}={})=>({...e,placeholder:`搜索${l}`}),setDefaultValue:m}],[e.SELECT,{component:p,props:{clearable:!0,options:[],filterable:!0,multiple:!1},eventsBySearch:[{name:"change",handler(e,l,t){const{multiple:a}=t;a&&l()}}],handlerProps(e,{valueList:l,multiple:t,title:a}={}){const r={...e,placeholder:`请选择${a}`};return Array.isArray(l)&&(r.options=l.map((({value:e,label:l})=>({value:e,label:l})))),t&&(r.multiple=!0),r},setDefaultValue:m}],[e.DATE,{component:r,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATE_TIME,{component:r,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps:(e,{title:l}={})=>({...e,placeholder:`请选择${l}`}),setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?n(t,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:o,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:l,multiple:t}={}){const a={...e,multiple:t};return Array.isArray(l)&&(a.options=l.map((({value:e,label:l})=>({value:e,label:l})))),a},setDefaultValue:m}]]),i=(l,t)=>!l||t!==e.DATE&&t!==e.DATE_TIME?l:s(l).format("YYYY-MM-DD HH:mm:ss");export{u as WidgetCfgMaps,i as formatItemData};
1
+ import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as t}from"./enums.js";import{NInputNumber as l,NInput as a}from"naive-ui";import r from"./components/CheckboxGroup.vue.js";import n from"./components/InputNumberGroup.vue.js";import o from"./components/Date.vue.js";import p from"./components/Select.vue.js";import{presetValToTimestamp as s}from"./helpers/presetValToTimestamp.js";const m=e=>null==e?null:e,u=new Map([[e.INPUT_NUMBER,{component:l,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,placeholder:`输入${t}`}),setDefaultValue:m}],[e.INPUTNUMBER_GROUP,{component:n,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}),setDefaultValue:m}],[e.INPUT,{component:a,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,placeholder:`搜索${t}`}),setDefaultValue:m}],[e.SELECT,{component:p,props:{clearable:!0,filterable:!0,multiple:!1},eventsBySearch:[{name:"change",handler(e,t,l){const{multiple:a}=l;a&&t()}}],handlerProps(e,t={}){const{valueList:l,multiple:a,title:r,manualMapping:n,dynamicOptionInfo:o,defaultValue:p,defValueUnit:s,_frontId:m,isInit:u}=t,i={...e,placeholder:`请选择${r}`,manualMapping:n,dynamicOptionInfo:o,valueList:l,defValue:p,defValueUnit:s,_frontId:m,isInit:u};return a&&(i.multiple=!0),i},setDefaultValue:m}],[e.DATE,{component:o,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l,rangeFilter:a}=t,r={...e,placeholder:`请选择${l}`};return a&&(r.type="daterange",r.startPlaceholder=`起始${l}`,r.endPlaceholder=`截止${l}`),r},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?s(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATE_TIME,{component:o,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l,rangeFilter:a}=t,r={...e,placeholder:`请选择${l}`};return a&&(r.type="datetimerange",r.startPlaceholder=`起始${l}`,r.endPlaceholder=`截止${l}`),r},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?s(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:r,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:t,multiple:l}={}){const a={...e,multiple:l};return Array.isArray(t)&&(a.options=t.map((({value:e,label:t})=>({value:e,label:t})))),a},setDefaultValue:m}]]);export{u as WidgetCfgMaps};
@@ -7,15 +7,19 @@ export default function useAdvanced(): {
7
7
  setting: string;
8
8
  widgetCfg: {
9
9
  isRender: boolean;
10
+ isInit: boolean;
10
11
  widgetType: string | null;
11
12
  valueList: {
12
13
  value: any;
13
- label: string;
14
+ label: any;
14
15
  }[] | undefined;
15
16
  defaultValue: any;
16
17
  defValueUnit: any;
17
18
  multiple: boolean;
19
+ manualMapping: boolean | null | undefined;
20
+ dynamicOptionInfo: import("../../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
18
21
  };
22
+ rangeFilter: boolean | undefined;
19
23
  title: string;
20
24
  alias: string | undefined;
21
25
  isShowSearch: number;
@@ -23,7 +27,7 @@ export default function useAdvanced(): {
23
27
  explicitRequired: number;
24
28
  advanceOptionSetting: string;
25
29
  placeholder: string | undefined;
26
- advanceColWidth: string;
30
+ advanceColWidth: number | null | undefined;
27
31
  }[];
28
32
  getCacheDef: (item: ISearchType, cacheList: string[]) => string | string[];
29
33
  transformClassifyChild: (conObjList: any) => {};
@@ -1 +1 @@
1
- import{WidgetOptionEnums as e,WidgetTypeEnums as t}from"../types/enums.js";import{presetValToTimestamp as i}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as l}from"../components/render-widget/enums.js";const n={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function o(){return{transformData:function(i){return i.map((i=>{var l,o;const{optionInfo:a={list:[]},type:r,defaultValue:u,optionType:s,filterExplicit:d}=i,p={},c={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?n[f.optionType]:"",placeholder:f.remark,advanceColWidth:String(f.width)};var f;let m,v,T=r;d?(m=r===t.SELECT&&s===e.MULTIPLE?null==u?void 0:u.valueList:null==(l=null==u?void 0:u.valueList)?void 0:l[0],v=null==u?void 0:u.unit):r===t.SELECT&&(null==a?void 0:a.list)&&(null==a?void 0:a.list.length)<10&&(T="CHECKBOX_GROUP");const g={isRender:!0,widgetType:T,valueList:null==(o=null==a?void 0:a.list)?void 0:o.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:m,defValueUnit:v,multiple:s===e.MULTIPLE};return{...c,fieldType:i.dataType,columnName:i.name,settingObj:p,setting:JSON.stringify(p),widgetCfg:g}}))},getCacheDef:function(e,i){const{widgetType:l,widgetCfg:n}=e;return l===t.SELECT&&n.multiple?i:i[0]},transformClassifyChild:function(e){const t={};return e&&e.length>0&&e.forEach((e=>{const n=e.field_key,o=e.value&&e.value.length>1?e.value:e.value.toString();if(t[n]=o,e.unit&&e.unit!==l.CUSTOM){const l=i(e.unit,"YYYY-MM-DD HH:mm:ss");t[n]=l}})),t},transformParams:function(e){const t={};return e&&e.length>0&&e.forEach((e=>{const i=e.field_key,l=e.value&&e.value.length>1?e.value:e.value.toString();t[i]=l})),t}}}export{o as default};
1
+ import{WidgetOptionEnums as e,WidgetTypeEnums as t}from"../types/enums.js";import{presetValToTimestamp as i}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as n}from"../components/render-widget/enums.js";const l={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function a(){return{transformData:function(i){return i.map((i=>{var n,a;const{optionInfo:o={list:[],manualMapping:!0,dynamicOptionInfo:{}},type:u,defaultValue:r,optionType:s,filterExplicit:p,rangeFilter:d}=i,c={},m={title:(f=i).title,alias:f.customTitle,isShowSearch:f.isShowSearch?1:0,filterExplicit:f.filterExplicit?1:0,explicitRequired:f.explicitRequired?1:0,advanceOptionSetting:f.optionType?l[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width};var f;let v,g,T=u;p?(v=u===t.SELECT&&s===e.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],g=null==r?void 0:r.unit):u===t.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(T="CHECKBOX_GROUP"),u===t.INPUT_NUMBER&&d&&(T="INPUTNUMBER_GROUP");const E={isRender:!0,isInit:!1,widgetType:T,valueList:null==(a=null==o?void 0:o.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:v,defValueUnit:g,multiple:s===e.MULTIPLE,manualMapping:null==o?void 0:o.manualMapping,dynamicOptionInfo:null==o?void 0:o.dynamicOptionInfo};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:c,setting:JSON.stringify(c),widgetCfg:E,rangeFilter:d}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return n===t.SELECT&&l.multiple?i:i[0]},transformClassifyChild:function(e){const t={};return e&&e.length>0&&e.forEach((e=>{const l=e.field_key,a=e.value&&e.value.length>1?e.value:e.value.toString();if(t[l]=a,e.unit&&e.unit!==n.CUSTOM){const n=i(e.unit,"YYYY-MM-DD HH:mm:ss");t[l]=n}})),t},transformParams:function(e){const t={};return e&&e.length>0&&e.forEach((e=>{const i=e.field_key,n=e.value&&e.value.length>1?e.value:e.value.toString();t[i]=n})),t}}}export{a as default};
@@ -1 +1 @@
1
- import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as n}from"../components/render-widget/enums.js";import{WidgetTypeEnums as t}from"../types/enums.js";const r=[t.CHECKBOX_GROUP];function i(){function i(e){var n;return null==(n=e.widgetCfg)?void 0:n.isRender}function u(n){const{widgetType:t,defaultValue:r,defValueUnit:i}=n.widgetCfg||{},u=e.get(t);let l;if(u){const{setDefaultValue:e}=u;e&&(l=e(r,i))}return l}return{isRender:i,getDefValByRenderWidget:u,initRenderWidgetCfg:function(e){const n=i(e);if(!n)return n;const{widgetType:t}=e.widgetCfg||{};return e._frontId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)})),e.isRender=n,e.widgetType=t,e.con="EQ",r.includes(t)&&(e._isBlock=!0),e.value=u(e),n},getRenderSearchConObj:function(e){if(!i(e))return null;const{columnName:r,con:u,value:l,widgetType:o}=e;let d=null;[t.DATE,t.DATE_TIME].includes(o)&&(d=n.CUSTOM);const s=Array.isArray(l)?l:l?[l]:[];return{field_key:r,con:u,value:s.length>0?s:null,unit:d}},getDefValByRenderConObj:function(e,n){if(!i(n))return null;const{widgetType:r,multiple:u}=n.widgetCfg||{},{value:l}=e;return r!==t.SELECT&&r!==t.CHECKBOX_GROUP||!u?Array.isArray(l)?l[0]:l:Array.isArray(l)?l:l?[l]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:n,defValueUnit:t}=e.widgetCfg||{};return!(!n&&!t)},resetRenderWidgetValue:function(e){const n=i(e);return n?(e.value=null,n):n}}}export{i as default};
1
+ import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as n}from"../components/render-widget/enums.js";import{WidgetTypeEnums as t}from"../types/enums.js";const r=[t.CHECKBOX_GROUP];function i(){function i(e){var n;return null==(n=e.widgetCfg)?void 0:n.isRender}function u(n){const{rangeFilter:t}=n,{widgetType:r,defaultValue:i,defValueUnit:u}=n.widgetCfg||{},l=e.get(r);let o;if(l){const{setDefaultValue:e}=l;e&&!t&&(o=e(i,u))}return o}return{isRender:i,getDefValByRenderWidget:u,initRenderWidgetCfg:function(e){const n=i(e);if(!n)return n;const{widgetType:t}=e.widgetCfg||{};return e._frontId="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const n=16*Math.random()|0;return("x"===e?n:3&n|8).toString(16)})),e.isRender=n,e.widgetType=t,e.con="EQ",(r.includes(t)||e.rangeFilter)&&(e._isBlock=!0),e.value=u(e),n},getRenderSearchConObj:function(e){if(!i(e))return null;const{columnName:r,con:u,value:l,widgetType:o}=e;let d=null;[t.DATE,t.DATE_TIME].includes(o)&&(d=n.CUSTOM);const a=Array.isArray(l)?l:l?[l]:[];return{field_key:r,con:u,value:a.length>0?a:null,unit:d}},getDefValByRenderConObj:function(e,n){if(!i(n))return null;const{widgetType:r,multiple:u}=n.widgetCfg||{},{value:l}=e;return r!==t.SELECT&&r!==t.CHECKBOX_GROUP||!u?Array.isArray(l)?l[0]:l:Array.isArray(l)?l:l?[l]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:n,defValueUnit:t}=e.widgetCfg||{};return!(!n&&!t)},resetRenderWidgetValue:function(e){const n=i(e);return n?(e.value=null,n):n}}}export{i as default};
@@ -21,6 +21,7 @@ export declare const WidgetTypeEnums: {
21
21
  DATE: string;
22
22
  DATE_TIME: string;
23
23
  CHECKBOX_GROUP: string;
24
+ INPUTNUMBER_GROUP: string;
24
25
  };
25
26
  export declare const WidgetOptionEnums: {
26
27
  RADIO: string;
@@ -1 +1 @@
1
- const T={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},E={SQL:"SQL",API:"API"},A={MANUAL:"manual",DICT:"dict"},_={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_TIME:"DATETIME",CHECKBOX_GROUP:"CHECKBOX_GROUP"},R={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},S={CUSTOM:"CUSTOM",FIRST_VAL:"FIRST",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",THIS_WEEK:"THIS_WEEK",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END",NEXT_MONTH:"NEXT_MONTH",LAST_MONTH:"LAST_MONTH",THIS_QUARTER:"THIS_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_YEAR:"THIS_YEAR",NEXT_YEAR:"NEXT_YEAR",LAST_YEAR:"LAST_YEAR"},O={NULL:"NULL",EQUAL:"EQ"};export{O as ConditionEnums,E as DataTypeEnums,T as FieldTypeEnums,A as MappingMethodEnums,R as WidgetOptionEnums,_ as WidgetTypeEnums,S as WidgetValEnums};
1
+ const T={TEXT:"TEXT",NUMBER:"NUMBER",DATE:"DATE",DATE_TIME:"DATETIME",TIME:"TIME",BOOLEAN:"BOOLEAN"},E={SQL:"SQL",API:"API"},A={MANUAL:"manual",DICT:"dict"},_={INPUT_NUMBER:"NUMBER",INPUT:"TEXT",SELECT:"SELECT",DATE:"DATE",DATE_TIME:"DATETIME",CHECKBOX_GROUP:"CHECKBOX_GROUP",INPUTNUMBER_GROUP:"INPUTNUMBER_GROUP"},R={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},S={CUSTOM:"CUSTOM",FIRST_VAL:"FIRST",NOW:"NOW",TODAY:"TODAY",TODAY_START:"TODAY_START",TODAY_END:"TODAY_END",TOMORROW:"TOMORROW",TOMORROW_START:"TOMORROW_START",TOMORROW_END:"TOMORROW_END",YESTERDAY:"YESTERDAY",YESTERDAY_START:"YESTERDAY_START",YESTERDAY_END:"YESTERDAY_END",THIS_WEEK:"THIS_WEEK",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",NEXT_WEEK:"NEXT_WEEK",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END",NEXT_MONTH:"NEXT_MONTH",LAST_MONTH:"LAST_MONTH",THIS_QUARTER:"THIS_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",LAST_QUARTER:"LAST_QUARTER",THIS_YEAR:"THIS_YEAR",NEXT_YEAR:"NEXT_YEAR",LAST_YEAR:"LAST_YEAR"},O={NULL:"NULL",EQUAL:"EQ"};export{O as ConditionEnums,E as DataTypeEnums,T as FieldTypeEnums,A as MappingMethodEnums,R as WidgetOptionEnums,_ as WidgetTypeEnums,S as WidgetValEnums};
@@ -1,98 +1,27 @@
1
1
  export declare type funcVoid = () => void;
2
2
  export declare type ISearchType = {
3
+ isShowSearch?: number;
4
+ filterExplicit?: number;
5
+ explicitRequired?: number;
6
+ advanceOptionSetting?: string;
7
+ explicitDefaultVal?: string;
8
+ advanceColWidth?: string;
9
+ fieldType?: string;
3
10
  columnName: string;
4
11
  title: string;
5
- fieldType?: string;
6
- filterExplicit?: number;
7
- isShowSearch?: number;
8
- setting?: any;
9
- settingObj?: any;
10
12
  placeholder?: string;
11
- AGEAttr?: boolean;
12
- CL?: string;
13
- CONVERT?: any;
14
- EVALUATEAttr?: boolean;
15
- EQ?: string;
16
- LABELAttr?: boolean;
17
- _isBlock?: boolean;
13
+ settingObj?: any;
14
+ setting?: any;
15
+ widgetCfg?: any;
16
+ rangeFilter?: boolean;
18
17
  _frontId?: any;
19
- NUMBERFiled?: boolean;
20
- PASSWORDTYPE?: boolean;
21
- advanceColWidth?: string;
22
- advanceOptionSetting?: string;
23
- alias?: string;
24
- ageObj?: any;
25
- attr?: string;
26
- bigValue?: string | number;
27
- classify?: string;
28
- colWidth?: number;
29
- columnFullName?: string;
30
- com?: string;
31
- comType?: string;
32
- comAttr?: string;
33
- con?: string;
34
- dataSource?: any;
35
- dictionarieObj?: any;
36
- explicitRequired?: number;
37
- explicitDefaultVal?: string;
38
- extraField?: boolean;
39
- fieldSetting?: string;
40
- format?: string;
41
- i18n?: string;
42
- id?: string;
43
- inputVal?: string;
44
- inputUnit?: string;
45
- isAvg?: number;
46
- isEdit?: number;
47
- isFixed?: number;
48
- isFixedShow?: number;
49
- isFontWeight?: number;
50
- isMerge?: number;
51
- isOrder?: number;
52
- isPreciseSearch?: boolean;
53
18
  isRender?: boolean;
54
- isSearch?: number;
55
- isShow?: number;
56
- isSort?: number;
57
- isSum?: number;
58
- labelObj?: any;
59
- labelList?: IlabelType[];
60
- labelSelectList?: IlabelType[];
61
- lessValue?: string | number;
62
- marginx?: string;
63
- notParticipatingSearch?: number;
64
- order?: string;
65
- QUOTE?: any;
66
- searchPageConfig?: any;
67
- selecteds?: any;
68
- sequence?: number;
69
- showDate?: boolean;
70
- showFormat?: string;
71
- showTime?: boolean;
72
- sid?: string;
73
- start_val?: number | null;
74
- end_val?: number | null;
75
- tempCon?: any;
76
- tableId?: string;
77
- value?: any;
78
- unit?: string;
79
- widgetCfg?: any;
80
- formTitle?: string;
81
- random_key?: string;
82
19
  widgetType?: any;
83
- hasFieldList?: any;
84
- search_DefaultValue?: any;
85
- };
86
- export declare type IlabelType = {
87
- labelId?: string;
88
- change_text: string;
89
- field_key: string;
90
- filter: IFilterItemType[];
91
- label: string;
92
- labelName: string;
93
- sqlExpression: string;
94
- value: string;
95
- isSelect?: boolean;
20
+ con?: string;
21
+ _isBlock?: boolean;
22
+ value?: any;
23
+ sid?: string;
24
+ alias?: string;
96
25
  };
97
26
  export declare type IFilterItemType = {
98
27
  con: string;
@@ -195,10 +124,20 @@ export declare type IApiServerType = {
195
124
  name: string;
196
125
  value: any;
197
126
  }[];
127
+ dynamicOptionInfo?: dynamicOptionInfoType;
198
128
  };
129
+ rangeFilter?: boolean;
199
130
  remark?: string;
200
131
  keyword?: boolean;
201
132
  };
133
+ export declare type dynamicOptionInfoType = {
134
+ filterKeys: string[];
135
+ showKeys: string[];
136
+ valueKey: string;
137
+ dataSourceId: string;
138
+ dataSourceType: string;
139
+ autograph: string;
140
+ };
202
141
  export declare type ICategoryItemType = {
203
142
  disabled: boolean;
204
143
  value: string;
@@ -1 +1 @@
1
- var e="@cnhis-design-vue/shared",i="3.1.43-beta.4",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.43-beta.4",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
1
+ var e="@cnhis-design-vue/shared",i="3.1.43-beta.7",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.43-beta.7",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.1.43-beta.4",
3
+ "version": "3.1.43-beta.7",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -61,5 +61,5 @@
61
61
  "iOS 7",
62
62
  "last 3 iOS versions"
63
63
  ],
64
- "gitHead": "34651a579e24dde2aa5fdb3f4452753796208519"
64
+ "gitHead": "c78ed21d90a5bcf63cc51874ba03e7121efbe651"
65
65
  }