cnhis-design-vue 3.2.7-release.1 → 3.2.7-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/README.md +87 -87
- package/es/components/base-search/index.d.ts +2 -0
- package/es/components/base-search/src/index.vue.d.ts +2 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +27 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +27 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +1 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +27 -0
- package/es/components/classification/index.d.ts +60 -5
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +0 -3
- package/es/components/classification/src/index.vue.d.ts +60 -5
- package/es/components/date-picker/index.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
- package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
- package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
- package/es/components/form-config/index.d.ts +37 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +37 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +14 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +20 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +14 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +14 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +14 -0
- package/es/components/form-render/src/components/renderer/formItem.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -0
- package/es/components/form-render/src/components/tooltipMessage.vue2.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 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +2 -1
- package/es/components/form-render/src/utils/business.js +1 -1
- package/es/components/form-render/src/utils/schema.d.ts +1 -1
- package/es/components/form-render/src/utils/schema.js +1 -1
- package/es/components/iho-chat/index.d.ts +269 -94
- package/es/components/iho-chat/src/Index.vue.d.ts +269 -94
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +35 -13
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +41 -14
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +50 -14
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +13 -20
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +60 -11
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ContextMenu.d.ts +5 -5
- package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +62 -24
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/SiderList.vue.d.ts +3 -3
- package/es/components/iho-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +14 -2
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
- package/es/components/iho-chat/src/hooks/useSession.d.ts +1 -1
- package/es/components/iho-chat/src/hooks/useSession.js +1 -1
- package/es/components/iho-chat/src/hooks/useState.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +11 -0
- package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
- package/es/components/iho-chat/src/types/index.d.ts +0 -1
- package/es/components/iho-chat/src/utils/index.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +13 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.d.ts +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/index.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue.js +1 -0
- package/es/components/iho-table/src/plugins/headerPlugin/tooltipMessage.vue2.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
- package/es/components/iho-table/src/types/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/index.d.ts +0 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +34 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +34 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +16 -0
- package/es/components/info-header/src/components/infoDescription/index.vue2.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +14 -0
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/scale-view/index.d.ts +23 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +23 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.d.ts +21 -1
- package/es/components/scale-view/src/components/EvaluateCountdown.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/directive/drag-move.d.ts +3 -0
- package/es/components/scale-view/src/directive/drag-move.js +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -0
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +15 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +15 -0
- package/es/components/steps-wheel/index.d.ts +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
- 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 +13 -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 +69 -4
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +3 -0
- package/es/components/time-line/index.d.ts +4 -4
- package/es/components/time-line/src/TimeLine.vue.d.ts +1 -1
- package/es/components/time-line/src/TimeLine.vue2.js +1 -1
- package/es/components/time-picker/index.d.ts +20 -2
- package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- 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/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/iho-table/src/plugins/headerPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/headerPlugin.js +0 -1
@@ -124,6 +124,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
124
124
|
linebarDirection: "horizontal" | "vertical";
|
125
125
|
linebarTextDirection: "horizontal" | "vertical";
|
126
126
|
autoWidth: number | boolean;
|
127
|
+
feedbackType: "default" | "tooltip";
|
127
128
|
}>>>;
|
128
129
|
};
|
129
130
|
beforeMove: {
|
@@ -251,6 +252,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
251
252
|
linebarDirection: "horizontal" | "vertical";
|
252
253
|
linebarTextDirection: "horizontal" | "vertical";
|
253
254
|
autoWidth: number | boolean;
|
255
|
+
feedbackType: "default" | "tooltip";
|
254
256
|
}>>>;
|
255
257
|
};
|
256
258
|
beforeMove: {
|
@@ -605,6 +607,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
605
607
|
type: BooleanConstructor;
|
606
608
|
default: boolean;
|
607
609
|
};
|
610
|
+
feedbackType: {
|
611
|
+
type: PropType<"default" | "tooltip">;
|
612
|
+
default: string;
|
613
|
+
};
|
608
614
|
}, {
|
609
615
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
610
616
|
fieldList: {
|
@@ -800,6 +806,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
800
806
|
type: BooleanConstructor;
|
801
807
|
default: boolean;
|
802
808
|
};
|
809
|
+
feedbackType: {
|
810
|
+
type: PropType<"default" | "tooltip">;
|
811
|
+
default: string;
|
812
|
+
};
|
803
813
|
}>> & {
|
804
814
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
805
815
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -972,6 +982,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
972
982
|
linebarDirection: "horizontal" | "vertical";
|
973
983
|
linebarTextDirection: "horizontal" | "vertical";
|
974
984
|
autoWidth: number | boolean;
|
985
|
+
feedbackType: "default" | "tooltip";
|
975
986
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
976
987
|
[key: symbol]: any;
|
977
988
|
[key: `x-${string}`]: any;
|
@@ -1351,6 +1362,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1351
1362
|
type: BooleanConstructor;
|
1352
1363
|
default: boolean;
|
1353
1364
|
};
|
1365
|
+
feedbackType: {
|
1366
|
+
type: PropType<"default" | "tooltip">;
|
1367
|
+
default: string;
|
1368
|
+
};
|
1354
1369
|
}>> & {
|
1355
1370
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1356
1371
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1381,6 +1396,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1381
1396
|
linebarDirection: "horizontal" | "vertical";
|
1382
1397
|
linebarTextDirection: "horizontal" | "vertical";
|
1383
1398
|
autoWidth: number | boolean;
|
1399
|
+
feedbackType: "default" | "tooltip";
|
1384
1400
|
operationalFormInit: boolean;
|
1385
1401
|
incrementalRender: boolean;
|
1386
1402
|
}>;
|
@@ -1610,6 +1626,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1610
1626
|
linebarDirection: "horizontal" | "vertical";
|
1611
1627
|
linebarTextDirection: "horizontal" | "vertical";
|
1612
1628
|
autoWidth: number | boolean;
|
1629
|
+
feedbackType: "default" | "tooltip";
|
1613
1630
|
}>>>;
|
1614
1631
|
};
|
1615
1632
|
}, {
|
@@ -1725,6 +1742,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1725
1742
|
linebarDirection: "horizontal" | "vertical";
|
1726
1743
|
linebarTextDirection: "horizontal" | "vertical";
|
1727
1744
|
autoWidth: number | boolean;
|
1745
|
+
feedbackType: "default" | "tooltip";
|
1728
1746
|
}>>>;
|
1729
1747
|
};
|
1730
1748
|
}>> & {}>>;
|
@@ -1890,6 +1908,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1890
1908
|
bordered?: string | boolean | undefined;
|
1891
1909
|
displayMode?: "form" | "table" | undefined;
|
1892
1910
|
editor_title?: string | undefined;
|
1911
|
+
editor_title_mode?: "EMBEDDED_FORM" | "HOVER_TOOLTIP" | "POPUP_ALERT" | undefined;
|
1893
1912
|
linebarWidth?: string | undefined;
|
1894
1913
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
1895
1914
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
@@ -2137,6 +2156,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2137
2156
|
bordered?: string | boolean | undefined;
|
2138
2157
|
displayMode?: "form" | "table" | undefined;
|
2139
2158
|
editor_title?: string | undefined;
|
2159
|
+
editor_title_mode?: "EMBEDDED_FORM" | "HOVER_TOOLTIP" | "POPUP_ALERT" | undefined;
|
2140
2160
|
linebarWidth?: string | undefined;
|
2141
2161
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
2142
2162
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
@@ -2355,6 +2375,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2355
2375
|
bordered?: string | boolean | undefined;
|
2356
2376
|
displayMode?: "form" | "table" | undefined;
|
2357
2377
|
editor_title?: string | undefined;
|
2378
|
+
editor_title_mode?: "EMBEDDED_FORM" | "HOVER_TOOLTIP" | "POPUP_ALERT" | undefined;
|
2358
2379
|
linebarWidth?: string | undefined;
|
2359
2380
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
2360
2381
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
@@ -2620,6 +2641,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2620
2641
|
type: BooleanConstructor;
|
2621
2642
|
default: boolean;
|
2622
2643
|
};
|
2644
|
+
feedbackType: {
|
2645
|
+
type: PropType<"default" | "tooltip">;
|
2646
|
+
default: string;
|
2647
|
+
};
|
2623
2648
|
}, {
|
2624
2649
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
2625
2650
|
fieldList: {
|
@@ -2815,6 +2840,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
2815
2840
|
type: BooleanConstructor;
|
2816
2841
|
default: boolean;
|
2817
2842
|
};
|
2843
|
+
feedbackType: {
|
2844
|
+
type: PropType<"default" | "tooltip">;
|
2845
|
+
default: string;
|
2846
|
+
};
|
2818
2847
|
}>> & {
|
2819
2848
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
2820
2849
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -2987,6 +3016,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2987
3016
|
linebarDirection: "horizontal" | "vertical";
|
2988
3017
|
linebarTextDirection: "horizontal" | "vertical";
|
2989
3018
|
autoWidth: number | boolean;
|
3019
|
+
feedbackType: "default" | "tooltip";
|
2990
3020
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
2991
3021
|
[key: symbol]: any;
|
2992
3022
|
[key: `x-${string}`]: any;
|
@@ -3366,6 +3396,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
3366
3396
|
type: BooleanConstructor;
|
3367
3397
|
default: boolean;
|
3368
3398
|
};
|
3399
|
+
feedbackType: {
|
3400
|
+
type: PropType<"default" | "tooltip">;
|
3401
|
+
default: string;
|
3402
|
+
};
|
3369
3403
|
}>> & {
|
3370
3404
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
3371
3405
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -3396,6 +3430,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3396
3430
|
linebarDirection: "horizontal" | "vertical";
|
3397
3431
|
linebarTextDirection: "horizontal" | "vertical";
|
3398
3432
|
autoWidth: number | boolean;
|
3433
|
+
feedbackType: "default" | "tooltip";
|
3399
3434
|
operationalFormInit: boolean;
|
3400
3435
|
incrementalRender: boolean;
|
3401
3436
|
}>;
|
@@ -3512,6 +3547,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3512
3547
|
linebarDirection: "horizontal" | "vertical";
|
3513
3548
|
linebarTextDirection: "horizontal" | "vertical";
|
3514
3549
|
autoWidth: number | boolean;
|
3550
|
+
feedbackType: "default" | "tooltip";
|
3515
3551
|
}>>>;
|
3516
3552
|
};
|
3517
3553
|
}>>, {}>;
|
@@ -3766,6 +3802,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
3766
3802
|
linebarDirection: "horizontal" | "vertical";
|
3767
3803
|
linebarTextDirection: "horizontal" | "vertical";
|
3768
3804
|
autoWidth: number | boolean;
|
3805
|
+
feedbackType: "default" | "tooltip";
|
3769
3806
|
}>>>;
|
3770
3807
|
};
|
3771
3808
|
beforeMove: {
|
@@ -214,6 +214,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
214
214
|
type: BooleanConstructor;
|
215
215
|
default: boolean;
|
216
216
|
};
|
217
|
+
feedbackType: {
|
218
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
219
|
+
default: string;
|
220
|
+
};
|
217
221
|
}, {
|
218
222
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
219
223
|
fieldList: {
|
@@ -409,6 +413,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
409
413
|
type: BooleanConstructor;
|
410
414
|
default: boolean;
|
411
415
|
};
|
416
|
+
feedbackType: {
|
417
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
418
|
+
default: string;
|
419
|
+
};
|
412
420
|
}>> & {
|
413
421
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
414
422
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -581,6 +589,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
581
589
|
linebarDirection: "horizontal" | "vertical";
|
582
590
|
linebarTextDirection: "horizontal" | "vertical";
|
583
591
|
autoWidth: number | boolean;
|
592
|
+
feedbackType: "default" | "tooltip";
|
584
593
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
585
594
|
[key: symbol]: any;
|
586
595
|
[key: `x-${string}`]: any;
|
@@ -960,6 +969,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
960
969
|
type: BooleanConstructor;
|
961
970
|
default: boolean;
|
962
971
|
};
|
972
|
+
feedbackType: {
|
973
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
974
|
+
default: string;
|
975
|
+
};
|
963
976
|
}>> & {
|
964
977
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
965
978
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -990,6 +1003,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
990
1003
|
linebarDirection: "horizontal" | "vertical";
|
991
1004
|
linebarTextDirection: "horizontal" | "vertical";
|
992
1005
|
autoWidth: number | boolean;
|
1006
|
+
feedbackType: "default" | "tooltip";
|
993
1007
|
operationalFormInit: boolean;
|
994
1008
|
incrementalRender: boolean;
|
995
1009
|
}>;
|
@@ -113,6 +113,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
113
113
|
linebarDirection: "horizontal" | "vertical";
|
114
114
|
linebarTextDirection: "horizontal" | "vertical";
|
115
115
|
autoWidth: number | boolean;
|
116
|
+
feedbackType: "default" | "tooltip";
|
116
117
|
}>>>;
|
117
118
|
};
|
118
119
|
}, {
|
@@ -228,6 +229,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
228
229
|
linebarDirection: "horizontal" | "vertical";
|
229
230
|
linebarTextDirection: "horizontal" | "vertical";
|
230
231
|
autoWidth: number | boolean;
|
232
|
+
feedbackType: "default" | "tooltip";
|
231
233
|
}>>>;
|
232
234
|
};
|
233
235
|
}>> & {}>>;
|
@@ -393,6 +395,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
393
395
|
bordered?: string | boolean | undefined;
|
394
396
|
displayMode?: "form" | "table" | undefined;
|
395
397
|
editor_title?: string | undefined;
|
398
|
+
editor_title_mode?: "EMBEDDED_FORM" | "HOVER_TOOLTIP" | "POPUP_ALERT" | undefined;
|
396
399
|
linebarWidth?: string | undefined;
|
397
400
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
398
401
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
@@ -640,6 +643,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
640
643
|
bordered?: string | boolean | undefined;
|
641
644
|
displayMode?: "form" | "table" | undefined;
|
642
645
|
editor_title?: string | undefined;
|
646
|
+
editor_title_mode?: "EMBEDDED_FORM" | "HOVER_TOOLTIP" | "POPUP_ALERT" | undefined;
|
643
647
|
linebarWidth?: string | undefined;
|
644
648
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
645
649
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
@@ -858,6 +862,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
858
862
|
bordered?: string | boolean | undefined;
|
859
863
|
displayMode?: "form" | "table" | undefined;
|
860
864
|
editor_title?: string | undefined;
|
865
|
+
editor_title_mode?: "EMBEDDED_FORM" | "HOVER_TOOLTIP" | "POPUP_ALERT" | undefined;
|
861
866
|
linebarWidth?: string | undefined;
|
862
867
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
863
868
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
@@ -1123,6 +1128,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1123
1128
|
type: BooleanConstructor;
|
1124
1129
|
default: boolean;
|
1125
1130
|
};
|
1131
|
+
feedbackType: {
|
1132
|
+
type: PropType<"default" | "tooltip">;
|
1133
|
+
default: string;
|
1134
|
+
};
|
1126
1135
|
}, {
|
1127
1136
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1128
1137
|
fieldList: {
|
@@ -1318,6 +1327,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1318
1327
|
type: BooleanConstructor;
|
1319
1328
|
default: boolean;
|
1320
1329
|
};
|
1330
|
+
feedbackType: {
|
1331
|
+
type: PropType<"default" | "tooltip">;
|
1332
|
+
default: string;
|
1333
|
+
};
|
1321
1334
|
}>> & {
|
1322
1335
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1323
1336
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1490,6 +1503,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1490
1503
|
linebarDirection: "horizontal" | "vertical";
|
1491
1504
|
linebarTextDirection: "horizontal" | "vertical";
|
1492
1505
|
autoWidth: number | boolean;
|
1506
|
+
feedbackType: "default" | "tooltip";
|
1493
1507
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
1494
1508
|
[key: symbol]: any;
|
1495
1509
|
[key: `x-${string}`]: any;
|
@@ -1869,6 +1883,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
1869
1883
|
type: BooleanConstructor;
|
1870
1884
|
default: boolean;
|
1871
1885
|
};
|
1886
|
+
feedbackType: {
|
1887
|
+
type: PropType<"default" | "tooltip">;
|
1888
|
+
default: string;
|
1889
|
+
};
|
1872
1890
|
}>> & {
|
1873
1891
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1874
1892
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1899,6 +1917,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1899
1917
|
linebarDirection: "horizontal" | "vertical";
|
1900
1918
|
linebarTextDirection: "horizontal" | "vertical";
|
1901
1919
|
autoWidth: number | boolean;
|
1920
|
+
feedbackType: "default" | "tooltip";
|
1902
1921
|
operationalFormInit: boolean;
|
1903
1922
|
incrementalRender: boolean;
|
1904
1923
|
}>;
|
@@ -2015,6 +2034,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2015
2034
|
linebarDirection: "horizontal" | "vertical";
|
2016
2035
|
linebarTextDirection: "horizontal" | "vertical";
|
2017
2036
|
autoWidth: number | boolean;
|
2037
|
+
feedbackType: "default" | "tooltip";
|
2018
2038
|
}>>>;
|
2019
2039
|
};
|
2020
2040
|
}>>, {}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,computed as
|
1
|
+
import{defineComponent as e,computed as i,ref as o,inject as l,watch as t,toRaw as a,openBlock as r,createElementBlock as n,Fragment as s,createVNode as u,unref as d,mergeProps as m,nextTick as v}from"vue";import{cloneDeep as f}from"lodash-es";import{InjectionActiveFieldItem as p}from"../constants/index.js";import"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{findFieldItemByKey as c}from"../utils/index.js";import"@vicons/ionicons5";import{NModal as g}from"naive-ui";import"../../../../shared/utils/index.js";import{useConfigurationField as h}from"../hooks/useConfigurationField.js";import"../../../index.js";import y from"../../../form-render/index.js";var b=e({__name:"FormConfigEdit",props:{uuid:{type:String,required:!0},bindFormRenderRef:{type:Object},formProps:{type:Object}},setup(e,{expose:b}){const j=e,x=i((()=>`#${j.uuid} .form-config__config`)),F=o(),w=l(p),R=o([]),k=o({}),{generateFieldListByFormConfigItem:C}=h(),_=o(!1);async function P(){var e;w.value=L,await v(),null==(e=F.value)||e.validate()}let L=null;function O({fieldKey:e,value:i}){w.value&&(w.value[e]=i)}return t(w,(async(e,i)=>{var o,l,t;if(!e)return R.value=[];if(i&&e!==L)try{await(null==(o=F.value)?void 0:o.validate())}catch(e){return _.value=!0}L=e,k.value={editable:!0,show:!0,...f(a(e))};const r=null==(l=j.bindFormRenderRef)?void 0:l.getFieldList();R.value=C(e,c(r,e.key)),null==(t=F.value)||t.reload()}),{immediate:!0}),b({validate(){var e;return null==(e=F.value)?void 0:e.validate()}}),(i,o)=>(r(),n(s,null,[u(d(y),m({size:"small"},e.formProps,{column:12,ref_key:"formRenderRef",ref:F,onFormChange:O,"field-list":R.value,"initial-data":k.value}),null,16,["field-list","initial-data"]),u(d(g),{show:_.value,"onUpdate:show":o[0]||(o[0]=e=>_.value=e),preset:"dialog",to:d(x),"close-on-esc":!1,"mask-closable":!1,closable:!1,title:"存在填写错误的字段","positive-text":"继续编辑",onPositiveClick:P},null,8,["show","to"])],64))}});export{b as default};
|
@@ -202,6 +202,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
202
202
|
type: BooleanConstructor;
|
203
203
|
default: boolean;
|
204
204
|
};
|
205
|
+
feedbackType: {
|
206
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
207
|
+
default: string;
|
208
|
+
};
|
205
209
|
}, {
|
206
210
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
207
211
|
fieldList: {
|
@@ -397,6 +401,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
397
401
|
type: BooleanConstructor;
|
398
402
|
default: boolean;
|
399
403
|
};
|
404
|
+
feedbackType: {
|
405
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
406
|
+
default: string;
|
407
|
+
};
|
400
408
|
}>> & {
|
401
409
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
402
410
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -569,6 +577,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
569
577
|
linebarDirection: "horizontal" | "vertical";
|
570
578
|
linebarTextDirection: "horizontal" | "vertical";
|
571
579
|
autoWidth: number | boolean;
|
580
|
+
feedbackType: "default" | "tooltip";
|
572
581
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
573
582
|
[key: symbol]: any;
|
574
583
|
[key: `x-${string}`]: any;
|
@@ -948,6 +957,10 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
948
957
|
type: BooleanConstructor;
|
949
958
|
default: boolean;
|
950
959
|
};
|
960
|
+
feedbackType: {
|
961
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
962
|
+
default: string;
|
963
|
+
};
|
951
964
|
}>> & {
|
952
965
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
953
966
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -978,6 +991,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
978
991
|
linebarDirection: "horizontal" | "vertical";
|
979
992
|
linebarTextDirection: "horizontal" | "vertical";
|
980
993
|
autoWidth: number | boolean;
|
994
|
+
feedbackType: "default" | "tooltip";
|
981
995
|
operationalFormInit: boolean;
|
982
996
|
incrementalRender: boolean;
|
983
997
|
}>;
|
@@ -197,6 +197,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
197
197
|
type: BooleanConstructor;
|
198
198
|
default: boolean;
|
199
199
|
};
|
200
|
+
feedbackType: {
|
201
|
+
type: PropType<"default" | "tooltip">;
|
202
|
+
default: string;
|
203
|
+
};
|
200
204
|
}, {
|
201
205
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
202
206
|
fieldList: {
|
@@ -392,6 +396,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
392
396
|
type: BooleanConstructor;
|
393
397
|
default: boolean;
|
394
398
|
};
|
399
|
+
feedbackType: {
|
400
|
+
type: PropType<"default" | "tooltip">;
|
401
|
+
default: string;
|
402
|
+
};
|
395
403
|
}>> & {
|
396
404
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
397
405
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -564,6 +572,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
564
572
|
linebarDirection: "horizontal" | "vertical";
|
565
573
|
linebarTextDirection: "horizontal" | "vertical";
|
566
574
|
autoWidth: number | boolean;
|
575
|
+
feedbackType: "default" | "tooltip";
|
567
576
|
}>) => Record<string, import("@formily/vue").Stringify<{
|
568
577
|
[key: symbol]: any;
|
569
578
|
[key: `x-${string}`]: any;
|
@@ -943,6 +952,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
943
952
|
type: BooleanConstructor;
|
944
953
|
default: boolean;
|
945
954
|
};
|
955
|
+
feedbackType: {
|
956
|
+
type: PropType<"default" | "tooltip">;
|
957
|
+
default: string;
|
958
|
+
};
|
946
959
|
}>> & {
|
947
960
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
948
961
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -973,6 +986,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
973
986
|
linebarDirection: "horizontal" | "vertical";
|
974
987
|
linebarTextDirection: "horizontal" | "vertical";
|
975
988
|
autoWidth: number | boolean;
|
989
|
+
feedbackType: "default" | "tooltip";
|
976
990
|
operationalFormInit: boolean;
|
977
991
|
incrementalRender: boolean;
|
978
992
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as o,provide as t,computed as r,nextTick as a,onUnmounted as s,openBlock as i,createBlock as l,unref as n,mergeProps as m,withCtx as p,createElementBlock as
|
1
|
+
import{defineComponent as e,ref as o,provide as t,computed as r,nextTick as a,onUnmounted as s,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 v,toDisplayString as b,renderSlot as j}from"vue";import{useTheme as k}from"../../../shared/hooks/useTheme.js";import{useElementSize as C}from"@vueuse/core";import"date-fns";import{isNumber as F,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 w,NTabs as x,NTabPane as B,NConfigProvider as A}from"naive-ui";import{useVersion as L}from"../../../shared/hooks/useVersion.js";import{createForm as R,onFormMount as H,onFieldValueChange as O,onFieldMount as T,onFieldUnmount as I,onFieldReact as V}from"@formily/core";import{Path as N}from"@formily/path";import{FormProvider as _,FormConsumer as D}from"@formily/vue";import{InjectionFormColumnWidth as W,InjectionFormLifeCycleCaller as U,InjectionFormGraph as E}from"./constants/index.js";import{createObjSchema as q}from"./utils/schema.js";import{useAnchor as P}from"./hooks/useAnchor.js";import"../index.js";import{useComplexOptionsSpan as G}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 K}from"./hooks/useFieldVisitor.js";import{useFormContext as z}from"./hooks/useFormContext.js";import{useFormDomEvent as J,useFormExposeEvent as Q}from"./hooks/useFormEvent.js";import{useFormGraph as $}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";import{useNewLowCodeReactions as ae}from"./hooks/useNewLowCodeReactions.js";const se={key:0,style:{height:"54px"}},ie={style:{"white-space":"pre"}};var le=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:5},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},autoExpand:Boolean,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},labelPlacementOverwrite:Boolean,outBordered:{type:Boolean,default:!1},uniqueCacheData:{type:Boolean,default:!1},forceClearable:Boolean,wordSplitFilter:{type:Boolean,default:!0},selectMode:Boolean,selectedFields:{type:Array},linebarDirection:{type:String,default:"vertical"},linebarTextDirection:{type:String,default:"horizontal"},linebarWidth:{type:[Number,String],default:120},autoWidth:{type:[Boolean,Number],default:!1},incrementalRender:{type:Boolean,default:!1},feedbackType:{type:String,default:"default"}},emits:["formChange","annotationChange","scroll","update:selectedFields","linebarChange","ready"],setup(e,{expose:le,emit:ne}){const me=e,pe=k(),{nuiThemeOverrides:de}=oe();Y();const ue=o(),{width:ce}=C(ue);t(W,r((()=>ce.value?(ce.value-16*(me.column-1))/24:0)));const fe=r((()=>F(me.maxHeight)?me.maxHeight+"px":me.maxHeight)),{SchemaField:he,businessCollector:ye,formItemDepsCollector:ge,changeContextCollector:ve,asyncQueue:be,formUUID:je}=z(me,ne),{anchorBarRef:ke,currentAnchor:Ce,updateAnchorList:Fe,anchorIdList:Se,onScroll:we}=P(me,ne,ue,ge),{callLifeCycle:xe}=X(me);t(U,xe),xe("onSetup");const{observeFormGraph:Be,setGraph:Ae,removeGraph:Le}=$();t(E,Be);const{lowCodeEventTrigger:Re}=Z(),He=o(!0),Oe=R({initialValues:me.initialData,effects(e){const o={};H((()=>{Object.assign(o,S(e.values))})),O("*",(t=>{const r=N.getIn(o,t.path);N.setIn(o,t.path,t.value);const a=t.props.name.toString();ye.trigger(e,a),ge.trigger(t.path),He.value&&ne("formChange",{fieldInstance:t,fieldKey:a,oldValue:r,fieldName:t.title,value:t.value,context:ve.getContext(a,t.value)}),Re(t),Te(a),Ie(a),Ve.trigger(a),Ne.trigger(a,t.value)})),T("*",Ae),T("*",(e=>{const o=e.props.name.toString();Te(o),Ie(o),me.operationalFormInit&&Ve.trigger(o)})),I("*",Le),me.anchor&&V("*",Fe)}}),{lowCodeReactionsHandler:Te}=ee(r((()=>me.lowCodeReactions)),Oe),{newLowCodeReactionsHandler:Ie}=ae(r((()=>me.newLowCodeReactions)),Oe),Ve=te(me,Oe),Ne=re().create(Oe,ve),{schemaAdaptor:_e}=M(ye,me.lifeCycle);let De=me.fieldList||[],We=[];const Ue=r((()=>{let e=!1;const o=me.schema?me.schema:me.fieldList?(De!==me.fieldList&&0!==De.length||(e=!0),De=K().traverse(S(me.fieldList),me.fieldVisitor),q(_e(De,me))):q({});return me.incrementalRender&&e&&(We=[],Object.values(o.properties).forEach((e=>{var o;"visible"===e["x-display"]&&"LINEBAR"===e["x-component"]&&!1!==(null==(o=e["x-component-props"])?void 0:o.show)&&(We.push(e),e["x-component-props"].show=!1)})),Ee()),o}));function Ee(){We.length&&setTimeout((()=>{const e=We.shift();e&&(ge.trigger(N.parse(e.name),!0),Oe.setFieldState(e.name,(e=>{e.componentProps.show=!0})),We.length?Ee():a().then((()=>{ne("ready")})))}),300)}const{onKeydown:qe}=J({formModel:Oe,formRenderRef:ue,props:me,formUUID:je}),{clearSpan:Pe}=G();s((()=>Pe(je)));const Ge=Q({formModel:Oe,formRenderRef:ue,formItemDepsCollector:ge,businessCollector:ye,wordbookSettingHandler:Ne,operationalFormHandler:Ve,getFieldList:()=>De,formUUID:je,changeContextCollector:ve,emitFormChange:He});return le({formModel:Oe,validate:(e="*",o={})=>Ge.validate(e,o),getFormValues:(e=!0)=>Ge.getFormValues(e),setFormValues:async(e,o={})=>Ge.setFormValues(e,o),setFieldState(e,o){Ge.setFieldState(e,o)},resetFields(e="*"){Ge.resetFields(e)},queryWidget:async e=>Ge.queryWidget(e),getFieldList:()=>De,applySelectedSetting:e=>Ge.applySelectedSetting(e),async reload(){console.error("reload function is abstract,it should be overwrite!")},async optionInited(e={}){if(await a(),be.activeTasks)return new Promise((o=>{var t;const r=()=>{o(),be.onActiveTaskChange=null};be.onActiveTaskChange=()=>{be.activeTasks||r()},setTimeout(r,null!=(t=e.timeout)?t:5e3)}))},getTextFormValues:()=>Ge.getTextFormValues()}),(o,t)=>(i(),l(n(w),m({class:["form-render",{"form-render--out-border":e.outBordered}],"require-mark-placement":"left",style:n(pe)},n(L)(),{uuid:n(je)}),{default:p((()=>[e.anchor?(i(),d("section",se,[u(n(x),{value:n(Ce),"onUpdate:value":t[0]||(t[0]=e=>c(Ce)?Ce.value=e:null),type:"line",ref_key:"anchorBarRef",ref:ke},{default:p((()=>[(i(!0),d(f,null,h(n(Se),(e=>(i(),l(n(B),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):y("v-if",!0),u(n(A),{"theme-overrides":n(de)},{default:p((()=>[g("section",{class:"form-render__wrapper",style:v({"--column":e.column,"--form-height":n(fe)}),ref_key:"formRenderRef",ref:ue,onScroll:t[1]||(t[1]=(...e)=>n(we)&&n(we)(...e)),onKeydownCapture:t[2]||(t[2]=(...e)=>n(qe)&&n(qe)(...e))},[u(n(_),{form:n(Oe)},{default:p((()=>[u(n(he),{schema:n(Ue)},null,8,["schema"]),e.consumer?(i(),l(n(D),{key:0},{default:p((({form:e})=>[g("div",ie,b(JSON.stringify(e.values,null,2)),1)])),_:1})):y("v-if",!0),j(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},16,["class","style","uuid"]))}});export{le as default};
|
@@ -200,6 +200,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
200
200
|
type: BooleanConstructor;
|
201
201
|
default: boolean;
|
202
202
|
};
|
203
|
+
feedbackType: {
|
204
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
205
|
+
default: string;
|
206
|
+
};
|
203
207
|
}, {
|
204
208
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
205
209
|
fieldList: {
|
@@ -395,6 +399,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
395
399
|
type: BooleanConstructor;
|
396
400
|
default: boolean;
|
397
401
|
};
|
402
|
+
feedbackType: {
|
403
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
404
|
+
default: string;
|
405
|
+
};
|
398
406
|
}>> & {
|
399
407
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
400
408
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -567,6 +575,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
567
575
|
linebarDirection: "horizontal" | "vertical";
|
568
576
|
linebarTextDirection: "horizontal" | "vertical";
|
569
577
|
autoWidth: number | boolean;
|
578
|
+
feedbackType: "default" | "tooltip";
|
570
579
|
}>) => Record<string, import("@formily/json-schema").Stringify<{
|
571
580
|
[key: symbol]: any;
|
572
581
|
[key: `x-${string}`]: any;
|
@@ -946,6 +955,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
946
955
|
type: BooleanConstructor;
|
947
956
|
default: boolean;
|
948
957
|
};
|
958
|
+
feedbackType: {
|
959
|
+
type: import("vue").PropType<"default" | "tooltip">;
|
960
|
+
default: string;
|
961
|
+
};
|
949
962
|
}>> & {
|
950
963
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
951
964
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -976,6 +989,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
976
989
|
linebarDirection: "horizontal" | "vertical";
|
977
990
|
linebarTextDirection: "horizontal" | "vertical";
|
978
991
|
autoWidth: number | boolean;
|
992
|
+
feedbackType: "default" | "tooltip";
|
979
993
|
operationalFormInit: boolean;
|
980
994
|
incrementalRender: boolean;
|
981
995
|
}>;
|
@@ -22,6 +22,10 @@ export declare const FORM_ITEM: import("vue").DefineComponent<{
|
|
22
22
|
fieldItem: {
|
23
23
|
type: PropType<FieldItem>;
|
24
24
|
};
|
25
|
+
showTooltipFeedback: {
|
26
|
+
type: BooleanConstructor;
|
27
|
+
default: boolean;
|
28
|
+
};
|
25
29
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
26
30
|
label: StringConstructor;
|
27
31
|
propertyKey: StringConstructor;
|
@@ -44,8 +48,13 @@ export declare const FORM_ITEM: import("vue").DefineComponent<{
|
|
44
48
|
fieldItem: {
|
45
49
|
type: PropType<FieldItem>;
|
46
50
|
};
|
51
|
+
showTooltipFeedback: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: boolean;
|
54
|
+
};
|
47
55
|
}>>, {
|
48
56
|
showFeedback: boolean;
|
49
57
|
span: number;
|
50
58
|
isOptionChildField: boolean;
|
59
|
+
showTooltipFeedback: boolean;
|
51
60
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as l,computed as
|
1
|
+
import{defineComponent as e,inject as l,computed as t,ref as r,onUnmounted as o,createVNode as a,mergeProps as n,unref as i,withModifiers as d,createTextVNode as u}from"vue";import{arrayed as s,getStringWidth as m,widthAppend as f}from"../../../../../shared/utils/index.js";import{isVoidField as v}from"@formily/core";import{observe as c,autorun as p}from"@formily/reactive";import{connect as b,mapProps as h}from"@formily/vue";import{useDebounceFn as y}from"@vueuse/core";import{isString as g,isArray as _,isObject as k,isNumber as x,isFunction as I,uniq as F}from"lodash-es";import{NFormItem as w,NTooltip as R,NButton as j}from"naive-ui";import M from"../../../../annotation-edit/index.js";import"../../../index.js";import P from"../tooltipMessage.vue.js";import{InjectionFormGlobalProps as T,InjectionFormGlobalEmit as O,InjectionFormUUID as S,InjectionFormGraph as E,InjectionAnnotation as L,InjectionAnnotationShortcuts as C,InjectionFormColumnWidth as W}from"../../constants/index.js";import{useComplexOptionsSpan as A}from"../../hooks/useComplexOptions.js";import{validateMessageParser as N,editorUnescape as U}from"../../utils/index.js";import{dotEscape as q,createFieldAddressId as B}from"../../utils/schema.js";import{useFormField as K}from"../../hooks/useFormField.js";const D=b(e({name:"FormRenderItem",props:{label:String,propertyKey:String,remark:String,span:{type:Number,default:6},suffixFields:{type:Array},labelRender:Function,annotation:{},isOptionChildField:Boolean,feedback:String,showFeedback:{type:Boolean,default:void 0},fieldItem:{type:Object},showTooltipFeedback:{type:Boolean,default:!0}},setup(e,{slots:s,attrs:b}){const h=l(T),N=l(O),{field:D,fieldKey:G,fieldAddress:H}=K(),V=l(S),$=t((()=>q(`${V}-${H.value}`))),z=r(!1);if(v(D.value)&&_(e.suffixFields)){const t=l(E);o(c(t,y((()=>{v(D.value)&&_(e.suffixFields)&&(z.value=e.suffixFields.some((e=>{const l=D.value.form.query(e).take();return l&&Reflect.get(l,"required")})))}),100)))}else o(p((()=>{z.value=Reflect.get(D.value,"required")})));const Y=l(L),J=t({get(){var l,t;return null!=(t=null==(l=Y.value)?void 0:l[e.propertyKey])?t:""},set(l){Y.value={property:e.propertyKey,value:l}}}),Q=l(C);const X=t((()=>{var l;const t={color:null==(l=e.fieldItem)?void 0:l.labelColor};return k(b.labelStyle)&&Object.assign(t,b.labelStyle),t})),Z=t((()=>Y.value&&!1!==e.annotation)),ee=t((()=>{var l,t;return g(null==(l=e.fieldItem)?void 0:l.editor_title)&&e.fieldItem.editor_title&&"POPUP_ALERT"===(null==(t=e.fieldItem)?void 0:t.editor_title_mode)})),le=r(!1);const te=t((()=>e.label&&" "!==e.label)),re=t((()=>{let l=0;return Z.value&&(l+=18),e.remark&&(l+=18),ee.value&&(l+=32),l})),oe=l(T,{}),ae=t((()=>{var l;const t=null==(l=e.fieldItem)?void 0:l.bordered;return null==t?oe.bordered:t})),ne=l("n-form",{}),ie=t((()=>{var e,l,t,r;if("left"!==(null!=(l=b.labelPlacement)?l:null==(e=ne.props)?void 0:e.labelPlacement))return"";let o=null!=(r=b.labelWidth)?r:null==(t=ne.props)?void 0:t.labelWidth;return o&&"auto"!==o?(o=parseInt(o+""),isNaN(o)||!x(o)?"":o-12-re.value-(z.value?11:0)):""})),de=t((()=>I(e.labelRender)?"":g(e.label)?e.label:""));function ue(){return te.value?a("section",{class:"form-render__formItemLabel"},[a("span",{class:"form-render__formItemLabel--text",style:{marginRight:f(re.value),maxWidth:f(ie.value)},title:de.value},[I(e.labelRender)?e.labelRender(e.label):e.label]),re.value?a("section",{class:"form-render__formItemLabel--operation"},[e.remark?a("div",{class:"form-render__formItemLabel--tooltip"},[a(P,{message:e.remark},null)]):null,Z.value?a(M,{class:"form-render__formItemLabel--annotation",modelValue:J.value,"onUpdate:modelValue":e=>J.value=e,shortcuts:i(Q)},null):null,ee.value?a(R,{zIndex:3e3,raw:!0,showArrow:!1,trigger:"manual",placement:"top-start",show:le.value,contentStyle:"background-color:white;color:rgb(51, 54, 57);padding:8px;position:relative;"},{trigger:()=>a(j,{onClick:d((()=>le.value=!le.value),["stop","prev"]),text:!0,type:"primary"},{default:()=>[a("span",{style:"display:inline-block;margin-left:4px"},[u("提示")])]}),default:()=>{var l,t;return[a("div",{innerHTML:U(null!=(t=null==(l=e.fieldItem)?void 0:l.editor_title)?t:"")},null),a(j,{text:!0,onClick:()=>le.value=!le.value,style:"position:absolute;right:2px;top:2px;line-height:1;height:12px;transform:scaleY(0.9)"},{default:()=>[u("x")]})]}}):null]):null]):null}const se=t((()=>{let l=re.value;return z.value&&(l+=11),g(e.label)&&(l+=ie.value||m(e.label)),l})),me=l(W),{getSpan:fe}=A();function ve(){var l,t,r,o,a,n,d;const u="inner"===(null==(l=e.fieldItem)?void 0:l.childWidthMode)?e.span:fe(V,D.value.address,!1)+e.span;if("left"!==(null!=(r=b.labelPlacement)?r:null==(t=ne.props)?void 0:t.labelPlacement)||!i(me)||!(null==h?void 0:h.autoWidth)||"INPUT_GROUP"===(null==(a=null==(o=D.value.parent)?void 0:o.component)?void 0:a[0]))return u;if("INPUT_GROUP"===(null==(d=null==(n=D.value.parent)?void 0:n.component)?void 0:d[0]))return u;const s=16+me.value;let m=u*s-16-se.value;const f=x(null==h?void 0:h.autoWidth)?h.autoWidth:120;let v=u;for(;m<f&&v<12;)v++,m+=s;return v}function ce(){var l;return"tooltip"!==(null==h?void 0:h.feedbackType)?null==(l=s.default)?void 0:l.call(s):a(R,{to:"body",trigger:"manual",show:!!e.feedback&&e.showTooltipFeedback,raw:!0,animated:!1,showArrow:!1,placement:"top-start",contentStyle:"background-color:#e88080;color:white;padding:8px;border-radius:4px"},{trigger(){var e;return null==(e=s.default)?void 0:e.call(s)},default:()=>e.feedback})}function pe(){var l,t,r;const o=null==(l=e.fieldItem)?void 0:l.editor_title,n=!(null==(t=e.fieldItem)?void 0:t.editor_title_mode)||"EMBEDDED_FORM"===(null==(r=e.fieldItem)?void 0:r.editor_title_mode);return g(o)&&o&&n?a("section",{style:"display:flex;flex-direction:column;gap:4px"},[ce(),a("div",{innerHTML:U(o)},null)]):ce()}function be(){const e=[D.value.path+""];return D.value.form.query("*").forEach((l=>{(l.address+"").includes(D.value.address+"")&&((l.path+"").includes(D.value.path+"")||e.push(l.path+""))})),e}const he=t({get:()=>!(!(null==h?void 0:h.selectMode)||!_(null==h?void 0:h.selectedFields))&&h.selectedFields.includes(D.value.path+""),set(e){if(!_(null==h?void 0:h.selectedFields))return;let l=[...h.selectedFields];e?(l.push(...be()),l=F(l)):be().forEach((e=>{const t=l.indexOf(e);t>-1&&l.splice(t,1)})),null==N||N("update:selectedFields",l)}}),ye=t((()=>(null==h?void 0:h.selectMode)&&!(D.value.parent&&"LINEBAR"!==D.value.parent.componentType)));function ge(){(null==h?void 0:h.selectMode)&&(he.value=!he.value)}const _e=t((()=>e.isOptionChildField?!!e.feedback&&" "!==e.feedback&&e.showFeedback:e.showFeedback));return()=>a(w,n({class:["form-render__formItem",{"form-render--no-border":!ae.value,"form-render--underline":"underline"===ae.value,"form-render__formItemMask":ye.value,"form-render__formItemMask--selected":ye.value&&he.value}],style:{"--form-item-column":ve()},showFeedback:_e.value,feedback:"tooltip"===(null==h?void 0:h.feedbackType)?"":e.feedback,labelStyle:X.value},{id:$.value,uuid:V,onClick:ge,"widget-type":D.value.componentType,"field-key":q(G.value),"field-address":B(H.value),required:z.value}),{...s,default:pe,label:ue})}}),h({title:"label"},((e,l)=>{const t=v(l)?void 0:s(l.selfErrors).length?function(e,l){if(!g(l.defined_error_msg)||!l.defined_error_msg)return e.map((e=>N(e,l))).join(",");return N(l.defined_error_msg,l)}(s(l.selfErrors),e.fieldItem):void 0;return{...e,fieldItem:void 0,feedback:t,"validation-status":t?"error":void 0}})));export{D as FORM_ITEM};
|
@@ -156,6 +156,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
156
156
|
linebarDirection: "horizontal" | "vertical";
|
157
157
|
linebarTextDirection: "horizontal" | "vertical";
|
158
158
|
autoWidth: number | boolean;
|
159
|
+
feedbackType: "default" | "tooltip";
|
159
160
|
}>>;
|
160
161
|
isVerticalLinebar: import("vue").ComputedRef<boolean>;
|
161
162
|
wrapperClass: import("vue").ComputedRef<string[] | "">;
|
@@ -155,6 +155,7 @@ export declare const LINEBAR: import("@vue/runtime-core").DefineComponent<{
|
|
155
155
|
linebarDirection: "horizontal" | "vertical";
|
156
156
|
linebarTextDirection: "horizontal" | "vertical";
|
157
157
|
autoWidth: number | boolean;
|
158
|
+
feedbackType: "default" | "tooltip";
|
158
159
|
}>>;
|
159
160
|
isVerticalLinebar: import("vue").ComputedRef<boolean>;
|
160
161
|
wrapperClass: import("vue").ComputedRef<string[] | "">;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,computed as
|
1
|
+
import{defineComponent as e,computed as s,openBlock as o,createBlock as r,unref as t,withCtx as i,renderSlot as n,createVNode as l,createElementVNode as a,createElementBlock as m,Fragment as p,renderList as g,toDisplayString as f}from"vue";import{HelpCircleOutline as u}from"@vicons/ionicons5";import{isString as c}from"lodash-es";import{NTooltip as d}from"naive-ui";const v={style:{display:"inline-flex","flex-direction":"column"}};var x=e({__name:"tooltipMessage",props:{message:String},setup(e){const x=e,y=s((()=>c(x.message)?x.message.split("<br>"):[]));return(e,s)=>(o(),r(t(d),{trigger:"hover"},{trigger:i((()=>[n(e.$slots,"trigger",{},(()=>[l(t(u))]))])),default:i((()=>[a("section",v,[(o(!0),m(p,null,g(t(y),(e=>(o(),m("span",{key:e},f(e),1)))),128))])])),_:3}))}});export{x as default};
|