@wemake4u/form-player-se 1.0.7 → 1.0.9

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.
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, AfterContentInit, OnDestroy, QueryList } from '@angular/core';
2
2
  import { RegisterService } from '../services/register.service';
3
3
  import { ProxyService } from '../services/proxy.service';
4
- import { DynamicFieldsComponent } from '../dynamic-fields/dynamic-fields.component';
4
+ import { IDynamicFieldsComponent } from '../dynamic-fields/dynamic-fields.interface';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class RegisterDirective implements AfterContentInit, OnDestroy {
7
7
  private el;
@@ -9,8 +9,8 @@ export declare class RegisterDirective implements AfterContentInit, OnDestroy {
9
9
  private proxyService;
10
10
  register: any;
11
11
  componentRef: any;
12
- dynamicField?: DynamicFieldsComponent;
13
- itemFields: QueryList<DynamicFieldsComponent>;
12
+ dynamicField?: IDynamicFieldsComponent;
13
+ itemFields: QueryList<IDynamicFieldsComponent>;
14
14
  constructor(el: ElementRef, registerService: RegisterService, proxyService: ProxyService);
15
15
  ngAfterContentInit(): void;
16
16
  ngOnDestroy(): void;
@@ -1,4 +1,5 @@
1
1
  import { OnInit, ElementRef, AfterViewInit } from '@angular/core';
2
+ import { IDynamicFieldsComponent } from './dynamic-fields.interface';
2
3
  import { FormGroup, FormArray, AbstractControl } from '@angular/forms';
3
4
  import { SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
4
5
  import { SanitizeService } from '../services/sanitize.service';
@@ -15,7 +16,7 @@ import { Observable } from 'rxjs';
15
16
  import { SirioFileUploadComponent, NgxSirioEvent } from 'ngx-sirio-lib';
16
17
  import { Module, GridOptions } from 'ag-grid-community';
17
18
  import * as i0 from "@angular/core";
18
- export declare class DynamicFieldsComponent implements OnInit, AfterViewInit {
19
+ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit, IDynamicFieldsComponent {
19
20
  private sanitizer;
20
21
  private markdown;
21
22
  private mime;
@@ -74,7 +75,7 @@ export declare class DynamicFieldsComponent implements OnInit, AfterViewInit {
74
75
  getGridOptions(component: any): GridOptions;
75
76
  getGridModules(component: any): Module[];
76
77
  getGridData(component: any): Observable<any>;
77
- addNewItem(component: any): void;
78
+ addItem(component: any): void;
78
79
  removeItem(component: any, index: number): void;
79
80
  createUploadTables(component: any): any;
80
81
  fileUploaded($event: NgxSirioEvent<SirioFileUploadComponent>): void;
@@ -0,0 +1,4 @@
1
+ import { RegisterService } from '../services/register.service';
2
+ export interface IDynamicFieldsComponent {
3
+ getRegister(): RegisterService;
4
+ }
@@ -30,6 +30,7 @@ export declare class ProgrammabilityService implements OnDestroy {
30
30
  private evalExpression;
31
31
  private evalTemplate;
32
32
  private createProxy;
33
+ private getParentContext;
33
34
  private getParent;
34
35
  private getContext;
35
36
  private watchExpression;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wemake4u/form-player-se",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^18.2.0",
6
6
  "@angular/common": "^18.2.0",