@arsedizioni/ars-utils 22.6.85 → 22.6.88

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 (79) hide show
  1. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3158 -3344
  2. package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
  3. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
  4. package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
  5. package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
  6. package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
  7. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
  8. package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
  9. package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
  10. package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
  11. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
  12. package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
  13. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
  14. package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
  15. package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
  16. package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
  17. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
  18. package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
  19. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
  20. package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
  21. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
  22. package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
  23. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
  24. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
  25. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
  26. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
  27. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
  28. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
  29. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
  30. package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
  31. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
  32. package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
  33. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
  34. package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
  35. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
  36. package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
  37. package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
  38. package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
  39. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
  40. package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
  41. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
  42. package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
  43. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
  44. package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
  45. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
  46. package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
  47. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
  48. package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
  49. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
  50. package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
  51. package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
  52. package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
  53. package/package.json +1 -1
  54. package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
  55. package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
  56. package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
  57. package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
  58. package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
  59. package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
  60. package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
  61. package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
  62. package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
  63. package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
  64. package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
  65. package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
  66. package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
  67. package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
  68. package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
  69. package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
  70. package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
  71. package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
  72. package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
  73. package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
  74. package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
  75. package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
  76. package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
  77. package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
  78. package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
  79. package/types/arsedizioni-ars-utils.d.ts +1 -3
@@ -1,194 +1,193 @@
1
- import * as i0 from '@angular/core';
2
- import { EnvironmentProviders, InjectionToken } from '@angular/core';
3
- import { DateAdapter, MatDateFormats } from '@angular/material/core';
4
- import { Locale } from 'date-fns';
5
- import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
6
- import { Observable } from 'rxjs';
7
-
8
- declare const MAT_DATE_FNS_FORMATS: MatDateFormats;
1
+ import * as i0 from "@angular/core";
2
+ import { EnvironmentProviders, InjectionToken } from "@angular/core";
3
+ import { DateAdapter, MatDateFormats } from "@angular/material/core";
4
+ import { Locale } from "date-fns";
5
+ import { HttpEvent, HttpHandler, HttpInterceptor, HttpInterceptorFn, HttpRequest } from "@angular/common/http";
6
+ import { Observable } from "rxjs";
7
+ export declare const MAT_DATE_FNS_FORMATS: MatDateFormats;
9
8
  /**
10
9
  * date-fns adapter that integrates Angular Material's date picker with the date-fns library,
11
10
  * applying `Europe/Rome` timezone for all parsed and created dates.
12
11
  */
13
- declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
14
- constructor();
15
- /**
16
- * Wraps a date/instant into a Europe/Rome TZDate whose JSON serialisation emits a
17
- * naive local datetime string ("yyyy-MM-dd'T'HH:mm:ss") instead of a UTC instant,
18
- * so the wall-clock value the user entered is preserved end-to-end (no timezone shift).
19
- * @param value - The source Date or Unix timestamp in milliseconds.
20
- * @returns a Europe/Rome TZDate whose toJSON yields a naive local datetime string.
21
- */
22
- private static toLocal;
23
- /**
24
- * Returns the year component of the given date.
25
- * @param date - The source date.
26
- */
27
- getYear(date: Date): number;
28
- /**
29
- * Returns the zero-based month index of the given date (0 = January).
30
- * @param date - The source date.
31
- */
32
- getMonth(date: Date): number;
33
- /**
34
- * Returns the day-of-month of the given date (1-based).
35
- * @param date - The source date.
36
- */
37
- getDate(date: Date): number;
38
- /**
39
- * Returns the day-of-week of the given date (0 = Sunday).
40
- * @param date - The source date.
41
- */
42
- getDayOfWeek(date: Date): number;
43
- /**
44
- * Returns an array of 12 month name strings formatted for the active locale.
45
- * @param style - One of `'long'`, `'short'`, or `'narrow'`.
46
- */
47
- getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
48
- /**
49
- * Returns an array of 31 day-of-month label strings formatted using `Intl.DateTimeFormat`
50
- * when available, falling back to plain numeric strings.
51
- */
52
- getDateNames(): string[];
53
- /**
54
- * Returns an array of 7 day-of-week name strings formatted for the active locale.
55
- * @param style - One of `'long'`, `'short'`, or `'narrow'`.
56
- */
57
- getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
58
- /**
59
- * Returns the four-digit year string for the given date.
60
- * @param date - The source date.
61
- */
62
- getYearName(date: Date): string;
63
- /**
64
- * Returns the first day of the week for the active locale (0 = Sunday, 1 = Monday, …).
65
- */
66
- getFirstDayOfWeek(): number;
67
- /**
68
- * Returns the number of days in the month of the given date.
69
- * @param date - The source date.
70
- */
71
- getNumDaysInMonth(date: Date): number;
72
- /**
73
- * Creates an independent copy of the given date.
74
- * @param date - The date to clone.
75
- */
76
- clone(date: Date): Date;
77
- /**
78
- * Creates a `Date` in the `Europe/Rome` timezone for the given year, month, and day.
79
- * Throws an `Error` when any component is out of range.
80
- * @param year - Full four-digit year.
81
- * @param month - Zero-based month index (0 = January, 11 = December).
82
- * @param date - Day-of-month (1-based).
83
- */
84
- createDate(year: number, month: number, date: number): Date;
85
- /**
86
- * Returns the current date and time in the Europe/Rome timezone, preserving the wall-clock value.
87
- */
88
- today(): Date;
89
- /**
90
- * Parses a value into a `Date`.
91
- * - Strings are first attempted as ISO 8601, then matched against each format in `parseFormat`.
92
- * - Numbers are treated as Unix timestamps (milliseconds).
93
- * - Existing `Date` instances are cloned.
94
- * @param value - The value to parse.
95
- * @param parseFormat - A format string or an array of format strings (date-fns tokens).
96
- * @returns A valid `Date` in `Europe/Rome`, an invalid sentinel, or `null` for unrecognised input.
97
- */
98
- parse(value: unknown, parseFormat: string | string[]): Date | null;
99
- /**
100
- * Formats a `Date` using the given date-fns display format string.
101
- * Throws an `Error` when `date` is not valid.
102
- * @param date - The date to format.
103
- * @param displayFormat - A date-fns format string (e.g. `'P'`, `'LLL uuuu'`).
104
- */
105
- format(date: Date, displayFormat: string): string;
106
- /**
107
- * Adds the given number of whole years to a date.
108
- * @param date - The base date.
109
- * @param years - Number of years to add (can be negative).
110
- */
111
- addCalendarYears(date: Date, years: number): Date;
112
- /**
113
- * Adds the given number of whole months to a date.
114
- * @param date - The base date.
115
- * @param months - Number of months to add (can be negative).
116
- */
117
- addCalendarMonths(date: Date, months: number): Date;
118
- /**
119
- * Adds the given number of whole days to a date.
120
- * @param date - The base date.
121
- * @param days - Number of days to add (can be negative).
122
- */
123
- addCalendarDays(date: Date, days: number): Date;
124
- /**
125
- * Serialises a date to an ISO 8601 date-only string (`yyyy-MM-dd`) using its Europe/Rome calendar day,
126
- * independent of the browser timezone.
127
- * @param date - The date to serialise.
128
- * @returns the yyyy-MM-dd string for the date in Europe/Rome.
129
- */
130
- toIso8601(date: Date): string;
131
- /**
132
- * Returns the given value when it is a valid `Date`, or `null` for an empty string.
133
- * Deserialises valid ISO 8601 strings into `Date` instances.
134
- * Delegates all other values to the base-class implementation.
135
- * @param value - The raw value to deserialise.
136
- */
137
- deserialize(value: unknown): Date | null;
138
- /**
139
- * Returns `true` when `obj` is an instance of `Date`.
140
- * @param obj - The object to test.
141
- */
142
- isDateInstance(obj: unknown): boolean;
143
- /**
144
- * Returns `true` when `date` represents a valid point in time.
145
- * @param date - The date to validate.
146
- */
147
- isValid(date: Date): boolean;
148
- /**
149
- * Returns a sentinel `Date` that represents an invalid date (`new Date(NaN)`).
150
- */
151
- invalid(): Date;
152
- /**
153
- * Returns the hours component (0-23) of the given date.
154
- * @param date - The source date.
155
- */
156
- getHours(date: Date): number;
157
- /**
158
- * Returns the minutes component (0-59) of the given date.
159
- * @param date - The source date.
160
- */
161
- getMinutes(date: Date): number;
162
- /**
163
- * Returns the seconds component (0-59) of the given date.
164
- * @param date - The source date.
165
- */
166
- getSeconds(date: Date): number;
167
- /**
168
- * Returns a clone of `target` with its time-of-day set to the given hours/minutes/seconds,
169
- * keeping the date part unchanged.
170
- * @param target - The date whose time should be set.
171
- * @param hours - New hours (0-23).
172
- * @param minutes - New minutes (0-59).
173
- * @param seconds - New seconds (0-59).
174
- */
175
- setTime(target: Date, hours: number, minutes: number, seconds: number): Date;
176
- /**
177
- * Adds the given number of seconds to a date.
178
- * @param date - The base date.
179
- * @param amount - Number of seconds to add (can be negative).
180
- */
181
- addSeconds(date: Date, amount: number): Date;
182
- /**
183
- * Parses a time-only value into a `Date` (today's date, in `Europe/Rome`, with the parsed
184
- * time-of-day set). The wall-clock time is preserved exactly as entered.
185
- * @param value - The value to parse (a string, or an existing `Date`).
186
- * @param parseFormat - A format string or an array of format strings (date-fns tokens).
187
- * @returns the parsed Date, an invalid sentinel, or null for unrecognised input.
188
- */
189
- parseTime(value: unknown, parseFormat: string | string[]): Date | null;
190
- static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsAdapter, never>;
191
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
12
+ export declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
13
+ constructor();
14
+ /**
15
+ * Wraps a date/instant into a Europe/Rome TZDate whose JSON serialisation emits a
16
+ * naive local datetime string ("yyyy-MM-dd'T'HH:mm:ss") instead of a UTC instant,
17
+ * so the wall-clock value the user entered is preserved end-to-end (no timezone shift).
18
+ * @param value - The source Date or Unix timestamp in milliseconds.
19
+ * @returns a Europe/Rome TZDate whose toJSON yields a naive local datetime string.
20
+ */
21
+ private static toLocal;
22
+ /**
23
+ * Returns the year component of the given date.
24
+ * @param date - The source date.
25
+ */
26
+ getYear(date: Date): number;
27
+ /**
28
+ * Returns the zero-based month index of the given date (0 = January).
29
+ * @param date - The source date.
30
+ */
31
+ getMonth(date: Date): number;
32
+ /**
33
+ * Returns the day-of-month of the given date (1-based).
34
+ * @param date - The source date.
35
+ */
36
+ getDate(date: Date): number;
37
+ /**
38
+ * Returns the day-of-week of the given date (0 = Sunday).
39
+ * @param date - The source date.
40
+ */
41
+ getDayOfWeek(date: Date): number;
42
+ /**
43
+ * Returns an array of 12 month name strings formatted for the active locale.
44
+ * @param style - One of `'long'`, `'short'`, or `'narrow'`.
45
+ */
46
+ getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
47
+ /**
48
+ * Returns an array of 31 day-of-month label strings formatted using `Intl.DateTimeFormat`
49
+ * when available, falling back to plain numeric strings.
50
+ */
51
+ getDateNames(): string[];
52
+ /**
53
+ * Returns an array of 7 day-of-week name strings formatted for the active locale.
54
+ * @param style - One of `'long'`, `'short'`, or `'narrow'`.
55
+ */
56
+ getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
57
+ /**
58
+ * Returns the four-digit year string for the given date.
59
+ * @param date - The source date.
60
+ */
61
+ getYearName(date: Date): string;
62
+ /**
63
+ * Returns the first day of the week for the active locale (0 = Sunday, 1 = Monday, …).
64
+ */
65
+ getFirstDayOfWeek(): number;
66
+ /**
67
+ * Returns the number of days in the month of the given date.
68
+ * @param date - The source date.
69
+ */
70
+ getNumDaysInMonth(date: Date): number;
71
+ /**
72
+ * Creates an independent copy of the given date.
73
+ * @param date - The date to clone.
74
+ */
75
+ clone(date: Date): Date;
76
+ /**
77
+ * Creates a `Date` in the `Europe/Rome` timezone for the given year, month, and day.
78
+ * Throws an `Error` when any component is out of range.
79
+ * @param year - Full four-digit year.
80
+ * @param month - Zero-based month index (0 = January, 11 = December).
81
+ * @param date - Day-of-month (1-based).
82
+ */
83
+ createDate(year: number, month: number, date: number): Date;
84
+ /**
85
+ * Returns the current date and time in the Europe/Rome timezone, preserving the wall-clock value.
86
+ */
87
+ today(): Date;
88
+ /**
89
+ * Parses a value into a `Date`.
90
+ * - Strings are first attempted as ISO 8601, then matched against each format in `parseFormat`.
91
+ * - Numbers are treated as Unix timestamps (milliseconds).
92
+ * - Existing `Date` instances are cloned.
93
+ * @param value - The value to parse.
94
+ * @param parseFormat - A format string or an array of format strings (date-fns tokens).
95
+ * @returns A valid `Date` in `Europe/Rome`, an invalid sentinel, or `null` for unrecognised input.
96
+ */
97
+ parse(value: unknown, parseFormat: string | string[]): Date | null;
98
+ /**
99
+ * Formats a `Date` using the given date-fns display format string.
100
+ * Throws an `Error` when `date` is not valid.
101
+ * @param date - The date to format.
102
+ * @param displayFormat - A date-fns format string (e.g. `'P'`, `'LLL uuuu'`).
103
+ */
104
+ format(date: Date, displayFormat: string): string;
105
+ /**
106
+ * Adds the given number of whole years to a date.
107
+ * @param date - The base date.
108
+ * @param years - Number of years to add (can be negative).
109
+ */
110
+ addCalendarYears(date: Date, years: number): Date;
111
+ /**
112
+ * Adds the given number of whole months to a date.
113
+ * @param date - The base date.
114
+ * @param months - Number of months to add (can be negative).
115
+ */
116
+ addCalendarMonths(date: Date, months: number): Date;
117
+ /**
118
+ * Adds the given number of whole days to a date.
119
+ * @param date - The base date.
120
+ * @param days - Number of days to add (can be negative).
121
+ */
122
+ addCalendarDays(date: Date, days: number): Date;
123
+ /**
124
+ * Serialises a date to an ISO 8601 date-only string (`yyyy-MM-dd`) using its Europe/Rome calendar day,
125
+ * independent of the browser timezone.
126
+ * @param date - The date to serialise.
127
+ * @returns the yyyy-MM-dd string for the date in Europe/Rome.
128
+ */
129
+ toIso8601(date: Date): string;
130
+ /**
131
+ * Returns the given value when it is a valid `Date`, or `null` for an empty string.
132
+ * Deserialises valid ISO 8601 strings into `Date` instances.
133
+ * Delegates all other values to the base-class implementation.
134
+ * @param value - The raw value to deserialise.
135
+ */
136
+ deserialize(value: unknown): Date | null;
137
+ /**
138
+ * Returns `true` when `obj` is an instance of `Date`.
139
+ * @param obj - The object to test.
140
+ */
141
+ isDateInstance(obj: unknown): boolean;
142
+ /**
143
+ * Returns `true` when `date` represents a valid point in time.
144
+ * @param date - The date to validate.
145
+ */
146
+ isValid(date: Date): boolean;
147
+ /**
148
+ * Returns a sentinel `Date` that represents an invalid date (`new Date(NaN)`).
149
+ */
150
+ invalid(): Date;
151
+ /**
152
+ * Returns the hours component (0-23) of the given date.
153
+ * @param date - The source date.
154
+ */
155
+ getHours(date: Date): number;
156
+ /**
157
+ * Returns the minutes component (0-59) of the given date.
158
+ * @param date - The source date.
159
+ */
160
+ getMinutes(date: Date): number;
161
+ /**
162
+ * Returns the seconds component (0-59) of the given date.
163
+ * @param date - The source date.
164
+ */
165
+ getSeconds(date: Date): number;
166
+ /**
167
+ * Returns a clone of `target` with its time-of-day set to the given hours/minutes/seconds,
168
+ * keeping the date part unchanged.
169
+ * @param target - The date whose time should be set.
170
+ * @param hours - New hours (0-23).
171
+ * @param minutes - New minutes (0-59).
172
+ * @param seconds - New seconds (0-59).
173
+ */
174
+ setTime(target: Date, hours: number, minutes: number, seconds: number): Date;
175
+ /**
176
+ * Adds the given number of seconds to a date.
177
+ * @param date - The base date.
178
+ * @param amount - Number of seconds to add (can be negative).
179
+ */
180
+ addSeconds(date: Date, amount: number): Date;
181
+ /**
182
+ * Parses a time-only value into a `Date` (today's date, in `Europe/Rome`, with the parsed
183
+ * time-of-day set). The wall-clock time is preserved exactly as entered.
184
+ * @param value - The value to parse (a string, or an existing `Date`).
185
+ * @param parseFormat - A format string or an array of format strings (date-fns tokens).
186
+ * @returns the parsed Date, an invalid sentinel, or null for unrecognised input.
187
+ */
188
+ parseTime(value: unknown, parseFormat: string | string[]): Date | null;
189
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsAdapter, never>;
190
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
192
191
  }
193
192
  /**
194
193
  * Standalone providers for the ARS date-fns adapter.
@@ -202,16 +201,15 @@ declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
202
201
  * providers: [provideArsDateFns()]
203
202
  * });
204
203
  */
205
- declare function provideArsDateFns(): EnvironmentProviders;
206
-
204
+ export declare function provideArsDateFns(): EnvironmentProviders;
207
205
  /** Default application timezone: all dates are serialised as Europe/Rome wall-clock values. */
208
- declare const DEFAULT_TIME_ZONE = "Europe/Rome";
206
+ export declare const DEFAULT_TIME_ZONE = "Europe/Rome";
209
207
  /**
210
208
  * IANA timezone used to serialise dates towards the backend.
211
209
  * Override it in the application providers to run the same code in another zone:
212
210
  * `{ provide: ARS_TIME_ZONE, useValue: 'Europe/Zurich' }`.
213
211
  */
214
- declare const ARS_TIME_ZONE: InjectionToken<string>;
212
+ export declare const ARS_TIME_ZONE: InjectionToken<string>;
215
213
  /**
216
214
  * Functional interceptor that closes the date serialisation boundary of the application, in both
217
215
  * directions: it writes the dates of every request and reads back those of every response.
@@ -250,7 +248,7 @@ declare const ARS_TIME_ZONE: InjectionToken<string>;
250
248
  * evolutionAuthInterceptor(...),
251
249
  * ]));
252
250
  */
253
- declare const arsLocalDateInterceptor: HttpInterceptorFn;
251
+ export declare const arsLocalDateInterceptor: HttpInterceptorFn;
254
252
  /**
255
253
  * Class-based twin of {@link arsLocalDateInterceptor}.
256
254
  *
@@ -264,17 +262,17 @@ declare const arsLocalDateInterceptor: HttpInterceptorFn;
264
262
  * without it Angular never reads `HTTP_INTERCEPTORS` and this interceptor is
265
263
  * silently skipped.
266
264
  */
267
- declare class ArsLocalDateInterceptor implements HttpInterceptor {
268
- private readonly timeZone;
269
- /**
270
- * Normalises the dates of the request and revives those of the response.
271
- * @param req - The outgoing request.
272
- * @param next - The next handler in the chain.
273
- * @returns The stream of events, with the dates of the response body revived.
274
- */
275
- intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
276
- static ɵfac: i0.ɵɵFactoryDeclaration<ArsLocalDateInterceptor, never>;
277
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
265
+ export declare class ArsLocalDateInterceptor implements HttpInterceptor {
266
+ private readonly timeZone;
267
+ /**
268
+ * Normalises the dates of the request and revives those of the response.
269
+ * @param req - The outgoing request.
270
+ * @param next - The next handler in the chain.
271
+ * @returns The stream of events, with the dates of the response body revived.
272
+ */
273
+ intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
274
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArsLocalDateInterceptor, never>;
275
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
278
276
  }
279
277
  /**
280
278
  * Standalone providers for date conversion towards and from the backend.
@@ -295,7 +293,7 @@ declare class ArsLocalDateInterceptor implements HttpInterceptor {
295
293
  * provideHttpClient(withInterceptors([evolutionAuthInterceptor(...)]), withInterceptorsFromDi()),
296
294
  * ]
297
295
  */
298
- declare function provideArsLocalDates(timeZone?: string): EnvironmentProviders;
296
+ export declare function provideArsLocalDates(timeZone?: string): EnvironmentProviders;
299
297
  /**
300
298
  * Formats a date as a date-only ISO string (`yyyy-MM-dd`) using its wall-clock
301
299
  * calendar day in the given timezone. Use it for query-string parameters and for
@@ -305,7 +303,7 @@ declare function provideArsLocalDates(timeZone?: string): EnvironmentProviders;
305
303
  * @param timeZone - IANA timezone name (default: `Europe/Rome`).
306
304
  * @returns The `yyyy-MM-dd` string, or `undefined` for empty/invalid input.
307
305
  */
308
- declare function toLocalDateOnlyString(value?: Date | null, timeZone?: string): string | undefined;
306
+ export declare function toLocalDateOnlyString(value?: Date | null, timeZone?: string): string | undefined;
309
307
  /**
310
308
  * Formats a date as a naive local datetime string (`yyyy-MM-ddTHH:mm:ss`), the
311
309
  * same representation produced by the interceptor. Useful for query-string
@@ -315,6 +313,4 @@ declare function toLocalDateOnlyString(value?: Date | null, timeZone?: string):
315
313
  * @param timeZone - IANA timezone name (default: `Europe/Rome`).
316
314
  * @returns The naive datetime string, or `undefined` for empty/invalid input.
317
315
  */
318
- declare function toLocalDateTimeString(value?: Date | null, timeZone?: string): string | undefined;
319
-
320
- export { ARS_TIME_ZONE, ArsLocalDateInterceptor, DEFAULT_TIME_ZONE, DateFnsAdapter, MAT_DATE_FNS_FORMATS, arsLocalDateInterceptor, provideArsDateFns, provideArsLocalDates, toLocalDateOnlyString, toLocalDateTimeString };
316
+ export declare function toLocalDateTimeString(value?: Date | null, timeZone?: string): string | undefined;