@firestitch/form 13.1.2 → 13.3.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/app/components/confirm-unsaved/confirm-unsaved.component.d.ts +21 -0
- package/app/components/confirm-unsaved/index.d.ts +1 -0
- package/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +1 -1
- package/app/components/index.d.ts +1 -0
- package/app/consts/error-messages.const.d.ts +2 -0
- package/app/directives/button.directive.d.ts +2 -2
- package/app/directives/form/form.directive.d.ts +5 -7
- package/app/directives/form-dialog-close.directive.d.ts +2 -2
- package/app/directives/index.d.ts +2 -2
- package/app/directives/validators/compare.directive.d.ts +2 -2
- package/app/directives/validators/control.directive.d.ts +12 -12
- package/app/directives/validators/function.directive.d.ts +1 -1
- package/app/directives/validators/greater-equal.directive.d.ts +13 -0
- package/app/directives/validators/index.d.ts +2 -0
- package/app/directives/validators/integer.directive.d.ts +1 -1
- package/app/directives/validators/lesser-equal.directive.d.ts +13 -0
- package/app/directives/validators/no-fs-validators.directive.d.ts +1 -1
- package/app/directives/validators/required.directive.d.ts +1 -1
- package/app/enums/index.d.ts +2 -0
- package/app/fs-form.module.d.ts +20 -16
- package/app/guards/form-deactivate.guard.d.ts +2 -4
- package/app/helpers/index.d.ts +0 -1
- package/app/providers/validate-messages.provider.d.ts +2 -0
- package/app/services/fsform.service.d.ts +5 -1
- package/esm2020/app/components/confirm-unsaved/confirm-unsaved.component.mjs +44 -0
- package/esm2020/app/components/confirm-unsaved/index.mjs +2 -0
- package/esm2020/app/components/form-dialog-actions/form-dialog-actions.component.mjs +3 -3
- package/esm2020/app/components/form-dialog-actions/index.mjs +1 -1
- package/esm2020/app/components/index.mjs +2 -1
- package/esm2020/app/consts/error-messages.const.mjs +3 -1
- package/esm2020/app/directives/button.directive.mjs +6 -6
- package/esm2020/app/directives/form/form.directive.mjs +28 -32
- package/esm2020/app/directives/form/index.mjs +1 -1
- package/esm2020/app/directives/form-dialog-close.directive.mjs +6 -6
- package/esm2020/app/directives/index.mjs +3 -3
- package/esm2020/app/directives/validators/compare.directive.mjs +4 -6
- package/esm2020/app/directives/validators/control.directive.mjs +20 -21
- package/esm2020/app/directives/validators/function.directive.mjs +5 -5
- package/esm2020/app/directives/validators/greater-equal.directive.mjs +40 -0
- package/esm2020/app/directives/validators/index.mjs +3 -1
- package/esm2020/app/directives/validators/integer.directive.mjs +7 -9
- package/esm2020/app/directives/validators/lesser-equal.directive.mjs +40 -0
- package/esm2020/app/directives/validators/no-fs-validators.directive.mjs +3 -2
- package/esm2020/app/directives/validators/required.directive.mjs +6 -8
- package/esm2020/app/enums/index.mjs +3 -0
- package/esm2020/app/fs-form.module.mjs +40 -23
- package/esm2020/app/guards/form-deactivate.guard.mjs +13 -16
- package/esm2020/app/helpers/get-form-errors.mjs +1 -1
- package/esm2020/app/helpers/index.mjs +1 -2
- package/esm2020/app/services/fsform.service.mjs +59 -7
- package/esm2020/public_api.mjs +16 -17
- package/fesm2015/firestitch-form.mjs +979 -878
- package/fesm2015/firestitch-form.mjs.map +1 -1
- package/fesm2020/firestitch-form.mjs +965 -866
- package/fesm2020/firestitch-form.mjs.map +1 -1
- package/package.json +1 -5
- package/public_api.d.ts +16 -17
- package/app/helpers/confirm-unsaved.d.ts +0 -5
- package/esm2020/app/helpers/confirm-unsaved.mjs +0 -72
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ConfirmUnsavedComponent implements OnInit, OnDestroy {
|
|
5
|
+
private _data;
|
|
6
|
+
private _dialogRef;
|
|
7
|
+
saveLabel: any;
|
|
8
|
+
discardLabel: any;
|
|
9
|
+
cancelLabel: any;
|
|
10
|
+
message: any;
|
|
11
|
+
title: any;
|
|
12
|
+
private _destroy$;
|
|
13
|
+
constructor(_data: any, _dialogRef: MatDialogRef<ConfirmUnsavedComponent>);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
save(): void;
|
|
16
|
+
discard(): void;
|
|
17
|
+
cancel(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmUnsavedComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmUnsavedComponent, "ng-component", never, {}, {}, never, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './confirm-unsaved.component';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { FsFormDirective } from '../../directives/form/form.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatButton } from '@angular/material/button';
|
|
3
3
|
import { FsFormDirective } from './form/form.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -31,5 +31,5 @@ export declare class FsButtonDirective implements OnInit, OnDestroy {
|
|
|
31
31
|
private _resetClass;
|
|
32
32
|
private _getSvg;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsButtonDirective, [{ optional: true; host: true; }, { optional: true; }, null, null]>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsButtonDirective, "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", never, { "name": "name"; "dirtySubmit": "dirtySubmit"; "form": "form"; }, {}, never>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsButtonDirective, "[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", never, { "name": "name"; "dirtySubmit": "dirtySubmit"; "form": "form"; }, {}, never>;
|
|
35
35
|
}
|
|
@@ -5,7 +5,6 @@ import { MatDialogRef } from '@angular/material/dialog';
|
|
|
5
5
|
import { MatTabGroup } from '@angular/material/tabs';
|
|
6
6
|
import { DrawerRef } from '@firestitch/drawer';
|
|
7
7
|
import { FsMessage } from '@firestitch/message';
|
|
8
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
9
8
|
import { Observable } from 'rxjs';
|
|
10
9
|
import { FsForm } from '../../services/fsform.service';
|
|
11
10
|
import { FsButtonDirective } from '../button.directive';
|
|
@@ -18,7 +17,6 @@ export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentI
|
|
|
18
17
|
private _form;
|
|
19
18
|
private _element;
|
|
20
19
|
private _message;
|
|
21
|
-
private _prompt;
|
|
22
20
|
private _ngZone;
|
|
23
21
|
private _cdRef;
|
|
24
22
|
private _dialogRef;
|
|
@@ -60,7 +58,7 @@ export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentI
|
|
|
60
58
|
private _destroy$;
|
|
61
59
|
private _confirmed;
|
|
62
60
|
private _submit$;
|
|
63
|
-
constructor(ngForm: NgForm, _form: FsForm, _element: ElementRef, _message: FsMessage,
|
|
61
|
+
constructor(ngForm: NgForm, _form: FsForm, _element: ElementRef, _message: FsMessage, _ngZone: NgZone, _cdRef: ChangeDetectorRef, _dialogRef: MatDialogRef<any>, _drawerRef: DrawerRef<any>, _route: ActivatedRoute);
|
|
64
62
|
get submitting(): boolean;
|
|
65
63
|
get validating(): boolean;
|
|
66
64
|
get completing(): boolean;
|
|
@@ -89,8 +87,8 @@ export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentI
|
|
|
89
87
|
disable(): void;
|
|
90
88
|
addButton(button: FsButtonDirective): void;
|
|
91
89
|
removeButton(button: FsButtonDirective): void;
|
|
92
|
-
private _listenSubmit;
|
|
93
90
|
validate(): void;
|
|
91
|
+
private _listenSubmit;
|
|
94
92
|
private _listenFormStatus;
|
|
95
93
|
private _listenWindowClose;
|
|
96
94
|
private _listenHotKeys;
|
|
@@ -104,8 +102,8 @@ export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentI
|
|
|
104
102
|
private _registerDrawerClose;
|
|
105
103
|
private _registerConfirmDrawerClose;
|
|
106
104
|
private _registerConfirmTabs;
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
private _registerConfirmTabGroups;
|
|
106
|
+
private _registerConfirmTabGroup;
|
|
109
107
|
private _registerConfirmDialogBackdropEscape;
|
|
110
108
|
private _registerAutocomplete;
|
|
111
109
|
private _registerDirtySubmitButton;
|
|
@@ -118,6 +116,6 @@ export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentI
|
|
|
118
116
|
private _handleError;
|
|
119
117
|
private _registerCanDeactivateGuard;
|
|
120
118
|
private _cleanupCanDeactivate;
|
|
121
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDirective, [null, null, null, null, null, null,
|
|
119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDirective, [null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
122
120
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDirective, "[fsForm]", ["fsForm"], { "wrapperSelector": "wrapperSelector"; "messageSelector": "messageSelector"; "hintSelector": "hintSelector"; "labelSelector": "labelSelector"; "autocomplete": "autocomplete"; "shortcuts": "shortcuts"; "confirm": "confirm"; "confirmDialog": "confirmDialog"; "confirmDrawer": "confirmDrawer"; "confirmBrowser": "confirmBrowser"; "confirmTabs": "confirmTabs"; "dirtySubmitButton": "dirtySubmitButton"; "submit": "submit"; "successDelay": "successDelay"; "errorDelay": "errorDelay"; "tabGroup": "tabGroup"; "deactivationGuard": "deactivationGuard"; }, { "submitEvent": "fsForm"; "invalid": "invalid"; "valid": "valid"; "submitted": "submitted"; "reseted": "reseted"; "cleared": "cleared"; }, ["_tabGroups"]>;
|
|
123
121
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { FsFormDirective } from './form';
|
|
3
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FsFormDirective } from './form';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FsFormDialogCloseDirective implements OnDestroy {
|
|
6
6
|
private _form;
|
|
7
7
|
private _dialogRef;
|
|
8
8
|
closeData: any;
|
|
9
|
+
type: string;
|
|
9
10
|
private _destroy$;
|
|
10
11
|
constructor(_form: FsFormDirective, _dialogRef: MatDialogRef<any>);
|
|
11
|
-
type: string;
|
|
12
12
|
closeClick(): void;
|
|
13
13
|
ngOnDestroy(): void;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogCloseDirective, [{ optional: true; }, { optional: true; }]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './form';
|
|
2
|
-
export * from './validators';
|
|
3
1
|
export * from './button.directive';
|
|
2
|
+
export * from './form';
|
|
4
3
|
export * from './form-dialog-close.directive';
|
|
5
4
|
export * from './form-template.directive';
|
|
6
5
|
export * from './submit-button.directive';
|
|
6
|
+
export * from './validators';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { FsControlDirective } from './control.directive';
|
|
1
|
+
import { AfterViewInit, OnChanges, OnDestroy } from '@angular/core';
|
|
3
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
3
|
import { FsValidator } from '../../interfaces/validator';
|
|
4
|
+
import { FsControlDirective } from './control.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FsFormCompareDirective extends FsControlDirective implements OnChanges, AfterViewInit, OnDestroy, FsValidator {
|
|
7
7
|
fsFormCompare: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Observable
|
|
1
|
+
import { AfterContentInit, ElementRef, Injector, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { AbstractControl, NgControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
4
|
import { FsFormDirective } from '../form/form.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export interface FsControlDirective {
|
|
@@ -8,7 +8,7 @@ export interface FsControlDirective {
|
|
|
8
8
|
validateAsync?(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
9
9
|
}
|
|
10
10
|
export declare class FsControlDirective implements OnInit, AfterContentInit, OnDestroy {
|
|
11
|
-
protected
|
|
11
|
+
protected _elementRef: ElementRef;
|
|
12
12
|
protected renderer2: Renderer2;
|
|
13
13
|
protected injector: Injector;
|
|
14
14
|
protected _validateMessages: any;
|
|
@@ -24,19 +24,19 @@ export declare class FsControlDirective implements OnInit, AfterContentInit, OnD
|
|
|
24
24
|
appendHintClass: string;
|
|
25
25
|
set validateMessages(messages: Record<string, string>);
|
|
26
26
|
errors: any[];
|
|
27
|
-
protected _destroy$: Subject<unknown>;
|
|
28
27
|
protected _control: AbstractControl;
|
|
29
|
-
|
|
28
|
+
private _destroy$;
|
|
29
|
+
constructor(_elementRef: ElementRef, renderer2: Renderer2, injector: Injector, _validateMessages: any, ngControl: NgControl, formDirective: FsFormDirective);
|
|
30
30
|
ngOnInit(): void;
|
|
31
31
|
ngOnDestroy(): void;
|
|
32
32
|
ngAfterContentInit(): void;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
protected getWrapperElement(): any;
|
|
33
|
+
getMessageSelector(): string;
|
|
34
|
+
getHintWrapperSelector(): string;
|
|
35
|
+
getWrapperSelector(): string;
|
|
36
|
+
getlabelSelector(): string;
|
|
37
|
+
getWrapperElement(): any;
|
|
39
38
|
protected render(): void;
|
|
39
|
+
protected _subscribeToStatusChagnes(): void;
|
|
40
40
|
protected getWrapper(node: any, count?: number): any;
|
|
41
41
|
protected parseErrorMessage(message: any, args: any): string;
|
|
42
42
|
protected getError(controlRef: any): {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { FsControlDirective } from './control.directive';
|
|
5
4
|
import { FsAsyncValidator } from '../../interfaces/async-validator';
|
|
5
|
+
import { FsControlDirective } from './control.directive';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class FsFormFunctionDirective extends FsControlDirective implements OnChanges, FsAsyncValidator {
|
|
8
8
|
fsFormFunction: any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormGreaterEqualDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormGreaterEqual: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormGreaterEqualDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormGreaterEqualDirective, "[fsFormGreaterEqual]", never, { "fsFormGreaterEqual": "fsFormGreaterEqual"; "validationMessage": "fsFormGreaterEqualMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -4,8 +4,10 @@ export * from './daterange.directive';
|
|
|
4
4
|
export * from './email.directive';
|
|
5
5
|
export * from './emails.directive';
|
|
6
6
|
export * from './function.directive';
|
|
7
|
+
export * from './greater-equal.directive';
|
|
7
8
|
export * from './greater.directive';
|
|
8
9
|
export * from './integer.directive';
|
|
10
|
+
export * from './lesser-equal.directive';
|
|
9
11
|
export * from './lesser.directive';
|
|
10
12
|
export * from './max.directive';
|
|
11
13
|
export * from './maxlength.directive';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
3
|
import { FsValidator } from '../../interfaces/validator';
|
|
4
|
+
import { FsControlDirective } from './control.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FsFormIntegerDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
7
|
fsFormInteger: any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormLesserEqualDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormLesserEqual: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormLesserEqualDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormLesserEqualDirective, "[fsFormLesserEqual]", never, { "fsFormLesserEqual": "fsFormLesserEqual"; "validationMessage": "fsFormLesserEqualMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -10,5 +10,5 @@ export declare class FsFormNoFsValidatorsDirective extends FsControlDirective im
|
|
|
10
10
|
ngOnChanges(): void;
|
|
11
11
|
protected _subscribeToStatusChagnes(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormNoFsValidatorsDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormNoFsValidatorsDirective, "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])", never, {}, {}, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormNoFsValidatorsDirective, "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormGreaterEqual]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])", never, {}, {}, never>;
|
|
14
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
3
|
import { FsValidator } from '../../interfaces/validator';
|
|
4
|
+
import { FsControlDirective } from './control.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FsFormRequiredDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
7
|
required: boolean;
|
package/app/fs-form.module.d.ts
CHANGED
|
@@ -17,24 +17,28 @@ import * as i14 from "./directives/validators/pattern.directive";
|
|
|
17
17
|
import * as i15 from "./directives/validators/function.directive";
|
|
18
18
|
import * as i16 from "./directives/validators/daterange.directive";
|
|
19
19
|
import * as i17 from "./directives/validators/greater.directive";
|
|
20
|
-
import * as i18 from "./directives/validators/
|
|
21
|
-
import * as i19 from "./directives/validators/
|
|
22
|
-
import * as i20 from "./directives/
|
|
23
|
-
import * as i21 from "./directives/validators/
|
|
24
|
-
import * as i22 from "./
|
|
25
|
-
import * as i23 from "./directives/validators/
|
|
26
|
-
import * as i24 from "./
|
|
27
|
-
import * as i25 from "./directives/
|
|
28
|
-
import * as i26 from "./
|
|
29
|
-
import * as i27 from "./directives/
|
|
30
|
-
import * as i28 from "./components/form-template
|
|
31
|
-
import * as i29 from "
|
|
32
|
-
import * as i30 from "
|
|
33
|
-
import * as i31 from "
|
|
34
|
-
import * as i32 from "@angular/
|
|
20
|
+
import * as i18 from "./directives/validators/greater-equal.directive";
|
|
21
|
+
import * as i19 from "./directives/validators/lesser.directive";
|
|
22
|
+
import * as i20 from "./directives/validators/lesser-equal.directive";
|
|
23
|
+
import * as i21 from "./directives/validators/url.directive";
|
|
24
|
+
import * as i22 from "./directives/form-dialog-close.directive";
|
|
25
|
+
import * as i23 from "./directives/validators/validate.directive";
|
|
26
|
+
import * as i24 from "./components/form-dialog-actions/form-dialog-actions.component";
|
|
27
|
+
import * as i25 from "./directives/validators/no-fs-validators.directive";
|
|
28
|
+
import * as i26 from "./directives/button.directive";
|
|
29
|
+
import * as i27 from "./directives/submit-button.directive";
|
|
30
|
+
import * as i28 from "./components/form-template/form-template.component";
|
|
31
|
+
import * as i29 from "./directives/form-template.directive";
|
|
32
|
+
import * as i30 from "./components/form-template-outlet/form-template-outlet.component";
|
|
33
|
+
import * as i31 from "./components/confirm-unsaved/confirm-unsaved.component";
|
|
34
|
+
import * as i32 from "@angular/common";
|
|
35
|
+
import * as i33 from "@angular/forms";
|
|
36
|
+
import * as i34 from "@angular/material/button";
|
|
37
|
+
import * as i35 from "@angular/material/dialog";
|
|
38
|
+
import * as i36 from "@firestitch/dialog";
|
|
35
39
|
export declare class FsFormModule {
|
|
36
40
|
static forRoot(): ModuleWithProviders<FsFormModule>;
|
|
37
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsFormModule, [typeof i1.FsFormDirective, typeof i2.FsControlDirective, typeof i3.FsFormRequiredDirective, typeof i4.FsFormMinDirective, typeof i5.FsFormMaxDirective, typeof i6.FsFormMinLengthDirective, typeof i7.FsFormMaxLengthDirective, typeof i8.FsFormEmailDirective, typeof i9.FsFormEmailsDirective, typeof i10.FsFormPhoneDirective, typeof i11.FsFormCompareDirective, typeof i12.FsFormIntegerDirective, typeof i13.FsFormNumericDirective, typeof i14.FsFormPatternDirective, typeof i15.FsFormFunctionDirective, typeof i16.FsFormDateRangeDirective, typeof i17.FsFormGreaterDirective, typeof i18.
|
|
42
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsFormModule, [typeof i1.FsFormDirective, typeof i2.FsControlDirective, typeof i3.FsFormRequiredDirective, typeof i4.FsFormMinDirective, typeof i5.FsFormMaxDirective, typeof i6.FsFormMinLengthDirective, typeof i7.FsFormMaxLengthDirective, typeof i8.FsFormEmailDirective, typeof i9.FsFormEmailsDirective, typeof i10.FsFormPhoneDirective, typeof i11.FsFormCompareDirective, typeof i12.FsFormIntegerDirective, typeof i13.FsFormNumericDirective, typeof i14.FsFormPatternDirective, typeof i15.FsFormFunctionDirective, typeof i16.FsFormDateRangeDirective, typeof i17.FsFormGreaterDirective, typeof i18.FsFormGreaterEqualDirective, typeof i19.FsFormLesserDirective, typeof i20.FsFormLesserEqualDirective, typeof i21.FsFormUrlDirective, typeof i22.FsFormDialogCloseDirective, typeof i23.FsFormValidateDirective, typeof i24.FsFormDialogActionsComponent, typeof i25.FsFormNoFsValidatorsDirective, typeof i26.FsButtonDirective, typeof i27.FsSubmitButtonDirective, typeof i28.FsFormTemplateComponent, typeof i29.FsFormTemplateDirective, typeof i30.FsFormTemplateOutletComponent, typeof i31.ConfirmUnsavedComponent], [typeof i32.CommonModule, typeof i33.FormsModule, typeof i34.MatButtonModule, typeof i35.MatDialogModule, typeof i35.MatDialogModule, typeof i36.FsDialogModule], [typeof i1.FsFormDirective, typeof i2.FsControlDirective, typeof i3.FsFormRequiredDirective, typeof i4.FsFormMinDirective, typeof i5.FsFormMaxDirective, typeof i6.FsFormMinLengthDirective, typeof i7.FsFormMaxLengthDirective, typeof i8.FsFormEmailDirective, typeof i9.FsFormEmailsDirective, typeof i10.FsFormPhoneDirective, typeof i11.FsFormCompareDirective, typeof i12.FsFormIntegerDirective, typeof i13.FsFormNumericDirective, typeof i14.FsFormPatternDirective, typeof i15.FsFormFunctionDirective, typeof i16.FsFormDateRangeDirective, typeof i17.FsFormGreaterDirective, typeof i18.FsFormGreaterEqualDirective, typeof i19.FsFormLesserDirective, typeof i20.FsFormLesserEqualDirective, typeof i21.FsFormUrlDirective, typeof i22.FsFormDialogCloseDirective, typeof i23.FsFormValidateDirective, typeof i24.FsFormDialogActionsComponent, typeof i25.FsFormNoFsValidatorsDirective, typeof i26.FsButtonDirective, typeof i27.FsSubmitButtonDirective, typeof i28.FsFormTemplateComponent, typeof i29.FsFormTemplateDirective, typeof i30.FsFormTemplateOutletComponent]>;
|
|
39
43
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsFormModule>;
|
|
40
44
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { ActivatedRoute, CanDeactivate } from '@angular/router';
|
|
2
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { FsForm } from '../services/fsform.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class FormDeactivateGuard implements CanDeactivate<any> {
|
|
7
|
-
private
|
|
8
|
-
private _fsForm;
|
|
6
|
+
private _form;
|
|
9
7
|
private _route;
|
|
10
|
-
constructor(
|
|
8
|
+
constructor(_form: FsForm, _route: ActivatedRoute);
|
|
11
9
|
canDeactivate(): Observable<boolean>;
|
|
12
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormDeactivateGuard, never>;
|
|
13
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<FormDeactivateGuard>;
|
package/app/helpers/index.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
3
|
import { Observable } from 'rxjs';
|
|
3
4
|
import { FsFormDirective } from '../directives/form/form.directive';
|
|
5
|
+
import { ConfirmResult } from '../enums';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class FsForm {
|
|
8
|
+
private _dialog;
|
|
6
9
|
private _formDirectiveStore;
|
|
7
10
|
private _eventBus;
|
|
8
|
-
constructor();
|
|
11
|
+
constructor(_dialog: MatDialog);
|
|
9
12
|
broadcast(key: any, data?: any): void;
|
|
10
13
|
on<T>(key: any): Observable<T>;
|
|
11
14
|
registerFormDirective(routeComponent: Type<any>, directive: FsFormDirective): void;
|
|
12
15
|
getFormDirectives(routeComponent: any): FsFormDirective[];
|
|
13
16
|
removeFormDirective(routeComponent: any): void;
|
|
17
|
+
confirmUnsaved(directives: FsFormDirective[]): Observable<ConfirmResult>;
|
|
14
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsForm, never>;
|
|
15
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<FsForm>;
|
|
16
20
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
|
2
|
+
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/material/dialog";
|
|
6
|
+
import * as i2 from "@firestitch/dialog";
|
|
7
|
+
import * as i3 from "@angular/material/button";
|
|
8
|
+
export class ConfirmUnsavedComponent {
|
|
9
|
+
constructor(_data, _dialogRef) {
|
|
10
|
+
this._data = _data;
|
|
11
|
+
this._dialogRef = _dialogRef;
|
|
12
|
+
this._destroy$ = new Subject();
|
|
13
|
+
}
|
|
14
|
+
ngOnInit() {
|
|
15
|
+
this.saveLabel = this._data.saveLabel;
|
|
16
|
+
this.discardLabel = this._data.discardLabel;
|
|
17
|
+
this.cancelLabel = this._data.cancelLabel;
|
|
18
|
+
this.message = this._data.message;
|
|
19
|
+
this.title = this._data.title;
|
|
20
|
+
}
|
|
21
|
+
save() {
|
|
22
|
+
this._dialogRef.close('save');
|
|
23
|
+
}
|
|
24
|
+
discard() {
|
|
25
|
+
this._dialogRef.close('discard');
|
|
26
|
+
}
|
|
27
|
+
cancel() {
|
|
28
|
+
this._dialogRef.close(null);
|
|
29
|
+
}
|
|
30
|
+
ngOnDestroy() {
|
|
31
|
+
this._destroy$.next();
|
|
32
|
+
this._destroy$.complete();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
ConfirmUnsavedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ConfirmUnsavedComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
+
ConfirmUnsavedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: ConfirmUnsavedComponent, selector: "ng-component", ngImport: i0, template: "<fs-dialog>\n <h1 mat-dialog-title>{{title}}</h1>\n <mat-dialog-content>\n {{message}}\n </mat-dialog-content> \n <mat-dialog-actions>\n <button\n type=\"button\"\n color=\"primary\"\n (click)=\"save()\"\n fsFormButtonStandalone\n mat-button>\n {{saveLabel}}\n </button>\n <button\n type=\"button\"\n (click)=\"discard()\"\n fsFormButtonStandalone\n mat-button>\n {{discardLabel}}\n </button> \n <button\n type=\"button\"\n (click)=\"cancel()\"\n fsFormButtonStandalone\n mat-button>\n {{cancelLabel}}\n </button> \n </mat-dialog-actions>\n</fs-dialog>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"], components: [{ type: i2.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode", "mobileButtonPlacement", "mobileWidth", "mode", "buttonLayout"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: ConfirmUnsavedComponent, decorators: [{
|
|
38
|
+
type: Component,
|
|
39
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<fs-dialog>\n <h1 mat-dialog-title>{{title}}</h1>\n <mat-dialog-content>\n {{message}}\n </mat-dialog-content> \n <mat-dialog-actions>\n <button\n type=\"button\"\n color=\"primary\"\n (click)=\"save()\"\n fsFormButtonStandalone\n mat-button>\n {{saveLabel}}\n </button>\n <button\n type=\"button\"\n (click)=\"discard()\"\n fsFormButtonStandalone\n mat-button>\n {{discardLabel}}\n </button> \n <button\n type=\"button\"\n (click)=\"cancel()\"\n fsFormButtonStandalone\n mat-button>\n {{cancelLabel}}\n </button> \n </mat-dialog-actions>\n</fs-dialog>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"] }]
|
|
40
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
41
|
+
type: Inject,
|
|
42
|
+
args: [MA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iZGlzY2FyZCgpXCJcbiAgICAgICAgZnNGb3JtQnV0dG9uU3RhbmRhbG9uZVxuICAgICAgICBtYXQtYnV0dG9uPlxuICAgICAge3tkaXNjYXJkTGFiZWx9fVxuICAgIDwvYnV0dG9uPiAgXG4gICAgPGJ1dHRvblxuICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgKGNsaWNrKT1cImNhbmNlbCgpXCJcbiAgICAgICAgZnNGb3JtQnV0dG9uU3RhbmRhbG9uZVxuICAgICAgICBtYXQtYnV0dG9uPlxuICAgICAge3tjYW5jZWxMYWJlbH19XG4gICAgPC9idXR0b24+ICAgIFxuICA8L21hdC1kaWFsb2ctYWN0aW9ucz5cbjwvZnMtZGlhbG9nPlxuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './confirm-unsaved.component';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvY29uZmlybS11bnNhdmVkL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2NvbmZpcm0tdW5zYXZlZC5jb21wb25lbnQnO1xyXG5cclxuIl19
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, Optional } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { delay, filter, takeUntil } from 'rxjs/operators';
|
|
@@ -51,7 +51,7 @@ export class FsFormDialogActionsComponent {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
FsFormDialogActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormDialogActionsComponent, deps: [{ token: i1.FsFormDirective, optional: true }, { token: i2.MatDialogRef, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
54
|
-
FsFormDialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: { save: "save", create: "create", close: "close", done: "done", closeData: "closeData", name: "name" }, ngImport: i0, template: "<div class=\"form-buttons\" [ngClass]=\"{ 'save-create': save || create }\">\n <ng-container *ngIf=\"save || create\">\n <button\n mat-button\n type=\"submit\"\n color=\"primary\"\n [name]=\"name\">\n {{create ? 'Create' : 'Save'}}\n </button>\n <button\n mat-button\n type=\"button\"\n class=\"close-button cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"done\">\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"null\">\n Done\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"save || create\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"close\">\n <button\n mat-button\n type=\"button\"\n class=\"close-button\"\n fsFormDialogClose\n [closeData]=\"closeData\"\n [color]=\"dirty ? 'basic' : 'primary'\">\n Close\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"!(save || create)\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n</div>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"], components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.FsButtonDirective, selector: "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", inputs: ["name", "dirtySubmit", "form"] }, { type: i2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: ["closeData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
|
+
FsFormDialogActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsFormDialogActionsComponent, selector: "fs-form-dialog-actions", inputs: { save: "save", create: "create", close: "close", done: "done", closeData: "closeData", name: "name" }, ngImport: i0, template: "<div class=\"form-buttons\" [ngClass]=\"{ 'save-create': save || create }\">\n <ng-container *ngIf=\"save || create\">\n <button\n mat-button\n type=\"submit\"\n color=\"primary\"\n [name]=\"name\">\n {{create ? 'Create' : 'Save'}}\n </button>\n <button\n mat-button\n type=\"button\"\n class=\"close-button cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"done\">\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"null\">\n Done\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"save || create\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"close\">\n <button\n mat-button\n type=\"button\"\n class=\"close-button\"\n fsFormDialogClose\n [closeData]=\"closeData\"\n [color]=\"dirty ? 'basic' : 'primary'\">\n Close\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"!(save || create)\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n</div>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"], components: [{ type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.FsButtonDirective, selector: "[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", inputs: ["name", "dirtySubmit", "form"] }, { type: i2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i6.FsFormDialogCloseDirective, selector: "[fsFormDialogClose],[fs-form-dialog-close]", inputs: ["closeData"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
55
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormDialogActionsComponent, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{ selector: 'fs-form-dialog-actions', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"form-buttons\" [ngClass]=\"{ 'save-create': save || create }\">\n <ng-container *ngIf=\"save || create\">\n <button\n mat-button\n type=\"submit\"\n color=\"primary\"\n [name]=\"name\">\n {{create ? 'Create' : 'Save'}}\n </button>\n <button\n mat-button\n type=\"button\"\n class=\"close-button cancel-button\"\n [disabled]=\"close && !dirty && !create\"\n [mat-dialog-close]=\"null\">\n Cancel\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"done\">\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"null\">\n Done\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"save || create\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"close\">\n <button\n mat-button\n type=\"button\"\n class=\"close-button\"\n fsFormDialogClose\n [closeData]=\"closeData\"\n [color]=\"dirty ? 'basic' : 'primary'\">\n Close\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"!(save || create)\">\n <ng-template [ngTemplateOutlet]=\"content\"></ng-template>\n </ng-container>\n</div>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", styles: [":host{width:100%}.form-buttons.save-create .close-button:not(.cancel-button){float:right}\n"] }]
|
|
@@ -72,4 +72,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
72
72
|
}], name: [{
|
|
73
73
|
type: Input
|
|
74
74
|
}] } });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
75
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1kaWFsb2ctYWN0aW9ucy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvZm9ybS1kaWFsb2ctYWN0aW9ucy9mb3JtLWRpYWxvZy1hY3Rpb25zLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50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x1ZUNoYW5nZXNcclxuICAgICAgICAucGlwZSggIFxyXG4gICAgICAgICAgZmlsdGVyKCgpID0+ICghdGhpcy5kaXJ0eSkpLFxyXG4gICAgICAgICAgdGFrZVVudGlsKHRoaXMuX2Rlc3Ryb3kkKSxcclxuICAgICAgICApXHJcbiAgICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XHJcbiAgICAgICAgICB0aGlzLmRpcnR5ID0gdGhpcy5fZm9ybS5uZ0Zvcm0uZGlydHk7XHJcbiAgICAgICAgICB0aGlzLl9jZFJlZi5tYXJrRm9yQ2hlY2soKTtcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgIHRoaXMuX2Zvcm0uc3VibWl0dGVkXHJcbiAgICAgICAgLnBpcGUoXHJcbiAgICAgICAgICBkZWxheSg1MCksXHJcbiAgICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxyXG4gICAgICAgIClcclxuICAgICAgICAuc3Vic2NyaWJlKCgpID0+IHtcclxuICAgICAgICAgIHRoaXMuZGlydHkgPSBmYWxzZTtcclxuICAgICAgICAgIHRoaXMuX2NkUmVmLm1hcmtGb3JDaGVjaygpO1xyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgdGhpcy5fZm9ybS5yZXNldGVkXHJcbiAgICAgICAgLnBpcGUoXHJcbiAgICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxyXG4gICAgICAgIClcclxuICAgICAgICAuc3Vic2NyaWJlKCgpID0+IHtcclxuICAgICAgICAgIHRoaXMuZGlydHkgPSBmYWxzZTtcclxuICAgICAgICAgIHRoaXMuX2NkUmVmLm1hcmtGb3JDaGVjaygpO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgcHVibGljIG5nT25EZXN0cm95KCk6IHZvaWQge1xyXG4gICAgdGhpcy5fZGVzdHJveSQubmV4dCgpO1xyXG4gICAgdGhpcy5fZGVzdHJveSQuY29tcGxldGUoKTt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sZXRdPVwiY29udGVudFwiPjwvbmctdGVtcGxhdGU+XG4gIDwvbmctY29udGFpbmVyPlxuXG4gIDxuZy1jb250YWluZXIgKm5nSWY9XCJjbG9zZVwiPlxuICAgIDxidXR0b25cbiAgICAgICAgbWF0LWJ1dHRvblxuICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgY2xhc3M9XCJjbG9zZS1idXR0b25cIlxuICAgICAgICBmc0Zvcm1EaWFsb2dDbG9zZVxuICAgICAgICBbY2xvc2VEYXRhXT1cImNsb3NlRGF0YVwiXG4gICAgICAgIFtjb2xvcl09XCJkaXJ0eSA/ICdiYXNpYycgOiAncHJpbWFyeSdcIj5cbiAgICAgIENsb3NlXG4gICAgPC9idXR0b24+XG4gIDwvbmctY29udGFpbmVyPlxuXG4gIDxuZy1jb250YWluZXIgKm5nSWY9XCIhKHNhdmUgfHwgY3JlYXRlKVwiPlxuICAgIDxuZy10ZW1wbGF0ZSBbbmdUZW1wbGF0ZU91dGxldF09XCJjb250ZW50XCI+PC9uZy10ZW1wbGF0ZT5cbiAgPC9uZy1jb250YWluZXI+XG48L2Rpdj5cblxuPG5nLXRlbXBsYXRlICNjb250ZW50PlxuICA8bmctY29udGVudD48L25nLWNvbnRlbnQ+XG48L25nLXRlbXBsYXRlPlxuIl19
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './form-dialog-actions.component';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvZm9ybS1kaWFsb2ctYWN0aW9ucy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGlDQUFpQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mb3JtLWRpYWxvZy1hY3Rpb25zLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export * from './confirm-unsaved';
|
|
1
2
|
export * from './form-dialog-actions';
|
|
2
3
|
export * from './form-template';
|
|
3
4
|
export * from './form-template-outlet';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsaUJBQWlCLENBQUM7QUFDaEMsY0FBYyx3QkFBd0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY29uZmlybS11bnNhdmVkJztcbmV4cG9ydCAqIGZyb20gJy4vZm9ybS1kaWFsb2ctYWN0aW9ucyc7XG5leHBvcnQgKiBmcm9tICcuL2Zvcm0tdGVtcGxhdGUnO1xuZXhwb3J0ICogZnJvbSAnLi9mb3JtLXRlbXBsYXRlLW91dGxldCc7XG4iXX0=
|
|
@@ -16,5 +16,7 @@ export const ERROR_MESSAGES = {
|
|
|
16
16
|
urlProtocol: 'Invalid URL. Proper http protocol is required. eg. https://google.com',
|
|
17
17
|
greater: 'Value must be greater than $(1)',
|
|
18
18
|
lesser: 'Value must be less than $(1)',
|
|
19
|
+
greaterEqual: 'Value must be greater than or equal $(1)',
|
|
20
|
+
lesserEqual: 'Value must be less than or equal $(1)',
|
|
19
21
|
};
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2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