bpmn-moddle 10.1.0 → 10.2.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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../lib/bpmn-moddle.js","../lib/simple.js"],"sourcesContent":["import {\n isString,\n assign\n} from 'min-dash';\n\nimport {\n Moddle\n} from 'moddle';\n\nimport {\n Reader,\n Writer\n} from 'moddle-xml';\n\n\n/**\n * A sub class of {@link Moddle} with support for import and export of BPMN 2.0 xml files.\n *\n * @class BpmnModdle\n * @extends Moddle\n *\n * @param {Object|Array} packages to use for instantiating the model\n * @param {Object} [options] additional options to pass over\n */\nexport default function BpmnModdle(packages, options) {\n Moddle.call(this, packages, options);\n}\n\nBpmnModdle.prototype = Object.create(Moddle.prototype);\n\n/**\n * The fromXML result.\n *\n * @typedef {Object} ParseResult\n *\n * @property {ModdleElement} rootElement\n * @property {Array<Object>} references\n * @property {Array<Error>} warnings\n * @property {Object} elementsById - a mapping containing each ID -> ModdleElement\n */\n\n/**\n * The fromXML error.\n *\n * @typedef {Error} ParseError\n *\n * @property {Array<Error>} warnings\n */\n\n/**\n * Instantiates a BPMN model tree from a given xml string.\n *\n * @param {String} xmlStr\n * @param {String} [typeName='bpmn:Definitions'] name of the root element\n * @param {Object} [options] options to pass to the underlying reader\n *\n * @returns {Promise<ParseResult, ParseError>}\n */\nBpmnModdle.prototype.fromXML = function(xmlStr, typeName, options) {\n\n if (!isString(typeName)) {\n options = typeName;\n typeName = 'bpmn:Definitions';\n }\n\n var reader = new Reader(assign({ model: this, lax: true }, options));\n var rootHandler = reader.handler(typeName);\n\n return reader.fromXML(xmlStr, rootHandler);\n};\n\n\n/**\n * The toXML result.\n *\n * @typedef {Object} SerializationResult\n *\n * @property {String} xml\n */\n\n/**\n * Serializes a BPMN 2.0 object tree to XML.\n *\n * @param {String} element the root element, typically an instance of `bpmn:Definitions`\n * @param {Object} [options] to pass to the underlying writer\n *\n * @returns {Promise<SerializationResult, Error>}\n */\nBpmnModdle.prototype.toXML = function(element, options) {\n\n var writer = new Writer(options);\n\n return new Promise(function(resolve, reject) {\n try {\n var result = writer.toXML(element);\n\n return resolve({\n xml: result\n });\n } catch (err) {\n return reject(err);\n }\n });\n};\n","import {\n assign\n} from 'min-dash';\n\nimport BpmnModdle from './bpmn-moddle.js';\n\nimport BpmnPackage from '../resources/bpmn/json/bpmn.json' with { type: 'json' };\nimport BpmnDiPackage from '../resources/bpmn/json/bpmndi.json' with { type: 'json' };\nimport DcPackage from '../resources/bpmn/json/dc.json' with { type: 'json' };\nimport DiPackage from '../resources/bpmn/json/di.json' with { type: 'json' };\nimport BiocPackage from '../resources/bpmn-io/json/bioc.json' with { type: 'json' };\nimport BpmnInColorPackage from 'bpmn-in-color-moddle/resources/bpmn-in-color.json' with { type: 'json' };\n\nconst packages = {\n bpmn: BpmnPackage,\n bpmndi: BpmnDiPackage,\n dc: DcPackage,\n di: DiPackage,\n bioc: BiocPackage,\n color: BpmnInColorPackage\n};\n\nexport default function SimpleBpmnModdle(additionalPackages, options) {\n const pks = assign({}, packages, additionalPackages);\n\n return new BpmnModdle(pks, options);\n}\n"],"names":["Moddle","isString","Reader","assign","Writer"],"mappings":";;;;;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAAS,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE;AACtD,EAAEA,aAAM,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC;AACtC;;AAEA,UAAU,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAACA,aAAM,CAAC,SAAS,CAAC;;AAEtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU,CAAC,SAAS,CAAC,OAAO,GAAG,SAAS,MAAM,EAAE,QAAQ,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1FD,MAAM,QAAQ,GAAG;AACjB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,MAAM,EAAE,aAAa;AACvB,EAAE,EAAE,EAAE,SAAS;AACf,EAAE,EAAE,EAAE,SAAS;AACf,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,KAAK,EAAE;AACT,CAAC;;AAEc,SAAS,gBAAgB,CAAC,kBAAkB,EAAE,OAAO,EAAE;AACtE,EAAE,MAAM,GAAG,GAAGD,cAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,kBAAkB,CAAC;;AAEtD,EAAE,OAAO,IAAI,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC;AACrC;;;;"}
@@ -760,29 +760,22 @@ export interface BpmnModdleTypeMap {
760
760
  'bpmn:HumanPerformer': ModdleElement<BpmnHumanPerformer> & { $type: 'bpmn:HumanPerformer' };
761
761
  'bpmn:PotentialOwner': ModdleElement<BpmnPotentialOwner> & { $type: 'bpmn:PotentialOwner' };
762
762
  'bpmn:GlobalUserTask': ModdleElement<BpmnGlobalUserTask> & { $type: 'bpmn:GlobalUserTask' };
763
- 'bpmn:Gateway': ModdleElement<BpmnGateway> & { $type: 'bpmn:Gateway' };
764
763
  'bpmn:EventBasedGateway': ModdleElement<BpmnEventBasedGateway> & { $type: 'bpmn:EventBasedGateway' };
765
764
  'bpmn:ComplexGateway': ModdleElement<BpmnComplexGateway> & { $type: 'bpmn:ComplexGateway' };
766
765
  'bpmn:ExclusiveGateway': ModdleElement<BpmnExclusiveGateway> & { $type: 'bpmn:ExclusiveGateway' };
767
766
  'bpmn:InclusiveGateway': ModdleElement<BpmnInclusiveGateway> & { $type: 'bpmn:InclusiveGateway' };
768
767
  'bpmn:ParallelGateway': ModdleElement<BpmnParallelGateway> & { $type: 'bpmn:ParallelGateway' };
769
- 'bpmn:RootElement': ModdleElement<BpmnRootElement> & { $type: 'bpmn:RootElement' };
770
768
  'bpmn:Relationship': ModdleElement<BpmnRelationship> & { $type: 'bpmn:Relationship' };
771
- 'bpmn:BaseElement': ModdleElement<BpmnBaseElement> & { $type: 'bpmn:BaseElement' };
772
769
  'bpmn:Extension': ModdleElement<BpmnExtension> & { $type: 'bpmn:Extension' };
773
770
  'bpmn:ExtensionDefinition': ModdleElement<BpmnExtensionDefinition> & { $type: 'bpmn:ExtensionDefinition' };
774
771
  'bpmn:ExtensionAttributeDefinition': ModdleElement<BpmnExtensionAttributeDefinition> & { $type: 'bpmn:ExtensionAttributeDefinition' };
775
772
  'bpmn:ExtensionElements': ModdleElement<BpmnExtensionElements> & { $type: 'bpmn:ExtensionElements' };
776
773
  'bpmn:Documentation': ModdleElement<BpmnDocumentation> & { $type: 'bpmn:Documentation' };
777
- 'bpmn:Event': ModdleElement<BpmnEvent> & { $type: 'bpmn:Event' };
778
774
  'bpmn:IntermediateCatchEvent': ModdleElement<BpmnIntermediateCatchEvent> & { $type: 'bpmn:IntermediateCatchEvent' };
779
775
  'bpmn:IntermediateThrowEvent': ModdleElement<BpmnIntermediateThrowEvent> & { $type: 'bpmn:IntermediateThrowEvent' };
780
776
  'bpmn:EndEvent': ModdleElement<BpmnEndEvent> & { $type: 'bpmn:EndEvent' };
781
777
  'bpmn:StartEvent': ModdleElement<BpmnStartEvent> & { $type: 'bpmn:StartEvent' };
782
- 'bpmn:ThrowEvent': ModdleElement<BpmnThrowEvent> & { $type: 'bpmn:ThrowEvent' };
783
- 'bpmn:CatchEvent': ModdleElement<BpmnCatchEvent> & { $type: 'bpmn:CatchEvent' };
784
778
  'bpmn:BoundaryEvent': ModdleElement<BpmnBoundaryEvent> & { $type: 'bpmn:BoundaryEvent' };
785
- 'bpmn:EventDefinition': ModdleElement<BpmnEventDefinition> & { $type: 'bpmn:EventDefinition' };
786
779
  'bpmn:CancelEventDefinition': ModdleElement<BpmnCancelEventDefinition> & { $type: 'bpmn:CancelEventDefinition' };
787
780
  'bpmn:ErrorEventDefinition': ModdleElement<BpmnErrorEventDefinition> & { $type: 'bpmn:ErrorEventDefinition' };
788
781
  'bpmn:TerminateEventDefinition': ModdleElement<BpmnTerminateEventDefinition> & { $type: 'bpmn:TerminateEventDefinition' };
@@ -818,7 +811,6 @@ export interface BpmnModdleTypeMap {
818
811
  'bpmn:CallConversation': ModdleElement<BpmnCallConversation> & { $type: 'bpmn:CallConversation' };
819
812
  'bpmn:Conversation': ModdleElement<BpmnConversation> & { $type: 'bpmn:Conversation' };
820
813
  'bpmn:SubConversation': ModdleElement<BpmnSubConversation> & { $type: 'bpmn:SubConversation' };
821
- 'bpmn:ConversationNode': ModdleElement<BpmnConversationNode> & { $type: 'bpmn:ConversationNode' };
822
814
  'bpmn:GlobalConversation': ModdleElement<BpmnGlobalConversation> & { $type: 'bpmn:GlobalConversation' };
823
815
  'bpmn:PartnerEntity': ModdleElement<BpmnPartnerEntity> & { $type: 'bpmn:PartnerEntity' };
824
816
  'bpmn:PartnerRole': ModdleElement<BpmnPartnerRole> & { $type: 'bpmn:PartnerRole' };
@@ -829,11 +821,7 @@ export interface BpmnModdleTypeMap {
829
821
  'bpmn:FormalExpression': ModdleElement<BpmnFormalExpression> & { $type: 'bpmn:FormalExpression' };
830
822
  'bpmn:Message': ModdleElement<BpmnMessage> & { $type: 'bpmn:Message' };
831
823
  'bpmn:ItemDefinition': ModdleElement<BpmnItemDefinition> & { $type: 'bpmn:ItemDefinition' };
832
- 'bpmn:FlowElement': ModdleElement<BpmnFlowElement> & { $type: 'bpmn:FlowElement' };
833
824
  'bpmn:SequenceFlow': ModdleElement<BpmnSequenceFlow> & { $type: 'bpmn:SequenceFlow' };
834
- 'bpmn:FlowElementsContainer': ModdleElement<BpmnFlowElementsContainer> & { $type: 'bpmn:FlowElementsContainer' };
835
- 'bpmn:CallableElement': ModdleElement<BpmnCallableElement> & { $type: 'bpmn:CallableElement' };
836
- 'bpmn:FlowNode': ModdleElement<BpmnFlowNode> & { $type: 'bpmn:FlowNode' };
837
825
  'bpmn:CorrelationPropertyRetrievalExpression': ModdleElement<BpmnCorrelationPropertyRetrievalExpression> & { $type: 'bpmn:CorrelationPropertyRetrievalExpression' };
838
826
  'bpmn:CorrelationPropertyBinding': ModdleElement<BpmnCorrelationPropertyBinding> & { $type: 'bpmn:CorrelationPropertyBinding' };
839
827
  'bpmn:Resource': ModdleElement<BpmnResource> & { $type: 'bpmn:Resource' };
@@ -841,12 +829,10 @@ export interface BpmnModdleTypeMap {
841
829
  'bpmn:CorrelationSubscription': ModdleElement<BpmnCorrelationSubscription> & { $type: 'bpmn:CorrelationSubscription' };
842
830
  'bpmn:MessageFlow': ModdleElement<BpmnMessageFlow> & { $type: 'bpmn:MessageFlow' };
843
831
  'bpmn:MessageFlowAssociation': ModdleElement<BpmnMessageFlowAssociation> & { $type: 'bpmn:MessageFlowAssociation' };
844
- 'bpmn:InteractionNode': ModdleElement<BpmnInteractionNode> & { $type: 'bpmn:InteractionNode' };
845
832
  'bpmn:Participant': ModdleElement<BpmnParticipant> & { $type: 'bpmn:Participant' };
846
833
  'bpmn:ParticipantAssociation': ModdleElement<BpmnParticipantAssociation> & { $type: 'bpmn:ParticipantAssociation' };
847
834
  'bpmn:ParticipantMultiplicity': ModdleElement<BpmnParticipantMultiplicity> & { $type: 'bpmn:ParticipantMultiplicity' };
848
835
  'bpmn:Collaboration': ModdleElement<BpmnCollaboration> & { $type: 'bpmn:Collaboration' };
849
- 'bpmn:ChoreographyActivity': ModdleElement<BpmnChoreographyActivity> & { $type: 'bpmn:ChoreographyActivity' };
850
836
  'bpmn:CallChoreography': ModdleElement<BpmnCallChoreography> & { $type: 'bpmn:CallChoreography' };
851
837
  'bpmn:SubChoreography': ModdleElement<BpmnSubChoreography> & { $type: 'bpmn:SubChoreography' };
852
838
  'bpmn:ChoreographyTask': ModdleElement<BpmnChoreographyTask> & { $type: 'bpmn:ChoreographyTask' };
@@ -856,12 +842,9 @@ export interface BpmnModdleTypeMap {
856
842
  'bpmn:Group': ModdleElement<BpmnGroup> & { $type: 'bpmn:Group' };
857
843
  'bpmn:Association': ModdleElement<BpmnAssociation> & { $type: 'bpmn:Association' };
858
844
  'bpmn:Category': ModdleElement<BpmnCategory> & { $type: 'bpmn:Category' };
859
- 'bpmn:Artifact': ModdleElement<BpmnArtifact> & { $type: 'bpmn:Artifact' };
860
845
  'bpmn:CategoryValue': ModdleElement<BpmnCategoryValue> & { $type: 'bpmn:CategoryValue' };
861
- 'bpmn:Activity': ModdleElement<BpmnActivity> & { $type: 'bpmn:Activity' };
862
846
  'bpmn:ServiceTask': ModdleElement<BpmnServiceTask> & { $type: 'bpmn:ServiceTask' };
863
847
  'bpmn:SubProcess': ModdleElement<BpmnSubProcess> & { $type: 'bpmn:SubProcess' };
864
- 'bpmn:LoopCharacteristics': ModdleElement<BpmnLoopCharacteristics> & { $type: 'bpmn:LoopCharacteristics' };
865
848
  'bpmn:MultiInstanceLoopCharacteristics': ModdleElement<BpmnMultiInstanceLoopCharacteristics> & { $type: 'bpmn:MultiInstanceLoopCharacteristics' };
866
849
  'bpmn:StandardLoopCharacteristics': ModdleElement<BpmnStandardLoopCharacteristics> & { $type: 'bpmn:StandardLoopCharacteristics' };
867
850
  'bpmn:CallActivity': ModdleElement<BpmnCallActivity> & { $type: 'bpmn:CallActivity' };
@@ -60,15 +60,5 @@ export interface DiExtension {
60
60
  }
61
61
 
62
62
  export interface DiModdleTypeMap {
63
- 'di:DiagramElement': ModdleElement<DiDiagramElement> & { $type: 'di:DiagramElement' };
64
- 'di:Node': ModdleElement<DiNode> & { $type: 'di:Node' };
65
- 'di:Edge': ModdleElement<DiEdge> & { $type: 'di:Edge' };
66
- 'di:Diagram': ModdleElement<DiDiagram> & { $type: 'di:Diagram' };
67
- 'di:Shape': ModdleElement<DiShape> & { $type: 'di:Shape' };
68
- 'di:Plane': ModdleElement<DiPlane> & { $type: 'di:Plane' };
69
- 'di:LabeledEdge': ModdleElement<DiLabeledEdge> & { $type: 'di:LabeledEdge' };
70
- 'di:LabeledShape': ModdleElement<DiLabeledShape> & { $type: 'di:LabeledShape' };
71
- 'di:Label': ModdleElement<DiLabel> & { $type: 'di:Label' };
72
- 'di:Style': ModdleElement<DiStyle> & { $type: 'di:Style' };
73
63
  'di:Extension': ModdleElement<DiExtension> & { $type: 'di:Extension' };
74
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-moddle",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "description": "A moddle wrapper for BPMN 2.0",
5
5
  "scripts": {
6
6
  "all": "run-s generate-schema lint generate-types test",
@@ -49,7 +49,7 @@
49
49
  "license": "MIT",
50
50
  "sideEffects": false,
51
51
  "devDependencies": {
52
- "@bpmn-io/moddle-types-generator": "^0.2.0",
52
+ "@bpmn-io/moddle-types-generator": "^0.2.1",
53
53
  "@rollup/plugin-json": "^6.1.0",
54
54
  "@rollup/plugin-node-resolve": "^16.0.3",
55
55
  "bpmn-in-color-moddle": "^0.2.0",
@@ -65,7 +65,7 @@
65
65
  "dependencies": {
66
66
  "min-dash": "^5.1.0",
67
67
  "moddle": "^8.2.1",
68
- "moddle-xml": "^12.1.0"
68
+ "moddle-xml": "^12.2.0"
69
69
  },
70
70
  "files": [
71
71
  "dist",