@truenas/ui-components 0.5.0 → 0.5.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.
|
@@ -2838,7 +2838,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
2838
2838
|
*/
|
|
2839
2839
|
const INTERACTIVE_SELECTOR = 'button, a[href], input, select, textarea, [tabindex]';
|
|
2840
2840
|
class TnTooltipDirective {
|
|
2841
|
-
|
|
2841
|
+
// Nullable by contract: consumers bind expressions like [tnTooltip]="reason ?? null",
|
|
2842
|
+
// and under strictTemplates a string-only input would reject them at compile time.
|
|
2843
|
+
// The transform normalises at the boundary so every read site still sees a string.
|
|
2844
|
+
message = input('', { ...(ngDevMode ? { debugName: "message" } : {}), alias: 'tnTooltip',
|
|
2845
|
+
transform: (value) => value ?? '' });
|
|
2842
2846
|
position = input('above', { ...(ngDevMode ? { debugName: "position" } : {}), alias: 'tnTooltipPosition' });
|
|
2843
2847
|
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), alias: 'tnTooltipDisabled' });
|
|
2844
2848
|
showDelay = input(0, { ...(ngDevMode ? { debugName: "showDelay" } : {}), alias: 'tnTooltipShowDelay' });
|