@truenas/ui-components 0.4.2 → 0.4.4
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
|
@@ -9132,6 +9132,16 @@ declare class TnFilePickerComponent implements ControlValueAccessor, OnInit, OnD
|
|
|
9132
9132
|
startPath: _angular_core.InputSignal<string>;
|
|
9133
9133
|
/** Restricts navigation — users cannot navigate above this path. */
|
|
9134
9134
|
rootPath: _angular_core.InputSignal<string | undefined>;
|
|
9135
|
+
/**
|
|
9136
|
+
* Root against which the picker's VALUE is expressed — the form value,
|
|
9137
|
+
* `selectionChange` payloads, and the text shown in the input. Browsing
|
|
9138
|
+
* (`rootPath`, `startPath`, `callbacks`, `selectPath`) keeps absolute paths;
|
|
9139
|
+
* the mapping applies only at the value boundary. E.g. with
|
|
9140
|
+
* `valueRoot="/mnt"`, selecting `/mnt/tank/child` shows and emits the
|
|
9141
|
+
* dataset name `tank/child` instead of the mountpoint path. Typed input is
|
|
9142
|
+
* interpreted in the same value space (absolute paths still pass through).
|
|
9143
|
+
*/
|
|
9144
|
+
valueRoot: _angular_core.InputSignal<string | undefined>;
|
|
9135
9145
|
fileExtensions: _angular_core.InputSignal<string[] | undefined>;
|
|
9136
9146
|
callbacks: _angular_core.InputSignal<FilePickerCallbacks | undefined>;
|
|
9137
9147
|
selectionChange: _angular_core.OutputEmitterRef<string | string[]>;
|
|
@@ -9233,10 +9243,15 @@ declare class TnFilePickerComponent implements ControlValueAccessor, OnInit, OnD
|
|
|
9233
9243
|
* would be the surprising behavior.
|
|
9234
9244
|
*/
|
|
9235
9245
|
private updateSelection;
|
|
9246
|
+
private normalizedValueRoot;
|
|
9247
|
+
/** Maps an internal absolute path into the `valueRoot`-relative value space. */
|
|
9248
|
+
private toValueSpace;
|
|
9249
|
+
/** Maps a `valueRoot`-relative value back into an internal absolute path. */
|
|
9250
|
+
private fromValueSpace;
|
|
9236
9251
|
private emitError;
|
|
9237
9252
|
private createOverlay;
|
|
9238
9253
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnFilePickerComponent, never>;
|
|
9239
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnFilePickerComponent, "tn-file-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "createActions": { "alias": "createActions"; "required": false; "isSignal": true; }; "allowManualInput": { "alias": "allowManualInput"; "required": false; "isSignal": true; }; "openOnClick": { "alias": "openOnClick"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "startPath": { "alias": "startPath"; "required": false; "isSignal": true; }; "rootPath": { "alias": "rootPath"; "required": false; "isSignal": true; }; "fileExtensions": { "alias": "fileExtensions"; "required": false; "isSignal": true; }; "callbacks": { "alias": "callbacks"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "pathChange": "pathChange"; "createAction": "createAction"; "error": "error"; }, never, never, true, never>;
|
|
9254
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnFilePickerComponent, "tn-file-picker", never, { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "multiSelect": { "alias": "multiSelect"; "required": false; "isSignal": true; }; "createActions": { "alias": "createActions"; "required": false; "isSignal": true; }; "allowManualInput": { "alias": "allowManualInput"; "required": false; "isSignal": true; }; "openOnClick": { "alias": "openOnClick"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "startPath": { "alias": "startPath"; "required": false; "isSignal": true; }; "rootPath": { "alias": "rootPath"; "required": false; "isSignal": true; }; "valueRoot": { "alias": "valueRoot"; "required": false; "isSignal": true; }; "fileExtensions": { "alias": "fileExtensions"; "required": false; "isSignal": true; }; "callbacks": { "alias": "callbacks"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; "pathChange": "pathChange"; "createAction": "createAction"; "error": "error"; }, never, never, true, never>;
|
|
9240
9255
|
}
|
|
9241
9256
|
|
|
9242
9257
|
/**
|