@rxap/forms 12.6.0 → 12.6.1

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.
@@ -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,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,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;;0HArBU,6BAA6B,kBAK9B,aAAa,aACb,WAAW,aACX,gBAAgB;8GAPf,6BAA6B;2FAA7B,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: Error }>,\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"]}
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;;0HArBU,6BAA6B,kBAK9B,aAAa,aACb,WAAW,aACX,gBAAgB;8GAPf,6BAA6B;2FAA7B,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"]}