cnhis-design-vue 3.1.54-beta.0 → 3.1.54-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/callback/src/components/render/popupMaps.d.ts +46 -9
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/index.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/index.js +1 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.d.ts +28 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/hooks/useDetailEvent.js +1 -0
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/index.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.d.ts +8 -2
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/form-config/index.d.ts +74 -56
- package/es/components/form-config/src/FormConfig.vue.d.ts +75 -57
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +18 -9
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +30 -21
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +12 -12
- package/es/components/form-config/src/constants/index.d.ts +4 -4
- package/es/components/form-config/src/types/index.d.ts +3 -3
- package/es/components/form-render/index.d.ts +18 -9
- package/es/components/form-render/src/FormRender.vue.d.ts +19 -10
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +18 -9
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +4 -4
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -2
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +2 -2
- package/es/components/form-render/src/hooks/useOperationalForm.d.ts +7 -5
- package/es/components/form-render/src/hooks/useOperationalForm.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -3
- package/es/components/form-render/src/types/index.d.ts +3 -3
- package/es/components/iho-table/index.d.ts +28 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +28 -0
- package/es/components/iho-table/src/plugins/operationalFormPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +16 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +7 -5
- package/es/components/info-header/index.d.ts +46 -28
- package/es/components/info-header/src/InfoHeader.vue.d.ts +46 -28
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +20 -11
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +18 -9
- package/es/components/shortcut-setter/index.d.ts +20 -11
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +20 -11
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.d.ts +2 -2
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +61 -53
- package/es/shared/types/index.d.ts +1 -0
- package/es/shared/utils/business.d.ts +11 -7
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
|
@@ -209,11 +209,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
209
209
|
businessFormatter: import("../../../..").FormBusinessFormatter;
|
|
210
210
|
requestInstance: import("../../../..").FormRequestDefine.RequestInstance;
|
|
211
211
|
enterToNextWidget: boolean | ((fieldItem: import("../../../..").FieldItem) => boolean | void);
|
|
212
|
-
lowCodeReactions: import("../../../../../../es/shared/types").
|
|
212
|
+
lowCodeReactions: import("../../../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
|
|
213
213
|
linebarAutoHidden: boolean;
|
|
214
214
|
bordered: string | boolean;
|
|
215
215
|
uniqueCacheData: boolean;
|
|
216
|
-
operationalForm: import("../../../../../../es/shared/types").
|
|
216
|
+
operationalForm: import("../../../../../../es/shared/types").LowCodeTypes.operationalConfig[];
|
|
217
217
|
outBordered: boolean;
|
|
218
218
|
forceClearable: boolean;
|
|
219
219
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
@@ -276,11 +276,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
276
276
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
277
277
|
requestInstance: import("../../../..").FormRequestDefine.RequestInstance;
|
|
278
278
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
279
|
-
lowCodeReactions: import("../../../../../../es/shared/types").
|
|
279
|
+
lowCodeReactions: import("../../../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
|
|
280
280
|
linebarAutoHidden: boolean;
|
|
281
281
|
bordered: string | boolean;
|
|
282
282
|
uniqueCacheData: boolean;
|
|
283
|
-
operationalForm: import("../../../../../../es/shared/types").
|
|
283
|
+
operationalForm: import("../../../../../../es/shared/types").LowCodeTypes.operationalConfig[];
|
|
284
284
|
outBordered: boolean;
|
|
285
285
|
forceClearable: boolean;
|
|
286
286
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
@@ -2259,10 +2259,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2259
2259
|
default: boolean;
|
|
2260
2260
|
};
|
|
2261
2261
|
lowCodeReactions: {
|
|
2262
|
-
type: import("vue").PropType<import("../../../../../../es/shared/types").
|
|
2262
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
2263
2263
|
};
|
|
2264
2264
|
operationalForm: {
|
|
2265
|
-
type: import("vue").PropType<import("../../../../../../es/shared/types").
|
|
2265
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
2266
|
+
};
|
|
2267
|
+
dateOperationalForm: {
|
|
2268
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2266
2269
|
};
|
|
2267
2270
|
linebarAutoHidden: {
|
|
2268
2271
|
type: BooleanConstructor;
|
|
@@ -2408,10 +2411,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2408
2411
|
default: boolean;
|
|
2409
2412
|
};
|
|
2410
2413
|
lowCodeReactions: {
|
|
2411
|
-
type: import("vue").PropType<import("../../../../../../es/shared/types").
|
|
2414
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
2412
2415
|
};
|
|
2413
2416
|
operationalForm: {
|
|
2414
|
-
type: import("vue").PropType<import("../../../../../../es/shared/types").
|
|
2417
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
2418
|
+
};
|
|
2419
|
+
dateOperationalForm: {
|
|
2420
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2415
2421
|
};
|
|
2416
2422
|
linebarAutoHidden: {
|
|
2417
2423
|
type: BooleanConstructor;
|
|
@@ -2493,7 +2499,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2493
2499
|
}>;
|
|
2494
2500
|
lowCodeReactionsHandler: (field: string) => void;
|
|
2495
2501
|
triggerAllReactionsHandler: () => void;
|
|
2496
|
-
operationalFormHandler: (
|
|
2502
|
+
operationalFormHandler: (fieldKey: string) => void;
|
|
2497
2503
|
triggerAllOperationalFormHandler: () => void;
|
|
2498
2504
|
wordbookSettingHandler: {
|
|
2499
2505
|
trigger: (fieldKey: string, value: unknown) => void;
|
|
@@ -2582,11 +2588,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2582
2588
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
2583
2589
|
requestInstance: import("../../../..").FormRequestDefine.RequestInstance;
|
|
2584
2590
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
2585
|
-
lowCodeReactions: import("../../../../../../es/shared/types").
|
|
2591
|
+
lowCodeReactions: import("../../../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
|
|
2586
2592
|
linebarAutoHidden: boolean;
|
|
2587
2593
|
bordered: string | boolean;
|
|
2588
2594
|
uniqueCacheData: boolean;
|
|
2589
|
-
operationalForm: import("../../../../../../es/shared/types").
|
|
2595
|
+
operationalForm: import("../../../../../../es/shared/types").LowCodeTypes.operationalConfig[];
|
|
2590
2596
|
outBordered: boolean;
|
|
2591
2597
|
forceClearable: boolean;
|
|
2592
2598
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
@@ -3000,10 +3006,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3000
3006
|
default: boolean;
|
|
3001
3007
|
};
|
|
3002
3008
|
lowCodeReactions: {
|
|
3003
|
-
type: import("vue").PropType<import("../../../../../../es/shared/types").
|
|
3009
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
3004
3010
|
};
|
|
3005
3011
|
operationalForm: {
|
|
3006
|
-
type: import("vue").PropType<import("../../../../../../es/shared/types").
|
|
3012
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
3013
|
+
};
|
|
3014
|
+
dateOperationalForm: {
|
|
3015
|
+
type: import("vue").PropType<import("../../../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
3007
3016
|
};
|
|
3008
3017
|
linebarAutoHidden: {
|
|
3009
3018
|
type: BooleanConstructor;
|
|
@@ -181,10 +181,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
181
181
|
default: boolean;
|
|
182
182
|
};
|
|
183
183
|
lowCodeReactions: {
|
|
184
|
-
type: import("vue").PropType<import("../../../..").
|
|
184
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.reactionsConfig[]>;
|
|
185
185
|
};
|
|
186
186
|
operationalForm: {
|
|
187
|
-
type: import("vue").PropType<import("../../../..").
|
|
187
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.operationalConfig[]>;
|
|
188
|
+
};
|
|
189
|
+
dateOperationalForm: {
|
|
190
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.dateOperationalConfig[]>;
|
|
188
191
|
};
|
|
189
192
|
linebarAutoHidden: {
|
|
190
193
|
type: BooleanConstructor;
|
|
@@ -330,10 +333,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
330
333
|
default: boolean;
|
|
331
334
|
};
|
|
332
335
|
lowCodeReactions: {
|
|
333
|
-
type: import("vue").PropType<import("../../../..").
|
|
336
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.reactionsConfig[]>;
|
|
334
337
|
};
|
|
335
338
|
operationalForm: {
|
|
336
|
-
type: import("vue").PropType<import("../../../..").
|
|
339
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.operationalConfig[]>;
|
|
340
|
+
};
|
|
341
|
+
dateOperationalForm: {
|
|
342
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.dateOperationalConfig[]>;
|
|
337
343
|
};
|
|
338
344
|
linebarAutoHidden: {
|
|
339
345
|
type: BooleanConstructor;
|
|
@@ -415,7 +421,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
415
421
|
}>;
|
|
416
422
|
lowCodeReactionsHandler: (field: string) => void;
|
|
417
423
|
triggerAllReactionsHandler: () => void;
|
|
418
|
-
operationalFormHandler: (
|
|
424
|
+
operationalFormHandler: (fieldKey: string) => void;
|
|
419
425
|
triggerAllOperationalFormHandler: () => void;
|
|
420
426
|
wordbookSettingHandler: {
|
|
421
427
|
trigger: (fieldKey: string, value: unknown) => void;
|
|
@@ -504,11 +510,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
504
510
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
505
511
|
requestInstance: import("../../../..").FormRequestDefine.RequestInstance;
|
|
506
512
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
507
|
-
lowCodeReactions: import("../../../..").
|
|
513
|
+
lowCodeReactions: import("../../../..").LowCodeTypes.reactionsConfig[];
|
|
508
514
|
linebarAutoHidden: boolean;
|
|
509
515
|
bordered: string | boolean;
|
|
510
516
|
uniqueCacheData: boolean;
|
|
511
|
-
operationalForm: import("../../../..").
|
|
517
|
+
operationalForm: import("../../../..").LowCodeTypes.operationalConfig[];
|
|
512
518
|
outBordered: boolean;
|
|
513
519
|
forceClearable: boolean;
|
|
514
520
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
@@ -922,10 +928,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
922
928
|
default: boolean;
|
|
923
929
|
};
|
|
924
930
|
lowCodeReactions: {
|
|
925
|
-
type: import("vue").PropType<import("../../../..").
|
|
931
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.reactionsConfig[]>;
|
|
926
932
|
};
|
|
927
933
|
operationalForm: {
|
|
928
|
-
type: import("vue").PropType<import("../../../..").
|
|
934
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.operationalConfig[]>;
|
|
935
|
+
};
|
|
936
|
+
dateOperationalForm: {
|
|
937
|
+
type: import("vue").PropType<import("../../../..").LowCodeTypes.dateOperationalConfig[]>;
|
|
929
938
|
};
|
|
930
939
|
linebarAutoHidden: {
|
|
931
940
|
type: BooleanConstructor;
|
|
@@ -156,12 +156,12 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
156
156
|
initialize_high?: number | undefined;
|
|
157
157
|
bindEventSetting?: {
|
|
158
158
|
[x: string]: unknown;
|
|
159
|
-
event_type: import("../../../es/shared/types").
|
|
159
|
+
event_type: import("../../../es/shared/types").LowCodeTypes.EVENT_TYPE;
|
|
160
160
|
event_field?: string | undefined;
|
|
161
161
|
params?: {
|
|
162
162
|
p_value?: string | undefined;
|
|
163
163
|
p_name: string;
|
|
164
|
-
p_select: import("../../../es/shared/types").
|
|
164
|
+
p_select: import("../../../es/shared/types").LowCodeTypes.VALUE_RELATION;
|
|
165
165
|
}[] | undefined;
|
|
166
166
|
results?: {
|
|
167
167
|
p_value: string;
|
|
@@ -1906,10 +1906,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1906
1906
|
default: boolean;
|
|
1907
1907
|
};
|
|
1908
1908
|
lowCodeReactions: {
|
|
1909
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
1909
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
1910
1910
|
};
|
|
1911
1911
|
operationalForm: {
|
|
1912
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
1912
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
1913
|
+
};
|
|
1914
|
+
dateOperationalForm: {
|
|
1915
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
1913
1916
|
};
|
|
1914
1917
|
linebarAutoHidden: {
|
|
1915
1918
|
type: BooleanConstructor;
|
|
@@ -2055,10 +2058,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2055
2058
|
default: boolean;
|
|
2056
2059
|
};
|
|
2057
2060
|
lowCodeReactions: {
|
|
2058
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
2061
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
2059
2062
|
};
|
|
2060
2063
|
operationalForm: {
|
|
2061
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
2064
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
2065
|
+
};
|
|
2066
|
+
dateOperationalForm: {
|
|
2067
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2062
2068
|
};
|
|
2063
2069
|
linebarAutoHidden: {
|
|
2064
2070
|
type: BooleanConstructor;
|
|
@@ -2140,7 +2146,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2140
2146
|
}>;
|
|
2141
2147
|
lowCodeReactionsHandler: (field: string) => void;
|
|
2142
2148
|
triggerAllReactionsHandler: () => void;
|
|
2143
|
-
operationalFormHandler: (
|
|
2149
|
+
operationalFormHandler: (fieldKey: string) => void;
|
|
2144
2150
|
triggerAllOperationalFormHandler: () => void;
|
|
2145
2151
|
wordbookSettingHandler: {
|
|
2146
2152
|
trigger: (fieldKey: string, value: unknown) => void;
|
|
@@ -2229,11 +2235,11 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2229
2235
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
2230
2236
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
2231
2237
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2232
|
-
lowCodeReactions: import("../../../es/shared/types").
|
|
2238
|
+
lowCodeReactions: import("../../../es/shared/types").LowCodeTypes.reactionsConfig[];
|
|
2233
2239
|
linebarAutoHidden: boolean;
|
|
2234
2240
|
bordered: string | boolean;
|
|
2235
2241
|
uniqueCacheData: boolean;
|
|
2236
|
-
operationalForm: import("../../../es/shared/types").
|
|
2242
|
+
operationalForm: import("../../../es/shared/types").LowCodeTypes.operationalConfig[];
|
|
2237
2243
|
outBordered: boolean;
|
|
2238
2244
|
forceClearable: boolean;
|
|
2239
2245
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
@@ -2647,10 +2653,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2647
2653
|
default: boolean;
|
|
2648
2654
|
};
|
|
2649
2655
|
lowCodeReactions: {
|
|
2650
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
2656
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
2651
2657
|
};
|
|
2652
2658
|
operationalForm: {
|
|
2653
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
2659
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
2660
|
+
};
|
|
2661
|
+
dateOperationalForm: {
|
|
2662
|
+
type: import("vue").PropType<import("../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2654
2663
|
};
|
|
2655
2664
|
linebarAutoHidden: {
|
|
2656
2665
|
type: BooleanConstructor;
|
|
@@ -159,12 +159,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
159
|
initialize_high?: number | undefined;
|
|
160
160
|
bindEventSetting?: {
|
|
161
161
|
[x: string]: unknown;
|
|
162
|
-
event_type: import("../../../../es/shared/types").
|
|
162
|
+
event_type: import("../../../../es/shared/types").LowCodeTypes.EVENT_TYPE;
|
|
163
163
|
event_field?: string | undefined;
|
|
164
164
|
params?: {
|
|
165
165
|
p_value?: string | undefined;
|
|
166
166
|
p_name: string;
|
|
167
|
-
p_select: import("../../../../es/shared/types").
|
|
167
|
+
p_select: import("../../../../es/shared/types").LowCodeTypes.VALUE_RELATION;
|
|
168
168
|
}[] | undefined;
|
|
169
169
|
results?: {
|
|
170
170
|
p_value: string;
|
|
@@ -1909,10 +1909,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1909
1909
|
default: boolean;
|
|
1910
1910
|
};
|
|
1911
1911
|
lowCodeReactions: {
|
|
1912
|
-
type: import("vue").PropType<import("../../../../es/shared/types").
|
|
1912
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
1913
1913
|
};
|
|
1914
1914
|
operationalForm: {
|
|
1915
|
-
type: import("vue").PropType<import("../../../../es/shared/types").
|
|
1915
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
1916
|
+
};
|
|
1917
|
+
dateOperationalForm: {
|
|
1918
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
1916
1919
|
};
|
|
1917
1920
|
linebarAutoHidden: {
|
|
1918
1921
|
type: BooleanConstructor;
|
|
@@ -2058,10 +2061,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2058
2061
|
default: boolean;
|
|
2059
2062
|
};
|
|
2060
2063
|
lowCodeReactions: {
|
|
2061
|
-
type: import("vue").PropType<import("../../../../es/shared/types").
|
|
2064
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
2062
2065
|
};
|
|
2063
2066
|
operationalForm: {
|
|
2064
|
-
type: import("vue").PropType<import("../../../../es/shared/types").
|
|
2067
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
2068
|
+
};
|
|
2069
|
+
dateOperationalForm: {
|
|
2070
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2065
2071
|
};
|
|
2066
2072
|
linebarAutoHidden: {
|
|
2067
2073
|
type: BooleanConstructor;
|
|
@@ -2143,7 +2149,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2143
2149
|
}>;
|
|
2144
2150
|
lowCodeReactionsHandler: (field: string) => void;
|
|
2145
2151
|
triggerAllReactionsHandler: () => void;
|
|
2146
|
-
operationalFormHandler: (
|
|
2152
|
+
operationalFormHandler: (fieldKey: string) => void;
|
|
2147
2153
|
triggerAllOperationalFormHandler: () => void;
|
|
2148
2154
|
wordbookSettingHandler: {
|
|
2149
2155
|
trigger: (fieldKey: string, value: unknown) => void;
|
|
@@ -2232,11 +2238,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2232
2238
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
2233
2239
|
requestInstance: import("../../../../es/shared/hooks").FormRequestDefine.RequestInstance;
|
|
2234
2240
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2235
|
-
lowCodeReactions: import("../../../../es/shared/types").
|
|
2241
|
+
lowCodeReactions: import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[];
|
|
2236
2242
|
linebarAutoHidden: boolean;
|
|
2237
2243
|
bordered: string | boolean;
|
|
2238
2244
|
uniqueCacheData: boolean;
|
|
2239
|
-
operationalForm: import("../../../../es/shared/types").
|
|
2245
|
+
operationalForm: import("../../../../es/shared/types").LowCodeTypes.operationalConfig[];
|
|
2240
2246
|
outBordered: boolean;
|
|
2241
2247
|
forceClearable: boolean;
|
|
2242
2248
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
|
@@ -2650,10 +2656,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2650
2656
|
default: boolean;
|
|
2651
2657
|
};
|
|
2652
2658
|
lowCodeReactions: {
|
|
2653
|
-
type: import("vue").PropType<import("../../../../es/shared/types").
|
|
2659
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.reactionsConfig[]>;
|
|
2654
2660
|
};
|
|
2655
2661
|
operationalForm: {
|
|
2656
|
-
type: import("vue").PropType<import("../../../../es/shared/types").
|
|
2662
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.operationalConfig[]>;
|
|
2663
|
+
};
|
|
2664
|
+
dateOperationalForm: {
|
|
2665
|
+
type: import("vue").PropType<import("../../../../es/shared/types").LowCodeTypes.dateOperationalConfig[]>;
|
|
2657
2666
|
};
|
|
2658
2667
|
linebarAutoHidden: {
|
|
2659
2668
|
type: BooleanConstructor;
|
package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reactive as a,computed as t,toRaw as e,unref as n}from"vue";import{ConditionEnums as l,WidgetTypeEnums as o,WidgetOptionEnums as
|
|
1
|
+
import{reactive as a,computed as t,toRaw as e,unref as n}from"vue";import{ConditionEnums as l,WidgetTypeEnums as o,WidgetOptionEnums as r}from"../../../types/enums.js";import{transformConditions as i,transformRawConditions as u,transformDataToFront as s}from"../../../tool/transformData.js";const c=(c,p,d)=>{const m=a({params:[]}),v=t((()=>m.params.map((({p_name:a,title:t})=>({label:t||a,value:a}))))),y=a=>m.params.find((t=>t.p_name===a)),C=(a,t)=>{const e=c.value[a];e&&(e.condition=t,(a=>{var t,e,n,l;const o=y(a.key);(null==(e=null==(t=o._rawData)?void 0:t.accurateSearch)?void 0:e.switchEnable)&&(a.isAccurateSearch=!0,a.accurateSearchKey=null==(l=null==(n=o._rawData)?void 0:n.accurateSearch)?void 0:l.searchKey)})(e),(a=>{const t=y(a.key);a.value=(null==t?void 0:t.type)!==o.SELECT&&(null==t?void 0:t.type)!==o.SELECTDYNAMIC||(null==t?void 0:t.optionSetting)!==r.MULTIPLE?null:[],a.presetVal=a.timeVal=null})(e))};return{State:m,paramOptions:v,addFilterCondition:()=>{c.value.push({key:null,condition:null,value:null,presetVal:null})},delFilterCondition:a=>{c.value.splice(a,1)},updateKey:(a,t)=>{const e=c.value[a];e&&(e.key=t,C(a,l.EQUAL))},updateCondition:C,getParamCfg:y,initFilterConditions:async(a,t)=>{const n=await(async a=>{try{return s(d,p)}catch(a){return[]}})();m.params=n,c.value=i(t,e(m.params))},getRawFilterConditions:()=>u(n(c))}};export{c as useFilterConditions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},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?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let g,
|
|
1
|
+
import{WidgetOptionEnums as e,WidgetTypeEnums as t,WidgetValEnums as i}from"../types/enums.js";import{isString as n}from"lodash-es";import{formatDateRangeInfo as l,presetValToTimestamp as a}from"../components/render-widget/helpers/presetValToTimestamp.js";import{DatePresetValEnums as o}from"../components/render-widget/enums.js";const r={[e.RADIO]:"0",[e.MULTIPLE]:"1",[e.ALL]:"0",[e.SELECT_TIME]:"1",[e.PAST_TIME]:"2",[e.FUTURE_TIME]:"3"};function u(){return{transformData:function(i,n){return i.map((i=>{var l,a,o;const{optionInfo:u={list:[],manualMapping:!0,dynamicOptionInfo:{},showWholeOption:!1},type:s,defaultValue:E,optionType:c,filterExplicit:p,rangeFilter:T}=i,d={},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?r[f.optionType]:"",placeholder:f.remark,advanceColWidth:f.width,accurateSearch:f.accurateSearch?f.accurateSearch:{}};var f;let v,g,y=s;p?(v=s===t.SELECT&&c===e.MULTIPLE?null==E?void 0:E.valueList:null==(l=null==E?void 0:E.valueList)?void 0:l[0],g=null==E?void 0:E.unit,s===t.LABEL&&(y="SELECTLABEL",v=null==E?void 0:E.valueList),s===t.DATE&&(y="DATE_OUT"),s===t.DATE_TIME&&(y="DATETIME_OUT")):s===t.SELECT&&(null==u?void 0:u.list)&&(null==u?void 0:u.list.length)<10&&(y="CHECKBOX_GROUP"),T&&(s===t.INPUT_NUMBER&&(y="INPUTNUMBER_RANGE"),s===t.DATE&&(y=p?"DATE_RANGE_OUT":"DATE_RANGE_INNER"),s===t.DATE_TIME&&(y=p?"DATETIME_RANGE_OUT":"DATETIME_RANGE_INNER")),s===t.SELECT&&!1===(null==u?void 0:u.manualMapping)&&(y=t.SELECTDYNAMIC);const A={isRender:!0,widgetType:y,originType:s,valueList:null==(a=null==u?void 0:u.list)?void 0:a.map((({name:e,value:t})=>({value:t,label:e}))),defaultValue:v,defValueUnit:g,optionSetting:c,multiple:c===e.MULTIPLE||y===t.SELECTLABEL,manualMapping:null==u?void 0:u.manualMapping,showWholeOption:null==u?void 0:u.showWholeOption,dynamicOptionInfo:null==u?void 0:u.dynamicOptionInfo,classifyStr:null==E?void 0:E.classifyStr,linkageFieldKeys:null!=(o=null==E?void 0:E.linkageFieldKeys)?o:[]};return{...m,fieldType:i.dataType,columnName:i.name,settingObj:d,setting:JSON.stringify(d),widgetCfg:A,rangeFilter:T,unit:null!=g?g:"",isAccurateSearchVal:!1,_extendData:null!=n?n:{}}}))},getCacheDef:function(e,i){const{widgetType:n,widgetCfg:l}=e;return[t.SELECT,t.CHECKBOX_GROUP,t.SELECTDYNAMIC].includes(n)&&l.multiple?i:i[0]},transformClassifyChild:function(e,i){const n={};return e&&e.length>0&&e.forEach((e=>{const r=e.field_key;n[r]="";const u=i.find((e=>e.name===r));if(u){if(e.value){const i=Array.isArray(e.value)&&u.type===t.SELECT?e.value:e.value.toString();n[r]=i}if(e.unit&&e.unit!==o.CUSTOM){let i="";u.type===t.DATE&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD",u.optionType):a(e.unit,"YYYY-MM-DD")),u.type===t.DATE_TIME&&(i=u.rangeFilter?l(e.unit,"YYYY-MM-DD HH:mm:ss",u.optionType):a(e.unit,"YYYY-MM-DD HH:mm:ss")),n[r]=i}}})),n},transformParams:function(e){const l={},a=[t.SELECT,t.SELECTDYNAMIC,t.CHECKBOX_GROUP];return e&&e.length>0&&e.forEach((e=>{let t="";const o=e.field_key;e.value&&(t=a.includes(e.widgetType)||e.value&&e.value.length>1?e.value.map((e=>n(e)&&e.includes("&")?e.split("&")[1]:e)):e.value.toString()),Array.isArray(t)&&t.length>0&&t.includes(i.WHOLE)||(Object.keys(e).includes("isAccurateSearch")&&(l[e.accurateSearchKey]=e.isAccurateSearch?1:0),l[o]=t)})),l}}}export{u as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormRequestDefine } from '../../../es/shared/hooks';
|
|
2
|
-
import { AnyObject,
|
|
2
|
+
import { AnyObject, AnyFn, LowCodeTypes } from '../../../es/shared/types';
|
|
3
3
|
import { MaybeRef } from '@vueuse/core';
|
|
4
4
|
import { Ref } from 'vue';
|
|
5
5
|
export declare function useLevelSearchCascader(props: Partial<{
|
|
@@ -9,7 +9,7 @@ export declare function useLevelSearchCascader(props: Partial<{
|
|
|
9
9
|
value: string | AnyObject[];
|
|
10
10
|
}> & {
|
|
11
11
|
autograph: string;
|
|
12
|
-
wordbook:
|
|
12
|
+
wordbook: LowCodeTypes.wordbook;
|
|
13
13
|
labelField: string;
|
|
14
14
|
valueField: string;
|
|
15
15
|
}, emit: AnyFn, { asyncQueue, fieldKey, getRequestPayload }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.54-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.54-beta.10",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.54-beta.10",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
import { AnyObject } from '../../../es/shared/types/index';
|
|
2
|
-
export declare type LOW_CODE_VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
|
|
3
|
-
export declare type LOW_CODE_EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API';
|
|
4
|
-
export declare type BindEventSettingItem = {
|
|
5
|
-
event_type: LOW_CODE_EVENT_TYPE;
|
|
6
|
-
event_field?: string;
|
|
7
|
-
params?: {
|
|
8
|
-
p_value?: string;
|
|
9
|
-
p_name: string;
|
|
10
|
-
p_select: LOW_CODE_VALUE_RELATION;
|
|
11
|
-
}[];
|
|
12
|
-
results?: {
|
|
13
|
-
p_value: string;
|
|
14
|
-
p_name: string;
|
|
15
|
-
}[];
|
|
16
|
-
compareMap?: Partial<Record<LOW_CODE_VALUE_RELATION, (v1: any, v2: any) => boolean>>;
|
|
17
|
-
[K: string]: unknown;
|
|
18
|
-
};
|
|
19
|
-
export declare type FormOperationalConfig = {
|
|
20
|
-
operationFormParam: string[];
|
|
21
|
-
operationalRule: string;
|
|
22
|
-
operationalPrecision: string;
|
|
23
|
-
operationalResult: string;
|
|
24
|
-
};
|
|
25
2
|
export declare type IFlexibleType = {
|
|
26
3
|
el: HTMLBaseElement;
|
|
27
4
|
mode: string;
|
|
@@ -29,14 +6,68 @@ export declare type IFlexibleType = {
|
|
|
29
6
|
onEnd: (result: any) => void;
|
|
30
7
|
onStart?: (result: any) => void;
|
|
31
8
|
};
|
|
32
|
-
export declare namespace
|
|
33
|
-
type
|
|
34
|
-
|
|
9
|
+
export declare namespace LowCodeTypes {
|
|
10
|
+
type VALUE_RELATION = 'EQ' | 'NEQ' | 'CL' | 'NC' | 'NULL' | 'NOT_NULL' | 'BIG' | 'BIGEQ' | 'LESS' | 'LESSEQ';
|
|
11
|
+
type EVENT_TYPE = 'SET_VALUE' | 'REPEAT_VALIDATE' | 'IS_SHOW_FIELD' | 'SQLSAVE' | 'API';
|
|
12
|
+
type BindEventSettingItem = {
|
|
13
|
+
event_type: EVENT_TYPE;
|
|
14
|
+
event_field?: string;
|
|
15
|
+
params?: {
|
|
16
|
+
p_value?: string;
|
|
17
|
+
p_name: string;
|
|
18
|
+
p_select: VALUE_RELATION;
|
|
19
|
+
}[];
|
|
20
|
+
results?: {
|
|
21
|
+
p_value: string;
|
|
22
|
+
p_name: string;
|
|
23
|
+
}[];
|
|
24
|
+
compareMap?: Partial<Record<VALUE_RELATION, (v1: any, v2: any) => boolean>>;
|
|
25
|
+
[K: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
type wordbook = Partial<{
|
|
28
|
+
level_num: number;
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
render_key: string[];
|
|
32
|
+
search_key: string[];
|
|
33
|
+
value_key: string;
|
|
34
|
+
queryParams: string[];
|
|
35
|
+
primary_key: string;
|
|
36
|
+
type: string;
|
|
37
|
+
level_key: string;
|
|
38
|
+
link_key: string;
|
|
39
|
+
link_key_split: string;
|
|
40
|
+
show_key: string[] | string;
|
|
41
|
+
conObj: AnyObject[];
|
|
42
|
+
conObjFirstLevel: AnyObject[];
|
|
43
|
+
setting: Partial<{
|
|
44
|
+
cascading: {
|
|
45
|
+
'form.name': string;
|
|
46
|
+
value: string;
|
|
47
|
+
}[];
|
|
48
|
+
}>;
|
|
49
|
+
}>;
|
|
50
|
+
type operationalConfig = {
|
|
51
|
+
operationFormParam: string[];
|
|
52
|
+
operationalRule: string;
|
|
53
|
+
operationalPrecision: string;
|
|
54
|
+
operationalResult: string;
|
|
55
|
+
};
|
|
56
|
+
type dateOperationalConfig = {
|
|
57
|
+
scene: 'DIFF' | 'CALC';
|
|
58
|
+
precision: string;
|
|
59
|
+
diffValUnit: 'DAY' | 'MIN' | 'HOUR' | 'DHM';
|
|
60
|
+
diffValField: string;
|
|
61
|
+
startDateField: string;
|
|
62
|
+
endDateField: string;
|
|
63
|
+
};
|
|
64
|
+
type reactionsConObj = {
|
|
65
|
+
con: VALUE_RELATION;
|
|
35
66
|
field_key: string;
|
|
36
67
|
value: unknown;
|
|
37
68
|
};
|
|
38
|
-
type
|
|
39
|
-
conObj:
|
|
69
|
+
type reactionsConfig = {
|
|
70
|
+
conObj: reactionsConObj[];
|
|
40
71
|
} & Partial<{
|
|
41
72
|
compareMap: BindEventSettingItem['compareMap'];
|
|
42
73
|
sqlExpression: string;
|
|
@@ -46,30 +77,7 @@ export declare namespace FormLowCodeReactions {
|
|
|
46
77
|
notRequiredField: string[];
|
|
47
78
|
enabledField: string[];
|
|
48
79
|
disabledField: string[];
|
|
49
|
-
__oppositeBindField:
|
|
50
|
-
__oppositeTargetField:
|
|
80
|
+
__oppositeBindField: reactionsConfig;
|
|
81
|
+
__oppositeTargetField: reactionsConfig;
|
|
51
82
|
}>;
|
|
52
83
|
}
|
|
53
|
-
export declare type FormWordbook = Partial<{
|
|
54
|
-
level_num: number;
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
render_key: string[];
|
|
58
|
-
search_key: string[];
|
|
59
|
-
value_key: string;
|
|
60
|
-
queryParams: string[];
|
|
61
|
-
primary_key: string;
|
|
62
|
-
type: string;
|
|
63
|
-
level_key: string;
|
|
64
|
-
link_key: string;
|
|
65
|
-
link_key_split: string;
|
|
66
|
-
show_key: string[] | string;
|
|
67
|
-
conObj: AnyObject[];
|
|
68
|
-
conObjFirstLevel: AnyObject[];
|
|
69
|
-
setting: Partial<{
|
|
70
|
-
cascading: {
|
|
71
|
-
'form.name': string;
|
|
72
|
-
value: string;
|
|
73
|
-
}[];
|
|
74
|
-
}>;
|
|
75
|
-
}>;
|
|
@@ -22,3 +22,4 @@ export declare type UnionToTuple<T, Result extends unknown[] = []> = UnionToInte
|
|
|
22
22
|
export declare type MaybeString<T extends string | number> = T | `${T}`;
|
|
23
23
|
export declare type GetFn<T> = T extends (...args: any[]) => any ? T : never;
|
|
24
24
|
export declare type NumberRange<From extends number, End extends number, Result extends number[] = [], U extends readonly unknown[] = [], Flag = false> = U['length'] extends End ? [...Result, U['length']] : U['length'] extends From ? NumberRange<From, End, [...Result, U['length']], [unknown, ...U], true> : Flag extends true ? NumberRange<From, End, [...Result, U['length']], [unknown, ...U], Flag> : NumberRange<From, End, Result, [unknown, ...U], Flag>;
|
|
25
|
+
export declare type ConstructorParams<T = any> = T extends new (...args: infer P) => any ? P : never;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { AnyObject,
|
|
1
|
+
import { AnyObject, LowCodeTypes } from '../../../es/shared/types';
|
|
2
2
|
import { MaybeRef } from '@vueuse/core';
|
|
3
3
|
export declare function isMatchLowCodeCondition(value: unknown, condition: {
|
|
4
|
-
con:
|
|
4
|
+
con: LowCodeTypes.VALUE_RELATION;
|
|
5
5
|
value: unknown;
|
|
6
|
-
}, overwriteCompareMap?: BindEventSettingItem['compareMap']): boolean;
|
|
7
|
-
export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config:
|
|
8
|
-
declare function handleFieldTriggerSetValue(bindEventSetting: BindEventSettingItem, { getter, setter }: {
|
|
6
|
+
}, overwriteCompareMap?: LowCodeTypes.BindEventSettingItem['compareMap']): boolean;
|
|
7
|
+
export declare function isMatchLowCodeConditionsWithSqlExpression(formData: AnyObject, config: LowCodeTypes.reactionsConfig): any;
|
|
8
|
+
declare function handleFieldTriggerSetValue(bindEventSetting: LowCodeTypes.BindEventSettingItem, { getter, setter }: {
|
|
9
9
|
setter: (key: string, value: unknown) => void;
|
|
10
10
|
getter: (key: string) => unknown;
|
|
11
11
|
}): void;
|
|
12
|
-
export declare function getBindEventSettingTrigger(key:
|
|
13
|
-
export declare function getOperationalFormHandler(operationalForm: MaybeRef<
|
|
12
|
+
export declare function getBindEventSettingTrigger(key: LowCodeTypes.EVENT_TYPE): typeof handleFieldTriggerSetValue;
|
|
13
|
+
export declare function getOperationalFormHandler(operationalForm: MaybeRef<LowCodeTypes.operationalConfig[] | undefined>, getter: (field: string) => unknown, setter: (field: string, value: unknown) => void): {
|
|
14
14
|
operationalFormHandler: (field: string) => void;
|
|
15
15
|
triggerAllOperationalFormHandler: () => void;
|
|
16
16
|
};
|
|
17
|
+
export declare function getDateOperationalFormHandler(dateOperationalForm: MaybeRef<LowCodeTypes.dateOperationalConfig[] | undefined>, getter: (field: string) => unknown, setter: (field: string, value: unknown) => void): {
|
|
18
|
+
dateOperationalFormHandler: (field: string) => void;
|
|
19
|
+
triggerAllDateOperationalFormHandler: () => void;
|
|
20
|
+
};
|
|
17
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Path as e}from"@formily/path";import{isArray as
|
|
1
|
+
import{Path as e}from"@formily/path";import{isArray as n,isString as t,includes as r,negate as a,gt as o,gte as i,isNumber as l,lt as c,lte as f,noop as u,isObject as s}from"lodash-es";import{unref as d}from"vue";import{add as p,differenceInMilliseconds as m}from"date-fns";function F(e){return null==e||""==e}const D={EQ:(e,n)=>`${e}`===n,NEQ:(e,n)=>`${e}`!==n,CL:(e,a)=>!(!n(e)&&!t(e))&&r(e,a),NC:(e,a)=>!n(e)&&!t(e)||!r(e,a),NULL:F,NOT_NULL:a(F),BIG:o,BIGEQ:i,LESS:(e,n)=>!!(l(e)||t(e)&&e)&&c(e,n),LESSEQ:(e,n)=>!!(l(e)||t(e)&&e)&&f(e,n)};function E(e,n,t={}){return(t[n.con]||D[n.con]||(()=>!1))(e,`${n.value}`)}function g(r,a){if(!n(a.conObj))return!1;if(!a.sqlExpression||!t(a.sqlExpression))return a.conObj.every((n=>E(e.getIn(r,n.field_key),n,a.compareMap)));const o=a.conObj.map((n=>E(e.getIn(r,n.field_key),n,a.compareMap)));try{return new Function("return "+a.sqlExpression.replace(/OR/g,"||").replace(/AND/g,"&&").replace(/[a-zA-Z]/g,"").replace(/\d+/g,(e=>o[+e-1]?"true":"false")))()}catch(e){return console.error("表达式错误=>",a.sqlExpression),!1}}const h=Object.freeze({SET_VALUE:function(e,{getter:n,setter:r}){if(!s(e))return;const{results:a=[],params:o=[],compareMap:i={}}=e;if(!a.length)return;function l(e){var r;if(!t(e))return e;const a=e.trim().match(/^\$\{([a-zA-Z\d\s]+)}$/);return a?n(null==(r=a[1])?void 0:r.trim()):e}o.every((e=>e&&e.p_name&&E(n(e.p_name),{con:e.p_select,value:l(e.p_value)},i)))&&a.forEach((e=>r(e.p_name,l(e.p_value))))},REPEAT_VALIDATE:u,IS_SHOW_FIELD:u,SQLSAVE:u,API:u});function A(e){return h[e]||u}function N(e,r,a){function o(e){return n(e)&&!!e.length}function i(e,n=!0){e.forEach((e=>{if(!e.operationalResult||!n&&null!=r(e.operationalResult))return;const o=e.operationFormParam.reduce(((e,n)=>(e[n=n.replace(/^table\./,"")]=+r(n),e)),{}),i=e.operationalRule.replace(/\${(.+?)}/g,"$1");let c=new Function("table",`return ${i}`)(o);t(c)&&(c=+c),c=l(c)?isNaN(c)?"":c.toFixed(+e.operationalPrecision):"",a(e.operationalResult,c)}))}return{operationalFormHandler:function(n){if(!o(d(e)))return;const t=d(e).filter((e=>e.operationFormParam.includes(`table.${n}`)));t.length&&i(t)},triggerAllOperationalFormHandler:function(){o(d(e))&&i(d(e),!1)}}}function _(e,t,r){function a(e){return n(e)&&!!e.length}function o(e,n=!0){e.forEach((e=>{e.diffValField&&e.diffValUnit&&e.scene&&(n||null==t(e.diffValField))&&("DIFF"===e.scene?function({startDateField:e,endDateField:n,diffValField:a,diffValUnit:o,precision:i="0"}){const l=t(e),c=t(n);if(l&&c){const e=m(new Date(c),new Date(l))/1e3/60,n=e/60,t=n/24;let f="";switch(o){case"DAY":f=t.toFixed(+i);break;case"HOUR":f=n.toFixed(+i);break;case"MIN":f=e.toFixed(+i);break;case"DHM":f=`${Math.floor(t)}天${Math.floor(n%24)}小时${Math.floor(e%60)}分钟`;break}r(a,f)}else r(a,null)}(e):"CALC"===e.scene&&function(e){const n=+e.diffValField;if(!l(n)||Number.isNaN(n))return;const a=t(e.startDateField);if(a){const t=p(new Date(a),{days:"DAY"===e.diffValUnit?n:0,hours:"HOUR"===e.diffValUnit?n:0,minutes:"MIN"===e.diffValUnit?n:0});r(e.endDateField,t)}else r(e.endDateField,null)}(e))}))}return{dateOperationalFormHandler:function(n){if(!a(d(e)))return;const t=d(e).filter((e=>"DIFF"===e.scene?e.startDateField===n||e.endDateField===n:e.startDateField===n));t.length&&o(t)},triggerAllDateOperationalFormHandler:function(){a(d(e))&&o(d(e),!1)}}}export{A as getBindEventSettingTrigger,_ as getDateOperationalFormHandler,N as getOperationalFormHandler,E as isMatchLowCodeCondition,g as isMatchLowCodeConditionsWithSqlExpression};
|
package/es/shared/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as u,isNumber as s,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=x(r),e=x(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u),o)return;for(let i=0;i<r.length;i++){const u=e[s][r[i]];if(Array.isArray(u)&&t(u,n,r,e[s]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&u(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return u(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(u(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function
|
|
1
|
+
import{getCurrentInstance as t,defineComponent as e,provide as n,createVNode as r}from"vue";import{useMemoize as o}from"@vueuse/core";import{isString as i,isObject as u,isNumber as s,isArray as c,isFunction as f}from"lodash-es";import a from"../package.json.js";export{getBindEventSettingTrigger,getDateOperationalFormHandler,getOperationalFormHandler,isMatchLowCodeCondition,isMatchLowCodeConditionsWithSqlExpression}from"./business.js";function l(t,e,n="children",r){let o=!1;function i(){o=!0}!function t(e,n,r="children",u){r=x(r),e=x(e);for(let s=0;s<e.length;s++){if(n(e[s],i,u),o)return;for(let i=0;i<r.length;i++){const u=e[s][r[i]];if(Array.isArray(u)&&t(u,n,r,e[s]),o)return}}}(t,e,n,r)}function d(t,e,n=e.name,r){if(!n)throw new Error(`[CUI]: invalid component name for ${e}`);const{components:o={}}=t._context;o[n]||(!Reflect.get(t,"__cnhis_version")&&u(a)&&Reflect.set(t,"__cnhis_version",a.version),r?r():t.component(n,e))}function p(t){if(!i(t))return;const e=t.match(/[Hms:]+/);return e?e[0]:void 0}function x(t){return Array.isArray(t)?t:[t]}function m(){return`key${"xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}`}const h=o((function(t){if(!t)return 0;let e="";return[...t].reduce(((t,n)=>{const r=e;return e=n,/[a-z]/.test(n)?t+8.05:/[A-Z]/.test(n)?t+9.13:/\d/.test(n)?t+8.9:/[.,]/.test(n)?t+4.03:/[)(]/.test(n)?t+5.17:/[\u4e00-\u9fa5():,。]/.test(n)?t+13.95:/[-+]/.test(n)?t+7.51:/[/\\]/.test(n)?t+4.11:/%/.test(n)?t+12.68:/‰/.test(n)?t+17.75:" "===n?" "===r?t:t+4:t+6}),0)})),g=Object.seal(Object.create(null));function v(t,e){return function t(e,n){return u(e)?c(e)?e.map((e=>t(e,n))):Object.entries(e).reduce(((e,[r,o])=>(n.includes(r)||(u(o)&&!f(o)?e[r]=t(o,n):e[r]=o),e)),{}):e}(t,e)}function y(t){return Object.values(t).reduce(((t,e)=>Object.assign(t,e)),{})}function O(t,e){if(!t)return t;if(e(t))return t;let n=t.parentElement;for(;n&&!e(n);)n=n.parentElement;return n}function b(t,e="px"){if(s(t))return`${t}${e}`;if(i(t))return t.endsWith(e)?t:`${t}${e}`;throw new Error(`invalid width value ${t}, it need to be a string or number!`)}const j=o((t=>{try{return JSON.parse(t)}catch(t){return{}}}),{getKey:t=>t});function w(t,e){if(!u(t))return t;const n={...t};for(let t=0;t<e.length;t++)Reflect.deleteProperty(n,e[t]);return n}function E(e){if(!t())throw new Error(e||"can't use this hook out of setup environment")}function $(t,e=1){const[n,r,o,i,u]=t.match(/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i)||[];if(!n)return[255,255,255,e];const c=u&&parseInt(u,16)/255;return[parseInt(r,16),parseInt(o,16),parseInt(i,16),+(s(c)?c.toFixed(2):e)]}function _(t){return e({setup(e,{slots:o}){let i=(null==t?void 0:t.parent)&&Reflect.get(t.parent,"provides");const u=[];for(;i;)Object.entries(i).forEach((([t,e])=>{u.includes(t)||(u.push(t),n(t,e))})),i=Object.getPrototypeOf(i);return()=>{var t;return r("div",null,[null==(t=o.default)?void 0:t.call(o)])}}})}const S=o((function(t,e){return!(!i(e)||!i(t))&&e.split(",").some((e=>e.trim().includes(t)))}),{getKey:(...t)=>t.reduce(((t,e)=>String(t)+"_"+String(e)),"")});export{g as DMZ,x as arrayed,E as checkInSetupEnv,_ as createProviderWrapper,v as deepOmit,O as findAncestor,p as generateTimeFormat,h as getStringWidth,$ as hex2rgba,j as jsonParse,S as keywordMatcher,d as safeComponentRegister,y as separateMetaModule,w as shallowOmit,l as traverse,m as uuidGenerator,b as widthAppend};
|