@ni/nimble-angular 19.4.0 → 20.0.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.
Files changed (35) hide show
  1. package/directives/icons/arrow-up-right-from-square/nimble-icon-arrow-up-right-from-square.directive.d.ts +12 -0
  2. package/directives/icons/arrow-up-right-from-square/nimble-icon-arrow-up-right-from-square.module.d.ts +9 -0
  3. package/directives/icons/index.d.ts +8 -0
  4. package/directives/icons/pause/nimble-icon-pause.directive.d.ts +12 -0
  5. package/directives/icons/pause/nimble-icon-pause.module.d.ts +9 -0
  6. package/directives/icons/play/nimble-icon-play.directive.d.ts +12 -0
  7. package/directives/icons/play/nimble-icon-play.module.d.ts +9 -0
  8. package/directives/icons/stop-square/nimble-icon-stop-square.directive.d.ts +12 -0
  9. package/directives/icons/stop-square/nimble-icon-stop-square.module.d.ts +9 -0
  10. package/esm2020/directives/icons/arrow-up-right-from-square/nimble-icon-arrow-up-right-from-square.directive.mjs +21 -0
  11. package/esm2020/directives/icons/arrow-up-right-from-square/nimble-icon-arrow-up-right-from-square.module.mjs +21 -0
  12. package/esm2020/directives/icons/index.mjs +9 -1
  13. package/esm2020/directives/icons/pause/nimble-icon-pause.directive.mjs +21 -0
  14. package/esm2020/directives/icons/pause/nimble-icon-pause.module.mjs +21 -0
  15. package/esm2020/directives/icons/play/nimble-icon-play.directive.mjs +21 -0
  16. package/esm2020/directives/icons/play/nimble-icon-play.module.mjs +21 -0
  17. package/esm2020/directives/icons/stop-square/nimble-icon-stop-square.directive.mjs +21 -0
  18. package/esm2020/directives/icons/stop-square/nimble-icon-stop-square.module.mjs +21 -0
  19. package/esm2020/pipes/duration.pipe.mjs +4 -3
  20. package/esm2020/pipes/number-text.pipe.mjs +30 -0
  21. package/esm2020/pipes/public-api.mjs +5 -2
  22. package/fesm2015/ni-nimble-angular-pipes.mjs +35 -15
  23. package/fesm2015/ni-nimble-angular-pipes.mjs.map +1 -1
  24. package/fesm2015/ni-nimble-angular.mjs +133 -1
  25. package/fesm2015/ni-nimble-angular.mjs.map +1 -1
  26. package/fesm2020/ni-nimble-angular-pipes.mjs +32 -15
  27. package/fesm2020/ni-nimble-angular-pipes.mjs.map +1 -1
  28. package/fesm2020/ni-nimble-angular.mjs +133 -1
  29. package/fesm2020/ni-nimble-angular.mjs.map +1 -1
  30. package/package.json +2 -2
  31. package/pipes/duration.pipe.d.ts +1 -1
  32. package/pipes/number-text.pipe.d.ts +17 -0
  33. package/pipes/public-api.d.ts +4 -1
  34. package/esm2020/pipes/nimble-pipes.module.mjs +0 -18
  35. package/pipes/nimble-pipes.module.d.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/nimble-angular",
3
- "version": "19.4.0",
3
+ "version": "20.0.1",
4
4
  "description": "Angular components for the NI Nimble Design System",
5
5
  "repository": {
6
6
  "type": "git",
@@ -268,7 +268,7 @@
268
268
  "@angular/forms": "^15.2.10",
269
269
  "@angular/localize": "^15.2.10",
270
270
  "@angular/router": "^15.2.10",
271
- "@ni/nimble-components": "^21.0.5"
271
+ "@ni/nimble-components": "^21.2.0"
272
272
  },
273
273
  "dependencies": {
274
274
  "tslib": "^2.2.0"
@@ -9,5 +9,5 @@ export declare class DurationPipe implements PipeTransform {
9
9
  transform(timeInMilliseconds: string | number | null | undefined): string;
10
10
  private parseDuration;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DurationPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<DurationPipe, "duration", false>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<DurationPipe, "duration", true>;
13
13
  }
@@ -0,0 +1,17 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { NumberTextUnitFormat, NumberTextUnitFormatOptions } from '@ni/nimble-components/dist/esm/table-column/number-text/models/number-text-unit-format';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * A pipe that transforms a number into a string with optional unit
6
+ */
7
+ export declare class NumberTextPipe implements PipeTransform {
8
+ private readonly locale;
9
+ /**
10
+ * @internal
11
+ */
12
+ numberTextUnitFormat?: NumberTextUnitFormat;
13
+ constructor(locale: string);
14
+ transform(value: number, options?: NumberTextUnitFormatOptions): string;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberTextPipe, never>;
16
+ static ɵpipe: i0.ɵɵPipeDeclaration<NumberTextPipe, "numberText", true>;
17
+ }
@@ -1,2 +1,5 @@
1
1
  export * from './duration.pipe';
2
- export * from './nimble-pipes.module';
2
+ export * from './number-text.pipe';
3
+ export { byteUnitScale } from '@ni/nimble-components/dist/esm/utilities/unit-format/unit-scale/byte-unit-scale';
4
+ export { byte1024UnitScale } from '@ni/nimble-components/dist/esm/utilities/unit-format/unit-scale/byte-1024-unit-scale';
5
+ export { voltUnitScale } from '@ni/nimble-components/dist/esm/utilities/unit-format/unit-scale/volt-unit-scale';
@@ -1,18 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { DurationPipe } from './duration.pipe';
4
- import * as i0 from "@angular/core";
5
- export class NimblePipesModule {
6
- }
7
- NimblePipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NimblePipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
- NimblePipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: NimblePipesModule, declarations: [DurationPipe], imports: [CommonModule], exports: [DurationPipe] });
9
- NimblePipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NimblePipesModule, imports: [CommonModule] });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: NimblePipesModule, decorators: [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [DurationPipe],
14
- imports: [CommonModule],
15
- exports: [DurationPipe]
16
- }]
17
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WxlXSxcbiAgICBleHBvcnRzOiBbRHVyYXRpb25QaXBlXVxufSlcbmV4cG9ydCBjbGFzcyBOaW1ibGVQaXBlc01vZHVsZSB7IH1cbiJdfQ==
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./duration.pipe";
3
- import * as i2 from "@angular/common";
4
- export declare class NimblePipesModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<NimblePipesModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<NimblePipesModule, [typeof i1.DurationPipe], [typeof i2.CommonModule], [typeof i1.DurationPipe]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<NimblePipesModule>;
8
- }