@ix_waterford/lib 1.0.69 → 1.0.71

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.
@@ -172,7 +172,7 @@ __webpack_require__.r(__webpack_exports__);
172
172
  if(true) {
173
173
  (function() {
174
174
  var localsJsonString = undefined;
175
- // 1775907713565
175
+ // 1775971877486
176
176
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
177
177
  // only invalidate when locals change
178
178
  if (
@@ -200,7 +200,7 @@ __webpack_require__.r(__webpack_exports__);
200
200
  if(true) {
201
201
  (function() {
202
202
  var localsJsonString = undefined;
203
- // 1775907713566
203
+ // 1775971877489
204
204
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
205
205
  // only invalidate when locals change
206
206
  if (
@@ -228,7 +228,7 @@ __webpack_require__.r(__webpack_exports__);
228
228
  if(true) {
229
229
  (function() {
230
230
  var localsJsonString = undefined;
231
- // 1775907713568
231
+ // 1775971877490
232
232
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
233
233
  // only invalidate when locals change
234
234
  if (
@@ -256,7 +256,7 @@ __webpack_require__.r(__webpack_exports__);
256
256
  if(true) {
257
257
  (function() {
258
258
  var localsJsonString = undefined;
259
- // 1775907713567
259
+ // 1775971877489
260
260
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
261
261
  // only invalidate when locals change
262
262
  if (
@@ -6844,9 +6844,8 @@ __webpack_require__.d(__webpack_exports__, {
6844
6844
  /* import */ var _assets_deleteIcon__rspack_import_5 = __webpack_require__("./src/assets/deleteIcon.tsx");
6845
6845
  /* import */ var _assets_editIcon__rspack_import_3 = __webpack_require__("./src/assets/editIcon.tsx");
6846
6846
  /* import */ var _assets_viewIcon__rspack_import_4 = __webpack_require__("./src/assets/viewIcon.tsx");
6847
- /* import */ var _components_iconButton__rspack_import_8 = __webpack_require__("./src/components/iconButton/iconButton.tsx");
6847
+ /* import */ var _components_iconButton__rspack_import_7 = __webpack_require__("./src/components/iconButton/iconButton.tsx");
6848
6848
  /* import */ var _components_toolTip__rspack_import_6 = __webpack_require__("./src/components/toolTip/toolTip.tsx");
6849
- /* import */ var _utils_global__rspack_import_7 = __webpack_require__("./src/utils/global.ts");
6850
6849
  /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
6851
6850
 
6852
6851
 
@@ -6856,23 +6855,22 @@ __webpack_require__.d(__webpack_exports__, {
6856
6855
 
6857
6856
 
6858
6857
 
6859
-
6860
6858
  const TableActions = (props)=>{
6861
- const { actions = [], handleAction = ()=>{}, rowData = {}, customActions = {} } = props;
6859
+ const { actions = [], handleAction = ()=>{}, rowData = {}, actionLabels = {}, customActions = {} } = props;
6862
6860
  const actionIcon = {
6863
6861
  'EDIT': /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_assets_editIcon__rspack_import_3.EditIcon, {}, void 0, false, {
6864
6862
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6865
- lineNumber: 19,
6863
+ lineNumber: 18,
6866
6864
  columnNumber: 17
6867
6865
  }, undefined),
6868
6866
  'VIEW': /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_assets_viewIcon__rspack_import_4.ViewIcon, {}, void 0, false, {
6869
6867
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6870
- lineNumber: 20,
6868
+ lineNumber: 19,
6871
6869
  columnNumber: 17
6872
6870
  }, undefined),
6873
6871
  'DELETE': /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_assets_deleteIcon__rspack_import_5.DeleteIcon, {}, void 0, false, {
6874
6872
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6875
- lineNumber: 21,
6873
+ lineNumber: 20,
6876
6874
  columnNumber: 19
6877
6875
  }, undefined),
6878
6876
  ...customActions
@@ -6883,9 +6881,9 @@ const TableActions = (props)=>{
6883
6881
  // eslint-disable-next-line
6884
6882
  if (actionIcon[item]) {
6885
6883
  return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_toolTip__rspack_import_6["default"], {
6886
- title: (0,_utils_global__rspack_import_7.getFormattedName)(item),
6884
+ title: actionLabels[item] ?? item,
6887
6885
  arrow: true,
6888
- children: /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_iconButton__rspack_import_8["default"], {
6886
+ children: /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_iconButton__rspack_import_7["default"], {
6889
6887
  size: "small",
6890
6888
  className: "actionIconBtn",
6891
6889
  onClick: (e)=>{
@@ -6894,12 +6892,12 @@ const TableActions = (props)=>{
6894
6892
  children: typeof actionIcon[item] === 'function' ? actionIcon[item](rowData, item) : actionIcon[item]
6895
6893
  }, void 0, false, {
6896
6894
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6897
- lineNumber: 32,
6895
+ lineNumber: 31,
6898
6896
  columnNumber: 29
6899
6897
  }, undefined)
6900
6898
  }, item, false, {
6901
6899
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6902
- lineNumber: 31,
6900
+ lineNumber: 30,
6903
6901
  columnNumber: 25
6904
6902
  }, undefined);
6905
6903
  } else {
@@ -6908,7 +6906,7 @@ const TableActions = (props)=>{
6908
6906
  })
6909
6907
  }, void 0, false, {
6910
6908
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6911
- lineNumber: 26,
6909
+ lineNumber: 25,
6912
6910
  columnNumber: 9
6913
6911
  }, undefined);
6914
6912
  };
@@ -7023,7 +7021,7 @@ var _s = $RefreshSig$();
7023
7021
 
7024
7022
  const TblBody = (props)=>{
7025
7023
  _s();
7026
- const { dataRows = [], headers = [], headerStyles = {}, nullFieldText = '', fieldMappings = {}, actions = [], handleAction = ()=>{}, handleRowDataClick = ()=>{}, customActions = {}, showCheckbox = false, selectedRows = [], handleSelectRows = ()=>{}, getRowId = (_row, index)=>index } = props;
7024
+ const { dataRows = [], headers = [], headerStyles = {}, nullFieldText = '', fieldMappings = {}, actions = [], handleAction = ()=>{}, actionLabels = {}, handleRowDataClick = ()=>{}, customActions = {}, showCheckbox = false, selectedRows = [], handleSelectRows = ()=>{}, getRowId = (_row, index)=>index } = props;
7027
7025
  const dataheaders = (0,react__rspack_import_1.useMemo)(()=>{
7028
7026
  return headers.filter((item)=>item.visible && item.field !== 'actions');
7029
7027
  }, [
@@ -7064,12 +7062,12 @@ const TblBody = (props)=>{
7064
7062
  onChange: ()=>toggleRowSelection(rowId)
7065
7063
  }, void 0, false, {
7066
7064
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tblBody.tsx",
7067
- lineNumber: 57,
7065
+ lineNumber: 58,
7068
7066
  columnNumber: 33
7069
7067
  }, undefined)
7070
7068
  }, void 0, false, {
7071
7069
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tblBody.tsx",
7072
- lineNumber: 56,
7070
+ lineNumber: 57,
7073
7071
  columnNumber: 29
7074
7072
  }, undefined),
7075
7073
  dataheaders.map((col, indx)=>{
@@ -7087,7 +7085,7 @@ const TblBody = (props)=>{
7087
7085
  "data-field": col.field,
7088
7086
  __source: {
7089
7087
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tblBody.tsx",
7090
- lineNumber: 69,
7088
+ lineNumber: 70,
7091
7089
  columnNumber: 33
7092
7090
  },
7093
7091
  __self: undefined
@@ -7105,27 +7103,28 @@ const TblBody = (props)=>{
7105
7103
  rowData: data,
7106
7104
  actions: actions,
7107
7105
  handleAction: handleAction,
7106
+ actionLabels: actionLabels,
7108
7107
  customActions: customActions
7109
7108
  }, void 0, false, {
7110
7109
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tblBody.tsx",
7111
- lineNumber: 82,
7110
+ lineNumber: 83,
7112
7111
  columnNumber: 33
7113
7112
  }, undefined)
7114
7113
  }, void 0, false, {
7115
7114
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tblBody.tsx",
7116
- lineNumber: 81,
7115
+ lineNumber: 82,
7117
7116
  columnNumber: 29
7118
7117
  }, undefined)
7119
7118
  ]
7120
7119
  }, `data-col-${index}`, true, {
7121
7120
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tblBody.tsx",
7122
- lineNumber: 54,
7121
+ lineNumber: 55,
7123
7122
  columnNumber: 21
7124
7123
  }, undefined));
7125
7124
  })
7126
7125
  }, void 0, false, {
7127
7126
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tblBody.tsx",
7128
- lineNumber: 48,
7127
+ lineNumber: 49,
7129
7128
  columnNumber: 9
7130
7129
  }, undefined);
7131
7130
  };
@@ -7232,6 +7231,7 @@ const DndWrapper = (props)=>{
7232
7231
  nullFieldText: "",
7233
7232
  handleAction: ()=>{},
7234
7233
  actions: [],
7234
+ actionLabels: {},
7235
7235
  customActions: {},
7236
7236
  handleRowDataClick: ()=>{}
7237
7237
  }, void 0, false, {
@@ -7598,11 +7598,22 @@ __webpack_require__.d(__webpack_exports__, {
7598
7598
  /* import */ var _multiSearch__rspack_import_2 = __webpack_require__("./src/components/multiSearch/multiSearch.tsx");
7599
7599
  /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
7600
7600
 
7601
+ var _s = $RefreshSig$();
7601
7602
 
7602
7603
 
7603
7604
  const MultiSearchFieldComponent = (param)=>{
7604
- let { field = '', value = [], options = [], onSearch = ()=>{} } = param;
7605
- const normalizedValue = Array.isArray(value) ? value : [];
7605
+ let { field = '', value = null, options = [], onSearch = ()=>{} } = param;
7606
+ _s();
7607
+ const normalizedValue = (0,react__rspack_import_1.useMemo)(()=>{
7608
+ if (Array.isArray(value)) return value;
7609
+ return !value ? options.map((param)=>{
7610
+ let { value } = param;
7611
+ return value;
7612
+ }) : [];
7613
+ }, [
7614
+ options,
7615
+ value
7616
+ ]);
7606
7617
  return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_multiSearch__rspack_import_2["default"], {
7607
7618
  field: field,
7608
7619
  value: normalizedValue,
@@ -7610,10 +7621,11 @@ const MultiSearchFieldComponent = (param)=>{
7610
7621
  onSearch: onSearch
7611
7622
  }, void 0, false, {
7612
7623
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/header/searchFields/MultiSearchField.tsx",
7613
- lineNumber: 28,
7624
+ lineNumber: 32,
7614
7625
  columnNumber: 5
7615
7626
  }, undefined);
7616
7627
  };
7628
+ _s(MultiSearchFieldComponent, "sAheK19jueGu3C7Ht3rVgtLI/pc=");
7617
7629
  _c = MultiSearchFieldComponent;
7618
7630
  MultiSearchFieldComponent.displayName = 'MultiSearchField';
7619
7631
  const MultiSearchField = /*#__PURE__*/ react__rspack_import_1["default"].memo(MultiSearchFieldComponent);
@@ -8561,7 +8573,7 @@ const TableComponent = (props)=>{
8561
8573
  const { className = '', headers = [], dataRows = [], stickyHeader = true, fieldMappings = {}, headerStyles = {}, showPagination = true, totalCount = 0, skip = 0, limit = 5, nullFieldText = '', handlePagination = ()=>{}, handleHeaderChange = ()=>{}, sortObj = {
8562
8574
  sortField: '',
8563
8575
  sortBy: ''
8564
- }, handleSort = ()=>{}, searchObj = {}, openSearch = false, handleSearch = ()=>{}, handleAction = ()=>{}, actions = [], handleRowDataClick = ()=>{}, customActions = {}, showCheckbox = false, selectedRows = [], handleSelectRows = ()=>{}, getRowId = (_row, index)=>index, loading = false } = props;
8576
+ }, handleSort = ()=>{}, searchObj = {}, openSearch = false, handleSearch = ()=>{}, handleAction = ()=>{}, actions = [], actionLabels = {}, handleRowDataClick = ()=>{}, customActions = {}, showCheckbox = false, selectedRows = [], handleSelectRows = ()=>{}, getRowId = (_row, index)=>index, loading = false } = props;
8565
8577
  const visibleHeaders = (0,react__rspack_import_1.useMemo)(()=>{
8566
8578
  return headers.filter((f)=>f.visible);
8567
8579
  }, [
@@ -8598,6 +8610,7 @@ const TableComponent = (props)=>{
8598
8610
  nullFieldText: nullFieldText,
8599
8611
  handleAction: handleAction,
8600
8612
  actions: actions,
8613
+ actionLabels: actionLabels,
8601
8614
  customActions: customActions,
8602
8615
  handleRowDataClick: handleRowDataClick,
8603
8616
  ...showCheckbox && {
@@ -8614,6 +8627,7 @@ const TableComponent = (props)=>{
8614
8627
  handleAction,
8615
8628
  nullFieldText,
8616
8629
  actions,
8630
+ actionLabels,
8617
8631
  handleRowDataClick,
8618
8632
  customActions,
8619
8633
  showCheckbox,
@@ -8637,7 +8651,7 @@ const TableComponent = (props)=>{
8637
8651
  ...headerProps
8638
8652
  }, void 0, false, {
8639
8653
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8640
- lineNumber: 73,
8654
+ lineNumber: 74,
8641
8655
  columnNumber: 25
8642
8656
  }, undefined),
8643
8657
  openSearch && /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_header_searchBar__rspack_import_5["default"], {
@@ -8647,7 +8661,7 @@ const TableComponent = (props)=>{
8647
8661
  showCheckbox: showCheckbox
8648
8662
  }, void 0, false, {
8649
8663
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8650
- lineNumber: 75,
8664
+ lineNumber: 76,
8651
8665
  columnNumber: 29
8652
8666
  }, undefined),
8653
8667
  loading ? /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_body_tableSkeletonBody__rspack_import_6["default"], {
@@ -8656,35 +8670,35 @@ const TableComponent = (props)=>{
8656
8670
  showCheckbox: showCheckbox
8657
8671
  }, void 0, false, {
8658
8672
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8659
- lineNumber: 83,
8673
+ lineNumber: 84,
8660
8674
  columnNumber: 29
8661
8675
  }, undefined) : /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_body_tblBody__rspack_import_7["default"], {
8662
8676
  ...bodyProps
8663
8677
  }, void 0, false, {
8664
8678
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8665
- lineNumber: 84,
8679
+ lineNumber: 85,
8666
8680
  columnNumber: 30
8667
8681
  }, undefined)
8668
8682
  ]
8669
8683
  }, void 0, true, {
8670
8684
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8671
- lineNumber: 72,
8685
+ lineNumber: 73,
8672
8686
  columnNumber: 21
8673
8687
  }, undefined)
8674
8688
  }, void 0, false, {
8675
8689
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8676
- lineNumber: 71,
8690
+ lineNumber: 72,
8677
8691
  columnNumber: 17
8678
8692
  }, undefined),
8679
8693
  !loading && totalCount === 0 && /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_noItemsFound__rspack_import_8["default"], {}, void 0, false, {
8680
8694
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8681
- lineNumber: 89,
8695
+ lineNumber: 90,
8682
8696
  columnNumber: 21
8683
8697
  }, undefined)
8684
8698
  ]
8685
8699
  }, void 0, true, {
8686
8700
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8687
- lineNumber: 67,
8701
+ lineNumber: 68,
8688
8702
  columnNumber: 13
8689
8703
  }, undefined),
8690
8704
  showPagination && /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_mui_material__rspack_import_2.Grid, {
@@ -8698,12 +8712,12 @@ const TableComponent = (props)=>{
8698
8712
  }
8699
8713
  }, void 0, false, {
8700
8714
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8701
- lineNumber: 95,
8715
+ lineNumber: 96,
8702
8716
  columnNumber: 25
8703
8717
  }, undefined)
8704
8718
  }, void 0, false, {
8705
8719
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/table.tsx",
8706
- lineNumber: 94,
8720
+ lineNumber: 95,
8707
8721
  columnNumber: 21
8708
8722
  }, undefined)
8709
8723
  ]