cnhis-design-vue 3.1.15-beta.4 → 3.1.15-beta.7
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/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/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/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 +6 -2
- 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 -3
- 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/global.d.ts +8 -8
- 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
|
@@ -44,16 +44,14 @@ function useFieldListAdaptor(collector, uuid) {
|
|
|
44
44
|
const createInputSchema = (item) => {
|
|
45
45
|
const schema = createStandardSchema(item);
|
|
46
46
|
Object.assign(schema["x-component-props"], {
|
|
47
|
-
|
|
48
|
-
suffix: item.suffix
|
|
47
|
+
...pick(item, ["prefix", "suffix"])
|
|
49
48
|
});
|
|
50
49
|
return schema;
|
|
51
50
|
};
|
|
52
51
|
const createSelectSchema = (item) => {
|
|
53
52
|
const schema = createStandardSchema(item);
|
|
54
53
|
Object.assign(schema["x-component-props"], {
|
|
55
|
-
|
|
56
|
-
options: item.option,
|
|
54
|
+
...pick(item, ["lazyRequest", "urlConfig", "option"]),
|
|
57
55
|
multiple: item.multi_select === "0",
|
|
58
56
|
maxTagCount: +item.multi_select_value
|
|
59
57
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ShallowReactive } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
export declare function useFormContext(props: ShallowReactive<
|
|
2
|
+
import { FormRenderProps } from '../../../../../es/packages/form-render';
|
|
3
|
+
export declare function useFormContext(props: ShallowReactive<FormRenderProps>): {
|
|
4
4
|
asyncQueue: import("../../../../../es/packages/form-render").FormAsyncQueue;
|
|
5
5
|
SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
6
6
|
businessCollector: import("../../../../../es/packages/form-render").BusinessCollector;
|
|
7
7
|
changeContextCollector: import("../../../../../es/packages/form-render").ContextCollector;
|
|
8
8
|
formItemDepsCollector: import("../../../../../es/packages/form-render").FormItemDepsCollector;
|
|
9
|
-
formUUID:
|
|
9
|
+
formUUID: string;
|
|
10
10
|
};
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
import { isObject } from '
|
|
1
|
+
import { isObject } from '@vue/shared';
|
|
2
|
+
import { cloneDeep } from 'lodash-es';
|
|
2
3
|
import { provide, computed, readonly } from 'vue';
|
|
3
4
|
import { createSchemaField } from '@formily/vue';
|
|
4
5
|
import { useAsyncQueue, useBusinessBinding, useChangeContext, useFormItemDeps } from '../../../../packages/form-render';
|
|
5
6
|
import * as components from '../../../../packages/form-render/src/components/renderer';
|
|
7
|
+
import { useFormRenderLifeCycle } from '../../../../packages/form-render/src/hooks/useFormRenderLifeCycle';
|
|
6
8
|
import { usePresetScope } from '../../../../packages/form-render/src/hooks/usePresetScope';
|
|
7
9
|
import { injectOrProvide, uuidGenerator } from '../../../../packages/form-render/src/utils';
|
|
8
10
|
import { InjectAsyncQueue, InjectionSchemaField, InjectionBusinessCollector, InjectionChangeContextCollector, InjectionFormItemDepsCollector, InjectionFormUUID, InjectionAnnotation } from '../../../../packages/form-render/src/constants';
|
|
9
11
|
|
|
10
12
|
function useFormContext(props) {
|
|
11
|
-
const
|
|
13
|
+
const { callLifeCycle } = useFormRenderLifeCycle(props);
|
|
14
|
+
const asyncQueue = injectOrProvide(InjectAsyncQueue, () => useAsyncQueue().create(props.parallelism, {
|
|
15
|
+
beforeRequest(...args) {
|
|
16
|
+
var _a;
|
|
17
|
+
return (_a = callLifeCycle("beforeRequest", cloneDeep(args))) != null ? _a : args[1];
|
|
18
|
+
},
|
|
19
|
+
afterRequest(...args) {
|
|
20
|
+
var _a;
|
|
21
|
+
return (_a = callLifeCycle("afterRequest", cloneDeep(args))) != null ? _a : args[1];
|
|
22
|
+
}
|
|
23
|
+
}));
|
|
12
24
|
const SchemaField = injectOrProvide(InjectionSchemaField, () => createSchemaField({
|
|
13
25
|
components: {
|
|
14
26
|
...components,
|
|
@@ -29,7 +41,7 @@ function useFormContext(props) {
|
|
|
29
41
|
return props.annotation ? readonly(props.annotation) : null;
|
|
30
42
|
},
|
|
31
43
|
set(payload) {
|
|
32
|
-
if (!isObject(props.annotation))
|
|
44
|
+
if (!isObject(props.annotation) || !isObject(payload))
|
|
33
45
|
return;
|
|
34
46
|
props.annotation[payload.property] = payload.value;
|
|
35
47
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WithUndefined } from '../../../../../es/src/types';
|
|
2
|
+
import { FormRenderLifeCycle, FormRenderProps } from '../../../../../es/packages/form-render';
|
|
3
|
+
export declare function useFormRenderLifeCycle(props: FormRenderProps): {
|
|
4
|
+
callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
5
|
+
onSetup(): void;
|
|
6
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/src/types").AnyObject | undefined): void | WithUndefined<import("../../../../../es/src/types").AnyObject>;
|
|
7
|
+
afterRequest(fieldKey: string, payload?: import("../../../../../es/src/types").AnyObject[] | undefined): void | WithUndefined<import("../../../../../es/src/types").AnyObject[]>;
|
|
8
|
+
}>>[T]> | undefined) => WithUndefined<ReturnType<Required<Partial<{
|
|
9
|
+
onSetup(): void;
|
|
10
|
+
beforeRequest(fieldKey: string, params?: import("../../../../../es/src/types").AnyObject | undefined): void | WithUndefined<import("../../../../../es/src/types").AnyObject>;
|
|
11
|
+
afterRequest(fieldKey: string, payload?: import("../../../../../es/src/types").AnyObject[] | undefined): void | WithUndefined<import("../../../../../es/src/types").AnyObject[]>;
|
|
12
|
+
}>>[T]>>;
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { isFunction } from 'lodash-es';
|
|
2
|
+
|
|
3
|
+
function useFormRenderLifeCycle(props) {
|
|
4
|
+
function callLifeCycle(lifeCycleName, payload) {
|
|
5
|
+
return props.lifeCycle && isFunction(props.lifeCycle[lifeCycleName]) && props.lifeCycle[lifeCycleName].apply(void 0, payload || []);
|
|
6
|
+
}
|
|
7
|
+
return { callLifeCycle };
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { useFormRenderLifeCycle };
|
|
@@ -156,6 +156,10 @@ export declare type FieldItem = {
|
|
|
156
156
|
* BUTTON/TEXT控件内容
|
|
157
157
|
*/
|
|
158
158
|
content: string | FormRenderer | Record<string, FormRenderer>;
|
|
159
|
+
/**
|
|
160
|
+
* 假使控件需要发送请求, 用于控制是否只在需要的时候发送请求
|
|
161
|
+
*/
|
|
162
|
+
lazyRequest: boolean;
|
|
159
163
|
/**
|
|
160
164
|
* COMBINATION控件最大表单组数量
|
|
161
165
|
*/
|
|
@@ -176,6 +180,10 @@ export declare type FieldItem = {
|
|
|
176
180
|
* FormItem额外的props
|
|
177
181
|
*/
|
|
178
182
|
decoratorProps: AnyObject;
|
|
183
|
+
/**
|
|
184
|
+
* 是否不使用decorator组件(n-form-item)
|
|
185
|
+
*/
|
|
186
|
+
noDecorator: Boolean;
|
|
179
187
|
/**
|
|
180
188
|
* COMPLEX控件布局类型
|
|
181
189
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { AnyObject, ArrayAble } from '../../../../../es/src/types';
|
|
1
|
+
import { AnyObject, ArrayAble, WithUndefined } from '../../../../../es/src/types';
|
|
2
2
|
import { DataField, Field } from '@formily/core';
|
|
3
|
+
import { ISchema } from '@formily/json-schema/esm/types';
|
|
4
|
+
import { Component, FunctionalComponent } from 'vue';
|
|
3
5
|
import { FIELD_BUSINESS_TYPE } from '../../../../../es/packages/form-render/src/constants';
|
|
4
6
|
import { FieldItem } from '../types';
|
|
5
7
|
import { AsyncQueue } from '../hooks';
|
|
@@ -50,3 +52,25 @@ export declare type FormBusinessFilter = (payload: {
|
|
|
50
52
|
context?: any;
|
|
51
53
|
}) => unknown;
|
|
52
54
|
export declare type DependKeyType = ArrayAble<string> | Record<string, string> | ArrayAble<Record<'paramName' | 'paramValue', string>>;
|
|
55
|
+
export declare type FormRenderLifeCycle = Partial<{
|
|
56
|
+
onSetup(): void;
|
|
57
|
+
beforeRequest(fieldKey: string, params?: AnyObject): WithUndefined<AnyObject> | void;
|
|
58
|
+
afterRequest(fieldKey: string, payload?: AnyObject[]): WithUndefined<AnyObject[]> | void;
|
|
59
|
+
}>;
|
|
60
|
+
export declare type FormRenderProps = Partial<{
|
|
61
|
+
fieldList: FieldItem[];
|
|
62
|
+
initialData: AnyObject;
|
|
63
|
+
fieldVisitor: FieldVisitor;
|
|
64
|
+
column: number;
|
|
65
|
+
maxHeight: number | string;
|
|
66
|
+
anchor: boolean;
|
|
67
|
+
parallelism: number;
|
|
68
|
+
schema: ISchema;
|
|
69
|
+
components: Record<string, Component | FunctionalComponent>;
|
|
70
|
+
businessFilter: FormBusinessFilter;
|
|
71
|
+
scope: AnyObject;
|
|
72
|
+
annotation: AnyObject;
|
|
73
|
+
consumer: boolean;
|
|
74
|
+
uuid: string;
|
|
75
|
+
lifeCycle: FormRenderLifeCycle;
|
|
76
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject, ArrayAble } from '../../../../../es/src/types';
|
|
1
|
+
import { AnyObject, ArrayAble, WithNull } from '../../../../../es/src/types';
|
|
2
2
|
import { ISchema } from '@formily/json-schema/esm/types';
|
|
3
3
|
import { GeneralField } from '@formily/core';
|
|
4
4
|
import { FunctionalComponent, InjectionKey, VNode } from 'vue';
|
|
@@ -24,11 +24,11 @@ export declare function createSlot(renderer: unknown, props: AnyObject): Record<
|
|
|
24
24
|
default(): any;
|
|
25
25
|
};
|
|
26
26
|
export declare function queryDecorator(key: string, wrapperElement: HTMLElement, formUUID: string): HTMLElement | null;
|
|
27
|
-
export declare function queryInput(decoratorElement?: HTMLElement
|
|
27
|
+
export declare function queryInput(decoratorElement?: WithNull<HTMLElement>): {
|
|
28
28
|
widgetElement: HTMLInputElement | null | undefined;
|
|
29
29
|
widgetElementList: HTMLInputElement[];
|
|
30
30
|
};
|
|
31
|
-
export declare function getParentLinebar(key: string, fieldList: FieldItem[]): string
|
|
31
|
+
export declare function getParentLinebar(key: string, fieldList: FieldItem[]): WithNull<string>;
|
|
32
32
|
export declare function elementIdEscape(id: string): string;
|
|
33
33
|
export declare function createLinebarId(id: string): string;
|
|
34
34
|
export declare function fieldKeyEscape(fieldList: FieldItem[]): string;
|
|
@@ -3,10 +3,7 @@ import { isObject } from '@vue/shared';
|
|
|
3
3
|
import { isArray, isString, isFunction } from 'lodash-es';
|
|
4
4
|
import { FIELD_SEX_VALUE } from '../constants/index.js';
|
|
5
5
|
import { isField } from '@formily/core';
|
|
6
|
-
import differenceInDays from '
|
|
7
|
-
import differenceInMonths from '../../../../node_modules/date-fns/esm/differenceInMonths/index.js';
|
|
8
|
-
import differenceInYears from '../../../../node_modules/date-fns/esm/differenceInYears/index.js';
|
|
9
|
-
import '../../../../node_modules/date-fns/esm/parse/_lib/parsers/index.js';
|
|
6
|
+
import { differenceInDays, differenceInMonths, differenceInYears } from 'date-fns';
|
|
10
7
|
|
|
11
8
|
function formRenderLog(message, type = "log") {
|
|
12
9
|
console[type](`[FormRender]: ${message}`);
|
package/es/packages/index.css
CHANGED
|
@@ -1053,15 +1053,6 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
1053
1053
|
height: 52px;
|
|
1054
1054
|
line-height: 52px;
|
|
1055
1055
|
}
|
|
1056
|
-
.c-field-set .set-show .alias-style {
|
|
1057
|
-
outline: none;
|
|
1058
|
-
border-radius: 4px 4px 4px 4px;
|
|
1059
|
-
border: solid 1px #d5d5d5;
|
|
1060
|
-
height: 32px;
|
|
1061
|
-
text-indent: 16px;
|
|
1062
|
-
color: #38454f;
|
|
1063
|
-
width: 100%;
|
|
1064
|
-
}
|
|
1065
1056
|
.c-field-set .set-show .is-sort-style {
|
|
1066
1057
|
outline: none;
|
|
1067
1058
|
border-radius: 4px 4px 4px 4px;
|
|
@@ -2720,7 +2711,7 @@ body > .vxe-table--tooltip-wrapper {
|
|
|
2720
2711
|
@font-face {
|
|
2721
2712
|
font-family: 'iconfont';
|
|
2722
2713
|
/* Project id 3468756 */
|
|
2723
|
-
src: url('./iconfont.ttf
|
|
2714
|
+
src: url('./iconfont.ttf') format('truetype');
|
|
2724
2715
|
}
|
|
2725
2716
|
.c-info-header .iconfont {
|
|
2726
2717
|
font-family: 'iconfont' !important;
|
|
@@ -1965,9 +1965,7 @@ declare const InfoHeader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1965
1965
|
maxWidth: string;
|
|
1966
1966
|
width: string;
|
|
1967
1967
|
}>;
|
|
1968
|
-
parsedContentStyle: import("vue").ComputedRef<
|
|
1969
|
-
maxWidth: string;
|
|
1970
|
-
})>;
|
|
1968
|
+
parsedContentStyle: import("vue").ComputedRef<{}>;
|
|
1971
1969
|
displayContent: import("vue").ComputedRef<string>;
|
|
1972
1970
|
InfoEllipsis: import("vue").DefineComponent<{
|
|
1973
1971
|
content: {
|
|
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
23
|
});
|
|
24
24
|
const parsedContentStyle = computed(() => {
|
|
25
25
|
if (!props.width)
|
|
26
|
-
return
|
|
26
|
+
return {};
|
|
27
27
|
const maxWidth = props.width - 40 + "px";
|
|
28
28
|
return Object.assign({}, props.contentStyle, { maxWidth });
|
|
29
29
|
});
|
|
@@ -35,9 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
maxWidth: string;
|
|
36
36
|
width: string;
|
|
37
37
|
}>;
|
|
38
|
-
parsedContentStyle: import("vue").ComputedRef<
|
|
39
|
-
maxWidth: string;
|
|
40
|
-
})>;
|
|
38
|
+
parsedContentStyle: import("vue").ComputedRef<{}>;
|
|
41
39
|
displayContent: import("vue").ComputedRef<string>;
|
|
42
40
|
InfoEllipsis: import("vue").DefineComponent<{
|
|
43
41
|
content: {
|
|
@@ -1966,9 +1966,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1966
1966
|
maxWidth: string;
|
|
1967
1967
|
width: string;
|
|
1968
1968
|
}>;
|
|
1969
|
-
parsedContentStyle: import("vue").ComputedRef<
|
|
1970
|
-
maxWidth: string;
|
|
1971
|
-
})>;
|
|
1969
|
+
parsedContentStyle: import("vue").ComputedRef<{}>;
|
|
1972
1970
|
displayContent: import("vue").ComputedRef<string>;
|
|
1973
1971
|
InfoEllipsis: import("vue").DefineComponent<{
|
|
1974
1972
|
content: {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@font-face {
|
|
11
11
|
font-family: 'iconfont';
|
|
12
12
|
/* Project id 3468756 */
|
|
13
|
-
src: url('./iconfont.ttf
|
|
13
|
+
src: url('./iconfont.ttf') format('truetype');
|
|
14
14
|
}
|
|
15
15
|
.c-info-header .iconfont {
|
|
16
16
|
font-family: 'iconfont' !important;
|
|
@@ -61,7 +61,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
61
61
|
};
|
|
62
62
|
query: (key: string) => Omit<import("..").ShortcutItem, "callback">;
|
|
63
63
|
update: (key: string, info: KeyboardEvent | Partial<import("..").ShortcutSignatureInfo>) => void;
|
|
64
|
-
|
|
64
|
+
updateDisabled: (key: string, state?: boolean | undefined) => void;
|
|
65
65
|
onReset: (key: string) => void;
|
|
66
66
|
updateManagerDisabled: (disabled?: boolean | undefined) => void;
|
|
67
67
|
shortcutItem: import("vue").ComputedRef<Omit<import("..").ShortcutItem, "callback">>;
|
|
@@ -4394,6 +4394,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4394
4394
|
uuid: {
|
|
4395
4395
|
type: StringConstructor;
|
|
4396
4396
|
};
|
|
4397
|
+
lifeCycle: {
|
|
4398
|
+
type: import("vue").PropType<Partial<{
|
|
4399
|
+
onSetup(): void;
|
|
4400
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/src/types").AnyObject | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject>;
|
|
4401
|
+
afterRequest(fieldKey: string, payload?: import("../../../es/src/types").AnyObject[] | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject[]>;
|
|
4402
|
+
}>>;
|
|
4403
|
+
};
|
|
4397
4404
|
}, {
|
|
4398
4405
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
4399
4406
|
fieldList: {
|
|
@@ -4502,6 +4509,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4502
4509
|
uuid: {
|
|
4503
4510
|
type: StringConstructor;
|
|
4504
4511
|
};
|
|
4512
|
+
lifeCycle: {
|
|
4513
|
+
type: import("vue").PropType<Partial<{
|
|
4514
|
+
onSetup(): void;
|
|
4515
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/src/types").AnyObject | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject>;
|
|
4516
|
+
afterRequest(fieldKey: string, payload?: import("../../../es/src/types").AnyObject[] | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject[]>;
|
|
4517
|
+
}>>;
|
|
4518
|
+
};
|
|
4505
4519
|
}>> & {
|
|
4506
4520
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
4507
4521
|
}>>;
|
|
@@ -4511,10 +4525,11 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4511
4525
|
businessCollector: import("..").BusinessCollector;
|
|
4512
4526
|
formItemDepsCollector: import("..").FormItemDepsCollector;
|
|
4513
4527
|
changeContextCollector: import("..").ContextCollector;
|
|
4514
|
-
formUUID:
|
|
4528
|
+
formUUID: string;
|
|
4515
4529
|
formModel: import("@formily/core").Form<{
|
|
4516
4530
|
[x: string]: any;
|
|
4517
4531
|
}>;
|
|
4532
|
+
scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
|
|
4518
4533
|
schemaAdaptor: (fieldList: import("..").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
4519
4534
|
[key: symbol]: any;
|
|
4520
4535
|
[key: `x-${string}`]: any;
|
|
@@ -4630,7 +4645,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4630
4645
|
"x-compile-omitted"?: string[] | undefined;
|
|
4631
4646
|
}>>;
|
|
4632
4647
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
4633
|
-
scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
|
|
4634
4648
|
generateAnchorList: (schema: import("@formily/json-schema").Stringify<{
|
|
4635
4649
|
[key: symbol]: any;
|
|
4636
4650
|
[key: `x-${string}`]: any;
|
|
@@ -4692,7 +4706,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4692
4706
|
name: string;
|
|
4693
4707
|
title: string;
|
|
4694
4708
|
}[]>;
|
|
4695
|
-
formHeight: import("vue").ComputedRef<
|
|
4709
|
+
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
4696
4710
|
onScroll: () => void;
|
|
4697
4711
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("..").FieldItem[]) => Promise<{
|
|
4698
4712
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -5997,6 +6011,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
5997
6011
|
uuid: {
|
|
5998
6012
|
type: StringConstructor;
|
|
5999
6013
|
};
|
|
6014
|
+
lifeCycle: {
|
|
6015
|
+
type: import("vue").PropType<Partial<{
|
|
6016
|
+
onSetup(): void;
|
|
6017
|
+
beforeRequest(fieldKey: string, params?: import("../../../es/src/types").AnyObject | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject>;
|
|
6018
|
+
afterRequest(fieldKey: string, payload?: import("../../../es/src/types").AnyObject[] | undefined): void | import("../../../es/src/types").WithUndefined<import("../../../es/src/types").AnyObject[]>;
|
|
6019
|
+
}>>;
|
|
6020
|
+
};
|
|
6000
6021
|
}>> & {
|
|
6001
6022
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
6002
6023
|
}, {
|
|
@@ -61,7 +61,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
61
|
};
|
|
62
62
|
query: (key: string) => Omit<import("../../../../es/packages/shortcut-provider").ShortcutItem, "callback">;
|
|
63
63
|
update: (key: string, info: KeyboardEvent | Partial<import("../../../../es/packages/shortcut-provider").ShortcutSignatureInfo>) => void;
|
|
64
|
-
|
|
64
|
+
updateDisabled: (key: string, state?: boolean | undefined) => void;
|
|
65
65
|
onReset: (key: string) => void;
|
|
66
66
|
updateManagerDisabled: (disabled?: boolean | undefined) => void;
|
|
67
67
|
shortcutItem: import("vue").ComputedRef<Omit<import("../../../../es/packages/shortcut-provider").ShortcutItem, "callback">>;
|
|
@@ -4394,6 +4394,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4394
4394
|
uuid: {
|
|
4395
4395
|
type: StringConstructor;
|
|
4396
4396
|
};
|
|
4397
|
+
lifeCycle: {
|
|
4398
|
+
type: import("vue").PropType<Partial<{
|
|
4399
|
+
onSetup(): void;
|
|
4400
|
+
beforeRequest(fieldKey: string, params?: import("../../../src/types").AnyObject | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject>;
|
|
4401
|
+
afterRequest(fieldKey: string, payload?: import("../../../src/types").AnyObject[] | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject[]>;
|
|
4402
|
+
}>>;
|
|
4403
|
+
};
|
|
4397
4404
|
}, {
|
|
4398
4405
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
4399
4406
|
fieldList: {
|
|
@@ -4502,6 +4509,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4502
4509
|
uuid: {
|
|
4503
4510
|
type: StringConstructor;
|
|
4504
4511
|
};
|
|
4512
|
+
lifeCycle: {
|
|
4513
|
+
type: import("vue").PropType<Partial<{
|
|
4514
|
+
onSetup(): void;
|
|
4515
|
+
beforeRequest(fieldKey: string, params?: import("../../../src/types").AnyObject | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject>;
|
|
4516
|
+
afterRequest(fieldKey: string, payload?: import("../../../src/types").AnyObject[] | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject[]>;
|
|
4517
|
+
}>>;
|
|
4518
|
+
};
|
|
4505
4519
|
}>> & {
|
|
4506
4520
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
4507
4521
|
}>>;
|
|
@@ -4511,10 +4525,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4511
4525
|
businessCollector: import("../../../../es/packages/form-render").BusinessCollector;
|
|
4512
4526
|
formItemDepsCollector: import("../../../../es/packages/form-render").FormItemDepsCollector;
|
|
4513
4527
|
changeContextCollector: import("../../../../es/packages/form-render").ContextCollector;
|
|
4514
|
-
formUUID:
|
|
4528
|
+
formUUID: string;
|
|
4515
4529
|
formModel: import("@formily/core").Form<{
|
|
4516
4530
|
[x: string]: any;
|
|
4517
4531
|
}>;
|
|
4532
|
+
scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
|
|
4518
4533
|
schemaAdaptor: (fieldList: FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
4519
4534
|
[key: symbol]: any;
|
|
4520
4535
|
[key: `x-${string}`]: any;
|
|
@@ -4630,7 +4645,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4630
4645
|
"x-compile-omitted"?: string[] | undefined;
|
|
4631
4646
|
}>>;
|
|
4632
4647
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
4633
|
-
scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
|
|
4634
4648
|
generateAnchorList: (schema: import("@formily/json-schema").Stringify<{
|
|
4635
4649
|
[key: symbol]: any;
|
|
4636
4650
|
[key: `x-${string}`]: any;
|
|
@@ -4692,7 +4706,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4692
4706
|
name: string;
|
|
4693
4707
|
title: string;
|
|
4694
4708
|
}[]>;
|
|
4695
|
-
formHeight: import("vue").ComputedRef<
|
|
4709
|
+
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
4696
4710
|
onScroll: () => void;
|
|
4697
4711
|
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: FieldItem[]) => Promise<{
|
|
4698
4712
|
widgetElement: HTMLInputElement | null | undefined;
|
|
@@ -5997,6 +6011,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5997
6011
|
uuid: {
|
|
5998
6012
|
type: StringConstructor;
|
|
5999
6013
|
};
|
|
6014
|
+
lifeCycle: {
|
|
6015
|
+
type: import("vue").PropType<Partial<{
|
|
6016
|
+
onSetup(): void;
|
|
6017
|
+
beforeRequest(fieldKey: string, params?: import("../../../src/types").AnyObject | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject>;
|
|
6018
|
+
afterRequest(fieldKey: string, payload?: import("../../../src/types").AnyObject[] | undefined): void | import("../../../src/types").WithUndefined<import("../../../src/types").AnyObject[]>;
|
|
6019
|
+
}>>;
|
|
6020
|
+
};
|
|
6000
6021
|
}>> & {
|
|
6001
6022
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
6002
6023
|
}, {
|
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
},
|
|
25
25
|
setup(__props) {
|
|
26
26
|
const props = __props;
|
|
27
|
-
const { query, update,
|
|
27
|
+
const { query, update, updateDisabled, onReset, updateManagerDisabled } = useShortcuts(props.glob);
|
|
28
28
|
const shortcutItem = computed(() => {
|
|
29
29
|
return query(props.fieldItem.val_key);
|
|
30
30
|
});
|
|
@@ -78,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
78
|
function onStop() {
|
|
79
79
|
if (!shortcutItem.value)
|
|
80
80
|
return;
|
|
81
|
-
updateDecorator(() =>
|
|
81
|
+
updateDecorator(() => updateDisabled(props.fieldItem.val_key, !disabledState.value), onInputBlur);
|
|
82
82
|
}
|
|
83
83
|
function onSignatureReset() {
|
|
84
84
|
if (!shortcutItem.value)
|
|
@@ -51,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
51
|
};
|
|
52
52
|
query: (key: string) => Omit<import("../../../../es/packages/shortcut-provider").ShortcutItem, "callback">;
|
|
53
53
|
update: (key: string, info: KeyboardEvent | Partial<import("../../../../es/packages/shortcut-provider").ShortcutSignatureInfo>) => void;
|
|
54
|
-
|
|
54
|
+
updateDisabled: (key: string, state?: boolean | undefined) => void;
|
|
55
55
|
onReset: (key: string) => void;
|
|
56
56
|
updateManagerDisabled: (disabled?: boolean | undefined) => void;
|
|
57
57
|
shortcutItem: import("vue").ComputedRef<Omit<import("../../../../es/packages/shortcut-provider").ShortcutItem, "callback">>;
|
package/global.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as NaiveUI from 'naive-ui';
|
|
2
|
-
|
|
3
|
-
declare module 'naive-ui' {
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
export const NTree: any;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export {};
|
|
1
|
+
import * as NaiveUI from 'naive-ui';
|
|
2
|
+
|
|
3
|
+
declare module 'naive-ui' {
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
export const NTree: any;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.1.15-beta.
|
|
4
|
+
"version": "3.1.15-beta.7",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"module": "es/packages/index.js",
|
|
7
7
|
"main": "es/packages/index.js",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@formily/core": "^2.1.9",
|
|
35
|
+
"@formily/path": "^2.1.9",
|
|
35
36
|
"@formily/vue": "^2.1.9",
|
|
36
37
|
"@highlightjs/vue-plugin": "^2.1.0",
|
|
37
38
|
"@vicons/ionicons5": "^0.12.0",
|
|
@@ -43,14 +44,21 @@
|
|
|
43
44
|
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
44
45
|
"bpmn-js": "^9.2.2",
|
|
45
46
|
"crypto-js": "^4.1.1",
|
|
47
|
+
"date-fns": "^2.29.1",
|
|
48
|
+
"diagram-js": "^8.7.1",
|
|
46
49
|
"highlight.js": "^11.5.1",
|
|
50
|
+
"ids": "^1.0.0",
|
|
51
|
+
"inherits": "^2.0.4",
|
|
47
52
|
"lodash": "^4.17.21",
|
|
48
53
|
"lodash-es": "^4.17.21",
|
|
49
54
|
"lodash-unified": "^1.0.2",
|
|
55
|
+
"min-dash": "^3.8.1",
|
|
56
|
+
"min-dom": "^3.2.1",
|
|
50
57
|
"moment": "^2.29.1",
|
|
51
58
|
"naive-ui": "^2.29.0",
|
|
52
59
|
"rimraf": "^3.0.2",
|
|
53
60
|
"spark-md5": "^3.0.2",
|
|
61
|
+
"tiny-svg": "^2.2.4",
|
|
54
62
|
"type-fest": "^2.13.0",
|
|
55
63
|
"v-viewer": "^3.0.10",
|
|
56
64
|
"video.js": "^7.19.2",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
-
|
|
3
|
-
function getDefaultExportFromCjs (x) {
|
|
4
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export { commonjsGlobal, getDefaultExportFromCjs };
|
package/es/_virtual/inherits.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __assign = (undefined && undefined.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var ContextType = function (flag, props) {
|
|
13
|
-
return __assign({ flag: flag }, props);
|
|
14
|
-
};
|
|
15
|
-
var bracketContext = ContextType('[]');
|
|
16
|
-
var bracketArrayContext = ContextType('[\\d]');
|
|
17
|
-
var bracketDContext = ContextType('[[]]');
|
|
18
|
-
var parenContext = ContextType('()');
|
|
19
|
-
var braceContext = ContextType('{}');
|
|
20
|
-
var destructorContext = ContextType('{x}');
|
|
21
|
-
|
|
22
|
-
export { braceContext, bracketArrayContext, bracketContext, bracketDContext, destructorContext, parenContext };
|