cnhis-design-vue 3.1.15-beta.1 → 3.1.15-beta.10
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/annotation-edit/src/AnnotationEdit.js +2 -1
- package/es/packages/big-table/index.d.ts +8 -11
- package/es/packages/big-table/src/BigTable.vue.d.ts +24 -19
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +17 -11
- package/es/packages/big-table/src/bigTableProps.d.ts +4 -3
- 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/components/edit-form/edit-separate.js +8 -1
- package/es/packages/big-table/src/components/edit-form/edit-separate.vue.d.ts +2 -1
- package/es/packages/big-table/src/hooks/useAnnotation.d.ts +4 -0
- package/es/packages/big-table/src/hooks/useAnnotation.js +21 -0
- package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +7 -2
- package/es/packages/big-table/src/hooks/useEdit.d.ts +2 -1
- package/es/packages/big-table/style/index.css +27 -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/button-print/src/utils/print.d.ts +1 -1
- package/es/packages/button-print/src/utils/print.js +1 -1
- package/es/packages/fabric-chart/index.d.ts +1 -0
- package/es/packages/fabric-chart/src/FabricChart.js +17 -17
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +12 -10
- package/es/packages/fabric-chart/src/hooks/useCenter.js +7 -5
- package/es/packages/fabric-chart/src/hooks/useCumputedPoint.js +4 -2
- package/es/packages/fabric-chart/src/hooks/useDraw.js +1 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +5 -4
- 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-config/index.d.ts +12111 -0
- package/es/packages/form-config/index.js +10 -0
- package/es/packages/form-config/src/FormConfig.js +113 -0
- package/es/packages/form-config/src/FormConfig.vue.d.ts +12113 -0
- package/es/packages/form-config/src/components/FormConfigCreator.js +97 -0
- package/es/packages/form-config/src/components/FormConfigCreator.vue.d.ts +5094 -0
- package/es/packages/form-config/src/components/FormConfigEdit.js +81 -0
- package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +3591 -0
- package/es/packages/form-config/src/constants/index.d.ts +28 -0
- package/es/packages/form-config/src/constants/index.js +28 -0
- package/es/packages/form-config/src/hooks/index.d.ts +2 -0
- package/es/packages/form-config/src/hooks/index.js +2 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.d.ts +6 -0
- package/es/packages/form-config/src/hooks/useConfigurationField.js +103 -0
- package/es/packages/form-config/src/hooks/usePresetRenderer.d.ts +5 -0
- package/es/packages/form-config/src/hooks/usePresetRenderer.js +117 -0
- package/es/packages/form-config/src/hooks/useSortable.d.ts +11 -0
- package/es/packages/form-config/src/hooks/useSortable.js +31 -0
- package/es/packages/form-config/src/types/index.d.ts +18 -0
- package/es/packages/form-config/src/types/index.js +1 -0
- package/es/packages/form-config/style/index.css +108 -0
- 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/cascader.js +7 -7
- 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/complex.d.ts +2 -0
- package/es/packages/form-render/src/components/renderer/complex.js +2 -5
- package/es/packages/form-render/src/components/renderer/date.d.ts +29 -0
- package/es/packages/form-render/src/components/renderer/date.js +63 -56
- package/es/packages/form-render/src/components/renderer/formItem.js +3 -3
- 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 +28 -17
- 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 +12 -7
- package/es/packages/form-render/src/hooks/useCommonInjection.d.ts +6 -0
- package/es/packages/form-render/src/hooks/useCommonInjection.js +19 -0
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +4 -5
- package/es/packages/form-render/src/hooks/useFormContext.d.ts +3 -3
- package/es/packages/form-render/src/hooks/useFormContext.js +21 -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 +16 -0
- package/es/packages/form-render/src/types/index.d.ts +30 -2
- package/es/packages/form-render/src/utils/index.d.ts +7 -5
- package/es/packages/form-render/src/utils/index.js +59 -11
- package/es/packages/form-render/style/index.css +11 -10
- package/es/packages/form-table/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/packages/index.css +147 -21
- package/es/packages/index.d.ts +3 -1
- package/es/packages/index.js +4 -1
- 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-provider/index.d.ts +2 -11
- package/es/packages/shortcut-provider/src/ShortcutProvider.js +1 -5
- package/es/packages/shortcut-provider/src/ShortcutProvider.vue.d.ts +2 -11
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.d.ts +11 -8
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.js +44 -28
- package/es/packages/shortcut-provider/src/types/index.d.ts +32 -4
- package/es/packages/shortcut-provider/src/utils/index.d.ts +3 -0
- package/es/packages/shortcut-provider/src/utils/index.js +15 -5
- package/es/packages/shortcut-setter/index.d.ts +32 -9
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +32 -9
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +8 -6
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +8 -6
- package/es/src/utils/state.d.ts +29 -0
- package/es/src/utils/state.js +44 -0
- package/package.json +10 -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 -168
|
@@ -36,7 +36,8 @@ var script = defineComponent({
|
|
|
36
36
|
});
|
|
37
37
|
const isEdit = ref(false);
|
|
38
38
|
let clickTimer;
|
|
39
|
-
function iconClick() {
|
|
39
|
+
function iconClick(evt) {
|
|
40
|
+
evt.stopPropagation();
|
|
40
41
|
clearTimeout(clickTimer);
|
|
41
42
|
if (showPopper.value && isEdit.value) {
|
|
42
43
|
showPopper.value = false;
|
|
@@ -9,9 +9,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
9
9
|
type: NumberConstructor;
|
|
10
10
|
default: number;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
type:
|
|
14
|
-
default: boolean;
|
|
12
|
+
annotation: {
|
|
13
|
+
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
15
14
|
};
|
|
16
15
|
showFooter: BooleanConstructor;
|
|
17
16
|
sumData: {
|
|
@@ -2595,9 +2594,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2595
2594
|
type: NumberConstructor;
|
|
2596
2595
|
default: number;
|
|
2597
2596
|
};
|
|
2598
|
-
|
|
2599
|
-
type:
|
|
2600
|
-
default: boolean;
|
|
2597
|
+
annotation: {
|
|
2598
|
+
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
2601
2599
|
};
|
|
2602
2600
|
showFooter: BooleanConstructor;
|
|
2603
2601
|
sumData: {
|
|
@@ -2945,7 +2943,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2945
2943
|
maskUp: (e: any) => void;
|
|
2946
2944
|
setGroupTreeExpand: () => void;
|
|
2947
2945
|
resetTableInlineEditStatus: () => false | undefined;
|
|
2948
|
-
|
|
2946
|
+
renderAnnotation: (columnConfig: import("../../../es/src/types").AnyObject) => JSX.Element | null;
|
|
2947
|
+
toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
|
|
2949
2948
|
triggerExpand: (e: any, isExpand: any) => void;
|
|
2950
2949
|
getOtherConfigInit: () => any;
|
|
2951
2950
|
refreshTable: () => void;
|
|
@@ -4082,9 +4081,8 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4082
4081
|
type: NumberConstructor;
|
|
4083
4082
|
default: number;
|
|
4084
4083
|
};
|
|
4085
|
-
|
|
4086
|
-
type:
|
|
4087
|
-
default: boolean;
|
|
4084
|
+
annotation: {
|
|
4085
|
+
type: import("vue").PropType<import("../../../es/src/types").AnyObject>;
|
|
4088
4086
|
};
|
|
4089
4087
|
showFooter: BooleanConstructor;
|
|
4090
4088
|
sumData: {
|
|
@@ -4281,7 +4279,6 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4281
4279
|
columnConfig: Record<string, any>;
|
|
4282
4280
|
menuConfig: Record<string, any>;
|
|
4283
4281
|
maxCheckSize: number;
|
|
4284
|
-
checkboxBindRowClick: boolean;
|
|
4285
4282
|
sumData: Record<string, any>;
|
|
4286
4283
|
avgData: Record<string, any>;
|
|
4287
4284
|
refreshRow: number;
|
|
@@ -7,9 +7,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: NumberConstructor;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
type:
|
|
12
|
-
default: boolean;
|
|
10
|
+
annotation: {
|
|
11
|
+
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
13
12
|
};
|
|
14
13
|
showFooter: BooleanConstructor;
|
|
15
14
|
sumData: {
|
|
@@ -1163,7 +1162,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1163
1162
|
paddingLarge: string;
|
|
1164
1163
|
paddingRoundTiny: string;
|
|
1165
1164
|
paddingRoundSmall: string;
|
|
1166
|
-
paddingRoundMedium: string;
|
|
1165
|
+
paddingRoundMedium: string; /**
|
|
1166
|
+
* 初始化props
|
|
1167
|
+
* @param {*} unionItem
|
|
1168
|
+
* @param {*} row
|
|
1169
|
+
* @param {*} column
|
|
1170
|
+
* @param {*} $rowIndex
|
|
1171
|
+
* @returns
|
|
1172
|
+
*/
|
|
1167
1173
|
paddingRoundLarge: string;
|
|
1168
1174
|
iconMarginTiny: string;
|
|
1169
1175
|
iconMarginSmall: string;
|
|
@@ -1252,9 +1258,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1252
1258
|
borderHoverPrimary: string;
|
|
1253
1259
|
borderPressedPrimary: string;
|
|
1254
1260
|
borderFocusPrimary: string;
|
|
1255
|
-
borderDisabledPrimary: string;
|
|
1256
|
-
* tsx渲染表格
|
|
1257
|
-
*/
|
|
1261
|
+
borderDisabledPrimary: string;
|
|
1258
1262
|
rippleColorPrimary: string;
|
|
1259
1263
|
colorInfo: string;
|
|
1260
1264
|
colorHoverInfo: string;
|
|
@@ -2595,9 +2599,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2595
2599
|
type: NumberConstructor;
|
|
2596
2600
|
default: number;
|
|
2597
2601
|
};
|
|
2598
|
-
|
|
2599
|
-
type:
|
|
2600
|
-
default: boolean;
|
|
2602
|
+
annotation: {
|
|
2603
|
+
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
2601
2604
|
};
|
|
2602
2605
|
showFooter: BooleanConstructor;
|
|
2603
2606
|
sumData: {
|
|
@@ -2945,7 +2948,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2945
2948
|
maskUp: (e: any) => void;
|
|
2946
2949
|
setGroupTreeExpand: () => void;
|
|
2947
2950
|
resetTableInlineEditStatus: () => false | undefined;
|
|
2948
|
-
|
|
2951
|
+
renderAnnotation: (columnConfig: import("../../../src/types").AnyObject) => JSX.Element | null;
|
|
2952
|
+
toolTipTitle: (item: any, type: any) => any[] | (() => any[]);
|
|
2949
2953
|
triggerExpand: (e: any, isExpand: any) => void;
|
|
2950
2954
|
getOtherConfigInit: () => any;
|
|
2951
2955
|
refreshTable: () => void;
|
|
@@ -3292,7 +3296,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3292
3296
|
buttonColor2: string;
|
|
3293
3297
|
buttonColor2Hover: string;
|
|
3294
3298
|
buttonColor2Pressed: string;
|
|
3295
|
-
boxShadow1: string;
|
|
3299
|
+
boxShadow1: string;
|
|
3300
|
+
boxShadow2: string;
|
|
3301
|
+
boxShadow3: string;
|
|
3302
|
+
/**
|
|
3296
3303
|
* 针对 bigTable 的设置列
|
|
3297
3304
|
* type: 列的类型
|
|
3298
3305
|
* field: 列字段名(注:属性层级越深,渲染性能将直线下降)
|
|
@@ -3308,8 +3315,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3308
3315
|
* formatter: 格式化显示内容 Function({cellValue, row, column})
|
|
3309
3316
|
* sortable: 是否允许列排序
|
|
3310
3317
|
*/
|
|
3311
|
-
boxShadow2: string;
|
|
3312
|
-
boxShadow3: string;
|
|
3313
3318
|
fontFamily: string;
|
|
3314
3319
|
fontFamilyMono: string;
|
|
3315
3320
|
fontWeight: string;
|
|
@@ -4061,7 +4066,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4061
4066
|
color: string;
|
|
4062
4067
|
opacity1Depth: string;
|
|
4063
4068
|
opacity2Depth: string;
|
|
4064
|
-
opacity3Depth: string;
|
|
4069
|
+
opacity3Depth: string; /**
|
|
4070
|
+
* computed
|
|
4071
|
+
*/
|
|
4065
4072
|
opacity4Depth: string;
|
|
4066
4073
|
opacity5Depth: string;
|
|
4067
4074
|
}, any>>;
|
|
@@ -4097,9 +4104,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4097
4104
|
type: NumberConstructor;
|
|
4098
4105
|
default: number;
|
|
4099
4106
|
};
|
|
4100
|
-
|
|
4101
|
-
type:
|
|
4102
|
-
default: boolean;
|
|
4107
|
+
annotation: {
|
|
4108
|
+
type: import("vue").PropType<import("../../../src/types").AnyObject>;
|
|
4103
4109
|
};
|
|
4104
4110
|
showFooter: BooleanConstructor;
|
|
4105
4111
|
sumData: {
|
|
@@ -4296,7 +4302,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4296
4302
|
columnConfig: Record<string, any>;
|
|
4297
4303
|
menuConfig: Record<string, any>;
|
|
4298
4304
|
maxCheckSize: number;
|
|
4299
|
-
checkboxBindRowClick: boolean;
|
|
4300
4305
|
sumData: Record<string, any>;
|
|
4301
4306
|
avgData: Record<string, any>;
|
|
4302
4307
|
refreshRow: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, useAttrs, computed, onMounted, onUnmounted, onActivated, createVNode, h, resolveComponent, Teleport, createTextVNode, nextTick, watch, openBlock, createElementBlock, Fragment, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, unref, mergeProps, withCtx, renderSlot, createBlock, toDisplayString, withDirectives, vShow, isVNode } from 'vue';
|
|
2
2
|
import { isArray, isFunction } from 'lodash-es';
|
|
3
|
+
import { useAnnotation } from '../../../packages/big-table/src/hooks/useAnnotation';
|
|
3
4
|
import { useSeparateRow } from '../../../packages/big-table/src/hooks/useSeparateRow';
|
|
4
5
|
import bigTableState from './bigTableState.js';
|
|
5
6
|
import bigTableProps from './bigTableProps.js';
|
|
@@ -539,6 +540,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
539
540
|
row,
|
|
540
541
|
index: $rowIndex,
|
|
541
542
|
type: formType,
|
|
543
|
+
...col.componentProps || {},
|
|
542
544
|
onFormChange,
|
|
543
545
|
onClick: () => {
|
|
544
546
|
emit("formClick", {
|
|
@@ -950,6 +952,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
950
952
|
return false;
|
|
951
953
|
handleClickCancelBtnByInline();
|
|
952
954
|
};
|
|
955
|
+
const {
|
|
956
|
+
renderAnnotation
|
|
957
|
+
} = useAnnotation(props);
|
|
953
958
|
const toolTipTitle = (item, type) => {
|
|
954
959
|
var _a;
|
|
955
960
|
let name = item.formTitle || item.alias || item.title;
|
|
@@ -962,11 +967,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
962
967
|
isAlias = !!tooltipTitle;
|
|
963
968
|
}
|
|
964
969
|
if (type === "format")
|
|
965
|
-
return createVNode(TextOverTooltip, {
|
|
970
|
+
return [createVNode(TextOverTooltip, {
|
|
966
971
|
"tooltipTitle": tooltipTitle,
|
|
967
972
|
"content": name,
|
|
968
973
|
"isAlias": isAlias
|
|
969
|
-
}, null);
|
|
974
|
+
}, null), renderAnnotation(item)];
|
|
970
975
|
return () => {
|
|
971
976
|
return [createVNode(TextOverTooltip, {
|
|
972
977
|
"tooltipTitle": tooltipTitle,
|
|
@@ -977,7 +982,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
977
982
|
"component": state.isExpand && state.total < 1001 ? CaretDown : CaretForward,
|
|
978
983
|
"onClick": (e) => triggerExpand(e, state.isExpand)
|
|
979
984
|
}, null) : ""]
|
|
980
|
-
})];
|
|
985
|
+
}), renderAnnotation(item)];
|
|
981
986
|
};
|
|
982
987
|
};
|
|
983
988
|
const triggerExpand = (e, isExpand) => {
|
|
@@ -1341,9 +1346,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1341
1346
|
}
|
|
1342
1347
|
isAboutNestTable.value && emit("setNestLastClickTable", table, props.isNestTable, row[handleRowId.value], row);
|
|
1343
1348
|
emit("setNestTableClick", false);
|
|
1344
|
-
if (!props.checkboxBindRowClick) {
|
|
1345
|
-
return;
|
|
1346
|
-
}
|
|
1347
1349
|
if (props.isNestTable) {
|
|
1348
1350
|
table == null ? void 0 : table.setAllCheckboxRow(false);
|
|
1349
1351
|
nestHandleClickRow(table, data);
|
|
@@ -2314,7 +2316,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2314
2316
|
"span-method": colspanMethod,
|
|
2315
2317
|
"footer-span-method": footerRowspanMethod,
|
|
2316
2318
|
"tooltip-config": {
|
|
2317
|
-
enterable: false
|
|
2319
|
+
enterable: false,
|
|
2320
|
+
..._ctx.$attrs.tooltipConfig || {}
|
|
2318
2321
|
},
|
|
2319
2322
|
"checkbox-config": {
|
|
2320
2323
|
checkField: "checked",
|
|
@@ -2330,10 +2333,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2330
2333
|
checkField: "checked",
|
|
2331
2334
|
trigger: "cell",
|
|
2332
2335
|
reserve: true,
|
|
2333
|
-
highlight: true
|
|
2336
|
+
highlight: true,
|
|
2337
|
+
..._ctx.$attrs.radioConfig || {}
|
|
2334
2338
|
},
|
|
2335
2339
|
"scroll-y": {
|
|
2336
|
-
gt: 50
|
|
2340
|
+
gt: 50,
|
|
2341
|
+
..._ctx.$attrs.scrollY || {}
|
|
2337
2342
|
},
|
|
2338
2343
|
"row-style": unref(getRowStyle),
|
|
2339
2344
|
"edit-config": state.editConfig,
|
|
@@ -2343,7 +2348,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2343
2348
|
loadMethod: unref(loadExpandMethod),
|
|
2344
2349
|
toggleMethod: unref(toggleExpandMethod),
|
|
2345
2350
|
iconOpen: "iconfont icon-a-xitongtubiaozhediejian",
|
|
2346
|
-
iconClose: "iconfont icon-a-xitongtubiaotianjia"
|
|
2351
|
+
iconClose: "iconfont icon-a-xitongtubiaotianjia",
|
|
2352
|
+
..._ctx.$attrs.expandConfig || {}
|
|
2347
2353
|
},
|
|
2348
2354
|
"keyboard-config": _ctx.columnConfig.keyboardConfig || {},
|
|
2349
2355
|
"edit-rules": _ctx.columnConfig.editRules || {},
|
|
@@ -2413,7 +2419,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2413
2419
|
}
|
|
2414
2420
|
})]),
|
|
2415
2421
|
_: 3
|
|
2416
|
-
}, 16, ["height", "seq-config", "tree-config", "cell-class-name", "row-config", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules", "menu-config", "onScroll", "onKeydown"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
2422
|
+
}, 16, ["height", "seq-config", "tree-config", "cell-class-name", "row-config", "show-footer", "tooltip-config", "checkbox-config", "radio-config", "scroll-y", "row-style", "edit-config", "expand-config", "keyboard-config", "edit-rules", "menu-config", "onScroll", "onKeydown"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
|
|
2417
2423
|
class: "refresh",
|
|
2418
2424
|
onClick: hanldeClickRefresh
|
|
2419
2425
|
}, [createVNode(unref(NIcon), {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../es/src/types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
1
3
|
declare const bigTableProps: {
|
|
2
4
|
data: {
|
|
3
5
|
type: ArrayConstructor;
|
|
@@ -7,9 +9,8 @@ declare const bigTableProps: {
|
|
|
7
9
|
type: NumberConstructor;
|
|
8
10
|
default: number;
|
|
9
11
|
};
|
|
10
|
-
|
|
11
|
-
type:
|
|
12
|
-
default: boolean;
|
|
12
|
+
annotation: {
|
|
13
|
+
type: PropType<AnyObject>;
|
|
13
14
|
};
|
|
14
15
|
showFooter: BooleanConstructor;
|
|
15
16
|
sumData: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const bigTableProps = {
|
|
2
2
|
data: { type: Array, default: () => [] },
|
|
3
3
|
maxCheckSize: { type: Number, default: 0 },
|
|
4
|
-
|
|
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;
|
|
@@ -18,15 +18,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
const props = __props;
|
|
19
19
|
const popoverRef = ref();
|
|
20
20
|
const show = ref(false);
|
|
21
|
+
function setShow(v) {
|
|
22
|
+
show.value = v;
|
|
23
|
+
}
|
|
21
24
|
watch(show, updateShow);
|
|
22
25
|
const editContent = ref();
|
|
23
26
|
const { getRowData } = useSeparateMap();
|
|
24
|
-
function updateShow(show2) {
|
|
27
|
+
async function updateShow(show2) {
|
|
28
|
+
var _a;
|
|
25
29
|
const target = getRowData(props.row);
|
|
26
30
|
if (!target)
|
|
27
31
|
return;
|
|
28
32
|
if (show2) {
|
|
29
33
|
editContent.value = cloneDeep(target.row[props.col.field]);
|
|
34
|
+
await new Promise((resolve) => setTimeout(resolve));
|
|
35
|
+
(_a = popoverRef.value) == null ? void 0 : _a.syncPosition();
|
|
30
36
|
return;
|
|
31
37
|
}
|
|
32
38
|
const old = target.row[props.col.field];
|
|
@@ -73,6 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
79
|
renderer: __props.col.separateSlot,
|
|
74
80
|
value: editContent.value,
|
|
75
81
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => editContent.value = $event),
|
|
82
|
+
"onUpdate:show": setShow,
|
|
76
83
|
col: __props.col,
|
|
77
84
|
row: __props.row
|
|
78
85
|
}, null, 8, ["renderer", "value", "col", "row"])) : (openBlock(), createBlock(unref(NInput), {
|
|
@@ -32,6 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
}>>;
|
|
33
33
|
popoverRef: import("vue").Ref<any>;
|
|
34
34
|
show: import("vue").Ref<boolean>;
|
|
35
|
+
setShow: (v: boolean) => void;
|
|
35
36
|
emit: (event: "formChange", ...args: any[]) => void;
|
|
36
37
|
editContent: import("vue").Ref<any>;
|
|
37
38
|
getRowData: (row: AnyObject) => {
|
|
@@ -40,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
41
|
rawRow: AnyObject;
|
|
41
42
|
row: AnyObject;
|
|
42
43
|
} | undefined;
|
|
43
|
-
updateShow: (show: boolean) => void
|
|
44
|
+
updateShow: (show: boolean) => Promise<void>;
|
|
44
45
|
style: CSSProperties;
|
|
45
46
|
SlotRender: import("vue").DefineComponent<{
|
|
46
47
|
renderer: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createVNode } from 'vue';
|
|
2
|
+
import { isObject } from '@vue/shared';
|
|
3
|
+
import Annotation from '../../../annotation-edit/index.js';
|
|
4
|
+
|
|
5
|
+
function useAnnotation(props) {
|
|
6
|
+
function renderAnnotation(columnConfig) {
|
|
7
|
+
if (!isObject(props.annotation) || columnConfig.annotation === false)
|
|
8
|
+
return null;
|
|
9
|
+
return createVNode("section", {
|
|
10
|
+
"class": "big-table__annotationWrapper"
|
|
11
|
+
}, [createVNode(Annotation, {
|
|
12
|
+
"modelValue": props.annotation[columnConfig.columnName],
|
|
13
|
+
"onUpdate:modelValue": ($event) => props.annotation[columnConfig.columnName] = $event
|
|
14
|
+
}, null)]);
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
renderAnnotation
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { useAnnotation };
|
|
@@ -79,12 +79,17 @@ function useColumnConfigAdaptor() {
|
|
|
79
79
|
...["open", "close"].map((key) => [key, switchOptionHandler]),
|
|
80
80
|
["is_edit", { property: "isEdit", valueMap: isEditValueMap }],
|
|
81
81
|
["html_type", { property: "formType", valueMap: htmlTypeValueMap }],
|
|
82
|
-
["option", { property: "options", fieldMap: /* @__PURE__ */ new Map([["text", "label"]]) }]
|
|
82
|
+
["option", { property: "options", fieldMap: /* @__PURE__ */ new Map([["text", "label"]]) }],
|
|
83
|
+
[
|
|
84
|
+
"alias",
|
|
85
|
+
(value, result, fieldItem) => {
|
|
86
|
+
result.title = `${value}${fieldItem.suffix ? `(${fieldItem.suffix})` : ""}`;
|
|
87
|
+
}
|
|
88
|
+
]
|
|
83
89
|
]);
|
|
84
90
|
const fieldMap = /* @__PURE__ */ new Map([
|
|
85
91
|
["sum", "isSum"],
|
|
86
92
|
["show", "isShow"],
|
|
87
|
-
["name", "title"],
|
|
88
93
|
["elementId", "columnName"],
|
|
89
94
|
["columnWidth", "colWidth"],
|
|
90
95
|
["fixedWayEnum", { property: "isFixed", valueMap: fixedWayEnumValueMap }],
|
|
@@ -224,6 +224,7 @@ export declare const comps: {
|
|
|
224
224
|
}>>;
|
|
225
225
|
popoverRef: import("vue").Ref<any>;
|
|
226
226
|
show: import("vue").Ref<boolean>;
|
|
227
|
+
setShow: (v: boolean) => void;
|
|
227
228
|
emit: (event: "formChange", ...args: any[]) => void;
|
|
228
229
|
editContent: import("vue").Ref<any>;
|
|
229
230
|
getRowData: (row: import("../../../../src/types").AnyObject) => {
|
|
@@ -232,7 +233,7 @@ export declare const comps: {
|
|
|
232
233
|
rawRow: import("../../../../src/types").AnyObject;
|
|
233
234
|
row: import("../../../../src/types").AnyObject;
|
|
234
235
|
} | undefined;
|
|
235
|
-
updateShow: (show: boolean) => void
|
|
236
|
+
updateShow: (show: boolean) => Promise<void>;
|
|
236
237
|
style: import("vue").CSSProperties;
|
|
237
238
|
SlotRender: import("vue").DefineComponent<{
|
|
238
239
|
renderer: {
|
|
@@ -291,7 +291,7 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
291
291
|
width: 100%;
|
|
292
292
|
}
|
|
293
293
|
.custom-big-table .filter-box .text-over-tooltip-components {
|
|
294
|
-
max-width: calc(100% -
|
|
294
|
+
max-width: calc(100% - 40px);
|
|
295
295
|
}
|
|
296
296
|
.custom-big-table .filter-box .vxe-filter--btn {
|
|
297
297
|
border-top-color: #c0c4cc;
|
|
@@ -539,6 +539,21 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
539
539
|
margin-right: 6px;
|
|
540
540
|
box-shadow: 0px 2px 4px 0px rgba(99, 129, 249, 0.5);
|
|
541
541
|
}
|
|
542
|
+
.annotation-edit {
|
|
543
|
+
cursor: pointer;
|
|
544
|
+
color: #0067ee;
|
|
545
|
+
font-size: 16px;
|
|
546
|
+
user-select: none;
|
|
547
|
+
display: inline-flex;
|
|
548
|
+
align-items: center;
|
|
549
|
+
}
|
|
550
|
+
.annotation-edit.is-active {
|
|
551
|
+
color: rgba(255, 152, 40);
|
|
552
|
+
}
|
|
553
|
+
.annotation-edit__icon {
|
|
554
|
+
display: inline-flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
}
|
|
542
557
|
.no-data-tip {
|
|
543
558
|
display: flex;
|
|
544
559
|
flex-direction: column;
|
|
@@ -601,3 +616,14 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
601
616
|
fill: currentColor;
|
|
602
617
|
overflow: hidden;
|
|
603
618
|
}
|
|
619
|
+
.vxe-header--column [annotation-hover-show='true'] {
|
|
620
|
+
visibility: hidden;
|
|
621
|
+
}
|
|
622
|
+
.vxe-header--column:hover [annotation-hover-show='true'] {
|
|
623
|
+
visibility: visible;
|
|
624
|
+
}
|
|
625
|
+
.big-table__annotationWrapper {
|
|
626
|
+
width: 20px;
|
|
627
|
+
display: inline-flex;
|
|
628
|
+
align-items: center;
|
|
629
|
+
}
|
|
@@ -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 };
|
|
@@ -11,7 +11,7 @@ export declare class Print {
|
|
|
11
11
|
_queryServicesPrint(params: AnyObject): Promise<any>;
|
|
12
12
|
_callPrintWithFile(queryParams: AnyObject): Promise<any>;
|
|
13
13
|
_handleResult(data: AnyObject, errorCallbackFn?: Func): false | AnyObject;
|
|
14
|
-
_handleResultTest(result:
|
|
14
|
+
_handleResultTest(result: unknown, errorCallbackFn?: Func): boolean;
|
|
15
15
|
_handleEventQueryPrintData(templateId: string, formatId: string, params: AnyObject, errorCallbackFn?: Func): Promise<false | {
|
|
16
16
|
file: any;
|
|
17
17
|
printerName: any;
|
|
@@ -53,6 +53,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
53
53
|
}>;
|
|
54
54
|
topList: import("vue").ComputedRef<import("./src/interface").IDate[]>;
|
|
55
55
|
propItems: any;
|
|
56
|
+
computedYCell: (type: import("./src/interface").IPointType) => number;
|
|
56
57
|
cumputedX: (value: string | number) => any;
|
|
57
58
|
cumputedY: (type: import("./src/interface").IPointType, scaleValueList: number[], value: string | number) => number;
|
|
58
59
|
getXValue: (pointX: number) => string | undefined;
|