@wemake4u/form-player-se 1.0.3 → 1.0.4
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/esm2022/lib/directives/date.directive.mjs +93 -0
- package/esm2022/lib/directives/disable.directive.mjs +18 -4
- package/esm2022/lib/directives/number.directive.mjs +108 -0
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +16 -7
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +18 -30
- package/esm2022/lib/locale/locale-it.mjs +2 -1
- package/esm2022/lib/utils/gridCells.mjs +10 -7
- package/esm2022/lib/utils/gridUtils.mjs +75 -0
- package/fesm2022/wemake4u-form-player-se.mjs +339 -59
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/directives/date.directive.d.ts +8 -0
- package/lib/directives/disable.directive.d.ts +5 -2
- package/lib/directives/number.directive.d.ts +16 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +1 -0
- package/lib/dynamic-form/dynamic-form.component.d.ts +1 -1
- package/lib/locale/locale-it.d.ts +1 -0
- package/lib/utils/gridCells.d.ts +34 -0
- package/lib/utils/gridUtils.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SirioDatepickerComponent } from 'ngx-sirio-lib';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DateDirective {
|
|
4
|
+
private sirioDatepicker;
|
|
5
|
+
constructor(sirioDatepicker: SirioDatepickerComponent);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateDirective, [{ host: true; }]>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DateDirective, "[isoDate]", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { OnChanges, SimpleChanges, ElementRef, Renderer2 } from '@angular/core';
|
|
2
2
|
import { NgControl } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DisableDirective implements OnChanges {
|
|
5
5
|
private ngControl;
|
|
6
|
+
private el;
|
|
7
|
+
private renderer;
|
|
6
8
|
disableControl: boolean | null;
|
|
7
9
|
readonly: boolean | null;
|
|
8
|
-
constructor(ngControl: NgControl);
|
|
10
|
+
constructor(ngControl: NgControl, el: ElementRef, renderer: Renderer2);
|
|
9
11
|
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
private addClass;
|
|
10
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DisableDirective, never>;
|
|
11
14
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DisableDirective, "[disableControl], [readonly]", never, { "disableControl": { "alias": "disableControl"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
15
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { SirioInputComponent } from 'ngx-sirio-lib';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NumberDirective implements AfterViewInit {
|
|
5
|
+
private sirioInput;
|
|
6
|
+
defaultValue: number | null;
|
|
7
|
+
minimum: number | null;
|
|
8
|
+
maximum: number | null;
|
|
9
|
+
decimalDigits: number | null;
|
|
10
|
+
constructor(sirioInput: SirioInputComponent);
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
private acceptSign;
|
|
13
|
+
private acceptDecimal;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberDirective, [{ host: true; }]>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NumberDirective, "[number]", never, { "defaultValue": { "alias": "defaultValue"; "required": false; }; "minimum": { "alias": "minimum"; "required": false; }; "maximum": { "alias": "maximum"; "required": false; }; "decimalDigits": { "alias": "decimalDigits"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -33,6 +33,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
33
33
|
PreviousSection: string;
|
|
34
34
|
NextSection: string;
|
|
35
35
|
Show: string;
|
|
36
|
+
Remove: string;
|
|
36
37
|
Close: string;
|
|
37
38
|
Name: string;
|
|
38
39
|
Size: string;
|
|
@@ -69,7 +70,6 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
69
70
|
private getValidators;
|
|
70
71
|
private validateFn;
|
|
71
72
|
private invalidateFn;
|
|
72
|
-
private useNumber;
|
|
73
73
|
private isFormComponent;
|
|
74
74
|
private getUpdateOn;
|
|
75
75
|
private getDefaultValue;
|
package/lib/utils/gridCells.d.ts
CHANGED
|
@@ -4,6 +4,23 @@ import { ProgrammabilityService } from '../services/programmability.service';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ObjectURLRendererComponent implements ICellRendererAngularComp {
|
|
6
6
|
params: ICellRendererParams;
|
|
7
|
+
Texts: {
|
|
8
|
+
TypeToSearch: string;
|
|
9
|
+
Upload: string;
|
|
10
|
+
ScrollLeft: string;
|
|
11
|
+
ScrollRight: string;
|
|
12
|
+
AddItem: string;
|
|
13
|
+
RemoveItem: string;
|
|
14
|
+
PreviousSection: string;
|
|
15
|
+
NextSection: string;
|
|
16
|
+
Show: string;
|
|
17
|
+
Remove: string;
|
|
18
|
+
Close: string;
|
|
19
|
+
Name: string;
|
|
20
|
+
Size: string;
|
|
21
|
+
Type: string;
|
|
22
|
+
Actions: string;
|
|
23
|
+
};
|
|
7
24
|
agInit(params: ICellRendererParams): void;
|
|
8
25
|
onClick(event: Event): void;
|
|
9
26
|
refresh(): boolean;
|
|
@@ -12,6 +29,23 @@ export declare class ObjectURLRendererComponent implements ICellRendererAngularC
|
|
|
12
29
|
}
|
|
13
30
|
export declare class DeleteRowCellRenderer implements ICellRendererAngularComp {
|
|
14
31
|
params: any;
|
|
32
|
+
Texts: {
|
|
33
|
+
TypeToSearch: string;
|
|
34
|
+
Upload: string;
|
|
35
|
+
ScrollLeft: string;
|
|
36
|
+
ScrollRight: string;
|
|
37
|
+
AddItem: string;
|
|
38
|
+
RemoveItem: string;
|
|
39
|
+
PreviousSection: string;
|
|
40
|
+
NextSection: string;
|
|
41
|
+
Show: string;
|
|
42
|
+
Remove: string;
|
|
43
|
+
Close: string;
|
|
44
|
+
Name: string;
|
|
45
|
+
Size: string;
|
|
46
|
+
Type: string;
|
|
47
|
+
Actions: string;
|
|
48
|
+
};
|
|
15
49
|
agInit(params: any): void;
|
|
16
50
|
onClick(event: Event): void;
|
|
17
51
|
refresh(): boolean;
|