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
@@ -114,6 +114,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
114
114
  type: BooleanConstructor;
115
115
  default: boolean;
116
116
  };
117
+ onlyCheckChildNode: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
117
121
  itemKey: {
118
122
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
119
123
  default: undefined;
@@ -241,6 +245,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
241
245
  type: BooleanConstructor;
242
246
  default: boolean;
243
247
  };
248
+ onlyCheckChildNode: {
249
+ type: BooleanConstructor;
250
+ default: boolean;
251
+ };
244
252
  itemKey: {
245
253
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
246
254
  default: undefined;
@@ -1385,6 +1393,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
1385
1393
  type: BooleanConstructor;
1386
1394
  default: boolean;
1387
1395
  };
1396
+ onlyCheckChildNode: {
1397
+ type: BooleanConstructor;
1398
+ };
1388
1399
  itemKey: {
1389
1400
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
1390
1401
  default: undefined;
@@ -1471,6 +1482,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
1471
1482
  type: BooleanConstructor;
1472
1483
  default: boolean;
1473
1484
  };
1485
+ onlyCheckChildNode: {
1486
+ type: BooleanConstructor;
1487
+ };
1474
1488
  itemKey: {
1475
1489
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
1476
1490
  default: undefined;
@@ -1627,6 +1641,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
1627
1641
  node: import("naive-ui").TreeOption | null;
1628
1642
  action: "check" | "uncheck";
1629
1643
  }) => void;
1644
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
1645
+ node: import("naive-ui").TreeOption | null;
1646
+ action: "check" | "uncheck";
1647
+ }) => void;
1630
1648
  clearAll: () => void;
1631
1649
  updateChecked: (key: string | number, checked: boolean) => void;
1632
1650
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2038,6 +2056,9 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2038
2056
  type: BooleanConstructor;
2039
2057
  default: boolean;
2040
2058
  };
2059
+ onlyCheckChildNode: {
2060
+ type: BooleanConstructor;
2061
+ };
2041
2062
  itemKey: {
2042
2063
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2043
2064
  default: undefined;
@@ -2067,6 +2088,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2067
2088
  forceShowSelectAll: boolean;
2068
2089
  onlyForwardCascade: boolean;
2069
2090
  hideLeaf: boolean;
2091
+ onlyCheckChildNode: boolean;
2070
2092
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number;
2071
2093
  showTagHover: boolean;
2072
2094
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2185,6 +2207,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2185
2207
  type: BooleanConstructor;
2186
2208
  default: boolean;
2187
2209
  };
2210
+ onlyCheckChildNode: {
2211
+ type: BooleanConstructor;
2212
+ default: boolean;
2213
+ };
2188
2214
  itemKey: {
2189
2215
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2190
2216
  default: undefined;
@@ -2316,6 +2342,10 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2316
2342
  type: BooleanConstructor;
2317
2343
  default: boolean;
2318
2344
  };
2345
+ onlyCheckChildNode: {
2346
+ type: BooleanConstructor;
2347
+ default: boolean;
2348
+ };
2319
2349
  itemKey: {
2320
2350
  type: import("vue").PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number>;
2321
2351
  default: undefined;
@@ -2365,6 +2395,7 @@ declare const SelectPerson: SFCWithInstall<import("vue").DefineComponent<import(
2365
2395
  forceShowSelectAll: boolean;
2366
2396
  onlyForwardCascade: boolean;
2367
2397
  hideLeaf: boolean;
2398
+ onlyCheckChildNode: boolean;
2368
2399
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & import("../../shared/types").AnyObject) => string | number;
2369
2400
  showTagHover: boolean;
2370
2401
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -81,6 +81,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
81
81
  type: BooleanConstructor;
82
82
  default: boolean;
83
83
  };
84
+ onlyCheckChildNode: {
85
+ type: BooleanConstructor;
86
+ };
84
87
  itemKey: {
85
88
  type: PropType<(node: ITreeOption) => IKey>;
86
89
  default: undefined;
@@ -164,6 +167,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
164
167
  type: BooleanConstructor;
165
168
  default: boolean;
166
169
  };
170
+ onlyCheckChildNode: {
171
+ type: BooleanConstructor;
172
+ };
167
173
  itemKey: {
168
174
  type: PropType<(node: ITreeOption) => IKey>;
169
175
  default: undefined;
@@ -320,6 +326,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
320
326
  node: TreeOption | null;
321
327
  action: 'check' | 'uncheck';
322
328
  }) => void;
329
+ updateTreeSelected: (keys: Array<IKey>, _: any, meta: {
330
+ node: TreeOption | null;
331
+ action: 'check' | 'uncheck';
332
+ }) => void;
323
333
  clearAll: () => void;
324
334
  updateChecked: (key: IKey, checked: boolean) => void;
325
335
  notifyCheck: (key: IKey, isChecked?: boolean) => void;
@@ -728,6 +738,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
728
738
  type: BooleanConstructor;
729
739
  default: boolean;
730
740
  };
741
+ onlyCheckChildNode: {
742
+ type: BooleanConstructor;
743
+ };
731
744
  itemKey: {
732
745
  type: PropType<(node: ITreeOption) => IKey>;
733
746
  default: undefined;
@@ -754,6 +767,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
754
767
  forceShowSelectAll: boolean;
755
768
  onlyForwardCascade: boolean;
756
769
  hideLeaf: boolean;
770
+ onlyCheckChildNode: boolean;
757
771
  itemKey: (node: ITreeOption) => IKey;
758
772
  showTagHover: boolean;
759
773
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -99,6 +99,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  type: Boolean,
100
100
  default: false
101
101
  },
102
+ onlyCheckChildNode: {
103
+ type: Boolean
104
+ },
102
105
  itemKey: {
103
106
  type: Function,
104
107
  default: void 0
@@ -296,7 +299,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
296
299
  children: void 0,
297
300
  originItem: item,
298
301
  leaf: isLeaf,
299
- disabled: disabled || item.disabled
302
+ disabled: disabled || item.disabled,
303
+ checkboxDisabled: false
300
304
  };
301
305
  if (isRemote.value)
302
306
  tree.isLeaf = isLeaf;
@@ -313,6 +317,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
313
317
  }
314
318
  } else {
315
319
  if (children == null ? void 0 : children.length) {
320
+ if (props.onlyCheckChildNode)
321
+ tree.checkboxDisabled = true;
316
322
  const childData = transformData(children, tree, visitor);
317
323
  if (childData.treeItems.length) {
318
324
  tree.children = childData.treeItems;
@@ -481,6 +487,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
481
487
  checkedAll.value = false;
482
488
  }
483
489
  }
490
+ function updateTreeSelected(keys, _, meta) {
491
+ var _a;
492
+ if ((_a = meta.node) == null ? void 0 : _a.checkboxDisabled)
493
+ return;
494
+ checkedKeys.value = keys;
495
+ }
484
496
  function clearAll() {
485
497
  checkedAll.value = false;
486
498
  checkedKeys.value = [];
@@ -658,7 +670,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
658
670
  checked: checkedAll.value,
659
671
  "onUpdate:checked": [_cache[1] || (_cache[1] = ($event) => checkedAll.value = $event), checkedAllChange]
660
672
  }, {
661
- default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
673
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(i18n("10010.1.37", "\u5168\u9009"), -1)])]),
662
674
  _: 1
663
675
  }, 8, ["checked"])), [[vShow, __props.forceShowSelectAll]]) : createCommentVNode("v-if", true), createCommentVNode(" \u540C\u65F6\u517C\u5BB9\u9009\u4EBA\u548C\u9009\u90E8\u95E8 "), isSearch.value && isShowGroupList.value ? (openBlock(), createBlock(SearchGroupList, {
664
676
  key: 1,
@@ -672,7 +684,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
672
684
  "expanded-keys": expandedKeys.value,
673
685
  "onUpdate:expandedKeys": _cache[2] || (_cache[2] = ($event) => expandedKeys.value = $event),
674
686
  "selected-keys": checkedKeys.value,
675
- "onUpdate:selectedKeys": _cache[3] || (_cache[3] = ($event) => checkedKeys.value = $event),
676
687
  style: {
677
688
  "height": "100%"
678
689
  },
@@ -688,6 +699,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
688
699
  }, __props.treeSetting, {
689
700
  class: "c-select-person__scroll",
690
701
  "onUpdate:checkedKeys": updateTreeChecked,
702
+ "onUpdate:selectedKeys": updateTreeSelected,
691
703
  onLoad: queryLoadChildNode
692
704
  }), {
693
705
  empty: withCtx(() => [createVNode(unref(DefaultPage), {
@@ -707,7 +719,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
707
719
  "margin-bottom": "20px"
708
720
  }
709
721
  }, {
710
- default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, [_cache[5] || (_cache[5] = createTextVNode(i18n("10010.1.39", "\u5DF2\u9009\u62E9"), -1)), createElementVNode("span", null, "\uFF1A" + toDisplayString(caculateTagData.value.length), 1)])) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("span", {
722
+ default: withCtx(() => [__props.showCount ? (openBlock(), createElementBlock("span", _hoisted_3, [_cache[4] || (_cache[4] = createTextVNode(i18n("10010.1.39", "\u5DF2\u9009\u62E9"), -1)), createElementVNode("span", null, "\uFF1A" + toDisplayString(caculateTagData.value.length), 1)])) : createCommentVNode("v-if", true), __props.showClear ? (openBlock(), createElementBlock("span", {
711
723
  key: 1,
712
724
  class: "c-select-person__clear-btn",
713
725
  onClick: clearAll
@@ -122,6 +122,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
122
122
  type: BooleanConstructor;
123
123
  default: boolean;
124
124
  };
125
+ onlyCheckChildNode: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
125
129
  itemKey: {
126
130
  type: PropType<(node: ITreeOption) => IKey>;
127
131
  default: undefined;
@@ -236,6 +240,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
236
240
  type: BooleanConstructor;
237
241
  default: boolean;
238
242
  };
243
+ onlyCheckChildNode: {
244
+ type: BooleanConstructor;
245
+ default: boolean;
246
+ };
239
247
  itemKey: {
240
248
  type: PropType<(node: ITreeOption) => IKey>;
241
249
  default: undefined;
@@ -1380,6 +1388,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1380
1388
  type: BooleanConstructor;
1381
1389
  default: boolean;
1382
1390
  };
1391
+ onlyCheckChildNode: {
1392
+ type: BooleanConstructor;
1393
+ };
1383
1394
  itemKey: {
1384
1395
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1385
1396
  default: undefined;
@@ -1466,6 +1477,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1466
1477
  type: BooleanConstructor;
1467
1478
  default: boolean;
1468
1479
  };
1480
+ onlyCheckChildNode: {
1481
+ type: BooleanConstructor;
1482
+ };
1469
1483
  itemKey: {
1470
1484
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
1471
1485
  default: undefined;
@@ -1622,6 +1636,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1622
1636
  node: import("naive-ui").TreeOption | null;
1623
1637
  action: "check" | "uncheck";
1624
1638
  }) => void;
1639
+ updateTreeSelected: (keys: (string | number)[], _: any, meta: {
1640
+ node: import("naive-ui").TreeOption | null;
1641
+ action: "check" | "uncheck";
1642
+ }) => void;
1625
1643
  clearAll: () => void;
1626
1644
  updateChecked: (key: string | number, checked: boolean) => void;
1627
1645
  notifyCheck: (key: string | number, isChecked?: boolean) => void;
@@ -2033,6 +2051,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2033
2051
  type: BooleanConstructor;
2034
2052
  default: boolean;
2035
2053
  };
2054
+ onlyCheckChildNode: {
2055
+ type: BooleanConstructor;
2056
+ };
2036
2057
  itemKey: {
2037
2058
  type: PropType<(node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number>;
2038
2059
  default: undefined;
@@ -2062,6 +2083,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2062
2083
  forceShowSelectAll: boolean;
2063
2084
  onlyForwardCascade: boolean;
2064
2085
  hideLeaf: boolean;
2086
+ onlyCheckChildNode: boolean;
2065
2087
  itemKey: (node: import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject) => string | number;
2066
2088
  showTagHover: boolean;
2067
2089
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
@@ -2167,6 +2189,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2167
2189
  type: BooleanConstructor;
2168
2190
  default: boolean;
2169
2191
  };
2192
+ onlyCheckChildNode: {
2193
+ type: BooleanConstructor;
2194
+ default: boolean;
2195
+ };
2170
2196
  itemKey: {
2171
2197
  type: PropType<(node: ITreeOption) => IKey>;
2172
2198
  default: undefined;
@@ -2285,6 +2311,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2285
2311
  type: BooleanConstructor;
2286
2312
  default: boolean;
2287
2313
  };
2314
+ onlyCheckChildNode: {
2315
+ type: BooleanConstructor;
2316
+ default: boolean;
2317
+ };
2288
2318
  itemKey: {
2289
2319
  type: PropType<(node: ITreeOption) => IKey>;
2290
2320
  default: undefined;
@@ -2321,6 +2351,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2321
2351
  forceShowSelectAll: boolean;
2322
2352
  onlyForwardCascade: boolean;
2323
2353
  hideLeaf: boolean;
2354
+ onlyCheckChildNode: boolean;
2324
2355
  itemKey: (node: ITreeOption) => IKey;
2325
2356
  showTagHover: boolean;
2326
2357
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -109,6 +109,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
109
109
  type: Boolean,
110
110
  default: false
111
111
  },
112
+ onlyCheckChildNode: {
113
+ type: Boolean,
114
+ default: false
115
+ },
112
116
  itemKey: {
113
117
  type: Function,
114
118
  default: void 0
@@ -1,5 +1,5 @@
1
1
  var name = "@cnhis-design-vue/shared";
2
- var version = "3.4.0-beta.60";
2
+ var version = "3.4.0-beta.63";
3
3
  var main = "index.ts";
4
4
  var peerDependencies = {
5
5
  "naive-ui": "^2.30.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "3.4.0-beta.60",
3
+ "version": "3.4.0-beta.63",
4
4
  "license": "ISC",
5
5
  "module": "./es/components/index.js",
6
6
  "main": "./es/components/index.js",
@@ -73,5 +73,5 @@
73
73
  "iOS 7",
74
74
  "last 3 iOS versions"
75
75
  ],
76
- "gitHead": "8bd05157ab043e7ef037ee69e52191ef2c335bf3"
76
+ "gitHead": "3191a7a49e9b0f076d59decced27fdfab9dfc85c"
77
77
  }