@nova-ui/dashboards 16.0.1 → 16.0.2

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 (40) hide show
  1. package/esm2022/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.mjs +3 -2
  2. package/esm2022/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.mjs +3 -2
  3. package/esm2022/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.mjs +3 -2
  4. package/esm2022/lib/configurator/components/formatters/link-formatter/link-formatter.component.mjs +1 -1
  5. package/esm2022/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.mjs +4 -3
  6. package/esm2022/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.mjs +4 -3
  7. package/esm2022/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.mjs +3 -2
  8. package/esm2022/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.mjs +3 -3
  9. package/esm2022/lib/pizzagna/directives/component-portal/component-portal.directive.mjs +3 -2
  10. package/fesm2022/nova-ui-dashboards.mjs +18 -11
  11. package/fesm2022/nova-ui-dashboards.mjs.map +1 -1
  12. package/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.d.ts +1 -1
  13. package/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.d.ts +1 -1
  14. package/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.d.ts +1 -1
  15. package/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.d.ts +1 -1
  16. package/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.d.ts +1 -1
  17. package/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.d.ts +1 -1
  18. package/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.d.ts +1 -1
  19. package/lib/pizzagna/directives/component-portal/component-portal.directive.d.ts +1 -0
  20. package/package.json +3 -3
  21. package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.js +1 -0
  22. package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-raw-formatter/donut-content-raw-formatter.component.js.map +1 -1
  23. package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.js +1 -0
  24. package/sdk/atoms/src/lib/configurator/components/formatters/donut-content-sum-formatter/donut-content-sum-formatter.component.js.map +1 -1
  25. package/sdk/atoms/src/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.js +1 -0
  26. package/sdk/atoms/src/lib/configurator/components/formatters/icon-formatter/icon-formatter.component.js.map +1 -1
  27. package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js +1 -0
  28. package/sdk/atoms/src/lib/configurator/components/formatters/link-formatter/link-formatter.component.js.map +1 -1
  29. package/sdk/atoms/src/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js +2 -1
  30. package/sdk/atoms/src/lib/configurator/components/formatters/percentage-formatter/percentage-formatter.component.js.map +1 -1
  31. package/sdk/atoms/src/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js +2 -1
  32. package/sdk/atoms/src/lib/configurator/components/formatters/raw-formatter/raw-formatter.component.js.map +1 -1
  33. package/sdk/atoms/src/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.js +1 -0
  34. package/sdk/atoms/src/lib/configurator/components/formatters/si-units-formatter/si-units-formatter.component.js.map +1 -1
  35. package/sdk/atoms/src/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.js +1 -0
  36. package/sdk/atoms/src/lib/configurator/components/formatters/status-with-icon-formatter/status-with-icon-formatter.component.js.map +1 -1
  37. package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.d.ts +1 -0
  38. package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.js +3 -1
  39. package/sdk/atoms/src/lib/pizzagna/directives/component-portal/component-portal.directive.js.map +1 -1
  40. package/sdk/locale/messages.en.xlf +1 -1
@@ -4662,6 +4662,7 @@ class ComponentPortalDirective {
4662
4662
  ngOnDestroy() {
4663
4663
  this.logger.debug("Portal destroyed:", this.componentId);
4664
4664
  this.destroyProviders();
4665
+ this.listenerUnsubscriber?.();
4665
4666
  this.destroy$.next();
4666
4667
  this.destroy$.complete();
4667
4668
  }
@@ -4669,7 +4670,7 @@ class ComponentPortalDirective {
4669
4670
  this.component = componentRef.instance;
4670
4671
  // ctrl+shift+click on a pizzagna to get a dump of its properties
4671
4672
  // this will propagate through the parent components, so it should dump the parent pizzagnas as well
4672
- this.renderer.listen(componentRef.location.nativeElement, "click", (event) => {
4673
+ this.listenerUnsubscriber = this.renderer.listen(componentRef.location.nativeElement, "click", (event) => {
4673
4674
  // event.metaKey is a CMD key for Mac
4674
4675
  if ((event.ctrlKey || event.metaKey) &&
4675
4676
  event.shiftKey &&
@@ -11636,7 +11637,7 @@ class DonutContentRawFormatterComponent {
11636
11637
  this.convertedValue = this.unitConversionPipe.transform(this.sum);
11637
11638
  }
11638
11639
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DonutContentRawFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i2.UnitConversionService }], target: i0.ɵɵFactoryTarget.Component }); }
11639
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DonutContentRawFormatterComponent, selector: "ng-component", inputs: { data: "data", config: "config" }, usesOnChanges: true, ngImport: i0, template: `<ng-container>
11640
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DonutContentRawFormatterComponent, selector: "nui-donut-content-raw-formatter", inputs: { data: "data", config: "config" }, usesOnChanges: true, ngImport: i0, template: `<ng-container>
11640
11641
  <nui-icon
11641
11642
  *ngIf="config?.chartDonutContentIcon"
11642
11643
  [icon]="config?.chartDonutContentIcon"
@@ -11659,6 +11660,7 @@ class DonutContentRawFormatterComponent {
11659
11660
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DonutContentRawFormatterComponent, decorators: [{
11660
11661
  type: Component,
11661
11662
  args: [{
11663
+ selector: "nui-donut-content-raw-formatter",
11662
11664
  template: `<ng-container>
11663
11665
  <nui-icon
11664
11666
  *ngIf="config?.chartDonutContentIcon"
@@ -11713,13 +11715,14 @@ class DonutContentSumFormatterComponent {
11713
11715
  this.sum = sumBy(this.data, (s) => s.data[0]);
11714
11716
  }
11715
11717
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DonutContentSumFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
11716
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DonutContentSumFormatterComponent, selector: "ng-component", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `<ng-container
11718
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DonutContentSumFormatterComponent, selector: "nui-dashboards-donut-content-sum-formatter", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `<ng-container
11717
11719
  ><div class="nui-text-page">{{ this.sum }}</div></ng-container
11718
11720
  >`, isInline: true }); }
11719
11721
  }
11720
11722
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DonutContentSumFormatterComponent, decorators: [{
11721
11723
  type: Component,
11722
11724
  args: [{
11725
+ selector: "nui-dashboards-donut-content-sum-formatter",
11723
11726
  template: `<ng-container
11724
11727
  ><div class="nui-text-page">{{ this.sum }}</div></ng-container
11725
11728
  >`,
@@ -11760,7 +11763,7 @@ class IconFormatterComponent {
11760
11763
  this.iconFound = !!this.iconService.getIconData(this.data?.value);
11761
11764
  }
11762
11765
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i2.IconService }], target: i0.ɵɵFactoryTarget.Component }); }
11763
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IconFormatterComponent, selector: "ng-component", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `
11766
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: IconFormatterComponent, selector: "nui-dashboards-icon-formatter", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `
11764
11767
  <div
11765
11768
  *ngIf="isValid"
11766
11769
  class="d-flex align-items-center justify-content-center"
@@ -11783,6 +11786,7 @@ class IconFormatterComponent {
11783
11786
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IconFormatterComponent, decorators: [{
11784
11787
  type: Component,
11785
11788
  args: [{
11789
+ selector: "nui-dashboards-icon-formatter",
11786
11790
  template: `
11787
11791
  <div
11788
11792
  *ngIf="isValid"
@@ -11890,12 +11894,13 @@ class RawFormatterComponent {
11890
11894
  this.changeDetector = changeDetector;
11891
11895
  }
11892
11896
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RawFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
11893
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RawFormatterComponent, selector: "ng-component", inputs: { data: "data", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, ngImport: i0, template: ` <ng-container>{{ data?.value }}</ng-container>`, isInline: true }); }
11897
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: RawFormatterComponent, selector: "nui-dashboards-raw-formatter", inputs: { data: "data", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, ngImport: i0, template: `<ng-container>{{ data?.value }}</ng-container>`, isInline: true }); }
11894
11898
  }
11895
11899
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RawFormatterComponent, decorators: [{
11896
11900
  type: Component,
11897
11901
  args: [{
11898
- template: ` <ng-container>{{ data?.value }}</ng-container>`,
11902
+ selector: "nui-dashboards-raw-formatter",
11903
+ template: `<ng-container>{{ data?.value }}</ng-container>`,
11899
11904
  }]
11900
11905
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { data: [{
11901
11906
  type: Input
@@ -11928,12 +11933,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
11928
11933
  class PercentageFormatterComponent extends RawFormatterComponent {
11929
11934
  static { this.lateLoadKey = "PercentageFormatterComponent"; }
11930
11935
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PercentageFormatterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
11931
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PercentageFormatterComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: ` <ng-container> {{ data?.value }}% </ng-container>`, isInline: true }); }
11936
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PercentageFormatterComponent, selector: "nui-dashboards-percentage-formatter", usesInheritance: true, ngImport: i0, template: `<ng-container> {{ data?.value }}% </ng-container>`, isInline: true }); }
11932
11937
  }
11933
11938
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PercentageFormatterComponent, decorators: [{
11934
11939
  type: Component,
11935
11940
  args: [{
11936
- template: ` <ng-container> {{ data?.value }}% </ng-container>`,
11941
+ selector: "nui-dashboards-percentage-formatter",
11942
+ template: `<ng-container> {{ data?.value }}% </ng-container>`,
11937
11943
  }]
11938
11944
  }] });
11939
11945
 
@@ -12125,7 +12131,7 @@ class SiUnitsFormatterComponent {
12125
12131
  }
12126
12132
  }
12127
12133
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SiUnitsFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
12128
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SiUnitsFormatterComponent, selector: "ng-component", inputs: { data: "data", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: `
12134
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SiUnitsFormatterComponent, selector: "nui-dashboards-si-units-formatter", inputs: { data: "data", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: `
12129
12135
  <ng-container>
12130
12136
  <div class="d-flex flex-nowrap">
12131
12137
  <span>{{ value }}</span>
@@ -12137,6 +12143,7 @@ class SiUnitsFormatterComponent {
12137
12143
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SiUnitsFormatterComponent, decorators: [{
12138
12144
  type: Component,
12139
12145
  args: [{
12146
+ selector: "nui-dashboards-si-units-formatter",
12140
12147
  template: `
12141
12148
  <ng-container>
12142
12149
  <div class="d-flex flex-nowrap">
@@ -12197,7 +12204,7 @@ class StatusWithIconFormatterComponent {
12197
12204
  this.data.data);
12198
12205
  }
12199
12206
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatusWithIconFormatterComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
12200
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StatusWithIconFormatterComponent, selector: "ng-component", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `
12207
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StatusWithIconFormatterComponent, selector: "nui-dashboards-status-icon-formatter", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: `
12201
12208
  <ng-container *ngIf="isValid">
12202
12209
  <div
12203
12210
  class="nui-text-label align-items-center status-icon-formatter"
@@ -12231,7 +12238,7 @@ class StatusWithIconFormatterComponent {
12231
12238
  }
12232
12239
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StatusWithIconFormatterComponent, decorators: [{
12233
12240
  type: Component,
12234
- args: [{ template: `
12241
+ args: [{ selector: "nui-dashboards-status-icon-formatter", template: `
12235
12242
  <ng-container *ngIf="isValid">
12236
12243
  <div
12237
12244
  class="nui-text-label align-items-center status-icon-formatter"