@limetech/lime-elements 40.24.0 → 40.25.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/CHANGELOG.md +8 -0
- package/dist/cjs/{checkbox.template-CNJ29zDR.js → checkbox.template-DgiUCPna.js} +1 -1
- package/dist/cjs/{image.template-DlF-f23b.js → image.template-B_HZH9t-.js} +1 -1
- package/dist/cjs/{index-BlsqxTB1.js → index-CQn9p_mp.js} +12 -0
- package/dist/cjs/lime-elements.cjs.js +2 -2
- package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +1 -1
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +1 -1
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/limel-badge_7.cjs.entry.js +1 -1
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-card.cjs.entry.js +2 -2
- package/dist/cjs/limel-chart.cjs.entry.js +777 -174
- package/dist/cjs/limel-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/limel-chip-set.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +2 -2
- package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-diff.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-config.cjs.entry.js +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dialog.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock.cjs.entry.js +1 -1
- package/dist/cjs/limel-drag-handle_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-dynamic-label.cjs.entry.js +1 -1
- package/dist/cjs/limel-email-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/limel-form-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/limel-grid.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-help_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-helper-line_3.cjs.entry.js +1 -1
- package/dist/cjs/limel-hotkey_4.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-list-item.cjs.entry.js +4 -4
- package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
- package/dist/cjs/limel-masonry-layout.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination-jump.cjs.entry.js +1 -1
- package/dist/cjs/limel-pagination.cjs.entry.js +1 -1
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-popover_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-profile-picture.cjs.entry.js +2 -2
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-progress-flow.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-resize-handle.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +2 -2
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-side-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-switch.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
- package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +1 -1
- package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{render-list-component-BtAliHQp.js → render-list-component-BOYFHMFE.js} +1 -1
- package/dist/collection/components/chart/chart.css +29 -0
- package/dist/collection/components/chart/chart.js +352 -67
- package/dist/collection/components/chart/options.js +342 -109
- package/dist/collection/components/chart/scale.js +25 -2
- package/dist/collection/components/chart/series.js +110 -0
- package/dist/esm/{checkbox.template-CAja2LKZ.js → checkbox.template-BJJmiDJP.js} +1 -1
- package/dist/esm/{image.template-BGjw97m_.js → image.template-Cw2q5IS7.js} +1 -1
- package/dist/esm/{index-BU9IJqli.js → index-D3SUrFhp.js} +12 -1
- package/dist/esm/{keyboard-navigation-BF7IKmnG.js → keyboard-navigation-DeMxdkNf.js} +1 -1
- package/dist/esm/lime-elements.js +3 -3
- package/dist/esm/limel-3d-hover-effect-glow.entry.js +1 -1
- package/dist/esm/limel-action-bar_3.entry.js +1 -1
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/limel-badge_7.entry.js +1 -1
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-button-group.entry.js +1 -1
- package/dist/esm/limel-button.entry.js +1 -1
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-card.entry.js +2 -2
- package/dist/esm/limel-chart.entry.js +778 -175
- package/dist/esm/limel-checkbox.entry.js +2 -2
- package/dist/esm/limel-chip-set.entry.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +2 -2
- package/dist/esm/limel-circular-progress.entry.js +1 -1
- package/dist/esm/limel-code-diff.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- package/dist/esm/limel-color-picker-palette.entry.js +1 -1
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-config.entry.js +1 -1
- package/dist/esm/limel-date-picker.entry.js +1 -1
- package/dist/esm/limel-dialog.entry.js +1 -1
- package/dist/esm/limel-dock-button.entry.js +1 -1
- package/dist/esm/limel-dock.entry.js +1 -1
- package/dist/esm/limel-drag-handle_2.entry.js +1 -1
- package/dist/esm/limel-dynamic-label.entry.js +1 -1
- package/dist/esm/limel-email-viewer.entry.js +1 -1
- package/dist/esm/limel-file-dropzone_2.entry.js +1 -1
- package/dist/esm/limel-file-viewer.entry.js +2 -2
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
- package/dist/esm/limel-flex-container.entry.js +1 -1
- package/dist/esm/limel-form-header.entry.js +1 -1
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/limel-grid.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-help_2.entry.js +1 -1
- package/dist/esm/limel-helper-line_3.entry.js +1 -1
- package/dist/esm/limel-hotkey_4.entry.js +1 -1
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-icon.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +1 -1
- package/dist/esm/limel-list-item.entry.js +4 -4
- package/dist/esm/limel-markdown.entry.js +1 -1
- package/dist/esm/limel-masonry-layout.entry.js +1 -1
- package/dist/esm/limel-menu-item-meta.entry.js +1 -1
- package/dist/esm/limel-pagination-jump.entry.js +1 -1
- package/dist/esm/limel-pagination.entry.js +1 -1
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-popover_2.entry.js +1 -1
- package/dist/esm/limel-profile-picture.entry.js +2 -2
- package/dist/esm/limel-progress-flow-item.entry.js +1 -1
- package/dist/esm/limel-progress-flow.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-radio-button-group.entry.js +1 -1
- package/dist/esm/limel-radio-button.entry.js +1 -1
- package/dist/esm/limel-resize-handle.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +2 -2
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-side-panel.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/esm/limel-switch.entry.js +1 -1
- package/dist/esm/limel-tab-bar.entry.js +2 -2
- package/dist/esm/limel-tab-panel.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/limel-text-editor-link-menu.entry.js +1 -1
- package/dist/esm/limel-text-editor.entry.js +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{render-list-component-J1IzNpbv.js → render-list-component-CnMNjOaj.js} +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-6f8305ac.entry.js → p-07961d4f.entry.js} +1 -1
- package/dist/lime-elements/{p-a5aa8c06.entry.js → p-099e9e1a.entry.js} +1 -1
- package/dist/lime-elements/{p-6567de01.entry.js → p-0dd5cb25.entry.js} +1 -1
- package/dist/lime-elements/{p-bfb98b0e.entry.js → p-1d57370e.entry.js} +1 -1
- package/dist/lime-elements/{p-391a227e.entry.js → p-1ef92aa3.entry.js} +1 -1
- package/dist/lime-elements/p-1eff9347.entry.js +56 -0
- package/dist/lime-elements/{p-d078ea89.entry.js → p-22458db2.entry.js} +1 -1
- package/dist/lime-elements/{p-557f0e46.entry.js → p-2520a91b.entry.js} +1 -1
- package/dist/lime-elements/{p-85318636.entry.js → p-25473848.entry.js} +1 -1
- package/dist/lime-elements/{p-51fde63a.entry.js → p-27000dfb.entry.js} +1 -1
- package/dist/lime-elements/{p-65199efa.entry.js → p-29800b71.entry.js} +1 -1
- package/dist/lime-elements/{p-4de3b35b.entry.js → p-2e1fd8c4.entry.js} +1 -1
- package/dist/lime-elements/{p-558a7e27.entry.js → p-2f6ee1b0.entry.js} +1 -1
- package/dist/lime-elements/{p-ae634a68.entry.js → p-427a3da3.entry.js} +1 -1
- package/dist/lime-elements/{p-46695dd3.entry.js → p-447a2633.entry.js} +1 -1
- package/dist/lime-elements/{p-e481fb53.entry.js → p-4c54780d.entry.js} +1 -1
- package/dist/lime-elements/{p-08b1bfad.entry.js → p-4f81f0b4.entry.js} +1 -1
- package/dist/lime-elements/{p-81c43fe9.entry.js → p-5062b51a.entry.js} +1 -1
- package/dist/lime-elements/{p-71ed9466.entry.js → p-5295b4c7.entry.js} +1 -1
- package/dist/lime-elements/{p-c63d294b.entry.js → p-5a1b7f4d.entry.js} +1 -1
- package/dist/lime-elements/{p-664dbc43.entry.js → p-5b9c1f8f.entry.js} +1 -1
- package/dist/lime-elements/{p-ce418df1.entry.js → p-5be1e9e8.entry.js} +1 -1
- package/dist/lime-elements/{p-da9be21e.entry.js → p-5c6589aa.entry.js} +1 -1
- package/dist/lime-elements/{p-c1dbad1e.entry.js → p-5e7ca1fd.entry.js} +1 -1
- package/dist/lime-elements/{p-083aa41f.entry.js → p-5f66e497.entry.js} +1 -1
- package/dist/lime-elements/{p-4bc550e5.entry.js → p-667759da.entry.js} +1 -1
- package/dist/lime-elements/{p-d51bf98b.entry.js → p-6a340609.entry.js} +1 -1
- package/dist/lime-elements/{p-e3cf45ed.entry.js → p-6d3cde2e.entry.js} +1 -1
- package/dist/lime-elements/{p-63f2f0b7.entry.js → p-6e529563.entry.js} +1 -1
- package/dist/lime-elements/{p-b6334f4b.entry.js → p-743f014f.entry.js} +1 -1
- package/dist/lime-elements/{p-5fcb39b8.entry.js → p-7aa034e2.entry.js} +1 -1
- package/dist/lime-elements/{p-507965d9.entry.js → p-7b2ec934.entry.js} +1 -1
- package/dist/lime-elements/p-7b99624f.entry.js +1 -0
- package/dist/lime-elements/{p-1c7fcafc.entry.js → p-7ea96b80.entry.js} +1 -1
- package/dist/lime-elements/{p-a1cd0dc0.entry.js → p-7fe1d9ad.entry.js} +1 -1
- package/dist/lime-elements/{p-9e5a15d1.entry.js → p-842694af.entry.js} +1 -1
- package/dist/lime-elements/{p-9cbfedad.entry.js → p-848aeaa6.entry.js} +1 -1
- package/dist/lime-elements/{p-15f5e45e.entry.js → p-868a8b12.entry.js} +1 -1
- package/dist/lime-elements/{p-4eee17f7.entry.js → p-891f6a07.entry.js} +1 -1
- package/dist/lime-elements/{p-b810b854.entry.js → p-8dcb9ef1.entry.js} +1 -1
- package/dist/lime-elements/{p-2a5113ef.entry.js → p-92f79a62.entry.js} +1 -1
- package/dist/lime-elements/{p-61c81d09.entry.js → p-93907698.entry.js} +2 -2
- package/dist/lime-elements/{p-718431c1.entry.js → p-9b3c7341.entry.js} +1 -1
- package/dist/lime-elements/{p-_1yBt1pG.js → p-BJrZuSu3.js} +1 -1
- package/dist/lime-elements/{p-Cadm4-WZ.js → p-BzHrLZdr.js} +1 -1
- package/dist/lime-elements/{p-BU9IJqli.js → p-D3SUrFhp.js} +2 -2
- package/dist/lime-elements/p-DpXrxCh5.js +1 -0
- package/dist/lime-elements/p-DwxRLqY6.js +1 -0
- package/dist/lime-elements/{p-3f9acb22.entry.js → p-a0501e84.entry.js} +1 -1
- package/dist/lime-elements/{p-3a421be9.entry.js → p-a5419b44.entry.js} +1 -1
- package/dist/lime-elements/{p-22aaa1ae.entry.js → p-abd612b3.entry.js} +1 -1
- package/dist/lime-elements/{p-c6eed240.entry.js → p-aeac9588.entry.js} +2 -2
- package/dist/lime-elements/p-b01e8af9.entry.js +1 -0
- package/dist/lime-elements/{p-f97ec7a5.entry.js → p-b08c9b52.entry.js} +1 -1
- package/dist/lime-elements/{p-be653ca9.entry.js → p-b1f6412e.entry.js} +1 -1
- package/dist/lime-elements/{p-6b6b8ffe.entry.js → p-b3967ab3.entry.js} +1 -1
- package/dist/lime-elements/{p-eb812303.entry.js → p-b8bfec0e.entry.js} +1 -1
- package/dist/lime-elements/{p-490ac19d.entry.js → p-ba4b44ad.entry.js} +1 -1
- package/dist/lime-elements/{p-783fd221.entry.js → p-bf726f16.entry.js} +1 -1
- package/dist/lime-elements/{p-1e699935.entry.js → p-c2f27d2a.entry.js} +1 -1
- package/dist/lime-elements/{p-271662d4.entry.js → p-c3bd19ea.entry.js} +1 -1
- package/dist/lime-elements/{p-8e46d111.entry.js → p-cc560bbd.entry.js} +1 -1
- package/dist/lime-elements/{p-e8665e99.entry.js → p-d2953c11.entry.js} +1 -1
- package/dist/lime-elements/{p-156ea100.entry.js → p-d3d01dd4.entry.js} +1 -1
- package/dist/lime-elements/{p-4b75e653.entry.js → p-d9e6175b.entry.js} +1 -1
- package/dist/lime-elements/{p-373032c0.entry.js → p-dab5421d.entry.js} +1 -1
- package/dist/lime-elements/{p-c3d1aa57.entry.js → p-dcaeefc9.entry.js} +1 -1
- package/dist/lime-elements/{p-1fa0fd7a.entry.js → p-df8aa135.entry.js} +1 -1
- package/dist/lime-elements/{p-d2f784a8.entry.js → p-e2fb2af4.entry.js} +1 -1
- package/dist/lime-elements/{p-c7bcae67.entry.js → p-e929fc64.entry.js} +1 -1
- package/dist/lime-elements/{p-3d6ba932.entry.js → p-ea02dade.entry.js} +1 -1
- package/dist/lime-elements/{p-0700e83f.entry.js → p-ecd633cb.entry.js} +1 -1
- package/dist/lime-elements/{p-c3b86df2.entry.js → p-f5cd53e8.entry.js} +1 -1
- package/dist/lime-elements/{p-127ff801.entry.js → p-f7cae25a.entry.js} +1 -1
- package/dist/types/components/chart/chart.d.ts +59 -8
- package/dist/types/components/chart/chart.types.d.ts +23 -0
- package/dist/types/components/chart/options.d.ts +83 -8
- package/dist/types/components/chart/scale.d.ts +10 -0
- package/dist/types/components/chart/series.d.ts +71 -0
- package/dist/types/components.d.ts +42 -15
- package/package.json +2 -2
- package/dist/lime-elements/p-2d698983.entry.js +0 -1
- package/dist/lime-elements/p-391305a7.entry.js +0 -56
- package/dist/lime-elements/p-N9vxZMhe.js +0 -1
- package/dist/lime-elements/p-bb45a5bb.entry.js +0 -1
- package/dist/lime-elements/p-eF09GxA_.js +0 -1
|
@@ -55,4 +55,27 @@ export interface ChartItem<T extends number | [number, number] = number | [numbe
|
|
|
55
55
|
*/
|
|
56
56
|
clickable?: boolean;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* A group of items that are drawn in a color of their own, such as the
|
|
60
|
+
* revenue of each month, next to the costs of each month.
|
|
61
|
+
* @beta
|
|
62
|
+
*/
|
|
63
|
+
export interface ChartSeries {
|
|
64
|
+
/**
|
|
65
|
+
* Name of the series, shown in the legend, the tooltips, and the table
|
|
66
|
+
* for assistive technology.
|
|
67
|
+
*/
|
|
68
|
+
text: string;
|
|
69
|
+
/**
|
|
70
|
+
* Color of the series. Defaults to one of eight colors, by the place of
|
|
71
|
+
* the series among the others. An item's own `color` is used for that
|
|
72
|
+
* item instead.
|
|
73
|
+
*/
|
|
74
|
+
color?: Color;
|
|
75
|
+
/**
|
|
76
|
+
* Items of the series. Items of different series that have the same
|
|
77
|
+
* `text` are drawn together, at the same place on the axis.
|
|
78
|
+
*/
|
|
79
|
+
items: ChartItem[];
|
|
80
|
+
}
|
|
58
81
|
//# sourceMappingURL=chart.types.d.ts.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { BarSeriesOption, GaugeSeriesOption, LineSeriesOption, PieSeriesOption, ScatterSeriesOption } from 'echarts/charts';
|
|
2
2
|
import type { GridComponentOption, PolarComponentOption, TooltipComponentOption } from 'echarts/components';
|
|
3
3
|
import { type ComposeOption } from 'echarts/core';
|
|
4
|
-
import { ChartItem } from './chart.types';
|
|
4
|
+
import { ChartItem, ChartSeries } from './chart.types';
|
|
5
|
+
import { AxisRange, DrawnChartType } from './scale';
|
|
5
6
|
import { ValueStyle } from './format';
|
|
7
|
+
import { ItemPosition, SeriesGrid } from './series';
|
|
6
8
|
import { ChartTheme } from './theme';
|
|
7
9
|
type SeriesOption = BarSeriesOption | GaugeSeriesOption | LineSeriesOption | PieSeriesOption | ScatterSeriesOption;
|
|
8
10
|
export type ChartOption = ComposeOption<SeriesOption | GridComponentOption | PolarComponentOption | TooltipComponentOption>;
|
|
@@ -10,8 +12,22 @@ export type ChartOption = ComposeOption<SeriesOption | GridComponentOption | Pol
|
|
|
10
12
|
* What the chart draws, from the props of `limel-chart`.
|
|
11
13
|
*/
|
|
12
14
|
export interface ChartSettings extends ValueStyle {
|
|
13
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The items, each with its color resolved by the theme. A chart that
|
|
17
|
+
* draws series leaves them out.
|
|
18
|
+
*/
|
|
14
19
|
items: ChartItem[];
|
|
20
|
+
/**
|
|
21
|
+
* The series, which are drawn instead of the items when the type can
|
|
22
|
+
* draw series. The color of each series, and of each of its items, is
|
|
23
|
+
* resolved by the theme.
|
|
24
|
+
*/
|
|
25
|
+
series?: ChartSeries[];
|
|
26
|
+
/**
|
|
27
|
+
* Whether the series are stacked on each other, when the type can stack
|
|
28
|
+
* them and the values are not dates.
|
|
29
|
+
*/
|
|
30
|
+
stacked?: boolean;
|
|
15
31
|
orientation: 'landscape' | 'portrait';
|
|
16
32
|
maxValue?: number;
|
|
17
33
|
axisIncrement?: number;
|
|
@@ -29,12 +45,23 @@ export interface ChartSettings extends ValueStyle {
|
|
|
29
45
|
*/
|
|
30
46
|
export interface ChartDrawing {
|
|
31
47
|
option: ChartOption;
|
|
32
|
-
/**
|
|
33
|
-
|
|
48
|
+
/**
|
|
49
|
+
* The series of ECharts that draws the items of each series, or the
|
|
50
|
+
* items of a chart without series, when the items are not series of
|
|
51
|
+
* their own.
|
|
52
|
+
*/
|
|
53
|
+
seriesIndexes: number[];
|
|
54
|
+
/**
|
|
55
|
+
* The series of the chart that each series of ECharts draws a part of.
|
|
56
|
+
* A series of ECharts that is not in it draws the first series.
|
|
57
|
+
*/
|
|
58
|
+
partsOfSeries?: number[];
|
|
34
59
|
/** Whether every item is a series of its own, as in a proportion bar. */
|
|
35
60
|
itemsAreSeries: boolean;
|
|
36
61
|
/** The axis that shows the texts of the items, when they are shown on one. */
|
|
37
62
|
itemTextAxis?: 'xAxis' | 'yAxis';
|
|
63
|
+
/** The range of the value axis, when the items are drawn on axes. */
|
|
64
|
+
valueRange?: AxisRange;
|
|
38
65
|
}
|
|
39
66
|
/**
|
|
40
67
|
* The position of an item within the drawn series.
|
|
@@ -52,17 +79,57 @@ export interface ItemLocation {
|
|
|
52
79
|
*/
|
|
53
80
|
export declare function drawChart(settings: ChartSettings, theme: ChartTheme, itemSpace?: number): ChartDrawing;
|
|
54
81
|
/**
|
|
55
|
-
* The
|
|
82
|
+
* The item drawn at a position, if an item is drawn there. A position in a
|
|
83
|
+
* series of ECharts that draws no items of its own, such as the invisible
|
|
84
|
+
* column of an item, belongs to the first series.
|
|
56
85
|
* @param drawing - the drawing of the chart
|
|
57
86
|
* @param location - a position within the drawn series
|
|
58
87
|
*/
|
|
59
|
-
export declare function
|
|
88
|
+
export declare function findItem(drawing: Omit<ChartDrawing, 'option'>, location: Partial<ItemLocation>): ItemPosition;
|
|
60
89
|
/**
|
|
61
90
|
* Where an item is drawn, for highlighting it and showing its tooltip.
|
|
62
91
|
* @param drawing - the drawing of the chart
|
|
63
|
-
* @param
|
|
92
|
+
* @param position - where the item is among the series
|
|
93
|
+
*/
|
|
94
|
+
export declare function locateItem(drawing: Omit<ChartDrawing, 'option'>, position: ItemPosition): ItemLocation;
|
|
95
|
+
type ItemsAndSeries = Pick<ChartSettings, 'type' | 'items' | 'series'>;
|
|
96
|
+
/**
|
|
97
|
+
* The series that the chart draws: its series, when its type can draw them.
|
|
98
|
+
* @param settings - what the chart is given
|
|
99
|
+
*/
|
|
100
|
+
export declare function getDrawnSeries(settings: Pick<ChartSettings, 'type' | 'series'>): ChartSeries[] | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* The series whose items the chart draws as its items: its first series,
|
|
103
|
+
* when its type cannot draw series and it has no items.
|
|
104
|
+
* @param settings - what the chart is given
|
|
105
|
+
*/
|
|
106
|
+
export declare function getSeriesOfDrawnItems(settings: ItemsAndSeries): ChartSeries | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* The items that the chart draws when it draws no series: its items, or the
|
|
109
|
+
* items of its first series when it has no items.
|
|
110
|
+
* @param settings - what the chart is given
|
|
64
111
|
*/
|
|
65
|
-
export declare function
|
|
112
|
+
export declare function getDrawnItems(settings: ItemsAndSeries): ChartItem[];
|
|
113
|
+
/**
|
|
114
|
+
* Whether the chart stacks its series on each other. Only the types that
|
|
115
|
+
* can stack series do, and never with dates, since a sum of dates means
|
|
116
|
+
* nothing.
|
|
117
|
+
* @param settings - what the chart is given
|
|
118
|
+
*/
|
|
119
|
+
export declare function isStacked(settings: Pick<ChartSettings, 'type' | 'series' | 'stacked' | 'valueFormat'>): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* The series that the chart draws lined up by category, or the items it
|
|
122
|
+
* draws as the only series when it draws no series.
|
|
123
|
+
* @param settings - what the chart is given
|
|
124
|
+
*/
|
|
125
|
+
export declare function getSeriesGrid(settings: ItemsAndSeries): SeriesGrid;
|
|
126
|
+
/**
|
|
127
|
+
* The style of the marker of a series, in the legend and in the tooltip: a
|
|
128
|
+
* square for bars and areas, a line for lines, and a dot for dots.
|
|
129
|
+
* @param type - the chart type
|
|
130
|
+
* @param color - the color of the series
|
|
131
|
+
*/
|
|
132
|
+
export declare function getSwatchStyle(type: DrawnChartType, color?: string): Record<string, string>;
|
|
66
133
|
/**
|
|
67
134
|
* Shows the text of every item on the axis, cut short to the space of the
|
|
68
135
|
* item, so that no text runs into the next one. When the items are too close
|
|
@@ -84,5 +151,13 @@ export declare function getItemLabel(settings: Pick<ChartSettings, 'items' | 'ty
|
|
|
84
151
|
* @param index - the index of the item
|
|
85
152
|
*/
|
|
86
153
|
export declare function getTooltip(settings: ChartSettings, index: number): string;
|
|
154
|
+
/**
|
|
155
|
+
* The tooltip of a category of a chart with series, as HTML: its text, and
|
|
156
|
+
* the name and value of each series that has an item there.
|
|
157
|
+
* @param grid - the series of the chart, lined up by category
|
|
158
|
+
* @param style - how the chart writes values
|
|
159
|
+
* @param index - the index of the category
|
|
160
|
+
*/
|
|
161
|
+
export declare function getCategoryTooltip(grid: SeriesGrid, style: ValueStyle, index: number): string;
|
|
87
162
|
export {};
|
|
88
163
|
//# sourceMappingURL=options.d.ts.map
|
|
@@ -26,6 +26,16 @@ export declare function isPartOfWhole(type: DrawnChartType): boolean;
|
|
|
26
26
|
* @param type - the chart type
|
|
27
27
|
*/
|
|
28
28
|
export declare function usesAxisIncrement(type: DrawnChartType): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Whether a chart of this type can draw `series`.
|
|
31
|
+
* @param type - the chart type
|
|
32
|
+
*/
|
|
33
|
+
export declare function canDrawSeries(type: DrawnChartType): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether a chart of this type can stack its `series` on each other.
|
|
36
|
+
* @param type - the chart type
|
|
37
|
+
*/
|
|
38
|
+
export declare function canStack(type: DrawnChartType): boolean;
|
|
29
39
|
/**
|
|
30
40
|
* Whether the item has a `[start, end]` range, or an `[x, y]` point in a
|
|
31
41
|
* `scatter` chart, as its value.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ChartItem, ChartSeries } from './chart.types';
|
|
2
|
+
/**
|
|
3
|
+
* Series lined up by category, so that the items of each series that belong
|
|
4
|
+
* together are at the same place.
|
|
5
|
+
*/
|
|
6
|
+
export interface SeriesGrid {
|
|
7
|
+
/** The texts of the categories, in the order they first appear. */
|
|
8
|
+
categories: string[];
|
|
9
|
+
series: GridSeries[];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A series whose items are lined up by category.
|
|
13
|
+
*/
|
|
14
|
+
export interface GridSeries {
|
|
15
|
+
text: string;
|
|
16
|
+
color?: string;
|
|
17
|
+
/** The item of the series at each category, if it has one there. */
|
|
18
|
+
items: Array<ChartItem | undefined>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Where an item is: the index of its series, and of its category. An item of
|
|
22
|
+
* a chart without series is in the first and only series.
|
|
23
|
+
*/
|
|
24
|
+
export interface ItemPosition {
|
|
25
|
+
series: number;
|
|
26
|
+
index: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Lines up the items of the series by their text, since items of different
|
|
30
|
+
* series that have the same text belong to the same category. When a series
|
|
31
|
+
* has several items with the same text, its second item with that text lines
|
|
32
|
+
* up with the second one of the other series, and so on.
|
|
33
|
+
* @param series - the series
|
|
34
|
+
*/
|
|
35
|
+
export declare function alignSeries(series: ChartSeries[]): SeriesGrid;
|
|
36
|
+
/**
|
|
37
|
+
* The item at a position, if there is one.
|
|
38
|
+
* @param grid - the series
|
|
39
|
+
* @param position - where the item is
|
|
40
|
+
*/
|
|
41
|
+
export declare function getItemAt(grid: SeriesGrid, position: ItemPosition): ChartItem | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* The series that has an item at a place on the axis and is nearest to a
|
|
44
|
+
* series: the series itself when it has an item there, otherwise the closest
|
|
45
|
+
* one, and the earlier of two that are as close.
|
|
46
|
+
* @param grid - the series
|
|
47
|
+
* @param position - the place on the axis, and the series to start from
|
|
48
|
+
*/
|
|
49
|
+
export declare function getNearestSeries(grid: SeriesGrid, position: ItemPosition): number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The items of every series, in no particular order.
|
|
52
|
+
* @param grid - the series
|
|
53
|
+
*/
|
|
54
|
+
export declare function getAllItems(grid: SeriesGrid): ChartItem[];
|
|
55
|
+
/**
|
|
56
|
+
* The items that the value axis has to reach: every item, or, when the
|
|
57
|
+
* series are stacked, the two ends of the stack at each place on the axis.
|
|
58
|
+
* Positive and negative values are stacked on their own side of zero, and a
|
|
59
|
+
* range adds its extent to the stack.
|
|
60
|
+
* @param grid - the series
|
|
61
|
+
* @param stacked - whether the series are stacked on each other
|
|
62
|
+
*/
|
|
63
|
+
export declare function getAxisItems(grid: SeriesGrid, stacked: boolean): ChartItem[];
|
|
64
|
+
/**
|
|
65
|
+
* Whether the item at a position ends its stack, since no later series has
|
|
66
|
+
* an item on the same side of zero at that place on the axis.
|
|
67
|
+
* @param grid - the stacked series
|
|
68
|
+
* @param position - where the item is
|
|
69
|
+
*/
|
|
70
|
+
export declare function endsStack(grid: SeriesGrid, position: ItemPosition): boolean;
|
|
71
|
+
//# sourceMappingURL=series.d.ts.map
|
|
@@ -16,7 +16,7 @@ import { Button } from "./components/button/button.types";
|
|
|
16
16
|
import { CalloutType } from "./components/callout/callout.types";
|
|
17
17
|
import { Image } from "./global/shared-types/image.types";
|
|
18
18
|
import { ListSeparator as ListSeparator1 } from "./global/shared-types/separator.types";
|
|
19
|
-
import { ChartItem, ChartType, ChartValueFormat } from "./components/chart/chart.types";
|
|
19
|
+
import { ChartItem, ChartSeries, ChartType, ChartValueFormat } from "./components/chart/chart.types";
|
|
20
20
|
import { Label, LabelValue } from "./components/dynamic-label/label.types";
|
|
21
21
|
import { Link } from "./global/shared-types/link.types";
|
|
22
22
|
import { Chip, ChipType } from "./components/chip-set/chip.types";
|
|
@@ -68,7 +68,7 @@ export { Button } from "./components/button/button.types";
|
|
|
68
68
|
export { CalloutType } from "./components/callout/callout.types";
|
|
69
69
|
export { Image } from "./global/shared-types/image.types";
|
|
70
70
|
export { ListSeparator as ListSeparator1 } from "./global/shared-types/separator.types";
|
|
71
|
-
export { ChartItem, ChartType, ChartValueFormat } from "./components/chart/chart.types";
|
|
71
|
+
export { ChartItem, ChartSeries, ChartType, ChartValueFormat } from "./components/chart/chart.types";
|
|
72
72
|
export { Label, LabelValue } from "./components/dynamic-label/label.types";
|
|
73
73
|
export { Link } from "./global/shared-types/link.types";
|
|
74
74
|
export { Chip, ChipType } from "./components/chip-set/chip.types";
|
|
@@ -528,8 +528,6 @@ export namespace Components {
|
|
|
528
528
|
* @exampleComponent limel-example-chart-orientation
|
|
529
529
|
* @exampleComponent limel-example-chart-max-value
|
|
530
530
|
* @exampleComponent limel-example-chart-display-item-percentage
|
|
531
|
-
* @exampleComponent limel-example-chart-value-format
|
|
532
|
-
* @exampleComponent limel-example-chart-value-format-date
|
|
533
531
|
* @exampleComponent limel-example-chart-type-bar
|
|
534
532
|
* @exampleComponent limel-example-chart-type-dot
|
|
535
533
|
* @exampleComponent limel-example-chart-type-area
|
|
@@ -545,9 +543,13 @@ export namespace Components {
|
|
|
545
543
|
* @exampleComponent limel-example-chart-multi-axis-area-with-negative-start-values
|
|
546
544
|
* @exampleComponent limel-example-chart-type-scatter-negative
|
|
547
545
|
* @exampleComponent limel-example-chart-axis-increment
|
|
546
|
+
* @exampleComponent limel-example-chart-value-format
|
|
547
|
+
* @exampleComponent limel-example-chart-value-format-date
|
|
548
548
|
* @exampleComponent limel-example-chart-clickable-items
|
|
549
549
|
* @exampleComponent limel-example-chart-accessibility
|
|
550
550
|
* @exampleComponent limel-example-chart-axis-labels
|
|
551
|
+
* @exampleComponent limel-example-chart-series
|
|
552
|
+
* @exampleComponent limel-example-chart-series-stacked
|
|
551
553
|
* @exampleComponent limel-example-chart-styling
|
|
552
554
|
* @beta
|
|
553
555
|
*/
|
|
@@ -561,7 +563,7 @@ export namespace Components {
|
|
|
561
563
|
*/
|
|
562
564
|
"accessibleLabel"?: string;
|
|
563
565
|
/**
|
|
564
|
-
* Helps users of assistive technologies to understand what the values in the chart represent. Defaults to the translation for "value" in the current language.
|
|
566
|
+
* Helps users of assistive technologies to understand what the values in the chart represent. Defaults to the translation for "value" in the current language. In a chart with series, the series name the columns of values, and this label, when it is set, heads them all.
|
|
565
567
|
*/
|
|
566
568
|
"accessibleValuesLabel"?: string;
|
|
567
569
|
/**
|
|
@@ -595,7 +597,7 @@ export namespace Components {
|
|
|
595
597
|
/**
|
|
596
598
|
* List of items in the chart, each representing a data point.
|
|
597
599
|
*/
|
|
598
|
-
"items"
|
|
600
|
+
"items"?: ChartItem[];
|
|
599
601
|
/**
|
|
600
602
|
* Defines the language for translations, and for the way values are written, such as `1 234,5` in Swedish.
|
|
601
603
|
* @default 'en'
|
|
@@ -615,6 +617,15 @@ export namespace Components {
|
|
|
615
617
|
* @default 'landscape'
|
|
616
618
|
*/
|
|
617
619
|
"orientation"?: 'landscape' | 'portrait';
|
|
620
|
+
/**
|
|
621
|
+
* Groups of items that are drawn side by side, each in a color of its own, such as the revenue and the costs of each month. Items of different series that have the same `text` are drawn together, at the same place on the axis. When there are two series or more, a legend names them. `bar`, `dot`, `line`, and `area` charts draw `series` instead of `items`. Other types draw `items`, or the items of the first series when `items` is not set.
|
|
622
|
+
*/
|
|
623
|
+
"series"?: ChartSeries[];
|
|
624
|
+
/**
|
|
625
|
+
* Stacks the `series` on each other, so that each place on the axis shows their total, such as the revenue of each product, which adds up to the revenue of the month. Positive and negative values are stacked on their own side of zero, and a range adds its extent to the stack. Applies to `bar`, `line`, and `area` charts, but not when `valueFormat` is `date`.
|
|
626
|
+
* @default false
|
|
627
|
+
*/
|
|
628
|
+
"stacked": boolean;
|
|
618
629
|
/**
|
|
619
630
|
* Defines how items are visualized in the chart. `stacked-bar` is the old name of `proportion-bar`. It still works, but logs a warning.
|
|
620
631
|
* @default 'proportion-bar'
|
|
@@ -5015,8 +5026,6 @@ declare global {
|
|
|
5015
5026
|
* @exampleComponent limel-example-chart-orientation
|
|
5016
5027
|
* @exampleComponent limel-example-chart-max-value
|
|
5017
5028
|
* @exampleComponent limel-example-chart-display-item-percentage
|
|
5018
|
-
* @exampleComponent limel-example-chart-value-format
|
|
5019
|
-
* @exampleComponent limel-example-chart-value-format-date
|
|
5020
5029
|
* @exampleComponent limel-example-chart-type-bar
|
|
5021
5030
|
* @exampleComponent limel-example-chart-type-dot
|
|
5022
5031
|
* @exampleComponent limel-example-chart-type-area
|
|
@@ -5032,9 +5041,13 @@ declare global {
|
|
|
5032
5041
|
* @exampleComponent limel-example-chart-multi-axis-area-with-negative-start-values
|
|
5033
5042
|
* @exampleComponent limel-example-chart-type-scatter-negative
|
|
5034
5043
|
* @exampleComponent limel-example-chart-axis-increment
|
|
5044
|
+
* @exampleComponent limel-example-chart-value-format
|
|
5045
|
+
* @exampleComponent limel-example-chart-value-format-date
|
|
5035
5046
|
* @exampleComponent limel-example-chart-clickable-items
|
|
5036
5047
|
* @exampleComponent limel-example-chart-accessibility
|
|
5037
5048
|
* @exampleComponent limel-example-chart-axis-labels
|
|
5049
|
+
* @exampleComponent limel-example-chart-series
|
|
5050
|
+
* @exampleComponent limel-example-chart-series-stacked
|
|
5038
5051
|
* @exampleComponent limel-example-chart-styling
|
|
5039
5052
|
* @beta
|
|
5040
5053
|
*/
|
|
@@ -7793,8 +7806,6 @@ declare namespace LocalJSX {
|
|
|
7793
7806
|
* @exampleComponent limel-example-chart-orientation
|
|
7794
7807
|
* @exampleComponent limel-example-chart-max-value
|
|
7795
7808
|
* @exampleComponent limel-example-chart-display-item-percentage
|
|
7796
|
-
* @exampleComponent limel-example-chart-value-format
|
|
7797
|
-
* @exampleComponent limel-example-chart-value-format-date
|
|
7798
7809
|
* @exampleComponent limel-example-chart-type-bar
|
|
7799
7810
|
* @exampleComponent limel-example-chart-type-dot
|
|
7800
7811
|
* @exampleComponent limel-example-chart-type-area
|
|
@@ -7810,9 +7821,13 @@ declare namespace LocalJSX {
|
|
|
7810
7821
|
* @exampleComponent limel-example-chart-multi-axis-area-with-negative-start-values
|
|
7811
7822
|
* @exampleComponent limel-example-chart-type-scatter-negative
|
|
7812
7823
|
* @exampleComponent limel-example-chart-axis-increment
|
|
7824
|
+
* @exampleComponent limel-example-chart-value-format
|
|
7825
|
+
* @exampleComponent limel-example-chart-value-format-date
|
|
7813
7826
|
* @exampleComponent limel-example-chart-clickable-items
|
|
7814
7827
|
* @exampleComponent limel-example-chart-accessibility
|
|
7815
7828
|
* @exampleComponent limel-example-chart-axis-labels
|
|
7829
|
+
* @exampleComponent limel-example-chart-series
|
|
7830
|
+
* @exampleComponent limel-example-chart-series-stacked
|
|
7816
7831
|
* @exampleComponent limel-example-chart-styling
|
|
7817
7832
|
* @beta
|
|
7818
7833
|
*/
|
|
@@ -7826,7 +7841,7 @@ declare namespace LocalJSX {
|
|
|
7826
7841
|
*/
|
|
7827
7842
|
"accessibleLabel"?: string;
|
|
7828
7843
|
/**
|
|
7829
|
-
* Helps users of assistive technologies to understand what the values in the chart represent. Defaults to the translation for "value" in the current language.
|
|
7844
|
+
* Helps users of assistive technologies to understand what the values in the chart represent. Defaults to the translation for "value" in the current language. In a chart with series, the series name the columns of values, and this label, when it is set, heads them all.
|
|
7830
7845
|
*/
|
|
7831
7846
|
"accessibleValuesLabel"?: string;
|
|
7832
7847
|
/**
|
|
@@ -7860,7 +7875,7 @@ declare namespace LocalJSX {
|
|
|
7860
7875
|
/**
|
|
7861
7876
|
* List of items in the chart, each representing a data point.
|
|
7862
7877
|
*/
|
|
7863
|
-
"items"
|
|
7878
|
+
"items"?: ChartItem[];
|
|
7864
7879
|
/**
|
|
7865
7880
|
* Defines the language for translations, and for the way values are written, such as `1 234,5` in Swedish.
|
|
7866
7881
|
* @default 'en'
|
|
@@ -7876,7 +7891,7 @@ declare namespace LocalJSX {
|
|
|
7876
7891
|
*/
|
|
7877
7892
|
"maxValue"?: number;
|
|
7878
7893
|
/**
|
|
7879
|
-
* Fired when a chart item with `clickable` set to `true` is clicked
|
|
7894
|
+
* Fired when a chart item with `clickable` set to `true` is clicked. The detail is the item itself, the same object as in `items` or in `series`, so a chart with series can tell which series the item belongs to by comparing it with the items of each series.
|
|
7880
7895
|
*/
|
|
7881
7896
|
"onInteract"?: (event: LimelChartCustomEvent<ChartItem>) => void;
|
|
7882
7897
|
/**
|
|
@@ -7884,6 +7899,15 @@ declare namespace LocalJSX {
|
|
|
7884
7899
|
* @default 'landscape'
|
|
7885
7900
|
*/
|
|
7886
7901
|
"orientation"?: 'landscape' | 'portrait';
|
|
7902
|
+
/**
|
|
7903
|
+
* Groups of items that are drawn side by side, each in a color of its own, such as the revenue and the costs of each month. Items of different series that have the same `text` are drawn together, at the same place on the axis. When there are two series or more, a legend names them. `bar`, `dot`, `line`, and `area` charts draw `series` instead of `items`. Other types draw `items`, or the items of the first series when `items` is not set.
|
|
7904
|
+
*/
|
|
7905
|
+
"series"?: ChartSeries[];
|
|
7906
|
+
/**
|
|
7907
|
+
* Stacks the `series` on each other, so that each place on the axis shows their total, such as the revenue of each product, which adds up to the revenue of the month. Positive and negative values are stacked on their own side of zero, and a range adds its extent to the stack. Applies to `bar`, `line`, and `area` charts, but not when `valueFormat` is `date`.
|
|
7908
|
+
* @default false
|
|
7909
|
+
*/
|
|
7910
|
+
"stacked"?: boolean;
|
|
7887
7911
|
/**
|
|
7888
7912
|
* Defines how items are visualized in the chart. `stacked-bar` is the old name of `proportion-bar`. It still works, but logs a warning.
|
|
7889
7913
|
* @default 'proportion-bar'
|
|
@@ -12139,6 +12163,7 @@ declare namespace LocalJSX {
|
|
|
12139
12163
|
"displayItemText": boolean;
|
|
12140
12164
|
"displayItemValue": boolean;
|
|
12141
12165
|
"displayItemPercentage": boolean;
|
|
12166
|
+
"stacked": boolean;
|
|
12142
12167
|
"type": ChartType;
|
|
12143
12168
|
"orientation": 'landscape' | 'portrait';
|
|
12144
12169
|
"maxValue": number;
|
|
@@ -13028,8 +13053,6 @@ declare module "@stencil/core" {
|
|
|
13028
13053
|
* @exampleComponent limel-example-chart-orientation
|
|
13029
13054
|
* @exampleComponent limel-example-chart-max-value
|
|
13030
13055
|
* @exampleComponent limel-example-chart-display-item-percentage
|
|
13031
|
-
* @exampleComponent limel-example-chart-value-format
|
|
13032
|
-
* @exampleComponent limel-example-chart-value-format-date
|
|
13033
13056
|
* @exampleComponent limel-example-chart-type-bar
|
|
13034
13057
|
* @exampleComponent limel-example-chart-type-dot
|
|
13035
13058
|
* @exampleComponent limel-example-chart-type-area
|
|
@@ -13045,9 +13068,13 @@ declare module "@stencil/core" {
|
|
|
13045
13068
|
* @exampleComponent limel-example-chart-multi-axis-area-with-negative-start-values
|
|
13046
13069
|
* @exampleComponent limel-example-chart-type-scatter-negative
|
|
13047
13070
|
* @exampleComponent limel-example-chart-axis-increment
|
|
13071
|
+
* @exampleComponent limel-example-chart-value-format
|
|
13072
|
+
* @exampleComponent limel-example-chart-value-format-date
|
|
13048
13073
|
* @exampleComponent limel-example-chart-clickable-items
|
|
13049
13074
|
* @exampleComponent limel-example-chart-accessibility
|
|
13050
13075
|
* @exampleComponent limel-example-chart-axis-labels
|
|
13076
|
+
* @exampleComponent limel-example-chart-series
|
|
13077
|
+
* @exampleComponent limel-example-chart-series-stacked
|
|
13051
13078
|
* @exampleComponent limel-example-chart-styling
|
|
13052
13079
|
* @beta
|
|
13053
13080
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "40.
|
|
3
|
+
"version": "40.25.0",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"eslint": "^10.14.0",
|
|
81
81
|
"flatpickr": "^4.6.13",
|
|
82
82
|
"glob": "^14.0.3",
|
|
83
|
-
"globals": "^17.
|
|
83
|
+
"globals": "^17.14.0",
|
|
84
84
|
"hast-util-from-dom": "^5.0.1",
|
|
85
85
|
"hast-util-to-mdast": "^10.1.2",
|
|
86
86
|
"html-escaper": "^3.0.3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as n}from"./p-BU9IJqli.js";import{t as e}from"./p--i932i_D.js";import{a}from"./p-DQ5DmW_Y.js";import{p as h}from"./p-CSC2LJ7P.js";const r=class{constructor(s){t(this,s),this.jump=i(this,"jump",7),this.open=!1,this.page=1,this.pageCount=1,this.loading=!1,this.language="en",this.value="",this.shouldFocusField=!1,this.handleChange=t=>{var i;t.stopPropagation(),this.value=String(null!==(i=t.detail)&&void 0!==i?i:"")},this.handleKeyDown=t=>{t.key===a&&(t.preventDefault(),this.commit())},this.commit=()=>{const t=this.target;null===t||this.loading||this.jump.emit(t)},this.setField=t=>{this.field=t},this.translate=(t,i)=>e.get(t,this.language,i)}componentWillLoad(){this.handleOpenChange()}handleLanguageChange(){this.numberFormat=void 0}handleOpenChange(){this.open&&(this.value=String(this.page),this.shouldFocusField=!0)}async componentDidRender(){this.shouldFocusField&&(this.shouldFocusField=!1,await this.focusField())}render(){if(this.open)return s(n,{onKeyDown:this.handleKeyDown},s("limel-input-field",{type:"number",label:this.translate("pagination.page-number"),placeholder:this.pageRange,value:this.value,onChange:this.handleChange,min:1,max:this.pageCount,step:1,ref:this.setField}),s("limel-button",{primary:!0,label:this.translate("pagination.go"),disabled:this.loading,onClick:this.commit}))}get target(){var t,i;const s=null!==(i=null===(t=this.nativeField)||void 0===t?void 0:t.value)&&void 0!==i?i:this.value;return h(s,this.pageCount)}get pageRange(){return this.translate("pagination.page-range",{first:this.formatNumber(1),last:this.formatNumber(this.pageCount)})}get nativeField(){var t,i;return null===(i=null===(t=this.field)||void 0===t?void 0:t.shadowRoot)||void 0===i?void 0:i.querySelector("input")}async focusField(){const t=this.field;t&&(await t.componentOnReady(),requestAnimationFrame((()=>{var i,s;t.focus(),null===(s=null===(i=t.shadowRoot)||void 0===i?void 0:i.querySelector("input"))||void 0===s||s.select()})))}formatNumber(t){var i;return null!==(i=this.numberFormat)&&void 0!==i||(this.numberFormat=this.createNumberFormat()),this.numberFormat.format(t)}createNumberFormat(){try{return new Intl.NumberFormat(this.language)}catch(t){return new Intl.NumberFormat("en")}}static get watchers(){return{language:[{handleLanguageChange:0}],open:[{handleOpenChange:0}]}}};r.style=":host{display:flex;flex-direction:column;gap:0.75rem;padding:0.75rem;min-width:12rem}:host(:not([open])){display:none}";export{r as limel_pagination_jump}
|