cnhis-design-vue 3.4.0-beta.60 → 3.4.0-beta.63

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 (38) hide show
  1. package/es/components/expand-field/index.d.ts +31 -0
  2. package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +31 -0
  3. package/es/components/expand-field/src/components/PersonModal.vue.d.ts +31 -0
  4. package/es/components/expand-field/src/components/form.vue.d.ts +31 -0
  5. package/es/components/expand-field/src/index.vue.d.ts +31 -0
  6. package/es/components/fabric-chart/index.d.ts +3 -3
  7. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +3 -3
  8. package/es/components/fabric-chart/src/components/PopupMenu.d.ts +4 -4
  9. package/es/components/fabric-chart/src/components/PopupMenu.js +57 -39
  10. package/es/components/fabric-chart/src/constants/index.d.ts +19 -4
  11. package/es/components/fabric-chart/src/constants/index.js +26 -10
  12. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.d.ts +4 -3
  13. package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +119 -193
  14. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -3
  15. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +15 -26
  16. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +4 -3
  17. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +6 -7
  18. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -3
  19. package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -9
  20. package/es/components/fabric-chart/src/hooks/temperature/useCenter.d.ts +4 -3
  21. package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +81 -218
  22. package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
  23. package/es/components/fabric-chart/src/interface.d.ts +14 -1
  24. package/es/components/fabric-chart/src/utils/index.d.ts +0 -1
  25. package/es/components/fabric-chart/src/utils/index.js +1 -10
  26. package/es/components/fabric-chart/style/index.css +1 -1
  27. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +2 -4
  28. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue2.js +22 -8
  29. package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
  30. package/es/components/iho-table/src/types/index.d.ts +3 -1
  31. package/es/components/index.css +1 -1
  32. package/es/components/select-person/index.d.ts +31 -0
  33. package/es/components/select-person/src/SelectPerson.vue.d.ts +14 -0
  34. package/es/components/select-person/src/SelectPerson.vue2.js +16 -4
  35. package/es/components/select-person/src/index.vue.d.ts +31 -0
  36. package/es/components/select-person/src/index.vue2.js +4 -0
  37. package/es/shared/package.json.js +1 -1
  38. package/package.json +2 -2
@@ -1,6 +1,7 @@
1
- import { defineComponent, reactive, openBlock, createBlock, unref } from 'vue';
1
+ import { defineComponent, reactive, computed, openBlock, createBlock, unref, mergeProps } from 'vue';
2
2
  import DatePicker from '../../../../date-picker/index.js';
3
3
  import { subDays, subMonths } from 'date-fns';
4
+ import { getLowCodeFieldFromField } from '../../utils/index.js';
4
5
 
5
6
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "filter",
@@ -14,9 +15,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  var _a, _b, _c;
15
16
  const props = __props;
16
17
  const optionRef = reactive(((_c = (_b = (_a = props.payload) == null ? void 0 : _a.column) == null ? void 0 : _b.filters) == null ? void 0 : _c[0]) || { data: void 0 });
17
- const shortcuts = reactive({
18
- \u8FD1\u4E00\u5468: () => [subDays(new Date(), 7).getTime(), new Date().getTime()],
19
- \u8FD1\u4E00\u4E2A\u6708: () => [subMonths(new Date(), 1).getTime(), new Date().getTime()]
18
+ const datePickerProps = computed(() => {
19
+ var _a2, _b2, _c2;
20
+ const fieldItem = getLowCodeFieldFromField(props.payload.column);
21
+ if (!fieldItem)
22
+ return {};
23
+ return (_c2 = (_b2 = (_a2 = fieldItem.filterSetting) == null ? void 0 : _a2.daterange) == null ? void 0 : _b2.datePickerProps) != null ? _c2 : {};
24
+ });
25
+ const shortcuts = computed(() => {
26
+ return Object.assign(
27
+ {
28
+ \u8FD1\u4E00\u5468: () => [subDays(new Date(), 7).getTime(), new Date().getTime()],
29
+ \u8FD1\u4E00\u4E2A\u6708: () => [subMonths(new Date(), 1).getTime(), new Date().getTime()]
30
+ },
31
+ datePickerProps.value.shortcuts
32
+ );
20
33
  });
21
34
  function onConfirm(value, formattedValue) {
22
35
  var _a2;
@@ -27,16 +40,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
27
40
  props.payload.$panel.confirmFilter(new CustomEvent("click"));
28
41
  }
29
42
  return (_ctx, _cache) => {
30
- return openBlock(), createBlock(unref(DatePicker), {
43
+ return openBlock(), createBlock(unref(DatePicker), mergeProps({
31
44
  type: "datetimerange",
32
45
  panel: "",
33
46
  clearable: "",
34
47
  "default-time": ["00:00:00", "23:59:59"],
35
48
  "formatted-value": optionRef.data,
36
- "onUpdate:formattedValue": _cache[0] || (_cache[0] = ($event) => optionRef.data = $event),
37
- shortcuts,
49
+ "onUpdate:formattedValue": _cache[0] || (_cache[0] = ($event) => optionRef.data = $event)
50
+ }, datePickerProps.value, {
51
+ shortcuts: shortcuts.value,
38
52
  onConfirm
39
- }, null, 8, ["formatted-value", "shortcuts"]);
53
+ }), null, 16, ["formatted-value", "shortcuts"]);
40
54
  };
41
55
  }
42
56
  });
@@ -75,7 +75,7 @@ function filterAdaptor(props) {
75
75
  Reflect.deleteProperty(props, "filterSetting");
76
76
  Reflect.deleteProperty(props, "fieldSetting");
77
77
  }
78
- if ((_a = props.filterSetting) == null ? void 0 : _a.daterange) {
78
+ if (((_a = props.filterSetting) == null ? void 0 : _a.daterange) === true) {
79
79
  Reflect.deleteProperty(props.filterSetting, "daterange");
80
80
  props.filterSetting.type = "daterange";
81
81
  }
@@ -156,7 +156,9 @@ export declare namespace IhoTableLowCodeField {
156
156
  }>;
157
157
  }>;
158
158
  type FilterSetting = Partial<{
159
- daterange: boolean;
159
+ daterange: Partial<{
160
+ datePickerProps: AnyObject;
161
+ }>;
160
162
  type: 'daterange' | 'text' | 'remote';
161
163
  pagination: boolean;
162
164
  text: Partial<{