@wemake4u/form-player-se 1.0.44 → 1.0.46
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/builtIn/builtIn.mjs +6 -2
- package/esm2022/lib/builtIn/cache.json +30 -0
- package/esm2022/lib/builtIn/form.json +25 -0
- package/esm2022/lib/builtIn/function.json +28 -0
- package/esm2022/lib/builtIn/nav.json +37 -0
- package/esm2022/lib/controls/control.mjs +8 -3
- package/esm2022/lib/controls/factory.mjs +33 -33
- package/esm2022/lib/dialog/dialog.component.mjs +5 -4
- package/esm2022/lib/directives/collapse.directive.mjs +22 -2
- package/esm2022/lib/directives/dropdown.directive.mjs +38 -8
- package/esm2022/lib/directives/grid.directive.mjs +10 -2
- package/esm2022/lib/directives/required.directive.mjs +2 -2
- package/esm2022/lib/directives/tabcontrol.directive.mjs +17 -5
- package/esm2022/lib/dynamic-fields/dynamic-fields.component.mjs +23 -9
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +27 -7
- package/esm2022/lib/services/builder.service.mjs +9 -1
- package/esm2022/lib/services/compute.service.mjs +2 -2
- package/esm2022/lib/services/dialog.service.mjs +1 -1
- package/esm2022/lib/services/disable.service.mjs +2 -2
- package/esm2022/lib/services/feel.service.mjs +25 -7
- package/esm2022/lib/services/form.service.mjs +17 -1
- package/esm2022/lib/services/function.service.mjs +13 -2
- package/esm2022/lib/services/programmability.service.mjs +28 -14
- package/esm2022/lib/services/validation.service.mjs +89 -54
- package/esm2022/lib/services/weak.service.mjs +4 -3
- package/esm2022/lib/utils/cacheControl.mjs +24 -0
- package/esm2022/lib/utils/deepEqual.mjs +27 -19
- package/esm2022/lib/utils/groupByRow.mjs +2 -1
- package/esm2022/lib/utils/observable.mjs +7 -3
- package/esm2022/public-api.mjs +33 -1
- package/fesm2022/wemake4u-form-player-se.mjs +545 -169
- package/fesm2022/wemake4u-form-player-se.mjs.map +1 -1
- package/lib/controls/factory.d.ts +1 -1
- package/lib/directives/collapse.directive.d.ts +6 -1
- package/lib/directives/dropdown.directive.d.ts +5 -2
- package/lib/directives/tabcontrol.directive.d.ts +3 -1
- package/lib/dynamic-fields/dynamic-fields.component.d.ts +5 -3
- package/lib/dynamic-form/dynamic-form.component.d.ts +3 -0
- package/lib/services/dialog.service.d.ts +10 -3
- package/lib/services/feel.service.d.ts +7 -2
- package/lib/services/form.service.d.ts +3 -0
- package/lib/services/function.service.d.ts +2 -0
- package/lib/services/programmability.service.d.ts +3 -3
- package/lib/services/validation.service.d.ts +5 -2
- package/lib/services/weak.service.d.ts +1 -1
- package/lib/utils/cacheControl.d.ts +9 -0
- package/lib/utils/deepEqual.d.ts +3 -1
- package/lib/utils/groupByRow.d.ts +1 -0
- package/lib/utils/observable.d.ts +1 -1
- package/package.json +3 -3
- package/public-api.d.ts +32 -0
- package/esm2022/lib/utils/patch.mjs +0 -17
- package/lib/utils/patch.d.ts +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Control, ControlContext } from '
|
|
1
|
+
import { Control, ControlContext } from './control';
|
|
2
2
|
export declare function createControl(context: ControlContext): Control;
|
|
@@ -9,6 +9,9 @@ export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
|
9
9
|
private listenerService;
|
|
10
10
|
private languageService;
|
|
11
11
|
maxHeight: number | null;
|
|
12
|
+
onCollapse?: () => void;
|
|
13
|
+
onExpand?: () => void;
|
|
14
|
+
component: any;
|
|
12
15
|
private currentHeight;
|
|
13
16
|
private button;
|
|
14
17
|
private iconSpan;
|
|
@@ -33,6 +36,8 @@ export declare class CollapseDirective implements OnChanges, OnDestroy {
|
|
|
33
36
|
private collapse;
|
|
34
37
|
private updateIcon;
|
|
35
38
|
private locale;
|
|
39
|
+
private onExpandOccurred;
|
|
40
|
+
private onCollapseOccurred;
|
|
36
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
|
|
37
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[collapse]", never, { "maxHeight": { "alias": "collapse"; "required": false; }; }, {}, never, never, true, never>;
|
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[collapse]", never, { "maxHeight": { "alias": "collapse"; "required": false; }; "onCollapse": { "alias": "onCollapse"; "required": false; }; "onExpand": { "alias": "onExpand"; "required": false; }; "component": { "alias": "register"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
43
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, ElementRef, Renderer2, DestroyRef } from '@angular/core';
|
|
2
2
|
import { ListenerService } from '../services/listener.service';
|
|
3
3
|
import { SirioSelectComponent } from 'ngx-sirio-lib';
|
|
4
|
+
import { ExtendContextFn } from '../services/programmability.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
6
7
|
private el;
|
|
@@ -8,6 +9,8 @@ export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
|
8
9
|
private listenerService;
|
|
9
10
|
private destroyRef;
|
|
10
11
|
private sirioSelect;
|
|
12
|
+
component: any;
|
|
13
|
+
onSelectionChanged?: (extendContext: ExtendContextFn) => void;
|
|
11
14
|
constructor(el: ElementRef, renderer: Renderer2, listenerService: ListenerService, destroyRef: DestroyRef, sirioSelect: SirioSelectComponent);
|
|
12
15
|
ngAfterViewInit(): void;
|
|
13
16
|
ngOnInit(): void;
|
|
@@ -15,7 +18,7 @@ export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
|
15
18
|
private handleValue;
|
|
16
19
|
private handleSearchable;
|
|
17
20
|
private handleOptionsChanges;
|
|
18
|
-
private
|
|
21
|
+
private handleOptionSelected;
|
|
19
22
|
private canValidate;
|
|
20
23
|
private validator;
|
|
21
24
|
private addValidator;
|
|
@@ -35,5 +38,5 @@ export declare class DropdownDirective implements AfterViewInit, OnDestroy {
|
|
|
35
38
|
private findPreviousVisibleOption;
|
|
36
39
|
private findNextVisibleOption;
|
|
37
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDirective, [null, null, null, null, { host: true; }]>;
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[dropdown]", never, {}, {}, never, never, true, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[dropdown]", never, { "component": { "alias": "register"; "required": false; }; "onSelectionChanged": { "alias": "onSelectionChanged"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
42
|
}
|
|
@@ -4,11 +4,13 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class TabControlDirective implements OnInit {
|
|
5
5
|
private sirioTab;
|
|
6
6
|
private destroyRef;
|
|
7
|
+
component: any;
|
|
7
8
|
constructor(sirioTab: SirioTabComponent, destroyRef: DestroyRef);
|
|
8
9
|
ngOnInit(): void;
|
|
9
10
|
private HandleIndexChange;
|
|
10
11
|
private validateIndex;
|
|
12
|
+
private disableAutoFocus;
|
|
11
13
|
private setFocus;
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabControlDirective, [{ host: true; }, null]>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TabControlDirective, "[tabControl]", never, {}, {}, never, never, true, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabControlDirective, "[tabControl]", never, { "component": { "alias": "register"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
16
|
}
|
|
@@ -5,7 +5,7 @@ import { SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
|
|
|
5
5
|
import { SanitizeService } from '../services/sanitize.service';
|
|
6
6
|
import { MarkdownService } from '../services/markdown.service';
|
|
7
7
|
import { MimeService } from '../services/mime.service';
|
|
8
|
-
import { ProgrammabilityService } from '../services/programmability.service';
|
|
8
|
+
import { ExtendContextFn, ProgrammabilityService } from '../services/programmability.service';
|
|
9
9
|
import { DialogService } from '../services/dialog.service';
|
|
10
10
|
import { WeakService } from '../services/weak.service';
|
|
11
11
|
import { RegisterService } from '../services/register.service';
|
|
@@ -46,6 +46,7 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
46
46
|
recursionLevel: number;
|
|
47
47
|
identity: string;
|
|
48
48
|
identityIndex?: number;
|
|
49
|
+
disableAutoFocus?: boolean;
|
|
49
50
|
Texts: {
|
|
50
51
|
i18n: {
|
|
51
52
|
it: {
|
|
@@ -398,7 +399,7 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
398
399
|
evaluateUrl(value: string | null): SafeResourceUrl;
|
|
399
400
|
evaluateHeight(value: number | string | null): string | null;
|
|
400
401
|
evaluateTemplate(value: string | null): string;
|
|
401
|
-
evaluate(text: string | null, cacheable?: boolean): any;
|
|
402
|
+
evaluate(text: string | null, cacheable?: boolean, extendContext?: ExtendContextFn): any;
|
|
402
403
|
evaluateColor(value: string | null): ButtonColors | null;
|
|
403
404
|
evaluateConditional(conditional: any): boolean;
|
|
404
405
|
getTemplate(value: string): any;
|
|
@@ -424,6 +425,7 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
424
425
|
getGridModules(component: any): Module[];
|
|
425
426
|
onGridSelectionChanged(component: any, event: any): void;
|
|
426
427
|
getRowSource(component: any): any;
|
|
428
|
+
runExpression(expression: any): (() => void) | undefined;
|
|
427
429
|
refreshRowSource(component: any): () => void;
|
|
428
430
|
addItem(formArray: FormArray): void;
|
|
429
431
|
removeItem(formArray: FormArray, index: number, withConfirm: boolean): void;
|
|
@@ -474,5 +476,5 @@ export declare class DynamicFieldsComponent implements OnInit, OnChanges, AfterV
|
|
|
474
476
|
private markForAutoFocus;
|
|
475
477
|
private requireAutoFocus;
|
|
476
478
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFieldsComponent, never>;
|
|
477
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; "identity": { "alias": "identity"; "required": false; }; "identityIndex": { "alias": "identityIndex"; "required": false; }; }, {}, never, never, true, never>;
|
|
479
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFieldsComponent, "app-dynamic-fields", never, { "form": { "alias": "form"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "recursionLevel": { "alias": "recursionLevel"; "required": false; }; "identity": { "alias": "identity"; "required": false; }; "identityIndex": { "alias": "identityIndex"; "required": false; }; "disableAutoFocus": { "alias": "disableAutoFocus"; "required": false; }; }, {}, never, never, true, never>;
|
|
478
480
|
}
|
|
@@ -431,6 +431,9 @@ export declare class DynamicFormComponent implements OnChanges, OnDestroy, IEval
|
|
|
431
431
|
private isInactive;
|
|
432
432
|
private clearControls;
|
|
433
433
|
private clearFormArrays;
|
|
434
|
+
private getCurrentForm;
|
|
435
|
+
private disableAutoFocus;
|
|
436
|
+
private autoFocus;
|
|
434
437
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
435
438
|
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "schema": { "alias": "schema"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "value": { "alias": "value"; "required": false; }; "strict": { "alias": "strict"; "required": false; }; "showNav": { "alias": "showNav"; "required": false; }; "showNavButton": { "alias": "showNavButton"; "required": false; }; "showProgress": { "alias": "showProgress"; "required": false; }; "showFormTitle": { "alias": "showFormTitle"; "required": false; }; "progressStatus": { "alias": "progressStatus"; "required": false; }; "navSize": { "alias": "navSize"; "required": false; }; "groupMode": { "alias": "groupMode"; "required": false; }; "activeNav": { "alias": "activeNav"; "required": false; }; }, { "valueChange": "valueChange"; "initialized": "initialized"; "activeNavChange": "activeNavChange"; }, never, never, true, never>;
|
|
436
439
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
|
-
import { SirioDialogService, DialogTypes, DialogSizes } from 'ngx-sirio-lib';
|
|
2
|
+
import { SirioDialogService, DialogTypes, DialogSizes, ButtonColors } from 'ngx-sirio-lib';
|
|
3
3
|
import { IEvaluatorProvider } from '../services/programmability.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DialogService implements IEvaluatorProvider {
|
|
@@ -27,6 +27,8 @@ export interface DialogOptions {
|
|
|
27
27
|
isDrawer?: boolean;
|
|
28
28
|
closeButton?: boolean;
|
|
29
29
|
buttons?: DialogButtons;
|
|
30
|
+
customButtons?: CustomButton[];
|
|
31
|
+
keepOpen?: boolean;
|
|
30
32
|
onResult?: (result: DialogResult) => void;
|
|
31
33
|
}
|
|
32
34
|
export interface FormDialogOptions extends DialogOptions {
|
|
@@ -38,8 +40,13 @@ export interface FormDialogOptions extends DialogOptions {
|
|
|
38
40
|
showFormTitle?: boolean;
|
|
39
41
|
}
|
|
40
42
|
export interface DialogResult {
|
|
41
|
-
action: DialogAction;
|
|
43
|
+
action: DialogAction | string;
|
|
42
44
|
value?: any;
|
|
43
45
|
}
|
|
46
|
+
export interface CustomButton {
|
|
47
|
+
text: string;
|
|
48
|
+
color: ButtonColors;
|
|
49
|
+
action: string;
|
|
50
|
+
}
|
|
44
51
|
export type DialogAction = 'OK' | 'Cancel' | 'Yes' | 'No' | 'Confirm' | 'Close' | 'Abort' | 'Retry' | 'Ignore' | 'Try' | 'Continue';
|
|
45
|
-
export type DialogButtons = 'OK' | 'OKCancel' | 'ConfirmCancel' | 'AbortRetryIgnore' | 'YesNoCancel' | 'YesNo' | 'RetryCancel' | 'CancelTryContinue';
|
|
52
|
+
export type DialogButtons = 'OK' | 'OKCancel' | 'ConfirmCancel' | 'AbortRetryIgnore' | 'YesNoCancel' | 'YesNo' | 'RetryCancel' | 'CancelTryContinue' | 'Custom';
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import { GlobalService } from '../services/global.service';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class FeelService {
|
|
3
|
-
|
|
4
|
+
private globalService;
|
|
5
|
+
constructor(globalService: GlobalService);
|
|
6
|
+
private _verbose;
|
|
7
|
+
get verbose(): boolean;
|
|
4
8
|
evalTemplate(template: string, context?: any): string;
|
|
5
9
|
evalExpression(expression: string, context?: Record<string, any>): any;
|
|
6
|
-
evalUnaryTest(expression: string, context?: Record<string, any>, input?: any): boolean;
|
|
10
|
+
evalUnaryTest(expression: string, context?: Record<string, any>, input?: any): boolean | null;
|
|
7
11
|
isValidExpression(expression: string): boolean;
|
|
8
12
|
isValidUnaryTest(expression: string): boolean;
|
|
9
13
|
getDependencies(expression: string, context?: Record<string, any>): (string | string[])[];
|
|
@@ -15,6 +19,7 @@ export declare class FeelService {
|
|
|
15
19
|
private getFunctionName;
|
|
16
20
|
private getStatusDependencies;
|
|
17
21
|
private splitQuoted;
|
|
22
|
+
private logWarnings;
|
|
18
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeelService, never>;
|
|
19
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<FeelService>;
|
|
20
25
|
}
|
|
@@ -18,10 +18,13 @@ export interface PathOptions {
|
|
|
18
18
|
create?: boolean;
|
|
19
19
|
expected?: ControlType;
|
|
20
20
|
breakOnArray?: boolean;
|
|
21
|
+
breakOnNull?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export declare class FormService implements IEvaluatorProvider {
|
|
23
24
|
set(control: AbstractControl, path: Path, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
24
25
|
get(control: AbstractControl, path: Path, pathOptions?: PathOptions): any;
|
|
26
|
+
reset(control: AbstractControl, path: Path): any;
|
|
27
|
+
resetAll(control: AbstractControl, ...paths: string[]): void;
|
|
25
28
|
getControl(control: AbstractControl, path: Path, pathOptions?: PathOptions): AbstractControl | undefined;
|
|
26
29
|
prepend(control: AbstractControl, path: Path, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
27
30
|
append(control: AbstractControl, path: Path, value: any, pathOptions?: PathOptions, patchOptions?: PatchOptions): boolean;
|
|
@@ -12,6 +12,8 @@ export declare class FunctionService implements IEvaluatorProvider {
|
|
|
12
12
|
constructor(metadata: MetadataService, dialog: DialogService, injector: Injector);
|
|
13
13
|
invokable(func: any): Function;
|
|
14
14
|
executeOnce<T>(observable: Observable<T>, callback: any): void;
|
|
15
|
+
asObservable<T>(value: T): Observable<T>;
|
|
16
|
+
setTimeout<T>(callback: any, delay: number): void;
|
|
15
17
|
openForm(template: string | object, options: DialogOptions): void;
|
|
16
18
|
openWindow(url: string, target?: WindowTarget, features?: OpenWindowFeatures): Window | null;
|
|
17
19
|
newGuid(): string;
|
|
@@ -19,7 +19,7 @@ export declare class ProgrammabilityService {
|
|
|
19
19
|
private toastService;
|
|
20
20
|
private dialogService;
|
|
21
21
|
private formatterService;
|
|
22
|
-
private
|
|
22
|
+
private jsonService;
|
|
23
23
|
private functionService;
|
|
24
24
|
private formService;
|
|
25
25
|
private globalService;
|
|
@@ -27,7 +27,7 @@ export declare class ProgrammabilityService {
|
|
|
27
27
|
private destroyRef;
|
|
28
28
|
private register;
|
|
29
29
|
private scope;
|
|
30
|
-
constructor(feelService: FeelService, weakService: WeakService, toastService: ToastService, dialogService: DialogService, formatterService: FormatterService,
|
|
30
|
+
constructor(feelService: FeelService, weakService: WeakService, toastService: ToastService, dialogService: DialogService, formatterService: FormatterService, jsonService: JsonService, functionService: FunctionService, formService: FormService, globalService: GlobalService, subscribeService: SubscribeService, destroyRef: DestroyRef, register: RegisterService, scope: ScopeService);
|
|
31
31
|
private predefinedFunctions;
|
|
32
32
|
private evaluatorProviders;
|
|
33
33
|
addEvaluatorProviders(evaluatorProvider: IEvaluatorProvider): void;
|
|
@@ -42,7 +42,7 @@ export declare class ProgrammabilityService {
|
|
|
42
42
|
invalidate(value: string | null): void;
|
|
43
43
|
invalidateAll(): void;
|
|
44
44
|
watch(formGroup: FormGroup, dependencies: (string | string[])[], callback: () => void): void;
|
|
45
|
-
getDependencies(expression: string): (string | string[])[];
|
|
45
|
+
getDependencies(formGroup: FormGroup, expression: string): (string | string[])[];
|
|
46
46
|
get verbose(): boolean;
|
|
47
47
|
get cacheable(): boolean;
|
|
48
48
|
private _verbose;
|
|
@@ -12,23 +12,26 @@ export declare class ValidationService {
|
|
|
12
12
|
createCollection(): ValidationCollection;
|
|
13
13
|
addToCollection(collection: ValidationCollection, control: AbstractControl, formGroup: FormGroup, component: any): void;
|
|
14
14
|
setupCollection(collection: ValidationCollection): void;
|
|
15
|
-
validateRequired(control: AbstractControl): ValidationErrors | null;
|
|
15
|
+
validateRequired(control: AbstractControl, currentValue: any): ValidationErrors | null;
|
|
16
16
|
private canAddToCollection;
|
|
17
17
|
private getRules;
|
|
18
18
|
private validateRules;
|
|
19
19
|
private createValidator;
|
|
20
20
|
private createAsyncValidator;
|
|
21
|
+
private createRequiredValidator;
|
|
21
22
|
private validationErrors;
|
|
22
23
|
private watchForValidation;
|
|
23
24
|
private logValidation;
|
|
24
25
|
private readonly nullObserver;
|
|
25
26
|
private get language();
|
|
26
27
|
private locale;
|
|
27
|
-
private
|
|
28
|
+
private requiredValidators;
|
|
28
29
|
private requiredValidator;
|
|
29
30
|
private requiredTrueValidator;
|
|
30
31
|
private isTrueValidator;
|
|
31
32
|
private getRequiredMessage;
|
|
33
|
+
private shouldSkipValidation;
|
|
34
|
+
private resolveSkipValidation;
|
|
32
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationService, never>;
|
|
33
36
|
static ɵprov: i0.ɵɵInjectableDeclaration<ValidationService>;
|
|
34
37
|
}
|
|
@@ -3,7 +3,7 @@ export declare class WeakService {
|
|
|
3
3
|
constructor();
|
|
4
4
|
private cache;
|
|
5
5
|
exists(source: object, key: string): boolean;
|
|
6
|
-
call<T>(source: object, key: string, func: () => T, reusable?: ((value: T) => boolean) | null, store?: ((value: T) => any) | null): T;
|
|
6
|
+
call<T>(source: object, key: string, func: () => T, reusable?: ((value: T) => boolean) | null, store?: ((value: T) => any) | null, cacheable?: ((value: T) => boolean) | null): T;
|
|
7
7
|
invalidate(source: object, key: string): void;
|
|
8
8
|
invalidateAll(source: object): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<WeakService, never>;
|
package/lib/utils/deepEqual.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
export declare function subscribeOnce<T>(source$: Observable<T>, next: (value: T) => void): void;
|
|
2
|
+
export declare function subscribeOnce<T>(source$: Observable<T>, next: (value: T) => void, error?: (err: any) => void, complete?: () => void): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wemake4u/form-player-se",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.46",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "^18.2.0",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@types/mime-db": "1.43.5",
|
|
24
24
|
"@types/sanitize-html": "2.13.0",
|
|
25
25
|
"@types/vanillajs-datepicker": "^1.3.4",
|
|
26
|
-
"feelers": "^1.
|
|
27
|
-
"feelin": "
|
|
26
|
+
"feelers": "^1.5.1",
|
|
27
|
+
"feelin": "6.2.0",
|
|
28
28
|
"marked": "15.0.7",
|
|
29
29
|
"mime-db": "1.53.0",
|
|
30
30
|
"sanitize-html": "^2.13.0",
|
package/public-api.d.ts
CHANGED
|
@@ -18,3 +18,35 @@ export * from './lib/interact/confirmation';
|
|
|
18
18
|
export * from './lib/interact/notification';
|
|
19
19
|
export * from './lib/interact/prompt';
|
|
20
20
|
export * from './lib/builtIn/builtIn';
|
|
21
|
+
export * from './lib/controls/control';
|
|
22
|
+
export * from './lib/controls/form';
|
|
23
|
+
export * from './lib/controls/textfield';
|
|
24
|
+
export * from './lib/controls/select';
|
|
25
|
+
export * from './lib/controls/taglist';
|
|
26
|
+
export * from './lib/controls/number';
|
|
27
|
+
export * from './lib/controls/date';
|
|
28
|
+
export * from './lib/controls/time';
|
|
29
|
+
export * from './lib/controls/datetime';
|
|
30
|
+
export * from './lib/controls/toggle';
|
|
31
|
+
export * from './lib/controls/checkbox';
|
|
32
|
+
export * from './lib/controls/chipradio';
|
|
33
|
+
export * from './lib/controls/radio';
|
|
34
|
+
export * from './lib/controls/chipchecklist';
|
|
35
|
+
export * from './lib/controls/checklist';
|
|
36
|
+
export * from './lib/controls/textarea';
|
|
37
|
+
export * from './lib/controls/filepicker';
|
|
38
|
+
export * from './lib/controls/text';
|
|
39
|
+
export * from './lib/controls/html';
|
|
40
|
+
export * from './lib/controls/image';
|
|
41
|
+
export * from './lib/controls/tab';
|
|
42
|
+
export * from './lib/controls/chart';
|
|
43
|
+
export * from './lib/controls/accordion';
|
|
44
|
+
export * from './lib/controls/dynamiclist';
|
|
45
|
+
export * from './lib/controls/group';
|
|
46
|
+
export * from './lib/controls/table';
|
|
47
|
+
export * from './lib/controls/button';
|
|
48
|
+
export * from './lib/controls/separator';
|
|
49
|
+
export * from './lib/controls/spacer';
|
|
50
|
+
export * from './lib/controls/iframe';
|
|
51
|
+
export * from './lib/controls/tooltip';
|
|
52
|
+
export * from './lib/controls/displayfield';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export function patchFunction(instance, methodName, wrapper) {
|
|
2
|
-
const FLAG = `__patched_${String(methodName)}__`;
|
|
3
|
-
const anyInstance = instance;
|
|
4
|
-
// avoid re-patch
|
|
5
|
-
if (anyInstance[FLAG]) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
const original = instance[methodName];
|
|
9
|
-
if (typeof original !== 'function') {
|
|
10
|
-
throw new Error(`Property '${String(methodName)}' is not a function`);
|
|
11
|
-
}
|
|
12
|
-
instance[methodName] = function (...args) {
|
|
13
|
-
return wrapper.call(this, args, (...innerArgs) => original.apply(this, innerArgs));
|
|
14
|
-
};
|
|
15
|
-
anyInstance[FLAG] = true;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0Y2guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2lyaW8vc3JjL2xpYi91dGlscy9wYXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLFVBQVUsYUFBYSxDQUkzQixRQUFXLEVBQ1gsVUFBYSxFQUNiLE9BSVE7SUFFUixNQUFNLElBQUksR0FBRyxhQUFhLE1BQU0sQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDO0lBQ2pELE1BQU0sV0FBVyxHQUFHLFFBQWUsQ0FBQztJQUVwQyxpQkFBaUI7SUFDakIsSUFBSSxXQUFXLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztRQUN0QixPQUFPO0lBQ1QsQ0FBQztJQUVELE1BQU0sUUFBUSxHQUFHLFFBQVEsQ0FBQyxVQUFVLENBQUMsQ0FBQztJQUV0QyxJQUFJLE9BQU8sUUFBUSxLQUFLLFVBQVUsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQ2IsYUFBYSxNQUFNLENBQUMsVUFBVSxDQUFDLHFCQUFxQixDQUNyRCxDQUFDO0lBQ0osQ0FBQztJQUVELFFBQVEsQ0FBQyxVQUFVLENBQUMsR0FBRyxVQUFtQixHQUFHLElBQVc7UUFDdEQsT0FBTyxPQUFPLENBQUMsSUFBSSxDQUNqQixJQUFJLEVBQ0osSUFBSSxFQUNKLENBQUMsR0FBRyxTQUFnQixFQUFFLEVBQUUsQ0FDckIsUUFBcUIsQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLFNBQVMsQ0FBQyxDQUNoRCxDQUFDO0lBQ0osQ0FBUyxDQUFDO0lBRVYsV0FBVyxDQUFDLElBQUksQ0FBQyxHQUFHLElBQUksQ0FBQztBQUMzQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGZ1bmN0aW9uIHBhdGNoRnVuY3Rpb248XHJcbiAgVCBleHRlbmRzIG9iamVjdCxcclxuICBLIGV4dGVuZHMga2V5b2YgVFxyXG4+KFxyXG4gIGluc3RhbmNlOiBULFxyXG4gIG1ldGhvZE5hbWU6IEssXHJcbiAgd3JhcHBlcjogKFxyXG4gICAgdGhpczogVCxcclxuICAgIGFyZ3M6IGFueVtdLFxyXG4gICAgb3JpZ2luYWw6ICguLi5hcmdzOiBhbnlbXSkgPT4gYW55XHJcbiAgKSA9PiBhbnlcclxuKTogdm9pZCB7XHJcbiAgY29uc3QgRkxBRyA9IGBfX3BhdGNoZWRfJHtTdHJpbmcobWV0aG9kTmFtZSl9X19gO1xyXG4gIGNvbnN0IGFueUluc3RhbmNlID0gaW5zdGFuY2UgYXMgYW55O1xyXG5cclxuICAvLyBhdm9pZCByZS1wYXRjaFxyXG4gIGlmIChhbnlJbnN0YW5jZVtGTEFHXSkge1xyXG4gICAgcmV0dXJuO1xyXG4gIH1cclxuXHJcbiAgY29uc3Qgb3JpZ2luYWwgPSBpbnN0YW5jZVttZXRob2ROYW1lXTtcclxuXHJcbiAgaWYgKHR5cGVvZiBvcmlnaW5hbCAhPT0gJ2Z1bmN0aW9uJykge1xyXG4gICAgdGhyb3cgbmV3IEVycm9yKFxyXG4gICAgICBgUHJvcGVydHkgJyR7U3RyaW5nKG1ldGhvZE5hbWUpfScgaXMgbm90IGEgZnVuY3Rpb25gXHJcbiAgICApO1xyXG4gIH1cclxuXHJcbiAgaW5zdGFuY2VbbWV0aG9kTmFtZV0gPSBmdW5jdGlvbiAodGhpczogVCwgLi4uYXJnczogYW55W10pIHtcclxuICAgIHJldHVybiB3cmFwcGVyLmNhbGwoXHJcbiAgICAgIHRoaXMsXHJcbiAgICAgIGFyZ3MsXHJcbiAgICAgICguLi5pbm5lckFyZ3M6IGFueVtdKSA9PlxyXG4gICAgICAgIChvcmlnaW5hbCBhcyBGdW5jdGlvbikuYXBwbHkodGhpcywgaW5uZXJBcmdzKVxyXG4gICAgKTtcclxuICB9IGFzIFRbS107XHJcblxyXG4gIGFueUluc3RhbmNlW0ZMQUddID0gdHJ1ZTtcclxufVxyXG4iXX0=
|
package/lib/utils/patch.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function patchFunction<T extends object, K extends keyof T>(instance: T, methodName: K, wrapper: (this: T, args: any[], original: (...args: any[]) => any) => any): void;
|