@limetech/lime-elements 37.1.0-next.85 → 37.1.0-next.86
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/CHANGELOG.md +8 -0
- package/dist/cjs/limel-form.cjs.entry.js +20 -4
- package/dist/cjs/limel-form.cjs.entry.js.map +1 -1
- package/dist/collection/components/form/adapters/widget-adapter.js +3 -2
- package/dist/collection/components/form/adapters/widget-adapter.js.map +1 -1
- package/dist/collection/components/form/fields/schema-field.js +2 -1
- package/dist/collection/components/form/fields/schema-field.js.map +1 -1
- package/dist/collection/components/form/form.css +18 -0
- package/dist/collection/components/form/form.js +1 -0
- package/dist/collection/components/form/form.js.map +1 -1
- package/dist/collection/components/form/form.types.js.map +1 -1
- package/dist/collection/components/form/help/help.js +18 -0
- package/dist/collection/components/form/help/help.js.map +1 -0
- package/dist/collection/components/form/help/index.js +2 -0
- package/dist/collection/components/form/help/index.js.map +1 -0
- package/dist/esm/limel-form.entry.js +20 -4
- package/dist/esm/limel-form.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-551fdf0b.entry.js → p-261ceebe.entry.js} +2 -2
- package/dist/lime-elements/p-261ceebe.entry.js.map +1 -0
- package/dist/types/components/form/adapters/widget-adapter.d.ts +3 -6
- package/dist/types/components/form/form.d.ts +1 -0
- package/dist/types/components/form/form.types.d.ts +2 -0
- package/dist/types/components/form/help/help.d.ts +10 -0
- package/dist/types/components/form/help/index.d.ts +1 -0
- package/dist/types/components.d.ts +4 -0
- package/package.json +1 -1
- package/dist/lime-elements/p-551fdf0b.entry.js.map +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WidgetProps } from '../widgets/types';
|
|
3
|
-
import { LimeElementsAdapter } from './base-adapter';
|
|
4
3
|
interface WidgetAdapterProps {
|
|
5
4
|
name: string;
|
|
6
5
|
value?: any;
|
|
@@ -33,11 +32,9 @@ export declare class LimeElementsWidgetAdapter extends React.Component {
|
|
|
33
32
|
private isRequired;
|
|
34
33
|
private getHelperText;
|
|
35
34
|
private getValue;
|
|
36
|
-
render(): React.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
elementProps?: any;
|
|
40
|
-
}, LimeElementsAdapter>;
|
|
35
|
+
render(): React.FunctionComponentElement<{
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
}>;
|
|
41
38
|
private isDisabled;
|
|
42
39
|
private isReadOnly;
|
|
43
40
|
}
|
|
@@ -11,6 +11,7 @@ import { FormError, ValidationError, ValidationStatus } from '../../interface';
|
|
|
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-with-help
|
|
14
15
|
* @exampleComponent limel-example-form-row-layout
|
|
15
16
|
*/
|
|
16
17
|
export declare class Form {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Components } from '@limetech/lime-elements';
|
|
1
2
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
3
|
export interface ValidationStatus {
|
|
3
4
|
/**
|
|
@@ -138,6 +139,7 @@ export interface LimeSchemaOptions {
|
|
|
138
139
|
* Mark the field as disabled
|
|
139
140
|
*/
|
|
140
141
|
disabled?: boolean;
|
|
142
|
+
help?: string | Components.LimelHelp;
|
|
141
143
|
}
|
|
142
144
|
/**
|
|
143
145
|
* Options for a component to be rendered inside a form
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { LimeElementsAdapter } from '../adapters/base-adapter';
|
|
3
|
+
import { LimeJSONSchema } from '../internal.types';
|
|
4
|
+
export declare function getHelpComponent(schema: LimeJSONSchema): React.ReactElement<{
|
|
5
|
+
value: string;
|
|
6
|
+
}, string | React.JSXElementConstructor<any>> | React.CElement<{
|
|
7
|
+
name: string;
|
|
8
|
+
events?: any;
|
|
9
|
+
elementProps?: any;
|
|
10
|
+
}, LimeElementsAdapter>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './help';
|
|
@@ -937,6 +937,7 @@ export namespace Components {
|
|
|
937
937
|
* @exampleComponent limel-example-form-span-fields
|
|
938
938
|
* @exampleComponent limel-example-custom-error-message
|
|
939
939
|
* @exampleComponent limel-example-server-errors
|
|
940
|
+
* @exampleComponent limel-example-form-with-help
|
|
940
941
|
* @exampleComponent limel-example-form-row-layout
|
|
941
942
|
*/
|
|
942
943
|
interface LimelForm {
|
|
@@ -2855,6 +2856,7 @@ declare global {
|
|
|
2855
2856
|
* @exampleComponent limel-example-form-span-fields
|
|
2856
2857
|
* @exampleComponent limel-example-custom-error-message
|
|
2857
2858
|
* @exampleComponent limel-example-server-errors
|
|
2859
|
+
* @exampleComponent limel-example-form-with-help
|
|
2858
2860
|
* @exampleComponent limel-example-form-row-layout
|
|
2859
2861
|
*/
|
|
2860
2862
|
interface HTMLLimelFormElement extends Components.LimelForm, HTMLStencilElement {
|
|
@@ -4603,6 +4605,7 @@ declare namespace LocalJSX {
|
|
|
4603
4605
|
* @exampleComponent limel-example-form-span-fields
|
|
4604
4606
|
* @exampleComponent limel-example-custom-error-message
|
|
4605
4607
|
* @exampleComponent limel-example-server-errors
|
|
4608
|
+
* @exampleComponent limel-example-form-with-help
|
|
4606
4609
|
* @exampleComponent limel-example-form-row-layout
|
|
4607
4610
|
*/
|
|
4608
4611
|
interface LimelForm {
|
|
@@ -6432,6 +6435,7 @@ declare module "@stencil/core" {
|
|
|
6432
6435
|
* @exampleComponent limel-example-form-span-fields
|
|
6433
6436
|
* @exampleComponent limel-example-custom-error-message
|
|
6434
6437
|
* @exampleComponent limel-example-server-errors
|
|
6438
|
+
* @exampleComponent limel-example-form-with-help
|
|
6435
6439
|
* @exampleComponent limel-example-form-row-layout
|
|
6436
6440
|
*/
|
|
6437
6441
|
"limel-form": LocalJSX.LimelForm & JSXBase.HTMLAttributes<HTMLLimelFormElement>;
|