@limetech/lime-elements 37.6.0 → 37.7.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 (145) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/get-icon-props-50be7440.js.map +1 -1
  3. package/dist/cjs/index.cjs.js +23 -8
  4. package/dist/cjs/index.cjs.js.map +1 -1
  5. package/dist/cjs/limel-action-bar-item_2.cjs.entry.js.map +1 -1
  6. package/dist/cjs/limel-chip_2.cjs.entry.js +2 -3
  7. package/dist/cjs/limel-chip_2.cjs.entry.js.map +1 -1
  8. package/dist/cjs/limel-collapsible-section.cjs.entry.js.map +1 -1
  9. package/dist/cjs/limel-file-viewer.cjs.entry.js.map +1 -1
  10. package/dist/cjs/limel-form.cjs.entry.js +1 -2
  11. package/dist/cjs/limel-form.cjs.entry.js.map +1 -1
  12. package/dist/cjs/limel-header.cjs.entry.js.map +1 -1
  13. package/dist/cjs/limel-help-content.cjs.entry.js.map +1 -1
  14. package/dist/cjs/limel-help.cjs.entry.js.map +1 -1
  15. package/dist/cjs/limel-icon-button.cjs.entry.js.map +1 -1
  16. package/dist/cjs/limel-input-field_3.cjs.entry.js.map +1 -1
  17. package/dist/cjs/limel-picker.cjs.entry.js.map +1 -1
  18. package/dist/cjs/limel-progress-flow-item.cjs.entry.js.map +1 -1
  19. package/dist/cjs/limel-switch.cjs.entry.js.map +1 -1
  20. package/dist/collection/components/action-bar/action-bar-item/action-bar-item.js +1 -1
  21. package/dist/collection/components/action-bar/action-bar-item/action-bar-item.js.map +1 -1
  22. package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
  23. package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js.map +1 -1
  24. package/dist/collection/components/action-bar/action-bar.types.js.map +1 -1
  25. package/dist/collection/components/chip/chip.css +0 -8
  26. package/dist/collection/components/chip/chip.js +4 -5
  27. package/dist/collection/components/chip/chip.js.map +1 -1
  28. package/dist/collection/components/chip-set/chip-set.js.map +1 -1
  29. package/dist/collection/components/chip-set/chip.types.js.map +1 -1
  30. package/dist/collection/components/collapsible-section/collapsible-section.js +2 -2
  31. package/dist/collection/components/collapsible-section/collapsible-section.js.map +1 -1
  32. package/dist/collection/components/dialog/dialog.types.js.map +1 -1
  33. package/dist/collection/components/file/file.types.js.map +1 -1
  34. package/dist/collection/components/file-viewer/file-viewer.js.map +1 -1
  35. package/dist/collection/components/form/adapters/widget-adapter.js.map +1 -1
  36. package/dist/collection/components/form/form.js +14 -5
  37. package/dist/collection/components/form/form.js.map +1 -1
  38. package/dist/collection/components/form/form.types.js +1 -0
  39. package/dist/collection/components/form/form.types.js.map +1 -1
  40. package/dist/collection/components/form/help/help.js.map +1 -1
  41. package/dist/collection/components/form/templates/object-field.js +1 -2
  42. package/dist/collection/components/form/templates/object-field.js.map +1 -1
  43. package/dist/collection/components/form/templates/types.js.map +1 -1
  44. package/dist/collection/components/form/widgets/types.js.map +1 -1
  45. package/dist/collection/components/header/header.js +1 -1
  46. package/dist/collection/components/header/header.js.map +1 -1
  47. package/dist/collection/components/help/help-content.js +1 -1
  48. package/dist/collection/components/help/help-content.js.map +1 -1
  49. package/dist/collection/components/help/help.js +1 -1
  50. package/dist/collection/components/help/help.js.map +1 -1
  51. package/dist/collection/components/help/help.types.js.map +1 -1
  52. package/dist/collection/components/icon/get-icon-props.js.map +1 -1
  53. package/dist/collection/components/icon-button/icon-button.js +1 -1
  54. package/dist/collection/components/icon-button/icon-button.js.map +1 -1
  55. package/dist/collection/components/input-field/input-field.js.map +1 -1
  56. package/dist/collection/components/list/list-item.types.js.map +1 -1
  57. package/dist/collection/components/list/list-renderer.js.map +1 -1
  58. package/dist/collection/components/menu/menu.js +2 -2
  59. package/dist/collection/components/menu/menu.types.js.map +1 -1
  60. package/dist/collection/components/menu-list/menu-list.js +1 -1
  61. package/dist/collection/components/menu-list/menu-list.types.js.map +1 -1
  62. package/dist/collection/components/picker/picker.js.map +1 -1
  63. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js +1 -1
  64. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.js.map +1 -1
  65. package/dist/collection/components/select/option.types.js.map +1 -1
  66. package/dist/collection/components/split-button/split-button.js +1 -1
  67. package/dist/collection/components/switch/switch.js +1 -1
  68. package/dist/collection/components/switch/switch.js.map +1 -1
  69. package/dist/collection/global/shared-types/separator.types.js +2 -0
  70. package/dist/collection/global/shared-types/separator.types.js.map +1 -0
  71. package/dist/collection/interface.js +1 -2
  72. package/dist/collection/interface.js.map +1 -1
  73. package/dist/esm/get-icon-props-0b65f85e.js.map +1 -1
  74. package/dist/esm/index.js +24 -2
  75. package/dist/esm/index.js.map +1 -1
  76. package/dist/esm/limel-action-bar-item_2.entry.js.map +1 -1
  77. package/dist/esm/limel-chip_2.entry.js +2 -3
  78. package/dist/esm/limel-chip_2.entry.js.map +1 -1
  79. package/dist/esm/limel-collapsible-section.entry.js.map +1 -1
  80. package/dist/esm/limel-file-viewer.entry.js.map +1 -1
  81. package/dist/esm/limel-form.entry.js +1 -2
  82. package/dist/esm/limel-form.entry.js.map +1 -1
  83. package/dist/esm/limel-header.entry.js.map +1 -1
  84. package/dist/esm/limel-help-content.entry.js.map +1 -1
  85. package/dist/esm/limel-help.entry.js.map +1 -1
  86. package/dist/esm/limel-icon-button.entry.js.map +1 -1
  87. package/dist/esm/limel-input-field_3.entry.js.map +1 -1
  88. package/dist/esm/limel-picker.entry.js.map +1 -1
  89. package/dist/esm/limel-progress-flow-item.entry.js.map +1 -1
  90. package/dist/esm/limel-switch.entry.js.map +1 -1
  91. package/dist/lime-elements/index.esm.js +1 -1
  92. package/dist/lime-elements/index.esm.js.map +1 -1
  93. package/dist/lime-elements/lime-elements.esm.js +1 -1
  94. package/dist/lime-elements/p-1ca94bcf.entry.js.map +1 -1
  95. package/dist/lime-elements/p-27d64a5a.entry.js.map +1 -1
  96. package/dist/lime-elements/p-2f777fdb.js.map +1 -1
  97. package/dist/lime-elements/p-386d1c5a.entry.js.map +1 -1
  98. package/dist/lime-elements/{p-870d72f1.entry.js → p-64e352ec.entry.js} +5 -5
  99. package/dist/lime-elements/p-64e352ec.entry.js.map +1 -0
  100. package/dist/lime-elements/p-68cb9574.entry.js.map +1 -1
  101. package/dist/lime-elements/p-71282352.entry.js.map +1 -1
  102. package/dist/lime-elements/p-86550ce4.entry.js.map +1 -1
  103. package/dist/lime-elements/p-8d13a44f.entry.js.map +1 -1
  104. package/dist/lime-elements/p-b03c1b71.entry.js.map +1 -1
  105. package/dist/lime-elements/p-b9922526.entry.js.map +1 -1
  106. package/dist/lime-elements/p-c0543a74.entry.js.map +1 -1
  107. package/dist/lime-elements/p-dfa06174.entry.js.map +1 -1
  108. package/dist/lime-elements/p-fb54539a.entry.js +2 -0
  109. package/dist/lime-elements/p-fb54539a.entry.js.map +1 -0
  110. package/dist/types/components/action-bar/action-bar.types.d.ts +2 -3
  111. package/dist/types/components/chip/chip.d.ts +3 -1
  112. package/dist/types/components/chip-set/chip.types.d.ts +1 -1
  113. package/dist/types/components/dialog/dialog.types.d.ts +1 -1
  114. package/dist/types/components/file/file.types.d.ts +1 -1
  115. package/dist/types/components/form/form.d.ts +3 -6
  116. package/dist/types/components/form/form.types.d.ts +43 -7
  117. package/dist/types/components/form/help/help.d.ts +2 -2
  118. package/dist/types/components/form/templates/types.d.ts +2 -2
  119. package/dist/types/components/form/widgets/types.d.ts +2 -2
  120. package/dist/types/components/header/header.d.ts +1 -1
  121. package/dist/types/components/help/help-content.d.ts +1 -1
  122. package/dist/types/components/help/help.d.ts +2 -1
  123. package/dist/types/components/help/help.types.d.ts +7 -1
  124. package/dist/types/components/icon/get-icon-props.d.ts +1 -1
  125. package/dist/types/components/list/list-item.types.d.ts +2 -16
  126. package/dist/types/components/list/list-renderer.d.ts +2 -1
  127. package/dist/types/components/menu/menu.types.d.ts +1 -1
  128. package/dist/types/components/menu-list/menu-list.types.d.ts +1 -2
  129. package/dist/types/components/select/option.types.d.ts +1 -1
  130. package/dist/types/components.d.ts +16 -22
  131. package/dist/types/global/shared-types/separator.types.d.ts +18 -0
  132. package/dist/types/interface.d.ts +2 -3
  133. package/package.json +8 -8
  134. package/dist/cjs/form.types-e76a78e1.js +0 -26
  135. package/dist/cjs/form.types-e76a78e1.js.map +0 -1
  136. package/dist/collection/components/form/internal.types.js +0 -2
  137. package/dist/collection/components/form/internal.types.js.map +0 -1
  138. package/dist/esm/form.types-e39f98a4.js +0 -26
  139. package/dist/esm/form.types-e39f98a4.js.map +0 -1
  140. package/dist/lime-elements/p-067efbaf.js +0 -2
  141. package/dist/lime-elements/p-067efbaf.js.map +0 -1
  142. package/dist/lime-elements/p-870d72f1.entry.js.map +0 -1
  143. package/dist/lime-elements/p-953ce801.entry.js +0 -2
  144. package/dist/lime-elements/p-953ce801.entry.js.map +0 -1
  145. package/dist/types/components/form/internal.types.d.ts +0 -6
@@ -1,4 +1,4 @@
1
- import { Icon } from '../../interface';
1
+ import { Icon } from '../../global/shared-types/icon.types';
2
2
  /**
3
3
  * Get the icon name.
4
4
  * This helps in setting the right icon, both if the consumer only types `icon: string`,
@@ -1,5 +1,7 @@
1
+ import { ListSeparator } from '../../global/shared-types/separator.types';
1
2
  import { Icon } from '../../global/shared-types/icon.types';
2
3
  import { MenuItem } from '../menu/menu.types';
4
+ export { ListSeparator };
3
5
  /**
4
6
  * List item.
5
7
  * @public
@@ -52,22 +54,6 @@ export interface ListItem<T = any> {
52
54
  */
53
55
  primaryComponent?: ListComponent;
54
56
  }
55
- /**
56
- * Indicates that a separator should be rendered in the list.
57
- * @public
58
- */
59
- export interface ListSeparator {
60
- /**
61
- * Indicates that a separator should be rendered in the list.
62
- */
63
- separator: true;
64
- /**
65
- * Text to display in the separator.
66
- * This can be used as a label for the section of the list following the separator.
67
- * If not specified, the separator will be rendered without a label.
68
- */
69
- text?: string;
70
- }
71
57
  /**
72
58
  * Component used to render a list item.
73
59
  * @public
@@ -1,4 +1,5 @@
1
- import { ListItem, ListSeparator } from '../list/list-item.types';
1
+ import { ListItem } from './list-item.types';
2
+ import { ListSeparator } from '../../global/shared-types/separator.types';
2
3
  import { ListRendererConfig } from './list-renderer-config';
3
4
  export declare class ListRenderer {
4
5
  private defaultConfig;
@@ -1,5 +1,5 @@
1
+ import { ListSeparator } from '../../global/shared-types/separator.types';
1
2
  import { Icon } from '../../global/shared-types/icon.types';
2
- import { ListSeparator } from '../list/list-item.types';
3
3
  /**
4
4
  * The direction in which the menu should open.
5
5
  * - `left-start`: Menu opens to the left, aligned with the start of the trigger.
@@ -3,9 +3,8 @@
3
3
  * Available types are:
4
4
  * `menu`: regular vertical menu.
5
5
  *
6
- * @internal
7
6
  * @deprecated This type is no longer used.
8
- * @private
7
+ * @public
9
8
  */
10
9
  export type MenuListType = 'menu';
11
10
  //# sourceMappingURL=menu-list.types.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Icon } from '../../interface';
1
+ import { Icon } from '../../global/shared-types/icon.types';
2
2
  /**
3
3
  * Describes an option for limel-select.
4
4
  * @public
@@ -12,7 +12,8 @@ import { BreadcrumbsItem } from "./components/breadcrumbs/breadcrumbs.types";
12
12
  import { Button } from "./components/button/button.types";
13
13
  import { CalloutType } from "./components/callout/callout.types";
14
14
  import { DateType, Languages } from "./components/date-picker/date.types";
15
- import { Icon, Languages as Languages1, Link } from "./interface";
15
+ import { Icon } from "./global/shared-types/icon.types";
16
+ import { Link } from "./global/shared-types/link.types";
16
17
  import { Chip, ChipType } from "./components/chip-set/chip.types";
17
18
  import { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
18
19
  import { ColorScheme, Language } from "./components/code-editor/code-editor.types";
@@ -23,9 +24,8 @@ import { DockItem } from "./components/dock/dock.types";
23
24
  import { FileInfo } from "./components/file/file.types";
24
25
  import { OfficeViewer } from "./components/file-viewer/file-viewer.types";
25
26
  import { FlexContainerAlign, FlexContainerDirection, FlexContainerJustify } from "./components/flex-container/flex-container.types";
26
- import { FormError, ValidationError, ValidationStatus } from "./components/form/form.types";
27
+ import { FormError, FormSchema, ValidationError, ValidationStatus } from "./components/form/form.types";
27
28
  import { IconSize } from "./components/icon/icon.types";
28
- import { Link as Link1 } from "./global/shared-types/link.types";
29
29
  import { InfoTileProgress } from "./components/info-tile/info-tile.types";
30
30
  import { InputType } from "./components/input-field/input-field.types";
31
31
  import { ListType } from "./components/list/list.types";
@@ -45,7 +45,8 @@ export { BreadcrumbsItem } from "./components/breadcrumbs/breadcrumbs.types";
45
45
  export { Button } from "./components/button/button.types";
46
46
  export { CalloutType } from "./components/callout/callout.types";
47
47
  export { DateType, Languages } from "./components/date-picker/date.types";
48
- export { Icon, Languages as Languages1, Link } from "./interface";
48
+ export { Icon } from "./global/shared-types/icon.types";
49
+ export { Link } from "./global/shared-types/link.types";
49
50
  export { Chip, ChipType } from "./components/chip-set/chip.types";
50
51
  export { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
51
52
  export { ColorScheme, Language } from "./components/code-editor/code-editor.types";
@@ -56,9 +57,8 @@ export { DockItem } from "./components/dock/dock.types";
56
57
  export { FileInfo } from "./components/file/file.types";
57
58
  export { OfficeViewer } from "./components/file-viewer/file-viewer.types";
58
59
  export { FlexContainerAlign, FlexContainerDirection, FlexContainerJustify } from "./components/flex-container/flex-container.types";
59
- export { FormError, ValidationError, ValidationStatus } from "./components/form/form.types";
60
+ export { FormError, FormSchema, ValidationError, ValidationStatus } from "./components/form/form.types";
60
61
  export { IconSize } from "./components/icon/icon.types";
61
- export { Link as Link1 } from "./global/shared-types/link.types";
62
62
  export { InfoTileProgress } from "./components/info-tile/info-tile.types";
63
63
  export { InputType } from "./components/input-field/input-field.types";
64
64
  export { ListType } from "./components/list/list.types";
@@ -443,7 +443,7 @@ export namespace Components {
443
443
  /**
444
444
  * Defines the language for translations. Will translate the translatable strings on the components.
445
445
  */
446
- "language": Languages1;
446
+ "language": Languages;
447
447
  /**
448
448
  * If supplied, the chip will become a clickable link.
449
449
  */
@@ -1138,14 +1138,11 @@ export namespace Components {
1138
1138
  /**
1139
1139
  * Factory for creating properties for custom form components When using custom components in the form some properties might have to be set dynamically. If this factory is set, it will be called with the current schema for the field for each custom component in the form. The factory must return an object where each key is the name of the property that should be set, along with its value.
1140
1140
  */
1141
- "propsFactory"?: (schema: Record<string, any>) => Record<string, any>;
1141
+ "propsFactory"?: (schema: FormSchema) => Record<string, any>;
1142
1142
  /**
1143
1143
  * The schema used to render the form
1144
1144
  */
1145
- "schema": {
1146
- id?: string;
1147
- [key: string]: any;
1148
- };
1145
+ "schema": FormSchema;
1149
1146
  /**
1150
1147
  * Custom function to customize the default error messages
1151
1148
  */
@@ -1406,7 +1403,7 @@ export namespace Components {
1406
1403
  /**
1407
1404
  * If supplied, the info tile will be a clickable link. Supplying a value also adds an elevated effect using a shadow, as well as `cursor: pointer`, which appears on hover. While we strongly recommend supplying a link whenever the component should act as a link, if this is not possible, and you need to provide interaction through a click handler, you can still get the correct styling by supplying a `Link` object with the `href` property set to `'#'`.
1408
1405
  */
1409
- "link"?: Link1;
1406
+ "link"?: Link;
1410
1407
  /**
1411
1408
  * Set to `true` to put the component in the `loading` state. This does _not_ disable the link. To do so, the `disabled` property should be set to `true` as well.
1412
1409
  */
@@ -2040,7 +2037,7 @@ export namespace Components {
2040
2037
  /**
2041
2038
  * If supplied, the shortcut will be a clickable link.
2042
2039
  */
2043
- "link"?: Link1;
2040
+ "link"?: Link;
2044
2041
  }
2045
2042
  /**
2046
2043
  * @exampleComponent limel-example-slider-basic
@@ -4276,7 +4273,7 @@ declare namespace LocalJSX {
4276
4273
  /**
4277
4274
  * Defines the language for translations. Will translate the translatable strings on the components.
4278
4275
  */
4279
- "language"?: Languages1;
4276
+ "language"?: Languages;
4280
4277
  /**
4281
4278
  * If supplied, the chip will become a clickable link.
4282
4279
  */
@@ -5067,14 +5064,11 @@ declare namespace LocalJSX {
5067
5064
  /**
5068
5065
  * Factory for creating properties for custom form components When using custom components in the form some properties might have to be set dynamically. If this factory is set, it will be called with the current schema for the field for each custom component in the form. The factory must return an object where each key is the name of the property that should be set, along with its value.
5069
5066
  */
5070
- "propsFactory"?: (schema: Record<string, any>) => Record<string, any>;
5067
+ "propsFactory"?: (schema: FormSchema) => Record<string, any>;
5071
5068
  /**
5072
5069
  * The schema used to render the form
5073
5070
  */
5074
- "schema"?: {
5075
- id?: string;
5076
- [key: string]: any;
5077
- };
5071
+ "schema"?: FormSchema;
5078
5072
  /**
5079
5073
  * Custom function to customize the default error messages
5080
5074
  */
@@ -5335,7 +5329,7 @@ declare namespace LocalJSX {
5335
5329
  /**
5336
5330
  * If supplied, the info tile will be a clickable link. Supplying a value also adds an elevated effect using a shadow, as well as `cursor: pointer`, which appears on hover. While we strongly recommend supplying a link whenever the component should act as a link, if this is not possible, and you need to provide interaction through a click handler, you can still get the correct styling by supplying a `Link` object with the `href` property set to `'#'`.
5337
5331
  */
5338
- "link"?: Link1;
5332
+ "link"?: Link;
5339
5333
  /**
5340
5334
  * Set to `true` to put the component in the `loading` state. This does _not_ disable the link. To do so, the `disabled` property should be set to `true` as well.
5341
5335
  */
@@ -6025,7 +6019,7 @@ declare namespace LocalJSX {
6025
6019
  /**
6026
6020
  * If supplied, the shortcut will be a clickable link.
6027
6021
  */
6028
- "link"?: Link1;
6022
+ "link"?: Link;
6029
6023
  }
6030
6024
  /**
6031
6025
  * @exampleComponent limel-example-slider-basic
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Indicates that a separator should be rendered.
3
+ * Used in lists and menus to separate items into sections.
4
+ * @public
5
+ */
6
+ export interface ListSeparator {
7
+ /**
8
+ * Indicates that a separator should be rendered.
9
+ */
10
+ separator: true;
11
+ /**
12
+ * Text to display in the separator.
13
+ * This can be used as a label for the section following the separator.
14
+ * If not specified, the separator will be rendered without a label.
15
+ */
16
+ text?: string;
17
+ }
18
+ //# sourceMappingURL=separator.types.d.ts.map
@@ -16,7 +16,7 @@ export * from './components/help/help.types';
16
16
  export * from './components/icon/icon.types';
17
17
  export * from './components/info-tile/info-tile.types';
18
18
  export * from './components/input-field/input-field.types';
19
- export { ListComponent, ListSeparator, } from './components/list/list-item.types';
19
+ export { ListComponent } from './components/list/list-item.types';
20
20
  export * from './components/list/list.types';
21
21
  export * from './components/menu/menu.types';
22
22
  export * from './components/menu-list/menu-list.types';
@@ -27,6 +27,5 @@ export * from './components/select/option.types';
27
27
  export * from './components/spinner/spinner.types';
28
28
  export * from './components/tab-panel/tab-panel.types';
29
29
  export * from './components/table/table.types';
30
- export * from './global/shared-types/link.types';
31
- export * from './global/shared-types/icon.types';
30
+ export * from './global/shared-types/separator.types';
32
31
  //# sourceMappingURL=interface.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "37.6.0",
3
+ "version": "37.7.1",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -16,7 +16,7 @@
16
16
  "CHANGELOG.md"
17
17
  ],
18
18
  "scripts": {
19
- "api:update": "npm run build && ./api-update.sh",
19
+ "api:update": "npm run build && api-extractor run --local --verbose",
20
20
  "api:verify": "api-extractor run",
21
21
  "build": "cross-env-shell NODE_ENV=prod SASS_PATH=node_modules \"stencil build --config stencil.config.dist.ts\"",
22
22
  "dev": "cross-env-shell SASS_PATH=node_modules \"stencil build --dev --docs\"",
@@ -43,8 +43,8 @@
43
43
  "generate": "stencil generate"
44
44
  },
45
45
  "devDependencies": {
46
- "@commitlint/config-conventional": "^19.0.0",
47
- "@microsoft/api-extractor": "^7.41.0",
46
+ "@commitlint/config-conventional": "^19.0.3",
47
+ "@microsoft/api-extractor": "^7.42.3",
48
48
  "@popperjs/core": "^2.11.8",
49
49
  "@rjsf/core": "^2.4.2",
50
50
  "@rollup/plugin-node-resolve": "^13.3.0",
@@ -54,11 +54,11 @@
54
54
  "@types/html-escaper": "^3.0.2",
55
55
  "@types/jest": "^27.4.0",
56
56
  "@types/lodash-es": "^4.17.12",
57
- "@types/react": "^18.2.60",
57
+ "@types/react": "^18.2.62",
58
58
  "@types/react-dom": "^18.2.19",
59
59
  "@types/tabulator-tables": "^4.9.4",
60
- "@typescript-eslint/eslint-plugin": "^7.1.0",
61
- "@typescript-eslint/parser": "^7.1.0",
60
+ "@typescript-eslint/eslint-plugin": "^7.1.1",
61
+ "@typescript-eslint/parser": "^7.1.1",
62
62
  "awesome-debounce-promise": "^2.1.0",
63
63
  "codemirror": "^5.65.9",
64
64
  "cross-env": "^7.0.3",
@@ -68,7 +68,7 @@
68
68
  "eslint-plugin-ban": "^1.6.0",
69
69
  "eslint-plugin-prefer-arrow": "^1.2.3",
70
70
  "eslint-plugin-prettier": "^5.1.3",
71
- "eslint-plugin-react": "^7.33.2",
71
+ "eslint-plugin-react": "^7.34.0",
72
72
  "eslint-plugin-sonarjs": "^0.24.0",
73
73
  "eslint-plugin-tsdoc": "^0.2.17",
74
74
  "flatpickr": "^4.6.13",
@@ -1,26 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @public
5
- */
6
- exports.FormLayoutType = void 0;
7
- (function (FormLayoutType) {
8
- /**
9
- * The default layout
10
- */
11
- FormLayoutType["Default"] = "default";
12
- /**
13
- * Render the form fields using a responsive grid layout
14
- */
15
- FormLayoutType["Grid"] = "grid";
16
- /**
17
- * Render the form fields in full-width rows.
18
- * Each row can have a leading `icon`, and a field.
19
- * `title` and `description` provided by the schema will be placed
20
- * on the row itself, and not on the field.
21
- * This layout is good for creating UIs for user settings pages.
22
- */
23
- FormLayoutType["Row"] = "row";
24
- })(exports.FormLayoutType || (exports.FormLayoutType = {}));
25
-
26
- //# sourceMappingURL=form.types-e76a78e1.js.map
@@ -1 +0,0 @@
1
- {"file":"form.types-e76a78e1.js","mappings":";;AAqQA;;;AAGYA;AAAZ,WAAY,cAAc;;;;EAItB,qCAAmB,CAAA;;;;EAKnB,+BAAa,CAAA;;;;;;;;EASb,6BAAW,CAAA;AACf,CAAC,EAnBWA,sBAAc,KAAdA,sBAAc;;","names":["FormLayoutType"],"sources":["./src/components/form/form.types.ts"],"sourcesContent":["import { Help } from '../help/help.types';\nimport { EventEmitter } from '@stencil/core';\n\n/**\n * @public\n */\nexport interface ValidationStatus {\n /**\n * True if the form is valid, false otherwise\n *\n * If the form is invalid, any errors can be found on the `errors` property\n */\n valid: boolean;\n\n /**\n * List of validation errors\n */\n errors?: FormError[];\n}\n\n/**\n * @public\n */\nexport interface FormError {\n /**\n * Name of the error\n */\n name: string;\n\n /**\n * Params of the error\n */\n params?: unknown;\n\n /**\n * Name of the invalid property\n */\n property: string;\n\n /**\n * Path to the property within the schema\n */\n schemaPath: string;\n\n /**\n * String describing the error\n */\n message: string;\n}\n\n/**\n * @public\n */\nexport type ValidationError = {\n /**\n * Name of the field the error belongs to\n */\n [key: string]: string[] | ValidationError;\n};\n\n/**\n * @public\n */\nexport interface FormComponent<T = any> {\n /**\n * The value of the current property\n */\n value: T;\n\n /**\n * Whether or not the current property is required\n */\n required?: boolean;\n\n /**\n * Whether or not the current property is readonly\n */\n readonly?: boolean;\n\n /**\n * Whether or not the current property is disabled\n */\n disabled?: boolean;\n\n /**\n * The label of the current property\n */\n label?: string;\n\n /**\n * The helper text for the current property\n */\n helperText?: string;\n\n /**\n * Additional contextual information about the form\n */\n formInfo?: FormInfo;\n\n /**\n * The event to emit when the value of the current property has changed\n */\n change: EventEmitter<T>;\n}\n\n/**\n * @public\n */\nexport interface FormInfo {\n /**\n * The schema of the current property\n */\n schema?: object;\n\n /**\n * The schema of the whole form\n */\n rootSchema?: object;\n\n /**\n * A tree of errors for this property and its children\n */\n errorSchema?: object;\n\n /**\n * The value of the whole form\n */\n rootValue?: any;\n\n /**\n * The name of the current property\n */\n name?: string;\n\n /**\n * Path to the property within the schema\n */\n schemaPath?: string[];\n}\n\n/**\n * Lime elements specific options that can be specified under the `lime` key in\n * a schema, e.g.\n *\n * ```ts\n * const schema = {\n * type: 'object',\n * lime: {\n * collapsible: true,\n * },\n * };\n * ```\n *\n * @public\n */\nexport interface LimeSchemaOptions {\n /**\n * When specified on an object it will render all sub components inside a\n * collapsible section\n */\n collapsible?: boolean;\n\n /**\n * When `collapsible` is `true`, set this to `false` to make the\n * collapsible section load in the open state.\n * Defaults to `true`.\n */\n collapsed?: boolean;\n\n /**\n * Will render the field using the specified component. The component\n * should implement the `FormComponent` interface\n */\n component?: FormComponentOptions;\n\n /**\n * When specified on an object it will render the sub components with the\n * specified layout\n */\n layout?: FormLayoutOptions<any>;\n\n /**\n * Mark the field as disabled\n */\n disabled?: boolean;\n\n help?: string | Help;\n}\n\n/**\n * Options for a component to be rendered inside a form\n *\n * @public\n */\nexport interface FormComponentOptions {\n /**\n * Name of the component\n */\n name?: string;\n\n /**\n * Extra properties to give the component in addition to the properties\n * specified on the `FormComponent` interface\n */\n props?: Record<string, any>;\n}\n\n/**\n * @public\n */\nexport interface FormLayoutOptions<T = FormLayoutType.Default> {\n /**\n * The type of layout to use\n */\n type: T;\n}\n\n/**\n * @public\n */\nexport interface GridLayoutOptions\n extends FormLayoutOptions<FormLayoutType.Grid> {\n /**\n * When specified on a component within the grid, the component will take\n * up the the specified number of columns in the form\n */\n // eslint-disable-next-line no-magic-numbers\n colSpan?: 1 | 2 | 3 | 4 | 5 | 'all';\n\n /**\n * When specified on a component within the grid, the component will take\n * up the the specified number of rows in the form\n */\n rowSpan?: number;\n\n /**\n * Number of columns to use in the layout\n */\n // eslint-disable-next-line no-magic-numbers\n columns?: 1 | 2 | 3 | 4 | 5;\n\n /**\n * Attempts to fill in holes earlier in the grid, if smaller items come up\n * later. This may cause items to appear out-of-order, when doing so would\n * fill holes left by larger items. Defaults to `true`.\n */\n dense?: boolean;\n}\n\n/**\n * @public\n */\nexport interface RowLayoutOptions\n extends FormLayoutOptions<FormLayoutType.Row> {\n /**\n * When specified on a field, the chosen icon will be displayed\n * on the left side of the row, beside the title.\n */\n icon?: string;\n}\n\n/**\n * @public\n */\nexport enum FormLayoutType {\n /**\n * The default layout\n */\n Default = 'default',\n\n /**\n * Render the form fields using a responsive grid layout\n */\n Grid = 'grid',\n\n /**\n * Render the form fields in full-width rows.\n * Each row can have a leading `icon`, and a field.\n * `title` and `description` provided by the schema will be placed\n * on the row itself, and not on the field.\n * This layout is good for creating UIs for user settings pages.\n */\n Row = 'row',\n}\n"],"version":3}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=internal.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal.types.js","sourceRoot":"","sources":["../../../src/components/form/internal.types.ts"],"names":[],"mappings":"","sourcesContent":["import { JSONSchema7 } from 'json-schema';\nimport { LimeSchemaOptions } from './form.types';\n\nexport interface LimeJSONSchema extends JSONSchema7 {\n lime?: LimeSchemaOptions;\n}\n"]}
@@ -1,26 +0,0 @@
1
- /**
2
- * @public
3
- */
4
- var FormLayoutType;
5
- (function (FormLayoutType) {
6
- /**
7
- * The default layout
8
- */
9
- FormLayoutType["Default"] = "default";
10
- /**
11
- * Render the form fields using a responsive grid layout
12
- */
13
- FormLayoutType["Grid"] = "grid";
14
- /**
15
- * Render the form fields in full-width rows.
16
- * Each row can have a leading `icon`, and a field.
17
- * `title` and `description` provided by the schema will be placed
18
- * on the row itself, and not on the field.
19
- * This layout is good for creating UIs for user settings pages.
20
- */
21
- FormLayoutType["Row"] = "row";
22
- })(FormLayoutType || (FormLayoutType = {}));
23
-
24
- export { FormLayoutType as F };
25
-
26
- //# sourceMappingURL=form.types-e39f98a4.js.map
@@ -1 +0,0 @@
1
- {"file":"form.types-e39f98a4.js","mappings":"AAqQA;;;IAGY;AAAZ,WAAY,cAAc;;;;EAItB,qCAAmB,CAAA;;;;EAKnB,+BAAa,CAAA;;;;;;;;EASb,6BAAW,CAAA;AACf,CAAC,EAnBW,cAAc,KAAd,cAAc;;;;","names":[],"sources":["./src/components/form/form.types.ts"],"sourcesContent":["import { Help } from '../help/help.types';\nimport { EventEmitter } from '@stencil/core';\n\n/**\n * @public\n */\nexport interface ValidationStatus {\n /**\n * True if the form is valid, false otherwise\n *\n * If the form is invalid, any errors can be found on the `errors` property\n */\n valid: boolean;\n\n /**\n * List of validation errors\n */\n errors?: FormError[];\n}\n\n/**\n * @public\n */\nexport interface FormError {\n /**\n * Name of the error\n */\n name: string;\n\n /**\n * Params of the error\n */\n params?: unknown;\n\n /**\n * Name of the invalid property\n */\n property: string;\n\n /**\n * Path to the property within the schema\n */\n schemaPath: string;\n\n /**\n * String describing the error\n */\n message: string;\n}\n\n/**\n * @public\n */\nexport type ValidationError = {\n /**\n * Name of the field the error belongs to\n */\n [key: string]: string[] | ValidationError;\n};\n\n/**\n * @public\n */\nexport interface FormComponent<T = any> {\n /**\n * The value of the current property\n */\n value: T;\n\n /**\n * Whether or not the current property is required\n */\n required?: boolean;\n\n /**\n * Whether or not the current property is readonly\n */\n readonly?: boolean;\n\n /**\n * Whether or not the current property is disabled\n */\n disabled?: boolean;\n\n /**\n * The label of the current property\n */\n label?: string;\n\n /**\n * The helper text for the current property\n */\n helperText?: string;\n\n /**\n * Additional contextual information about the form\n */\n formInfo?: FormInfo;\n\n /**\n * The event to emit when the value of the current property has changed\n */\n change: EventEmitter<T>;\n}\n\n/**\n * @public\n */\nexport interface FormInfo {\n /**\n * The schema of the current property\n */\n schema?: object;\n\n /**\n * The schema of the whole form\n */\n rootSchema?: object;\n\n /**\n * A tree of errors for this property and its children\n */\n errorSchema?: object;\n\n /**\n * The value of the whole form\n */\n rootValue?: any;\n\n /**\n * The name of the current property\n */\n name?: string;\n\n /**\n * Path to the property within the schema\n */\n schemaPath?: string[];\n}\n\n/**\n * Lime elements specific options that can be specified under the `lime` key in\n * a schema, e.g.\n *\n * ```ts\n * const schema = {\n * type: 'object',\n * lime: {\n * collapsible: true,\n * },\n * };\n * ```\n *\n * @public\n */\nexport interface LimeSchemaOptions {\n /**\n * When specified on an object it will render all sub components inside a\n * collapsible section\n */\n collapsible?: boolean;\n\n /**\n * When `collapsible` is `true`, set this to `false` to make the\n * collapsible section load in the open state.\n * Defaults to `true`.\n */\n collapsed?: boolean;\n\n /**\n * Will render the field using the specified component. The component\n * should implement the `FormComponent` interface\n */\n component?: FormComponentOptions;\n\n /**\n * When specified on an object it will render the sub components with the\n * specified layout\n */\n layout?: FormLayoutOptions<any>;\n\n /**\n * Mark the field as disabled\n */\n disabled?: boolean;\n\n help?: string | Help;\n}\n\n/**\n * Options for a component to be rendered inside a form\n *\n * @public\n */\nexport interface FormComponentOptions {\n /**\n * Name of the component\n */\n name?: string;\n\n /**\n * Extra properties to give the component in addition to the properties\n * specified on the `FormComponent` interface\n */\n props?: Record<string, any>;\n}\n\n/**\n * @public\n */\nexport interface FormLayoutOptions<T = FormLayoutType.Default> {\n /**\n * The type of layout to use\n */\n type: T;\n}\n\n/**\n * @public\n */\nexport interface GridLayoutOptions\n extends FormLayoutOptions<FormLayoutType.Grid> {\n /**\n * When specified on a component within the grid, the component will take\n * up the the specified number of columns in the form\n */\n // eslint-disable-next-line no-magic-numbers\n colSpan?: 1 | 2 | 3 | 4 | 5 | 'all';\n\n /**\n * When specified on a component within the grid, the component will take\n * up the the specified number of rows in the form\n */\n rowSpan?: number;\n\n /**\n * Number of columns to use in the layout\n */\n // eslint-disable-next-line no-magic-numbers\n columns?: 1 | 2 | 3 | 4 | 5;\n\n /**\n * Attempts to fill in holes earlier in the grid, if smaller items come up\n * later. This may cause items to appear out-of-order, when doing so would\n * fill holes left by larger items. Defaults to `true`.\n */\n dense?: boolean;\n}\n\n/**\n * @public\n */\nexport interface RowLayoutOptions\n extends FormLayoutOptions<FormLayoutType.Row> {\n /**\n * When specified on a field, the chosen icon will be displayed\n * on the left side of the row, beside the title.\n */\n icon?: string;\n}\n\n/**\n * @public\n */\nexport enum FormLayoutType {\n /**\n * The default layout\n */\n Default = 'default',\n\n /**\n * Render the form fields using a responsive grid layout\n */\n Grid = 'grid',\n\n /**\n * Render the form fields in full-width rows.\n * Each row can have a leading `icon`, and a field.\n * `title` and `description` provided by the schema will be placed\n * on the row itself, and not on the field.\n * This layout is good for creating UIs for user settings pages.\n */\n Row = 'row',\n}\n"],"version":3}
@@ -1,2 +0,0 @@
1
- var r;(function(r){r["Default"]="default";r["Grid"]="grid";r["Row"]="row"})(r||(r={}));export{r as F};
2
- //# sourceMappingURL=p-067efbaf.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["FormLayoutType"],"sources":["./src/components/form/form.types.ts"],"sourcesContent":["import { Help } from '../help/help.types';\nimport { EventEmitter } from '@stencil/core';\n\n/**\n * @public\n */\nexport interface ValidationStatus {\n /**\n * True if the form is valid, false otherwise\n *\n * If the form is invalid, any errors can be found on the `errors` property\n */\n valid: boolean;\n\n /**\n * List of validation errors\n */\n errors?: FormError[];\n}\n\n/**\n * @public\n */\nexport interface FormError {\n /**\n * Name of the error\n */\n name: string;\n\n /**\n * Params of the error\n */\n params?: unknown;\n\n /**\n * Name of the invalid property\n */\n property: string;\n\n /**\n * Path to the property within the schema\n */\n schemaPath: string;\n\n /**\n * String describing the error\n */\n message: string;\n}\n\n/**\n * @public\n */\nexport type ValidationError = {\n /**\n * Name of the field the error belongs to\n */\n [key: string]: string[] | ValidationError;\n};\n\n/**\n * @public\n */\nexport interface FormComponent<T = any> {\n /**\n * The value of the current property\n */\n value: T;\n\n /**\n * Whether or not the current property is required\n */\n required?: boolean;\n\n /**\n * Whether or not the current property is readonly\n */\n readonly?: boolean;\n\n /**\n * Whether or not the current property is disabled\n */\n disabled?: boolean;\n\n /**\n * The label of the current property\n */\n label?: string;\n\n /**\n * The helper text for the current property\n */\n helperText?: string;\n\n /**\n * Additional contextual information about the form\n */\n formInfo?: FormInfo;\n\n /**\n * The event to emit when the value of the current property has changed\n */\n change: EventEmitter<T>;\n}\n\n/**\n * @public\n */\nexport interface FormInfo {\n /**\n * The schema of the current property\n */\n schema?: object;\n\n /**\n * The schema of the whole form\n */\n rootSchema?: object;\n\n /**\n * A tree of errors for this property and its children\n */\n errorSchema?: object;\n\n /**\n * The value of the whole form\n */\n rootValue?: any;\n\n /**\n * The name of the current property\n */\n name?: string;\n\n /**\n * Path to the property within the schema\n */\n schemaPath?: string[];\n}\n\n/**\n * Lime elements specific options that can be specified under the `lime` key in\n * a schema, e.g.\n *\n * ```ts\n * const schema = {\n * type: 'object',\n * lime: {\n * collapsible: true,\n * },\n * };\n * ```\n *\n * @public\n */\nexport interface LimeSchemaOptions {\n /**\n * When specified on an object it will render all sub components inside a\n * collapsible section\n */\n collapsible?: boolean;\n\n /**\n * When `collapsible` is `true`, set this to `false` to make the\n * collapsible section load in the open state.\n * Defaults to `true`.\n */\n collapsed?: boolean;\n\n /**\n * Will render the field using the specified component. The component\n * should implement the `FormComponent` interface\n */\n component?: FormComponentOptions;\n\n /**\n * When specified on an object it will render the sub components with the\n * specified layout\n */\n layout?: FormLayoutOptions<any>;\n\n /**\n * Mark the field as disabled\n */\n disabled?: boolean;\n\n help?: string | Help;\n}\n\n/**\n * Options for a component to be rendered inside a form\n *\n * @public\n */\nexport interface FormComponentOptions {\n /**\n * Name of the component\n */\n name?: string;\n\n /**\n * Extra properties to give the component in addition to the properties\n * specified on the `FormComponent` interface\n */\n props?: Record<string, any>;\n}\n\n/**\n * @public\n */\nexport interface FormLayoutOptions<T = FormLayoutType.Default> {\n /**\n * The type of layout to use\n */\n type: T;\n}\n\n/**\n * @public\n */\nexport interface GridLayoutOptions\n extends FormLayoutOptions<FormLayoutType.Grid> {\n /**\n * When specified on a component within the grid, the component will take\n * up the the specified number of columns in the form\n */\n // eslint-disable-next-line no-magic-numbers\n colSpan?: 1 | 2 | 3 | 4 | 5 | 'all';\n\n /**\n * When specified on a component within the grid, the component will take\n * up the the specified number of rows in the form\n */\n rowSpan?: number;\n\n /**\n * Number of columns to use in the layout\n */\n // eslint-disable-next-line no-magic-numbers\n columns?: 1 | 2 | 3 | 4 | 5;\n\n /**\n * Attempts to fill in holes earlier in the grid, if smaller items come up\n * later. This may cause items to appear out-of-order, when doing so would\n * fill holes left by larger items. Defaults to `true`.\n */\n dense?: boolean;\n}\n\n/**\n * @public\n */\nexport interface RowLayoutOptions\n extends FormLayoutOptions<FormLayoutType.Row> {\n /**\n * When specified on a field, the chosen icon will be displayed\n * on the left side of the row, beside the title.\n */\n icon?: string;\n}\n\n/**\n * @public\n */\nexport enum FormLayoutType {\n /**\n * The default layout\n */\n Default = 'default',\n\n /**\n * Render the form fields using a responsive grid layout\n */\n Grid = 'grid',\n\n /**\n * Render the form fields in full-width rows.\n * Each row can have a leading `icon`, and a field.\n * `title` and `description` provided by the schema will be placed\n * on the row itself, and not on the field.\n * This layout is good for creating UIs for user settings pages.\n */\n Row = 'row',\n}\n"],"mappings":"IAwQYA,GAAZ,SAAYA,GAIRA,EAAA,qBAKAA,EAAA,eASAA,EAAA,YACH,EAnBD,CAAYA,MAAc,Y"}