@datarecce/ui 0.1.36 → 0.1.38

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 (56) hide show
  1. package/dist/{RecceCheckContext-BOGmP80K.js → RecceCheckContext-BJprb2xR.js} +11 -17
  2. package/dist/RecceCheckContext-BJprb2xR.js.map +1 -0
  3. package/dist/{RecceCheckContext-CwUCo6AW.mjs → RecceCheckContext-DbZ7BdRy.mjs} +11 -17
  4. package/dist/RecceCheckContext-DbZ7BdRy.mjs.map +1 -0
  5. package/dist/api.d.mts +1 -1
  6. package/dist/api.d.ts +1 -1
  7. package/dist/{components-DQUwJlNQ.mjs → components-B6oaPB5f.mjs} +2 -3
  8. package/dist/components-B6oaPB5f.mjs.map +1 -0
  9. package/dist/{components-uVp0e4cH.js → components-DTLQ2djq.js} +2 -3
  10. package/dist/components-DTLQ2djq.js.map +1 -0
  11. package/dist/components.d.mts +1 -1
  12. package/dist/components.d.ts +1 -1
  13. package/dist/components.js +2 -2
  14. package/dist/components.mjs +2 -2
  15. package/dist/{hooks-CfZ4UBBF.js → hooks-cQsBXBd1.js} +2 -2
  16. package/dist/{hooks-CfZ4UBBF.js.map → hooks-cQsBXBd1.js.map} +1 -1
  17. package/dist/{hooks-C6Kma5ld.mjs → hooks-eaHm_yEp.mjs} +2 -2
  18. package/dist/{hooks-C6Kma5ld.mjs.map → hooks-eaHm_yEp.mjs.map} +1 -1
  19. package/dist/hooks.d.mts +1 -1
  20. package/dist/hooks.d.ts +1 -1
  21. package/dist/hooks.js +2 -2
  22. package/dist/hooks.mjs +2 -2
  23. package/dist/{index-B0gR2tIj.d.ts → index-DvKRw-cR.d.ts} +70 -70
  24. package/dist/index-DvKRw-cR.d.ts.map +1 -0
  25. package/dist/{index-CWhewvGA.d.mts → index-Dvs4GUdl.d.mts} +70 -70
  26. package/dist/{index-CWhewvGA.d.mts.map → index-Dvs4GUdl.d.mts.map} +1 -1
  27. package/dist/index.d.mts +1 -1
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +3 -3
  30. package/dist/index.mjs +3 -3
  31. package/dist/styles.css +0 -1
  32. package/dist/theme.d.mts +1 -1
  33. package/dist/theme.d.ts +1 -1
  34. package/dist/types.d.mts +1 -1
  35. package/dist/types.d.ts +1 -1
  36. package/package.json +1 -1
  37. package/recce-source/js/src/components/profile/ProfileDiffResultView.tsx +0 -2
  38. package/recce-source/js/src/components/query/QueryDiffResultView.tsx +0 -2
  39. package/recce-source/js/src/components/rowcount/RowCountDiffResultView.tsx +0 -1
  40. package/recce-source/js/src/components/rowcount/delta.test.ts +51 -0
  41. package/recce-source/js/src/components/rowcount/delta.ts +6 -1
  42. package/recce-source/js/src/components/schema/SchemaView.tsx +0 -1
  43. package/recce-source/js/src/components/valuediff/ValueDiffDetailResultView.tsx +0 -1
  44. package/recce-source/js/src/components/valuediff/ValueDiffResultView.tsx +0 -1
  45. package/recce-source/js/src/lib/dataGrid/generators/rowCountUtils.test.ts +3 -3
  46. package/recce-source/js/src/lib/dataGrid/generators/rowCountUtils.ts +1 -1
  47. package/dist/RecceCheckContext-BOGmP80K.js.map +0 -1
  48. package/dist/RecceCheckContext-CwUCo6AW.mjs.map +0 -1
  49. package/dist/components-DQUwJlNQ.mjs.map +0 -1
  50. package/dist/components-uVp0e4cH.js.map +0 -1
  51. package/dist/global-styles.css +0 -84
  52. package/dist/global-styles.css.map +0 -1
  53. package/dist/global-styles.js +0 -1
  54. package/dist/global-styles.mjs +0 -1
  55. package/dist/index-B0gR2tIj.d.ts.map +0 -1
  56. package/src/global-styles.css +0 -81
@@ -3969,13 +3969,14 @@ function toDataGrid(result, options) {
3969
3969
  //#endregion
3970
3970
  //#region recce-source/js/src/components/rowcount/delta.ts
3971
3971
  function deltaPercentageString(base, current) {
3972
+ if (base === 0 && current !== 0) return "N/A";
3972
3973
  if (base < current) {
3973
3974
  const p = (current - base) / base * 100;
3974
3975
  return `+${p >= .1 ? p.toFixed(1) : " <0.1 "}%`;
3975
3976
  } else if (base > current) {
3976
3977
  const p = (base - current) / base * 100;
3977
3978
  return `-${p >= .1 ? p.toFixed(1) : " <0.1 "}%`;
3978
- } else return "0 %";
3979
+ } else return "0";
3979
3980
  }
3980
3981
 
3981
3982
  //#endregion
@@ -3988,7 +3989,7 @@ function deltaPercentageString(base, current) {
3988
3989
  * Calculates the delta string for row count comparison
3989
3990
  */
3990
3991
  function calculateDelta(base, current) {
3991
- if (base !== null && current !== null) return base !== current ? deltaPercentageString(base, current) : "=";
3992
+ if (base !== null && current !== null) return base !== current ? deltaPercentageString(base, current) : "0";
3992
3993
  if (base === current) return "N/A";
3993
3994
  if (base === null) return "Added";
3994
3995
  if (current === null) return "Removed";
@@ -5437,8 +5438,7 @@ const PrivateProfileDiffResultView = ({ run, viewOptions, onViewOptionsChanged }
5437
5438
  resizable: true,
5438
5439
  maxWidth: 800,
5439
5440
  minWidth: 35
5440
- },
5441
- className: "rdg-light"
5441
+ }
5442
5442
  })]
5443
5443
  });
5444
5444
  };
@@ -5513,8 +5513,7 @@ const PrivateProfileResultView = ({ run, viewOptions, onViewOptionsChanged }, re
5513
5513
  resizable: true,
5514
5514
  maxWidth: 800,
5515
5515
  minWidth: 35
5516
- },
5517
- className: "rdg-light"
5516
+ }
5518
5517
  })
5519
5518
  });
5520
5519
  };
@@ -5663,8 +5662,7 @@ const PrivateQueryDiffResultView = ({ run, onAddToChecklist, viewOptions, onView
5663
5662
  resizable: true,
5664
5663
  maxWidth: 800,
5665
5664
  minWidth: 35
5666
- },
5667
- className: "rdg-light"
5665
+ }
5668
5666
  })]
5669
5667
  });
5670
5668
  };
@@ -5795,8 +5793,7 @@ const PrivateQueryDiffJoinResultView = ({ run, viewOptions, onViewOptionsChanged
5795
5793
  resizable: true,
5796
5794
  maxWidth: 800,
5797
5795
  minWidth: 35
5798
- },
5799
- className: "rdg-light"
5796
+ }
5800
5797
  })]
5801
5798
  });
5802
5799
  };
@@ -5974,8 +5971,7 @@ function _RowCountGridView({ run, typeGuard, expectedType }, ref) {
5974
5971
  },
5975
5972
  columns: gridData.columns,
5976
5973
  rows: gridData.rows,
5977
- renderers: { noRowsFallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyRowsRenderer, {}) },
5978
- className: "rdg-light"
5974
+ renderers: { noRowsFallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyRowsRenderer, {}) }
5979
5975
  })
5980
5976
  });
5981
5977
  }
@@ -6576,8 +6572,7 @@ const PrivateValueDiffDetailResultView = ({ run, onAddToChecklist, viewOptions,
6576
6572
  resizable: true,
6577
6573
  maxWidth: 800,
6578
6574
  minWidth: 35
6579
- },
6580
- className: "rdg-light"
6575
+ }
6581
6576
  })]
6582
6577
  });
6583
6578
  };
@@ -6810,8 +6805,7 @@ function _ValueDiffResultView({ run }, ref) {
6810
6805
  columns,
6811
6806
  rows,
6812
6807
  renderers: { noRowsFallback: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(EmptyRowsRenderer, {}) },
6813
- defaultColumnOptions: { resizable: true },
6814
- className: "rdg-light"
6808
+ defaultColumnOptions: { resizable: true }
6815
6809
  })
6816
6810
  })]
6817
6811
  });
@@ -7971,4 +7965,4 @@ Object.defineProperty(exports, 'useValueDiffAlertDialog_default', {
7971
7965
  return useValueDiffAlertDialog_default;
7972
7966
  }
7973
7967
  });
7974
- //# sourceMappingURL=RecceCheckContext-BOGmP80K.js.map
7968
+ //# sourceMappingURL=RecceCheckContext-BJprb2xR.js.map