@limetech/lime-elements 40.20.1 → 40.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-badge_7.cjs.entry.js +10 -0
  4. package/dist/cjs/limel-chart.cjs.entry.js +24 -11
  5. package/dist/cjs/limel-file-viewer.cjs.entry.js +162 -0
  6. package/dist/cjs/limel-picker.cjs.entry.js +68 -25
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/components/chart/chart.css +8 -2
  9. package/dist/collection/components/chart/chart.js +26 -12
  10. package/dist/collection/components/chart/options.js +3 -3
  11. package/dist/collection/components/chart/scale.js +1 -1
  12. package/dist/collection/components/input-field/input-field.js +10 -0
  13. package/dist/collection/components/picker/picker.js +67 -24
  14. package/dist/esm/lime-elements.js +1 -1
  15. package/dist/esm/limel-badge_7.entry.js +10 -0
  16. package/dist/esm/limel-chart.entry.js +24 -11
  17. package/dist/esm/limel-file-viewer.entry.js +162 -0
  18. package/dist/esm/limel-picker.entry.js +69 -26
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/lime-elements/lime-elements.esm.js +1 -1
  21. package/dist/lime-elements/p-68bbb8dd.entry.js +1 -0
  22. package/dist/lime-elements/{p-7ab726c2.entry.js → p-7af83877.entry.js} +1 -1
  23. package/dist/lime-elements/{p-0887e0df.entry.js → p-7d6a12fe.entry.js} +2 -2
  24. package/dist/lime-elements/p-9f0575fd.entry.js +159 -0
  25. package/dist/types/components/chart/chart.d.ts +7 -3
  26. package/dist/types/components/chart/chart.types.d.ts +4 -1
  27. package/dist/types/components/chart/options.d.ts +4 -3
  28. package/dist/types/components/chart/scale.d.ts +8 -3
  29. package/dist/types/components/input-field/input-field.d.ts +1 -0
  30. package/dist/types/components/picker/picker.d.ts +10 -2
  31. package/dist/types/components.d.ts +12 -12
  32. package/package.json +2 -2
  33. package/dist/lime-elements/p-a807a45f.entry.js +0 -159
  34. package/dist/lime-elements/p-cd479c23.entry.js +0 -1
@@ -144,8 +144,11 @@ export declare class Picker {
144
144
  private loading;
145
145
  private chips;
146
146
  private host;
147
- private chipSetEditMode;
147
+ private isEditing;
148
148
  private debouncedSearch;
149
+ private suggestionToFocusWhenShown?;
150
+ private suggestionFocusFrame?;
151
+ private suggestionHasFocus;
149
152
  private chipSet;
150
153
  private readonly suggestionsMessage;
151
154
  private portalId;
@@ -189,6 +192,7 @@ export declare class Picker {
189
192
  private renderEmptyMessage;
190
193
  private renderListResult;
191
194
  private onListKeyDown;
195
+ private isKeyPressedOnFirstItem;
192
196
  private renderPortal;
193
197
  /**
194
198
  * Check if a descendant still has focus. If not, reset text value and search result.
@@ -234,6 +238,9 @@ export declare class Picker {
234
238
  * @param event - event
235
239
  */
236
240
  private handleInputKeyDown;
241
+ private focusSuggestion;
242
+ private focusSuggestionWhenShown;
243
+ private forgetSuggestionFocus;
237
244
  private handleSearchResult;
238
245
  private hasPickableItems;
239
246
  private prependSearchHeader;
@@ -241,7 +248,8 @@ export declare class Picker {
241
248
  /**
242
249
  * Shared prelude for any flow that ends the current search session:
243
250
  * wipe the chip-set's visible text, reset the picker's `textValue`,
244
- * and cancel any in-flight debounced search.
251
+ * cancel any in-flight debounced search, and forget that a suggestion
252
+ * has the focus, or that an arrow key is waiting for the suggestions.
245
253
  *
246
254
  * Used by `clearInputField` (which then drops the dropdown
247
255
  * entirely) and `resetSearchToDefault` (which re-runs the searcher
@@ -524,7 +524,7 @@ export namespace Components {
524
524
  * A chart is a graphical representation of data, in which
525
525
  * visual symbols such as such bars, dots, lines, or slices, represent
526
526
  * each data point, in comparison to others.
527
- * @exampleComponent limel-example-chart-stacked-bar
527
+ * @exampleComponent limel-example-chart-type-proportion-bar
528
528
  * @exampleComponent limel-example-chart-orientation
529
529
  * @exampleComponent limel-example-chart-max-value
530
530
  * @exampleComponent limel-example-chart-display-item-percentage
@@ -572,7 +572,7 @@ export namespace Components {
572
572
  */
573
573
  "displayAxisLabels": boolean;
574
574
  /**
575
- * Set to `false` to hide the percentage in item tooltips. The percentage is an item's value or range extent as a share of the whole. The whole is `maxValue` when set and the combined items otherwise. Applies to `stacked-bar`, `pie`, `doughnut`, and `ring` charts.
575
+ * Set to `false` to hide the percentage in item tooltips. The percentage is an item's value or range extent as a share of the whole. The whole is `maxValue` when set and the combined items otherwise. Applies to `proportion-bar`, `pie`, `doughnut`, and `ring` charts.
576
576
  * @default true
577
577
  */
578
578
  "displayItemPercentage": boolean;
@@ -601,7 +601,7 @@ export namespace Components {
601
601
  */
602
602
  "loading": boolean;
603
603
  /**
604
- * Sets the value used to scale item values. For `stacked-bar`, `pie`, `doughnut`, and `ring`, it is the denominator used as the whole. It defaults to the combined item values or range extents. The combined size can exceed `maxValue` and produce a total above 100%. For `bar`, `dot`, `area`, and `line`, it is the requested upper bound. The chart can round that bound up to the next `axisIncrement`. Has no effect on `nps` or `scatter`.
604
+ * Sets the value used to scale item values. For `proportion-bar`, `pie`, `doughnut`, and `ring`, it is the denominator used as the whole. It defaults to the combined item values or range extents. The combined size can exceed `maxValue` and produce a total above 100%. For `bar`, `dot`, `area`, and `line`, it is the requested upper bound. The chart can round that bound up to the next `axisIncrement`. Has no effect on `nps` or `scatter`.
605
605
  */
606
606
  "maxValue"?: number;
607
607
  /**
@@ -610,8 +610,8 @@ export namespace Components {
610
610
  */
611
611
  "orientation"?: 'landscape' | 'portrait';
612
612
  /**
613
- * Defines how items are visualized in the chart.
614
- * @default 'stacked-bar'
613
+ * Defines how items are visualized in the chart. `stacked-bar` is the old name of `proportion-bar`. It still works, but logs a warning.
614
+ * @default 'proportion-bar'
615
615
  */
616
616
  "type"?: ChartType;
617
617
  }
@@ -4985,7 +4985,7 @@ declare global {
4985
4985
  * A chart is a graphical representation of data, in which
4986
4986
  * visual symbols such as such bars, dots, lines, or slices, represent
4987
4987
  * each data point, in comparison to others.
4988
- * @exampleComponent limel-example-chart-stacked-bar
4988
+ * @exampleComponent limel-example-chart-type-proportion-bar
4989
4989
  * @exampleComponent limel-example-chart-orientation
4990
4990
  * @exampleComponent limel-example-chart-max-value
4991
4991
  * @exampleComponent limel-example-chart-display-item-percentage
@@ -7758,7 +7758,7 @@ declare namespace LocalJSX {
7758
7758
  * A chart is a graphical representation of data, in which
7759
7759
  * visual symbols such as such bars, dots, lines, or slices, represent
7760
7760
  * each data point, in comparison to others.
7761
- * @exampleComponent limel-example-chart-stacked-bar
7761
+ * @exampleComponent limel-example-chart-type-proportion-bar
7762
7762
  * @exampleComponent limel-example-chart-orientation
7763
7763
  * @exampleComponent limel-example-chart-max-value
7764
7764
  * @exampleComponent limel-example-chart-display-item-percentage
@@ -7806,7 +7806,7 @@ declare namespace LocalJSX {
7806
7806
  */
7807
7807
  "displayAxisLabels"?: boolean;
7808
7808
  /**
7809
- * Set to `false` to hide the percentage in item tooltips. The percentage is an item's value or range extent as a share of the whole. The whole is `maxValue` when set and the combined items otherwise. Applies to `stacked-bar`, `pie`, `doughnut`, and `ring` charts.
7809
+ * Set to `false` to hide the percentage in item tooltips. The percentage is an item's value or range extent as a share of the whole. The whole is `maxValue` when set and the combined items otherwise. Applies to `proportion-bar`, `pie`, `doughnut`, and `ring` charts.
7810
7810
  * @default true
7811
7811
  */
7812
7812
  "displayItemPercentage"?: boolean;
@@ -7835,7 +7835,7 @@ declare namespace LocalJSX {
7835
7835
  */
7836
7836
  "loading"?: boolean;
7837
7837
  /**
7838
- * Sets the value used to scale item values. For `stacked-bar`, `pie`, `doughnut`, and `ring`, it is the denominator used as the whole. It defaults to the combined item values or range extents. The combined size can exceed `maxValue` and produce a total above 100%. For `bar`, `dot`, `area`, and `line`, it is the requested upper bound. The chart can round that bound up to the next `axisIncrement`. Has no effect on `nps` or `scatter`.
7838
+ * Sets the value used to scale item values. For `proportion-bar`, `pie`, `doughnut`, and `ring`, it is the denominator used as the whole. It defaults to the combined item values or range extents. The combined size can exceed `maxValue` and produce a total above 100%. For `bar`, `dot`, `area`, and `line`, it is the requested upper bound. The chart can round that bound up to the next `axisIncrement`. Has no effect on `nps` or `scatter`.
7839
7839
  */
7840
7840
  "maxValue"?: number;
7841
7841
  /**
@@ -7848,8 +7848,8 @@ declare namespace LocalJSX {
7848
7848
  */
7849
7849
  "orientation"?: 'landscape' | 'portrait';
7850
7850
  /**
7851
- * Defines how items are visualized in the chart.
7852
- * @default 'stacked-bar'
7851
+ * Defines how items are visualized in the chart. `stacked-bar` is the old name of `proportion-bar`. It still works, but logs a warning.
7852
+ * @default 'proportion-bar'
7853
7853
  */
7854
7854
  "type"?: ChartType;
7855
7855
  }
@@ -12965,7 +12965,7 @@ declare module "@stencil/core" {
12965
12965
  * A chart is a graphical representation of data, in which
12966
12966
  * visual symbols such as such bars, dots, lines, or slices, represent
12967
12967
  * each data point, in comparison to others.
12968
- * @exampleComponent limel-example-chart-stacked-bar
12968
+ * @exampleComponent limel-example-chart-type-proportion-bar
12969
12969
  * @exampleComponent limel-example-chart-orientation
12970
12970
  * @exampleComponent limel-example-chart-max-value
12971
12971
  * @exampleComponent limel-example-chart-display-item-percentage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "40.20.1",
3
+ "version": "40.21.1",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -94,7 +94,7 @@
94
94
  "morphdom": "^2.7.8",
95
95
  "number-abbreviate": "^2.0.0",
96
96
  "parse-css-color": "^0.2.1",
97
- "postal-mime": "^4.1.4",
97
+ "postal-mime": "^4.2.0",
98
98
  "prettier": "^3.9.10",
99
99
  "prosemirror-example-setup": "^1.2.3",
100
100
  "prosemirror-markdown": "^1.13.9",