@truenas/ui-components 0.1.11 → 0.1.13

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.1.11",
3
+ "version": "0.1.13",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -264,11 +264,18 @@ declare class TnIconComponent {
264
264
  * instead of using the fixed size from the `size` input.
265
265
  */
266
266
  fullSize: _angular_core.InputSignal<boolean>;
267
+ /**
268
+ * Custom size for the icon. Accepts any valid CSS size value (e.g., '64px', '2rem', '3em').
269
+ * When set, this overrides both the `size` preset and `fullSize` inputs.
270
+ */
271
+ customSize: _angular_core.InputSignal<string | undefined>;
267
272
  svgContainer: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
268
273
  iconResult: _angular_core.WritableSignal<IconResult>;
269
274
  private iconRegistry;
270
275
  private sanitizer;
271
276
  constructor();
277
+ hostDimension: _angular_core.Signal<string | null>;
278
+ hostFontSize: _angular_core.Signal<string | null>;
272
279
  effectiveAriaLabel: _angular_core.Signal<string>;
273
280
  sanitizedContent: _angular_core.Signal<SafeHtml>;
274
281
  private resolveIcon;
@@ -277,7 +284,7 @@ declare class TnIconComponent {
277
284
  private tryUnicodeIcon;
278
285
  private generateTextAbbreviation;
279
286
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TnIconComponent, never>;
280
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnIconComponent, "tn-icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "library": { "alias": "library"; "required": false; "isSignal": true; }; "fullSize": { "alias": "fullSize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
287
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TnIconComponent, "tn-icon", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "library": { "alias": "library"; "required": false; "isSignal": true; }; "fullSize": { "alias": "fullSize"; "required": false; "isSignal": true; }; "customSize": { "alias": "customSize"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
281
288
  }
282
289
 
283
290
  declare class TnIconButtonComponent {
@@ -1196,6 +1203,32 @@ declare class TnIconHarness extends ComponentHarness {
1196
1203
  * ```
1197
1204
  */
1198
1205
  isFullSize(): Promise<boolean>;
1206
+ /**
1207
+ * Gets the icon custom size.
1208
+ *
1209
+ * @returns Promise resolving to the custom size value, or null if not set.
1210
+ *
1211
+ * @example
1212
+ * ```typescript
1213
+ * const icon = await loader.getHarness(TnIconHarness);
1214
+ * const customSize = await icon.getCustomSize();
1215
+ * expect(customSize).toBe('64px');
1216
+ * ```
1217
+ */
1218
+ getCustomSize(): Promise<string | null>;
1219
+ /**
1220
+ * Checks if the icon is using a custom size.
1221
+ *
1222
+ * @returns Promise resolving to true if a custom size is set, false otherwise.
1223
+ *
1224
+ * @example
1225
+ * ```typescript
1226
+ * const icon = await loader.getHarness(TnIconHarness);
1227
+ * const hasCustomSize = await icon.hasCustomSize();
1228
+ * expect(hasCustomSize).toBe(true);
1229
+ * ```
1230
+ */
1231
+ hasCustomSize(): Promise<boolean>;
1199
1232
  /**
1200
1233
  * Clicks the icon.
1201
1234
  *
@@ -1221,6 +1254,8 @@ interface IconHarnessFilters extends BaseHarnessFilters {
1221
1254
  size?: string;
1222
1255
  /** Filters by full-size mode. */
1223
1256
  fullSize?: boolean;
1257
+ /** Filters by custom size value. */
1258
+ customSize?: string;
1224
1259
  }
1225
1260
 
1226
1261
  /**