-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: Rename subForm to subform (#13903)
Co-authored-by: JamalAlabdullah <[email protected]>
- Loading branch information
1 parent
4f52f21
commit dae7a6b
Showing
49 changed files
with
224 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...ges/ux-editor/src/classes/SubFormUtils.ts → ...ges/ux-editor/src/classes/SubformUtils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
import type { LayoutSetConfig } from 'app-shared/types/api/LayoutSetsResponse'; | ||
|
||
type SubFormLayoutSet = LayoutSetConfig & { | ||
type SubformLayoutSet = LayoutSetConfig & { | ||
type: 'subform'; | ||
}; | ||
|
||
interface SubFormUtils { | ||
interface SubformUtils { | ||
hasSubforms: boolean; | ||
subformLayoutSetsIds: Array<string>; | ||
} | ||
|
||
export class SubFormUtilsImpl implements SubFormUtils { | ||
export class SubformUtilsImpl implements SubformUtils { | ||
constructor(private readonly layoutSets: Array<LayoutSetConfig>) {} | ||
|
||
public get hasSubforms(): boolean { | ||
return this.getSubformLayoutSets.length > 0; | ||
} | ||
|
||
public get subformLayoutSetsIds(): Array<string> { | ||
return this.getSubformLayoutSets.map((set: SubFormLayoutSet) => set.id); | ||
return this.getSubformLayoutSets.map((set: SubformLayoutSet) => set.id); | ||
} | ||
|
||
private get getSubformLayoutSets(): Array<SubFormLayoutSet> { | ||
private get getSubformLayoutSets(): Array<SubformLayoutSet> { | ||
return (this.layoutSets || []).filter( | ||
(set) => set.type === 'subform', | ||
) as Array<SubFormLayoutSet>; | ||
) as Array<SubformLayoutSet>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
frontend/packages/ux-editor/src/components/Elements/SubForm/SubFormWrapper.tsx
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.