cnhis-design-vue 3.1.55-release.2 → 3.1.56-beta.7
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/annotation-edit/index.d.ts +18 -0
- package/es/components/annotation-edit/src/AnnotationEdit.d.ts +18 -0
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/src/type.d.ts +4 -0
- package/es/components/audio-sdk/src/audioSDK.d.ts +20 -6
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +14 -0
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
- package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +5 -2
- package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +14 -0
- package/es/components/base-search/src/index.vue.d.ts +14 -0
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/button-print/src/utils/print.d.ts +3 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +26 -4
- package/es/components/classification/index.d.ts +20 -22
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +20 -22
- package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +9 -20
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +20 -22
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- 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/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.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/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/form-config/index.d.ts +82 -14
- package/es/components/form-config/src/FormConfig.vue.d.ts +82 -14
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +41 -7
- package/es/components/form-render/index.d.ts +26 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +27 -4
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -4
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +1 -0
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +10 -2
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +3 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +77 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +77 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +5 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -5
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -4
- package/es/components/recommend-search/index.d.ts +8 -8
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +8 -8
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +3 -3
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/shortcut-setter/index.d.ts +26 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +26 -4
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +15 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +15 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +15 -0
- 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/hooks/selectHooks/useSelectRenders.d.ts +1 -1
- package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/package.json +2 -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
|
@@ -89,7 +89,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
89
|
}>;
|
|
90
90
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
91
91
|
scope: import("../../../shared/types").AnyObject;
|
|
92
|
-
annotation: import("
|
|
92
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
93
|
+
annotationShortcuts: (string | {
|
|
94
|
+
label: string;
|
|
95
|
+
value: string;
|
|
96
|
+
})[] | undefined;
|
|
93
97
|
consumer: boolean;
|
|
94
98
|
uuid: string;
|
|
95
99
|
lifeCycle: Partial<{
|
|
@@ -200,7 +204,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
200
204
|
}>;
|
|
201
205
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
202
206
|
scope: import("../../../shared/types").AnyObject;
|
|
203
|
-
annotation: import("
|
|
207
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
208
|
+
annotationShortcuts: (string | {
|
|
209
|
+
label: string;
|
|
210
|
+
value: string;
|
|
211
|
+
})[] | undefined;
|
|
204
212
|
consumer: boolean;
|
|
205
213
|
uuid: string;
|
|
206
214
|
lifeCycle: Partial<{
|
|
@@ -7473,7 +7481,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7473
7481
|
default: () => {};
|
|
7474
7482
|
};
|
|
7475
7483
|
annotation: {
|
|
7476
|
-
type: PropType<import("
|
|
7484
|
+
type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
7485
|
+
};
|
|
7486
|
+
annotationShortcuts: {
|
|
7487
|
+
type: PropType<(string | {
|
|
7488
|
+
label: string;
|
|
7489
|
+
value: string;
|
|
7490
|
+
})[] | undefined>;
|
|
7477
7491
|
};
|
|
7478
7492
|
consumer: {
|
|
7479
7493
|
type: BooleanConstructor;
|
|
@@ -7629,7 +7643,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7629
7643
|
default: () => {};
|
|
7630
7644
|
};
|
|
7631
7645
|
annotation: {
|
|
7632
|
-
type: PropType<import("
|
|
7646
|
+
type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
7647
|
+
};
|
|
7648
|
+
annotationShortcuts: {
|
|
7649
|
+
type: PropType<(string | {
|
|
7650
|
+
label: string;
|
|
7651
|
+
value: string;
|
|
7652
|
+
})[] | undefined>;
|
|
7633
7653
|
};
|
|
7634
7654
|
consumer: {
|
|
7635
7655
|
type: BooleanConstructor;
|
|
@@ -7823,7 +7843,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7823
7843
|
}>;
|
|
7824
7844
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
7825
7845
|
scope: import("../../../shared/types").AnyObject;
|
|
7826
|
-
annotation: import("
|
|
7846
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
7847
|
+
annotationShortcuts: (string | {
|
|
7848
|
+
label: string;
|
|
7849
|
+
value: string;
|
|
7850
|
+
})[] | undefined;
|
|
7827
7851
|
consumer: boolean;
|
|
7828
7852
|
uuid: string;
|
|
7829
7853
|
lifeCycle: Partial<{
|
|
@@ -8121,7 +8145,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8121
8145
|
default: () => {};
|
|
8122
8146
|
};
|
|
8123
8147
|
annotation: {
|
|
8124
|
-
type: PropType<import("
|
|
8148
|
+
type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
8149
|
+
};
|
|
8150
|
+
annotationShortcuts: {
|
|
8151
|
+
type: PropType<(string | {
|
|
8152
|
+
label: string;
|
|
8153
|
+
value: string;
|
|
8154
|
+
})[] | undefined>;
|
|
8125
8155
|
};
|
|
8126
8156
|
consumer: {
|
|
8127
8157
|
type: BooleanConstructor;
|
|
@@ -8386,7 +8416,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8386
8416
|
}>;
|
|
8387
8417
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
8388
8418
|
scope: import("../../../shared/types").AnyObject;
|
|
8389
|
-
annotation: import("
|
|
8419
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
8420
|
+
annotationShortcuts: (string | {
|
|
8421
|
+
label: string;
|
|
8422
|
+
value: string;
|
|
8423
|
+
})[] | undefined;
|
|
8390
8424
|
consumer: boolean;
|
|
8391
8425
|
uuid: string;
|
|
8392
8426
|
lifeCycle: Partial<{
|
|
@@ -8488,7 +8522,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8488
8522
|
}>;
|
|
8489
8523
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
8490
8524
|
scope: import("../../../shared/types").AnyObject;
|
|
8491
|
-
annotation: import("
|
|
8525
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
8526
|
+
annotationShortcuts: (string | {
|
|
8527
|
+
label: string;
|
|
8528
|
+
value: string;
|
|
8529
|
+
})[] | undefined;
|
|
8492
8530
|
consumer: boolean;
|
|
8493
8531
|
uuid: string;
|
|
8494
8532
|
lifeCycle: Partial<{
|
|
@@ -13856,7 +13894,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13856
13894
|
default: () => {};
|
|
13857
13895
|
};
|
|
13858
13896
|
annotation: {
|
|
13859
|
-
type: PropType<import("
|
|
13897
|
+
type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
13898
|
+
};
|
|
13899
|
+
annotationShortcuts: {
|
|
13900
|
+
type: PropType<(string | {
|
|
13901
|
+
label: string;
|
|
13902
|
+
value: string;
|
|
13903
|
+
})[] | undefined>;
|
|
13860
13904
|
};
|
|
13861
13905
|
consumer: {
|
|
13862
13906
|
type: BooleanConstructor;
|
|
@@ -14012,7 +14056,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14012
14056
|
default: () => {};
|
|
14013
14057
|
};
|
|
14014
14058
|
annotation: {
|
|
14015
|
-
type: PropType<import("
|
|
14059
|
+
type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
14060
|
+
};
|
|
14061
|
+
annotationShortcuts: {
|
|
14062
|
+
type: PropType<(string | {
|
|
14063
|
+
label: string;
|
|
14064
|
+
value: string;
|
|
14065
|
+
})[] | undefined>;
|
|
14016
14066
|
};
|
|
14017
14067
|
consumer: {
|
|
14018
14068
|
type: BooleanConstructor;
|
|
@@ -14206,7 +14256,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14206
14256
|
}>;
|
|
14207
14257
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
14208
14258
|
scope: import("../../../shared/types").AnyObject;
|
|
14209
|
-
annotation: import("
|
|
14259
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
14260
|
+
annotationShortcuts: (string | {
|
|
14261
|
+
label: string;
|
|
14262
|
+
value: string;
|
|
14263
|
+
})[] | undefined;
|
|
14210
14264
|
consumer: boolean;
|
|
14211
14265
|
uuid: string;
|
|
14212
14266
|
lifeCycle: Partial<{
|
|
@@ -14504,7 +14558,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14504
14558
|
default: () => {};
|
|
14505
14559
|
};
|
|
14506
14560
|
annotation: {
|
|
14507
|
-
type: PropType<import("
|
|
14561
|
+
type: PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
14562
|
+
};
|
|
14563
|
+
annotationShortcuts: {
|
|
14564
|
+
type: PropType<(string | {
|
|
14565
|
+
label: string;
|
|
14566
|
+
value: string;
|
|
14567
|
+
})[] | undefined>;
|
|
14508
14568
|
};
|
|
14509
14569
|
consumer: {
|
|
14510
14570
|
type: BooleanConstructor;
|
|
@@ -14659,7 +14719,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14659
14719
|
}>;
|
|
14660
14720
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
14661
14721
|
scope: import("../../../shared/types").AnyObject;
|
|
14662
|
-
annotation: import("
|
|
14722
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
14723
|
+
annotationShortcuts: (string | {
|
|
14724
|
+
label: string;
|
|
14725
|
+
value: string;
|
|
14726
|
+
})[] | undefined;
|
|
14663
14727
|
consumer: boolean;
|
|
14664
14728
|
uuid: string;
|
|
14665
14729
|
lifeCycle: Partial<{
|
|
@@ -14932,7 +14996,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14932
14996
|
}>;
|
|
14933
14997
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
14934
14998
|
scope: import("../../../shared/types").AnyObject;
|
|
14935
|
-
annotation: import("
|
|
14999
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
15000
|
+
annotationShortcuts: (string | {
|
|
15001
|
+
label: string;
|
|
15002
|
+
value: string;
|
|
15003
|
+
})[] | undefined;
|
|
14936
15004
|
consumer: boolean;
|
|
14937
15005
|
uuid: string;
|
|
14938
15006
|
lifeCycle: Partial<{
|
|
@@ -119,7 +119,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
119
119
|
default: () => {};
|
|
120
120
|
};
|
|
121
121
|
annotation: {
|
|
122
|
-
type: import("vue").PropType<
|
|
122
|
+
type: import("vue").PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
|
|
123
|
+
};
|
|
124
|
+
annotationShortcuts: {
|
|
125
|
+
type: import("vue").PropType<(string | {
|
|
126
|
+
label: string;
|
|
127
|
+
value: string;
|
|
128
|
+
})[] | undefined>;
|
|
123
129
|
};
|
|
124
130
|
consumer: {
|
|
125
131
|
type: BooleanConstructor;
|
|
@@ -275,7 +281,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
275
281
|
default: () => {};
|
|
276
282
|
};
|
|
277
283
|
annotation: {
|
|
278
|
-
type: import("vue").PropType<
|
|
284
|
+
type: import("vue").PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
|
|
285
|
+
};
|
|
286
|
+
annotationShortcuts: {
|
|
287
|
+
type: import("vue").PropType<(string | {
|
|
288
|
+
label: string;
|
|
289
|
+
value: string;
|
|
290
|
+
})[] | undefined>;
|
|
279
291
|
};
|
|
280
292
|
consumer: {
|
|
281
293
|
type: BooleanConstructor;
|
|
@@ -469,7 +481,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
469
481
|
}>;
|
|
470
482
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
471
483
|
scope: AnyObject;
|
|
472
|
-
annotation:
|
|
484
|
+
annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
|
|
485
|
+
annotationShortcuts: (string | {
|
|
486
|
+
label: string;
|
|
487
|
+
value: string;
|
|
488
|
+
})[] | undefined;
|
|
473
489
|
consumer: boolean;
|
|
474
490
|
uuid: string;
|
|
475
491
|
lifeCycle: Partial<{
|
|
@@ -767,7 +783,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
767
783
|
default: () => {};
|
|
768
784
|
};
|
|
769
785
|
annotation: {
|
|
770
|
-
type: import("vue").PropType<
|
|
786
|
+
type: import("vue").PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
|
|
787
|
+
};
|
|
788
|
+
annotationShortcuts: {
|
|
789
|
+
type: import("vue").PropType<(string | {
|
|
790
|
+
label: string;
|
|
791
|
+
value: string;
|
|
792
|
+
})[] | undefined>;
|
|
771
793
|
};
|
|
772
794
|
consumer: {
|
|
773
795
|
type: BooleanConstructor;
|
|
@@ -77,7 +77,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
77
77
|
}>;
|
|
78
78
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
79
79
|
scope: import("../../../../shared/types").AnyObject;
|
|
80
|
-
annotation: import("
|
|
80
|
+
annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
|
|
81
|
+
annotationShortcuts: (string | {
|
|
82
|
+
label: string;
|
|
83
|
+
value: string;
|
|
84
|
+
})[] | undefined;
|
|
81
85
|
consumer: boolean;
|
|
82
86
|
uuid: string;
|
|
83
87
|
lifeCycle: Partial<{
|
|
@@ -179,7 +183,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
183
|
}>;
|
|
180
184
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
181
185
|
scope: import("../../../../shared/types").AnyObject;
|
|
182
|
-
annotation: import("
|
|
186
|
+
annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
|
|
187
|
+
annotationShortcuts: (string | {
|
|
188
|
+
label: string;
|
|
189
|
+
value: string;
|
|
190
|
+
})[] | undefined;
|
|
183
191
|
consumer: boolean;
|
|
184
192
|
uuid: string;
|
|
185
193
|
lifeCycle: Partial<{
|
|
@@ -5547,7 +5555,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5547
5555
|
default: () => {};
|
|
5548
5556
|
};
|
|
5549
5557
|
annotation: {
|
|
5550
|
-
type: PropType<import("
|
|
5558
|
+
type: PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
|
|
5559
|
+
};
|
|
5560
|
+
annotationShortcuts: {
|
|
5561
|
+
type: PropType<(string | {
|
|
5562
|
+
label: string;
|
|
5563
|
+
value: string;
|
|
5564
|
+
})[] | undefined>;
|
|
5551
5565
|
};
|
|
5552
5566
|
consumer: {
|
|
5553
5567
|
type: BooleanConstructor;
|
|
@@ -5703,7 +5717,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5703
5717
|
default: () => {};
|
|
5704
5718
|
};
|
|
5705
5719
|
annotation: {
|
|
5706
|
-
type: PropType<import("
|
|
5720
|
+
type: PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
|
|
5721
|
+
};
|
|
5722
|
+
annotationShortcuts: {
|
|
5723
|
+
type: PropType<(string | {
|
|
5724
|
+
label: string;
|
|
5725
|
+
value: string;
|
|
5726
|
+
})[] | undefined>;
|
|
5707
5727
|
};
|
|
5708
5728
|
consumer: {
|
|
5709
5729
|
type: BooleanConstructor;
|
|
@@ -5897,7 +5917,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5897
5917
|
}>;
|
|
5898
5918
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
5899
5919
|
scope: import("../../../../shared/types").AnyObject;
|
|
5900
|
-
annotation: import("
|
|
5920
|
+
annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
|
|
5921
|
+
annotationShortcuts: (string | {
|
|
5922
|
+
label: string;
|
|
5923
|
+
value: string;
|
|
5924
|
+
})[] | undefined;
|
|
5901
5925
|
consumer: boolean;
|
|
5902
5926
|
uuid: string;
|
|
5903
5927
|
lifeCycle: Partial<{
|
|
@@ -6195,7 +6219,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6195
6219
|
default: () => {};
|
|
6196
6220
|
};
|
|
6197
6221
|
annotation: {
|
|
6198
|
-
type: PropType<import("
|
|
6222
|
+
type: PropType<Record<string, import("../../../annotation-edit/src/type").AnnotationItem>>;
|
|
6223
|
+
};
|
|
6224
|
+
annotationShortcuts: {
|
|
6225
|
+
type: PropType<(string | {
|
|
6226
|
+
label: string;
|
|
6227
|
+
value: string;
|
|
6228
|
+
})[] | undefined>;
|
|
6199
6229
|
};
|
|
6200
6230
|
consumer: {
|
|
6201
6231
|
type: BooleanConstructor;
|
|
@@ -6350,7 +6380,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6350
6380
|
}>;
|
|
6351
6381
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
6352
6382
|
scope: import("../../../../shared/types").AnyObject;
|
|
6353
|
-
annotation: import("
|
|
6383
|
+
annotation: Record<string, import("../../../annotation-edit/src/type").AnnotationItem>;
|
|
6384
|
+
annotationShortcuts: (string | {
|
|
6385
|
+
label: string;
|
|
6386
|
+
value: string;
|
|
6387
|
+
})[] | undefined;
|
|
6354
6388
|
consumer: boolean;
|
|
6355
6389
|
uuid: string;
|
|
6356
6390
|
lifeCycle: Partial<{
|
|
@@ -106,7 +106,13 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
106
106
|
default: () => {};
|
|
107
107
|
};
|
|
108
108
|
annotation: {
|
|
109
|
-
type: import("vue").PropType<import("
|
|
109
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
110
|
+
};
|
|
111
|
+
annotationShortcuts: {
|
|
112
|
+
type: import("vue").PropType<(string | {
|
|
113
|
+
label: string;
|
|
114
|
+
value: string;
|
|
115
|
+
})[] | undefined>;
|
|
110
116
|
};
|
|
111
117
|
consumer: {
|
|
112
118
|
type: BooleanConstructor;
|
|
@@ -262,7 +268,13 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
262
268
|
default: () => {};
|
|
263
269
|
};
|
|
264
270
|
annotation: {
|
|
265
|
-
type: import("vue").PropType<import("
|
|
271
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
272
|
+
};
|
|
273
|
+
annotationShortcuts: {
|
|
274
|
+
type: import("vue").PropType<(string | {
|
|
275
|
+
label: string;
|
|
276
|
+
value: string;
|
|
277
|
+
})[] | undefined>;
|
|
266
278
|
};
|
|
267
279
|
consumer: {
|
|
268
280
|
type: BooleanConstructor;
|
|
@@ -456,7 +468,11 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
456
468
|
}>;
|
|
457
469
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
458
470
|
scope: import("../../shared/types").AnyObject;
|
|
459
|
-
annotation: import("
|
|
471
|
+
annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
|
|
472
|
+
annotationShortcuts: (string | {
|
|
473
|
+
label: string;
|
|
474
|
+
value: string;
|
|
475
|
+
})[] | undefined;
|
|
460
476
|
consumer: boolean;
|
|
461
477
|
uuid: string;
|
|
462
478
|
lifeCycle: Partial<{
|
|
@@ -754,7 +770,13 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
754
770
|
default: () => {};
|
|
755
771
|
};
|
|
756
772
|
annotation: {
|
|
757
|
-
type: import("vue").PropType<import("
|
|
773
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
774
|
+
};
|
|
775
|
+
annotationShortcuts: {
|
|
776
|
+
type: import("vue").PropType<(string | {
|
|
777
|
+
label: string;
|
|
778
|
+
value: string;
|
|
779
|
+
})[] | undefined>;
|
|
758
780
|
};
|
|
759
781
|
consumer: {
|
|
760
782
|
type: BooleanConstructor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormRequestDefine, useVersion } from '../../../shared/hooks';
|
|
2
2
|
import { AnyObject, LowCodeTypes } from '../../../shared/types';
|
|
3
3
|
import { Component, FunctionalComponent, PropType } from 'vue';
|
|
4
|
+
import { AnnotationItem } from '../../../components/annotation-edit/src/type';
|
|
4
5
|
import { FieldItem, FieldVisitor, FormBusinessFormatter, FormRenderExpose } from './types';
|
|
5
6
|
declare const _default: import("vue").DefineComponent<{
|
|
6
7
|
fieldList: {
|
|
@@ -100,7 +101,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
100
101
|
default: () => {};
|
|
101
102
|
};
|
|
102
103
|
annotation: {
|
|
103
|
-
type: PropType<
|
|
104
|
+
type: PropType<Record<string, AnnotationItem>>;
|
|
105
|
+
};
|
|
106
|
+
annotationShortcuts: {
|
|
107
|
+
type: PropType<(string | {
|
|
108
|
+
label: string;
|
|
109
|
+
value: string;
|
|
110
|
+
})[] | undefined>;
|
|
104
111
|
};
|
|
105
112
|
consumer: {
|
|
106
113
|
type: BooleanConstructor;
|
|
@@ -256,7 +263,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
256
263
|
default: () => {};
|
|
257
264
|
};
|
|
258
265
|
annotation: {
|
|
259
|
-
type: PropType<
|
|
266
|
+
type: PropType<Record<string, AnnotationItem>>;
|
|
267
|
+
};
|
|
268
|
+
annotationShortcuts: {
|
|
269
|
+
type: PropType<(string | {
|
|
270
|
+
label: string;
|
|
271
|
+
value: string;
|
|
272
|
+
})[] | undefined>;
|
|
260
273
|
};
|
|
261
274
|
consumer: {
|
|
262
275
|
type: BooleanConstructor;
|
|
@@ -450,7 +463,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
450
463
|
}>;
|
|
451
464
|
components: Record<string, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | FunctionalComponent<{}, {}>>;
|
|
452
465
|
scope: AnyObject;
|
|
453
|
-
annotation:
|
|
466
|
+
annotation: Record<string, AnnotationItem>;
|
|
467
|
+
annotationShortcuts: (string | {
|
|
468
|
+
label: string;
|
|
469
|
+
value: string;
|
|
470
|
+
})[] | undefined;
|
|
454
471
|
consumer: boolean;
|
|
455
472
|
uuid: string;
|
|
456
473
|
lifeCycle: Partial<{
|
|
@@ -748,7 +765,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
748
765
|
default: () => {};
|
|
749
766
|
};
|
|
750
767
|
annotation: {
|
|
751
|
-
type: PropType<
|
|
768
|
+
type: PropType<Record<string, AnnotationItem>>;
|
|
769
|
+
};
|
|
770
|
+
annotationShortcuts: {
|
|
771
|
+
type: PropType<(string | {
|
|
772
|
+
label: string;
|
|
773
|
+
value: string;
|
|
774
|
+
})[] | undefined>;
|
|
752
775
|
};
|
|
753
776
|
consumer: {
|
|
754
777
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,openBlock as i,createBlock as l,unref as n,mergeProps as m,withCtx as p,createElementBlock as d,createVNode as u,isRef as c,Fragment as f,renderList as h,createCommentVNode as y,createElementVNode as g,normalizeStyle as j,withKeys as b,toDisplayString as k,renderSlot as v}from"vue";import{useTheme as F}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as C,cloneDeep as S}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 H,NTabs as A,NTabPane as x,NConfigProvider as B}from"naive-ui";import{useVersion as O}from"../../../shared/hooks/useVersion.js";import{createForm as L,onFormMount as R,onFieldValueChange as w,onFieldMount as I,onFieldUnmount as V,onFieldReact as _}from"@formily/core";import{Path as D}from"@formily/path";import{FormProvider as N,FormConsumer as q}from"@formily/vue";import{InjectionFormLifeCycleCaller as W,InjectionFormGraph as T}from"./constants/index.js";import{createObjSchema as U}from"./utils/schema.js";import{useAnchor as E}from"./hooks/useAnchor.js";import{useAutoHidden as G}from"./hooks/useAutoHidden.js";import"../index.js";import{useComplexOptionsSpan as K}from"./hooks/useComplexOptions.js";import{useFieldListAdaptor as M}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 P}from"./hooks/useFieldVisitor.js";import{useFormContext as J}from"./hooks/useFormContext.js";import{useFormDomEvent as $,useFormExposeEvent as z}from"./hooks/useFormEvent.js";import{useFormGraph as Q}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as X}from"./hooks/useFormRenderLifeCycle.js";import{validateMessageLocale as Y}from"./hooks/useFormValidator.js";import{useLowCodeEvent as Z}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as ee}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as oe}from"./hooks/useNuiThemeOverrides.js";import{useOperationalForm as te}from"./hooks/useOperationalForm.js";import{useWordbookSetting as re}from"./hooks/useWordbookSetting.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},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{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=F(),{nuiThemeOverrides:pe}=oe();Y();const de=o(),ue=t((()=>C(ne.maxHeight)?ne.maxHeight+"px":ne.maxHeight)),{SchemaField:ce,businessCollector:fe,formItemDepsCollector:he,changeContextCollector:ye,formUUID:ge}=J(ne,le),{anchorBarRef:je,currentAnchor:be,updateAnchorList:ke,anchorIdList:ve,onScroll:Fe}=E(ne,le,de,he),{callLifeCycle:Ce}=X(ne);r(W,Ce),Ce("onSetup");const{trigger:Se}=G(),{observeFormGraph:He,setGraph:Ae,removeGraph:xe}=Q();r(T,He);const{lowCodeEventTrigger:Be}=Z(),Oe=L({initialValues:ne.initialData,effects(e){const o={};R((()=>{Object.assign(o,S(e.values))})),w("*",(t=>{const r=D.getIn(o,t.path);D.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)}),Be(t),Le(s),we.trigger(s),Ie.trigger(s,t.value)})),I("*",Ae),V("*",xe),ne.linebarAutoHidden&&(_("*",Se),R((e=>e.query("*").forEach(Se)))),ne.anchor&&_("*",ke)}}),{lowCodeReactionsHandler:Le,triggerAllReactionsHandler:Re}=ee(t((()=>ne.lowCodeReactions)),Oe),we=te(ne,Oe),Ie=re().create(Oe,ye);s(Re),s((()=>ne.operationalFormInit&&we.triggerAll()));const{schemaAdaptor:Ve}=M(fe,ne.lifeCycle);let _e=ne.fieldList||[];const De=t((()=>ne.schema?ne.schema:ne.fieldList?(_e=P().traverse(S(ne.fieldList),ne.fieldVisitor),U(Ve(_e,ne))):U({}))),{onKeydown:Ne}=$({formModel:Oe,formRenderRef:de,props:ne}),{clearSpan:qe}=K();a((()=>qe(ge)));const We=z({formModel:Oe,formRenderRef:de,formItemDepsCollector:he,businessCollector:fe,wordbookSettingHandler:Ie,operationalFormHandler:we,getFieldList:()=>_e,formUUID:ge});return ie({formModel:Oe,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)=>(i(),l(n(H),m({class:["form-render",{"form-render--out-border":e.outBordered}],"require-mark-placement":"left",style:n(me)},n(O)()),{default:p((()=>[e.anchor?(i(),d("section",se,[u(n(A),{value:n(be),"onUpdate:value":t[0]||(t[0]=e=>c(be)?be.value=e:null),type:"line",ref_key:"anchorBarRef",ref:je},{default:p((()=>[(i(!0),d(f,null,h(n(ve),(e=>(i(),l(n(x),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):y("v-if",!0),u(n(B),{"theme-overrides":n(pe)},{default:p((()=>[g("section",{class:"form-render__wrapper",style:j({"--column":e.column,"--form-height":n(ue)}),ref_key:"formRenderRef",ref:de,onScroll:t[1]||(t[1]=(...e)=>n(Fe)&&n(Fe)(...e)),onKeydownCapture:t[2]||(t[2]=b(((...e)=>n(Ne)&&n(Ne)(...e)),["enter"]))},[u(n(N),{form:n(Oe)},{default:p((()=>[u(n(ce),{schema:n(De)},null,8,["schema"]),e.consumer?(i(),l(n(q),{key:0},{default:p((({form:e})=>[g("div",ae,k(JSON.stringify(e.values,null,2)),1)])),_:1})):y("v-if",!0),v(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},16,["class","style"]))}});export{ie as default};
|
|
1
|
+
import{defineComponent as e,ref as o,computed as t,provide as r,onMounted as s,onUnmounted as a,openBlock as i,createBlock as l,unref as n,mergeProps as m,withCtx as p,createElementBlock as d,createVNode as u,isRef as c,Fragment as f,renderList as h,createCommentVNode as y,createElementVNode as g,normalizeStyle as j,withKeys as b,toDisplayString as k,renderSlot as v}from"vue";import{useTheme as F}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import{isNumber as C,cloneDeep as S}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 H,NTabs as A,NTabPane as x,NConfigProvider as B}from"naive-ui";import{useVersion as O}from"../../../shared/hooks/useVersion.js";import{createForm as L,onFormMount as R,onFieldValueChange as w,onFieldMount as I,onFieldUnmount as V,onFieldReact as _}from"@formily/core";import{Path as D}from"@formily/path";import{FormProvider as N,FormConsumer as q}from"@formily/vue";import{InjectionFormLifeCycleCaller as W,InjectionFormGraph as T}from"./constants/index.js";import{createObjSchema as U}from"./utils/schema.js";import{useAnchor as E}from"./hooks/useAnchor.js";import{useAutoHidden as G}from"./hooks/useAutoHidden.js";import"../index.js";import{useComplexOptionsSpan as K}from"./hooks/useComplexOptions.js";import{useFieldListAdaptor as M}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 P}from"./hooks/useFieldVisitor.js";import{useFormContext as J}from"./hooks/useFormContext.js";import{useFormDomEvent as $,useFormExposeEvent as z}from"./hooks/useFormEvent.js";import{useFormGraph as Q}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as X}from"./hooks/useFormRenderLifeCycle.js";import{validateMessageLocale as Y}from"./hooks/useFormValidator.js";import{useLowCodeEvent as Z}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as ee}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as oe}from"./hooks/useNuiThemeOverrides.js";import{useOperationalForm as te}from"./hooks/useOperationalForm.js";import{useWordbookSetting as re}from"./hooks/useWordbookSetting.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},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=F(),{nuiThemeOverrides:pe}=oe();Y();const de=o(),ue=t((()=>C(ne.maxHeight)?ne.maxHeight+"px":ne.maxHeight)),{SchemaField:ce,businessCollector:fe,formItemDepsCollector:he,changeContextCollector:ye,formUUID:ge}=J(ne,le),{anchorBarRef:je,currentAnchor:be,updateAnchorList:ke,anchorIdList:ve,onScroll:Fe}=E(ne,le,de,he),{callLifeCycle:Ce}=X(ne);r(W,Ce),Ce("onSetup");const{trigger:Se}=G(),{observeFormGraph:He,setGraph:Ae,removeGraph:xe}=Q();r(T,He);const{lowCodeEventTrigger:Be}=Z(),Oe=L({initialValues:ne.initialData,effects(e){const o={};R((()=>{Object.assign(o,S(e.values))})),w("*",(t=>{const r=D.getIn(o,t.path);D.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)}),Be(t),Le(s),we.trigger(s),Ie.trigger(s,t.value)})),I("*",Ae),V("*",xe),ne.linebarAutoHidden&&(_("*",Se),R((e=>e.query("*").forEach(Se)))),ne.anchor&&_("*",ke)}}),{lowCodeReactionsHandler:Le,triggerAllReactionsHandler:Re}=ee(t((()=>ne.lowCodeReactions)),Oe),we=te(ne,Oe),Ie=re().create(Oe,ye);s(Re),s((()=>ne.operationalFormInit&&we.triggerAll()));const{schemaAdaptor:Ve}=M(fe,ne.lifeCycle);let _e=ne.fieldList||[];const De=t((()=>ne.schema?ne.schema:ne.fieldList?(_e=P().traverse(S(ne.fieldList),ne.fieldVisitor),U(Ve(_e,ne))):U({}))),{onKeydown:Ne}=$({formModel:Oe,formRenderRef:de,props:ne}),{clearSpan:qe}=K();a((()=>qe(ge)));const We=z({formModel:Oe,formRenderRef:de,formItemDepsCollector:he,businessCollector:fe,wordbookSettingHandler:Ie,operationalFormHandler:we,getFieldList:()=>_e,formUUID:ge});return ie({formModel:Oe,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)=>(i(),l(n(H),m({class:["form-render",{"form-render--out-border":e.outBordered}],"require-mark-placement":"left",style:n(me)},n(O)()),{default:p((()=>[e.anchor?(i(),d("section",se,[u(n(A),{value:n(be),"onUpdate:value":t[0]||(t[0]=e=>c(be)?be.value=e:null),type:"line",ref_key:"anchorBarRef",ref:je},{default:p((()=>[(i(!0),d(f,null,h(n(ve),(e=>(i(),l(n(x),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):y("v-if",!0),u(n(B),{"theme-overrides":n(pe)},{default:p((()=>[g("section",{class:"form-render__wrapper",style:j({"--column":e.column,"--form-height":n(ue)}),ref_key:"formRenderRef",ref:de,onScroll:t[1]||(t[1]=(...e)=>n(Fe)&&n(Fe)(...e)),onKeydownCapture:t[2]||(t[2]=b(((...e)=>n(Ne)&&n(Ne)(...e)),["enter"]))},[u(n(N),{form:n(Oe)},{default:p((()=>[u(n(ce),{schema:n(De)},null,8,["schema"]),e.consumer?(i(),l(n(q),{key:0},{default:p((({form:e})=>[g("div",ae,k(JSON.stringify(e.values,null,2)),1)])),_:1})):y("v-if",!0),v(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},16,["class","style"]))}});export{ie as default};
|
|
@@ -104,7 +104,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
104
104
|
default: () => {};
|
|
105
105
|
};
|
|
106
106
|
annotation: {
|
|
107
|
-
type: import("vue").PropType<import("
|
|
107
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
108
|
+
};
|
|
109
|
+
annotationShortcuts: {
|
|
110
|
+
type: import("vue").PropType<(string | {
|
|
111
|
+
label: string;
|
|
112
|
+
value: string;
|
|
113
|
+
})[] | undefined>;
|
|
108
114
|
};
|
|
109
115
|
consumer: {
|
|
110
116
|
type: BooleanConstructor;
|
|
@@ -260,7 +266,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
260
266
|
default: () => {};
|
|
261
267
|
};
|
|
262
268
|
annotation: {
|
|
263
|
-
type: import("vue").PropType<import("
|
|
269
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
270
|
+
};
|
|
271
|
+
annotationShortcuts: {
|
|
272
|
+
type: import("vue").PropType<(string | {
|
|
273
|
+
label: string;
|
|
274
|
+
value: string;
|
|
275
|
+
})[] | undefined>;
|
|
264
276
|
};
|
|
265
277
|
consumer: {
|
|
266
278
|
type: BooleanConstructor;
|
|
@@ -454,7 +466,11 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
454
466
|
}>;
|
|
455
467
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
456
468
|
scope: import("../../../shared/types").AnyObject;
|
|
457
|
-
annotation: import("
|
|
469
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
470
|
+
annotationShortcuts: (string | {
|
|
471
|
+
label: string;
|
|
472
|
+
value: string;
|
|
473
|
+
})[] | undefined;
|
|
458
474
|
consumer: boolean;
|
|
459
475
|
uuid: string;
|
|
460
476
|
lifeCycle: Partial<{
|
|
@@ -752,7 +768,13 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
752
768
|
default: () => {};
|
|
753
769
|
};
|
|
754
770
|
annotation: {
|
|
755
|
-
type: import("vue").PropType<import("
|
|
771
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
772
|
+
};
|
|
773
|
+
annotationShortcuts: {
|
|
774
|
+
type: import("vue").PropType<(string | {
|
|
775
|
+
label: string;
|
|
776
|
+
value: string;
|
|
777
|
+
})[] | undefined>;
|
|
756
778
|
};
|
|
757
779
|
consumer: {
|
|
758
780
|
type: BooleanConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,inject as r,computed as l,ref as o,onUnmounted as t,createVNode as n,mergeProps as i}from"vue";import{arrayed as
|
|
1
|
+
import{defineComponent as e,inject as r,computed as l,ref as o,onUnmounted as t,createVNode as n,mergeProps as i,unref as a}from"vue";import{arrayed as s,widthAppend as m}from"../../../../../shared/utils/index.js";import{isVoidField as u}from"@formily/core";import{observe as d,autorun as f}from"@formily/reactive";import{connect as p,mapProps as v}from"@formily/vue";import{useDebounceFn as c}from"@vueuse/core";import{isString as b,isArray as y,isFunction as _}from"lodash-es";import{NFormItem as g}from"naive-ui";import x from"../../../../annotation-edit/index.js";import"../../../index.js";import I from"../tooltipMessage.vue.js";import{InjectionFormUUID as j,InjectionFormGraph as h,InjectionAnnotation as k,InjectionAnnotationShortcuts as F,InjectionFormGlobalProps as R}from"../../constants/index.js";import{useComplexOptionsSpan as L}from"../../hooks/useComplexOptions.js";import{validateMessageParser as q}from"../../utils/index.js";import{dotEscape as K}from"../../utils/schema.js";import{useFormField as S}from"../../hooks/useFormField.js";const A=p(e({name:"FormRenderItem",props:{label:String,propertyKey:String,remark:String,span:{type:Number,default:6},suffixFields:{type:Array},labelRender:Function,annotation:{},fieldItem:{type:Object}},setup(e,{slots:s}){const{field:p,fieldKey:v,fieldAddress:b}=S(),q=r(j),A=l((()=>K(`${q}-${b.value}`))),E=o(!1);if(u(p.value)&&y(e.suffixFields)){const l=r(h);t(d(l,c((()=>{u(p.value)&&y(e.suffixFields)&&(E.value=e.suffixFields.some((e=>{const r=p.value.form.query(e).take();return r&&Reflect.get(r,"required")})))}),100)))}else t(f((()=>{E.value=Reflect.get(p.value,"required")})));const M=r(k),O=l({get(){var r,l;return null!=(l=null==(r=M.value)?void 0:r[e.propertyKey])?l:""},set(r){M.value={property:e.propertyKey,value:r}}}),V=r(F);const $=l((()=>M.value&&!1!==e.annotation)),w=l((()=>e.label&&" "!==e.label)),C=l((()=>{let r=0;return $.value&&(r+=18),e.remark&&(r+=18),r})),N=r(R,{}),T=l((()=>{var r;const l=null==(r=e.fieldItem)?void 0:r.bordered;return null==l?N.bordered:l}));function U(){return w.value?n("section",{class:"form-render__formItemLabel"},[n("span",{class:"form-render__formItemLabel--text",style:{marginRight:m(C.value)}},[_(e.labelRender)?e.labelRender(e.label):e.label]),C.value?n("section",{class:"form-render__formItemLabel--operation"},[e.remark?n("div",{class:"form-render__formItemLabel--tooltip"},[n(I,{message:e.remark},null)]):null,$.value?n(x,{class:"form-render__formItemLabel--annotation",modelValue:O.value,"onUpdate:modelValue":e=>O.value=e,shortcuts:a(V)},null):null]):null]):null}const{getSpan:W}=L();return()=>{return n(g,i({class:["form-render__formItem",{"form-render--no-border":!T.value,"form-render--underline":"underline"===T.value}],style:{"--form-item-column":"inner"===(null==(r=e.fieldItem)?void 0:r.childWidthMode)?e.span:W(q,p.value.address,!1)+e.span}},{id:A.value,uuid:q,"widget-type":p.value.componentType,"field-key":K(v.value),"field-address":K(b.value),required:E.value}),{...s,label:U});var r}}}),v({title:"label"},((e,r)=>{const l=u(r)?void 0:s(r.selfErrors).length?function(e,r){if(!b(r.defined_error_msg)||!r.defined_error_msg)return e.map((e=>q(e,r))).join(",");return q(r.defined_error_msg,r)}(s(r.selfErrors),e.fieldItem):void 0;return{...e,fieldItem:void 0,feedback:l,"validation-status":l?"error":void 0}})));export{A as FORM_ITEM};
|
|
@@ -16,6 +16,7 @@ export declare const InjectionFormLifeCycleCaller: InjectionKey<ReturnType<typeo
|
|
|
16
16
|
export declare const InjectionFormUUID: InjectionKey<string>;
|
|
17
17
|
export declare const InjectionFormGraph: InjectionKey<Record<string, GeneralField>>;
|
|
18
18
|
export declare const InjectionAnnotation: InjectionKey<WritableComputedRef<Nullable<Record<string, AnnotationItem>>>>;
|
|
19
|
+
export declare const InjectionAnnotationShortcuts: InjectionKey<WritableComputedRef<Exclude<NonNullable<AnnotationItem>, string>['shortcuts']>>;
|
|
19
20
|
export declare const InjectionFormGlobalProps: InjectionKey<Readonly<FormRenderProps>>;
|
|
20
21
|
export declare enum FIELD_BUSINESS_TYPE {
|
|
21
22
|
PASSWORD = "password",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o=Symbol("InjectionAsyncQueue"),e=Symbol("InjectionSchemaField"),n=Symbol("InjectionBusinessCollector"),t=Symbol("InjectionChangeContextCollector"),l=Symbol("InjectionFormItemDepsCollector"),E=Symbol("InjectionFormLifeCycleCaller"),
|
|
1
|
+
const o=Symbol("InjectionAsyncQueue"),e=Symbol("InjectionSchemaField"),n=Symbol("InjectionBusinessCollector"),t=Symbol("InjectionChangeContextCollector"),l=Symbol("InjectionFormItemDepsCollector"),E=Symbol("InjectionFormLifeCycleCaller"),i=Symbol("InjectionFormUUID"),I=Symbol("InjectionFormGraph"),c=Symbol("InjectionAnnotation"),a=Symbol("InjectionAnnotationShortcuts"),m=Symbol("InjectionFormGlobalProps");var A=(o=>(o.PASSWORD="password",o.ID_CARD="id_card",o.AGE="age",o.AGE_UNIT="age_unit",o.MOBILE="mobile",o.TELEPHONE="telephone",o.EMAIL="email",o.SEX="sex",o.BIRTHDAY="birthday",o.BANK_CARD="bank_card",o.WEBSITE="website",o.GESTATIONAL_WEEKS="gestational_weeks",o.GESTATIONAL_STAGE="gestational_stage",o.CUSTOMER_NAME="customer_name",o))(A||{}),S=(o=>(o.MALE="1",o.FEMALE="2",o))(S||{}),r=(o=>(o.DAY="D",o.MONTH="M",o.YEAR="Y",o.HOUR="H",o.WEEK="W",o.MINUTE="N",o))(r||{});const s=["COMPLEX","COMBINATION"];export{r as FIELD_AGE_UNIT,A as FIELD_BUSINESS_TYPE,S as FIELD_SEX_VALUE,c as InjectionAnnotation,a as InjectionAnnotationShortcuts,o as InjectionAsyncQueue,n as InjectionBusinessCollector,t as InjectionChangeContextCollector,m as InjectionFormGlobalProps,I as InjectionFormGraph,l as InjectionFormItemDepsCollector,E as InjectionFormLifeCycleCaller,i as InjectionFormUUID,e as InjectionSchemaField,s as NESTED_FORM_ITEM_TYPE};
|
|
@@ -19,7 +19,7 @@ export declare function useComplexOptions(props: {
|
|
|
19
19
|
childWidthMode?: "inner" | "outer" | undefined;
|
|
20
20
|
renderLabel?: boolean | undefined;
|
|
21
21
|
attrs?: AnyObject | undefined;
|
|
22
|
-
}) =>
|
|
22
|
+
}) => (JSX.Element | null)[];
|
|
23
23
|
valueRef: Ref<any>;
|
|
24
24
|
hasComplexOption: import("vue").ComputedRef<boolean>;
|
|
25
25
|
};
|