-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move behaviors to `behavior` module * create `core` module * move properties panel (UI) related things to `properties-panel` module
- Loading branch information
Showing
40 changed files
with
291 additions
and
123 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
4 changes: 2 additions & 2 deletions
4
...ement-templates/GeneratedValueBehavior.js → ...plates/behavior/GeneratedValueBehavior.js
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
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...emplates/UpdateTemplatePropertiesOrder.js → ...behavior/UpdatePropertiesOrderBehavior.js
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,23 @@ | ||
import ConditionalBehavior from './ConditionalBehavior'; | ||
import ReplaceBehavior from './ReplaceBehavior'; | ||
import UpdatePropertiesOrderBehavior from './UpdatePropertiesOrderBehavior'; | ||
import { ReferencedElementBehavior } from './ReferencedElementBehavior'; | ||
import { GeneratedValueBehavior } from './GeneratedValueBehavior'; | ||
import { CalledElementBehavior } from './CalledElementBehavior'; | ||
|
||
export default { | ||
__init__: [ | ||
'elementTemplatesReplaceBehavior', | ||
'elementTemplatesConditionalBehavior', | ||
'elementTemplatesGeneratedValueBehavior', | ||
'elementTemplatesReferencedElementBehavior', | ||
'elementTemplatesUpdatePropertiesOrderBehavior', | ||
'elementTemplatesCalledElementBehavior' | ||
], | ||
elementTemplatesReplaceBehavior: [ 'type', ReplaceBehavior ], | ||
elementTemplatesConditionalBehavior: [ 'type', ConditionalBehavior ], | ||
elementTemplatesGeneratedValueBehavior: [ 'type', GeneratedValueBehavior ], | ||
elementTemplatesReferencedElementBehavior: [ 'type', ReferencedElementBehavior ], | ||
elementTemplatesUpdatePropertiesOrderBehavior: [ 'type', UpdatePropertiesOrderBehavior ], | ||
elementTemplatesCalledElementBehavior: [ 'type', CalledElementBehavior ] | ||
}; |
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,19 @@ | ||
import ElementTemplates from '../ElementTemplates'; | ||
import ElementTemplatesLoader from '../ElementTemplatesLoader'; | ||
|
||
import commandsModule from '../cmd'; | ||
import createModule from '../create'; | ||
import behaviorModule from '../behavior'; | ||
|
||
export default { | ||
__depends__: [ | ||
commandsModule, | ||
behaviorModule, | ||
createModule | ||
], | ||
__init__: [ | ||
'elementTemplatesLoader' | ||
], | ||
elementTemplates: [ 'type', ElementTemplates ], | ||
elementTemplatesLoader: [ 'type', ElementTemplatesLoader ] | ||
}; |
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,41 +1,9 @@ | ||
import translateModule from 'diagram-js/lib/i18n/translate'; | ||
|
||
import ElementTemplatesConditionChecker from './ElementTemplatesConditionChecker'; | ||
import ElementTemplates from './ElementTemplates'; | ||
import ElementTemplatesLoader from './ElementTemplatesLoader'; | ||
import ReplaceBehavior from './ReplaceBehavior'; | ||
import commandsModule from './cmd'; | ||
import templateElementFactoryModule from './create'; | ||
import ElementTemplatesPropertiesProvider from './ElementTemplatesPropertiesProvider'; | ||
import UpdateTemplatePropertiesOrder from './UpdateTemplatePropertiesOrder'; | ||
import { ReferencedElementBehavior } from './ReferencedElementBehavior'; | ||
import { GeneratedValueBehavior } from './GeneratedValueBehavior'; | ||
import { CalledElementBehavior } from './CalledElementBehavior'; | ||
|
||
import coreModule from './core'; | ||
import propertiesProviderModule from './properties-panel'; | ||
|
||
export default { | ||
__depends__: [ | ||
commandsModule, | ||
templateElementFactoryModule, | ||
translateModule | ||
], | ||
__init__: [ | ||
'elementTemplatesLoader', | ||
'replaceBehavior', | ||
'elementTemplatesPropertiesProvider', | ||
'elementTemplatesConditionChecker', | ||
'generatedValueBehavior', | ||
'referencedElementBehavior', | ||
'updateTemplatePropertiesOrder', | ||
'calledElementBehavior' | ||
], | ||
elementTemplates: [ 'type', ElementTemplates ], | ||
elementTemplatesLoader: [ 'type', ElementTemplatesLoader ], | ||
replaceBehavior: [ 'type', ReplaceBehavior ], | ||
elementTemplatesPropertiesProvider: [ 'type', ElementTemplatesPropertiesProvider ], | ||
elementTemplatesConditionChecker: [ 'type', ElementTemplatesConditionChecker ], | ||
generatedValueBehavior: [ 'type', GeneratedValueBehavior ], | ||
referencedElementBehavior: [ 'type', ReferencedElementBehavior ], | ||
updateTemplatePropertiesOrder: [ 'type', UpdateTemplatePropertiesOrder ], | ||
calledElementBehavior: [ 'type', CalledElementBehavior ] | ||
coreModule, | ||
propertiesProviderModule, | ||
] | ||
}; |
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 @@ | ||
export * from './LinterPlugin'; |
8 changes: 4 additions & 4 deletions
8
...tes/ElementTemplatesPropertiesProvider.js → ...nel/ElementTemplatesPropertiesProvider.js
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
2 changes: 1 addition & 1 deletion
2
...t-templates/components/PropertyTooltip.js → ...rties-panel/components/PropertyTooltip.js
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,13 @@ | ||
import translateModule from 'diagram-js/lib/i18n/translate'; | ||
|
||
import ElementTemplatesPropertiesProvider from './ElementTemplatesPropertiesProvider'; | ||
|
||
export default { | ||
__depends__: [ | ||
translateModule | ||
], | ||
__init__: [ | ||
'elementTemplatesPropertiesProvider' | ||
], | ||
elementTemplatesPropertiesProvider: [ 'type', ElementTemplatesPropertiesProvider ] | ||
}; |
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
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
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.