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
@@ -16,7 +16,7 @@ import i18Conversion from "../../../i18n";
16
16
  className
17
17
  超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
18
18
  */ const BhdTableSimple = (props)=>{
19
- let { className , locale , borderBottom =false , rowSelection , ajaxErr , dataSource , kind ="simple" , loading , notDataText =i18Conversion("noData") } = props;
19
+ let { className, locale, borderBottom = false, rowSelection, ajaxErr, dataSource, kind = "simple", loading, notDataText = i18Conversion("noData") } = props;
20
20
  const renderTableText = ()=>{
21
21
  if (ajaxErr) {
22
22
  return /*#__PURE__*/ _jsxs("div", {
@@ -16,7 +16,7 @@ import i18Conversion from "../../../i18n";
16
16
  className
17
17
  超长内容 出现滚动条 需在管理列定义好width 没有定义的max-width:300
18
18
  */ const BhdTableSimple = (props)=>{
19
- let { className ="" , locale , borderBottom =false , rowSelection , ajaxErr , dataSource , kind ="simple" , loading , notDataText =i18Conversion("noData") , components ={
19
+ let { className = "", locale, borderBottom = false, rowSelection, ajaxErr, dataSource, kind = "simple", loading, notDataText = i18Conversion("noData"), components = {
20
20
  table: null,
21
21
  header: {
22
22
  wrapper: null,
@@ -28,7 +28,7 @@ import i18Conversion from "../../../i18n";
28
28
  row: null,
29
29
  cell: null
30
30
  }
31
- } } = props;
31
+ } } = props;
32
32
  const renderTableText = ()=>{
33
33
  if (ajaxErr) {
34
34
  return /*#__PURE__*/ _jsxs("div", {
@@ -5,20 +5,20 @@ import * as React from "react";
5
5
  import { useState, useLayoutEffect, useRef } from "react";
6
6
  import styles from "./index.module.less";
7
7
  import TitleBar from "../titleBar";
8
- import Pagination from "../pagination/index";
8
+ import Pagination from "../pagination";
9
9
  import i18Conversion from "../i18n";
10
- import BhdTableSimple from "./components/BhdTableSimple/index";
10
+ import BhdTableSimple from "./components/BhdTableSimple";
11
11
  function BhdAppLayout(props) {
12
- var _filterRef_current, _headRef_current, _otherHeadRef_current, _otherContentRef_current;
13
- const { className , headerClassName , tableBoxClassName , headConfig , filterConfig , headContent , otherContent , tableConfig , footerConfig } = props;
12
+ var _filterRef_current, _filterRef, _headRef_current, _headRef, _otherHeadRef_current, _otherHeadRef, _otherContentRef_current, _otherContentRef, _filterConfig, _filterConfig1, _footerConfig;
13
+ const { className, headerClassName, tableBoxClassName, headConfig, filterConfig, headContent, otherContent, tableConfig, footerConfig } = props;
14
14
  const [scrollY, setScrollY] = useState("");
15
15
  const [scrollConfig, setScrollConfig] = useState(props.scrollConfig);
16
16
  const windowChange = ()=>{
17
- var _headRef_current, _headRef_current1, _filterRef_current, _filterRef_current1, _otherHeadRef_current, _otherHeadRef_current1, _otherContentRef_current, _otherContentRef_current1;
18
- let 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;
19
- let 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;
20
- let 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;
21
- let 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;
17
+ 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;
18
+ let 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;
19
+ let 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;
20
+ let 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;
21
+ let 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;
22
22
  const height = headRefHeight + filterRefHeight + otherHeadRefHeight + otherContentRefHeight + 56 + 16 + 60 + 50;
23
23
  const offsetHeight = `calc(100vh - ${height}px)`;
24
24
  setScrollY(offsetHeight);
@@ -36,10 +36,10 @@ function BhdAppLayout(props) {
36
36
  useLayoutEffect(()=>{
37
37
  windowChange();
38
38
  }, [
39
- filterRef === null || filterRef === void 0 ? void 0 : (_filterRef_current = filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight,
40
- headRef === null || headRef === void 0 ? void 0 : (_headRef_current = headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight,
41
- otherHeadRef === null || otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight,
42
- otherContentRef === null || otherContentRef === void 0 ? void 0 : (_otherContentRef_current = otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
39
+ (_filterRef = filterRef) === null || _filterRef === void 0 ? void 0 : (_filterRef_current = _filterRef.current) === null || _filterRef_current === void 0 ? void 0 : _filterRef_current.offsetHeight,
40
+ (_headRef = headRef) === null || _headRef === void 0 ? void 0 : (_headRef_current = _headRef.current) === null || _headRef_current === void 0 ? void 0 : _headRef_current.offsetHeight,
41
+ (_otherHeadRef = otherHeadRef) === null || _otherHeadRef === void 0 ? void 0 : (_otherHeadRef_current = _otherHeadRef.current) === null || _otherHeadRef_current === void 0 ? void 0 : _otherHeadRef_current.offsetHeight,
42
+ (_otherContentRef = otherContentRef) === null || _otherContentRef === void 0 ? void 0 : (_otherContentRef_current = _otherContentRef.current) === null || _otherContentRef_current === void 0 ? void 0 : _otherContentRef_current.offsetHeight
43
43
  ]);
44
44
  return /*#__PURE__*/ _jsxs("div", {
45
45
  className: `${styles.bhd_app_layout} ${styles.className} ${className || ""}`,
@@ -56,7 +56,7 @@ function BhdAppLayout(props) {
56
56
  /*#__PURE__*/ _jsxs("main", {
57
57
  className: styles.bhd_app_layout_main,
58
58
  children: [
59
- (filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ _jsxs("div", {
59
+ ((_filterConfig = filterConfig) === null || _filterConfig === void 0 ? void 0 : _filterConfig.filterArr) && filterConfig.filterArr.length ? /*#__PURE__*/ _jsxs("div", {
60
60
  ref: filterRef,
61
61
  className: styles.bhd_app_layout_main_filter,
62
62
  children: [
@@ -93,7 +93,7 @@ function BhdAppLayout(props) {
93
93
  })
94
94
  }),
95
95
  /*#__PURE__*/ _jsx("div", {
96
- onClick: filterConfig === null || filterConfig === void 0 ? void 0 : filterConfig.onClearAll,
96
+ onClick: (_filterConfig1 = filterConfig) === null || _filterConfig1 === void 0 ? void 0 : _filterConfig1.onClearAll,
97
97
  className: styles.bhd_app_layout_main_filter_clear,
98
98
  children: i18Conversion("清空条件")
99
99
  })
@@ -116,7 +116,7 @@ function BhdAppLayout(props) {
116
116
  className: styles.bhd_app_layout_footer,
117
117
  children: [
118
118
  /*#__PURE__*/ _jsx("div", {
119
- children: (footerConfig === null || footerConfig === void 0 ? void 0 : footerConfig.leftDom) && footerConfig.leftDom
119
+ children: ((_footerConfig = footerConfig) === null || _footerConfig === void 0 ? void 0 : _footerConfig.leftDom) && footerConfig.leftDom
120
120
  }),
121
121
  /*#__PURE__*/ _jsx(Pagination, _object_spread({}, footerConfig))
122
122
  ]
@@ -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
  }