cnhis-design-vue 3.1.52-release.4 → 3.1.52

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 (77) hide show
  1. package/README.md +87 -87
  2. package/es/components/body-select/index.d.ts +14 -4
  3. package/es/components/body-select/src/config/index.js +1 -1
  4. package/es/components/body-select/src/hooks/renderCanvas.d.ts +1 -1
  5. package/es/components/body-select/src/hooks/renderCanvas.js +1 -1
  6. package/es/components/body-select/src/index.vue.d.ts +14 -4
  7. package/es/components/body-select/src/index.vue2.js +1 -1
  8. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  9. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
  10. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
  11. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
  12. package/es/components/classification/index.d.ts +16 -12
  13. package/es/components/classification/src/components/search-filter/index.vue.d.ts +16 -12
  14. package/es/components/classification/src/components/set-classification/index.vue.d.ts +16 -12
  15. package/es/components/classification/src/index.vue.d.ts +16 -12
  16. package/es/components/classification/style/index.css +1 -1
  17. package/es/components/date-picker/index.d.ts +5 -5
  18. package/es/components/date-picker/src/DatePicker.vue.d.ts +7 -5
  19. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  20. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  21. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  22. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  23. package/es/components/form-config/index.d.ts +108 -0
  24. package/es/components/form-config/src/FormConfig.vue.d.ts +108 -0
  25. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +36 -0
  26. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +12 -0
  27. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
  28. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  29. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  30. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +5 -5
  31. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  32. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +5 -5
  33. package/es/components/index.css +1 -1
  34. package/es/components/quick-search/index.d.ts +3 -1
  35. package/es/components/quick-search/src/index.vue.d.ts +3 -1
  36. package/es/components/quick-search/src/index.vue2.js +1 -1
  37. package/es/components/quick-search/style/index.css +1 -1
  38. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  39. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  40. package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
  41. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  42. package/es/components/shortcut-setter/index.d.ts +12 -0
  43. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -0
  44. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
  45. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +10 -10
  46. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +5 -5
  47. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +6 -5
  48. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +10 -10
  49. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +2 -2
  50. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
  51. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +16 -12
  52. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  53. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +5 -5
  54. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +5 -5
  55. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +5 -5
  56. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +5 -5
  57. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +20 -20
  58. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +20 -20
  59. package/es/env.d.ts +25 -25
  60. package/es/shared/assets/img/failure.png.js +1 -1
  61. package/es/shared/assets/img/no-permission.png.js +1 -1
  62. package/es/shared/assets/img/nodata.png.js +1 -1
  63. package/es/shared/assets/img/notfound.png.js +1 -1
  64. package/es/shared/assets/img/qr.png.js +1 -1
  65. package/es/shared/assets/img/success.png.js +1 -1
  66. package/es/shared/assets/img/video.png.js +1 -1
  67. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  68. package/es/shared/assets/img/xb_big.png.js +1 -1
  69. package/es/shared/assets/img/xb_small.png.js +1 -1
  70. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
  71. package/es/shared/package.json.js +1 -1
  72. package/es/shared/types/business.d.ts +2 -0
  73. package/es/shared/utils/business.d.ts +1 -1
  74. package/es/shared/utils/business.js +1 -1
  75. package/es/shared/utils/fabricjs/index.d.ts +6823 -0
  76. package/es/shared/utils/tapable/index.d.ts +139 -0
  77. package/package.json +2 -2
@@ -60,7 +60,7 @@ declare const Date: import("vue").DefineComponent<{
60
60
  type: FunctionConstructor;
61
61
  };
62
62
  formattedValue: {
63
- type: StringConstructor;
63
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
64
64
  };
65
65
  placeholder: {
66
66
  type: StringConstructor;
@@ -80,7 +80,7 @@ declare const Date: import("vue").DefineComponent<{
80
80
  type: FunctionConstructor;
81
81
  };
82
82
  formattedValue: {
83
- type: StringConstructor;
83
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
84
84
  };
85
85
  placeholder: {
86
86
  type: StringConstructor;
@@ -95,7 +95,7 @@ declare const Date: import("vue").DefineComponent<{
95
95
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
96
96
  panelInstRef: import("vue").Ref<null>;
97
97
  placeholderRef: import("vue").Ref<any>;
98
- currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
98
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
99
99
  isDateTime: import("vue").ComputedRef<boolean>;
100
100
  formatRef: import("vue").ComputedRef<string>;
101
101
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -104,7 +104,7 @@ declare const Date: import("vue").DefineComponent<{
104
104
  handleConfirm: (target: HTMLInputElement) => void;
105
105
  onUpdateShow: (show: boolean) => void;
106
106
  onConfirm: (...args: any[]) => Promise<void>;
107
- isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
107
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
108
108
  NDatePicker: any;
109
109
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
110
110
  updateUnchangedValue: {
@@ -114,7 +114,7 @@ declare const Date: import("vue").DefineComponent<{
114
114
  type: FunctionConstructor;
115
115
  };
116
116
  formattedValue: {
117
- type: StringConstructor;
117
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
118
118
  };
119
119
  placeholder: {
120
120
  type: StringConstructor;
@@ -687,7 +687,7 @@ declare const DateRange: import("vue").DefineComponent<{
687
687
  type: FunctionConstructor;
688
688
  };
689
689
  formattedValue: {
690
- type: StringConstructor;
690
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
691
691
  };
692
692
  placeholder: {
693
693
  type: StringConstructor;
@@ -707,7 +707,7 @@ declare const DateRange: import("vue").DefineComponent<{
707
707
  type: FunctionConstructor;
708
708
  };
709
709
  formattedValue: {
710
- type: StringConstructor;
710
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
711
711
  };
712
712
  placeholder: {
713
713
  type: StringConstructor;
@@ -722,7 +722,7 @@ declare const DateRange: import("vue").DefineComponent<{
722
722
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
723
723
  panelInstRef: import("vue").Ref<null>;
724
724
  placeholderRef: import("vue").Ref<any>;
725
- currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
725
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
726
726
  isDateTime: import("vue").ComputedRef<boolean>;
727
727
  formatRef: import("vue").ComputedRef<string>;
728
728
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -731,7 +731,7 @@ declare const DateRange: import("vue").DefineComponent<{
731
731
  handleConfirm: (target: HTMLInputElement) => void;
732
732
  onUpdateShow: (show: boolean) => void;
733
733
  onConfirm: (...args: any[]) => Promise<void>;
734
- isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
734
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
735
735
  NDatePicker: any;
736
736
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
737
737
  updateUnchangedValue: {
@@ -741,7 +741,7 @@ declare const DateRange: import("vue").DefineComponent<{
741
741
  type: FunctionConstructor;
742
742
  };
743
743
  formattedValue: {
744
- type: StringConstructor;
744
+ type: import("vue").PropType<(string | [string, string]) | null | undefined>;
745
745
  };
746
746
  placeholder: {
747
747
  type: StringConstructor;
@@ -11,10 +11,10 @@ export declare const useDisplayCategory: (selectedDisplayCategory: Ref, { condit
11
11
  showAdd: boolean;
12
12
  };
13
13
  isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
14
- editDisplayCategory: (e: any, item: ICategoryItemType) => void;
14
+ editDisplayCategory: (item: ICategoryItemType, cb?: any) => void;
15
15
  handleDisplayCategorySelect: (item: ICategoryItemType) => void;
16
16
  handleDisplayCategoryRemove: (index: number, item: ICategoryItemType) => void;
17
- handleDisplayCategoryAdd: (e: any) => void;
17
+ handleDisplayCategoryAdd: (cb?: any) => void;
18
18
  handlerBlur: () => void;
19
19
  initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
20
20
  };
@@ -1 +1 @@
1
- import{reactive as e,computed as a}from"vue";const i=(i,{conditionList:l},t)=>{const s=e({displayCategories:[],displayCategoryOriginLen:0,showAdd:!1,addDisplayCategory:""}),d=a((()=>s.displayCategories.length===s.displayCategoryOriginLen));return{State:s,isEnableAddDisplayCategory:d,editDisplayCategory:(e,a)=>{a.disabled=!1,setTimeout((()=>{e.target.focus()}),0)},handleDisplayCategorySelect:e=>{e.disabled&&(i.value===e.value?i.value="":i.value=e.value)},handleDisplayCategoryRemove:(e,a)=>{if(!l||!l.length)return void s.displayCategories.splice(e,1);const i=l.filter((e=>e.displayCategory==a.value));i&&i.length?t.error("该分类下有已有数据,请删除该分类下的筛选集后重试!"):s.displayCategories.splice(e,1)},handleDisplayCategoryAdd:e=>{var a;const i=null==(a=null==e?void 0:e.target)?void 0:a.nextElementSibling;setTimeout((()=>{i&&i.focus()})),s.showAdd=!0},handlerBlur:()=>{s.showAdd=!1,s.addDisplayCategory&&(s.displayCategories.push({disabled:!0,value:s.addDisplayCategory}),i.value=s.addDisplayCategory,s.addDisplayCategory="")},initDisplayCategories:(e,a)=>{const l=[];e.forEach((e=>{"未分类"!==e&&l.push({disabled:!0,value:e})})),s.displayCategories=l,s.displayCategoryOriginLen=s.displayCategories.length,i.value=a}}};export{i as useDisplayCategory};
1
+ import{reactive as a,computed as e}from"vue";const i=(i,{conditionList:l},s)=>{const d=a({displayCategories:[],displayCategoryOriginLen:0,showAdd:!1,addDisplayCategory:""}),t=e((()=>d.displayCategories.length===d.displayCategoryOriginLen));return{State:d,isEnableAddDisplayCategory:t,editDisplayCategory:(a,e)=>{a.disabled=!1,e&&e()},handleDisplayCategorySelect:a=>{a.disabled&&(i.value===a.value?i.value="":i.value=a.value)},handleDisplayCategoryRemove:(a,e)=>{if(!l||!l.length)return void d.displayCategories.splice(a,1);const i=l.filter((a=>a.displayCategory==e.value));i&&i.length?s.error("该分类下有已有数据,请删除该分类下的筛选集后重试!"):d.displayCategories.splice(a,1)},handleDisplayCategoryAdd:a=>{d.showAdd=!0,a&&a()},handlerBlur:()=>{d.showAdd=!1,d.addDisplayCategory&&(d.displayCategories.push({disabled:!0,value:d.addDisplayCategory}),i.value=d.addDisplayCategory,d.addDisplayCategory="")},initDisplayCategories:(a,e)=>{const l=[];a.forEach((a=>{"未分类"!==a&&l.push({disabled:!0,value:a})})),d.displayCategories=l,d.displayCategoryOriginLen=d.displayCategories.length,i.value=e}}};export{i as useDisplayCategory};
@@ -76,6 +76,8 @@ declare const _default: import("vue").DefineComponent<{
76
76
  }[];
77
77
  };
78
78
  loading: import("vue").Ref<boolean>;
79
+ parentInputRef: import("vue").Ref<any>;
80
+ parentInputAddRef: import("vue").Ref<any>;
79
81
  DisplayCategoryState: {
80
82
  addDisplayCategory: string;
81
83
  displayCategories: {
@@ -86,10 +88,10 @@ declare const _default: import("vue").DefineComponent<{
86
88
  showAdd: boolean;
87
89
  };
88
90
  isEnableAddDisplayCategory: import("vue").ComputedRef<boolean>;
89
- editDisplayCategory: (e: any, item: ICategoryItemType) => void;
91
+ editDisplayCategory: (item: ICategoryItemType, cb?: any) => void;
90
92
  handleDisplayCategorySelect: (item: ICategoryItemType) => void;
91
93
  handleDisplayCategoryRemove: (index: number, item: ICategoryItemType) => void;
92
- handleDisplayCategoryAdd: (e: any) => void;
94
+ handleDisplayCategoryAdd: (cb?: any) => void;
93
95
  handlerBlur: () => void;
94
96
  initDisplayCategories: (rawDataDisplayCategories: any, displayCategory: any) => void;
95
97
  FilterConditionsState: any;
@@ -101,6 +103,8 @@ declare const _default: import("vue").DefineComponent<{
101
103
  getParamCfg: (key: string) => any;
102
104
  initFilterConditions: (tableId: string, rawConditions: import("../../../../../../es/components/table-filter/src/types").ISearchConfigType) => Promise<void>;
103
105
  getRawFilterConditions: () => any[];
106
+ handleEditDisplayCategory: (item: ICategoryItemType) => void;
107
+ handleDisplayCategoryAddState: () => void;
104
108
  findConditionByDisplayCategory: (sid: string) => unknown;
105
109
  handleDisplayCategorySelectProxy: (item: ICategoryItemType) => void;
106
110
  clearFormData: () => void;
@@ -223,7 +227,7 @@ declare const _default: import("vue").DefineComponent<{
223
227
  type: FunctionConstructor;
224
228
  };
225
229
  formattedValue: {
226
- type: StringConstructor;
230
+ type: PropType<(string | [string, string]) | null | undefined>;
227
231
  };
228
232
  placeholder: {
229
233
  type: StringConstructor;
@@ -243,7 +247,7 @@ declare const _default: import("vue").DefineComponent<{
243
247
  type: FunctionConstructor;
244
248
  };
245
249
  formattedValue: {
246
- type: StringConstructor;
250
+ type: PropType<(string | [string, string]) | null | undefined>;
247
251
  };
248
252
  placeholder: {
249
253
  type: StringConstructor;
@@ -258,7 +262,7 @@ declare const _default: import("vue").DefineComponent<{
258
262
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
259
263
  panelInstRef: import("vue").Ref<null>;
260
264
  placeholderRef: import("vue").Ref<any>;
261
- currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
265
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
262
266
  isDateTime: import("vue").ComputedRef<boolean>;
263
267
  formatRef: import("vue").ComputedRef<string>;
264
268
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -267,7 +271,7 @@ declare const _default: import("vue").DefineComponent<{
267
271
  handleConfirm: (target: HTMLInputElement) => void;
268
272
  onUpdateShow: (show: boolean) => void;
269
273
  onConfirm: (...args: any[]) => Promise<void>;
270
- isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
274
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
271
275
  NDatePicker: any;
272
276
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
273
277
  updateUnchangedValue: {
@@ -277,7 +281,7 @@ declare const _default: import("vue").DefineComponent<{
277
281
  type: FunctionConstructor;
278
282
  };
279
283
  formattedValue: {
280
- type: StringConstructor;
284
+ type: PropType<(string | [string, string]) | null | undefined>;
281
285
  };
282
286
  placeholder: {
283
287
  type: StringConstructor;
@@ -850,7 +854,7 @@ declare const _default: import("vue").DefineComponent<{
850
854
  type: FunctionConstructor;
851
855
  };
852
856
  formattedValue: {
853
- type: StringConstructor;
857
+ type: PropType<(string | [string, string]) | null | undefined>;
854
858
  };
855
859
  placeholder: {
856
860
  type: StringConstructor;
@@ -870,7 +874,7 @@ declare const _default: import("vue").DefineComponent<{
870
874
  type: FunctionConstructor;
871
875
  };
872
876
  formattedValue: {
873
- type: StringConstructor;
877
+ type: PropType<(string | [string, string]) | null | undefined>;
874
878
  };
875
879
  placeholder: {
876
880
  type: StringConstructor;
@@ -885,7 +889,7 @@ declare const _default: import("vue").DefineComponent<{
885
889
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
886
890
  panelInstRef: import("vue").Ref<null>;
887
891
  placeholderRef: import("vue").Ref<any>;
888
- currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
892
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
889
893
  isDateTime: import("vue").ComputedRef<boolean>;
890
894
  formatRef: import("vue").ComputedRef<string>;
891
895
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -894,7 +898,7 @@ declare const _default: import("vue").DefineComponent<{
894
898
  handleConfirm: (target: HTMLInputElement) => void;
895
899
  onUpdateShow: (show: boolean) => void;
896
900
  onConfirm: (...args: any[]) => Promise<void>;
897
- isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
901
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
898
902
  NDatePicker: any;
899
903
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
900
904
  updateUnchangedValue: {
@@ -904,7 +908,7 @@ declare const _default: import("vue").DefineComponent<{
904
908
  type: FunctionConstructor;
905
909
  };
906
910
  formattedValue: {
907
- type: StringConstructor;
911
+ type: PropType<(string | [string, string]) | null | undefined>;
908
912
  };
909
913
  placeholder: {
910
914
  type: StringConstructor;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as a,reactive as t,ref as i,provide as l,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as y,renderList as m,normalizeClass as v,toDisplayString as f,createBlock as C,withDirectives as g,createTextVNode as h,vShow as k}from"vue";import{useMessage as b,NSpin as A,NInput as L,NIcon as w,NButton as U,NSelect as _,NTooltip as N}from"naive-ui";import{CloseOutline as V,AddOutline as x,AddCircleSharp as D}from"@vicons/ionicons5";import S from"./ValueCfg.vue.js";import{DataTypeEnums as B,ConditionEnums as I}from"../../types/enums.js";import{useDisplayCategory as j}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as z}from"./helpers/options.js";import{InjectionClassifyFilterList as O}from"../../constants/index.js";const P={class:"searchConditionByApi_wrapper"},q={class:"class-filter-content"},E={key:0,class:"item-name"},R=p("span",{class:"label"},"筛选分类名称:",-1),J={key:1,class:"quickSearch-content"},K=p("span",{class:"label"},"父类名称:",-1),M=["onDblclick","onClick"],Q={key:0,class:"s-content"},G={key:2,class:"item-name"},H=p("span",{class:"label"}," 过滤条件: ",-1),T=p("span",null,"添加",-1),W={class:"select-item-list"},X={class:"index-span"},Y=["onClick"];var Z=e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:Z,emit:$}){const ee=e,ae=b(),te={class:"classify-fieldkey-popover"},ie=a(),le=t({className:"",displayCategory:"",filterConditions:[]}),ne=i(!1);l(O,n(le,"filterConditions"));const{State:oe,isEnableAddDisplayCategory:se,editDisplayCategory:de,handleDisplayCategorySelect:re,handleDisplayCategoryRemove:ce,handleDisplayCategoryAdd:pe,handlerBlur:ue,initDisplayCategories:ye}=j(n(le,"displayCategory"),{conditionList:ee.conditionList},ae),{State:me,paramOptions:ve,addFilterCondition:fe,delFilterCondition:Ce,updateKey:ge,updateCondition:he,getParamCfg:ke,initFilterConditions:be,getRawFilterConditions:Ae}=F(n(le,"filterConditions"),ee.searchFieldList,B.API);function Le(){le.className="",le.displayCategory="",le.filterConditions=[]}async function we(){var e;try{if(Le(),ne.value=!0,ye(ie.displayCategoryList,ee.actionList_prop.displayCategory||void 0),ee.actionList_prop){le.className=ee.actionList_prop.name,await be(ee.tableId,null!=(e=ee.actionList_prop.conObj)?e:[]);le.filterConditions.length<1&&ve.value&&ve.value.length>0&&fe()}}finally{ne.value=!1}}return we(),Z({handleInitConditions:we,saveAdd:function(){new Promise((e=>{le.className||!ee.showItemName?0!==le.filterConditions.length?le.filterConditions.some((({key:e,condition:a,value:t,presetVal:i})=>!e||!a||a===I.EQUAL&&!t&&!i))?ae.warning("请补充完整条件内容"):e(!0):ae.warning("请至少添加一个条件"):ae.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===ee.actionList_prop.from&&(a=ee.actionList_prop.sid,e=null==ee?void 0:ee.conditionList.find((e=>e.sid===a)));const t={displayCategory:le.displayCategory,name:le.className||"",conObj:Ae()},i={id:e?e.sid:"",tableId:ee.tableId,setting:JSON.stringify(t)};$("saveAdd",i,!1)}))},cancelSaveAdd:function(){Le(),$("cancelSaveAdd")},addAction:fe,checkActionList:function(){return le.filterConditions.every((e=>!e.field_key))}}),(a,t)=>(o(),s("div",P,[d(r(A),{show:ne.value},{default:c((()=>[p("div",q,[e.showItemName?(o(),s("div",E,[R,d(r(L),{value:le.className,"onUpdate:value":t[0]||(t[0]=e=>le.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",J,[K,(o(!0),s(y,null,m(r(oe).displayCategories,((e,a)=>(o(),s("div",{class:v(["edit-tag",{"edit-tag-select":e.value===le.displayCategory&&e.disabled}]),key:a,onDblclick:a=>r(de)(a,e),onClick:a=>function(e){re(e)}(e)},[e.disabled?(o(),s("div",Q,[p("span",null,f(e.value),1)])):(o(),C(r(L),{key:1,style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:10},null,8,["disabled","onBlur","value","onUpdate:value"])),d(r(w),{component:r(V),class:"anticon-close",size:"20",onClick:t=>r(ce)(a,e)},null,8,["component","onClick"])],42,M)))),128)),r(se)?(o(),s(y,{key:0},[g(d(r(U),{class:"ant-btn",icon:"plus",dashed:"",onClick:r(pe)},{default:c((()=>[d(r(w),{component:r(x),size:"20"},null,8,["component"]),h(" "+f("添加父类"))])),_:1},8,["onClick"]),[[k,!r(oe).showAdd]]),g(d(r(L),{class:"edit-tag",value:r(oe).addDisplayCategory,"onUpdate:value":t[1]||(t[1]=e=>r(oe).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(ue),maxLength:10},null,8,["value","onBlur"]),[[k,r(oe).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",G,[H,p("span",{class:"addAction",onClick:t[2]||(t[2]=(...e)=>r(fe)&&r(fe)(...e)),style:{cursor:"pointer"}},[d(r(w),{component:r(D),class:"blue",size:"18"},null,8,["component"]),T])])),p("ul",W,[(o(!0),s(y,null,m(le.filterConditions,((e,a)=>(o(),s("li",{key:a},[p("span",X,f(a+1),1),u(" 选择 field_key "),d(r(_),{class:"form-item",placeholder:"请选择",value:e.key,"menu-props":te,to:"body",filterable:"",options:r(ve),"onUpdate:value":e=>r(ge)(a,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.key?(o(),C(r(_),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,to:"body",filterable:"",options:r(z),"onUpdate:value":e=>r(he)(a,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.key&&e.condition&&e.condition!==r(I).NULL?(o(),C(S,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,isAccurate:e.isAccurateSearch,"onUpdate:isAccurate":a=>e.isAccurateSearch=a,"param-cfg":r(ke)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","isAccurate","onUpdate:isAccurate","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(Ce)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,Y)])),default:c((()=>[h(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}});export{Z as default};
1
+ import{defineComponent as e,useAttrs as a,reactive as t,ref as i,provide as l,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as y,renderList as m,normalizeClass as f,toDisplayString as v,createBlock as g,withDirectives as h,createTextVNode as C,vShow as k}from"vue";import{useMessage as b,NSpin as A,NInput as w,NIcon as L,NButton as _,NSelect as U,NTooltip as N}from"naive-ui";import{CloseOutline as I,AddOutline as V,AddCircleSharp as x}from"@vicons/ionicons5";import D from"./ValueCfg.vue.js";import{DataTypeEnums as S,ConditionEnums as B}from"../../types/enums.js";import{useDisplayCategory as j}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as z}from"./helpers/options.js";import{InjectionClassifyFilterList as O}from"../../constants/index.js";const R={class:"searchConditionByApi_wrapper"},P={class:"class-filter-content"},q={key:0,class:"item-name"},E=p("span",{class:"label"},"筛选分类名称:",-1),T={key:1,class:"quickSearch-content"},J=p("span",{class:"label"},"父类名称:",-1),K=["onClick"],M=["onDblclick"],Q={class:"s-content"},G={key:2,class:"item-name"},H=p("span",{class:"label"}," 过滤条件: ",-1),W=p("span",null,"添加",-1),X={class:"select-item-list"},Y={class:"index-span"},Z=["onClick"];var $=e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:$,emit:ee}){const ae=e,te=b(),ie={class:"classify-fieldkey-popover"},le=a(),ne=t({className:"",displayCategory:"",filterConditions:[]}),oe=i(!1),se=i(),de=i();l(O,n(ne,"filterConditions"));const{State:re,isEnableAddDisplayCategory:ce,editDisplayCategory:pe,handleDisplayCategorySelect:ue,handleDisplayCategoryRemove:ye,handleDisplayCategoryAdd:me,handlerBlur:fe,initDisplayCategories:ve}=j(n(ne,"displayCategory"),{conditionList:ae.conditionList},te),{State:ge,paramOptions:he,addFilterCondition:Ce,delFilterCondition:ke,updateKey:be,updateCondition:Ae,getParamCfg:we,initFilterConditions:Le,getRawFilterConditions:_e}=F(n(ne,"filterConditions"),ae.searchFieldList,S.API);function Ue(){me((()=>{setTimeout((()=>{de.value&&de.value.focus()}),100)}))}function Ne(){ne.className="",ne.displayCategory="",ne.filterConditions=[]}async function Ie(){var e;try{if(Ne(),oe.value=!0,ve(le.displayCategoryList,ae.actionList_prop.displayCategory||void 0),ae.actionList_prop){ne.className=ae.actionList_prop.name,await Le(ae.tableId,null!=(e=ae.actionList_prop.conObj)?e:[]);ne.filterConditions.length<1&&he.value&&he.value.length>0&&Ce()}}finally{oe.value=!1}}return Ie(),$({handleInitConditions:Ie,saveAdd:function(){new Promise((e=>{ne.className||!ae.showItemName?0!==ne.filterConditions.length?ne.filterConditions.some((({key:e,condition:a,value:t,presetVal:i})=>!e||!a||a===B.EQUAL&&!t&&!i))?te.warning("请补充完整条件内容"):e(!0):te.warning("请至少添加一个条件"):te.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===ae.actionList_prop.from&&(a=ae.actionList_prop.sid,e=null==ae?void 0:ae.conditionList.find((e=>e.sid===a)));const t={displayCategory:ne.displayCategory,name:ne.className||"",conObj:_e()},i={id:e?e.sid:"",tableId:ae.tableId,setting:JSON.stringify(t)};ee("saveAdd",i,!1)}))},cancelSaveAdd:function(){Ne(),ee("cancelSaveAdd")},addAction:Ce,checkActionList:function(){return ne.filterConditions.every((e=>!e.field_key))}}),(a,t)=>(o(),s("div",R,[d(r(A),{show:oe.value},{default:c((()=>[p("div",P,[e.showItemName?(o(),s("div",q,[E,d(r(w),{value:ne.className,"onUpdate:value":t[0]||(t[0]=e=>ne.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",T,[J,(o(!0),s(y,null,m(r(re).displayCategories,((e,a)=>(o(),s("div",{class:"parent-name",key:a,onClick:a=>function(e){ue(e)}(e)},[e.disabled?(o(),s("div",{key:0,class:f(["edit-tag",{"edit-tag-select":e.value===ne.displayCategory&&e.disabled}]),onDblclick:a=>function(e){e.disabled=!1,setTimeout((()=>{se.value.length>0&&se.value[0].focus()}),100)}(e)},[p("div",Q,v(e.value),1),d(r(L),{component:r(I),class:"anticon-close",size:"20",onClick:t=>r(ye)(a,e)},null,8,["component","onClick"])],42,M)):(o(),g(r(w),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:se,class:"parent-input",style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:20},null,8,["disabled","onBlur","value","onUpdate:value"]))],8,K)))),128)),r(ce)?(o(),s(y,{key:0},[h(d(r(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:Ue},{default:c((()=>[d(r(L),{component:r(V),size:"20"},null,8,["component"]),C(" "+v("添加父类"))])),_:1},512),[[k,!r(re).showAdd]]),h(d(r(w),{ref_key:"parentInputAddRef",ref:de,class:"parent-input",value:r(re).addDisplayCategory,"onUpdate:value":t[1]||(t[1]=e=>r(re).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(fe),maxlength:20},null,8,["value","onBlur"]),[[k,r(re).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",G,[H,p("span",{class:"addAction",onClick:t[2]||(t[2]=(...e)=>r(Ce)&&r(Ce)(...e)),style:{cursor:"pointer"}},[d(r(L),{component:r(x),class:"blue",size:"18"},null,8,["component"]),W])])),p("ul",X,[(o(!0),s(y,null,m(ne.filterConditions,((e,a)=>(o(),s("li",{key:a},[p("span",Y,v(a+1),1),u(" 选择 field_key "),d(r(U),{class:"form-item",placeholder:"请选择",value:e.key,"menu-props":ie,to:"body",filterable:"",options:r(he),"onUpdate:value":e=>r(be)(a,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.key?(o(),g(r(U),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,to:"body",filterable:"",options:r(z),"onUpdate:value":e=>r(Ae)(a,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.key&&e.condition&&e.condition!==r(B).NULL?(o(),g(D,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,isAccurate:e.isAccurateSearch,"onUpdate:isAccurate":a=>e.isAccurateSearch=a,"param-cfg":r(we)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","isAccurate","onUpdate:isAccurate","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(ke)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,Z)])),default:c((()=>[C(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}});export{$ as default};
@@ -91,7 +91,7 @@ declare const _default: import("vue").DefineComponent<{
91
91
  type: FunctionConstructor;
92
92
  };
93
93
  formattedValue: {
94
- type: StringConstructor;
94
+ type: PropType<(string | [string, string]) | null | undefined>;
95
95
  };
96
96
  placeholder: {
97
97
  type: StringConstructor;
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
111
111
  type: FunctionConstructor;
112
112
  };
113
113
  formattedValue: {
114
- type: StringConstructor;
114
+ type: PropType<(string | [string, string]) | null | undefined>;
115
115
  };
116
116
  placeholder: {
117
117
  type: StringConstructor;
@@ -126,7 +126,7 @@ declare const _default: import("vue").DefineComponent<{
126
126
  datePickerRef: import("vue").Ref<AnyObject | null>;
127
127
  panelInstRef: import("vue").Ref<null>;
128
128
  placeholderRef: import("vue").Ref<any>;
129
- currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
129
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
130
130
  isDateTime: import("vue").ComputedRef<boolean>;
131
131
  formatRef: import("vue").ComputedRef<string>;
132
132
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -135,7 +135,7 @@ declare const _default: import("vue").DefineComponent<{
135
135
  handleConfirm: (target: HTMLInputElement) => void;
136
136
  onUpdateShow: (show: boolean) => void;
137
137
  onConfirm: (...args: any[]) => Promise<void>;
138
- isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
138
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
139
139
  NDatePicker: any;
140
140
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
141
141
  updateUnchangedValue: {
@@ -145,7 +145,7 @@ declare const _default: import("vue").DefineComponent<{
145
145
  type: FunctionConstructor;
146
146
  };
147
147
  formattedValue: {
148
- type: StringConstructor;
148
+ type: PropType<(string | [string, string]) | null | undefined>;
149
149
  };
150
150
  placeholder: {
151
151
  type: StringConstructor;
@@ -74,7 +74,7 @@ declare const _default: import("vue").DefineComponent<{
74
74
  type: FunctionConstructor;
75
75
  };
76
76
  formattedValue: {
77
- type: StringConstructor;
77
+ type: PropType<(string | [string, string]) | null | undefined>;
78
78
  };
79
79
  placeholder: {
80
80
  type: StringConstructor;
@@ -94,7 +94,7 @@ declare const _default: import("vue").DefineComponent<{
94
94
  type: FunctionConstructor;
95
95
  };
96
96
  formattedValue: {
97
- type: StringConstructor;
97
+ type: PropType<(string | [string, string]) | null | undefined>;
98
98
  };
99
99
  placeholder: {
100
100
  type: StringConstructor;
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
109
109
  datePickerRef: import("vue").Ref<AnyObject | null>;
110
110
  panelInstRef: import("vue").Ref<null>;
111
111
  placeholderRef: import("vue").Ref<any>;
112
- currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
112
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
113
113
  isDateTime: import("vue").ComputedRef<boolean>;
114
114
  formatRef: import("vue").ComputedRef<string>;
115
115
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
118
118
  handleConfirm: (target: HTMLInputElement) => void;
119
119
  onUpdateShow: (show: boolean) => void;
120
120
  onConfirm: (...args: any[]) => Promise<void>;
121
- isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
121
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
122
122
  NDatePicker: any;
123
123
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
124
124
  updateUnchangedValue: {
@@ -128,7 +128,7 @@ declare const _default: import("vue").DefineComponent<{
128
128
  type: FunctionConstructor;
129
129
  };
130
130
  formattedValue: {
131
- type: StringConstructor;
131
+ type: PropType<(string | [string, string]) | null | undefined>;
132
132
  };
133
133
  placeholder: {
134
134
  type: StringConstructor;
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
109
109
  type: FunctionConstructor;
110
110
  };
111
111
  formattedValue: {
112
- type: StringConstructor;
112
+ type: PropType<(string | [string, string]) | null | undefined>;
113
113
  };
114
114
  placeholder: {
115
115
  type: StringConstructor;
@@ -129,7 +129,7 @@ declare const _default: import("vue").DefineComponent<{
129
129
  type: FunctionConstructor;
130
130
  };
131
131
  formattedValue: {
132
- type: StringConstructor;
132
+ type: PropType<(string | [string, string]) | null | undefined>;
133
133
  };
134
134
  placeholder: {
135
135
  type: StringConstructor;
@@ -144,7 +144,7 @@ declare const _default: import("vue").DefineComponent<{
144
144
  datePickerRef: import("vue").Ref<AnyObject | null>;
145
145
  panelInstRef: import("vue").Ref<null>;
146
146
  placeholderRef: import("vue").Ref<any>;
147
- currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
147
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
148
148
  isDateTime: import("vue").ComputedRef<boolean>;
149
149
  formatRef: import("vue").ComputedRef<string>;
150
150
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -153,7 +153,7 @@ declare const _default: import("vue").DefineComponent<{
153
153
  handleConfirm: (target: HTMLInputElement) => void;
154
154
  onUpdateShow: (show: boolean) => void;
155
155
  onConfirm: (...args: any[]) => Promise<void>;
156
- isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
156
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
157
157
  NDatePicker: any;
158
158
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
159
159
  updateUnchangedValue: {
@@ -163,7 +163,7 @@ declare const _default: import("vue").DefineComponent<{
163
163
  type: FunctionConstructor;
164
164
  };
165
165
  formattedValue: {
166
- type: StringConstructor;
166
+ type: PropType<(string | [string, string]) | null | undefined>;
167
167
  };
168
168
  placeholder: {
169
169
  type: StringConstructor;
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
76
76
  type: FunctionConstructor;
77
77
  };
78
78
  formattedValue: {
79
- type: StringConstructor;
79
+ type: PropType<(string | [string, string]) | null | undefined>;
80
80
  };
81
81
  placeholder: {
82
82
  type: StringConstructor;
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
96
96
  type: FunctionConstructor;
97
97
  };
98
98
  formattedValue: {
99
- type: StringConstructor;
99
+ type: PropType<(string | [string, string]) | null | undefined>;
100
100
  };
101
101
  placeholder: {
102
102
  type: StringConstructor;
@@ -111,7 +111,7 @@ declare const _default: import("vue").DefineComponent<{
111
111
  datePickerRef: import("vue").Ref<AnyObject | null>;
112
112
  panelInstRef: import("vue").Ref<null>;
113
113
  placeholderRef: import("vue").Ref<any>;
114
- currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
114
+ currentFormattedValue: import("vue").WritableComputedRef<(string | [string, string]) | null | undefined>;
115
115
  isDateTime: import("vue").ComputedRef<boolean>;
116
116
  formatRef: import("vue").ComputedRef<string>;
117
117
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -120,7 +120,7 @@ declare const _default: import("vue").DefineComponent<{
120
120
  handleConfirm: (target: HTMLInputElement) => void;
121
121
  onUpdateShow: (show: boolean) => void;
122
122
  onConfirm: (...args: any[]) => Promise<void>;
123
- isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
123
+ isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
124
124
  NDatePicker: any;
125
125
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formatted-value"[], "update:formatted-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
126
126
  updateUnchangedValue: {
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
130
130
  type: FunctionConstructor;
131
131
  };
132
132
  formattedValue: {
133
- type: StringConstructor;
133
+ type: PropType<(string | [string, string]) | null | undefined>;
134
134
  };
135
135
  placeholder: {
136
136
  type: StringConstructor;