@truenas/ui-components 0.1.65 → 0.1.66
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
|
@@ -2926,6 +2926,10 @@ declare class TnFormFieldComponent implements AfterContentInit {
|
|
|
2926
2926
|
required: _angular_core.InputSignal<boolean>;
|
|
2927
2927
|
testId: _angular_core.InputSignal<string>;
|
|
2928
2928
|
subscriptSizing: _angular_core.InputSignal<SubscriptSizing>;
|
|
2929
|
+
/** Optional tooltip shown via a help icon next to the label. */
|
|
2930
|
+
tooltip: _angular_core.InputSignal<string>;
|
|
2931
|
+
/** Placement of the tooltip relative to its help icon. */
|
|
2932
|
+
tooltipPosition: _angular_core.InputSignal<TooltipPosition>;
|
|
2929
2933
|
control: _angular_core.Signal<NgControl | undefined>;
|
|
2930
2934
|
protected hasError: _angular_core.WritableSignal<boolean>;
|
|
2931
2935
|
protected errorMessage: _angular_core.WritableSignal<string>;
|
|
@@ -2936,7 +2940,7 @@ declare class TnFormFieldComponent implements AfterContentInit {
|
|
|
2936
2940
|
showHint: _angular_core.Signal<boolean>;
|
|
2937
2941
|
protected showSubscript: _angular_core.Signal<boolean>;
|
|
2938
2942
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnFormFieldComponent, never>;
|
|
2939
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnFormFieldComponent, "tn-form-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; "isSignal": true; }; }, {}, ["control"], ["*"], true, never>;
|
|
2943
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnFormFieldComponent, "tn-form-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; "isSignal": true; }; }, {}, ["control"], ["*"], true, never>;
|
|
2940
2944
|
}
|
|
2941
2945
|
|
|
2942
2946
|
/**
|
|
@@ -2970,6 +2974,7 @@ declare class TnFormFieldHarness extends ComponentHarness {
|
|
|
2970
2974
|
private _label;
|
|
2971
2975
|
private _error;
|
|
2972
2976
|
private _hint;
|
|
2977
|
+
private _tooltip;
|
|
2973
2978
|
/**
|
|
2974
2979
|
* Gets a `HarnessPredicate` that can be used to search for a form field
|
|
2975
2980
|
* with specific attributes.
|
|
@@ -3038,6 +3043,30 @@ declare class TnFormFieldHarness extends ComponentHarness {
|
|
|
3038
3043
|
* ```
|
|
3039
3044
|
*/
|
|
3040
3045
|
getHint(): Promise<string | null>;
|
|
3046
|
+
/**
|
|
3047
|
+
* Checks whether the form field has a tooltip help icon.
|
|
3048
|
+
*
|
|
3049
|
+
* @returns Promise resolving to true if the tooltip trigger is present.
|
|
3050
|
+
*
|
|
3051
|
+
* @example
|
|
3052
|
+
* ```typescript
|
|
3053
|
+
* const field = await loader.getHarness(TnFormFieldHarness.with({ label: 'Purpose' }));
|
|
3054
|
+
* expect(await field.hasTooltip()).toBe(true);
|
|
3055
|
+
* ```
|
|
3056
|
+
*/
|
|
3057
|
+
hasTooltip(): Promise<boolean>;
|
|
3058
|
+
/**
|
|
3059
|
+
* Gets the tooltip message (read from the trigger's accessible label).
|
|
3060
|
+
*
|
|
3061
|
+
* @returns Promise resolving to the tooltip text, or null if no tooltip.
|
|
3062
|
+
*
|
|
3063
|
+
* @example
|
|
3064
|
+
* ```typescript
|
|
3065
|
+
* const field = await loader.getHarness(TnFormFieldHarness.with({ label: 'Purpose' }));
|
|
3066
|
+
* expect(await field.getTooltip()).toBe('What this share is used for');
|
|
3067
|
+
* ```
|
|
3068
|
+
*/
|
|
3069
|
+
getTooltip(): Promise<string | null>;
|
|
3041
3070
|
/**
|
|
3042
3071
|
* Checks whether the form field is marked as required.
|
|
3043
3072
|
*
|