generated from wrappid/wrappid-module
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix reducer related changes, add onclick changes selectedProps and some small fix in ui Ref #54
- Loading branch information
Showing
13 changed files
with
282 additions
and
186 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { getWrappidUUID } from "@wrappid/core/utils/appUtils"; | ||
|
||
import { AttributeData } from "../model/Attribute.data"; | ||
import { Property } from "../toolbox/property/Property.interface"; | ||
import ValidProps from "../valid-props/Validprops"; | ||
|
||
export class FormattedAttribute { | ||
attributeSelected: boolean; | ||
id: string; | ||
selectedProps: AttributeData; | ||
validProps: Property[]; | ||
|
||
constructor(selectedProps: AttributeData) { | ||
this.attributeSelected = false; | ||
this.id = getWrappidUUID(); | ||
this.selectedProps = selectedProps; | ||
this.validProps = this.getValidProps(); | ||
} | ||
|
||
private getValidProps(): Property[] { | ||
const validPropsInstance = new ValidProps(); | ||
|
||
return validPropsInstance.getValidProps(); | ||
} | ||
} |
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
Oops, something went wrong.