cnhis-design-vue 3.2.7-release.0 → 3.2.7-release.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
  2. package/es/components/classification/index.d.ts +60 -5
  3. package/es/components/classification/src/components/search-filter/index.vue.d.ts +60 -5
  4. package/es/components/classification/src/components/set-classification/index.vue.d.ts +60 -5
  5. package/es/components/classification/src/index.vue.d.ts +60 -5
  6. package/es/components/date-picker/index.d.ts +13 -0
  7. package/es/components/date-picker/src/DatePicker.vue.d.ts +13 -0
  8. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  9. package/es/components/fabric-chart/src/constants/index.d.ts +3 -1
  10. package/es/components/fabric-chart/src/constants/index.js +1 -1
  11. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.d.ts +8 -3
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
  14. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.d.ts +9 -6
  15. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  16. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +1 -1
  17. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.d.ts +0 -2
  18. package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcessChart.js +1 -1
  19. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +8 -3
  20. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  23. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.d.ts +8 -3
  24. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +1 -1
  26. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  27. package/es/components/fabric-chart/src/interface.d.ts +11 -1
  28. package/es/components/field-set/src/FieldColor.vue.d.ts +26 -0
  29. package/es/components/field-set/src/components/condition.vue.d.ts +13 -0
  30. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +26 -0
  31. package/es/components/field-set/src/components/edit-filter.vue.d.ts +13 -0
  32. package/es/components/form-config/index.d.ts +3 -3
  33. package/es/components/form-config/src/FormConfig.vue.d.ts +3 -3
  34. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -3
  35. package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
  36. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  37. package/es/components/form-render/src/hooks/useFormValidator.js +1 -1
  38. package/es/components/form-render/src/types/fieldItem.d.ts +2 -1
  39. package/es/components/form-render/src/types/index.d.ts +1 -1
  40. package/es/components/form-render/src/utils/business.js +1 -1
  41. package/es/components/form-render/src/utils/schema.d.ts +1 -1
  42. package/es/components/form-render/src/utils/schema.js +1 -1
  43. package/es/components/iho-chat/index.d.ts +204 -69
  44. package/es/components/iho-chat/src/Index.vue.d.ts +204 -69
  45. package/es/components/iho-chat/src/Index.vue2.js +1 -1
  46. package/es/components/iho-chat/src/components/ChatAdd.vue.d.ts +34 -13
  47. package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
  48. package/es/components/iho-chat/src/components/ChatFooter.vue.d.ts +38 -13
  49. package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
  50. package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +48 -14
  51. package/es/components/iho-chat/src/components/ChatHeader.vue2.js +1 -1
  52. package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +20 -3
  53. package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
  54. package/es/components/iho-chat/src/components/ChatRecord.vue.d.ts +13 -0
  55. package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
  56. package/es/components/iho-chat/src/components/ChatSearch.vue.d.ts +3 -10
  57. package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
  58. package/es/components/iho-chat/src/components/ContextMenu.d.ts +15 -2
  59. package/es/components/iho-chat/src/components/ContextMenu.js +1 -1
  60. package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +47 -22
  61. package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
  62. package/es/components/iho-chat/src/hooks/useScrollLoading.d.ts +1 -1
  63. package/es/components/iho-chat/src/hooks/useScrollLoading.js +1 -1
  64. package/es/components/iho-chat/src/hooks/useSearchUserList.d.ts +11 -0
  65. package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -0
  66. package/es/components/iho-chat/src/types/index.d.ts +0 -1
  67. package/es/components/iho-chat/style/index.css +1 -1
  68. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +13 -0
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +13 -0
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +20 -2
  71. package/es/components/index.css +1 -1
  72. package/es/components/shortcut-setter/index.d.ts +1 -1
  73. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -1
  74. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +13 -0
  75. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +13 -0
  76. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +13 -0
  77. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +13 -0
  78. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +47 -5
  79. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +13 -0
  80. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +13 -0
  81. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +37 -19
  82. package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
  83. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +47 -5
  84. package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
  85. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +47 -5
  86. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +13 -0
  87. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +13 -0
  88. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +13 -0
  89. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +13 -0
  90. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +33 -18
  91. package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
  92. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +13 -0
  93. package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
  94. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +69 -4
  95. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +69 -4
  96. package/es/components/table-filter/src/tool/transformData.js +1 -1
  97. package/es/components/table-filter/src/types/index.d.ts +1 -0
  98. package/es/components/time-picker/index.d.ts +20 -2
  99. package/es/components/time-picker/src/TimePicker.vue.d.ts +21 -2
  100. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  101. package/es/shared/package.json.js +1 -1
  102. package/es/shared/utils/business.js +1 -1
  103. package/package.json +2 -2
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as f,h as p}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as S}from"../helpers/selectExtraMap.js";import{WidgetValEnums as O}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import k from"./SelectDynamicOption/index.vue.js";import{isEqual as C,cloneDeep as N}from"lodash-es";var A=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:A}){const L=e,P=d(),D="SQL",J="API",{getDynamicSelectData:x}=h(),I=a(),E=l(null),K=l(!1),T=t(b),$=t(j),U=l(1),W=l(),_=l([JSON.parse(JSON.stringify(S))]),M=l([]),F=l(),H=l(0),Q={class:"select-dynamic-popover"},R=u((()=>I.multiple)),V=u((()=>{const{widgetCfg:e}=L.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=u((()=>{const{widgetCfg:e}=L.componentCfg,{showWholeOption:a=!1}=e;return a&&1===U.value})),z=u((()=>H.value>0&&U.value>=H.value)),B=u((()=>{var e;if(Array.isArray(L.value)&&L.value.length>0){const e=L.value;if(X(e),e.includes(S.value)){const e=_.value.find((e=>e.value===S.value)),a=e||S;return R.value?[a]:JSON.stringify(a)}if(!R.value&&1==e.length){const a=_.value.find((a=>a.value===e[0]));return a?JSON.stringify(a):{label:e[0].includes("&")?e[0].split("&")[0]:e[0],value:e[0]}}const a=_.value.filter((a=>e.includes(a.value))),l=a.map((e=>e.value)),t=e.filter((e=>!l.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...a,...t]}return X([]),null!=(e=L.value)?e:null})),G=u((()=>{if(Object.keys(V.value).length>0){const{defaultParams:e=[]}=V.value;return w(e)&&!L.value}return!1}));function X(e){_.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Y(e){const{widgetCfg:a}=L.componentCfg,{linkageFieldKeys:l=[]}=a;C(L.value,e)||(l.forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),A("update:value",e))}async function Z(e){var a;U.value=e,null==(a=null==E?void 0:E.value)||a.focus(),await ee(F.value,U.value)}async function ee(e,a){try{if(K.value=!0,Object.keys(V.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:s,tableDataType:r}=V.value;let v={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};switch(r){case D:v.keyword=e;break;case J:n.length>0&&(v[n[0]]=e)}if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&a.value!==O.WHOLE&&(v[e]=a.value)}))}let c=await x(v,T);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:`${e[i[0]]}&${e[s]}`}))),u=N(t);q.value&&t.unshift(JSON.parse(JSON.stringify(S))),W.value=null!=e?e:[],_.value=null!=t?t:[],M.value=u,H.value=l}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{K.value=!1}}const ae=g((async e=>{await async function(e){F.value=e.trim(),U.value=1,await ee(F.value,U.value)}(e)}),300);async function le(){Object.keys(V.value).length>0&&T&&await ee("",U.value)}async function te(){A("update:value",null),await le()}function ue(e){F.value="",e&&(U.value=1,le())}function ne({option:e,handleClose:a}){if(R.value){const l=e.value;return p(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(L.value)&&L.value.length>0){const e=L.value,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);A("update:value",l.length>0?l:null)}}}},{default:()=>p("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return p("div",l.label)}return n((()=>{G.value||le()})),(e,a)=>(o(),i(s(m),r({ref_key:"selectDynamicRef",ref:E},s(I),{value:s(B),"onUpdate:value":a[0]||(a[0]=e=>v(B)?B.value=e:null),remote:"",loading:K.value,"render-tag":ne,"menu-props":Q,onSearch:s(ae),onClear:te,"onUpdate:show":ue}),{empty:c((()=>[f(k,r(s(I),{loading:K.value,dynamicOptionInfo:s(V),fieldTitleList:W.value,optionList:_.value,isMultiple:s(R),curPage:U.value,isLastPage:s(z),isShowWhole:s(q),onUpdateSelect:Y,onUpdatePage:Z}),null,16,["loading","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{A as default};
1
+ import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as p,h as f}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as O}from"../helpers/selectExtraMap.js";import{WidgetValEnums as S}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import k from"./SelectDynamicOption/index.vue.js";import{isEqual as C,cloneDeep as A}from"lodash-es";var L=e({__name:"SelectDynamic",props:{value:{type:Array},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:L}){const N=e,P=d(),D="SQL",J="API",{getDynamicSelectData:x}=h(),I=a(),E=l(null),K=l(!1),T=t(b),$=t(j),U=l(1),W=l(),_=l([JSON.parse(JSON.stringify(O))]),M=l([]),V=l(),F=l(0),H={class:"select-dynamic-popover"},Q=u((()=>I.multiple)),R=u((()=>{const{widgetCfg:e}=N.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=u((()=>{const{widgetCfg:e}=N.componentCfg,{showWholeOption:a=!1}=e;return a&&1===U.value})),z=u((()=>F.value>0&&U.value>=F.value)),B=u((()=>{var e;if(Array.isArray(N.value)&&N.value.length>0){const e=N.value;if(X(e),e.includes(O.value)){const e=_.value.find((e=>e.value===O.value)),a=e||O;return Q.value?[a]:JSON.stringify(a)}if(!Q.value&&1==e.length){const a=_.value.find((a=>a.value===e[0]));return a?JSON.stringify(a):{label:e[0].includes("&")?e[0].split("&")[0]:e[0],value:e[0]}}const a=_.value.filter((a=>e.includes(a.value))),l=a.map((e=>e.value)),t=e.filter((e=>!l.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...a,...t]}return X([]),null!=(e=N.value)?e:null})),G=u((()=>{if(Object.keys(R.value).length>0){const{defaultParams:e=[]}=R.value;return w(e)&&!N.value}return!1}));function X(e){_.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Y(e){const{widgetCfg:a}=N.componentCfg,{linkageFieldKeys:l=[]}=a;C(N.value,e)||(l.forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),L("update:value",e))}async function Z(e){var a;U.value=e,null==(a=null==E?void 0:E.value)||a.focus(),await ee(V.value,U.value)}async function ee(e,a){try{if(K.value=!0,Object.keys(R.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:s,tableDataType:r}=R.value;let v={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};switch(r){case D:v.keyword=e;break;case J:n.length>0&&(v[n[0]]=e)}if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&a.value!==S.WHOLE&&(v[e]=a.value)}))}let c=await x(v,T);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:`${e[i[0]]}&${e[s]}`}))),u=A(t);q.value&&t.unshift(JSON.parse(JSON.stringify(O))),W.value=null!=e?e:[],_.value=null!=t?t:[],M.value=u,F.value=l}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{K.value=!1}}const ae=g((async e=>{await async function(e){V.value=e.trim(),U.value=1,await ee(V.value,U.value)}(e)}),300);async function le(){Object.keys(R.value).length>0&&T&&await ee("",U.value)}async function te(){L("update:value",null),await le()}function ue(e){V.value="",e&&(U.value=1,le())}function ne({option:e,handleClose:a}){if(Q.value){const l=e.value;return f(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(N.value)&&N.value.length>0){const e=N.value,a=e.indexOf(l.value);a>-1&&(e.splice(a,1),L("update:value",e.length>0?e:null))}}},{default:()=>f("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return f("div",l.label)}return n((()=>{G.value||le()})),(e,a)=>(o(),i(s(m),r({ref_key:"selectDynamicRef",ref:E},s(I),{value:s(B),"onUpdate:value":a[0]||(a[0]=e=>v(B)?B.value=e:null),remote:"",loading:K.value,"render-tag":ne,"menu-props":H,onSearch:s(ae),onClear:te,"onUpdate:show":ue}),{empty:c((()=>[p(k,r(s(I),{oldValue:N.value,loading:K.value,dynamicOptionInfo:s(R),fieldTitleList:W.value,optionList:_.value,isMultiple:s(Q),curPage:U.value,isLastPage:s(z),isShowWhole:s(q),onUpdateSelect:Y,onUpdatePage:Z}),null,16,["oldValue","loading","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{L as default};
@@ -1,6 +1,10 @@
1
1
  import { PropType } from 'vue';
2
2
  import { AnyObject } from '../../../../../../../shared/types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
+ oldValue: {
5
+ type: PropType<AnyObject[]>;
6
+ default: () => never[];
7
+ };
4
8
  dynamicOptionInfo: {
5
9
  type: PropType<AnyObject>;
6
10
  default: () => {};
@@ -36,6 +40,10 @@ declare const _default: import("vue").DefineComponent<{
36
40
  }, {
37
41
  selectMinWidth: number;
38
42
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
43
+ oldValue: {
44
+ type: PropType<AnyObject[]>;
45
+ default: () => never[];
46
+ };
39
47
  dynamicOptionInfo: {
40
48
  type: PropType<AnyObject>;
41
49
  default: () => {};
@@ -124,6 +132,10 @@ declare const _default: import("vue").DefineComponent<{
124
132
  ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
125
133
  ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
126
134
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
135
+ oldValue: {
136
+ type: PropType<AnyObject[]>;
137
+ default: () => never[];
138
+ };
127
139
  dynamicOptionInfo: {
128
140
  type: PropType<AnyObject>;
129
141
  default: () => {};
@@ -162,6 +174,7 @@ declare const _default: import("vue").DefineComponent<{
162
174
  }, {
163
175
  isMultiple: boolean;
164
176
  loading: boolean;
177
+ oldValue: AnyObject[];
165
178
  dynamicOptionInfo: AnyObject;
166
179
  fieldTitleList: AnyObject[];
167
180
  optionList: AnyObject[];
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as i,withDirectives as a,openBlock as l,createElementBlock as n,normalizeStyle as o,createBlock as s,unref as c,Fragment as d,renderList as u,toDisplayString as r,createCommentVNode as p,createElementVNode as v,normalizeClass as m,withCtx as f,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as k,NButtonGroup as L,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as P}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as x}from"../../../../types/enums.js";import{ArrowBack as M,ArrowForward as O}from"@vicons/ionicons5";import{WholeSelectObj as W}from"../../helpers/selectExtraMap.js";const _={key:0,class:"dynamic-header"},S={class:"dynamic-content"},j=["onClick"],w={key:0,class:"content"},B={class:"content"},C={class:"dynamic-pagination"};var z=e({__name:"index",props:{dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:z}){const H=e,A=t(200),I=i((()=>{var e,t;return null!=(t=null==(e=H.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),N=i((()=>I.value&&I.value.length>0?I.value.map((e=>{let t="";return H.fieldTitleList.forEach((i=>{i.columnName===e&&(t=i.title)})),t})):[])),R=i((()=>!H.optionList.filter((e=>e.label!=W.label)).length));function T(e){const t=H.curPage+e;z("updatePage",t)}function K({distance:e}){const t=A.value+e;A.value=Math.min(Math.max(t,200),1e3)}function V(){}return(t,i)=>a((l(),n("div",{class:"select-dynamic-options",style:o({minWidth:A.value+"px",position:"relative"})},[e.loading?(l(),s(c(g),{key:0,"show-icon":!1,description:"加载中..."})):(l(),n(d,{key:1},[c(R)?(l(),s(c(g),{key:0,description:"无数据"})):(l(),n(d,{key:1},[c(N)&&c(N).length>1?(l(),n("div",_,[(l(!0),n(d,null,u(c(N),(e=>(l(),n("span",{key:e,class:"name"},r(e),1)))),128))])):p("v-if",!0),v("ul",S,[(l(!0),n(d,null,u(e.optionList,(t=>(l(),n("li",{class:m(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,i,a;if(!H.isMultiple||e.value===x.WHOLE)return null==(t=H.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void z("updateSelect",[e.value]);null==(i=H.optionList)||i.forEach((e=>{e.value===x.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const l=null==(a=H.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));z("updateSelect",l)}(t)},[e.isShowWhole&&t.value===c(x).WHOLE?(l(),n("span",w,r(t.label),1)):(l(!0),n(d,{key:1},u(c(I),(e=>(l(),s(c(k),{key:e,trigger:"hover",duration:0},{trigger:f((()=>[v("span",B,r(t[e]),1)])),default:f((()=>[y(" "+r(t[e]),1)])),_:2},1024)))),128))],10,j)))),128))]),v("div",C,[h(c(L),null,{default:f((()=>[h(c(b),{onClick:i[0]||(i[0]=e=>T(-1)),disabled:e.curPage<=1},{icon:f((()=>[h(c(E),{component:c(M),size:"16"},null,8,["component"])])),default:f((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:i[1]||(i[1]=e=>T(1)),disabled:e.isLastPage},{icon:f((()=>[h(c(E),{component:c(O),size:"16"},null,8,["component"])])),default:f((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],64))],4)),[[c(P),{mode:"VR",onMove:K,onEnd:V}]])}});export{z as default};
1
+ import{defineComponent as e,ref as t,computed as l,withDirectives as a,openBlock as i,createElementBlock as n,normalizeStyle as o,createBlock as s,unref as c,Fragment as d,renderList as u,toDisplayString as r,createCommentVNode as p,createElementVNode as v,normalizeClass as f,withCtx as m,createTextVNode as y,createVNode as h}from"vue";import{NEmpty as g,NPopover as k,NButtonGroup as L,NButton as b,NIcon as E}from"naive-ui";import{vFlexibleResize as S}from"../../../../../../../shared/directive/flexibleResize.js";import{WidgetValEnums as P}from"../../../../types/enums.js";import{ArrowBack as x,ArrowForward as M}from"@vicons/ionicons5";import{WholeSelectObj as O}from"../../helpers/selectExtraMap.js";const W={key:0,class:"dynamic-header"},_={class:"dynamic-content"},w=["onClick"],V={key:0,class:"content"},j={class:"content"},B={class:"dynamic-pagination"};var C=e({__name:"index",props:{oldValue:{type:Array,default:()=>[]},dynamicOptionInfo:{type:Object,default:()=>({})},fieldTitleList:{type:Array,default:()=>[]},optionList:{type:Array,default:()=>[]},isMultiple:{type:Boolean,default:!1},curPage:{type:Number,default:1},isLastPage:{type:Boolean,default:!1},isShowWhole:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["updateSelect","updatePage"],setup(e,{emit:C}){const z=e,A=t(200),H=l((()=>{var e,t;return null!=(t=null==(e=z.dynamicOptionInfo)?void 0:e.showKeys)?t:[]})),I=l((()=>H.value&&H.value.length>0?H.value.map((e=>{let t="";return z.fieldTitleList.forEach((l=>{l.columnName===e&&(t=l.title)})),t})):[])),N=l((()=>!z.optionList.filter((e=>e.label!=O.label)).length));function R(e){const t=z.curPage+e;C("updatePage",t)}function T({distance:e}){const t=A.value+e;A.value=Math.min(Math.max(t,200),1e3)}function K(){}return(t,l)=>a((i(),n("div",{class:"select-dynamic-options",style:o({minWidth:A.value+"px",position:"relative"})},[e.loading?(i(),s(c(g),{key:0,"show-icon":!1,description:"加载中..."})):(i(),n(d,{key:1},[c(N)?(i(),s(c(g),{key:0,description:"无数据"})):(i(),n(d,{key:1},[c(I)&&c(I).length>1?(i(),n("div",W,[(i(!0),n(d,null,u(c(I),(e=>(i(),n("span",{key:e,class:"name"},r(e),1)))),128))])):p("v-if",!0),v("ul",_,[(i(!0),n(d,null,u(e.optionList,(t=>(i(),n("li",{class:f(t.actived?"actived":""),key:t.value,onClick:e=>function(e){var t,l,a,i;if(!z.isMultiple||e.value===P.WHOLE)return null==(t=z.optionList)||t.forEach((e=>{e.actived=!1})),e.actived=!0,void C("updateSelect",[e.value]);null==(l=z.optionList)||l.forEach((e=>{e.value===P.WHOLE&&(e.actived=!1)})),e.actived?e.actived=!1:e.actived=!0;const n=null==(a=z.optionList)?void 0:a.filter((e=>e.actived)).map((e=>e.value));if(z.oldValue&&(null==(i=z.oldValue)?void 0:i.length)>0){const t=[...new Set([...z.oldValue,...n])];return e.actived?C("updateSelect",t):C("updateSelect",t.filter((t=>t!=e.value)))}C("updateSelect",n)}(t)},[e.isShowWhole&&t.value===c(P).WHOLE?(i(),n("span",V,r(t.label),1)):(i(!0),n(d,{key:1},u(c(H),(e=>(i(),s(c(k),{key:e,trigger:"hover",duration:0},{trigger:m((()=>[v("span",j,r(t[e]),1)])),default:m((()=>[y(" "+r(t[e]),1)])),_:2},1024)))),128))],10,w)))),128))]),v("div",B,[h(c(L),null,{default:m((()=>[h(c(b),{onClick:l[0]||(l[0]=e=>R(-1)),disabled:e.curPage<=1},{icon:m((()=>[h(c(E),{component:c(x),size:"16"},null,8,["component"])])),default:m((()=>[y(" 上一页 ")])),_:1},8,["disabled"]),h(c(b),{"icon-placement":"right",onClick:l[1]||(l[1]=e=>R(1)),disabled:e.isLastPage},{icon:m((()=>[h(c(E),{component:c(M),size:"16"},null,8,["component"])])),default:m((()=>[y(" 下一页 ")])),_:1},8,["disabled"])])),_:1})])],64))],64))],4)),[[c(S),{mode:"VR",onMove:T,onEnd:K}]])}});export{C as default};
@@ -204,6 +204,10 @@ declare const DateInner: import("vue").DefineComponent<{
204
204
  allowedInvalidValue: {
205
205
  type: StringConstructor;
206
206
  };
207
+ to: {
208
+ type: import("vue").PropType<string | false | HTMLElement>;
209
+ default: string;
210
+ };
207
211
  }, {
208
212
  attrs: {
209
213
  [x: string]: unknown;
@@ -224,6 +228,10 @@ declare const DateInner: import("vue").DefineComponent<{
224
228
  allowedInvalidValue: {
225
229
  type: StringConstructor;
226
230
  };
231
+ to: {
232
+ type: import("vue").PropType<string | false | HTMLElement>;
233
+ default: string;
234
+ };
227
235
  }>> & {
228
236
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
229
237
  }>>;
@@ -260,10 +268,15 @@ declare const DateInner: import("vue").DefineComponent<{
260
268
  allowedInvalidValue: {
261
269
  type: StringConstructor;
262
270
  };
271
+ to: {
272
+ type: import("vue").PropType<string | false | HTMLElement>;
273
+ default: string;
274
+ };
263
275
  }>> & {
264
276
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
265
277
  }, {
266
278
  updateUnchangedValue: boolean;
279
+ to: string | false | HTMLElement;
267
280
  }>>;
268
281
  DateQuickBtn: import("vue").DefineComponent<{
269
282
  componentCfg: {
@@ -452,6 +465,10 @@ declare const DateOut: import("vue").DefineComponent<{
452
465
  allowedInvalidValue: {
453
466
  type: StringConstructor;
454
467
  };
468
+ to: {
469
+ type: import("vue").PropType<string | false | HTMLElement>;
470
+ default: string;
471
+ };
455
472
  }, {
456
473
  attrs: {
457
474
  [x: string]: unknown;
@@ -472,6 +489,10 @@ declare const DateOut: import("vue").DefineComponent<{
472
489
  allowedInvalidValue: {
473
490
  type: StringConstructor;
474
491
  };
492
+ to: {
493
+ type: import("vue").PropType<string | false | HTMLElement>;
494
+ default: string;
495
+ };
475
496
  }>> & {
476
497
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
477
498
  }>>;
@@ -508,10 +529,15 @@ declare const DateOut: import("vue").DefineComponent<{
508
529
  allowedInvalidValue: {
509
530
  type: StringConstructor;
510
531
  };
532
+ to: {
533
+ type: import("vue").PropType<string | false | HTMLElement>;
534
+ default: string;
535
+ };
511
536
  }>> & {
512
537
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
513
538
  }, {
514
539
  updateUnchangedValue: boolean;
540
+ to: string | false | HTMLElement;
515
541
  }>>;
516
542
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
517
543
  componentCfg: {
@@ -662,6 +688,10 @@ declare const DateRangeInner: import("vue").DefineComponent<{
662
688
  allowedInvalidValue: {
663
689
  type: StringConstructor;
664
690
  };
691
+ to: {
692
+ type: import("vue").PropType<string | false | HTMLElement>;
693
+ default: string;
694
+ };
665
695
  }, {
666
696
  attrs: {
667
697
  [x: string]: unknown;
@@ -682,6 +712,10 @@ declare const DateRangeInner: import("vue").DefineComponent<{
682
712
  allowedInvalidValue: {
683
713
  type: StringConstructor;
684
714
  };
715
+ to: {
716
+ type: import("vue").PropType<string | false | HTMLElement>;
717
+ default: string;
718
+ };
685
719
  }>> & {
686
720
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
687
721
  }>>;
@@ -718,10 +752,15 @@ declare const DateRangeInner: import("vue").DefineComponent<{
718
752
  allowedInvalidValue: {
719
753
  type: StringConstructor;
720
754
  };
755
+ to: {
756
+ type: import("vue").PropType<string | false | HTMLElement>;
757
+ default: string;
758
+ };
721
759
  }>> & {
722
760
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
723
761
  }, {
724
762
  updateUnchangedValue: boolean;
763
+ to: string | false | HTMLElement;
725
764
  }>>;
726
765
  DateQuickBtn: import("vue").DefineComponent<{
727
766
  componentCfg: {
@@ -917,6 +956,10 @@ declare const DateRangeOut: import("vue").DefineComponent<{
917
956
  allowedInvalidValue: {
918
957
  type: StringConstructor;
919
958
  };
959
+ to: {
960
+ type: import("vue").PropType<string | false | HTMLElement>;
961
+ default: string;
962
+ };
920
963
  }, {
921
964
  attrs: {
922
965
  [x: string]: unknown;
@@ -937,6 +980,10 @@ declare const DateRangeOut: import("vue").DefineComponent<{
937
980
  allowedInvalidValue: {
938
981
  type: StringConstructor;
939
982
  };
983
+ to: {
984
+ type: import("vue").PropType<string | false | HTMLElement>;
985
+ default: string;
986
+ };
940
987
  }>> & {
941
988
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
942
989
  }>>;
@@ -973,10 +1020,15 @@ declare const DateRangeOut: import("vue").DefineComponent<{
973
1020
  allowedInvalidValue: {
974
1021
  type: StringConstructor;
975
1022
  };
1023
+ to: {
1024
+ type: import("vue").PropType<string | false | HTMLElement>;
1025
+ default: string;
1026
+ };
976
1027
  }>> & {
977
1028
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
978
1029
  }, {
979
1030
  updateUnchangedValue: boolean;
1031
+ to: string | false | HTMLElement;
980
1032
  }>>;
981
1033
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
982
1034
  type: {
@@ -1158,7 +1210,7 @@ declare const Select: import("vue").DefineComponent<{
1158
1210
  }, {}>;
1159
1211
  declare const SelectDynamic: import("vue").DefineComponent<{
1160
1212
  value: {
1161
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1213
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
1162
1214
  };
1163
1215
  componentCfg: {
1164
1216
  type: ObjectConstructor;
@@ -1171,7 +1223,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
1171
1223
  };
1172
1224
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1173
1225
  value: {
1174
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1226
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
1175
1227
  };
1176
1228
  componentCfg: {
1177
1229
  type: ObjectConstructor;
@@ -1201,7 +1253,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
1201
1253
  dynamicOptionInfos: import("vue").ComputedRef<any>;
1202
1254
  isShowWhole: import("vue").ComputedRef<any>;
1203
1255
  isLastPage: import("vue").ComputedRef<boolean>;
1204
- valueCp: import("vue").ComputedRef<string | number | any[] | {
1256
+ valueCp: import("vue").ComputedRef<string | any[] | {
1205
1257
  label: any;
1206
1258
  value: any;
1207
1259
  } | null>;
@@ -1222,6 +1274,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
1222
1274
  init: () => void;
1223
1275
  NSelect: any;
1224
1276
  SelectDynamicOption: import("vue").DefineComponent<{
1277
+ oldValue: {
1278
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
1279
+ default: () => never[];
1280
+ };
1225
1281
  dynamicOptionInfo: {
1226
1282
  type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
1227
1283
  default: () => {};
@@ -1257,6 +1313,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
1257
1313
  }, {
1258
1314
  selectMinWidth: number;
1259
1315
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
1316
+ oldValue: {
1317
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
1318
+ default: () => never[];
1319
+ };
1260
1320
  dynamicOptionInfo: {
1261
1321
  type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
1262
1322
  default: () => {};
@@ -1345,6 +1405,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
1345
1405
  ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1346
1406
  ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1347
1407
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1408
+ oldValue: {
1409
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
1410
+ default: () => never[];
1411
+ };
1348
1412
  dynamicOptionInfo: {
1349
1413
  type: import("vue").PropType<import("../../../../../../shared/types").AnyObject>;
1350
1414
  default: () => {};
@@ -1383,6 +1447,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
1383
1447
  }, {
1384
1448
  isMultiple: boolean;
1385
1449
  loading: boolean;
1450
+ oldValue: import("../../../../../../shared/types").AnyObject[];
1386
1451
  dynamicOptionInfo: import("../../../../../../shared/types").AnyObject;
1387
1452
  fieldTitleList: import("../../../../../../shared/types").AnyObject[];
1388
1453
  optionList: import("../../../../../../shared/types").AnyObject[];
@@ -1392,7 +1457,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
1392
1457
  }>;
1393
1458
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1394
1459
  value: {
1395
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
1460
+ type: import("vue").PropType<import("../../../../../../shared/types").AnyObject[]>;
1396
1461
  };
1397
1462
  componentCfg: {
1398
1463
  type: ObjectConstructor;
@@ -147,7 +147,7 @@ export declare const WidgetCfgMaps: Map<string, {
147
147
  } | {
148
148
  component: import("vue").DefineComponent<{
149
149
  value: {
150
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
150
+ type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
151
151
  };
152
152
  componentCfg: {
153
153
  type: ObjectConstructor;
@@ -160,7 +160,7 @@ export declare const WidgetCfgMaps: Map<string, {
160
160
  };
161
161
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
162
162
  value: {
163
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
163
+ type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
164
164
  };
165
165
  componentCfg: {
166
166
  type: ObjectConstructor;
@@ -190,7 +190,7 @@ export declare const WidgetCfgMaps: Map<string, {
190
190
  dynamicOptionInfos: import("vue").ComputedRef<any>;
191
191
  isShowWhole: import("vue").ComputedRef<any>;
192
192
  isLastPage: import("vue").ComputedRef<boolean>;
193
- valueCp: import("vue").ComputedRef<string | number | any[] | {
193
+ valueCp: import("vue").ComputedRef<string | any[] | {
194
194
  label: any;
195
195
  value: any;
196
196
  } | null>;
@@ -211,6 +211,10 @@ export declare const WidgetCfgMaps: Map<string, {
211
211
  init: () => void;
212
212
  NSelect: any;
213
213
  SelectDynamicOption: import("vue").DefineComponent<{
214
+ oldValue: {
215
+ type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
216
+ default: () => never[];
217
+ };
214
218
  dynamicOptionInfo: {
215
219
  type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
216
220
  default: () => {};
@@ -246,6 +250,10 @@ export declare const WidgetCfgMaps: Map<string, {
246
250
  }, {
247
251
  selectMinWidth: number;
248
252
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
253
+ oldValue: {
254
+ type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
255
+ default: () => never[];
256
+ };
249
257
  dynamicOptionInfo: {
250
258
  type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
251
259
  default: () => {};
@@ -334,6 +342,10 @@ export declare const WidgetCfgMaps: Map<string, {
334
342
  ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
335
343
  ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
336
344
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
345
+ oldValue: {
346
+ type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
347
+ default: () => never[];
348
+ };
337
349
  dynamicOptionInfo: {
338
350
  type: import("vue").PropType<import("../../../../../shared/types").AnyObject>;
339
351
  default: () => {};
@@ -372,6 +384,7 @@ export declare const WidgetCfgMaps: Map<string, {
372
384
  }, {
373
385
  isMultiple: boolean;
374
386
  loading: boolean;
387
+ oldValue: import("../../../../../shared/types").AnyObject[];
375
388
  dynamicOptionInfo: import("../../../../../shared/types").AnyObject;
376
389
  fieldTitleList: import("../../../../../shared/types").AnyObject[];
377
390
  optionList: import("../../../../../shared/types").AnyObject[];
@@ -381,7 +394,7 @@ export declare const WidgetCfgMaps: Map<string, {
381
394
  }>;
382
395
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
383
396
  value: {
384
- type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
397
+ type: import("vue").PropType<import("../../../../../shared/types").AnyObject[]>;
385
398
  };
386
399
  componentCfg: {
387
400
  type: ObjectConstructor;
@@ -504,6 +517,10 @@ export declare const WidgetCfgMaps: Map<string, {
504
517
  allowedInvalidValue: {
505
518
  type: StringConstructor;
506
519
  };
520
+ to: {
521
+ type: import("vue").PropType<string | false | HTMLElement>;
522
+ default: string;
523
+ };
507
524
  }, {
508
525
  attrs: {
509
526
  [x: string]: unknown;
@@ -524,6 +541,10 @@ export declare const WidgetCfgMaps: Map<string, {
524
541
  allowedInvalidValue: {
525
542
  type: StringConstructor;
526
543
  };
544
+ to: {
545
+ type: import("vue").PropType<string | false | HTMLElement>;
546
+ default: string;
547
+ };
527
548
  }>> & {
528
549
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
529
550
  }>>;
@@ -560,10 +581,15 @@ export declare const WidgetCfgMaps: Map<string, {
560
581
  allowedInvalidValue: {
561
582
  type: StringConstructor;
562
583
  };
584
+ to: {
585
+ type: import("vue").PropType<string | false | HTMLElement>;
586
+ default: string;
587
+ };
563
588
  }>> & {
564
589
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
565
590
  }, {
566
591
  updateUnchangedValue: boolean;
592
+ to: string | false | HTMLElement;
567
593
  }>>;
568
594
  DateQuickBtn: import("vue").DefineComponent<{
569
595
  componentCfg: {
@@ -766,6 +792,10 @@ export declare const WidgetCfgMaps: Map<string, {
766
792
  allowedInvalidValue: {
767
793
  type: StringConstructor;
768
794
  };
795
+ to: {
796
+ type: import("vue").PropType<string | false | HTMLElement>;
797
+ default: string;
798
+ };
769
799
  }, {
770
800
  attrs: {
771
801
  [x: string]: unknown;
@@ -786,6 +816,10 @@ export declare const WidgetCfgMaps: Map<string, {
786
816
  allowedInvalidValue: {
787
817
  type: StringConstructor;
788
818
  };
819
+ to: {
820
+ type: import("vue").PropType<string | false | HTMLElement>;
821
+ default: string;
822
+ };
789
823
  }>> & {
790
824
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
791
825
  }>>;
@@ -822,10 +856,15 @@ export declare const WidgetCfgMaps: Map<string, {
822
856
  allowedInvalidValue: {
823
857
  type: StringConstructor;
824
858
  };
859
+ to: {
860
+ type: import("vue").PropType<string | false | HTMLElement>;
861
+ default: string;
862
+ };
825
863
  }>> & {
826
864
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
827
865
  }, {
828
866
  updateUnchangedValue: boolean;
867
+ to: string | false | HTMLElement;
829
868
  }>>;
830
869
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
831
870
  componentCfg: {
@@ -990,6 +1029,10 @@ export declare const WidgetCfgMaps: Map<string, {
990
1029
  allowedInvalidValue: {
991
1030
  type: StringConstructor;
992
1031
  };
1032
+ to: {
1033
+ type: import("vue").PropType<string | false | HTMLElement>;
1034
+ default: string;
1035
+ };
993
1036
  }, {
994
1037
  attrs: {
995
1038
  [x: string]: unknown;
@@ -1010,6 +1053,10 @@ export declare const WidgetCfgMaps: Map<string, {
1010
1053
  allowedInvalidValue: {
1011
1054
  type: StringConstructor;
1012
1055
  };
1056
+ to: {
1057
+ type: import("vue").PropType<string | false | HTMLElement>;
1058
+ default: string;
1059
+ };
1013
1060
  }>> & {
1014
1061
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1015
1062
  }>>;
@@ -1046,10 +1093,15 @@ export declare const WidgetCfgMaps: Map<string, {
1046
1093
  allowedInvalidValue: {
1047
1094
  type: StringConstructor;
1048
1095
  };
1096
+ to: {
1097
+ type: import("vue").PropType<string | false | HTMLElement>;
1098
+ default: string;
1099
+ };
1049
1100
  }>> & {
1050
1101
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1051
1102
  }, {
1052
1103
  updateUnchangedValue: boolean;
1104
+ to: string | false | HTMLElement;
1053
1105
  }>>;
1054
1106
  DateQuickBtn: import("vue").DefineComponent<{
1055
1107
  componentCfg: {
@@ -1259,6 +1311,10 @@ export declare const WidgetCfgMaps: Map<string, {
1259
1311
  allowedInvalidValue: {
1260
1312
  type: StringConstructor;
1261
1313
  };
1314
+ to: {
1315
+ type: import("vue").PropType<string | false | HTMLElement>;
1316
+ default: string;
1317
+ };
1262
1318
  }, {
1263
1319
  attrs: {
1264
1320
  [x: string]: unknown;
@@ -1279,6 +1335,10 @@ export declare const WidgetCfgMaps: Map<string, {
1279
1335
  allowedInvalidValue: {
1280
1336
  type: StringConstructor;
1281
1337
  };
1338
+ to: {
1339
+ type: import("vue").PropType<string | false | HTMLElement>;
1340
+ default: string;
1341
+ };
1282
1342
  }>> & {
1283
1343
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1284
1344
  }>>;
@@ -1315,10 +1375,15 @@ export declare const WidgetCfgMaps: Map<string, {
1315
1375
  allowedInvalidValue: {
1316
1376
  type: StringConstructor;
1317
1377
  };
1378
+ to: {
1379
+ type: import("vue").PropType<string | false | HTMLElement>;
1380
+ default: string;
1381
+ };
1318
1382
  }>> & {
1319
1383
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1320
1384
  }, {
1321
1385
  updateUnchangedValue: boolean;
1386
+ to: string | false | HTMLElement;
1322
1387
  }>>;
1323
1388
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1324
1389
  type: {
@@ -1 +1 @@
1
- import{DataTypeEnums as e,WidgetTypeEnums as t,WidgetOptionEnums as l}from"../types/enums.js";const a=(a,i=[])=>a===e.API?i.map((e=>{var i,n,u,r,p,o,c,d,y,s,v,E;const m=null!=(n=null==(i=e.optionInfo)?void 0:i.list)?n:[];let f=e.type;return e.type===t.LABEL&&(f=t.SELECTLABEL),e.type===t.SELECT&&!1===(null==(u=null==e?void 0:e.optionInfo)?void 0:u.manualMapping)&&(f=t.SELECTDYNAMIC),e.rangeFilter&&(e.type===t.INPUT_NUMBER&&(f=t.INPUTNUMBER_RANGE),e.type===t.DATE&&(f=t.DATE_RANGE_INNER),e.type===t.DATE_TIME&&(f=t.DATETIME_RANGE_INNER)),{dataType:a,p_name:e.name,p_type:e.dataType,title:e.title,customTitle:e.customTitle,type:f,optionSetting:e.optionType,openAdvancedFilter:e.isShowSearch,filterOutDisplay:e.filterExplicit,filterOutRequired:e.explicitRequired,width:e.width,defValCfg:{value:e.type===t.SELECT&&e.optionType===l.MULTIPLE?null!=(p=null==(r=e.defaultValue)?void 0:r.valueList)?p:[]:null!=(d=null==(c=null==(o=e.defaultValue)?void 0:o.valueList)?void 0:c[0])?d:null,presetVal:e.type===t.SELECT&&e.optionType===l.MULTIPLE?(null==(y=e.defaultValue)?void 0:y.unit)?[null==(s=e.defaultValue)?void 0:s.unit]:[]:null!=(E=null==(v=e.defaultValue)?void 0:v.unit)?E:null},mappingConfig:{mappingMethod:null,mapping:m.map((({name:e,value:t})=>({label:e,value:t})))},remark:e.remark,optionInfo:e.optionInfo,_rawData:e}})):[],i=t=>t.map((t=>{var l;const{title:a,customTitle:i,openAdvancedFilter:n,filterOutDisplay:u,filterOutRequired:r,width:p,optionSetting:o,defValCfg:c,mappingConfig:d,remark:y,_rawData:s}=t,{value:v,presetVal:E}=c,{mapping:m}=d;if(t.dataType===e.API){const{p_name:e,p_type:c,type:d}=t;return{...s,name:e,title:a,customTitle:i,type:d,dataType:c,isShowSearch:n,filterExplicit:u,explicitRequired:r,width:p,optionType:o,defaultValue:{valueList:Array.isArray(v)?v:v?[v]:[],unit:Array.isArray(E)?E[0]:E},optionInfo:{manualMapping:null==(l=null==s?void 0:s.optionInfo)?void 0:l.manualMapping,list:m.map((({label:e,value:t})=>({name:e,value:t})))},remark:y}}return null})).filter((e=>!!e)),n=(e,a)=>e.map((e=>{var i,n;const u=((e,t)=>t.find((t=>t.p_name===e)))(e.field_key,a);let r=e.value;r&&!Array.isArray(r)&&(r=[r]);const p=(null==u?void 0:u.type)!==t.SELECT&&(null==u?void 0:u.type)!==t.SELECTDYNAMIC||(null==u?void 0:u.optionSetting)!==l.MULTIPLE?null!=(i=null==r?void 0:r[0])?i:null:null!=r?r:[],o={key:e.field_key,condition:e.con,value:p,presetVal:null!=(n=e.unit)?n:null};return Object.keys(e).includes("isAccurateSearch")&&(o.isAccurateSearch=e.isAccurateSearch,o.accurateSearchKey=e.accurateSearchKey),o})),u=e=>e.map((e=>{const t={field_key:e.key,con:e.condition,value:Array.isArray(e.value)?e.value:e.value?[e.value]:[],unit:e.presetVal};return Object.keys(e).includes("isAccurateSearch")&&(t.isAccurateSearch=e.isAccurateSearch,t.accurateSearchKey=e.accurateSearchKey),t}));export{n as transformConditions,i as transformDataToEnd,a as transformDataToFront,u as transformRawConditions};
1
+ import{DataTypeEnums as e,WidgetTypeEnums as t,WidgetOptionEnums as l}from"../types/enums.js";const a=(a,i=[])=>a===e.API?i.map((e=>{var i,n,u,r,p,o,c,d,s,y,v,m;const E=null!=(n=null==(i=e.optionInfo)?void 0:i.list)?n:[];let f=e.type;return e.type===t.LABEL&&(f=t.SELECTLABEL),e.type===t.SELECT&&!1===(null==(u=null==e?void 0:e.optionInfo)?void 0:u.manualMapping)&&(f=t.SELECTDYNAMIC),e.rangeFilter&&(e.type===t.INPUT_NUMBER&&(f=t.INPUTNUMBER_RANGE),e.type===t.DATE&&(f=t.DATE_RANGE_INNER),e.type===t.DATE_TIME&&(f=t.DATETIME_RANGE_INNER)),{dataType:a,p_name:e.name,p_type:e.dataType,title:e.title,customTitle:e.customTitle,type:f,optionSetting:e.optionType,openAdvancedFilter:e.isShowSearch,filterOutDisplay:e.filterExplicit,filterOutRequired:e.explicitRequired,width:e.width,defValCfg:{value:e.type===t.SELECT&&e.optionType===l.MULTIPLE?null!=(p=null==(r=e.defaultValue)?void 0:r.valueList)?p:[]:null!=(d=null==(c=null==(o=e.defaultValue)?void 0:o.valueList)?void 0:c[0])?d:null,presetVal:e.type===t.SELECT&&e.optionType===l.MULTIPLE?(null==(s=e.defaultValue)?void 0:s.unit)?[null==(y=e.defaultValue)?void 0:y.unit]:[]:null!=(m=null==(v=e.defaultValue)?void 0:v.unit)?m:null},mappingConfig:{mappingMethod:null,mapping:E.map((({name:e,value:t})=>({label:e,value:t})))},remark:e.remark,optionInfo:e.optionInfo,_rawData:e}})):[],i=t=>t.map((t=>{var l;const{title:a,customTitle:i,openAdvancedFilter:n,filterOutDisplay:u,filterOutRequired:r,width:p,optionSetting:o,defValCfg:c,mappingConfig:d,remark:s,_rawData:y}=t,{value:v,presetVal:m}=c,{mapping:E}=d;if(t.dataType===e.API){const{p_name:e,p_type:c,type:d}=t;return{...y,name:e,title:a,customTitle:i,type:d,dataType:c,isShowSearch:n,filterExplicit:u,explicitRequired:r,width:p,optionType:o,defaultValue:{valueList:Array.isArray(v)?v:v?[v]:[],unit:Array.isArray(m)?m[0]:m},optionInfo:{manualMapping:null==(l=null==y?void 0:y.optionInfo)?void 0:l.manualMapping,list:E.map((({label:e,value:t})=>({name:e,value:t})))},remark:s}}return null})).filter((e=>!!e)),n=(e,a)=>e.map((e=>{var i,n,u;const r=((e,t)=>t.find((t=>t.p_name===e)))(e.field_key,a);let p=e.value;p&&!Array.isArray(p)&&(p=[p]);const o=(null==r?void 0:r.type)!==t.SELECT&&(null==r?void 0:r.type)!==t.SELECTDYNAMIC||(null==r?void 0:r.optionSetting)!==l.MULTIPLE?null!=(i=null==p?void 0:p[0])?i:null:null!=p?p:[],c={key:e.field_key,condition:e.con,value:o,presetVal:null!=(n=e.unit)?n:null,dynamicBaseList:null!=(u=null==e?void 0:e.dynamicBaseList)?u:[]};return Object.keys(e).includes("isAccurateSearch")&&(c.isAccurateSearch=e.isAccurateSearch,c.accurateSearchKey=e.accurateSearchKey),c})),u=e=>e.map((e=>{const t={field_key:e.key,con:e.condition,value:Array.isArray(e.value)?e.value:e.value?[e.value]:[],unit:e.presetVal,dynamicBaseList:e.dynamicBaseList||[]};return Object.keys(e).includes("isAccurateSearch")&&(t.isAccurateSearch=e.isAccurateSearch,t.accurateSearchKey=e.accurateSearchKey),t}));export{n as transformConditions,i as transformDataToEnd,a as transformDataToFront,u as transformRawConditions};
@@ -90,6 +90,7 @@ export type ISearchConfigType = {
90
90
  wordbookValueList?: any;
91
91
  isAccurateSearch?: boolean;
92
92
  accurateSearchKey?: string;
93
+ dynamicBaseList?: any[];
93
94
  };
94
95
  export type ITreeDataType = {
95
96
  name: string;
@@ -1,12 +1,30 @@
1
1
  import { SFCWithInstall } from '../../shared/types';
2
- declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{}, {
2
+ declare const TimePicker: SFCWithInstall<import("vue").DefineComponent<{
3
+ to: {
4
+ type: import("vue").PropType<string | false | HTMLElement>;
5
+ default: string;
6
+ };
7
+ }, {
3
8
  attrs: {
4
9
  [x: string]: unknown;
5
10
  };
11
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
12
+ to: {
13
+ type: import("vue").PropType<string | false | HTMLElement>;
14
+ default: string;
15
+ };
16
+ }>> & {}>>;
6
17
  timePickerRef: import("vue").Ref<import("../../shared/types").AnyObject | null>;
7
18
  formatRef: import("vue").ComputedRef<string>;
8
19
  focus: () => any;
9
20
  blur: () => any;
10
21
  NTimePicker: any;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
22
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ to: {
24
+ type: import("vue").PropType<string | false | HTMLElement>;
25
+ default: string;
26
+ };
27
+ }>>, {
28
+ to: string | false | HTMLElement;
29
+ }>>;
12
30
  export default TimePicker;
@@ -1,12 +1,31 @@
1
+ import { PropType } from 'vue';
1
2
  import { AnyObject } from '../../../shared/types';
2
- declare const _default: import("vue").DefineComponent<{}, {
3
+ declare const _default: import("vue").DefineComponent<{
4
+ to: {
5
+ type: PropType<string | false | HTMLElement>;
6
+ default: string;
7
+ };
8
+ }, {
3
9
  attrs: {
4
10
  [x: string]: unknown;
5
11
  };
12
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
13
+ to: {
14
+ type: PropType<string | false | HTMLElement>;
15
+ default: string;
16
+ };
17
+ }>> & {}>>;
6
18
  timePickerRef: import("vue").Ref<AnyObject | null>;
7
19
  formatRef: import("vue").ComputedRef<string>;
8
20
  focus: () => any;
9
21
  blur: () => any;
10
22
  NTimePicker: any;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
23
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ to: {
25
+ type: PropType<string | false | HTMLElement>;
26
+ default: string;
27
+ };
28
+ }>>, {
29
+ to: string | false | HTMLElement;
30
+ }>;
12
31
  export default _default;