monkey-front-core 0.0.148 → 0.0.151

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 (24) hide show
  1. package/esm2020/lib/core/directives/index.mjs +3 -1
  2. package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +19 -6
  3. package/esm2020/lib/core/directives/monkeyecx-popover-options.directive.mjs +39 -0
  4. package/esm2020/lib/core/directives/monkeyecx-popover.directive.mjs +198 -0
  5. package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +1 -1
  6. package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +11 -3
  7. package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +12 -1
  8. package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +93 -22
  9. package/esm2020/lib/monkey-front-core.module.mjs +6 -6
  10. package/fesm2015/monkey-front-core.mjs +357 -38
  11. package/fesm2015/monkey-front-core.mjs.map +1 -1
  12. package/fesm2020/monkey-front-core.mjs +374 -43
  13. package/fesm2020/monkey-front-core.mjs.map +1 -1
  14. package/lib/core/directives/index.d.ts +2 -0
  15. package/lib/core/directives/monkeyecx-directives-module.d.ts +5 -1
  16. package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +19 -0
  17. package/lib/core/directives/monkeyecx-popover.directive.d.ts +38 -0
  18. package/lib/core/interfaces/schedules/monkeyecx-request-schedule.d.ts +2 -0
  19. package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +3 -0
  20. package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +21 -3
  21. package/lib/monkey-front-core.module.d.ts +4 -4
  22. package/monkey-front-core-0.0.151.tgz +0 -0
  23. package/package.json +2 -1
  24. package/monkey-front-core-0.0.148.tgz +0 -0
@@ -3,6 +3,8 @@ export * from './monkeyecx-format-currency';
3
3
  export * from './monkeyecx-format-upper';
4
4
  export * from './monkeyecx-only-alpha-numeric-directive';
5
5
  export * from './monkeyecx-only-number-directive';
6
+ export * from './monkeyecx-popover-options.directive';
7
+ export * from './monkeyecx-popover.directive';
6
8
  export * from './monkeyecx-security-directive';
7
9
  export * from './monkeyecx-tooltip-directive';
8
10
  export * from './monkeyecx-directives-module';
@@ -7,8 +7,12 @@ import * as i5 from "./monkeyecx-only-alpha-numeric-directive";
7
7
  import * as i6 from "./monkeyecx-only-number-directive";
8
8
  import * as i7 from "./monkeyecx-security-directive";
9
9
  import * as i8 from "./monkeyecx-tooltip-directive";
10
+ import * as i9 from "./monkeyecx-popover.directive";
11
+ import * as i10 from "./monkeyecx-popover-options.directive";
12
+ import * as i11 from "@angular/common";
13
+ import * as i12 from "@angular/cdk/overlay";
10
14
  export declare class MonkeyEcxDirectivesModule {
11
15
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxDirectivesModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyEcxDirectivesModule, [typeof i1.MonkeyEcxDragDropDirective, typeof i2.MonkeyEcxFormatCurrency, typeof i3.MonkeyEcxFeatureDirective, typeof i4.MonkeyEcxFormatUpper, typeof i5.MonkeyEcxOnlyAlphaNumericDirective, typeof i6.MonkeyEcxOnlyNumbersDirective, typeof i7.MonkeyEcxSecurityDirective, typeof i8.MonkeyEcxTooltipDirective], never, [typeof i1.MonkeyEcxDragDropDirective, typeof i2.MonkeyEcxFormatCurrency, typeof i3.MonkeyEcxFeatureDirective, typeof i4.MonkeyEcxFormatUpper, typeof i5.MonkeyEcxOnlyAlphaNumericDirective, typeof i6.MonkeyEcxOnlyNumbersDirective, typeof i7.MonkeyEcxSecurityDirective, typeof i8.MonkeyEcxTooltipDirective]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyEcxDirectivesModule, [typeof i1.MonkeyEcxDragDropDirective, typeof i2.MonkeyEcxFormatCurrency, typeof i3.MonkeyEcxFeatureDirective, typeof i4.MonkeyEcxFormatUpper, typeof i5.MonkeyEcxOnlyAlphaNumericDirective, typeof i6.MonkeyEcxOnlyNumbersDirective, typeof i7.MonkeyEcxSecurityDirective, typeof i8.MonkeyEcxTooltipDirective, typeof i9.MonkeyEcxPopoverDirective, typeof i10.MonkeyEcxPopoverOptionsDirective], [typeof i11.CommonModule, typeof i12.OverlayModule], [typeof i1.MonkeyEcxDragDropDirective, typeof i2.MonkeyEcxFormatCurrency, typeof i3.MonkeyEcxFeatureDirective, typeof i4.MonkeyEcxFormatUpper, typeof i5.MonkeyEcxOnlyAlphaNumericDirective, typeof i6.MonkeyEcxOnlyNumbersDirective, typeof i7.MonkeyEcxSecurityDirective, typeof i8.MonkeyEcxTooltipDirective, typeof i9.MonkeyEcxPopoverDirective, typeof i10.MonkeyEcxPopoverOptionsDirective]>;
13
17
  static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyEcxDirectivesModule>;
14
18
  }
@@ -0,0 +1,19 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const POPOVER_OPTIONS: InjectionToken<unknown>;
4
+ export declare type PopoverDir = 'rtl' | 'ltr' | 'trtl' | 'tltr' | 'ct' | 'cc' | 'cr' | 'rt' | 'rb' | 'lt' | 'lb';
5
+ export interface MonkeyEcxPopoverOptions {
6
+ dir?: PopoverDir;
7
+ minwidth?: boolean;
8
+ backdrop?: boolean;
9
+ contextmenu?: boolean;
10
+ }
11
+ export declare class MonkeyEcxPopoverOptionsDirective implements MonkeyEcxPopoverOptions {
12
+ set options(options: MonkeyEcxPopoverOptions);
13
+ minwidth?: boolean;
14
+ dir?: PopoverDir;
15
+ backdrop?: boolean;
16
+ contextmenu?: boolean;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxPopoverOptionsDirective, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyEcxPopoverOptionsDirective, "[monkeyecxPopoverOptions]", never, { "options": "monkeyecxPopoverOptions"; }, {}, never>;
19
+ }
@@ -0,0 +1,38 @@
1
+ import { ConnectedPosition, FlexibleConnectedPositionStrategyOrigin, Overlay, OverlayPositionBuilder } from '@angular/cdk/overlay';
2
+ import { ChangeDetectorRef, ElementRef, NgZone, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
3
+ import type { PopoverDir, MonkeyEcxPopoverOptions } from './monkeyecx-popover-options.directive';
4
+ import * as i0 from "@angular/core";
5
+ export declare class MonkeyEcxPopoverDirective implements OnDestroy {
6
+ private tpl;
7
+ private vcr;
8
+ private el;
9
+ private zone;
10
+ private _viewContainerRef;
11
+ private _cd;
12
+ private overlay;
13
+ private overlayPositionBuilder;
14
+ private options;
15
+ private _popover;
16
+ get popover(): boolean;
17
+ set popover(show: boolean);
18
+ closed: (e: MouseEvent) => void;
19
+ private _target;
20
+ get target(): HTMLElement;
21
+ set target(target: HTMLElement);
22
+ minwidth: boolean;
23
+ backdrop: boolean;
24
+ watch: boolean;
25
+ dir: PopoverDir;
26
+ contextmenu: boolean;
27
+ height: number | string;
28
+ private overlayRef;
29
+ private positionStrategy;
30
+ private templatePortal;
31
+ private subs;
32
+ constructor(tpl: TemplateRef<any>, vcr: ViewContainerRef, el: ElementRef, zone: NgZone, _viewContainerRef: ViewContainerRef, _cd: ChangeDetectorRef, overlay: Overlay, overlayPositionBuilder: OverlayPositionBuilder, options: MonkeyEcxPopoverOptions);
33
+ getDirPositions(dir?: PopoverDir): ConnectedPosition[];
34
+ createPopover(origin?: FlexibleConnectedPositionStrategyOrigin, options?: MonkeyEcxPopoverOptions): void;
35
+ ngOnDestroy(): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxPopoverDirective, [null, null, null, null, null, null, null, null, { optional: true; }]>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyEcxPopoverDirective, "[monkeyecxPopover]", never, { "popover": "monkeyecxPopover"; "closed": "monkeyecxPopoverClosed"; "target": "monkeyecxPopoverTarget"; "minwidth": "monkeyecxPopoverMinwidth"; "backdrop": "monkeyecxPopoverBackdrop"; "watch": "monkeyecxPopoverWatch"; "dir": "monkeyecxPopoverDir"; "contextmenu": "monkeyecxPopoverContextmenu"; "height": "monkeyecxPopoverHeight"; }, {}, never>;
38
+ }
@@ -1,3 +1,4 @@
1
+ import { HttpErrorResponse } from '@angular/common/http';
1
2
  import { MonkeyEcxRequestQueue } from '../request-queue';
2
3
  export interface MonkeyEcxRequestSchedule {
3
4
  id?: string;
@@ -6,6 +7,7 @@ export interface MonkeyEcxRequestSchedule {
6
7
  params?: any;
7
8
  data?: any;
8
9
  action(data: any, sch: MonkeyEcxRequestSchedule): void;
10
+ errorAction?(data: any, sch: MonkeyEcxRequestSchedule, err?: HttpErrorResponse): void;
9
11
  queue?: MonkeyEcxRequestQueue;
10
12
  interval?: any;
11
13
  }
@@ -2,9 +2,12 @@ import { MonkeyEcxRequestSchedule } from '../../interfaces';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class MonkeyEcxLoggedHandlingService {
4
4
  private schedules;
5
+ private genericSchedules;
5
6
  constructor();
6
7
  private destroySchedule;
8
+ private destroyGenericSchedule;
7
9
  addSchedule(sch: MonkeyEcxRequestSchedule[]): void;
10
+ addGenericSchedule(sch: MonkeyEcxRequestSchedule[]): void;
8
11
  destroy(): void;
9
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxLoggedHandlingService, never>;
10
13
  static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxLoggedHandlingService>;
@@ -1,16 +1,21 @@
1
+ import { HttpErrorResponse } from '@angular/common/http';
2
+ import { MonkeyEcxRequestSchedule } from '../../interfaces';
1
3
  import { MonkeyEcxService } from '../monkeyecx-service.service';
2
4
  import { MonkeyEcxLoggedHandlingService } from '../logged';
3
- import { MonkeyEcxRequestSchedule } from '../../interfaces';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class MonkeyEcxRequestScheduleService {
6
7
  monkeyecxService: MonkeyEcxService;
7
- private monkeyecxLoggedHandlingService;
8
+ private monkeyLoggedHandlingService;
8
9
  private schedule;
9
- constructor(monkeyecxService: MonkeyEcxService, monkeyecxLoggedHandlingService: MonkeyEcxLoggedHandlingService);
10
+ private genericSchedule;
11
+ constructor(monkeyecxService: MonkeyEcxService, monkeyLoggedHandlingService: MonkeyEcxLoggedHandlingService);
10
12
  private addToSchedule;
13
+ private addToGenericSchedule;
11
14
  private removeFromSchedule;
15
+ private removeFromGenericSchedule;
12
16
  private removeFromScheduleById;
13
17
  private doCall;
18
+ private doGenericCall;
14
19
  setSchedule(q: MonkeyEcxRequestSchedule, delay?: number): {
15
20
  id: string;
16
21
  interval: number;
@@ -19,9 +24,22 @@ export declare class MonkeyEcxRequestScheduleService {
19
24
  params?: any;
20
25
  data?: any;
21
26
  action(data: any, sch: MonkeyEcxRequestSchedule): void;
27
+ errorAction?(data: any, sch: MonkeyEcxRequestSchedule, err?: HttpErrorResponse | undefined): void;
28
+ queue?: import("../../interfaces").MonkeyEcxRequestQueue | undefined;
29
+ };
30
+ setGenericSchedule(q: MonkeyEcxRequestSchedule, delay?: number): {
31
+ id: string;
32
+ interval: number;
33
+ url: string;
34
+ method: string;
35
+ params?: any;
36
+ data?: any;
37
+ action(data: any, sch: MonkeyEcxRequestSchedule): void;
38
+ errorAction?(data: any, sch: MonkeyEcxRequestSchedule, err?: HttpErrorResponse | undefined): void;
22
39
  queue?: import("../../interfaces").MonkeyEcxRequestQueue | undefined;
23
40
  };
24
41
  removeSchedule(q: MonkeyEcxRequestSchedule): void;
42
+ removeGenericSchedule(q: MonkeyEcxRequestSchedule): void;
25
43
  removeScheduleById(id: string): void;
26
44
  getScheduleById(id: string): any;
27
45
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxRequestScheduleService, never>;
@@ -9,8 +9,8 @@ import * as i7 from "monkey-style-guide";
9
9
  import * as i8 from "@angular/service-worker";
10
10
  import * as i9 from "./components/closed-to-maintenance/closed-to-maintenance.module";
11
11
  import * as i10 from "./components/version-changed/version-changed.module";
12
- export declare class MonkeyFrontCoreModuleModule {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFrontCoreModuleModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyFrontCoreModuleModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule, typeof i3.TranslateModule, typeof i4.MonkeyEcxConfigModule, typeof i5.MonkeyEcxHttpConfigInterceptorModule, typeof i6.MonkeyEcxErrorHandlingModule, typeof i7.MonkeyStyleGuideModule, typeof i8.ServiceWorkerModule, typeof i9.ClosedToMaintenanceModule, typeof i10.VersionChangedModule], never>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyFrontCoreModuleModule>;
12
+ export declare class MonkeyFrontCoreModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyFrontCoreModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyFrontCoreModule, never, [typeof i1.CommonModule, typeof i2.HttpClientModule, typeof i3.TranslateModule, typeof i4.MonkeyEcxConfigModule, typeof i5.MonkeyEcxHttpConfigInterceptorModule, typeof i6.MonkeyEcxErrorHandlingModule, typeof i7.MonkeyStyleGuideModule, typeof i8.ServiceWorkerModule, typeof i9.ClosedToMaintenanceModule, typeof i10.VersionChangedModule], never>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyFrontCoreModule>;
16
16
  }
Binary file
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "monkey-front-core",
3
- "version": "0.0.148",
3
+ "version": "0.0.151",
4
4
  "peerDependencies": {
5
+ "@angular/cdk": "^13.1.1",
5
6
  "@angular/common": "^13.1.1",
6
7
  "@angular/core": "^13.1.1",
7
8
  "@angular/router": "^13.1.1",
Binary file