cnhis-design-vue 3.1.57-beta.2 → 3.1.57-beta.21
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/button-print/index.d.ts +8 -8
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +8 -8
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +3 -3
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +7 -7
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/index.d.ts +276 -0
- package/es/components/calendar/index.js +1 -0
- package/es/components/calendar/src/Calendar.vue.d.ts +265 -0
- package/es/components/calendar/src/Calendar.vue.js +1 -0
- package/es/components/calendar/src/Calendar.vue2.js +1 -0
- package/es/components/calendar/src/types/index.d.ts +6 -0
- package/es/components/calendar/src/types/index.js +1 -0
- package/es/components/calendar/style/index.css +1 -0
- package/es/components/callback/src/components/render/popupMaps.d.ts +233 -224
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +3 -0
- package/es/components/classification/src/index.vue.d.ts +3 -3
- package/es/components/expand-field/index.d.ts +18 -27
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +15 -24
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +15 -24
- package/es/components/expand-field/src/components/form.vue.d.ts +18 -27
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/expand-field/src/index.vue.d.ts +18 -27
- 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.vue2.js +1 -1
- package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
- 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/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +4 -3
- package/es/components/field-set/index.d.ts +107 -616
- package/es/components/field-set/index.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1680 -0
- package/es/components/field-set/src/FieldColor.vue.js +1 -0
- package/es/components/field-set/src/FieldColor.vue2.js +1 -0
- package/es/components/field-set/src/FieldSet.vue.d.ts +58 -16
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/Index.vue.d.ts +141 -0
- package/es/components/field-set/src/Index.vue.js +1 -0
- package/es/components/field-set/src/Index.vue2.js +1 -0
- package/es/components/field-set/src/components/Row.vue.d.ts +50 -9
- package/es/components/field-set/src/components/Row.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue.d.ts +172 -0
- package/es/components/field-set/src/components/condition.vue.js +1 -0
- package/es/components/field-set/src/components/condition.vue2.js +1 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1194 -0
- package/es/components/field-set/src/components/edit-dialog.vue.js +1 -0
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +286 -0
- package/es/components/field-set/src/components/edit-filter.vue.js +1 -0
- package/es/components/field-set/src/components/edit-filter.vue2.js +1 -0
- package/es/components/field-set/src/constants/index.d.ts +55 -0
- package/es/components/field-set/src/constants/index.js +1 -0
- package/es/components/field-set/src/types/index.d.ts +31 -1
- package/es/components/field-set/src/utils/index.d.ts +2 -1
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +55 -30
- package/es/components/form-config/src/FormConfig.vue.d.ts +55 -30
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +17 -8
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +23 -11
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -8
- package/es/components/form-config/src/constants/index.d.ts +1 -1
- package/es/components/form-config/src/types/index.d.ts +2 -2
- package/es/components/form-render/index.d.ts +17 -8
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +17 -8
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +17 -8
- package/es/components/form-render/src/components/renderer/combination/combination.d.ts +12 -0
- package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +12 -0
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -0
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
- package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.d.ts +6 -0
- package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +1 -1
- package/es/components/guide/src/renderer.d.ts +2 -2
- package/es/components/iho-table/index.d.ts +216 -216
- package/es/components/iho-table/src/IhoTable.vue.d.ts +216 -216
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
- 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 +1 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +41 -23
- package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -23
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +18 -9
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +17 -8
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/quick-search/index.d.ts +3 -3
- package/es/components/quick-search/src/index.vue.d.ts +3 -3
- package/es/components/recommend-search/index.d.ts +6 -6
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +6 -6
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
- package/es/components/scale-view/index.d.ts +3 -3
- package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -3
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
- package/es/components/select-label/index.d.ts +2 -2
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
- package/es/components/select-label/src/index.vue.d.ts +1 -1
- package/es/components/select-person/index.d.ts +15 -24
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/select-person/src/SelectPerson.vue.d.ts +15 -18
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/style/index.css +1 -1
- package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +18 -8
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -8
- package/es/components/table-export-field/index.d.ts +3 -3
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -3
- package/es/components/table-export-field/src/index.vue.d.ts +3 -3
- package/es/components/time-line/index.d.ts +7 -7
- package/es/components/time-line/src/TimeLine.vue.d.ts +3 -3
- 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/package.json.js +1 -1
- package/es/shared/types/business.d.ts +23 -3
- package/es/shared/utils/business.d.ts +2 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +8 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -154,7 +154,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
154
154
|
default: boolean;
|
|
155
155
|
};
|
|
156
156
|
lowCodeReactions: {
|
|
157
|
-
type: import("vue").PropType<import("../../..").LowCodeTypes.
|
|
157
|
+
type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
|
|
158
|
+
};
|
|
159
|
+
newLowCodeReactions: {
|
|
160
|
+
type: import("vue").PropType<import("../../..").LowCodeTypes.newReactionConfig[]>;
|
|
158
161
|
};
|
|
159
162
|
operationalForm: {
|
|
160
163
|
type: import("vue").PropType<import("../../..").LowCodeTypes.operationalConfig[]>;
|
|
@@ -316,7 +319,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
316
319
|
default: boolean;
|
|
317
320
|
};
|
|
318
321
|
lowCodeReactions: {
|
|
319
|
-
type: import("vue").PropType<import("../../..").LowCodeTypes.
|
|
322
|
+
type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
|
|
323
|
+
};
|
|
324
|
+
newLowCodeReactions: {
|
|
325
|
+
type: import("vue").PropType<import("../../..").LowCodeTypes.newReactionConfig[]>;
|
|
320
326
|
};
|
|
321
327
|
operationalForm: {
|
|
322
328
|
type: import("vue").PropType<import("../../..").LowCodeTypes.operationalConfig[]>;
|
|
@@ -349,7 +355,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
349
355
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
350
356
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
351
357
|
}>>;
|
|
352
|
-
emit: (event: "
|
|
358
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
353
359
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
354
360
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
355
361
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -407,7 +413,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
407
413
|
[x: string]: any;
|
|
408
414
|
}>;
|
|
409
415
|
lowCodeReactionsHandler: (field: string) => void;
|
|
410
|
-
|
|
416
|
+
newLowCodeReactionsHandler: (field: string) => void;
|
|
411
417
|
operationalFormHandler: {
|
|
412
418
|
trigger(fieldKey: string): void;
|
|
413
419
|
triggerAll(): void;
|
|
@@ -501,7 +507,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
501
507
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
502
508
|
requestInstance: import("../../..").FormRequestDefine.RequestInstance;
|
|
503
509
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
504
|
-
lowCodeReactions: import("../../..").LowCodeTypes.
|
|
510
|
+
lowCodeReactions: import("../../..").LowCodeTypes.reactionConfig[];
|
|
505
511
|
linebarAutoHidden: boolean;
|
|
506
512
|
bordered: string | boolean;
|
|
507
513
|
uniqueCacheData: boolean;
|
|
@@ -685,7 +691,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
685
691
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
686
692
|
}>;
|
|
687
693
|
NTabs: any;
|
|
688
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
694
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
689
695
|
fieldList: {
|
|
690
696
|
type: import("vue").PropType<FieldItem[]>;
|
|
691
697
|
};
|
|
@@ -818,7 +824,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
818
824
|
default: boolean;
|
|
819
825
|
};
|
|
820
826
|
lowCodeReactions: {
|
|
821
|
-
type: import("vue").PropType<import("../../..").LowCodeTypes.
|
|
827
|
+
type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
|
|
828
|
+
};
|
|
829
|
+
newLowCodeReactions: {
|
|
830
|
+
type: import("vue").PropType<import("../../..").LowCodeTypes.newReactionConfig[]>;
|
|
822
831
|
};
|
|
823
832
|
operationalForm: {
|
|
824
833
|
type: import("vue").PropType<import("../../..").LowCodeTypes.operationalConfig[]>;
|
|
@@ -854,7 +863,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
854
863
|
anchor: boolean;
|
|
855
864
|
maxHeight: string | number;
|
|
856
865
|
column: number;
|
|
857
|
-
forceClearable: boolean;
|
|
858
866
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
859
867
|
initialData: AnyObject;
|
|
860
868
|
parallelism: number;
|
|
@@ -865,6 +873,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
865
873
|
bordered: string | boolean;
|
|
866
874
|
uniqueCacheData: boolean;
|
|
867
875
|
outBordered: boolean;
|
|
876
|
+
forceClearable: boolean;
|
|
868
877
|
operationalFormInit: boolean;
|
|
869
878
|
}>;
|
|
870
879
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -97,7 +97,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
98
98
|
requestInstance: import("../../../../components/index").FormRequestDefine.RequestInstance;
|
|
99
99
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
100
|
-
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.
|
|
100
|
+
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
101
101
|
linebarAutoHidden: boolean;
|
|
102
102
|
bordered: string | boolean;
|
|
103
103
|
uniqueCacheData: boolean;
|
|
@@ -203,7 +203,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
203
203
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
204
204
|
requestInstance: import("../../../../components/index").FormRequestDefine.RequestInstance;
|
|
205
205
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
206
|
-
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.
|
|
206
|
+
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
207
207
|
linebarAutoHidden: boolean;
|
|
208
208
|
bordered: string | boolean;
|
|
209
209
|
uniqueCacheData: boolean;
|
|
@@ -378,6 +378,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
378
378
|
lazyRequest?: boolean | undefined;
|
|
379
379
|
requestCache?: boolean | undefined;
|
|
380
380
|
maxGroupNum?: number | undefined;
|
|
381
|
+
minGroupNum?: number | undefined;
|
|
381
382
|
jsonCombination?: boolean | undefined;
|
|
382
383
|
combinationItemDeletable?: boolean | import("../../../../components/form-render").CombinationItemDeletableFn | undefined;
|
|
383
384
|
children?: any[] | undefined;
|
|
@@ -2139,6 +2140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2139
2140
|
lazyRequest?: boolean | undefined;
|
|
2140
2141
|
requestCache?: boolean | undefined;
|
|
2141
2142
|
maxGroupNum?: number | undefined;
|
|
2143
|
+
minGroupNum?: number | undefined;
|
|
2142
2144
|
jsonCombination?: boolean | undefined;
|
|
2143
2145
|
combinationItemDeletable?: boolean | import("../../../../components/form-render").CombinationItemDeletableFn | undefined;
|
|
2144
2146
|
children?: any[] | undefined;
|
|
@@ -3873,6 +3875,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3873
3875
|
lazyRequest?: boolean | undefined;
|
|
3874
3876
|
requestCache?: boolean | undefined;
|
|
3875
3877
|
maxGroupNum?: number | undefined;
|
|
3878
|
+
minGroupNum?: number | undefined;
|
|
3876
3879
|
jsonCombination?: boolean | undefined;
|
|
3877
3880
|
combinationItemDeletable?: boolean | import("../../../../components/form-render").CombinationItemDeletableFn | undefined;
|
|
3878
3881
|
children?: any[] | undefined;
|
|
@@ -5590,7 +5593,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5590
5593
|
default: boolean;
|
|
5591
5594
|
};
|
|
5592
5595
|
lowCodeReactions: {
|
|
5593
|
-
type: PropType<import("../../../../shared/types").LowCodeTypes.
|
|
5596
|
+
type: PropType<import("../../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
5597
|
+
};
|
|
5598
|
+
newLowCodeReactions: {
|
|
5599
|
+
type: PropType<import("../../../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
5594
5600
|
};
|
|
5595
5601
|
operationalForm: {
|
|
5596
5602
|
type: PropType<import("../../../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -5752,7 +5758,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5752
5758
|
default: boolean;
|
|
5753
5759
|
};
|
|
5754
5760
|
lowCodeReactions: {
|
|
5755
|
-
type: PropType<import("../../../../shared/types").LowCodeTypes.
|
|
5761
|
+
type: PropType<import("../../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
5762
|
+
};
|
|
5763
|
+
newLowCodeReactions: {
|
|
5764
|
+
type: PropType<import("../../../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
5756
5765
|
};
|
|
5757
5766
|
operationalForm: {
|
|
5758
5767
|
type: PropType<import("../../../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -5785,7 +5794,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5785
5794
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
5786
5795
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
5787
5796
|
}>>;
|
|
5788
|
-
emit: (event: "
|
|
5797
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
5789
5798
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
5790
5799
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
5791
5800
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -5843,7 +5852,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5843
5852
|
[x: string]: any;
|
|
5844
5853
|
}>;
|
|
5845
5854
|
lowCodeReactionsHandler: (field: string) => void;
|
|
5846
|
-
|
|
5855
|
+
newLowCodeReactionsHandler: (field: string) => void;
|
|
5847
5856
|
operationalFormHandler: {
|
|
5848
5857
|
trigger(fieldKey: string): void;
|
|
5849
5858
|
triggerAll(): void;
|
|
@@ -5937,7 +5946,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5937
5946
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
5938
5947
|
requestInstance: import("../../../../components/index").FormRequestDefine.RequestInstance;
|
|
5939
5948
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
5940
|
-
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.
|
|
5949
|
+
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
5941
5950
|
linebarAutoHidden: boolean;
|
|
5942
5951
|
bordered: string | boolean;
|
|
5943
5952
|
uniqueCacheData: boolean;
|
|
@@ -6121,7 +6130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6121
6130
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
6122
6131
|
}>;
|
|
6123
6132
|
NTabs: any;
|
|
6124
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
6133
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6125
6134
|
fieldList: {
|
|
6126
6135
|
type: PropType<FieldItem[]>;
|
|
6127
6136
|
};
|
|
@@ -6254,7 +6263,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6254
6263
|
default: boolean;
|
|
6255
6264
|
};
|
|
6256
6265
|
lowCodeReactions: {
|
|
6257
|
-
type: PropType<import("../../../../shared/types").LowCodeTypes.
|
|
6266
|
+
type: PropType<import("../../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
6267
|
+
};
|
|
6268
|
+
newLowCodeReactions: {
|
|
6269
|
+
type: PropType<import("../../../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
6258
6270
|
};
|
|
6259
6271
|
operationalForm: {
|
|
6260
6272
|
type: PropType<import("../../../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -6290,7 +6302,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6290
6302
|
anchor: boolean;
|
|
6291
6303
|
maxHeight: string | number;
|
|
6292
6304
|
column: number;
|
|
6293
|
-
forceClearable: boolean;
|
|
6294
6305
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
6295
6306
|
initialData: import("../../../../shared/types").AnyObject;
|
|
6296
6307
|
parallelism: number;
|
|
@@ -6301,6 +6312,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6301
6312
|
bordered: string | boolean;
|
|
6302
6313
|
uniqueCacheData: boolean;
|
|
6303
6314
|
outBordered: boolean;
|
|
6315
|
+
forceClearable: boolean;
|
|
6304
6316
|
operationalFormInit: boolean;
|
|
6305
6317
|
}>;
|
|
6306
6318
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -6400,7 +6412,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6400
6412
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
6401
6413
|
requestInstance: import("../../../../components/index").FormRequestDefine.RequestInstance;
|
|
6402
6414
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
6403
|
-
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.
|
|
6415
|
+
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
6404
6416
|
linebarAutoHidden: boolean;
|
|
6405
6417
|
bordered: string | boolean;
|
|
6406
6418
|
uniqueCacheData: boolean;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
};
|
|
9
9
|
}, {
|
|
10
10
|
props: {
|
|
11
|
-
modelValue: LowCodeTypes.
|
|
11
|
+
modelValue: LowCodeTypes.reactionConfig[];
|
|
12
12
|
};
|
|
13
13
|
emit: (event: "update:modelValue" | "validateFailure", ...args: any[]) => void;
|
|
14
14
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
@@ -44,16 +44,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
expandedName: import("vue").Ref<string>;
|
|
45
45
|
addConnection: () => void;
|
|
46
46
|
removeConnection: (index: number) => void;
|
|
47
|
-
getOppositeBtnText: (item: LowCodeTypes.
|
|
48
|
-
unBindOpposite: (item: LowCodeTypes.
|
|
49
|
-
addOppositeCondition: (item: LowCodeTypes.
|
|
47
|
+
getOppositeBtnText: (item: LowCodeTypes.reactionConfig) => string | undefined;
|
|
48
|
+
unBindOpposite: (item: LowCodeTypes.reactionConfig) => void;
|
|
49
|
+
addOppositeCondition: (item: LowCodeTypes.reactionConfig) => void;
|
|
50
50
|
getOppositeSqlExpression: (expression?: string) => string | undefined;
|
|
51
|
-
createOppositeCondition: (config: LowCodeTypes.
|
|
52
|
-
isOppositeConfig: (c1: LowCodeTypes.
|
|
51
|
+
createOppositeCondition: (config: LowCodeTypes.reactionConfig) => LowCodeTypes.reactionConfig;
|
|
52
|
+
isOppositeConfig: (c1: LowCodeTypes.reactionConfig, c2: LowCodeTypes.reactionConfig) => boolean;
|
|
53
53
|
onUpdateExpandedNames: (value: string[]) => void;
|
|
54
54
|
getBinderFieldDesc: (index: number) => string;
|
|
55
|
-
addCondition: (config: LowCodeTypes.
|
|
56
|
-
removeCondition: (config: LowCodeTypes.
|
|
55
|
+
addCondition: (config: LowCodeTypes.reactionConfig) => void;
|
|
56
|
+
removeCondition: (config: LowCodeTypes.reactionConfig, index: number) => void;
|
|
57
57
|
onUpdateConditionType: (condition: LowCodeTypes.reactionsConObj, type: LowCodeTypes.VALUE_RELATION) => void;
|
|
58
58
|
showRef: import("vue").Ref<boolean>;
|
|
59
59
|
fieldListRef: import("vue").Ref<FormConfigItem[]>;
|
|
@@ -97,7 +97,7 @@ export declare const connectionTypeOptions: {
|
|
|
97
97
|
export declare const FORM_CONFIG_GROUP = "__display";
|
|
98
98
|
export declare const InjectionFieldList: InjectionKey<Ref<FormConfigItem[]>>;
|
|
99
99
|
export declare const InjectionMaterialList: InjectionKey<Ref<FormConfigItem[]>>;
|
|
100
|
-
export declare const InjectionLowCodeReactions: InjectionKey<Ref<LowCodeTypes.
|
|
100
|
+
export declare const InjectionLowCodeReactions: InjectionKey<Ref<LowCodeTypes.reactionConfig[]>>;
|
|
101
101
|
export declare const InjectionActiveFieldItem: InjectionKey<Ref<UndefinedAble<FormConfigItem>>>;
|
|
102
102
|
export declare const InjectionFormConfigEmit: InjectionKey<(event: 'addItem' | 'removeItem', ...args: unknown[]) => void>;
|
|
103
103
|
export declare const InjectionFormConfigProps: InjectionKey<AnyObject>;
|
|
@@ -49,11 +49,11 @@ export interface FormConfigTextFormatter {
|
|
|
49
49
|
}
|
|
50
50
|
export interface FormConfigExpose {
|
|
51
51
|
loadData(payload: Record<'fieldList', FormConfigItem[]> & {
|
|
52
|
-
lowCodeReactions?: LowCodeTypes.
|
|
52
|
+
lowCodeReactions?: LowCodeTypes.reactionConfig[];
|
|
53
53
|
}): void;
|
|
54
54
|
validate(): Promise<unknown>;
|
|
55
55
|
getData(withOriginalSetting?: boolean): Record<'fieldList' | 'materialList', FormConfigItem[]> & {
|
|
56
|
-
lowCodeReactions: LowCodeTypes.
|
|
56
|
+
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
57
57
|
};
|
|
58
58
|
clearExtraList(): void;
|
|
59
59
|
}
|
|
@@ -141,7 +141,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
143
|
lowCodeReactions: {
|
|
144
|
-
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.
|
|
144
|
+
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
145
|
+
};
|
|
146
|
+
newLowCodeReactions: {
|
|
147
|
+
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
145
148
|
};
|
|
146
149
|
operationalForm: {
|
|
147
150
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -303,7 +306,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
303
306
|
default: boolean;
|
|
304
307
|
};
|
|
305
308
|
lowCodeReactions: {
|
|
306
|
-
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.
|
|
309
|
+
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
310
|
+
};
|
|
311
|
+
newLowCodeReactions: {
|
|
312
|
+
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
307
313
|
};
|
|
308
314
|
operationalForm: {
|
|
309
315
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -336,7 +342,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
336
342
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
337
343
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
338
344
|
}>>;
|
|
339
|
-
emit: (event: "
|
|
345
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
340
346
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
341
347
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
342
348
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -394,7 +400,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
394
400
|
[x: string]: any;
|
|
395
401
|
}>;
|
|
396
402
|
lowCodeReactionsHandler: (field: string) => void;
|
|
397
|
-
|
|
403
|
+
newLowCodeReactionsHandler: (field: string) => void;
|
|
398
404
|
operationalFormHandler: {
|
|
399
405
|
trigger(fieldKey: string): void;
|
|
400
406
|
triggerAll(): void;
|
|
@@ -488,7 +494,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
488
494
|
businessFormatter: import("./src/types").FormBusinessFormatter;
|
|
489
495
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
490
496
|
enterToNextWidget: boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void);
|
|
491
|
-
lowCodeReactions: import("../../shared/types").LowCodeTypes.
|
|
497
|
+
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
492
498
|
linebarAutoHidden: boolean;
|
|
493
499
|
bordered: string | boolean;
|
|
494
500
|
uniqueCacheData: boolean;
|
|
@@ -672,7 +678,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
672
678
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
673
679
|
}>;
|
|
674
680
|
NTabs: any;
|
|
675
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
681
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
676
682
|
fieldList: {
|
|
677
683
|
type: import("vue").PropType<import("./src/types").FieldItem[]>;
|
|
678
684
|
};
|
|
@@ -805,7 +811,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
805
811
|
default: boolean;
|
|
806
812
|
};
|
|
807
813
|
lowCodeReactions: {
|
|
808
|
-
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.
|
|
814
|
+
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
815
|
+
};
|
|
816
|
+
newLowCodeReactions: {
|
|
817
|
+
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
809
818
|
};
|
|
810
819
|
operationalForm: {
|
|
811
820
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -841,7 +850,6 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
841
850
|
anchor: boolean;
|
|
842
851
|
maxHeight: string | number;
|
|
843
852
|
column: number;
|
|
844
|
-
forceClearable: boolean;
|
|
845
853
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
846
854
|
initialData: import("../../shared/types").AnyObject;
|
|
847
855
|
parallelism: number;
|
|
@@ -852,6 +860,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
852
860
|
bordered: string | boolean;
|
|
853
861
|
uniqueCacheData: boolean;
|
|
854
862
|
outBordered: boolean;
|
|
863
|
+
forceClearable: boolean;
|
|
855
864
|
operationalFormInit: boolean;
|
|
856
865
|
}>;
|
|
857
866
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{COMPONENT_NAMESPACE as e}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import s from"./src/FormRenderWrapper.vue.js";export{useAnchor}from"./src/hooks/useAnchor.js";export{useAutoHidden}from"./src/hooks/useAutoHidden.js";export{BusinessCollector,useBusinessBinding}from"./src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./src/hooks/useCommonInjection.js";export{useCommonLog}from"./src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./src/hooks/useFieldVisitor.js";export{useFormContext}from"./src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./src/hooks/useFormEvent.js";export{useFormField}from"./src/hooks/useFormField.js";export{useFormGraph}from"./src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./src/hooks/useOperationalForm.js";export{usePresetScope}from"./src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./src/hooks/useWordbookSetting.js";export{combineExtendKey,createInputSlot,createSlot,formRenderLog,getAbsoluteKey,injectOrProvide,isNestedFieldType,isNestedType,mergeDeepProperties,parseNumberFromMaybeString,renderDescOption,splitExtendKey,validateMessageParser}from"./src/utils/index.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./src/utils/schema.js";const r=s;r.install=function(s){o(s,r,e+"FormRender")};export{r as default};
|
|
1
|
+
import{COMPONENT_NAMESPACE as e}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import s from"./src/FormRenderWrapper.vue.js";export{useAnchor}from"./src/hooks/useAnchor.js";export{useAutoHidden}from"./src/hooks/useAutoHidden.js";export{BusinessCollector,useBusinessBinding}from"./src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./src/hooks/useCommonInjection.js";export{useCommonLog}from"./src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./src/hooks/useFieldVisitor.js";export{useFormContext}from"./src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./src/hooks/useFormEvent.js";export{useFormField}from"./src/hooks/useFormField.js";export{useFormGraph}from"./src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./src/hooks/useOperationalForm.js";export{usePresetScope}from"./src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./src/hooks/useNewLowCodeReactions.js";export{combineExtendKey,createInputSlot,createSlot,formRenderLog,getAbsoluteKey,injectOrProvide,isNestedFieldType,isNestedType,mergeDeepProperties,parseNumberFromMaybeString,renderDescOption,splitExtendKey,validateMessageParser}from"./src/utils/index.js";export{businessDateParser,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./src/utils/schema.js";const r=s;r.install=function(s){o(s,r,e+"FormRender")};export{r as default};
|
|
@@ -136,7 +136,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
136
|
default: boolean;
|
|
137
137
|
};
|
|
138
138
|
lowCodeReactions: {
|
|
139
|
-
type: PropType<LowCodeTypes.
|
|
139
|
+
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
140
|
+
};
|
|
141
|
+
newLowCodeReactions: {
|
|
142
|
+
type: PropType<LowCodeTypes.newReactionConfig[]>;
|
|
140
143
|
};
|
|
141
144
|
operationalForm: {
|
|
142
145
|
type: PropType<LowCodeTypes.operationalConfig[]>;
|
|
@@ -298,7 +301,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
298
301
|
default: boolean;
|
|
299
302
|
};
|
|
300
303
|
lowCodeReactions: {
|
|
301
|
-
type: PropType<LowCodeTypes.
|
|
304
|
+
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
305
|
+
};
|
|
306
|
+
newLowCodeReactions: {
|
|
307
|
+
type: PropType<LowCodeTypes.newReactionConfig[]>;
|
|
302
308
|
};
|
|
303
309
|
operationalForm: {
|
|
304
310
|
type: PropType<LowCodeTypes.operationalConfig[]>;
|
|
@@ -331,7 +337,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
331
337
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
332
338
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
333
339
|
}>>;
|
|
334
|
-
emit: (event: "
|
|
340
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
335
341
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
336
342
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
337
343
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -389,7 +395,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
389
395
|
[x: string]: any;
|
|
390
396
|
}>;
|
|
391
397
|
lowCodeReactionsHandler: (field: string) => void;
|
|
392
|
-
|
|
398
|
+
newLowCodeReactionsHandler: (field: string) => void;
|
|
393
399
|
operationalFormHandler: {
|
|
394
400
|
trigger(fieldKey: string): void;
|
|
395
401
|
triggerAll(): void;
|
|
@@ -483,7 +489,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
483
489
|
businessFormatter: FormBusinessFormatter;
|
|
484
490
|
requestInstance: FormRequestDefine.RequestInstance;
|
|
485
491
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
486
|
-
lowCodeReactions: LowCodeTypes.
|
|
492
|
+
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
487
493
|
linebarAutoHidden: boolean;
|
|
488
494
|
bordered: string | boolean;
|
|
489
495
|
uniqueCacheData: boolean;
|
|
@@ -667,7 +673,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
667
673
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
668
674
|
}>;
|
|
669
675
|
NTabs: any;
|
|
670
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
676
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
671
677
|
fieldList: {
|
|
672
678
|
type: PropType<FieldItem[]>;
|
|
673
679
|
};
|
|
@@ -800,7 +806,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
800
806
|
default: boolean;
|
|
801
807
|
};
|
|
802
808
|
lowCodeReactions: {
|
|
803
|
-
type: PropType<LowCodeTypes.
|
|
809
|
+
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
810
|
+
};
|
|
811
|
+
newLowCodeReactions: {
|
|
812
|
+
type: PropType<LowCodeTypes.newReactionConfig[]>;
|
|
804
813
|
};
|
|
805
814
|
operationalForm: {
|
|
806
815
|
type: PropType<LowCodeTypes.operationalConfig[]>;
|
|
@@ -836,7 +845,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
836
845
|
anchor: boolean;
|
|
837
846
|
maxHeight: string | number;
|
|
838
847
|
column: number;
|
|
839
|
-
forceClearable: boolean;
|
|
840
848
|
components: Record<string, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | FunctionalComponent<{}, {}>>;
|
|
841
849
|
initialData: AnyObject;
|
|
842
850
|
parallelism: number;
|
|
@@ -847,6 +855,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
847
855
|
bordered: string | boolean;
|
|
848
856
|
uniqueCacheData: boolean;
|
|
849
857
|
outBordered: boolean;
|
|
858
|
+
forceClearable: boolean;
|
|
850
859
|
operationalFormInit: boolean;
|
|
851
860
|
}>;
|
|
852
861
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as o,computed as t,provide as r,
|
|
1
|
+
import{defineComponent as e,ref as o,computed as t,provide as r,onUnmounted as s,openBlock as a,createBlock as i,unref as l,mergeProps as n,withCtx as m,createElementBlock as p,createVNode as d,isRef as u,Fragment as c,renderList as f,createCommentVNode as h,createElementVNode as y,normalizeStyle as j,withKeys as g,toDisplayString as b,renderSlot as k}from"vue";import{useTheme as v}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as C,cloneDeep as F}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NForm as S,NTabs as H,NTabPane as w,NConfigProvider as A}from"naive-ui";import{useVersion as L}from"../../../shared/hooks/useVersion.js";import{createForm as R,onFormMount as x,onFieldValueChange as B,onFieldMount as O,onFieldUnmount as I,onFieldReact as V}from"@formily/core";import{Path as _}from"@formily/path";import{FormProvider as N,FormConsumer as D}from"@formily/vue";import{InjectionFormLifeCycleCaller as q,InjectionFormGraph as W}from"./constants/index.js";import{createObjSchema as T}from"./utils/schema.js";import{useAnchor as U}from"./hooks/useAnchor.js";import{useAutoHidden as E}from"./hooks/useAutoHidden.js";import"../index.js";import{useComplexOptionsSpan as G}from"./hooks/useComplexOptions.js";import{useFieldListAdaptor as K}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{useFieldVisitor as M}from"./hooks/useFieldVisitor.js";import{useFormContext as P}from"./hooks/useFormContext.js";import{useFormDomEvent as J,useFormExposeEvent as $}from"./hooks/useFormEvent.js";import{useFormGraph as z}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as Q}from"./hooks/useFormRenderLifeCycle.js";import{validateMessageLocale as X}from"./hooks/useFormValidator.js";import{useLowCodeEvent as Y}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as Z}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as ee}from"./hooks/useNuiThemeOverrides.js";import{useOperationalForm as oe}from"./hooks/useOperationalForm.js";import{useWordbookSetting as te}from"./hooks/useWordbookSetting.js";import{useNewLowCodeReactions as re}from"./hooks/useNewLowCodeReactions.js";const se={key:0,style:{height:"54px"}},ae={style:{"white-space":"pre"}};var ie=e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},annotationShortcuts:{type:Array},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},newLowCodeReactions:{type:Array},operationalForm:{type:Array},dateOperationalForm:{type:Object},operationalFormInit:{type:Boolean,default:!0},linebarAutoHidden:{type:Boolean},bordered:{type:[Boolean,String],default:!0},outBordered:{type:Boolean,default:!1},uniqueCacheData:{type:Boolean,default:!1},forceClearable:Boolean},emits:["formChange","annotationChange","scroll"],setup(e,{expose:ie,emit:le}){const ne=e,me=v(),{nuiThemeOverrides:pe}=ee();X();const de=o(),ue=t((()=>C(ne.maxHeight)?ne.maxHeight+"px":ne.maxHeight)),{SchemaField:ce,businessCollector:fe,formItemDepsCollector:he,changeContextCollector:ye,formUUID:je}=P(ne,le),{anchorBarRef:ge,currentAnchor:be,updateAnchorList:ke,anchorIdList:ve,onScroll:Ce}=U(ne,le,de,he),{callLifeCycle:Fe}=Q(ne);r(q,Fe),Fe("onSetup");const{trigger:Se}=E(),{observeFormGraph:He,setGraph:we,removeGraph:Ae}=z();r(W,He);const{lowCodeEventTrigger:Le}=Y(),Re=R({initialValues:ne.initialData,effects(e){const o={};x((()=>{Object.assign(o,F(e.values))})),B("*",(t=>{const r=_.getIn(o,t.path);_.setIn(o,t.path,t.value);const s=t.props.name.toString();fe.trigger(e,s),he.trigger(t.path),le("formChange",{fieldInstance:t,fieldKey:s,oldValue:r,fieldName:t.title,value:t.value,context:ye.getContext(s,t.value)}),Le(t),xe(s),Be(s),Oe.trigger(s),Ie.trigger(s,t.value)})),O("*",we),O("*",(e=>{const o=e.props.name.toString();xe(o),Be(o),ne.operationalFormInit&&Oe.trigger(o)})),I("*",Ae),ne.linebarAutoHidden&&(V("*",Se),x((e=>e.query("*").forEach(Se)))),ne.anchor&&V("*",ke)}}),{lowCodeReactionsHandler:xe}=Z(t((()=>ne.lowCodeReactions)),Re),{newLowCodeReactionsHandler:Be}=re(t((()=>ne.newLowCodeReactions)),Re),Oe=oe(ne,Re),Ie=te().create(Re,ye),{schemaAdaptor:Ve}=K(fe,ne.lifeCycle);let _e=ne.fieldList||[];const Ne=t((()=>ne.schema?ne.schema:ne.fieldList?(_e=M().traverse(F(ne.fieldList),ne.fieldVisitor),T(Ve(_e,ne))):T({}))),{onKeydown:De}=J({formModel:Re,formRenderRef:de,props:ne}),{clearSpan:qe}=G();s((()=>qe(je)));const We=$({formModel:Re,formRenderRef:de,formItemDepsCollector:he,businessCollector:fe,wordbookSettingHandler:Ie,operationalFormHandler:Oe,getFieldList:()=>_e,formUUID:je});return ie({formModel:Re,validate:(e="*",o={})=>We.validate(e,o),getFormValues:(e=!0)=>We.getFormValues(e),setFormValues:async(e,o={})=>We.setFormValues(e,o),setFieldState(e,o){We.setFieldState(e,o)},resetFields(e="*"){We.resetFields(e)},queryWidget:async e=>We.queryWidget(e),getFieldList:()=>_e,async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(a(),i(l(S),n({class:["form-render",{"form-render--out-border":e.outBordered}],"require-mark-placement":"left",style:l(me)},l(L)()),{default:m((()=>[e.anchor?(a(),p("section",se,[d(l(H),{value:l(be),"onUpdate:value":t[0]||(t[0]=e=>u(be)?be.value=e:null),type:"line",ref_key:"anchorBarRef",ref:ge},{default:m((()=>[(a(!0),p(c,null,f(l(ve),(e=>(a(),i(l(w),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):h("v-if",!0),d(l(A),{"theme-overrides":l(pe)},{default:m((()=>[y("section",{class:"form-render__wrapper",style:j({"--column":e.column,"--form-height":l(ue)}),ref_key:"formRenderRef",ref:de,onScroll:t[1]||(t[1]=(...e)=>l(Ce)&&l(Ce)(...e)),onKeydownCapture:t[2]||(t[2]=g(((...e)=>l(De)&&l(De)(...e)),["enter"]))},[d(l(N),{form:l(Re)},{default:m((()=>[d(l(ce),{schema:l(Ne)},null,8,["schema"]),e.consumer?(a(),i(l(D),{key:0},{default:m((({form:e})=>[y("div",ae,b(JSON.stringify(e.values,null,2)),1)])),_:1})):h("v-if",!0),k(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},16,["class","style"]))}});export{ie as default};
|
|
@@ -139,7 +139,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
139
139
|
default: boolean;
|
|
140
140
|
};
|
|
141
141
|
lowCodeReactions: {
|
|
142
|
-
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.
|
|
142
|
+
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
143
|
+
};
|
|
144
|
+
newLowCodeReactions: {
|
|
145
|
+
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
143
146
|
};
|
|
144
147
|
operationalForm: {
|
|
145
148
|
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -301,7 +304,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
301
304
|
default: boolean;
|
|
302
305
|
};
|
|
303
306
|
lowCodeReactions: {
|
|
304
|
-
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.
|
|
307
|
+
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
308
|
+
};
|
|
309
|
+
newLowCodeReactions: {
|
|
310
|
+
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
305
311
|
};
|
|
306
312
|
operationalForm: {
|
|
307
313
|
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -334,7 +340,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
334
340
|
onScroll?: ((...args: any[]) => any) | undefined;
|
|
335
341
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
336
342
|
}>>;
|
|
337
|
-
emit: (event: "
|
|
343
|
+
emit: (event: "scroll" | "formChange" | "annotationChange", ...args: any[]) => void;
|
|
338
344
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
339
345
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
340
346
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
@@ -392,7 +398,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
392
398
|
[x: string]: any;
|
|
393
399
|
}>;
|
|
394
400
|
lowCodeReactionsHandler: (field: string) => void;
|
|
395
|
-
|
|
401
|
+
newLowCodeReactionsHandler: (field: string) => void;
|
|
396
402
|
operationalFormHandler: {
|
|
397
403
|
trigger(fieldKey: string): void;
|
|
398
404
|
triggerAll(): void;
|
|
@@ -486,7 +492,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
486
492
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
487
493
|
requestInstance: import("../..").FormRequestDefine.RequestInstance;
|
|
488
494
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
489
|
-
lowCodeReactions: import("../../../shared/types").LowCodeTypes.
|
|
495
|
+
lowCodeReactions: import("../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
490
496
|
linebarAutoHidden: boolean;
|
|
491
497
|
bordered: string | boolean;
|
|
492
498
|
uniqueCacheData: boolean;
|
|
@@ -670,7 +676,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
670
676
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
671
677
|
}>;
|
|
672
678
|
NTabs: any;
|
|
673
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
679
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange")[], "scroll" | "formChange" | "annotationChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
674
680
|
fieldList: {
|
|
675
681
|
type: import("vue").PropType<import("../../../components/form-render").FieldItem[]>;
|
|
676
682
|
};
|
|
@@ -803,7 +809,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
803
809
|
default: boolean;
|
|
804
810
|
};
|
|
805
811
|
lowCodeReactions: {
|
|
806
|
-
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.
|
|
812
|
+
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
813
|
+
};
|
|
814
|
+
newLowCodeReactions: {
|
|
815
|
+
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.newReactionConfig[]>;
|
|
807
816
|
};
|
|
808
817
|
operationalForm: {
|
|
809
818
|
type: import("vue").PropType<import("../../../shared/types").LowCodeTypes.operationalConfig[]>;
|
|
@@ -839,7 +848,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
839
848
|
anchor: boolean;
|
|
840
849
|
maxHeight: string | number;
|
|
841
850
|
column: number;
|
|
842
|
-
forceClearable: boolean;
|
|
843
851
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
844
852
|
initialData: import("../../../shared/types").AnyObject;
|
|
845
853
|
parallelism: number;
|
|
@@ -850,6 +858,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
850
858
|
bordered: string | boolean;
|
|
851
859
|
uniqueCacheData: boolean;
|
|
852
860
|
outBordered: boolean;
|
|
861
|
+
forceClearable: boolean;
|
|
853
862
|
operationalFormInit: boolean;
|
|
854
863
|
}>;
|
|
855
864
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|