cnhis-design-vue 3.1.52-beta.9 → 3.1.52-release.1
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/components/callback/src/components/render/popupMaps.d.ts +1 -1
- package/es/components/classification/index.d.ts +6 -40
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +6 -40
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +6 -40
- package/es/components/classification/src/index.vue.d.ts +6 -40
- package/es/components/date-picker/index.d.ts +3 -20
- package/es/components/date-picker/src/DatePicker.vue.d.ts +3 -20
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +2 -2
- package/es/components/form-config/src/FormConfig.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -1
- package/es/components/form-render/index.d.ts +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +2 -2
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +3 -20
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +3 -20
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +2 -2
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -1
- package/es/components/recommend-search/index.d.ts +1 -1
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
- package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -1
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +6 -40
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +3 -20
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +3 -20
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +6 -40
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +6 -40
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +3 -20
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +3 -20
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +3 -20
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +3 -20
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +12 -80
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +12 -80
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +0 -9
- package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
- package/es/shared/hooks/useDateTime.d.ts +2 -7
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/body-select/index.d.ts +0 -47
- package/es/components/body-select/index.js +0 -1
- package/es/components/body-select/src/config/index.d.ts +0 -101
- package/es/components/body-select/src/config/index.js +0 -1
- package/es/components/body-select/src/hooks/renderCanvas.d.ts +0 -6
- package/es/components/body-select/src/hooks/renderCanvas.js +0 -1
- package/es/components/body-select/src/index.vue.d.ts +0 -48
- package/es/components/body-select/src/index.vue.js +0 -1
- package/es/components/body-select/src/index.vue2.js +0 -1
- package/es/components/body-select/style/index.css +0 -1
|
@@ -558,7 +558,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
558
558
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
559
559
|
clearSpan: (uuid: string) => void;
|
|
560
560
|
exposeEvent: {
|
|
561
|
-
validate(path?: string
|
|
561
|
+
validate(path?: string, { force }?: {
|
|
562
562
|
force?: boolean | undefined;
|
|
563
563
|
}): Promise<void>;
|
|
564
564
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
@@ -561,7 +561,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
561
561
|
onKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
562
562
|
clearSpan: (uuid: string) => void;
|
|
563
563
|
exposeEvent: {
|
|
564
|
-
validate(path?: string
|
|
564
|
+
validate(path?: string, { force }?: {
|
|
565
565
|
force?: boolean | undefined;
|
|
566
566
|
}): Promise<void>;
|
|
567
567
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
2
|
-
import {
|
|
2
|
+
import { Form, IFieldState } from '@formily/core';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { FieldItem, FormItemDepsCollector, FormRenderProps } from '../../../../../es/components/form-render';
|
|
5
5
|
export declare function useFormExposeEvent({ formModel, formRenderRef, formUUID, getFieldList, formItemDepsCollector }: {
|
|
@@ -9,7 +9,7 @@ export declare function useFormExposeEvent({ formModel, formRenderRef, formUUID,
|
|
|
9
9
|
getFieldList: () => FieldItem[];
|
|
10
10
|
formItemDepsCollector: FormItemDepsCollector;
|
|
11
11
|
}): {
|
|
12
|
-
validate(path?: string
|
|
12
|
+
validate(path?: string, { force }?: {
|
|
13
13
|
force?: boolean | undefined;
|
|
14
14
|
}): Promise<void>;
|
|
15
15
|
getFormValues(needCombineExtendKey?: boolean): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{arrayed as e,findAncestor as t}from"../../../../shared/utils/index.js";import{isField as r}from"@formily/core";import{Path as o}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as n}from"@vueuse/shared";import{
|
|
1
|
+
import{arrayed as e,findAncestor as t}from"../../../../shared/utils/index.js";import{isField as r}from"@formily/core";import{Path as o}from"@formily/path";import{isObject as i}from"@vue/shared";import{promiseTimeout as n}from"@vueuse/shared";import{isArray as a,isString as s,isFunction as m}from"lodash-es";import{nextTick as f}from"vue";import"../../index.js";import{FormItemLineBarDepKeyPrepend as u,NESTED_FORM_ITEM_TYPE as l}from"../constants/index.js";import{queryDecoratorByAddress as d,queryInput as c,queryDecoratorByFieldKey as p,findNextWidget as g}from"../utils/dom.js";import{validateMessageParser as v,combineExtendKey as y,splitExtendKey as h}from"../utils/index.js";import{getParentLinebar as x}from"../utils/schema.js";function I({formModel:t,formRenderRef:n,formUUID:m,getFieldList:l,formItemDepsCollector:g}){return{validate(o="*",{force:f}={}){const u=[];f&&t.setFieldState(o,(e=>{"visible"===e.display&&"editable"!==e.pattern&&r(e)&&(u.push({pattern:e.pattern,state:e}),e.pattern="editable")}));const l=t.validate(o).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(p,[]):e)));return f&&u.forEach((({pattern:e,state:t})=>t.pattern=e)),l;function p(t,r){if(!i(r))return t;let o=!1;return a(r.messages)&&r.messages.forEach((r=>{i(r)&&(t.push(...e(r).map(g)),o=!0)})),!o&&t.push(g(r)),t}function g(e){if(e.decoratorElement)return e;const r=t.query(e.path),o=r.get("title"),a=e.messages.map((e=>function(e,t){if(!t||!i(t.fieldItem))return e;const r=t.fieldItem.defined_error_msg;return v(r&&s(r)?r:e,t.fieldItem)}(e,r.get("decoratorProps")))),f=d(e.address,n.value,m);return{...e,messages:a,title:o,decoratorElement:f,...c(f)}}},getFormValues(e=!0){let r=t.getFormState().values;return e&&(r=y(l(),r)),r},setFormValues(e,i=!0,n=!0){i&&(e=h(l(),e)),t.setFieldState("*",(t=>{r(t)&&(n||o.existIn(e,t.path))&&(t.value=o.getIn(e,t.path))}))},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:async e=>n.value?await async function(e,t,r){if(!n.value)return a();const o=p(e,t,m);if(o)return a(o);const i=x(e,r);return i?(g.trigger(u+i,!0),await f(),a(p(e,t,m))):a();function a(e){return{decoratorElement:e,...c(e)}}}(e,n.value,l()):null}}function F({props:e,formRenderRef:r,formModel:o}){return{onKeydown:async function i(a){var s;if(e.enterToNextWidget&&a.target){if("TEXTAREA"===a.target.tagName&&!a.ctrlKey)return;a.preventDefault()}if(await n(0),Reflect.get(a,"stopCapture")||!e.enterToNextWidget||!r.value)return;const f=t(a.target,(e=>e.classList.contains("form-render__formItem")));if(!f)return;const u=`.form-render__formItem${l.map((e=>`:not([widget-type=${e}])`)).join("")}`,d=Array.from(r.value.querySelectorAll(u)),c=d.findIndex((e=>e.id===f.id));if(!~c)return;const{widget:p,field:v}=g(d,c,a.target);if(p)if(m(e.enterToNextWidget)){const t=v&&o.query(v).take();!t||e.enterToNextWidget(null==(s=t.decoratorProps)?void 0:s.fieldItem)?y():i({target:p})}else y();async function y(){await n(0),p.focus()}}}}export{F as useFormDomEvent,I as useFormExposeEvent};
|
|
@@ -31,11 +31,11 @@ export declare type FormRenderExpose = {
|
|
|
31
31
|
formModel: Form;
|
|
32
32
|
/**
|
|
33
33
|
* @desc 触发表单校验
|
|
34
|
-
* @param {string
|
|
34
|
+
* @param {string} path 目标路径, 支持Path语法
|
|
35
35
|
* @param {{force?:boolean}} options 校验选项, force代表强制校验不可编辑项
|
|
36
36
|
* @return {void | Promise<Object[]>}
|
|
37
37
|
*/
|
|
38
|
-
validate(path?: string
|
|
38
|
+
validate(path?: string, options?: {
|
|
39
39
|
force?: boolean;
|
|
40
40
|
}): Promise<unknown>;
|
|
41
41
|
/**
|
|
@@ -32,9 +32,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
onConfirm: {
|
|
33
33
|
type: FunctionConstructor;
|
|
34
34
|
};
|
|
35
|
-
formattedValue: {
|
|
36
|
-
type: StringConstructor;
|
|
37
|
-
};
|
|
38
35
|
}, {
|
|
39
36
|
attrs: {
|
|
40
37
|
[x: string]: unknown;
|
|
@@ -46,17 +43,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
43
|
onConfirm: {
|
|
47
44
|
type: FunctionConstructor;
|
|
48
45
|
};
|
|
49
|
-
|
|
50
|
-
type: StringConstructor;
|
|
51
|
-
};
|
|
52
|
-
}>> & {
|
|
53
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
54
|
-
}>>;
|
|
55
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
46
|
+
}>> & {}>>;
|
|
56
47
|
datePickerRef: import("vue").Ref<import("../../../../../../es/shared/types").AnyObject | null>;
|
|
57
48
|
panelInstRef: import("vue").Ref<null>;
|
|
58
|
-
placeholder: import("vue").Ref<any>;
|
|
59
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
|
|
60
49
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
61
50
|
formatRef: import("vue").ComputedRef<string>;
|
|
62
51
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -65,21 +54,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
54
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
66
55
|
onUpdateShow: (show: boolean) => void;
|
|
67
56
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
68
|
-
isOtherValue: (value?: string) => boolean;
|
|
69
57
|
NDatePicker: any;
|
|
70
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
58
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
59
|
updateUnchangedValue: {
|
|
72
60
|
type: BooleanConstructor;
|
|
73
61
|
};
|
|
74
62
|
onConfirm: {
|
|
75
63
|
type: FunctionConstructor;
|
|
76
64
|
};
|
|
77
|
-
|
|
78
|
-
type: StringConstructor;
|
|
79
|
-
};
|
|
80
|
-
}>> & {
|
|
81
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
}, {
|
|
65
|
+
}>>, {
|
|
83
66
|
updateUnchangedValue: boolean;
|
|
84
67
|
}>>;
|
|
85
68
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -76,9 +76,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
onConfirm: {
|
|
77
77
|
type: FunctionConstructor;
|
|
78
78
|
};
|
|
79
|
-
formattedValue: {
|
|
80
|
-
type: StringConstructor;
|
|
81
|
-
};
|
|
82
79
|
}, {
|
|
83
80
|
attrs: {
|
|
84
81
|
[x: string]: unknown;
|
|
@@ -90,17 +87,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
87
|
onConfirm: {
|
|
91
88
|
type: FunctionConstructor;
|
|
92
89
|
};
|
|
93
|
-
|
|
94
|
-
type: StringConstructor;
|
|
95
|
-
};
|
|
96
|
-
}>> & {
|
|
97
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
98
|
-
}>>;
|
|
99
|
-
emit: (event: "update:formatted-value", ...args: any[]) => void;
|
|
90
|
+
}>> & {}>>;
|
|
100
91
|
datePickerRef: import("vue").Ref<AnyObject | null>;
|
|
101
92
|
panelInstRef: import("vue").Ref<null>;
|
|
102
|
-
placeholder: import("vue").Ref<any>;
|
|
103
|
-
currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
|
|
104
93
|
isDateTime: import("vue").ComputedRef<boolean>;
|
|
105
94
|
formatRef: import("vue").ComputedRef<string>;
|
|
106
95
|
panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
|
|
@@ -109,21 +98,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
98
|
handleConfirm: (target: HTMLInputElement) => void;
|
|
110
99
|
onUpdateShow: (show: boolean) => void;
|
|
111
100
|
onConfirm: (...args: any[]) => Promise<void>;
|
|
112
|
-
isOtherValue: (value?: string) => boolean;
|
|
113
101
|
NDatePicker: any;
|
|
114
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
102
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
115
103
|
updateUnchangedValue: {
|
|
116
104
|
type: BooleanConstructor;
|
|
117
105
|
};
|
|
118
106
|
onConfirm: {
|
|
119
107
|
type: FunctionConstructor;
|
|
120
108
|
};
|
|
121
|
-
|
|
122
|
-
type: StringConstructor;
|
|
123
|
-
};
|
|
124
|
-
}>> & {
|
|
125
|
-
"onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
|
|
126
|
-
}, {
|
|
109
|
+
}>>, {
|
|
127
110
|
updateUnchangedValue: boolean;
|
|
128
111
|
}>>;
|
|
129
112
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|