@arsedizioni/ars-utils 21.2.298 → 21.2.299

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arsedizioni/ars-utils",
3
- "version": "21.2.298",
3
+ "version": "21.2.299",
4
4
  "author": {
5
5
  "email": "software@arsedizioni.it",
6
6
  "name": "Fabio Buscaroli, Alberto Doria"
@@ -998,7 +998,7 @@ declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor
998
998
  /** Minimum width in pixels when collapsed. Use `-1` for automatic. */
999
999
  readonly collapsedWidth: _angular_core.InputSignal<number>;
1000
1000
  /** Display mode used when the selector is in collapsed state. */
1001
- readonly collapsedDisplayMode: _angular_core.InputSignal<"dropdown" | "button">;
1001
+ readonly collapsedDisplayMode: _angular_core.InputSignal<"button" | "dropdown">;
1002
1002
  /** Pixel threshold below which the selector collapses. Use `-1` to disable. */
1003
1003
  readonly collapseAt: _angular_core.InputSignal<number>;
1004
1004
  /** When `true`, `collapseAt` is compared against the container width rather than the window width. */
@@ -1109,10 +1109,9 @@ declare class ChipsSelectorComponent implements OnDestroy, ControlValueAccessor
1109
1109
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ChipsSelectorComponent, "chips-selector", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "collapsedWidth": { "alias": "collapsedWidth"; "required": false; "isSignal": true; }; "collapsedDisplayMode": { "alias": "collapsedDisplayMode"; "required": false; "isSignal": true; }; "collapseAt": { "alias": "collapseAt"; "required": false; "isSignal": true; }; "collapseAtContainer": { "alias": "collapseAtContainer"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "mustSelect": { "alias": "mustSelect"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "padAt": { "alias": "padAt"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "changed": "changed"; }, never, never, true, never>;
1110
1110
  }
1111
1111
 
1112
- declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldControl<FileInfo>, ControlValueAccessor {
1112
+ declare class FileInputComponent implements OnInit, OnDestroy, DoCheck, MatFormFieldControl<FileInfo>, ControlValueAccessor {
1113
1113
  ngControl: NgControl;
1114
- /** Reference to the hidden native file input element. */
1115
- protected readonly __file: _angular_core.Signal<ElementRef<any>>;
1114
+ __file: ElementRef;
1116
1115
  private readonly renderer;
1117
1116
  private readonly uiService;
1118
1117
  static nextId: number;
@@ -1124,39 +1123,29 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
1124
1123
  protected readonly canCapture: _angular_core.WritableSignal<boolean>;
1125
1124
  /** Size in MB of the currently selected file. */
1126
1125
  protected readonly fileSize: _angular_core.WritableSignal<number>;
1127
- /** Internal placeholder text, derived from the input and camera availability. */
1128
- protected readonly _placeholder: _angular_core.WritableSignal<string>;
1126
+ private readonly _placeholder;
1129
1127
  private _value;
1130
1128
  set value(value: FileInfo);
1131
- /** The current FileInfo value. */
1132
1129
  get value(): FileInfo;
1133
- /** Size of the current file in bytes. */
1134
- get size(): number | undefined;
1135
- /** The currently displayed file name. Can be bound from outside or updated by file selection. */
1136
- readonly fileName: _angular_core.ModelSignal<string>;
1130
+ get size(): any;
1131
+ private _required;
1132
+ get required(): boolean;
1133
+ set required(value: boolean);
1134
+ private _disabled;
1135
+ get disabled(): boolean;
1136
+ set disabled(value: boolean);
1137
+ get placeholder(): string;
1138
+ set placeholder(value: string);
1139
+ fileName?: string;
1137
1140
  readonly maxSizeMb: _angular_core.InputSignal<number>;
1138
1141
  readonly minSizeMb: _angular_core.InputSignal<number>;
1139
1142
  readonly isNew: _angular_core.InputSignal<boolean>;
1140
1143
  readonly canPreview: _angular_core.InputSignal<boolean>;
1141
1144
  readonly appearance: _angular_core.InputSignal<"fill" | "outline">;
1142
1145
  readonly accept: _angular_core.InputSignal<string>;
1143
- /** @internal Input signal for the required state (bound via the `[required]` attribute). */
1144
- protected readonly _requiredInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
1145
- /** True when the control is required (implements `MatFormFieldControl.required`). */
1146
- get required(): boolean;
1147
- /** @internal Input signal for the placeholder text (bound via the `[placeholder]` attribute). */
1148
- protected readonly _placeholderInput: _angular_core.InputSignal<string>;
1149
- /** The effective placeholder label shown in the form field (implements `MatFormFieldControl.placeholder`). */
1150
- get placeholder(): string;
1151
- private _disabled;
1152
- get disabled(): boolean;
1153
- set disabled(value: boolean);
1154
- /** True when no file is selected. */
1155
1146
  get empty(): boolean;
1156
- /** True when the control has validation errors and has been touched. */
1157
1147
  get errorState(): boolean;
1158
1148
  id: string;
1159
- /** True when the label should float above the field. */
1160
1149
  get shouldLabelFloat(): boolean;
1161
1150
  describedBy: string;
1162
1151
  readonly changed: _angular_core.OutputEmitterRef<FileInfo>;
@@ -1165,12 +1154,13 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
1165
1154
  private propagateChange;
1166
1155
  private propagateTouched;
1167
1156
  constructor(ngControl: NgControl);
1168
- ngOnDestroy(): void;
1169
- ngDoCheck(): void;
1157
+ ngOnInit(): Promise<void>;
1170
1158
  /**
1171
- * Detects camera availability and sets the default placeholder when none is explicitly provided.
1159
+ * Detects camera availability and updates the placeholder accordingly.
1172
1160
  */
1173
1161
  private setupDevices;
1162
+ ngOnDestroy(): void;
1163
+ ngDoCheck(): void;
1174
1164
  /**
1175
1165
  * Writes a new value to the component (called by the form layer).
1176
1166
  * @param value - The new file info to display.
@@ -1192,10 +1182,10 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
1192
1182
  */
1193
1183
  setDescribedByIds(ids: string[]): void;
1194
1184
  /**
1195
- * Updates the disabled state when the Angular form layer changes it.
1185
+ * Updates the disabled state of the underlying native element.
1196
1186
  * @param isDisabled - Whether the control should be disabled.
1197
1187
  */
1198
- setDisabledState(isDisabled: boolean): void;
1188
+ setDisabledState?(isDisabled: boolean): void;
1199
1189
  /** Focuses the native input element and marks the control as touched. */
1200
1190
  onContainerClick(): void;
1201
1191
  /**
@@ -1225,7 +1215,7 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
1225
1215
  */
1226
1216
  protected previewFile(): void;
1227
1217
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileInputComponent, [{ optional: true; self: true; }]>;
1228
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileInputComponent, "file-input", never, { "fileName": { "alias": "fileName"; "required": false; "isSignal": true; }; "maxSizeMb": { "alias": "maxSizeMb"; "required": false; "isSignal": true; }; "minSizeMb": { "alias": "minSizeMb"; "required": false; "isSignal": true; }; "isNew": { "alias": "isNew"; "required": false; "isSignal": true; }; "canPreview": { "alias": "canPreview"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; "_requiredInput": { "alias": "required"; "required": false; "isSignal": true; }; "_placeholderInput": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "fileName": "fileNameChange"; "changed": "changed"; "download": "download"; "preview": "preview"; }, never, never, true, never>;
1218
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileInputComponent, "file-input", never, { "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "fileName": { "alias": "fileName"; "required": false; }; "maxSizeMb": { "alias": "maxSizeMb"; "required": false; "isSignal": true; }; "minSizeMb": { "alias": "minSizeMb"; "required": false; "isSignal": true; }; "isNew": { "alias": "isNew"; "required": false; "isSignal": true; }; "canPreview": { "alias": "canPreview"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "accept": { "alias": "accept"; "required": false; "isSignal": true; }; }, { "changed": "changed"; "download": "download"; "preview": "preview"; }, never, never, true, never>;
1229
1219
  }
1230
1220
 
1231
1221
  interface FilePreviewDialogData {