ngwr 16.3.0 → 16.5.0
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/carousel/styles/_index.scss +53 -1
- package/charts/bar-chart/styles/_index.scss +494 -305
- package/charts/boxplot-chart/styles/_index.scss +114 -48
- package/charts/bullet-chart/styles/_index.scss +113 -42
- package/charts/calendar-heatmap/styles/_index.scss +111 -20
- package/charts/candlestick-chart/styles/_index.scss +61 -26
- package/charts/chart-legend/styles/_index.scss +119 -1
- package/charts/core/styles/_index.scss +201 -5
- package/charts/donut-chart/styles/_index.scss +76 -21
- package/charts/funnel-chart/styles/_index.scss +66 -38
- package/charts/gauge/styles/_index.scss +12 -1
- package/charts/heatmap-chart/styles/_index.scss +90 -53
- package/charts/line-chart/styles/_index.scss +143 -139
- package/charts/meter-group/styles/_index.scss +87 -25
- package/charts/radar-chart/styles/_index.scss +82 -40
- package/charts/scatter-chart/styles/_index.scss +117 -44
- package/charts/sparkline/styles/_index.scss +7 -1
- package/charts/treemap-chart/styles/_index.scss +94 -42
- package/charts/waterfall-chart/styles/_index.scss +150 -87
- package/color-picker/styles/_index.scss +7 -3
- package/copy-value/styles/_index.scss +21 -2
- package/date-stamp/styles/_index.scss +2 -1
- package/dialog/styles/_index.scss +6 -0
- package/drawer/styles/_index.scss +5 -1
- package/fesm2022/ngwr-breadcrumbs.mjs +2 -2
- package/fesm2022/ngwr-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngwr-carousel-testing.mjs +27 -1
- package/fesm2022/ngwr-carousel-testing.mjs.map +1 -1
- package/fesm2022/ngwr-carousel.mjs +86 -4
- package/fesm2022/ngwr-carousel.mjs.map +1 -1
- package/fesm2022/ngwr-cascader-testing.mjs.map +1 -1
- package/fesm2022/ngwr-cascader.mjs +56 -25
- package/fesm2022/ngwr-cascader.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs +16 -14
- package/fesm2022/ngwr-charts-bar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bar-chart.mjs +399 -141
- package/fesm2022/ngwr-charts-bar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs +19 -5
- package/fesm2022/ngwr-charts-boxplot-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-boxplot-chart.mjs +250 -56
- package/fesm2022/ngwr-charts-boxplot-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-bullet-chart.mjs +118 -18
- package/fesm2022/ngwr-charts-bullet-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs +266 -46
- package/fesm2022/ngwr-charts-calendar-heatmap.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs +21 -10
- package/fesm2022/ngwr-charts-candlestick-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-candlestick-chart.mjs +319 -72
- package/fesm2022/ngwr-charts-candlestick-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-chart-legend.mjs +211 -9
- package/fesm2022/ngwr-charts-chart-legend.mjs.map +1 -1
- package/fesm2022/ngwr-charts-core.mjs +299 -18
- package/fesm2022/ngwr-charts-core.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-donut-chart.mjs +206 -27
- package/fesm2022/ngwr-charts-donut-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-funnel-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-funnel-chart.mjs +113 -10
- package/fesm2022/ngwr-charts-funnel-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-gauge.mjs +98 -12
- package/fesm2022/ngwr-charts-gauge.mjs.map +1 -1
- package/fesm2022/ngwr-charts-heatmap-chart.mjs +226 -31
- package/fesm2022/ngwr-charts-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart-testing.mjs +16 -4
- package/fesm2022/ngwr-charts-line-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-line-chart.mjs +407 -172
- package/fesm2022/ngwr-charts-line-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group-testing.mjs +4 -4
- package/fesm2022/ngwr-charts-meter-group-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-meter-group.mjs +223 -31
- package/fesm2022/ngwr-charts-meter-group.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs +2 -1
- package/fesm2022/ngwr-charts-radar-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-radar-chart.mjs +255 -66
- package/fesm2022/ngwr-charts-radar-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs +39 -18
- package/fesm2022/ngwr-charts-scatter-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-scatter-chart.mjs +431 -53
- package/fesm2022/ngwr-charts-scatter-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-sparkline.mjs +19 -8
- package/fesm2022/ngwr-charts-sparkline.mjs.map +1 -1
- package/fesm2022/ngwr-charts-treemap-chart.mjs +253 -44
- package/fesm2022/ngwr-charts-treemap-chart.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs +15 -7
- package/fesm2022/ngwr-charts-waterfall-chart-testing.mjs.map +1 -1
- package/fesm2022/ngwr-charts-waterfall-chart.mjs +151 -23
- package/fesm2022/ngwr-charts-waterfall-chart.mjs.map +1 -1
- package/fesm2022/ngwr-color-picker.mjs +44 -4
- package/fesm2022/ngwr-color-picker.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu-testing.mjs.map +1 -1
- package/fesm2022/ngwr-context-menu.mjs +60 -17
- package/fesm2022/ngwr-context-menu.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value-testing.mjs +5 -1
- package/fesm2022/ngwr-copy-value-testing.mjs.map +1 -1
- package/fesm2022/ngwr-copy-value.mjs +38 -2
- package/fesm2022/ngwr-copy-value.mjs.map +1 -1
- package/fesm2022/ngwr-date-picker.mjs +56 -8
- package/fesm2022/ngwr-date-picker.mjs.map +1 -1
- package/fesm2022/ngwr-dialog.mjs +13 -5
- package/fesm2022/ngwr-dialog.mjs.map +1 -1
- package/fesm2022/ngwr-drawer.mjs +19 -3
- package/fesm2022/ngwr-drawer.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
- package/fesm2022/ngwr-dropdown.mjs +49 -6
- package/fesm2022/ngwr-dropdown.mjs.map +1 -1
- package/fesm2022/ngwr-editor.mjs +1 -0
- package/fesm2022/ngwr-editor.mjs.map +1 -1
- package/fesm2022/ngwr-file-upload.mjs +7 -3
- package/fesm2022/ngwr-file-upload.mjs.map +1 -1
- package/fesm2022/ngwr-graph-testing.mjs +27 -0
- package/fesm2022/ngwr-graph-testing.mjs.map +1 -1
- package/fesm2022/ngwr-graph.mjs +643 -14
- package/fesm2022/ngwr-graph.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ar.mjs +13 -4
- package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-cs.mjs +13 -4
- package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-de.mjs +13 -4
- package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-en.mjs +13 -4
- package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-es.mjs +13 -4
- package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-fr.mjs +13 -4
- package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-he.mjs +13 -4
- package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-hi.mjs +13 -4
- package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-id.mjs +13 -4
- package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-it.mjs +13 -4
- package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ja.mjs +13 -4
- package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ko.mjs +13 -4
- package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-nl.mjs +13 -4
- package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pl.mjs +13 -4
- package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-pt.mjs +13 -4
- package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-ru.mjs +13 -4
- package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-sv.mjs +13 -4
- package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-tr.mjs +13 -4
- package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-uk.mjs +13 -4
- package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-vi.mjs +13 -4
- package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh-tw.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
- package/fesm2022/ngwr-i18n-zh.mjs +13 -4
- package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
- package/fesm2022/ngwr-lightbox.mjs +22 -5
- package/fesm2022/ngwr-lightbox.mjs.map +1 -1
- package/fesm2022/ngwr-list.mjs +2 -2
- package/fesm2022/ngwr-list.mjs.map +1 -1
- package/fesm2022/ngwr-overlay.mjs +21 -2
- package/fesm2022/ngwr-overlay.mjs.map +1 -1
- package/fesm2022/ngwr-pagination.mjs +1 -0
- package/fesm2022/ngwr-pagination.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs +4 -1
- package/fesm2022/ngwr-popconfirm-testing.mjs.map +1 -1
- package/fesm2022/ngwr-popconfirm.mjs +41 -5
- package/fesm2022/ngwr-popconfirm.mjs.map +1 -1
- package/fesm2022/ngwr-popover.mjs +67 -12
- package/fesm2022/ngwr-popover.mjs.map +1 -1
- package/fesm2022/ngwr-schema-form.mjs +3 -0
- package/fesm2022/ngwr-schema-form.mjs.map +1 -1
- package/fesm2022/ngwr-select.mjs +100 -3
- package/fesm2022/ngwr-select.mjs.map +1 -1
- package/fesm2022/ngwr-sortable-list.mjs +2 -2
- package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
- package/fesm2022/ngwr-table-testing.mjs +71 -3
- package/fesm2022/ngwr-table-testing.mjs.map +1 -1
- package/fesm2022/ngwr-table.mjs +173 -11
- package/fesm2022/ngwr-table.mjs.map +1 -1
- package/fesm2022/ngwr-tour-testing.mjs +13 -1
- package/fesm2022/ngwr-tour-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tour.mjs +25 -16
- package/fesm2022/ngwr-tour.mjs.map +1 -1
- package/fesm2022/ngwr-tree-testing.mjs.map +1 -1
- package/fesm2022/ngwr-tree.mjs +52 -8
- package/fesm2022/ngwr-tree.mjs.map +1 -1
- package/fesm2022/ngwr-utils.mjs +64 -1
- package/fesm2022/ngwr-utils.mjs.map +1 -1
- package/fesm2022/ngwr-version.mjs +1 -1
- package/fesm2022/ngwr-version.mjs.map +1 -1
- package/fesm2022/ngwr-window.mjs +16 -9
- package/fesm2022/ngwr-window.mjs.map +1 -1
- package/graph/styles/_index.scss +87 -0
- package/i18n/ar.json +13 -4
- package/i18n/cs.json +13 -4
- package/i18n/de.json +13 -4
- package/i18n/en.json +13 -4
- package/i18n/es.json +13 -4
- package/i18n/fr.json +13 -4
- package/i18n/he.json +13 -4
- package/i18n/hi.json +13 -4
- package/i18n/id.json +13 -4
- package/i18n/it.json +13 -4
- package/i18n/ja.json +13 -4
- package/i18n/ko.json +13 -4
- package/i18n/nl.json +13 -4
- package/i18n/pl.json +13 -4
- package/i18n/pt.json +13 -4
- package/i18n/ru.json +13 -4
- package/i18n/sv.json +13 -4
- package/i18n/tr.json +13 -4
- package/i18n/uk.json +13 -4
- package/i18n/vi.json +13 -4
- package/i18n/zh-TW.json +13 -4
- package/i18n/zh.json +13 -4
- package/llms-full.txt +12 -12
- package/llms.txt +64 -27
- package/package.json +1 -1
- package/popconfirm/styles/_index.scss +6 -0
- package/popover/styles/_index.scss +24 -13
- package/schematics/collection.json +5 -0
- package/schematics/eject/index.js +158 -0
- package/schematics/eject/schema.js +8 -0
- package/schematics/eject/schema.json +24 -0
- package/schematics/eject/source.js +295 -0
- package/schematics/use/symbol-map.json +2 -0
- package/select/styles/_index.scss +13 -0
- package/skills/ngwr/SKILL.md +30 -3
- package/skills/ngwr/references/catalog.md +2 -2
- package/table/styles/_index.scss +24 -0
- package/theme/styles/_focus.scss +11 -1
- package/tour/styles/_index.scss +6 -0
- package/types/ngwr-carousel-testing.d.ts +29 -6
- package/types/ngwr-carousel.d.ts +52 -5
- package/types/ngwr-cascader-testing.d.ts +4 -3
- package/types/ngwr-cascader.d.ts +29 -7
- package/types/ngwr-charts-bar-chart-testing.d.ts +15 -13
- package/types/ngwr-charts-bar-chart.d.ts +220 -48
- package/types/ngwr-charts-boxplot-chart-testing.d.ts +9 -2
- package/types/ngwr-charts-boxplot-chart.d.ts +110 -19
- package/types/ngwr-charts-bullet-chart.d.ts +72 -12
- package/types/ngwr-charts-calendar-heatmap.d.ts +119 -15
- package/types/ngwr-charts-candlestick-chart-testing.d.ts +19 -9
- package/types/ngwr-charts-candlestick-chart.d.ts +195 -62
- package/types/ngwr-charts-chart-legend.d.ts +142 -5
- package/types/ngwr-charts-core.d.ts +259 -21
- package/types/ngwr-charts-donut-chart-testing.d.ts +11 -5
- package/types/ngwr-charts-donut-chart.d.ts +124 -16
- package/types/ngwr-charts-funnel-chart.d.ts +62 -6
- package/types/ngwr-charts-gauge-testing.d.ts +5 -1
- package/types/ngwr-charts-gauge.d.ts +72 -10
- package/types/ngwr-charts-heatmap-chart.d.ts +103 -20
- package/types/ngwr-charts-line-chart-testing.d.ts +16 -2
- package/types/ngwr-charts-line-chart.d.ts +215 -86
- package/types/ngwr-charts-meter-group.d.ts +96 -7
- package/types/ngwr-charts-radar-chart-testing.d.ts +14 -3
- package/types/ngwr-charts-radar-chart.d.ts +148 -28
- package/types/ngwr-charts-scatter-chart-testing.d.ts +22 -10
- package/types/ngwr-charts-scatter-chart.d.ts +188 -18
- package/types/ngwr-charts-sparkline.d.ts +26 -4
- package/types/ngwr-charts-treemap-chart.d.ts +121 -23
- package/types/ngwr-charts-waterfall-chart-testing.d.ts +8 -1
- package/types/ngwr-charts-waterfall-chart.d.ts +108 -21
- package/types/ngwr-color-picker.d.ts +27 -0
- package/types/ngwr-context-menu-testing.d.ts +10 -9
- package/types/ngwr-context-menu.d.ts +19 -0
- package/types/ngwr-copy-value.d.ts +8 -0
- package/types/ngwr-date-picker.d.ts +34 -2
- package/types/ngwr-dialog.d.ts +30 -10
- package/types/ngwr-drawer.d.ts +32 -1
- package/types/ngwr-dropdown-testing.d.ts +8 -5
- package/types/ngwr-dropdown.d.ts +31 -6
- package/types/ngwr-file-upload.d.ts +8 -2
- package/types/ngwr-graph-testing.d.ts +28 -0
- package/types/ngwr-graph.d.ts +263 -91
- package/types/ngwr-lightbox.d.ts +15 -0
- package/types/ngwr-overlay.d.ts +16 -1
- package/types/ngwr-popconfirm-testing.d.ts +11 -2
- package/types/ngwr-popconfirm.d.ts +28 -1
- package/types/ngwr-popover.d.ts +59 -9
- package/types/ngwr-select.d.ts +37 -0
- package/types/ngwr-table-testing.d.ts +52 -1
- package/types/ngwr-table.d.ts +102 -10
- package/types/ngwr-tour-testing.d.ts +10 -0
- package/types/ngwr-tour.d.ts +32 -4
- package/types/ngwr-tree-testing.d.ts +1 -2
- package/types/ngwr-tree.d.ts +35 -2
- package/types/ngwr-utils.d.ts +79 -1
- package/types/ngwr-version.d.ts +1 -1
- package/types/ngwr-window.d.ts +14 -11
- package/window/styles/_index.scss +5 -10
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { Component,
|
|
2
|
+
import { Component, LOCALE_ID, ViewEncapsulation, computed, effect, inject, input, isDevMode, linkedSignal, viewChild, viewChildren } from "@angular/core";
|
|
3
3
|
import { coerceBooleanProperty, coerceNumberProperty } from "@angular/cdk/coercion";
|
|
4
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
4
5
|
import { wrCheckStyles } from "ngwr/utils";
|
|
5
6
|
import { useI18nText, wrReadI18nText } from "ngwr/i18n";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
7
|
+
import { WrChartLegend } from "ngwr/charts/chart-legend";
|
|
8
|
+
import { WrChartState, WrChartTable, useChartHover, useChartNumbers, useChartSize, useChartState, wrChartColor, wrChartNumberFormat, wrChartRound } from "ngwr/charts/core";
|
|
9
|
+
import { useChartTooltip, wrCoerceChartTooltip } from "ngwr/popover";
|
|
8
10
|
/**
|
|
9
11
|
* @license
|
|
10
12
|
*
|
|
@@ -97,17 +99,30 @@ const PAD = 3;
|
|
|
97
99
|
const MIN_INNER = 12;
|
|
98
100
|
const LABEL_MIN_WIDTH = 36;
|
|
99
101
|
const LABEL_MIN_HEIGHT = 22;
|
|
102
|
+
const LABEL_CUT_WIDTH = 72;
|
|
103
|
+
const CHAR_WIDTH = 7;
|
|
104
|
+
const WIDE_CHAR_WIDTH = 12;
|
|
105
|
+
const LABEL_PADDING = 8;
|
|
106
|
+
function labelWidth(label) {
|
|
107
|
+
let width = LABEL_PADDING;
|
|
108
|
+
for (const char of label) width += (char.codePointAt(0) ?? 0) >= 4352 ? WIDE_CHAR_WIDTH : CHAR_WIDTH;
|
|
109
|
+
return width;
|
|
110
|
+
}
|
|
111
|
+
function named(label, width) {
|
|
112
|
+
return width >= LABEL_MIN_WIDTH && (width >= LABEL_CUT_WIDTH || width >= labelWidth(label));
|
|
113
|
+
}
|
|
100
114
|
const VALUE_MIN_HEIGHT = 38;
|
|
101
115
|
const SEPARATOR = " / ";
|
|
102
116
|
const SUM_TOLERANCE = 1e-9;
|
|
103
|
-
const percent = (value) =>
|
|
104
|
-
function resolveNodes(nodes, path, inherited, key) {
|
|
117
|
+
const percent = (value) => wrChartRound(value, 3);
|
|
118
|
+
function resolveNodes(nodes, path, inherited, key, top = null) {
|
|
105
119
|
return nodes.map((node, i) => {
|
|
106
120
|
const color = node.color ?? inherited ?? wrChartColor(i);
|
|
121
|
+
const series = top ?? i;
|
|
107
122
|
const own = typeof node.value === "number" && Number.isFinite(node.value) ? node.value : null;
|
|
108
123
|
const ownSize = own !== null && own > 0 ? own : 0;
|
|
109
124
|
const nodePath = [...path, node.label];
|
|
110
|
-
const children = resolveNodes(node.children ?? [], nodePath, color, `${key}${i}
|
|
125
|
+
const children = resolveNodes(node.children ?? [], nodePath, color, `${key}${i}.`, series);
|
|
111
126
|
const childSize = children.reduce((sum, child) => sum + child.size, 0);
|
|
112
127
|
const group = children.length > 0;
|
|
113
128
|
return {
|
|
@@ -115,6 +130,7 @@ function resolveNodes(nodes, path, inherited, key) {
|
|
|
115
130
|
label: node.label,
|
|
116
131
|
path: nodePath,
|
|
117
132
|
color,
|
|
133
|
+
series,
|
|
118
134
|
own,
|
|
119
135
|
value: group ? own ?? childSize : own,
|
|
120
136
|
size: group ? Math.max(ownSize, childSize) : ownSize,
|
|
@@ -137,7 +153,7 @@ function placeTiles(nodes, remainder, box, options, out) {
|
|
|
137
153
|
order.forEach(({ node }, k) => {
|
|
138
154
|
const rect = rects[k];
|
|
139
155
|
if (!rect) return;
|
|
140
|
-
const roomForHeader = options.labels && rect.height >= 40 && rect.width
|
|
156
|
+
const roomForHeader = options.labels && rect.height >= 40 && named(node.label, rect.width);
|
|
141
157
|
const top = roomForHeader ? HEADER : PAD;
|
|
142
158
|
const inner = {
|
|
143
159
|
x: rect.x + PAD,
|
|
@@ -146,7 +162,7 @@ function placeTiles(nodes, remainder, box, options, out) {
|
|
|
146
162
|
height: rect.height - top - PAD
|
|
147
163
|
};
|
|
148
164
|
const group = node.childSize > 0 && inner.width >= MIN_INNER && inner.height >= MIN_INNER;
|
|
149
|
-
const labelled = !group && options.labels && rect.
|
|
165
|
+
const labelled = !group && options.labels && rect.height >= LABEL_MIN_HEIGHT && named(node.label, rect.width);
|
|
150
166
|
out.push({
|
|
151
167
|
node,
|
|
152
168
|
rect,
|
|
@@ -183,9 +199,25 @@ var WrTreemapChart = class WrTreemapChart {
|
|
|
183
199
|
...ngDevMode ? { debugName: "showValues" } : /* istanbul ignore next */ {},
|
|
184
200
|
transform: coerceBooleanProperty
|
|
185
201
|
});
|
|
202
|
+
showLegend = input(false, {
|
|
203
|
+
...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
|
|
204
|
+
transform: (value) => value === "auto" ? "auto" : coerceBooleanProperty(value)
|
|
205
|
+
});
|
|
206
|
+
legendPosition = input("bottom", ...ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []);
|
|
207
|
+
loading = input(false, {
|
|
208
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
209
|
+
transform: coerceBooleanProperty
|
|
210
|
+
});
|
|
211
|
+
error = input(false, {
|
|
212
|
+
...ngDevMode ? { debugName: "error" } : /* istanbul ignore next */ {},
|
|
213
|
+
transform: coerceBooleanProperty
|
|
214
|
+
});
|
|
215
|
+
emptyLabel = input(null, ...ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []);
|
|
216
|
+
loadingLabel = input(null, ...ngDevMode ? [{ debugName: "loadingLabel" }] : /* istanbul ignore next */ []);
|
|
217
|
+
errorLabel = input(null, ...ngDevMode ? [{ debugName: "errorLabel" }] : /* istanbul ignore next */ []);
|
|
186
218
|
tooltip = input(true, {
|
|
187
219
|
...ngDevMode ? { debugName: "tooltip" } : /* istanbul ignore next */ {},
|
|
188
|
-
transform:
|
|
220
|
+
transform: wrCoerceChartTooltip
|
|
189
221
|
});
|
|
190
222
|
valueFormat = input(null, ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
|
|
191
223
|
percentFormat = input(null, ...ngDevMode ? [{ debugName: "percentFormat" }] : /* istanbul ignore next */ []);
|
|
@@ -194,34 +226,40 @@ var WrTreemapChart = class WrTreemapChart {
|
|
|
194
226
|
transform: coerceBooleanProperty
|
|
195
227
|
});
|
|
196
228
|
numbers = useChartNumbers(this.valueFormat);
|
|
197
|
-
shares =
|
|
229
|
+
shares = wrChartNumberFormat(inject(LOCALE_ID), {
|
|
198
230
|
style: "percent",
|
|
199
231
|
maximumFractionDigits: 1
|
|
200
232
|
});
|
|
201
|
-
smallShares =
|
|
233
|
+
smallShares = wrChartNumberFormat(inject(LOCALE_ID), {
|
|
202
234
|
style: "percent",
|
|
203
235
|
maximumSignificantDigits: 2
|
|
204
236
|
});
|
|
205
237
|
plot = viewChild.required("plot", ...ngDevMode ? [{ debugName: "plot" }] : /* istanbul ignore next */ []);
|
|
206
238
|
tileEls = viewChildren("tile", ...ngDevMode ? [{ debugName: "tileEls" }] : /* istanbul ignore next */ []);
|
|
207
|
-
|
|
239
|
+
size = useChartSize(this.plot);
|
|
240
|
+
box = linkedSignal({
|
|
241
|
+
...ngDevMode ? { debugName: "box" } : /* istanbul ignore next */ {},
|
|
242
|
+
source: this.size,
|
|
243
|
+
computation: ({ width, height }, previous) => width <= 0 || height <= 0 ? previous?.value ?? null : {
|
|
244
|
+
width: Math.round(width),
|
|
245
|
+
height: Math.round(height)
|
|
246
|
+
},
|
|
247
|
+
equal: (a, b) => a?.width === b?.width && a?.height === b?.height
|
|
248
|
+
});
|
|
208
249
|
constructor() {
|
|
209
250
|
if (typeof ngDevMode === "undefined" || ngDevMode) wrCheckStyles("charts/treemap-chart");
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
});
|
|
223
|
-
observer.observe(this.plot().nativeElement);
|
|
224
|
-
destroyRef.onDestroy(() => observer.disconnect());
|
|
251
|
+
useChartHover({
|
|
252
|
+
enter: (index) => this.tip.enter(index),
|
|
253
|
+
leave: (event) => this.tip.leave(event)
|
|
254
|
+
});
|
|
255
|
+
let ringed = null;
|
|
256
|
+
effect(() => {
|
|
257
|
+
const active = this.tip.active();
|
|
258
|
+
const next = active === null ? null : this.tileEls()[active]?.nativeElement ?? null;
|
|
259
|
+
if (next === ringed) return;
|
|
260
|
+
ringed?.classList.remove("wr-treemap-chart__tile--active");
|
|
261
|
+
next?.classList.add("wr-treemap-chart__tile--active");
|
|
262
|
+
ringed = next;
|
|
225
263
|
});
|
|
226
264
|
if (isDevMode()) {
|
|
227
265
|
const warned = /* @__PURE__ */ new Set();
|
|
@@ -262,6 +300,7 @@ var WrTreemapChart = class WrTreemapChart {
|
|
|
262
300
|
return placed.map((tile) => ({
|
|
263
301
|
key: tile.node.key,
|
|
264
302
|
node: tile.node,
|
|
303
|
+
series: tile.node.series,
|
|
265
304
|
group: tile.group,
|
|
266
305
|
header: tile.header,
|
|
267
306
|
labelled: tile.labelled,
|
|
@@ -301,12 +340,34 @@ var WrTreemapChart = class WrTreemapChart {
|
|
|
301
340
|
anchor: el
|
|
302
341
|
};
|
|
303
342
|
});
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
343
|
+
legendItems = computed(() => this.tree().map((node) => ({
|
|
344
|
+
label: node.label,
|
|
345
|
+
color: node.color,
|
|
346
|
+
value: node.value === null ? null : this.numbers.label(node.value)
|
|
347
|
+
})), ...ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []);
|
|
348
|
+
legendShown = computed(() => {
|
|
349
|
+
const show = this.showLegend();
|
|
350
|
+
const rows = this.legendItems().length;
|
|
351
|
+
if (show === false || rows === 0 || this.legendPosition() === "none") return false;
|
|
352
|
+
return show === true || rows > 1;
|
|
353
|
+
}, ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
|
|
354
|
+
legendFirst = computed(() => {
|
|
355
|
+
const position = this.legendPosition();
|
|
356
|
+
return position === "top" || position === "start";
|
|
357
|
+
}, ...ngDevMode ? [{ debugName: "legendFirst" }] : /* istanbul ignore next */ []);
|
|
358
|
+
legendSide = computed(() => {
|
|
359
|
+
const position = this.legendPosition();
|
|
360
|
+
return position === "start" || position === "end";
|
|
361
|
+
}, ...ngDevMode ? [{ debugName: "legendSide" }] : /* istanbul ignore next */ []);
|
|
362
|
+
empty = computed(() => this.total() <= 0, ...ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []);
|
|
363
|
+
state = useChartState({
|
|
364
|
+
loading: this.loading,
|
|
365
|
+
error: this.error,
|
|
366
|
+
empty: this.empty,
|
|
367
|
+
emptyLabel: this.emptyLabel,
|
|
368
|
+
loadingLabel: this.loadingLabel,
|
|
369
|
+
errorLabel: this.errorLabel
|
|
370
|
+
});
|
|
310
371
|
share(node) {
|
|
311
372
|
const total = this.total();
|
|
312
373
|
if (node.size <= 0 || total <= 0) return "";
|
|
@@ -372,6 +433,55 @@ var WrTreemapChart = class WrTreemapChart {
|
|
|
372
433
|
isRequired: false,
|
|
373
434
|
transformFunction: null
|
|
374
435
|
},
|
|
436
|
+
showLegend: {
|
|
437
|
+
classPropertyName: "showLegend",
|
|
438
|
+
publicName: "showLegend",
|
|
439
|
+
isSignal: true,
|
|
440
|
+
isRequired: false,
|
|
441
|
+
transformFunction: null
|
|
442
|
+
},
|
|
443
|
+
legendPosition: {
|
|
444
|
+
classPropertyName: "legendPosition",
|
|
445
|
+
publicName: "legendPosition",
|
|
446
|
+
isSignal: true,
|
|
447
|
+
isRequired: false,
|
|
448
|
+
transformFunction: null
|
|
449
|
+
},
|
|
450
|
+
loading: {
|
|
451
|
+
classPropertyName: "loading",
|
|
452
|
+
publicName: "loading",
|
|
453
|
+
isSignal: true,
|
|
454
|
+
isRequired: false,
|
|
455
|
+
transformFunction: null
|
|
456
|
+
},
|
|
457
|
+
error: {
|
|
458
|
+
classPropertyName: "error",
|
|
459
|
+
publicName: "error",
|
|
460
|
+
isSignal: true,
|
|
461
|
+
isRequired: false,
|
|
462
|
+
transformFunction: null
|
|
463
|
+
},
|
|
464
|
+
emptyLabel: {
|
|
465
|
+
classPropertyName: "emptyLabel",
|
|
466
|
+
publicName: "emptyLabel",
|
|
467
|
+
isSignal: true,
|
|
468
|
+
isRequired: false,
|
|
469
|
+
transformFunction: null
|
|
470
|
+
},
|
|
471
|
+
loadingLabel: {
|
|
472
|
+
classPropertyName: "loadingLabel",
|
|
473
|
+
publicName: "loadingLabel",
|
|
474
|
+
isSignal: true,
|
|
475
|
+
isRequired: false,
|
|
476
|
+
transformFunction: null
|
|
477
|
+
},
|
|
478
|
+
errorLabel: {
|
|
479
|
+
classPropertyName: "errorLabel",
|
|
480
|
+
publicName: "errorLabel",
|
|
481
|
+
isSignal: true,
|
|
482
|
+
isRequired: false,
|
|
483
|
+
transformFunction: null
|
|
484
|
+
},
|
|
375
485
|
tooltip: {
|
|
376
486
|
classPropertyName: "tooltip",
|
|
377
487
|
publicName: "tooltip",
|
|
@@ -401,7 +511,10 @@ var WrTreemapChart = class WrTreemapChart {
|
|
|
401
511
|
transformFunction: null
|
|
402
512
|
}
|
|
403
513
|
},
|
|
404
|
-
host: {
|
|
514
|
+
host: {
|
|
515
|
+
properties: { "class.wr-chart--legend-side": "legendShown() && legendSide()" },
|
|
516
|
+
classAttribute: "wr-treemap-chart wr-chart--legend"
|
|
517
|
+
},
|
|
405
518
|
viewQueries: [{
|
|
406
519
|
propertyName: "plot",
|
|
407
520
|
first: true,
|
|
@@ -415,13 +528,45 @@ var WrTreemapChart = class WrTreemapChart {
|
|
|
415
528
|
isSignal: true
|
|
416
529
|
}],
|
|
417
530
|
ngImport: i0,
|
|
418
|
-
template: "@let
|
|
419
|
-
dependencies: [
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
531
|
+
template: "@let shown = state();\n\n<!-- The legend, drawn before the body or after it so it is in the DOM where it is on\n screen. One row per top-level node, in the data's order: a row's position is the\n `data-wr-series` its tiles carry, so hovering a row dims every other node. -->\n<ng-template #legend>\n <ul wr-chart-legend class=\"wr-treemap-chart__legend\" [items]=\"legendItems()\" [position]=\"legendPosition()\"></ul>\n</ng-template>\n\n@if (legendShown() && legendFirst()) {\n <ng-container [ngTemplateOutlet]=\"legend\" />\n}\n\n<div class=\"wr-treemap-chart__body\">\n <!-- The drawing: one named image, every tile inside it positioned by percentages of it.\n The tiles are siblings rather than nested, parents first, so a child is drawn over\n its parent and leaving it for the parent's edge is a `mouseleave` like any other. -->\n <div\n #plot\n class=\"wr-treemap-chart__plot\"\n role=\"img\"\n [class.wr-treemap-chart__plot--idle]=\"!!shown\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"height()\"\n >\n @if (!shown) {\n <!-- `inset-inline-start`, not `left`: the layout starts at the inline-start edge, and\n under RTL the whole drawing mirrors with it. `data-wr-index` is what the hover\n reads the tile off, and `data-wr-series` the top-level node it dims the rest for.\n No binding here follows the pointer: the reading tile's ring is set by hand. -->\n @for (tile of tiles(); track tile.key) {\n <div\n #tile\n class=\"wr-treemap-chart__tile\"\n [class.wr-treemap-chart__tile--group]=\"tile.group\"\n [class.wr-treemap-chart__tile--leaf]=\"!tile.group\"\n [attr.data-wr-index]=\"$index\"\n [attr.data-wr-series]=\"tile.series\"\n [style.--wr-treemap-chart-tile-color]=\"tile.node.color\"\n [style.inset-inline-start.%]=\"tile.start\"\n [style.top.%]=\"tile.top\"\n [style.width.%]=\"tile.width\"\n [style.height.%]=\"tile.height\"\n >\n <!-- A name takes its direction from its own text (`dir=\"auto\"`), so a Latin name in an\n RTL tile is cut at its end, not its start, and a Hebrew one in an LTR tile too. A\n value does the same, so `$120K` reads in its own order beside a Hebrew name. -->\n @if (tile.header) {\n <!-- As tall as the strip the layout left above the children, written here so the\n stylesheet and the layout cannot disagree about it. -->\n <span class=\"wr-treemap-chart__header\" [style.height.px]=\"headerHeight\">\n <span class=\"wr-treemap-chart__label\" dir=\"auto\">{{ tile.node.label }}</span>\n @if (showValues() && tile.text) {\n <span class=\"wr-treemap-chart__value\" dir=\"auto\">{{ tile.text }}</span>\n }\n </span>\n } @else if (tile.labelled) {\n <span class=\"wr-treemap-chart__label\" dir=\"auto\">{{ tile.node.label }}</span>\n @if (tile.valued && tile.text) {\n <span class=\"wr-treemap-chart__value\" dir=\"auto\">{{ tile.text }}</span>\n }\n }\n </div>\n }\n }\n </div>\n @if (shown) {\n <!-- Beside the drawing's `img`, never inside it: `img` makes everything it holds\n presentational, and the message is a live region. Laid over the plot's box. -->\n <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n }\n</div>\n\n@if (legendShown() && !legendFirst()) {\n <ng-container [ngTemplateOutlet]=\"legend\" />\n}\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the drawing's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n",
|
|
532
|
+
dependencies: [
|
|
533
|
+
{
|
|
534
|
+
kind: "directive",
|
|
535
|
+
type: NgTemplateOutlet,
|
|
536
|
+
selector: "[ngTemplateOutlet]",
|
|
537
|
+
inputs: [
|
|
538
|
+
"ngTemplateOutletContext",
|
|
539
|
+
"ngTemplateOutlet",
|
|
540
|
+
"ngTemplateOutletInjector"
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
kind: "component",
|
|
545
|
+
type: WrChartLegend,
|
|
546
|
+
selector: "ul[wr-chart-legend]",
|
|
547
|
+
inputs: [
|
|
548
|
+
"items",
|
|
549
|
+
"position",
|
|
550
|
+
"toggleable",
|
|
551
|
+
"hiddenSeries",
|
|
552
|
+
"ariaLabel",
|
|
553
|
+
"hiddenLabel"
|
|
554
|
+
],
|
|
555
|
+
outputs: ["hiddenSeriesChange", "toggled"]
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
kind: "component",
|
|
559
|
+
type: WrChartState,
|
|
560
|
+
selector: "wr-chart-state",
|
|
561
|
+
inputs: ["kind", "label"]
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
kind: "component",
|
|
565
|
+
type: WrChartTable,
|
|
566
|
+
selector: "wr-chart-table",
|
|
567
|
+
inputs: ["data"]
|
|
568
|
+
}
|
|
569
|
+
],
|
|
425
570
|
encapsulation: i0.ViewEncapsulation.None
|
|
426
571
|
});
|
|
427
572
|
};
|
|
@@ -435,9 +580,17 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
435
580
|
args: [{
|
|
436
581
|
selector: "wr-treemap-chart",
|
|
437
582
|
encapsulation: ViewEncapsulation.None,
|
|
438
|
-
host: {
|
|
439
|
-
|
|
440
|
-
|
|
583
|
+
host: {
|
|
584
|
+
class: "wr-treemap-chart wr-chart--legend",
|
|
585
|
+
"[class.wr-chart--legend-side]": "legendShown() && legendSide()"
|
|
586
|
+
},
|
|
587
|
+
imports: [
|
|
588
|
+
NgTemplateOutlet,
|
|
589
|
+
WrChartLegend,
|
|
590
|
+
WrChartState,
|
|
591
|
+
WrChartTable
|
|
592
|
+
],
|
|
593
|
+
template: "@let shown = state();\n\n<!-- The legend, drawn before the body or after it so it is in the DOM where it is on\n screen. One row per top-level node, in the data's order: a row's position is the\n `data-wr-series` its tiles carry, so hovering a row dims every other node. -->\n<ng-template #legend>\n <ul wr-chart-legend class=\"wr-treemap-chart__legend\" [items]=\"legendItems()\" [position]=\"legendPosition()\"></ul>\n</ng-template>\n\n@if (legendShown() && legendFirst()) {\n <ng-container [ngTemplateOutlet]=\"legend\" />\n}\n\n<div class=\"wr-treemap-chart__body\">\n <!-- The drawing: one named image, every tile inside it positioned by percentages of it.\n The tiles are siblings rather than nested, parents first, so a child is drawn over\n its parent and leaving it for the parent's edge is a `mouseleave` like any other. -->\n <div\n #plot\n class=\"wr-treemap-chart__plot\"\n role=\"img\"\n [class.wr-treemap-chart__plot--idle]=\"!!shown\"\n [attr.aria-label]=\"resolvedAriaLabel()\"\n [style.height.px]=\"height()\"\n >\n @if (!shown) {\n <!-- `inset-inline-start`, not `left`: the layout starts at the inline-start edge, and\n under RTL the whole drawing mirrors with it. `data-wr-index` is what the hover\n reads the tile off, and `data-wr-series` the top-level node it dims the rest for.\n No binding here follows the pointer: the reading tile's ring is set by hand. -->\n @for (tile of tiles(); track tile.key) {\n <div\n #tile\n class=\"wr-treemap-chart__tile\"\n [class.wr-treemap-chart__tile--group]=\"tile.group\"\n [class.wr-treemap-chart__tile--leaf]=\"!tile.group\"\n [attr.data-wr-index]=\"$index\"\n [attr.data-wr-series]=\"tile.series\"\n [style.--wr-treemap-chart-tile-color]=\"tile.node.color\"\n [style.inset-inline-start.%]=\"tile.start\"\n [style.top.%]=\"tile.top\"\n [style.width.%]=\"tile.width\"\n [style.height.%]=\"tile.height\"\n >\n <!-- A name takes its direction from its own text (`dir=\"auto\"`), so a Latin name in an\n RTL tile is cut at its end, not its start, and a Hebrew one in an LTR tile too. A\n value does the same, so `$120K` reads in its own order beside a Hebrew name. -->\n @if (tile.header) {\n <!-- As tall as the strip the layout left above the children, written here so the\n stylesheet and the layout cannot disagree about it. -->\n <span class=\"wr-treemap-chart__header\" [style.height.px]=\"headerHeight\">\n <span class=\"wr-treemap-chart__label\" dir=\"auto\">{{ tile.node.label }}</span>\n @if (showValues() && tile.text) {\n <span class=\"wr-treemap-chart__value\" dir=\"auto\">{{ tile.text }}</span>\n }\n </span>\n } @else if (tile.labelled) {\n <span class=\"wr-treemap-chart__label\" dir=\"auto\">{{ tile.node.label }}</span>\n @if (tile.valued && tile.text) {\n <span class=\"wr-treemap-chart__value\" dir=\"auto\">{{ tile.text }}</span>\n }\n }\n </div>\n }\n }\n </div>\n @if (shown) {\n <!-- Beside the drawing's `img`, never inside it: `img` makes everything it holds\n presentational, and the message is a live region. Laid over the plot's box. -->\n <wr-chart-state [kind]=\"shown.kind\" [label]=\"shown.label\" />\n }\n</div>\n\n@if (legendShown() && !legendFirst()) {\n <ng-container [ngTemplateOutlet]=\"legend\" />\n}\n\n@if (dataTable()) {\n <!-- The figures for a screen reader, beside the drawing's `img` and never inside it:\n `img` makes everything it holds presentational. Clipped to nothing by its own\n stylesheet, so it takes no room and draws nothing. -->\n <wr-chart-table [data]=\"tableData()\" />\n}\n"
|
|
441
594
|
}]
|
|
442
595
|
}],
|
|
443
596
|
ctorParameters: () => [],
|
|
@@ -490,6 +643,62 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
490
643
|
required: false
|
|
491
644
|
}]
|
|
492
645
|
}],
|
|
646
|
+
showLegend: [{
|
|
647
|
+
type: i0.Input,
|
|
648
|
+
args: [{
|
|
649
|
+
isSignal: true,
|
|
650
|
+
alias: "showLegend",
|
|
651
|
+
required: false
|
|
652
|
+
}]
|
|
653
|
+
}],
|
|
654
|
+
legendPosition: [{
|
|
655
|
+
type: i0.Input,
|
|
656
|
+
args: [{
|
|
657
|
+
isSignal: true,
|
|
658
|
+
alias: "legendPosition",
|
|
659
|
+
required: false
|
|
660
|
+
}]
|
|
661
|
+
}],
|
|
662
|
+
loading: [{
|
|
663
|
+
type: i0.Input,
|
|
664
|
+
args: [{
|
|
665
|
+
isSignal: true,
|
|
666
|
+
alias: "loading",
|
|
667
|
+
required: false
|
|
668
|
+
}]
|
|
669
|
+
}],
|
|
670
|
+
error: [{
|
|
671
|
+
type: i0.Input,
|
|
672
|
+
args: [{
|
|
673
|
+
isSignal: true,
|
|
674
|
+
alias: "error",
|
|
675
|
+
required: false
|
|
676
|
+
}]
|
|
677
|
+
}],
|
|
678
|
+
emptyLabel: [{
|
|
679
|
+
type: i0.Input,
|
|
680
|
+
args: [{
|
|
681
|
+
isSignal: true,
|
|
682
|
+
alias: "emptyLabel",
|
|
683
|
+
required: false
|
|
684
|
+
}]
|
|
685
|
+
}],
|
|
686
|
+
loadingLabel: [{
|
|
687
|
+
type: i0.Input,
|
|
688
|
+
args: [{
|
|
689
|
+
isSignal: true,
|
|
690
|
+
alias: "loadingLabel",
|
|
691
|
+
required: false
|
|
692
|
+
}]
|
|
693
|
+
}],
|
|
694
|
+
errorLabel: [{
|
|
695
|
+
type: i0.Input,
|
|
696
|
+
args: [{
|
|
697
|
+
isSignal: true,
|
|
698
|
+
alias: "errorLabel",
|
|
699
|
+
required: false
|
|
700
|
+
}]
|
|
701
|
+
}],
|
|
493
702
|
tooltip: [{
|
|
494
703
|
type: i0.Input,
|
|
495
704
|
args: [{
|