@arsedizioni/ars-utils 22.0.82 → 22.0.84
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.
- package/fesm2022/arsedizioni-ars-utils-core.mjs +210 -19
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1 -1
- package/types/arsedizioni-ars-utils-core.d.ts +20 -6
- package/types/arsedizioni-ars-utils-ui.application.d.ts +2 -2
- package/types/arsedizioni-ars-utils-ui.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1049,7 +1049,7 @@ declare class ClipperDocumentMenuComponent {
|
|
|
1049
1049
|
private readonly renderer2;
|
|
1050
1050
|
private readonly clipperService;
|
|
1051
1051
|
readonly useSelections: _angular_core.InputSignal<boolean>;
|
|
1052
|
-
readonly selectionSource: _angular_core.InputSignal<"
|
|
1052
|
+
readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
|
|
1053
1053
|
/**
|
|
1054
1054
|
* Computed signal that returns the current effective document selection.
|
|
1055
1055
|
* Re-evaluates when any input signal or the underlying selection model changes.
|
|
@@ -192,6 +192,16 @@ declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
|
|
|
192
192
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateFnsAdapter, never>;
|
|
193
193
|
static ɵprov: i0.ɵɵInjectableDeclaration<DateFnsAdapter>;
|
|
194
194
|
}
|
|
195
|
+
/** Opzioni di configurazione del supporto date ARS. */
|
|
196
|
+
interface ArsDateFnsOptions {
|
|
197
|
+
/** Timezone IANA usato da adapter e serializzazione (default: `Europe/Rome`). */
|
|
198
|
+
timeZone?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Registra l'interceptor che serializza le Date come wall-clock locale.
|
|
201
|
+
* Richiede `withInterceptorsFromDi()` in `provideHttpClient()`. Default: `true`.
|
|
202
|
+
*/
|
|
203
|
+
httpSerialization?: boolean;
|
|
204
|
+
}
|
|
195
205
|
/**
|
|
196
206
|
* Standalone providers for the ARS date-fns adapter.
|
|
197
207
|
*
|
|
@@ -204,7 +214,7 @@ declare class DateFnsAdapter extends DateAdapter<Date, Locale> {
|
|
|
204
214
|
* providers: [provideArsDateFns()]
|
|
205
215
|
* });
|
|
206
216
|
*/
|
|
207
|
-
declare function provideArsDateFns(): EnvironmentProviders;
|
|
217
|
+
declare function provideArsDateFns(options?: ArsDateFnsOptions): EnvironmentProviders;
|
|
208
218
|
|
|
209
219
|
/**
|
|
210
220
|
* Directive that moves browser focus to the host element after the first render cycle.
|
|
@@ -1191,11 +1201,15 @@ declare class SystemUtils {
|
|
|
1191
1201
|
*/
|
|
1192
1202
|
static formatDate(value?: Date | string, fmt?: DateFormat | string, locale?: Locale): string;
|
|
1193
1203
|
/**
|
|
1194
|
-
*
|
|
1195
|
-
*
|
|
1196
|
-
*
|
|
1204
|
+
* Converts a Date, timestamp or ISO string into a Europe/Rome Date whose JSON serialisation
|
|
1205
|
+
* emits a naive local datetime string ("yyyy-MM-dd'T'HH:mm:ss"), with no timezone designator,
|
|
1206
|
+
* so the wall-clock value round-trips to the server unchanged. Use this instead of `new Date(...)`
|
|
1207
|
+
* when reviving dates received from the API, to stay consistent with the DateFnsAdapter (values
|
|
1208
|
+
* entered through the datepicker already behave this way).
|
|
1209
|
+
* @param value : the source Date, Unix timestamp (ms) or ISO string
|
|
1210
|
+
* @returns : a Europe/Rome Date serialising as naive local time, or undefined for empty/invalid input
|
|
1197
1211
|
*/
|
|
1198
|
-
static toLocalDate(value?: Date | string): Date | undefined;
|
|
1212
|
+
static toLocalDate(value?: Date | number | string): Date | undefined;
|
|
1199
1213
|
/**
|
|
1200
1214
|
* Update a DateInterval object according to a string
|
|
1201
1215
|
* @param value : string value
|
|
@@ -1771,4 +1785,4 @@ declare class ThemeService implements OnDestroy {
|
|
|
1771
1785
|
}
|
|
1772
1786
|
|
|
1773
1787
|
export { AutoFocusDirective, BroadcastChannelManager, BroadcastService, CHANNEL_NAME, CopyClipboardDirective, DateFnsAdapter, DateFormat, DateInterval, DateIntervalChangeDirective, DeleteModel, EmailsValidatorDirective, EnvironmentService, EqualsValidatorDirective, FileInfo, FileSizeValidatorDirective, FormatHtmlPipe, FormatMarkdownPipe, FormatPipe, GroupModel, GuidValidatorDirective, IDModel, ImportModel, MAT_DATE_FNS_FORMATS, MaxTermsValidatorDirective, NotEmptyValidatorDirective, NotEqualValidatorDirective, NotFutureValidatorDirective, PasswordValidatorDirective, QueryModel, RelationModel, RemoveFocusDirective, ReplacePipe, SafeHtmlPipe, SafeUrlPipe, ScreenService, SearchCallbackPipe, SearchFilterPipe, SelectableModel, SplashService, SqlDateValidatorDirective, SystemUtils, ThemeService, TimeValidatorDirective, UpdateRelationsModel, UrlValidatorDirective, UtilsMessages, ValidIfDirective, ValidatorDirective, ValueModel, provideArsDateFns };
|
|
1774
|
-
export type { AddModel, AddResultModel, ApiResponse, ApiResult, BroadcastChannelMessageBag, BroadcastChannelSubscriberInfo, BroadcastMessageInfo, BroadcastMessageToastData, Checkable, DeleteResultModel, DoneResult, EnableDisableModel, ErrorInfo, File, Folder, FolderTree, INode, KeyOf, LoginResult, NameValueItem, PasswordStrength, QueryResultModel, SearchBag, SearchFilterMetadata, Searchable, SendToModel, ThemeType, UpdateModel, UpdateResultModel, Validated };
|
|
1788
|
+
export type { AddModel, AddResultModel, ApiResponse, ApiResult, ArsDateFnsOptions, BroadcastChannelMessageBag, BroadcastChannelSubscriberInfo, BroadcastMessageInfo, BroadcastMessageToastData, Checkable, DeleteResultModel, DoneResult, EnableDisableModel, ErrorInfo, File, Folder, FolderTree, INode, KeyOf, LoginResult, NameValueItem, PasswordStrength, QueryResultModel, SearchBag, SearchFilterMetadata, Searchable, SendToModel, ThemeType, UpdateModel, UpdateResultModel, Validated };
|
|
@@ -1005,7 +1005,7 @@ declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor
|
|
|
1005
1005
|
/** Minimum width in pixels when collapsed. Use `-1` for automatic. */
|
|
1006
1006
|
readonly collapsedWidth: _angular_core.InputSignal<number>;
|
|
1007
1007
|
/** Display mode used when the selector is in collapsed state. */
|
|
1008
|
-
readonly collapsedDisplayMode: _angular_core.InputSignal<"
|
|
1008
|
+
readonly collapsedDisplayMode: _angular_core.InputSignal<"dropdown" | "button">;
|
|
1009
1009
|
/** Pixel threshold below which the selector collapses. Use `-1` to disable. */
|
|
1010
1010
|
readonly collapseAt: _angular_core.InputSignal<number>;
|
|
1011
1011
|
/** When `true`, `collapseAt` is compared against the container width rather than the window width. */
|
|
@@ -1018,7 +1018,7 @@ declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor
|
|
|
1018
1018
|
/** When `true`, at least one item must remain selected. */
|
|
1019
1019
|
readonly mustSelect: _angular_core.InputSignal<boolean>;
|
|
1020
1020
|
/** Layout mode: `'collapsed'` forces dropdown mode, `'dynamic'` collapses based on `collapseAt`. */
|
|
1021
|
-
readonly mode: _angular_core.InputSignal<"
|
|
1021
|
+
readonly mode: _angular_core.InputSignal<"collapsed" | "dynamic">;
|
|
1022
1022
|
/** When `true`, chips are stacked vertically instead of wrapping horizontally. */
|
|
1023
1023
|
readonly stacked: _angular_core.InputSignal<boolean>;
|
|
1024
1024
|
/** Chips below this index receive extra padding to align with other UI elements. */
|
|
@@ -410,7 +410,7 @@ declare class BusyDialogComponent {
|
|
|
410
410
|
/** Current progress value (0–100). Used when `progressMode` is `'determinate'`. */
|
|
411
411
|
readonly progress: _angular_core.WritableSignal<number>;
|
|
412
412
|
/** Progress mode passed to the Material progress components. */
|
|
413
|
-
readonly progressMode: _angular_core.WritableSignal<"
|
|
413
|
+
readonly progressMode: _angular_core.WritableSignal<"determinate" | "indeterminate">;
|
|
414
414
|
/** Message displayed above the progress indicator. */
|
|
415
415
|
readonly message: _angular_core.WritableSignal<string>;
|
|
416
416
|
/**
|