cnhis-design-vue 3.1.49-beta.21 → 3.1.49-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/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/surgicalAnesthesia/useCenter.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useLeft.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/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useBottom.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/useOther.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 +531 -3
- package/es/components/form-config/src/FormConfig.vue.d.ts +531 -3
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +267 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts +6 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -6,18 +6,194 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6
6
|
type: StringConstructor;
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
bindFormRenderRef: {
|
|
10
10
|
type: PropType<FormRenderExpose>;
|
|
11
11
|
};
|
|
12
|
+
formProps: {
|
|
13
|
+
type: PropType<Partial<Partial<{
|
|
14
|
+
fieldList: FieldItem[];
|
|
15
|
+
initialData: import("../../../../../es/shared/types").AnyObject;
|
|
16
|
+
fieldVisitor: import("../../../../../es/components/form-render").FieldVisitor;
|
|
17
|
+
column: number;
|
|
18
|
+
maxHeight: string | number;
|
|
19
|
+
anchor: boolean;
|
|
20
|
+
parallelism: number;
|
|
21
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
22
|
+
[key: symbol]: any;
|
|
23
|
+
[key: `x-${string}`]: any;
|
|
24
|
+
[key: `x-${number}`]: any;
|
|
25
|
+
version?: string | undefined;
|
|
26
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
27
|
+
title?: any;
|
|
28
|
+
description?: any;
|
|
29
|
+
default?: any;
|
|
30
|
+
readOnly?: boolean | undefined;
|
|
31
|
+
writeOnly?: boolean | undefined;
|
|
32
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
33
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
34
|
+
const?: any;
|
|
35
|
+
multipleOf?: number | undefined;
|
|
36
|
+
maximum?: number | undefined;
|
|
37
|
+
exclusiveMaximum?: number | undefined;
|
|
38
|
+
minimum?: number | undefined;
|
|
39
|
+
exclusiveMinimum?: number | undefined;
|
|
40
|
+
maxLength?: number | undefined;
|
|
41
|
+
minLength?: number | undefined;
|
|
42
|
+
pattern?: string | RegExp | undefined;
|
|
43
|
+
maxItems?: number | undefined;
|
|
44
|
+
minItems?: number | undefined;
|
|
45
|
+
uniqueItems?: boolean | undefined;
|
|
46
|
+
maxProperties?: number | undefined;
|
|
47
|
+
minProperties?: number | undefined;
|
|
48
|
+
required?: string | boolean | string[] | undefined;
|
|
49
|
+
format?: string | undefined;
|
|
50
|
+
$ref?: string | undefined;
|
|
51
|
+
$namespace?: string | undefined;
|
|
52
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
53
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
54
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
55
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
56
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
57
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
58
|
+
"x-value"?: any;
|
|
59
|
+
"x-index"?: number | undefined;
|
|
60
|
+
"x-pattern"?: any;
|
|
61
|
+
"x-display"?: any;
|
|
62
|
+
"x-validator"?: any;
|
|
63
|
+
"x-decorator"?: any;
|
|
64
|
+
"x-decorator-props"?: any;
|
|
65
|
+
"x-component"?: any;
|
|
66
|
+
"x-component-props"?: any;
|
|
67
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
68
|
+
"x-content"?: any;
|
|
69
|
+
"x-data"?: any;
|
|
70
|
+
"x-visible"?: boolean | undefined;
|
|
71
|
+
"x-hidden"?: boolean | undefined;
|
|
72
|
+
"x-disabled"?: boolean | undefined;
|
|
73
|
+
"x-editable"?: boolean | undefined;
|
|
74
|
+
"x-read-only"?: boolean | undefined;
|
|
75
|
+
"x-read-pretty"?: boolean | undefined;
|
|
76
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
79
|
+
scope: import("../../../../../es/shared/types").AnyObject;
|
|
80
|
+
annotation: import("../../../../../es/shared/types").AnyObject;
|
|
81
|
+
consumer: boolean;
|
|
82
|
+
uuid: string;
|
|
83
|
+
lifeCycle: Partial<{
|
|
84
|
+
onSetup(): void;
|
|
85
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
|
|
86
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
|
|
87
|
+
afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
|
|
88
|
+
}>;
|
|
89
|
+
businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
|
|
90
|
+
requestInstance: import("../../../../../es/components/form-render").RequestInstance;
|
|
91
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
92
|
+
lowCodeReactions: import("../../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
93
|
+
linebarAutoHidden: boolean;
|
|
94
|
+
bordered: string | boolean;
|
|
95
|
+
uniqueCacheData: boolean;
|
|
96
|
+
operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
|
|
97
|
+
outBordered: boolean;
|
|
98
|
+
}>>>;
|
|
99
|
+
};
|
|
12
100
|
}, {
|
|
13
101
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
14
102
|
uuid: {
|
|
15
103
|
type: StringConstructor;
|
|
16
104
|
required: true;
|
|
17
105
|
};
|
|
18
|
-
|
|
106
|
+
bindFormRenderRef: {
|
|
19
107
|
type: PropType<FormRenderExpose>;
|
|
20
108
|
};
|
|
109
|
+
formProps: {
|
|
110
|
+
type: PropType<Partial<Partial<{
|
|
111
|
+
fieldList: FieldItem[];
|
|
112
|
+
initialData: import("../../../../../es/shared/types").AnyObject;
|
|
113
|
+
fieldVisitor: import("../../../../../es/components/form-render").FieldVisitor;
|
|
114
|
+
column: number;
|
|
115
|
+
maxHeight: string | number;
|
|
116
|
+
anchor: boolean;
|
|
117
|
+
parallelism: number;
|
|
118
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
119
|
+
[key: symbol]: any;
|
|
120
|
+
[key: `x-${string}`]: any;
|
|
121
|
+
[key: `x-${number}`]: any;
|
|
122
|
+
version?: string | undefined;
|
|
123
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
124
|
+
title?: any;
|
|
125
|
+
description?: any;
|
|
126
|
+
default?: any;
|
|
127
|
+
readOnly?: boolean | undefined;
|
|
128
|
+
writeOnly?: boolean | undefined;
|
|
129
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
130
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
131
|
+
const?: any;
|
|
132
|
+
multipleOf?: number | undefined;
|
|
133
|
+
maximum?: number | undefined;
|
|
134
|
+
exclusiveMaximum?: number | undefined;
|
|
135
|
+
minimum?: number | undefined;
|
|
136
|
+
exclusiveMinimum?: number | undefined;
|
|
137
|
+
maxLength?: number | undefined;
|
|
138
|
+
minLength?: number | undefined;
|
|
139
|
+
pattern?: string | RegExp | undefined;
|
|
140
|
+
maxItems?: number | undefined;
|
|
141
|
+
minItems?: number | undefined;
|
|
142
|
+
uniqueItems?: boolean | undefined;
|
|
143
|
+
maxProperties?: number | undefined;
|
|
144
|
+
minProperties?: number | undefined;
|
|
145
|
+
required?: string | boolean | string[] | undefined;
|
|
146
|
+
format?: string | undefined;
|
|
147
|
+
$ref?: string | undefined;
|
|
148
|
+
$namespace?: string | undefined;
|
|
149
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
150
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
151
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
152
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
153
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
154
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
155
|
+
"x-value"?: any;
|
|
156
|
+
"x-index"?: number | undefined;
|
|
157
|
+
"x-pattern"?: any;
|
|
158
|
+
"x-display"?: any;
|
|
159
|
+
"x-validator"?: any;
|
|
160
|
+
"x-decorator"?: any;
|
|
161
|
+
"x-decorator-props"?: any;
|
|
162
|
+
"x-component"?: any;
|
|
163
|
+
"x-component-props"?: any;
|
|
164
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
165
|
+
"x-content"?: any;
|
|
166
|
+
"x-data"?: any;
|
|
167
|
+
"x-visible"?: boolean | undefined;
|
|
168
|
+
"x-hidden"?: boolean | undefined;
|
|
169
|
+
"x-disabled"?: boolean | undefined;
|
|
170
|
+
"x-editable"?: boolean | undefined;
|
|
171
|
+
"x-read-only"?: boolean | undefined;
|
|
172
|
+
"x-read-pretty"?: boolean | undefined;
|
|
173
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
176
|
+
scope: import("../../../../../es/shared/types").AnyObject;
|
|
177
|
+
annotation: import("../../../../../es/shared/types").AnyObject;
|
|
178
|
+
consumer: boolean;
|
|
179
|
+
uuid: string;
|
|
180
|
+
lifeCycle: Partial<{
|
|
181
|
+
onSetup(): void;
|
|
182
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
|
|
183
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
|
|
184
|
+
afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
|
|
185
|
+
}>;
|
|
186
|
+
businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
|
|
187
|
+
requestInstance: import("../../../../../es/components/form-render").RequestInstance;
|
|
188
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
189
|
+
lowCodeReactions: import("../../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
190
|
+
linebarAutoHidden: boolean;
|
|
191
|
+
bordered: string | boolean;
|
|
192
|
+
uniqueCacheData: boolean;
|
|
193
|
+
operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
|
|
194
|
+
outBordered: boolean;
|
|
195
|
+
}>>>;
|
|
196
|
+
};
|
|
21
197
|
}>> & {}>>;
|
|
22
198
|
wrapperSelector: import("vue").ComputedRef<string>;
|
|
23
199
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
|
@@ -5997,8 +6173,96 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5997
6173
|
type: StringConstructor;
|
|
5998
6174
|
required: true;
|
|
5999
6175
|
};
|
|
6000
|
-
|
|
6176
|
+
bindFormRenderRef: {
|
|
6001
6177
|
type: PropType<FormRenderExpose>;
|
|
6002
6178
|
};
|
|
6179
|
+
formProps: {
|
|
6180
|
+
type: PropType<Partial<Partial<{
|
|
6181
|
+
fieldList: FieldItem[];
|
|
6182
|
+
initialData: import("../../../../../es/shared/types").AnyObject;
|
|
6183
|
+
fieldVisitor: import("../../../../../es/components/form-render").FieldVisitor;
|
|
6184
|
+
column: number;
|
|
6185
|
+
maxHeight: string | number;
|
|
6186
|
+
anchor: boolean;
|
|
6187
|
+
parallelism: number;
|
|
6188
|
+
schema: import("@formily/json-schema").Stringify<{
|
|
6189
|
+
[key: symbol]: any;
|
|
6190
|
+
[key: `x-${string}`]: any;
|
|
6191
|
+
[key: `x-${number}`]: any;
|
|
6192
|
+
version?: string | undefined;
|
|
6193
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
6194
|
+
title?: any;
|
|
6195
|
+
description?: any;
|
|
6196
|
+
default?: any;
|
|
6197
|
+
readOnly?: boolean | undefined;
|
|
6198
|
+
writeOnly?: boolean | undefined;
|
|
6199
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
6200
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
6201
|
+
const?: any;
|
|
6202
|
+
multipleOf?: number | undefined;
|
|
6203
|
+
maximum?: number | undefined;
|
|
6204
|
+
exclusiveMaximum?: number | undefined;
|
|
6205
|
+
minimum?: number | undefined;
|
|
6206
|
+
exclusiveMinimum?: number | undefined;
|
|
6207
|
+
maxLength?: number | undefined;
|
|
6208
|
+
minLength?: number | undefined;
|
|
6209
|
+
pattern?: string | RegExp | undefined;
|
|
6210
|
+
maxItems?: number | undefined;
|
|
6211
|
+
minItems?: number | undefined;
|
|
6212
|
+
uniqueItems?: boolean | undefined;
|
|
6213
|
+
maxProperties?: number | undefined;
|
|
6214
|
+
minProperties?: number | undefined;
|
|
6215
|
+
required?: string | boolean | string[] | undefined;
|
|
6216
|
+
format?: string | undefined;
|
|
6217
|
+
$ref?: string | undefined;
|
|
6218
|
+
$namespace?: string | undefined;
|
|
6219
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
6220
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
6221
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
6222
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
6223
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
6224
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
6225
|
+
"x-value"?: any;
|
|
6226
|
+
"x-index"?: number | undefined;
|
|
6227
|
+
"x-pattern"?: any;
|
|
6228
|
+
"x-display"?: any;
|
|
6229
|
+
"x-validator"?: any;
|
|
6230
|
+
"x-decorator"?: any;
|
|
6231
|
+
"x-decorator-props"?: any;
|
|
6232
|
+
"x-component"?: any;
|
|
6233
|
+
"x-component-props"?: any;
|
|
6234
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
6235
|
+
"x-content"?: any;
|
|
6236
|
+
"x-data"?: any;
|
|
6237
|
+
"x-visible"?: boolean | undefined;
|
|
6238
|
+
"x-hidden"?: boolean | undefined;
|
|
6239
|
+
"x-disabled"?: boolean | undefined;
|
|
6240
|
+
"x-editable"?: boolean | undefined;
|
|
6241
|
+
"x-read-only"?: boolean | undefined;
|
|
6242
|
+
"x-read-pretty"?: boolean | undefined;
|
|
6243
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
6244
|
+
}>;
|
|
6245
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
6246
|
+
scope: import("../../../../../es/shared/types").AnyObject;
|
|
6247
|
+
annotation: import("../../../../../es/shared/types").AnyObject;
|
|
6248
|
+
consumer: boolean;
|
|
6249
|
+
uuid: string;
|
|
6250
|
+
lifeCycle: Partial<{
|
|
6251
|
+
onSetup(): void;
|
|
6252
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/shared/types").AnyObject | undefined): void | import("../../../../../es/shared/types").UndefinedAble<import("../../../../../es/shared/types").AnyObject>;
|
|
6253
|
+
afterRequest(fieldKey: string, payload?: any): import("../../../../../es/shared/types").AnyObject[];
|
|
6254
|
+
afterOptionInit(fieldKey: string, options: import("../../../../../es/shared/types").AnyObject[]): void;
|
|
6255
|
+
}>;
|
|
6256
|
+
businessFormatter: import("../../../../../es/components/form-render").FormBusinessFormatter;
|
|
6257
|
+
requestInstance: import("../../../../../es/components/form-render").RequestInstance;
|
|
6258
|
+
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
6259
|
+
lowCodeReactions: import("../../../../../es/components/form-render").FormLowCodeReactions.Config[];
|
|
6260
|
+
linebarAutoHidden: boolean;
|
|
6261
|
+
bordered: string | boolean;
|
|
6262
|
+
uniqueCacheData: boolean;
|
|
6263
|
+
operationalForm: import("../../../../../es/shared/types").FormOperationalConfig[];
|
|
6264
|
+
outBordered: boolean;
|
|
6265
|
+
}>>>;
|
|
6266
|
+
};
|
|
6003
6267
|
}>>, {}>;
|
|
6004
6268
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as o,ref as i,inject as
|
|
1
|
+
import{defineComponent as e,computed as o,ref as i,inject as t,watch as l,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=o((()=>`#${j.uuid} .form-config__config`)),F=i(),w=t(p),R=i([]),k=i({}),{generateFieldListByFormConfigItem:C}=h(),P=i(!1);async function _(){var e;w.value=L,await v(),null==(e=F.value)||e.validate()}let L=null;function O({fieldKey:e,value:o}){w.value&&(w.value[e]=o)}return l(w,(async(e,o)=>{var i,t,l;if(!e)return R.value=[];if(o&&e!==L)try{await(null==(i=F.value)?void 0:i.validate())}catch(e){return P.value=!0}L=e,k.value={editable:!0,show:!0,...f(a(e))};const r=null==(t=j.bindFormRenderRef)?void 0:t.getFieldList();R.value=C(e,c(r,e.key)).map((e=>({...e,componentProps:{...e.componentProps,to:x.value}}))),null==(l=F.value)||l.reload()}),{immediate:!0}),b({validate(){var e;return null==(e=F.value)?void 0:e.validate()}}),(o,i)=>(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:P.value,"onUpdate:show":i[0]||(i[0]=e=>P.value=e),preset:"dialog",to:d(x),"close-on-esc":!1,"mask-closable":!1,closable:!1,title:"存在填写错误的字段","positive-text":"继续编辑",onPositiveClick:_},null,8,["show","to"])],64))}});export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toRaw as e,h as t,inject as l,createVNode as i}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as a,cloneDeep as d,isString as r}from"lodash-es";import u from"../../../../annotation-edit/index.js";import{HIGHEST_PRIORITY as c,IHO_TABLE_FIXED_STATUS as f,LOWEST_PRIORITY as m,WIDGET_TYPE as p,InjectionIhoTableAnnotation as h,InjectionIhoTableConfig as v}from"../../constants/index.js";import{defineTablePlugin as b}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as g,IhoTableUtils as x,IhoTableRenderHelper as R}from"../../utils/index.js";import{getDefaultValue as j}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function w(){const w="lowCodeFieldAdaptorPlugin";return b({name:w,apply(b){b.fieldHooks.field.tap({name:w,stage:c},((c,m,b)=>{const w=c,P={className:w.bold?"iho-table__boldCell":"",field:w.columnName,showOverflow:"ellipsis",visible:g.notNegative(w.isShow),minWidth:w.colWidth,sortable:g.isPositive(w.isSort),fixed:f[w.isFixed],...w,title:w.alias||w.title};return function(e,d){const c={default:d.slotFn,header:d.headerSlotFn,edit:d.editSlotFn,footer:d.footerSlotFn,...d.slots};if(a(d.checkEditStatus)){const{default:e}=c;a(e)&&(c.default=l=>d.checkEditStatus(l)?e(l):[t("span",null,j(l.row,l.column.editRender.props))])}const f=c.header;c.header=e=>function(e,t,d){var c;const f=l(h),m=l(v),p=l("$xetable"),b=e.column||{},g=n(null==f?void 0:f.value)&&!1!==t.annotation,x=R.isEditableColumn(m.value,b),j=R.hasFilter(t)||R.hasDateFiler(t),w=null==(c=t.titlePrefix)?void 0:c.content,P=r(d)?d:a(d)?d(e):null;let F=!1;if(m.value){const e=m.value.editRules&&m.value.editRules[b.field];e&&(F=o(e).some((e=>e.required)))}const S=m.value.border?Math.max(2,Math.ceil(p.reactData.scrollbarWidth/p.reactData.tableColumn.length)):1,W=s(Math.max(0,b.renderWidth-20-S-(F?14:0)-(g?18:0)-(j?23:0)-(x?22:0)-(w?20:0)-(b.sortable?23:0)));return i("section",{class:"iho-table__headerWrapper"},[i("section",{style:{width:W}},[null!=P?P:i("div",{style:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[b.title])]),g?i(u,{modelValue:f.value[b.field],"onUpdate:modelValue":e=>f.value[b.field]=e},null):null])}(e,d,f),e.slots=c}(P,w),function(t,l,i){var o,s;const r=d(e(l));r.componentProps={size:"mini"===i.size?"small":i.size,...r.componentProps},t.editRender={
|
|
1
|
+
import{toRaw as e,h as t,inject as l,createVNode as i}from"vue";import{arrayed as o,widthAppend as s}from"../../../../../shared/utils/index.js";import{isObject as n,isFunction as a,cloneDeep as d,isString as r}from"lodash-es";import u from"../../../../annotation-edit/index.js";import{HIGHEST_PRIORITY as c,IHO_TABLE_FIXED_STATUS as f,LOWEST_PRIORITY as m,WIDGET_TYPE as p,InjectionIhoTableAnnotation as h,InjectionIhoTableConfig as v}from"../../constants/index.js";import{defineTablePlugin as b}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as g,IhoTableUtils as x,IhoTableRenderHelper as R}from"../../utils/index.js";import{getDefaultValue as j}from"../rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js";function w(){const w="lowCodeFieldAdaptorPlugin";return b({name:w,apply(b){b.fieldHooks.field.tap({name:w,stage:c},((c,m,b)=>{const w=c,P={className:w.bold?"iho-table__boldCell":"",field:w.columnName,showOverflow:"ellipsis",visible:g.notNegative(w.isShow),minWidth:w.colWidth,sortable:g.isPositive(w.isSort),fixed:f[w.isFixed],...w,title:w.alias||w.title};return function(e,d){const c={default:d.slotFn,header:d.headerSlotFn,edit:d.editSlotFn,footer:d.footerSlotFn,...d.slots};if(a(d.checkEditStatus)){const{default:e}=c;a(e)&&(c.default=l=>d.checkEditStatus(l)?e(l):[t("span",null,j(l.row,l.column.editRender.props))])}const f=c.header;c.header=e=>function(e,t,d){var c;const f=l(h),m=l(v),p=l("$xetable"),b=e.column||{},g=n(null==f?void 0:f.value)&&!1!==t.annotation,x=R.isEditableColumn(m.value,b),j=R.hasFilter(t)||R.hasDateFiler(t),w=null==(c=t.titlePrefix)?void 0:c.content,P=r(d)?d:a(d)?d(e):null;let F=!1;if(m.value){const e=m.value.editRules&&m.value.editRules[b.field];e&&(F=o(e).some((e=>e.required)))}const S=m.value.border?Math.max(2,Math.ceil(p.reactData.scrollbarWidth/p.reactData.tableColumn.length)):1,W=s(Math.max(0,b.renderWidth-20-S-(F?14:0)-(g?18:0)-(j?23:0)-(x?22:0)-(w?20:0)-(b.sortable?23:0)));return i("section",{class:"iho-table__headerWrapper"},[i("section",{style:{width:W}},[null!=P?P:i("div",{style:{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},[b.title])]),g?i(u,{modelValue:f.value[b.field],"onUpdate:modelValue":e=>f.value[b.field]=e},null):null])}(e,d,f),e.slots=c}(P,w),function(t,l,i){var o,s;const r=d(e(l));r.componentProps={size:"mini"===i.size?"small":i.size,...r.componentProps},t.editRender={name:x.getCellType(l),...t.editRender,props:r},t.editRender.enabled=!Reflect.get(p,t.editRender.name),a(null==(o=t.slots)?void 0:o.default)&&(t.editRender.enabled=t.editRender.enabled&&a(null==(s=t.slots)?void 0:s.edit));if(!n(l.settingObj))return;Reflect.has(l.settingObj,"isHide")&&(t.visible=t.visible&&g.notPositive(l.settingObj.isHide))}(P,w,b),P})),b.fieldHooks.field.tap({name:w+"After",stage:m},(e=>(n(e.slots)&&Object.entries(e.slots).forEach((([t,l])=>{null==l&&Reflect.deleteProperty(e.slots,t)})),e)))}})}export{w as lowCodeFieldAdaptorPlugin};
|
package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { TableHooks } from '../../../../../../../../es/components/iho-table';
|
|
1
|
+
import { IhoTableFieldItem, TableHooks } from '../../../../../../../../es/components/iho-table';
|
|
2
2
|
export declare function useAutoFocus(hooks: TableHooks): {
|
|
3
|
-
bindAutoFocusConfig: (pluginName: string, type: string, selector: string
|
|
3
|
+
bindAutoFocusConfig: (pluginName: string, type: string, selector: string, { before, after, focusType }?: {
|
|
4
|
+
before?: ((fieldItem: IhoTableFieldItem) => IhoTableFieldItem) | undefined;
|
|
5
|
+
after?: ((fieldItem: IhoTableFieldItem) => IhoTableFieldItem) | undefined;
|
|
6
|
+
focusType?: "function" | "class" | undefined;
|
|
7
|
+
}) => void;
|
|
4
8
|
};
|
package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e){return{bindAutoFocusConfig:function(t,n,r){e.fieldHooks.field.tap(t,(e=>{var t;return(null==(t=e.editRender)?void 0:t.name)===n
|
|
1
|
+
function e(e){return{bindAutoFocusConfig:function(t,n,o,{before:r,after:u,focusType:c="function"}={}){e.fieldHooks.field.tap(t,(e=>{var t;return(null==(t=e.editRender)?void 0:t.name)===n?((e=r?r(e):e).editRender&&!Reflect.has(e.editRender,"autofocus")&&Reflect.set(e.editRender,"autofocus","class"===c?o:"function"===c?({cell:e}={})=>{if(!e)return;const t=e.querySelector(o);return null==t||t.click(),t}:void 0),u?u(e):e):e}))}}}export{e as useAutoFocus};
|
package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createVNode as e,mergeProps as t}from"vue";import{NInput as
|
|
1
|
+
import{createVNode as e,mergeProps as t}from"vue";import{NInput as o}from"naive-ui";import"../../../../index.js";import{EDITABLE_WIDGET_TYPE as n}from"../../../constants/index.js";import{useAutoFocus as r}from"./hooks/useAutoFocus.js";import{IhoTableRenderHelper as i}from"../../../utils/index.js";import{defineTablePlugin as a}from"../../../hooks/useTablePlugin.js";function l(){const l="inputRendererPlugins";return a({name:l,vxe(r){let a="";r.renderer.add(n.INPUT,{renderCell:i.createDefaultRenderCell(),renderEdit:i.createRenderEdit((({fieldItem:n,row:r,rowIndex:i,column:l,emitFormChangeWithParams:d,emitFormClick:s,$table:u})=>[e(o,t({value:r[l.field],"onUpdate:value":e=>r[l.field]=e},n.componentProps,{onChange:()=>{d({oldValue:a})},onClick:s,onFocus:()=>a=r[l.field],onKeydown:async e=>{if("Enter"!==e.key)return;const{fullData:t}=u.getTableData();if(t.length!==i+1)return;const{editStore:{actived:o}={}}=u.reactData;if(o&&o.row){const t=o.args;await u.clearEdit(),u.handleSelected(t,e)}}}),null)]))})},apply(e){r(e).bindAutoFocusConfig(l,n.INPUT,".n-input__input-el",{focusType:"class"})}})}export{l as inputRendererPlugin};
|
package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createVNode as e,mergeProps as l,defineComponent as
|
|
1
|
+
import{createVNode as e,mergeProps as l,defineComponent as o,computed as r}from"vue";import n from"../../../../../../shared/components/InputNumberSlash/InputNumberSlash.js";import{isNumber as u}from"lodash-es";import{NInputNumber as t}from"naive-ui";import"../../../../index.js";import{EDITABLE_WIDGET_TYPE as a}from"../../../constants/index.js";import{useAutoFocus as s}from"./hooks/useAutoFocus.js";import{IhoTableRenderHelper as i}from"../../../utils/index.js";import{defineTablePlugin as m}from"../../../hooks/useTablePlugin.js";const p=o({name:"IhoTableInputNumber",props:{value:[String,Number]},emits:["update:value"],setup(l,{emit:o}){const n=r({get:()=>u(l.value)?l.value:l.value&&u(+l.value)?+l.value:null,set(e){o("update:value",e)}});return()=>e(t,{value:n.value,"onUpdate:value":e=>n.value=e},null)}});function d(){const o="numberRendererPlugin";return m({name:o,vxe(o){o.renderer.add(a.NUMBER,{renderCell:i.createDefaultRenderCell(),renderEdit:i.createRenderEdit((({row:o,column:r,fieldItem:u,emitFormClick:t,emitFormChangeWithParams:a})=>{const{placeholder:s="请输入"}=u.componentProps||{},i={clearable:!0,placeholder:s,onBlur:()=>a({type:"blur",oldValue:o[r.field]}),[u.allowSlash?"onChange":"onUpdateValue"]:e=>{const l=o[r.field];o[r.field]=e,a({oldValue:l})},onClick:t};return u.allowSlash?e(n,l({value:o[r.field]},i,u.componentProps),null):e(p,l({value:o[r.field]},i,u.componentProps),null)}))})},apply(e){s(e).bindAutoFocusConfig(o,a.INPUT,".n-input__input-el",{focusType:"class"})}})}export{d as numberRendererPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createVNode as e,mergeProps as o}from"vue";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as
|
|
1
|
+
import{createVNode as e,mergeProps as o}from"vue";import"../../../../../index.js";import{EDITABLE_WIDGET_TYPE as t}from"../../../../constants/index.js";import{useAutoFocus as r}from"../hooks/useAutoFocus.js";import{createIhoTableClearActivedInterceptor as n,IhoTableRenderHelper as i}from"../../../../utils/index.js";import d from"./editTime.vue.js";import{defineTablePlugin as l}from"../../../../hooks/useTablePlugin.js";function m(){const m="timeRendererPlugin";return l({name:m,vxe(r){r.interceptor.add("event.clearActived",n(t.TIME,(e=>e.classList.contains("n-popover")))),r.renderer.add(t.TIME,{renderCell:i.createDefaultRenderCell(),renderEdit:i.createRenderEdit((({fieldItem:t,emitFormClick:r,row:n,column:i,$rowIndex:l})=>[e(d,o({formattedValue:n[i.field],"onUpdate:formattedValue":e=>n[i.field]=e,column:i,row:n,"row-index":l},t.componentProps,{onClick:r}),null)]))})},apply(e){r(e).bindAutoFocusConfig(m,t.TIME,".n-input__input-el",{after:e=>(Reflect.set(e.editRender,"autoselect",!0),e)})}})}export{m as timeRendererPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.49-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.49-beta.23",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.49-beta.23",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.49-beta.
|
|
3
|
+
"version": "3.1.49-beta.23",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"iOS 7",
|
|
64
64
|
"last 3 iOS versions"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "c34f75513151b556201c81bb276c916b2f7173b1"
|
|
67
67
|
}
|