@oinone/kunlun-vue-admin-base 6.2.9 → 6.2.11
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/oinone-kunlun-vue-admin-base.css +1 -1
- package/dist/oinone-kunlun-vue-admin-base.esm.js +9641 -9263
- package/dist/oinone-kunlun-vue-admin-base.scss +1 -1
- package/dist/types/src/action/component/action/ActionWidget.d.ts +10 -1
- package/dist/types/src/action/server-actions/ServerActionWidget.d.ts +1 -5
- package/dist/types/src/action/url-actions/UrlActionWidget.d.ts +1 -3
- package/dist/types/src/basic/field/complex/select/FormSelectComplexFieldWidget.d.ts +8 -2
- package/dist/types/src/basic/table-column/BaseTableColumnWidget.d.ts +3 -0
- package/dist/types/src/components/upload/File.vue.d.ts +0 -9
- package/dist/types/src/field/detail/enum/multi/DetailEnumMultiFieldWidget.d.ts +2 -1
- package/dist/types/src/field/detail/enum/single/DetailEnumFieldWidget.d.ts +2 -1
- package/dist/types/src/field/detail/index.d.ts +0 -1
- package/dist/types/src/field/detail/m2m/select/DetailM2MSelectFieldWidget.d.ts +1 -1
- package/dist/types/src/field/detail/o2m/index.d.ts +1 -0
- package/dist/types/src/field/detail/o2m/{DetailO2MSelectFieldWidget.d.ts → select/DetailO2MSelectFieldWidget.d.ts} +1 -1
- package/dist/types/src/field/form/abstract/FormInputAbstractFieldWidget.d.ts +22 -18
- package/dist/types/src/field/form/abstract/checkbox/FormCheckboxWidget.d.ts +1 -1
- package/dist/types/src/field/form/{enum/radio → boolean}/FormBooleanRadioFieldWidget.d.ts +4 -2
- package/dist/types/src/field/form/{enum/select/bool → boolean}/FormBooleanSelectFieldWidget.d.ts +2 -2
- package/dist/types/src/field/form/boolean/index.d.ts +2 -0
- package/dist/types/src/field/form/enum/FormEnumFieldAbstractWidget.d.ts +17 -5
- package/dist/types/src/field/form/enum/checkbox/FormEnumMultiCheckboxFieldWidget.d.ts +1 -0
- package/dist/types/src/field/form/enum/index.d.ts +1 -0
- package/dist/types/src/field/form/enum/radio/FormEnumRadioWidget.d.ts +4 -1
- package/dist/types/src/field/form/enum/radio/index.d.ts +0 -1
- package/dist/types/src/field/form/enum/select/index.d.ts +0 -1
- package/dist/types/src/field/form/enum/select/multi/FormEnumMultiSelectFieldWidget.d.ts +2 -1
- package/dist/types/src/field/form/enum/select/single/FormEnumFieldWidget.d.ts +2 -1
- package/dist/types/src/field/form/float/Plat.vue.d.ts +2 -2
- package/dist/types/src/field/form/index.d.ts +1 -2
- package/dist/types/src/field/form/integer/FormIntegerFieldWidget.d.ts +0 -1
- package/dist/types/src/field/form/m2o/upload/FormM2OUploadFieldWidget.d.ts +0 -1
- package/dist/types/src/field/form/o2o/index.d.ts +1 -0
- package/dist/types/src/field/form/o2o/upload/AbstractFormO2OUploadFieldWidget.d.ts +5 -0
- package/dist/types/src/field/form/o2o/upload/FormO2OUploadDraggableFieldWidget.d.ts +8 -0
- package/dist/types/src/field/form/o2o/upload/FormO2OUploadFieldWidget.d.ts +7 -0
- package/dist/types/src/field/form/o2o/upload/FormO2OUploadImgFieldWidget.d.ts +8 -0
- package/dist/types/src/field/form/o2o/upload/index.d.ts +4 -0
- package/dist/types/src/field/form/string/FormStringFieldWidget.d.ts +12 -3
- package/dist/types/src/field/form/string/iframe/FormStringIframeFieldWidget.d.ts +1 -0
- package/dist/types/src/field/form/string/media/FormStringMediaPlayerFieldWidget.d.ts +1 -0
- package/dist/types/src/field/form/string/tag/Tag.vue.d.ts +6 -6
- package/dist/types/src/field/form/string/upload/FormStringUploadFieldWidget.d.ts +11 -2
- package/dist/types/src/field/form/text/DefaultTextarea.vue.d.ts +4 -6
- package/dist/types/src/field/form/text/FormTextFieldWidget.d.ts +3 -1
- package/dist/types/src/field/form/text/index.d.ts +1 -0
- package/dist/types/src/field/form/text/typing.d.ts +4 -0
- package/dist/types/src/field/table/boolean/TableBooleanRadioFieldWidget.d.ts +3 -0
- package/dist/types/src/field/table/boolean/index.d.ts +1 -0
- package/dist/types/src/field/table/string/upload/TableStringMultiUploadWidget.d.ts +1 -1
- package/dist/types/src/provider/RootWidget.d.ts +2 -2
- package/dist/types/src/typing/widget-names.d.ts +1 -0
- package/package.json +8 -8
- package/src/action/component/action/ActionWidget.ts +203 -28
- package/src/action/server-actions/ServerActionWidget.ts +6 -104
- package/src/action/url-actions/UrlActionWidget.ts +2 -37
- package/src/basic/field/complex/select/FormSelectComplexFieldWidget.ts +24 -32
- package/src/basic/form-item/BaseFormItemWidget.ts +4 -0
- package/src/basic/gallery-item/DefaultGalleryItem.vue +6 -1
- package/src/basic/table-column/BaseTableColumnWidget.ts +5 -2
- package/src/components/upload/File.vue +0 -45
- package/src/field/detail/boolean/Boolean.vue +2 -3
- package/src/field/detail/boolean/DetailBooleanFieldWidget.ts +1 -1
- package/src/field/detail/boolean/DetailBooleanSelectFieldWidget.ts +1 -1
- package/src/field/detail/enum/multi/DetailEnumMultiFieldWidget.ts +9 -5
- package/src/field/detail/enum/single/DetailEnumFieldWidget.ts +8 -2
- package/src/field/detail/html/DetailHtmlFieldWidget.ts +1 -1
- package/src/field/detail/index.ts +0 -1
- package/src/field/detail/m2m/select/DetailM2MSelectFieldWidget.ts +3 -5
- package/src/field/detail/m2m/table/DetailM2MTableFieldWidget.ts +3 -1
- package/src/field/detail/m2o/DetailM2OSelectFieldWidget.ts +1 -1
- package/src/field/detail/m2o/upload/DetailM2OUploadWidget.ts +2 -3
- package/src/field/detail/number/DetailNumberWidget.ts +1 -1
- package/src/field/detail/o2m/index.ts +1 -0
- package/src/field/detail/o2m/{DetailO2MSelectFieldWidget.ts → select/DetailO2MSelectFieldWidget.ts} +4 -5
- package/src/field/detail/o2m/{Select.vue → select/Select.vue} +1 -1
- package/src/field/detail/o2m/table/DetailO2MTableFieldWidget.ts +3 -1
- package/src/field/detail/o2o/DetailO2OSelectFieldWidget.ts +1 -1
- package/src/field/detail/string/hyperlinks/DetailStringHyperlinksFieldWidget.ts +1 -1
- package/src/field/detail/string/iframe/DetailStringIframeFieldWidget.ts +2 -2
- package/src/field/detail/string/media/DetailStringMediaPlayerFieldWidget.ts +1 -1
- package/src/field/detail/string/string-with-copy/DetailStringWithCopyFieldWidget.ts +1 -1
- package/src/field/detail/string/tag/DetailStringTagFieldWidget.ts +1 -1
- package/src/field/detail/string/upload/DetailStringUploadFieldWidget.ts +1 -1
- package/src/field/detail/string/upload/DetailStringUploadImgFieldWidget.ts +1 -1
- package/src/field/form/abstract/FormInputAbstractFieldWidget.ts +54 -50
- package/src/field/form/abstract/checkbox/FormCheckboxWidget.ts +1 -3
- package/src/field/form/{enum/radio → boolean}/FormBooleanRadioFieldWidget.ts +22 -4
- package/src/field/form/{enum/select/bool → boolean}/FormBooleanSelectFieldWidget.ts +4 -5
- package/src/field/form/boolean/index.ts +2 -0
- package/src/field/form/enum/FormEnumFieldAbstractWidget.ts +42 -33
- package/src/field/form/enum/checkbox/FormEnumMultiCheckboxFieldWidget.ts +9 -1
- package/src/field/form/enum/index.ts +2 -1
- package/src/field/form/enum/radio/FormEnumRadioWidget.ts +21 -8
- package/src/field/form/enum/radio/index.ts +0 -1
- package/src/field/form/enum/select/index.ts +0 -1
- package/src/field/form/enum/select/multi/FormEnumMultiSelectFieldWidget.ts +2 -1
- package/src/field/form/enum/select/single/FormEnumFieldWidget.ts +2 -1
- package/src/field/form/index.ts +1 -3
- package/src/field/form/integer/FormIntegerFieldWidget.ts +0 -5
- package/src/field/form/integer/FormIntegerSliderFieldWidget.ts +1 -1
- package/src/field/form/integer/FormIntegerTagFieldWidget.ts +1 -0
- package/src/field/form/m2m/select/FormM2MFieldSelectWidget.ts +2 -2
- package/src/field/form/m2m/table/FormM2MTableFieldWidget.ts +2 -0
- package/src/field/form/m2m/upload/FormM2MUploadFieldWidget.ts +3 -3
- package/src/field/form/m2m/upload/FormM2MUploadImgFieldWidget.ts +1 -1
- package/src/field/form/m2o/form/FormM2OFormFieldWidget.ts +1 -1
- package/src/field/form/m2o/upload/FormM2OUploadFieldWidget.ts +2 -9
- package/src/field/form/m2o/upload/FormM2OUploadImgFieldWidget.ts +1 -1
- package/src/field/form/o2m/table/FormO2MTableFieldWidget.ts +2 -0
- package/src/field/form/o2m/upload/FormO2MUploadImgFieldWidget.ts +1 -1
- package/src/field/form/o2o/index.ts +1 -0
- package/src/field/form/o2o/upload/AbstractFormO2OUploadFieldWidget.ts +18 -0
- package/src/field/form/o2o/upload/FormO2OUploadDraggableFieldWidget.ts +47 -0
- package/src/field/form/o2o/upload/FormO2OUploadFieldWidget.ts +42 -0
- package/src/field/form/o2o/upload/FormO2OUploadImgFieldWidget.ts +62 -0
- package/src/field/form/o2o/upload/index.ts +4 -0
- package/src/field/form/string/DefaultString.vue +2 -2
- package/src/field/form/string/FormStringFieldWidget.ts +36 -27
- package/src/field/form/string/download/DefaultDownload.vue +1 -0
- package/src/field/form/string/iframe/FormStringIframeFieldWidget.ts +8 -1
- package/src/field/form/string/input/FormStringInputFieldWidget.ts +0 -4
- package/src/field/form/string/media/FormStringMediaPlayerFieldWidget.ts +7 -2
- package/src/field/form/string/media/FormStringMultiMediaPlayerFieldWidget.ts +1 -1
- package/src/field/form/string/tag/Tag.vue +0 -3
- package/src/field/form/string/upload/FormStringUploadFieldWidget.ts +24 -17
- package/src/field/form/string/upload/FormStringUploadImgFieldWidget.ts +1 -1
- package/src/field/form/text/DefaultTextarea.vue +11 -5
- package/src/field/form/text/FormTextFieldWidget.ts +32 -5
- package/src/field/form/text/index.ts +1 -0
- package/src/field/form/text/typing.ts +1 -0
- package/src/field/gallery/boolean/GalleryBooleanFieldWidget.ts +7 -3
- package/src/field/gallery/boolean/GalleryBooleanSelectFieldWidget.ts +1 -1
- package/src/field/gallery/common/GalleryCommonField.vue +7 -1
- package/src/field/gallery/common/GalleryCommonFieldWidget.ts +2 -8
- package/src/field/gallery/enum/single/GalleryEnumTagFieldWidget.ts +1 -1
- package/src/field/gallery/html/GalleryHtmlFieldWidget.ts +2 -2
- package/src/field/gallery/m2m/GalleryM2MSelectFieldWidget.ts +1 -1
- package/src/field/gallery/m2o/GalleryM2OSelectFieldWidget.ts +1 -1
- package/src/field/gallery/o2m/GalleryO2MSelectFieldWidget.ts +1 -1
- package/src/field/gallery/o2o/GalleryO2OSelectFieldWidget.ts +1 -1
- package/src/field/gallery/string/default/GalleryStringFieldWidget.ts +1 -2
- package/src/field/gallery/string/hyperlinks/GalleryStringHyperlinksFieldWidget.ts +1 -1
- package/src/field/gallery/string/iframe/GalleryStringIframeFieldWidget.ts +2 -2
- package/src/field/gallery/string/media-player/GalleryStringMediaPlayerWidget.ts +1 -1
- package/src/field/gallery/string/string-tag/GalleryStringTagStringFieldWidget.ts +1 -1
- package/src/field/gallery/string/tag/GalleryStringTagFieldWidget.ts +1 -1
- package/src/field/gallery/text-content/number/GalleryNumberTextContentWidget.ts +1 -1
- package/src/field/gallery/text-content/string/GalleryStringTextContentWidget.ts +1 -1
- package/src/field/table/boolean/TableBooleanFieldWidget.ts +7 -2
- package/src/field/table/boolean/TableBooleanRadioFieldWidget.ts +13 -0
- package/src/field/table/boolean/TableBooleanSelectFieldWidget.ts +1 -1
- package/src/field/table/boolean/index.ts +1 -0
- package/src/field/table/string/upload/TableStringMultiUploadWidget.ts +3 -3
- package/src/typing/widget-names.ts +2 -0
- package/src/util/utils.ts +2 -1
- package/src/view/application-screen/gallery/AppsGalleryWidget.ts +2 -2
- package/src/view/card/CardWidget.ts +4 -4
- package/src/view/gallery/GalleryWidget.ts +9 -3
- package/src/view/popup/drawer/style/index.scss +3 -1
- package/dist/types/src/field/form/enum/select/bool/index.d.ts +0 -1
- package/src/field/form/enum/select/bool/index.ts +0 -1
- /package/dist/types/src/field/detail/o2m/{Select.vue.d.ts → select/Select.vue.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActiveRecord, ActiveRecords, RuntimeAction, RuntimeContext } from '@oinone/kunlun-engine';
|
|
1
|
+
import { ActiveRecord, ActiveRecords, GetRequestModelFieldsOptions, RequestModelField, RuntimeAction, RuntimeContext, RuntimeFunctionDefinition, RuntimeServerAction, SubmitValue } from '@oinone/kunlun-engine';
|
|
2
2
|
import { EventConsumer, KeyboardEventMessage } from '@oinone/kunlun-event';
|
|
3
3
|
import { ExpressionRunParam } from '@oinone/kunlun-expression';
|
|
4
4
|
import { ActionElement } from '@oinone/kunlun-meta';
|
|
@@ -105,8 +105,11 @@ export declare class ActionWidget<Action extends RuntimeAction = RuntimeAction,
|
|
|
105
105
|
protected get confirmType(): ConfirmType | undefined;
|
|
106
106
|
protected get confirm(): string | undefined;
|
|
107
107
|
protected get confirmText(): string | undefined;
|
|
108
|
+
protected get confirmHtml(): boolean | undefined;
|
|
109
|
+
protected get confirmFun(): string | undefined;
|
|
108
110
|
protected get confirmPosition(): PopconfirmPlacement;
|
|
109
111
|
protected get confirmTitle(): string | undefined;
|
|
112
|
+
protected get confirmWidth(): string | undefined;
|
|
110
113
|
protected get enterText(): string | undefined;
|
|
111
114
|
protected get cancelText(): string | undefined;
|
|
112
115
|
protected get actionElement(): ActionElement;
|
|
@@ -136,6 +139,8 @@ export declare class ActionWidget<Action extends RuntimeAction = RuntimeAction,
|
|
|
136
139
|
* 二次弹窗校验
|
|
137
140
|
*/
|
|
138
141
|
validateConfirm(): Promise<boolean>;
|
|
142
|
+
protected validateConfirmByText(): Promise<boolean>;
|
|
143
|
+
protected validateConfirmByFun(): Promise<boolean>;
|
|
139
144
|
protected validatorForm(): Promise<boolean>;
|
|
140
145
|
/**
|
|
141
146
|
* 执行验证
|
|
@@ -180,6 +185,10 @@ export declare class ActionWidget<Action extends RuntimeAction = RuntimeAction,
|
|
|
180
185
|
* @description 服务端函数校验「表达式、服务端函数校验」
|
|
181
186
|
*/
|
|
182
187
|
private executeServerValidator;
|
|
188
|
+
protected getRequestModelFields(options?: GetRequestModelFieldsOptions): Promise<RequestModelField[]>;
|
|
189
|
+
protected seekPopupMainRuntimeContext(): RuntimeContext;
|
|
190
|
+
protected submit(action: RuntimeServerAction): Promise<SubmitValue>;
|
|
191
|
+
protected executeFunction<T>(functionDefinition: RuntimeFunctionDefinition, requestFields: RequestModelField[], activeRecords: ActiveRecords | undefined): Promise<T>;
|
|
183
192
|
private validatorByExpression;
|
|
184
193
|
/**
|
|
185
194
|
* 获取当前domain
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequestModelField, RuntimeContext, RuntimeServerAction, SubmitValue } from '@oinone/kunlun-engine';
|
|
2
2
|
import { HttpClientError } from '@oinone/kunlun-request';
|
|
3
3
|
import { CallChaining } from '@oinone/kunlun-vue-ui-antd';
|
|
4
4
|
import { WidgetSubjection } from '@oinone/kunlun-vue-widget';
|
|
@@ -17,7 +17,6 @@ export declare class ServerActionWidget extends ActionWidget<RuntimeServerAction
|
|
|
17
17
|
protected formValidateProcess(e: HttpClientError): void;
|
|
18
18
|
protected convertFormValidateResults(e: HttpClientError): FormValidateResult[];
|
|
19
19
|
protected notifyValidateResults(e: HttpClientError): void;
|
|
20
|
-
protected submit(action: RuntimeServerAction): Promise<SubmitValue>;
|
|
21
20
|
protected clickActionAfter(result: ClickResult): Promise<ClickResult>;
|
|
22
21
|
protected clickActionAfterRefreshData(result: ClickResult, refreshParent?: boolean): Promise<ClickResult>;
|
|
23
22
|
protected executeRefreshRoot(): void;
|
|
@@ -26,9 +25,6 @@ export declare class ServerActionWidget extends ActionWidget<RuntimeServerAction
|
|
|
26
25
|
protected executeSubmitData(result: ClickResult): Promise<ClickResult>;
|
|
27
26
|
protected historyBack(): void;
|
|
28
27
|
protected usingDiffUpdate(parameters: SubmitValue): boolean;
|
|
29
|
-
protected seekPopupMainRuntimeContext(): RuntimeContext;
|
|
30
|
-
protected getRequestModelFields(options?: GetRequestModelFieldsOptions): Promise<RequestModelField[]>;
|
|
31
28
|
protected executeAction(action: RuntimeServerAction, submitValue: SubmitValue): Promise<ClickResult>;
|
|
32
|
-
protected executeFunction<T>(functionDefinition: RuntimeFunctionDefinition, requestFields: RequestModelField[], activeRecords: ActiveRecords | undefined): Promise<T>;
|
|
33
29
|
protected executeRelationUpdate<T>(requestFields: RequestModelField[], submitValue: SubmitValue): Promise<T>;
|
|
34
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActiveRecord,
|
|
1
|
+
import { ActiveRecord, RequestModelField, RuntimeFunctionDefinition, RuntimeUrlAction } from '@oinone/kunlun-engine';
|
|
2
2
|
import { ReturnPromise } from '@oinone/kunlun-shared';
|
|
3
3
|
import { ActionWidget } from '../component';
|
|
4
4
|
export declare class UrlActionWidget extends ActionWidget<RuntimeUrlAction> {
|
|
@@ -6,8 +6,6 @@ export declare class UrlActionWidget extends ActionWidget<RuntimeUrlAction> {
|
|
|
6
6
|
private get url();
|
|
7
7
|
private get target();
|
|
8
8
|
private get queryBody();
|
|
9
|
-
protected seekPopupMainRuntimeContext(): RuntimeContext;
|
|
10
|
-
protected getRequestModelFields(options?: GetRequestModelFieldsOptions): Promise<RequestModelField[]>;
|
|
11
9
|
protected executeFunction<T>(functionDefinition: RuntimeFunctionDefinition, requestFields: RequestModelField[], activeRecords: ActiveRecord[] | undefined): Promise<T>;
|
|
12
10
|
protected getUrlByComputed(): Promise<string | undefined>;
|
|
13
11
|
protected getUrlByUrlAttr(): any;
|
|
@@ -35,8 +35,6 @@ export declare abstract class FormSelectComplexFieldWidget<Value extends ActiveR
|
|
|
35
35
|
protected setQueryFieldName(queryFieldName: string): void;
|
|
36
36
|
protected fillOptionsForMulti(dataList: Record<string, unknown>[]): Promise<void>;
|
|
37
37
|
protected fillOptionsForSingle(dataList: Record<string, unknown>[], insetDefaultValue?: boolean): Promise<void>;
|
|
38
|
-
protected get renderOnParent(): any;
|
|
39
|
-
protected get clearBackFillSelected(): any;
|
|
40
38
|
protected get relationFieldKey(): string;
|
|
41
39
|
protected get allowClear(): any;
|
|
42
40
|
protected get showSearch(): any;
|
|
@@ -84,4 +82,12 @@ export declare abstract class FormSelectComplexFieldWidget<Value extends ActiveR
|
|
|
84
82
|
protected buildQueryData(): {};
|
|
85
83
|
protected genQueryData(): {};
|
|
86
84
|
protected innerQueryPage<T = Record<string, unknown>>(modelModel: string, option: IQueryPageOption, fields?: RuntimeModelField[], variables?: ObjectValue, context?: ObjectValue): Promise<IQueryPageResult<T>>;
|
|
85
|
+
/**
|
|
86
|
+
* @deprecated invalid prop
|
|
87
|
+
*/
|
|
88
|
+
protected get renderOnParent(): any;
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated invalid prop
|
|
91
|
+
*/
|
|
92
|
+
protected get clearBackFillSelected(): any;
|
|
87
93
|
}
|
|
@@ -34,6 +34,9 @@ export declare abstract class BaseTableColumnWidget<Value = unknown, Props exten
|
|
|
34
34
|
protected tableSortable: boolean | undefined;
|
|
35
35
|
get sortable(): boolean;
|
|
36
36
|
get invisible(): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated invalid prop in the table column
|
|
39
|
+
*/
|
|
37
40
|
get readonly(): boolean;
|
|
38
41
|
protected get clientInvisible(): boolean;
|
|
39
42
|
protected invisibleContent(context: RowContext): boolean;
|
|
@@ -26,10 +26,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
value: {
|
|
27
27
|
type: ObjectConstructor;
|
|
28
28
|
};
|
|
29
|
-
allLimitSize: {
|
|
30
|
-
type: StringConstructor;
|
|
31
|
-
default: string;
|
|
32
|
-
};
|
|
33
29
|
cdnKey: {
|
|
34
30
|
type: StringConstructor;
|
|
35
31
|
};
|
|
@@ -115,10 +111,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
111
|
value: {
|
|
116
112
|
type: ObjectConstructor;
|
|
117
113
|
};
|
|
118
|
-
allLimitSize: {
|
|
119
|
-
type: StringConstructor;
|
|
120
|
-
default: string;
|
|
121
|
-
};
|
|
122
114
|
cdnKey: {
|
|
123
115
|
type: StringConstructor;
|
|
124
116
|
};
|
|
@@ -179,7 +171,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
171
|
disabled: string | boolean;
|
|
180
172
|
limit: string | number;
|
|
181
173
|
limitSize: string | number;
|
|
182
|
-
allLimitSize: string;
|
|
183
174
|
contentType: string;
|
|
184
175
|
multiple: boolean;
|
|
185
176
|
showUploadList: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EnumerationValue
|
|
1
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
2
|
+
import { FormEnumFieldAbstractWidget } from '../../../form';
|
|
2
3
|
export declare class DetailEnumMultiFieldWidget extends FormEnumFieldAbstractWidget<EnumerationValue[]> {
|
|
3
4
|
initialize(props: any): this;
|
|
4
5
|
protected get displayNameList(): import("@oinone/kunlun-engine").RuntimeEnumerationOption[] | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EnumerationValue
|
|
1
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
2
|
+
import { FormEnumFieldAbstractWidget } from '../../../form';
|
|
2
3
|
export declare class DetailEnumFieldWidget extends FormEnumFieldAbstractWidget<EnumerationValue> {
|
|
3
4
|
initialize(props: any): this;
|
|
4
5
|
protected get displayNameList(): import("@oinone/kunlun-engine").RuntimeEnumerationOption[] | undefined;
|
|
@@ -10,7 +10,6 @@ export * from './enum/multi/DetailEnumMultiFieldWidget';
|
|
|
10
10
|
export * from './boolean/DetailBooleanFieldWidget';
|
|
11
11
|
export * from './boolean/DetailBooleanSelectFieldWidget';
|
|
12
12
|
export * from './html/DetailHtmlFieldWidget';
|
|
13
|
-
export * from './o2m/DetailO2MSelectFieldWidget';
|
|
14
13
|
export * from './m2o/DetailM2OSelectFieldWidget';
|
|
15
14
|
export * from './m2o/upload/DetailM2OUploadWidget';
|
|
16
15
|
export * from './o2o/DetailO2OSelectFieldWidget';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActiveRecord, RuntimeO2MField } from '@oinone/kunlun-engine';
|
|
2
|
-
import { DetailRelationSelectFieldWidget } from '
|
|
2
|
+
import { DetailRelationSelectFieldWidget } from '../../abstract/DetailRelationSelectFieldWidget';
|
|
3
3
|
export declare class DetailO2MSelectFieldWidget extends DetailRelationSelectFieldWidget<ActiveRecord[], RuntimeO2MField> {
|
|
4
4
|
loadMetadata(): void;
|
|
5
5
|
fetchData(): Promise<unknown>;
|
|
@@ -9,48 +9,36 @@ export declare enum InputPreSuffixType {
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class FormInputAbstractFieldWidget<Value = string, Field extends RuntimeModelField = RuntimeModelField> extends FormFieldWidget<Value, Field> {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* 前缀具体内容
|
|
13
13
|
* @protected
|
|
14
14
|
*/
|
|
15
|
-
protected get
|
|
15
|
+
protected get prefix(): string | null | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* 前缀类型
|
|
18
18
|
* @protected
|
|
19
19
|
*/
|
|
20
|
-
protected get
|
|
20
|
+
protected get prefixType(): any;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 前缀是否存储
|
|
23
23
|
* @protected
|
|
24
24
|
*/
|
|
25
|
-
protected get
|
|
25
|
+
protected get prefixStore(): any;
|
|
26
26
|
/**
|
|
27
27
|
* 后缀具体内容
|
|
28
28
|
* @protected
|
|
29
29
|
*/
|
|
30
30
|
protected get suffix(): string | null | undefined;
|
|
31
|
-
protected get independentlyEditable(): boolean | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* 前缀类型
|
|
34
|
-
* @protected
|
|
35
|
-
*/
|
|
36
|
-
protected get prefixType(): any;
|
|
37
31
|
/**
|
|
38
32
|
* 后缀类型
|
|
39
33
|
* @protected
|
|
40
34
|
*/
|
|
41
35
|
protected get suffixType(): any;
|
|
42
|
-
/**
|
|
43
|
-
* 前缀是否存储
|
|
44
|
-
* @protected
|
|
45
|
-
*/
|
|
46
|
-
protected get prefixStore(): any;
|
|
47
36
|
/**
|
|
48
37
|
* 后缀是否存储
|
|
49
38
|
* @protected
|
|
50
39
|
*/
|
|
51
40
|
protected get suffixStore(): any;
|
|
52
41
|
protected get prefixes(): any;
|
|
53
|
-
protected get mode(): any;
|
|
54
42
|
protected get type(): any;
|
|
55
43
|
protected addPrefixSuffix(e: string): string;
|
|
56
44
|
protected removePrefixSuffix(e: string): string;
|
|
@@ -58,4 +46,20 @@ export declare class FormInputAbstractFieldWidget<Value = string, Field extends
|
|
|
58
46
|
protected prefixesValue: any;
|
|
59
47
|
changeInputRealValue(val: any): void;
|
|
60
48
|
changePrefixesValue(val: any): void;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated please move to the place of use.
|
|
51
|
+
*/
|
|
52
|
+
protected get mode(): any;
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated invalid prop
|
|
55
|
+
*/
|
|
56
|
+
protected get showPrefix(): any;
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated invalid prop
|
|
59
|
+
*/
|
|
60
|
+
protected get showSuffix(): any;
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated invalid prop
|
|
63
|
+
*/
|
|
64
|
+
protected get independentlyEditable(): boolean | undefined;
|
|
61
65
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RuntimeEnumerationOption, RuntimeModelField } from '@oinone/kunlun-engine';
|
|
2
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
2
3
|
import { WidgetTrigger } from '@oinone/kunlun-vue-ui-common';
|
|
3
4
|
import { FormFieldWidget } from '../../../../basic/field/FormFieldWidget';
|
|
4
|
-
export declare type EnumerationValue = boolean | string;
|
|
5
5
|
export declare abstract class FormCheckboxWidget<Value extends EnumerationValue | EnumerationValue[] = EnumerationValue | EnumerationValue[], Field extends RuntimeModelField = RuntimeModelField> extends FormFieldWidget<Value, Field> {
|
|
6
6
|
protected abstract getAvailableOptions(): RuntimeEnumerationOption[];
|
|
7
7
|
protected get options(): RuntimeEnumerationOption[];
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { EnumerationValue } from '
|
|
2
|
-
import { FormBooleanSelectFieldWidget } from '
|
|
1
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
2
|
+
import { FormBooleanSelectFieldWidget } from './FormBooleanSelectFieldWidget';
|
|
3
3
|
export declare class FormBooleanRadioFieldWidget extends FormBooleanSelectFieldWidget {
|
|
4
4
|
initialize(props: any): this;
|
|
5
|
+
protected get orientation(): string | undefined;
|
|
6
|
+
protected get radioMode(): string | undefined;
|
|
5
7
|
protected get rowLimit(): any;
|
|
6
8
|
change(val: EnumerationValue | EnumerationValue[] | null | undefined): void;
|
|
7
9
|
}
|
package/dist/types/src/field/form/{enum/select/bool → boolean}/FormBooleanSelectFieldWidget.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RuntimeEnumerationOption, SubmitValue } from '@oinone/kunlun-engine';
|
|
2
|
-
import { EnumerationValue } from '
|
|
3
|
-
import { FormEnumFieldWidget } from '../
|
|
2
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
3
|
+
import { FormEnumFieldWidget } from '../enum';
|
|
4
4
|
export declare class FormBooleanSelectFieldWidget extends FormEnumFieldWidget<EnumerationValue | EnumerationValue[]> {
|
|
5
5
|
get value(): string | null | undefined;
|
|
6
6
|
protected getAvailableOptions(): RuntimeEnumerationOption[];
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { RuntimeEnumerationField, RuntimeEnumerationOption } from '@oinone/kunlun-engine';
|
|
2
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
2
3
|
import { WidgetTrigger } from '@oinone/kunlun-vue-ui-common';
|
|
3
4
|
import { FormFieldWidget } from '../../../basic';
|
|
4
5
|
import { ValidatorInfo } from '../../../typing';
|
|
5
|
-
export declare type EnumerationValue = boolean | string;
|
|
6
6
|
export declare abstract class FormEnumFieldAbstractWidget<Value extends EnumerationValue | EnumerationValue[] = EnumerationValue | EnumerationValue[]> extends FormFieldWidget<Value, RuntimeEnumerationField> {
|
|
7
7
|
protected defaultConstructDataTrigger(): WidgetTrigger[];
|
|
8
8
|
protected defaultClearFieldsTrigger(): WidgetTrigger[];
|
|
9
9
|
protected get options(): RuntimeEnumerationOption[];
|
|
10
10
|
protected get autocorrection(): boolean | undefined;
|
|
11
11
|
protected compute(): Value | null | undefined;
|
|
12
|
-
private get orientation();
|
|
13
|
-
private get radioMode();
|
|
14
|
-
protected get optionColor(): boolean;
|
|
15
|
-
protected get optionColorStyle(): any;
|
|
16
12
|
private get maxNumber();
|
|
17
13
|
private get minNumber();
|
|
18
14
|
private internalSelectedOptions;
|
|
@@ -27,4 +23,20 @@ export declare abstract class FormEnumFieldAbstractWidget<Value extends Enumerat
|
|
|
27
23
|
protected getAvailableOptions(): RuntimeEnumerationOption[];
|
|
28
24
|
protected handleOptions(ops: RuntimeEnumerationOption[]): RuntimeEnumerationOption[];
|
|
29
25
|
protected getMetaOptionNames(): string[];
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated please move to the location of use.
|
|
28
|
+
*/
|
|
29
|
+
protected get optionColor(): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated please move to the location of use.
|
|
32
|
+
*/
|
|
33
|
+
protected get optionColorStyle(): any;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated please move to the location of use.
|
|
36
|
+
*/
|
|
37
|
+
protected get orientation(): string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated please move to the location of use.
|
|
40
|
+
*/
|
|
41
|
+
protected get radioMode(): string | undefined;
|
|
30
42
|
}
|
|
@@ -2,6 +2,7 @@ import { ValidateTrigger } from '@oinone/kunlun-vue-ui-common';
|
|
|
2
2
|
import { FormEnumFieldAbstractWidget } from '../FormEnumFieldAbstractWidget';
|
|
3
3
|
export declare class FormEnumMultiCheckboxFieldWidget extends FormEnumFieldAbstractWidget {
|
|
4
4
|
initialize(props: any): this;
|
|
5
|
+
protected get orientation(): string | undefined;
|
|
5
6
|
get validateTrigger(): ValidateTrigger[];
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { EnumerationValue
|
|
1
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
2
|
+
import { FormEnumFieldAbstractWidget } from '../FormEnumFieldAbstractWidget';
|
|
2
3
|
export declare class FormEnumRadioWidget extends FormEnumFieldAbstractWidget<EnumerationValue> {
|
|
3
4
|
initialize(props: any): this;
|
|
5
|
+
protected get orientation(): string | undefined;
|
|
6
|
+
protected get radioMode(): string | undefined;
|
|
4
7
|
protected get allowClear(): any;
|
|
5
8
|
protected get autocorrection(): boolean;
|
|
6
9
|
protected get rowLimit(): any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EnumerationValue
|
|
1
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
2
|
+
import { FormEnumFieldAbstractWidget } from '../../FormEnumFieldAbstractWidget';
|
|
2
3
|
export declare class FormEnumMultiSelectFieldWidget extends FormEnumFieldAbstractWidget<EnumerationValue[]> {
|
|
3
4
|
initialize(props: any): this;
|
|
4
5
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { EnumerationValue
|
|
1
|
+
import { EnumerationValue } from '@oinone/kunlun-shared';
|
|
2
|
+
import { FormEnumFieldAbstractWidget } from '../../FormEnumFieldAbstractWidget';
|
|
2
3
|
export declare class FormEnumFieldWidget<Value extends EnumerationValue | EnumerationValue[] = EnumerationValue> extends FormEnumFieldAbstractWidget<Value> {
|
|
3
4
|
initialize(props: any): this;
|
|
4
5
|
}
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
49
|
layout: {
|
|
50
|
-
type: PropType<import("@oinone/kunlun-vue-ui-
|
|
50
|
+
type: PropType<import("@oinone/kunlun-vue-ui-common").FormLayout>;
|
|
51
51
|
};
|
|
52
52
|
label: {
|
|
53
53
|
type: (BooleanConstructor | StringConstructor)[];
|
|
@@ -141,7 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
143
|
layout: {
|
|
144
|
-
type: PropType<import("@oinone/kunlun-vue-ui-
|
|
144
|
+
type: PropType<import("@oinone/kunlun-vue-ui-common").FormLayout>;
|
|
145
145
|
};
|
|
146
146
|
label: {
|
|
147
147
|
type: (BooleanConstructor | StringConstructor)[];
|
|
@@ -3,6 +3,7 @@ export * from './currency';
|
|
|
3
3
|
export * from './date';
|
|
4
4
|
export * from './enum';
|
|
5
5
|
export * from './float';
|
|
6
|
+
export * from './html';
|
|
6
7
|
export * from './integer';
|
|
7
8
|
export * from './m2m';
|
|
8
9
|
export * from './m2o';
|
|
@@ -15,5 +16,3 @@ export * from './metadata-area';
|
|
|
15
16
|
export * from './abstract/FormNumberAbstractFieldWidget';
|
|
16
17
|
export * from './abstract/FormInputAbstractFieldWidget';
|
|
17
18
|
export * from './related/FormRelatedFieldWidget';
|
|
18
|
-
export * from './html';
|
|
19
|
-
export * from './metadata-area';
|
|
@@ -9,7 +9,6 @@ export declare class FormIntegerFieldWidget<Value extends NumberValue | NumberVa
|
|
|
9
9
|
protected maxSafeInteger: string | number;
|
|
10
10
|
protected get addStep(): any;
|
|
11
11
|
protected get reduceStep(): any;
|
|
12
|
-
protected get unit(): string | undefined;
|
|
13
12
|
protected get autocorrection(): boolean;
|
|
14
13
|
validator(): Promise<ValidatorInfo>;
|
|
15
14
|
rawValidator(): Promise<ValidatorInfo>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SubmitValue } from '@oinone/kunlun-engine';
|
|
2
|
+
import { AbstractFormM2OUploadFieldWidget } from '../../m2o';
|
|
3
|
+
export declare class AbstractFormO2OUploadFieldWidget extends AbstractFormM2OUploadFieldWidget {
|
|
4
|
+
submit(submitValue: SubmitValue): Promise<Record<string, unknown> | import("@oinone/kunlun-engine").SubmitRelationValue | undefined>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormO2OUploadFieldWidget } from './FormO2OUploadFieldWidget';
|
|
2
|
+
export declare class FormO2OUploadDraggableFieldWidget extends FormO2OUploadFieldWidget {
|
|
3
|
+
initialize(config: any): this;
|
|
4
|
+
get draggableIcon(): any;
|
|
5
|
+
get draggableTipText(): any;
|
|
6
|
+
get showDraggableExtendsionsText(): any;
|
|
7
|
+
get draggableExtendsionsText(): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbstractFormO2OUploadFieldWidget } from './AbstractFormO2OUploadFieldWidget';
|
|
2
|
+
export declare class FormO2OUploadFieldWidget extends AbstractFormO2OUploadFieldWidget {
|
|
3
|
+
initialize(config: any): this;
|
|
4
|
+
protected getImportFile(data: any): void;
|
|
5
|
+
change(value: any): void;
|
|
6
|
+
protected remove(file: any): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractFormO2OUploadFieldWidget } from './AbstractFormO2OUploadFieldWidget';
|
|
2
|
+
export declare class FormO2OUploadImgFieldWidget extends AbstractFormO2OUploadFieldWidget {
|
|
3
|
+
initialize(config: any): this;
|
|
4
|
+
protected getImportFile(data: any): void;
|
|
5
|
+
change(v: any): void;
|
|
6
|
+
protected remove(file: any): void;
|
|
7
|
+
protected get showPreviewTitle(): boolean;
|
|
8
|
+
}
|
|
@@ -9,9 +9,6 @@ export declare class FormStringFieldWidget extends FormInputAbstractFieldWidget<
|
|
|
9
9
|
protected get maxLength(): any;
|
|
10
10
|
protected get minLength(): string | number;
|
|
11
11
|
protected get showCount(): any;
|
|
12
|
-
protected get patternType(): unknown;
|
|
13
|
-
protected get pattern(): any;
|
|
14
|
-
protected get clearSetEmpty(): any;
|
|
15
12
|
protected get crypto(): any;
|
|
16
13
|
protected get visibleIcon(): any;
|
|
17
14
|
protected get invisibleIcon(): any;
|
|
@@ -20,4 +17,16 @@ export declare class FormStringFieldWidget extends FormInputAbstractFieldWidget<
|
|
|
20
17
|
validator(): Promise<ValidatorInfo>;
|
|
21
18
|
protected validateLength(realValue: string | undefined): ValidatorInfo;
|
|
22
19
|
change(value: any): void;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated invalid prop
|
|
22
|
+
*/
|
|
23
|
+
protected get patternType(): unknown;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated invalid prop
|
|
26
|
+
*/
|
|
27
|
+
protected get pattern(): any;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated invalid prop
|
|
30
|
+
*/
|
|
31
|
+
protected get clearSetEmpty(): any;
|
|
23
32
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FormStringInputFieldWidget } from '../input';
|
|
2
2
|
export declare class FormStringIframeFieldWidget extends FormStringInputFieldWidget {
|
|
3
3
|
initialize(props: any): this;
|
|
4
|
+
protected get mode(): any;
|
|
4
5
|
}
|
|
5
6
|
/**
|
|
6
7
|
* @deprecated please using FormStringIframeFieldWidget
|
|
@@ -3,6 +3,7 @@ import { ValidatorInfo } from '../../../../typing';
|
|
|
3
3
|
import { FormStringInputFieldWidget } from '../input';
|
|
4
4
|
export declare class FormStringMediaPlayerFieldWidget extends FormStringInputFieldWidget {
|
|
5
5
|
initialize(props: any): this;
|
|
6
|
+
protected get mode(): any;
|
|
6
7
|
protected get fileSource(): any;
|
|
7
8
|
protected get partSize(): any;
|
|
8
9
|
protected get chunkUploadThreshold(): any;
|
|
@@ -8,9 +8,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
tagChange: {
|
|
9
9
|
type: FunctionConstructor;
|
|
10
10
|
};
|
|
11
|
-
blur: {
|
|
12
|
-
type: FunctionConstructor;
|
|
13
|
-
};
|
|
14
11
|
placeholder: {
|
|
15
12
|
type: StringConstructor;
|
|
16
13
|
};
|
|
@@ -44,6 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
41
|
focus: {
|
|
45
42
|
type: FunctionConstructor;
|
|
46
43
|
};
|
|
44
|
+
blur: {
|
|
45
|
+
type: FunctionConstructor;
|
|
46
|
+
};
|
|
47
47
|
translate: {
|
|
48
48
|
type: FunctionConstructor;
|
|
49
49
|
};
|
|
@@ -71,9 +71,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
tagChange: {
|
|
72
72
|
type: FunctionConstructor;
|
|
73
73
|
};
|
|
74
|
-
blur: {
|
|
75
|
-
type: FunctionConstructor;
|
|
76
|
-
};
|
|
77
74
|
placeholder: {
|
|
78
75
|
type: StringConstructor;
|
|
79
76
|
};
|
|
@@ -107,6 +104,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
104
|
focus: {
|
|
108
105
|
type: FunctionConstructor;
|
|
109
106
|
};
|
|
107
|
+
blur: {
|
|
108
|
+
type: FunctionConstructor;
|
|
109
|
+
};
|
|
110
110
|
translate: {
|
|
111
111
|
type: FunctionConstructor;
|
|
112
112
|
};
|
|
@@ -18,12 +18,21 @@ export declare class FormStringUploadFieldWidget extends FormFieldWidget<string[
|
|
|
18
18
|
remove(value: any): void;
|
|
19
19
|
protected get limit(): number;
|
|
20
20
|
protected get limitSize(): number;
|
|
21
|
-
protected get allLimitSize(): any;
|
|
22
21
|
protected get multiple(): boolean;
|
|
23
22
|
protected get limitFileExtensions(): any;
|
|
24
23
|
protected get cdnKey(): any;
|
|
25
24
|
protected get privateLink(): boolean | undefined;
|
|
25
|
+
validator(): Promise<ValidatorInfo>;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated invalid prop
|
|
28
|
+
*/
|
|
29
|
+
protected get allLimitSize(): any;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated invalid code
|
|
32
|
+
*/
|
|
26
33
|
protected get fileDisplayPrefixText(): any;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated invalid code
|
|
36
|
+
*/
|
|
27
37
|
protected get fileDisplayText(): any;
|
|
28
|
-
validator(): Promise<ValidatorInfo>;
|
|
29
38
|
}
|