cnhis-design-vue 3.1.52-release.4 → 3.1.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/body-select/index.d.ts +14 -4
- package/es/components/body-select/src/config/index.js +1 -1
- package/es/components/body-select/src/hooks/renderCanvas.d.ts +1 -1
- package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
- package/es/components/body-select/src/index.vue.d.ts +14 -4
- package/es/components/body-select/src/index.vue2.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/classification/index.d.ts +16 -12
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +16 -12
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +16 -12
- package/es/components/classification/src/index.vue.d.ts +16 -12
- package/es/components/classification/style/index.css +1 -1
- package/es/components/date-picker/index.d.ts +5 -5
- package/es/components/date-picker/src/DatePicker.vue.d.ts +7 -5
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/form-config/index.d.ts +108 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +108 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +36 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +12 -0
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +5 -5
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +5 -5
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +3 -1
- package/es/components/quick-search/src/index.vue.d.ts +3 -1
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +12 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -10
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +6 -5
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -10
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -12
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +5 -5
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +20 -20
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +20 -20
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +2 -0
- package/es/shared/utils/business.d.ts +1 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
|
@@ -60,7 +60,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
60
60
|
type: FunctionConstructor;
|
|
61
61
|
};
|
|
62
62
|
formattedValue: {
|
|
63
|
-
type:
|
|
63
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
64
64
|
};
|
|
65
65
|
placeholder: {
|
|
66
66
|
type: StringConstructor;
|
|
@@ -80,7 +80,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
80
80
|
type: FunctionConstructor;
|
|
81
81
|
};
|
|
82
82
|
formattedValue: {
|
|
83
|
-
type:
|
|
83
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
84
84
|
};
|
|
85
85
|
placeholder: {
|
|
86
86
|
type: StringConstructor;
|
|
@@ -95,7 +95,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
95
95
|
datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
|
|
96
96
|
panelInstRef: import("vue").Ref<null>;
|
|
97
97
|
placeholderRef: import("vue").Ref<any>;
|
|
98
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
98
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
99
99
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
100
100
|
formatRef: import("vue").ComputedRef<string>;
|
|
101
101
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -104,7 +104,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
104
104
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
105
105
|
onUpdateShow: (show: boolean) => void;
|
|
106
106
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
107
|
-
isAllowedInvalidValue: (value
|
|
107
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
108
108
|
NDatePicker: any;
|
|
109
109
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
110
110
|
updateUnchangedValue: {
|
|
@@ -114,7 +114,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
114
114
|
type: FunctionConstructor;
|
|
115
115
|
};
|
|
116
116
|
formattedValue: {
|
|
117
|
-
type:
|
|
117
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
118
118
|
};
|
|
119
119
|
placeholder: {
|
|
120
120
|
type: StringConstructor;
|
|
@@ -687,7 +687,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
687
687
|
type: FunctionConstructor;
|
|
688
688
|
};
|
|
689
689
|
formattedValue: {
|
|
690
|
-
type:
|
|
690
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
691
691
|
};
|
|
692
692
|
placeholder: {
|
|
693
693
|
type: StringConstructor;
|
|
@@ -707,7 +707,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
707
707
|
type: FunctionConstructor;
|
|
708
708
|
};
|
|
709
709
|
formattedValue: {
|
|
710
|
-
type:
|
|
710
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
711
711
|
};
|
|
712
712
|
placeholder: {
|
|
713
713
|
type: StringConstructor;
|
|
@@ -722,7 +722,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
722
722
|
datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
|
|
723
723
|
panelInstRef: import("vue").Ref<null>;
|
|
724
724
|
placeholderRef: import("vue").Ref<any>;
|
|
725
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
725
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
726
726
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
727
727
|
formatRef: import("vue").ComputedRef<string>;
|
|
728
728
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -731,7 +731,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
731
731
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
732
732
|
onUpdateShow: (show: boolean) => void;
|
|
733
733
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
734
|
-
isAllowedInvalidValue: (value
|
|
734
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
735
735
|
NDatePicker: any;
|
|
736
736
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
737
737
|
updateUnchangedValue: {
|
|
@@ -741,7 +741,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
741
741
|
type: FunctionConstructor;
|
|
742
742
|
};
|
|
743
743
|
formattedValue: {
|
|
744
|
-
type:
|
|
744
|
+
type: import("vue").PropType<(string | [string, string]) | null | undefined>;
|
|
745
745
|
};
|
|
746
746
|
placeholder: {
|
|
747
747
|
type: StringConstructor;
|
package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export declare const useDisplayCategory: (selectedDisplayCategory: Ref, { condit
|
|
|
11
11
|
showAdd: boolean;
|
|
12
12
|
};
|
|
13
13
|
isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
|
|
14
|
-
editDisplayCategory: (
|
|
14
|
+
editDisplayCategory: (item: ICategoryItemType, cb?: any) => void;
|
|
15
15
|
handleDisplayCategorySelect: (item: ICategoryItemType) => void;
|
|
16
16
|
handleDisplayCategoryRemove: (index: number, item: ICategoryItemType) => void;
|
|
17
|
-
handleDisplayCategoryAdd: (
|
|
17
|
+
handleDisplayCategoryAdd: (cb?: any) => void;
|
|
18
18
|
handlerBlur: () => void;
|
|
19
19
|
initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
|
|
20
20
|
};
|
package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reactive as
|
|
1
|
+
import{reactive as a,computed as e}from"vue";const i=(i,{conditionList:l},s)=>{const d=a({displayCategories:[],displayCategoryOriginLen:0,showAdd:!1,addDisplayCategory:""}),t=e((()=>d.displayCategories.length===d.displayCategoryOriginLen));return{State:d,isEnableAddDisplayCategory:t,editDisplayCategory:(a,e)=>{a.disabled=!1,e&&e()},handleDisplayCategorySelect:a=>{a.disabled&&(i.value===a.value?i.value="":i.value=a.value)},handleDisplayCategoryRemove:(a,e)=>{if(!l||!l.length)return void d.displayCategories.splice(a,1);const i=l.filter((a=>a.displayCategory==e.value));i&&i.length?s.error("该分类下有已有数据,请删除该分类下的筛选集后重试!"):d.displayCategories.splice(a,1)},handleDisplayCategoryAdd:a=>{d.showAdd=!0,a&&a()},handlerBlur:()=>{d.showAdd=!1,d.addDisplayCategory&&(d.displayCategories.push({disabled:!0,value:d.addDisplayCategory}),i.value=d.addDisplayCategory,d.addDisplayCategory="")},initDisplayCategories:(a,e)=>{const l=[];a.forEach((a=>{"未分类"!==a&&l.push({disabled:!0,value:a})})),d.displayCategories=l,d.displayCategoryOriginLen=d.displayCategories.length,i.value=e}}};export{i as useDisplayCategory};
|
|
@@ -76,6 +76,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
}[];
|
|
77
77
|
};
|
|
78
78
|
loading: import("vue").Ref<boolean>;
|
|
79
|
+
parentInputRef: import("vue").Ref<any>;
|
|
80
|
+
parentInputAddRef: import("vue").Ref<any>;
|
|
79
81
|
DisplayCategoryState: {
|
|
80
82
|
addDisplayCategory: string;
|
|
81
83
|
displayCategories: {
|
|
@@ -86,10 +88,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
86
88
|
showAdd: boolean;
|
|
87
89
|
};
|
|
88
90
|
isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
|
|
89
|
-
editDisplayCategory: (
|
|
91
|
+
editDisplayCategory: (item: ICategoryItemType, cb?: any) => void;
|
|
90
92
|
handleDisplayCategorySelect: (item: ICategoryItemType) => void;
|
|
91
93
|
handleDisplayCategoryRemove: (index: number, item: ICategoryItemType) => void;
|
|
92
|
-
handleDisplayCategoryAdd: (
|
|
94
|
+
handleDisplayCategoryAdd: (cb?: any) => void;
|
|
93
95
|
handlerBlur: () => void;
|
|
94
96
|
initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
|
|
95
97
|
FilterConditionsState: any;
|
|
@@ -101,6 +103,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
103
|
getParamCfg: (key: string) => any;
|
|
102
104
|
initFilterConditions: (tableId: string, rawConditions: import("../../../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
|
|
103
105
|
getRawFilterConditions: () => any[];
|
|
106
|
+
handleEditDisplayCategory: (item: ICategoryItemType) => void;
|
|
107
|
+
handleDisplayCategoryAddState: () => void;
|
|
104
108
|
findConditionByDisplayCategory: (sid: string) => unknown;
|
|
105
109
|
handleDisplayCategorySelectProxy: (item: ICategoryItemType) => void;
|
|
106
110
|
clearFormData: () => void;
|
|
@@ -223,7 +227,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
223
227
|
type: FunctionConstructor;
|
|
224
228
|
};
|
|
225
229
|
formattedValue: {
|
|
226
|
-
type:
|
|
230
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
227
231
|
};
|
|
228
232
|
placeholder: {
|
|
229
233
|
type: StringConstructor;
|
|
@@ -243,7 +247,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
247
|
type: FunctionConstructor;
|
|
244
248
|
};
|
|
245
249
|
formattedValue: {
|
|
246
|
-
type:
|
|
250
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
247
251
|
};
|
|
248
252
|
placeholder: {
|
|
249
253
|
type: StringConstructor;
|
|
@@ -258,7 +262,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
258
262
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
259
263
|
panelInstRef: import("vue").Ref<null>;
|
|
260
264
|
placeholderRef: import("vue").Ref<any>;
|
|
261
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
265
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
262
266
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
263
267
|
formatRef: import("vue").ComputedRef<string>;
|
|
264
268
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -267,7 +271,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
267
271
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
268
272
|
onUpdateShow: (show: boolean) => void;
|
|
269
273
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
270
|
-
isAllowedInvalidValue: (value
|
|
274
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
271
275
|
NDatePicker: any;
|
|
272
276
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
273
277
|
updateUnchangedValue: {
|
|
@@ -277,7 +281,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
277
281
|
type: FunctionConstructor;
|
|
278
282
|
};
|
|
279
283
|
formattedValue: {
|
|
280
|
-
type:
|
|
284
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
281
285
|
};
|
|
282
286
|
placeholder: {
|
|
283
287
|
type: StringConstructor;
|
|
@@ -850,7 +854,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
850
854
|
type: FunctionConstructor;
|
|
851
855
|
};
|
|
852
856
|
formattedValue: {
|
|
853
|
-
type:
|
|
857
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
854
858
|
};
|
|
855
859
|
placeholder: {
|
|
856
860
|
type: StringConstructor;
|
|
@@ -870,7 +874,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
870
874
|
type: FunctionConstructor;
|
|
871
875
|
};
|
|
872
876
|
formattedValue: {
|
|
873
|
-
type:
|
|
877
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
874
878
|
};
|
|
875
879
|
placeholder: {
|
|
876
880
|
type: StringConstructor;
|
|
@@ -885,7 +889,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
885
889
|
datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
|
|
886
890
|
panelInstRef: import("vue").Ref<null>;
|
|
887
891
|
placeholderRef: import("vue").Ref<any>;
|
|
888
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
892
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
889
893
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
890
894
|
formatRef: import("vue").ComputedRef<string>;
|
|
891
895
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -894,7 +898,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
894
898
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
895
899
|
onUpdateShow: (show: boolean) => void;
|
|
896
900
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
897
|
-
isAllowedInvalidValue: (value
|
|
901
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
898
902
|
NDatePicker: any;
|
|
899
903
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
900
904
|
updateUnchangedValue: {
|
|
@@ -904,7 +908,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
904
908
|
type: FunctionConstructor;
|
|
905
909
|
};
|
|
906
910
|
formattedValue: {
|
|
907
|
-
type:
|
|
911
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
908
912
|
};
|
|
909
913
|
placeholder: {
|
|
910
914
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,reactive as t,ref as i,provide as l,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as y,renderList as m,normalizeClass as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,reactive as t,ref as i,provide as l,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as y,renderList as m,normalizeClass as f,toDisplayString as v,createBlock as g,withDirectives as h,createTextVNode as C,vShow as k}from"vue";import{useMessage as b,NSpin as A,NInput as w,NIcon as L,NButton as _,NSelect as U,NTooltip as N}from"naive-ui";import{CloseOutline as I,AddOutline as V,AddCircleSharp as x}from"@vicons/ionicons5";import D from"./ValueCfg.vue.js";import{DataTypeEnums as S,ConditionEnums as B}from"../../types/enums.js";import{useDisplayCategory as j}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as z}from"./helpers/options.js";import{InjectionClassifyFilterList as O}from"../../constants/index.js";const R={class:"searchConditionByApi_wrapper"},P={class:"class-filter-content"},q={key:0,class:"item-name"},E=p("span",{class:"label"},"筛选分类名称:",-1),T={key:1,class:"quickSearch-content"},J=p("span",{class:"label"},"父类名称:",-1),K=["onClick"],M=["onDblclick"],Q={class:"s-content"},G={key:2,class:"item-name"},H=p("span",{class:"label"}," 过滤条件: ",-1),W=p("span",null,"添加",-1),X={class:"select-item-list"},Y={class:"index-span"},Z=["onClick"];var $=e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:$,emit:ee}){const ae=e,te=b(),ie={class:"classify-fieldkey-popover"},le=a(),ne=t({className:"",displayCategory:"",filterConditions:[]}),oe=i(!1),se=i(),de=i();l(O,n(ne,"filterConditions"));const{State:re,isEnableAddDisplayCategory:ce,editDisplayCategory:pe,handleDisplayCategorySelect:ue,handleDisplayCategoryRemove:ye,handleDisplayCategoryAdd:me,handlerBlur:fe,initDisplayCategories:ve}=j(n(ne,"displayCategory"),{conditionList:ae.conditionList},te),{State:ge,paramOptions:he,addFilterCondition:Ce,delFilterCondition:ke,updateKey:be,updateCondition:Ae,getParamCfg:we,initFilterConditions:Le,getRawFilterConditions:_e}=F(n(ne,"filterConditions"),ae.searchFieldList,S.API);function Ue(){me((()=>{setTimeout((()=>{de.value&&de.value.focus()}),100)}))}function Ne(){ne.className="",ne.displayCategory="",ne.filterConditions=[]}async function Ie(){var e;try{if(Ne(),oe.value=!0,ve(le.displayCategoryList,ae.actionList_prop.displayCategory||void 0),ae.actionList_prop){ne.className=ae.actionList_prop.name,await Le(ae.tableId,null!=(e=ae.actionList_prop.conObj)?e:[]);ne.filterConditions.length<1&&he.value&&he.value.length>0&&Ce()}}finally{oe.value=!1}}return Ie(),$({handleInitConditions:Ie,saveAdd:function(){new Promise((e=>{ne.className||!ae.showItemName?0!==ne.filterConditions.length?ne.filterConditions.some((({key:e,condition:a,value:t,presetVal:i})=>!e||!a||a===B.EQUAL&&!t&&!i))?te.warning("请补充完整条件内容"):e(!0):te.warning("请至少添加一个条件"):te.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===ae.actionList_prop.from&&(a=ae.actionList_prop.sid,e=null==ae?void 0:ae.conditionList.find((e=>e.sid===a)));const t={displayCategory:ne.displayCategory,name:ne.className||"",conObj:_e()},i={id:e?e.sid:"",tableId:ae.tableId,setting:JSON.stringify(t)};ee("saveAdd",i,!1)}))},cancelSaveAdd:function(){Ne(),ee("cancelSaveAdd")},addAction:Ce,checkActionList:function(){return ne.filterConditions.every((e=>!e.field_key))}}),(a,t)=>(o(),s("div",R,[d(r(A),{show:oe.value},{default:c((()=>[p("div",P,[e.showItemName?(o(),s("div",q,[E,d(r(w),{value:ne.className,"onUpdate:value":t[0]||(t[0]=e=>ne.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",T,[J,(o(!0),s(y,null,m(r(re).displayCategories,((e,a)=>(o(),s("div",{class:"parent-name",key:a,onClick:a=>function(e){ue(e)}(e)},[e.disabled?(o(),s("div",{key:0,class:f(["edit-tag",{"edit-tag-select":e.value===ne.displayCategory&&e.disabled}]),onDblclick:a=>function(e){e.disabled=!1,setTimeout((()=>{se.value.length>0&&se.value[0].focus()}),100)}(e)},[p("div",Q,v(e.value),1),d(r(L),{component:r(I),class:"anticon-close",size:"20",onClick:t=>r(ye)(a,e)},null,8,["component","onClick"])],42,M)):(o(),g(r(w),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:se,class:"parent-input",style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:20},null,8,["disabled","onBlur","value","onUpdate:value"]))],8,K)))),128)),r(ce)?(o(),s(y,{key:0},[h(d(r(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:Ue},{default:c((()=>[d(r(L),{component:r(V),size:"20"},null,8,["component"]),C(" "+v("添加父类"))])),_:1},512),[[k,!r(re).showAdd]]),h(d(r(w),{ref_key:"parentInputAddRef",ref:de,class:"parent-input",value:r(re).addDisplayCategory,"onUpdate:value":t[1]||(t[1]=e=>r(re).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(fe),maxlength:20},null,8,["value","onBlur"]),[[k,r(re).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",G,[H,p("span",{class:"addAction",onClick:t[2]||(t[2]=(...e)=>r(Ce)&&r(Ce)(...e)),style:{cursor:"pointer"}},[d(r(L),{component:r(x),class:"blue",size:"18"},null,8,["component"]),W])])),p("ul",X,[(o(!0),s(y,null,m(ne.filterConditions,((e,a)=>(o(),s("li",{key:a},[p("span",Y,v(a+1),1),u(" 选择 field_key "),d(r(U),{class:"form-item",placeholder:"请选择",value:e.key,"menu-props":ie,to:"body",filterable:"",options:r(he),"onUpdate:value":e=>r(be)(a,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.key?(o(),g(r(U),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,to:"body",filterable:"",options:r(z),"onUpdate:value":e=>r(Ae)(a,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.key&&e.condition&&e.condition!==r(B).NULL?(o(),g(D,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,isAccurate:e.isAccurateSearch,"onUpdate:isAccurate":a=>e.isAccurateSearch=a,"param-cfg":r(we)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","isAccurate","onUpdate:isAccurate","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(ke)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,Z)])),default:c((()=>[C(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}});export{$ as default};
|
package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
91
|
type: FunctionConstructor;
|
|
92
92
|
};
|
|
93
93
|
formattedValue: {
|
|
94
|
-
type:
|
|
94
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
95
95
|
};
|
|
96
96
|
placeholder: {
|
|
97
97
|
type: StringConstructor;
|
|
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
type: FunctionConstructor;
|
|
112
112
|
};
|
|
113
113
|
formattedValue: {
|
|
114
|
-
type:
|
|
114
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
115
115
|
};
|
|
116
116
|
placeholder: {
|
|
117
117
|
type: StringConstructor;
|
|
@@ -126,7 +126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
126
|
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
127
127
|
panelInstRef: import("vue").Ref<null>;
|
|
128
128
|
placeholderRef: import("vue").Ref<any>;
|
|
129
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
129
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
130
130
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
131
131
|
formatRef: import("vue").ComputedRef<string>;
|
|
132
132
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -135,7 +135,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
135
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
136
136
|
onUpdateShow: (show: boolean) => void;
|
|
137
137
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
138
|
-
isAllowedInvalidValue: (value
|
|
138
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
139
139
|
NDatePicker: any;
|
|
140
140
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
141
141
|
updateUnchangedValue: {
|
|
@@ -145,7 +145,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
145
145
|
type: FunctionConstructor;
|
|
146
146
|
};
|
|
147
147
|
formattedValue: {
|
|
148
|
-
type:
|
|
148
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
149
149
|
};
|
|
150
150
|
placeholder: {
|
|
151
151
|
type: StringConstructor;
|
|
@@ -74,7 +74,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
type: FunctionConstructor;
|
|
75
75
|
};
|
|
76
76
|
formattedValue: {
|
|
77
|
-
type:
|
|
77
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
78
78
|
};
|
|
79
79
|
placeholder: {
|
|
80
80
|
type: StringConstructor;
|
|
@@ -94,7 +94,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
94
|
type: FunctionConstructor;
|
|
95
95
|
};
|
|
96
96
|
formattedValue: {
|
|
97
|
-
type:
|
|
97
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
98
98
|
};
|
|
99
99
|
placeholder: {
|
|
100
100
|
type: StringConstructor;
|
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
110
110
|
panelInstRef: import("vue").Ref<null>;
|
|
111
111
|
placeholderRef: import("vue").Ref<any>;
|
|
112
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
112
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
113
113
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
114
114
|
formatRef: import("vue").ComputedRef<string>;
|
|
115
115
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
118
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
119
119
|
onUpdateShow: (show: boolean) => void;
|
|
120
120
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
121
|
-
isAllowedInvalidValue: (value
|
|
121
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
122
122
|
NDatePicker: any;
|
|
123
123
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
124
124
|
updateUnchangedValue: {
|
|
@@ -128,7 +128,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
128
128
|
type: FunctionConstructor;
|
|
129
129
|
};
|
|
130
130
|
formattedValue: {
|
|
131
|
-
type:
|
|
131
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
132
132
|
};
|
|
133
133
|
placeholder: {
|
|
134
134
|
type: StringConstructor;
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
type: FunctionConstructor;
|
|
110
110
|
};
|
|
111
111
|
formattedValue: {
|
|
112
|
-
type:
|
|
112
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
113
113
|
};
|
|
114
114
|
placeholder: {
|
|
115
115
|
type: StringConstructor;
|
|
@@ -129,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
129
|
type: FunctionConstructor;
|
|
130
130
|
};
|
|
131
131
|
formattedValue: {
|
|
132
|
-
type:
|
|
132
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
133
133
|
};
|
|
134
134
|
placeholder: {
|
|
135
135
|
type: StringConstructor;
|
|
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
144
|
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
145
145
|
panelInstRef: import("vue").Ref<null>;
|
|
146
146
|
placeholderRef: import("vue").Ref<any>;
|
|
147
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
147
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
148
148
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
149
149
|
formatRef: import("vue").ComputedRef<string>;
|
|
150
150
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -153,7 +153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
153
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
154
154
|
onUpdateShow: (show: boolean) => void;
|
|
155
155
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
156
|
-
isAllowedInvalidValue: (value
|
|
156
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
157
157
|
NDatePicker: any;
|
|
158
158
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
159
159
|
updateUnchangedValue: {
|
|
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
163
163
|
type: FunctionConstructor;
|
|
164
164
|
};
|
|
165
165
|
formattedValue: {
|
|
166
|
-
type:
|
|
166
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
167
167
|
};
|
|
168
168
|
placeholder: {
|
|
169
169
|
type: StringConstructor;
|
package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
type: FunctionConstructor;
|
|
77
77
|
};
|
|
78
78
|
formattedValue: {
|
|
79
|
-
type:
|
|
79
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
80
80
|
};
|
|
81
81
|
placeholder: {
|
|
82
82
|
type: StringConstructor;
|
|
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
96
|
type: FunctionConstructor;
|
|
97
97
|
};
|
|
98
98
|
formattedValue: {
|
|
99
|
-
type:
|
|
99
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
100
100
|
};
|
|
101
101
|
placeholder: {
|
|
102
102
|
type: StringConstructor;
|
|
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
112
112
|
panelInstRef: import("vue").Ref<null>;
|
|
113
113
|
placeholderRef: import("vue").Ref<any>;
|
|
114
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
|
|
114
|
+
currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
|
|
115
115
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
116
116
|
formatRef: import("vue").ComputedRef<string>;
|
|
117
117
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -120,7 +120,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
121
121
|
onUpdateShow: (show: boolean) => void;
|
|
122
122
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
123
|
-
isAllowedInvalidValue: (value
|
|
123
|
+
isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
|
|
124
124
|
NDatePicker: any;
|
|
125
125
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
126
|
updateUnchangedValue: {
|
|
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
130
|
type: FunctionConstructor;
|
|
131
131
|
};
|
|
132
132
|
formattedValue: {
|
|
133
|
-
type:
|
|
133
|
+
type: PropType<(string | [string, string]) | null | undefined>;
|
|
134
134
|
};
|
|
135
135
|
placeholder: {
|
|
136
136
|
type: StringConstructor;
|