パッケージの詳細

camunda-dmn-js

camunda10.2kMIT3.3.0

Embeddable Camunda modeling distributions based on dmn-js

dmn, dmn13, camunda, zeebe

readme

camunda-dmn-js

CI

Embeddable Camunda modeling distributions based on dmn-js.

Usage

This project is designed to deliver different DMN modeling distributions. Instead of creating custom Modeler implementations based on dmn-js, choose one of the existing packages to mirror the modeling experience of Camunda's modeling products.

Use a pre-packaged distribution

<link rel="stylesheet" href="https://unpkg.com/camunda-dmn-js/dist/assets/camunda-platform-modeler.css" />

<script src="https://unpkg.com/camunda-dmn-js/dist/camunda-platform-modeler.development.js"></script>

or install it via npm

import { CamundaPlatformModeler as DmnModeler } from 'camunda-dmn-js';

import 'camunda-dmn-js/dist/assets/camunda-platform-modeler.css';

into your web-application.

var dmnModeler = new DmnModeler({
  container: '#canvas',
  drd: {
    propertiesPanel: {
      parent: '#properties-container'
    }
  }
});

try {

  await dmnModeler.importXML(someDiagram);

  console.log('success!');
} catch (err) {

  console.error('something went wrong:', err);
}

Checkout the docs to learn more about the available distributions.

Build and Run

Prepare the project by installing all dependencies:

npm install

Then, depending on your use-case, you may run any of the following commands:

# build the library and run all tests
npm run all

# spin up a single local camunda platform modeler instance
npm run start:platform

# run the full development setup
npm run dev

Related

camunda-dmn-js builds on top of a few powerful tools:

  • dmn-js: View and edit DMN 1.3 diagrams in the browser
  • diagram-js: Diagram rendering and editing toolkit

License

MIT

Uses dmn-js licensed under the bpmn.io license.

更新履歴

Changelog

All notable changes to camunda-dmn-js are documented here. We use semantic versioning for releases.

Unreleased

_Note: Yet to be released changes appear here._

3.3.0

  • DEPS: update to dmn-js@17.2.1
  • DEPS: update to dmn-js-properties-panel@3.8.0

Key Changes in Modeling

Key Changes in Properties Panel

Key Changes in Modeling

3.1.1

  • FIX: display only a single version tag field in Camunda 7 (#141)

3.1.0

  • DEPS: update to diagram-js@15.2.4
  • DEPS: update to dmn-js@17.1.0
  • DEPS: update to dmn-js-drd@17.1.0

Key Changes in Modeling

3.0.0

  • DEPS: update to diagram-js@15.2.1
  • DEPS: update to diagram-js-grid@1.1.0
  • DEPS: update to dmn-js@17.0.3
  • DEPS: update to dmn-js-properties-panel@3.6.0

Key Changes in Modeling

Breaking Changes

  • Keyboard is now bound implicitly, and canvas is focusable. Using bindTo configuration or calling keyboard.bind API with node parameter specified now results in a console error and has no effect, cf. (bpmn-io/diagram-js#662).

2.10.2

  • DEPS: update to dmn-js@16.8.2

Key Changes in Modeling

2.10.1

  • DEPS: update to diagram-js@14.11.3

2.10.0

  • DEPS: update to dmn-js@16.8.1

Key Changes in Modeling

2.9.1

2.9.0

2.8.1

  • FIX: include Zeebe properties provider and model extension (#121)
  • DEPS: add zeebe-dmn-moddle@1.0.0

2.8.0

  • DEPS: update to dmn-js-properties-panel@3.5.0

2.7.1

  • FIX: provide BKM and Input Data name in variable suggestions (#117)

2.7.0

  • DEPS: update to dmn-js@16.6.1
  • DEPS: update to dmn-js-properties-panel@3.4.1
  • DEPS: update to diagram-js@14.8.0

Key Changes in Modeling

Key Changes in Properties Panel

2.6.0

  • DEPS: update to dmn-js-properties-panel@3.4.0

2.5.0

  • DEPS: update to dmn-js@16.5.0
  • DEPS: update to dmn-js-properties-panel@3.3.2
  • DEPS: update to min-dash@4.2.1

Key Changes in Modeling

Key Changes in Properties Panel

2.4.0

  • DEPS: update to dmn-js@16.4.0
  • DEPS: update to diagram-js@14.7.1

Key Changes in Modeling

2.3.3

  • DEPS: update to dmn-js@16.3.2
  • DEPS: update to diagram-js@14.5.4

2.3.2

  • DEPS: update to dmn-js@16.3.1
  • DEPS: update to diagram-js@14.5.3

2.3.1

  • FIX: correctly pass boxed expression extensions

2.3.0

  • DEPS: update to dmn-js@16.3.0
  • DEPS: update to diagram-js@14.5.2

Key Changes in Modeling

2.2.0

  • DEPS: update to dmn-js@16.1.0

Key Changes in Modeling

2.1.0

  • DEPS: update to dmn-js@16.0.2
  • DEPS: update to @bpmn-io/properties-panel@3.18.2

2.0.0

  • DEPS: update to dmn-js-properties-panel@3.3.0
  • DEPS: update to diagram-js@14.3.0
  • DEPS: update to dmn-js@16.0.1

Breaking Changes

  • Migrated to diagram-js@14 / bpmn-js@17 which removes touch interaction module, and dependency on unsupported hammerjs package. If you rely on touch interaction, you need to support touch interaction on your own.

1.8.0

  • DEPS: update to diagram-js@13.4.0
  • DEPS: update to dmn-js@15.0.0

Key Changes in Modeling

1.7.0

  • DEPS: update to dmn-js@14.7.1

Key Changes in Modeling

  • FEAT: provide element ID in variable suggestions (#83)

1.6.0

  • DEPS: update to dmn-js-properties-panel@3.2.1
  • DEPS: update to diagram-js@12.8.0

Key Changes in Properties Panel

1.5.0

  • DEPS: update to dmn-js@14.7.0
  • DEPS: update to diagram-js@12.7.2

Key Changes in Modeling

  • FEAT: adjust selection outline to shapes (dmn-js#799)
  • FEAT: implement search in DRD (dmn-js#792)
  • FIX: make literal expression box grow with content (dmn-js#789)
  • FIX: add missing translations (dmn-js#793)

1.4.0

  • DEPS: update to dmn-js@14.5.0
  • DEPS: update to diagram-js@12.5.0

Key Changes in Modeling

  • FEAT: implement variable suggestions (dmn-js#785)

1.3.3

  • DEPS: update to dmn-js@14.4.3

Key Changes in Modeling

  • FIX: make FEEL editor in literal expression save value (dmn-js#786)

1.3.2

  • DEPS: update to dmn-js@14.4.2

Key Changes in Modeling

  • FIX: display literal expression autocomplete in correct position

1.3.1

  • DEPS: update to dmn-js@14.4.1

1.3.0

  • DEPS: update to dmn-js@14.4.0

Key Changes in Modeling

1.2.1

  • DEPS: update to dmn-js@14.3.1

Key Changes in Modeling

  • FIX: display FEEL autocomplete in correct position
  • FIX: increase decision table cell editor line height

1.2.0

  • DEPS: update to dmn-js@14.3.0

Key Changes in Modeling

1.1.0

  • DEPS: bump to dmn-js-properties-panel@3

1.0.0

  • DEPS: bump to dmn-js-properties-panel@2

Breaking Changes

  • Properties panel open state no longer handled within the panel.

0.10.1

  • DEPS: update to diagram-js@12
  • DEPS: update to dmn-js@14.1.5

Key Changes in Modeling

  • FIX: fix crashes when typeRef is not defined

0.10.0

  • FEAT: add grid (#67)
  • DEPS: update to diagram-js@11.12.0
  • DEPS: update to dmn-js@14.1.1
  • DEPS: update to bpmn-io/properties-panel@1.7.0
  • DEPS: update to dmn-js-properties-panel@1.3.2

0.9.0

  • DEPS: update to diagram-js@11.9.0
  • DEPS: update to @bpmn-io/properties-panel@1.3.1
  • DEPS: update to dmn-js@14.1.0

Key Changes in Modeling

  • FEAT: set decision table header as title

0.8.1

  • DEPS: update to dmn-js@14.0.2

0.8.0

  • DEPS: update to dmn-js@14
  • DEPS: update to @bpmn-io/properties-panel@1

Breaking Changes

0.7.0

  • DEPS: update to diagram-js@9.9.0
  • DEPS: update to dmn-js@13.0.0
  • DEPS: update to dmn-js-properties-panel@1.2.1
  • DEPS: update to @bpmn-io/properties-panel@0.22.0
  • DEPS: update to min-dash@4.0.0
  • DEPS: update to min-dom@4.0.0

0.6.1

  • CHORE: remove unused properties-panel peer dependency (#23)

0.6.0

  • DEPS: update to dmn-js@12.3.0 (changelog)
  • DEPS: update to dmn-js-properties-panel@1.1.1 (changelog)
  • DEPS: update to diagram-js@8.9.0 (changelog)

0.5.0

0.4.1

  • DEPS: update to diagram-js@8.7.0 (changelog)

0.4.0

  • FEAT: temporarily disable overview (#18)
  • DEPS: update to dmn-js-properties-panel@1.1.0 (changelog)

0.3.0

  • FEAT: add overview (#2)
  • DEPS: update dependencies

0.2.3

  • DEPS: update to dmn-js-properties-panel@1.0.0-alpha.3

0.2.2

  • DEPS: peer depend on dmn-js

0.2.1

  • DEPS: update to dmn-js-properties-panel@1.0.0-alpha.2
  • DEPS: update to dmn-js@12.1.0

0.2.0

  • FEAT: move disableAdjustOrigin config to common/drd section

0.1.2

  • FIX: move dmn-js-properties-panel to peer dependencies

0.1.1

  • FIX: move inferno and @bpmn-io/properties-panel to peer dependencies

0.1.0

  • CHORE: first release 🎉