@rxap/directives 12.3.0 → 12.3.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.
Files changed (31) hide show
  1. package/bundles/rxap-directives.umd.js +94 -94
  2. package/bundles/rxap-directives.umd.js.map +1 -1
  3. package/esm2015/lib/avatar-background-image.directive.js +7 -7
  4. package/esm2015/lib/avatar-background-image.directive.js.map +1 -1
  5. package/esm2015/lib/background-image.directive.js +7 -7
  6. package/esm2015/lib/background-image.directive.js.map +1 -1
  7. package/esm2015/lib/confirm-click.js +3 -3
  8. package/esm2015/lib/confirm-click.js.map +1 -1
  9. package/esm2015/lib/contenteditable.directive.js +7 -7
  10. package/esm2015/lib/contenteditable.directive.js.map +1 -1
  11. package/esm2015/lib/full-width.directive.js +7 -7
  12. package/esm2015/lib/full-width.directive.js.map +1 -1
  13. package/esm2015/lib/if-truthy.directive.js +7 -7
  14. package/esm2015/lib/if-truthy.directive.js.map +1 -1
  15. package/esm2015/lib/method.directive.js +7 -7
  16. package/esm2015/lib/method.directive.js.map +1 -1
  17. package/esm2015/lib/movable-divider.directive.js +15 -13
  18. package/esm2015/lib/movable-divider.directive.js.map +1 -1
  19. package/esm2015/lib/prevent-default.directive.js +7 -7
  20. package/esm2015/lib/prevent-default.directive.js.map +1 -1
  21. package/esm2015/lib/share-button.directive.js +10 -10
  22. package/esm2015/lib/share-button.directive.js.map +1 -1
  23. package/esm2015/lib/stop-immediate-propagation.directive.js +7 -7
  24. package/esm2015/lib/stop-immediate-propagation.directive.js.map +1 -1
  25. package/esm2015/lib/stop-propagation.directive.js +7 -7
  26. package/esm2015/lib/stop-propagation.directive.js.map +1 -1
  27. package/fesm2015/rxap-directives.js +90 -88
  28. package/fesm2015/rxap-directives.js.map +1 -1
  29. package/package.json +2 -2
  30. package/src/schematics/ng-add/index.js +1 -1
  31. package/src/schematics/ng-add/index.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"if-truthy.directive.js","sourceR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AC,CAAC,CAAC,OAAO,CAAC;YACtE,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;YACzE,OAAO,cAAc,KAAK,WAAW,CAAC;SACvC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;;8GAhEU,iBAAiB;kGAAjB,iBAAiB;2FAAjB,iBAAiB;kBAH7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,gBAAgB;iBAC3B;iKAiBQ,MAAM;sBADZ,KAAK;uBAAC,cAAc;gBAGd,UAAU;sBADhB,KAAK;uBAAC,wBAAwB;gBAGxB,OAAO;sBADb,KAAK;uBAAC,qBAAqB;;AAsD9B,MAAM,OAAO,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAzEvB,iBAAiB,aAAjB,iBAAiB;qHAyEjB,uBAAuB;2FAAvB,uBAAuB;kBAJnC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,iBAAiB,CAAE;oBACnC,OAAO,EAAE,CAAE,iBAAiB,CAAE;iBAC/B","sourcesContent":["import {\n ChangeDetectorRef,\n Directive,\n Input,\n NgModule,\n OnChanges,\n SimpleChanges,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { Method } from '@rxap/utilities/rxjs';\n\nexport interface IfTruthyDirectiveTemplateContext<Data> {\n $implicit: Data;\n}\n\n// TODO : mv to rxap package\n\n@Directive({\n selector: '[rxapIfTruthy]'\n})\nexport class IfTruthyDirective<Data, Parameters = any> implements OnChanges {\n\n /**\n * Asserts the correct type of the context for the template that `NgForOf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgForOf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard<T>(\n dir: IfTruthyDirective<T>,\n ctx: any\n ): ctx is IfTruthyDirectiveTemplateContext<T> {\n return true;\n }\n\n @Input('rxapIfTruthy')\n public method!: Method<Data, Parameters>;\n @Input('rxapIfTruthyParameters')\n public parameters!: Parameters;\n @Input('rxapIfTruthyTrackBy')\n public trackBy!: (data: Data) => any;\n private _last?: Data;\n\n constructor(\n private readonly templateRef: TemplateRef<IfTruthyDirectiveTemplateContext<Data>>,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly cdr: ChangeDetectorRef\n ) {\n }\n\n public ngOnChanges(changes: SimpleChanges) {\n\n if (this.method && this.parameters) {\n this.execute();\n }\n\n }\n\n protected async execute() {\n\n const result = await this.method.call(this.parameters);\n\n if (this.hasChanged(result)) {\n\n this.viewContainerRef.clear();\n\n if (result) {\n this.viewContainerRef.createEmbeddedView(this.templateRef, { $implicit: result });\n }\n\n }\n\n this.cdr.detectChanges();\n\n }\n\n protected hasChanged(current: Data) {\n if (this._last !== undefined) {\n const currentTrackBy = this.trackBy ? this.trackBy(current) : current;\n const lastTrackBy = this.trackBy ? this.trackBy(this._last) : this._last;\n return currentTrackBy !== lastTrackBy;\n }\n\n return true;\n }\n\n\n}\n\n@NgModule({\n declarations: [ IfTruthyDirective ],\n exports: [ IfTruthyDirective ]\n})\nexport class IfTruthyDirectiveModule {\n}\n"]}
1
+ {"version":3,"file":"if-truthy.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/if-truthy.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,KAAK,EACL,QAAQ,EAGR,WAAW,EACX,gBAAgB,EACjB,MAAM,eAAe,CAAC;;AAOvB,4BAA4B;AAK5B,MAAM,OAAO,iBAAiB;IAuB5B,YACmB,WAAgE,EAChE,gBAAkC,EAClC,GAAsB;QAFtB,gBAAW,GAAX,WAAW,CAAqD;QAChE,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,QAAG,GAAH,GAAG,CAAmB;IAEzC,CAAC;IA1BD;;;;;OAKG;IACH,MAAM,CAAC,sBAAsB,CAC3B,GAAyB,EACzB,GAAQ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gBAGxB,OAAO;sBADb,KAAK;uBAAC,qBAAqB;;AAsD9B,MAAM,OAAO,uBAAuB;;qHAAvB,uBAAuB;sHAAvB,uBAAuB,iBAzEvB,iBAAiB,aAAjB,iBAAiB;sHAyEjB,uBAAuB;4FAAvB,uBAAuB;kBAJnC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,iBAAiB,CAAE;oBACnC,OAAO,EAAE,CAAE,iBAAiB,CAAE;iBAC/B","sourcesContent":["import {\n ChangeDetectorRef,\n Directive,\n Input,\n NgModule,\n OnChanges,\n SimpleChanges,\n TemplateRef,\n ViewContainerRef\n} from '@angular/core';\nimport { Method } from '@rxap/utilities/rxjs';\n\nexport interface IfTruthyDirectiveTemplateContext<Data> {\n $implicit: Data;\n}\n\n// TODO : mv to rxap package\n\n@Directive({\n selector: '[rxapIfTruthy]'\n})\nexport class IfTruthyDirective<Data, Parameters = any> implements OnChanges {\n\n /**\n * Asserts the correct type of the context for the template that `NgForOf` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `NgForOf` structural directive renders its template with a specific context type.\n */\n static ngTemplateContextGuard<T>(\n dir: IfTruthyDirective<T>,\n ctx: any\n ): ctx is IfTruthyDirectiveTemplateContext<T> {\n return true;\n }\n\n @Input('rxapIfTruthy')\n public method!: Method<Data, Parameters>;\n @Input('rxapIfTruthyParameters')\n public parameters!: Parameters;\n @Input('rxapIfTruthyTrackBy')\n public trackBy!: (data: Data) => any;\n private _last?: Data;\n\n constructor(\n private readonly templateRef: TemplateRef<IfTruthyDirectiveTemplateContext<Data>>,\n private readonly viewContainerRef: ViewContainerRef,\n private readonly cdr: ChangeDetectorRef\n ) {\n }\n\n public ngOnChanges(changes: SimpleChanges) {\n\n if (this.method && this.parameters) {\n this.execute();\n }\n\n }\n\n protected async execute() {\n\n const result = await this.method.call(this.parameters);\n\n if (this.hasChanged(result)) {\n\n this.viewContainerRef.clear();\n\n if (result) {\n this.viewContainerRef.createEmbeddedView(this.templateRef, { $implicit: result });\n }\n\n }\n\n this.cdr.detectChanges();\n\n }\n\n protected hasChanged(current: Data) {\n if (this._last !== undefined) {\n const currentTrackBy = this.trackBy ? this.trackBy(current) : current;\n const lastTrackBy = this.trackBy ? this.trackBy(this._last) : this._last;\n return currentTrackBy !== lastTrackBy;\n }\n\n return true;\n }\n\n\n}\n\n@NgModule({\n declarations: [ IfTruthyDirective ],\n exports: [ IfTruthyDirective ]\n})\nexport class IfTruthyDirectiveModule {\n}\n"]}
@@ -73,9 +73,9 @@ export class MethodDirective {
73
73
  this.successful$.emit(result);
74
74
  }
75
75
  }
76
- MethodDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
77
- MethodDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: MethodDirective, selector: "[rxapMethod]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], method: ["rxapMethod", "method"], parameters: "parameters", immediately: "immediately" }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick()" } }, exportAs: ["rxapMethod"], ngImport: i0 });
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MethodDirective, decorators: [{
76
+ MethodDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
77
+ MethodDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MethodDirective, selector: "[rxapMethod]", inputs: { hasConfirmDirective: ["rxapConfirm", "hasConfirmDirective"], method: ["rxapMethod", "method"], parameters: "parameters", immediately: "immediately" }, outputs: { executed$: "executed", failure$: "failure", successful$: "successful" }, host: { listeners: { "confirmed": "onConfirmed()", "click": "onClick()" } }, exportAs: ["rxapMethod"], ngImport: i0 });
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MethodDirective, decorators: [{
79
79
  type: Directive,
80
80
  args: [{
81
81
  selector: '[rxapMethod]',
@@ -109,10 +109,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
109
109
  }] } });
110
110
  export class MethodDirectiveModule {
111
111
  }
112
- MethodDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MethodDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
113
- MethodDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MethodDirectiveModule, declarations: [MethodDirective], exports: [MethodDirective] });
114
- MethodDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MethodDirectiveModule });
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MethodDirectiveModule, decorators: [{
112
+ MethodDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MethodDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
113
+ MethodDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MethodDirectiveModule, declarations: [MethodDirective], exports: [MethodDirective] });
114
+ MethodDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MethodDirectiveModule });
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MethodDirectiveModule, decorators: [{
116
116
  type: NgModule,
117
117
  args: [{
118
118
  declarations: [MethodDirective],
@@ -1 +1 @@
1
- {"version":3,"file":"method.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/method.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAEL,aAAa,EACd,MAAM,sBAAsB,CAAC;;AAM9B,MAAM,OAAO,eAAe;IA0B1B;QAxBQ,yBAAoB,GAAG,KAAK,CAAC;QAY9B,gBAAW,GAAY,KAAK,CAAC;QAE7B,cAAS,GAAc,IAAI,YAAY,EAAE,CAAC;QAE1C,aAAQ,GAAe,IAAI,YAAY,EAAS,CAAC;QAEjD,gBAAW,GAAY,IAAI,YAAY,EAAc,CAAC;QAC7D;;WAEG;QACI,eAAU,GAAa,IAAI,aAAa,EAAE,CAAC;IAElC,CAAC;IAtBjB,IACW,mBAAmB,CAAC,KAAU;QACvC,IAAI,CAAC,oBAAoB,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACnD,CAAC;IAqBM,QAAQ;QACb,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,OAAO,EAAE,CAAC;SAChB;IACH,CAAC;IAGM,WAAW;QAChB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IAGM,OAAO;QACZ,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC9B,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;SACvB;aAAM;YACL,IAAI,SAAS,EAAE,EAAE;gBACf,OAAO,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC3D;SACF;QACD,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3B,CAAC;IAEY,OAAO;;YAClB,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC;YACzB,IAAI;gBAC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sBADZ,KAAK;uBAAC,YAAY;gBAGZ,UAAU;sBADhB,KAAK;gBAGC,WAAW;sBADjB,KAAK;gBAGC,SAAS;sBADf,MAAM;uBAAC,UAAU;gBAGX,QAAQ;sBADd,MAAM;uBAAC,SAAS;gBAGV,WAAW;sBADjB,MAAM;uBAAC,YAAY;gBAgBb,WAAW;sBADjB,YAAY;uBAAC,WAAW;gBAMlB,OAAO;sBADb,YAAY;uBAAC,OAAO;;AAsDvB,MAAM,OAAO,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBA7FrB,eAAe,aAAf,eAAe;mHA6Ff,qBAAqB;2FAArB,qBAAqB;kBAJjC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,eAAe,CAAE;oBACjC,OAAO,EAAO,CAAE,eAAe,CAAE;iBAClC","sourcesContent":["import {\n Directive,\n NgModule,\n Input,\n Output,\n EventEmitter,\n HostListener,\n isDevMode,\n OnInit\n} from '@angular/core';\nimport { coerceBoolean } from '@rxap/utilities';\nimport {\n Method,\n ToggleSubject\n} from '@rxap/utilities/rxjs';\n\n@Directive({\n selector: '[rxapMethod]',\n exportAs: 'rxapMethod'\n})\nexport class MethodDirective<ReturnType = any, Parameters = any> implements OnInit {\n\n private _hasConfirmDirective = false;\n\n @Input('rxapConfirm')\n public set hasConfirmDirective(value: any) {\n this._hasConfirmDirective = coerceBoolean(value);\n }\n\n @Input('rxapMethod')\n public method!: Method<ReturnType, Parameters>;\n @Input()\n public parameters?: Parameters;\n @Input()\n public immediately: boolean = false;\n @Output('executed')\n public executed$ = new EventEmitter();\n @Output('failure')\n public failure$ = new EventEmitter<Error>();\n @Output('successful')\n public successful$ = new EventEmitter<ReturnType>();\n /**\n * true - a remote method call is in progress\n */\n public executing$ = new ToggleSubject();\n\n constructor() { }\n\n public ngOnInit() {\n if (this.immediately) {\n this.execute();\n }\n }\n\n @HostListener('confirmed')\n public onConfirmed() {\n return this.execute();\n }\n\n @HostListener('click')\n public onClick() {\n if (!this._hasConfirmDirective) {\n return this.execute();\n } else {\n if (isDevMode()) {\n console.debug('Skip method call. Wait for confirmation.');\n }\n }\n return Promise.resolve();\n }\n\n public async execute(): Promise<void> {\n this.executing$.enable();\n try {\n const result = await this.method.call(this.parameters);\n this.executed(result);\n this.successful(result);\n } catch (error) {\n if (isDevMode()) {\n console.error(`Method directive execution failed:`, error.message);\n }\n this.failure(error);\n } finally {\n this.executing$.disable();\n }\n }\n\n public setParameter<Key extends keyof Parameters>(parameterKey: Key, value: Parameters[Key]): void {\n this.updateParameters({ [ parameterKey ]: value } as any);\n }\n\n public updateParameters(parameters: Partial<Parameters>): void {\n this.parameters = { ...(this.parameters ?? {}), ...parameters } as any;\n }\n\n protected executed(result: any) {\n this.executed$.emit(result);\n }\n\n protected failure(error: Error) {\n this.failure$.emit(error);\n }\n\n protected successful(result: ReturnType) {\n this.successful$.emit(result);\n }\n\n}\n\n@NgModule({\n declarations: [ MethodDirective ],\n exports: [ MethodDirective ]\n})\nexport class MethodDirectiveModule {}\n"]}
1
+ {"version":3,"file":"method.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/method.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,KAAK,EACL,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAEL,aAAa,EACd,MAAM,sBAAsB,CAAC;;AAM9B,MAAM,OAAO,eAAe;IA0B1B;QAxBQ,yBAAoB,GAAG,KAAK,CAAC;QAY9B,gBAAW,GAAY,KAAK,CAAC;QAE7B,cAAS,GAAc,IAAI,YAAY,EAAE,CAAC;QAE1C,aAAQ,GAAe,IAAI,YAAY,EAAS,CAAC;QAEjD,gBAAW,GAAY,IAAI,YAAY,EAAc,CAAC;QAC7D;;WAEG;QACI,eAAU,GAAa,IAAI,aAAa,EAAE,CAAC;IAElC,CA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AgB,CAAC,UAA+B;;QACrD,IAAI,CAAC,UAAU,GAAG,gCAAK,CAAC,MAAA,IAAI,CAAC,UAAU,mCAAI,EAAE,CAAC,GAAK,UAAU,CAAS,CAAC;IACzE,CAAC;IAES,QAAQ,CAAC,MAAW;QAC5B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAES,OAAO,CAAC,KAAY;QAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAES,UAAU,CAAC,MAAkB;QACrC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;;6GArFU,eAAe;iGAAf,eAAe;4FAAf,eAAe;kBAJ3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,cAAc;oBACxB,QAAQ,EAAE,YAAY;iBACvB;0EAMY,mBAAmB;sBAD7B,KAAK;uBAAC,aAAa;gBAMb,MAAM;sBADZ,KAAK;uBAAC,YAAY;gBAGZ,UAAU;sBADhB,KAAK;gBAGC,WAAW;sBADjB,KAAK;gBAGC,SAAS;sBADf,MAAM;uBAAC,UAAU;gBAGX,QAAQ;sBADd,MAAM;uBAAC,SAAS;gBAGV,WAAW;sBADjB,MAAM;uBAAC,YAAY;gBAgBb,WAAW;sBADjB,YAAY;uBAAC,WAAW;gBAMlB,OAAO;sBADb,YAAY;uBAAC,OAAO;;AAsDvB,MAAM,OAAO,qBAAqB;;mHAArB,qBAAqB;oHAArB,qBAAqB,iBA7FrB,eAAe,aAAf,eAAe;oHA6Ff,qBAAqB;4FAArB,qBAAqB;kBAJjC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,eAAe,CAAE;oBACjC,OAAO,EAAO,CAAE,eAAe,CAAE;iBAClC","sourcesContent":["import {\n Directive,\n NgModule,\n Input,\n Output,\n EventEmitter,\n HostListener,\n isDevMode,\n OnInit\n} from '@angular/core';\nimport { coerceBoolean } from '@rxap/utilities';\nimport {\n Method,\n ToggleSubject\n} from '@rxap/utilities/rxjs';\n\n@Directive({\n selector: '[rxapMethod]',\n exportAs: 'rxapMethod'\n})\nexport class MethodDirective<ReturnType = any, Parameters = any> implements OnInit {\n\n private _hasConfirmDirective = false;\n\n @Input('rxapConfirm')\n public set hasConfirmDirective(value: any) {\n this._hasConfirmDirective = coerceBoolean(value);\n }\n\n @Input('rxapMethod')\n public method!: Method<ReturnType, Parameters>;\n @Input()\n public parameters?: Parameters;\n @Input()\n public immediately: boolean = false;\n @Output('executed')\n public executed$ = new EventEmitter();\n @Output('failure')\n public failure$ = new EventEmitter<Error>();\n @Output('successful')\n public successful$ = new EventEmitter<ReturnType>();\n /**\n * true - a remote method call is in progress\n */\n public executing$ = new ToggleSubject();\n\n constructor() { }\n\n public ngOnInit() {\n if (this.immediately) {\n this.execute();\n }\n }\n\n @HostListener('confirmed')\n public onConfirmed() {\n return this.execute();\n }\n\n @HostListener('click')\n public onClick() {\n if (!this._hasConfirmDirective) {\n return this.execute();\n } else {\n if (isDevMode()) {\n console.debug('Skip method call. Wait for confirmation.');\n }\n }\n return Promise.resolve();\n }\n\n public async execute(): Promise<void> {\n this.executing$.enable();\n try {\n const result = await this.method.call(this.parameters);\n this.executed(result);\n this.successful(result);\n } catch (error) {\n if (isDevMode()) {\n console.error(`Method directive execution failed:`, error.message);\n }\n this.failure(error);\n } finally {\n this.executing$.disable();\n }\n }\n\n public setParameter<Key extends keyof Parameters>(parameterKey: Key, value: Parameters[Key]): void {\n this.updateParameters({ [ parameterKey ]: value } as any);\n }\n\n public updateParameters(parameters: Partial<Parameters>): void {\n this.parameters = { ...(this.parameters ?? {}), ...parameters } as any;\n }\n\n protected executed(result: any) {\n this.executed$.emit(result);\n }\n\n protected failure(error: Error) {\n this.failure$.emit(error);\n }\n\n protected successful(result: ReturnType) {\n this.successful$.emit(result);\n }\n\n}\n\n@NgModule({\n declarations: [ MethodDirective ],\n exports: [ MethodDirective ]\n})\nexport class MethodDirectiveModule {}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
- import { Directive, HostBinding, HostListener, Input, NgModule, Renderer2 } from '@angular/core';
2
+ import { Directive, HostBinding, HostListener, Input, NgModule, Renderer2, isDevMode } from '@angular/core';
3
3
  import { Required } from '@rxap/utilities';
4
4
  import { fromEvent, Subscription } from 'rxjs';
5
5
  import { tap } from 'rxjs/operators';
@@ -37,11 +37,13 @@ export class MovableDividerDirective {
37
37
  this._fixedElementWidth = $event.clientX - this.containerElement.getBoundingClientRect().left;
38
38
  }
39
39
  else if (this.origin === 'left') {
40
- console.log({
41
- clientWidth: this.containerElement.clientWidth,
42
- clientX: $event.clientX,
43
- clientLeft: this.containerElement.getBoundingClientRect().left
44
- });
40
+ if (isDevMode()) {
41
+ console.log({
42
+ clientWidth: this.containerElement.clientWidth,
43
+ clientX: $event.clientX,
44
+ clientLeft: this.containerElement.getBoundingClientRect().left
45
+ });
46
+ }
45
47
  this._fixedElementWidth = this.containerElement.clientWidth - $event.clientX + this.containerElement.getBoundingClientRect().left;
46
48
  }
47
49
  else {
@@ -59,8 +61,8 @@ export class MovableDividerDirective {
59
61
  this._moveDivider = true;
60
62
  }
61
63
  }
62
- MovableDividerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MovableDividerDirective, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
63
- MovableDividerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: MovableDividerDirective, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 });
64
+ MovableDividerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MovableDividerDirective, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
65
+ MovableDividerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: MovableDividerDirective, selector: "[rxapMovableDivider]", inputs: { containerElement: "containerElement", fixedElement: "fixedElement", origin: "origin" }, host: { listeners: { "mousedown": "onMousedown()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 });
64
66
  __decorate([
65
67
  Required,
66
68
  __metadata("design:type", HTMLDivElement)
@@ -69,7 +71,7 @@ __decorate([
69
71
  Required,
70
72
  __metadata("design:type", HTMLDivElement)
71
73
  ], MovableDividerDirective.prototype, "fixedElement", void 0);
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MovableDividerDirective, decorators: [{
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MovableDividerDirective, decorators: [{
73
75
  type: Directive,
74
76
  args: [{
75
77
  selector: '[rxapMovableDivider]'
@@ -89,10 +91,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
89
91
  }] } });
90
92
  export class MovableDividerDirectiveModule {
91
93
  }
92
- MovableDividerDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MovableDividerDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
93
- MovableDividerDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MovableDividerDirectiveModule, declarations: [MovableDividerDirective], exports: [MovableDividerDirective] });
94
- MovableDividerDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MovableDividerDirectiveModule });
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: MovableDividerDirectiveModule, decorators: [{
94
+ MovableDividerDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MovableDividerDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
95
+ MovableDividerDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MovableDividerDirectiveModule, declarations: [MovableDividerDirective], exports: [MovableDividerDirective] });
96
+ MovableDividerDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MovableDividerDirectiveModule });
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: MovableDividerDirectiveModule, decorators: [{
96
98
  type: NgModule,
97
99
  args: [{
98
100
  declarations: [MovableDividerDirective],
@@ -1 +1 @@
1
- {"version":3,"file":"movable-divider.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/movable-divider.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACZ,KAAK,EACL,QAAQ,EAGR,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;AAKrC,MAAM,OAAO,uBAAuB;IA4BlC,YAA6B,QAAmB;QAAnB,aAAQ,GAAR,QAAQ,CAAW;QAjBzC,WAAM,GAA+B,OAAO,CAAC;QAE7C,WAAM,GAA+B,WAAW,CAAC;QAChD,kBAAa,GAAuB,IAAI,YAAY,EAAE,CAAC;QAC/D;;;WAGG;QACK,iBAAY,GAAwB,KAAK,CAAC;QAClD;;;;;WAKG;QACK,uBAAkB,GAAkB,IAAI,CAAC;IAEG,CAAC;IAE9C,WAAW;;QAChB,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@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n fromEvent,\n Subscription\n} from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapMovableDivider]'\n})\nexport class MovableDividerDirective implements OnDestroy, OnInit {\n\n @Input()\n @Required\n public containerElement!: HTMLDivElement;\n\n @Input()\n @Required\n public fixedElement!: HTMLDivElement;\n\n @Input()\n public origin: 'right' | 'left' = 'right';\n @HostBinding('style.cursor')\n public cursor = 'ew-resize';\n private _subscription = new Subscription();\n /**\n * Indicates that the divider is moved with mouse down\n * @private\n */\n private _moveDivider = false;\n /**\n * Holds the current fixed element width.\n * If null the move divider feature was not yet used and the initial\n * fixed element width is not calculated\n * @private\n */\n private _fixedElementWidth: number | null = null;\n\n constructor(private readonly renderer: Renderer2) { }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription.add(fromEvent<MouseEvent>(this.containerElement, 'mousemove').pipe(\n tap(($event: MouseEvent) => {\n if (this._moveDivider) {\n if (!this._fixedElementWidth) {\n this._fixedElementWidth = this.fixedElement.clientWidth as number;\n }\n if (this.origin === 'right') {\n this._fixedElementWidth = $event.clientX - this.containerElement.getBoundingClientRect().left;\n } else if (this.origin === 'left') {\n console.log({\n clientWidth: this.containerElement.clientWidth,\n clientX: $event.clientX,\n clientLeft: this.containerElement.getBoundingClientRect().left\n });\n this._fixedElementWidth = this.containerElement.clientWidth - $event.clientX + this.containerElement.getBoundingClientRect().left;\n } else {\n throw new Error(`The origin '${this.origin}' is not supported.`);\n }\n const width = this._fixedElementWidth + 'px';\n this.renderer.setStyle(this.fixedElement, 'max-width', width);\n this.renderer.setStyle(this.fixedElement, 'min-width', width);\n this.renderer.setStyle(this.fixedElement, 'flex-basis', width);\n }\n })\n ).subscribe());\n this._subscription.add(fromEvent(this.containerElement, 'mouseup').pipe(\n tap(() => this._moveDivider = false)\n ).subscribe());\n }\n\n @HostListener('mousedown')\n public onMousedown() {\n this._moveDivider = true;\n }\n\n}\n\n@NgModule({\n declarations: [ MovableDividerDirective ],\n exports: [ MovableDividerDirective ]\n})\nexport class MovableDividerDirectiveModule {}\n"]}
1
+ {"version":3,"file":"movable-divider.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/movable-divider.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,YAAY,EACZ,KAAK,EACL,QAAQ,EAGR,SAAS,EACT,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,SAAS,EACT,YAAY,EACb,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;;AAKrC,MAAM,OAAO,uBAAuB;IA4BlC,YAA6B,QAAmB;QAAnB,aAAQ,GAAR,QAAQ,CAAW;QAjBzC,WAAM,GAA+B,OAAO,CAAC;QAE7C,WAAM,GAA+B,WAAW,CAAC;QAChD,kBAAa,GAAuB,IAAI,YAAY,EAAE,CAAC;QAC/D;;;WAGG;QACK,iBAAY,GAAwB,KAAK,CAAC;QAClD;;;;;WAKG;QACK,uBAAkB,GAAkB,IAAI,CAAC;IAEG,CAAC;IAE9C,WAAW;;QAChB,MAAA,IAAI,CAAC,aAAa,0CAAE,WAAW,EAAE,CAAC;IACpC,CAAC;IAEM,QAAQ;QACb,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAa,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC,IAAI,CACnF,GAAG,CAAC,CAAC,MAAkB,EAAE,EAAE;YACzB,IAAI,IAAI,CAAC,YAAY,EAAE;gBACrB,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;oBAC5B,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,YAAY,CAAC,WAAqB,CAAC;iBACnE;gBACD,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,EAAE;oB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AAC,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,CACrC,CAAC,SAAS,EAAE,CAAC,CAAC;IACjB,CAAC;IAGM,WAAW;QAChB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;;qHAtEU,uBAAuB;yGAAvB,uBAAuB;AAIlC;IADC,QAAQ;8BACiB,cAAc;iEAAC;AAIzC;IADC,QAAQ;8BACa,cAAc;6DAAC;4FAR1B,uBAAuB;kBAHnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;iBACjC;gGAKQ,gBAAgB;sBAFtB,KAAK;gBAMC,YAAY;sBAFlB,KAAK;gBAKC,MAAM;sBADZ,KAAK;gBAGC,MAAM;sBADZ,WAAW;uBAAC,cAAc;gBAwDpB,WAAW;sBADjB,YAAY;uBAAC,WAAW;;AAW3B,MAAM,OAAO,6BAA6B;;2HAA7B,6BAA6B;4HAA7B,6BAA6B,iBA9E7B,uBAAuB,aAAvB,uBAAuB;4HA8EvB,6BAA6B;4FAA7B,6BAA6B;kBAJzC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,uBAAuB,CAAE;oBACzC,OAAO,EAAO,CAAE,uBAAuB,CAAE;iBAC1C","sourcesContent":["import {\n Directive,\n HostBinding,\n HostListener,\n Input,\n NgModule,\n OnDestroy,\n OnInit,\n Renderer2,\n isDevMode\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\nimport {\n fromEvent,\n Subscription\n} from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Directive({\n selector: '[rxapMovableDivider]'\n})\nexport class MovableDividerDirective implements OnDestroy, OnInit {\n\n @Input()\n @Required\n public containerElement!: HTMLDivElement;\n\n @Input()\n @Required\n public fixedElement!: HTMLDivElement;\n\n @Input()\n public origin: 'right' | 'left' = 'right';\n @HostBinding('style.cursor')\n public cursor = 'ew-resize';\n private _subscription = new Subscription();\n /**\n * Indicates that the divider is moved with mouse down\n * @private\n */\n private _moveDivider = false;\n /**\n * Holds the current fixed element width.\n * If null the move divider feature was not yet used and the initial\n * fixed element width is not calculated\n * @private\n */\n private _fixedElementWidth: number | null = null;\n\n constructor(private readonly renderer: Renderer2) { }\n\n public ngOnDestroy() {\n this._subscription?.unsubscribe();\n }\n\n public ngOnInit() {\n this._subscription.add(fromEvent<MouseEvent>(this.containerElement, 'mousemove').pipe(\n tap(($event: MouseEvent) => {\n if (this._moveDivider) {\n if (!this._fixedElementWidth) {\n this._fixedElementWidth = this.fixedElement.clientWidth as number;\n }\n if (this.origin === 'right') {\n this._fixedElementWidth = $event.clientX - this.containerElement.getBoundingClientRect().left;\n } else if (this.origin === 'left') {\n if (isDevMode()) {\n console.log({\n clientWidth: this.containerElement.clientWidth,\n clientX: $event.clientX,\n clientLeft: this.containerElement.getBoundingClientRect().left\n });\n }\n this._fixedElementWidth = this.containerElement.clientWidth - $event.clientX + this.containerElement.getBoundingClientRect().left;\n } else {\n throw new Error(`The origin '${this.origin}' is not supported.`);\n }\n const width = this._fixedElementWidth + 'px';\n this.renderer.setStyle(this.fixedElement, 'max-width', width);\n this.renderer.setStyle(this.fixedElement, 'min-width', width);\n this.renderer.setStyle(this.fixedElement, 'flex-basis', width);\n }\n })\n ).subscribe());\n this._subscription.add(fromEvent(this.containerElement, 'mouseup').pipe(\n tap(() => this._moveDivider = false)\n ).subscribe());\n }\n\n @HostListener('mousedown')\n public onMousedown() {\n this._moveDivider = true;\n }\n\n}\n\n@NgModule({\n declarations: [ MovableDividerDirective ],\n exports: [ MovableDividerDirective ]\n})\nexport class MovableDividerDirectiveModule {}\n"]}
@@ -5,9 +5,9 @@ export class PreventDefaultDirective {
5
5
  $event.preventDefault();
6
6
  }
7
7
  }
8
- PreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- PreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: PreventDefaultDirective, selector: "[rxapPreventDefault]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PreventDefaultDirective, decorators: [{
8
+ PreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ PreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PreventDefaultDirective, selector: "[rxapPreventDefault]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreventDefaultDirective, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[rxapPreventDefault]'
@@ -18,10 +18,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
18
18
  }] } });
19
19
  export class PreventDefaultDirectiveModule {
20
20
  }
21
- PreventDefaultDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PreventDefaultDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
22
- PreventDefaultDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PreventDefaultDirectiveModule, declarations: [PreventDefaultDirective], exports: [PreventDefaultDirective] });
23
- PreventDefaultDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PreventDefaultDirectiveModule });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: PreventDefaultDirectiveModule, decorators: [{
21
+ PreventDefaultDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreventDefaultDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
22
+ PreventDefaultDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreventDefaultDirectiveModule, declarations: [PreventDefaultDirective], exports: [PreventDefaultDirective] });
23
+ PreventDefaultDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreventDefaultDirectiveModule });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PreventDefaultDirectiveModule, decorators: [{
25
25
  type: NgModule,
26
26
  args: [{
27
27
  exports: [PreventDefaultDirective],
@@ -1 +1 @@
1
- {"version":3,"file":"prevent-default.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/prevent-default.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,YAAY,EACb,MAAM,eAAe,CAAC;;AAKvB,MAAM,OAAO,uBAAuB;IAG3B,OAAO,CAAC,MAAa;QAC1B,MAAM,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;;oHALU,uBAAuB;wGAAvB,uBAAuB;2FAAvB,uBAAuB;kBAHnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;iBACjC;8BAIQ,OAAO;sBADb,YAAY;uBAAC,OAAO,EAAE,CAAE,QAAQ,CAAE;;AAWrC,MAAM,OAAO,6BAA6B;;0HAA7B,6BAA6B;2HAA7B,6BAA6B,iBAb7B,uBAAuB,aAAvB,uBAAuB;2HAavB,6BAA6B;2FAA7B,6BAA6B;kBAJzC,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,uBAAuB,CAAE;oBACzC,YAAY,EAAE,CAAE,uBAAuB,CAAE;iBAC1C","sourcesContent":["import {\n Directive,\n NgModule,\n HostListener\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapPreventDefault]'\n})\nexport class PreventDefaultDirective {\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event): void {\n $event.preventDefault();\n }\n\n}\n\n@NgModule({\n exports: [ PreventDefaultDirective ],\n declarations: [ PreventDefaultDirective ]\n})\nexport class PreventDefaultDirectiveModule {}\n"]}
1
+ {"version":3,"file":"prevent-default.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/prevent-default.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,YAAY,EACb,MAAM,eAAe,CAAC;;AAKvB,MAAM,OAAO,uBAAuB;IAG3B,OAAO,CAAC,MAAa;QAC1B,MAAM,CAAC,cAAc,EAAE,CAAC;IAC1B,CAAC;;qHALU,uBAAuB;yGAAvB,uBAAuB;4FAAvB,uBAAuB;kBAHnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,sBAAsB;iBACjC;8BAIQ,OAAO;sBADb,YAAY;uBAAC,OAAO,EAAE,CAAE,QAAQ,CAAE;;AAWrC,MAAM,OAAO,6BAA6B;;2HAA7B,6BAA6B;4HAA7B,6BAA6B,iBAb7B,uBAAuB,aAAvB,uBAAuB;4HAavB,6BAA6B;4FAA7B,6BAA6B;kBAJzC,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,uBAAuB,CAAE;oBACzC,YAAY,EAAE,CAAE,uBAAuB,CAAE;iBAC1C","sourcesContent":["import {\n Directive,\n NgModule,\n HostListener\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapPreventDefault]'\n})\nexport class PreventDefaultDirective {\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event): void {\n $event.preventDefault();\n }\n\n}\n\n@NgModule({\n exports: [ PreventDefaultDirective ],\n declarations: [ PreventDefaultDirective ]\n})\nexport class PreventDefaultDirectiveModule {}\n"]}
@@ -23,9 +23,9 @@ export class ShareService {
23
23
  return !!navigator.share;
24
24
  }
25
25
  }
26
- ShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
27
- ShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareService, providedIn: 'root' });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareService, decorators: [{
26
+ ShareService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
27
+ ShareService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareService, providedIn: 'root' });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareService, decorators: [{
29
29
  type: Injectable,
30
30
  args: [{ providedIn: 'root' }]
31
31
  }] });
@@ -39,13 +39,13 @@ export class ShareButtonDirective {
39
39
  .catch(err => console.error('share failed', err.message));
40
40
  }
41
41
  }
42
- ShareButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0.ɵɵFactoryTarget.Directive });
43
- ShareButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: ShareButtonDirective, selector: "[rxapShareButton]", inputs: { url: "url", text: "text", title: "title", files: "files" }, host: { listeners: { "click": "share()" } }, ngImport: i0 });
42
+ ShareButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareButtonDirective, deps: [{ token: ShareService }], target: i0.ɵɵFactoryTarget.Directive });
43
+ ShareButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ShareButtonDirective, selector: "[rxapShareButton]", inputs: { url: "url", text: "text", title: "title", files: "files" }, host: { listeners: { "click": "share()" } }, ngImport: i0 });
44
44
  __decorate([
45
45
  Required,
46
46
  __metadata("design:type", String)
47
47
  ], ShareButtonDirective.prototype, "title", void 0);
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareButtonDirective, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareButtonDirective, decorators: [{
49
49
  type: Directive,
50
50
  args: [{
51
51
  selector: '[rxapShareButton]'
@@ -64,10 +64,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
64
64
  }] } });
65
65
  export class ShareButtonDirectiveModule {
66
66
  }
67
- ShareButtonDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
68
- ShareButtonDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareButtonDirectiveModule, declarations: [ShareButtonDirective], exports: [ShareButtonDirective] });
69
- ShareButtonDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareButtonDirectiveModule });
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ShareButtonDirectiveModule, decorators: [{
67
+ ShareButtonDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareButtonDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
68
+ ShareButtonDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareButtonDirectiveModule, declarations: [ShareButtonDirective], exports: [ShareButtonDirective] });
69
+ ShareButtonDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareButtonDirectiveModule });
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ShareButtonDirectiveModule, decorators: [{
71
71
  type: NgModule,
72
72
  args: [{
73
73
  exports: [ShareButtonDirective],
@@ -1 +1 @@
1
- {"version":3,"file":"share-button.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/share-button.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,KAAK,EACL,UAAU,EACV,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAG3C,MAAM,OAAO,YAAY;IAEV,KAAK,CAAC,IAAkF;;YAEnG,IAAI,IAAI,CAAC,gBAAgB,EAAE,EAAE;gBAE3B,IAAK,SAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;oBAErC,MAAO,SAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAEtC;qBAAM;oBACL,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;oBACnC,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;iBACzD;aAEF;iBAAM;gBACL,KAAK,CAAC,gCAAgC,CAAC,CAAC;aACzC;QAEH,CAAC;KAAA;IAEO,gBAAgB;QACtB,OAAO,CAAC,CAAE,SAAiB,CAAC,KAAK,CAAC;IACpC,CAAC;;yGAvBU,YAAY;6GAAZ,YAAY,cADC,MAAM;2FACnB,YAAY;kBADxB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;AA+BlC,MAAM,OAAO,oBAAoB;IAe/B,YAA6B,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAAG,CAAC;IAGpD,KAAK;QACV,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;aAC5F,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;aAC7C,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;IAChE,CAAC;;iHAtBU,oBAAoB,kBAeY,YAAY;qGAf5C,oBAAoB;AAU/B;IADC,QAAQ;;mDACa;2FAVX,oBAAoB;kBAHhC,SAAS;mBAAC;oBACT,QAAQ,EAAE,mBAAmB;iBAC9B;0DAgB4C,YAAY,0BAZhD,GAAG;sBADT,KAAK;gBAIC,IAAI;sBADV,KAAK;gBAKC,KAAK;sBAFX,KAAK;gBAKC,KAAK;sBADX,KAAK;gBAMC,KAAK;sBADX,YAAY;uBAAC,OAAO;;AAavB,MAAM,OAAO,0BAA0B;;uHAA1B,0BAA0B;wHAA1B,0BAA0B,iBA9B1B,oBAAoB,aAApB,oBAAoB;wHA8BpB,0BAA0B;2FAA1B,0BAA0B;kBAJtC,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,oBAAoB,CAAE;oBACtC,YAAY,EAAE,CAAE,oBAAoB,CAAE;iBACvC","sourcesContent":["import {\n Directive,\n HostListener,\n Input,\n Injectable,\n NgModule\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\n\n@Injectable({ providedIn: 'root' })\nexport class ShareService {\n\n public async share(data: { url?: string, text?: string, title?: string, files?: ReadonlyArray<File> }) {\n\n if (this.isShareSupported()) {\n\n if ((navigator as any).canShare(data)) {\n\n await (navigator as any).share(data);\n\n } else {\n console.debug('share data:', data);\n throw new Error('Can not share data. Data is invalid!');\n }\n\n } else {\n alert('Native share is not supported!');\n }\n\n }\n\n private isShareSupported(): boolean {\n return !!(navigator as any).share;\n }\n\n}\n\n@Directive({\n selector: '[rxapShareButton]'\n})\nexport class ShareButtonDirective {\n\n @Input()\n public url!: string;\n\n @Input()\n public text!: string;\n\n @Input()\n @Required\n public title!: string;\n\n @Input()\n public files?: ReadonlyArray<File>;\n\n constructor(private readonly shareService: ShareService) {}\n\n @HostListener('click')\n public share() {\n this.shareService.share({ url: this.url, text: this.text, files: this.files, title: this.title })\n .then(() => console.log('share successfully'))\n .catch(err => console.error('share failed', err.message));\n }\n\n}\n\n@NgModule({\n exports: [ ShareButtonDirective ],\n declarations: [ ShareButtonDirective ]\n})\nexport class ShareButtonDirectiveModule {\n\n}\n"]}
1
+ {"version":3,"file":"share-button.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/share-button.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,YAAY,EACZ,KAAK,EACL,UAAU,EACV,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;AAG3C,MAAM,OAAO,YAAY;IAEV,KAAK,CAAC,IAAkF;;YAEnG,IAAI,IAAI,CAAC,gBAAgB,EAAE,EAAE;gBAE3B,IAAK,SAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;oBAErC,MAAO,SAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAEtC;qBAAM;oBACL,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;oBACnC,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;iBACzD;aAEF;iBAAM;gBACL,KAAK,CAAC,gCAAgC,CAAC,CAAC;aACzC;QAEH,CAAC;KAAA;IAEO,gBAAgB;QACtB,OAAO,CAAC,CAAE,SAAiB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n Injectable,\n NgModule\n} from '@angular/core';\nimport { Required } from '@rxap/utilities';\n\n@Injectable({ providedIn: 'root' })\nexport class ShareService {\n\n public async share(data: { url?: string, text?: string, title?: string, files?: ReadonlyArray<File> }) {\n\n if (this.isShareSupported()) {\n\n if ((navigator as any).canShare(data)) {\n\n await (navigator as any).share(data);\n\n } else {\n console.debug('share data:', data);\n throw new Error('Can not share data. Data is invalid!');\n }\n\n } else {\n alert('Native share is not supported!');\n }\n\n }\n\n private isShareSupported(): boolean {\n return !!(navigator as any).share;\n }\n\n}\n\n@Directive({\n selector: '[rxapShareButton]'\n})\nexport class ShareButtonDirective {\n\n @Input()\n public url!: string;\n\n @Input()\n public text!: string;\n\n @Input()\n @Required\n public title!: string;\n\n @Input()\n public files?: ReadonlyArray<File>;\n\n constructor(private readonly shareService: ShareService) {}\n\n @HostListener('click')\n public share() {\n this.shareService.share({ url: this.url, text: this.text, files: this.files, title: this.title })\n .then(() => console.log('share successfully'))\n .catch(err => console.error('share failed', err.message));\n }\n\n}\n\n@NgModule({\n exports: [ ShareButtonDirective ],\n declarations: [ ShareButtonDirective ]\n})\nexport class ShareButtonDirectiveModule {\n\n}\n"]}
@@ -5,9 +5,9 @@ export class StopImmediatePropagationDirective {
5
5
  $event.stopImmediatePropagation();
6
6
  }
7
7
  }
8
- StopImmediatePropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopImmediatePropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- StopImmediatePropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: StopImmediatePropagationDirective, selector: "[rxapStopImmediatePropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopImmediatePropagationDirective, decorators: [{
8
+ StopImmediatePropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopImmediatePropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ StopImmediatePropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: StopImmediatePropagationDirective, selector: "[rxapStopImmediatePropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopImmediatePropagationDirective, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[rxapStopImmediatePropagation]'
@@ -18,10 +18,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
18
18
  }] } });
19
19
  export class StopImmediatePropagationDirectiveModule {
20
20
  }
21
- StopImmediatePropagationDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopImmediatePropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
22
- StopImmediatePropagationDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopImmediatePropagationDirectiveModule, declarations: [StopImmediatePropagationDirective], exports: [StopImmediatePropagationDirective] });
23
- StopImmediatePropagationDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopImmediatePropagationDirectiveModule });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopImmediatePropagationDirectiveModule, decorators: [{
21
+ StopImmediatePropagationDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopImmediatePropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
22
+ StopImmediatePropagationDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopImmediatePropagationDirectiveModule, declarations: [StopImmediatePropagationDirective], exports: [StopImmediatePropagationDirective] });
23
+ StopImmediatePropagationDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopImmediatePropagationDirectiveModule });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopImmediatePropagationDirectiveModule, decorators: [{
25
25
  type: NgModule,
26
26
  args: [{
27
27
  exports: [StopImmediatePropagationDirective],
@@ -1 +1 @@
1
- {"version":3,"file":"stop-immediate-propagation.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/stop-immediate-propagation.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,YAAY,EACb,MAAM,eAAe,CAAC;;AAKvB,MAAM,OAAO,iCAAiC;IAGrC,OAAO,CAAC,MAAa;QAC1B,MAAM,CAAC,wBAAwB,EAAE,CAAC;IACpC,CAAC;;8HALU,iCAAiC;kHAAjC,iCAAiC;2FAAjC,iCAAiC;kBAH7C,SAAS;mBAAC;oBACT,QAAQ,EAAE,gCAAgC;iBAC3C;8BAIQ,OAAO;sBADb,YAAY;uBAAC,OAAO,EAAE,CAAE,QAAQ,CAAE;;AAWrC,MAAM,OAAO,uCAAuC;;oIAAvC,uCAAuC;qIAAvC,uCAAuC,iBAbvC,iCAAiC,aAAjC,iCAAiC;qIAajC,uCAAuC;2FAAvC,uCAAuC;kBAJnD,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,iCAAiC,CAAE;oBACnD,YAAY,EAAE,CAAE,iCAAiC,CAAE;iBACpD","sourcesContent":["import {\n Directive,\n NgModule,\n HostListener\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapStopImmediatePropagation]'\n})\nexport class StopImmediatePropagationDirective {\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event): void {\n $event.stopImmediatePropagation();\n }\n\n}\n\n@NgModule({\n exports: [ StopImmediatePropagationDirective ],\n declarations: [ StopImmediatePropagationDirective ]\n})\nexport class StopImmediatePropagationDirectiveModule {}\n"]}
1
+ {"version":3,"file":"stop-immediate-propagation.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/stop-immediate-propagation.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,YAAY,EACb,MAAM,eAAe,CAAC;;AAKvB,MAAM,OAAO,iCAAiC;IAGrC,OAAO,CAAC,MAAa;QAC1B,MAAM,CAAC,wBAAwB,EAAE,CAAC;IACpC,CAAC;;+HALU,iCAAiC;mHAAjC,iCAAiC;4FAAjC,iCAAiC;kBAH7C,SAAS;mBAAC;oBACT,QAAQ,EAAE,gCAAgC;iBAC3C;8BAIQ,OAAO;sBADb,YAAY;uBAAC,OAAO,EAAE,CAAE,QAAQ,CAAE;;AAWrC,MAAM,OAAO,uCAAuC;;qIAAvC,uCAAuC;sIAAvC,uCAAuC,iBAbvC,iCAAiC,aAAjC,iCAAiC;sIAajC,uCAAuC;4FAAvC,uCAAuC;kBAJnD,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,iCAAiC,CAAE;oBACnD,YAAY,EAAE,CAAE,iCAAiC,CAAE;iBACpD","sourcesContent":["import {\n Directive,\n NgModule,\n HostListener\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapStopImmediatePropagation]'\n})\nexport class StopImmediatePropagationDirective {\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event): void {\n $event.stopImmediatePropagation();\n }\n\n}\n\n@NgModule({\n exports: [ StopImmediatePropagationDirective ],\n declarations: [ StopImmediatePropagationDirective ]\n})\nexport class StopImmediatePropagationDirectiveModule {}\n"]}
@@ -5,9 +5,9 @@ export class StopPropagationDirective {
5
5
  $event.stopPropagation();
6
6
  }
7
7
  }
8
- StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
- StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: StopPropagationDirective, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopPropagationDirective, decorators: [{
8
+ StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
9
+ StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: StopPropagationDirective, selector: "[rxapStopPropagation]", host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopPropagationDirective, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  selector: '[rxapStopPropagation]'
@@ -18,10 +18,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
18
18
  }] } });
19
19
  export class StopPropagationDirectiveModule {
20
20
  }
21
- StopPropagationDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopPropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
22
- StopPropagationDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopPropagationDirectiveModule, declarations: [StopPropagationDirective], exports: [StopPropagationDirective] });
23
- StopPropagationDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopPropagationDirectiveModule });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: StopPropagationDirectiveModule, decorators: [{
21
+ StopPropagationDirectiveModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopPropagationDirectiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
22
+ StopPropagationDirectiveModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopPropagationDirectiveModule, declarations: [StopPropagationDirective], exports: [StopPropagationDirective] });
23
+ StopPropagationDirectiveModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopPropagationDirectiveModule });
24
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: StopPropagationDirectiveModule, decorators: [{
25
25
  type: NgModule,
26
26
  args: [{
27
27
  exports: [StopPropagationDirective],
@@ -1 +1 @@
1
- {"version":3,"file":"stop-propagation.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/stop-propagation.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,YAAY,EACb,MAAM,eAAe,CAAC;;AAKvB,MAAM,OAAO,wBAAwB;IAG5B,OAAO,CAAC,MAAa;QAC1B,MAAM,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;;qHALU,wBAAwB;yGAAxB,wBAAwB;2FAAxB,wBAAwB;kBAHpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;iBAClC;8BAIQ,OAAO;sBADb,YAAY;uBAAC,OAAO,EAAE,CAAE,QAAQ,CAAE;;AAWrC,MAAM,OAAO,8BAA8B;;2HAA9B,8BAA8B;4HAA9B,8BAA8B,iBAb9B,wBAAwB,aAAxB,wBAAwB;4HAaxB,8BAA8B;2FAA9B,8BAA8B;kBAJ1C,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,wBAAwB,CAAE;oBAC1C,YAAY,EAAE,CAAE,wBAAwB,CAAE;iBAC3C","sourcesContent":["import {\n Directive,\n NgModule,\n HostListener\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapStopPropagation]'\n})\nexport class StopPropagationDirective {\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event): void {\n $event.stopPropagation();\n }\n\n}\n\n@NgModule({\n exports: [ StopPropagationDirective ],\n declarations: [ StopPropagationDirective ]\n})\nexport class StopPropagationDirectiveModule {}\n"]}
1
+ {"version":3,"file":"stop-propagation.directive.js","sourceRoot":"","sources":["../../../../../libs/directives/src/lib/stop-propagation.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,YAAY,EACb,MAAM,eAAe,CAAC;;AAKvB,MAAM,OAAO,wBAAwB;IAG5B,OAAO,CAAC,MAAa;QAC1B,MAAM,CAAC,eAAe,EAAE,CAAC;IAC3B,CAAC;;sHALU,wBAAwB;0GAAxB,wBAAwB;4FAAxB,wBAAwB;kBAHpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;iBAClC;8BAIQ,OAAO;sBADb,YAAY;uBAAC,OAAO,EAAE,CAAE,QAAQ,CAAE;;AAWrC,MAAM,OAAO,8BAA8B;;4HAA9B,8BAA8B;6HAA9B,8BAA8B,iBAb9B,wBAAwB,aAAxB,wBAAwB;6HAaxB,8BAA8B;4FAA9B,8BAA8B;kBAJ1C,QAAQ;mBAAC;oBACR,OAAO,EAAO,CAAE,wBAAwB,CAAE;oBAC1C,YAAY,EAAE,CAAE,wBAAwB,CAAE;iBAC3C","sourcesContent":["import {\n Directive,\n NgModule,\n HostListener\n} from '@angular/core';\n\n@Directive({\n selector: '[rxapStopPropagation]'\n})\nexport class StopPropagationDirective {\n\n @HostListener('click', [ '$event' ])\n public onClick($event: Event): void {\n $event.stopPropagation();\n }\n\n}\n\n@NgModule({\n exports: [ StopPropagationDirective ],\n declarations: [ StopPropagationDirective ]\n})\nexport class StopPropagationDirectiveModule {}\n"]}