cnhis-design-vue 3.1.43-beta.11 → 3.1.43-beta.14

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 (38) hide show
  1. package/es/components/base-search/index.d.ts +4 -0
  2. package/es/components/base-search/src/index.vue.d.ts +4 -0
  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 +3 -1
  6. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -1
  7. package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -1
  8. package/es/components/classification/src/index.vue.d.ts +3 -1
  9. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
  10. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  11. package/es/components/index.css +1 -1
  12. package/es/components/quick-search/style/index.css +1 -1
  13. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +3 -1
  14. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -1
  15. package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
  16. package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
  17. package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +3 -28
  18. package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
  19. package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.d.ts +118 -0
  20. package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +1 -0
  21. package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
  22. package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +0 -1
  23. package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
  24. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +2 -1
  25. package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
  26. package/es/components/table-filter/src/components/render-widget/enums.d.ts +17 -0
  27. package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
  28. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +5 -0
  29. package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
  30. package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
  31. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +125 -19
  32. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
  33. package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
  34. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  35. package/es/components/table-filter/src/types/enums.d.ts +3 -1
  36. package/es/components/table-filter/src/types/enums.js +1 -1
  37. package/es/shared/package.json.js +1 -1
  38. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ const l=[{value:"TODAY",label:"今天"},{value:"TOMORROW",label:"明天"},{value:"YESTERDAY",label:"昨天"},{value:"THIS_WEEK",label:"本周"},{value:"NEXT_WEEK",label:"下周"},{value:"PREV_WEEK",label:"上周"},{value:"THIS_MONTH",label:"本月"},{value:"NEXT_MONTH",label:"下月"},{value:"PREV_MONTH",label:"上月"},{value:"THIS_QUATER",label:"本季度"},{value:"NEXT_QUATER",label:"下季度"},{value:"PREV_QUATER",label:"上季度"},{value:"THIS_YEAR",label:"本年"},{value:"NEXT_YEAR",label:"下年"},{value:"PREV_YEAR",label:"上年"}];export{l as DateRangeOptions};
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- declare type ITypeDate = 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'monthrange' | 'year' | 'quarter';
2
+ declare type ITypeDate = 'date' | 'datetime';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  type: {
5
5
  type: PropType<ITypeDate>;
@@ -13,14 +13,6 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: StringConstructor;
14
14
  default: string;
15
15
  };
16
- startPlaceholder: {
17
- type: StringConstructor;
18
- default: string;
19
- };
20
- endPlaceholder: {
21
- type: StringConstructor;
22
- default: string;
23
- };
24
16
  placeholder: {
25
17
  type: StringConstructor;
26
18
  default: string;
@@ -43,14 +35,6 @@ declare const _default: import("vue").DefineComponent<{
43
35
  type: StringConstructor;
44
36
  default: string;
45
37
  };
46
- startPlaceholder: {
47
- type: StringConstructor;
48
- default: string;
49
- };
50
- endPlaceholder: {
51
- type: StringConstructor;
52
- default: string;
53
- };
54
38
  placeholder: {
55
39
  type: StringConstructor;
56
40
  default: string;
@@ -64,7 +48,8 @@ declare const _default: import("vue").DefineComponent<{
64
48
  }>>;
65
49
  emit: (event: "update:value", ...args: any[]) => void;
66
50
  valueCp: import("vue").Ref<any>;
67
- handleChange: (val: any) => false | undefined;
51
+ dateFormat: import("vue").ComputedRef<string>;
52
+ handleChange: (val: any) => void;
68
53
  NDatePicker: any;
69
54
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
70
55
  type: {
@@ -79,14 +64,6 @@ declare const _default: import("vue").DefineComponent<{
79
64
  type: StringConstructor;
80
65
  default: string;
81
66
  };
82
- startPlaceholder: {
83
- type: StringConstructor;
84
- default: string;
85
- };
86
- endPlaceholder: {
87
- type: StringConstructor;
88
- default: string;
89
- };
90
67
  placeholder: {
91
68
  type: StringConstructor;
92
69
  default: string;
@@ -102,8 +79,6 @@ declare const _default: import("vue").DefineComponent<{
102
79
  value: string;
103
80
  placeholder: string;
104
81
  clearable: boolean;
105
- startPlaceholder: string;
106
- endPlaceholder: string;
107
82
  valueFormat: string;
108
83
  }>;
109
84
  export default _default;
@@ -1 +1 @@
1
- import{defineComponent as e,ref as a,watch as l,openBlock as t,createBlock as r,unref as u}from"vue";import{NDatePicker as o}from"naive-ui";import d from"moment";import{isString as m,isArray as p}from"lodash-es";import i from"../../../../../../_virtual/plugin-vue_export-helper.js";var n=i(e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:i}){const n=e,v=a();function f(e){if(v.value=e,!e)return!1;if(p(e)){const[a,l]=e;return i("update:value",`${d(a).format("YYYY-MM-DD HH:mm:ss")} ~ ${d(l).format("YYYY-MM-DD HH:mm:ss")}`),!1}i("update:value",`${d(e).format("YYYY-MM-DD HH:mm:ss")}`)}return l((()=>n.value),(e=>{if(e&&m(e)){if(e.includes("~")){const[a,l]=e.split("~"),t=d(a.trim()).valueOf(),r=d(l.trim()).valueOf();return void(v.value=[t,r])}v.value=d(e).valueOf()}else v.value=null}),{immediate:!0}),(a,l)=>(t(),r(u(o),{type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,startPlaceholder:e.startPlaceholder,endPlaceholder:e.endPlaceholder,placeholder:e.placeholder,value:v.value,"onUpdate:value":f},null,8,["type","clearable","valueFormat","startPlaceholder","endPlaceholder","placeholder","value"]))}}),[["__file","Date.vue"]]);export{n as default};
1
+ import{defineComponent as e,ref as a,computed as t,watch as l,openBlock as r,createBlock as u,unref as o}from"vue";import{NDatePicker as p}from"naive-ui";import m from"moment";import{isString as v}from"lodash-es";import i from"../../../../../../_virtual/plugin-vue_export-helper.js";var d=i(e({__name:"Date",props:{type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:i}){const d=e,n=a(),f=t((()=>{let e="";switch(d.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e}));function c(e){n.value=e;const a=e?m(e).format(f.value):e;i("update:value",a)}return l((()=>d.value),(e=>{e&&v(e)?n.value=m(e).valueOf():n.value=null}),{immediate:!0}),(a,t)=>(r(),u(o(p),{type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:n.value,"onUpdate:value":c},null,8,["type","clearable","valueFormat","placeholder","value"]))}}),[["__file","Date.vue"]]);export{d as default};
@@ -0,0 +1,118 @@
1
+ import { PropType } from 'vue';
2
+ declare type ITypeDate = 'date' | 'datetime';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ type: {
5
+ type: PropType<ITypeDate>;
6
+ default: string;
7
+ };
8
+ filterExplicit: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ clearable: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ valueFormat: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ startPlaceholder: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ endPlaceholder: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ value: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ }, {
33
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
34
+ type: {
35
+ type: PropType<ITypeDate>;
36
+ default: string;
37
+ };
38
+ filterExplicit: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ clearable: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ valueFormat: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ startPlaceholder: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ endPlaceholder: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ value: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ }>> & {
63
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
64
+ }>>;
65
+ emit: (event: "update:value", ...args: any[]) => void;
66
+ dateList: import("vue").Ref<any[]>;
67
+ isShow: import("vue").Ref<boolean>;
68
+ radioValue: import("vue").Ref<string>;
69
+ startDate: import("vue").Ref<any>;
70
+ endDate: import("vue").Ref<any>;
71
+ dateFormat: import("vue").ComputedRef<string>;
72
+ showTabStr: import("vue").ComputedRef<string>;
73
+ initData: () => void;
74
+ handleRadioClick: (value: string) => void;
75
+ handleChange: (val: any, type: 'start' | 'end') => void;
76
+ NDatePicker: any;
77
+ NButton: any;
78
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
79
+ type: {
80
+ type: PropType<ITypeDate>;
81
+ default: string;
82
+ };
83
+ filterExplicit: {
84
+ type: NumberConstructor;
85
+ default: number;
86
+ };
87
+ clearable: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ valueFormat: {
92
+ type: StringConstructor;
93
+ default: string;
94
+ };
95
+ startPlaceholder: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ endPlaceholder: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ value: {
104
+ type: StringConstructor;
105
+ default: string;
106
+ };
107
+ }>> & {
108
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
109
+ }, {
110
+ type: ITypeDate;
111
+ value: string;
112
+ filterExplicit: number;
113
+ clearable: boolean;
114
+ startPlaceholder: string;
115
+ endPlaceholder: string;
116
+ valueFormat: string;
117
+ }>;
118
+ export default _default;
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as v,renderList as i,normalizeClass as d,toDisplayString as o,createCommentVNode as s,createVNode as n,unref as c,withCtx as p,createTextVNode as m,createElementVNode as f}from"vue";import{NButton as y,NDatePicker as h}from"naive-ui";import g from"moment";import{isString as b}from"lodash-es";import{getAllDateRangeInfo as k}from"../helpers/presetValToTimestamp.js";import Y from"../../../../../../_virtual/plugin-vue_export-helper.js";const F={class:"render-widget-date-range"},_={key:0,class:"radio-date-group"},D=["onClick"],M={key:1,class:"date-detail-range"},S=f("span",{class:"divider"},null,-1);var w=Y(e({__name:"DateRange",props:{type:{type:String,default:"date"},filterExplicit:{type:Number,default:1},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},startPlaceholder:{type:String,default:"起始"},endPlaceholder:{type:String,default:"截止"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:f}){const Y=e,w=a([]),x=a(!0),P=a(""),C=a(),j=a(),E=l((()=>{let e="";switch(Y.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>{let e="";switch(Y.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e}));function O(e,a){switch(a){case"start":C.value=e;break;case"end":j.value=e}const l=C.value?g(C.value).format(E.value):null,t=j.value?g(j.value).format(E.value):null;f("update:value",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}return t((()=>Y.value),(e=>{if(e&&b(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(C.value=g(a.trim()).valueOf()),void(l.trim()&&(j.value=g(l.trim()).valueOf()))}C.value=j.value=null,P.value=""}),{immediate:!0}),function(){const e=k(E.value);w.value=e}(),(a,l)=>(u(),r("div",F,[0===e.filterExplicit?(u(),r(v,{key:0},[x.value?s("v-if",!0):(u(),r("div",_,[(u(!0),r(v,null,i(w.value,(e=>(u(),r("span",{key:e.value,class:d(["radio-date-item",P.value===e.value?"radio-date-item-active":""]),onClick:a=>{return l=e.value,P.value===l?P.value="":P.value=l,void(P.value&&f("update:value",P.value));var l}},o(e.label),11,D)))),128))])),n(c(y),{secondary:"",class:d(x.value?"select-date-right":"select-date-left"),onClick:l[0]||(l[0]=e=>x.value=!x.value)},{default:p((()=>[m(o(c(H)),1)])),_:1},8,["class"])],64)):s("v-if",!0),x.value?(u(),r("div",M,[n(c(h),{type:e.type,"default-time":"00:00:00",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.startPlaceholder,value:C.value,"onUpdate:value":l[1]||(l[1]=e=>O(e,"start"))},null,8,["type","clearable","valueFormat","placeholder","value"]),S,n(c(h),{type:e.type,"default-time":"23:59:59",clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.endPlaceholder,value:j.value,"onUpdate:value":l[2]||(l[2]=e=>O(e,"end"))},null,8,["type","clearable","valueFormat","placeholder","value"])])):s("v-if",!0)]))}}),[["__file","DateRange.vue"]]);export{w as default};
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,watch as u,openBlock as r,createBlock as a,unref as t,withCtx as n,createVNode as i,createElementVNode as o}from"vue";import{NInputGroup as p,NInputNumber as d}from"naive-ui";import{isString as v}from"lodash-es";import m from"../../../../../../_virtual/plugin-vue_export-helper.js";const s=o("span",{class:"divider"}," ~ ",-1);var c=m(e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:o}){const m=e,c=l(),f=l();function h(e,l){var u,r;let a="";switch(l){case"startNumber":a=`${e} ~ ${null!=(u=f.value)?u:""}`;break;case"endNumber":a=`${null!=(r=c.value)?r:""} ~ ${e}`}o("update:value",a)}return u((()=>m.value),(e=>{if(e&&v(e)&&e.includes("~")){const[l,u]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(u.trim()&&(f.value=Number(u.trim())))}c.value=f.value=null}),{immediate:!0}),(l,u)=>(r(),a(t(p),{class:"render-widget-input-number-group"},{default:n((()=>[i(t(d),{placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":u[0]||(u[0]=e=>h(e,"startNumber"))},null,8,["placeholder","value"]),s,i(t(d),{placeholder:e.endPlaceholder,value:f.value,"onUpdate:value":u[1]||(u[1]=e=>h(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}}),[["__file","InputNumberGroup.vue"]]);export{c as default};
1
+ import{defineComponent as e,ref as l,watch as u,openBlock as r,createBlock as t,unref as a,withCtx as n,createVNode as i,createElementVNode as o}from"vue";import{NInputGroup as p,NInputNumber as d}from"naive-ui";import{isString as m}from"lodash-es";import s from"../../../../../../_virtual/plugin-vue_export-helper.js";const v=o("span",{class:"divider"}," ~ ",-1);var c=s(e({__name:"InputNumberGroup",props:{startPlaceholder:{type:String,default:"请输入"},endPlaceholder:{type:String,default:"请输入"},value:{type:String,default:""}},emits:["update:value"],setup(e,{emit:o}){const s=e,c=l(),f=l();function h(e,l){var u,r;let t="";switch(l){case"startNumber":t=`${null!=e?e:""} ~ ${null!=(u=f.value)?u:""}`;break;case"endNumber":t=`${null!=(r=c.value)?r:""} ~ ${null!=e?e:""}`}const a=t.split(" ~ ").some((e=>e.trim()));o("update:value",a?t:"")}return u((()=>s.value),(e=>{if(c.value=f.value=null,e&&m(e)&&e.includes("~")){const[l,u]=e.split("~");return l.trim()&&(c.value=Number(l.trim())),void(u.trim()&&(f.value=Number(u.trim())))}}),{immediate:!0}),(l,u)=>(r(),t(a(p),{class:"render-widget-input-number-group"},{default:n((()=>[i(a(d),{placeholder:e.startPlaceholder,value:c.value,"onUpdate:value":u[0]||(u[0]=e=>h(e,"startNumber"))},null,8,["placeholder","value"]),v,i(a(d),{placeholder:e.endPlaceholder,value:f.value,"onUpdate:value":u[1]||(u[1]=e=>h(e,"endNumber"))},null,8,["placeholder","value"])])),_:1}))}}),[["__file","InputNumberGroup.vue"]]);export{c as default};
@@ -27,7 +27,6 @@ declare const _default: import("vue").DefineComponent<{
27
27
  isRemote: import("vue").Ref<boolean>;
28
28
  isLoading: import("vue").Ref<boolean>;
29
29
  valueCp: import("vue").WritableComputedRef<any>;
30
- maxTagCount: import("vue").ComputedRef<"responsive" | undefined>;
31
30
  searchOptions: (keyword: string) => Promise<any>;
32
31
  _handleSearch: (query: string) => Promise<void>;
33
32
  handleSearch: (query: string) => Promise<void>;
@@ -1 +1 @@
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
+ 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 d}from"@vueuse/core";import f from"../../../hooks/useMixins.js";import v from"../../../../../../_virtual/plugin-vue_export-helper.js";var m=v(e({__name:"Select",props:{value:{type:[Array,String,Number]},filterApiConfig:{type:Object}},emits:["update:value","changeInitState"],setup(e,{emit:v}){const m=e,{handleGetConfigApi:y}=f(),g=a(),h=t([]),b=t(!1),w=t(!1),I=n({set(e){v("update:value",e)},get:()=>m.value});async function S(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 A=d((async e=>{await async function(e){const{manualMapping:a}=g;if(!a){const a=e.trim();await S(a)}}(e)}),300);async function C(){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 S(""))}function O(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 _({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 C(),!i){if(e)return v("update:value",a),void v("changeInitState",n,!0);if(t)switch(t){case"FIRST":{const e=h.value[0];v("update:value",[e.value]),v("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,options:h.value,remote:b.value,"render-label":O,"render-tag":_,onSearch:o(A),onClear:C}),null,16,["value","loading","options","remote","onSearch"]))}}),[["__file","Select.vue"]]);export{m as default};
@@ -1,4 +1,5 @@
1
1
  import CheckboxGroup from './CheckboxGroup.vue';
2
2
  import InputNumberGroup from './InputNumberGroup.vue';
3
3
  import Date from './Date.vue';
4
- export { CheckboxGroup, InputNumberGroup, Date };
4
+ import DateRange from './DateRange.vue';
5
+ export { CheckboxGroup, InputNumberGroup, Date, DateRange };
@@ -1 +1 @@
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";
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";export{default as DateRange}from"./DateRange.vue.js";
@@ -15,3 +15,20 @@ export declare const DatePresetValEnums: {
15
15
  MONTH_START: string;
16
16
  MONTH_END: string;
17
17
  };
18
+ export declare const DateRangeValEnums: {
19
+ TODAY: string;
20
+ TOMORROW: string;
21
+ YESTERDAY: string;
22
+ THIS_WEEK: string;
23
+ NEXT_WEEK: string;
24
+ PREV_WEEK: string;
25
+ THIS_MONTH: string;
26
+ NEXT_MONTH: string;
27
+ PREV_MONTH: string;
28
+ THIS_QUATER: string;
29
+ NEXT_QUATER: string;
30
+ PREV_QUATER: string;
31
+ THIS_YEAR: string;
32
+ NEXT_YEAR: string;
33
+ PREV_YEAR: string;
34
+ };
@@ -1 +1 @@
1
- const T={CUSTOM:"CUSTOM",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",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END"};export{T as DatePresetValEnums};
1
+ const T={CUSTOM:"CUSTOM",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",WEEK_START:"THIS_WEEK_START",WEEK_END:"THIS_WEEK_END",MONTH_START:"THIS_MONTH_START",MONTH_END:"THIS_MONTH_END"},E={TODAY:"TODAY",TOMORROW:"TOMORROW",YESTERDAY:"YESTERDAY",THIS_WEEK:"THIS_WEEK",NEXT_WEEK:"NEXT_WEEK",PREV_WEEK:"PREV_WEEK",THIS_MONTH:"THIS_MONTH",NEXT_MONTH:"NEXT_MONTH",PREV_MONTH:"PREV_MONTH",THIS_QUATER:"THIS_QUATER",NEXT_QUATER:"NEXT_QUATER",PREV_QUATER:"PREV_QUATER",THIS_YEAR:"THIS_YEAR",NEXT_YEAR:"NEXT_YEAR",PREV_YEAR:"PREV_YEAR"};export{T as DatePresetValEnums,E as DateRangeValEnums};
@@ -1 +1,6 @@
1
1
  export declare const presetValToTimestamp: (presetVal: string, format?: string) => any;
2
+ export declare const getAllDateRangeInfo: (format?: string) => {
3
+ label: string;
4
+ value: string | number | never[];
5
+ }[];
6
+ export declare const formatDateRangeInfo: (key: string, format?: string) => string | number | never[];
@@ -1 +1 @@
1
- import{DatePresetValEnums as t}from"../enums.js";import a from"moment";const O=new Map([[t.NOW,()=>a()],[t.TODAY,()=>a().startOf("day")],[t.TODAY_START,()=>a().startOf("day")],[t.TODAY_END,()=>a().endOf("day")],[t.TOMORROW,()=>a().add(1,"days").startOf("day")],[t.TOMORROW_START,()=>a().add(1,"days").startOf("day")],[t.TOMORROW_END,()=>a().add(1,"days").endOf("day")],[t.YESTERDAY,()=>a().subtract(1,"days").startOf("day")],[t.YESTERDAY_START,()=>a().subtract(1,"days").startOf("day")],[t.YESTERDAY_END,()=>a().subtract(1,"days").endOf("day")],[t.WEEK_START,()=>a().startOf("week")],[t.WEEK_END,()=>a().endOf("week")],[t.MONTH_START,()=>a().startOf("month")],[t.MONTH_END,()=>a().endOf("month")]]),d=(t,a="x")=>{if(!O.has(t))return;const d=O.get(t)().format(a);return"x"===a||"X"===a?Number(d):d};export{d as presetValToTimestamp};
1
+ import{DatePresetValEnums as t,DateRangeValEnums as a}from"../enums.js";import{DateRangeOptions as r}from"../basicData.js";import d from"moment";const e=new Map([[t.NOW,()=>d()],[t.TODAY,()=>d().startOf("day")],[t.TODAY_START,()=>d().startOf("day")],[t.TODAY_END,()=>d().endOf("day")],[t.TOMORROW,()=>d().add(1,"days").startOf("day")],[t.TOMORROW_START,()=>d().add(1,"days").startOf("day")],[t.TOMORROW_END,()=>d().add(1,"days").endOf("day")],[t.YESTERDAY,()=>d().subtract(1,"days").startOf("day")],[t.YESTERDAY_START,()=>d().subtract(1,"days").startOf("day")],[t.YESTERDAY_END,()=>d().subtract(1,"days").endOf("day")],[t.WEEK_START,()=>d().startOf("week")],[t.WEEK_END,()=>d().endOf("week")],[t.MONTH_START,()=>d().startOf("month")],[t.MONTH_END,()=>d().endOf("month")]]),O=(t,a="x")=>{if(!e.has(t))return;const r=e.get(t)().format(a);return"x"===a||"X"===a?Number(r):r},s=new Map([[a.TODAY,()=>[d().startOf("day"),d().endOf("day")]],[a.TOMORROW,()=>[d().add(1,"days").startOf("day"),d().add(1,"days").endOf("day")]],[a.YESTERDAY,()=>[d().subtract(1,"days").startOf("day"),d().subtract(1,"days").endOf("day")]],[a.THIS_WEEK,()=>[d().startOf("week"),d().endOf("week")]],[a.NEXT_WEEK,()=>[d().add(1,"w").startOf("week"),d().add(1,"w").endOf("week")]],[a.PREV_WEEK,()=>[d().subtract(1,"w").startOf("week"),d().subtract(1,"w").endOf("week")]],[a.THIS_MONTH,()=>[d().startOf("month"),d().endOf("month")]],[a.NEXT_MONTH,()=>[d().add(1,"months").startOf("month"),d().add(1,"months").endOf("month")]],[a.PREV_MONTH,()=>[d().subtract(1,"months").startOf("month"),d().subtract(1,"months").endOf("month")]],[a.THIS_QUATER,()=>[d().startOf("quarter"),d().endOf("quarter")]],[a.NEXT_QUATER,()=>[d().add(1,"Q").startOf("quarter"),d().add(1,"Q").endOf("quarter")]],[a.PREV_QUATER,()=>[d().subtract(1,"Q").startOf("quarter"),d().subtract(1,"Q").endOf("quarter")]],[a.THIS_YEAR,()=>[d().startOf("year"),d().endOf("year")]],[a.NEXT_YEAR,()=>[d().add(1,"y").startOf("year"),d().add(1,"y").endOf("year")]],[a.PREV_YEAR,()=>[d().subtract(1,"y").startOf("year"),d().subtract(1,"y").endOf("year")]]]),f=(t="x")=>r.map((a=>{const r=n(a.value,t);return{label:a.label,value:r}})),n=(t,a="x")=>{const r=s.get(t);if(r){const[t,d]=r(),e=`${t.format(a)} ~ ${d.format(a)}`;return"x"===a||"X"===a?Number(e):e}return[]};export{n as formatDateRangeInfo,f as getAllDateRangeInfo,O as presetValToTimestamp};
@@ -1 +1 @@
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};
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){const{widgetType:t,widgetCfg:r,filterExplicit:n}=e;if(a.includes(t))return;const l=i.SELECT===t&&r.multiple?"200px":"100%";return{width:0===n?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:l}},initComponentProps(e){const{_frontId:t,widgetType:i,alias:n,title:a,placeholder:l,widgetCfg:s,rangeFilter:o,filterExplicit:p}=e,{props:h,handlerProps:d}=r.get(i);let u={...h};d&&(u=d(u,{...s,title:n||a,rangeFilter:o,_frontId:t,filterExplicit:p})),!o&&l&&(u.placeholder=l),this.initialProps=u,u.value&&(this.valueCp=u.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},p=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),...p})},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};
@@ -5,6 +5,7 @@ export declare const WidgetCfgMaps: Map<string, {
5
5
  clearable: boolean;
6
6
  filterable?: undefined;
7
7
  multiple?: undefined;
8
+ maxTagCount?: undefined;
8
9
  type?: undefined;
9
10
  valueFormat?: undefined;
10
11
  };
@@ -44,7 +45,6 @@ export declare const WidgetCfgMaps: Map<string, {
44
45
  isRemote: import("vue").Ref<boolean>;
45
46
  isLoading: import("vue").Ref<boolean>;
46
47
  valueCp: import("vue").WritableComputedRef<any>;
47
- maxTagCount: import("vue").ComputedRef<"responsive" | undefined>;
48
48
  searchOptions: (keyword: string) => Promise<any>;
49
49
  _handleSearch: (query: string) => Promise<void>;
50
50
  handleSearch: (query: string) => Promise<void>;
@@ -72,6 +72,7 @@ export declare const WidgetCfgMaps: Map<string, {
72
72
  clearable: boolean;
73
73
  filterable: boolean;
74
74
  multiple: boolean;
75
+ maxTagCount: string;
75
76
  type?: undefined;
76
77
  valueFormat?: undefined;
77
78
  };
@@ -85,7 +86,7 @@ export declare const WidgetCfgMaps: Map<string, {
85
86
  } | {
86
87
  component: import("vue").DefineComponent<{
87
88
  type: {
88
- type: import("vue").PropType<"year" | "month" | "quarter" | "date" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
89
+ type: import("vue").PropType<"date" | "datetime">;
89
90
  default: string;
90
91
  };
91
92
  clearable: {
@@ -96,11 +97,54 @@ export declare const WidgetCfgMaps: Map<string, {
96
97
  type: StringConstructor;
97
98
  default: string;
98
99
  };
99
- startPlaceholder: {
100
+ placeholder: {
100
101
  type: StringConstructor;
101
102
  default: string;
102
103
  };
103
- endPlaceholder: {
104
+ value: {
105
+ type: StringConstructor;
106
+ default: string;
107
+ };
108
+ }, {
109
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
110
+ type: {
111
+ type: import("vue").PropType<"date" | "datetime">;
112
+ default: string;
113
+ };
114
+ clearable: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ valueFormat: {
119
+ type: StringConstructor;
120
+ default: string;
121
+ };
122
+ placeholder: {
123
+ type: StringConstructor;
124
+ default: string;
125
+ };
126
+ value: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ }>> & {
131
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
132
+ }>>;
133
+ emit: (event: "update:value", ...args: any[]) => void;
134
+ valueCp: import("vue").Ref<any>;
135
+ dateFormat: import("vue").ComputedRef<string>;
136
+ handleChange: (val: any) => void;
137
+ NDatePicker: any;
138
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
139
+ type: {
140
+ type: import("vue").PropType<"date" | "datetime">;
141
+ default: string;
142
+ };
143
+ clearable: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
147
+ valueFormat: {
104
148
  type: StringConstructor;
105
149
  default: string;
106
150
  };
@@ -112,12 +156,67 @@ export declare const WidgetCfgMaps: Map<string, {
112
156
  type: StringConstructor;
113
157
  default: string;
114
158
  };
159
+ }>> & {
160
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
161
+ }, {
162
+ type: "date" | "datetime";
163
+ value: string;
164
+ placeholder: string;
165
+ clearable: boolean;
166
+ valueFormat: string;
167
+ }>;
168
+ props: {
169
+ type: string;
170
+ clearable: boolean;
171
+ valueFormat: string;
172
+ filterable?: undefined;
173
+ multiple?: undefined;
174
+ maxTagCount?: undefined;
175
+ };
176
+ handlerProps(props: any, data?: any): any;
177
+ setDefaultValue(defaultValue: any, defValueUnit: any): any;
178
+ eventsBySearch?: undefined;
179
+ style?: undefined;
180
+ } | {
181
+ component: import("vue").DefineComponent<{
182
+ type: {
183
+ type: import("vue").PropType<"date" | "datetime">;
184
+ default: string;
185
+ };
186
+ filterExplicit: {
187
+ type: NumberConstructor;
188
+ default: number;
189
+ };
190
+ clearable: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
194
+ valueFormat: {
195
+ type: StringConstructor;
196
+ default: string;
197
+ };
198
+ startPlaceholder: {
199
+ type: StringConstructor;
200
+ default: string;
201
+ };
202
+ endPlaceholder: {
203
+ type: StringConstructor;
204
+ default: string;
205
+ };
206
+ value: {
207
+ type: StringConstructor;
208
+ default: string;
209
+ };
115
210
  }, {
116
211
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
117
212
  type: {
118
- type: import("vue").PropType<"year" | "month" | "quarter" | "date" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
213
+ type: import("vue").PropType<"date" | "datetime">;
119
214
  default: string;
120
215
  };
216
+ filterExplicit: {
217
+ type: NumberConstructor;
218
+ default: number;
219
+ };
121
220
  clearable: {
122
221
  type: BooleanConstructor;
123
222
  default: boolean;
@@ -134,10 +233,6 @@ export declare const WidgetCfgMaps: Map<string, {
134
233
  type: StringConstructor;
135
234
  default: string;
136
235
  };
137
- placeholder: {
138
- type: StringConstructor;
139
- default: string;
140
- };
141
236
  value: {
142
237
  type: StringConstructor;
143
238
  default: string;
@@ -146,14 +241,27 @@ export declare const WidgetCfgMaps: Map<string, {
146
241
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
147
242
  }>>;
148
243
  emit: (event: "update:value", ...args: any[]) => void;
149
- valueCp: import("vue").Ref<any>;
150
- handleChange: (val: any) => false | undefined;
244
+ dateList: import("vue").Ref<any[]>;
245
+ isShow: import("vue").Ref<boolean>;
246
+ radioValue: import("vue").Ref<string>;
247
+ startDate: import("vue").Ref<any>;
248
+ endDate: import("vue").Ref<any>;
249
+ dateFormat: import("vue").ComputedRef<string>;
250
+ showTabStr: import("vue").ComputedRef<string>;
251
+ initData: () => void;
252
+ handleRadioClick: (value: string) => void;
253
+ handleChange: (val: any, type: "end" | "start") => void;
151
254
  NDatePicker: any;
255
+ NButton: any;
152
256
  }, 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
257
  type: {
154
- type: import("vue").PropType<"year" | "month" | "quarter" | "date" | "datetime" | "datetimerange" | "daterange" | "monthrange">;
258
+ type: import("vue").PropType<"date" | "datetime">;
155
259
  default: string;
156
260
  };
261
+ filterExplicit: {
262
+ type: NumberConstructor;
263
+ default: number;
264
+ };
157
265
  clearable: {
158
266
  type: BooleanConstructor;
159
267
  default: boolean;
@@ -170,10 +278,6 @@ export declare const WidgetCfgMaps: Map<string, {
170
278
  type: StringConstructor;
171
279
  default: string;
172
280
  };
173
- placeholder: {
174
- type: StringConstructor;
175
- default: string;
176
- };
177
281
  value: {
178
282
  type: StringConstructor;
179
283
  default: string;
@@ -181,9 +285,9 @@ export declare const WidgetCfgMaps: Map<string, {
181
285
  }>> & {
182
286
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
183
287
  }, {
184
- type: "year" | "month" | "quarter" | "date" | "datetime" | "datetimerange" | "daterange" | "monthrange";
288
+ type: "date" | "datetime";
185
289
  value: string;
186
- placeholder: string;
290
+ filterExplicit: number;
187
291
  clearable: boolean;
188
292
  startPlaceholder: string;
189
293
  endPlaceholder: string;
@@ -195,9 +299,10 @@ export declare const WidgetCfgMaps: Map<string, {
195
299
  valueFormat: string;
196
300
  filterable?: undefined;
197
301
  multiple?: undefined;
302
+ maxTagCount?: undefined;
198
303
  };
199
304
  handlerProps(props: any, data?: any): any;
200
- setDefaultValue(defaultValue: any, defValueUnit: any): any;
305
+ setDefaultValue: (defaultValue: any) => any;
201
306
  eventsBySearch?: undefined;
202
307
  style?: undefined;
203
308
  } | {
@@ -306,6 +411,7 @@ export declare const WidgetCfgMaps: Map<string, {
306
411
  clearable?: undefined;
307
412
  filterable?: undefined;
308
413
  multiple?: undefined;
414
+ maxTagCount?: undefined;
309
415
  type?: undefined;
310
416
  valueFormat?: undefined;
311
417
  };
@@ -1 +1 @@
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};
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 o from"./components/InputNumberGroup.vue.js";import n from"./components/Date.vue.js";import p from"./components/DateRange.vue.js";import s from"./components/Select.vue.js";import{presetValToTimestamp as m}from"./helpers/presetValToTimestamp.js";const i=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:i}],[e.INPUTNUMBER_RANGE,{component:o,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,startPlaceholder:`起始${t}`,endPlaceholder:`截止${t}`}),setDefaultValue:i}],[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:i}],[e.SELECT,{component:s,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,t,l){const{multiple:a}=l;a&&t()}}],handlerProps(e,t={}){const{valueList:l,multiple:a,title:r,manualMapping:o,dynamicOptionInfo:n,defaultValue:p,defValueUnit:s,_frontId:m,isInit:i}=t,u={...e,placeholder:`请选择${r}`,manualMapping:o,dynamicOptionInfo:n,valueList:l,defValue:p,defValueUnit:s,_frontId:m,isInit:i};return a&&(u.multiple=!0),u},setDefaultValue:i}],[e.DATE,{component:n,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?m(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATE_RANGE,{component:p,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l,filterExplicit:a}=t;return{...e,filterExplicit:a,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:i}],[e.DATE_TIME,{component:n,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?m(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE,{component:p,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l,filterExplicit:a}=t;return{...e,filterExplicit:a,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:i}],[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:i}]]);export{u as WidgetCfgMaps};
@@ -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 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
+ 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 E,T,v=u;p?(E=u===t.SELECT&&s===e.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],T=null==r?void 0:r.unit):u===t.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(v="CHECKBOX_GROUP"),d&&(u===t.INPUT_NUMBER&&(v="INPUTNUMBER_RANGE"),u===t.DATE&&(v="DATE_RANGE"),u===t.DATE_TIME&&(v="DATETIME_RANGE"));const g={isRender:!0,isInit:!1,widgetType:v,valueList:null==(a=null==o?void 0:o.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:E,defValueUnit:T,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:g,rangeFilter:d}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return n!==t.SELECT&&n!==t.CHECKBOX_GROUP||!l.multiple?i[0]:i},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{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};
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,t.DATE_RANGE,t.DATETIME_RANGE];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._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};
@@ -21,7 +21,9 @@ export declare const WidgetTypeEnums: {
21
21
  DATE: string;
22
22
  DATE_TIME: string;
23
23
  CHECKBOX_GROUP: string;
24
- INPUTNUMBER_GROUP: string;
24
+ INPUTNUMBER_RANGE: string;
25
+ DATE_RANGE: string;
26
+ DATETIME_RANGE: string;
25
27
  };
26
28
  export declare const WidgetOptionEnums: {
27
29
  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",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
+ 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_RANGE:"INPUTNUMBER_RANGE",DATE_RANGE:"DATE_RANGE",DATETIME_RANGE:"DATETIME_RANGE"},R={RADIO:"SELECT_SINGLE",MULTIPLE:"SELECT_MULTIPLE",ALL:"DATETIME_WHOLE",SELECT_TIME:"DATETIME_SELECT",PAST_TIME:"DATETIME_PAST",FUTURE_TIME:"DATETIME_FUTURE"},N={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"},S={NULL:"NULL",EQUAL:"EQ"};export{S as ConditionEnums,E as DataTypeEnums,T as FieldTypeEnums,A as MappingMethodEnums,R as WidgetOptionEnums,_ as WidgetTypeEnums,N as WidgetValEnums};