@truenas/ui-components 0.8.6 → 0.8.8
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.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org",
|
|
6
6
|
"access": "public"
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
"truenas-icons": "scripts/icon-sprite/cli.cjs"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
+
"@angular/animations": "^22.0.0",
|
|
16
17
|
"@angular/cdk": "^22.0.0",
|
|
17
18
|
"@angular/common": "^22.0.0",
|
|
18
19
|
"@angular/core": "^22.0.0",
|
|
19
20
|
"@angular/forms": "^22.0.0",
|
|
21
|
+
"@angular/platform-browser": "^22.0.0",
|
|
20
22
|
"@angular/router": "^22.0.0",
|
|
21
|
-
"@mdi/angular-material": "^7.2.96",
|
|
22
23
|
"@mdi/js": "^7.4.47",
|
|
23
24
|
"rxjs": "^7.5.0"
|
|
24
25
|
},
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
"@types/svg-sprite": "~0.0.39",
|
|
29
30
|
"@types/vinyl": "~2.0.12",
|
|
30
31
|
"cheerio": "~1.0.0",
|
|
32
|
+
"fast-glob": "^3.3.3",
|
|
31
33
|
"filesize": "~11.0.17",
|
|
32
34
|
"svg-sprite": "~2.0.4",
|
|
33
35
|
"tslib": "^2.3.0",
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A mocked method, described without naming a test framework's types.
|
|
3
|
+
*
|
|
4
|
+
* These fields were `jest.Mock`, and that reached the published `.d.ts` while the
|
|
5
|
+
* `/// <reference types="jest" />` above it did not: ng-packagr's flattening keeps the types
|
|
6
|
+
* and drops the directive, so a consumer without jest's types in scope got
|
|
7
|
+
* `Cannot find namespace 'jest'` from a declaration file they never opened (#358). Declaring
|
|
8
|
+
* `@types/jest` as a peer of a component library would have fixed the error and is the wrong
|
|
9
|
+
* shape — so the namespace leaves the public surface instead, and the directive stays for the
|
|
10
|
+
* `jest.fn()` calls below, which are values in this module's own body and reach no consumer.
|
|
11
|
+
*
|
|
12
|
+
* `never[]` rather than `unknown[]`: these are property positions, so `strictFunctionTypes`
|
|
13
|
+
* makes their parameters contravariant, and `unknown[]` would reject the typed `jest.fn()` a
|
|
14
|
+
* caller passes through {@link IconTestingMockOverrides}. `never[]` accepts any signature,
|
|
15
|
+
* which is the whole promise being made here — that a mock goes in.
|
|
16
|
+
*/
|
|
1
17
|
import * as i0 from "@angular/core";
|
|
2
18
|
import { AfterContentInit, AfterViewChecked, AfterViewInit, ChangeDetectorRef, ComponentRef, DoCheck, ElementRef, InjectionToken, OnChanges, OnDestroy, OnInit, PipeTransform, Provider, Renderer2, Signal, SimpleChanges, TemplateRef, TrackByFunction, ViewContainerRef } from "@angular/core";
|
|
3
19
|
import { AbstractControl, ControlValueAccessor, NgControl, ValidationErrors } from "@angular/forms";
|
|
@@ -10303,25 +10319,26 @@ export declare function tnIconMarker(iconName: string, library?: 'mdi' | 'materi
|
|
|
10303
10319
|
* @internal
|
|
10304
10320
|
*/
|
|
10305
10321
|
export declare function libIconMarker(iconName: `tn-${string}`): string;
|
|
10322
|
+
export type TnMockedMethod = (...args: never[]) => unknown;
|
|
10306
10323
|
/**
|
|
10307
10324
|
* Mock type for TnSpriteLoaderService
|
|
10308
10325
|
*/
|
|
10309
10326
|
export interface MockSpriteLoader {
|
|
10310
|
-
ensureSpriteLoaded:
|
|
10311
|
-
getIconUrl:
|
|
10312
|
-
getSafeIconUrl:
|
|
10313
|
-
isSpriteLoaded:
|
|
10314
|
-
getSpriteConfig:
|
|
10327
|
+
ensureSpriteLoaded: TnMockedMethod;
|
|
10328
|
+
getIconUrl: TnMockedMethod;
|
|
10329
|
+
getSafeIconUrl: TnMockedMethod;
|
|
10330
|
+
isSpriteLoaded: TnMockedMethod;
|
|
10331
|
+
getSpriteConfig: TnMockedMethod;
|
|
10315
10332
|
}
|
|
10316
10333
|
/**
|
|
10317
10334
|
* Mock type for TnIconRegistryService
|
|
10318
10335
|
*/
|
|
10319
10336
|
export interface MockIconRegistry {
|
|
10320
|
-
resolveIcon:
|
|
10321
|
-
getSpriteLoader:
|
|
10322
|
-
registerIcon:
|
|
10323
|
-
registerIcons:
|
|
10324
|
-
registerLibrary:
|
|
10337
|
+
resolveIcon: TnMockedMethod;
|
|
10338
|
+
getSpriteLoader: TnMockedMethod;
|
|
10339
|
+
registerIcon: TnMockedMethod;
|
|
10340
|
+
registerIcons: TnMockedMethod;
|
|
10341
|
+
registerLibrary: TnMockedMethod;
|
|
10325
10342
|
}
|
|
10326
10343
|
/**
|
|
10327
10344
|
* Options for customizing icon testing mocks
|