ngx-rs-ant 1.6.1 → 1.6.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/box-container/PluginManager.d.ts +7 -2
- package/box-container/box-container.component.d.ts +2 -1
- package/box-container/box-container.module.d.ts +7 -6
- package/box-container/box-item/item-config/form-item-config-error/form-item-config-error.component.d.ts +5 -0
- package/box-container/box-item/item-config/item-config.component.d.ts +2 -1
- package/box-container/box-item/item-style/item-style.component.d.ts +2 -1
- package/data-grid/data-grid.component.d.ts +2 -1
- package/data-grid/instance-link-template/instance-link-template.component.d.ts +2 -1
- package/drawer/drawer.component.d.ts +7 -6
- package/drawer/drawer.service.d.ts +1 -1
- package/esm2020/box-container/PluginManager.mjs +37 -15
- package/esm2020/box-container/box-container.component.mjs +19 -3
- package/esm2020/box-container/box-container.module.mjs +4 -1
- package/esm2020/box-container/box-item/item-config/form-item-config-error/form-item-config-error.component.mjs +11 -0
- package/esm2020/box-container/box-item/item-config/item-config.component.mjs +16 -6
- package/esm2020/box-container/box-item/item-style/item-style.component.mjs +14 -6
- package/esm2020/camunda-bpmn-editor/camunda-bpmn-editor.component.mjs +2 -2
- package/esm2020/data-grid/data-grid.component.mjs +7 -4
- package/esm2020/data-grid/instance-link-template/instance-link-template.component.mjs +5 -3
- package/esm2020/drawer/drawer.component.mjs +26 -21
- package/esm2020/drawer/drawer.service.mjs +4 -5
- package/esm2020/form/field-selector/field-selector.component.mjs +144 -0
- package/esm2020/form/form.component.mjs +17 -4
- package/esm2020/form/form.module.mjs +10 -5
- package/esm2020/form/form.service.mjs +19 -1
- package/esm2020/modal/modal.component.mjs +13 -7
- package/esm2020/modal/modal.service.mjs +1 -1
- package/esm2020/public-api.mjs +3 -1
- package/esm2020/util/form-item-config-base.mjs +7 -0
- package/fesm2015/ngx-rs-ant.mjs +323 -72
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +325 -72
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/form/field-selector/field-selector.component.d.ts +25 -0
- package/form/form.component.d.ts +4 -1
- package/form/form.module.d.ts +5 -4
- package/form/form.service.d.ts +1 -0
- package/modal/modal.component.d.ts +2 -2
- package/modal/modal.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/styles/coast-var.scss +1 -1
- package/util/form-item-config-base.d.ts +6 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { DxDropDownBoxComponent } from "devextreme-angular";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FieldSelectorComponent {
|
|
5
|
+
fieldTree: any;
|
|
6
|
+
config: any;
|
|
7
|
+
required: boolean;
|
|
8
|
+
label: string;
|
|
9
|
+
readonly: boolean;
|
|
10
|
+
multiple: boolean;
|
|
11
|
+
fieldChanged: EventEmitter<any>;
|
|
12
|
+
set _fields(__fields: any);
|
|
13
|
+
get _fields(): any;
|
|
14
|
+
protected __fields: string[];
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
fieldChange(value: any): void;
|
|
17
|
+
private getField;
|
|
18
|
+
onRowPrepared($event: any): void;
|
|
19
|
+
onCellPrepared($event: any): void;
|
|
20
|
+
suspendSelectionChanged: boolean;
|
|
21
|
+
onSelectionChanged($event: any, dropDownBox: DxDropDownBoxComponent): void;
|
|
22
|
+
removeItem($event: any, field: any): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSelectorComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldSelectorComponent, "rs-field-selector", never, { "fieldTree": "fieldTree"; "config": "config"; "required": "required"; "label": "label"; "readonly": "readonly"; "multiple": "multiple"; }, { "fieldChanged": "fieldChanged"; }, never, never, false, never>;
|
|
25
|
+
}
|
package/form/form.component.d.ts
CHANGED
|
@@ -14,11 +14,12 @@ export declare class FormComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
14
14
|
extraAttrMap?: any;
|
|
15
15
|
opener?: any;
|
|
16
16
|
params?: any;
|
|
17
|
-
tabViewContainerRef
|
|
17
|
+
tabViewContainerRef: ViewContainerRef;
|
|
18
18
|
onlyFrontEnd: boolean;
|
|
19
19
|
model?: any;
|
|
20
20
|
readonly: boolean;
|
|
21
21
|
config: any;
|
|
22
|
+
extraValidator?: string;
|
|
22
23
|
validator: DxValidationGroupComponent;
|
|
23
24
|
formSubmitter: DxButtonComponent;
|
|
24
25
|
onDataLoaded: EventEmitter<{
|
|
@@ -28,11 +29,13 @@ export declare class FormComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
28
29
|
submitCallback: EventEmitter<any>;
|
|
29
30
|
loading: boolean;
|
|
30
31
|
private changeFilter;
|
|
32
|
+
protected extraValidateMessage: any;
|
|
31
33
|
constructor(viewContainerRef: ViewContainerRef, service: FormService, elementRef: ElementRef);
|
|
32
34
|
ngOnInit(): void;
|
|
33
35
|
ngOnChanges(changes: SimpleChanges): void;
|
|
34
36
|
ngOnDestroy(): void;
|
|
35
37
|
load(): void;
|
|
38
|
+
protected extraValidate(): Promise<any>;
|
|
36
39
|
protected submitForm(): void;
|
|
37
40
|
scrollToAnchorPoint(anchorPointId: string): void;
|
|
38
41
|
validate(): Promise<boolean>;
|
package/form/form.module.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./form.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
3
|
+
import * as i2 from "./field-selector/field-selector.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "../box-container/box-container.module";
|
|
6
|
+
import * as i5 from "devextreme-angular";
|
|
6
7
|
export declare class FormModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, [typeof i1.FormComponent], [typeof
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, [typeof i1.FormComponent, typeof i2.FieldSelectorComponent], [typeof i3.CommonModule, typeof i4.BoxContainerModule, typeof i5.DevExtremeModule], [typeof i1.FormComponent, typeof i2.FieldSelectorComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
|
|
10
11
|
}
|
package/form/form.service.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class FormService {
|
|
|
6
6
|
getFormTemplateConfig(tenant: any, className: any, template?: any): import("rxjs").Observable<any>;
|
|
7
7
|
getOne(tenant: any, className: any, oid: any, template?: any, isCopy?: any): import("rxjs").Observable<any>;
|
|
8
8
|
getInitModelByTemplate(tenant: any, className: any, template?: any): import("rxjs").Observable<any>;
|
|
9
|
+
extraValidate(model: any, params: any, extraValidator: string): import("rxjs").Observable<any>;
|
|
9
10
|
createOrUpdate(tenant: any, className: any, model: any): import("rxjs").Observable<any>;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
11
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
|
|
@@ -3,8 +3,8 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class ModalComponent implements OnInit, OnDestroy {
|
|
4
4
|
private elementRef;
|
|
5
5
|
title: string;
|
|
6
|
-
size: 'default' | 'large' | 'full';
|
|
7
|
-
_width:
|
|
6
|
+
size: 'default' | 'large' | 'full' | string;
|
|
7
|
+
_width: string;
|
|
8
8
|
modalElementRef: ElementRef;
|
|
9
9
|
moveHandleEl: HTMLElement;
|
|
10
10
|
movable: boolean;
|
package/modal/modal.service.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ModalComponent } from './modal.component';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ModalService {
|
|
5
5
|
constructor();
|
|
6
|
-
open(viewContainerRef: ViewContainerRef, title: string, size:
|
|
6
|
+
open(viewContainerRef: ViewContainerRef, title: string, size: string | undefined, contentTemplate: TemplateRef<any>, contentTemplateContext: any, footerTemplate?: TemplateRef<any>, footerTemplateContext?: any): ModalComponent;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
|
|
8
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
|
|
9
9
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './dynamic-params/dynamic-params.component';
|
|
|
21
21
|
export * from './dynamic-params/tooltip-content-template.directive';
|
|
22
22
|
export * from './dynamic-params/dynamic-params.module';
|
|
23
23
|
export * from './form/form.component';
|
|
24
|
+
export * from './form/field-selector/field-selector.component';
|
|
24
25
|
export * from './form/form.module';
|
|
25
26
|
export * from './form/form.service';
|
|
26
27
|
export * from './fullscreen/fullscreen.directive';
|
|
@@ -31,6 +32,7 @@ export * from './modal/modal.module';
|
|
|
31
32
|
export * from './modal/modal.service';
|
|
32
33
|
export * from './pdf-viewer/pdf-viewer.component';
|
|
33
34
|
export * from './util/change-filter';
|
|
35
|
+
export * from './util/form-item-config-base';
|
|
34
36
|
export * from './util/utils';
|
|
35
37
|
export * from './websocket/websocket.module';
|
|
36
38
|
export * from './websocket/websocket.service';
|
package/styles/coast-var.scss
CHANGED
|
@@ -13,6 +13,6 @@ $coast-empty-color: var(--coast-empty-color, #d4d4d4); // 空白背景色
|
|
|
13
13
|
$coast-z-index-framework: var(--coast-z-index-framework, 1000); // 框架层
|
|
14
14
|
$coast-z-index-modal: var(--coast-z-index-modal, 1050); // 模态框
|
|
15
15
|
$coast-z-index-dropdown: var(--coast-z-index-dropdown, 1052); //下拉菜单
|
|
16
|
-
$coast-z-index-drawer: var(--coast-z-index-drawer, 1060); // 抽屉
|
|
17
16
|
$coast-z-index-pop-up: var(--coast-z-index-pop-up, 1070); // 全局提示类信息
|
|
18
17
|
$coast-z-index-full-page-overlay: var(--coast-z-index-full-page-overlay, 1080); // 全局覆盖元素
|
|
18
|
+
$coast-z-index-drawer: var(--coast-z-index-drawer, 2000); // 抽屉
|