@trismegisto/charts 3.3.10 → 3.3.12
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/LICENSE +56 -56
- package/NOTICE +13 -13
- package/README.md +123 -123
- package/fesm2022/trismegisto-charts.mjs +116 -116
- package/fesm2022/trismegisto-charts.mjs.map +1 -1
- package/package.json +6 -6
|
@@ -10780,112 +10780,112 @@ class HmChartFrameComponent {
|
|
|
10780
10780
|
return this.view().table.align?.[index] ?? 'start';
|
|
10781
10781
|
}
|
|
10782
10782
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HmChartFrameComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10783
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: HmChartFrameComponent, isStandalone: true, selector: "hm-chart-frame", inputs: { view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, tableToggle: { classPropertyName: "tableToggle", publicName: "tableToggle", isSignal: true, isRequired: false, transformFunction: null }, showTable: { classPropertyName: "showTable", publicName: "showTable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { showTable: "showTableChange" }, host: { classAttribute: "hm-chart-frame" }, ngImport: i0, template: `
|
|
10784
|
-
@if (tableToggle()) {
|
|
10785
|
-
<div class="hm-chart-frame__bar">
|
|
10786
|
-
<button type="button" class="hm-btn hm-btn--minimal hm-btn--small" (click)="showTable.set(!showTable())">
|
|
10787
|
-
{{ showTable() ? m().frame.showChart : m().frame.showTable }}
|
|
10788
|
-
</button>
|
|
10789
|
-
</div>
|
|
10790
|
-
}
|
|
10791
|
-
<hm-chart
|
|
10792
|
-
[class.hm-chart-frame__off]="showTable()"
|
|
10793
|
-
[option]="view().option"
|
|
10794
|
-
[label]="label()"
|
|
10795
|
-
[points]="view().points"
|
|
10796
|
-
[attr.aria-describedby]="summaryId"
|
|
10797
|
-
[style.block-size]="height() || null"
|
|
10798
|
-
/>
|
|
10799
|
-
<p class="hm-visually-hidden" [id]="summaryId">
|
|
10800
|
-
{{ view().summary }} {{ description() }} {{ view().points.length ? m().frame.keyboardHint : '' }}
|
|
10801
|
-
</p>
|
|
10802
|
-
<div
|
|
10803
|
-
class="hm-chart-frame__table"
|
|
10804
|
-
[class.hm-visually-hidden]="!showTable()"
|
|
10805
|
-
[attr.role]="showTable() ? 'region' : null"
|
|
10806
|
-
[attr.aria-label]="showTable() ? caption() : null"
|
|
10807
|
-
[attr.tabindex]="showTable() ? 0 : null"
|
|
10808
|
-
>
|
|
10809
|
-
<table class="hm-table hm-table--compact">
|
|
10810
|
-
<caption>{{ caption() }}</caption>
|
|
10811
|
-
<thead>
|
|
10812
|
-
<tr>
|
|
10813
|
-
@for (column of view().table.columns; track $index) {
|
|
10814
|
-
<th scope="col" [class.hm-chart-frame__num]="align($index) === 'end'">{{ column }}</th>
|
|
10815
|
-
}
|
|
10816
|
-
</tr>
|
|
10817
|
-
</thead>
|
|
10818
|
-
<tbody>
|
|
10819
|
-
@for (row of view().table.rows; track $index) {
|
|
10820
|
-
<tr>
|
|
10821
|
-
<th scope="row">{{ row.header }}</th>
|
|
10822
|
-
@for (cell of row.cells; track $index) {
|
|
10823
|
-
<td [class.hm-chart-frame__num]="align($index + 1) === 'end'">{{ cell }}</td>
|
|
10824
|
-
}
|
|
10825
|
-
</tr>
|
|
10826
|
-
} @empty {
|
|
10827
|
-
<tr>
|
|
10828
|
-
<td [attr.colspan]="view().table.columns.length || 1">{{ m().frame.noData }}</td>
|
|
10829
|
-
</tr>
|
|
10830
|
-
}
|
|
10831
|
-
</tbody>
|
|
10832
|
-
</table>
|
|
10833
|
-
</div>
|
|
10783
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: HmChartFrameComponent, isStandalone: true, selector: "hm-chart-frame", inputs: { view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, tableToggle: { classPropertyName: "tableToggle", publicName: "tableToggle", isSignal: true, isRequired: false, transformFunction: null }, showTable: { classPropertyName: "showTable", publicName: "showTable", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { showTable: "showTableChange" }, host: { classAttribute: "hm-chart-frame" }, ngImport: i0, template: `
|
|
10784
|
+
@if (tableToggle()) {
|
|
10785
|
+
<div class="hm-chart-frame__bar">
|
|
10786
|
+
<button type="button" class="hm-btn hm-btn--minimal hm-btn--small" (click)="showTable.set(!showTable())">
|
|
10787
|
+
{{ showTable() ? m().frame.showChart : m().frame.showTable }}
|
|
10788
|
+
</button>
|
|
10789
|
+
</div>
|
|
10790
|
+
}
|
|
10791
|
+
<hm-chart
|
|
10792
|
+
[class.hm-chart-frame__off]="showTable()"
|
|
10793
|
+
[option]="view().option"
|
|
10794
|
+
[label]="label()"
|
|
10795
|
+
[points]="view().points"
|
|
10796
|
+
[attr.aria-describedby]="summaryId"
|
|
10797
|
+
[style.block-size]="height() || null"
|
|
10798
|
+
/>
|
|
10799
|
+
<p class="hm-visually-hidden" [id]="summaryId">
|
|
10800
|
+
{{ view().summary }} {{ description() }} {{ view().points.length ? m().frame.keyboardHint : '' }}
|
|
10801
|
+
</p>
|
|
10802
|
+
<div
|
|
10803
|
+
class="hm-chart-frame__table"
|
|
10804
|
+
[class.hm-visually-hidden]="!showTable()"
|
|
10805
|
+
[attr.role]="showTable() ? 'region' : null"
|
|
10806
|
+
[attr.aria-label]="showTable() ? caption() : null"
|
|
10807
|
+
[attr.tabindex]="showTable() ? 0 : null"
|
|
10808
|
+
>
|
|
10809
|
+
<table class="hm-table hm-table--compact">
|
|
10810
|
+
<caption>{{ caption() }}</caption>
|
|
10811
|
+
<thead>
|
|
10812
|
+
<tr>
|
|
10813
|
+
@for (column of view().table.columns; track $index) {
|
|
10814
|
+
<th scope="col" [class.hm-chart-frame__num]="align($index) === 'end'">{{ column }}</th>
|
|
10815
|
+
}
|
|
10816
|
+
</tr>
|
|
10817
|
+
</thead>
|
|
10818
|
+
<tbody>
|
|
10819
|
+
@for (row of view().table.rows; track $index) {
|
|
10820
|
+
<tr>
|
|
10821
|
+
<th scope="row">{{ row.header }}</th>
|
|
10822
|
+
@for (cell of row.cells; track $index) {
|
|
10823
|
+
<td [class.hm-chart-frame__num]="align($index + 1) === 'end'">{{ cell }}</td>
|
|
10824
|
+
}
|
|
10825
|
+
</tr>
|
|
10826
|
+
} @empty {
|
|
10827
|
+
<tr>
|
|
10828
|
+
<td [attr.colspan]="view().table.columns.length || 1">{{ m().frame.noData }}</td>
|
|
10829
|
+
</tr>
|
|
10830
|
+
}
|
|
10831
|
+
</tbody>
|
|
10832
|
+
</table>
|
|
10833
|
+
</div>
|
|
10834
10834
|
`, isInline: true, styles: [":host{display:flex;flex-direction:column;inline-size:100%;gap:var(--hm-space-xxxs);min-inline-size:0}.hm-chart-frame__bar{display:flex;justify-content:flex-end}.hm-chart-frame__off{display:none}.hm-chart-frame__table:not(.hm-visually-hidden){overflow:auto;max-block-size:calc(var(--hm-control-height) * 12)}.hm-chart-frame__table caption{text-align:start;color:var(--hm-muted);font-size:var(--hm-font-size-sm);padding-block-end:var(--hm-space-xxxs)}.hm-chart-frame__num{text-align:end;font-variant-numeric:tabular-nums}\n"], dependencies: [{ kind: "component", type: HmChartComponent, selector: "hm-chart", inputs: ["option", "label", "points"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10835
10835
|
}
|
|
10836
10836
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HmChartFrameComponent, decorators: [{
|
|
10837
10837
|
type: Component,
|
|
10838
|
-
args: [{ selector: 'hm-chart-frame', standalone: true, imports: [HmChartComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
10839
|
-
@if (tableToggle()) {
|
|
10840
|
-
<div class="hm-chart-frame__bar">
|
|
10841
|
-
<button type="button" class="hm-btn hm-btn--minimal hm-btn--small" (click)="showTable.set(!showTable())">
|
|
10842
|
-
{{ showTable() ? m().frame.showChart : m().frame.showTable }}
|
|
10843
|
-
</button>
|
|
10844
|
-
</div>
|
|
10845
|
-
}
|
|
10846
|
-
<hm-chart
|
|
10847
|
-
[class.hm-chart-frame__off]="showTable()"
|
|
10848
|
-
[option]="view().option"
|
|
10849
|
-
[label]="label()"
|
|
10850
|
-
[points]="view().points"
|
|
10851
|
-
[attr.aria-describedby]="summaryId"
|
|
10852
|
-
[style.block-size]="height() || null"
|
|
10853
|
-
/>
|
|
10854
|
-
<p class="hm-visually-hidden" [id]="summaryId">
|
|
10855
|
-
{{ view().summary }} {{ description() }} {{ view().points.length ? m().frame.keyboardHint : '' }}
|
|
10856
|
-
</p>
|
|
10857
|
-
<div
|
|
10858
|
-
class="hm-chart-frame__table"
|
|
10859
|
-
[class.hm-visually-hidden]="!showTable()"
|
|
10860
|
-
[attr.role]="showTable() ? 'region' : null"
|
|
10861
|
-
[attr.aria-label]="showTable() ? caption() : null"
|
|
10862
|
-
[attr.tabindex]="showTable() ? 0 : null"
|
|
10863
|
-
>
|
|
10864
|
-
<table class="hm-table hm-table--compact">
|
|
10865
|
-
<caption>{{ caption() }}</caption>
|
|
10866
|
-
<thead>
|
|
10867
|
-
<tr>
|
|
10868
|
-
@for (column of view().table.columns; track $index) {
|
|
10869
|
-
<th scope="col" [class.hm-chart-frame__num]="align($index) === 'end'">{{ column }}</th>
|
|
10870
|
-
}
|
|
10871
|
-
</tr>
|
|
10872
|
-
</thead>
|
|
10873
|
-
<tbody>
|
|
10874
|
-
@for (row of view().table.rows; track $index) {
|
|
10875
|
-
<tr>
|
|
10876
|
-
<th scope="row">{{ row.header }}</th>
|
|
10877
|
-
@for (cell of row.cells; track $index) {
|
|
10878
|
-
<td [class.hm-chart-frame__num]="align($index + 1) === 'end'">{{ cell }}</td>
|
|
10879
|
-
}
|
|
10880
|
-
</tr>
|
|
10881
|
-
} @empty {
|
|
10882
|
-
<tr>
|
|
10883
|
-
<td [attr.colspan]="view().table.columns.length || 1">{{ m().frame.noData }}</td>
|
|
10884
|
-
</tr>
|
|
10885
|
-
}
|
|
10886
|
-
</tbody>
|
|
10887
|
-
</table>
|
|
10888
|
-
</div>
|
|
10838
|
+
args: [{ selector: 'hm-chart-frame', standalone: true, imports: [HmChartComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
10839
|
+
@if (tableToggle()) {
|
|
10840
|
+
<div class="hm-chart-frame__bar">
|
|
10841
|
+
<button type="button" class="hm-btn hm-btn--minimal hm-btn--small" (click)="showTable.set(!showTable())">
|
|
10842
|
+
{{ showTable() ? m().frame.showChart : m().frame.showTable }}
|
|
10843
|
+
</button>
|
|
10844
|
+
</div>
|
|
10845
|
+
}
|
|
10846
|
+
<hm-chart
|
|
10847
|
+
[class.hm-chart-frame__off]="showTable()"
|
|
10848
|
+
[option]="view().option"
|
|
10849
|
+
[label]="label()"
|
|
10850
|
+
[points]="view().points"
|
|
10851
|
+
[attr.aria-describedby]="summaryId"
|
|
10852
|
+
[style.block-size]="height() || null"
|
|
10853
|
+
/>
|
|
10854
|
+
<p class="hm-visually-hidden" [id]="summaryId">
|
|
10855
|
+
{{ view().summary }} {{ description() }} {{ view().points.length ? m().frame.keyboardHint : '' }}
|
|
10856
|
+
</p>
|
|
10857
|
+
<div
|
|
10858
|
+
class="hm-chart-frame__table"
|
|
10859
|
+
[class.hm-visually-hidden]="!showTable()"
|
|
10860
|
+
[attr.role]="showTable() ? 'region' : null"
|
|
10861
|
+
[attr.aria-label]="showTable() ? caption() : null"
|
|
10862
|
+
[attr.tabindex]="showTable() ? 0 : null"
|
|
10863
|
+
>
|
|
10864
|
+
<table class="hm-table hm-table--compact">
|
|
10865
|
+
<caption>{{ caption() }}</caption>
|
|
10866
|
+
<thead>
|
|
10867
|
+
<tr>
|
|
10868
|
+
@for (column of view().table.columns; track $index) {
|
|
10869
|
+
<th scope="col" [class.hm-chart-frame__num]="align($index) === 'end'">{{ column }}</th>
|
|
10870
|
+
}
|
|
10871
|
+
</tr>
|
|
10872
|
+
</thead>
|
|
10873
|
+
<tbody>
|
|
10874
|
+
@for (row of view().table.rows; track $index) {
|
|
10875
|
+
<tr>
|
|
10876
|
+
<th scope="row">{{ row.header }}</th>
|
|
10877
|
+
@for (cell of row.cells; track $index) {
|
|
10878
|
+
<td [class.hm-chart-frame__num]="align($index + 1) === 'end'">{{ cell }}</td>
|
|
10879
|
+
}
|
|
10880
|
+
</tr>
|
|
10881
|
+
} @empty {
|
|
10882
|
+
<tr>
|
|
10883
|
+
<td [attr.colspan]="view().table.columns.length || 1">{{ m().frame.noData }}</td>
|
|
10884
|
+
</tr>
|
|
10885
|
+
}
|
|
10886
|
+
</tbody>
|
|
10887
|
+
</table>
|
|
10888
|
+
</div>
|
|
10889
10889
|
`, host: { class: 'hm-chart-frame' }, styles: [":host{display:flex;flex-direction:column;inline-size:100%;gap:var(--hm-space-xxxs);min-inline-size:0}.hm-chart-frame__bar{display:flex;justify-content:flex-end}.hm-chart-frame__off{display:none}.hm-chart-frame__table:not(.hm-visually-hidden){overflow:auto;max-block-size:calc(var(--hm-control-height) * 12)}.hm-chart-frame__table caption{text-align:start;color:var(--hm-muted);font-size:var(--hm-font-size-sm);padding-block-end:var(--hm-space-xxxs)}.hm-chart-frame__num{text-align:end;font-variant-numeric:tabular-nums}\n"] }]
|
|
10890
10890
|
}], propDecorators: { view: [{ type: i0.Input, args: [{ isSignal: true, alias: "view", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], tableToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableToggle", required: false }] }], showTable: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTable", required: false }] }, { type: i0.Output, args: ["showTableChange"] }] } });
|
|
10891
10891
|
|
|
@@ -12060,24 +12060,24 @@ class HmSparklineChartComponent extends HmChartBase {
|
|
|
12060
12060
|
};
|
|
12061
12061
|
}
|
|
12062
12062
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HmSparklineChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
12063
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: HmSparklineChartComponent, isStandalone: true, selector: "hm-sparkline-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, area: { classPropertyName: "area", publicName: "area", isSignal: true, isRequired: false, transformFunction: null }, showLast: { classPropertyName: "showLast", publicName: "showLast", isSignal: true, isRequired: false, transformFunction: null }, bars: { classPropertyName: "bars", publicName: "bars", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `<hm-chart-frame
|
|
12064
|
-
[view]="view()"
|
|
12065
|
-
[label]="label()"
|
|
12066
|
-
[description]="description()"
|
|
12067
|
-
[height]="height() || 'calc(var(--hm-control-height) * 1.5)'"
|
|
12068
|
-
[tableToggle]="false"
|
|
12069
|
-
[(showTable)]="showTable"
|
|
12063
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: HmSparklineChartComponent, isStandalone: true, selector: "hm-sparkline-chart", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: true, transformFunction: null }, categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: false, transformFunction: null }, area: { classPropertyName: "area", publicName: "area", isSignal: true, isRequired: false, transformFunction: null }, showLast: { classPropertyName: "showLast", publicName: "showLast", isSignal: true, isRequired: false, transformFunction: null }, bars: { classPropertyName: "bars", publicName: "bars", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `<hm-chart-frame
|
|
12064
|
+
[view]="view()"
|
|
12065
|
+
[label]="label()"
|
|
12066
|
+
[description]="description()"
|
|
12067
|
+
[height]="height() || 'calc(var(--hm-control-height) * 1.5)'"
|
|
12068
|
+
[tableToggle]="false"
|
|
12069
|
+
[(showTable)]="showTable"
|
|
12070
12070
|
/>`, isInline: true, styles: [":host{display:block;inline-size:100%;min-inline-size:0}\n"], dependencies: [{ kind: "component", type: HmChartFrameComponent, selector: "hm-chart-frame", inputs: ["view", "label", "description", "height", "tableToggle", "showTable"], outputs: ["showTableChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12071
12071
|
}
|
|
12072
12072
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HmSparklineChartComponent, decorators: [{
|
|
12073
12073
|
type: Component,
|
|
12074
|
-
args: [{ selector: 'hm-sparkline-chart', standalone: true, imports: [HmChartFrameComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `<hm-chart-frame
|
|
12075
|
-
[view]="view()"
|
|
12076
|
-
[label]="label()"
|
|
12077
|
-
[description]="description()"
|
|
12078
|
-
[height]="height() || 'calc(var(--hm-control-height) * 1.5)'"
|
|
12079
|
-
[tableToggle]="false"
|
|
12080
|
-
[(showTable)]="showTable"
|
|
12074
|
+
args: [{ selector: 'hm-sparkline-chart', standalone: true, imports: [HmChartFrameComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `<hm-chart-frame
|
|
12075
|
+
[view]="view()"
|
|
12076
|
+
[label]="label()"
|
|
12077
|
+
[description]="description()"
|
|
12078
|
+
[height]="height() || 'calc(var(--hm-control-height) * 1.5)'"
|
|
12079
|
+
[tableToggle]="false"
|
|
12080
|
+
[(showTable)]="showTable"
|
|
12081
12081
|
/>`, styles: [":host{display:block;inline-size:100%;min-inline-size:0}\n"] }]
|
|
12082
12082
|
}], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: true }] }], categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: false }] }], area: [{ type: i0.Input, args: [{ isSignal: true, alias: "area", required: false }] }], showLast: [{ type: i0.Input, args: [{ isSignal: true, alias: "showLast", required: false }] }], bars: [{ type: i0.Input, args: [{ isSignal: true, alias: "bars", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }] } });
|
|
12083
12083
|
|