@rxap/forms 12.7.1 → 12.7.4
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/bundles/rxap-forms.umd.js +72 -66
- package/bundles/rxap-forms.umd.js.map +1 -1
- package/esm2015/lib/directives/form-control-error.directive.js +3 -3
- package/esm2015/lib/directives/form-control-error.directive.js.map +1 -1
- package/esm2015/lib/directives/form-control-mark-dirty.directive.js +3 -3
- package/esm2015/lib/directives/form-control-mark-dirty.directive.js.map +1 -1
- package/esm2015/lib/directives/form-control-mark-pristine.directive.js +3 -3
- package/esm2015/lib/directives/form-control-mark-pristine.directive.js.map +1 -1
- package/esm2015/lib/directives/form-control-mark-touched.directive.js +3 -3
- package/esm2015/lib/directives/form-control-mark-touched.directive.js.map +1 -1
- package/esm2015/lib/directives/form-control-mark-untouched.directive.js +3 -3
- package/esm2015/lib/directives/form-control-mark-untouched.directive.js.map +1 -1
- package/esm2015/lib/directives/form-control-name.directive.js +3 -3
- package/esm2015/lib/directives/form-control-name.directive.js.map +1 -1
- package/esm2015/lib/directives/form-group-name.directive.js +3 -3
- package/esm2015/lib/directives/form-group-name.directive.js.map +1 -1
- package/esm2015/lib/directives/form-loaded.directive.js +3 -3
- package/esm2015/lib/directives/form-loaded.directive.js.map +1 -1
- package/esm2015/lib/directives/form-loading-error.directive.js +3 -3
- package/esm2015/lib/directives/form-loading-error.directive.js.map +1 -1
- package/esm2015/lib/directives/form-loading.directive.js +3 -3
- package/esm2015/lib/directives/form-loading.directive.js.map +1 -1
- package/esm2015/lib/directives/form-submit-failed.directive.js +3 -3
- package/esm2015/lib/directives/form-submit-failed.directive.js.map +1 -1
- package/esm2015/lib/directives/form-submit-invalid.directive.js +3 -3
- package/esm2015/lib/directives/form-submit-invalid.directive.js.map +1 -1
- package/esm2015/lib/directives/form-submit-successful.directive.js +3 -3
- package/esm2015/lib/directives/form-submit-successful.directive.js.map +1 -1
- package/esm2015/lib/directives/form-submit.directive.js +3 -3
- package/esm2015/lib/directives/form-submit.directive.js.map +1 -1
- package/esm2015/lib/directives/form-submitting.directive.js +3 -3
- package/esm2015/lib/directives/form-submitting.directive.js.map +1 -1
- package/esm2015/lib/directives/form.directive.js +4 -4
- package/esm2015/lib/directives/form.directive.js.map +1 -1
- package/esm2015/lib/directives/forms.module.js +4 -4
- package/esm2015/lib/directives/forms.module.js.map +1 -1
- package/esm2015/lib/directives/parent-control-container.directive.js +3 -3
- package/esm2015/lib/directives/parent-control-container.directive.js.map +1 -1
- package/esm2015/lib/form-array.js +13 -4
- package/esm2015/lib/form-array.js.map +1 -1
- package/fesm2015/rxap-forms.js +69 -61
- package/fesm2015/rxap-forms.js.map +1 -1
- package/lib/directives/form.directive.d.ts +1 -1
- package/package.json +3 -3
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
|
@@ -32,8 +32,8 @@ export class FormControlErrorDirective {
|
|
|
32
32
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
FormControlErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
36
|
-
FormControlErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
35
|
+
FormControlErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlErrorDirective, deps: [{ token: i0.TemplateRef }, { token: i1.ControlContainer, host: true, skipSelf: true }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
+
FormControlErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormControlErrorDirective, selector: "[rxapFormControlError]", inputs: { name: ["rxapFormControlErrorFrom", "name"], errorKey: ["rxapFormControlErrorIf", "errorKey"] }, ngImport: i0 });
|
|
37
37
|
__decorate([
|
|
38
38
|
Required,
|
|
39
39
|
__metadata("design:type", String)
|
|
@@ -42,7 +42,7 @@ __decorate([
|
|
|
42
42
|
Required,
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], FormControlErrorDirective.prototype, "errorKey", void 0);
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlErrorDirective, decorators: [{
|
|
46
46
|
type: Directive,
|
|
47
47
|
args: [{
|
|
48
48
|
selector: '[rxapFormControlError]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-error.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-error.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,KAAK,EAGL,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,GAAG,EACH,MAAM,EACN,SAAS,EACV,MAAM,gBAAgB,CAAC;;;AAExB;;GAEG;AAIH,MAAM,OAAO,yBAAyB;IAYpC,YACmB,QAAsD,EAClC,MAAwB,EAC5C,gBAAkC;QAFlC,aAAQ,GAAR,QAAQ,CAA8C;QAClC,WAAM,GAAN,MAAM,CAAkB;QAC5C,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IAEG,QAAQ;;QACb,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,MAAM,CAAC,OAAO,0CAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEpD,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;SAC5D;QAED,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,IAAI,CAC5C,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,EACzB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,EACtC,GAAG,CAAC,GAAG,EAAE;YACP,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;gBACnC,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;aACzG;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAEhB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-control-error.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-error.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,KAAK,EAGL,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EACL,GAAG,EACH,MAAM,EACN,SAAS,EACV,MAAM,gBAAgB,CAAC;;;AAExB;;GAEG;AAIH,MAAM,OAAO,yBAAyB;IAYpC,YACmB,QAAsD,EAClC,MAAwB,EAC5C,gBAAkC;QAFlC,aAAQ,GAAR,QAAQ,CAA8C;QAClC,WAAM,GAAN,MAAM,CAAkB;QAC5C,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IAEG,QAAQ;;QACb,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,MAAM,CAAC,OAAO,0CAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEpD,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;SAC5D;QAED,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,IAAI,CAC5C,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,EACzB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,KAAK,SAAS,CAAC,EACtC,GAAG,CAAC,GAAG,EAAE;YACP,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE;gBACnC,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;aACzG;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAEhB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;uHAxCU,yBAAyB;2GAAzB,yBAAyB;AAIpC;IADC,QAAQ;;uDACY;AAIrB;IADC,QAAQ;;2DACgB;4FARd,yBAAyB;kBAHrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;0BAeI,IAAI;;0BAAI,QAAQ;2EAVZ,IAAI;sBAFV,KAAK;uBAAC,0BAA0B;gBAM1B,QAAQ;sBAFd,KAAK;uBAAC,wBAAwB","sourcesContent":["import {\n Directive,\n TemplateRef,\n Host,\n SkipSelf,\n Input,\n OnInit,\n OnDestroy,\n ViewContainerRef\n} from '@angular/core';\nimport { ValidationErrors } from '../types';\nimport { ControlContainer } from '@angular/forms';\nimport { Required } from '@rxap/utilities';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n filter,\n startWith\n} from 'rxjs/operators';\n\n/**\n * @deprecated removed\n */\n@Directive({\n selector: '[rxapFormControlError]'\n})\nexport class FormControlErrorDirective implements OnInit, OnDestroy {\n\n @Input('rxapFormControlErrorFrom')\n @Required\n public name!: string;\n\n @Input('rxapFormControlErrorIf')\n @Required\n public errorKey!: string;\n\n private subscription?: Subscription;\n\n constructor(\n private readonly template: TemplateRef<{ $implicit: ValidationErrors }>,\n @Host() @SkipSelf() private readonly parent: ControlContainer,\n private readonly viewContainerRef: ViewContainerRef\n ) {}\n\n public ngOnInit() {\n const control = this.parent.control?.get(this.name);\n\n if (!control) {\n throw new Error('Could not extract form control instance');\n }\n\n this.subscription = control.statusChanges.pipe(\n startWith(control.status),\n filter(status => status === 'INVALID'),\n tap(() => {\n this.viewContainerRef.clear();\n if (control.hasError(this.errorKey)) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: control.getError(this.errorKey) });\n }\n })\n ).subscribe();\n\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -17,9 +17,9 @@ export class FormControlMarkDirtyDirective {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
FormControlMarkDirtyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
21
|
-
FormControlMarkDirtyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
20
|
+
FormControlMarkDirtyDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlMarkDirtyDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
FormControlMarkDirtyDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormControlMarkDirtyDirective, selector: "[rxapFormControlMarkDirty]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlMarkDirtyDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: '[rxapFormControlMarkDirty]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-mark-dirty.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-mark-dirty.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;;;AAKpD,MAAM,OAAO,6BAA6B;IAExC,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAI,CAAC;IAGnD,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAEpC,IAAI,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,OAAO,CAAE,gBAAgB,CAAE,KAAK,UAAU,EAAE;YAC9F,OAAO,CAAC,cAAc,EAAE,CAAC;SAC1B;aAAM;YACL,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EAAE,CAAC;SACxB;IAEH,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-control-mark-dirty.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-mark-dirty.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;;;AAKpD,MAAM,OAAO,6BAA6B;IAExC,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAI,CAAC;IAGnD,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAEpC,IAAI,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,OAAO,CAAE,gBAAgB,CAAE,KAAK,UAAU,EAAE;YAC9F,OAAO,CAAC,cAAc,EAAE,CAAC;SAC1B;aAAM;YACL,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,EAAE,CAAC;SACxB;IAEH,CAAC;;2HAdU,6BAA6B;+GAA7B,6BAA6B;4FAA7B,6BAA6B;kBAHzC,SAAS;mBAAC;oBACT,QAAQ,EAAE,4BAA4B;iBACvC;uGAMQ,OAAO;sBADb,YAAY;uBAAC,OAAO","sourcesContent":["import {\n Directive,\n HostListener\n} from '@angular/core';\nimport { ControlContainer } from '@angular/forms';\nimport { hasIndexSignature } from '@rxap/utilities';\n\n@Directive({\n selector: '[rxapFormControlMarkDirty]'\n})\nexport class FormControlMarkDirtyDirective {\n\n constructor(private readonly parent: ControlContainer) { }\n\n @HostListener('click')\n public onClick() {\n const control = this.parent.control;\n\n if (control && hasIndexSignature(control) && typeof control[ 'markAllAsDirty' ] === 'function') {\n control.markAllAsDirty();\n } else {\n control?.markAsDirty();\n }\n\n }\n\n}\n"]}
|
|
@@ -17,9 +17,9 @@ export class FormControlMarkPristineDirective {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
FormControlMarkPristineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
21
|
-
FormControlMarkPristineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
20
|
+
FormControlMarkPristineDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlMarkPristineDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
FormControlMarkPristineDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormControlMarkPristineDirective, selector: "[rxapFormControlMarkPristine]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlMarkPristineDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: '[rxapFormControlMarkPristine]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-mark-pristine.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-mark-pristine.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;;;AAKpD,MAAM,OAAO,gCAAgC;IAE3C,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAI,CAAC;IAGnD,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAEpC,IAAI,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,OAAO,CAAE,mBAAmB,CAAE,KAAK,UAAU,EAAE;YACjG,OAAO,CAAC,iBAAiB,EAAE,CAAC;SAC7B;aAAM;YACL,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;SAC3B;IACH,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-control-mark-pristine.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-mark-pristine.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;;;AAKpD,MAAM,OAAO,gCAAgC;IAE3C,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAI,CAAC;IAGnD,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAEpC,IAAI,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,OAAO,CAAE,mBAAmB,CAAE,KAAK,UAAU,EAAE;YACjG,OAAO,CAAC,iBAAiB,EAAE,CAAC;SAC7B;aAAM;YACL,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,EAAE,CAAC;SAC3B;IACH,CAAC;;8HAbU,gCAAgC;kHAAhC,gCAAgC;4FAAhC,gCAAgC;kBAH5C,SAAS;mBAAC;oBACT,QAAQ,EAAE,+BAA+B;iBAC1C;uGAMQ,OAAO;sBADb,YAAY;uBAAC,OAAO","sourcesContent":["import {\n Directive,\n HostListener\n} from '@angular/core';\nimport { ControlContainer } from '@angular/forms';\nimport { hasIndexSignature } from '@rxap/utilities';\n\n@Directive({\n selector: '[rxapFormControlMarkPristine]'\n})\nexport class FormControlMarkPristineDirective {\n\n constructor(private readonly parent: ControlContainer) { }\n\n @HostListener('click')\n public onClick() {\n const control = this.parent.control;\n\n if (control && hasIndexSignature(control) && typeof control[ 'markAllAsPristine' ] === 'function') {\n control.markAllAsPristine();\n } else {\n control?.markAsPristine();\n }\n }\n\n}\n"]}
|
|
@@ -11,9 +11,9 @@ export class FormControlMarkTouchedDirective {
|
|
|
11
11
|
(_a = this.parent.control) === null || _a === void 0 ? void 0 : _a.markAllAsTouched();
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
FormControlMarkTouchedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
15
|
-
FormControlMarkTouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
14
|
+
FormControlMarkTouchedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlMarkTouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
+
FormControlMarkTouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormControlMarkTouchedDirective, selector: "[rxapFormControlMarkTouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlMarkTouchedDirective, decorators: [{
|
|
17
17
|
type: Directive,
|
|
18
18
|
args: [{
|
|
19
19
|
selector: '[rxapFormControlMarkTouched]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-mark-touched.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-mark-touched.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;;;AAKlD,MAAM,OAAO,+BAA+B;IAE1C,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAI,CAAC;IAGnD,OAAO;;QACZ,MAAA,IAAI,CAAC,MAAM,CAAC,OAAO,0CAAE,gBAAgB,EAAE,CAAC;IAC1C,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-control-mark-touched.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-mark-touched.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;;;AAKlD,MAAM,OAAO,+BAA+B;IAE1C,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAI,CAAC;IAGnD,OAAO;;QACZ,MAAA,IAAI,CAAC,MAAM,CAAC,OAAO,0CAAE,gBAAgB,EAAE,CAAC;IAC1C,CAAC;;6HAPU,+BAA+B;iHAA/B,+BAA+B;4FAA/B,+BAA+B;kBAH3C,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;iBACzC;uGAMQ,OAAO;sBADb,YAAY;uBAAC,OAAO","sourcesContent":["import {\n Directive,\n HostListener\n} from '@angular/core';\nimport { ControlContainer } from '@angular/forms';\n\n@Directive({\n selector: '[rxapFormControlMarkTouched]'\n})\nexport class FormControlMarkTouchedDirective {\n\n constructor(private readonly parent: ControlContainer) { }\n\n @HostListener('click')\n public onClick() {\n this.parent.control?.markAllAsTouched();\n }\n\n}\n"]}
|
|
@@ -17,9 +17,9 @@ export class FormControlMarkUntouchedDirective {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
FormControlMarkUntouchedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
21
|
-
FormControlMarkUntouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
20
|
+
FormControlMarkUntouchedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlMarkUntouchedDirective, deps: [{ token: i1.ControlContainer }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
FormControlMarkUntouchedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormControlMarkUntouchedDirective, selector: "[rxapFormControlMarkUntouched]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlMarkUntouchedDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: '[rxapFormControlMarkUntouched]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-mark-untouched.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-mark-untouched.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;;;AAKpD,MAAM,OAAO,iCAAiC;IAE5C,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAI,CAAC;IAGnD,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAEpC,IAAI,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,OAAO,CAAE,oBAAoB,CAAE,KAAK,UAAU,EAAE;YAClG,OAAO,CAAC,kBAAkB,EAAE,CAAC;SAC9B;aAAM;YACL,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,EAAE,CAAC;SAC5B;IACH,CAAC
|
|
1
|
+
{"version":3,"file":"form-control-mark-untouched.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-mark-untouched.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;;;AAKpD,MAAM,OAAO,iCAAiC;IAE5C,YAA6B,MAAwB;QAAxB,WAAM,GAAN,MAAM,CAAkB;IAAI,CAAC;IAGnD,OAAO;QACZ,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;QAEpC,IAAI,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,OAAO,OAAO,CAAE,oBAAoB,CAAE,KAAK,UAAU,EAAE;YAClG,OAAO,CAAC,kBAAkB,EAAE,CAAC;SAC9B;aAAM;YACL,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,EAAE,CAAC;SAC5B;IACH,CAAC;;+HAbU,iCAAiC;mHAAjC,iCAAiC;4FAAjC,iCAAiC;kBAH7C,SAAS;mBAAC;oBACT,QAAQ,EAAE,gCAAgC;iBAC3C;uGAMQ,OAAO;sBADb,YAAY;uBAAC,OAAO","sourcesContent":["import {\n Directive,\n HostListener\n} from '@angular/core';\nimport { ControlContainer } from '@angular/forms';\nimport { hasIndexSignature } from '@rxap/utilities';\n\n@Directive({\n selector: '[rxapFormControlMarkUntouched]'\n})\nexport class FormControlMarkUntouchedDirective {\n\n constructor(private readonly parent: ControlContainer) { }\n\n @HostListener('click')\n public onClick() {\n const control = this.parent.control;\n\n if (control && hasIndexSignature(control) && typeof control[ 'markAllAsUntouched' ] === 'function') {\n control.markAllAsUntouched();\n } else {\n control?.markAsUntouched();\n }\n }\n\n}\n"]}
|
|
@@ -13,14 +13,14 @@ export class FormControlNameDirective extends FormControlName {
|
|
|
13
13
|
super(parent, validators, asyncValidators, valueAccessors, null);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
FormControlNameDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
17
|
-
FormControlNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
16
|
+
FormControlNameDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlNameDirective, deps: [{ token: i1.ControlContainer, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
FormControlNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormControlNameDirective, selector: "[rxapFormControlName]", inputs: { name: ["rxapFormControlName", "name"] }, providers: [
|
|
18
18
|
{
|
|
19
19
|
provide: NgControl,
|
|
20
20
|
useExisting: forwardRef(() => FormControlNameDirective)
|
|
21
21
|
}
|
|
22
22
|
], exportAs: ["rxapFormControl"], usesInheritance: true, ngImport: i0 });
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormControlNameDirective, decorators: [{
|
|
24
24
|
type: Directive,
|
|
25
25
|
args: [{
|
|
26
26
|
selector: '[rxapFormControlName]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-name.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-name.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAMhB,SAAS,EACV,MAAM,gBAAgB,CAAC;;;AAGxB;;;;;GAKG;AAWH,MAAM,OAAO,wBAAyB,SAAQ,eAAe;IAO3D,YAC0B,MAAwB,EACL,UAAwC,EAClC,eACT,EACO,cAAsC;QAErF,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-control-name.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-control-name.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAMhB,SAAS,EACV,MAAM,gBAAgB,CAAC;;;AAGxB;;;;;GAKG;AAWH,MAAM,OAAO,wBAAyB,SAAQ,eAAe;IAO3D,YAC0B,MAAwB,EACL,UAAwC,EAClC,eACT,EACO,cAAsC;QAErF,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;sHAfU,wBAAwB,kFASL,aAAa,yCACb,mBAAmB,yCAEnB,iBAAiB;0GAZpC,wBAAwB,mGARxB;QACT;YACE,OAAO,EAAE,SAAS;YAClB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC;SACxD;KACF;4FAGU,wBAAwB;kBAVpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,SAAS;4BAClB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,yBAAyB,CAAC;yBACxD;qBACF;oBACD,QAAQ,EAAE,iBAAiB;iBAC5B;;0BASI,QAAQ;;0BAAI,QAAQ;8BACkC,KAAK;0BAA3D,QAAQ;;0BAAI,IAAI;;0BAAI,MAAM;2BAAC,aAAa;8BAEvC,KAAK;0BADN,QAAQ;;0BAAI,IAAI;;0BAAI,MAAM;2BAAC,mBAAmB;;0BAE9C,QAAQ;;0BAAI,IAAI;;0BAAI,MAAM;2BAAC,iBAAiB;4CAPxC,IAAI;sBADV,KAAK;uBAAC,qBAAqB","sourcesContent":["import {\n Directive,\n Inject,\n Optional,\n Self,\n SkipSelf,\n Input,\n forwardRef\n} from '@angular/core';\nimport {\n FormControlName,\n NG_ASYNC_VALIDATORS,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ControlContainer,\n Validator,\n ValidatorFn,\n AsyncValidator,\n AsyncValidatorFn,\n ControlValueAccessor,\n NgControl\n} from '@angular/forms';\nimport { RxapFormControl } from '../form-control';\n\n/**\n * A full exertion of FormControlName from @angular/forms. The only change is the\n * ability to access the control container outside of the current component\n *\n * @deprecated use the ParentControlContainerDirective\n */\n@Directive({\n selector: '[rxapFormControlName]',\n providers: [\n {\n provide: NgControl,\n useExisting: forwardRef(() => FormControlNameDirective)\n }\n ],\n exportAs: 'rxapFormControl'\n})\nexport class FormControlNameDirective extends FormControlName {\n\n readonly control!: RxapFormControl;\n\n @Input('rxapFormControlName')\n public name!: string|number|null;\n\n constructor(\n @Optional() @SkipSelf() parent: ControlContainer,\n @Optional() @Self() @Inject(NG_VALIDATORS) validators: Array<Validator|ValidatorFn>,\n @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators:\n Array<AsyncValidator|AsyncValidatorFn>,\n @Optional() @Self() @Inject(NG_VALUE_ACCESSOR) valueAccessors: ControlValueAccessor[],\n ) {\n super(parent, validators, asyncValidators, valueAccessors, null);\n }\n\n}\n"]}
|
|
@@ -17,14 +17,14 @@ export class FormGroupNameDirective extends FormGroupName {
|
|
|
17
17
|
return this.formDirective.getFormGroup(this);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
FormGroupNameDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
21
|
-
FormGroupNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
20
|
+
FormGroupNameDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormGroupNameDirective, deps: [{ token: i1.ControlContainer, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
FormGroupNameDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormGroupNameDirective, selector: "[rxapFormGroupName]", inputs: { name: ["rxapFormGroupName", "name"] }, providers: [
|
|
22
22
|
{
|
|
23
23
|
provide: ControlContainer,
|
|
24
24
|
useExisting: forwardRef(() => FormGroupNameDirective)
|
|
25
25
|
}
|
|
26
26
|
], exportAs: ["rxapFormGroup"], usesInheritance: true, ngImport: i0 });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormGroupNameDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: '[rxapFormGroupName]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-group-name.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-group-name.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACd,MAAM,gBAAgB,CAAC;;;AAGxB;;;;;GAKG;AAWH,MAAM,OAAO,sBAAuB,SAAQ,aAAa;IAUvD,YAC0B,MAAwB,EACL,UAAiB,EACX,eAAsB;QACvE,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;IAC7C,CAAC;IAVD,IAAW,OAAO;QAChB,wBAAwB;QACxB,OAAO,IAAI,CAAC,aAAc,CAAC,YAAY,CAAC,IAAI,CAAQ,CAAC;IACvD,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-group-name.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-group-name.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,UAAU,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACd,MAAM,gBAAgB,CAAC;;;AAGxB;;;;;GAKG;AAWH,MAAM,OAAO,sBAAuB,SAAQ,aAAa;IAUvD,YAC0B,MAAwB,EACL,UAAiB,EACX,eAAsB;QACvE,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC;IAC7C,CAAC;IAVD,IAAW,OAAO;QAChB,wBAAwB;QACxB,OAAO,IAAI,CAAC,aAAc,CAAC,YAAY,CAAC,IAAI,CAAQ,CAAC;IACvD,CAAC;;oHARU,sBAAsB,kFAYH,aAAa,yCACb,mBAAmB;wGAbtC,sBAAsB,+FARtB;QACT;YACE,OAAO,EAAE,gBAAgB;YACzB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;SACtD;KACF;4FAGU,sBAAsB;kBAVlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,qBAAqB;oBAC/B,SAAS,EAAE;wBACT;4BACE,OAAO,EAAE,gBAAgB;4BACzB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,uBAAuB,CAAC;yBACtD;qBACF;oBACD,QAAQ,EAAE,eAAe;iBAC1B;;0BAYI,QAAQ;;0BAAI,QAAQ;;0BACpB,QAAQ;;0BAAI,IAAI;;0BAAI,MAAM;2BAAC,aAAa;;0BACxC,QAAQ;;0BAAI,IAAI;;0BAAI,MAAM;2BAAC,mBAAmB;4CAV1C,IAAI;sBADV,KAAK;uBAAC,mBAAmB","sourcesContent":["import {\n Directive,\n Inject,\n SkipSelf,\n Optional,\n Self,\n Input,\n forwardRef\n} from '@angular/core';\nimport {\n FormGroupName,\n NG_ASYNC_VALIDATORS,\n ControlContainer,\n NG_VALIDATORS\n} from '@angular/forms';\nimport { RxapFormGroup } from '../form-group';\n\n/**\n * A full exertion of FormGroupName from @angular/forms. The only change is the\n * ability to access the control container outside of the current component\n *\n * @deprecated use the ParentControlContainerDirective\n */\n@Directive({\n selector: '[rxapFormGroupName]',\n providers: [\n {\n provide: ControlContainer,\n useExisting: forwardRef(() => FormGroupNameDirective)\n }\n ],\n exportAs: 'rxapFormGroup'\n})\nexport class FormGroupNameDirective extends FormGroupName {\n\n @Input('rxapFormGroupName')\n public name!: string|number|null;\n\n public get control(): RxapFormGroup {\n // TODO : add type check\n return this.formDirective!.getFormGroup(this) as any;\n }\n\n constructor(\n @Optional() @SkipSelf() parent: ControlContainer,\n @Optional() @Self() @Inject(NG_VALIDATORS) validators: any[],\n @Optional() @Self() @Inject(NG_ASYNC_VALIDATORS) asyncValidators: any[]) {\n super(parent, validators, asyncValidators);\n }\n\n}\n"]}
|
|
@@ -22,9 +22,9 @@ export class FormLoadedDirective {
|
|
|
22
22
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
FormLoadedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
26
|
-
FormLoadedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
25
|
+
FormLoadedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormLoadedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
+
FormLoadedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormLoadedDirective, selector: "[rxapFormLoaded]", ngImport: i0 });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormLoadedDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: '[rxapFormLoaded]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-loaded.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-loaded.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACL,GAAG,EACH,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;;;AAKxB,MAAM,OAAO,mBAAmB;IAI9B,YAC0C,aAA4B,EAC9B,QAA2B,EACtB,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmB;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CACjD,oBAAoB,EAAE,EACtB,GAAG,CAAC,OAAO,CAAC,EAAE;YACZ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACzD;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-loaded.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-loaded.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACL,GAAG,EACH,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;;;AAKxB,MAAM,OAAO,mBAAmB;IAI9B,YAC0C,aAA4B,EAC9B,QAA2B,EACtB,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmB;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CACjD,oBAAoB,EAAE,EACtB,GAAG,CAAC,OAAO,CAAC,EAAE;YACZ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACzD;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;iHAxBU,mBAAmB,kBAKpB,aAAa,aACb,WAAW,aACX,gBAAgB;qGAPf,mBAAmB;4FAAnB,mBAAmB;kBAH/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;iBAC7B;;0BAMI,MAAM;2BAAC,aAAa;;0BACpB,MAAM;2BAAC,WAAW;;0BAClB,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n ViewContainerRef,\n OnDestroy,\n AfterViewInit\n} from '@angular/core';\nimport { FormDirective } from './form.directive';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n distinctUntilChanged\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapFormLoaded]'\n})\nexport class FormLoadedDirective implements AfterViewInit, OnDestroy {\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(FormDirective) private readonly formDirective: FormDirective,\n @Inject(TemplateRef) private readonly template: TemplateRef<void>,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef\n ) {}\n\n public ngAfterViewInit() {\n this.subscription = this.formDirective.loaded$.pipe(\n distinctUntilChanged(),\n tap(loading => {\n this.viewContainerRef.clear();\n if (loading) {\n this.viewContainerRef.createEmbeddedView(this.template);\n }\n })\n ).subscribe();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -22,9 +22,9 @@ export class FormLoadingErrorDirective {
|
|
|
22
22
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
FormLoadingErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
26
|
-
FormLoadingErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
25
|
+
FormLoadingErrorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormLoadingErrorDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
+
FormLoadingErrorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormLoadingErrorDirective, selector: "[rxapFormLoadingError]", ngImport: i0 });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormLoadingErrorDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: '[rxapFormLoadingError]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-loading-error.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-loading-error.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;AAKrC,MAAM,OAAO,yBAAyB;IAIpC,YAC0C,aAA4B,EAC9B,QAA2C,EACtC,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmC;QACtC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CACvD,GAAG,CAAC,KAAK,CAAC,EAAE;YACV,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;aAC/E;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-loading-error.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-loading-error.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;AAKrC,MAAM,OAAO,yBAAyB;IAIpC,YAC0C,aAA4B,EAC9B,QAA2C,EACtC,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmC;QACtC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CACvD,GAAG,CAAC,KAAK,CAAC,EAAE;YACV,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;aAC/E;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;uHAvBU,yBAAyB,kBAK1B,aAAa,aACb,WAAW,aACX,gBAAgB;2GAPf,yBAAyB;4FAAzB,yBAAyB;kBAHrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;0BAMI,MAAM;2BAAC,aAAa;;0BACpB,MAAM;2BAAC,WAAW;;0BAClB,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n ViewContainerRef,\n OnDestroy,\n AfterViewInit\n} from '@angular/core';\nimport { FormDirective } from './form.directive';\nimport { Subscription } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapFormLoadingError]'\n})\nexport class FormLoadingErrorDirective implements AfterViewInit, OnDestroy {\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(FormDirective) private readonly formDirective: FormDirective,\n @Inject(TemplateRef) private readonly template: TemplateRef<{ $implicit: Error }>,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef\n ) {}\n\n public ngAfterViewInit() {\n this.subscription = this.formDirective.loadingError$.pipe(\n tap(error => {\n this.viewContainerRef.clear();\n if (error !== null) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: error });\n }\n })\n ).subscribe();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -22,9 +22,9 @@ export class FormLoadingDirective {
|
|
|
22
22
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
FormLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
26
|
-
FormLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
25
|
+
FormLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormLoadingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
+
FormLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormLoadingDirective, selector: "[rxapFormLoading]", ngImport: i0 });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormLoadingDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: '[rxapFormLoading]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-loading.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-loading.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACL,GAAG,EACH,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;;;AAKxB,MAAM,OAAO,oBAAoB;IAI/B,YAC0C,aAA4B,EAC9B,QAA2B,EACtB,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmB;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAClD,oBAAoB,EAAE,EACtB,GAAG,CAAC,OAAO,CAAC,EAAE;YACZ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACzD;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-loading.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-loading.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACL,GAAG,EACH,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;;;AAKxB,MAAM,OAAO,oBAAoB;IAI/B,YAC0C,aAA4B,EAC9B,QAA2B,EACtB,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmB;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAClD,oBAAoB,EAAE,EACtB,GAAG,CAAC,OAAO,CAAC,EAAE;YACZ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACzD;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;kHAxBU,oBAAoB,kBAKrB,aAAa,aACb,WAAW,aACX,gBAAgB;sGAPf,oBAAoB;4FAApB,oBAAoB;kBAHhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;iBAC9B;;0BAMI,MAAM;2BAAC,aAAa;;0BACpB,MAAM;2BAAC,WAAW;;0BAClB,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n ViewContainerRef,\n OnDestroy,\n AfterViewInit\n} from '@angular/core';\nimport { FormDirective } from './form.directive';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n distinctUntilChanged\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapFormLoading]'\n})\nexport class FormLoadingDirective implements AfterViewInit, OnDestroy {\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(FormDirective) private readonly formDirective: FormDirective,\n @Inject(TemplateRef) private readonly template: TemplateRef<void>,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef\n ) {}\n\n public ngAfterViewInit() {\n this.subscription = this.formDirective.loading$.pipe(\n distinctUntilChanged(),\n tap(loading => {\n this.viewContainerRef.clear();\n if (loading) {\n this.viewContainerRef.createEmbeddedView(this.template);\n }\n })\n ).subscribe();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -22,9 +22,9 @@ export class FormSubmitFailedDirective {
|
|
|
22
22
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
FormSubmitFailedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
26
|
-
FormSubmitFailedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
25
|
+
FormSubmitFailedDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmitFailedDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
+
FormSubmitFailedDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]", ngImport: i0 });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmitFailedDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: '[rxapFormSubmitFailed]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-submit-failed.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submit-failed.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;AAKrC,MAAM,OAAO,yBAAyB;IAIpC,YAC0C,aAA4B,EAC9B,QAA2C,EACtC,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmC;QACtC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,CACtD,GAAG,CAAC,KAAK,CAAC,EAAE;YACV,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;aAC/E;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-submit-failed.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submit-failed.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;AAKrC,MAAM,OAAO,yBAAyB;IAIpC,YAC0C,aAA4B,EAC9B,QAA2C,EACtC,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmC;QACtC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,CACtD,GAAG,CAAC,KAAK,CAAC,EAAE;YACV,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;aAC/E;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;uHAvBU,yBAAyB,kBAK1B,aAAa,aACb,WAAW,aACX,gBAAgB;2GAPf,yBAAyB;4FAAzB,yBAAyB;kBAHrC,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;iBACnC;;0BAMI,MAAM;2BAAC,aAAa;;0BACpB,MAAM;2BAAC,WAAW;;0BAClB,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n ViewContainerRef,\n OnDestroy,\n AfterViewInit\n} from '@angular/core';\nimport { FormDirective } from './form.directive';\nimport { Subscription } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapFormSubmitFailed]'\n})\nexport class FormSubmitFailedDirective implements AfterViewInit, OnDestroy {\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(FormDirective) private readonly formDirective: FormDirective,\n @Inject(TemplateRef) private readonly template: TemplateRef<{ $implicit: Error }>,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef\n ) {}\n\n public ngAfterViewInit() {\n this.subscription = this.formDirective.submitError$.pipe(\n tap(error => {\n this.viewContainerRef.clear();\n if (error !== null) {\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: error });\n }\n })\n ).subscribe();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -20,9 +20,9 @@ export class FormSubmitInvalidDirective {
|
|
|
20
20
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
FormSubmitInvalidDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
24
|
-
FormSubmitInvalidDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
23
|
+
FormSubmitInvalidDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmitInvalidDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
+
FormSubmitInvalidDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormSubmitInvalidDirective, selector: "[rxapFormSubmitInvalid]", ngImport: i0 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmitInvalidDirective, decorators: [{
|
|
26
26
|
type: Directive,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: '[rxapFormSubmitInvalid]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-submit-invalid.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submit-invalid.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;AAKrC,MAAM,OAAO,0BAA0B;IAIrC,YAC0C,aAA4B,EAC9B,QAAyC,EACpC,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAiC;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CACvD,GAAG,CAAC,MAAM,CAAC,EAAE;YACX,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QACjF,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-submit-invalid.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submit-invalid.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;AAKrC,MAAM,OAAO,0BAA0B;IAIrC,YAC0C,aAA4B,EAC9B,QAAyC,EACpC,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAiC;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,IAAI,CACvD,GAAG,CAAC,MAAM,CAAC,EAAE;YACX,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QACjF,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;wHArBU,0BAA0B,kBAK3B,aAAa,aACb,WAAW,aACX,gBAAgB;4GAPf,0BAA0B;4FAA1B,0BAA0B;kBAHtC,SAAS;mBAAC;oBACT,QAAQ,EAAE,yBAAyB;iBACpC;;0BAMI,MAAM;2BAAC,aAAa;;0BACpB,MAAM;2BAAC,WAAW;;0BAClB,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n ViewContainerRef,\n OnDestroy,\n AfterViewInit\n} from '@angular/core';\nimport { FormDirective } from './form.directive';\nimport { Subscription } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapFormSubmitInvalid]'\n})\nexport class FormSubmitInvalidDirective implements AfterViewInit, OnDestroy {\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(FormDirective) private readonly formDirective: FormDirective,\n @Inject(TemplateRef) private readonly template: TemplateRef<{ $implicit: any }>,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef\n ) {}\n\n public ngAfterViewInit() {\n this.subscription = this.formDirective.invalidSubmit.pipe(\n tap(result => {\n this.viewContainerRef.clear();\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: result });\n })\n ).subscribe();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -20,9 +20,9 @@ export class FormSubmitSuccessfulDirective {
|
|
|
20
20
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
FormSubmitSuccessfulDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
24
|
-
FormSubmitSuccessfulDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
23
|
+
FormSubmitSuccessfulDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmitSuccessfulDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
24
|
+
FormSubmitSuccessfulDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormSubmitSuccessfulDirective, selector: "[rxapFormSubmitSuccessful]", ngImport: i0 });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmitSuccessfulDirective, decorators: [{
|
|
26
26
|
type: Directive,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: '[rxapFormSubmitSuccessful]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-submit-successful.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submit-successful.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;AAKrC,MAAM,OAAO,6BAA6B;IAIxC,YAC0C,aAA4B,EAC9B,QAAyC,EACpC,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAiC;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,IAAI,CAC3D,GAAG,CAAC,MAAM,CAAC,EAAE;YACX,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QACjF,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-submit-successful.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submit-successful.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;;AAKrC,MAAM,OAAO,6BAA6B;IAIxC,YAC0C,aAA4B,EAC9B,QAAyC,EACpC,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAiC;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,IAAI,CAC3D,GAAG,CAAC,MAAM,CAAC,EAAE;YACX,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QACjF,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;2HArBU,6BAA6B,kBAK9B,aAAa,aACb,WAAW,aACX,gBAAgB;+GAPf,6BAA6B;4FAA7B,6BAA6B;kBAHzC,SAAS;mBAAC;oBACT,QAAQ,EAAE,4BAA4B;iBACvC;;0BAMI,MAAM;2BAAC,aAAa;;0BACpB,MAAM;2BAAC,WAAW;;0BAClB,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n ViewContainerRef,\n OnDestroy,\n AfterViewInit\n} from '@angular/core';\nimport { FormDirective } from './form.directive';\nimport { Subscription } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapFormSubmitSuccessful]'\n})\nexport class FormSubmitSuccessfulDirective implements AfterViewInit, OnDestroy {\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(FormDirective) private readonly formDirective: FormDirective,\n @Inject(TemplateRef) private readonly template: TemplateRef<{ $implicit: any }>,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef\n ) {}\n\n public ngAfterViewInit() {\n this.subscription = this.formDirective.submitSuccessful$.pipe(\n tap(result => {\n this.viewContainerRef.clear();\n this.viewContainerRef.createEmbeddedView(this.template, { $implicit: result });\n })\n ).subscribe();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -40,9 +40,9 @@ export class FormSubmitDirective extends ConfirmClick {
|
|
|
40
40
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
44
|
-
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
43
|
+
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmitDirective, deps: [{ token: FormDirective }, { token: Router, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
44
|
+
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormSubmitDirective, selector: "[rxapFormSubmit]", inputs: { type: "type", resetAfterSubmit: "resetAfterSubmit", navigateAfterSubmit: "navigateAfterSubmit" }, outputs: { afterSubmit: "afterSubmit" }, host: { listeners: { "click": "onClick()", "confirmed": "onConfirm()" }, properties: { "type": "this.type" } }, usesInheritance: true, ngImport: i0 });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
46
46
|
type: Directive,
|
|
47
47
|
args: [{
|
|
48
48
|
selector: '[rxapFormSubmit]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-submit.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submit.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,KAAK,EAEL,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,GAAG,EACH,IAAI,EACL,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;;;;AAShD,MAAM,OAAO,mBAAoB,SAAQ,YAAY;IAqBnD,YAC0C,aAA4B,EAGnD,SAAwB,IAAI;QAE7C,KAAK,EAAE,CAAA;QALiC,kBAAa,GAAb,aAAa,CAAe;QAGnD,WAAM,GAAN,MAAM,CAAsB;QArBxC,SAAI,GAAW,QAAQ,CAAA;QAWvB,gBAAW,GAAG,IAAI,YAAY,EAAE,CAAC;QAEhC,sBAAiB,GAAY,KAAK,CAAC;IAW3C,CAAC;IAtBD,IACW,gBAAgB,CAAC,KAAmB;QAC7C,IAAI,CAAC,iBAAiB,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAqBS,OAAO;QACf,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CACpD,IAAI,CAAC,CAAC,CAAC,EACP,GAAG,CAAC,KAAK,CAAC,EAAE;YACV,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC1B,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;aAC5B;YACD,IAAI,IAAI,CAAC,mBAAmB,EAAE;gBAE5B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;oBAChB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;iBAClD;gBAED,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;aACvD;YACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;QACd,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnD,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-submit.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submit.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,KAAK,EAEL,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,MAAM,EACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,GAAG,EACH,IAAI,EACL,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;;;;AAShD,MAAM,OAAO,mBAAoB,SAAQ,YAAY;IAqBnD,YAC0C,aAA4B,EAGnD,SAAwB,IAAI;QAE7C,KAAK,EAAE,CAAA;QALiC,kBAAa,GAAb,aAAa,CAAe;QAGnD,WAAM,GAAN,MAAM,CAAsB;QArBxC,SAAI,GAAW,QAAQ,CAAA;QAWvB,gBAAW,GAAG,IAAI,YAAY,EAAE,CAAC;QAEhC,sBAAiB,GAAY,KAAK,CAAC;IAW3C,CAAC;IAtBD,IACW,gBAAgB,CAAC,KAAmB;QAC7C,IAAI,CAAC,iBAAiB,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IAqBS,OAAO;QACf,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CACpD,IAAI,CAAC,CAAC,CAAC,EACP,GAAG,CAAC,KAAK,CAAC,EAAE;YACV,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC7B,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC1B,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;aAC5B;YACD,IAAI,IAAI,CAAC,mBAAmB,EAAE;gBAE5B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;oBAChB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;iBAClD;gBAED,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;aACvD;YACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;QACd,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IACnD,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;iHAtDU,mBAAmB,kBAsBpB,aAAa,aAEb,MAAM;qGAxBL,mBAAmB;4FAAnB,mBAAmB;kBAP/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,IAAI,EAAE;wBACJ,SAAS,EAAE,WAAW;wBACtB,aAAa,EAAE,aAAa;qBAC7B;iBACF;;0BAuBI,MAAM;2BAAC,aAAa;;0BACpB,QAAQ;;0BACR,MAAM;2BAAC,MAAM;4CApBT,IAAI;sBAFV,WAAW;uBAAC,MAAM;;sBAClB,KAAK;gBAIK,gBAAgB;sBAD1B,KAAK;uBAAC,kBAAkB;gBAMlB,mBAAmB;sBADzB,KAAK;gBAIC,WAAW;sBADjB,MAAM","sourcesContent":["import {\n Directive,\n Inject,\n Input,\n OnDestroy,\n Optional,\n HostBinding,\n EventEmitter,\n Output\n} from '@angular/core';\nimport { coerceBoolean } from '@rxap/utilities';\nimport { FormDirective } from './form.directive';\nimport {\n tap,\n take\n} from 'rxjs/operators';\nimport { Subscription } from 'rxjs';\nimport { Router } from '@angular/router';\nimport { ConfirmClick } from '@rxap/directives';\n\n@Directive({\n selector: '[rxapFormSubmit]',\n host: {\n '(click)': 'onClick()',\n '(confirmed)': 'onConfirm()',\n }\n})\nexport class FormSubmitDirective extends ConfirmClick implements OnDestroy {\n\n @HostBinding('type')\n @Input()\n public type: string = 'button'\n\n @Input('resetAfterSubmit')\n public set resetAfterSubmit(value: boolean | '') {\n this._resetAfterSubmit = coerceBoolean(value);\n }\n\n @Input()\n public navigateAfterSubmit?: string[];\n\n @Output()\n public afterSubmit = new EventEmitter();\n\n private _resetAfterSubmit: boolean = false;\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(FormDirective) private readonly formDirective: FormDirective,\n @Optional()\n @Inject(Router)\n private readonly router: Router | null = null\n ) {\n super()\n }\n\n protected execute() {\n this.subscription = this.formDirective.rxapSubmit.pipe(\n take(1),\n tap(event => {\n this.afterSubmit.emit(event);\n if (this._resetAfterSubmit) {\n this.formDirective.reset();\n }\n if (this.navigateAfterSubmit) {\n\n if (!this.router) {\n throw new Error('Could not resolve the router!');\n }\n\n return this.router.navigate(this.navigateAfterSubmit);\n }\n return Promise.resolve();\n })\n ).subscribe();\n this.formDirective.onSubmit(new Event('submit'));\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -22,9 +22,9 @@ export class FormSubmittingDirective {
|
|
|
22
22
|
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
FormSubmittingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
26
|
-
FormSubmittingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
25
|
+
FormSubmittingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmittingDirective, deps: [{ token: FormDirective }, { token: TemplateRef }, { token: ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
26
|
+
FormSubmittingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormSubmittingDirective, selector: "[rxapFormSubmitting]", ngImport: i0 });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormSubmittingDirective, decorators: [{
|
|
28
28
|
type: Directive,
|
|
29
29
|
args: [{
|
|
30
30
|
selector: '[rxapFormSubmitting]'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-submitting.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submitting.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACL,GAAG,EACH,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;;;AAKxB,MAAM,OAAO,uBAAuB;IAIlC,YAC0C,aAA4B,EAC9B,QAA2B,EACtB,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmB;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CACrD,oBAAoB,EAAE,EACtB,GAAG,CAAC,OAAO,CAAC,EAAE;YACZ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACzD;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;
|
|
1
|
+
{"version":3,"file":"form-submitting.directive.js","sourceRoot":"","sources":["../../../../../../libs/forms/src/lib/directives/form-submitting.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACX,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EACL,GAAG,EACH,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;;;AAKxB,MAAM,OAAO,uBAAuB;IAIlC,YAC0C,aAA4B,EAC9B,QAA2B,EACtB,gBAAkC;QAFrC,kBAAa,GAAb,aAAa,CAAe;QAC9B,aAAQ,GAAR,QAAQ,CAAmB;QACtB,qBAAgB,GAAhB,gBAAgB,CAAkB;IAC5E,CAAC;IAEG,eAAe;QACpB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CACrD,oBAAoB,EAAE,EACtB,GAAG,CAAC,OAAO,CAAC,EAAE;YACZ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC9B,IAAI,OAAO,EAAE;gBACX,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACzD;QACH,CAAC,CAAC,CACH,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAEM,WAAW;;QAChB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;;qHAxBU,uBAAuB,kBAKxB,aAAa,aACb,WAAW,aACX,gBAAgB;yGAPf,uBAAuB;4FAAvB,uBAAuB;kBAHnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;iBACjC;;0BAMI,MAAM;2BAAC,aAAa;;0BACpB,MAAM;2BAAC,WAAW;;0BAClB,MAAM;2BAAC,gBAAgB","sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n ViewContainerRef,\n OnDestroy,\n AfterViewInit\n} from '@angular/core';\nimport { FormDirective } from './form.directive';\nimport { Subscription } from 'rxjs';\nimport {\n tap,\n distinctUntilChanged\n} from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapFormSubmitting]'\n})\nexport class FormSubmittingDirective implements AfterViewInit, OnDestroy {\n\n private subscription?: Subscription;\n\n constructor(\n @Inject(FormDirective) private readonly formDirective: FormDirective,\n @Inject(TemplateRef) private readonly template: TemplateRef<void>,\n @Inject(ViewContainerRef) private readonly viewContainerRef: ViewContainerRef\n ) {}\n\n public ngAfterViewInit() {\n this.subscription = this.formDirective.submitting$.pipe(\n distinctUntilChanged(),\n tap(loading => {\n this.viewContainerRef.clear();\n if (loading) {\n this.viewContainerRef.createEmbeddedView(this.template);\n }\n })\n ).subscribe();\n }\n\n public ngOnDestroy() {\n this.subscription?.unsubscribe();\n }\n\n}\n"]}
|
|
@@ -40,7 +40,7 @@ export class FormDirective extends FormGroupDirective {
|
|
|
40
40
|
* Emits when the submit method is executed without errors. The result of the
|
|
41
41
|
* submit method is passed as event object.
|
|
42
42
|
*
|
|
43
|
-
* If no submit method is defined then emit
|
|
43
|
+
* If no submit method is defined then emit after the submit button
|
|
44
44
|
* is clicked.
|
|
45
45
|
*/
|
|
46
46
|
this.rxapSubmit = new EventEmitter();
|
|
@@ -350,8 +350,8 @@ export class FormDirective extends FormGroupDirective {
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
FormDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
354
|
-
FormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.
|
|
353
|
+
FormDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormDirective, deps: [{ token: ChangeDetectorRef }, { token: RXAP_FORM_DEFINITION, optional: true }, { token: RXAP_FORM_SUBMIT_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_LOAD_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_FAILED_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_SUBMIT_SUCCESSFUL_METHOD, optional: true, skipSelf: true }, { token: RXAP_FORM_DEFINITION_BUILDER, optional: true, skipSelf: true }, { token: LoadingIndicatorService, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
354
|
+
FormDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FormDirective, selector: "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", inputs: { initial: "initial", useFormDefinition: ["rxapForm", "useFormDefinition"], submitMethod: "submitMethod" }, outputs: { ngSubmit: "ngSubmit", rxapSubmit: "rxapSubmit", invalidSubmit: "invalidSubmit", submitSuccessful$: "submitSuccessful" }, host: { listeners: { "reset": "onReset()" }, properties: { "class.rxap-submitting": "this.submitting", "class.rxap-submit-error": "this.submitError", "class.rxap-loading": "this.loading", "class.rxap-loaded": "this.loaded", "class.rxap-loading-error": "this.loadingError" } }, providers: [
|
|
355
355
|
{
|
|
356
356
|
provide: ControlContainer,
|
|
357
357
|
// ignore coverage
|
|
@@ -398,7 +398,7 @@ __decorate([
|
|
|
398
398
|
Required,
|
|
399
399
|
__metadata("design:type", Object)
|
|
400
400
|
], FormDirective.prototype, "_formDefinition", void 0);
|
|
401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FormDirective, decorators: [{
|
|
402
402
|
type: Directive,
|
|
403
403
|
args: [{
|
|
404
404
|
selector: 'form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]',
|