@eqproject/eqp-dynamic-module 2.6.42 → 2.6.44

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.
@@ -11,6 +11,7 @@ import { MatDialog, MatDialogRef } from "@angular/material/dialog";
11
11
  import { Router } from "@angular/router";
12
12
  import { DynamicLoaderDirectiveData, eventOut } from "../../../../directives/dynamic-loader/dynamic-loader.directive";
13
13
  import { FireTrigger } from '../../../../models/trigger.model';
14
+ import { dbDateService } from "projects/eqp-dynamic-module/src/lib/services/db-date.service";
14
15
  import * as i0 from "@angular/core";
15
16
  type Panel = {
16
17
  record: Record;
@@ -23,6 +24,7 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
23
24
  private changeDetector;
24
25
  private dialog;
25
26
  private router;
27
+ private dbDateService;
26
28
  configurations: DynamicModuleListConfig;
27
29
  compileConfigurations: DynamicModuleCompileConfig;
28
30
  outCompileConfigurations: DynamicModuleCompileConfig;
@@ -68,7 +70,7 @@ export declare class ListViewFormRecordComponent implements OnInit, OnChanges {
68
70
  dragReleased: EventEmitter<void>;
69
71
  out: EventEmitter<eventOut>;
70
72
  fireTrigger: EventEmitter<FireTrigger>;
71
- constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef, dialog: MatDialog, router: Router);
73
+ constructor(utilityHelperService: UtilityHelperService, changeDetector: ChangeDetectorRef, dialog: MatDialog, router: Router, dbDateService: dbDateService);
72
74
  ngOnInit(): void;
73
75
  ngOnChanges(changes: SimpleChanges): void;
74
76
  onOpening(indice: number): void;
@@ -0,0 +1,24 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class dbDateService {
3
+ /**
4
+ * Parse date to visualize as a string
5
+ */
6
+ parseDate(date: Date): string;
7
+ parseTime(date: Date): string;
8
+ addZeroesOnData(numero: number): string;
9
+ parseDatefromDB(dirtyDateMeasurement: any): Date;
10
+ isDateFromServer(date: any): boolean;
11
+ isDateInstance(date: any): boolean;
12
+ parseDatefromDBMilliseconds(dirtyDateMeasurement: any): Date;
13
+ prepareHourforDB(dirtyHour: Date): Date;
14
+ parseForHour(allMinutes: number): number;
15
+ /**
16
+ * Rounds a number to the our preferred number of decimal places.
17
+ * @param number the number we want to round
18
+ * @param decimals how many decimal places we want the rounded number to have
19
+ * @returns the rounded number
20
+ */
21
+ roundDecimals(number: number, decimals: number): number;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<dbDateService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<dbDateService>;
24
+ }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "EqProject"
6
6
  },
7
- "version": "2.6.42",
7
+ "version": "2.6.44",
8
8
  "peerDependencies": {
9
9
  "@angular-material-components/datetime-picker": "^15.0.0",
10
10
  "@angular-material-components/moment-adapter": "^15.0.0",