@limetech/lime-elements 36.3.0-next.9 → 36.3.1-next.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 (242) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-badge.cjs.entry.js +4 -6
  4. package/dist/cjs/limel-button-group.cjs.entry.js +21 -6
  5. package/dist/cjs/limel-button.cjs.entry.js +1 -1
  6. package/dist/cjs/limel-callout.cjs.entry.js +54 -0
  7. package/dist/cjs/limel-chip-set.cjs.entry.js +26 -7
  8. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  9. package/dist/cjs/limel-collapsible-section.cjs.entry.js +3 -12
  10. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
  12. package/dist/cjs/limel-date-picker.cjs.entry.js +47 -7
  13. package/dist/cjs/limel-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/limel-dock-button.cjs.entry.js +7 -2
  15. package/dist/cjs/limel-dock.cjs.entry.js +1 -1
  16. package/dist/cjs/limel-file.cjs.entry.js +1 -1
  17. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +99 -118
  18. package/dist/cjs/limel-form.cjs.entry.js +79 -1
  19. package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-info-tile.cjs.entry.js +4 -1
  21. package/dist/cjs/limel-input-field.cjs.entry.js +2 -2
  22. package/dist/cjs/limel-list_2.cjs.entry.js +1 -1
  23. package/dist/cjs/limel-menu-list.cjs.entry.js +7 -1
  24. package/dist/cjs/limel-menu.cjs.entry.js +10 -2
  25. package/dist/cjs/limel-portal.cjs.entry.js +3 -4
  26. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  27. package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
  28. package/dist/cjs/limel-slider.cjs.entry.js +5 -5
  29. package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
  30. package/dist/cjs/limel-spinner.cjs.entry.js +1 -1
  31. package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
  32. package/dist/cjs/limel-tab-bar.cjs.entry.js +1 -1
  33. package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
  34. package/dist/cjs/limel-table.cjs.entry.js +1 -1
  35. package/dist/cjs/loader.cjs.js +1 -1
  36. package/dist/cjs/{dateFormatter-d7a8d40d.js → sv-dffe48b5.js} +222 -173
  37. package/dist/cjs/{translations-ca7279bc.js → translations-f8080c48.js} +30 -0
  38. package/dist/collection/collection-manifest.json +1 -0
  39. package/dist/collection/components/badge/badge.css +34 -19
  40. package/dist/collection/components/badge/badge.js +7 -7
  41. package/dist/collection/components/banner/banner.css +1 -2
  42. package/dist/collection/components/button/button.css +31 -41
  43. package/dist/collection/components/button-group/button-group.css +44 -42
  44. package/dist/collection/components/button-group/button-group.js +25 -6
  45. package/dist/collection/components/callout/callout.css +77 -0
  46. package/dist/collection/components/callout/callout.helpers.js +27 -0
  47. package/dist/collection/components/callout/callout.js +139 -0
  48. package/dist/collection/components/callout/callout.types.js +1 -0
  49. package/dist/collection/components/checkbox/checkbox.css +22 -45
  50. package/dist/collection/components/chip-set/chip-set.css +242 -405
  51. package/dist/collection/components/chip-set/chip-set.js +19 -6
  52. package/dist/collection/components/circular-progress/circular-progress.css +8 -0
  53. package/dist/collection/components/code-editor/code-editor.css +11 -8
  54. package/dist/collection/components/collapsible-section/collapsible-section.css +87 -55
  55. package/dist/collection/components/collapsible-section/collapsible-section.js +2 -11
  56. package/dist/collection/components/color-picker/color-picker-palette.css +16 -14
  57. package/dist/collection/components/color-picker/color-picker.css +7 -5
  58. package/dist/collection/components/date-picker/date-picker.js +30 -5
  59. package/dist/collection/components/date-picker/dateFormatter.js +7 -3
  60. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +11 -1
  61. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +23 -8
  62. package/dist/collection/components/date-picker/pickers/Picker.js +11 -8
  63. package/dist/collection/components/dialog/dialog.css +14 -27
  64. package/dist/collection/components/dock/dock-button/dock-button.css +17 -2
  65. package/dist/collection/components/dock/dock-button/dock-button.js +6 -1
  66. package/dist/collection/components/dock/dock.css +19 -1
  67. package/dist/collection/components/dock/dock.js +1 -0
  68. package/dist/collection/components/file/file.js +1 -1
  69. package/dist/collection/components/form/form.css +122 -18
  70. package/dist/collection/components/form/form.js +1 -0
  71. package/dist/collection/components/form/form.types.js +8 -0
  72. package/dist/collection/components/form/row/row.js +47 -0
  73. package/dist/collection/components/form/templates/object-field.js +5 -0
  74. package/dist/collection/components/form/templates/row-layout.js +20 -0
  75. package/dist/collection/components/header/header.css +8 -0
  76. package/dist/collection/components/icon-button/icon-button.css +15 -12
  77. package/dist/collection/components/info-tile/info-tile.css +13 -17
  78. package/dist/collection/components/info-tile/info-tile.js +3 -0
  79. package/dist/collection/components/input-field/input-field.css +220 -386
  80. package/dist/collection/components/input-field/input-field.js +1 -1
  81. package/dist/collection/components/linear-progress/linear-progress.css +7 -14
  82. package/dist/collection/components/list/list.css +388 -751
  83. package/dist/collection/components/menu/menu.css +19 -1
  84. package/dist/collection/components/menu/menu.js +10 -1
  85. package/dist/collection/components/menu-list/menu-list-renderer.js +6 -1
  86. package/dist/collection/components/menu-list/menu-list.css +400 -752
  87. package/dist/collection/components/menu-surface/menu-surface.css +13 -26
  88. package/dist/collection/components/popover-surface/popover-surface.css +8 -0
  89. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +8 -0
  90. package/dist/collection/components/select/select.css +174 -323
  91. package/dist/collection/components/shortcut/shortcut.css +9 -7
  92. package/dist/collection/components/slider/slider.css +87 -98
  93. package/dist/collection/components/slider/slider.js +5 -5
  94. package/dist/collection/components/snackbar/snackbar.css +19 -34
  95. package/dist/collection/components/snackbar/snackbar.js +1 -1
  96. package/dist/collection/components/spinner/spinner.css +4 -0
  97. package/dist/collection/components/split-button/split-button.css +15 -4
  98. package/dist/collection/components/switch/switch.css +21 -49
  99. package/dist/collection/components/tab-bar/tab-bar.css +20 -19
  100. package/dist/collection/components/tab-panel/tab-panel.css +5 -0
  101. package/dist/collection/components/table/table.css +33 -0
  102. package/dist/collection/icons/idea.svg +593 -0
  103. package/dist/collection/icons/info.svg +593 -0
  104. package/dist/collection/style/internal/shared_input-select-picker.scss +20 -0
  105. package/dist/collection/style/internal/z-index.scss +0 -1
  106. package/dist/collection/style/mixins.scss +15 -4
  107. package/dist/collection/translations/da.js +5 -0
  108. package/dist/collection/translations/en.js +5 -0
  109. package/dist/collection/translations/fi.js +5 -0
  110. package/dist/collection/translations/nl.js +5 -0
  111. package/dist/collection/translations/no.js +5 -0
  112. package/dist/collection/translations/sv.js +5 -0
  113. package/dist/esm/{keycodes-9f971b46.js → keycodes-44c01beb.js} +1 -1
  114. package/dist/esm/lime-elements.js +1 -1
  115. package/dist/esm/limel-badge.entry.js +4 -6
  116. package/dist/esm/limel-button-group.entry.js +21 -6
  117. package/dist/esm/limel-button.entry.js +1 -1
  118. package/dist/esm/limel-callout.entry.js +50 -0
  119. package/dist/esm/limel-chip-set.entry.js +27 -8
  120. package/dist/esm/limel-code-editor.entry.js +1 -1
  121. package/dist/esm/limel-collapsible-section.entry.js +3 -12
  122. package/dist/esm/limel-color-picker-palette.entry.js +1 -1
  123. package/dist/esm/limel-color-picker.entry.js +1 -1
  124. package/dist/esm/limel-date-picker.entry.js +46 -6
  125. package/dist/esm/limel-dialog.entry.js +1 -1
  126. package/dist/esm/limel-dock-button.entry.js +7 -2
  127. package/dist/esm/limel-dock.entry.js +1 -1
  128. package/dist/esm/limel-file.entry.js +1 -1
  129. package/dist/esm/limel-flatpickr-adapter.entry.js +99 -118
  130. package/dist/esm/limel-form.entry.js +79 -1
  131. package/dist/esm/limel-icon-button.entry.js +1 -1
  132. package/dist/esm/limel-info-tile.entry.js +4 -1
  133. package/dist/esm/limel-input-field.entry.js +3 -3
  134. package/dist/esm/limel-list_2.entry.js +2 -2
  135. package/dist/esm/limel-menu-list.entry.js +7 -1
  136. package/dist/esm/limel-menu.entry.js +10 -2
  137. package/dist/esm/limel-picker.entry.js +1 -1
  138. package/dist/esm/limel-popover_4.entry.js +1 -1
  139. package/dist/esm/limel-portal.entry.js +3 -4
  140. package/dist/esm/limel-select.entry.js +2 -2
  141. package/dist/esm/limel-shortcut.entry.js +1 -1
  142. package/dist/esm/limel-slider.entry.js +6 -6
  143. package/dist/esm/limel-snackbar.entry.js +2 -2
  144. package/dist/esm/limel-spinner.entry.js +1 -1
  145. package/dist/esm/limel-split-button.entry.js +1 -1
  146. package/dist/esm/limel-tab-bar.entry.js +1 -1
  147. package/dist/esm/limel-tab-panel.entry.js +1 -1
  148. package/dist/esm/limel-table.entry.js +1 -1
  149. package/dist/esm/loader.js +1 -1
  150. package/dist/esm/{dateFormatter-784c3334.js → sv-336c4576.js} +222 -173
  151. package/dist/esm/{translations-0d0ee941.js → translations-f88bb584.js} +30 -0
  152. package/dist/lime-elements/lime-elements.esm.js +1 -1
  153. package/dist/lime-elements/{p-a8d38277.entry.js → p-10e259de.entry.js} +1 -1
  154. package/dist/lime-elements/{p-934456bc.entry.js → p-123f5fbb.entry.js} +1 -1
  155. package/dist/lime-elements/p-142910d8.entry.js +126 -0
  156. package/dist/lime-elements/{p-c234a991.entry.js → p-157e0417.entry.js} +2 -2
  157. package/dist/lime-elements/p-2f9918a3.entry.js +1 -0
  158. package/dist/lime-elements/p-2fd478df.entry.js +1 -0
  159. package/dist/lime-elements/p-3be2dfc7.entry.js +1 -0
  160. package/dist/lime-elements/{p-06f2f6b4.entry.js → p-3fda3473.entry.js} +1 -1
  161. package/dist/lime-elements/p-46a76d55.entry.js +1 -0
  162. package/dist/lime-elements/p-4a62273c.entry.js +1 -0
  163. package/dist/lime-elements/{p-73df4d83.js → p-4dd9a5a5.js} +5 -3
  164. package/dist/lime-elements/{p-d1187867.entry.js → p-4eeabc1f.entry.js} +1 -1
  165. package/dist/lime-elements/{p-2f2ea041.entry.js → p-4fcd3337.entry.js} +1 -1
  166. package/dist/lime-elements/{p-029360c8.entry.js → p-50dbd665.entry.js} +1 -1
  167. package/dist/lime-elements/{p-e5213a54.entry.js → p-55c8cb64.entry.js} +4 -4
  168. package/dist/lime-elements/{p-cad7cda1.entry.js → p-58e9df30.entry.js} +1 -1
  169. package/dist/lime-elements/p-73613abb.entry.js +82 -0
  170. package/dist/lime-elements/{p-6784c5c3.entry.js → p-7d7d19de.entry.js} +1 -1
  171. package/dist/lime-elements/{p-9ec08ebc.entry.js → p-8178b348.entry.js} +3 -3
  172. package/dist/lime-elements/{p-004aad18.entry.js → p-9336fd7f.entry.js} +1 -1
  173. package/dist/lime-elements/{p-a0c78744.entry.js → p-a88f2922.entry.js} +2 -2
  174. package/dist/lime-elements/p-b40f37d7.entry.js +1 -0
  175. package/dist/lime-elements/p-b59e4287.js +1 -0
  176. package/dist/lime-elements/{p-405207fa.entry.js → p-b80de0ea.entry.js} +1 -1
  177. package/dist/lime-elements/p-c47cb4c3.entry.js +1 -0
  178. package/dist/lime-elements/{p-b079fc71.entry.js → p-cc3529bb.entry.js} +1 -1
  179. package/dist/lime-elements/{p-93ad8b90.entry.js → p-d0084a70.entry.js} +1 -1
  180. package/dist/lime-elements/p-d16b27b9.entry.js +1 -0
  181. package/dist/lime-elements/{p-216ffe20.js → p-d7801e00.js} +1 -1
  182. package/dist/lime-elements/p-d87e2f26.entry.js +1 -0
  183. package/dist/lime-elements/p-d955c169.entry.js +59 -0
  184. package/dist/lime-elements/p-e69231c2.entry.js +16 -0
  185. package/dist/lime-elements/p-eda87f8c.entry.js +1 -0
  186. package/dist/lime-elements/{p-0bf916a0.entry.js → p-edbd8d62.entry.js} +1 -1
  187. package/dist/lime-elements/p-f11e7ce1.entry.js +1 -0
  188. package/dist/lime-elements/{p-5409b92f.entry.js → p-f979c0f2.entry.js} +1 -1
  189. package/dist/lime-elements/p-ff0e407a.entry.js +1 -0
  190. package/dist/lime-elements/style/internal/shared_input-select-picker.scss +20 -0
  191. package/dist/lime-elements/style/internal/z-index.scss +0 -1
  192. package/dist/lime-elements/style/mixins.scss +15 -4
  193. package/dist/scss/mixins.scss +186 -0
  194. package/dist/types/components/badge/badge.d.ts +4 -2
  195. package/dist/types/components/button/button.types.d.ts +4 -0
  196. package/dist/types/components/button-group/button-group.d.ts +4 -0
  197. package/dist/types/components/callout/callout.d.ts +52 -0
  198. package/dist/types/components/callout/callout.helpers.d.ts +2 -0
  199. package/dist/types/components/callout/callout.types.d.ts +11 -0
  200. package/dist/types/components/chip-set/chip-set.d.ts +3 -1
  201. package/dist/types/components/collapsible-section/collapsible-section.d.ts +0 -1
  202. package/dist/types/components/date-picker/date-picker.d.ts +10 -0
  203. package/dist/types/components/date-picker/date.types.d.ts +1 -1
  204. package/dist/types/components/date-picker/dateFormatter.d.ts +3 -2
  205. package/dist/types/components/date-picker/flatpickr-adapter/flatpickr-adapter.d.ts +1 -1
  206. package/dist/types/components/date-picker/pickers/Picker.d.ts +4 -2
  207. package/dist/types/components/dock/dock-button/dock-button.d.ts +1 -0
  208. package/dist/types/components/dock/dock.d.ts +1 -0
  209. package/dist/types/components/dock/dock.types.d.ts +4 -0
  210. package/dist/types/components/form/form.d.ts +1 -0
  211. package/dist/types/components/form/form.types.d.ts +16 -1
  212. package/dist/types/components/form/row/row.d.ts +16 -0
  213. package/dist/types/components/form/templates/row-layout.d.ts +11 -0
  214. package/dist/types/components/form/templates/types.d.ts +3 -0
  215. package/dist/types/components/menu/menu.d.ts +3 -0
  216. package/dist/types/components/menu/menu.types.d.ts +4 -0
  217. package/dist/types/components/menu-list/menu-list-renderer.d.ts +1 -0
  218. package/dist/types/components.d.ts +57 -1
  219. package/dist/types/interface.d.ts +1 -0
  220. package/dist/types/translations/da.d.ts +5 -0
  221. package/dist/types/translations/en.d.ts +5 -0
  222. package/dist/types/translations/fi.d.ts +5 -0
  223. package/dist/types/translations/nl.d.ts +5 -0
  224. package/dist/types/translations/no.d.ts +5 -0
  225. package/dist/types/translations/sv.d.ts +5 -0
  226. package/package.json +23 -20
  227. package/dist/lime-elements/p-15c3ec8e.entry.js +0 -1
  228. package/dist/lime-elements/p-246862ec.js +0 -1
  229. package/dist/lime-elements/p-52e18d94.entry.js +0 -1
  230. package/dist/lime-elements/p-5393213b.entry.js +0 -1
  231. package/dist/lime-elements/p-61b3352f.entry.js +0 -1
  232. package/dist/lime-elements/p-65a3be2c.entry.js +0 -1
  233. package/dist/lime-elements/p-90961075.entry.js +0 -1
  234. package/dist/lime-elements/p-91604294.entry.js +0 -1
  235. package/dist/lime-elements/p-95fd48d0.entry.js +0 -82
  236. package/dist/lime-elements/p-c4a89055.entry.js +0 -16
  237. package/dist/lime-elements/p-cc9f89a9.entry.js +0 -1
  238. package/dist/lime-elements/p-d379f4d6.entry.js +0 -59
  239. package/dist/lime-elements/p-d512656b.entry.js +0 -1
  240. package/dist/lime-elements/p-e6a11b73.entry.js +0 -1
  241. package/dist/lime-elements/p-f9958763.entry.js +0 -1
  242. package/dist/lime-elements/p-ff340a70.entry.js +0 -126
@@ -33,6 +33,7 @@ export declare class DatePickerCalendar {
33
33
  * Property `format` customizes the localized date format.
34
34
  */
35
35
  language: Languages;
36
+ formatter: (date: Date) => string;
36
37
  /**
37
38
  * Emitted when the date picker value is changed.
38
39
  */
@@ -44,7 +45,6 @@ export declare class DatePickerCalendar {
44
45
  componentDidUpdate(): void;
45
46
  private tryFixConfusingWidthBug;
46
47
  private createFlatpickr;
47
- private redrawFlatpickr;
48
48
  private destroyFlatpickr;
49
49
  disconnectedCallback(): void;
50
50
  render(): any;
@@ -1,12 +1,15 @@
1
1
  import flatpickr from 'flatpickr';
2
2
  import { EventEmitter } from '../../../stencil-public-runtime';
3
3
  import 'moment/locale/da';
4
+ import 'moment/locale/de';
4
5
  import 'moment/locale/fi';
6
+ import 'moment/locale/fr';
5
7
  import 'moment/locale/nb';
8
+ import 'moment/locale/nl';
6
9
  import 'moment/locale/sv';
7
10
  export declare abstract class Picker {
8
11
  protected change: EventEmitter<Date>;
9
- private dateFormatter;
12
+ formatDate: (date: Date) => string;
10
13
  protected dateFormat: string;
11
14
  protected language: string;
12
15
  protected flatpickr: flatpickr.Instance;
@@ -16,7 +19,6 @@ export declare abstract class Picker {
16
19
  redraw(): void;
17
20
  destroy(): void;
18
21
  abstract getConfig(useNativePicker: boolean): flatpickr.Options.Options;
19
- formatDate(date: Date): string;
20
22
  protected handleClose(selectedDates: any): Promise<any>;
21
23
  protected getFlatpickrLang(): string;
22
24
  protected getMomentLang(): string;
@@ -41,6 +41,7 @@ export declare class DockButton {
41
41
  protected openWatcher(): void;
42
42
  private renderPopover;
43
43
  private renderButton;
44
+ private renderNotification;
44
45
  private openPopover;
45
46
  private setCustomComponentElement;
46
47
  private onPopoverClose;
@@ -3,6 +3,7 @@ import { DockItem } from './dock.types';
3
3
  /**
4
4
  * @exampleComponent limel-example-dock-basic
5
5
  * @exampleComponent limel-example-dock-custom-component
6
+ * @exampleComponent limel-example-dock-notification
6
7
  * @exampleComponent limel-example-dock-mobile
7
8
  * @exampleComponent limel-example-dock-expanded
8
9
  * @exampleComponent limel-example-dock-colors-css
@@ -33,6 +33,10 @@ export interface DockItem {
33
33
  * Used to specify a custom component to render as a menu for the dock item.
34
34
  */
35
35
  dockMenu?: DockMenu;
36
+ /**
37
+ * If specified, will display a notification badge on the buttons in the dock.
38
+ */
39
+ badge?: number | string;
36
40
  }
37
41
  export interface DockMenu {
38
42
  /**
@@ -11,6 +11,7 @@ import { FormError, ValidationError, ValidationStatus } from './form.types';
11
11
  * @exampleComponent limel-example-form-span-fields
12
12
  * @exampleComponent limel-example-custom-error-message
13
13
  * @exampleComponent limel-example-server-errors
14
+ * @exampleComponent limel-example-form-row-layout
14
15
  */
15
16
  export declare class Form {
16
17
  /**
@@ -181,6 +181,13 @@ export interface GridLayoutOptions extends FormLayoutOptions<FormLayoutType.Grid
181
181
  */
182
182
  dense?: boolean;
183
183
  }
184
+ export interface RowLayoutOptions extends FormLayoutOptions<FormLayoutType.Row> {
185
+ /**
186
+ * When specified on a field, the chosen icon will be displayed
187
+ * on the left side of the row, beside the title.
188
+ */
189
+ icon?: string;
190
+ }
184
191
  export declare enum FormLayoutType {
185
192
  /**
186
193
  * The default layout
@@ -189,5 +196,13 @@ export declare enum FormLayoutType {
189
196
  /**
190
197
  * Render the form fields using a responsive grid layout
191
198
  */
192
- Grid = "grid"
199
+ Grid = "grid",
200
+ /**
201
+ * Render the form fields in full-width rows.
202
+ * Each row can have a leading `icon`, and a field.
203
+ * `title` and `description` provided by the schema will be placed
204
+ * on the row itself, and not on the field.
205
+ * This layout is good for creating UIs for user settings pages.
206
+ */
207
+ Row = "row"
193
208
  }
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { RowProps } from '../templates/types';
3
+ export declare class Row extends React.Component<RowProps> {
4
+ props: RowProps;
5
+ constructor(props: RowProps);
6
+ render(): React.DetailedReactHTMLElement<{
7
+ className: string;
8
+ }, HTMLElement>;
9
+ private renderIcon;
10
+ private renderMainInformation;
11
+ private renderTitle;
12
+ private renderDescription;
13
+ private renderChildren;
14
+ private get schema();
15
+ private get icon();
16
+ }
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { RowProps } from './types';
3
+ export declare class RowLayout extends React.Component<RowProps> {
4
+ props: RowProps;
5
+ private elementRef;
6
+ constructor(props: RowProps);
7
+ render(): React.DetailedReactHTMLElement<{
8
+ className: string;
9
+ ref: React.RefObject<HTMLElement>;
10
+ }, HTMLElement>;
11
+ }
@@ -10,3 +10,6 @@ export interface LimeObjectFieldTemplateProps extends ObjectFieldTemplateProps {
10
10
  export interface Runnable {
11
11
  run: (event: any) => void;
12
12
  }
13
+ export interface RowProps {
14
+ children?: any;
15
+ }
@@ -9,6 +9,7 @@ import { ListSeparator, MenuItem, OpenDirection } from '@limetech/lime-elements'
9
9
  * @exampleComponent limel-example-menu-grid
10
10
  * @exampleComponent limel-example-menu-hotkeys
11
11
  * @exampleComponent limel-example-menu-secondary-text
12
+ * @exampleComponent limel-example-menu-notification
12
13
  * @exampleComponent limel-example-menu-composite
13
14
  */
14
15
  export declare class Menu {
@@ -59,4 +60,6 @@ export declare class Menu {
59
60
  private setListElement;
60
61
  private focusMenuItem;
61
62
  private isMenuItem;
63
+ private renderNotificationBadge;
64
+ private hasNotificationBadge;
62
65
  }
@@ -28,6 +28,10 @@ export interface MenuItem<T = any> {
28
28
  * True if the menu item should be selected.
29
29
  */
30
30
  selected?: boolean;
31
+ /**
32
+ * If specified, will display a notification badge on the buttons in the dock.
33
+ */
34
+ badge?: number | string;
31
35
  /**
32
36
  * Value of the menu item.
33
37
  */
@@ -44,5 +44,6 @@ export declare class MenuListRenderer {
44
44
  * @returns {HTMLElement} the icon element
45
45
  */
46
46
  private renderIcon;
47
+ private renderNotification;
47
48
  private renderDivider;
48
49
  }
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Button } from "./components/button/button.types";
9
+ import { CalloutType } from "./components/callout/callout.types";
9
10
  import { Action as Action1, Chip, ClosingActions, DateType, DialogHeading, FileInfo, FlexContainerAlign, FlexContainerDirection, FlexContainerJustify, IconSize as IconSize1, Languages, Link, ListItem, ListSeparator, ListType, MenuItem, MenuListType, OpenDirection, Option, Searcher, SpinnerSize } from "@limetech/lime-elements";
10
11
  import { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
11
12
  import { ColorScheme, Language } from "./components/code-editor/code-editor.types";
@@ -26,7 +27,7 @@ export namespace Components {
26
27
  /**
27
28
  * Label to display in the badge. Numeric labels larger than 999 will be rounded and abbreviated. String labels get truncated if their length is longer than six characters.
28
29
  */
29
- "label": number | string;
30
+ "label"?: number | string;
30
31
  }
31
32
  interface LimelBanner {
32
33
  /**
@@ -86,6 +87,24 @@ export namespace Components {
86
87
  */
87
88
  "value": Button[];
88
89
  }
90
+ interface LimelCallout {
91
+ /**
92
+ * Heading of the callout, which can be used to override the default heading which is displayed based on the chosen `type`.
93
+ */
94
+ "heading"?: string;
95
+ /**
96
+ * Icon of the callout, which can be used to override the default icon which is displayed based on the chosen `type`.
97
+ */
98
+ "icon"?: string;
99
+ /**
100
+ * Defines the language for translations. Will translate the default headings for supported languages.
101
+ */
102
+ "language": Languages;
103
+ /**
104
+ * Defines how the component is visualized, for example which heading, color or icon is used in its user interface.
105
+ */
106
+ "type"?: CalloutType;
107
+ }
89
108
  interface LimelCheckbox {
90
109
  /**
91
110
  * The value of the checkbox. Set to `true` to make the checkbox checked.
@@ -323,6 +342,10 @@ export namespace Components {
323
342
  * Format to display the selected date in.
324
343
  */
325
344
  "format": string;
345
+ /**
346
+ * Custom formatting function. Will be used for date formatting. :::note overrides `format` and `language` :::
347
+ */
348
+ "formatter"?: (date: Date) => string;
326
349
  /**
327
350
  * Optional helper text to display below the input field when it has focus
328
351
  */
@@ -453,6 +476,7 @@ export namespace Components {
453
476
  * Format to display the selected date in.
454
477
  */
455
478
  "format": string;
479
+ "formatter": (date: Date) => string;
456
480
  /**
457
481
  * The native input element to use with flatpickr.
458
482
  */
@@ -1373,6 +1397,12 @@ declare global {
1373
1397
  prototype: HTMLLimelButtonGroupElement;
1374
1398
  new (): HTMLLimelButtonGroupElement;
1375
1399
  };
1400
+ interface HTMLLimelCalloutElement extends Components.LimelCallout, HTMLStencilElement {
1401
+ }
1402
+ var HTMLLimelCalloutElement: {
1403
+ prototype: HTMLLimelCalloutElement;
1404
+ new (): HTMLLimelCalloutElement;
1405
+ };
1376
1406
  interface HTMLLimelCheckboxElement extends Components.LimelCheckbox, HTMLStencilElement {
1377
1407
  }
1378
1408
  var HTMLLimelCheckboxElement: {
@@ -1648,6 +1678,7 @@ declare global {
1648
1678
  "limel-banner": HTMLLimelBannerElement;
1649
1679
  "limel-button": HTMLLimelButtonElement;
1650
1680
  "limel-button-group": HTMLLimelButtonGroupElement;
1681
+ "limel-callout": HTMLLimelCalloutElement;
1651
1682
  "limel-checkbox": HTMLLimelCheckboxElement;
1652
1683
  "limel-chip-set": HTMLLimelChipSetElement;
1653
1684
  "limel-circular-progress": HTMLLimelCircularProgressElement;
@@ -1756,6 +1787,24 @@ declare namespace LocalJSX {
1756
1787
  */
1757
1788
  "value"?: Button[];
1758
1789
  }
1790
+ interface LimelCallout {
1791
+ /**
1792
+ * Heading of the callout, which can be used to override the default heading which is displayed based on the chosen `type`.
1793
+ */
1794
+ "heading"?: string;
1795
+ /**
1796
+ * Icon of the callout, which can be used to override the default icon which is displayed based on the chosen `type`.
1797
+ */
1798
+ "icon"?: string;
1799
+ /**
1800
+ * Defines the language for translations. Will translate the default headings for supported languages.
1801
+ */
1802
+ "language"?: Languages;
1803
+ /**
1804
+ * Defines how the component is visualized, for example which heading, color or icon is used in its user interface.
1805
+ */
1806
+ "type"?: CalloutType;
1807
+ }
1759
1808
  interface LimelCheckbox {
1760
1809
  /**
1761
1810
  * The value of the checkbox. Set to `true` to make the checkbox checked.
@@ -2025,6 +2074,10 @@ declare namespace LocalJSX {
2025
2074
  * Format to display the selected date in.
2026
2075
  */
2027
2076
  "format"?: string;
2077
+ /**
2078
+ * Custom formatting function. Will be used for date formatting. :::note overrides `format` and `language` :::
2079
+ */
2080
+ "formatter"?: (date: Date) => string;
2028
2081
  /**
2029
2082
  * Optional helper text to display below the input field when it has focus
2030
2083
  */
@@ -2203,6 +2256,7 @@ declare namespace LocalJSX {
2203
2256
  * Format to display the selected date in.
2204
2257
  */
2205
2258
  "format"?: string;
2259
+ "formatter": (date: Date) => string;
2206
2260
  /**
2207
2261
  * The native input element to use with flatpickr.
2208
2262
  */
@@ -3102,6 +3156,7 @@ declare namespace LocalJSX {
3102
3156
  "limel-banner": LimelBanner;
3103
3157
  "limel-button": LimelButton;
3104
3158
  "limel-button-group": LimelButtonGroup;
3159
+ "limel-callout": LimelCallout;
3105
3160
  "limel-checkbox": LimelCheckbox;
3106
3161
  "limel-chip-set": LimelChipSet;
3107
3162
  "limel-circular-progress": LimelCircularProgress;
@@ -3157,6 +3212,7 @@ declare module "@stencil/core" {
3157
3212
  "limel-banner": LocalJSX.LimelBanner & JSXBase.HTMLAttributes<HTMLLimelBannerElement>;
3158
3213
  "limel-button": LocalJSX.LimelButton & JSXBase.HTMLAttributes<HTMLLimelButtonElement>;
3159
3214
  "limel-button-group": LocalJSX.LimelButtonGroup & JSXBase.HTMLAttributes<HTMLLimelButtonGroupElement>;
3215
+ "limel-callout": LocalJSX.LimelCallout & JSXBase.HTMLAttributes<HTMLLimelCalloutElement>;
3160
3216
  "limel-checkbox": LocalJSX.LimelCheckbox & JSXBase.HTMLAttributes<HTMLLimelCheckboxElement>;
3161
3217
  "limel-chip-set": LocalJSX.LimelChipSet & JSXBase.HTMLAttributes<HTMLLimelChipSetElement>;
3162
3218
  "limel-circular-progress": LocalJSX.LimelCircularProgress & JSXBase.HTMLAttributes<HTMLLimelCircularProgressElement>;
@@ -23,3 +23,4 @@ export * from './components/tab-panel/tab-panel.types';
23
23
  export * from './components/table/table.types';
24
24
  export * from './components/dock/dock.types';
25
25
  export * from './components/info-tile/info-tile.types';
26
+ export * from './components/callout/callout.types';
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "36.3.0-next.9",
3
+ "version": "36.3.1-next.1",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -40,47 +40,46 @@
40
40
  "generate": "stencil generate"
41
41
  },
42
42
  "devDependencies": {
43
- "@commitlint/config-conventional": "^17.4.0",
44
- "@popperjs/core": "^2.11.6",
43
+ "@commitlint/config-conventional": "^17.6.1",
44
+ "@popperjs/core": "^2.11.7",
45
45
  "@rjsf/core": "^2.4.2",
46
46
  "@stencil/core": "^2.19.2",
47
- "@stencil/sass": "^2.0.2",
47
+ "@stencil/sass": "^3.0.1",
48
48
  "@types/codemirror": "^5.60.2",
49
49
  "@types/html-escaper": "^3.0.0",
50
50
  "@types/jest": "^27.4.0",
51
- "@types/lodash-es": "^4.17.4",
51
+ "@types/lodash-es": "^4.17.7",
52
52
  "@types/puppeteer": "^7.0.4",
53
- "@types/react": "^18.0.26",
53
+ "@types/react": "^18.2.0",
54
54
  "@types/tabulator-tables": "^4.9.4",
55
- "@typescript-eslint/eslint-plugin": "^5.48.2",
56
- "@typescript-eslint/parser": "^5.48.2",
55
+ "@typescript-eslint/eslint-plugin": "^5.59.1",
56
+ "@typescript-eslint/parser": "^5.59.1",
57
57
  "ajv": "^6.12.6",
58
58
  "awesome-debounce-promise": "^2.1.0",
59
59
  "codemirror": "^5.65.9",
60
60
  "cross-env": "^7.0.3",
61
- "cz-conventional-changelog": "^3.3.0",
62
- "dayjs": "^1.11.6",
63
- "eslint": "^8.28.0",
64
- "eslint-config-prettier": "^8.5.0",
61
+ "dayjs": "^1.11.7",
62
+ "eslint": "^8.39.0",
63
+ "eslint-config-prettier": "^8.8.0",
65
64
  "eslint-plugin-ban": "^1.6.0",
66
- "eslint-plugin-jsdoc": "^39.6.4",
65
+ "eslint-plugin-jsdoc": "^41.1.2",
67
66
  "eslint-plugin-prefer-arrow": "^1.2.3",
68
67
  "eslint-plugin-prettier": "^4.2.1",
69
- "eslint-plugin-react": "^7.31.11",
70
- "eslint-plugin-sonarjs": "^0.16.0",
68
+ "eslint-plugin-react": "^7.32.2",
69
+ "eslint-plugin-sonarjs": "^0.19.0",
71
70
  "flatpickr": "^4.6.13",
72
71
  "html-escaper": "^3.0.3",
73
72
  "jest": "^26.6.3",
74
73
  "jest-cli": "^27.4.5",
75
74
  "jsonlint-mod": "^1.7.6",
76
- "jsx-dom": "^8.0.4",
75
+ "jsx-dom": "^8.0.5",
77
76
  "kompendium": "^0.12.2",
78
77
  "lodash-es": "^4.17.21",
79
78
  "material-components-web": "^13.0.0",
80
79
  "moment": "^2.29.4",
81
80
  "number-abbreviate": "^2.0.0",
82
- "prettier": "^2.8.3",
83
- "puppeteer": "^19.5.2",
81
+ "prettier": "^2.8.8",
82
+ "puppeteer": "^19.11.1",
84
83
  "react": "^18.2.0",
85
84
  "react-dom": "^18.2.0",
86
85
  "react-shadow-dom-retarget-events": "^1.1.0",
@@ -89,7 +88,7 @@
89
88
  "showdown": "2.1.0",
90
89
  "shx": "^0.3.3",
91
90
  "tabulator-tables": "^4.9.3",
92
- "typescript": "^4.9.4"
91
+ "typescript": "^4.9.5"
93
92
  },
94
93
  "keywords": [
95
94
  "lime elements",
@@ -104,5 +103,9 @@
104
103
  },
105
104
  "publishConfig": {
106
105
  "access": "public"
107
- }
106
+ },
107
+ "bugs": {
108
+ "url": "https://github.com/Lundalogik/lime-elements/issues"
109
+ },
110
+ "homepage": "https://github.com/Lundalogik/lime-elements#readme"
108
111
  }