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.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +112 -0
  3. package/dist/assets/cmmn-js-properties-panel.css +495 -0
  4. package/index.js +1 -0
  5. package/lib/PropertiesActivator.js +67 -0
  6. package/lib/PropertiesPanel.js +1264 -0
  7. package/lib/Utils.js +126 -0
  8. package/lib/cmd/MultiCommandHandler.js +32 -0
  9. package/lib/cmd/UpdateBusinessObjectHandler.js +100 -0
  10. package/lib/cmd/UpdateBusinessObjectListHandler.js +108 -0
  11. package/lib/cmd/index.js +25 -0
  12. package/lib/factory/CheckboxEntryFactory.js +68 -0
  13. package/lib/factory/EntryFactory.js +199 -0
  14. package/lib/factory/EntryFieldDescription.js +73 -0
  15. package/lib/factory/LabelFactory.js +38 -0
  16. package/lib/factory/SelectEntryFactory.js +75 -0
  17. package/lib/factory/TextBoxEntryFactory.js +42 -0
  18. package/lib/factory/TextInputEntryFactory.js +73 -0
  19. package/lib/factory/ValidationAwareTextInput.js +66 -0
  20. package/lib/helper/CmdHelper.js +76 -0
  21. package/lib/helper/CmmnElementHelper.js +232 -0
  22. package/lib/helper/ElementHelper.js +23 -0
  23. package/lib/helper/ExtensionElementsHelper.js +39 -0
  24. package/lib/helper/ListenerHelper.js +28 -0
  25. package/lib/index.js +13 -0
  26. package/lib/provider/cmmn/CmmnPropertiesProvider.js +183 -0
  27. package/lib/provider/cmmn/index.js +7 -0
  28. package/lib/provider/cmmn/parts/CallableProps.js +169 -0
  29. package/lib/provider/cmmn/parts/CaseProps.js +66 -0
  30. package/lib/provider/cmmn/parts/DefinitionDocumentationProps.js +24 -0
  31. package/lib/provider/cmmn/parts/DefinitionIdProps.js +22 -0
  32. package/lib/provider/cmmn/parts/DefinitionNameProps.js +43 -0
  33. package/lib/provider/cmmn/parts/DocumentationProps.js +21 -0
  34. package/lib/provider/cmmn/parts/IdProps.js +14 -0
  35. package/lib/provider/cmmn/parts/IfPartProps.js +110 -0
  36. package/lib/provider/cmmn/parts/NameProps.js +90 -0
  37. package/lib/provider/cmmn/parts/OnPartProps.js +61 -0
  38. package/lib/provider/cmmn/parts/PlanItemControlProps.js +214 -0
  39. package/lib/provider/cmmn/parts/implementation/ConditionProp.js +81 -0
  40. package/lib/provider/cmmn/parts/implementation/DocumentationProp.js +91 -0
  41. package/lib/provider/cmmn/parts/implementation/IdProp.js +42 -0
  42. package/lib/provider/cmmn/parts/implementation/NameProp.js +38 -0
  43. package/lib/provider/cmmn/parts/implementation/RuleProp.js +96 -0
  44. package/lib/provider/cmmn/parts/implementation/TransitionProp.js +81 -0
  45. package/lib/provider/flowable/FlowablePropertiesProvider.js +393 -0
  46. package/lib/provider/flowable/index.js +7 -0
  47. package/lib/provider/flowable/parts/CallableExtensionProps.js +250 -0
  48. package/lib/provider/flowable/parts/CaseExecutionListenerProps.js +31 -0
  49. package/lib/provider/flowable/parts/HistoryTimeToLiveProps.js +19 -0
  50. package/lib/provider/flowable/parts/HumanTaskProps.js +76 -0
  51. package/lib/provider/flowable/parts/ListenerDetailProps.js +32 -0
  52. package/lib/provider/flowable/parts/ListenerFieldInjectionProps.js +13 -0
  53. package/lib/provider/flowable/parts/RepeatOnStandardEventProps.js +144 -0
  54. package/lib/provider/flowable/parts/TaskListenerProps.js +27 -0
  55. package/lib/provider/flowable/parts/VariableListenerProps.js +27 -0
  56. package/lib/provider/flowable/parts/VariableMappingProps.js +361 -0
  57. package/lib/provider/flowable/parts/implementation/BusinessKeyProp.js +109 -0
  58. package/lib/provider/flowable/parts/implementation/ExtensionElements.js +248 -0
  59. package/lib/provider/flowable/parts/implementation/FieldInjection.js +281 -0
  60. package/lib/provider/flowable/parts/implementation/HistoryTimeToLiveProp.js +37 -0
  61. package/lib/provider/flowable/parts/implementation/ListenerDelegateProp.js +159 -0
  62. package/lib/provider/flowable/parts/implementation/ListenerElements.js +132 -0
  63. package/lib/provider/flowable/parts/implementation/ListenerEventTypeProp.js +118 -0
  64. package/lib/provider/flowable/parts/implementation/ScriptProp.js +161 -0
  65. package/package.json +72 -0
  66. package/styles/_mixins.less +79 -0
  67. package/styles/_variables.less +19 -0
  68. package/styles/config.json +46 -0
  69. package/styles/groups.less +71 -0
  70. package/styles/header.less +35 -0
  71. package/styles/properties.less +328 -0
  72. 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
+ };