@magic-xpa/angular 4.1100.0-dev4110.162 → 4.1100.0-dev4110.163
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/esm2020/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.mjs +34 -5
- package/esm2020/src/ui/directives/mgformat.magic.directive.mjs +160 -2
- package/fesm2015/magic-xpa-angular.mjs +187 -6
- package/fesm2015/magic-xpa-angular.mjs.map +1 -1
- package/fesm2020/magic-xpa-angular.mjs +187 -6
- package/fesm2020/magic-xpa-angular.mjs.map +1 -1
- package/package.json +3 -3
- package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts +8 -2
- package/src/ui/directives/mgformat.magic.directive.d.ts +7 -1
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@magic-xpa/angular",
|
3
|
-
"version": "4.1100.0-dev4110.
|
3
|
+
"version": "4.1100.0-dev4110.163",
|
4
4
|
"license": "SEE LICENSE IN EULA.pdf",
|
5
5
|
"dependencies": {
|
6
|
-
"@magic-xpa/engine": "4.1100.0-dev4110.
|
7
|
-
"@magic-xpa/angular-material-core": "4.1100.0-dev4110.
|
6
|
+
"@magic-xpa/engine": "4.1100.0-dev4110.163",
|
7
|
+
"@magic-xpa/angular-material-core": "4.1100.0-dev4110.163",
|
8
8
|
"ng-dynamic-component": "^10.1.0",
|
9
9
|
"rxjs": "^6.5.2",
|
10
10
|
"@maskito/angular": "^1.4.0",
|
package/src/ui/directives/magic/form-controls/control-value-accessors/date.cva.directive.d.ts
CHANGED
@@ -1,13 +1,19 @@
|
|
1
1
|
import { ElementRef, Renderer2 } from "@angular/core";
|
2
|
-
import { ControlValueAccessor } from "@angular/forms";
|
2
|
+
import { AbstractControl, ControlValueAccessor } from "@angular/forms";
|
3
|
+
import { MagicDirective } from "../../../magic.directive";
|
4
|
+
import { TaskMagicService } from "../../../../../services/task.magics.service";
|
3
5
|
import * as i0 from "@angular/core";
|
4
6
|
export declare const DATE_VALUE_ACCESSOR: any;
|
5
7
|
export declare class DateValueAccessor implements ControlValueAccessor {
|
6
8
|
private renderer;
|
7
9
|
private elementRef;
|
10
|
+
protected magicDir: MagicDirective;
|
11
|
+
protected _task: TaskMagicService;
|
8
12
|
onChange: (_: any) => void;
|
9
13
|
onTouched: () => void;
|
10
|
-
|
14
|
+
onBlurEvent(event: any): void;
|
15
|
+
constructor(renderer: Renderer2, elementRef: ElementRef, magicDir: MagicDirective, _task: TaskMagicService);
|
16
|
+
formatDateWithCentury(userInput: string, century: number, control: AbstractControl): void;
|
11
17
|
writeValue(value: Date): void;
|
12
18
|
registerOnChange(fn: (_: any) => void): void;
|
13
19
|
registerOnTouched(fn: () => void): void;
|
@@ -15,7 +15,13 @@ export declare class MgformatMagicDirective {
|
|
15
15
|
onPaste(event: ClipboardEvent): void;
|
16
16
|
onInputEvent(event: any): void;
|
17
17
|
dateMasking(event: any): void;
|
18
|
-
onChangeEvent(
|
18
|
+
onChangeEvent(event: any): void;
|
19
|
+
formatDateWithCentury(userInput: string, century: number, control: AbstractControl): void;
|
20
|
+
updateYear(day: number, month: string, year: number, separator: string, century: number, centuryVal: number, control: AbstractControl): void;
|
21
|
+
getDateSegments1(dateArray: any): any[];
|
22
|
+
getDateSegments2(dateArray: any): any[];
|
23
|
+
getDateSegments3(dateArray: any): any[];
|
24
|
+
getDateSegments4(dateArray: any): any[];
|
19
25
|
calculatePattern(): void;
|
20
26
|
formatDate(pic: PIC): void;
|
21
27
|
formatAlphaUnicode(control: AbstractControl): void;
|