@arsedizioni/ars-utils 21.2.298 → 21.2.300
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
|
@@ -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<"
|
|
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. */
|
|
@@ -1124,15 +1124,20 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
|
|
|
1124
1124
|
protected readonly canCapture: _angular_core.WritableSignal<boolean>;
|
|
1125
1125
|
/** Size in MB of the currently selected file. */
|
|
1126
1126
|
protected readonly fileSize: _angular_core.WritableSignal<number>;
|
|
1127
|
-
|
|
1128
|
-
protected readonly _placeholder: _angular_core.WritableSignal<string>;
|
|
1127
|
+
private readonly _placeholder;
|
|
1129
1128
|
private _value;
|
|
1130
1129
|
set value(value: FileInfo);
|
|
1131
|
-
/** The current FileInfo value. */
|
|
1132
1130
|
get value(): FileInfo;
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1131
|
+
get size(): any;
|
|
1132
|
+
private _required;
|
|
1133
|
+
get required(): boolean;
|
|
1134
|
+
set required(value: boolean);
|
|
1135
|
+
private _disabled;
|
|
1136
|
+
get disabled(): boolean;
|
|
1137
|
+
set disabled(value: boolean);
|
|
1138
|
+
get placeholder(): string;
|
|
1139
|
+
set placeholder(value: string);
|
|
1140
|
+
/** The currently displayed file name. Can be bound two-way from outside or updated on file selection. */
|
|
1136
1141
|
readonly fileName: _angular_core.ModelSignal<string>;
|
|
1137
1142
|
readonly maxSizeMb: _angular_core.InputSignal<number>;
|
|
1138
1143
|
readonly minSizeMb: _angular_core.InputSignal<number>;
|
|
@@ -1140,18 +1145,6 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
|
|
|
1140
1145
|
readonly canPreview: _angular_core.InputSignal<boolean>;
|
|
1141
1146
|
readonly appearance: _angular_core.InputSignal<"fill" | "outline">;
|
|
1142
1147
|
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
1148
|
get empty(): boolean;
|
|
1156
1149
|
/** True when the control has validation errors and has been touched. */
|
|
1157
1150
|
get errorState(): boolean;
|
|
@@ -1165,12 +1158,12 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
|
|
|
1165
1158
|
private propagateChange;
|
|
1166
1159
|
private propagateTouched;
|
|
1167
1160
|
constructor(ngControl: NgControl);
|
|
1168
|
-
ngOnDestroy(): void;
|
|
1169
|
-
ngDoCheck(): void;
|
|
1170
1161
|
/**
|
|
1171
|
-
* Detects camera availability and
|
|
1162
|
+
* Detects camera availability and updates the placeholder accordingly.
|
|
1172
1163
|
*/
|
|
1173
1164
|
private setupDevices;
|
|
1165
|
+
ngOnDestroy(): void;
|
|
1166
|
+
ngDoCheck(): void;
|
|
1174
1167
|
/**
|
|
1175
1168
|
* Writes a new value to the component (called by the form layer).
|
|
1176
1169
|
* @param value - The new file info to display.
|
|
@@ -1192,10 +1185,10 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
|
|
|
1192
1185
|
*/
|
|
1193
1186
|
setDescribedByIds(ids: string[]): void;
|
|
1194
1187
|
/**
|
|
1195
|
-
* Updates the disabled state
|
|
1188
|
+
* Updates the disabled state of the underlying native element.
|
|
1196
1189
|
* @param isDisabled - Whether the control should be disabled.
|
|
1197
1190
|
*/
|
|
1198
|
-
setDisabledState(isDisabled: boolean): void;
|
|
1191
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
1199
1192
|
/** Focuses the native input element and marks the control as touched. */
|
|
1200
1193
|
onContainerClick(): void;
|
|
1201
1194
|
/**
|
|
@@ -1225,7 +1218,7 @@ declare class FileInputComponent implements OnDestroy, DoCheck, MatFormFieldCont
|
|
|
1225
1218
|
*/
|
|
1226
1219
|
protected previewFile(): void;
|
|
1227
1220
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileInputComponent, [{ optional: true; self: true; }]>;
|
|
1228
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileInputComponent, "file-input", never, { "
|
|
1221
|
+
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; "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; }; }, { "fileName": "fileNameChange"; "changed": "changed"; "download": "download"; "preview": "preview"; }, never, never, true, never>;
|
|
1229
1222
|
}
|
|
1230
1223
|
|
|
1231
1224
|
interface FilePreviewDialogData {
|