@limetech/lime-elements 37.5.0 → 37.7.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 (58) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/index.cjs.js +23 -8
  3. package/dist/cjs/index.cjs.js.map +1 -1
  4. package/dist/cjs/lime-elements.cjs.js +1 -1
  5. package/dist/cjs/limel-chip_2.cjs.entry.js +2 -1
  6. package/dist/cjs/limel-chip_2.cjs.entry.js.map +1 -1
  7. package/dist/cjs/limel-form.cjs.entry.js +1 -2
  8. package/dist/cjs/limel-form.cjs.entry.js.map +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/components/chip/chip.css +9 -0
  11. package/dist/collection/components/chip/chip.js +19 -0
  12. package/dist/collection/components/chip/chip.js.map +1 -1
  13. package/dist/collection/components/form/adapters/widget-adapter.js.map +1 -1
  14. package/dist/collection/components/form/form.js +14 -5
  15. package/dist/collection/components/form/form.js.map +1 -1
  16. package/dist/collection/components/form/form.types.js +1 -0
  17. package/dist/collection/components/form/form.types.js.map +1 -1
  18. package/dist/collection/components/form/help/help.js.map +1 -1
  19. package/dist/collection/components/form/templates/object-field.js +1 -2
  20. package/dist/collection/components/form/templates/object-field.js.map +1 -1
  21. package/dist/collection/components/form/templates/types.js.map +1 -1
  22. package/dist/collection/components/form/widgets/types.js.map +1 -1
  23. package/dist/esm/index.js +24 -2
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/lime-elements.js +1 -1
  26. package/dist/esm/limel-chip_2.entry.js +2 -1
  27. package/dist/esm/limel-chip_2.entry.js.map +1 -1
  28. package/dist/esm/limel-form.entry.js +1 -2
  29. package/dist/esm/limel-form.entry.js.map +1 -1
  30. package/dist/esm/loader.js +1 -1
  31. package/dist/lime-elements/index.esm.js +1 -1
  32. package/dist/lime-elements/index.esm.js.map +1 -1
  33. package/dist/lime-elements/lime-elements.esm.js +1 -1
  34. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  35. package/dist/lime-elements/{p-870d72f1.entry.js → p-64e352ec.entry.js} +5 -5
  36. package/dist/lime-elements/p-64e352ec.entry.js.map +1 -0
  37. package/dist/lime-elements/p-953ce801.entry.js +2 -0
  38. package/dist/lime-elements/p-953ce801.entry.js.map +1 -0
  39. package/dist/types/components/chip/chip.d.ts +4 -0
  40. package/dist/types/components/form/form.d.ts +3 -6
  41. package/dist/types/components/form/form.types.d.ts +37 -7
  42. package/dist/types/components/form/help/help.d.ts +2 -2
  43. package/dist/types/components/form/templates/types.d.ts +2 -2
  44. package/dist/types/components/form/widgets/types.d.ts +2 -2
  45. package/dist/types/components.d.ts +14 -12
  46. package/package.json +8 -8
  47. package/dist/cjs/form.types-e76a78e1.js +0 -26
  48. package/dist/cjs/form.types-e76a78e1.js.map +0 -1
  49. package/dist/collection/components/form/internal.types.js +0 -2
  50. package/dist/collection/components/form/internal.types.js.map +0 -1
  51. package/dist/esm/form.types-e39f98a4.js +0 -26
  52. package/dist/esm/form.types-e39f98a4.js.map +0 -1
  53. package/dist/lime-elements/p-067efbaf.js +0 -2
  54. package/dist/lime-elements/p-067efbaf.js.map +0 -1
  55. package/dist/lime-elements/p-870d72f1.entry.js.map +0 -1
  56. package/dist/lime-elements/p-d5557031.entry.js +0 -2
  57. package/dist/lime-elements/p-d5557031.entry.js.map +0 -1
  58. package/dist/types/components/form/internal.types.d.ts +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "37.5.0",
3
+ "version": "37.7.0",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -43,27 +43,27 @@
43
43
  "generate": "stencil generate"
44
44
  },
45
45
  "devDependencies": {
46
- "@commitlint/config-conventional": "^18.6.2",
47
- "@microsoft/api-extractor": "^7.40.6",
46
+ "@commitlint/config-conventional": "^19.0.3",
47
+ "@microsoft/api-extractor": "^7.41.1",
48
48
  "@popperjs/core": "^2.11.8",
49
49
  "@rjsf/core": "^2.4.2",
50
50
  "@rollup/plugin-node-resolve": "^13.3.0",
51
51
  "@stencil/core": "^3.4.1",
52
- "@stencil/sass": "^3.0.9",
52
+ "@stencil/sass": "^3.0.10",
53
53
  "@types/codemirror": "^5.60.2",
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.57",
57
+ "@types/react": "^18.2.60",
58
58
  "@types/react-dom": "^18.2.19",
59
59
  "@types/tabulator-tables": "^4.9.4",
60
- "@typescript-eslint/eslint-plugin": "^7.0.2",
61
- "@typescript-eslint/parser": "^7.0.2",
60
+ "@typescript-eslint/eslint-plugin": "^7.1.0",
61
+ "@typescript-eslint/parser": "^7.1.0",
62
62
  "awesome-debounce-promise": "^2.1.0",
63
63
  "codemirror": "^5.65.9",
64
64
  "cross-env": "^7.0.3",
65
65
  "dayjs": "^1.11.10",
66
- "eslint": "^8.56.0",
66
+ "eslint": "^8.57.0",
67
67
  "eslint-config-prettier": "^9.1.0",
68
68
  "eslint-plugin-ban": "^1.6.0",
69
69
  "eslint-plugin-prefer-arrow": "^1.2.3",
@@ -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"}