bhd-components 0.9.2 → 0.9.4

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 (87) hide show
  1. package/README.md +1 -1
  2. package/dist/index.esm.es5.development.css +456 -364
  3. package/dist/index.esm.es5.development.js +414 -323
  4. package/dist/index.esm.es5.production.css +1 -1
  5. package/dist/index.esm.es5.production.js +1 -1
  6. package/dist/vendor.esm.es5.development.css +119 -0
  7. package/dist/{a5565b8a.esm.es5.development.js → vendor.esm.es5.development.js} +8247 -6856
  8. package/dist/vendor.esm.es5.production.css +11 -0
  9. package/dist/vendor.esm.es5.production.js +485 -0
  10. package/es2017/bhdAppLayout/components/BhdTableSimple/index.js +1 -1
  11. package/es2017/bhdAppLayout/components/BhdTableSimple/index/347/232/204/345/211/257/346/234/254.js +2 -2
  12. package/es2017/bhdAppLayout/index.js +16 -16
  13. package/es2017/bhdDatePicker/index.d.ts +1 -2
  14. package/es2017/bhdDatePicker/index.js +311 -254
  15. package/es2017/bhdDatePicker/index.module.less +106 -9
  16. package/es2017/bhdSelect/index.js +4 -4
  17. package/es2017/bhdTipModal/index.js +6 -6
  18. package/es2017/customerService/contactsList.d.ts +2 -2
  19. package/es2017/customerService/contactsList.js +2 -2
  20. package/es2017/customerService/function.js +2 -1
  21. package/es2017/customerService/historyFun.d.ts +2 -2
  22. package/es2017/customerService/historyFun.js +2 -2
  23. package/es2017/customerService/index.d.ts +2 -2
  24. package/es2017/customerService/index.js +5 -5
  25. package/es2017/customerService/js-screen-shot/lib/common-methods/GetCanvasImgData.js +1 -1
  26. package/es2017/customerService/js-screen-shot/lib/common-methods/SaveBorderArrInfo.js +1 -1
  27. package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +3 -2
  28. package/es2017/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.js +2 -1
  29. package/es2017/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +3 -3
  30. package/es2017/customerService/js-screen-shot/lib/main-entrance/CreateDom.js +4 -3
  31. package/es2017/customerService/js-screen-shot/lib/main-entrance/InitData.js +2 -2
  32. package/es2017/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +6 -5
  33. package/es2017/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.js +15 -14
  34. package/es2017/customerService/js-screen-shot/lib/split-methods/ToolClickEvent.js +1 -1
  35. package/es2017/customerService/js-screen-shot/lib/split-methods/drawCrossImg.js +2 -1
  36. package/es2017/customerService/js-screen-shot/main.js +38 -35
  37. package/es2017/customerService/screenshotTool.d.ts +2 -2
  38. package/es2017/customerService/screenshotTool.js +2 -2
  39. package/es2017/customerService/teacherList.d.ts +2 -2
  40. package/es2017/customerService/teacherList.js +2 -2
  41. package/es2017/i18n/en_US.js +16 -1
  42. package/es2017/i18n/zh_CN.js +16 -1
  43. package/es2017/icons/index.js +2 -2
  44. package/es2017/index.js +14 -14
  45. package/es2017/provider/index.js +2 -2
  46. package/es2017/table/index.js +4 -4
  47. package/es2017/tableSelect/index.js +3 -3
  48. package/es2017/textTootip/index.js +1 -1
  49. package/es2017/titleBar/index.js +3 -3
  50. package/es2017/viewImage/index.js +13 -13
  51. package/esm/bhdAppLayout/index.js +15 -15
  52. package/esm/bhdDatePicker/index.d.ts +1 -2
  53. package/esm/bhdDatePicker/index.js +312 -255
  54. package/esm/bhdDatePicker/index.module.less +106 -9
  55. package/esm/bhdSelect/index.js +1 -1
  56. package/esm/bhdTipModal/index.js +1 -1
  57. package/esm/customerService/contactsList.d.ts +2 -2
  58. package/esm/customerService/contactsList.js +1 -1
  59. package/esm/customerService/function.js +2 -1
  60. package/esm/customerService/historyFun.d.ts +2 -2
  61. package/esm/customerService/historyFun.js +1 -1
  62. package/esm/customerService/index.d.ts +2 -2
  63. package/esm/customerService/index.js +1 -1
  64. package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToBase64.js +3 -2
  65. package/esm/customerService/js-screen-shot/lib/common-methods/SaveCanvasToImage.js +2 -1
  66. package/esm/customerService/js-screen-shot/lib/common-methods/ZoomCutOutBoxPosition.d.ts +3 -3
  67. package/esm/customerService/js-screen-shot/lib/main-entrance/CreateDom.js +4 -3
  68. package/esm/customerService/js-screen-shot/lib/split-methods/DrawCutOutBox.js +5 -4
  69. package/esm/customerService/js-screen-shot/lib/split-methods/SetPlugInParameters.js +15 -14
  70. package/esm/customerService/js-screen-shot/lib/split-methods/drawCrossImg.js +2 -1
  71. package/esm/customerService/js-screen-shot/main.js +31 -28
  72. package/esm/customerService/screenshotTool.d.ts +2 -2
  73. package/esm/customerService/screenshotTool.js +1 -1
  74. package/esm/customerService/teacherList.d.ts +2 -2
  75. package/esm/customerService/teacherList.js +1 -1
  76. package/esm/i18n/en_US.js +16 -1
  77. package/esm/i18n/zh_CN.js +16 -1
  78. package/esm/icons/index.js +1 -1
  79. package/esm/index.js +14 -14
  80. package/esm/tableSelect/index.js +1 -1
  81. package/esm/viewImage/index.js +3 -3
  82. package/package.json +1 -1
  83. package/dist/deb6cc9b.esm.es5.production.js +0 -485
  84. package/dist/vendor.esm.es5.development.esm.es5.development.css +0 -119
  85. package/dist/vendor.esm.es5.production.esm.es5.production.css +0 -11
  86. package/es2017/customerService/screenShotPlugin.esm.js +0 -6515
  87. package/esm/customerService/screenShotPlugin.esm.js +0 -6516
@@ -6,20 +6,20 @@ import * as React from "react";
6
6
  import { useState, useLayoutEffect, useRef } from "react";
7
7
  import styles from "./index.module.less";
8
8
  import TitleBar from "../titleBar";
9
- import Pagination from "../pagination/index";
9
+ import Pagination from "../pagination";
10
10
  import i18Conversion from "../i18n";
11
- import BhdTableSimple from "./components/BhdTableSimple/index";
11
+ import BhdTableSimple from "./components/BhdTableSimple";
12
12
  function BhdAppLayout(props) {
13
- var _filterRef_current, _headRef_current, _otherHeadRef_current, _otherContentRef_current;
13
+ var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
14
14
  var className = props.className, headerClassName = props.headerClassName, tableBoxClassName = props.tableBoxClassName, headConfig = props.headConfig, filterConfig = props.filterConfig, headContent = props.headContent, otherContent = props.otherContent, tableConfig = props.tableConfig, footerConfig = props.footerConfig;
15
15
  var _useState = _sliced_to_array(useState(""), 2), scrollY = _useState[0], setScrollY = _useState[1];
16
16
  var _useState1 = _sliced_to_array(useState(props.scrollConfig), 2), scrollConfig = _useState1[0], setScrollConfig = _useState1[1];
17
17
  var windowChange = function() {
18
- var _headRef_current, _headRef_current1, _filterRef_current, _filterRef_current1, _otherHeadRef_current, _otherHeadRef_current1, _otherContentRef_current, _otherContentRef_current1;
19
- var headRefHeight = isNaN(headRef === null || headRef === void 0 ? void 0 : (_headRef_current = headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight) ? 0 : headRef === null || headRef === void 0 ? void 0 : (_headRef_current1 = headRef.current) === null || _headRef_current1 === void 0 ? void 0 : _headRef_current1.offsetHeight;
20
- var filterRefHeight = isNaN(filterRef === null || filterRef === void 0 ? void 0 : (_filterRef_current = filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight) ? 0 : filterRef === null || filterRef === void 0 ? void 0 : (_filterRef_current1 = filterRef.current) === null || _filterRef_current1 === void 0 ? void 0 : _filterRef_current1.offsetHeight;
21
- var otherHeadRefHeight = isNaN(otherHeadRef === null || otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight) ? 0 : otherHeadRef === null || otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current1 = otherHeadRef.current) === null || _otherHeadRef_current1 === void 0 ? void 0 : _otherHeadRef_current1.offsetHeight;
22
- var otherContentRefHeight = isNaN(otherContentRef === null || otherContentRef === void 0 ? void 0 : (_otherContentRef_current = otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight) ? 0 : otherContentRef === null || otherContentRef === void 0 ? void 0 : (_otherContentRef_current1 = otherContentRef.current) === null || _otherContentRef_current1 === void 0 ? void 0 : _otherContentRef_current1.offsetHeight;
18
+ var _headRef_current, _headRef, _headRef_current1, _headRef1, _filterRef_current, _filterRef, _filterRef_current1, _filterRef1, _otherHeadRef_current, _otherHeadRef, _otherHeadRef_current1, _otherHeadRef1, _otherContentRef_current, _otherContentRef, _otherContentRef_current1, _otherContentRef1;
19
+ var headRefHeight = isNaN((_headRef = headRef) === null || _headRef === void 0 ? void 0 : (_headRef_current = _headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight) ? 0 : (_headRef1 = headRef) === null || _headRef1 === void 0 ? void 0 : (_headRef_current1 = _headRef1.current) === null || _headRef_current1 === void 0 ? void 0 : _headRef_current1.offsetHeight;
20
+ var filterRefHeight = isNaN((_filterRef = filterRef) === null || _filterRef === void 0 ? void 0 : (_filterRef_current = _filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight) ? 0 : (_filterRef1 = filterRef) === null || _filterRef1 === void 0 ? void 0 : (_filterRef_current1 = _filterRef1.current) === null || _filterRef_current1 === void 0 ? void 0 : _filterRef_current1.offsetHeight;
21
+ var otherHeadRefHeight = isNaN((_otherHeadRef = otherHeadRef) === null || _otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = _otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight) ? 0 : (_otherHeadRef1 = otherHeadRef) === null || _otherHeadRef1 === void 0 ? void 0 : (_otherHeadRef_current1 = _otherHeadRef1.current) === null || _otherHeadRef_current1 === void 0 ? void 0 : _otherHeadRef_current1.offsetHeight;
22
+ var otherContentRefHeight = isNaN((_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight) ? 0 : (_otherContentRef1 = otherContentRef) === null || _otherContentRef1 === void 0 ? void 0 : (_otherContentRef_current1 = _otherContentRef1.current) === null || _otherContentRef_current1 === void 0 ? void 0 : _otherContentRef_current1.offsetHeight;
23
23
  var height = headRefHeight + filterRefHeight + otherHeadRefHeight + otherContentRefHeight + 56 + 16 + 60 + 50;
24
24
  var offsetHeight = "calc(100vh - ".concat(height, "px)");
25
25
  setScrollY(offsetHeight);
@@ -37,10 +37,10 @@ function BhdAppLayout(props) {
37
37
  useLayoutEffect(function() {
38
38
  windowChange();
39
39
  }, [
40
- filterRef === null || filterRef === void 0 ? void 0 : (_filterRef_current = filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight,
41
- headRef === null || headRef === void 0 ? void 0 : (_headRef_current = headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight,
42
- otherHeadRef === null || otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight,
43
- otherContentRef === null || otherContentRef === void 0 ? void 0 : (_otherContentRef_current = otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
40
+ (_filterRef = filterRef) === null || _filterRef === void 0 ? void 0 : (_filterRef_current = _filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight,
41
+ (_headRef = headRef) === null || _headRef === void 0 ? void 0 : (_headRef_current = _headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight,
42
+ (_otherHeadRef = otherHeadRef) === null || _otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = _otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight,
43
+ (_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
44
44
  ]);
45
45
  return /*#__PURE__*/ _jsxs("div", {
46
46
  className: "".concat(styles.bhd_app_layout, " ").concat(styles.className, " ").concat(className || ""),
@@ -57,7 +57,7 @@ function BhdAppLayout(props) {
57
57
  /*#__PURE__*/ _jsxs("main", {
58
58
  className: styles.bhd_app_layout_main,
59
59
  children: [
60
- (filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ _jsxs("div", {
60
+ ((_filterConfig = filterConfig) === null || _filterConfig === void 0 ? void 0 : _filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ _jsxs("div", {
61
61
  ref: filterRef,
62
62
  className: styles.bhd_app_layout_main_filter,
63
63
  children: [
@@ -96,7 +96,7 @@ function BhdAppLayout(props) {
96
96
  })
97
97
  }),
98
98
  /*#__PURE__*/ _jsx("div", {
99
- onClick: filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.onClearAll,
99
+ onClick: (_filterConfig1 = filterConfig) === null || _filterConfig1 === void 0 ? void 0 : _filterConfig1.onClearAll,
100
100
  className: styles.bhd_app_layout_main_filter_clear,
101
101
  children: i18Conversion("清空条件")
102
102
  })
@@ -119,7 +119,7 @@ function BhdAppLayout(props) {
119
119
  className: styles.bhd_app_layout_footer,
120
120
  children: [
121
121
  /*#__PURE__*/ _jsx("div", {
122
- children: (footerConfig === null || footerConfig === void 0 ? void 0 : footerConfig.leftDom) && footerConfig.leftDom
122
+ children: ((_footerConfig = footerConfig) === null || _footerConfig === void 0 ? void 0 : _footerConfig.leftDom) && footerConfig.leftDom
123
123
  }),
124
124
  /*#__PURE__*/ _jsx(Pagination, _object_spread({}, footerConfig))
125
125
  ]
@@ -1,7 +1,6 @@
1
1
  import * as React from "react";
2
- import type { Dayjs } from "dayjs";
3
2
  export interface BhdDateExtraPicker {
4
- date: Dayjs;
3
+ date: any;
5
4
  text: string;
6
5
  status: "selectable" | "noselectable" | "selected";
7
6
  }