@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.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/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +7 -2
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isPlatformBrowser } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable,
|
|
3
|
+
import { Injectable, inject, ElementRef, NgZone, afterEveryRender, effect, untracked, afterNextRender, input, booleanAttribute, output, signal, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
4
4
|
import Chart from 'chart.js/auto';
|
|
5
5
|
import { SharedModule } from '@exhaustive-ui/core/api';
|
|
6
6
|
import { BaseComponent } from '@exhaustive-ui/core/basecomponent';
|
|
@@ -9,7 +9,7 @@ import * as i1 from '@exhaustive-ui/core/bind';
|
|
|
9
9
|
import { Bind, BindModule } from '@exhaustive-ui/core/bind';
|
|
10
10
|
|
|
11
11
|
const inlineStyles = {
|
|
12
|
-
root: ({ instance }) => ({ display: 'block', position: 'relative', width: instance.width, height: instance.height })
|
|
12
|
+
root: ({ instance }) => ({ display: 'block', position: 'relative', width: instance.width(), height: instance.height() })
|
|
13
13
|
};
|
|
14
14
|
const classes = {
|
|
15
15
|
root: 'p-chart'
|
|
@@ -41,7 +41,6 @@ var ChartClasses;
|
|
|
41
41
|
ChartClasses["root"] = "p-chart";
|
|
42
42
|
})(ChartClasses || (ChartClasses = {}));
|
|
43
43
|
|
|
44
|
-
const CHART_INSTANCE = new InjectionToken('CHART_INSTANCE');
|
|
45
44
|
/**
|
|
46
45
|
* Chart groups a collection of contents in tabs.
|
|
47
46
|
* @group Components
|
|
@@ -50,87 +49,88 @@ class UIChart extends BaseComponent {
|
|
|
50
49
|
el = inject(ElementRef);
|
|
51
50
|
zone = inject(NgZone);
|
|
52
51
|
componentName = 'Chart';
|
|
53
|
-
$pcChart = inject(CHART_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
54
52
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
constructor() {
|
|
54
|
+
super();
|
|
55
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
56
|
+
effect(() => {
|
|
57
|
+
this.data();
|
|
58
|
+
this.options();
|
|
59
|
+
untracked(() => this.reinit());
|
|
60
|
+
});
|
|
61
|
+
afterNextRender(() => {
|
|
62
|
+
this.initChart();
|
|
63
|
+
this.initialized.set(true);
|
|
64
|
+
});
|
|
57
65
|
}
|
|
58
66
|
/**
|
|
59
67
|
* Type of the chart.
|
|
60
68
|
* @group Props
|
|
61
69
|
*/
|
|
62
|
-
type
|
|
70
|
+
type = input(/* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [undefined, { debugName: "type" }] : /* istanbul ignore next */ []));
|
|
63
72
|
/**
|
|
64
73
|
* Array of per-chart plugins to customize the chart behaviour.
|
|
65
74
|
* @group Props
|
|
66
75
|
*/
|
|
67
|
-
plugins = []
|
|
76
|
+
plugins = input([], /* @ts-ignore */
|
|
77
|
+
...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
|
|
68
78
|
/**
|
|
69
79
|
* Width of the chart.
|
|
70
80
|
* @group Props
|
|
71
81
|
*/
|
|
72
|
-
width
|
|
82
|
+
width = input(/* @ts-ignore */
|
|
83
|
+
...(ngDevMode ? [undefined, { debugName: "width" }] : /* istanbul ignore next */ []));
|
|
73
84
|
/**
|
|
74
85
|
* Height of the chart.
|
|
75
86
|
* @group Props
|
|
76
87
|
*/
|
|
77
|
-
height
|
|
88
|
+
height = input(/* @ts-ignore */
|
|
89
|
+
...(ngDevMode ? [undefined, { debugName: "height" }] : /* istanbul ignore next */ []));
|
|
78
90
|
/**
|
|
79
91
|
* Whether the chart is redrawn on screen size change.
|
|
80
92
|
* @group Props
|
|
81
93
|
*/
|
|
82
|
-
responsive = true;
|
|
94
|
+
responsive = input(true, { ...(ngDevMode ? { debugName: "responsive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
83
95
|
/**
|
|
84
96
|
* Used to define a string that autocomplete attribute the current element.
|
|
85
97
|
* @group Props
|
|
86
98
|
*/
|
|
87
|
-
ariaLabel
|
|
99
|
+
ariaLabel = input(/* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
88
101
|
/**
|
|
89
102
|
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
90
103
|
* @group Props
|
|
91
104
|
*/
|
|
92
|
-
ariaLabelledBy
|
|
105
|
+
ariaLabelledBy = input(/* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
93
107
|
/**
|
|
94
108
|
* Data to display.
|
|
95
109
|
* @group Props
|
|
96
110
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
set data(val) {
|
|
101
|
-
this._data = val;
|
|
102
|
-
this.reinit();
|
|
103
|
-
}
|
|
111
|
+
data = input(/* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [undefined, { debugName: "data" }] : /* istanbul ignore next */ []));
|
|
104
113
|
/**
|
|
105
114
|
* Options to customize the chart.
|
|
106
115
|
* @group Props
|
|
107
116
|
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
set options(val) {
|
|
112
|
-
this._options = val;
|
|
113
|
-
this.reinit();
|
|
114
|
-
}
|
|
117
|
+
options = input({}, /* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
115
119
|
/**
|
|
116
120
|
* Callback to execute when an element on chart is clicked.
|
|
117
121
|
* @group Emits
|
|
118
122
|
*/
|
|
119
123
|
onDataSelect = output();
|
|
120
|
-
|
|
121
|
-
initialized;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
chart;
|
|
124
|
+
initialized = signal(undefined, /* @ts-ignore */
|
|
125
|
+
...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
|
|
126
|
+
chart = signal(undefined, /* @ts-ignore */
|
|
127
|
+
...(ngDevMode ? [{ debugName: "chart" }] : /* istanbul ignore next */ []));
|
|
125
128
|
_componentStyle = inject(ChartStyle);
|
|
126
|
-
onAfterViewInit() {
|
|
127
|
-
this.initChart();
|
|
128
|
-
this.initialized = true;
|
|
129
|
-
}
|
|
130
129
|
onCanvasClick(event) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
const
|
|
130
|
+
const chart = this.chart();
|
|
131
|
+
if (chart) {
|
|
132
|
+
const element = chart.getElementsAtEventForMode(event, 'nearest', { intersect: true }, false);
|
|
133
|
+
const dataset = chart.getElementsAtEventForMode(event, 'dataset', { intersect: true }, false);
|
|
134
134
|
if (element && element[0] && dataset) {
|
|
135
135
|
this.onDataSelect.emit({ originalEvent: event, element: element[0], dataset: dataset });
|
|
136
136
|
}
|
|
@@ -138,19 +138,19 @@ class UIChart extends BaseComponent {
|
|
|
138
138
|
}
|
|
139
139
|
initChart() {
|
|
140
140
|
if (isPlatformBrowser(this.platformId)) {
|
|
141
|
-
let opts = this.options || {};
|
|
142
|
-
opts.responsive = this.responsive;
|
|
141
|
+
let opts = this.options() || {};
|
|
142
|
+
opts.responsive = this.responsive();
|
|
143
143
|
// allows chart to resize in responsive mode
|
|
144
|
-
if (opts.responsive && (this.height || this.width)) {
|
|
144
|
+
if (opts.responsive && (this.height() || this.width())) {
|
|
145
145
|
opts.maintainAspectRatio = false;
|
|
146
146
|
}
|
|
147
147
|
this.zone.runOutsideAngular(() => {
|
|
148
|
-
this.chart
|
|
149
|
-
type: this.type,
|
|
150
|
-
data: this.data,
|
|
151
|
-
options: this.options,
|
|
152
|
-
plugins: this.plugins
|
|
153
|
-
});
|
|
148
|
+
this.chart.set(new Chart(this.el.nativeElement.children[0], {
|
|
149
|
+
type: this.type(),
|
|
150
|
+
data: this.data(),
|
|
151
|
+
options: this.options(),
|
|
152
|
+
plugins: this.plugins()
|
|
153
|
+
}));
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
}
|
|
@@ -158,39 +158,43 @@ class UIChart extends BaseComponent {
|
|
|
158
158
|
return this.el.nativeElement.children[0];
|
|
159
159
|
}
|
|
160
160
|
getBase64Image() {
|
|
161
|
-
return this.chart.toBase64Image();
|
|
161
|
+
return this.chart().toBase64Image();
|
|
162
162
|
}
|
|
163
163
|
generateLegend() {
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
const chart = this.chart();
|
|
165
|
+
if (chart) {
|
|
166
|
+
return chart.generateLegend();
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
169
|
refresh() {
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
const chart = this.chart();
|
|
171
|
+
if (chart) {
|
|
172
|
+
chart.update();
|
|
171
173
|
}
|
|
172
174
|
}
|
|
173
175
|
reinit() {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
const chart = this.chart();
|
|
177
|
+
if (chart) {
|
|
178
|
+
chart.destroy();
|
|
176
179
|
this.initChart();
|
|
177
180
|
}
|
|
178
181
|
}
|
|
179
182
|
onDestroy() {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
this.
|
|
183
|
+
const chart = this.chart();
|
|
184
|
+
if (chart) {
|
|
185
|
+
chart.destroy();
|
|
186
|
+
this.initialized.set(false);
|
|
187
|
+
this.chart.set(null);
|
|
184
188
|
}
|
|
185
189
|
}
|
|
186
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: UIChart, deps:
|
|
187
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: UIChart, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
191
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.1", type: UIChart, isStandalone: true, selector: "p-chart", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onDataSelect: "onDataSelect" }, host: { properties: { "class": "cx('root')", "style": "sx('root')" } }, providers: [ChartStyle], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
188
192
|
<canvas
|
|
189
193
|
role="img"
|
|
190
|
-
[attr.aria-label]="ariaLabel"
|
|
191
|
-
[attr.aria-labelledby]="ariaLabelledBy"
|
|
192
|
-
[attr.width]="responsive && !width ? null : width"
|
|
193
|
-
[attr.height]="responsive && !height ? null : height"
|
|
194
|
+
[attr.aria-label]="ariaLabel()"
|
|
195
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
196
|
+
[attr.width]="responsive() && !width() ? null : width()"
|
|
197
|
+
[attr.height]="responsive() && !height() ? null : height()"
|
|
194
198
|
(click)="onCanvasClick($event)"
|
|
195
199
|
[pBind]="ptm('canvas')"
|
|
196
200
|
></canvas>
|
|
@@ -200,15 +204,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
200
204
|
type: Component,
|
|
201
205
|
args: [{
|
|
202
206
|
selector: 'p-chart',
|
|
203
|
-
standalone: true,
|
|
204
207
|
imports: [SharedModule, BindModule],
|
|
205
208
|
template: `
|
|
206
209
|
<canvas
|
|
207
210
|
role="img"
|
|
208
|
-
[attr.aria-label]="ariaLabel"
|
|
209
|
-
[attr.aria-labelledby]="ariaLabelledBy"
|
|
210
|
-
[attr.width]="responsive && !width ? null : width"
|
|
211
|
-
[attr.height]="responsive && !height ? null : height"
|
|
211
|
+
[attr.aria-label]="ariaLabel()"
|
|
212
|
+
[attr.aria-labelledby]="ariaLabelledBy()"
|
|
213
|
+
[attr.width]="responsive() && !width() ? null : width()"
|
|
214
|
+
[attr.height]="responsive() && !height() ? null : height()"
|
|
212
215
|
(click)="onCanvasClick($event)"
|
|
213
216
|
[pBind]="ptm('canvas')"
|
|
214
217
|
></canvas>
|
|
@@ -219,29 +222,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
219
222
|
'[class]': "cx('root')",
|
|
220
223
|
'[style]': "sx('root')"
|
|
221
224
|
},
|
|
222
|
-
providers: [ChartStyle
|
|
225
|
+
providers: [ChartStyle],
|
|
223
226
|
hostDirectives: [Bind]
|
|
224
227
|
}]
|
|
225
|
-
}], propDecorators: { type: [{
|
|
226
|
-
type: Input
|
|
227
|
-
}], plugins: [{
|
|
228
|
-
type: Input
|
|
229
|
-
}], width: [{
|
|
230
|
-
type: Input
|
|
231
|
-
}], height: [{
|
|
232
|
-
type: Input
|
|
233
|
-
}], responsive: [{
|
|
234
|
-
type: Input,
|
|
235
|
-
args: [{ transform: booleanAttribute }]
|
|
236
|
-
}], ariaLabel: [{
|
|
237
|
-
type: Input
|
|
238
|
-
}], ariaLabelledBy: [{
|
|
239
|
-
type: Input
|
|
240
|
-
}], data: [{
|
|
241
|
-
type: Input
|
|
242
|
-
}], options: [{
|
|
243
|
-
type: Input
|
|
244
|
-
}], onDataSelect: [{ type: i0.Output, args: ["onDataSelect"] }] } });
|
|
228
|
+
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], responsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsive", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], onDataSelect: [{ type: i0.Output, args: ["onDataSelect"] }] } });
|
|
245
229
|
class ChartModule {
|
|
246
230
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
247
231
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: ChartModule, imports: [UIChart, SharedModule], exports: [UIChart, SharedModule] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exhaustive-ui-core-chart.mjs","sources":["../../src/chart/style/chartstyle.ts","../../src/chart/chart.ts","../../src/chart/exhaustive-ui-core-chart.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst inlineStyles = {\n root: ({ instance }) => ({ display: 'block', position: 'relative', width: instance.width, height: instance.height })\n};\n\nconst classes = {\n root: 'p-chart'\n};\n\n@Injectable()\nexport class ChartStyle extends BaseStyle {\n name = 'chart';\n\n classes = classes;\n\n inlineStyles = inlineStyles;\n}\n\n/**\n *\n * Chart groups a collection of contents in tabs.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/chart/)\n *\n * @module chartstyle\n *\n */\nexport enum ChartClasses {\n /**\n * Class name of the root element\n */\n root = 'p-chart'\n}\n\nexport interface ChartStyle extends BaseStyle {}\n","import { isPlatformBrowser } from '@angular/common';\nimport { booleanAttribute, ChangeDetectionStrategy, Component, ElementRef, inject, InjectionToken, Input, NgModule, NgZone, ViewEncapsulation, output } from '@angular/core';\nimport Chart from 'chart.js/auto';\nimport { SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent } from '@exhaustive-ui/core/basecomponent';\nimport { ChartStyle } from './style/chartstyle';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport type { ChartPassThrough } from '@exhaustive-ui/core/types/chart';\n\nconst CHART_INSTANCE = new InjectionToken<UIChart>('CHART_INSTANCE');\n\n/**\n * Chart groups a collection of contents in tabs.\n * @group Components\n */\n@Component({\n selector: 'p-chart',\n standalone: true,\n imports: [SharedModule, BindModule],\n template: `\n <canvas\n role=\"img\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledBy\"\n [attr.width]=\"responsive && !width ? null : width\"\n [attr.height]=\"responsive && !height ? null : height\"\n (click)=\"onCanvasClick($event)\"\n [pBind]=\"ptm('canvas')\"\n ></canvas>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': \"cx('root')\",\n '[style]': \"sx('root')\"\n },\n providers: [ChartStyle, { provide: CHART_INSTANCE, useExisting: UIChart }],\n hostDirectives: [Bind]\n})\nexport class UIChart extends BaseComponent<ChartPassThrough> {\n el = inject(ElementRef);\n private zone = inject(NgZone);\n\n componentName = 'Chart';\n\n $pcChart: UIChart | undefined = inject(CHART_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n onAfterViewChecked(): void {\n this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));\n }\n\n /**\n * Type of the chart.\n * @group Props\n */\n @Input() type: 'bar' | 'line' | 'scatter' | 'bubble' | 'pie' | 'doughnut' | 'polarArea' | 'radar' | undefined;\n /**\n * Array of per-chart plugins to customize the chart behaviour.\n * @group Props\n */\n @Input() plugins: any[] = [];\n /**\n * Width of the chart.\n * @group Props\n */\n @Input() width: string | undefined;\n /**\n * Height of the chart.\n * @group Props\n */\n @Input() height: string | undefined;\n /**\n * Whether the chart is redrawn on screen size change.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) responsive: boolean = true;\n /**\n * Used to define a string that autocomplete attribute the current element.\n * @group Props\n */\n @Input() ariaLabel: string | undefined;\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n @Input() ariaLabelledBy: string | undefined;\n /**\n * Data to display.\n * @group Props\n */\n @Input() get data(): any {\n return this._data;\n }\n set data(val: any) {\n this._data = val;\n this.reinit();\n }\n /**\n * Options to customize the chart.\n * @group Props\n */\n @Input() get options(): any {\n return this._options;\n }\n set options(val: any) {\n this._options = val;\n this.reinit();\n }\n /**\n * Callback to execute when an element on chart is clicked.\n * @group Emits\n */\n readonly onDataSelect = output<any>();\n\n isBrowser: boolean = false;\n\n initialized: boolean | undefined;\n\n _data: any;\n\n _options: any = {};\n\n chart: any;\n\n _componentStyle = inject(ChartStyle);\n\n onAfterViewInit() {\n this.initChart();\n this.initialized = true;\n }\n\n onCanvasClick(event: Event) {\n if (this.chart) {\n const element = this.chart.getElementsAtEventForMode(event, 'nearest', { intersect: true }, false);\n const dataset = this.chart.getElementsAtEventForMode(event, 'dataset', { intersect: true }, false);\n\n if (element && element[0] && dataset) {\n this.onDataSelect.emit({ originalEvent: event, element: element[0], dataset: dataset });\n }\n }\n }\n\n initChart() {\n if (isPlatformBrowser(this.platformId)) {\n let opts = this.options || {};\n opts.responsive = this.responsive;\n\n // allows chart to resize in responsive mode\n if (opts.responsive && (this.height || this.width)) {\n opts.maintainAspectRatio = false;\n }\n\n this.zone.runOutsideAngular(() => {\n this.chart = new Chart(this.el.nativeElement.children[0], {\n type: this.type,\n data: this.data,\n options: this.options,\n plugins: this.plugins\n });\n });\n }\n }\n\n getCanvas() {\n return this.el.nativeElement.children[0];\n }\n\n getBase64Image() {\n return this.chart.toBase64Image();\n }\n\n generateLegend() {\n if (this.chart) {\n return this.chart.generateLegend();\n }\n }\n\n refresh() {\n if (this.chart) {\n this.chart.update();\n }\n }\n\n reinit() {\n if (this.chart) {\n this.chart.destroy();\n this.initChart();\n }\n }\n\n onDestroy() {\n if (this.chart) {\n this.chart.destroy();\n this.initialized = false;\n this.chart = null;\n }\n }\n}\n\n@NgModule({\n imports: [UIChart, SharedModule],\n exports: [UIChart, SharedModule]\n})\nex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AAE;;sBAKrC;;sBAKA;;sBAKA;;sBAWA;;MAsGQ,WAAW,CAAA;uGAAX,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAX,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,YAtKX,OAAO,EAmKG,YAAY,CAAA,EAAA,OAAA,EAAA,CAnKtB,OAAO,EAoKG,YAAY,CAAA,EAAA,CAAA;AAEtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,EAAA,OAAA,EAAA,CAHV,OAAO,EAAE,YAAY,EACZ,YAAY,CAAA,EAAA,CAAA;;2FAEtB,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;AAChC,oBAAA,OAAO,EAAE,CAAC,OAAO,EAAE,YAAY;AAClC,iBAAA;;;AC5MD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"exhaustive-ui-core-chart.mjs","sources":["../../src/chart/style/chartstyle.ts","../../src/chart/chart.ts","../../src/chart/exhaustive-ui-core-chart.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { BaseStyle } from '@exhaustive-ui/core/base';\n\nconst inlineStyles = {\n root: ({ instance }) => ({ display: 'block', position: 'relative', width: instance.width(), height: instance.height() })\n};\n\nconst classes = {\n root: 'p-chart'\n};\n\n@Injectable()\nexport class ChartStyle extends BaseStyle {\n name = 'chart';\n\n classes = classes;\n\n inlineStyles = inlineStyles;\n}\n\n/**\n *\n * Chart groups a collection of contents in tabs.\n *\n * [Live Demo](https://exhaustive-ui.e-xiste.com/chart/)\n *\n * @module chartstyle\n *\n */\nexport enum ChartClasses {\n /**\n * Class name of the root element\n */\n root = 'p-chart'\n}\n\nexport interface ChartStyle extends BaseStyle {}\n","import { isPlatformBrowser } from '@angular/common';\nimport { afterEveryRender, afterNextRender, booleanAttribute, ChangeDetectionStrategy, Component, effect, ElementRef, inject, input, NgModule, NgZone, signal, untracked, ViewEncapsulation, output } from '@angular/core';\nimport Chart from 'chart.js/auto';\nimport { SharedModule } from '@exhaustive-ui/core/api';\nimport { BaseComponent } from '@exhaustive-ui/core/basecomponent';\nimport { ChartStyle } from './style/chartstyle';\nimport { Bind, BindModule } from '@exhaustive-ui/core/bind';\nimport type { ChartPassThrough } from '@exhaustive-ui/core/types/chart';\n\n/**\n * Chart groups a collection of contents in tabs.\n * @group Components\n */\n@Component({\n selector: 'p-chart',\n imports: [SharedModule, BindModule],\n template: `\n <canvas\n role=\"img\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.width]=\"responsive() && !width() ? null : width()\"\n [attr.height]=\"responsive() && !height() ? null : height()\"\n (click)=\"onCanvasClick($event)\"\n [pBind]=\"ptm('canvas')\"\n ></canvas>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[class]': \"cx('root')\",\n '[style]': \"sx('root')\"\n },\n providers: [ChartStyle],\n hostDirectives: [Bind]\n})\nexport class UIChart extends BaseComponent<ChartPassThrough> {\n el = inject(ElementRef);\n private zone = inject(NgZone);\n\n componentName = 'Chart';\n\n bindDirectiveInstance = inject(Bind, { self: true });\n\n constructor() {\n super();\n afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));\n effect(() => {\n this.data();\n this.options();\n untracked(() => this.reinit());\n });\n afterNextRender(() => {\n this.initChart();\n this.initialized.set(true);\n });\n }\n\n /**\n * Type of the chart.\n * @group Props\n */\n readonly type = input<'bar' | 'line' | 'scatter' | 'bubble' | 'pie' | 'doughnut' | 'polarArea' | 'radar' | undefined>();\n /**\n * Array of per-chart plugins to customize the chart behaviour.\n * @group Props\n */\n readonly plugins = input<any[]>([]);\n /**\n * Width of the chart.\n * @group Props\n */\n readonly width = input<string | undefined>();\n /**\n * Height of the chart.\n * @group Props\n */\n readonly height = input<string | undefined>();\n /**\n * Whether the chart is redrawn on screen size change.\n * @group Props\n */\n readonly responsive = input<boolean, unknown>(true, { transform: booleanAttribute });\n /**\n * Used to define a string that autocomplete attribute the current element.\n * @group Props\n */\n readonly ariaLabel = input<string | undefined>();\n /**\n * Establishes relationships between the component and label(s) where its value should be one or more element IDs.\n * @group Props\n */\n readonly ariaLabelledBy = input<string | undefined>();\n /**\n * Data to display.\n * @group Props\n */\n readonly data = input<any>();\n /**\n * Options to customize the chart.\n * @group Props\n */\n readonly options = input<any>({});\n /**\n * Callback to execute when an element on chart is clicked.\n * @group Emits\n */\n readonly onDataSelect = output<any>();\n\n initialized = signal<boolean | undefined>(undefined);\n\n chart = signal<any>(undefined);\n\n _componentStyle = inject(ChartStyle);\n\n onCanvasClick(event: Event) {\n const chart = this.chart();\n if (chart) {\n const element = chart.getElementsAtEventForMode(event, 'nearest', { intersect: true }, false);\n const dataset = chart.getElementsAtEventForMode(event, 'dataset', { intersect: true }, false);\n\n if (element && element[0] && dataset) {\n this.onDataSelect.emit({ originalEvent: event, element: element[0], dataset: dataset });\n }\n }\n }\n\n initChart() {\n if (isPlatformBrowser(this.platformId)) {\n let opts = this.options() || {};\n opts.responsive = this.responsive();\n\n // allows chart to resize in responsive mode\n if (opts.responsive && (this.height() || this.width())) {\n opts.maintainAspectRatio = false;\n }\n\n this.zone.runOutsideAngular(() => {\n this.chart.set(\n new Chart(this.el.nativeElement.children[0], {\n type: this.type(),\n data: this.data(),\n options: this.options(),\n plugins: this.plugins()\n })\n );\n });\n }\n }\n\n getCanvas() {\n return this.el.nativeElement.children[0];\n }\n\n getBase64Image() {\n return this.chart().toBase64Image();\n }\n\n generateLegend() {\n const chart = this.chart();\n if (chart) {\n return chart.generateLegend();\n }\n }\n\n refresh() {\n const chart = this.chart();\n if (chart) {\n chart.update();\n }\n }\n\n reinit() {\n const chart = this.chart();\n if (chart) {\n chart.destroy();\n this.initChart();\n }\n }\n\n onDestroy() {\n const chart = this.chart();\n if (chart) {\n chart.destroy();\n this.initialized.set(false);\n this.chart.set(null);\n }\n }\n}\n\n@NgModule({\n imports: [UIChart, SharedModule],\n exports: [UIChart, SharedModule]\n})\nexport class ChartModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAGA,MAAM,YAAY,GAAG;AACjB,IAAA,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,EAAE;CAC1H;AAED,MAAM,OAAO,GAAG;AACZ,IAAA,IAAI,EAAE;CACT;AAGK,MAAO,UAAW,SAAQ,SAAS,CAAA;IACrC,IAAI,GAAG,OAAO;IAEd,OAAO,GAAG,OAAO;IAEjB,YAAY,GAAG,YAAY;uGALlB,UAAU,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAV,UAAU,EAAA,CAAA;;2FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBADtB;;AASD;;;;;;;;AAQG;IACS;AAAZ,CAAA,UAAY,YAAY,EAAA;AACpB;;AAEG;AACH,IAAA,YAAA,CAAA,MAAA,CAAA,GAAA,SAAgB;AACpB,CAAC,EALW,YAAY,KAAZ,YAAY,GAAA,EAAA,CAAA,CAAA;;ACpBxB;;;AAGG;AAwBG,MAAO,OAAQ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