@limetech/lime-elements 36.0.0-next.9 → 36.0.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.
Files changed (113) hide show
  1. package/dist/cjs/{dateFormatter-05d80b12.js → dateFormatter-d7a8d40d.js} +1 -1
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-button.cjs.entry.js +1 -1
  4. package/dist/cjs/limel-chip-set.cjs.entry.js +19 -11
  5. package/dist/cjs/limel-code-editor.cjs.entry.js +1596 -2
  6. package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-date-picker.cjs.entry.js +3 -3
  8. package/dist/cjs/limel-dock-button.cjs.entry.js +32 -6
  9. package/dist/cjs/limel-dock.cjs.entry.js +4 -7
  10. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
  11. package/dist/cjs/limel-form.cjs.entry.js +1 -1
  12. package/dist/cjs/limel-input-field.cjs.entry.js +13 -6
  13. package/dist/cjs/limel-menu-list.cjs.entry.js +2 -3
  14. package/dist/cjs/limel-menu.cjs.entry.js +3 -14
  15. package/dist/cjs/limel-popover_4.cjs.entry.js +1 -1
  16. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
  17. package/dist/cjs/limel-select.cjs.entry.js +4 -5
  18. package/dist/cjs/limel-table.cjs.entry.js +17 -5
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/{moment-5cfac5cd.js → moment-d1e35cdc.js} +2 -2
  21. package/dist/collection/components/button/button.css +11 -7
  22. package/dist/collection/components/chip-set/chip-set.css +6 -2
  23. package/dist/collection/components/chip-set/chip-set.js +21 -13
  24. package/dist/collection/components/code-editor/code-editor.css +153 -1
  25. package/dist/collection/components/code-editor/code-editor.js +90 -2
  26. package/dist/collection/components/collapsible-section/collapsible-section.css +8 -7
  27. package/dist/collection/components/date-picker/date-picker.js +18 -1
  28. package/dist/collection/components/dock/dock-button/dock-button.css +15 -9
  29. package/dist/collection/components/dock/dock-button/dock-button.js +61 -24
  30. package/dist/collection/components/dock/dock.css +7 -3
  31. package/dist/collection/components/dock/dock.js +37 -7
  32. package/dist/collection/components/input-field/input-field.js +32 -7
  33. package/dist/collection/components/menu/menu.js +3 -14
  34. package/dist/collection/components/menu-list/menu-list.js +5 -25
  35. package/dist/collection/components/popover-surface/popover-surface.css +5 -4
  36. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +21 -8
  37. package/dist/collection/components/select/select.css +10 -11
  38. package/dist/collection/components/select/select.template.js +3 -4
  39. package/dist/collection/components/table/columns.js +1 -0
  40. package/dist/collection/components/table/layout.js +8 -0
  41. package/dist/collection/components/table/table.css +89 -61
  42. package/dist/collection/components/table/table.js +46 -15
  43. package/dist/collection/style/internal/codemirror-tooltip.scss +19 -0
  44. package/dist/collection/style/mixins.scss +11 -0
  45. package/dist/esm/{dateFormatter-2cad0292.js → dateFormatter-784c3334.js} +1 -1
  46. package/dist/esm/lime-elements.js +1 -1
  47. package/dist/esm/limel-button.entry.js +1 -1
  48. package/dist/esm/limel-chip-set.entry.js +19 -11
  49. package/dist/esm/limel-code-editor.entry.js +1596 -2
  50. package/dist/esm/limel-collapsible-section.entry.js +1 -1
  51. package/dist/esm/limel-date-picker.entry.js +3 -3
  52. package/dist/esm/limel-dock-button.entry.js +32 -6
  53. package/dist/esm/limel-dock.entry.js +4 -7
  54. package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
  55. package/dist/esm/limel-form.entry.js +1 -1
  56. package/dist/esm/limel-input-field.entry.js +13 -6
  57. package/dist/esm/limel-menu-list.entry.js +2 -3
  58. package/dist/esm/limel-menu.entry.js +3 -14
  59. package/dist/esm/limel-popover_4.entry.js +1 -1
  60. package/dist/esm/limel-progress-flow-item.entry.js +1 -1
  61. package/dist/esm/limel-select.entry.js +4 -5
  62. package/dist/esm/limel-table.entry.js +18 -6
  63. package/dist/esm/loader.js +1 -1
  64. package/dist/esm/{moment-367e51c5.js → moment-faa8a4a8.js} +2 -2
  65. package/dist/lime-elements/lime-elements.css +1 -1
  66. package/dist/lime-elements/lime-elements.esm.js +1 -1
  67. package/dist/lime-elements/{p-7e571ec6.entry.js → p-0ba0c38a.entry.js} +1 -1
  68. package/dist/lime-elements/p-104c89e8.entry.js +1 -0
  69. package/dist/lime-elements/p-1390fdcb.entry.js +126 -0
  70. package/dist/lime-elements/{p-1dfccbc5.entry.js → p-2fc4f4ff.entry.js} +1 -1
  71. package/dist/lime-elements/p-3cf4aae0.entry.js +1 -0
  72. package/dist/lime-elements/p-4dc07252.entry.js +82 -0
  73. package/dist/lime-elements/p-5ef52589.entry.js +1 -0
  74. package/dist/lime-elements/p-653faf47.entry.js +1 -0
  75. package/dist/lime-elements/{p-d76f896d.js → p-73df4d83.js} +1 -1
  76. package/dist/lime-elements/p-93f42a32.entry.js +1 -0
  77. package/dist/lime-elements/p-945afca2.js +3 -0
  78. package/dist/lime-elements/p-b0e54dc2.entry.js +1 -0
  79. package/dist/lime-elements/p-c15da26d.entry.js +1 -0
  80. package/dist/lime-elements/{p-af0ec482.entry.js → p-c544c05b.entry.js} +1 -1
  81. package/dist/lime-elements/p-c59cbd68.entry.js +1 -0
  82. package/dist/lime-elements/p-cb8db8c2.entry.js +37 -0
  83. package/dist/lime-elements/p-f41567a1.entry.js +1 -0
  84. package/dist/lime-elements/p-f5df4d4f.entry.js +1 -0
  85. package/dist/lime-elements/style/internal/codemirror-tooltip.scss +19 -0
  86. package/dist/lime-elements/style/mixins.scss +11 -0
  87. package/dist/types/components/chip-set/chip-set.d.ts +3 -2
  88. package/dist/types/components/code-editor/code-editor.d.ts +14 -0
  89. package/dist/types/components/date-picker/date-picker.d.ts +4 -0
  90. package/dist/types/components/dock/dock-button/dock-button.d.ts +21 -5
  91. package/dist/types/components/dock/dock.d.ts +11 -3
  92. package/dist/types/components/input-field/input-field.d.ts +6 -0
  93. package/dist/types/components/menu/menu.d.ts +1 -2
  94. package/dist/types/components/menu-list/menu-list.d.ts +2 -7
  95. package/dist/types/components/table/layout.d.ts +2 -0
  96. package/dist/types/components/table/table.d.ts +16 -1
  97. package/dist/types/components/table/table.types.d.ts +4 -0
  98. package/dist/types/components.d.ts +67 -15
  99. package/package.json +5 -4
  100. package/dist/lime-elements/p-1a2ffe75.entry.js +0 -82
  101. package/dist/lime-elements/p-1e59114e.entry.js +0 -1
  102. package/dist/lime-elements/p-3af5f9ad.js +0 -3
  103. package/dist/lime-elements/p-5ad60e14.entry.js +0 -126
  104. package/dist/lime-elements/p-64f068a8.entry.js +0 -1
  105. package/dist/lime-elements/p-6884b012.entry.js +0 -1
  106. package/dist/lime-elements/p-6966b5df.entry.js +0 -1
  107. package/dist/lime-elements/p-722d32e0.entry.js +0 -1
  108. package/dist/lime-elements/p-75152d89.entry.js +0 -1
  109. package/dist/lime-elements/p-7ee4b825.entry.js +0 -1
  110. package/dist/lime-elements/p-97d6c4a6.entry.js +0 -1
  111. package/dist/lime-elements/p-b95e80c9.entry.js +0 -1
  112. package/dist/lime-elements/p-bd098a11.entry.js +0 -1
  113. package/dist/lime-elements/p-d1ee4501.entry.js +0 -37
@@ -0,0 +1,19 @@
1
+ .CodeMirror-lint-tooltip.cm-s-lime {
2
+ position: fixed;
3
+ z-index: var(--tooltip-z-index, var(--dropdown-z-index, 130));
4
+ transition: opacity 0.4s ease 0s;
5
+ opacity: 0;
6
+
7
+ color: var(--mdc-theme-text-primary-on-background);
8
+ background-color: var(--mdc-theme-on-primary);
9
+
10
+ font-family: monospace;
11
+ font-size: 0.875rem; // 14px, like the default code editor's font size
12
+ white-space: pre-wrap;
13
+ // overflow: hidden; // Why `hidden`?
14
+
15
+ padding: 0.25rem 0.5rem;
16
+ border-radius: 0.5rem;
17
+ max-width: 40rem;
18
+ box-shadow: var(--shadow-depth-64);
19
+ }
@@ -1,5 +1,16 @@
1
1
  @use './functions';
2
2
 
3
+ @mixin visualize-keyboard-focus {
4
+ &:focus {
5
+ outline: none;
6
+ }
7
+
8
+ &:focus-visible {
9
+ outline: none;
10
+ box-shadow: var(--shadow-depth-8-focused);
11
+ }
12
+ }
13
+
3
14
  @mixin in($media) {
4
15
  @if $media == dark-mode {
5
16
  @media (prefers-color-scheme: dark) {
@@ -148,6 +148,7 @@ export declare class ChipSet {
148
148
  private destroyMDCChipSet;
149
149
  private renderChipSetLabel;
150
150
  private renderInputChips;
151
+ private renderLabel;
151
152
  private dropZoneTip;
152
153
  private isFull;
153
154
  private isInvalid;
@@ -174,14 +175,14 @@ export declare class ChipSet {
174
175
  private removeChip;
175
176
  private renderChip;
176
177
  private renderDefaultChip;
177
- private renderLabel;
178
+ private renderChipLabel;
178
179
  private renderHelperLine;
179
180
  private renderHelperText;
180
181
  private hasHelperText;
181
182
  private renderFilterChip;
182
183
  private renderInputChip;
183
184
  private catchInputChipClicks;
184
- private renderIcon;
185
+ private renderChipIcon;
185
186
  private renderLeadingIcon;
186
187
  private renderChipRemoveButton;
187
188
  private renderClearAllChipsButton;
@@ -3,12 +3,17 @@ import { ColorScheme, Language } from './code-editor.types';
3
3
  import 'codemirror/mode/javascript/javascript';
4
4
  import 'codemirror/addon/selection/active-line';
5
5
  import 'codemirror/addon/edit/matchbrackets';
6
+ import 'codemirror/addon/lint/lint';
7
+ import 'codemirror/addon/lint/json-lint';
8
+ import 'codemirror/addon/fold/foldgutter';
9
+ import 'codemirror/addon/fold/brace-fold';
6
10
  /**
7
11
  * Currently this component support syntax highlighting for `javascript`,
8
12
  `json` and `typescript` formats.
9
13
  *
10
14
  * @exampleComponent limel-example-code-editor
11
15
  * @exampleComponent limel-example-code-editor-readonly-with-line-numbers
16
+ * @exampleComponent limel-example-code-editor-fold-lint
12
17
  */
13
18
  export declare class CodeEditor {
14
19
  /**
@@ -27,6 +32,14 @@ export declare class CodeEditor {
27
32
  * Displays line numbers in the editor
28
33
  */
29
34
  lineNumbers: boolean;
35
+ /**
36
+ * Allows the user to fold code
37
+ */
38
+ fold: boolean;
39
+ /**
40
+ * Enables linting of JSON content
41
+ */
42
+ lint: boolean;
30
43
  /**
31
44
  * Select color scheme for the editor
32
45
  */
@@ -47,6 +60,7 @@ export declare class CodeEditor {
47
60
  connectedCallback(): void;
48
61
  disconnectedCallback(): void;
49
62
  componentDidRender(): void;
63
+ protected watchValue(newValue: string): void;
50
64
  private handleChangeDarkMode;
51
65
  private handleChange;
52
66
  private handleResize;
@@ -34,6 +34,10 @@ export declare class DatePicker {
34
34
  * Text to display next to the date picker
35
35
  */
36
36
  label: string;
37
+ /**
38
+ * The placeholder text shown inside the input field, when the field is focused and empty
39
+ */
40
+ placeholder: string;
37
41
  /**
38
42
  * Optional helper text to display below the input field when it has focus
39
43
  */
@@ -5,32 +5,48 @@ import { DockItem } from '../dock.types';
5
5
  */
6
6
  export declare class DockButton {
7
7
  /**
8
- * @inheritdoc
8
+ * Item that is placed in the dock.
9
9
  */
10
10
  item: DockItem;
11
11
  /**
12
- * @inheritdoc
12
+ * When the dock is expanded or collapsed, dock items
13
+ * show labels and tooltips as suitable for the layout.
13
14
  */
14
15
  expanded?: boolean;
15
16
  /**
16
- * @inheritdoc
17
+ * When dock is using mobile layout, dock items
18
+ * show labels and tooltips as suitable for the layout.
17
19
  */
18
20
  useMobileLayout?: boolean;
19
21
  /**
20
- * Fired when clicking on the flow item.
22
+ * Fired when a dock item has been selected from the dock.
23
+ */
24
+ itemSelected: EventEmitter<DockItem>;
25
+ /**
26
+ * Fired when a dock menu is opened.
27
+ */
28
+ menuOpen: EventEmitter<DockItem>;
29
+ /**
30
+ * Indicated whether the popover that renders a component is open.
21
31
  */
22
- private interact;
23
32
  private isOpen;
33
+ /**
34
+ * Fired when the popover is closed.
35
+ */
24
36
  close: EventEmitter<void>;
25
37
  private tooltipId;
38
+ private customComponentElement;
26
39
  constructor();
27
40
  render(): any;
41
+ protected openWatcher(): void;
28
42
  private renderPopover;
29
43
  private renderButton;
30
44
  private openPopover;
45
+ private setCustomComponentElement;
31
46
  private onPopoverClose;
32
47
  private handleClick;
33
48
  private renderIcon;
34
49
  private renderLabel;
35
50
  private renderTooltip;
51
+ private focusCustomComponentElement;
36
52
  }
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
1
2
  import { DockItem } from './dock.types';
2
3
  /**
3
4
  * @exampleComponent limel-example-dock-basic
@@ -50,9 +51,17 @@ export declare class Dock {
50
51
  */
51
52
  mobileBreakPoint?: number;
52
53
  /**
53
- * Fired when a Dock item has been selected from the dock.
54
+ * Fired when a dock item has been selected from the dock.
54
55
  */
55
- private itemSelected;
56
+ itemSelected: EventEmitter<DockItem>;
57
+ /**
58
+ * Fired when a dock menu is opened.
59
+ */
60
+ menuOpen: EventEmitter<DockItem>;
61
+ /**
62
+ * Fired when the popover is closed.
63
+ */
64
+ close: EventEmitter<void>;
56
65
  /**
57
66
  * Fired when a Dock is expanded or collapsed.
58
67
  */
@@ -68,7 +77,6 @@ export declare class Dock {
68
77
  render(): any;
69
78
  private renderSeparator;
70
79
  private renderDockItem;
71
- private handleDockItemClick;
72
80
  private handleResize;
73
81
  private renderExpandShrinkToggle;
74
82
  private toggleDockWidth;
@@ -1,6 +1,7 @@
1
1
  import { InputType } from './input-field.types';
2
2
  /**
3
3
  * @exampleComponent limel-example-input-field-text
4
+ * @exampleComponent limel-example-input-field-placeholder
4
5
  * @exampleComponent limel-example-input-field-text-multiple
5
6
  * @exampleComponent limel-example-input-field-number
6
7
  * @exampleComponent limel-example-input-field-autocomplete
@@ -39,6 +40,10 @@ export declare class InputField {
39
40
  * The input label.
40
41
  */
41
42
  label: string;
43
+ /**
44
+ * The placeholder text shown inside the input field, when the field is focused and empty.
45
+ */
46
+ placeholder: string;
42
47
  /**
43
48
  * Optional helper text to display below the input field when it has focus
44
49
  */
@@ -170,6 +175,7 @@ export declare class InputField {
170
175
  private renderCharacterCounter;
171
176
  private isInvalid;
172
177
  private getInputElement;
178
+ private renderLabel;
173
179
  private renderLeadingIcon;
174
180
  private renderTrailingLinkOrButton;
175
181
  private hasLink;
@@ -48,14 +48,13 @@ export declare class Menu {
48
48
  private list;
49
49
  private portalId;
50
50
  constructor();
51
- componentDidLoad(): void;
52
51
  protected openWatcher(): void;
53
52
  render(): any;
54
53
  componentDidRender(): void;
55
54
  private setTriggerAttributes;
56
55
  private onClose;
57
56
  private onTriggerClick;
58
- private onListChange;
57
+ private handleSelect;
59
58
  private getCssProperties;
60
59
  private setListElement;
61
60
  private focusMenuItem;
@@ -1,5 +1,4 @@
1
1
  import { IconSize, MenuItem, ListSeparator, MenuListType } from '@limetech/lime-elements';
2
- import { EventEmitter } from '../../stencil-public-runtime';
3
2
  /**
4
3
  * @private
5
4
  */
@@ -35,13 +34,9 @@ export declare class MenuList {
35
34
  private mdcList;
36
35
  private mdcMenu;
37
36
  /**
38
- * Fired when a new value has been selected from the list. Only fired if selectable is set to true
37
+ * Fired when a new value has been selected from the list.
39
38
  */
40
- private change;
41
- /**
42
- * Fired when an action has been selected from the action menu of a list item
43
- */
44
- protected select: EventEmitter<MenuItem | MenuItem[]>;
39
+ private select;
45
40
  connectedCallback(): void;
46
41
  disconnectedCallback(): void;
47
42
  componentDidLoad(): void;
@@ -0,0 +1,2 @@
1
+ export declare type Layout = 'default' | 'stretchLastColumn' | 'stretchColumns' | 'lowDensity';
2
+ export declare function mapLayout(layout: Layout): any;
@@ -1,16 +1,22 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  import { Column, TableParams, ColumnSorter, ColumnAggregate } from './table.types';
3
+ import { Layout } from './layout';
3
4
  /**
4
5
  * @exampleComponent limel-example-table
5
6
  * @exampleComponent limel-example-table-custom-components
6
7
  * @exampleComponent limel-example-table-header-menu
7
8
  * @exampleComponent limel-example-table-movable-columns
9
+ * @exampleComponent limel-example-table-sorting-disabled
8
10
  * @exampleComponent limel-example-table-local
9
11
  * @exampleComponent limel-example-table-remote
10
12
  * @exampleComponent limel-example-table-activate-row
11
13
  * @exampleComponent limel-example-table-selectable-rows
12
14
  * @exampleComponent limel-example-table-default-sorted
13
- * @exampleComponent limel-example-table-low-density
15
+ * @exampleComponent limel-example-table-layout-default
16
+ * @exampleComponent limel-example-table-layout-stretch-last-column
17
+ * @exampleComponent limel-example-table-layout-stretch-columns
18
+ * @exampleComponent limel-example-table-layout-low-density
19
+ * @exampleComponent limel-example-table-interactive-rows
14
20
  */
15
21
  export declare class Table {
16
22
  /**
@@ -28,6 +34,15 @@ export declare class Table {
28
34
  * is responsible to give the table new data when a `load` event occurs
29
35
  */
30
36
  mode: 'local' | 'remote';
37
+ /**
38
+ * Defines the layout of the table, based on how width of the columns are calculated.
39
+ *
40
+ * - `default`: makes columns as wide as their contents.
41
+ * - `stretchLastColumn`: makes columns as wide as their contents, stretch the last column to fill up the remaining table width.
42
+ * - `stretchColumns`: stretches all columns to fill the available width when possible.
43
+ * - `lowDensity`: makes columns as wide as their contents, and creates a low density and airy layout.
44
+ */
45
+ layout: Layout;
31
46
  /**
32
47
  * Number of rows per page
33
48
  */
@@ -27,6 +27,10 @@ export interface Column<T extends object = any> {
27
27
  * Sets the horizontal text alignment for the column
28
28
  */
29
29
  horizontalAlign?: 'left' | 'center' | 'right';
30
+ /**
31
+ * Defines whether end-user can sort a column
32
+ */
33
+ headerSort?: boolean;
30
34
  }
31
35
  export declare type TableFormatter = (value: any, data?: object) => string;
32
36
  /**
@@ -19,6 +19,7 @@ import { OpenDirection as OpenDirection1 } from "./components/menu/menu.types";
19
19
  import { FlowItem } from "./components/progress-flow/progress-flow.types";
20
20
  import { Tab } from "./components/tab-bar/tab.types";
21
21
  import { Column, ColumnAggregate, ColumnSorter, TableParams } from "./components/table/table.types";
22
+ import { Layout } from "./components/table/layout";
22
23
  export namespace Components {
23
24
  interface LimelBadge {
24
25
  /**
@@ -219,6 +220,10 @@ export namespace Components {
219
220
  * Select color scheme for the editor
220
221
  */
221
222
  "colorScheme": ColorScheme;
223
+ /**
224
+ * Allows the user to fold code
225
+ */
226
+ "fold": boolean;
222
227
  /**
223
228
  * The language of the code
224
229
  */
@@ -227,6 +232,10 @@ export namespace Components {
227
232
  * Displays line numbers in the editor
228
233
  */
229
234
  "lineNumbers": boolean;
235
+ /**
236
+ * Enables linting of JSON content
237
+ */
238
+ "lint": boolean;
230
239
  /**
231
240
  * Disables editing of the editor content
232
241
  */
@@ -325,6 +334,10 @@ export namespace Components {
325
334
  * Defines the localisation for translations and date formatting. Property `format` customizes the localized date format.
326
335
  */
327
336
  "language": Languages;
337
+ /**
338
+ * The placeholder text shown inside the input field, when the field is focused and empty
339
+ */
340
+ "placeholder": string;
328
341
  /**
329
342
  * Set to `true` to make the field read-only. Use `readonly` when the field is only there to present the data it holds, and will not become possible for the current user to edit.
330
343
  */
@@ -388,15 +401,15 @@ export namespace Components {
388
401
  }
389
402
  interface LimelDockButton {
390
403
  /**
391
- * @inheritdoc
404
+ * When the dock is expanded or collapsed, dock items show labels and tooltips as suitable for the layout.
392
405
  */
393
406
  "expanded"?: boolean;
394
407
  /**
395
- * @inheritdoc
408
+ * Item that is placed in the dock.
396
409
  */
397
410
  "item": DockItem;
398
411
  /**
399
- * @inheritdoc
412
+ * When dock is using mobile layout, dock items show labels and tooltips as suitable for the layout.
400
413
  */
401
414
  "useMobileLayout"?: boolean;
402
415
  }
@@ -604,6 +617,10 @@ export namespace Components {
604
617
  * Regular expression that the current value of the input field must match. No forward slashes should be specified around the pattern. Only used if type is `text`, `tel`, `email`, `url`, `urlAsText`, `password`, or `search`.
605
618
  */
606
619
  "pattern": string;
620
+ /**
621
+ * The placeholder text shown inside the input field, when the field is focused and empty.
622
+ */
623
+ "placeholder": string;
607
624
  /**
608
625
  * A short piece of text to display before the value inside the input field. Displayed for all types except `textarea`.
609
626
  */
@@ -1042,6 +1059,10 @@ export namespace Components {
1042
1059
  * A message to display when the table has no data
1043
1060
  */
1044
1061
  "emptyMessage": string;
1062
+ /**
1063
+ * Defines the layout of the table, based on how width of the columns are calculated. - `default`: makes columns as wide as their contents. - `stretchLastColumn`: makes columns as wide as their contents, stretch the last column to fill up the remaining table width. - `stretchColumns`: stretches all columns to fill the available width when possible. - `lowDensity`: makes columns as wide as their contents, and creates a low density and airy layout.
1064
+ */
1065
+ "layout": Layout;
1045
1066
  /**
1046
1067
  * Set to `true` to trigger loading animation
1047
1068
  */
@@ -1642,6 +1663,10 @@ declare namespace LocalJSX {
1642
1663
  * Select color scheme for the editor
1643
1664
  */
1644
1665
  "colorScheme"?: ColorScheme;
1666
+ /**
1667
+ * Allows the user to fold code
1668
+ */
1669
+ "fold"?: boolean;
1645
1670
  /**
1646
1671
  * The language of the code
1647
1672
  */
@@ -1650,6 +1675,10 @@ declare namespace LocalJSX {
1650
1675
  * Displays line numbers in the editor
1651
1676
  */
1652
1677
  "lineNumbers"?: boolean;
1678
+ /**
1679
+ * Enables linting of JSON content
1680
+ */
1681
+ "lint"?: boolean;
1653
1682
  /**
1654
1683
  * Emitted when the code has changed. Will only be emitted when the code area has lost focus
1655
1684
  */
@@ -1776,6 +1805,10 @@ declare namespace LocalJSX {
1776
1805
  * Emitted when the date picker value is changed.
1777
1806
  */
1778
1807
  "onChange"?: (event: CustomEvent<Date>) => void;
1808
+ /**
1809
+ * The placeholder text shown inside the input field, when the field is focused and empty
1810
+ */
1811
+ "placeholder"?: string;
1779
1812
  /**
1780
1813
  * Set to `true` to make the field read-only. Use `readonly` when the field is only there to present the data it holds, and will not become possible for the current user to edit.
1781
1814
  */
@@ -1844,31 +1877,46 @@ declare namespace LocalJSX {
1844
1877
  * Defines the breakpoint in pixles, at which the component will be rendered in a hoizontal layout. Default breakpoint is `700` pixels, which means when the screen size is smaller than `700px`, the component will automatically switch to a horizontal layout.
1845
1878
  */
1846
1879
  "mobileBreakPoint"?: number;
1880
+ /**
1881
+ * Fired when the popover is closed.
1882
+ */
1883
+ "onClose"?: (event: CustomEvent<void>) => void;
1847
1884
  /**
1848
1885
  * Fired when a Dock is expanded or collapsed.
1849
1886
  */
1850
1887
  "onDockExpanded"?: (event: CustomEvent<boolean>) => void;
1851
1888
  /**
1852
- * Fired when a Dock item has been selected from the dock.
1889
+ * Fired when a dock item has been selected from the dock.
1853
1890
  */
1854
1891
  "onItemSelected"?: (event: CustomEvent<DockItem>) => void;
1892
+ /**
1893
+ * Fired when a dock menu is opened.
1894
+ */
1895
+ "onMenuOpen"?: (event: CustomEvent<DockItem>) => void;
1855
1896
  }
1856
1897
  interface LimelDockButton {
1857
1898
  /**
1858
- * @inheritdoc
1899
+ * When the dock is expanded or collapsed, dock items show labels and tooltips as suitable for the layout.
1859
1900
  */
1860
1901
  "expanded"?: boolean;
1861
1902
  /**
1862
- * @inheritdoc
1903
+ * Item that is placed in the dock.
1863
1904
  */
1864
1905
  "item": DockItem;
1906
+ /**
1907
+ * Fired when the popover is closed.
1908
+ */
1865
1909
  "onClose"?: (event: CustomEvent<void>) => void;
1866
1910
  /**
1867
- * Fired when clicking on the flow item.
1911
+ * Fired when a dock item has been selected from the dock.
1868
1912
  */
1869
- "onInteract"?: (event: CustomEvent<DockItem>) => void;
1913
+ "onItemSelected"?: (event: CustomEvent<DockItem>) => void;
1914
+ /**
1915
+ * Fired when a dock menu is opened.
1916
+ */
1917
+ "onMenuOpen"?: (event: CustomEvent<DockItem>) => void;
1870
1918
  /**
1871
- * @inheritdoc
1919
+ * When dock is using mobile layout, dock items show labels and tooltips as suitable for the layout.
1872
1920
  */
1873
1921
  "useMobileLayout"?: boolean;
1874
1922
  }
@@ -2104,6 +2152,10 @@ declare namespace LocalJSX {
2104
2152
  * Regular expression that the current value of the input field must match. No forward slashes should be specified around the pattern. Only used if type is `text`, `tel`, `email`, `url`, `urlAsText`, `password`, or `search`.
2105
2153
  */
2106
2154
  "pattern"?: string;
2155
+ /**
2156
+ * The placeholder text shown inside the input field, when the field is focused and empty.
2157
+ */
2158
+ "placeholder"?: string;
2107
2159
  /**
2108
2160
  * A short piece of text to display before the value inside the input field. Displayed for all types except `textarea`.
2109
2161
  */
@@ -2233,13 +2285,9 @@ declare namespace LocalJSX {
2233
2285
  */
2234
2286
  "maxLinesSecondaryText"?: number;
2235
2287
  /**
2236
- * Fired when a new value has been selected from the list. Only fired if selectable is set to true
2237
- */
2238
- "onChange"?: (event: CustomEvent<MenuItem | MenuItem[]>) => void;
2239
- /**
2240
- * Fired when an action has been selected from the action menu of a list item
2288
+ * Fired when a new value has been selected from the list.
2241
2289
  */
2242
- "onSelect"?: (event: CustomEvent<MenuItem | MenuItem[]>) => void;
2290
+ "onSelect"?: (event: CustomEvent<MenuItem>) => void;
2243
2291
  /**
2244
2292
  * The type of the menu, omit to get a regular vertical menu. Available types are: `menu`: regular vertical menu.
2245
2293
  */
@@ -2618,6 +2666,10 @@ declare namespace LocalJSX {
2618
2666
  * A message to display when the table has no data
2619
2667
  */
2620
2668
  "emptyMessage"?: string;
2669
+ /**
2670
+ * Defines the layout of the table, based on how width of the columns are calculated. - `default`: makes columns as wide as their contents. - `stretchLastColumn`: makes columns as wide as their contents, stretch the last column to fill up the remaining table width. - `stretchColumns`: stretches all columns to fill the available width when possible. - `lowDensity`: makes columns as wide as their contents, and creates a low density and airy layout.
2671
+ */
2672
+ "layout"?: Layout;
2621
2673
  /**
2622
2674
  * Set to `true` to trigger loading animation
2623
2675
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "36.0.0-next.9",
3
+ "version": "36.0.0",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@commitlint/config-conventional": "^16.0.0",
44
- "@lundalogik/lime-icons8": "^2.9.0",
44
+ "@lundalogik/lime-icons8": "^2.11.0",
45
45
  "@popperjs/core": "^2.11.5",
46
46
  "@rjsf/core": "^2.4.2",
47
47
  "@stencil/core": "^2.15.1",
@@ -72,11 +72,12 @@
72
72
  "html-escaper": "^3.0.3",
73
73
  "jest": "^26.6.3",
74
74
  "jest-cli": "^28.0.2",
75
+ "jsonlint-mod": "^1.7.6",
75
76
  "jsx-dom": "^7.0.4",
76
- "kompendium": "^0.11.1",
77
+ "kompendium": "^0.11.3",
77
78
  "lodash-es": "^4.17.21",
78
79
  "material-components-web": "^13.0.0",
79
- "moment": "^2.29.3",
80
+ "moment": "^2.29.4",
80
81
  "number-abbreviate": "^2.0.0",
81
82
  "prettier": "^2.6.2",
82
83
  "puppeteer": "^13.7.0",