chore: 移除 min-dash 使用vben/utils 中的方法
This commit is contained in:
@@ -55,7 +55,6 @@
|
|||||||
"diagram-js": "catalog:",
|
"diagram-js": "catalog:",
|
||||||
"fast-xml-parser": "catalog:",
|
"fast-xml-parser": "catalog:",
|
||||||
"highlight.js": "catalog:",
|
"highlight.js": "catalog:",
|
||||||
"min-dash": "catalog:",
|
|
||||||
"pinia": "catalog:",
|
"pinia": "catalog:",
|
||||||
"steady-xml": "catalog:",
|
"steady-xml": "catalog:",
|
||||||
"tinymce": "catalog:",
|
"tinymce": "catalog:",
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
|
import { assign, forEach, isArray } from '@vben/utils';
|
||||||
|
|
||||||
import { getChildLanes } from 'bpmn-js/lib/features/modeling/util/LaneUtil';
|
import { getChildLanes } from 'bpmn-js/lib/features/modeling/util/LaneUtil';
|
||||||
import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
|
import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
|
||||||
import { isEventSubProcess, isExpanded } from 'bpmn-js/lib/util/DiUtil';
|
import { isEventSubProcess, isExpanded } from 'bpmn-js/lib/util/DiUtil';
|
||||||
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
||||||
import { hasPrimaryModifier } from 'diagram-js/lib/util/Mouse';
|
import { hasPrimaryModifier } from 'diagram-js/lib/util/Mouse';
|
||||||
import { assign, forEach, isArray } from 'min-dash';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A provider for BPMN 2.0 elements context pad
|
* A provider for BPMN 2.0 elements context pad
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
'use strict';
|
import { some } from '@vben/utils';
|
||||||
|
|
||||||
import { some } from 'min-dash';
|
|
||||||
|
|
||||||
// const some = require('min-dash').some
|
|
||||||
// const some = some
|
|
||||||
|
|
||||||
const ALLOWED_TYPES = {
|
const ALLOWED_TYPES = {
|
||||||
FailedJobRetryTimeCycle: [
|
FailedJobRetryTimeCycle: [
|
||||||
@@ -25,7 +20,7 @@ function is(element, type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function exists(element) {
|
function exists(element) {
|
||||||
return element && element.length;
|
return element && element.length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function includesType(collection, type) {
|
function includesType(collection, type) {
|
||||||
|
|||||||
@@ -1,18 +1,9 @@
|
|||||||
'use strict';
|
import { isFunction, isObject, some } from '@vben/utils';
|
||||||
|
|
||||||
import { isFunction, isObject, some } from 'min-dash';
|
|
||||||
|
|
||||||
// const isFunction = isFunction,
|
|
||||||
// isObject = isObject,
|
|
||||||
// some = some
|
|
||||||
// const isFunction = require('min-dash').isFunction,
|
|
||||||
// isObject = require('min-dash').isObject,
|
|
||||||
// some = require('min-dash').some
|
|
||||||
|
|
||||||
const WILDCARD = '*';
|
const WILDCARD = '*';
|
||||||
|
|
||||||
function CamundaModdleExtension(eventBus) {
|
function CamundaModdleExtension(eventBus) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
// eslint-disable-next-line unicorn/no-this-assignment, @typescript-eslint/no-this-alias
|
||||||
const self = this;
|
const self = this;
|
||||||
|
|
||||||
eventBus.on('moddleCopy.canCopyProperty', (context) => {
|
eventBus.on('moddleCopy.canCopyProperty', (context) => {
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
'use strict';
|
import { some } from '@vben/utils';
|
||||||
|
|
||||||
import { some } from 'min-dash';
|
|
||||||
|
|
||||||
// const some = some
|
|
||||||
// const some = require('min-dash').some
|
|
||||||
|
|
||||||
const ALLOWED_TYPES = {
|
const ALLOWED_TYPES = {
|
||||||
FailedJobRetryTimeCycle: [
|
FailedJobRetryTimeCycle: [
|
||||||
@@ -25,7 +20,7 @@ function is(element, type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function exists(element) {
|
function exists(element) {
|
||||||
return element && element.length;
|
return element && element.length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function includesType(collection, type) {
|
function includesType(collection, type) {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
|
import { assign } from '@vben/utils';
|
||||||
|
|
||||||
import PaletteProvider from 'bpmn-js/lib/features/palette/PaletteProvider';
|
import PaletteProvider from 'bpmn-js/lib/features/palette/PaletteProvider';
|
||||||
import { assign } from 'min-dash';
|
|
||||||
|
|
||||||
export default function CustomPalette(
|
export default function CustomPalette(
|
||||||
palette,
|
palette,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { assign } from 'min-dash';
|
import { assign } from '@vben/utils';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A palette provider for BPMN 2.0 elements.
|
* A palette provider for BPMN 2.0 elements.
|
||||||
|
|||||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@@ -405,9 +405,6 @@ catalogs:
|
|||||||
medium-zoom:
|
medium-zoom:
|
||||||
specifier: ^1.1.0
|
specifier: ^1.1.0
|
||||||
version: 1.1.0
|
version: 1.1.0
|
||||||
min-dash:
|
|
||||||
specifier: ^4.2.3
|
|
||||||
version: 4.2.3
|
|
||||||
naive-ui:
|
naive-ui:
|
||||||
specifier: ^2.42.0
|
specifier: ^2.42.0
|
||||||
version: 2.43.1
|
version: 2.43.1
|
||||||
@@ -839,9 +836,6 @@ importers:
|
|||||||
highlight.js:
|
highlight.js:
|
||||||
specifier: 'catalog:'
|
specifier: 'catalog:'
|
||||||
version: 11.11.1
|
version: 11.11.1
|
||||||
min-dash:
|
|
||||||
specifier: 'catalog:'
|
|
||||||
version: 4.2.3
|
|
||||||
pinia:
|
pinia:
|
||||||
specifier: ^3.0.3
|
specifier: ^3.0.3
|
||||||
version: 3.0.3(typescript@5.9.3)(vue@3.5.22(typescript@5.9.3))
|
version: 3.0.3(typescript@5.9.3)(vue@3.5.22(typescript@5.9.3))
|
||||||
|
|||||||
@@ -150,7 +150,6 @@ catalog:
|
|||||||
markmap-toolbar: ^0.17.0
|
markmap-toolbar: ^0.17.0
|
||||||
markmap-view: ^0.16.0
|
markmap-view: ^0.16.0
|
||||||
medium-zoom: ^1.1.0
|
medium-zoom: ^1.1.0
|
||||||
min-dash: ^4.2.3
|
|
||||||
naive-ui: ^2.42.0
|
naive-ui: ^2.42.0
|
||||||
nitropack: ^2.11.13
|
nitropack: ^2.11.13
|
||||||
nprogress: ^0.2.0
|
nprogress: ^0.2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user