1
1
/* eslint-disable max-lines */
2
-
3
2
/* eslint-disable class-methods-use-this */
4
-
5
3
/* eslint-disable no-underscore-dangle */
6
- // import deepmerge from 'deepmerge';
7
- import set from 'lodash-es/set' ;
8
4
9
5
import {
10
- type CSSResult ,
11
6
LitElement ,
12
- type TemplateResult ,
13
7
html ,
14
- nothing ,
15
8
unsafeCSS ,
9
+ type TemplateResult ,
10
+ type CSSResult ,
11
+ nothing ,
16
12
} from 'lit' ;
13
+
17
14
import { property , state } from 'lit/decorators.js' ;
18
15
import { createRef , ref } from 'lit/directives/ref.js' ;
19
16
17
+ // import deepmerge from 'deepmerge';
18
+ import set from 'lodash-es/set' ;
19
+
20
+ // import { alternateField } from './triage/alternate.js';
21
+ import { fieldArray } from './triage/array.js' ;
22
+ import { fieldObject } from './triage/object.js' ;
23
+ import { fieldPrimitive } from './triage/primitive.js' ;
24
+ import { fieldArrayPrimitive } from './triage/array-primitive.js' ;
25
+
20
26
import type {
21
27
DataChangeCallback ,
22
28
FeatureFlags ,
23
- JSONSchema7 ,
24
29
OnFormSubmit ,
25
30
Path ,
26
31
UiSchema ,
27
32
Widgets ,
33
+ JSONSchema7 ,
28
34
} from '@jsfe/types' ;
29
35
30
- import { fieldArrayPrimitive } from './triage/array-primitive.js' ;
31
- // import { alternateField } from './triage/alternate.js';
32
- import { fieldArray } from './triage/array.js' ;
33
- import { fieldObject } from './triage/object.js' ;
34
- import { fieldPrimitive } from './triage/primitive.js' ;
35
-
36
36
export class Jsf extends LitElement {
37
37
@property ( { type : Object } ) public schema : JSONSchema7 = { } ;
38
38
@@ -52,7 +52,7 @@ export class Jsf extends LitElement {
52
52
53
53
@property ( { type : Boolean } ) public submitButton = true ;
54
54
55
- @property ( { type : String } ) public submitButtonLabel = 'Submit' ;
55
+ @property ( { type : String } ) public submitButtonText = 'Submit' ;
56
56
57
57
@state ( ) private _uiState : unknown = { } ;
58
58
@@ -129,7 +129,7 @@ export class Jsf extends LitElement {
129
129
// return flag('allOf');
130
130
}
131
131
132
- let nodeParsed = node ;
132
+ const nodeParsed = node ;
133
133
134
134
// if (currentNode.allOf) {
135
135
// node.allOf?.forEach((subSchema) => {
0 commit comments