@arsedizioni/ars-utils 19.0.96 → 19.0.99

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.
@@ -0,0 +1,43 @@
1
+ import { DateAdapter, MatDateFormats } from '@angular/material/core';
2
+ import { Locale } from 'date-fns';
3
+ import * as i0 from "@angular/core";
4
+ export declare const MAT_DATE_FNS_FORMATS: MatDateFormats;
5
+ /** Adds date-fns support to Angular Material. */
6
+ export declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
7
+ constructor(matDateLocale: null);
8
+ getYear(date: Date): number;
9
+ getMonth(date: Date): number;
10
+ getDate(date: Date): number;
11
+ getDayOfWeek(date: Date): number;
12
+ getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
13
+ getDateNames(): string[];
14
+ getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
15
+ getYearName(date: Date): string;
16
+ getFirstDayOfWeek(): number;
17
+ getNumDaysInMonth(date: Date): number;
18
+ clone(date: Date): Date;
19
+ createDate(year: number, month: number, date: number): Date;
20
+ today(): Date;
21
+ parse(value: any, parseFormat: string | string[]): Date | null;
22
+ format(date: Date, displayFormat: string): string;
23
+ addCalendarYears(date: Date, years: number): Date;
24
+ addCalendarMonths(date: Date, months: number): Date;
25
+ addCalendarDays(date: Date, days: number): Date;
26
+ toIso8601(date: Date): string;
27
+ /**
28
+ * Returns the given value if given a valid Date or null. Deserializes valid ISO 8601 strings
29
+ * (https://www.ietf.org/rfc/rfc3339.txt) into valid Dates and empty string into null. Returns an
30
+ * invalid date for all other values.
31
+ */
32
+ deserialize(value: any): Date | null;
33
+ isDateInstance(obj: any): boolean;
34
+ isValid(date: Date): boolean;
35
+ invalid(): Date;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsAdapter, [{ optional: true; }]>;
37
+ static ɵprov: i0.ɵɵInjectableDeclaration<DateFnsAdapter>;
38
+ }
39
+ export declare class ArsDateFnsModule {
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArsDateFnsModule, never>;
41
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ArsDateFnsModule, never, never, never>;
42
+ static ɵinj: i0.ɵɵInjectorDeclaration<ArsDateFnsModule>;
43
+ }
@@ -1,4 +1,5 @@
1
1
  export * from './core.module';
2
+ export * from './dateFnsAdapter.module';
2
3
  export * from './directives/changeDateIntervalDirective';
3
4
  export * from './directives/copyClipboardDirective';
4
5
  export * from './directives/autoFocusDirective';
@@ -3852,7 +3852,6 @@ class ClipperBrowserDialogComponent {
3852
3852
  .pipe(takeUntil(this.unsubscribe))
3853
3853
  .subscribe(message => {
3854
3854
  if (message.id === ClipperMessages.DOCUMENT_SELECTED_INNER) {
3855
- console.log(JSON.stringify(message));
3856
3855
  const document = this.clipperBrowser().getSnapshotDocument(message.data.documentId || message.data.id);
3857
3856
  if (document) {
3858
3857
  this.broadcastService.sendMessage(ClipperMessages.DOCUMENT_SELECTED, [document]);