@truenas/ui-components 0.4.0 → 0.4.1

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": "@truenas/ui-components",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -9107,6 +9107,17 @@ declare class TnFilePickerComponent implements ControlValueAccessor, OnInit, OnD
9107
9107
  /** Consumer-defined creation flows shown as buttons in the popup footer. */
9108
9108
  createActions: _angular_core.InputSignal<FilePickerCreateAction[]>;
9109
9109
  allowManualInput: _angular_core.InputSignal<boolean>;
9110
+ /**
9111
+ * Open the picker popup when the input is clicked while no path is selected
9112
+ * yet — an empty field means the user is about to pick something, so the
9113
+ * browser opens without the extra click on the folder button. A field that
9114
+ * already holds a path keeps plain click behavior (the user may just want to
9115
+ * edit the text). Deliberately pointer-only: opening on focus would pop the
9116
+ * overlay on keyboard users tabbing through a form and leave it open behind
9117
+ * them; tabbing never opens it, and the folder button stays the keyboard
9118
+ * path to the popup.
9119
+ */
9120
+ openOnClick: _angular_core.InputSignal<boolean>;
9110
9121
  placeholder: _angular_core.InputSignal<string>;
9111
9122
  disabled: _angular_core.InputSignal<boolean>;
9112
9123
  /**
@@ -9157,6 +9168,8 @@ declare class TnFilePickerComponent implements ControlValueAccessor, OnInit, OnD
9157
9168
  * and spam `validatePath` with paths the user never meant.
9158
9169
  */
9159
9170
  onPathCommit(event: Event): void;
9171
+ /** `openOnClick` entry point. */
9172
+ onInputClick(): void;
9160
9173
  openFilePicker(): void;
9161
9174
  close(): void;
9162
9175
  onItemClick(item: FileSystemItem): void;
@@ -9210,7 +9223,7 @@ declare class TnFilePickerComponent implements ControlValueAccessor, OnInit, OnD
9210
9223
  private emitError;
9211
9224
  private createOverlay;
9212
9225
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnFilePickerComponent, never>;
9213
- 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; }; "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>;
9226
+ 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>;
9214
9227
  }
9215
9228
 
9216
9229
  /** State of an open inline creation row. */