cnhis-design-vue 3.1.57-release.1 → 3.1.57-release.3

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 (174) hide show
  1. package/es/components/button-print/index.d.ts +8 -8
  2. package/es/components/button-print/src/ButtonPrint.vue.d.ts +8 -8
  3. package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
  4. package/es/components/button-print/src/components/EditFormat.vue.d.ts +3 -3
  5. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +7 -7
  6. package/es/components/button-print/style/index.css +1 -1
  7. package/es/components/calendar/index.d.ts +276 -0
  8. package/es/components/calendar/index.js +1 -0
  9. package/es/components/calendar/src/Calendar.vue.d.ts +265 -0
  10. package/es/components/calendar/src/Calendar.vue.js +1 -0
  11. package/es/components/calendar/src/Calendar.vue2.js +1 -0
  12. package/es/components/calendar/src/types/index.d.ts +6 -0
  13. package/es/components/calendar/src/types/index.js +1 -0
  14. package/es/components/calendar/style/index.css +1 -0
  15. package/es/components/callback/src/components/render/popupMaps.d.ts +233 -224
  16. package/es/components/classification/index.d.ts +3 -3
  17. package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -3
  18. package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -3
  19. package/es/components/classification/src/index.vue.d.ts +3 -3
  20. package/es/components/date-picker/index.d.ts +1 -1
  21. package/es/components/date-picker/src/DatePicker.vue.d.ts +1 -1
  22. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  23. package/es/components/expand-field/index.d.ts +98 -26
  24. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +95 -23
  25. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +95 -23
  26. package/es/components/expand-field/src/components/form.vue.d.ts +98 -26
  27. package/es/components/expand-field/src/index.vue.d.ts +98 -26
  28. package/es/components/fabric-chart/index.d.ts +4 -2
  29. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
  30. package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
  31. package/es/components/fabric-chart/src/components/PopupMenu.js +1 -1
  32. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
  33. package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
  34. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
  35. package/es/components/fabric-chart/src/hooks/temperature/useOther.d.ts +1 -1
  36. package/es/components/fabric-chart/src/hooks/temperature/useOther.js +1 -1
  37. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  38. package/es/components/fabric-chart/src/interface.d.ts +4 -3
  39. package/es/components/field-set/index.d.ts +107 -616
  40. package/es/components/field-set/index.js +1 -1
  41. package/es/components/field-set/src/FieldColor.vue.d.ts +1680 -0
  42. package/es/components/field-set/src/FieldColor.vue.js +1 -0
  43. package/es/components/field-set/src/FieldColor.vue2.js +1 -0
  44. package/es/components/field-set/src/FieldSet.vue.d.ts +58 -16
  45. package/es/components/field-set/src/FieldSet.vue2.js +1 -1
  46. package/es/components/field-set/src/Index.vue.d.ts +141 -0
  47. package/es/components/field-set/src/Index.vue.js +1 -0
  48. package/es/components/field-set/src/Index.vue2.js +1 -0
  49. package/es/components/field-set/src/components/Row.vue.d.ts +50 -9
  50. package/es/components/field-set/src/components/Row.vue2.js +1 -1
  51. package/es/components/field-set/src/components/condition.vue.d.ts +172 -0
  52. package/es/components/field-set/src/components/condition.vue.js +1 -0
  53. package/es/components/field-set/src/components/condition.vue2.js +1 -0
  54. package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1194 -0
  55. package/es/components/field-set/src/components/edit-dialog.vue.js +1 -0
  56. package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -0
  57. package/es/components/field-set/src/components/edit-filter.vue.d.ts +286 -0
  58. package/es/components/field-set/src/components/edit-filter.vue.js +1 -0
  59. package/es/components/field-set/src/components/edit-filter.vue2.js +1 -0
  60. package/es/components/field-set/src/constants/index.d.ts +55 -0
  61. package/es/components/field-set/src/constants/index.js +1 -0
  62. package/es/components/field-set/src/types/index.d.ts +31 -1
  63. package/es/components/field-set/src/utils/index.d.ts +2 -1
  64. package/es/components/field-set/src/utils/index.js +1 -1
  65. package/es/components/field-set/style/index.css +1 -1
  66. package/es/components/form-config/index.d.ts +79 -42
  67. package/es/components/form-config/src/FormConfig.vue.d.ts +79 -42
  68. package/es/components/form-config/src/FormConfig.vue2.js +1 -1
  69. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +17 -8
  70. package/es/components/form-config/src/components/FormConfigDragDisplay.vue.d.ts +5 -2
  71. package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
  72. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +23 -11
  73. package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +8 -8
  74. package/es/components/form-config/src/components/renderer/ComplexNode.vue.d.ts +5 -2
  75. package/es/components/form-config/src/components/renderer/ComplexNode.vue2.js +1 -1
  76. package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
  77. package/es/components/form-config/src/constants/index.d.ts +3 -2
  78. package/es/components/form-config/src/constants/index.js +1 -1
  79. package/es/components/form-config/src/hooks/useSortalbeConfig.d.ts +16 -12
  80. package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
  81. package/es/components/form-config/src/types/index.d.ts +14 -2
  82. package/es/components/form-render/index.d.ts +17 -8
  83. package/es/components/form-render/index.js +1 -1
  84. package/es/components/form-render/src/FormRender.vue.d.ts +17 -8
  85. package/es/components/form-render/src/FormRender.vue2.js +1 -1
  86. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +17 -8
  87. package/es/components/form-render/src/components/renderer/combination/combination.d.ts +12 -0
  88. package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
  89. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.d.ts +1 -1
  90. package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +1 -1
  91. package/es/components/form-render/src/components/renderer/combination/jsonCombination.d.ts +12 -0
  92. package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +1 -1
  93. package/es/components/form-render/src/components/renderer/switch.js +1 -1
  94. package/es/components/form-render/src/hooks/index.d.ts +1 -0
  95. package/es/components/form-render/src/hooks/index.js +1 -1
  96. package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
  97. package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
  98. package/es/components/form-render/src/hooks/useLowCodeReactions.d.ts +1 -1
  99. package/es/components/form-render/src/hooks/useNewLowCodeReactions.d.ts +6 -0
  100. package/es/components/form-render/src/hooks/useNewLowCodeReactions.js +1 -0
  101. package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
  102. package/es/components/form-render/src/types/index.d.ts +1 -1
  103. package/es/components/guide/src/renderer.d.ts +2 -2
  104. package/es/components/iho-table/index.d.ts +216 -216
  105. package/es/components/iho-table/src/IhoTable.vue.d.ts +216 -216
  106. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +1 -1
  107. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -1
  108. package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +1 -1
  109. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
  110. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
  111. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
  112. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
  113. package/es/components/iho-table/src/types/index.d.ts +1 -0
  114. package/es/components/index.css +1 -1
  115. package/es/components/index.d.ts +2 -1
  116. package/es/components/index.js +1 -1
  117. package/es/components/info-header/index.d.ts +41 -23
  118. package/es/components/info-header/src/InfoHeader.vue.d.ts +41 -23
  119. package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -1
  120. package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -1
  121. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +18 -9
  122. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +17 -8
  123. package/es/components/keyboard/index.d.ts +1 -1
  124. package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
  125. package/es/components/quick-search/index.d.ts +3 -3
  126. package/es/components/quick-search/src/index.vue.d.ts +3 -3
  127. package/es/components/recommend-search/index.d.ts +6 -6
  128. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +6 -6
  129. package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
  130. package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
  131. package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
  132. package/es/components/scale-view/index.d.ts +3 -3
  133. package/es/components/scale-view/src/ScaleView.vue.d.ts +3 -3
  134. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
  135. package/es/components/scale-view/src/hooks/use-component.d.ts +1 -1
  136. package/es/components/select-label/index.d.ts +2 -2
  137. package/es/components/select-label/src/LabelFormContent.vue.d.ts +1 -1
  138. package/es/components/select-label/src/SelectLabel.vue.d.ts +1 -1
  139. package/es/components/select-label/src/index.vue.d.ts +1 -1
  140. package/es/components/select-person/index.d.ts +95 -23
  141. package/es/components/select-person/src/SelectPerson.vue.d.ts +84 -17
  142. package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
  143. package/es/components/select-person/src/types/enums.d.ts +9 -0
  144. package/es/components/select-person/src/types/enums.js +1 -1
  145. package/es/components/select-person/style/index.css +1 -1
  146. package/es/components/shortcut-provider/src/hooks/useShortcuts.js +1 -1
  147. package/es/components/shortcut-setter/index.d.ts +18 -8
  148. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +18 -8
  149. package/es/components/table-export-field/index.d.ts +3 -3
  150. package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +3 -3
  151. package/es/components/table-export-field/src/index.vue.d.ts +3 -3
  152. package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -1
  153. package/es/components/table-filter/src/components/bi-filter/components/Date.vue.d.ts +1 -1
  154. package/es/components/table-filter/src/components/bi-filter/components/index.d.ts +1 -1
  155. package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -1
  156. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -2
  157. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -1
  158. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -1
  159. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +2 -2
  160. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +2 -2
  161. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +1 -1
  162. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +1 -1
  163. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +1 -1
  164. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +1 -1
  165. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -4
  166. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +4 -4
  167. package/es/components/time-line/index.d.ts +7 -7
  168. package/es/components/time-line/src/TimeLine.vue.d.ts +3 -3
  169. package/es/shared/package.json.js +1 -1
  170. package/es/shared/types/business.d.ts +23 -3
  171. package/es/shared/utils/business.d.ts +2 -1
  172. package/es/shared/utils/business.js +1 -1
  173. package/es/shared/utils/index.js +1 -1
  174. package/package.json +8 -2
@@ -855,7 +855,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
855
855
  focus: () => any;
856
856
  blur: () => any;
857
857
  handleConfirm: (target: HTMLInputElement) => void;
858
- onUpdateShow: (show: boolean) => void;
858
+ onUpdateShow: (show: boolean) => Promise<void>;
859
859
  onConfirm: (...args: any[]) => Promise<void>;
860
860
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
861
861
  NDatePicker: any;
@@ -1496,7 +1496,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1496
1496
  focus: () => any;
1497
1497
  blur: () => any;
1498
1498
  handleConfirm: (target: HTMLInputElement) => void;
1499
- onUpdateShow: (show: boolean) => void;
1499
+ onUpdateShow: (show: boolean) => Promise<void>;
1500
1500
  onConfirm: (...args: any[]) => Promise<void>;
1501
1501
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1502
1502
  NDatePicker: any;
@@ -1943,7 +1943,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1943
1943
  focus: () => any;
1944
1944
  blur: () => any;
1945
1945
  handleConfirm: (target: HTMLInputElement) => void;
1946
- onUpdateShow: (show: boolean) => void;
1946
+ onUpdateShow: (show: boolean) => Promise<void>;
1947
1947
  onConfirm: (...args: any[]) => Promise<void>;
1948
1948
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1949
1949
  NDatePicker: any;
@@ -327,7 +327,7 @@ declare const _default: import("vue").DefineComponent<{
327
327
  focus: () => any;
328
328
  blur: () => any;
329
329
  handleConfirm: (target: HTMLInputElement) => void;
330
- onUpdateShow: (show: boolean) => void;
330
+ onUpdateShow: (show: boolean) => Promise<void>;
331
331
  onConfirm: (...args: any[]) => Promise<void>;
332
332
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
333
333
  NDatePicker: any;
@@ -968,7 +968,7 @@ declare const _default: import("vue").DefineComponent<{
968
968
  focus: () => any;
969
969
  blur: () => any;
970
970
  handleConfirm: (target: HTMLInputElement) => void;
971
- onUpdateShow: (show: boolean) => void;
971
+ onUpdateShow: (show: boolean) => Promise<void>;
972
972
  onConfirm: (...args: any[]) => Promise<void>;
973
973
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
974
974
  NDatePicker: any;
@@ -1415,7 +1415,7 @@ declare const _default: import("vue").DefineComponent<{
1415
1415
  focus: () => any;
1416
1416
  blur: () => any;
1417
1417
  handleConfirm: (target: HTMLInputElement) => void;
1418
- onUpdateShow: (show: boolean) => void;
1418
+ onUpdateShow: (show: boolean) => Promise<void>;
1419
1419
  onConfirm: (...args: any[]) => Promise<void>;
1420
1420
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1421
1421
  NDatePicker: any;
@@ -621,7 +621,7 @@ declare const _default: import("vue").DefineComponent<{
621
621
  focus: () => any;
622
622
  blur: () => any;
623
623
  handleConfirm: (target: HTMLInputElement) => void;
624
- onUpdateShow: (show: boolean) => void;
624
+ onUpdateShow: (show: boolean) => Promise<void>;
625
625
  onConfirm: (...args: any[]) => Promise<void>;
626
626
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
627
627
  NDatePicker: any;
@@ -1262,7 +1262,7 @@ declare const _default: import("vue").DefineComponent<{
1262
1262
  focus: () => any;
1263
1263
  blur: () => any;
1264
1264
  handleConfirm: (target: HTMLInputElement) => void;
1265
- onUpdateShow: (show: boolean) => void;
1265
+ onUpdateShow: (show: boolean) => Promise<void>;
1266
1266
  onConfirm: (...args: any[]) => Promise<void>;
1267
1267
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1268
1268
  NDatePicker: any;
@@ -1709,7 +1709,7 @@ declare const _default: import("vue").DefineComponent<{
1709
1709
  focus: () => any;
1710
1710
  blur: () => any;
1711
1711
  handleConfirm: (target: HTMLInputElement) => void;
1712
- onUpdateShow: (show: boolean) => void;
1712
+ onUpdateShow: (show: boolean) => Promise<void>;
1713
1713
  onConfirm: (...args: any[]) => Promise<void>;
1714
1714
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1715
1715
  NDatePicker: any;
@@ -860,7 +860,7 @@ declare const _default: import("vue").DefineComponent<{
860
860
  focus: () => any;
861
861
  blur: () => any;
862
862
  handleConfirm: (target: HTMLInputElement) => void;
863
- onUpdateShow: (show: boolean) => void;
863
+ onUpdateShow: (show: boolean) => Promise<void>;
864
864
  onConfirm: (...args: any[]) => Promise<void>;
865
865
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
866
866
  NDatePicker: any;
@@ -1501,7 +1501,7 @@ declare const _default: import("vue").DefineComponent<{
1501
1501
  focus: () => any;
1502
1502
  blur: () => any;
1503
1503
  handleConfirm: (target: HTMLInputElement) => void;
1504
- onUpdateShow: (show: boolean) => void;
1504
+ onUpdateShow: (show: boolean) => Promise<void>;
1505
1505
  onConfirm: (...args: any[]) => Promise<void>;
1506
1506
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1507
1507
  NDatePicker: any;
@@ -1948,7 +1948,7 @@ declare const _default: import("vue").DefineComponent<{
1948
1948
  focus: () => any;
1949
1949
  blur: () => any;
1950
1950
  handleConfirm: (target: HTMLInputElement) => void;
1951
- onUpdateShow: (show: boolean) => void;
1951
+ onUpdateShow: (show: boolean) => Promise<void>;
1952
1952
  onConfirm: (...args: any[]) => Promise<void>;
1953
1953
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
1954
1954
  NDatePicker: any;
@@ -49,7 +49,7 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
49
49
  focus: () => any;
50
50
  blur: () => any;
51
51
  handleConfirm: (target: HTMLInputElement) => void;
52
- onUpdateShow: (show: boolean) => void;
52
+ onUpdateShow: (show: boolean) => Promise<void>;
53
53
  onConfirm: (...args: any[]) => Promise<void>;
54
54
  isAllowedInvalidValue: (value: (string | [string, string]) | null | undefined) => boolean | "" | undefined;
55
55
  NDatePicker: any;
@@ -51,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
51
51
  focus: () => any;
52
52
  blur: () => any;
53
53
  handleConfirm: (target: HTMLInputElement) => void;
54
- onUpdateShow: (show: boolean) => void;
54
+ onUpdateShow: (show: boolean) => Promise<void>;
55
55
  onConfirm: (...args: any[]) => Promise<void>;
56
56
  isAllowedInvalidValue: (value: FormattedValue | null | undefined) => boolean | "" | undefined;
57
57
  NDatePicker: any;
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as a,computed as l,watch as n,openBlock as o,createBlock as r,unref as u,isRef as i,createSlots as d,renderList as s,withCtx as p,renderSlot as m,nextTick as v}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import{isString as c,isArray as y}from"lodash-es";import{useDateTime as h}from"../../../shared/hooks/useDateTime.js";import"@vue/shared";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{format as g}from"date-fns";var V=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:V,emit:w}){const I=e,R=t(),k=a(null),D=a(null),C=a(),M=l({get:()=>x(I.formattedValue)?null:I.formattedValue,set(e){w("update:formatted-value",e,c(e)?Date.parse(e):y(e)?[Date.parse(e[0]),Date.parse(e[1])]:null)}}),S=l((()=>{const e=Reflect.get(R,"type")||"";return["datetime","datetimerange"].includes(e)})),E=l((()=>{if(Reflect.get(R,"format"))return R.format;const e=R.type||"";return S.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),P=l((()=>S.value?E.value.split(" "):"")),{focus:U,blur:$,handleConfirm:_}=h(k,{formatRef:E,attrs:R,emit:w,allowedInvalidValue:I.allowedInvalidValue});function b(e){e&&S.value&&v((()=>{var e;D.value=null==(e=k.value)?void 0:e.panelInstRef,h(D,{formatRef:P,attrs:R,isPanel:!0})}))}async function j(...e){var t,a,l,n,o,r;const u=Reflect.get(R,"type")||"",i=null==(n=null==(l=null==(a=null==(t=k.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(u.includes("range")?null==(o=I.onConfirm)||o.call(I,...e):(await v(),i.focus(),_(i),i.blur(),null==(r=I.onConfirm)||r.call(I,Date.parse(i.value),i.value)),!(null==i?void 0:i.value)||!I.updateUnchangedValue||u.includes("range"))return;const d=i.value;i.value=g(new Date,E.value),i.dispatchEvent(new InputEvent("input")),i.value=d,i.dispatchEvent(new InputEvent("input"))}function x(e){return I.allowedInvalidValue&&I.allowedInvalidValue===e}return n((()=>I.formattedValue),(e=>{C.value=x(e)?e:I.placeholder?I.placeholder:"选择日期时间"}),{immediate:!0}),V({$datePicker:k,focus:U,blur:$}),(e,t)=>(o(),r(u(f),{ref_key:"datePickerRef",ref:k,"onUpdate:show":b,onConfirm:j,placeholder:C.value,"formatted-value":u(M),"onUpdate:formatted-value":t[0]||(t[0]=e=>i(M)?M.value=e:null)},d({_:2},[s(e.$slots,((t,a)=>({name:a,fn:p((()=>[m(e.$slots,a)]))})))]),1032,["placeholder","formatted-value"]))}});export{V as default};
1
+ import{defineComponent as e,useAttrs as a,ref as t,computed as l,watch as n,openBlock as o,createBlock as u,unref as r,isRef as i,createSlots as d,renderList as s,withCtx as p,renderSlot as m,nextTick as v}from"vue";import{NDatePicker as f}from"naive-ui";import"../../../shared/utils/index.js";import{isString as c,isArray as y}from"lodash-es";import{useDateTime as h}from"../../../shared/hooks/useDateTime.js";import"@vue/shared";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{format as g}from"date-fns";var w=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:[String,Array]},placeholder:{type:String},allowedInvalidValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:w,emit:V}){const I=e,R=a(),k=t(null),D=t(null),C=t(),M=l({get:()=>x(I.formattedValue)?null:I.formattedValue,set(e){V("update:formatted-value",e,c(e)?Date.parse(e):y(e)?[Date.parse(e[0]),Date.parse(e[1])]:null)}}),S=l((()=>{const e=Reflect.get(R,"type")||"";return["datetime","datetimerange"].includes(e)})),E=l((()=>{if(Reflect.get(R,"format"))return R.format;const e=R.type||"";return S.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),P=l((()=>S.value?E.value.split(" "):"")),{focus:U,blur:$,handleConfirm:_}=h(k,{formatRef:E,attrs:R,emit:V,allowedInvalidValue:I.allowedInvalidValue});async function b(e){e&&S.value&&(await v(),async function e(a=0){var t;a>2||(D.value=null==(t=k.value)?void 0:t.panelInstRef,D.value?h(D,{formatRef:P,attrs:R,isPanel:!0}):(await v(),e(++a)))}())}async function j(...e){var a,t,l,n,o,u;const r=Reflect.get(R,"type")||"",i=null==(n=null==(l=null==(t=null==(a=k.value)?void 0:a.inputInstRef)?void 0:t.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(r.includes("range")?null==(o=I.onConfirm)||o.call(I,...e):(await v(),i.focus(),_(i),i.blur(),null==(u=I.onConfirm)||u.call(I,Date.parse(i.value),i.value)),!(null==i?void 0:i.value)||!I.updateUnchangedValue||r.includes("range"))return;const d=i.value;i.value=g(new Date,E.value),i.dispatchEvent(new InputEvent("input")),i.value=d,i.dispatchEvent(new InputEvent("input"))}function x(e){return I.allowedInvalidValue&&I.allowedInvalidValue===e}return n((()=>I.formattedValue),(e=>{C.value=x(e)?e:I.placeholder?I.placeholder:"选择日期时间"}),{immediate:!0}),w({$datePicker:k,focus:U,blur:$}),(e,a)=>(o(),u(r(f),{ref_key:"datePickerRef",ref:k,"onUpdate:show":b,onConfirm:j,placeholder:C.value,"formatted-value":r(M),"onUpdate:formatted-value":a[0]||(a[0]=e=>i(M)?M.value=e:null)},d({_:2},[s(e.$slots,((a,t)=>({name:t,fn:p((()=>[m(e.$slots,t)]))})))]),1032,["placeholder","formatted-value"]))}});export{w as default};
@@ -322,7 +322,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
322
322
  readonly rule: import("vue").PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
323
323
  readonly size: import("vue").PropType<"small" | "medium" | "large">;
324
324
  readonly ignorePathChange: BooleanConstructor;
325
- readonly validationStatus: import("vue").PropType<"error" | "success" | "warning">;
325
+ readonly validationStatus: import("vue").PropType<"success" | "error" | "warning">;
326
326
  readonly feedback: StringConstructor;
327
327
  readonly showLabel: {
328
328
  readonly type: import("vue").PropType<boolean | undefined>;
@@ -453,7 +453,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
453
453
  mergedLabelAlign: import("vue").ComputedRef<import("naive-ui/es/form/src/interface").LabelAlign | undefined>;
454
454
  mergedShowRequireMark: import("vue").ComputedRef<boolean | undefined>;
455
455
  mergedRequireMarkPlacement: import("vue").ComputedRef<"left" | "right" | "right-hanging">;
456
- mergedValidationStatus: import("vue").ComputedRef<"error" | "success" | "warning" | undefined>;
456
+ mergedValidationStatus: import("vue").ComputedRef<"success" | "error" | "warning" | undefined>;
457
457
  mergedShowFeedback: import("vue").ComputedRef<boolean>;
458
458
  mergedShowLabel: import("vue").ComputedRef<boolean>;
459
459
  isAutoLabelWidth: import("vue").ComputedRef<boolean>;
@@ -487,7 +487,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
487
487
  readonly rule: import("vue").PropType<import("naive-ui").FormItemRule | import("naive-ui").FormItemRule[]>;
488
488
  readonly size: import("vue").PropType<"small" | "medium" | "large">;
489
489
  readonly ignorePathChange: BooleanConstructor;
490
- readonly validationStatus: import("vue").PropType<"error" | "success" | "warning">;
490
+ readonly validationStatus: import("vue").PropType<"success" | "error" | "warning">;
491
491
  readonly feedback: StringConstructor;
492
492
  readonly showLabel: {
493
493
  readonly type: import("vue").PropType<boolean | undefined>;
@@ -827,7 +827,6 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
827
827
  type: import("vue").PropType<((string | number) | {
828
828
  [key: string]: any;
829
829
  key: string | number;
830
- name: string;
831
830
  })[]>;
832
831
  default: () => never[];
833
832
  };
@@ -847,6 +846,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
847
846
  };
848
847
  wordbook: {
849
848
  type: import("vue").PropType<{
849
+ [key: string]: any;
850
850
  parent_id_obj: string | number;
851
851
  parent_name_obj: string | number;
852
852
  user_count_obj?: string | number | undefined;
@@ -896,6 +896,24 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
896
896
  type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
897
897
  default: () => Promise<never[]>;
898
898
  };
899
+ showSelectType: {
900
+ type: BooleanConstructor;
901
+ default: boolean;
902
+ };
903
+ roleData: {
904
+ type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
905
+ [k: string]: unknown;
906
+ } & import("../../shared/types").AnyObject)[]>;
907
+ default: () => never[];
908
+ };
909
+ roleFields: {
910
+ type: ObjectConstructor;
911
+ default: () => {
912
+ label: string;
913
+ key: string;
914
+ children: string;
915
+ };
916
+ };
899
917
  }, {
900
918
  searchFilterBase: {
901
919
  isOpen: boolean;
@@ -903,12 +921,19 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
903
921
  customTitles: string[];
904
922
  itemHeight: number;
905
923
  };
924
+ labelList: {
925
+ key: string;
926
+ label: string;
927
+ }[];
928
+ labelListName: {
929
+ dept: string;
930
+ role: string;
931
+ };
906
932
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
907
933
  defaultList: {
908
934
  type: import("vue").PropType<((string | number) | {
909
935
  [key: string]: any;
910
936
  key: string | number;
911
- name: string;
912
937
  })[]>;
913
938
  default: () => never[];
914
939
  };
@@ -928,6 +953,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
928
953
  };
929
954
  wordbook: {
930
955
  type: import("vue").PropType<{
956
+ [key: string]: any;
931
957
  parent_id_obj: string | number;
932
958
  parent_name_obj: string | number;
933
959
  user_count_obj?: string | number | undefined;
@@ -977,6 +1003,24 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
977
1003
  type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
978
1004
  default: () => Promise<never[]>;
979
1005
  };
1006
+ showSelectType: {
1007
+ type: BooleanConstructor;
1008
+ default: boolean;
1009
+ };
1010
+ roleData: {
1011
+ type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
1012
+ [k: string]: unknown;
1013
+ } & import("../../shared/types").AnyObject)[]>;
1014
+ default: () => never[];
1015
+ };
1016
+ roleFields: {
1017
+ type: ObjectConstructor;
1018
+ default: () => {
1019
+ label: string;
1020
+ key: string;
1021
+ children: string;
1022
+ };
1023
+ };
980
1024
  }>> & {
981
1025
  onCheck?: ((...args: any[]) => any) | undefined;
982
1026
  onCheckWithLevel?: ((...args: any[]) => any) | undefined;
@@ -1000,19 +1044,18 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1000
1044
  tagData: import("vue").Ref<{
1001
1045
  [x: string]: any;
1002
1046
  key: string | number;
1003
- name: string;
1004
1047
  }[]>;
1005
1048
  initTagData: import("vue").Ref<{
1006
1049
  [x: string]: any;
1007
1050
  key: string | number;
1008
- name: string;
1009
1051
  }[]>;
1010
1052
  isSearch: import("vue").Ref<boolean>;
1011
- temp: import("naive-ui").TreeOption[];
1012
- allCheckedKeys: (string | number)[];
1053
+ tempData: import("naive-ui").TreeOption[];
1054
+ allCheckedTreeKeys: import("vue").Ref<(string | number)[]>;
1013
1055
  isRemote: import("vue").ComputedRef<boolean>;
1014
1056
  checkStrategyResult: import("vue").ComputedRef<any>;
1015
1057
  isSearchFilter: import("vue").ComputedRef<boolean>;
1058
+ curSelectKey: import("vue").Ref<string>;
1016
1059
  mergeSearchFilter: import("vue").ComputedRef<{
1017
1060
  isOpen: boolean;
1018
1061
  multiple: boolean;
@@ -1020,10 +1063,24 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1020
1063
  itemHeight: number;
1021
1064
  }>;
1022
1065
  wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
1023
- caculateTagData: import("vue").ComputedRef<any[]>;
1066
+ caculateTagData: import("vue").ComputedRef<any>;
1067
+ treeDataMiddle: any;
1068
+ checkedKeysMiddle: any;
1069
+ checkedTagsMiddle: any;
1070
+ allCheckedKeysMiddle: any;
1071
+ attrType: import("vue").ComputedRef<any>;
1072
+ keyStr: import("vue").ComputedRef<string>;
1073
+ getTreeDataMiddleData: () => void;
1074
+ getDeptData: (list: any[], cb?: any) => any[];
1075
+ getRoleData: (list: any[], cb?: any) => any[];
1076
+ onHandleLabelChange: (item: any) => void;
1077
+ setSelectTagData: (tree: import("naive-ui").TreeOption[], operatorType: string) => void;
1078
+ uniqArrObj: (arr: any[], name: string) => any;
1024
1079
  init: () => void;
1025
- getallCheckedKeysWithChild: (item: import("naive-ui").TreeOption) => void;
1026
- getallCheckedKeysWithParent: (item: import("naive-ui").TreeOption) => void;
1080
+ getMainData: (tree: import("naive-ui").TreeOption[], parentNode: import("naive-ui").TreeOption | null, cb?: any) => void;
1081
+ setAllCheckedKeys: (tree: import("naive-ui").TreeOption, cb?: any) => void;
1082
+ setAllCheckedKeysWithChild: (item: import("naive-ui").TreeOption, cb?: any) => void;
1083
+ setAllCheckedKeysWithParent: (item: import("naive-ui").TreeOption, cb?: any) => void;
1027
1084
  queryLoadChildNode: (node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>;
1028
1085
  setDisabled: (data: import("naive-ui").TreeOption) => void;
1029
1086
  renderLabel: ({ option }: {
@@ -1032,10 +1089,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1032
1089
  getLabelName: (option: import("naive-ui").TreeOption) => unknown;
1033
1090
  transformData: (trees: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
1034
1091
  calculateRootItems: (trees: import("naive-ui").TreeOption[], items: import("naive-ui").TreeOption[]) => import("naive-ui").TreeOption[];
1035
- transformParentNodeName: (trees: import("naive-ui").TreeOption[], temp: any) => import("naive-ui").TreeOption[];
1036
- setAllCheckedKeys: (tree: import("naive-ui").TreeOption[]) => void;
1037
- setAllCheckedKeysWithChild: (tree: import("naive-ui").TreeOption[]) => void;
1038
- setAllCheckedKeysWithParent: (tree: import("naive-ui").TreeOption[]) => void;
1092
+ transformParentNodeName: (trees: import("naive-ui").TreeOption[], tempContent: any) => import("naive-ui").TreeOption[];
1039
1093
  searchSetting: () => string;
1040
1094
  onSearch: () => Promise<void>;
1041
1095
  setTreeCheckd: (tree: import("naive-ui").TreeOption[], checked: boolean) => void;
@@ -1045,11 +1099,9 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1045
1099
  uniq: (arr: {
1046
1100
  [key: string]: any;
1047
1101
  key: string | number;
1048
- name: string;
1049
1102
  }[]) => {
1050
1103
  [key: string]: any;
1051
1104
  key: string | number;
1052
- name: string;
1053
1105
  }[];
1054
1106
  setTagData: (tree: import("naive-ui").TreeOption[]) => void;
1055
1107
  updateTreeChecked: (keys: (string | number)[]) => void;
@@ -1058,15 +1110,10 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1058
1110
  closeTag: (tag: {
1059
1111
  [key: string]: any;
1060
1112
  key: string | number;
1061
- name: string;
1062
1113
  }) => void;
1063
1114
  notifyCheck: (keys: (string | number)[]) => void;
1064
1115
  notifySearchClear: () => void;
1065
- getCheckWithLevel: () => {
1066
- [x: string]: any;
1067
- key: string | number;
1068
- name: string;
1069
- }[];
1116
+ getCheckWithLevel: () => any;
1070
1117
  NButton: any;
1071
1118
  NInput: any;
1072
1119
  NInputGroup: import("vue").DefineComponent<{
@@ -1082,6 +1129,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1082
1129
  }>>, {}>;
1083
1130
  NCheckbox: any;
1084
1131
  NTree: any;
1132
+ NTag: any;
1085
1133
  NIcon: any;
1086
1134
  NSpace: any;
1087
1135
  NGrid: any;
@@ -1135,6 +1183,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1135
1183
  readonly suffix: boolean;
1136
1184
  readonly privateShow: boolean;
1137
1185
  }>;
1186
+ NEmpty: any;
1138
1187
  CloseCircleSharp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1139
1188
  SearchMultiple: import("vue").DefineComponent<{
1140
1189
  treeData: {
@@ -1404,7 +1453,6 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1404
1453
  type: import("vue").PropType<((string | number) | {
1405
1454
  [key: string]: any;
1406
1455
  key: string | number;
1407
- name: string;
1408
1456
  })[]>;
1409
1457
  default: () => never[];
1410
1458
  };
@@ -1424,6 +1472,7 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1424
1472
  };
1425
1473
  wordbook: {
1426
1474
  type: import("vue").PropType<{
1475
+ [key: string]: any;
1427
1476
  parent_id_obj: string | number;
1428
1477
  parent_name_obj: string | number;
1429
1478
  user_count_obj?: string | number | undefined;
@@ -1473,6 +1522,24 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1473
1522
  type: import("vue").PropType<(keyWork: string) => Promise<import("../../shared/types").AnyObject[]>>;
1474
1523
  default: () => Promise<never[]>;
1475
1524
  };
1525
+ showSelectType: {
1526
+ type: BooleanConstructor;
1527
+ default: boolean;
1528
+ };
1529
+ roleData: {
1530
+ type: import("vue").PropType<(import("naive-ui/es/tree/src/interface").TreeOptionBase & {
1531
+ [k: string]: unknown;
1532
+ } & import("../../shared/types").AnyObject)[]>;
1533
+ default: () => never[];
1534
+ };
1535
+ roleFields: {
1536
+ type: ObjectConstructor;
1537
+ default: () => {
1538
+ label: string;
1539
+ key: string;
1540
+ children: string;
1541
+ };
1542
+ };
1476
1543
  }>> & {
1477
1544
  onCheck?: ((...args: any[]) => any) | undefined;
1478
1545
  onCheckWithLevel?: ((...args: any[]) => any) | undefined;
@@ -1483,11 +1550,11 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1483
1550
  defaultList: ((string | number) | {
1484
1551
  [key: string]: any;
1485
1552
  key: string | number;
1486
- name: string;
1487
1553
  })[];
1488
1554
  searchPlaceholder: string;
1489
1555
  searchButtonText: string;
1490
1556
  wordbook: {
1557
+ [key: string]: any;
1491
1558
  parent_id_obj: string | number;
1492
1559
  parent_name_obj: string | number;
1493
1560
  user_count_obj?: string | number | undefined;
@@ -1508,6 +1575,11 @@ declare const ExpandField: SFCWithInstall<import("vue").DefineComponent<{
1508
1575
  } & import("../../shared/types").AnyObject;
1509
1576
  queryLoadChildData: (node: import("naive-ui").TreeOption) => Promise<import("../../shared/types").AnyObject>;
1510
1577
  queryTreeSearch: (keyWork: string) => Promise<import("../../shared/types").AnyObject[]>;
1578
+ showSelectType: boolean;
1579
+ roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & {
1580
+ [k: string]: unknown;
1581
+ } & import("../../shared/types").AnyObject)[];
1582
+ roleFields: Record<string, any>;
1511
1583
  }>>;
1512
1584
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("check" | "changeModalVisible")[], "check" | "changeModalVisible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1513
1585
  visible: {