@blueking/bkui-form 0.0.31 → 0.0.33
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/dist/adapter/vue2/common/FieldGroupWrap.d.ts +34 -0
- package/dist/adapter/vue2/field/ArrayField.d.ts +19 -0
- package/dist/adapter/vue2/field/BooleanField.d.ts +18 -0
- package/dist/adapter/vue2/field/CompositionField.d.ts +22 -0
- package/dist/adapter/vue2/field/FieldProps.d.ts +65 -0
- package/dist/adapter/vue2/field/NumberField.d.ts +18 -0
- package/dist/adapter/vue2/field/ObjectField.d.ts +3 -0
- package/dist/adapter/vue2/field/SchemaField.d.ts +3 -0
- package/dist/adapter/vue2/field/StringField.d.ts +18 -0
- package/dist/adapter/vue2/widget/ArrayWidget.d.ts +9 -0
- package/dist/adapter/vue2/widget/ButtonWidget.d.ts +9 -0
- package/dist/adapter/vue2/widget/CheckboxWidget.d.ts +12 -0
- package/dist/adapter/vue2/widget/CollapseGroupWidget.d.ts +16 -0
- package/dist/adapter/vue2/widget/ColorPickerWidget.d.ts +9 -0
- package/dist/adapter/vue2/widget/InputWidget.d.ts +15 -0
- package/dist/adapter/vue2/widget/KeyValueArrayWidget.d.ts +26 -0
- package/dist/adapter/vue2/widget/RadioWidget.d.ts +12 -0
- package/dist/adapter/vue2/widget/SelectWidget.d.ts +12 -0
- package/dist/adapter/vue2/widget/SwitchWidget.d.ts +9 -0
- package/dist/adapter/vue2/widget/TabGroupWidget.d.ts +17 -0
- package/dist/adapter/vue2/widget/TableWidget.d.ts +25 -0
- package/dist/adapter/vue2/widget/Widget.d.ts +22 -0
- package/dist/bkui-form-es-min.js +6 -8
- package/dist/bkui-form-es.js +533 -926
- package/dist/bkui-form-es.js.map +1 -1
- package/dist/bkui-form-umd-min.js +6 -8
- package/dist/bkui-form-umd.js +533 -926
- package/dist/bkui-form-umd.js.map +1 -1
- package/dist/controller/form-vue2.d.ts +26 -0
- package/dist/controller/props.d.ts +51 -0
- package/dist/core/events.d.ts +10 -0
- package/dist/core/expression.d.ts +13 -0
- package/dist/core/form.d.ts +4 -0
- package/dist/core/layout.d.ts +19 -0
- package/dist/core/path.d.ts +9 -0
- package/dist/core/proxy.d.ts +2 -0
- package/dist/core/reaction.d.ts +4 -0
- package/dist/core/register.d.ts +19 -0
- package/dist/core/schema.d.ts +24 -0
- package/dist/core/validator.d.ts +34 -0
- package/dist/core/widgetTree.d.ts +40 -0
- package/dist/index.d.ts +5 -0
- package/dist/util/fetch.d.ts +9 -0
- package/dist/util/index.d.ts +16 -0
- package/package.json +7 -7
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { IFormState } from '@/@types';
|
|
3
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {
|
|
4
|
+
groupErrorTips: {};
|
|
5
|
+
state: {
|
|
6
|
+
visible: boolean;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
setState(key: keyof IFormState, value: any): void;
|
|
10
|
+
setGroupErrorTips(widgetPath: any, errorTips: any): void;
|
|
11
|
+
removeGroupErrorTips(widgetPath: any): void;
|
|
12
|
+
clearGroupErrorTips(): void;
|
|
13
|
+
}, unknown, {
|
|
14
|
+
type: string;
|
|
15
|
+
showTitle: boolean;
|
|
16
|
+
border: boolean;
|
|
17
|
+
verifiable: boolean;
|
|
18
|
+
hideEmptyRow: boolean;
|
|
19
|
+
schema: import("json-schema").JSONSchema7;
|
|
20
|
+
path: string;
|
|
21
|
+
required: boolean;
|
|
22
|
+
rootData: any;
|
|
23
|
+
value: any;
|
|
24
|
+
layout: Partial<import("@/@types").ILayoutConfig>;
|
|
25
|
+
context: any;
|
|
26
|
+
removeable: boolean;
|
|
27
|
+
httpAdapter: any;
|
|
28
|
+
visible: boolean;
|
|
29
|
+
error: boolean;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
readonly: boolean;
|
|
32
|
+
readonlyMode: any;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { JSONSchema7 } from 'json-schema';
|
|
3
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, {}, {}, {
|
|
4
|
+
schema: JSONSchema7;
|
|
5
|
+
path: string;
|
|
6
|
+
required: boolean;
|
|
7
|
+
rootData: any;
|
|
8
|
+
value: any;
|
|
9
|
+
layout: Partial<import("../../../@types").ILayoutConfig>;
|
|
10
|
+
context: any;
|
|
11
|
+
removeable: boolean;
|
|
12
|
+
httpAdapter: any;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
error: boolean;
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
readonlyMode: any;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, {}, {}, {
|
|
3
|
+
schema: import("json-schema").JSONSchema7;
|
|
4
|
+
path: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
rootData: any;
|
|
7
|
+
value: any;
|
|
8
|
+
layout: Partial<import("../../../@types").ILayoutConfig>;
|
|
9
|
+
context: any;
|
|
10
|
+
removeable: boolean;
|
|
11
|
+
httpAdapter: any;
|
|
12
|
+
visible: boolean;
|
|
13
|
+
error: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
readonly: boolean;
|
|
16
|
+
readonlyMode: any;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {
|
|
4
|
+
activeIndex: number;
|
|
5
|
+
}, unknown, unknown, {
|
|
6
|
+
composition: string;
|
|
7
|
+
schema: JSONSchema7;
|
|
8
|
+
path: string;
|
|
9
|
+
required: boolean;
|
|
10
|
+
rootData: any;
|
|
11
|
+
value: any;
|
|
12
|
+
layout: Partial<import("../../../@types").ILayoutConfig>;
|
|
13
|
+
context: any;
|
|
14
|
+
removeable: boolean;
|
|
15
|
+
httpAdapter: any;
|
|
16
|
+
visible: boolean;
|
|
17
|
+
error: boolean;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
readonly: boolean;
|
|
20
|
+
readonlyMode: any;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ILayoutConfig } from '@/@types';
|
|
2
|
+
import { JSONSchema7 } from 'json-schema';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
schema: {
|
|
6
|
+
type: PropType<JSONSchema7>;
|
|
7
|
+
default: () => JSONSchema7;
|
|
8
|
+
};
|
|
9
|
+
path: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
required: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
rootData: {
|
|
18
|
+
type: ObjectConstructor;
|
|
19
|
+
default: () => {};
|
|
20
|
+
};
|
|
21
|
+
value: {
|
|
22
|
+
type: (ObjectConstructor | ArrayConstructor | StringConstructor | NumberConstructor | BooleanConstructor)[];
|
|
23
|
+
};
|
|
24
|
+
layout: {
|
|
25
|
+
type: PropType<ILayoutConfig>;
|
|
26
|
+
default: () => Partial<ILayoutConfig>;
|
|
27
|
+
};
|
|
28
|
+
context: {
|
|
29
|
+
type: ObjectConstructor;
|
|
30
|
+
default: () => {};
|
|
31
|
+
};
|
|
32
|
+
removeable: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
httpAdapter: {
|
|
37
|
+
type: ObjectConstructor;
|
|
38
|
+
default: () => {
|
|
39
|
+
request: (url: string, config?: Partial<import("@/util/fetch").IFetchConfig>) => Promise<any>;
|
|
40
|
+
responseParse: (res: any) => any;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
visible: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
error: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
disabled: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
readonly: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
readonlyMode: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
validator: (value: any) => boolean;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, {}, {}, {
|
|
3
|
+
schema: import("json-schema").JSONSchema7;
|
|
4
|
+
path: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
rootData: any;
|
|
7
|
+
value: any;
|
|
8
|
+
layout: Partial<import("../../../@types").ILayoutConfig>;
|
|
9
|
+
context: any;
|
|
10
|
+
removeable: boolean;
|
|
11
|
+
httpAdapter: any;
|
|
12
|
+
visible: boolean;
|
|
13
|
+
error: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
readonly: boolean;
|
|
16
|
+
readonlyMode: any;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, {}, {}, {
|
|
3
|
+
schema: import("json-schema").JSONSchema7;
|
|
4
|
+
path: string;
|
|
5
|
+
required: boolean;
|
|
6
|
+
rootData: any;
|
|
7
|
+
value: any;
|
|
8
|
+
layout: Partial<import("../../../@types").ILayoutConfig>;
|
|
9
|
+
context: any;
|
|
10
|
+
removeable: boolean;
|
|
11
|
+
httpAdapter: any;
|
|
12
|
+
visible: boolean;
|
|
13
|
+
error: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
readonly: boolean;
|
|
16
|
+
readonlyMode: any;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { IWidgetProps } from '@/@types';
|
|
3
|
+
interface Methods {
|
|
4
|
+
handleFillItem: Function;
|
|
5
|
+
handleAddItem: Function;
|
|
6
|
+
handleDeleteItem: (path: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, Methods, {}, IWidgetProps>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IDataSource } from '@/@types';
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
interface Methods {
|
|
4
|
+
handleChange: Function;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
datasource: IDataSource[];
|
|
8
|
+
value: boolean | any[];
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, Methods, {}, Props>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ILayoutConfig } from '@/@types';
|
|
2
|
+
import { JSONSchema7 } from 'json-schema';
|
|
3
|
+
import Vue from 'vue';
|
|
4
|
+
interface Data {
|
|
5
|
+
activeName: string[];
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
layout: Partial<ILayoutConfig>;
|
|
9
|
+
type: string;
|
|
10
|
+
showTitle: boolean;
|
|
11
|
+
border: boolean;
|
|
12
|
+
schema: JSONSchema7;
|
|
13
|
+
[k: string]: any;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, Data, {}, {}, Props>;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
interface Methods {
|
|
3
|
+
handleInput: Function;
|
|
4
|
+
handleBlur: Function;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
value: string | number;
|
|
8
|
+
unit: string;
|
|
9
|
+
maxRows: number;
|
|
10
|
+
}
|
|
11
|
+
interface Computed {
|
|
12
|
+
rows: number;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, Methods, Computed, Props>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { JSONSchema7 } from 'json-schema';
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, unknown, {
|
|
4
|
+
handleAddItem(): void;
|
|
5
|
+
handleRemoveItem(index: any): void;
|
|
6
|
+
handleInput({ path, value }: {
|
|
7
|
+
path: any;
|
|
8
|
+
value: any;
|
|
9
|
+
}): void;
|
|
10
|
+
}, unknown, {
|
|
11
|
+
schema: JSONSchema7;
|
|
12
|
+
path: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
rootData: any;
|
|
15
|
+
value: any;
|
|
16
|
+
layout: Partial<import("@/@types").ILayoutConfig>;
|
|
17
|
+
context: any;
|
|
18
|
+
removeable: boolean;
|
|
19
|
+
httpAdapter: any;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
error: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
readonlyMode: any;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IDataSource } from '@/@types';
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
interface Methods {
|
|
4
|
+
handleChange: Function;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
datasource: IDataSource[];
|
|
8
|
+
value: string | number | boolean;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, Methods, {}, Props>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IDataSource } from '@/@types';
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
interface Methods {
|
|
4
|
+
handleSelectChange: Function;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
datasource: IDataSource[];
|
|
8
|
+
value: any;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, {}, Methods, {}, Props>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { JSONSchema7 } from 'json-schema';
|
|
3
|
+
import { ILayoutConfig } from '@/@types';
|
|
4
|
+
interface Data {
|
|
5
|
+
activeName: string[];
|
|
6
|
+
}
|
|
7
|
+
interface Props {
|
|
8
|
+
layout: Partial<ILayoutConfig>;
|
|
9
|
+
type: string;
|
|
10
|
+
showTitle: boolean;
|
|
11
|
+
border: boolean;
|
|
12
|
+
schema: JSONSchema7;
|
|
13
|
+
verifiable: boolean;
|
|
14
|
+
[k: string]: any;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, Data, {}, {}, Props>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, unknown, {
|
|
3
|
+
handleCellValChange({ path, value }: {
|
|
4
|
+
path: any;
|
|
5
|
+
value: any;
|
|
6
|
+
}): void;
|
|
7
|
+
handleAddRow(index: any): void;
|
|
8
|
+
handleDelRow(index: any): void;
|
|
9
|
+
}, unknown, {
|
|
10
|
+
schema: import("json-schema").JSONSchema7;
|
|
11
|
+
path: string;
|
|
12
|
+
required: boolean;
|
|
13
|
+
rootData: any;
|
|
14
|
+
value: any;
|
|
15
|
+
layout: Partial<import("../../../@types").ILayoutConfig>;
|
|
16
|
+
context: any;
|
|
17
|
+
removeable: boolean;
|
|
18
|
+
httpAdapter: any;
|
|
19
|
+
visible: boolean;
|
|
20
|
+
error: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
readonlyMode: any;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Vue from 'vue';
|
|
2
|
+
import { IFormState, IWidgetProps, IDataSource } from '@/@types';
|
|
3
|
+
import { WidgetNode } from '@/core/widgetTree';
|
|
4
|
+
export interface Data {
|
|
5
|
+
formItemProps: Record<string, any>;
|
|
6
|
+
state: Partial<IFormState>;
|
|
7
|
+
errorTips: string;
|
|
8
|
+
datasource: IDataSource[];
|
|
9
|
+
loading: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface Methods {
|
|
12
|
+
setState: (key: any, value: any) => void;
|
|
13
|
+
loadDataSource: () => void;
|
|
14
|
+
setErrorTips: (tips: string) => void;
|
|
15
|
+
getValue: (path: string) => any;
|
|
16
|
+
}
|
|
17
|
+
interface Computed {
|
|
18
|
+
widgetNode: WidgetNode;
|
|
19
|
+
parent: WidgetNode | null;
|
|
20
|
+
}
|
|
21
|
+
declare const _default: import("vue/types/vue").ExtendedVue<Vue, Data, Methods, Computed, IWidgetProps>;
|
|
22
|
+
export default _default;
|