cnhis-design-vue 3.1.57-release.1 → 3.1.57-release.3
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/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/index.d.ts +3 -3
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -3
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -3
- package/es/components/classification/src/index.vue.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/expand-field/index.d.ts +98 -26
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +95 -23
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +95 -23
- package/es/components/expand-field/src/components/form.vue.d.ts +98 -26
- package/es/components/expand-field/src/index.vue.d.ts +98 -26
- 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 +79 -42
- package/es/components/form-config/src/FormConfig.vue.d.ts +79 -42
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +17 -8
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +5 -2
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
- 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/components/renderer/ComplexNode.vue.d.ts +5 -2
- package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +3 -2
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +16 -12
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +14 -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/filterDaterangeRenderPlugin/filter.vue.d.ts +1 -1
- 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/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.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/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/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 +95 -23
- package/es/components/select-person/src/SelectPerson.vue.d.ts +84 -17
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/types/enums.d.ts +9 -0
- package/es/components/select-person/src/types/enums.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/SaveProjectModal.vue.d.ts +3 -3
- package/es/components/table-export-field/src/index.vue.d.ts +3 -3
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +2 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
- package/es/components/time-line/index.d.ts +7 -7
- package/es/components/time-line/src/TimeLine.vue.d.ts +3 -3
- 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
|
@@ -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[]>;
|
|
@@ -35,11 +35,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
required: true;
|
|
36
36
|
};
|
|
37
37
|
}, {
|
|
38
|
+
globProps: import("../../../..").AnyObject | undefined;
|
|
38
39
|
getItemColumnStyle: (formConfigItem?: FormConfigItem | undefined) => {
|
|
39
40
|
'--item-column': number;
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
fieldList: import("vue").Ref<FormConfigItem[]> | undefined;
|
|
43
|
+
materialList: import("vue").Ref<FormConfigItem[]> | undefined;
|
|
44
|
+
getSortOption: (formConfigItem?: FormConfigItem | undefined) => {
|
|
43
45
|
move: ({ to, from, dragged }: import("sortablejs").MoveEvent) => false | undefined;
|
|
44
46
|
onChoose: ({ target, item }: import("sortablejs").SortableEvent) => void;
|
|
45
47
|
onUnchoose: ({ from, to, target, item }: import("sortablejs").SortableEvent) => void;
|
|
@@ -49,6 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
51
|
'item-key': string;
|
|
50
52
|
group: string;
|
|
51
53
|
};
|
|
54
|
+
getRenderer: (formConfigItem: FormConfigItem) => import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>;
|
|
52
55
|
Draggable: import("vue").DefineComponent<{
|
|
53
56
|
list: {
|
|
54
57
|
type: ArrayConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as o,computed as r,openBlock as
|
|
1
|
+
import{defineComponent as e,inject as o,computed as r,openBlock as t,createElementBlock as m,createElementVNode as a,mergeProps as f,unref as i,withModifiers as n,createTextVNode as d,toDisplayString as l,createVNode as p}from"vue";import c from"../FormConfigDragDisplay.vue.js";import g from"./CloseButton.vue.js";import{InjectionActiveFieldItem as s}from"../../constants/index.js";import{bindHover as u}from"../../utils/index.js";const C=["data-type","data-key","data-required","data-extra"],I=["onClick"];var y=e({__name:"ComplexNode",props:{formConfigItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0}},setup(e){const y=e,x=o(s);function _(){x.value=y.formConfigItem}const k=r((()=>[{"is-active":x.value===y.formConfigItem},"form-config__renderer--complexHeader"]));return(o,r)=>(t(),m("section",{class:"form-config__renderer--complex form-config__renderer","data-type":e.formConfigItem.type,"data-key":e.formConfigItem.key,"data-required":!!e.formConfigItem.required,"data-extra":!!e.formConfigItem.__extra},[a("header",f(i(u)(e.formConfigItem),{class:i(k),onClick:n(_,["stop"])}),[d(l(y.formConfigItem.name)+" ",1),p(g,{"form-config-item":e.formConfigItem},null,8,["form-config-item"])],16,I),p(c,f(o.$props,{modelValue:e.formConfigItem.children,"onUpdate:modelValue":r[0]||(r[0]=o=>e.formConfigItem.children=o),class:"form-config__renderer--complex--grid","data-type":e.formConfigItem.type,"data-key":e.formConfigItem.key,"data-required":!!e.formConfigItem.required,"data-extra":!!e.formConfigItem.__extra}),null,16,["modelValue","data-type","data-key","data-required","data-extra"])],8,C))}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as
|
|
1
|
+
import{defineComponent as e,inject as t,computed as o,openBlock as r,createElementBlock as i,mergeProps as f,unref as m,withModifiers as n,createVNode as a,normalizeClass as l,withCtx as d,createTextVNode as u,toDisplayString as s,renderSlot as C,createBlock as g,createCommentVNode as c}from"vue";import{NEllipsis as p}from"naive-ui";import I from"./CloseButton.vue.js";import{InjectionActiveFieldItem as _,WidgetTextMap as v}from"../../constants/index.js";import{bindHover as y}from"../../utils/index.js";const x=["onClick","data-type","data-key","data-required","data-extra"];var k=e({__name:"DefaultNode",props:{formConfigItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0},showCloseButton:{type:Boolean,default:!0},allowClick:{type:Boolean,default:!0}},setup(e){const k=e,q=t(_);function B(){k.allowClick&&(q.value=k.formConfigItem)}const b=o((()=>["form-config__renderer--default",{"is-required":k.formConfigItem.required}])),j=o((()=>{var e;return[{"is-active":q.value===k.formConfigItem,"is-disabled":w.value,"is-extra":null==(e=k.formConfigItem)?void 0:e.__extra},"form-config__renderer","form-config__renderer--defaultWrapper"]})),w=o((()=>!1===k.formConfigItem.editable)),$=o((()=>{const e=v.get(k.formConfigItem.type);return k.textFormatter(k.formConfigItem,`${k.formConfigItem.name}${e?`(${e})`:""}`)})),h=o((()=>k.showCloseButton&&(!k.formConfigItem.required&&!k.formConfigItem.__isCombinationChild||k.formConfigItem.__extra)));return(t,o)=>(r(),i("div",f(m(y)(e.formConfigItem),{onClick:n(B,["stop"]),class:m(j),"data-type":e.formConfigItem.type,"data-key":e.formConfigItem.key,"data-required":!!e.formConfigItem.required,"data-extra":!!e.formConfigItem.__extra}),[a(m(p),{class:l(m(b))},{default:d((()=>[u(s(m($)),1)])),_:1},8,["class"]),C(t.$slots,"default"),m(h)?(r(),g(I,{key:0,"form-config-item":e.formConfigItem},null,8,["form-config-item"])):c("v-if",!0)],16,x))}});export{k as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LowCodeTypes, UndefinedAble } from '../../../../shared/types';
|
|
1
|
+
import { AnyObject, LowCodeTypes, UndefinedAble } from '../../../../shared/types';
|
|
2
2
|
import { InjectionKey, Ref } from 'vue';
|
|
3
3
|
import { FormConfigItem } from '../../../../components/form-config';
|
|
4
4
|
export declare const WidgetTextMap: Map<string, string>;
|
|
@@ -97,6 +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
|
+
export declare const InjectionFormConfigProps: InjectionKey<AnyObject>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{range as e}from"lodash-es";const l=new Map([["LINE_BAR","分线栏"],["NEWLINE","分行符"]]);var a=(e=>(e.NAME="name",e.NOTES="notes",e.DEFAULT_VALUE="defaultValue",e.LAYOUT_WIDTH_ENUM="layoutWidthEnum",e.DESC="desc",e.DEFAULT_EXPAND="defaultExpand",e.FOLD="fold",e.REQUIRED="required",e.EDITABLE="editable",e.SHOW="show",e.ROWS="initialHigh",e))(a||{});function i(){return{option:[{text:"整行",value:"ALL_LINE"},{text:"半行",value:"HALF_LINE"},{text:"5/6",value:"FIVE_SIX"},{text:"2/3",value:"TWO_THREE"},{text:"1/3",value:"ONE_THREE"},{text:"3/4",value:"THREE_FOUR"},{text:"1/4",value:"ONE_FOUR"},{text:"1/6",value:"ONE_SIX"},{text:"1/8",value:"ONE_EIGHT"}]}}function t(){return{option:e(1,11).map((e=>({text:`${e}行`,value:e})))}}function u(){return{open:{describe:"默认展开",value:!0},close:{describe:"默认收起",value:!1}}}function d(){return{open:{describe:"可折叠",value:!0},close:{describe:"不可折叠",value:!1}}}function n(){return{open:{describe:"可编辑",value:!0},close:{describe:"不可编辑",value:!1}}}function o(){return{open:{describe:"必填",value:!0},close:{describe:"不必填",value:!1}}}function E(){return{open:{describe:"显示",value:!0},close:{describe:"隐藏",value:!1}}}const r={EQ:"NEQ",NEQ:"EQ",CL:"NC",NC:"CL",NULL:"NOT_NULL",NOT_NULL:"NULL",BIG:"LESSEQ",BIGEQ:"LESS",LESS:"BIGEQ",LESSEQ:"BIG"},b=[{value:"EQ",label:"等于"},{value:"NEQ",label:"不等于"},{value:"CL",label:"包含"},{value:"NC",label:"不包含"},{value:"NULL",label:"为空"},{value:"NOT_NULL",label:"不为空"},{value:"BIG",label:"大于"},{value:"BIGEQ",label:"大于等于"},{value:"LESS",label:"小于"},{value:"LESSEQ",label:"小于等于"}],v={showField:"hideField",hideField:"showField",requiredField:"notRequiredField",notRequiredField:"requiredField",enabledField:"disabledField",disabledField:"enabledField"},L=[{value:"showField",label:"显示字段"},{value:"hideField",label:"隐藏字段"},{value:"requiredField",label:"必填字段"},{value:"notRequiredField",label:"非必填字段"},{value:"enabledField",label:"启用字段"},{value:"disabledField",label:"禁用字段"}],c="__display",s=Symbol("InjectionFieldList"),F=Symbol("InjectionMaterialList"),N=Symbol("InjectionLowCodeReactions"),I=Symbol("InjectionActiveFieldItem"),S=Symbol("InjectionFormConfigEmit");export{a as EditAbleField,c as FORM_CONFIG_GROUP,I as InjectionActiveFieldItem,s as InjectionFieldList,S as InjectionFormConfigEmit,N as InjectionLowCodeReactions,F as InjectionMaterialList,l as WidgetTextMap,r as conditionOppositeMap,b as conditionTypeOptions,v as connectionTypeOppositeMap,L as connectionTypeOptions,n as isEditOptionConfig,d as isNotFoldOptionConfig,o as isNullOptionConfig,u as isShowOptionConfig,E as isVisibleOptionConfig,t as rowsOptionConfig,i as widgetWidthOptionConfig};
|
|
1
|
+
import{range as e}from"lodash-es";const l=new Map([["LINE_BAR","分线栏"],["NEWLINE","分行符"]]);var a=(e=>(e.NAME="name",e.NOTES="notes",e.DEFAULT_VALUE="defaultValue",e.LAYOUT_WIDTH_ENUM="layoutWidthEnum",e.DESC="desc",e.DEFAULT_EXPAND="defaultExpand",e.FOLD="fold",e.REQUIRED="required",e.EDITABLE="editable",e.SHOW="show",e.ROWS="initialHigh",e))(a||{});function i(){return{option:[{text:"整行",value:"ALL_LINE"},{text:"半行",value:"HALF_LINE"},{text:"5/6",value:"FIVE_SIX"},{text:"2/3",value:"TWO_THREE"},{text:"1/3",value:"ONE_THREE"},{text:"3/4",value:"THREE_FOUR"},{text:"1/4",value:"ONE_FOUR"},{text:"1/6",value:"ONE_SIX"},{text:"1/8",value:"ONE_EIGHT"}]}}function t(){return{option:e(1,11).map((e=>({text:`${e}行`,value:e})))}}function u(){return{open:{describe:"默认展开",value:!0},close:{describe:"默认收起",value:!1}}}function d(){return{open:{describe:"可折叠",value:!0},close:{describe:"不可折叠",value:!1}}}function n(){return{open:{describe:"可编辑",value:!0},close:{describe:"不可编辑",value:!1}}}function o(){return{open:{describe:"必填",value:!0},close:{describe:"不必填",value:!1}}}function E(){return{open:{describe:"显示",value:!0},close:{describe:"隐藏",value:!1}}}const r={EQ:"NEQ",NEQ:"EQ",CL:"NC",NC:"CL",NULL:"NOT_NULL",NOT_NULL:"NULL",BIG:"LESSEQ",BIGEQ:"LESS",LESS:"BIGEQ",LESSEQ:"BIG"},b=[{value:"EQ",label:"等于"},{value:"NEQ",label:"不等于"},{value:"CL",label:"包含"},{value:"NC",label:"不包含"},{value:"NULL",label:"为空"},{value:"NOT_NULL",label:"不为空"},{value:"BIG",label:"大于"},{value:"BIGEQ",label:"大于等于"},{value:"LESS",label:"小于"},{value:"LESSEQ",label:"小于等于"}],v={showField:"hideField",hideField:"showField",requiredField:"notRequiredField",notRequiredField:"requiredField",enabledField:"disabledField",disabledField:"enabledField"},L=[{value:"showField",label:"显示字段"},{value:"hideField",label:"隐藏字段"},{value:"requiredField",label:"必填字段"},{value:"notRequiredField",label:"非必填字段"},{value:"enabledField",label:"启用字段"},{value:"disabledField",label:"禁用字段"}],c="__display",s=Symbol("InjectionFieldList"),F=Symbol("InjectionMaterialList"),N=Symbol("InjectionLowCodeReactions"),I=Symbol("InjectionActiveFieldItem"),S=Symbol("InjectionFormConfigEmit"),_=Symbol("InjectionFormConfigProps");export{a as EditAbleField,c as FORM_CONFIG_GROUP,I as InjectionActiveFieldItem,s as InjectionFieldList,S as InjectionFormConfigEmit,_ as InjectionFormConfigProps,N as InjectionLowCodeReactions,F as InjectionMaterialList,l as WidgetTextMap,r as conditionOppositeMap,b as conditionTypeOptions,v as connectionTypeOppositeMap,L as connectionTypeOptions,n as isEditOptionConfig,d as isNotFoldOptionConfig,o as isNullOptionConfig,u as isShowOptionConfig,E as isVisibleOptionConfig,t as rowsOptionConfig,i as widgetWidthOptionConfig};
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
import { MaybeRef } from '@vueuse/core';
|
|
1
2
|
import Sortable from 'sortablejs';
|
|
2
|
-
import { FormConfigItem } from '../../../../components/form-config';
|
|
3
|
-
export declare function useSortableConfig(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
import { FormConfigHooks, FormConfigItem } from '../../../../components/form-config';
|
|
4
|
+
export declare function useSortableConfig({ group, hooks, fieldList, materialList }?: {
|
|
5
|
+
group?: string;
|
|
6
|
+
hooks?: FormConfigHooks;
|
|
7
|
+
fieldList?: MaybeRef<FormConfigItem[]>;
|
|
8
|
+
materialList?: MaybeRef<FormConfigItem[]>;
|
|
9
|
+
}): {
|
|
10
|
+
move: ({ to, from, dragged }: Sortable.MoveEvent) => false | undefined;
|
|
11
|
+
onChoose: ({ target, item }: Sortable.SortableEvent) => void;
|
|
12
|
+
onUnchoose: ({ from, to, target, item }: Sortable.SortableEvent) => void;
|
|
13
|
+
tag: string;
|
|
14
|
+
forceFallback: boolean;
|
|
15
|
+
animation: string;
|
|
16
|
+
'item-key': string;
|
|
17
|
+
group: string;
|
|
14
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findAncestor as o}from"../../../../shared/utils/index.js";import{
|
|
1
|
+
import{findAncestor as e,traverse as o}from"../../../../shared/utils/index.js";import{isFunction as t}from"lodash-es";import{unref as s}from"vue";import{FORM_CONFIG_GROUP as i}from"../constants/index.js";function a({group:a,hooks:r={},fieldList:n,materialList:c}={}){let l,m=null;return{move:function({to:i,from:a,dragged:m}){const{type:f,required:d,extra:u,key:g}=m.dataset||{};if("LINE_BAR"===f&&e(i,(e=>"LINE_BAR"===e.dataset.type)))return!1;const y=e(i,(e=>e.classList.contains("form-config__materialContent"))),h=e(a,(e=>e.classList.contains("form-config__materialContent")));if("true"===d&&"true"!==u&&y)return!1;if(t(r.beforeMove)){const e=[...s(n||[]),...s(c||[])];let t,l,m;o(e,((e,o)=>{t||e.key!==g||(t=e),l||e.key!==a.dataset.key||(l=e),m||e.key!==i.dataset.key||(m=e),t&&l&&m&&o()}));if(!1===r.beforeMove({fromType:h?"material":"layout",toType:y?"material":"layout",dragField:t,fromField:l,toField:m,from:a,to:i}))return!1}null==l||l.classList.remove("is-choosing-area"),l=i,i!==a&&a.classList.remove("is-choosing-area"),i.classList.add("is-choosing-area")},onChoose:function({target:e,item:o}){m=setTimeout((()=>{e.classList.add("is-choosing-area"),o.classList.add("is-choosing")}),200)},onUnchoose:function({from:e,to:o,target:t,item:s}){clearTimeout(m),[e,o,t].forEach((e=>{e.classList.remove("is-choosing-area")})),s.classList.remove("is-choosing")},tag:"section",forceFallback:!1,animation:"150","item-key":"key",group:a||i}}export{a as useSortableConfig};
|
|
@@ -9,6 +9,18 @@ export declare type FormConfigRenderer = {
|
|
|
9
9
|
renderer: Component | FunctionalComponent;
|
|
10
10
|
};
|
|
11
11
|
export declare type FormConfigType = 'NEWLINE' | 'LINE_BAR' | 'OTHER' | string;
|
|
12
|
+
export declare type FormConfigBeforeMovePayload = {
|
|
13
|
+
fromType: 'material' | 'layout';
|
|
14
|
+
toType: 'material' | 'layout';
|
|
15
|
+
dragField?: FormConfigItem;
|
|
16
|
+
fromField?: FormConfigItem;
|
|
17
|
+
toField?: FormConfigItem;
|
|
18
|
+
from: HTMLElement;
|
|
19
|
+
to: HTMLElement;
|
|
20
|
+
};
|
|
21
|
+
export declare type FormConfigHooks = {
|
|
22
|
+
beforeMove?: (payload: FormConfigBeforeMovePayload) => void | boolean;
|
|
23
|
+
};
|
|
12
24
|
export declare type FormConfigWidth = 'ALL_LINE' | 'HALF_LINE' | 'FIVE_SIX' | 'TWO_THREE' | 'ONE_THREE' | 'THREE_FOUR' | 'ONE_FOUR' | 'ONE_SIX' | 'ONE_EIGHT';
|
|
13
25
|
export declare type FormConfigItem = {
|
|
14
26
|
key: string;
|
|
@@ -37,11 +49,11 @@ export interface FormConfigTextFormatter {
|
|
|
37
49
|
}
|
|
38
50
|
export interface FormConfigExpose {
|
|
39
51
|
loadData(payload: Record<'fieldList', FormConfigItem[]> & {
|
|
40
|
-
lowCodeReactions?: LowCodeTypes.
|
|
52
|
+
lowCodeReactions?: LowCodeTypes.reactionConfig[];
|
|
41
53
|
}): void;
|
|
42
54
|
validate(): Promise<unknown>;
|
|
43
55
|
getData(withOriginalSetting?: boolean): Record<'fieldList' | 'materialList', FormConfigItem[]> & {
|
|
44
|
-
lowCodeReactions: LowCodeTypes.
|
|
56
|
+
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
45
57
|
};
|
|
46
58
|
clearExtraList(): void;
|
|
47
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};
|