datastake-daf 0.6.796 → 0.6.797

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.
@@ -8501,22 +8501,20 @@ const useHeader = _ref => {
8501
8501
  const {
8502
8502
  useToken: useToken$m
8503
8503
  } = antd.theme;
8504
- function BreadCrumbs(_ref) {
8505
- let {
8506
- breadcrumbs = [],
8507
- mainContWidth = 0
8508
- } = _ref;
8504
+ function BreadCrumbs({
8505
+ breadcrumbs = [],
8506
+ mainContWidth = 0
8507
+ }) {
8509
8508
  const [splitIndex, setSplitIndex] = React.useState(0);
8510
8509
  const {
8511
8510
  token
8512
8511
  } = useToken$m();
8513
- const _renderBreadcrumb = function (b, i, isLast) {
8514
- let noOnClickLast = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
8512
+ const _renderBreadcrumb = (b, i, isLast, noOnClickLast = false) => {
8515
8513
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
8516
8514
  className: "flex breadcrumb-item",
8517
- onClick: noOnClickLast && isLast ? undefined : b === null || b === void 0 ? void 0 : b.onClick,
8515
+ onClick: noOnClickLast && isLast ? undefined : b?.onClick,
8518
8516
  children: [/*#__PURE__*/jsxRuntime.jsx("span", {
8519
- children: b === null || b === void 0 ? void 0 : b.label
8517
+ children: b?.label
8520
8518
  }), !isLast && /*#__PURE__*/jsxRuntime.jsx("div", {
8521
8519
  className: "flex flex-column justify-content-center",
8522
8520
  children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
@@ -8526,7 +8524,7 @@ function BreadCrumbs(_ref) {
8526
8524
  color: token.baseGray50
8527
8525
  })
8528
8526
  })]
8529
- }, "breadcrumb-item-".concat(i));
8527
+ }, `breadcrumb-item-${i}`);
8530
8528
  };
8531
8529
  React.useEffect(() => {
8532
8530
  const _placeholderCont = document.getElementById("header-breadcrumbs");
@@ -8569,7 +8567,7 @@ function BreadCrumbs(_ref) {
8569
8567
  placement: "bottomRight",
8570
8568
  menu: {
8571
8569
  items: groupedBreadCrumbs[2].map((it, i) => ({
8572
- key: "items-".concat(i),
8570
+ key: `items-${i}`,
8573
8571
  label: it.label,
8574
8572
  onClick: it.onClick
8575
8573
  }))
@@ -51208,7 +51206,7 @@ const BaseScreen = _ref => {
51208
51206
  */
51209
51207
  const renderNumber = (val, doubleDigit = false) => {
51210
51208
  if (typeof val !== 'number') {
51211
- return '--';
51209
+ return '-';
51212
51210
  }
51213
51211
  const _string = Number(val).toLocaleString('en-us');
51214
51212
  if (doubleDigit) {
@@ -42234,7 +42234,7 @@ styled__default["default"].div`
42234
42234
  */
42235
42235
  const renderNumber = (val, doubleDigit = false) => {
42236
42236
  if (typeof val !== 'number') {
42237
- return '--';
42237
+ return '-';
42238
42238
  }
42239
42239
  const _string = Number(val).toLocaleString('en-us');
42240
42240
  if (doubleDigit) {
@@ -13114,7 +13114,7 @@ const formatErrors = e => {
13114
13114
  */
13115
13115
  const renderNumber = (val, doubleDigit = false) => {
13116
13116
  if (typeof val !== 'number') {
13117
- return '--';
13117
+ return '-';
13118
13118
  }
13119
13119
  const _string = Number(val).toLocaleString('en-us');
13120
13120
  if (doubleDigit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.796",
3
+ "version": "0.6.797",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -6,7 +6,7 @@
6
6
  */
7
7
  export const renderNumber = (val, doubleDigit = false) => {
8
8
  if (typeof val !== 'number') {
9
- return '--';
9
+ return '-';
10
10
  }
11
11
 
12
12
  const _string = Number(val).toLocaleString('en-us');