cnhis-design-vue 3.1.46-beta.3 → 3.1.46-beta.4

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.
Files changed (30) hide show
  1. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  2. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
  3. package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
  4. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
  5. package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
  6. package/es/components/index.css +1 -1
  7. package/es/components/index.d.ts +2 -1
  8. package/es/components/index.js +1 -1
  9. package/es/components/quick-search/src/index.vue2.js +1 -1
  10. package/es/components/table-export-field/index.d.ts +967 -0
  11. package/es/components/table-export-field/index.js +1 -0
  12. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +192 -0
  13. package/es/components/table-export-field/src/components/ExportModal.vue.js +1 -0
  14. package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -0
  15. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +687 -0
  16. package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +1 -0
  17. package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -0
  18. package/es/components/table-export-field/src/constants/index.d.ts +3 -0
  19. package/es/components/table-export-field/src/constants/index.js +1 -0
  20. package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +6 -0
  21. package/es/components/table-export-field/src/hooks/useAsyncData.js +1 -0
  22. package/es/components/table-export-field/src/index.vue.d.ts +968 -0
  23. package/es/components/table-export-field/src/index.vue.js +1 -0
  24. package/es/components/table-export-field/src/index.vue2.js +1 -0
  25. package/es/components/table-export-field/src/types/index.d.ts +6 -0
  26. package/es/components/table-export-field/src/types/index.js +1 -0
  27. package/es/components/table-export-field/style/index.css +1 -0
  28. package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -1
  29. package/es/shared/package.json.js +1 -1
  30. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ import{COMPONENT_NAMESPACE as r}from"../../shared/global/variable.js";import{safeComponentRegister as o}from"../../shared/utils/index.js";import e from"./src/index.vue.js";const i=e;i.install=function(e){o(e,i,r+"TableExportField")};export{i as default};
@@ -0,0 +1,192 @@
1
+ import { PropType } from 'vue';
2
+ import { IExportSchemeType } from '../../../../../es/components/table-export-field/src/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ visible: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ tableListId: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ fieldOriginList: {
13
+ type: PropType<any[]>;
14
+ default: () => never[];
15
+ };
16
+ curProgram: {
17
+ type: PropType<IExportSchemeType>;
18
+ default: () => {};
19
+ };
20
+ programOptions: {
21
+ type: PropType<IExportSchemeType[]>;
22
+ default: () => never[];
23
+ };
24
+ downLoadFieldList: {
25
+ type: PropType<any[]>;
26
+ default: () => never[];
27
+ };
28
+ }, {
29
+ defaultKey: string;
30
+ baseSetting: {
31
+ width: string;
32
+ height: string;
33
+ };
34
+ menuProps: {
35
+ class: string;
36
+ };
37
+ message: import("naive-ui").MessageApi;
38
+ deleteTableListExportScheme: (params: any, filterApiConfig: any) => Promise<any>;
39
+ exportTableListScheme: (params: any, filterApiConfig: any) => Promise<any>;
40
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
41
+ visible: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ tableListId: {
46
+ type: StringConstructor;
47
+ default: string;
48
+ };
49
+ fieldOriginList: {
50
+ type: PropType<any[]>;
51
+ default: () => never[];
52
+ };
53
+ curProgram: {
54
+ type: PropType<IExportSchemeType>;
55
+ default: () => {};
56
+ };
57
+ programOptions: {
58
+ type: PropType<IExportSchemeType[]>;
59
+ default: () => never[];
60
+ };
61
+ downLoadFieldList: {
62
+ type: PropType<any[]>;
63
+ default: () => never[];
64
+ };
65
+ }>> & {
66
+ onCancelModal?: ((...args: any[]) => any) | undefined;
67
+ onUpdateCurProgram?: ((...args: any[]) => any) | undefined;
68
+ onUpdateFieldCheckList?: ((...args: any[]) => any) | undefined;
69
+ }>>;
70
+ emits: (event: "cancelModal" | "updateCurProgram" | "updateFieldCheckList", ...args: any[]) => void;
71
+ isChangeWindow: import("vue").Ref<boolean>;
72
+ modalWidth: import("vue").Ref<string>;
73
+ bodyStyle: import("vue").Ref<{
74
+ maxHeight: string;
75
+ height: string;
76
+ }>;
77
+ isSelectAll: import("vue").Ref<boolean>;
78
+ isIndeterminate: import("vue").Ref<boolean>;
79
+ fieldCheckList: import("vue").Ref<any[]>;
80
+ exportApiConfig: import("../../..").AnyObject;
81
+ curSchemeId: import("vue").ComputedRef<string>;
82
+ deleteExportSchemeItem: (schemeId: string) => Promise<import("naive-ui").MessageReactive | undefined>;
83
+ doExportScheme: () => Promise<import("naive-ui").MessageReactive | undefined>;
84
+ renderTag: ({ option }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
85
+ [key: string]: any;
86
+ }>;
87
+ renderLabel: (option: IExportSchemeType) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
88
+ [key: string]: any;
89
+ }>;
90
+ handleClick: (e: MouseEvent) => void;
91
+ handleDelete: (option: IExportSchemeType) => import("naive-ui").MessageReactive | undefined;
92
+ handleUpdateSelect: (value: string | number | null) => void;
93
+ _setFieldCheckListValue: (optionKey: string | number | null) => void;
94
+ exportData: () => void;
95
+ handleCheckboxAll: (checked: boolean) => void;
96
+ cancelModal: () => void;
97
+ resetWindow: () => void;
98
+ changeWindow: () => void;
99
+ NModal: any;
100
+ NCard: any;
101
+ NButton: any;
102
+ NSelect: any;
103
+ NCheckboxGroup: import("vue").DefineComponent<{
104
+ readonly min: NumberConstructor;
105
+ readonly max: NumberConstructor;
106
+ readonly size: PropType<"small" | "medium" | "large">;
107
+ readonly value: PropType<(string | number)[] | null>;
108
+ readonly defaultValue: {
109
+ readonly type: PropType<(string | number)[] | null>;
110
+ readonly default: null;
111
+ };
112
+ readonly disabled: {
113
+ readonly type: PropType<boolean | undefined>;
114
+ readonly default: undefined;
115
+ };
116
+ readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
117
+ actionType: "check" | "uncheck";
118
+ value: string | number;
119
+ }) => void>>;
120
+ readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
121
+ actionType: "check" | "uncheck";
122
+ value: string | number;
123
+ }) => void>>;
124
+ readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
125
+ }, {
126
+ mergedClsPrefix: import("vue").ComputedRef<string>;
127
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
128
+ readonly min: NumberConstructor;
129
+ readonly max: NumberConstructor;
130
+ readonly size: PropType<"small" | "medium" | "large">;
131
+ readonly value: PropType<(string | number)[] | null>;
132
+ readonly defaultValue: {
133
+ readonly type: PropType<(string | number)[] | null>;
134
+ readonly default: null;
135
+ };
136
+ readonly disabled: {
137
+ readonly type: PropType<boolean | undefined>;
138
+ readonly default: undefined;
139
+ };
140
+ readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
141
+ actionType: "check" | "uncheck";
142
+ value: string | number;
143
+ }) => void>>;
144
+ readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
145
+ actionType: "check" | "uncheck";
146
+ value: string | number;
147
+ }) => void>>;
148
+ readonly onChange: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[]) => void> | undefined>;
149
+ }>>, {
150
+ readonly disabled: boolean | undefined;
151
+ readonly defaultValue: (string | number)[] | null;
152
+ }>;
153
+ NCheckbox: any;
154
+ NPopover: any;
155
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelModal" | "updateCurProgram" | "updateFieldCheckList")[], "cancelModal" | "updateCurProgram" | "updateFieldCheckList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
156
+ visible: {
157
+ type: BooleanConstructor;
158
+ default: boolean;
159
+ };
160
+ tableListId: {
161
+ type: StringConstructor;
162
+ default: string;
163
+ };
164
+ fieldOriginList: {
165
+ type: PropType<any[]>;
166
+ default: () => never[];
167
+ };
168
+ curProgram: {
169
+ type: PropType<IExportSchemeType>;
170
+ default: () => {};
171
+ };
172
+ programOptions: {
173
+ type: PropType<IExportSchemeType[]>;
174
+ default: () => never[];
175
+ };
176
+ downLoadFieldList: {
177
+ type: PropType<any[]>;
178
+ default: () => never[];
179
+ };
180
+ }>> & {
181
+ onCancelModal?: ((...args: any[]) => any) | undefined;
182
+ onUpdateCurProgram?: ((...args: any[]) => any) | undefined;
183
+ onUpdateFieldCheckList?: ((...args: any[]) => any) | undefined;
184
+ }, {
185
+ visible: boolean;
186
+ tableListId: string;
187
+ fieldOriginList: any[];
188
+ curProgram: IExportSchemeType;
189
+ programOptions: IExportSchemeType[];
190
+ downLoadFieldList: any[];
191
+ }>;
192
+ export default _default;
@@ -0,0 +1 @@
1
+ import r from"./ExportModal.vue2.js";import o from"../../../../_virtual/_plugin-vue_export-helper.js";var e=o(r,[["__file","ExportModal.vue"]]);export{e as default};
@@ -0,0 +1 @@
1
+ import{defineComponent as e,ref as t,inject as a,computed as l,watch as i,openBlock as n,createBlock as o,unref as r,normalizeClass as s,isRef as u,withCtx as d,createVNode as c,normalizeStyle as m,createElementVNode as h,createTextVNode as v,renderSlot as f,createElementBlock as p,Fragment as g,renderList as b,toDisplayString as y,h as x}from"vue";import{useMessage as w,NModal as L,NCard as I,NButton as k,NCheckbox as C,NSelect as N,NCheckboxGroup as _,NPopover as P,NPopconfirm as z,NIcon as F}from"naive-ui";import{Trash as O}from"@vicons/ionicons5";import{InjectionExportApiConfig as S}from"../constants/index.js";import H from"../hooks/useAsyncData.js";const U={class:"svg-wrap"},$={class:"flex_right"},A={class:"export-field-con"},T={class:"flex_between"};var j=e({__name:"ExportModal",props:{visible:{type:Boolean,default:!1},tableListId:{type:String,default:""},fieldOriginList:{type:Array,default:()=>[]},curProgram:{type:Object,default:()=>({})},programOptions:{type:Array,default:()=>[]},downLoadFieldList:{type:Array,default:()=>[]}},emits:["cancelModal","updateCurProgram","updateFieldCheckList"],setup(e,{emit:j}){const M=e,E="860px",K="496px",B={class:"select-export-popover"},D=w(),{deleteTableListExportScheme:q,exportTableListScheme:G}=H(),J=t(!1),Q=t(E),R=t({maxHeight:K,height:K}),V=t(!1),W=t(!0),X=t([]),Y=a(S),Z=l((()=>M.curProgram.schemeId));function ee({option:e}){return x("span",e.schemeName)}function te(e){const t=[x(P,{trigger:"hover",duration:0},{default:()=>e.schemeName,trigger:()=>x("span",{class:"content"},e.schemeName)})],a=[x(z,{placement:"top-start",positiveText:"确认",negativeText:"取消",onPositiveClick:()=>function(e){const{schemeId:t}=M.curProgram;if(t===e.schemeId)return D.warning("当前正在使用该方案,请先切换其他方案再删除");!async function(e){if(!M.tableListId)return D.warning("请传入列表id");try{await q({id:M.tableListId,schemeId:e},Y)&&D.success("删除成功")}catch(e){D.error(`获取导出方案数据请求失败:${e}`)}}(e.schemeId)}(e)},{trigger:()=>x(F,{onclick:ae},{default:()=>x(O)}),default:()=>"确定删除该导出方案吗?"})],l="default"===e.schemeId?[t]:[t,a];return x("div",{class:"flex-between"},l)}function ae(e){e.stopPropagation()}function le(e){ie(e),j("updateCurProgram",e)}function ie(e){const t=M.programOptions.find((t=>t.schemeId===e));t&&(X.value=t.fieldKeys)}function ne(){!async function(){if(!M.tableListId)return D.warning("请传入列表id");if(X.value.length<1)return D.warning("请至少勾选一个字段");try{const{schemeId:e}=M.curProgram,t=M.programOptions.find((t=>t.schemeId===e)),a={fieldKeys:X.value,lastUsedSchemeName:t?t.schemeName:"",schemeId:t?t.schemeId:"",schemeName:t?t.schemeName:"",tableListId:M.tableListId};await G(a,Y)&&(D.success("导出成功"),re())}catch(e){D.error(`获取导出方案数据请求失败:${e}`)}}()}function oe(e){var t;W.value=!1,X.value=e&&(null==(t=M.downLoadFieldList)?void 0:t.map((e=>e.columnName)))||[]}function re(){j("cancelModal"),Q.value=E,R.value={height:K,maxHeight:K},J.value=!1}function se(){J.value=!J.value;let e=document.body.clientHeight;Q.value===E?(Q.value="100%",R.value.maxHeight=`${e}px`,R.value.height=`${e}px`):(Q.value=E,R.value.maxHeight=K,R.value.height=K)}return i((()=>X.value),(e=>{W.value=!!e.length&&e.length<M.downLoadFieldList.length,V.value=e.length===M.downLoadFieldList.length,j("updateFieldCheckList",e)}),{immediate:!0}),i((()=>M.curProgram),(e=>{e&&ie(e.schemeId)}),{immediate:!0,deep:!0}),(t,a)=>(n(),o(r(L),{class:s(["table-export-field-modal",{"modal-screen":J.value}]),show:e.visible,"onUpdate:show":a[3]||(a[3]=e=>u(visible)?visible.value=e:null),maskClosable:!1,width:Q.value,bodyStyle:R.value,closable:!1,centered:"",onPositiveClick:ne,onNegativeClick:re},{default:d((()=>[c(r(I),{style:m({width:Q.value,...R.value}),title:"选择导出字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[h("div",U,[h("i",{onClick:se,class:s(["iconfont-table-filter",J.value?"icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),h("i",{onClick:re,class:"iconfont-table-filter icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:d((()=>[h("div",$,[c(r(k),{onClick:re},{default:d((()=>[v("取消")])),_:1}),f(t.$slots,"add"),c(r(k),{type:"info",onClick:ne},{default:d((()=>[v("保存")])),_:1})])])),default:d((()=>[h("div",A,[h("header",T,[c(r(C),{checked:V.value,"onUpdate:checked":[a[0]||(a[0]=e=>V.value=e),oe],indeterminate:W.value},{default:d((()=>[v(" 全选 ")])),_:1},8,["checked","indeterminate"]),c(r(N),{style:{width:"200px"},value:r(Z),"onUpdate:value":[a[1]||(a[1]=e=>u(Z)?Z.value=e:null),le],filterable:"","label-field":"schemeName","value-field":"schemeId","show-checkmark":!1,"render-label":te,"render-tag":ee,"menu-props":B,options:e.programOptions},null,8,["value","options"])]),c(r(_),{value:X.value,"onUpdate:value":a[2]||(a[2]=e=>X.value=e)},{default:d((()=>[(n(!0),p(g,null,b(e.downLoadFieldList,(e=>(n(),o(r(P),{key:e.columnName,trigger:"hover",duration:0},{trigger:d((()=>[c(r(C),{value:e.columnName,label:e.title},null,8,["value","label"])])),default:d((()=>[v(" "+y(e.title),1)])),_:2},1024)))),128))])),_:1},8,["value"])])])),_:3},8,["style"])])),_:3},8,["class","show","width","bodyStyle"]))}});export{j as default};