dmn-js-shared
Advanced tools
Comparing version 2.0.0-alpha6 to 2.0.0-alpha7
@@ -5,14 +5,15 @@ import EventBus from 'diagram-js/lib/core/EventBus'; | ||
import domify from 'min-dom/lib/domify'; | ||
import { | ||
domify, | ||
query as domQuery, | ||
remove as domRemove | ||
} from 'min-dom'; | ||
import domQuery from 'min-dom/lib/query'; | ||
import domRemove from 'min-dom/lib/remove'; | ||
import { | ||
assign, | ||
debounce, | ||
isNumber | ||
} from 'min-dash'; | ||
import debounce from 'lodash/function/debounce'; | ||
import isNumber from 'lodash/lang/isNumber'; | ||
import assign from 'lodash/object/assign'; | ||
const DEFAULT_CONTAINER_OPTIONS = { | ||
@@ -292,3 +293,3 @@ width: '100%', | ||
_viewsChanged() { | ||
_viewsChanged = () => { | ||
this._emit('views.changed', { | ||
@@ -295,0 +296,0 @@ views: this._views, |
@@ -1,3 +0,5 @@ | ||
import isFunction from 'lodash/lang/isFunction'; | ||
import isNumber from 'lodash/lang/isNumber'; | ||
import { | ||
isFunction, | ||
isNumber | ||
} from 'min-dash'; | ||
@@ -4,0 +6,0 @@ const DEFAULT_PRIORITY = 1000; |
@@ -1,2 +0,2 @@ | ||
import di from 'didi'; | ||
import { Injector } from 'didi'; | ||
@@ -98,3 +98,3 @@ import core from './core'; | ||
var injector = new di.Injector(modules); | ||
var injector = new Injector(modules); | ||
@@ -101,0 +101,0 @@ components.forEach(function(c) { |
import { Component } from 'inferno'; | ||
import { groupBy } from 'min-dash/lib/collection'; | ||
import { groupBy } from 'min-dash'; | ||
@@ -5,0 +5,0 @@ const RADIO = 'radio'; |
@@ -1,3 +0,5 @@ | ||
import { debounce } from 'min-dash/lib/fn'; | ||
import { isNumber } from 'min-dash/lib/lang'; | ||
import { | ||
debounce, | ||
isNumber | ||
} from 'min-dash'; | ||
@@ -4,0 +6,0 @@ const DEFAULT_DEBOUNCE_TIME = 300; |
@@ -1,2 +0,2 @@ | ||
import { forEach } from 'min-dash/lib/collection'; | ||
import { forEach } from 'min-dash'; | ||
@@ -3,0 +3,0 @@ import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor'; |
@@ -1,7 +0,6 @@ | ||
import { reduce } from 'min-dash/lib/collection'; | ||
import { | ||
isObject, | ||
isDefined | ||
} from 'min-dash/lib/lang'; | ||
isDefined, | ||
reduce | ||
} from 'min-dash'; | ||
@@ -8,0 +7,0 @@ import { |
@@ -1,3 +0,5 @@ | ||
import find from 'lodash/collection/find'; | ||
import some from 'lodash/collection/some'; | ||
import { | ||
find, | ||
some | ||
} from 'min-dash'; | ||
@@ -4,0 +6,0 @@ import { is } from './ModelUtil'; |
'use strict'; | ||
var any = require('lodash/collection/any'); | ||
import { some } from 'min-dash'; | ||
@@ -13,3 +13,3 @@ /** | ||
*/ | ||
function is(element, type) { | ||
export function is(element, type) { | ||
var bo = getBusinessObject(element); | ||
@@ -20,19 +20,20 @@ | ||
module.exports.is = is; | ||
function isInput(element) { | ||
export function isInput(element) { | ||
return is(element, 'dmn:InputClause'); | ||
} | ||
module.exports.isInput = isInput; | ||
function isOutput(element) { | ||
export function isOutput(element) { | ||
return is(element, 'dmn:OutputClause'); | ||
} | ||
module.exports.isOutput = isOutput; | ||
function isRule(element) { | ||
return is(element, 'dmn:DecisionRule'); | ||
} | ||
module.exports.isRule = isRule; | ||
/** | ||
@@ -45,16 +46,12 @@ * Return the business object for a given element. | ||
*/ | ||
function getBusinessObject(element) { | ||
export function getBusinessObject(element) { | ||
return (element && element.businessObject) || element; | ||
} | ||
module.exports.getBusinessObject = getBusinessObject; | ||
function getName(element) { | ||
export function getName(element) { | ||
return getBusinessObject(element).name; | ||
} | ||
module.exports.getName = getName; | ||
/** | ||
@@ -68,8 +65,6 @@ * Return true if element has any of the given types. | ||
*/ | ||
function isAny(element, types) { | ||
return any(types, function(t) { | ||
export function isAny(element, types) { | ||
return some(types, function(t) { | ||
return is(element, t); | ||
}); | ||
} | ||
module.exports.isAny = isAny; |
{ | ||
"name": "dmn-js-shared", | ||
"description": "Shared components used by dmn-js", | ||
"version": "2.0.0-alpha6", | ||
"version": "2.0.0-alpha7", | ||
"scripts": { | ||
@@ -15,8 +15,9 @@ "test": "karma start", | ||
"dependencies": { | ||
"diagram-js": "^0.28.2", | ||
"didi": "^0.1.1", | ||
"dmn-moddle": "^2.0.3", | ||
"diagram-js": "^0.29.0", | ||
"didi": "^3.0.0", | ||
"dmn-moddle": "^3.0.0", | ||
"ids": "^0.2.0", | ||
"inferno": "^4.0.0", | ||
"min-dash": "^1.1.0", | ||
"min-dash": "^2.2.0", | ||
"min-dom": "^2.0.0", | ||
"selection-ranges": "^1.2.3", | ||
@@ -23,0 +24,0 @@ "selection-update": "^0.1.2" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1944
54613
9
+ Addedmin-dom@^2.0.0
+ Addeddiagram-js@0.29.2(transitive)
+ Addeddidi@3.2.0(transitive)
+ Addeddmn-moddle@3.0.1(transitive)
+ Addedmin-dash@2.4.0(transitive)
+ Addedmin-dom@2.2.0(transitive)
+ Addedmoddle@3.0.0(transitive)
+ Addedmoddle-xml@5.0.2(transitive)
+ Addedsaxen@7.0.1(transitive)
- Removeddiagram-js@0.28.3(transitive)
- Removeddidi@0.1.1(transitive)
- Removeddmn-moddle@2.0.3(transitive)
- Removedlodash@3.10.1(transitive)
- Removedmin-dash@1.1.0(transitive)
- Removedmin-dom@1.0.0(transitive)
- Removedmoddle@2.0.0(transitive)
- Removedmoddle-xml@4.1.4(transitive)
- Removedsaxen@5.7.0(transitive)
Updateddiagram-js@^0.29.0
Updateddidi@^3.0.0
Updateddmn-moddle@^3.0.0
Updatedmin-dash@^2.2.0