@gravionlabs/helix-ui 22.2.5 → 22.2.7

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/README.md CHANGED
@@ -19,6 +19,23 @@ npm install @gravionlabs/helix-ui
19
19
 
20
20
  Dark mode: tokens switch under the `app-dark` class on `<html>`, as in `helix-shell`.
21
21
 
22
+ ### Chart
23
+
24
+ `HxChart` is in the secondary entry point `@gravionlabs/helix-ui/chart`, the only place that imports chart.js. chart.js
25
+ is an optional peer dependency: install it only when you use the chart. An app without chart.js builds without any
26
+ extra configuration.
27
+
28
+ ```bash
29
+ npm install chart.js
30
+ ```
31
+
32
+ ```ts
33
+ import { HxChart } from '@gravionlabs/helix-ui/chart';
34
+ ```
35
+
36
+ **Breaking change:** `HxChart`, `HX_CHART_LOADER` and the `HxChart*` types are no longer exported from
37
+ `@gravionlabs/helix-ui`; import them from `@gravionlabs/helix-ui/chart`.
38
+
22
39
  ## Components
23
40
 
24
41
  | Component | Selector | |
@@ -51,7 +68,7 @@ Dark mode: tokens switch under the `app-dark` class on `<html>`, as in `helix-sh
51
68
  | `HxSplitButton` | `hx-split-button` | default action plus an `hx-menu` of related actions; severity, variant, size, rounded, raised |
52
69
  | `HxStepper`, `HxStepList`, `HxStep`, `HxStepPanels`, `HxStepPanel` | `hx-stepper` … | steps with panels: completed/active state, linear mode, `activateCallback`, lazy panels |
53
70
  | `HxButtonGroup` | `hx-button-group` | joins `hx-button`s: square inner corners, shared borders, `role=group` |
54
- | `HxChart` | `hx-chart` | chart.js with colours, grid and font from the tokens; optional peer dependency loaded on demand, redraws on theme change, canvas fallback slot |
71
+ | `HxChart` | `hx-chart` | from `@gravionlabs/helix-ui/chart`: chart.js with colours, grid and font from the tokens; optional peer dependency loaded on demand, redraws on theme change, canvas fallback slot |
55
72
  | `HxDialog`, `HxDialogService`, `HxDialogRef` | `hx-dialog` | modal or non-modal dialog on the CDK dialog; declarative with `[(visible)]` or opened as a component from a service with data and a result |
56
73
  | `HxDrawer` | `hx-drawer` | panel that slides in from an edge, same dialog semantics as `hx-dialog`; modal, full screen, reduced motion |
57
74
  | `HxPopover` | `hx-popover` | anchored panel with arrow: `toggle(event, target)`, outside click and Escape close, non-modal dialog with focus in and back |
@@ -69,6 +86,9 @@ Dark mode: tokens switch under the `app-dark` class on `<html>`, as in `helix-sh
69
86
  | `HxFieldset` | `hx-fieldset` | native fieldset and legend, optional collapse with a legend button |
70
87
  | `HxPanel` | `hx-panel` | titled container, optional collapse with a toggle button, header and footer slots |
71
88
  | `HxFileUpload` | `hx-file-upload` | choose and drop files, list, validation messages, progress; no HTTP, the app uploads |
89
+ | `HxDateTimeRangePicker` | `hx-date-time-range-picker` | date-time range in one field with one popup calendar and a time row per end (`{ from, to }`), same time options as the time picker, all three forms APIs |
90
+ | `HxDateTimePicker` | `hx-date-time-picker` | date and time in one field: a calendar popup (or inline) with a time row under it (`Date`), 24 h or 12 h, hour only, steps, `minDate`/`maxDate` with the time, typing, all three forms APIs |
91
+ | `HxTimePicker` | `hx-time-picker` | time field with a time row popup or inline (`Date` today at that time), 24 h or 12 h, hour only, steps, `minTime`/`maxTime`, typing, all three forms APIs |
72
92
  | `HxDatePicker` | `hx-date-picker` | date field with a calendar popup or inline: single, range or multiple days, typing, month and year views, all three forms APIs |
73
93
  | `HxAutoComplete` | `hx-auto-complete` | text field with suggestions from `(complete)`, chips, dropdown, all three forms APIs |
74
94
  | `HxMultiSelect` | `hx-multi-select` | select for several values: comma or chips, filter, select all, all three forms APIs |
@@ -0,0 +1,4 @@
1
+ {
2
+ "module": "../fesm2022/gravionlabs-helix-ui-chart.mjs",
3
+ "typings": "../types/gravionlabs-helix-ui-chart.d.ts"
4
+ }