cnhis-design-vue 3.1.15-beta.3 → 3.1.15-beta.6
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.
- package/es/packages/big-table/index.d.ts +0 -4
- package/es/packages/big-table/src/BigTable.vue.d.ts +2 -6
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +1 -0
- package/es/packages/big-table/src/bigTableProps.d.ts +0 -1
- package/es/packages/big-table/src/bigTableProps.js +1 -1
- package/es/packages/big-table/src/components/edit-form/edit-date.js +2 -1
- package/es/packages/big-table/src/components/edit-form/edit-select.js +2 -1
- package/es/packages/big-table/src/hooks/useAnnotation.js +2 -1
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +8 -8
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.js +1 -1
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +4 -3
- package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customModeler/index.js +1 -1
- package/es/packages/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.js +2 -2
- package/es/packages/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +3 -3
- package/es/packages/fabric-chart/src/FabricChart.js +5 -1
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +7 -6
- package/es/packages/fabric-chart/src/hooks/useCenter.js +6 -2
- package/es/packages/fabric-chart/src/hooks/useLeft.js +4 -2
- package/es/packages/field-set/index.d.ts +4365 -0
- package/es/packages/field-set/src/FieldSet.js +53 -54
- package/es/packages/field-set/src/FieldSet.vue.d.ts +4365 -0
- package/es/packages/field-set/style/index.css +0 -9
- package/es/packages/form-render/index.d.ts +24 -3
- package/es/packages/form-render/src/FormRender.js +10 -6
- package/es/packages/form-render/src/FormRender.vue.d.ts +24 -3
- package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.d.ts +5 -0
- package/es/packages/form-render/src/components/renderer/combination/hooks/useDeepValidate.js +32 -0
- package/es/packages/form-render/src/components/renderer/{combination.d.ts → combination/index.d.ts} +7 -1
- package/es/packages/form-render/src/components/renderer/combination/index.js +157 -0
- package/es/packages/form-render/src/components/renderer/date.d.ts +2 -2
- package/es/packages/form-render/src/components/renderer/index.js +1 -1
- package/es/packages/form-render/src/components/renderer/radio.js +4 -1
- package/es/packages/form-render/src/components/renderer/select.d.ts +9 -0
- package/es/packages/form-render/src/components/renderer/select.js +5 -1
- package/es/packages/form-render/src/constants/index.d.ts +2 -1
- package/es/packages/form-render/src/hooks/useAnchor.d.ts +7 -6
- package/es/packages/form-render/src/hooks/useAnchor.js +1 -2
- package/es/packages/form-render/src/hooks/useAsyncQueue.d.ts +6 -1
- package/es/packages/form-render/src/hooks/useAsyncQueue.js +11 -2
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +2 -4
- package/es/packages/form-render/src/hooks/useFormContext.d.ts +3 -3
- package/es/packages/form-render/src/hooks/useFormContext.js +15 -3
- package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.d.ts +13 -0
- package/es/packages/form-render/src/hooks/useFormRenderLifeCycle.js +10 -0
- package/es/packages/form-render/src/types/fieldItem.d.ts +8 -0
- package/es/packages/form-render/src/types/index.d.ts +25 -1
- package/es/packages/form-render/src/utils/index.d.ts +3 -3
- package/es/packages/form-render/src/utils/index.js +1 -4
- package/es/packages/index.css +1 -10
- package/es/packages/info-header/index.d.ts +1 -3
- package/es/packages/info-header/src/HiddenContent.js +1 -1
- package/es/packages/info-header/src/HiddenContent.vue.d.ts +1 -3
- package/es/packages/info-header/src/InfoHeader.vue.d.ts +1 -3
- package/es/packages/info-header/style/index.css +1 -1
- package/es/packages/shortcut-setter/index.d.ts +25 -4
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +25 -4
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +2 -2
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +1 -1
- package/package.json +9 -1
- package/es/_virtual/_commonjsHelpers.js +0 -7
- package/es/_virtual/css.escape.js +0 -3
- package/es/_virtual/inherits.js +0 -3
- package/es/_virtual/inherits_browser.js +0 -3
- package/es/node_modules/@formily/path/esm/contexts.js +0 -22
- package/es/node_modules/@formily/path/esm/destructor.js +0 -124
- package/es/node_modules/@formily/path/esm/index.js +0 -579
- package/es/node_modules/@formily/path/esm/matcher.js +0 -199
- package/es/node_modules/@formily/path/esm/parser.js +0 -402
- package/es/node_modules/@formily/path/esm/shared.js +0 -73
- package/es/node_modules/@formily/path/esm/tokenizer.js +0 -287
- package/es/node_modules/@formily/path/esm/tokens.js +0 -240
- package/es/node_modules/@formily/path/esm/types.js +0 -17
- package/es/node_modules/css.escape/css.escape.js +0 -110
- package/es/node_modules/date-fns/esm/_lib/defaultOptions/index.js +0 -6
- package/es/node_modules/date-fns/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +0 -18
- package/es/node_modules/date-fns/esm/_lib/getUTCISOWeek/index.js +0 -17
- package/es/node_modules/date-fns/esm/_lib/getUTCISOWeekYear/index.js +0 -27
- package/es/node_modules/date-fns/esm/_lib/getUTCWeek/index.js +0 -17
- package/es/node_modules/date-fns/esm/_lib/getUTCWeekYear/index.js +0 -38
- package/es/node_modules/date-fns/esm/_lib/requiredArgs/index.js +0 -7
- package/es/node_modules/date-fns/esm/_lib/setUTCDay/index.js +0 -27
- package/es/node_modules/date-fns/esm/_lib/setUTCISODay/index.js +0 -23
- package/es/node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/setUTCWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeek/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCISOWeekYear/index.js +0 -15
- package/es/node_modules/date-fns/esm/_lib/startOfUTCWeek/index.js +0 -25
- package/es/node_modules/date-fns/esm/_lib/startOfUTCWeekYear/index.js +0 -21
- package/es/node_modules/date-fns/esm/_lib/toInteger/index.js +0 -15
- package/es/node_modules/date-fns/esm/compareAsc/index.js +0 -52
- package/es/node_modules/date-fns/esm/constants/index.js +0 -40
- package/es/node_modules/date-fns/esm/differenceInCalendarDays/index.js +0 -49
- package/es/node_modules/date-fns/esm/differenceInCalendarMonths/index.js +0 -35
- package/es/node_modules/date-fns/esm/differenceInCalendarYears/index.js +0 -33
- package/es/node_modules/date-fns/esm/differenceInDays/index.js +0 -86
- package/es/node_modules/date-fns/esm/differenceInMonths/index.js +0 -59
- package/es/node_modules/date-fns/esm/differenceInYears/index.js +0 -43
- package/es/node_modules/date-fns/esm/endOfDay/index.js +0 -30
- package/es/node_modules/date-fns/esm/endOfMonth/index.js +0 -32
- package/es/node_modules/date-fns/esm/isLastDayOfMonth/index.js +0 -30
- package/es/node_modules/date-fns/esm/parse/_lib/Parser.js +0 -32
- package/es/node_modules/date-fns/esm/parse/_lib/Setter.js +0 -37
- package/es/node_modules/date-fns/esm/parse/_lib/constants.js +0 -48
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMMidnightParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/AMPMParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DateParser.js +0 -55
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/DayPeriodParser.js +0 -56
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/EraParser.js +0 -53
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ExtendedYearParser.js +0 -30
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/FractionOfSecondParser.js +0 -29
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0To11Parser.js +0 -48
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour0to23Parser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1To24Parser.js +0 -42
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/Hour1to12Parser.js +0 -50
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISODayParser.js +0 -99
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneParser.js +0 -46
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -46
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekParser.js +0 -43
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/ISOWeekYearParser.js +0 -33
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalDayParser.js +0 -96
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekParser.js +0 -43
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/LocalWeekYearParser.js +0 -61
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/MinuteParser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/MonthParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/QuarterParser.js +0 -73
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/SecondParser.js +0 -41
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -96
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneMonthParser.js +0 -80
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/StandAloneQuarterParser.js +0 -73
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -26
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/TimestampSecondsParser.js +0 -26
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/YearParser.js +0 -66
- package/es/node_modules/date-fns/esm/parse/_lib/parsers/index.js +0 -109
- package/es/node_modules/date-fns/esm/parse/_lib/utils.js +0 -133
- package/es/node_modules/date-fns/esm/startOfDay/index.js +0 -30
- package/es/node_modules/date-fns/esm/toDate/index.js +0 -55
- package/es/node_modules/diagram-js/lib/command/CommandInterceptor.js +0 -139
- package/es/node_modules/diagram-js/lib/draw/BaseRenderer.js +0 -88
- package/es/node_modules/diagram-js/lib/features/popup-menu/PopupMenu.js +0 -591
- package/es/node_modules/diagram-js/lib/features/rules/RuleProvider.js +0 -88
- package/es/node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.js +0 -120
- package/es/node_modules/diagram-js/lib/navigation/movecanvas/index.js +0 -8
- package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.js +0 -227
- package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.js +0 -24
- package/es/node_modules/diagram-js/lib/util/ClickTrap.js +0 -23
- package/es/node_modules/diagram-js/lib/util/Cursor.js +0 -20
- package/es/node_modules/diagram-js/lib/util/Event.js +0 -22
- package/es/node_modules/diagram-js/lib/util/Math.js +0 -9
- package/es/node_modules/diagram-js/lib/util/Mouse.js +0 -30
- package/es/node_modules/diagram-js/lib/util/Platform.js +0 -5
- package/es/node_modules/diagram-js/lib/util/PositionUtil.js +0 -8
- package/es/node_modules/diagram-js/lib/util/RenderUtil.js +0 -25
- package/es/node_modules/diagram-js/lib/util/SvgTransformUtil.js +0 -48
- package/es/node_modules/ids/dist/index.esm.js +0 -164
- package/es/node_modules/inherits/inherits.js +0 -19
- package/es/node_modules/inherits/inherits_browser.js +0 -38
- package/es/node_modules/inherits-browser/dist/index.es.js +0 -3
- package/es/node_modules/min-dash/dist/index.esm.js +0 -169
- package/es/node_modules/min-dom/dist/index.esm.js +0 -588
- package/es/node_modules/tiny-svg/dist/index.esm.js +0 -525
- package/es/packages/form-render/src/components/renderer/combination.js +0 -171
|
@@ -11,7 +11,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
annotation: {
|
|
13
13
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
14
|
-
default: () => {};
|
|
15
14
|
};
|
|
16
15
|
showFooter: BooleanConstructor;
|
|
17
16
|
sumData: {
|
|
@@ -2597,7 +2596,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2597
2596
|
};
|
|
2598
2597
|
annotation: {
|
|
2599
2598
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
2600
|
-
default: () => {};
|
|
2601
2599
|
};
|
|
2602
2600
|
showFooter: BooleanConstructor;
|
|
2603
2601
|
sumData: {
|
|
@@ -4085,7 +4083,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4085
4083
|
};
|
|
4086
4084
|
annotation: {
|
|
4087
4085
|
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
4088
|
-
default: () => {};
|
|
4089
4086
|
};
|
|
4090
4087
|
showFooter: BooleanConstructor;
|
|
4091
4088
|
sumData: {
|
|
@@ -4282,7 +4279,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4282
4279
|
columnConfig: Record<string, any>;
|
|
4283
4280
|
menuConfig: Record<string, any>;
|
|
4284
4281
|
maxCheckSize: number;
|
|
4285
|
-
annotation: import("../../../es/src/types").AnyObject;
|
|
4286
4282
|
sumData: Record<string, any>;
|
|
4287
4283
|
avgData: Record<string, any>;
|
|
4288
4284
|
refreshRow: number;
|
|
@@ -9,7 +9,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
};
|
|
10
10
|
annotation: {
|
|
11
11
|
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
12
|
-
default: () => {};
|
|
13
12
|
};
|
|
14
13
|
showFooter: BooleanConstructor;
|
|
15
14
|
sumData: {
|
|
@@ -1162,7 +1161,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1162
1161
|
paddingMedium: string;
|
|
1163
1162
|
paddingLarge: string;
|
|
1164
1163
|
paddingRoundTiny: string;
|
|
1165
|
-
paddingRoundSmall: string;
|
|
1164
|
+
paddingRoundSmall: string;
|
|
1165
|
+
paddingRoundMedium: string; /**
|
|
1166
1166
|
* 初始化props
|
|
1167
1167
|
* @param {*} unionItem
|
|
1168
1168
|
* @param {*} row
|
|
@@ -1170,7 +1170,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1170
1170
|
* @param {*} $rowIndex
|
|
1171
1171
|
* @returns
|
|
1172
1172
|
*/
|
|
1173
|
-
paddingRoundMedium: string;
|
|
1174
1173
|
paddingRoundLarge: string;
|
|
1175
1174
|
iconMarginTiny: string;
|
|
1176
1175
|
iconMarginSmall: string;
|
|
@@ -2602,7 +2601,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2602
2601
|
};
|
|
2603
2602
|
annotation: {
|
|
2604
2603
|
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
2605
|
-
default: () => {};
|
|
2606
2604
|
};
|
|
2607
2605
|
showFooter: BooleanConstructor;
|
|
2608
2606
|
sumData: {
|
|
@@ -4108,7 +4106,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4108
4106
|
};
|
|
4109
4107
|
annotation: {
|
|
4110
4108
|
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
4111
|
-
default: () => {};
|
|
4112
4109
|
};
|
|
4113
4110
|
showFooter: BooleanConstructor;
|
|
4114
4111
|
sumData: {
|
|
@@ -4305,7 +4302,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4305
4302
|
columnConfig: Record<string, any>;
|
|
4306
4303
|
menuConfig: Record<string, any>;
|
|
4307
4304
|
maxCheckSize: number;
|
|
4308
|
-
annotation: import("../../../src/types").AnyObject;
|
|
4309
4305
|
sumData: Record<string, any>;
|
|
4310
4306
|
avgData: Record<string, any>;
|
|
4311
4307
|
refreshRow: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const bigTableProps = {
|
|
2
2
|
data: { type: Array, default: () => [] },
|
|
3
3
|
maxCheckSize: { type: Number, default: 0 },
|
|
4
|
-
annotation: { type: Object
|
|
4
|
+
annotation: { type: Object },
|
|
5
5
|
showFooter: Boolean,
|
|
6
6
|
sumData: { type: Object, default: () => ({}) },
|
|
7
7
|
avgData: { type: Object, default: () => ({}) },
|
|
@@ -108,7 +108,8 @@ var EditDate = defineComponent({
|
|
|
108
108
|
disabled: props.col.disabled || false,
|
|
109
109
|
valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
|
|
110
110
|
isDateDisabled: customDateDisabledDecorator(props.col.isDateDisabled) || isDateDisabled,
|
|
111
|
-
placeholder: props.col.placeholder || "\u8BF7\u9009\u62E9"
|
|
111
|
+
placeholder: props.col.placeholder || "\u8BF7\u9009\u62E9",
|
|
112
|
+
...props.col.componentProps || {}
|
|
112
113
|
};
|
|
113
114
|
if (config.type.includes("time")) {
|
|
114
115
|
config.isTimeDisabled = customDateDisabledDecorator(props.col.isTimeDisabled) || isTimeDisabled;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { createVNode } from 'vue';
|
|
2
2
|
import { isObject } from '@vue/shared';
|
|
3
|
+
import { isBoolean } from 'lodash-es';
|
|
3
4
|
import Annotation from '../../../annotation-edit/index.js';
|
|
4
5
|
|
|
5
6
|
function useAnnotation(props) {
|
|
6
7
|
function renderAnnotation(columnConfig) {
|
|
7
|
-
if (!isObject(props.annotation))
|
|
8
|
+
if (!isObject(props.annotation) || isBoolean(columnConfig.annotation) && !columnConfig.annotation)
|
|
8
9
|
return null;
|
|
9
10
|
return createVNode("section", {
|
|
10
11
|
"class": "big-table__annotationWrapper"
|
|
@@ -3,14 +3,14 @@ import 'bpmn-js/dist/assets/diagram-js.css';
|
|
|
3
3
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
|
|
4
4
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
|
|
5
5
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
|
|
6
|
-
import { attr } from '
|
|
6
|
+
import { attr } from 'tiny-svg';
|
|
7
7
|
import { useMessage } from 'naive-ui';
|
|
8
8
|
import axios from 'axios';
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import BpmnViewer from 'bpmn-js/lib/Viewer';
|
|
11
11
|
import ZoomScroll from './custom/customOtherModule/zoomScroll.js';
|
|
12
12
|
import ModelingModule from 'bpmn-js/lib/features/modeling';
|
|
13
|
-
import MoveCanvasModule from '
|
|
13
|
+
import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas';
|
|
14
14
|
import customViewerRenderer from './custom/customOtherModule/customViewerRenderer.js';
|
|
15
15
|
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.js';
|
|
16
16
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import inherits from '
|
|
2
|
-
import { assign, forEach, isObject } from '
|
|
3
|
-
import BaseRenderer from '
|
|
1
|
+
import inherits from 'inherits';
|
|
2
|
+
import { assign, forEach, isObject } from 'min-dash';
|
|
3
|
+
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|
|
4
4
|
import { isExpanded, isEventSubProcess } from 'bpmn-js/lib/util/DiUtil';
|
|
5
5
|
import { getLabel } from 'bpmn-js/lib/features/label-editing/LabelUtil';
|
|
6
6
|
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
|
7
|
-
import { createLine } from '
|
|
7
|
+
import { createLine } from 'diagram-js/lib/util/RenderUtil';
|
|
8
8
|
import { getCirclePath, getRoundRectPath, getDiamondPath, getRectPath, getFillColor, getStrokeColor, getSemantic, getLabelColor, getDi, isCollection, isThrowEvent, isTypedEvent } from 'bpmn-js/lib/draw/BpmnRenderUtil';
|
|
9
|
-
import { query } from '
|
|
10
|
-
import { attr, create, append, classes } from '
|
|
11
|
-
import { rotate, transform, translate } from '
|
|
12
|
-
import Ids from '
|
|
9
|
+
import { query } from 'min-dom';
|
|
10
|
+
import { attr, create, append, classes } from 'tiny-svg';
|
|
11
|
+
import { rotate, transform, translate } from 'diagram-js/lib/util/SvgTransformUtil';
|
|
12
|
+
import Ids from 'ids';
|
|
13
13
|
|
|
14
14
|
var RENDERER_IDS = new Ids();
|
|
15
15
|
var TASK_BORDER_RADIUS = 10;
|
package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { assign, isArray, forEach } from '
|
|
1
|
+
import { assign, isArray, forEach } from 'min-dash';
|
|
2
2
|
import { is } from 'bpmn-js/lib/util/ModelUtil';
|
|
3
3
|
import { isExpanded, isEventSubProcess } from 'bpmn-js/lib/util/DiUtil';
|
|
4
4
|
import { isAny } from 'bpmn-js/lib/features/modeling/util/ModelingUtil';
|
|
5
5
|
import { getChildLanes } from 'bpmn-js/lib/features/modeling/util/LaneUtil';
|
|
6
|
-
import { hasPrimaryModifier } from '
|
|
6
|
+
import { hasPrimaryModifier } from 'diagram-js/lib/util/Mouse';
|
|
7
7
|
|
|
8
8
|
function ContextPadProvider(config, injector, eventBus, contextPad, modeling, elementFactory, connect, create, popupMenu, canvas, rules, translate, elementRegistry, bpmnFactory, copyPaste, clipboard, moddle) {
|
|
9
9
|
config = config || {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { assign } from '
|
|
1
|
+
import { assign } from 'min-dash';
|
|
2
2
|
|
|
3
3
|
function PaletteProvider(palette, create, elementFactory, globalConnect, bpmnFactory, spaceTool, lassoTool, handTool, translate, modeling, moddle) {
|
|
4
4
|
this.create = create;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import inherits from '
|
|
2
|
-
import BaseRenderer from '
|
|
1
|
+
import inherits from 'inherits';
|
|
2
|
+
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|
|
3
3
|
import { getFillColor, getStrokeColor } from 'bpmn-js/lib/draw/BpmnRenderUtil';
|
|
4
|
-
import
|
|
4
|
+
import 'min-dash';
|
|
5
|
+
import { classes, create, attr, append } from 'tiny-svg';
|
|
5
6
|
|
|
6
7
|
function CustomRenderer(config, eventBus, styles, textRenderer, bpmnRenderer, modeling, customPathMap) {
|
|
7
8
|
BaseRenderer.call(this, eventBus, 2e3);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import inherits from '
|
|
2
|
-
import RuleProvider from '
|
|
1
|
+
import inherits from 'inherits';
|
|
2
|
+
import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
|
|
3
3
|
|
|
4
4
|
function CustomRules(eventBus, elementRegistry) {
|
|
5
5
|
this.elementRegistry = elementRegistry;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import PopupMenu from '
|
|
2
|
-
import { forEach, omit, isFunction } from '
|
|
1
|
+
import PopupMenu from 'diagram-js/lib/features/popup-menu/PopupMenu.js';
|
|
2
|
+
import { forEach, omit, isFunction } from 'min-dash';
|
|
3
3
|
|
|
4
4
|
var CustomPopupMenu = {
|
|
5
5
|
__init__: ["popupMenu"],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ZoomScrollModule from 'diagram-js/lib/navigation/zoomscroll/ZoomScroll';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
ZoomScrollModule.prototype.scroll = () => {
|
|
4
4
|
};
|
|
5
5
|
var ZoomScroll = {
|
|
6
6
|
__init__: ["zoomScroll"],
|
|
7
|
-
zoomScroll: ["type",
|
|
7
|
+
zoomScroll: ["type", ZoomScrollModule]
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { ZoomScroll as default };
|
|
@@ -19,7 +19,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
19
19
|
data: null,
|
|
20
20
|
addRenderItem: null
|
|
21
21
|
},
|
|
22
|
-
emits: [
|
|
22
|
+
emits: [
|
|
23
|
+
"change",
|
|
24
|
+
"add",
|
|
25
|
+
"select"
|
|
26
|
+
],
|
|
23
27
|
setup(__props, { expose, emit: emits }) {
|
|
24
28
|
const props = __props;
|
|
25
29
|
const defaultHeight = 15;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
1
2
|
import { IData, IDate, IPointType } from './interface';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
data: {
|
|
@@ -152,13 +153,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
153
|
default: () => never[];
|
|
153
154
|
};
|
|
154
155
|
point: {
|
|
155
|
-
type:
|
|
156
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
156
157
|
};
|
|
157
158
|
propItems: {
|
|
158
|
-
type:
|
|
159
|
+
type: PropType<import("./interface").IPropItems>;
|
|
159
160
|
};
|
|
160
161
|
target: {
|
|
161
|
-
type:
|
|
162
|
+
type: PropType<any>;
|
|
162
163
|
};
|
|
163
164
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:show" | "clickMenu")[], "clickMenu" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
164
165
|
show: {
|
|
@@ -170,13 +171,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
171
|
default: () => never[];
|
|
171
172
|
};
|
|
172
173
|
point: {
|
|
173
|
-
type:
|
|
174
|
+
type: PropType<import("./interface").ICoordinateValue>;
|
|
174
175
|
};
|
|
175
176
|
propItems: {
|
|
176
|
-
type:
|
|
177
|
+
type: PropType<import("./interface").IPropItems>;
|
|
177
178
|
};
|
|
178
179
|
target: {
|
|
179
|
-
type:
|
|
180
|
+
type: PropType<any>;
|
|
180
181
|
};
|
|
181
182
|
}>> & {
|
|
182
183
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
@@ -129,6 +129,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function setCanvasEvent() {
|
|
132
|
+
if (!propItems.event.evented)
|
|
133
|
+
return;
|
|
132
134
|
canvas.value.on("mouse:up", (event) => {
|
|
133
135
|
var _a;
|
|
134
136
|
if (event.button === 3) {
|
|
@@ -157,7 +159,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
157
159
|
title: v.title,
|
|
158
160
|
unit: v.unit,
|
|
159
161
|
type: v.bigType,
|
|
160
|
-
dataIndex: v.dataIndex
|
|
162
|
+
dataIndex: v.dataIndex,
|
|
163
|
+
key: v.key
|
|
161
164
|
},
|
|
162
165
|
pointer: event.pointer
|
|
163
166
|
});
|
|
@@ -338,7 +341,8 @@ function useCenter(canvas, propItems, emits, cumputedX, cumputedY, getXValue, ge
|
|
|
338
341
|
coolLine,
|
|
339
342
|
coolPoint,
|
|
340
343
|
lockMovementX: true,
|
|
341
|
-
...pointAttr
|
|
344
|
+
...pointAttr,
|
|
345
|
+
...propItems.event
|
|
342
346
|
};
|
|
343
347
|
if (previousLine) {
|
|
344
348
|
point = drawPoint(type, {
|
|
@@ -195,10 +195,12 @@ ${item.title.slice(-2)}`,
|
|
|
195
195
|
title: item.title,
|
|
196
196
|
unit: item.unit,
|
|
197
197
|
type: item.bigType,
|
|
198
|
-
dataIndex: item.dataIndex
|
|
198
|
+
dataIndex: item.dataIndex,
|
|
199
|
+
key: item.key
|
|
199
200
|
},
|
|
200
201
|
originLeft: leftX,
|
|
201
|
-
originTop: topY - (text.height || 30) / 2
|
|
202
|
+
originTop: topY - (text.height || 30) / 2,
|
|
203
|
+
...propItems.event
|
|
202
204
|
});
|
|
203
205
|
topY -= text.height || 30;
|
|
204
206
|
setPointEvent(icon);
|