@limetech/lime-elements 40.17.1 → 40.18.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.
@@ -19,6 +19,7 @@ export declare class SchemaField extends React.Component<FieldProps> {
19
19
  constructor(props: any);
20
20
  private isInvalid;
21
21
  private getHelperText;
22
+ private hasHeaderFromForm;
22
23
  private handleCustomComponentChange;
23
24
  private handleChange;
24
25
  /**
@@ -7,6 +7,7 @@ import { HeadingLevel } from '../../global/shared-types/heading-level.types';
7
7
  * @exampleComponent limel-example-list-form
8
8
  * @exampleComponent limel-example-dynamic-form
9
9
  * @exampleComponent limel-example-custom-component-form
10
+ * @exampleComponent limel-example-custom-component-header-form
10
11
  * @exampleComponent limel-example-props-factory-form
11
12
  * @exampleComponent limel-example-form-layout
12
13
  * @exampleComponent limel-example-form-span-fields
@@ -109,6 +110,7 @@ export declare class Form {
109
110
  render(): any;
110
111
  private reactRender;
111
112
  private showHighlightedField;
113
+ private get rootElement();
112
114
  private handleChange;
113
115
  private validateFormData;
114
116
  /**
@@ -26,6 +26,10 @@ export declare const integerSchema: FormSchema;
26
26
  export declare const serverErrorsSchema: FormSchema;
27
27
  export declare const transformErrorsSchema: FormSchema;
28
28
  export declare const customComponentSchema: FormSchema;
29
+ export declare const customComponentWithHeaderSchema: FormSchema;
30
+ export declare const requiredCustomComponentWithHeaderSchema: FormSchema;
31
+ export declare const customComponentWithHelpSchema: FormSchema;
32
+ export declare const rowLayoutWithCustomComponentHeaderSchema: FormSchema;
29
33
  export declare const undefinedComponentSchema: FormSchema;
30
34
  export declare const emptySchema: FormSchema;
31
35
  export declare const hiddenFieldSchema: FormSchema;
@@ -104,7 +104,8 @@ export interface FormComponent<T = any> {
104
104
  */
105
105
  label?: string;
106
106
  /**
107
- * The helper text for the current property
107
+ * The helper text for the current property. While the property has a
108
+ * validation error to show, this is the error.
108
109
  */
109
110
  helperText?: string;
110
111
  /**
@@ -224,6 +225,21 @@ export interface FormComponentOptions {
224
225
  * specified on the `FormComponent` interface
225
226
  */
226
227
  props?: Record<string, any>;
228
+ /**
229
+ * Let the form draw the title, the description and the help of the field
230
+ * above the component, as a heading that fits how deep the field is.
231
+ *
232
+ * The component still gets `label` and `helperText`, so a component that
233
+ * draws its own title or description should read this option in
234
+ * `formInfo.schema` and leave them out. It should still show `helperText`
235
+ * while `invalid` is `true`, because that is where the form puts a
236
+ * validation error.
237
+ *
238
+ * A row layout draws its own header, so the option has no effect there.
239
+ *
240
+ * Defaults to `false`.
241
+ */
242
+ showHeader?: boolean;
227
243
  }
228
244
  /**
229
245
  * @public
@@ -6,4 +6,10 @@
6
6
  * @param path - the path of the field in the value of the form
7
7
  */
8
8
  export declare function showField(root: HTMLElement, path: Array<string | number>): Promise<void>;
9
+ /**
10
+ * Stop keeping the field that was shown last in view.
11
+ *
12
+ * @param root - the element the form is rendered in
13
+ */
14
+ export declare function stopShowingField(root: HTMLElement | null): void;
9
15
  //# sourceMappingURL=show-field.d.ts.map
@@ -1899,6 +1899,7 @@ export namespace Components {
1899
1899
  * @exampleComponent limel-example-list-form
1900
1900
  * @exampleComponent limel-example-dynamic-form
1901
1901
  * @exampleComponent limel-example-custom-component-form
1902
+ * @exampleComponent limel-example-custom-component-header-form
1902
1903
  * @exampleComponent limel-example-props-factory-form
1903
1904
  * @exampleComponent limel-example-form-layout
1904
1905
  * @exampleComponent limel-example-form-span-fields
@@ -5747,6 +5748,7 @@ declare global {
5747
5748
  * @exampleComponent limel-example-list-form
5748
5749
  * @exampleComponent limel-example-dynamic-form
5749
5750
  * @exampleComponent limel-example-custom-component-form
5751
+ * @exampleComponent limel-example-custom-component-header-form
5750
5752
  * @exampleComponent limel-example-props-factory-form
5751
5753
  * @exampleComponent limel-example-form-layout
5752
5754
  * @exampleComponent limel-example-form-span-fields
@@ -9234,6 +9236,7 @@ declare namespace LocalJSX {
9234
9236
  * @exampleComponent limel-example-list-form
9235
9237
  * @exampleComponent limel-example-dynamic-form
9236
9238
  * @exampleComponent limel-example-custom-component-form
9239
+ * @exampleComponent limel-example-custom-component-header-form
9237
9240
  * @exampleComponent limel-example-props-factory-form
9238
9241
  * @exampleComponent limel-example-form-layout
9239
9242
  * @exampleComponent limel-example-form-span-fields
@@ -13386,6 +13389,7 @@ declare module "@stencil/core" {
13386
13389
  * @exampleComponent limel-example-list-form
13387
13390
  * @exampleComponent limel-example-dynamic-form
13388
13391
  * @exampleComponent limel-example-custom-component-form
13392
+ * @exampleComponent limel-example-custom-component-header-form
13389
13393
  * @exampleComponent limel-example-props-factory-form
13390
13394
  * @exampleComponent limel-example-form-layout
13391
13395
  * @exampleComponent limel-example-form-span-fields
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "40.17.1",
3
+ "version": "40.18.1",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",