@wemake4u/form-player-se 1.0.0
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/README.md +17 -0
- package/esm2022/lib/controls/accordion.mjs +7 -0
- package/esm2022/lib/controls/button.mjs +7 -0
- package/esm2022/lib/controls/checkbox.mjs +7 -0
- package/esm2022/lib/controls/checklist.mjs +7 -0
- package/esm2022/lib/controls/chipchecklist.mjs +7 -0
- package/esm2022/lib/controls/chipradio.mjs +7 -0
- package/esm2022/lib/controls/control.mjs +65 -0
- package/esm2022/lib/controls/date.mjs +7 -0
- package/esm2022/lib/controls/dynamiclist.mjs +4 -0
- package/esm2022/lib/controls/factory.mjs +106 -0
- package/esm2022/lib/controls/filepicker.mjs +7 -0
- package/esm2022/lib/controls/form.mjs +4 -0
- package/esm2022/lib/controls/group.mjs +4 -0
- package/esm2022/lib/controls/html.mjs +4 -0
- package/esm2022/lib/controls/iframe.mjs +4 -0
- package/esm2022/lib/controls/image.mjs +4 -0
- package/esm2022/lib/controls/number.mjs +7 -0
- package/esm2022/lib/controls/radio.mjs +7 -0
- package/esm2022/lib/controls/select.mjs +7 -0
- package/esm2022/lib/controls/separator.mjs +4 -0
- package/esm2022/lib/controls/spacer.mjs +4 -0
- package/esm2022/lib/controls/tab.mjs +7 -0
- package/esm2022/lib/controls/table.mjs +13 -0
- package/esm2022/lib/controls/taglist.mjs +7 -0
- package/esm2022/lib/controls/text.mjs +4 -0
- package/esm2022/lib/controls/textarea.mjs +7 -0
- package/esm2022/lib/controls/textfield.mjs +18 -0
- package/esm2022/lib/controls/time.mjs +7 -0
- package/esm2022/lib/controls/toggle.mjs +7 -0
- package/esm2022/lib/dataSources/interfaces.mjs +2 -0
- package/esm2022/lib/dataSources/odata.mjs +131 -0
- package/esm2022/lib/dataSources/rest.mjs +48 -0
- package/esm2022/lib/directives/accordion.directive.mjs +52 -0
- package/esm2022/lib/directives/adorner.directive.mjs +130 -0
- package/esm2022/lib/directives/disable.directive.mjs +38 -0
- package/esm2022/lib/directives/display.directive.mjs +46 -0
- package/esm2022/lib/directives/dropdown.directive.mjs +233 -0
- package/esm2022/lib/directives/frame-security.directive.mjs +66 -0
- package/esm2022/lib/directives/grid.directive.mjs +68 -0
- package/esm2022/lib/directives/register.directive.mjs +86 -0
- package/esm2022/lib/directives/repeat.directive.mjs +38 -0
- package/esm2022/lib/directives/tab.directive.mjs +49 -0
- package/esm2022/lib/directives/updateblur.directive.mjs +32 -0
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +493 -0
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +395 -0
- package/esm2022/lib/locale/locale-it.mjs +13 -0
- package/esm2022/lib/services/data.service.mjs +29 -0
- package/esm2022/lib/services/event.service.mjs +19 -0
- package/esm2022/lib/services/feel.service.mjs +73 -0
- package/esm2022/lib/services/formatter.service.mjs +60 -0
- package/esm2022/lib/services/markdown.service.mjs +24 -0
- package/esm2022/lib/services/mime.service.mjs +32 -0
- package/esm2022/lib/services/programmability.service.mjs +221 -0
- package/esm2022/lib/services/proxy.service.mjs +131 -0
- package/esm2022/lib/services/register.service.mjs +60 -0
- package/esm2022/lib/services/sanitize.service.mjs +38 -0
- package/esm2022/lib/services/scope.service.mjs +46 -0
- package/esm2022/lib/services/toast.service.mjs +37 -0
- package/esm2022/lib/services/weak.service.mjs +60 -0
- package/esm2022/lib/utils/extractFiles.mjs +30 -0
- package/esm2022/lib/utils/gridCells.mjs +49 -0
- package/esm2022/lib/utils/groupByRow.mjs +30 -0
- package/esm2022/lib/utils/patchForm.mjs +55 -0
- package/esm2022/lib/utils/toFormData.mjs +11 -0
- package/esm2022/public-api.mjs +8 -0
- package/esm2022/wemake4u-form-player-se.mjs +5 -0
- package/fesm2022/wemake4u-form-player-se.mjs +3101 -0
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/controls/accordion.d.ts +4 -0
- package/lib/controls/button.d.ts +4 -0
- package/lib/controls/checkbox.d.ts +4 -0
- package/lib/controls/checklist.d.ts +4 -0
- package/lib/controls/chipchecklist.d.ts +4 -0
- package/lib/controls/chipradio.d.ts +4 -0
- package/lib/controls/control.d.ts +24 -0
- package/lib/controls/date.d.ts +4 -0
- package/lib/controls/dynamiclist.d.ts +3 -0
- package/lib/controls/factory.d.ts +4 -0
- package/lib/controls/filepicker.d.ts +4 -0
- package/lib/controls/form.d.ts +3 -0
- package/lib/controls/group.d.ts +3 -0
- package/lib/controls/html.d.ts +3 -0
- package/lib/controls/iframe.d.ts +3 -0
- package/lib/controls/image.d.ts +3 -0
- package/lib/controls/number.d.ts +4 -0
- package/lib/controls/radio.d.ts +4 -0
- package/lib/controls/select.d.ts +4 -0
- package/lib/controls/separator.d.ts +3 -0
- package/lib/controls/spacer.d.ts +3 -0
- package/lib/controls/tab.d.ts +4 -0
- package/lib/controls/table.d.ts +6 -0
- package/lib/controls/taglist.d.ts +4 -0
- package/lib/controls/text.d.ts +3 -0
- package/lib/controls/textarea.d.ts +4 -0
- package/lib/controls/textfield.d.ts +6 -0
- package/lib/controls/time.d.ts +4 -0
- package/lib/controls/toggle.d.ts +4 -0
- package/lib/dataSources/interfaces.d.ts +8 -0
- package/lib/dataSources/odata.d.ts +16 -0
- package/lib/dataSources/rest.d.ts +16 -0
- package/lib/directives/accordion.directive.d.ts +11 -0
- package/lib/directives/adorner.directive.d.ts +22 -0
- package/lib/directives/disable.directive.d.ts +12 -0
- package/lib/directives/display.directive.d.ts +12 -0
- package/lib/directives/dropdown.directive.d.ts +26 -0
- package/lib/directives/frame-security.directive.d.ts +14 -0
- package/lib/directives/grid.directive.d.ts +17 -0
- package/lib/directives/register.directive.d.ts +24 -0
- package/lib/directives/repeat.directive.d.ts +12 -0
- package/lib/directives/tab.directive.d.ts +11 -0
- package/lib/directives/updateblur.directive.d.ts +10 -0
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +84 -0
- package/lib/dynamic-form/dynamic-form.component.d.ts +76 -0
- package/lib/locale/locale-it.d.ts +12 -0
- package/lib/services/data.service.d.ts +15 -0
- package/lib/services/event.service.d.ts +15 -0
- package/lib/services/feel.service.d.ts +10 -0
- package/lib/services/formatter.service.d.ts +10 -0
- package/lib/services/markdown.service.d.ts +7 -0
- package/lib/services/mime.service.d.ts +8 -0
- package/lib/services/programmability.service.d.ts +39 -0
- package/lib/services/proxy.service.d.ts +31 -0
- package/lib/services/register.service.d.ts +18 -0
- package/lib/services/sanitize.service.d.ts +12 -0
- package/lib/services/scope.service.d.ts +13 -0
- package/lib/services/toast.service.d.ts +13 -0
- package/lib/services/weak.service.d.ts +10 -0
- package/lib/utils/extractFiles.d.ts +4 -0
- package/lib/utils/gridCells.d.ts +19 -0
- package/lib/utils/groupByRow.d.ts +38 -0
- package/lib/utils/patchForm.d.ts +8 -0
- package/lib/utils/toFormData.d.ts +1 -0
- package/package.json +42 -0
- package/public-api.d.ts +4 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementRef } from "@angular/core";
|
|
2
|
+
import { RegisterService } from "../services/register.service";
|
|
3
|
+
export declare class Control {
|
|
4
|
+
readonly name: string;
|
|
5
|
+
private readonly metadata;
|
|
6
|
+
private readonly componentRef;
|
|
7
|
+
private readonly elementRef;
|
|
8
|
+
constructor(name: string, metadata: any, componentRef: any, elementRef: ElementRef);
|
|
9
|
+
getMetadata(): any;
|
|
10
|
+
getComponentRef(): any;
|
|
11
|
+
getElementRef(): ElementRef;
|
|
12
|
+
}
|
|
13
|
+
export declare class ContainerControl extends Control {
|
|
14
|
+
private register;
|
|
15
|
+
constructor(name: string, metadata: any, componentRef: any, elementRef: ElementRef, register: RegisterService | undefined);
|
|
16
|
+
getControls(): Control[];
|
|
17
|
+
getControl(name: string): Control | undefined;
|
|
18
|
+
findControl<T extends Control>(name: string, type: new (...args: any[]) => T): T | null;
|
|
19
|
+
findControl(name: string): Control | null;
|
|
20
|
+
}
|
|
21
|
+
export declare class ItemControl extends ContainerControl {
|
|
22
|
+
readonly index: number;
|
|
23
|
+
constructor(name: string, index: number, metadata: any, componentRef: any, elementRef: ElementRef, register: RegisterService | undefined);
|
|
24
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { Control } from '../controls/control';
|
|
3
|
+
import { RegisterService } from '../services/register.service';
|
|
4
|
+
export declare function createControl(name: string, metadata: any, componentRef: any, elementRef: ElementRef, register: RegisterService | undefined): Control;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { IGetRowsParams } from 'ag-grid-community';
|
|
3
|
+
import { IRowsSource } from './interfaces';
|
|
4
|
+
export declare class ODataSource implements IRowsSource {
|
|
5
|
+
private url;
|
|
6
|
+
private http;
|
|
7
|
+
constructor(url: string, http: HttpClient);
|
|
8
|
+
getRows(params: IGetRowsParams): void;
|
|
9
|
+
private getQueryString;
|
|
10
|
+
private addCount;
|
|
11
|
+
private addSkipAndTake;
|
|
12
|
+
private addOrderBy;
|
|
13
|
+
private addFilterBy;
|
|
14
|
+
private getCondition;
|
|
15
|
+
private toNumber;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare class RestDataSource<T, T2 = T> {
|
|
4
|
+
private http;
|
|
5
|
+
private baseUrl;
|
|
6
|
+
private params;
|
|
7
|
+
private mapFn?;
|
|
8
|
+
constructor(http: HttpClient, baseUrl: string);
|
|
9
|
+
setParam(key: string, value: any): RestDataSource<T, T2>;
|
|
10
|
+
setParams(params: Record<string, any>): RestDataSource<T, T2>;
|
|
11
|
+
setMapFunction(mapFn: (data: T) => T2): RestDataSource<T, T2>;
|
|
12
|
+
getMapFunction(): ((data: T) => T2) | undefined;
|
|
13
|
+
getParam(key: string): any;
|
|
14
|
+
getParams(): Record<string, any>;
|
|
15
|
+
getData(): Observable<T2[]>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { SirioAccordionComponent } from 'ngx-sirio-lib';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AccordionDirective implements OnChanges {
|
|
5
|
+
private sirioAccordion;
|
|
6
|
+
accordionCount: number;
|
|
7
|
+
constructor(sirioAccordion: SirioAccordionComponent);
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionDirective, [{ host: true; }]>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionDirective, "[accordionCount]", never, { "accordionCount": { "alias": "accordionCount"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef, Renderer2, AfterViewInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AdornerDirective implements OnChanges, AfterViewInit {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
prefixAdorner: string | null;
|
|
7
|
+
suffixAdorner: string | null;
|
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
11
|
+
private getWrapper;
|
|
12
|
+
private isPrepared;
|
|
13
|
+
private prepare;
|
|
14
|
+
private updatePrefix;
|
|
15
|
+
private updateSuffix;
|
|
16
|
+
private remove;
|
|
17
|
+
private createSpanElement;
|
|
18
|
+
private getIconClassName;
|
|
19
|
+
private normalizeText;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdornerDirective, never>;
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AdornerDirective, "[prefixAdorner], [suffixAdorner]", never, { "prefixAdorner": { "alias": "prefixAdorner"; "required": false; }; "suffixAdorner": { "alias": "suffixAdorner"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DisableDirective implements OnChanges {
|
|
5
|
+
private ngControl;
|
|
6
|
+
disableControl: boolean | null;
|
|
7
|
+
readonly: boolean | null;
|
|
8
|
+
constructor(ngControl: NgControl);
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisableDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DisableDirective, "[disableControl], [readonly]", never, { "disableControl": { "alias": "disableControl"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DisplayDirective implements OnChanges {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
hide: boolean | null;
|
|
7
|
+
show: boolean | null;
|
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisplayDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DisplayDirective, "[hide], [show]", never, { "hide": { "alias": "hide"; "required": false; }; "show": { "alias": "show"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { SirioSelectComponent } from 'ngx-sirio-lib';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DropdownDirective implements AfterViewInit {
|
|
5
|
+
private el;
|
|
6
|
+
private renderer;
|
|
7
|
+
private sirioSelect;
|
|
8
|
+
constructor(el: ElementRef, renderer: Renderer2, sirioSelect: SirioSelectComponent);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
private handleNullValue;
|
|
11
|
+
private handleSearchable;
|
|
12
|
+
private deactivate;
|
|
13
|
+
private activate;
|
|
14
|
+
private onKeyUp;
|
|
15
|
+
private onKeyDown;
|
|
16
|
+
private native;
|
|
17
|
+
private isHidden;
|
|
18
|
+
private show;
|
|
19
|
+
private comparable;
|
|
20
|
+
private scrollDown;
|
|
21
|
+
private scrollUp;
|
|
22
|
+
private findPreviousVisibleOption;
|
|
23
|
+
private findNextVisibleOption;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDirective, [null, null, { host: true; }]>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[dropdown]", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FrameSecurityDirective implements AfterViewInit {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
frameSecurity: any;
|
|
7
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
private getSandBox;
|
|
10
|
+
private getAllow;
|
|
11
|
+
private camelToKebabCase;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FrameSecurityDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FrameSecurityDirective, "[frameSecurity]", never, { "frameSecurity": { "alias": "frameSecurity"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { AgGridAngular } from 'ag-grid-angular';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class GridDirective implements OnChanges {
|
|
5
|
+
private grid;
|
|
6
|
+
rowSource: any;
|
|
7
|
+
constructor(grid: AgGridAngular);
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
private isGridReady;
|
|
10
|
+
private onRowChanges;
|
|
11
|
+
private setRowData;
|
|
12
|
+
private setDataSource;
|
|
13
|
+
private isArray;
|
|
14
|
+
private isDataSource;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridDirective, [{ host: true; }]>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<GridDirective, "[rowSource]", never, { "rowSource": { "alias": "rowSource"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementRef, AfterContentInit, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
+
import { RegisterService } from '../services/register.service';
|
|
3
|
+
import { ProxyService } from '../services/proxy.service';
|
|
4
|
+
import { DynamicFieldsComponent } from '../dynamic-fields/dynamic-fields.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class RegisterDirective implements AfterContentInit, OnDestroy {
|
|
7
|
+
private el;
|
|
8
|
+
private registerService;
|
|
9
|
+
private proxyService;
|
|
10
|
+
register: any;
|
|
11
|
+
componentRef: any;
|
|
12
|
+
dynamicField?: DynamicFieldsComponent;
|
|
13
|
+
itemFields: QueryList<DynamicFieldsComponent>;
|
|
14
|
+
constructor(el: ElementRef, registerService: RegisterService, proxyService: ProxyService);
|
|
15
|
+
ngAfterContentInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
private destroy$;
|
|
18
|
+
private registerControl;
|
|
19
|
+
private unregisterControl;
|
|
20
|
+
private getName;
|
|
21
|
+
private createDynamicRegister;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RegisterDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RegisterDirective, "[register]", never, { "register": { "alias": "register"; "required": false; }; "componentRef": { "alias": "componentRef"; "required": false; }; }, {}, ["dynamicField", "itemFields"], never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlContainer } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RepeatDirective implements OnChanges {
|
|
5
|
+
private controlContainer;
|
|
6
|
+
repeat: any;
|
|
7
|
+
constructor(controlContainer: ControlContainer);
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
private resizeArray;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RepeatDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RepeatDirective, "[repeat]", never, { "repeat": { "alias": "repeat"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { SirioTabComponent } from 'ngx-sirio-lib';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TabDirective implements OnChanges {
|
|
5
|
+
private sirioTab;
|
|
6
|
+
tabCount: number;
|
|
7
|
+
constructor(sirioTab: SirioTabComponent);
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabDirective, [{ host: true; }]>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabDirective, "[tabCount]", never, { "tabCount": { "alias": "tabCount"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { SirioInputComponent } from 'ngx-sirio-lib';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UpdateBlurDirective implements AfterViewInit {
|
|
5
|
+
private sirioInput;
|
|
6
|
+
constructor(sirioInput: SirioInputComponent);
|
|
7
|
+
ngAfterViewInit(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UpdateBlurDirective, [{ host: true; }]>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UpdateBlurDirective, "[updateBlur]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { OnInit, ElementRef, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormArray, AbstractControl } from '@angular/forms';
|
|
3
|
+
import { SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
|
|
4
|
+
import { SanitizeService } from '../services/sanitize.service';
|
|
5
|
+
import { MarkdownService } from '../services/markdown.service';
|
|
6
|
+
import { MimeService } from '../services/mime.service';
|
|
7
|
+
import { ProgrammabilityService } from '../services/programmability.service';
|
|
8
|
+
import { EventService } from '../services/event.service';
|
|
9
|
+
import { FormatterService } from '../services/formatter.service';
|
|
10
|
+
import { WeakService } from '../services/weak.service';
|
|
11
|
+
import { RegisterService } from '../services/register.service';
|
|
12
|
+
import { ButtonColors } from 'ngx-sirio-lib';
|
|
13
|
+
import { Observable } from 'rxjs';
|
|
14
|
+
import { SirioFileUploadComponent, NgxSirioEvent } from 'ngx-sirio-lib';
|
|
15
|
+
import { Module, GridOptions } from 'ag-grid-community';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class DynamicFieldsComponent implements OnInit, AfterViewInit {
|
|
18
|
+
private sanitizer;
|
|
19
|
+
private markdown;
|
|
20
|
+
private mime;
|
|
21
|
+
private programmability;
|
|
22
|
+
private events;
|
|
23
|
+
private formatter;
|
|
24
|
+
private weak;
|
|
25
|
+
private register;
|
|
26
|
+
private el;
|
|
27
|
+
rows: Array<any> | undefined;
|
|
28
|
+
formGroup: FormGroup;
|
|
29
|
+
Texts: {
|
|
30
|
+
TypeToSearch: string;
|
|
31
|
+
Upload: string;
|
|
32
|
+
ScrollLeft: string;
|
|
33
|
+
ScrollRight: string;
|
|
34
|
+
AddItem: string;
|
|
35
|
+
RemoveItem: string;
|
|
36
|
+
PreviousSection: string;
|
|
37
|
+
NextSection: string;
|
|
38
|
+
Show: string;
|
|
39
|
+
Close: string;
|
|
40
|
+
};
|
|
41
|
+
constructor(sanitizer: SanitizeService, markdown: MarkdownService, mime: MimeService, programmability: ProgrammabilityService, events: EventService, formatter: FormatterService, weak: WeakService, register: RegisterService, el: ElementRef);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
ngAfterViewInit(): void;
|
|
44
|
+
getRegister(): RegisterService;
|
|
45
|
+
getClass(component: any): string;
|
|
46
|
+
getTextFeedback(component: any): string;
|
|
47
|
+
isWarning(component: any): boolean;
|
|
48
|
+
evaluateString(value: string | null): string;
|
|
49
|
+
evaluateBoolean(value: boolean | string | null): boolean | null;
|
|
50
|
+
evaluateNumber(value: number | null): number | null;
|
|
51
|
+
evaluateUrl(value: string | null): SafeResourceUrl;
|
|
52
|
+
evaluateTemplate(value: string | null): string;
|
|
53
|
+
evaluate(text: string | null, cacheable?: boolean): any;
|
|
54
|
+
evaluateColor(value: string | null): ButtonColors | null;
|
|
55
|
+
getFormGroup(control: AbstractControl | null): FormGroup;
|
|
56
|
+
getFormArray(control: AbstractControl | null): FormArray;
|
|
57
|
+
getControlFromPath(path: string | null): AbstractControl | null;
|
|
58
|
+
toHTML(text: string): SafeHtml;
|
|
59
|
+
sanitize(html: string): SafeHtml;
|
|
60
|
+
getMimeTypes(extensions: string): string;
|
|
61
|
+
clickButton(component: any, event: any): void;
|
|
62
|
+
getValues(component: any): Observable<any>;
|
|
63
|
+
getGridOptions(component: any): GridOptions;
|
|
64
|
+
getGridModules(component: any): Module[];
|
|
65
|
+
getGridData(component: any): Observable<any>;
|
|
66
|
+
addNewItem(component: any): void;
|
|
67
|
+
removeItem(component: any, index: number): void;
|
|
68
|
+
createUploadTables(component: any): any;
|
|
69
|
+
fileUploaded($event: NgxSirioEvent<SirioFileUploadComponent>): void;
|
|
70
|
+
private focusFirst;
|
|
71
|
+
private gridTexts;
|
|
72
|
+
private gridTheme;
|
|
73
|
+
private getGridColumns;
|
|
74
|
+
private getGridPaginable;
|
|
75
|
+
private getGridPageSize;
|
|
76
|
+
private getGridTexts;
|
|
77
|
+
private getGridTheme;
|
|
78
|
+
private getGridFormatter;
|
|
79
|
+
private getGridRenderer;
|
|
80
|
+
private getAsObservable;
|
|
81
|
+
private configureDatepicker;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, true, never>;
|
|
84
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { OnChanges, OnDestroy, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { ProgrammabilityService } from '../services/programmability.service';
|
|
4
|
+
import { CommandEvent, EventService } from '../services/event.service';
|
|
5
|
+
import { SirioStepperProgressStatus } from 'ngx-sirio-lib';
|
|
6
|
+
import { RegisterService } from '../services/register.service';
|
|
7
|
+
import { Control } from '../controls/control';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class DynamicFormComponent implements OnChanges, OnDestroy {
|
|
10
|
+
private fb;
|
|
11
|
+
private programmabilityService;
|
|
12
|
+
private events;
|
|
13
|
+
private registerService;
|
|
14
|
+
schema: any;
|
|
15
|
+
formGroup: FormGroup;
|
|
16
|
+
value: any;
|
|
17
|
+
showNav: boolean;
|
|
18
|
+
showNavButton: boolean;
|
|
19
|
+
showProgress: boolean;
|
|
20
|
+
progressStatus: boolean;
|
|
21
|
+
valueChange: EventEmitter<any>;
|
|
22
|
+
initialized: EventEmitter<FormGroup<any>>;
|
|
23
|
+
onCommand: EventEmitter<CommandEvent>;
|
|
24
|
+
activeNavChange: EventEmitter<any>;
|
|
25
|
+
constructor(fb: FormBuilder, programmabilityService: ProgrammabilityService, events: EventService, registerService: RegisterService);
|
|
26
|
+
Texts: {
|
|
27
|
+
TypeToSearch: string;
|
|
28
|
+
Upload: string;
|
|
29
|
+
ScrollLeft: string;
|
|
30
|
+
ScrollRight: string;
|
|
31
|
+
AddItem: string;
|
|
32
|
+
RemoveItem: string;
|
|
33
|
+
PreviousSection: string;
|
|
34
|
+
NextSection: string;
|
|
35
|
+
Show: string;
|
|
36
|
+
Close: string;
|
|
37
|
+
};
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
40
|
+
get forms(): Array<any>;
|
|
41
|
+
canPrevious(): boolean;
|
|
42
|
+
goPrevious(): void;
|
|
43
|
+
canNext(): boolean;
|
|
44
|
+
goNext(): void;
|
|
45
|
+
getControls(): Control[];
|
|
46
|
+
getControl(name: string): Control | undefined;
|
|
47
|
+
get activeNav(): number;
|
|
48
|
+
set activeNav(value: number);
|
|
49
|
+
getFormGroup(path: string | null): FormGroup;
|
|
50
|
+
getFormStatus(form: any): SirioStepperProgressStatus;
|
|
51
|
+
activateForm(title: string): void;
|
|
52
|
+
private valueChangesSubscription;
|
|
53
|
+
private onCommandSubscription;
|
|
54
|
+
private _forms;
|
|
55
|
+
private _activeNav;
|
|
56
|
+
private getNext;
|
|
57
|
+
private getPrevious;
|
|
58
|
+
private getMaxNav;
|
|
59
|
+
private clearControls;
|
|
60
|
+
private registerHandlers;
|
|
61
|
+
private clearHandlers;
|
|
62
|
+
private buildForm;
|
|
63
|
+
private addControls;
|
|
64
|
+
private applyPath;
|
|
65
|
+
private getValidators;
|
|
66
|
+
private validateFn;
|
|
67
|
+
private invalidateFn;
|
|
68
|
+
private useNumber;
|
|
69
|
+
private isFormComponent;
|
|
70
|
+
private getUpdateOn;
|
|
71
|
+
private getDefaultValue;
|
|
72
|
+
private splitPath;
|
|
73
|
+
private patchValue;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "showNav": { "alias": "showNav"; "required": false; }; "showNavButton": { "alias": "showNavButton"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "progressStatus": { "alias": "progressStatus"; "required": false; }; "activeNav": { "alias": "activeNav"; "required": false; }; }, { "valueChange": "valueChange"; "initialized": "initialized"; "onCommand": "onCommand"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { RestDataSource } from '../dataSources/rest';
|
|
3
|
+
import { IRowsSource } from '../dataSources/interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DataService {
|
|
6
|
+
private http;
|
|
7
|
+
constructor(http: HttpClient);
|
|
8
|
+
queryOData(url: string): IRowsSource;
|
|
9
|
+
createRest(url: string): RestDataSource<any, any>;
|
|
10
|
+
createRest<T>(url: string): RestDataSource<T, T>;
|
|
11
|
+
createRest<T, T2>(url: string): RestDataSource<T, T2>;
|
|
12
|
+
private createOData;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface CommandEvent {
|
|
4
|
+
name: string;
|
|
5
|
+
component: any;
|
|
6
|
+
formGroup: FormGroup;
|
|
7
|
+
event: any;
|
|
8
|
+
}
|
|
9
|
+
export declare class EventService {
|
|
10
|
+
private commandSubject;
|
|
11
|
+
onCommand: import("rxjs").Observable<CommandEvent>;
|
|
12
|
+
emitCommand(data: CommandEvent): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
|
|
15
|
+
}
|