ngx-rs-ant 1.6.0 → 1.6.2

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.
Files changed (31) hide show
  1. package/box-container/PluginManager.d.ts +7 -2
  2. package/box-container/box-container.component.d.ts +2 -1
  3. package/box-container/box-item/item-config/item-config.component.d.ts +2 -1
  4. package/box-container/box-item/item-style/item-style.component.d.ts +2 -1
  5. package/data-grid/data-grid.component.d.ts +2 -1
  6. package/data-grid/instance-link-template/instance-link-template.component.d.ts +3 -4
  7. package/drawer/drawer.component.d.ts +7 -6
  8. package/drawer/drawer.service.d.ts +1 -1
  9. package/esm2020/box-container/PluginManager.mjs +27 -14
  10. package/esm2020/box-container/box-container.component.mjs +19 -3
  11. package/esm2020/box-container/box-item/item-config/item-config.component.mjs +16 -6
  12. package/esm2020/box-container/box-item/item-style/item-style.component.mjs +14 -6
  13. package/esm2020/camunda-bpmn-editor/camunda-bpmn-editor.component.mjs +2 -2
  14. package/esm2020/data-grid/data-grid.component.mjs +7 -4
  15. package/esm2020/data-grid/instance-link-template/instance-link-template.component.mjs +13 -13
  16. package/esm2020/drawer/drawer.component.mjs +27 -22
  17. package/esm2020/drawer/drawer.service.mjs +4 -5
  18. package/esm2020/form/form.component.mjs +17 -4
  19. package/esm2020/form/form.service.mjs +19 -1
  20. package/esm2020/modal/modal.component.mjs +16 -12
  21. package/esm2020/modal/modal.service.mjs +1 -1
  22. package/fesm2015/ngx-rs-ant.mjs +168 -84
  23. package/fesm2015/ngx-rs-ant.mjs.map +1 -1
  24. package/fesm2020/ngx-rs-ant.mjs +170 -84
  25. package/fesm2020/ngx-rs-ant.mjs.map +1 -1
  26. package/form/form.component.d.ts +4 -1
  27. package/form/form.service.d.ts +1 -0
  28. package/modal/modal.component.d.ts +4 -5
  29. package/modal/modal.service.d.ts +1 -1
  30. package/package.json +1 -1
  31. package/styles/coast-var.scss +2 -2
@@ -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?: ViewContainerRef;
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>;
@@ -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>;
@@ -1,11 +1,10 @@
1
- import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
1
+ import { ElementRef, OnDestroy, OnInit, TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ModalComponent implements OnInit, OnDestroy {
4
4
  private elementRef;
5
- private changeDetectorRef;
6
5
  title: string;
7
- size: 'default' | 'large' | 'full';
8
- _width: number;
6
+ size: 'default' | 'large' | 'full' | string;
7
+ _width: string;
9
8
  modalElementRef: ElementRef;
10
9
  moveHandleEl: HTMLElement;
11
10
  movable: boolean;
@@ -16,7 +15,7 @@ export declare class ModalComponent implements OnInit, OnDestroy {
16
15
  footerTemplate?: TemplateRef<any>;
17
16
  footerTemplateContext: any;
18
17
  _parentViewContainerRef: any;
19
- constructor(elementRef: ElementRef, changeDetectorRef: ChangeDetectorRef);
18
+ constructor(elementRef: ElementRef);
20
19
  ngOnInit(): void;
21
20
  show(): void;
22
21
  hide(): void;
@@ -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: "default" | "full" | "large" | undefined, contentTemplate: TemplateRef<any>, contentTemplateContext: any, footerTemplate?: TemplateRef<any>, footerTemplateContext?: any): ModalComponent;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-rs-ant",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "license": "MIT",
5
5
  "description": "RsAnt components based on Angular and DevExtreme",
6
6
  "exports": {
@@ -11,8 +11,8 @@ $coast-empty-color: var(--coast-empty-color, #d4d4d4); // 空白背景色
11
11
 
12
12
  // 统一z-index
13
13
  $coast-z-index-framework: var(--coast-z-index-framework, 1000); // 框架层
14
- $coast-z-index-drawer: var(--coast-z-index-drawer, 1040); // 抽屉
15
14
  $coast-z-index-modal: var(--coast-z-index-modal, 1050); // 模态框
16
15
  $coast-z-index-dropdown: var(--coast-z-index-dropdown, 1052); //下拉菜单
17
- $coast-z-index-pop-up: var(--coast-z-index-pop-up, 1060); // 提示类信息
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); // 抽屉