@wemake4u/form-player-se 1.0.46 → 1.0.47

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.
@@ -0,0 +1,23 @@
1
+ import { ElementRef, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { ListenerService } from '../services/listener.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TreeListDirective implements OnChanges, AfterViewInit {
5
+ private el;
6
+ private listenerService;
7
+ nodes: any[];
8
+ constructor(el: ElementRef, listenerService: ListenerService);
9
+ ngOnChanges(changes: SimpleChanges): void;
10
+ ngAfterViewInit(): void;
11
+ private initialized;
12
+ private rows;
13
+ private rebuild;
14
+ private getChildren;
15
+ private setVisible;
16
+ private updateVisibility;
17
+ private isExpanded;
18
+ private refreshTree;
19
+ private initToggles;
20
+ private refreshToggleIcon;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<TreeListDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TreeListDirective, "[treelist]", never, { "nodes": { "alias": "treelist"; "required": false; }; }, {}, never, never, true, never>;
23
+ }
@@ -15,7 +15,9 @@ import { FormService } from '../services/form.service';
15
15
  import { GridService } from '../services/grid.service';
16
16
  import { ChartService } from '../services/chart.service';
17
17
  import { AutoFocusService } from '../services/autofocus.service';
18
+ import { FunctionService } from '../services/function.service';
18
19
  import { Observable } from 'rxjs';
20
+ import { FlatNode } from '../utils/flatten';
19
21
  import { SirioFileUploadComponent, NgxSirioEvent, ButtonColors } from 'ngx-sirio-lib';
20
22
  import { Module, GridOptions } from 'ag-grid-community';
21
23
  import { AgChartOptions } from 'ag-charts-community';
@@ -32,6 +34,7 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
32
34
  private metadata;
33
35
  private languageService;
34
36
  private global;
37
+ private functionService;
35
38
  private formService;
36
39
  private grid;
37
40
  private chart;
@@ -385,7 +388,7 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
385
388
  Elements: string;
386
389
  Of: string;
387
390
  };
388
- constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, global: GlobalService, formService: FormService, grid: GridService, chart: ChartService, dialog: DialogService, autoFocus: AutoFocusService, el: ElementRef);
391
+ constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, weak: WeakService, register: RegisterService, metadata: MetadataService, languageService: LanguageService, global: GlobalService, functionService: FunctionService, formService: FormService, grid: GridService, chart: ChartService, dialog: DialogService, autoFocus: AutoFocusService, el: ElementRef);
389
392
  ngOnInit(): void;
390
393
  ngOnChanges(changes: SimpleChanges): void;
391
394
  ngAfterViewInit(): void;
@@ -397,11 +400,13 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
397
400
  evaluateBoolean(value: boolean | string | null): boolean | null;
398
401
  evaluateNumber(value: number | string | null): number | null;
399
402
  evaluateUrl(value: string | null): SafeResourceUrl;
400
- evaluateHeight(value: number | string | null): string | null;
403
+ evaluateSize(value: number | string | null): string | null;
401
404
  evaluateTemplate(value: string | null): string;
402
405
  evaluate(text: string | null, cacheable?: boolean, extendContext?: ExtendContextFn): any;
403
406
  evaluateColor(value: string | null): ButtonColors | null;
404
407
  evaluateConditional(conditional: any): boolean;
408
+ getTreeColumns(component: any): any;
409
+ getTreeSource(component: any): Observable<FlatNode<any>[]>;
405
410
  getTemplate(value: string): any;
406
411
  getFormGroup(control: AbstractControl | null): FormGroup;
407
412
  getFormArray(control: AbstractControl | null): FormArray;
@@ -456,6 +461,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
456
461
  getComponentStyle(component: any): {
457
462
  [key: string]: string;
458
463
  } | null;
464
+ getClass(component: any): {};
465
+ getStyle(component: any): {
466
+ [key: string]: string;
467
+ } | null;
459
468
  getTextAlignment(component: any): string;
460
469
  getHorizontalAlignment(component: any): {
461
470
  "horizontal-left": boolean;
@@ -463,8 +472,10 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
463
472
  "horizontal-right": boolean;
464
473
  "horizontal-fill": boolean;
465
474
  };
475
+ getJustify(align: string | undefined): string;
466
476
  getLightView(component: any): string;
467
477
  getPanels(component: any): Observable<any>;
478
+ isTextOverflow(el: HTMLElement): boolean;
468
479
  private noData;
469
480
  private get language();
470
481
  private invalidate;
@@ -472,6 +483,8 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
472
483
  private getAsObservable;
473
484
  private applyCssClasses;
474
485
  private applyInlineStyles;
486
+ private evaluateFuncOrValue;
487
+ private invokeFuncOrValue;
475
488
  private configureDatepicker;
476
489
  private markForAutoFocus;
477
490
  private requireAutoFocus;
@@ -10,7 +10,8 @@ export declare class FunctionService implements IEvaluatorProvider {
10
10
  private dialog;
11
11
  private injector;
12
12
  constructor(metadata: MetadataService, dialog: DialogService, injector: Injector);
13
- invokable(func: any): Function;
13
+ invokable(func: any): (...args: any[]) => any;
14
+ asInvokable(func: any): ((...args: any[]) => any) | null;
14
15
  executeOnce<T>(observable: Observable<T>, callback: any): void;
15
16
  asObservable<T>(value: T): Observable<T>;
16
17
  setTimeout<T>(callback: any, delay: number): void;
@@ -76,6 +76,7 @@ export interface IEvaluatorProvider {
76
76
  export interface EvaluateOptions {
77
77
  cacheable?: boolean;
78
78
  ignoreDeps?: boolean;
79
+ cacheInvalidated?: () => void;
79
80
  extendContext?: ExtendContextFn;
80
81
  }
81
82
  export type ExtendContextFn = () => Record<string, any>;
@@ -0,0 +1,13 @@
1
+ export interface FlatNode<T = any> {
2
+ id: number;
3
+ parentId: number | null;
4
+ level: number;
5
+ hasChildren: boolean;
6
+ expanded: boolean;
7
+ data: T;
8
+ meta?: Record<string, any>;
9
+ }
10
+ export declare function flattenTree<T>(nodes: unknown, options?: {
11
+ children?: keyof T | ((node: T) => T[] | null | undefined);
12
+ onCreate?: (flatNode: FlatNode<T>) => void;
13
+ }): FlatNode<T>[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wemake4u/form-player-se",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^18.2.0",