cnhis-design-vue 3.1.44-beta.0 → 3.1.44-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/base-search/index.d.ts +1 -0
- package/es/components/base-search/src/index.vue.d.ts +1 -0
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/classification/index.d.ts +6 -2
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +6 -2
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -2
- package/es/components/classification/src/index.vue.d.ts +6 -2
- package/es/components/fabric-chart/index.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBottom.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +3 -3
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCommon.d.ts +2 -4
- package/es/components/fabric-chart/src/hooks/useCommon.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useRight.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useTop.js +1 -1
- package/es/components/fabric-chart/src/utils/utils.d.ts +2 -0
- package/es/components/fabric-chart/src/utils/utils.js +1 -1
- package/es/components/form-config/index.d.ts +5 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +5 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -0
- package/es/components/form-render/src/components/renderer/combination.d.ts +10 -1
- package/es/components/form-render/src/components/renderer/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +2 -0
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-select-label/index.d.ts +15 -4
- package/es/components/iho-select-label/src/LabelFormContent.vue.d.ts +5 -2
- package/es/components/iho-select-label/src/SelectLabel.vue.d.ts +10 -2
- package/es/components/iho-select-label/src/SelectLabel.vue.js +1 -1
- package/es/components/iho-select-label/src/components/label-classify.vue.d.ts +5 -2
- package/es/components/iho-select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/iho-select-label/style/index.css +1 -1
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +1 -0
- package/es/components/quick-search/src/index.vue.d.ts +1 -0
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/search-cascader/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +6 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +6 -2
- package/es/components/table-filter/src/components/render-widget/basicData.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +39 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/{DateRange.vue.d.ts → DateRangeInner.vue.d.ts} +42 -15
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +141 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Label.vue.d.ts +70 -0
- package/es/components/table-filter/src/components/render-widget/components/Label.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectLabel.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +5 -2
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +28 -7
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +377 -16
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/directive/resize.d.ts +4 -0
- package/es/components/table-filter/src/directive/resize.js +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/resizeSensor.d.ts +16 -0
- package/es/components/table-filter/src/tool/resizeSensor.js +1 -0
- package/es/components/table-filter/src/types/enums.d.ts +6 -2
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +14 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +0 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import CheckboxGroup from './CheckboxGroup.vue';
|
|
2
2
|
import InputNumberGroup from './InputNumberGroup.vue';
|
|
3
3
|
import Date from './Date.vue';
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import DateRangeInner from './DateRangeInner.vue';
|
|
5
|
+
import DateRangeOut from './DateRangeOut.vue';
|
|
6
|
+
import Label from './Label.vue';
|
|
7
|
+
import SelectLabel from './SelectLabel.vue';
|
|
8
|
+
export { CheckboxGroup, InputNumberGroup, Date, DateRangeInner, DateRangeOut, Label, SelectLabel };
|
|
@@ -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";export{default as
|
|
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 DateRangeInner}from"./DateRangeInner.vue.js";export{default as DateRangeOut}from"./DateRangeOut.vue.js";export{default as Label}from"./Label.vue.js";export{default as SelectLabel}from"./SelectLabel.vue.js";
|
|
@@ -15,20 +15,41 @@ export declare const DatePresetValEnums: {
|
|
|
15
15
|
MONTH_START: string;
|
|
16
16
|
MONTH_END: string;
|
|
17
17
|
};
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const DateRangeInnerValEnums: {
|
|
19
19
|
TODAY: string;
|
|
20
20
|
TOMORROW: string;
|
|
21
21
|
YESTERDAY: string;
|
|
22
22
|
THIS_WEEK: string;
|
|
23
23
|
NEXT_WEEK: string;
|
|
24
|
-
|
|
24
|
+
LAST_WEEK: string;
|
|
25
25
|
THIS_MONTH: string;
|
|
26
|
+
LAST_MONTH: string;
|
|
26
27
|
NEXT_MONTH: string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
PREV_QUATER: string;
|
|
28
|
+
THIS_QUARTER: string;
|
|
29
|
+
LAST_QUARTER: string;
|
|
30
|
+
NEXT_QUARTER: string;
|
|
31
31
|
THIS_YEAR: string;
|
|
32
|
+
LAST_YEAR: string;
|
|
32
33
|
NEXT_YEAR: string;
|
|
33
|
-
|
|
34
|
+
};
|
|
35
|
+
export declare const DateRangeOutDefEnums: {
|
|
36
|
+
PAST_WEEK: string;
|
|
37
|
+
PAST_MONTH: string;
|
|
38
|
+
PAST_HALF_YEAR: string;
|
|
39
|
+
TODAY: string;
|
|
40
|
+
TOMORROW: string;
|
|
41
|
+
YESTERDAY: string;
|
|
42
|
+
THIS_WEEK: string;
|
|
43
|
+
NEXT_WEEK: string;
|
|
44
|
+
LAST_WEEK: string;
|
|
45
|
+
THIS_MONTH: string;
|
|
46
|
+
LAST_MONTH: string;
|
|
47
|
+
NEXT_MONTH: string;
|
|
48
|
+
THIS_QUARTER: string;
|
|
49
|
+
LAST_QUARTER: string;
|
|
50
|
+
NEXT_QUARTER: string;
|
|
51
|
+
THIS_YEAR: string;
|
|
52
|
+
LAST_YEAR: string;
|
|
53
|
+
NEXT_YEAR: string;
|
|
54
|
+
CUSTOM: string;
|
|
34
55
|
};
|
|
@@ -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"},E={TODAY:"TODAY",TOMORROW:"TOMORROW",YESTERDAY:"YESTERDAY",THIS_WEEK:"THIS_WEEK",NEXT_WEEK:"NEXT_WEEK",
|
|
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",LAST_WEEK:"LAST_WEEK",THIS_MONTH:"THIS_MONTH",LAST_MONTH:"LAST_MONTH",NEXT_MONTH:"NEXT_MONTH",THIS_QUARTER:"THIS_QUARTER",LAST_QUARTER:"LAST_QUARTER",NEXT_QUARTER:"NEXT_QUARTER",THIS_YEAR:"THIS_YEAR",LAST_YEAR:"LAST_YEAR",NEXT_YEAR:"NEXT_YEAR"},A={CUSTOM:"CUSTOM",...E,PAST_WEEK:"PAST_WEEK",PAST_MONTH:"PAST_MONTH",PAST_HALF_YEAR:"PAST_HALF_YEAR"};export{T as DatePresetValEnums,E as DateRangeInnerValEnums,A as DateRangeOutDefEnums};
|
package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare const getAllDateRangeInfo: (format?: string) => {
|
|
|
4
4
|
value: string | number | never[];
|
|
5
5
|
}[];
|
|
6
6
|
export declare const formatDateRangeInfo: (key: string, format?: string) => string | number | never[];
|
|
7
|
+
export declare const presetValToDateRangestr: (presetVal: string, format?: string) => string | null;
|
package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{DateRangeOutDefEnums as t,DatePresetValEnums as a,DateRangeInnerValEnums as r}from"../enums.js";import{DateRangeOptions as d}from"../basicData.js";import e from"moment";const O=new Map([[a.NOW,()=>e()],[a.TODAY,()=>e().startOf("day")],[a.TODAY_START,()=>e().startOf("day")],[a.TODAY_END,()=>e().endOf("day")],[a.TOMORROW,()=>e().add(1,"days").startOf("day")],[a.TOMORROW_START,()=>e().add(1,"days").startOf("day")],[a.TOMORROW_END,()=>e().add(1,"days").endOf("day")],[a.YESTERDAY,()=>e().subtract(1,"days").startOf("day")],[a.YESTERDAY_START,()=>e().subtract(1,"days").startOf("day")],[a.YESTERDAY_END,()=>e().subtract(1,"days").endOf("day")],[a.WEEK_START,()=>e().startOf("week")],[a.WEEK_END,()=>e().endOf("week")],[a.MONTH_START,()=>e().startOf("month")],[a.MONTH_END,()=>e().endOf("month")]]),s=(t,a="x")=>{if(!O.has(t))return;const r=O.get(t)().format(a);return"x"===a||"X"===a?Number(r):r},f=new Map([[r.TODAY,()=>[e().startOf("day"),e().endOf("day")]],[r.TOMORROW,()=>[e().add(1,"days").startOf("day"),e().add(1,"days").endOf("day")]],[r.YESTERDAY,()=>[e().subtract(1,"days").startOf("day"),e().subtract(1,"days").endOf("day")]],[r.THIS_WEEK,()=>[e().startOf("week"),e().endOf("week")]],[r.NEXT_WEEK,()=>[e().add(1,"w").startOf("week"),e().add(1,"w").endOf("week")]],[r.LAST_WEEK,()=>[e().subtract(1,"w").startOf("week"),e().subtract(1,"w").endOf("week")]],[r.THIS_MONTH,()=>[e().startOf("month"),e().endOf("month")]],[r.NEXT_MONTH,()=>[e().add(1,"months").startOf("month"),e().add(1,"months").endOf("month")]],[r.LAST_MONTH,()=>[e().subtract(1,"months").startOf("month"),e().subtract(1,"months").endOf("month")]],[r.THIS_QUARTER,()=>[e().startOf("quarter"),e().endOf("quarter")]],[r.NEXT_QUARTER,()=>[e().add(1,"Q").startOf("quarter"),e().add(1,"Q").endOf("quarter")]],[r.LAST_QUARTER,()=>[e().subtract(1,"Q").startOf("quarter"),e().subtract(1,"Q").endOf("quarter")]],[r.THIS_YEAR,()=>[e().startOf("year"),e().endOf("year")]],[r.NEXT_YEAR,()=>[e().add(1,"y").startOf("year"),e().add(1,"y").endOf("year")]],[r.LAST_YEAR,()=>[e().subtract(1,"y").startOf("year"),e().subtract(1,"y").endOf("year")]]]),n=(t="x")=>d.map((a=>{const r=T(a.value,t);return{label:a.label,value:r}})),T=(t,a="x")=>{const r=f.get(t);if(r){const[t,d]=r(),e=`${t.format(a)} ~ ${d.format(a)}`;return"x"===a||"X"===a?Number(e):e}return[]},y=new Map([...f,[t.PAST_WEEK,()=>[e().subtract(1,"w").startOf("day"),e().endOf("day")]],[t.PAST_MONTH,()=>[e().subtract(1,"months").startOf("day"),e().endOf("day")]],[t.PAST_HALF_YEAR,()=>[e().subtract(6,"months").startOf("day"),e().endOf("day")]]]),u=(t,a="x")=>{if(!y.has(t))return null;const r=y.get(t);if(r){const[t,d]=r();return`${t.format(a)} ~ ${d.format(a)}`}return null};export{T as formatDateRangeInfo,n as getAllDateRangeInfo,u as presetValToDateRangestr,s 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
|
|
1
|
+
import{defineComponent as e,h as t}from"vue";import{WidgetTypeEnums as i}from"../../types/enums.js";import{WidgetCfgMaps as n}from"./widgetCfgMaps.js";import r from"../../../../../_virtual/plugin-vue_export-helper.js";const a=[i.DATE,i.DATE_TIME,i.CHECKBOX_GROUP];var l=r(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:n,filterExplicit:r}=e;if(a.includes(t))return;const l=i.SELECT!==t&&i.SELECTLABEL!==t||!n.multiple?"100%":"200px";return{width:0===r?"100%":e.advanceColWidth?`${e.advanceColWidth}px`:l}},initComponentProps(e){const{_frontId:t,widgetType:i,alias:r,title:a,placeholder:l,widgetCfg:o,filterExplicit:s}=e,{props:p,handlerProps:h}=n.get(i);let d={...p};h&&(d=h(d,{...o,title:r||a,_frontId:t,filterExplicit:s})),l&&(d.placeholder=l),this.initialProps=d,d.value&&(this.valueCp=d.value)},generateWidget(e){const{widgetType:i}=e;if(!n.has(i))return null;const{value:r}=e,{component:a,style:l,eventsBySearch:o=[]}=n.get(i),s={...this.initialProps,value:r,componentCfg:e,filterApiConfig:this.filterApiConfig},p=o.reduce(((e,t)=>{const{name:i,handler:n}=t;let r=this.search;return n&&(r=e=>{n(e,this.search,s)}),{...e,[`on${i}`]:r}}),{});return t(a,{...l,...s,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};
|
|
@@ -134,7 +134,45 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
134
134
|
valueCp: import("vue").Ref<any>;
|
|
135
135
|
dateFormat: import("vue").ComputedRef<string>;
|
|
136
136
|
handleChange: (val: any) => void;
|
|
137
|
-
|
|
137
|
+
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
138
|
+
updateUnchangedValue: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
};
|
|
141
|
+
onConfirm: {
|
|
142
|
+
type: FunctionConstructor;
|
|
143
|
+
};
|
|
144
|
+
}, {
|
|
145
|
+
attrs: {
|
|
146
|
+
[x: string]: unknown;
|
|
147
|
+
};
|
|
148
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
149
|
+
updateUnchangedValue: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
};
|
|
152
|
+
onConfirm: {
|
|
153
|
+
type: FunctionConstructor;
|
|
154
|
+
};
|
|
155
|
+
}>> & {}>>;
|
|
156
|
+
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
157
|
+
panelInstRef: import("vue").Ref<null>;
|
|
158
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
|
159
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
160
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
161
|
+
focus: () => any;
|
|
162
|
+
blur: () => any;
|
|
163
|
+
onUpdateShow: (show: boolean) => void;
|
|
164
|
+
onConfirm: (...args: any[]) => void;
|
|
165
|
+
NDatePicker: any;
|
|
166
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
167
|
+
updateUnchangedValue: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
};
|
|
170
|
+
onConfirm: {
|
|
171
|
+
type: FunctionConstructor;
|
|
172
|
+
};
|
|
173
|
+
}>>, {
|
|
174
|
+
updateUnchangedValue: boolean;
|
|
175
|
+
}>>;
|
|
138
176
|
}, 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
177
|
type: {
|
|
140
178
|
type: import("vue").PropType<"date" | "datetime">;
|
|
@@ -183,10 +221,6 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
183
221
|
type: import("vue").PropType<"date" | "datetime">;
|
|
184
222
|
default: string;
|
|
185
223
|
};
|
|
186
|
-
filterExplicit: {
|
|
187
|
-
type: NumberConstructor;
|
|
188
|
-
default: number;
|
|
189
|
-
};
|
|
190
224
|
clearable: {
|
|
191
225
|
type: BooleanConstructor;
|
|
192
226
|
default: boolean;
|
|
@@ -213,10 +247,6 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
213
247
|
type: import("vue").PropType<"date" | "datetime">;
|
|
214
248
|
default: string;
|
|
215
249
|
};
|
|
216
|
-
filterExplicit: {
|
|
217
|
-
type: NumberConstructor;
|
|
218
|
-
default: number;
|
|
219
|
-
};
|
|
220
250
|
clearable: {
|
|
221
251
|
type: BooleanConstructor;
|
|
222
252
|
default: boolean;
|
|
@@ -242,7 +272,7 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
242
272
|
}>>;
|
|
243
273
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
244
274
|
dateList: import("vue").Ref<any[]>;
|
|
245
|
-
|
|
275
|
+
isShowDateRange: import("vue").Ref<boolean>;
|
|
246
276
|
radioValue: import("vue").Ref<string>;
|
|
247
277
|
startDate: import("vue").Ref<any>;
|
|
248
278
|
endDate: import("vue").Ref<any>;
|
|
@@ -251,17 +281,53 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
251
281
|
initData: () => void;
|
|
252
282
|
handleRadioClick: (value: string) => void;
|
|
253
283
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
254
|
-
|
|
284
|
+
isStartDateDisabled: (ts: number) => boolean;
|
|
285
|
+
isEndDateDisabled: (ts: number) => boolean;
|
|
255
286
|
NButton: any;
|
|
287
|
+
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
288
|
+
updateUnchangedValue: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
};
|
|
291
|
+
onConfirm: {
|
|
292
|
+
type: FunctionConstructor;
|
|
293
|
+
};
|
|
294
|
+
}, {
|
|
295
|
+
attrs: {
|
|
296
|
+
[x: string]: unknown;
|
|
297
|
+
};
|
|
298
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
299
|
+
updateUnchangedValue: {
|
|
300
|
+
type: BooleanConstructor;
|
|
301
|
+
};
|
|
302
|
+
onConfirm: {
|
|
303
|
+
type: FunctionConstructor;
|
|
304
|
+
};
|
|
305
|
+
}>> & {}>>;
|
|
306
|
+
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
307
|
+
panelInstRef: import("vue").Ref<null>;
|
|
308
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
|
309
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
310
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
311
|
+
focus: () => any;
|
|
312
|
+
blur: () => any;
|
|
313
|
+
onUpdateShow: (show: boolean) => void;
|
|
314
|
+
onConfirm: (...args: any[]) => void;
|
|
315
|
+
NDatePicker: any;
|
|
316
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
317
|
+
updateUnchangedValue: {
|
|
318
|
+
type: BooleanConstructor;
|
|
319
|
+
};
|
|
320
|
+
onConfirm: {
|
|
321
|
+
type: FunctionConstructor;
|
|
322
|
+
};
|
|
323
|
+
}>>, {
|
|
324
|
+
updateUnchangedValue: boolean;
|
|
325
|
+
}>>;
|
|
256
326
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
257
327
|
type: {
|
|
258
328
|
type: import("vue").PropType<"date" | "datetime">;
|
|
259
329
|
default: string;
|
|
260
330
|
};
|
|
261
|
-
filterExplicit: {
|
|
262
|
-
type: NumberConstructor;
|
|
263
|
-
default: number;
|
|
264
|
-
};
|
|
265
331
|
clearable: {
|
|
266
332
|
type: BooleanConstructor;
|
|
267
333
|
default: boolean;
|
|
@@ -287,7 +353,6 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
287
353
|
}, {
|
|
288
354
|
type: "date" | "datetime";
|
|
289
355
|
value: string;
|
|
290
|
-
filterExplicit: number;
|
|
291
356
|
clearable: boolean;
|
|
292
357
|
startPlaceholder: string;
|
|
293
358
|
endPlaceholder: string;
|
|
@@ -305,6 +370,157 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
305
370
|
setDefaultValue: (defaultValue: any) => any;
|
|
306
371
|
eventsBySearch?: undefined;
|
|
307
372
|
style?: undefined;
|
|
373
|
+
} | {
|
|
374
|
+
component: import("vue").DefineComponent<{
|
|
375
|
+
type: {
|
|
376
|
+
type: import("vue").PropType<"datetimerange" | "daterange">;
|
|
377
|
+
default: string;
|
|
378
|
+
};
|
|
379
|
+
clearable: {
|
|
380
|
+
type: BooleanConstructor;
|
|
381
|
+
default: boolean;
|
|
382
|
+
};
|
|
383
|
+
startPlaceholder: {
|
|
384
|
+
type: StringConstructor;
|
|
385
|
+
default: string;
|
|
386
|
+
};
|
|
387
|
+
endPlaceholder: {
|
|
388
|
+
type: StringConstructor;
|
|
389
|
+
default: string;
|
|
390
|
+
};
|
|
391
|
+
componentCfg: {
|
|
392
|
+
type: ObjectConstructor;
|
|
393
|
+
default: () => {};
|
|
394
|
+
};
|
|
395
|
+
value: {
|
|
396
|
+
type: StringConstructor;
|
|
397
|
+
default: string;
|
|
398
|
+
};
|
|
399
|
+
}, {
|
|
400
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
401
|
+
type: {
|
|
402
|
+
type: import("vue").PropType<"datetimerange" | "daterange">;
|
|
403
|
+
default: string;
|
|
404
|
+
};
|
|
405
|
+
clearable: {
|
|
406
|
+
type: BooleanConstructor;
|
|
407
|
+
default: boolean;
|
|
408
|
+
};
|
|
409
|
+
startPlaceholder: {
|
|
410
|
+
type: StringConstructor;
|
|
411
|
+
default: string;
|
|
412
|
+
};
|
|
413
|
+
endPlaceholder: {
|
|
414
|
+
type: StringConstructor;
|
|
415
|
+
default: string;
|
|
416
|
+
};
|
|
417
|
+
componentCfg: {
|
|
418
|
+
type: ObjectConstructor;
|
|
419
|
+
default: () => {};
|
|
420
|
+
};
|
|
421
|
+
value: {
|
|
422
|
+
type: StringConstructor;
|
|
423
|
+
default: string;
|
|
424
|
+
};
|
|
425
|
+
}>> & {
|
|
426
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
427
|
+
}>>;
|
|
428
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
429
|
+
valueCp: import("vue").Ref<any>;
|
|
430
|
+
dateFormat: import("vue").ComputedRef<string>;
|
|
431
|
+
rangeShortcuts: {
|
|
432
|
+
今天: number[];
|
|
433
|
+
昨天: number[];
|
|
434
|
+
近一周: number[];
|
|
435
|
+
近一月: number[];
|
|
436
|
+
};
|
|
437
|
+
handleChange: (val: any) => void;
|
|
438
|
+
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
439
|
+
updateUnchangedValue: {
|
|
440
|
+
type: BooleanConstructor;
|
|
441
|
+
};
|
|
442
|
+
onConfirm: {
|
|
443
|
+
type: FunctionConstructor;
|
|
444
|
+
};
|
|
445
|
+
}, {
|
|
446
|
+
attrs: {
|
|
447
|
+
[x: string]: unknown;
|
|
448
|
+
};
|
|
449
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
450
|
+
updateUnchangedValue: {
|
|
451
|
+
type: BooleanConstructor;
|
|
452
|
+
};
|
|
453
|
+
onConfirm: {
|
|
454
|
+
type: FunctionConstructor;
|
|
455
|
+
};
|
|
456
|
+
}>> & {}>>;
|
|
457
|
+
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
458
|
+
panelInstRef: import("vue").Ref<null>;
|
|
459
|
+
isDateTime: import("vue").ComputedRef<boolean>;
|
|
460
|
+
formatRef: import("vue").ComputedRef<string>;
|
|
461
|
+
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
462
|
+
focus: () => any;
|
|
463
|
+
blur: () => any;
|
|
464
|
+
onUpdateShow: (show: boolean) => void;
|
|
465
|
+
onConfirm: (...args: any[]) => void;
|
|
466
|
+
NDatePicker: any;
|
|
467
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
468
|
+
updateUnchangedValue: {
|
|
469
|
+
type: BooleanConstructor;
|
|
470
|
+
};
|
|
471
|
+
onConfirm: {
|
|
472
|
+
type: FunctionConstructor;
|
|
473
|
+
};
|
|
474
|
+
}>>, {
|
|
475
|
+
updateUnchangedValue: boolean;
|
|
476
|
+
}>>;
|
|
477
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
478
|
+
type: {
|
|
479
|
+
type: import("vue").PropType<"datetimerange" | "daterange">;
|
|
480
|
+
default: string;
|
|
481
|
+
};
|
|
482
|
+
clearable: {
|
|
483
|
+
type: BooleanConstructor;
|
|
484
|
+
default: boolean;
|
|
485
|
+
};
|
|
486
|
+
startPlaceholder: {
|
|
487
|
+
type: StringConstructor;
|
|
488
|
+
default: string;
|
|
489
|
+
};
|
|
490
|
+
endPlaceholder: {
|
|
491
|
+
type: StringConstructor;
|
|
492
|
+
default: string;
|
|
493
|
+
};
|
|
494
|
+
componentCfg: {
|
|
495
|
+
type: ObjectConstructor;
|
|
496
|
+
default: () => {};
|
|
497
|
+
};
|
|
498
|
+
value: {
|
|
499
|
+
type: StringConstructor;
|
|
500
|
+
default: string;
|
|
501
|
+
};
|
|
502
|
+
}>> & {
|
|
503
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
504
|
+
}, {
|
|
505
|
+
type: "datetimerange" | "daterange";
|
|
506
|
+
value: string;
|
|
507
|
+
clearable: boolean;
|
|
508
|
+
startPlaceholder: string;
|
|
509
|
+
endPlaceholder: string;
|
|
510
|
+
componentCfg: Record<string, any>;
|
|
511
|
+
}>;
|
|
512
|
+
props: {
|
|
513
|
+
type: string;
|
|
514
|
+
clearable: boolean;
|
|
515
|
+
valueFormat: string;
|
|
516
|
+
filterable?: undefined;
|
|
517
|
+
multiple?: undefined;
|
|
518
|
+
maxTagCount?: undefined;
|
|
519
|
+
};
|
|
520
|
+
handlerProps(props: any, data?: any): any;
|
|
521
|
+
setDefaultValue(defaultValue: any, defValueUnit: any): any;
|
|
522
|
+
eventsBySearch?: undefined;
|
|
523
|
+
style?: undefined;
|
|
308
524
|
} | {
|
|
309
525
|
component: import("vue").DefineComponent<{
|
|
310
526
|
options: {
|
|
@@ -421,4 +637,149 @@ export declare const WidgetCfgMaps: Map<string, {
|
|
|
421
637
|
handlerProps(props: any, { valueList, multiple }?: any): any;
|
|
422
638
|
setDefaultValue: (defaultValue: any) => any;
|
|
423
639
|
eventsBySearch?: undefined;
|
|
640
|
+
} | {
|
|
641
|
+
component: import("vue").DefineComponent<{
|
|
642
|
+
componentCfg: {
|
|
643
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
644
|
+
};
|
|
645
|
+
value: {
|
|
646
|
+
type: StringConstructor;
|
|
647
|
+
default: string;
|
|
648
|
+
};
|
|
649
|
+
filterApiConfig: {
|
|
650
|
+
type: ObjectConstructor;
|
|
651
|
+
};
|
|
652
|
+
}, {
|
|
653
|
+
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
654
|
+
baseActiveColor: string;
|
|
655
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
656
|
+
componentCfg: {
|
|
657
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
658
|
+
};
|
|
659
|
+
value: {
|
|
660
|
+
type: StringConstructor;
|
|
661
|
+
default: string;
|
|
662
|
+
};
|
|
663
|
+
filterApiConfig: {
|
|
664
|
+
type: ObjectConstructor;
|
|
665
|
+
};
|
|
666
|
+
}>> & {
|
|
667
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
668
|
+
}>>;
|
|
669
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
670
|
+
selectedList: import("vue").Ref<string[]>;
|
|
671
|
+
tagList: import("vue").Ref<never[]>;
|
|
672
|
+
categoryList: import("vue").ComputedRef<import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType[]>;
|
|
673
|
+
onResize: (el: HTMLElement, categoryItem: import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
|
|
674
|
+
handleLabelUpfold: (categoryItem: import("../../../../../../es/components/table-filter/src/types").IFilterCategoryLabelItemType) => void;
|
|
675
|
+
formatStyle: (item: import("../../../../../../es/components/table-filter/src/types").IhoFilterTabLabelItemType) => {
|
|
676
|
+
background: string;
|
|
677
|
+
borderColor: string;
|
|
678
|
+
} | {
|
|
679
|
+
background?: undefined;
|
|
680
|
+
borderColor?: undefined;
|
|
681
|
+
};
|
|
682
|
+
handleLabelChange: (isSelect: boolean, item: import("../../../../../../es/components/table-filter/src/types").IhoFilterTabLabelItemType) => void;
|
|
683
|
+
initTagList: () => Promise<void>;
|
|
684
|
+
NTag: any;
|
|
685
|
+
NTooltip: any;
|
|
686
|
+
NIcon: any;
|
|
687
|
+
ChevronUpCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
688
|
+
ChevronDownCircleOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
689
|
+
vResize: {
|
|
690
|
+
mounted(el: any, binding: any): void;
|
|
691
|
+
};
|
|
692
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
693
|
+
componentCfg: {
|
|
694
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
695
|
+
};
|
|
696
|
+
value: {
|
|
697
|
+
type: StringConstructor;
|
|
698
|
+
default: string;
|
|
699
|
+
};
|
|
700
|
+
filterApiConfig: {
|
|
701
|
+
type: ObjectConstructor;
|
|
702
|
+
};
|
|
703
|
+
}>> & {
|
|
704
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
705
|
+
}, {
|
|
706
|
+
value: string;
|
|
707
|
+
}>;
|
|
708
|
+
props: {
|
|
709
|
+
clearable?: undefined;
|
|
710
|
+
filterable?: undefined;
|
|
711
|
+
multiple?: undefined;
|
|
712
|
+
maxTagCount?: undefined;
|
|
713
|
+
type?: undefined;
|
|
714
|
+
valueFormat?: undefined;
|
|
715
|
+
};
|
|
716
|
+
handlerProps(props: any): any;
|
|
717
|
+
setDefaultValue(defaultValue: any): any;
|
|
718
|
+
eventsBySearch?: undefined;
|
|
719
|
+
style?: undefined;
|
|
720
|
+
} | {
|
|
721
|
+
component: import("vue").DefineComponent<{
|
|
722
|
+
componentCfg: {
|
|
723
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
724
|
+
};
|
|
725
|
+
value: {
|
|
726
|
+
type: StringConstructor;
|
|
727
|
+
default: string;
|
|
728
|
+
};
|
|
729
|
+
filterApiConfig: {
|
|
730
|
+
type: ObjectConstructor;
|
|
731
|
+
};
|
|
732
|
+
}, {
|
|
733
|
+
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
734
|
+
$attrs: {
|
|
735
|
+
[x: string]: unknown;
|
|
736
|
+
};
|
|
737
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
738
|
+
componentCfg: {
|
|
739
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
740
|
+
};
|
|
741
|
+
value: {
|
|
742
|
+
type: StringConstructor;
|
|
743
|
+
default: string;
|
|
744
|
+
};
|
|
745
|
+
filterApiConfig: {
|
|
746
|
+
type: ObjectConstructor;
|
|
747
|
+
};
|
|
748
|
+
}>> & {
|
|
749
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
750
|
+
}>>;
|
|
751
|
+
emit: (event: "update:value", ...args: any[]) => void;
|
|
752
|
+
tagList: import("vue").Ref<never[]>;
|
|
753
|
+
valueCp: import("vue").WritableComputedRef<string[]>;
|
|
754
|
+
optionList: import("vue").ComputedRef<import("naive-ui").SelectOption[]>;
|
|
755
|
+
initTagList: () => Promise<void>;
|
|
756
|
+
NSelect: any;
|
|
757
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
758
|
+
componentCfg: {
|
|
759
|
+
type: import("vue").PropType<import("../../../../../../es/components/table-filter/src/types").ISearchType>;
|
|
760
|
+
};
|
|
761
|
+
value: {
|
|
762
|
+
type: StringConstructor;
|
|
763
|
+
default: string;
|
|
764
|
+
};
|
|
765
|
+
filterApiConfig: {
|
|
766
|
+
type: ObjectConstructor;
|
|
767
|
+
};
|
|
768
|
+
}>> & {
|
|
769
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
770
|
+
}, {
|
|
771
|
+
value: string;
|
|
772
|
+
}>;
|
|
773
|
+
props: {
|
|
774
|
+
clearable: boolean;
|
|
775
|
+
filterable: boolean;
|
|
776
|
+
multiple: boolean;
|
|
777
|
+
maxTagCount: string;
|
|
778
|
+
type?: undefined;
|
|
779
|
+
valueFormat?: undefined;
|
|
780
|
+
};
|
|
781
|
+
handlerProps(props: any, data?: any): any;
|
|
782
|
+
setDefaultValue(defaultValue: any): any;
|
|
783
|
+
eventsBySearch?: undefined;
|
|
784
|
+
style?: undefined;
|
|
424
785
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as t}from"./enums.js";import{NInputNumber as
|
|
1
|
+
import{WidgetTypeEnums as e}from"../../types/enums.js";import{DatePresetValEnums as t,DateRangeOutDefEnums as l}from"./enums.js";import{NInputNumber as r,NInput as a}from"naive-ui";import o from"./components/CheckboxGroup.vue.js";import n from"./components/InputNumberGroup.vue.js";import p from"./components/Date.vue.js";import s from"./components/DateRangeInner.vue.js";import i from"./components/DateRangeOut.vue.js";import m from"./components/Label.vue.js";import u from"./components/SelectLabel.vue.js";import c from"./components/Select.vue.js";import{presetValToTimestamp as d,presetValToDateRangestr as y}from"./helpers/presetValToTimestamp.js";const f=e=>null==e?null:e,h=new Map([[e.INPUT_NUMBER,{component:r,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t}={})=>({...e,placeholder:`输入${t}`}),setDefaultValue:f}],[e.INPUTNUMBER_RANGE,{component:n,props:{clearable:!0},eventsBySearch:[{name:"keydown",handler(e,t){"Enter"===e.key&&t()}}],handlerProps:(e,{title:t,filterExplicit:l}={})=>({...e,startPlaceholder:1===l?`起始${t}`:"最小值",endPlaceholder:1===l?`截止${t}`:"最大值"}),setDefaultValue:f}],[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:f}],[e.SELECT,{component:c,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},eventsBySearch:[{name:"change",handler(e,t,l){const{multiple:r}=l;r&&t()}}],handlerProps(e,t={}){const{valueList:l,multiple:r,title:a,manualMapping:o,dynamicOptionInfo:n,defaultValue:p,defValueUnit:s,_frontId:i,isInit:m}=t,u={...e,placeholder:`请选择${a}`,manualMapping:o,dynamicOptionInfo:n,valueList:l,defValue:p,defValueUnit:s,_frontId:i,isInit:m};return r&&(u.multiple=!0),u},setDefaultValue:f}],[e.DATE,{component:p,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l}=t;return{...e,placeholder:`请选择${l}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?d(l,"YYYY-MM-DD"):e}],[e.DATE_RANGE_INNER,{component:s,props:{type:"date",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l,filterExplicit:r}=t;return{...e,filterExplicit:r,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:f}],[e.DATE_RANGE_OUT,{component:i,props:{type:"daterange",clearable:!0,valueFormat:"yyyy-MM-dd"},handlerProps(e,t={}){const{title:l,filterExplicit:r}=t;return{...e,filterExplicit:r,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:(e,t)=>t&&t!==l.CUSTOM?y(t,"YYYY-MM-DD"):e}],[e.DATE_TIME,{component:p,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l}=t;return{...e,placeholder:`请选择${l}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?d(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.DATETIME_RANGE_INNER,{component:s,props:{type:"datetime",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l,filterExplicit:r}=t;return{...e,filterExplicit:r,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:f}],[e.DATETIME_RANGE_OUT,{component:i,props:{type:"datetimerange",clearable:!0,valueFormat:"yyyy-MM-dd HH:mm:ss"},handlerProps(e,t={}){const{title:l,filterExplicit:r}=t;return{...e,filterExplicit:r,startPlaceholder:`起始${l}`,endPlaceholder:`截止${l}`}},setDefaultValue:(e,l)=>l&&l!==t.CUSTOM?y(l,"YYYY-MM-DD HH:mm:ss"):e}],[e.CHECKBOX_GROUP,{component:o,props:{},style:{"line-height":"32px"},handlerProps(e,{valueList:t,multiple:l}={}){const r={...e,multiple:l};return Array.isArray(t)&&(r.options=t.map((({value:e,label:t})=>({value:e,label:t})))),r},setDefaultValue:f}],[e.LABEL,{component:m,props:{},handlerProps:e=>({...e}),setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}],[e.SELECTLABEL,{component:u,props:{clearable:!0,filterable:!0,multiple:!1,maxTagCount:"responsive"},handlerProps(e,t={}){const{multiple:l,title:r}=t,a={...e,placeholder:`请选择${r}`};return l&&(a.multiple=!0),a},setDefaultValue:e=>e&&Array.isArray(e)?e.join("|#|"):e}]]);export{h as WidgetCfgMaps};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"../tool/resizeSensor.js";import{useDebounceFn as e}from"@vueuse/core";const r={mounted(r,t){const s=t.value,m=e(s,10);new o(r,m)}};export{r as default};
|
|
@@ -18,6 +18,7 @@ export default function useAdvanced(): {
|
|
|
18
18
|
multiple: boolean;
|
|
19
19
|
manualMapping: boolean | null | undefined;
|
|
20
20
|
dynamicOptionInfo: import("../../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
|
|
21
|
+
classifyStr: string | undefined;
|
|
21
22
|
};
|
|
22
23
|
rangeFilter: boolean | undefined;
|
|
23
24
|
title: string;
|
|
@@ -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:
|
|
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:E,rangeFilter:p}=i,d={},T={title:(c=i).title,alias:c.customTitle,isShowSearch:c.isShowSearch?1:0,filterExplicit:c.filterExplicit?1:0,explicitRequired:c.explicitRequired?1:0,advanceOptionSetting:c.optionType?l[c.optionType]:"",placeholder:c.remark,advanceColWidth:c.width};var c;let f,m,v=u;E?(f=u===t.SELECT&&s===e.MULTIPLE?null==r?void 0:r.valueList:null==(n=null==r?void 0:r.valueList)?void 0:n[0],m=null==r?void 0:r.unit,u===t.LABEL&&(v="SELECTLABEL",f=null==r?void 0:r.valueList)):u===t.SELECT&&(null==o?void 0:o.list)&&(null==o?void 0:o.list.length)<10&&(v="CHECKBOX_GROUP"),p&&(u===t.INPUT_NUMBER&&(v="INPUTNUMBER_RANGE"),u===t.DATE&&(v=E?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),u===t.DATE_TIME&&(v=E?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER"));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:f,defValueUnit:m,multiple:s===e.MULTIPLE||v===t.SELECTLABEL,manualMapping:null==o?void 0:o.manualMapping,dynamicOptionInfo:null==o?void 0:o.dynamicOptionInfo,classifyStr:null==r?void 0:r.classifyStr};return{...T,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:g,rangeFilter:p}}))},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 i={},n=[t.SELECT];return e&&e.length>0&&e.forEach((e=>{const t=e.field_key,l=n.includes(e.widgetType)||e.value&&e.value.length>1?e.value:e.value.toString();i[t]=l})),i}}}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as t}from"../components/render-widget/enums.js";import{WidgetTypeEnums as
|
|
1
|
+
import{WidgetCfgMaps as e}from"../components/render-widget/widgetCfgMaps.js";import{DatePresetValEnums as n,DateRangeOutDefEnums as t}from"../components/render-widget/enums.js";import{WidgetTypeEnums as r}from"../types/enums.js";const i=[r.CHECKBOX_GROUP,r.DATE_RANGE_INNER,r.DATETIME_RANGE_INNER,r.LABEL];function u(){function u(e){var n;return null==(n=e.widgetCfg)?void 0:n.isRender}function o(n){const{widgetType:t,defaultValue:r,defValueUnit:i}=n.widgetCfg||{},u=e.get(t);let o;if(u){const{setDefaultValue:e}=u;e&&(o=e(r,i))}return o}return{isRender:u,getDefValByRenderWidget:o,initRenderWidgetCfg:function(e){const n=u(e);if(!n)return n;const{widgetType:t}=e.widgetCfg||{};return e._frontId||(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",i.includes(t)&&(e._isBlock=!0),e.value=o(e),n},getRenderSearchConObj:function(e){if(!u(e))return null;const{columnName:i,con:o,value:d,widgetType:l}=e;let s=null;const f=[r.DATE,r.DATE_TIME],x=[r.DATE_RANGE_OUT,r.DATE_RANGE_INNER,r.DATETIME_RANGE_OUT,r.DATETIME_RANGE_INNER];f.includes(l)&&(s=n.CUSTOM),x.includes(l)&&(s=t.CUSTOM);const a=Array.isArray(d)?d:d?[d]:[];return{widgetType:l,field_key:i,con:o,value:a.length>0?a:null,unit:s}},getDefValByRenderConObj:function(e,n){if(!u(n))return null;const{widgetType:t,multiple:i}=n.widgetCfg||{},{value:o}=e;return t!==r.SELECT&&t!==r.CHECKBOX_GROUP||!i?Array.isArray(o)?o[0]:o:Array.isArray(o)?o:o?[o]:[]},isExistDefValByRenderWidget:function(e){const{defaultValue:n,defValueUnit:t}=e.widgetCfg||{};return!(!n&&!t)},resetRenderWidgetValue:function(e){const n=u(e);return n?(e.value=null,n):n}}}export{u as default};
|