ngx-rs-ant 1.3.6 → 1.3.8
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/data-grid/data-grid.component.d.ts +2 -1
- package/data-grid/data-grid.factory.d.ts +1 -1
- package/data-grid/file-cell-template/file-cell-template.component.d.ts +0 -1
- package/esm2020/data-grid/data-grid.component.mjs +5 -3
- package/esm2020/data-grid/data-grid.factory.mjs +8 -3
- package/esm2020/data-grid/file-cell-template/file-cell-template.component.mjs +7 -55
- package/esm2020/form/form.component.mjs +11 -4
- package/esm2020/util/utils.mjs +52 -1
- package/fesm2015/ngx-rs-ant.mjs +184 -169
- package/fesm2015/ngx-rs-ant.mjs.map +1 -1
- package/fesm2020/ngx-rs-ant.mjs +176 -161
- package/fesm2020/ngx-rs-ant.mjs.map +1 -1
- package/form/form.component.d.ts +4 -2
- package/package.json +1 -1
- package/util/utils.d.ts +4 -0
package/form/form.component.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { FormService } from "./form.service";
|
|
3
3
|
import { DxButtonComponent, DxValidationGroupComponent } from "devextreme-angular";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FormComponent implements OnInit, OnChanges, OnDestroy {
|
|
6
6
|
protected viewContainerRef: ViewContainerRef;
|
|
7
7
|
private service;
|
|
8
|
+
private elementRef;
|
|
8
9
|
tenant?: any;
|
|
9
10
|
className: any;
|
|
10
11
|
oid?: any;
|
|
@@ -22,12 +23,13 @@ export declare class FormComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
22
23
|
submitCallback: EventEmitter<any>;
|
|
23
24
|
loading: boolean;
|
|
24
25
|
private changeFilter;
|
|
25
|
-
constructor(viewContainerRef: ViewContainerRef, service: FormService);
|
|
26
|
+
constructor(viewContainerRef: ViewContainerRef, service: FormService, elementRef: ElementRef);
|
|
26
27
|
ngOnInit(): void;
|
|
27
28
|
ngOnChanges(changes: SimpleChanges): void;
|
|
28
29
|
ngOnDestroy(): void;
|
|
29
30
|
load(): void;
|
|
30
31
|
protected submitForm(): void;
|
|
32
|
+
scrollToAnchorPoint(anchorPointId: string): void;
|
|
31
33
|
validate(): Promise<boolean>;
|
|
32
34
|
submit(): void;
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
package/package.json
CHANGED
package/util/utils.d.ts
CHANGED
|
@@ -2,5 +2,9 @@ import { DxValidationGroupComponent, DxValidatorComponent } from "devextreme-ang
|
|
|
2
2
|
export declare function notify_error(message: string): void;
|
|
3
3
|
export declare function notify_warning(message: string): void;
|
|
4
4
|
export declare function notify_success(message: string): void;
|
|
5
|
+
export declare function format_date(date: Date, locale: string): string;
|
|
6
|
+
export declare function format_datetime(date: Date, locale: string): string;
|
|
7
|
+
export declare function file_type_icon(name: string): "image" | "text" | "unknown" | "word" | "pdf" | "excel" | "ppt" | "zip";
|
|
8
|
+
export declare function format_file_size(size: number): string;
|
|
5
9
|
export declare function validate(validator: DxValidatorComponent): Promise<boolean>;
|
|
6
10
|
export declare function validate_group(validationGroup: DxValidationGroupComponent): Promise<boolean>;
|