cnhis-design-vue 3.1.52-beta.3 → 3.1.52-beta.31

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 (142) hide show
  1. package/README.md +87 -87
  2. package/es/components/body-select/index.d.ts +57 -0
  3. package/es/components/body-select/index.js +1 -0
  4. package/es/components/body-select/src/config/index.d.ts +101 -0
  5. package/es/components/body-select/src/config/index.js +1 -0
  6. package/es/components/body-select/src/hooks/renderCanvas.d.ts +6 -0
  7. package/es/components/body-select/src/hooks/renderCanvas.js +1 -0
  8. package/es/components/body-select/src/index.vue.d.ts +58 -0
  9. package/es/components/body-select/src/index.vue.js +1 -0
  10. package/es/components/body-select/src/index.vue2.js +1 -0
  11. package/es/components/body-select/style/index.css +1 -0
  12. package/es/components/button-print/src/utils/print.d.ts +3 -3
  13. package/es/components/button-print/src/utils/print.js +1 -1
  14. package/es/components/callback/src/components/render/popupMaps.d.ts +45 -41
  15. package/es/components/classification/index.d.ts +82 -10
  16. package/es/components/classification/src/components/search-filter/index.vue.d.ts +82 -10
  17. package/es/components/classification/src/components/set-classification/index.vue.d.ts +82 -10
  18. package/es/components/classification/src/index.vue.d.ts +82 -10
  19. package/es/components/classification/style/index.css +1 -1
  20. package/es/components/date-picker/index.d.ts +38 -3
  21. package/es/components/date-picker/src/DatePicker.vue.d.ts +38 -3
  22. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  23. package/es/components/expand-field/src/components/form.vue2.js +1 -1
  24. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  25. package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
  26. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  27. package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
  28. package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
  29. package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -1
  30. package/es/components/fabric-chart/src/interface.d.ts +2 -2
  31. package/es/components/form-config/index.d.ts +2 -2
  32. package/es/components/form-config/src/FormConfig.vue.d.ts +74 -74
  33. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +37 -37
  34. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +37 -37
  35. package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
  36. package/es/components/form-render/index.d.ts +37 -37
  37. package/es/components/form-render/index.js +1 -1
  38. package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
  39. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +37 -37
  40. package/es/components/form-render/src/components/renderer/date.d.ts +25 -0
  41. package/es/components/form-render/src/components/renderer/date.js +1 -1
  42. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  43. package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
  44. package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
  45. package/es/components/form-render/src/components/renderer/select.d.ts +7 -0
  46. package/es/components/form-render/src/components/renderer/select.js +1 -1
  47. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  48. package/es/components/form-render/src/hooks/useFormEvent.d.ts +2 -2
  49. package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
  50. package/es/components/form-render/src/types/fieldItem.d.ts +1 -1
  51. package/es/components/form-render/src/types/fieldItem.js +1 -1
  52. package/es/components/form-render/src/types/index.d.ts +2 -2
  53. package/es/components/form-render/src/types/index.js +1 -1
  54. package/es/components/iho-table/index.d.ts +8 -4
  55. package/es/components/iho-table/index.js +1 -1
  56. package/es/components/iho-table/src/IhoTable.vue.d.ts +8 -4
  57. package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +3 -1
  58. package/es/components/iho-table/src/plugins/copyPastePlugin.d.ts +1 -0
  59. package/es/components/iho-table/src/plugins/copyPastePlugin.js +1 -0
  60. package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
  61. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +38 -3
  62. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.d.ts +1 -0
  63. package/es/components/iho-table/src/plugins/forceArrowKeyPlugin.js +1 -0
  64. package/es/components/iho-table/src/plugins/index.js +1 -1
  65. package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
  66. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +38 -3
  67. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
  68. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
  69. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.d.ts +1 -1
  70. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
  71. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +2 -7
  72. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  73. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/index.js +1 -1
  74. package/es/components/iho-table/src/types/index.d.ts +16 -12
  75. package/es/components/iho-table/src/utils/index.d.ts +2 -0
  76. package/es/components/iho-table/src/utils/index.js +1 -1
  77. package/es/components/index.css +1 -1
  78. package/es/components/index.d.ts +2 -1
  79. package/es/components/index.js +1 -1
  80. package/es/components/info-header/index.d.ts +2 -2
  81. package/es/components/info-header/src/InfoHeader.vue.d.ts +75 -75
  82. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +38 -38
  83. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +37 -37
  84. package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
  85. package/es/components/quick-search/index.d.ts +3 -1
  86. package/es/components/quick-search/src/index.vue.d.ts +3 -1
  87. package/es/components/quick-search/src/index.vue2.js +1 -1
  88. package/es/components/quick-search/style/index.css +1 -1
  89. package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
  90. package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
  91. package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
  92. package/es/components/select-person/src/SearchOrgAndStaff.vue2.js +1 -1
  93. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  94. package/es/components/shortcut-setter/index.d.ts +1 -1
  95. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +37 -37
  96. package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
  97. package/es/components/table-filter/index.d.ts +2 -0
  98. package/es/components/table-filter/index.js +1 -1
  99. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +76 -8
  100. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +38 -4
  101. package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
  102. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +38 -4
  103. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
  104. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +76 -8
  105. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +2 -2
  106. package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -1
  107. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +82 -10
  108. package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
  109. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +38 -3
  110. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -1
  111. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +38 -3
  112. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +38 -3
  113. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
  114. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +38 -3
  115. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +152 -12
  116. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +152 -12
  117. package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
  118. package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
  119. package/es/env.d.ts +25 -25
  120. package/es/shared/assets/img/failure.png.js +1 -1
  121. package/es/shared/assets/img/no-permission.png.js +1 -1
  122. package/es/shared/assets/img/nodata.png.js +1 -1
  123. package/es/shared/assets/img/notfound.png.js +1 -1
  124. package/es/shared/assets/img/qr.png.js +1 -1
  125. package/es/shared/assets/img/success.png.js +1 -1
  126. package/es/shared/assets/img/video.png.js +1 -1
  127. package/es/shared/assets/img/video_default_cover.png.js +1 -1
  128. package/es/shared/assets/img/xb_big.png.js +1 -1
  129. package/es/shared/assets/img/xb_small.png.js +1 -1
  130. package/es/shared/components/InputNumberSlash/InputNumberSlash.d.ts +9 -0
  131. package/es/shared/components/InputNumberSlash/InputNumberSlash.js +1 -1
  132. package/es/shared/hooks/useDateTime.d.ts +8 -2
  133. package/es/shared/hooks/useDateTime.js +1 -1
  134. package/es/shared/package.json.js +1 -1
  135. package/package.json +2 -2
  136. package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
  137. package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
  138. package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
  139. package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
  140. package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
  141. package/es/shared/utils/fabricjs/index.d.ts +0 -6823
  142. package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -46,7 +46,6 @@ declare const Date: import("vue").DefineComponent<{
46
46
  label: string;
47
47
  value: string;
48
48
  }[]>;
49
- initMounted: () => void;
50
49
  isDateDisabled: (ts: number) => boolean;
51
50
  timeDisabled: (ts: number) => {
52
51
  isHourDisabled(hour: number): boolean | undefined;
@@ -60,6 +59,15 @@ declare const Date: import("vue").DefineComponent<{
60
59
  onConfirm: {
61
60
  type: FunctionConstructor;
62
61
  };
62
+ formattedValue: {
63
+ type: StringConstructor;
64
+ };
65
+ placeholder: {
66
+ type: StringConstructor;
67
+ };
68
+ allowedInvalidValue: {
69
+ type: StringConstructor;
70
+ };
63
71
  }, {
64
72
  attrs: {
65
73
  [x: string]: unknown;
@@ -71,9 +79,23 @@ declare const Date: import("vue").DefineComponent<{
71
79
  onConfirm: {
72
80
  type: FunctionConstructor;
73
81
  };
74
- }>> & {}>>;
82
+ formattedValue: {
83
+ type: StringConstructor;
84
+ };
85
+ placeholder: {
86
+ type: StringConstructor;
87
+ };
88
+ allowedInvalidValue: {
89
+ type: StringConstructor;
90
+ };
91
+ }>> & {
92
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
93
+ }>>;
94
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
75
95
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
76
96
  panelInstRef: import("vue").Ref<null>;
97
+ placeholderRef: import("vue").Ref<any>;
98
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
77
99
  isDateTime: import("vue").ComputedRef<boolean>;
78
100
  formatRef: import("vue").ComputedRef<string>;
79
101
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -82,15 +104,27 @@ declare const Date: import("vue").DefineComponent<{
82
104
  handleConfirm: (target: HTMLInputElement) => void;
83
105
  onUpdateShow: (show: boolean) => void;
84
106
  onConfirm: (...args: any[]) => Promise<void>;
107
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
85
108
  NDatePicker: any;
86
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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<{
87
110
  updateUnchangedValue: {
88
111
  type: BooleanConstructor;
89
112
  };
90
113
  onConfirm: {
91
114
  type: FunctionConstructor;
92
115
  };
93
- }>>, {
116
+ formattedValue: {
117
+ type: StringConstructor;
118
+ };
119
+ placeholder: {
120
+ type: StringConstructor;
121
+ };
122
+ allowedInvalidValue: {
123
+ type: StringConstructor;
124
+ };
125
+ }>> & {
126
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
127
+ }, {
94
128
  updateUnchangedValue: boolean;
95
129
  }>>;
96
130
  NSelect: any;
@@ -630,7 +664,6 @@ declare const DateRange: import("vue").DefineComponent<{
630
664
  value: string;
631
665
  }[]>;
632
666
  presetValCp: import("vue").WritableComputedRef<string>;
633
- initMounted: () => void;
634
667
  handleChange: (val: any, type: "end" | "start") => void;
635
668
  isStartDateDisabled: (ts: number) => boolean;
636
669
  timeStartDisabled: (ts: number) => {
@@ -653,6 +686,15 @@ declare const DateRange: import("vue").DefineComponent<{
653
686
  onConfirm: {
654
687
  type: FunctionConstructor;
655
688
  };
689
+ formattedValue: {
690
+ type: StringConstructor;
691
+ };
692
+ placeholder: {
693
+ type: StringConstructor;
694
+ };
695
+ allowedInvalidValue: {
696
+ type: StringConstructor;
697
+ };
656
698
  }, {
657
699
  attrs: {
658
700
  [x: string]: unknown;
@@ -664,9 +706,23 @@ declare const DateRange: import("vue").DefineComponent<{
664
706
  onConfirm: {
665
707
  type: FunctionConstructor;
666
708
  };
667
- }>> & {}>>;
709
+ formattedValue: {
710
+ type: StringConstructor;
711
+ };
712
+ placeholder: {
713
+ type: StringConstructor;
714
+ };
715
+ allowedInvalidValue: {
716
+ type: StringConstructor;
717
+ };
718
+ }>> & {
719
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
720
+ }>>;
721
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
668
722
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
669
723
  panelInstRef: import("vue").Ref<null>;
724
+ placeholderRef: import("vue").Ref<any>;
725
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
670
726
  isDateTime: import("vue").ComputedRef<boolean>;
671
727
  formatRef: import("vue").ComputedRef<string>;
672
728
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -675,15 +731,27 @@ declare const DateRange: import("vue").DefineComponent<{
675
731
  handleConfirm: (target: HTMLInputElement) => void;
676
732
  onUpdateShow: (show: boolean) => void;
677
733
  onConfirm: (...args: any[]) => Promise<void>;
734
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
678
735
  NDatePicker: any;
679
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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<{
680
737
  updateUnchangedValue: {
681
738
  type: BooleanConstructor;
682
739
  };
683
740
  onConfirm: {
684
741
  type: FunctionConstructor;
685
742
  };
686
- }>>, {
743
+ formattedValue: {
744
+ type: StringConstructor;
745
+ };
746
+ placeholder: {
747
+ type: StringConstructor;
748
+ };
749
+ allowedInvalidValue: {
750
+ type: StringConstructor;
751
+ };
752
+ }>> & {
753
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
754
+ }, {
687
755
  updateUnchangedValue: boolean;
688
756
  }>>;
689
757
  WidgetValEnums: {
@@ -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;
@@ -209,7 +213,6 @@ declare const _default: import("vue").DefineComponent<{
209
213
  label: string;
210
214
  value: string;
211
215
  }[]>;
212
- initMounted: () => void;
213
216
  isDateDisabled: (ts: number) => boolean;
214
217
  timeDisabled: (ts: number) => {
215
218
  isHourDisabled(hour: number): boolean | undefined;
@@ -223,6 +226,15 @@ declare const _default: import("vue").DefineComponent<{
223
226
  onConfirm: {
224
227
  type: FunctionConstructor;
225
228
  };
229
+ formattedValue: {
230
+ type: StringConstructor;
231
+ };
232
+ placeholder: {
233
+ type: StringConstructor;
234
+ };
235
+ allowedInvalidValue: {
236
+ type: StringConstructor;
237
+ };
226
238
  }, {
227
239
  attrs: {
228
240
  [x: string]: unknown;
@@ -234,9 +246,23 @@ declare const _default: import("vue").DefineComponent<{
234
246
  onConfirm: {
235
247
  type: FunctionConstructor;
236
248
  };
237
- }>> & {}>>;
249
+ formattedValue: {
250
+ type: StringConstructor;
251
+ };
252
+ placeholder: {
253
+ type: StringConstructor;
254
+ };
255
+ allowedInvalidValue: {
256
+ type: StringConstructor;
257
+ };
258
+ }>> & {
259
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
260
+ }>>;
261
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
238
262
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
239
263
  panelInstRef: import("vue").Ref<null>;
264
+ placeholderRef: import("vue").Ref<any>;
265
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
240
266
  isDateTime: import("vue").ComputedRef<boolean>;
241
267
  formatRef: import("vue").ComputedRef<string>;
242
268
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -245,15 +271,27 @@ declare const _default: import("vue").DefineComponent<{
245
271
  handleConfirm: (target: HTMLInputElement) => void;
246
272
  onUpdateShow: (show: boolean) => void;
247
273
  onConfirm: (...args: any[]) => Promise<void>;
274
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
248
275
  NDatePicker: any;
249
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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<{
250
277
  updateUnchangedValue: {
251
278
  type: BooleanConstructor;
252
279
  };
253
280
  onConfirm: {
254
281
  type: FunctionConstructor;
255
282
  };
256
- }>>, {
283
+ formattedValue: {
284
+ type: StringConstructor;
285
+ };
286
+ placeholder: {
287
+ type: StringConstructor;
288
+ };
289
+ allowedInvalidValue: {
290
+ type: StringConstructor;
291
+ };
292
+ }>> & {
293
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
294
+ }, {
257
295
  updateUnchangedValue: boolean;
258
296
  }>>;
259
297
  NSelect: any;
@@ -793,7 +831,6 @@ declare const _default: import("vue").DefineComponent<{
793
831
  value: string;
794
832
  }[]>;
795
833
  presetValCp: import("vue").WritableComputedRef<string>;
796
- initMounted: () => void;
797
834
  handleChange: (val: any, type: "end" | "start") => void;
798
835
  isStartDateDisabled: (ts: number) => boolean;
799
836
  timeStartDisabled: (ts: number) => {
@@ -816,6 +853,15 @@ declare const _default: import("vue").DefineComponent<{
816
853
  onConfirm: {
817
854
  type: FunctionConstructor;
818
855
  };
856
+ formattedValue: {
857
+ type: StringConstructor;
858
+ };
859
+ placeholder: {
860
+ type: StringConstructor;
861
+ };
862
+ allowedInvalidValue: {
863
+ type: StringConstructor;
864
+ };
819
865
  }, {
820
866
  attrs: {
821
867
  [x: string]: unknown;
@@ -827,9 +873,23 @@ declare const _default: import("vue").DefineComponent<{
827
873
  onConfirm: {
828
874
  type: FunctionConstructor;
829
875
  };
830
- }>> & {}>>;
876
+ formattedValue: {
877
+ type: StringConstructor;
878
+ };
879
+ placeholder: {
880
+ type: StringConstructor;
881
+ };
882
+ allowedInvalidValue: {
883
+ type: StringConstructor;
884
+ };
885
+ }>> & {
886
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
887
+ }>>;
888
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
831
889
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
832
890
  panelInstRef: import("vue").Ref<null>;
891
+ placeholderRef: import("vue").Ref<any>;
892
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
833
893
  isDateTime: import("vue").ComputedRef<boolean>;
834
894
  formatRef: import("vue").ComputedRef<string>;
835
895
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -838,15 +898,27 @@ declare const _default: import("vue").DefineComponent<{
838
898
  handleConfirm: (target: HTMLInputElement) => void;
839
899
  onUpdateShow: (show: boolean) => void;
840
900
  onConfirm: (...args: any[]) => Promise<void>;
901
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
841
902
  NDatePicker: any;
842
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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<{
843
904
  updateUnchangedValue: {
844
905
  type: BooleanConstructor;
845
906
  };
846
907
  onConfirm: {
847
908
  type: FunctionConstructor;
848
909
  };
849
- }>>, {
910
+ formattedValue: {
911
+ type: StringConstructor;
912
+ };
913
+ placeholder: {
914
+ type: StringConstructor;
915
+ };
916
+ allowedInvalidValue: {
917
+ type: StringConstructor;
918
+ };
919
+ }>> & {
920
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
921
+ }, {
850
922
  updateUnchangedValue: boolean;
851
923
  }>>;
852
924
  WidgetValEnums: {
@@ -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};
@@ -90,6 +90,15 @@ declare const _default: import("vue").DefineComponent<{
90
90
  onConfirm: {
91
91
  type: FunctionConstructor;
92
92
  };
93
+ formattedValue: {
94
+ type: StringConstructor;
95
+ };
96
+ placeholder: {
97
+ type: StringConstructor;
98
+ };
99
+ allowedInvalidValue: {
100
+ type: StringConstructor;
101
+ };
93
102
  }, {
94
103
  attrs: {
95
104
  [x: string]: unknown;
@@ -101,9 +110,23 @@ declare const _default: import("vue").DefineComponent<{
101
110
  onConfirm: {
102
111
  type: FunctionConstructor;
103
112
  };
104
- }>> & {}>>;
113
+ formattedValue: {
114
+ type: StringConstructor;
115
+ };
116
+ placeholder: {
117
+ type: StringConstructor;
118
+ };
119
+ allowedInvalidValue: {
120
+ type: StringConstructor;
121
+ };
122
+ }>> & {
123
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
124
+ }>>;
125
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
105
126
  datePickerRef: import("vue").Ref<AnyObject | null>;
106
127
  panelInstRef: import("vue").Ref<null>;
128
+ placeholderRef: import("vue").Ref<any>;
129
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
107
130
  isDateTime: import("vue").ComputedRef<boolean>;
108
131
  formatRef: import("vue").ComputedRef<string>;
109
132
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -112,15 +135,27 @@ declare const _default: import("vue").DefineComponent<{
112
135
  handleConfirm: (target: HTMLInputElement) => void;
113
136
  onUpdateShow: (show: boolean) => void;
114
137
  onConfirm: (...args: any[]) => Promise<void>;
138
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
115
139
  NDatePicker: any;
116
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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<{
117
141
  updateUnchangedValue: {
118
142
  type: BooleanConstructor;
119
143
  };
120
144
  onConfirm: {
121
145
  type: FunctionConstructor;
122
146
  };
123
- }>>, {
147
+ formattedValue: {
148
+ type: StringConstructor;
149
+ };
150
+ placeholder: {
151
+ type: StringConstructor;
152
+ };
153
+ allowedInvalidValue: {
154
+ type: StringConstructor;
155
+ };
156
+ }>> & {
157
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
158
+ }, {
124
159
  updateUnchangedValue: boolean;
125
160
  }>>;
126
161
  DateQuickBtn: import("vue").DefineComponent<{
@@ -1 +1 @@
1
- import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as u,createElementBlock as r,unref as n,createBlock as o,createCommentVNode as i,normalizeClass as d,withCtx as p,createTextVNode as m,toDisplayString as v}from"vue";import{NButton as c}from"naive-ui";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as g}from"../../../types/enums.js";import{dateDisabledCollect as b,setDateDisabled as h,setTimeDisabled as k}from"../helpers/dateDisabled.js";import C from"./DateQuickBtn/index.vue.js";const Y={class:"render-widget-date-range"};var D=e({__name:"DateInner",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""},unit:{type:String,default:""}},emits:["update:value","update:unit"],setup(e,{emit:D}){const M=e,S=t(),F=t(!1),j=a((()=>{let e="";switch(M.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),T=a((()=>{let e="";switch(M.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e})),w=a((()=>M.unit)),_=a((()=>{var e;return null==(e=M.componentCfg)?void 0:e.widgetCfg.optionSetting})),x=a((()=>_.value!==g.SELECT_TIME)),B=a((()=>b.curTime));function E(){x.value&&(F.value=!F.value)}function V(e){D("update:value",e)}function H(e){D("update:unit",e)}function I(e){S.value=e;const t=e?f(e).format(j.value):e;D("update:value",t)}function O(e){return h(e,_.value)}function Q(e){return k(e,_.value)}return l((()=>M.value),(e=>{if(e&&y(e))return w.value||(F.value=!0),void(S.value=f(e).valueOf());S.value=null}),{immediate:!0}),x.value||(F.value=!0),(t,a)=>(u(),r("div",Y,[n(x)&&!F.value?(u(),o(C,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:n(j),radioValue:n(w),onClickQuickBtn:V,onChangeRadioValue:H},null,8,["componentCfg","type","dateFormat","radioValue"])):i("v-if",!0),n(x)?(u(),o(n(c),{key:1,secondary:"",class:d(F.value?"select-date-right":"select-date-left"),onClick:E},{default:p((()=>[m(v(n(T)),1)])),_:1},8,["class"])):i("v-if",!0),!n(x)||F.value?(u(),o(n(s),{key:2,to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:S.value,defaultTime:n(B),"is-date-disabled":O,"is-time-disabled":Q,"onUpdate:value":I},null,8,["type","clearable","valueFormat","placeholder","value","defaultTime"])):i("v-if",!0)]))}});export{D as default};
1
+ import{defineComponent as e,ref as t,computed as a,watch as l,openBlock as u,createElementBlock as n,unref as r,createBlock as o,createCommentVNode as i,normalizeClass as d,withCtx as p,createTextVNode as m,toDisplayString as v}from"vue";import{NButton as c}from"naive-ui";import s from"../../../../../date-picker/index.js";import f from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as g}from"../../../types/enums.js";import{dateDisabledCollect as b,setDateDisabled as h,setTimeDisabled as k}from"../helpers/dateDisabled.js";import C from"./DateQuickBtn/index.vue.js";const Y={class:"render-widget-date-range"};var D=e({__name:"DateInner",props:{componentCfg:{type:Object},type:{type:String,default:"date"},clearable:{type:Boolean,default:!1},valueFormat:{type:String,default:"yyyy-MM-dd"},placeholder:{type:String,default:"请输入"},value:{type:String,default:""},unit:{type:String,default:""}},emits:["update:value","update:unit"],setup(e,{emit:D}){const M=e,S=t(),F=t(!1),j=a((()=>{let e="";switch(M.type){case"date":e="YYYY-MM-DD";break;case"datetime":e="YYYY-MM-DD HH:mm:ss"}return e})),T=a((()=>{let e="";switch(M.type){case"date":e="选择日期";break;case"datetime":e="选择时间"}return e})),w=a((()=>M.unit)),_=a((()=>{var e;return null==(e=M.componentCfg)?void 0:e.widgetCfg.optionSetting})),x=a((()=>_.value!==g.SELECT_TIME)),B=a((()=>b.curTime));function E(){x.value&&(F.value=!F.value)}function V(e){D("update:value",e)}function H(e){D("update:unit",e)}function I(e){S.value=e;const t=e?f(e).format(j.value):e;D("update:value",t),D("update:unit","")}function O(e){return h(e,_.value)}function Q(e){return k(e,_.value)}return l((()=>M.value),(e=>{if(e&&y(e))return w.value||(F.value=!0),void(S.value=f(e).valueOf());S.value=null}),{immediate:!0}),x.value||(F.value=!0),(t,a)=>(u(),n("div",Y,[r(x)&&!F.value?(u(),o(C,{key:0,componentCfg:e.componentCfg,type:e.type,dateFormat:r(j),radioValue:r(w),onClickQuickBtn:V,onChangeRadioValue:H},null,8,["componentCfg","type","dateFormat","radioValue"])):i("v-if",!0),r(x)?(u(),o(r(c),{key:1,secondary:"",class:d(F.value?"select-date-right":"select-date-left"),onClick:E},{default:p((()=>[m(v(r(T)),1)])),_:1},8,["class"])):i("v-if",!0),!r(x)||F.value?(u(),o(r(s),{key:2,to:"body",type:e.type,clearable:e.clearable,valueFormat:e.valueFormat,placeholder:e.placeholder,value:S.value,defaultTime:r(B),"is-date-disabled":O,"is-time-disabled":Q,"onUpdate:value":I},null,8,["type","clearable","valueFormat","placeholder","value","defaultTime"])):i("v-if",!0)]))}});export{D as default};
@@ -73,6 +73,15 @@ declare const _default: import("vue").DefineComponent<{
73
73
  onConfirm: {
74
74
  type: FunctionConstructor;
75
75
  };
76
+ formattedValue: {
77
+ type: StringConstructor;
78
+ };
79
+ placeholder: {
80
+ type: StringConstructor;
81
+ };
82
+ allowedInvalidValue: {
83
+ type: StringConstructor;
84
+ };
76
85
  }, {
77
86
  attrs: {
78
87
  [x: string]: unknown;
@@ -84,9 +93,23 @@ declare const _default: import("vue").DefineComponent<{
84
93
  onConfirm: {
85
94
  type: FunctionConstructor;
86
95
  };
87
- }>> & {}>>;
96
+ formattedValue: {
97
+ type: StringConstructor;
98
+ };
99
+ placeholder: {
100
+ type: StringConstructor;
101
+ };
102
+ allowedInvalidValue: {
103
+ type: StringConstructor;
104
+ };
105
+ }>> & {
106
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
107
+ }>>;
108
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
88
109
  datePickerRef: import("vue").Ref<AnyObject | null>;
89
110
  panelInstRef: import("vue").Ref<null>;
111
+ placeholderRef: import("vue").Ref<any>;
112
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
90
113
  isDateTime: import("vue").ComputedRef<boolean>;
91
114
  formatRef: import("vue").ComputedRef<string>;
92
115
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -95,15 +118,27 @@ declare const _default: import("vue").DefineComponent<{
95
118
  handleConfirm: (target: HTMLInputElement) => void;
96
119
  onUpdateShow: (show: boolean) => void;
97
120
  onConfirm: (...args: any[]) => Promise<void>;
121
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
98
122
  NDatePicker: any;
99
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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<{
100
124
  updateUnchangedValue: {
101
125
  type: BooleanConstructor;
102
126
  };
103
127
  onConfirm: {
104
128
  type: FunctionConstructor;
105
129
  };
106
- }>>, {
130
+ formattedValue: {
131
+ type: StringConstructor;
132
+ };
133
+ placeholder: {
134
+ type: StringConstructor;
135
+ };
136
+ allowedInvalidValue: {
137
+ type: StringConstructor;
138
+ };
139
+ }>> & {
140
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
141
+ }, {
107
142
  updateUnchangedValue: boolean;
108
143
  }>>;
109
144
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -108,6 +108,15 @@ declare const _default: import("vue").DefineComponent<{
108
108
  onConfirm: {
109
109
  type: FunctionConstructor;
110
110
  };
111
+ formattedValue: {
112
+ type: StringConstructor;
113
+ };
114
+ placeholder: {
115
+ type: StringConstructor;
116
+ };
117
+ allowedInvalidValue: {
118
+ type: StringConstructor;
119
+ };
111
120
  }, {
112
121
  attrs: {
113
122
  [x: string]: unknown;
@@ -119,9 +128,23 @@ declare const _default: import("vue").DefineComponent<{
119
128
  onConfirm: {
120
129
  type: FunctionConstructor;
121
130
  };
122
- }>> & {}>>;
131
+ formattedValue: {
132
+ type: StringConstructor;
133
+ };
134
+ placeholder: {
135
+ type: StringConstructor;
136
+ };
137
+ allowedInvalidValue: {
138
+ type: StringConstructor;
139
+ };
140
+ }>> & {
141
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
142
+ }>>;
143
+ emit: (event: "update:formatted-value", ...args: any[]) => void;
123
144
  datePickerRef: import("vue").Ref<AnyObject | null>;
124
145
  panelInstRef: import("vue").Ref<null>;
146
+ placeholderRef: import("vue").Ref<any>;
147
+ currentFormattedValue: import("vue").WritableComputedRef<string | null | undefined>;
125
148
  isDateTime: import("vue").ComputedRef<boolean>;
126
149
  formatRef: import("vue").ComputedRef<string>;
127
150
  panelFormatRef: import("vue").ComputedRef<string | [string, string]>;
@@ -130,15 +153,27 @@ declare const _default: import("vue").DefineComponent<{
130
153
  handleConfirm: (target: HTMLInputElement) => void;
131
154
  onUpdateShow: (show: boolean) => void;
132
155
  onConfirm: (...args: any[]) => Promise<void>;
156
+ isAllowedInvalidValue: (value?: string) => boolean | "" | undefined;
133
157
  NDatePicker: any;
134
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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<{
135
159
  updateUnchangedValue: {
136
160
  type: BooleanConstructor;
137
161
  };
138
162
  onConfirm: {
139
163
  type: FunctionConstructor;
140
164
  };
141
- }>>, {
165
+ formattedValue: {
166
+ type: StringConstructor;
167
+ };
168
+ placeholder: {
169
+ type: StringConstructor;
170
+ };
171
+ allowedInvalidValue: {
172
+ type: StringConstructor;
173
+ };
174
+ }>> & {
175
+ "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
176
+ }, {
142
177
  updateUnchangedValue: boolean;
143
178
  }>>;
144
179
  DateQuickBtn: import("vue").DefineComponent<{