@dragonworks/ngx-dashboard-widgets 20.1.6 → 20.3.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.
package/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { AfterViewInit } from '@angular/core';
|
|
|
3
3
|
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
4
4
|
import { Widget, WidgetMetadata } from '@dragonworks/ngx-dashboard';
|
|
5
5
|
|
|
6
|
+
declare const NGX_DASHBOARD_WIDGETS_VERSION = "20.3.1";
|
|
7
|
+
|
|
6
8
|
interface ArrowWidgetState {
|
|
7
9
|
direction: 'left' | 'up' | 'right' | 'down';
|
|
8
10
|
opacity?: number;
|
|
@@ -31,6 +33,7 @@ interface LabelWidgetState {
|
|
|
31
33
|
responsive?: boolean;
|
|
32
34
|
minFontSize?: number;
|
|
33
35
|
maxFontSize?: number;
|
|
36
|
+
templateString?: string;
|
|
34
37
|
}
|
|
35
38
|
declare class LabelWidgetComponent implements Widget {
|
|
36
39
|
#private;
|
|
@@ -44,6 +47,7 @@ declare class LabelWidgetComponent implements Widget {
|
|
|
44
47
|
get label(): string;
|
|
45
48
|
readonly minFontSize: _angular_core.Signal<number>;
|
|
46
49
|
readonly maxFontSize: _angular_core.Signal<number>;
|
|
50
|
+
readonly templateString: _angular_core.Signal<string | undefined>;
|
|
47
51
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LabelWidgetComponent, never>;
|
|
48
52
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LabelWidgetComponent, "ngx-dashboard-label-widget", never, {}, {}, never, never, true, never>;
|
|
49
53
|
}
|
|
@@ -456,7 +460,8 @@ declare class RadialGaugeComponent {
|
|
|
456
460
|
*
|
|
457
461
|
* @example
|
|
458
462
|
* <div class="container">
|
|
459
|
-
* <span
|
|
463
|
+
* <span libResponsiveText [minFontSize]="12" [maxFontSize]="72">Dynamic text here</span>
|
|
464
|
+
* <span libResponsiveText [templateString]="'Template for sizing'">Shorter text</span>
|
|
460
465
|
* </div>
|
|
461
466
|
*/
|
|
462
467
|
declare class ResponsiveTextDirective implements AfterViewInit {
|
|
@@ -473,6 +478,8 @@ declare class ResponsiveTextDirective implements AfterViewInit {
|
|
|
473
478
|
observeMutations: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
474
479
|
/** Debounce delay in ms for resize/mutation callbacks */
|
|
475
480
|
debounceMs: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
481
|
+
/** Template string to use for size calculations instead of actual content */
|
|
482
|
+
templateString: _angular_core.InputSignal<string | undefined>;
|
|
476
483
|
private readonly el;
|
|
477
484
|
private readonly zone;
|
|
478
485
|
private readonly platformId;
|
|
@@ -483,9 +490,11 @@ declare class ResponsiveTextDirective implements AfterViewInit {
|
|
|
483
490
|
private mo?;
|
|
484
491
|
private fitTimeout?;
|
|
485
492
|
private lastText;
|
|
493
|
+
private lastTemplateString;
|
|
486
494
|
private lastMaxW;
|
|
487
495
|
private lastMaxH;
|
|
488
496
|
private lastFontSize;
|
|
497
|
+
private isViewInitialized;
|
|
489
498
|
constructor();
|
|
490
499
|
ngAfterViewInit(): void;
|
|
491
500
|
/**
|
|
@@ -525,8 +534,8 @@ declare class ResponsiveTextDirective implements AfterViewInit {
|
|
|
525
534
|
*/
|
|
526
535
|
private cleanup;
|
|
527
536
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResponsiveTextDirective, never>;
|
|
528
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ResponsiveTextDirective, "[libResponsiveText]", never, { "minFontSize": { "alias": "minFontSize"; "required": false; "isSignal": true; }; "maxFontSize": { "alias": "maxFontSize"; "required": false; "isSignal": true; }; "lineHeight": { "alias": "lineHeight"; "required": false; "isSignal": true; }; "observeMutations": { "alias": "observeMutations"; "required": false; "isSignal": true; }; "debounceMs": { "alias": "debounceMs"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
537
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ResponsiveTextDirective, "[libResponsiveText]", never, { "minFontSize": { "alias": "minFontSize"; "required": false; "isSignal": true; }; "maxFontSize": { "alias": "maxFontSize"; "required": false; "isSignal": true; }; "lineHeight": { "alias": "lineHeight"; "required": false; "isSignal": true; }; "observeMutations": { "alias": "observeMutations"; "required": false; "isSignal": true; }; "debounceMs": { "alias": "debounceMs"; "required": false; "isSignal": true; }; "templateString": { "alias": "templateString"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
529
538
|
}
|
|
530
539
|
|
|
531
|
-
export { ArrowWidgetComponent, ClockWidgetComponent, LabelWidgetComponent, RadialGaugeComponent, RadialGaugeWidgetComponent, ResponsiveTextDirective };
|
|
540
|
+
export { ArrowWidgetComponent, ClockWidgetComponent, LabelWidgetComponent, NGX_DASHBOARD_WIDGETS_VERSION, RadialGaugeComponent, RadialGaugeWidgetComponent, ResponsiveTextDirective };
|
|
532
541
|
export type { RadialGaugeSegment };
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dragonworks/ngx-dashboard-widgets",
|
|
3
|
-
"version": "20.1
|
|
3
|
+
"version": "20.3.1",
|
|
4
4
|
"description": "Widget collection for ngx-dashboard with Material Design 3 compliance including arrow, label, clock widgets and responsive text directive",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.2.0",
|
|
7
7
|
"@angular/core": "^20.2.0",
|
|
8
|
-
"@
|
|
8
|
+
"@angular/localize": "^20.2.0",
|
|
9
|
+
"@dragonworks/ngx-dashboard": "^20.3.1"
|
|
9
10
|
},
|
|
10
11
|
"dependencies": {
|
|
11
12
|
"tslib": "^2.3.0"
|