Skip to content

Commit 1236078

Browse files
committed
revert: "style: bulk reformat with new imports orders"
This reverts commit 7483287.
1 parent e0ecf92 commit 1236078

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+108
-121
lines changed

packages/carbon/src/form.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Jsf } from '@jsfe/form';
2-
3-
import { styles } from './styles.js';
42
import * as widgets from './widgets/index.js';
3+
import { styles } from './styles.js';
54

65
export class JsfCarbon extends Jsf {
76
public widgets = widgets;

packages/carbon/src/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* STUB */
2+
23
import { css } from 'lit';
34

45
export const styles = css`

packages/carbon/src/widgets/object.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { html, nothing } from 'lit';
2-
1+
import { nothing, html } from 'lit';
32
import type { Widgets } from '@jsfe/types';
43

54
import '@carbon/web-components/es/components/form-group/index.js';

packages/form/src/json-schema-form.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
/* eslint-disable max-lines */
2-
32
/* eslint-disable class-methods-use-this */
4-
53
/* eslint-disable no-underscore-dangle */
6-
// import deepmerge from 'deepmerge';
7-
import set from 'lodash-es/set';
84

95
import {
10-
type CSSResult,
116
LitElement,
12-
type TemplateResult,
137
html,
14-
nothing,
158
unsafeCSS,
9+
type TemplateResult,
10+
type CSSResult,
11+
nothing,
1612
} from 'lit';
13+
1714
import { property, state } from 'lit/decorators.js';
1815
import { createRef, ref } from 'lit/directives/ref.js';
1916

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+
2026
import type {
2127
DataChangeCallback,
2228
FeatureFlags,
23-
JSONSchema7,
2429
OnFormSubmit,
2530
Path,
2631
UiSchema,
2732
Widgets,
33+
JSONSchema7,
2834
} from '@jsfe/types';
2935

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-
3636
export class Jsf extends LitElement {
3737
@property({ type: Object }) public schema: JSONSchema7 = {};
3838

@@ -52,7 +52,7 @@ export class Jsf extends LitElement {
5252

5353
@property({ type: Boolean }) public submitButton = true;
5454

55-
@property({ type: String }) public submitButtonLabel = 'Submit';
55+
@property({ type: String }) public submitButtonText = 'Submit';
5656

5757
@state() private _uiState: unknown = {};
5858

@@ -129,7 +129,7 @@ export class Jsf extends LitElement {
129129
// return flag('allOf');
130130
}
131131

132-
let nodeParsed = node;
132+
const nodeParsed = node;
133133

134134
// if (currentNode.allOf) {
135135
// node.allOf?.forEach((subSchema) => {

packages/form/src/triage/array-primitive.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { html } from 'lit';
22

3-
import type { JSONSchema7, Path, UiSchema, Widgets } from '@jsfe/types';
4-
53
import type { Jsf } from '../json-schema-form.js';
4+
import type { Widgets, Path, UiSchema, JSONSchema7 } from '@jsfe/types';
65

76
export const fieldArrayPrimitive = (
87
schema: JSONSchema7,

packages/form/src/triage/array.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
/* eslint-disable max-lines */
2-
32
/* eslint-disable arrow-body-style */
4-
import { TemplateResult, html } from 'lit';
5-
63
import type { JSONSchema7 } from '@jsfe/types';
7-
import type { Path, UiSchema, Widgets } from '@jsfe/types';
4+
import { TemplateResult, html } from 'lit';
85

96
import type { Jsf } from '../json-schema-form.js';
7+
import type { Widgets, Path, UiSchema } from '@jsfe/types';
108

119
export const fieldArray = (
1210
schema: JSONSchema7,

packages/form/src/triage/object.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { html } from 'lit';
2-
32
import type { JSONSchema7 } from '@jsfe/types';
4-
5-
import type { Jsf, Path, UiSchema, Widgets } from '../index.js';
3+
import type { Widgets, Jsf, Path, UiSchema } from '../index.js';
64

75
export const fieldObject = (
86
schema: JSONSchema7,

packages/form/src/triage/primitive.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// import { JsfText } from './../facades/text';
22
// import { debuggerInline } from './utils.js';
3-
43
/* eslint-disable arrow-body-style */
5-
64
/* eslint-disable max-lines */
7-
import { html } from 'lit';
8-
9-
import type { JSONSchema7, Path, UiSchema, Widgets } from '@jsfe/types';
105

116
import type { Jsf } from '../json-schema-form.js';
127

8+
import type { Widgets, Path, UiSchema, JSONSchema7 } from '@jsfe/types';
9+
import { html } from 'lit';
10+
1311
export const fieldPrimitive = (
1412
schema: JSONSchema7,
1513
value: unknown,

packages/material/src/form.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Jsf } from '@jsfe/form';
2-
3-
import { styles } from './styles.js';
42
import * as widgets from './widgets/index.js';
3+
import { styles } from './styles.js';
54

65
export class JsfMaterial extends Jsf {
76
public widgets = widgets;

packages/material/src/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* STUB */
2+
23
import { css } from 'lit';
34

45
export const styles = css`

0 commit comments

Comments
 (0)