@limetech/lime-elements 36.3.0-next.15 → 36.3.0-next.16
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.
- package/dist/cjs/limel-form.cjs.entry.js +79 -1
- package/dist/collection/components/form/form.css +74 -0
- package/dist/collection/components/form/form.js +1 -0
- package/dist/collection/components/form/form.types.js +8 -0
- package/dist/collection/components/form/row/row.js +47 -0
- package/dist/collection/components/form/templates/object-field.js +5 -0
- package/dist/collection/components/form/templates/row-layout.js +20 -0
- package/dist/esm/limel-form.entry.js +79 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-9ec08ebc.entry.js → p-b6a99c02.entry.js} +1 -1
- package/dist/types/components/form/form.d.ts +1 -0
- package/dist/types/components/form/form.types.d.ts +16 -1
- package/dist/types/components/form/row/row.d.ts +16 -0
- package/dist/types/components/form/templates/row-layout.d.ts +11 -0
- package/dist/types/components/form/templates/types.d.ts +3 -0
- package/package.json +5 -5
|
@@ -11,6 +11,7 @@ import { FormError, ValidationError, ValidationStatus } from './form.types';
|
|
|
11
11
|
* @exampleComponent limel-example-form-span-fields
|
|
12
12
|
* @exampleComponent limel-example-custom-error-message
|
|
13
13
|
* @exampleComponent limel-example-server-errors
|
|
14
|
+
* @exampleComponent limel-example-form-row-layout
|
|
14
15
|
*/
|
|
15
16
|
export declare class Form {
|
|
16
17
|
/**
|
|
@@ -181,6 +181,13 @@ export interface GridLayoutOptions extends FormLayoutOptions<FormLayoutType.Grid
|
|
|
181
181
|
*/
|
|
182
182
|
dense?: boolean;
|
|
183
183
|
}
|
|
184
|
+
export interface RowLayoutOptions extends FormLayoutOptions<FormLayoutType.Row> {
|
|
185
|
+
/**
|
|
186
|
+
* When specified on a field, the chosen icon will be displayed
|
|
187
|
+
* on the left side of the row, beside the title.
|
|
188
|
+
*/
|
|
189
|
+
icon?: string;
|
|
190
|
+
}
|
|
184
191
|
export declare enum FormLayoutType {
|
|
185
192
|
/**
|
|
186
193
|
* The default layout
|
|
@@ -189,5 +196,13 @@ export declare enum FormLayoutType {
|
|
|
189
196
|
/**
|
|
190
197
|
* Render the form fields using a responsive grid layout
|
|
191
198
|
*/
|
|
192
|
-
Grid = "grid"
|
|
199
|
+
Grid = "grid",
|
|
200
|
+
/**
|
|
201
|
+
* Render the form fields in full-width rows.
|
|
202
|
+
* Each row can have a leading `icon`, and a field.
|
|
203
|
+
* `title` and `description` provided by the schema will be placed
|
|
204
|
+
* on the row itself, and not on the field.
|
|
205
|
+
* This layout is good for creating UIs for user settings pages.
|
|
206
|
+
*/
|
|
207
|
+
Row = "row"
|
|
193
208
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RowProps } from '../templates/types';
|
|
3
|
+
export declare class Row extends React.Component<RowProps> {
|
|
4
|
+
props: RowProps;
|
|
5
|
+
constructor(props: RowProps);
|
|
6
|
+
render(): React.DetailedReactHTMLElement<{
|
|
7
|
+
className: string;
|
|
8
|
+
}, HTMLElement>;
|
|
9
|
+
private renderIcon;
|
|
10
|
+
private renderMainInformation;
|
|
11
|
+
private renderTitle;
|
|
12
|
+
private renderDescription;
|
|
13
|
+
private renderChildren;
|
|
14
|
+
private get schema();
|
|
15
|
+
private get icon();
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RowProps } from './types';
|
|
3
|
+
export declare class RowLayout extends React.Component<RowProps> {
|
|
4
|
+
props: RowProps;
|
|
5
|
+
private elementRef;
|
|
6
|
+
constructor(props: RowProps);
|
|
7
|
+
render(): React.DetailedReactHTMLElement<{
|
|
8
|
+
className: string;
|
|
9
|
+
ref: React.RefObject<HTMLElement>;
|
|
10
|
+
}, HTMLElement>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "36.3.0-next.
|
|
3
|
+
"version": "36.3.0-next.16",
|
|
4
4
|
"description": "Lime Elements",
|
|
5
5
|
"author": "Lime Technologies",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"generate": "stencil generate"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@commitlint/config-conventional": "^17.4.
|
|
43
|
+
"@commitlint/config-conventional": "^17.4.2",
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"@rjsf/core": "^2.4.2",
|
|
46
46
|
"@stencil/core": "^2.19.2",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@types/puppeteer": "^7.0.4",
|
|
53
53
|
"@types/react": "^18.0.27",
|
|
54
54
|
"@types/tabulator-tables": "^4.9.4",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^5.51.0",
|
|
56
56
|
"@typescript-eslint/parser": "^5.48.2",
|
|
57
57
|
"ajv": "^6.12.6",
|
|
58
58
|
"awesome-debounce-promise": "^2.1.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
68
68
|
"eslint-plugin-prettier": "^4.2.1",
|
|
69
69
|
"eslint-plugin-react": "^7.32.2",
|
|
70
|
-
"eslint-plugin-sonarjs": "^0.
|
|
70
|
+
"eslint-plugin-sonarjs": "^0.18.0",
|
|
71
71
|
"flatpickr": "^4.6.13",
|
|
72
72
|
"html-escaper": "^3.0.3",
|
|
73
73
|
"jest": "^26.6.3",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"moment": "^2.29.4",
|
|
81
81
|
"number-abbreviate": "^2.0.0",
|
|
82
82
|
"prettier": "^2.8.3",
|
|
83
|
-
"puppeteer": "^19.6.
|
|
83
|
+
"puppeteer": "^19.6.3",
|
|
84
84
|
"react": "^18.2.0",
|
|
85
85
|
"react-dom": "^18.2.0",
|
|
86
86
|
"react-shadow-dom-retarget-events": "^1.1.0",
|