@wemake4u/form-player-se 1.0.15 → 1.0.17
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/accordionpanel.directive.mjs +4 -3
- package/esm2022/lib/directives/repeat.directive.mjs +10 -8
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +3 -3
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +24 -3
- package/esm2022/lib/utils/focusable.mjs +26 -22
- package/esm2022/lib/utils/patchForm.mjs +2 -1
- package/fesm2022/wemake4u-form-player-se.mjs +62 -34
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/directives/repeat.directive.d.ts +2 -1
- package/lib/dynamic-form/dynamic-form.component.d.ts +3 -1
- package/lib/utils/focusable.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,9 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class RepeatDirective implements OnChanges {
|
|
5
5
|
private controlContainer;
|
|
6
6
|
repeat: any;
|
|
7
|
+
allowAddRemove: boolean | null;
|
|
7
8
|
constructor(controlContainer: ControlContainer);
|
|
8
9
|
ngOnChanges(changes: SimpleChanges): void;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<RepeatDirective, never>;
|
|
10
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RepeatDirective, "[repeat]", never, { "repeat": { "alias": "repeat"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RepeatDirective, "[repeat], [allowAddRemove]", never, { "repeat": { "alias": "repeat"; "required": false; }; "allowAddRemove": { "alias": "allowAddRemove"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnChanges, OnDestroy, SimpleChanges, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges, EventEmitter, ElementRef } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { ProgrammabilityService } from '../services/programmability.service';
|
|
4
4
|
import { CommandEvent, EventService } from '../services/event.service';
|
|
@@ -26,6 +26,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
26
26
|
initialized: EventEmitter<FormGroup<any>>;
|
|
27
27
|
onCommand: EventEmitter<CommandEvent>;
|
|
28
28
|
activeNavChange: EventEmitter<any>;
|
|
29
|
+
formDiv: ElementRef<HTMLDivElement>;
|
|
29
30
|
constructor(fb: FormBuilder, programmability: ProgrammabilityService, events: EventService, registerService: RegisterService, metadata: MetadataService);
|
|
30
31
|
Texts: {
|
|
31
32
|
i18n: {
|
|
@@ -252,6 +253,7 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
|
252
253
|
private getMaxNav;
|
|
253
254
|
private isDisabled;
|
|
254
255
|
private clearControls;
|
|
256
|
+
private clearFormArrays;
|
|
255
257
|
private registerHandlers;
|
|
256
258
|
private clearHandlers;
|
|
257
259
|
private buildForm;
|
package/lib/utils/focusable.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function getFocusables(el: HTMLElement): HTMLElement[];
|
|
1
|
+
export declare function getFocusables(el: HTMLElement, firstOnly?: boolean): HTMLElement[];
|
|
2
2
|
export declare function setFocus(el: HTMLElement): boolean;
|