cmmn-js-properties-panel-flowable 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +112 -0
- package/dist/assets/cmmn-js-properties-panel.css +495 -0
- package/index.js +1 -0
- package/lib/PropertiesActivator.js +67 -0
- package/lib/PropertiesPanel.js +1264 -0
- package/lib/Utils.js +126 -0
- package/lib/cmd/MultiCommandHandler.js +32 -0
- package/lib/cmd/UpdateBusinessObjectHandler.js +100 -0
- package/lib/cmd/UpdateBusinessObjectListHandler.js +108 -0
- package/lib/cmd/index.js +25 -0
- package/lib/factory/CheckboxEntryFactory.js +68 -0
- package/lib/factory/EntryFactory.js +199 -0
- package/lib/factory/EntryFieldDescription.js +73 -0
- package/lib/factory/LabelFactory.js +38 -0
- package/lib/factory/SelectEntryFactory.js +75 -0
- package/lib/factory/TextBoxEntryFactory.js +42 -0
- package/lib/factory/TextInputEntryFactory.js +73 -0
- package/lib/factory/ValidationAwareTextInput.js +66 -0
- package/lib/helper/CmdHelper.js +76 -0
- package/lib/helper/CmmnElementHelper.js +232 -0
- package/lib/helper/ElementHelper.js +23 -0
- package/lib/helper/ExtensionElementsHelper.js +39 -0
- package/lib/helper/ListenerHelper.js +28 -0
- package/lib/index.js +13 -0
- package/lib/provider/cmmn/CmmnPropertiesProvider.js +183 -0
- package/lib/provider/cmmn/index.js +7 -0
- package/lib/provider/cmmn/parts/CallableProps.js +169 -0
- package/lib/provider/cmmn/parts/CaseProps.js +66 -0
- package/lib/provider/cmmn/parts/DefinitionDocumentationProps.js +24 -0
- package/lib/provider/cmmn/parts/DefinitionIdProps.js +22 -0
- package/lib/provider/cmmn/parts/DefinitionNameProps.js +43 -0
- package/lib/provider/cmmn/parts/DocumentationProps.js +21 -0
- package/lib/provider/cmmn/parts/IdProps.js +14 -0
- package/lib/provider/cmmn/parts/IfPartProps.js +110 -0
- package/lib/provider/cmmn/parts/NameProps.js +90 -0
- package/lib/provider/cmmn/parts/OnPartProps.js +61 -0
- package/lib/provider/cmmn/parts/PlanItemControlProps.js +214 -0
- package/lib/provider/cmmn/parts/implementation/ConditionProp.js +81 -0
- package/lib/provider/cmmn/parts/implementation/DocumentationProp.js +91 -0
- package/lib/provider/cmmn/parts/implementation/IdProp.js +42 -0
- package/lib/provider/cmmn/parts/implementation/NameProp.js +38 -0
- package/lib/provider/cmmn/parts/implementation/RuleProp.js +96 -0
- package/lib/provider/cmmn/parts/implementation/TransitionProp.js +81 -0
- package/lib/provider/flowable/FlowablePropertiesProvider.js +393 -0
- package/lib/provider/flowable/index.js +7 -0
- package/lib/provider/flowable/parts/CallableExtensionProps.js +250 -0
- package/lib/provider/flowable/parts/CaseExecutionListenerProps.js +31 -0
- package/lib/provider/flowable/parts/HistoryTimeToLiveProps.js +19 -0
- package/lib/provider/flowable/parts/HumanTaskProps.js +76 -0
- package/lib/provider/flowable/parts/ListenerDetailProps.js +32 -0
- package/lib/provider/flowable/parts/ListenerFieldInjectionProps.js +13 -0
- package/lib/provider/flowable/parts/RepeatOnStandardEventProps.js +144 -0
- package/lib/provider/flowable/parts/TaskListenerProps.js +27 -0
- package/lib/provider/flowable/parts/VariableListenerProps.js +27 -0
- package/lib/provider/flowable/parts/VariableMappingProps.js +361 -0
- package/lib/provider/flowable/parts/implementation/BusinessKeyProp.js +109 -0
- package/lib/provider/flowable/parts/implementation/ExtensionElements.js +248 -0
- package/lib/provider/flowable/parts/implementation/FieldInjection.js +281 -0
- package/lib/provider/flowable/parts/implementation/HistoryTimeToLiveProp.js +37 -0
- package/lib/provider/flowable/parts/implementation/ListenerDelegateProp.js +159 -0
- package/lib/provider/flowable/parts/implementation/ListenerElements.js +132 -0
- package/lib/provider/flowable/parts/implementation/ListenerEventTypeProp.js +118 -0
- package/lib/provider/flowable/parts/implementation/ScriptProp.js +161 -0
- package/package.json +72 -0
- package/styles/_mixins.less +79 -0
- package/styles/_variables.less +19 -0
- package/styles/config.json +46 -0
- package/styles/groups.less +71 -0
- package/styles/header.less +35 -0
- package/styles/properties.less +328 -0
- package/styles/tabs.less +90 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var DEFAULT_PRIORITY = 1000;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A component that decides upon the visibility / editable
|
|
8
|
+
* state of properties in the properties panel.
|
|
9
|
+
*
|
|
10
|
+
* Implementors must subclass this component and override
|
|
11
|
+
* {@link PropertiesActivator#isEntryVisible} and
|
|
12
|
+
* {@link PropertiesActivator#isPropertyEditable} to provide
|
|
13
|
+
* custom behavior.
|
|
14
|
+
*
|
|
15
|
+
* @class
|
|
16
|
+
* @constructor
|
|
17
|
+
*
|
|
18
|
+
* @param {EventBus} eventBus
|
|
19
|
+
* @param {Number} [priority] at which priority to hook into the activation
|
|
20
|
+
*/
|
|
21
|
+
function PropertiesActivator(eventBus, priority) {
|
|
22
|
+
var self = this;
|
|
23
|
+
|
|
24
|
+
priority = priority || DEFAULT_PRIORITY;
|
|
25
|
+
|
|
26
|
+
eventBus.on('propertiesPanel.isEntryVisible', priority, function(e) {
|
|
27
|
+
return self.isEntryVisible(e.entry, e.element);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
eventBus.on('propertiesPanel.isPropertyEditable', priority, function(e) {
|
|
31
|
+
return self.isPropertyEditable(e.entry, e.propertyName, e.element);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
PropertiesActivator.$inject = [ 'eventBus' ];
|
|
36
|
+
|
|
37
|
+
module.exports = PropertiesActivator;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Should the given entry be visible for the specified element.
|
|
42
|
+
*
|
|
43
|
+
* @method PropertiesActivator#isEntryVisible
|
|
44
|
+
*
|
|
45
|
+
* @param {EntryDescriptor} entry
|
|
46
|
+
* @param {ModdleElement} element
|
|
47
|
+
*
|
|
48
|
+
* @returns {Boolean}
|
|
49
|
+
*/
|
|
50
|
+
PropertiesActivator.prototype.isEntryVisible = function(entry, element) {
|
|
51
|
+
return true;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Should the given property be editable for the specified element
|
|
56
|
+
*
|
|
57
|
+
* @method PropertiesActivator#isPropertyEditable
|
|
58
|
+
*
|
|
59
|
+
* @param {EntryDescriptor} entry
|
|
60
|
+
* @param {String} propertyName
|
|
61
|
+
* @param {ModdleElement} element
|
|
62
|
+
*
|
|
63
|
+
* @returns {Boolean}
|
|
64
|
+
*/
|
|
65
|
+
PropertiesActivator.prototype.isPropertyEditable = function(entry, propertyName, element) {
|
|
66
|
+
return true;
|
|
67
|
+
};
|