impact-ui 4.0.1-alpha.23 → 4.0.1-alpha.26

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 (91) hide show
  1. package/dist/_virtual/index15.js +2 -2
  2. package/dist/_virtual/index16.js +2 -2
  3. package/dist/_virtual/index2.js +2 -2
  4. package/dist/_virtual/index3.js +2 -4
  5. package/dist/_virtual/index4.js +3 -3
  6. package/dist/_virtual/index5.js +4 -2
  7. package/dist/components/Select/index.js +1 -1
  8. package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
  9. package/dist/components/Table/AgGridHeader.js +45 -30
  10. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
  11. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +15 -14
  12. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +3 -2
  13. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
  14. package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +30 -11
  15. package/dist/components/Table/filterUtils.d.ts +53 -0
  16. package/dist/components/Table/filterUtils.d.ts.map +1 -1
  17. package/dist/components/Table/filterUtils.js +74 -0
  18. package/dist/components/Table/filterUtils.test.d.ts +2 -0
  19. package/dist/components/Table/filterUtils.test.d.ts.map +1 -0
  20. package/dist/components/Table/index.js +1 -1
  21. package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -0
  22. package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
  23. package/dist/components/TableOld/index.js +1 -1
  24. package/dist/components/index.d.ts +0 -1
  25. package/dist/components/index.d.ts.map +1 -1
  26. package/dist/components/index.js +0 -2
  27. package/dist/mcp-component-registry.json +1 -1
  28. package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
  29. package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
  30. package/dist/node_modules/is-symbol/index.js +1 -1
  31. package/dist/node_modules/prop-types/index.js +1 -1
  32. package/dist/node_modules/react-is/index.js +1 -1
  33. package/package.json +5 -5
  34. package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +0 -1
  35. package/dist/components/TableV36/AdvanceSearchModalItem.d.ts +0 -27
  36. package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +0 -1
  37. package/dist/components/TableV36/AdvanceSortModal.d.ts +0 -8
  38. package/dist/components/TableV36/AdvanceSortModal.d.ts.map +0 -1
  39. package/dist/components/TableV36/AdvanceSortModal.js +0 -297
  40. package/dist/components/TableV36/AgGridHeader.d.ts +0 -16
  41. package/dist/components/TableV36/AgGridHeader.d.ts.map +0 -1
  42. package/dist/components/TableV36/AgGridHeader.js +0 -799
  43. package/dist/components/TableV36/CommentsPortal.d.ts +0 -31
  44. package/dist/components/TableV36/CommentsPortal.d.ts.map +0 -1
  45. package/dist/components/TableV36/CommentsPortal.js +0 -362
  46. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +0 -13
  47. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +0 -1
  48. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.js +0 -282
  49. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +0 -16
  50. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +0 -1
  51. package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +0 -302
  52. package/dist/components/TableV36/NoComments.d.ts +0 -16
  53. package/dist/components/TableV36/NoComments.d.ts.map +0 -1
  54. package/dist/components/TableV36/NoComments.js +0 -237
  55. package/dist/components/TableV36/Table.types.d.ts +0 -89
  56. package/dist/components/TableV36/Table.types.d.ts.map +0 -1
  57. package/dist/components/TableV36/actionBar.d.ts +0 -7
  58. package/dist/components/TableV36/actionBar.d.ts.map +0 -1
  59. package/dist/components/TableV36/actionBar.js +0 -31
  60. package/dist/components/TableV36/advanceSearchModal.d.ts +0 -20
  61. package/dist/components/TableV36/advanceSearchModal.d.ts.map +0 -1
  62. package/dist/components/TableV36/filterUtils.d.ts +0 -133
  63. package/dist/components/TableV36/filterUtils.d.ts.map +0 -1
  64. package/dist/components/TableV36/filterUtils.js +0 -478
  65. package/dist/components/TableV36/index.d.ts +0 -3
  66. package/dist/components/TableV36/index.d.ts.map +0 -1
  67. package/dist/components/TableV36/index.js +0 -1603
  68. package/dist/components/TableV36/mockData.d.ts +0 -39
  69. package/dist/components/TableV36/mockData.d.ts.map +0 -1
  70. package/dist/components/TableV36/tableFunctions.d.ts +0 -63
  71. package/dist/components/TableV36/tableFunctions.d.ts.map +0 -1
  72. package/dist/components/TableV36/tableFunctions.js +0 -1796
  73. package/dist/components/TableV36/tableHeader.d.ts +0 -80
  74. package/dist/components/TableV36/tableHeader.d.ts.map +0 -1
  75. package/dist/components/TableV36/tableHeader.js +0 -396
  76. package/dist/components/TableV36/tableIcons.d.ts +0 -3
  77. package/dist/components/TableV36/tableIcons.d.ts.map +0 -1
  78. package/dist/components/TableV36/tableMoreOptions.d.ts +0 -52
  79. package/dist/components/TableV36/tableMoreOptions.d.ts.map +0 -1
  80. package/dist/components/TableV36/tableMoreOptions.js +0 -324
  81. package/dist/components/TableV36/tablePagination.d.ts +0 -7
  82. package/dist/components/TableV36/tablePagination.d.ts.map +0 -1
  83. package/dist/components/TableV36/tablePagination.js +0 -67
  84. package/dist/components/TableV36/tableSettings.d.ts +0 -41
  85. package/dist/components/TableV36/tableSettings.d.ts.map +0 -1
  86. package/dist/components/TableV36/tableSettings.js +0 -317
  87. package/dist/components/TableV36/withCommentIcon.d.ts +0 -7
  88. package/dist/components/TableV36/withCommentIcon.d.ts.map +0 -1
  89. package/dist/components/TableV36/withCommentIcon.js +0 -108
  90. /package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType → ChatEditedMessageType }/ChatEditedMessageType.d.ts +0 -0
  91. /package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType → ChatEditedMessageType }/ChatEditedMessageType.js +0 -0
@@ -1,4 +1,4 @@
1
- var reactIs = { exports: {} };
1
+ var isSymbol = { exports: {} };
2
2
  export {
3
- reactIs as __module
3
+ isSymbol as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var isSymbol = { exports: {} };
1
+ var reactIs = { exports: {} };
2
2
  export {
3
- isSymbol as __module
3
+ reactIs as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var propTypes = { exports: {} };
1
+ var reactIs = { exports: {} };
2
2
  export {
3
- propTypes as __module
3
+ reactIs as __module
4
4
  };
@@ -1,6 +1,4 @@
1
- import { getAugmentedNamespace } from "./_commonjsHelpers.js";
2
- import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js";
3
- const require$$1 = /* @__PURE__ */ getAugmentedNamespace(index);
1
+ var propTypes = { exports: {} };
4
2
  export {
5
- require$$1 as default
3
+ propTypes as __module
6
4
  };
@@ -1,6 +1,6 @@
1
1
  import { getAugmentedNamespace } from "./_commonjsHelpers.js";
2
- import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/index.js";
3
- const require$$2 = /* @__PURE__ */ getAugmentedNamespace(index);
2
+ import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/index.js";
3
+ const require$$1 = /* @__PURE__ */ getAugmentedNamespace(index);
4
4
  export {
5
- require$$2 as default
5
+ require$$1 as default
6
6
  };
@@ -1,4 +1,6 @@
1
- var reactIs = { exports: {} };
1
+ import { getAugmentedNamespace } from "./_commonjsHelpers.js";
2
+ import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/index.js";
3
+ const require$$2 = /* @__PURE__ */ getAugmentedNamespace(index);
2
4
  export {
3
- reactIs as __module
5
+ require$$2 as default
4
6
  };
@@ -1,4 +1,4 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ia-select-main-container-v3{align-items:center;display:flex;gap:5px}.top-orientation{align-items:flex-start;flex-direction:column}.isAgGridCellRenderer{width:100%}.isAgGridCellRenderer .ia-select-button-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.isAgGridCellRenderer .ia-select-button-text-span{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ia-select-label-v3{line-height:18px;white-space:nowrap}.ia-select-container-v3{position:relative}.ia-select-container-v3 [aria-disabled=true]{background-color:#f8f9fb!important;border:1px solid #d9dde7!important;border-radius:8px;cursor:not-allowed;pointer-events:none}.multi-select__control{display:none}.multi-select__option{font-size:14px;padding:8px 16px}@media screen and (max-width:1399px) and (min-width:1200px){.multi-select__option{font-size:12px;padding:5px 16px}}.multi-select__option--is-selected{background-color:#984d4d;color:#1d1d1d}.multi-select__option--is-selected:active{background-color:#cfafaf}.loading-option{color:green;pointer-events:none}.loading-option-multi label{color:#ff0;pointer-events:none}.ia-select-container-v3-styled-menu{background:#fff;border-radius:4px;box-shadow:0 3px 6px #00000040;margin-top:4px;min-width:240px;padding:8px 0;position:absolute;z-index:2;z-index:99999}.ia-select-container-v3-blanket{bottom:0;left:0;position:fixed;right:0;top:0;z-index:9998}.ia-select-styled-dropdown-main-button{align-items:center;background:#fff;border:1px solid #0000001f;border-radius:4px;box-sizing:border-box;color:#1d1d1d;cursor:pointer;display:flex;font-size:14px;height:37px;justify-content:space-between;padding:8px 12px;text-align:left;width:100%}@media screen and (max-width:1399px) and (min-width:1200px){.ia-select-styled-dropdown-main-button{font-size:12px;height:28px}}.ia-select-styled-dropdown-main-button.is-with-clearable{gap:16px}.ia-select-button-clear-icon{background-image:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/notification-close.svg);background-position:end;background-repeat:no-repeat;background-size:10px;border-radius:4px;cursor:pointer;height:10px;margin-left:10px;position:absolute;right:40px;top:10px;width:10px}.ia-select-button-clear-icon:focus-visible{outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:2px}.ia-select-chevron-icon{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/select-chevron.svg) no-repeat;background-position:50%;background-size:10px;display:inline-block;flex-shrink:0;height:10px;margin-left:10px;transform:rotate(0);width:10px}.ia-select-chevron-icon.open{transform:rotate(180deg)}.ia-select-search-box{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/search.svg) no-repeat;background-position:16px;background-size:12px;border:none;border-bottom:1px solid blue;box-sizing:border-box;font-family:Poppins,sans-serif;font-size:14px;height:37px;outline:none;padding:0 16px 0 34px;width:100%}@media screen and (max-width:1399px) and (min-width:1200px){.ia-select-search-box{height:28px}}.ia-select-search-box::placeholder{color:#b4bac7}.ia-select-clear-all-button{background-color:initial;border:none;border-radius:4px;box-sizing:border-box;color:#60697d;cursor:pointer;font-size:12px;font-weight:400;height:26px;line-height:18px}.ia-select-clear-all-button:focus-visible{outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:2px}.ia-select-selectAll-container{align-items:center;border-radius:8px;box-sizing:border-box;display:flex;height:35px;justify-content:space-between;margin-bottom:2px;padding:4px 12px;position:relative}.ia-select-selectAll-container.ia-select-option-highlighted{background-color:#f5f6fa;outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:-2px}.ia-select-selectAll-container:after{background:#d9dde7;bottom:-3px;content:" ";height:1px;left:-6px;position:absolute;right:-6px}.ia-select-selectAll-container:hover{background-color:#f5f6fa;border-radius:8px}.ia-select-selectAll-container .impact-form-checkbox-container .MuiFormControlLabel-label{color:#1f2b4d}.ia-select-max-selectable-options{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/selectInfoIcon.svg) no-repeat;background-position:12px 10px;border-top:1px solid #f5f6fa;color:#60697d;display:flex;font-family:Manrope,sans-serif;font-size:12px;font-weight:500;line-height:16px;padding:9px 0 4px 34px}.ia-select-button-text{align-items:center;color:#1f2b4d;display:flex;font-family:Manrope,sans-serif!important;font-weight:500;gap:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ia-select-button-text svg{font-size:18px}.ia-select-button-text.impact-select-table{align-items:center;box-sizing:border-box;display:flex;flex:1 1 auto;gap:0;max-width:100%;min-width:0;overflow:hidden;width:100%}.ia-select-button-text.impact-select-table .ia-select-button-text-span{box-sizing:border-box;display:block;flex:1;max-width:100%;min-width:0;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:100%}.ia-select-button-text-full-width{width:90%}.ia-select-button-text-span{display:inline-block;font-weight:500;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.placeholder .ia-select-button-text-span{font-weight:400}.ia-select-button-text.placeholder{color:#b4bac7;font-weight:400}.select-label-with-icon{color:#1f2b4d;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;height:20px;line-height:20px;text-align:left;width:100%}.select-label-with-icon span{display:inline-block}.select-label-with-icon .selected-children-count{color:#6b7280;font-size:12px;margin-left:4px}.select-label-with-icon-multi span{max-width:153px}.impact-checkbox-label.disabled .select-label-with-icon{color:#b4bac7!important}.select-options-tag-group{display:flex;gap:4px;margin-top:4px;position:absolute;width:70px}.select-options-tag-group span{width:100%}.select-options-tag-group span>div{background-color:#eceefd;border:none!important}.select-options-tag-list{background:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001f;display:flex;flex-direction:column;margin-top:2px;max-height:200px;overflow-y:auto;padding:4px 8px;position:absolute;width:91px;z-index:10}.tag-group-more{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/menu-ext.svg) 50% no-repeat;display:inline-block;display:flex;height:20px;transform:rotate(90deg);width:14px!important;z-index:10}.tag-group-open>div{background-color:#eceefd}.ia-select-container-v3-styled-menu{border:none;border-radius:12px;box-shadow:0 1px 6px #1a277c24;margin-top:6px;padding:8px 6px}.ia-select-search-box{background-position:12px;border-bottom:none;border-radius:8px 8px 0 0;font-family:Manrope,sans-serif;font-weight:400;height:35px;padding-left:30px}.ia-select-search-box:focus,.ia-select-search-box:focus-visible{border:none;box-shadow:none;outline:none}.ia-select-search-box::placeholder{font-weight:400}.ia-select-search-box:not(:placeholder-shown){font-weight:500}.css-13cymwt-control{display:none!important}.ia-select-label-v3{color:#60697d;font-family:Manrope,sans-serif;font-size:12px;font-weight:500}.ia-select-main-container-v3{gap:6px}.css-tr4s17-option{background-color:#edf0ff!important;border-radius:8px;color:#1f2b4d!important;font-family:Manrope,sans-serif;font-weight:500;height:36px;margin-bottom:2px}.ia-select-styled-dropdown-main-button{border:1px solid #c3c8d4;border-radius:8px;color:#1f2b4d;font-family:Manrope,sans-serif!important;font-weight:500;height:32px}.ia-select-styled-dropdown-main-button:focus-visible{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none;transition:box-shadow .15s ease-in-out}.ia-select-styled-dropdown-main-button:focus:not(:focus-visible){box-shadow:none;outline:none}.ia-select-styled-dropdown-main-button.Mui-disabled:focus-visible,.ia-select-styled-dropdown-main-button.ia-btn-disabled:focus-visible,.ia-select-styled-dropdown-main-button.ia-switch-disabled:focus-visible,.ia-select-styled-dropdown-main-button.impact-select-disabled:focus-visible,.ia-select-styled-dropdown-main-button.impact_input_disabled:focus-visible,.ia-select-styled-dropdown-main-button.route-disabled:focus-visible,.ia-select-styled-dropdown-main-button:disabled:focus-visible,.ia-select-styled-dropdown-main-button[aria-disabled=true]:focus-visible{box-shadow:none;outline:none}.ia-select-styled-dropdown-main-button.ia-select-button-keyboard-open{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none}.ia-select-styled-dropdown-main-button:hover{border:1px solid #4259ee}.impact-select-error,.impact-select-error:hover{border:1px solid #e15554!important}.impact-select-disabled{background-color:#f2f4fb}.impact-select-disabled,.impact-select-disabled:hover{border:1px solid #d9dde7}.ia-select-loading-container{align-items:center;display:flex;justify-content:center;min-height:100px;width:100%}.ia-select-loading-more-container{height:92px!important}.default-select-tooltip,.select-tooltip{z-index:999999!important}.ia-select-dropdown-container{gap:4px}.ia-select-dropdown-v3{position:relative}.ia-select-dropdown-v3 .select__menu{position:relative;z-index:1}.ia-select-dropdown-v3 .menulistScroll{margin-top:3px;padding-top:0!important}.ia-select-dropdown-v3 .menulistScroll .ia-select-no-options-message{align-items:center;color:#60697d;display:flex;font-weight:500;height:50px;justify-content:center;line-height:16px}.ia-select-dropdown-v3 .menulistScroll .css-d7l1ni-option{background-color:initial;border-radius:8px;height:35px;margin-bottom:2px}.ia-select-dropdown-v3 .menulistScroll .css-d7l1ni-option:focus,.ia-select-dropdown-v3 .menulistScroll .css-d7l1ni-option:hover{background-color:#f5f6fa}.ia-select-dropdown-v3 .css-1s9izoc,.ia-select-dropdown-v3 .css-qr46ko{padding:0}.ia-select-dropdown-v3 .css-1s9izoc{border-bottom:1px solid #d9dde7}.ia-select-dropdown-v3 .css-1s9izoc:last-child{border-bottom:none}.ia-select-dropdown-v3 .ia-select-group-heading-container{align-items:center;display:flex;height:35px;justify-content:space-between;padding:0 12px}.ia-select-dropdown-v3 .ia-select-group-heading-container .css-jtaw72-group{color:#b4bac7;font-size:12px;font-weight:700;line-height:20px;margin-bottom:0;padding:0;text-transform:capitalize}.ia-select-dropdown-v3 .ia-select-group-heading-left{gap:6px}.ia-select-dropdown-v3 .group-icon,.ia-select-dropdown-v3 .ia-select-group-heading-left{align-items:center;display:flex;justify-content:center}.ia-select-dropdown-v3 .group-icon svg{color:#60697d;height:16px;width:16px}.ia-select-dropdown-v3 .group-icon svg path{fill:#60697d}.ia-select-dropdown-v3 .ia-select-option{background-color:initial;cursor:pointer;margin-bottom:2px}.ia-select-dropdown-v3 .ia-select-option:has(.disabled){opacity:.5;pointer-events:none}.ia-select-dropdown-v3 .ia-select-option.submenu-active,.ia-select-dropdown-v3 .ia-select-option:hover{background-color:#f5f6fa;border-radius:8px}.ia-select-dropdown-v3 .ia-select-option.ia-select-option-highlighted{background-color:#f5f6fa;border-radius:8px;outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:-2px}.select-option-content .select-submenu-chevron{bottom:11px;color:#60697d;height:16px;position:absolute;right:12px;width:16px}.ia-select-submenu-header{background-color:#f9fafb;border-bottom:1px solid #e5e7eb;padding:8px 12px}.ia-select-submenu-header .ia-select-submenu-back{align-items:center;background:none;border:none;color:#6b7280;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:4px;padding:0}.ia-select-submenu-header .ia-select-submenu-back:hover{color:#374151}.ia-select-dropdown-container{display:flex;position:relative}.ia-select-dropdown-v3{flex:1}.select-label-with-icon{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.select-label-with-icon span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ia-select-submenu{background:#fff;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 2px 8px #00000014;max-height:200px;overflow-y:auto;overscroll-behavior:contain;padding:8px 6px;z-index:3}.ia-select-submenu-content .select-option-content:not(:first-child){margin-top:2px}.ia-select-submenu-content .select-option-content{padding:7.5px 0 7.5px 12px}.ia-select-submenu-content .select-option-content:hover{background-color:#f5f6fa!important;border-radius:8px;color:#1f2b4d!important}.ia-select-submenu-content .select-option-content.selected{background-color:#edf0ff!important;border-radius:8px;color:#1f2b4d!important}.ia-select-chevron-icon.disabled{cursor:not-allowed;filter:grayscale(100%);opacity:.4;opacity:.2;pointer-events:none}.ia-select-submenu-content .ia-select-option-highlighted{background-color:#f5f6fa!important;border-radius:8px;outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:-2px}.ia-select-footer-message{align-items:center;border-top:1px solid #f5f6fa;display:flex;justify-content:space-between;padding:8px 12px 4px}.ia-select-footer-message .ia-select-max-selectable-options{background-position:0 1px;border:none;padding:0 0 0 20px}.ia-select-footer-message .ia-styles.ia-btn.ia-btn-with-icon{height:16px}.ia-select-footer-message .ia-select-footer-description{color:#60697d;font-size:12px;font-weight:500;line-height:16px}.ia-select-footer-message .ia-select-footer-action-button{color:#4259ee;cursor:pointer;font-size:12px;font-weight:500;padding:0;white-space:nowrap}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode('.ia-select-main-container-v3{align-items:center;display:flex;gap:5px}.top-orientation{align-items:flex-start;flex-direction:column}.isAgGridCellRenderer{width:100%}.isAgGridCellRenderer .ia-select-button-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.isAgGridCellRenderer .ia-select-button-text-span{display:block;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ia-select-label-v3{line-height:18px;white-space:nowrap}.ia-select-container-v3{position:relative}.ia-select-container-v3 [aria-disabled=true]{background-color:#f8f9fb!important;border:1px solid #d9dde7!important;border-radius:8px;cursor:not-allowed;pointer-events:none}.multi-select__control{display:none}.multi-select__option{font-size:14px;padding:8px 16px}@media screen and (max-width:1399px) and (min-width:1200px){.multi-select__option{font-size:12px;padding:5px 16px}}.multi-select__option--is-selected{background-color:#984d4d;color:#1d1d1d}.multi-select__option--is-selected:active{background-color:#cfafaf}.loading-option{color:green;pointer-events:none}.loading-option-multi label{color:#ff0;pointer-events:none}.ia-select-container-v3-styled-menu{background:#fff;border-radius:4px;box-shadow:0 3px 6px #00000040;margin-top:4px;min-width:240px;padding:8px 0;position:absolute;z-index:2;z-index:99999}.ia-select-container-v3-blanket{bottom:0;left:0;position:fixed;right:0;top:0;z-index:9998}.ia-select-styled-dropdown-main-button{align-items:center;background:#fff;border:1px solid #0000001f;border-radius:4px;box-sizing:border-box;color:#1d1d1d;cursor:pointer;display:flex;font-size:14px;height:37px;justify-content:space-between;padding:8px 12px;text-align:left;width:100%}@media screen and (max-width:1399px) and (min-width:1200px){.ia-select-styled-dropdown-main-button{font-size:12px;height:28px}}.ia-select-styled-dropdown-main-button.is-with-clearable{gap:16px}.ia-select-button-clear-icon{background-image:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/notification-close.svg);background-position:end;background-repeat:no-repeat;background-size:10px;border-radius:4px;cursor:pointer;height:10px;margin-left:10px;position:absolute;right:40px;top:10px;width:10px}.ia-select-button-clear-icon:focus-visible{outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:2px}.ia-select-chevron-icon{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/select-chevron.svg) no-repeat;background-position:50%;background-size:10px;display:inline-block;flex-shrink:0;height:10px;margin-left:10px;transform:rotate(0);width:10px}.ia-select-chevron-icon.open{transform:rotate(180deg)}.ia-select-search-box{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/search.svg) no-repeat;background-position:16px;background-size:12px;border:none;border-bottom:1px solid blue;box-sizing:border-box;font-family:Poppins,sans-serif;font-size:14px;height:37px;outline:none;padding:0 16px 0 34px;width:100%}@media screen and (max-width:1399px) and (min-width:1200px){.ia-select-search-box{height:28px}}.ia-select-search-box::placeholder{color:#b4bac7}.ia-select-clear-all-button{background-color:initial;border:none;border-radius:4px;box-sizing:border-box;color:#60697d;cursor:pointer;font-size:12px;font-weight:400;height:26px;line-height:18px}.ia-select-clear-all-button:focus-visible{outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:2px}.ia-select-selectAll-container{align-items:center;border-radius:8px;box-sizing:border-box;display:flex;height:35px;justify-content:space-between;margin-bottom:2px;padding:4px 12px;position:relative}.ia-select-selectAll-container.ia-select-option-highlighted{background-color:#f5f6fa;outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:-2px}.ia-select-selectAll-container:after{background:#d9dde7;bottom:-3px;content:" ";height:1px;left:-6px;position:absolute;right:-6px}.ia-select-selectAll-container:hover{background-color:#f5f6fa;border-radius:8px}.ia-select-selectAll-container .impact-form-checkbox-container .MuiFormControlLabel-label{color:#1f2b4d}.ia-select-max-selectable-options{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/selectInfoIcon.svg) no-repeat;background-position:12px 10px;border-top:1px solid #f5f6fa;color:#60697d;display:flex;font-family:Manrope,sans-serif;font-size:12px;font-weight:500;line-height:16px;padding:9px 0 4px 34px}.ia-select-button-text{align-items:center;color:#1f2b4d;display:flex;font-family:Manrope,sans-serif!important;font-weight:500;gap:8px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ia-select-button-text svg{font-size:18px}.ia-select-button-text.impact-select-table{align-items:center;box-sizing:border-box;display:flex;flex:1 1 auto;gap:0;max-width:100%;min-width:0;overflow:hidden;width:100%}.ia-select-button-text.impact-select-table .ia-select-button-text-span{box-sizing:border-box;display:block;flex:1;max-width:100%;min-width:0;overflow:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:100%}.ia-select-button-text-full-width{width:90%}.ia-select-button-text-span{display:inline-block;font-weight:500;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.placeholder .ia-select-button-text-span{font-weight:400}.ia-select-button-text.placeholder{color:#b4bac7;font-weight:400}.select-label-with-icon{color:#1f2b4d;font-family:Manrope,sans-serif;font-size:14px;font-weight:500;height:20px;line-height:20px;text-align:left;width:100%}.select-label-with-icon span{display:inline-block}.select-label-with-icon .selected-children-count{color:#6b7280;font-size:12px;margin-left:4px}.select-label-with-icon-multi span{max-width:153px}.impact-checkbox-label.disabled .select-label-with-icon{color:#b4bac7!important}.select-options-tag-group{display:flex;gap:4px;margin-top:4px;position:absolute;width:70px}.select-options-tag-group span{width:100%}.select-options-tag-group span>div{background-color:#eceefd;border:none!important}.select-options-tag-list{background:#fff;border-radius:12px;box-shadow:0 4px 8px #0000001f;display:flex;flex-direction:column;margin-top:2px;max-height:200px;overflow-y:auto;padding:4px 8px;position:absolute;width:91px;z-index:10}.tag-group-more{background:url(https://impact-kit.devs.iaproducts.ai/api/v1/files/uploads/impact-ui/prod/icons/menu-ext.svg) 50% no-repeat;display:inline-block;display:flex;height:20px;transform:rotate(90deg);width:14px!important;z-index:10}.tag-group-open>div{background-color:#eceefd}.ia-select-container-v3-styled-menu{border:none;border-radius:12px;box-shadow:0 1px 6px #1a277c24;margin-top:6px;padding:8px 6px}.ia-select-search-box{background-position:12px;border-bottom:none;border-radius:8px 8px 0 0;font-family:Manrope,sans-serif;font-weight:400;height:35px;padding-left:30px}.ia-select-search-box:focus,.ia-select-search-box:focus-visible{border:none;box-shadow:none;outline:none}.ia-select-search-box::placeholder{font-weight:400}.ia-select-search-box:not(:placeholder-shown){font-weight:500}.css-13cymwt-control{display:none!important}.ia-select-label-v3{color:#60697d;font-family:Manrope,sans-serif;font-size:12px;font-weight:500}.ia-select-main-container-v3{gap:6px}.css-tr4s17-option{background-color:#edf0ff!important;border-radius:8px;color:#1f2b4d!important;font-family:Manrope,sans-serif;font-weight:500;height:36px;margin-bottom:2px}.ia-select-styled-dropdown-main-button{border:1px solid #c3c8d4;border-radius:8px;color:#1f2b4d;font-family:Manrope,sans-serif!important;font-weight:500;height:32px}.ia-select-styled-dropdown-main-button:focus-visible{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none;transition:box-shadow .15s ease-in-out}.ia-select-styled-dropdown-main-button:focus:not(:focus-visible){box-shadow:none;outline:none}.ia-select-styled-dropdown-main-button.Mui-disabled:focus-visible,.ia-select-styled-dropdown-main-button.ia-btn-disabled:focus-visible,.ia-select-styled-dropdown-main-button.ia-switch-disabled:focus-visible,.ia-select-styled-dropdown-main-button.impact-select-disabled:focus-visible,.ia-select-styled-dropdown-main-button.impact_input_disabled:focus-visible,.ia-select-styled-dropdown-main-button.route-disabled:focus-visible,.ia-select-styled-dropdown-main-button:disabled:focus-visible,.ia-select-styled-dropdown-main-button[aria-disabled=true]:focus-visible{box-shadow:none;outline:none}.ia-select-styled-dropdown-main-button.ia-select-button-keyboard-open{box-shadow:0 0 0 var(--ia-focus-ring-offset,2px) var(--ia-focus-bg,#fff),0 0 0 calc(var(--ia-focus-ring-offset, 2px) + var(--ia-focus-ring-width, 2px)) var(--ia-focus-color,#4259ee);outline:none}.ia-select-styled-dropdown-main-button:hover{border:1px solid #4259ee}.impact-select-error,.impact-select-error:hover{border:1px solid #e15554!important}.impact-select-disabled{background-color:#f2f4fb}.impact-select-disabled,.impact-select-disabled:hover{border:1px solid #d9dde7}.ia-select-loading-container{align-items:center;display:flex;justify-content:center;min-height:100px;width:100%}.ia-select-loading-more-container{height:92px!important}.default-select-tooltip,.select-tooltip{z-index:999999!important}.ia-select-dropdown-container{gap:4px}.ia-select-dropdown-v3{position:relative}.ia-select-dropdown-v3 .select__menu{position:relative;z-index:1}.ia-select-dropdown-v3 .menulistScroll{margin-top:3px;overflow-y:hidden;padding-bottom:0;padding-top:0!important}.ia-select-dropdown-v3 .menulistScroll .ia-select-no-options-message{align-items:center;color:#60697d;display:flex;font-weight:500;height:50px;justify-content:center;line-height:16px}.ia-select-dropdown-v3 .menulistScroll .css-d7l1ni-option{background-color:initial;border-radius:8px;height:35px;margin-bottom:2px}.ia-select-dropdown-v3 .menulistScroll .css-d7l1ni-option:focus,.ia-select-dropdown-v3 .menulistScroll .css-d7l1ni-option:hover{background-color:#f5f6fa}.ia-select-dropdown-v3 .css-1s9izoc,.ia-select-dropdown-v3 .css-qr46ko{padding:0}.ia-select-dropdown-v3 .css-1s9izoc{border-bottom:1px solid #d9dde7}.ia-select-dropdown-v3 .css-1s9izoc:last-child{border-bottom:none}.ia-select-dropdown-v3 .ia-select-group-heading-container{align-items:center;display:flex;height:35px;justify-content:space-between;padding:0 12px}.ia-select-dropdown-v3 .ia-select-group-heading-container .css-jtaw72-group{color:#b4bac7;font-size:12px;font-weight:700;line-height:20px;margin-bottom:0;padding:0;text-transform:capitalize}.ia-select-dropdown-v3 .ia-select-group-heading-left{gap:6px}.ia-select-dropdown-v3 .group-icon,.ia-select-dropdown-v3 .ia-select-group-heading-left{align-items:center;display:flex;justify-content:center}.ia-select-dropdown-v3 .group-icon svg{color:#60697d;height:16px;width:16px}.ia-select-dropdown-v3 .group-icon svg path{fill:#60697d}.ia-select-dropdown-v3 .ia-select-option{background-color:initial;cursor:pointer;margin-bottom:2px}.ia-select-dropdown-v3 .ia-select-option:has(.disabled){opacity:.5;pointer-events:none}.ia-select-dropdown-v3 .ia-select-option.submenu-active,.ia-select-dropdown-v3 .ia-select-option:hover{background-color:#f5f6fa;border-radius:8px}.ia-select-dropdown-v3 .ia-select-option.ia-select-option-highlighted{background-color:#f5f6fa;border-radius:8px;outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:-2px}.select-option-content .select-submenu-chevron{bottom:11px;color:#60697d;height:16px;position:absolute;right:12px;width:16px}.ia-select-submenu-header{background-color:#f9fafb;border-bottom:1px solid #e5e7eb;padding:8px 12px}.ia-select-submenu-header .ia-select-submenu-back{align-items:center;background:none;border:none;color:#6b7280;cursor:pointer;display:flex;font-size:14px;font-weight:500;gap:4px;padding:0}.ia-select-submenu-header .ia-select-submenu-back:hover{color:#374151}.ia-select-dropdown-container{display:flex;position:relative}.ia-select-dropdown-v3{flex:1}.select-label-with-icon{align-items:center;display:flex;flex:1;gap:8px;min-width:0}.select-label-with-icon span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ia-select-submenu{background:#fff;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 2px 8px #00000014;max-height:200px;overflow-y:auto;overscroll-behavior:contain;padding:8px 6px;z-index:3}.ia-select-submenu-content .select-option-content:not(:first-child){margin-top:2px}.ia-select-submenu-content .select-option-content{padding:7.5px 0 7.5px 12px}.ia-select-submenu-content .select-option-content:hover{background-color:#f5f6fa!important;border-radius:8px;color:#1f2b4d!important}.ia-select-submenu-content .select-option-content.selected{background-color:#edf0ff!important;border-radius:8px;color:#1f2b4d!important}.ia-select-chevron-icon.disabled{cursor:not-allowed;filter:grayscale(100%);opacity:.4;opacity:.2;pointer-events:none}.ia-select-submenu-content .ia-select-option-highlighted{background-color:#f5f6fa!important;border-radius:8px;outline:2px solid var(--ia-focus-color,#4259ee);outline-offset:-2px}.ia-select-footer-message{align-items:center;border-top:1px solid #f5f6fa;display:flex;justify-content:space-between;padding:8px 12px 4px}.ia-select-footer-message .ia-select-max-selectable-options{background-position:0 1px;border:none;padding:0 0 0 20px}.ia-select-footer-message .ia-styles.ia-btn.ia-btn-with-icon{height:16px}.ia-select-footer-message .ia-select-footer-description{color:#60697d;font-size:12px;font-weight:500;line-height:16px}.ia-select-footer-message .ia-select-footer-action-button{color:#4259ee;cursor:pointer;font-size:12px;font-weight:500;padding:0;white-space:nowrap}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
2
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3
3
  import React__default, { useState, useRef, useMemo, useEffect, useCallback } from "react";
4
4
  import ReactSelect from "react-select";
@@ -1 +1 @@
1
- {"version":3,"file":"AgGridHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/AgGridHeader.tsx"],"names":[],"mappings":"AAyBA,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,oBAA2B,EAC3B,GAAG,IAAI,EACR;;;;;;;;;;CAAA,kDA26BA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"AgGridHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/AgGridHeader.tsx"],"names":[],"mappings":"AA6BA,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,oBAA2B,EAC3B,GAAG,IAAI,EACR;;;;;;;;;;CAAA,kDAk8BA;AAED,eAAe,YAAY,CAAC"}
@@ -10,7 +10,7 @@ import { DatePicker } from "../DatePicker/index.js";
10
10
  import { DateRangePicker } from "../DateRangePicker/index.js";
11
11
  import { Input } from "../Input/index.js";
12
12
  import { Select } from "../Select/index.js";
13
- import { syncFiltersWithModal, parseInlineSearchValue, buildFilterModelEntry } from "./filterUtils.js";
13
+ import { isNumericValueColumn, handleNumericKeyDown, isPartialNumericInput, handleNumericPaste, syncFiltersWithModal, parseInlineSearchValue, buildFilterModelEntry } from "./filterUtils.js";
14
14
  import { Tooltip } from "../Tooltip/index.js";
15
15
  import Badge from "../../node_modules/@mui/material/Badge/Badge.js";
16
16
  const TableSortIconUrl = getAssetUrl("icons/tableSortIcon.svg");
@@ -27,7 +27,7 @@ function AgGridHeader({
27
27
  enableHeaderTextWrap = true,
28
28
  ...rest
29
29
  }) {
30
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa;
30
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra;
31
31
  if (!rest.column || !rest.api) {
32
32
  return null;
33
33
  }
@@ -288,6 +288,11 @@ function AgGridHeader({
288
288
  }, debounceTime),
289
289
  []
290
290
  );
291
+ const applySearchText = (value) => {
292
+ setSearchText(value);
293
+ setHasActiveSearch(!!value);
294
+ debouncedHandleSearchChange(value);
295
+ };
291
296
  const handleSearch = (e) => {
292
297
  var _a2, _b2;
293
298
  e.stopPropagation();
@@ -324,6 +329,7 @@ function AgGridHeader({
324
329
  }
325
330
  updateEmptyStateOverlay();
326
331
  };
332
+ const isNumericSearchColumn = isNumericValueColumn((_l = rest.column) == null ? void 0 : _l.colDef);
327
333
  const MIN_SEARCH_WIDTH = 200;
328
334
  const expandColumnIfNeeded = () => {
329
335
  var _a2;
@@ -419,7 +425,7 @@ function AgGridHeader({
419
425
  colDef.suppressHeaderKeyboardEvent = originalSuppressHeaderKeyboardEventRef.current;
420
426
  }
421
427
  };
422
- }, [isInputFocused, (_l = rest.column) == null ? void 0 : _l.colId]);
428
+ }, [isInputFocused, (_m = rest.column) == null ? void 0 : _m.colId]);
423
429
  useEffect(() => {
424
430
  if (containerRef.current) {
425
431
  setContainerHeight(containerRef.current.clientHeight);
@@ -429,15 +435,15 @@ function AgGridHeader({
429
435
  "div",
430
436
  {
431
437
  ref: containerRef,
432
- className: `custom-ag-header-container ${((_n = (_m = rest.column) == null ? void 0 : _m.colDef) == null ? void 0 : _n.checkboxSelection) ? "checkbox-selection" : ""} ${((_p = (_o = rest.column) == null ? void 0 : _o.colDef) == null ? void 0 : _p.customHeaderIcons) || !((_r = (_q = rest.column) == null ? void 0 : _q.colDef) == null ? void 0 : _r.suppressMenu) || ((_t = (_s = rest.column) == null ? void 0 : _s.colDef) == null ? void 0 : _t.isSearchable) ? "with-icons" : ""}`,
438
+ className: `custom-ag-header-container ${((_o = (_n = rest.column) == null ? void 0 : _n.colDef) == null ? void 0 : _o.checkboxSelection) ? "checkbox-selection" : ""} ${((_q = (_p = rest.column) == null ? void 0 : _p.colDef) == null ? void 0 : _q.customHeaderIcons) || !((_s = (_r = rest.column) == null ? void 0 : _r.colDef) == null ? void 0 : _s.suppressMenu) || ((_u = (_t = rest.column) == null ? void 0 : _t.colDef) == null ? void 0 : _u.isSearchable) ? "with-icons" : ""}`,
433
439
  onClick: () => rest.onClick(),
434
440
  children: showDatePicker ? /* @__PURE__ */ jsxs("div", { className: `ia-search-input-field ia-search-input-narrow`, children: [
435
- ((_v = (_u = rest.column) == null ? void 0 : _u.colDef) == null ? void 0 : _v.thirdOptionAsDateRangePicker) ? /* @__PURE__ */ jsx(
441
+ ((_w = (_v = rest.column) == null ? void 0 : _v.colDef) == null ? void 0 : _w.thirdOptionAsDateRangePicker) ? /* @__PURE__ */ jsx(
436
442
  DateRangePicker,
437
443
  {
438
444
  fullWidth: true,
439
445
  withPortal: true,
440
- customIcon: ((_x = (_w = rest.column) == null ? void 0 : _w.colDef) == null ? void 0 : _x.advanceSearchEnabled) && /* @__PURE__ */ jsx(
446
+ customIcon: ((_y = (_x = rest.column) == null ? void 0 : _x.colDef) == null ? void 0 : _y.advanceSearchEnabled) && /* @__PURE__ */ jsx(
441
447
  default_1,
442
448
  {
443
449
  className: "ia-search-input-field-custom-icon",
@@ -454,7 +460,7 @@ function AgGridHeader({
454
460
  }
455
461
  }
456
462
  ),
457
- displayFormat: ((_z = (_y = rest.column) == null ? void 0 : _y.colDef) == null ? void 0 : _z.displayFormat) || "MM-DD-YYYY",
463
+ displayFormat: ((_A = (_z = rest.column) == null ? void 0 : _z.colDef) == null ? void 0 : _A.displayFormat) || "MM-DD-YYYY",
458
464
  endDate,
459
465
  handleDatesChange: (start, end) => {
460
466
  setStartDate(start);
@@ -487,7 +493,7 @@ function AgGridHeader({
487
493
  fullWidth: true,
488
494
  showMonthYearSelect: true,
489
495
  withPortal: true,
490
- customIcon: ((_B = (_A = rest.column) == null ? void 0 : _A.colDef) == null ? void 0 : _B.advanceSearchEnabled) && /* @__PURE__ */ jsx(
496
+ customIcon: ((_C = (_B = rest.column) == null ? void 0 : _B.colDef) == null ? void 0 : _C.advanceSearchEnabled) && /* @__PURE__ */ jsx(
491
497
  default_1,
492
498
  {
493
499
  className: "ia-search-input-field-custom-icon",
@@ -503,7 +509,7 @@ function AgGridHeader({
503
509
  }
504
510
  }
505
511
  ),
506
- displayFormat: ((_D = (_C = rest.column) == null ? void 0 : _C.colDef) == null ? void 0 : _D.displayFormat) || "MM-DD-YYYY",
512
+ displayFormat: ((_E = (_D = rest.column) == null ? void 0 : _D.colDef) == null ? void 0 : _E.displayFormat) || "MM-DD-YYYY",
507
513
  maxDate: /* @__PURE__ */ new Date("2100-12-31"),
508
514
  minDate: /* @__PURE__ */ new Date("2000-01-01"),
509
515
  placeholder: "Select Date",
@@ -539,9 +545,9 @@ function AgGridHeader({
539
545
  "div",
540
546
  {
541
547
  className: `ia-search-input-field ia-search-input-narrow
542
- ${((_F = (_E = rest.column) == null ? void 0 : _E.colDef) == null ? void 0 : _F.thirdOptionAsDropdown) ? "with-dropdown" : ""}`,
548
+ ${((_G = (_F = rest.column) == null ? void 0 : _F.colDef) == null ? void 0 : _G.thirdOptionAsDropdown) ? "with-dropdown" : ""}`,
543
549
  children: [
544
- ((_H = (_G = rest.column) == null ? void 0 : _G.colDef) == null ? void 0 : _H.thirdOptionAsDropdown) && !((_J = (_I = rest.column) == null ? void 0 : _I.colDef) == null ? void 0 : _J.toShowDuplicateColumnInAdvanceSearch) ? /* @__PURE__ */ jsxs(
550
+ ((_I = (_H = rest.column) == null ? void 0 : _H.colDef) == null ? void 0 : _I.thirdOptionAsDropdown) && !((_K = (_J = rest.column) == null ? void 0 : _J.colDef) == null ? void 0 : _K.toShowDuplicateColumnInAdvanceSearch) ? /* @__PURE__ */ jsxs(
545
551
  "div",
546
552
  {
547
553
  id: "ia-select-option-dropdown-container",
@@ -557,12 +563,12 @@ function AgGridHeader({
557
563
  {
558
564
  currentOptions: currentDropdownOptions,
559
565
  dropDownPortalClassName: "ag-select-dropdown-portal",
560
- initialOptions: (_L = (_K = rest == null ? void 0 : rest.column) == null ? void 0 : _K.colDef) == null ? void 0 : _L.thirdOptionDropdownOptions,
566
+ initialOptions: (_M = (_L = rest == null ? void 0 : rest.column) == null ? void 0 : _L.colDef) == null ? void 0 : _M.thirdOptionDropdownOptions,
561
567
  isClearable: true,
562
- isMulti: (_N = (_M = rest == null ? void 0 : rest.column) == null ? void 0 : _M.colDef) == null ? void 0 : _N.enableMultiSelect,
568
+ isMulti: (_O = (_N = rest == null ? void 0 : rest.column) == null ? void 0 : _N.colDef) == null ? void 0 : _O.enableMultiSelect,
563
569
  isOpen: isDropdownOpen,
564
570
  isSelectAll,
565
- isWithSearch: (_P = (_O = rest == null ? void 0 : rest.column) == null ? void 0 : _O.colDef) == null ? void 0 : _P.enableSearch,
571
+ isWithSearch: (_Q = (_P = rest == null ? void 0 : rest.column) == null ? void 0 : _P.colDef) == null ? void 0 : _Q.enableSearch,
566
572
  placeholder: "Select option",
567
573
  selectedOptions: selectedDropdownOption,
568
574
  setCurrentOptions: setCurrentDropdownOptions,
@@ -581,7 +587,7 @@ function AgGridHeader({
581
587
  }
582
588
  }
583
589
  },
584
- toggleSelectAll: (_R = (_Q = rest == null ? void 0 : rest.column) == null ? void 0 : _Q.colDef) == null ? void 0 : _R.enableMultiSelect,
590
+ toggleSelectAll: (_S = (_R = rest == null ? void 0 : rest.column) == null ? void 0 : _R.colDef) == null ? void 0 : _S.enableMultiSelect,
585
591
  onClearAll: () => {
586
592
  setSelectedDropdownOption(isMultiSelect ? [] : null);
587
593
  setHasActiveSearch(false);
@@ -596,10 +602,10 @@ function AgGridHeader({
596
602
  },
597
603
  withPortal: true,
598
604
  minWidth: "100%",
599
- ...(_T = (_S = rest.column) == null ? void 0 : _S.colDef) == null ? void 0 : _T.selectProps
605
+ ...(_U = (_T = rest.column) == null ? void 0 : _T.colDef) == null ? void 0 : _U.selectProps
600
606
  }
601
607
  ),
602
- ((_V = (_U = rest.column) == null ? void 0 : _U.colDef) == null ? void 0 : _V.advanceSearchEnabled) && /* @__PURE__ */ jsx(
608
+ ((_W = (_V = rest.column) == null ? void 0 : _V.colDef) == null ? void 0 : _W.advanceSearchEnabled) && /* @__PURE__ */ jsx(
603
609
  default_1,
604
610
  {
605
611
  className: "ia-search-input-field-custom-icon",
@@ -632,8 +638,15 @@ function AgGridHeader({
632
638
  Input,
633
639
  {
634
640
  ref: inputRef,
635
- iconClickOnDisabled: (_X = (_W = rest.column) == null ? void 0 : _W.colDef) == null ? void 0 : _X.toShowDuplicateColumnInAdvanceSearch,
636
- isDisabled: (_Z = (_Y = rest.column) == null ? void 0 : _Y.colDef) == null ? void 0 : _Z.toShowDuplicateColumnInAdvanceSearch,
641
+ iconClickOnDisabled: (_Y = (_X = rest.column) == null ? void 0 : _X.colDef) == null ? void 0 : _Y.toShowDuplicateColumnInAdvanceSearch,
642
+ inputProps: isNumericSearchColumn ? {
643
+ inputMode: "decimal",
644
+ onKeyDown: handleNumericKeyDown,
645
+ onPaste: (e) => {
646
+ handleNumericPaste(e, applySearchText);
647
+ }
648
+ } : void 0,
649
+ isDisabled: (__ = (_Z = rest.column) == null ? void 0 : _Z.colDef) == null ? void 0 : __.toShowDuplicateColumnInAdvanceSearch,
637
650
  placeholder: "Search",
638
651
  rightIcon: /* @__PURE__ */ jsxs(Fragment, { children: [
639
652
  searchText.toString().length > 0 && /* @__PURE__ */ jsx(
@@ -647,7 +660,7 @@ function AgGridHeader({
647
660
  }
648
661
  }
649
662
  ),
650
- ((_$ = (__ = rest.column) == null ? void 0 : __.colDef) == null ? void 0 : _$.advanceSearchEnabled) && /* @__PURE__ */ jsx(
663
+ ((_aa = (_$ = rest.column) == null ? void 0 : _$.colDef) == null ? void 0 : _aa.advanceSearchEnabled) && /* @__PURE__ */ jsx(
651
664
  default_1,
652
665
  {
653
666
  onClick: () => {
@@ -666,9 +679,11 @@ function AgGridHeader({
666
679
  ] }),
667
680
  value: searchText,
668
681
  onChange: (e) => {
669
- setSearchText(e.target.value);
670
- setHasActiveSearch(!!e.target.value);
671
- debouncedHandleSearchChange(e.target.value);
682
+ const nextValue = e.target.value;
683
+ if (isNumericSearchColumn && !isPartialNumericInput(nextValue)) {
684
+ return;
685
+ }
686
+ applySearchText(nextValue);
672
687
  }
673
688
  }
674
689
  ),
@@ -692,9 +707,9 @@ function AgGridHeader({
692
707
  /* @__PURE__ */ jsxs(
693
708
  "div",
694
709
  {
695
- className: `ag-header-cell-text ${((_ba = (_aa = rest.column) == null ? void 0 : _aa.colDef) == null ? void 0 : _ba.sortable) ? "sortable" : ""} ${enableHeaderTextWrap ? "header-wrap-enabled" : ""}`,
710
+ className: `ag-header-cell-text ${((_ca = (_ba = rest.column) == null ? void 0 : _ba.colDef) == null ? void 0 : _ca.sortable) ? "sortable" : ""} ${enableHeaderTextWrap ? "header-wrap-enabled" : ""}`,
696
711
  children: [
697
- ((_da = (_ca = rest.column) == null ? void 0 : _ca.colDef) == null ? void 0 : _da.field) === "Selection" || ((_fa = (_ea = rest.column) == null ? void 0 : _ea.colDef) == null ? void 0 : _fa.checkboxSelection) ? children : /* @__PURE__ */ jsx(
712
+ ((_ea = (_da = rest.column) == null ? void 0 : _da.colDef) == null ? void 0 : _ea.field) === "Selection" || ((_ga = (_fa = rest.column) == null ? void 0 : _fa.colDef) == null ? void 0 : _ga.checkboxSelection) ? children : /* @__PURE__ */ jsx(
698
713
  "div",
699
714
  {
700
715
  ref: headerTextRef,
@@ -717,8 +732,8 @@ function AgGridHeader({
717
732
  )
718
733
  }
719
734
  ),
720
- (_ha = (_ga = rest.column) == null ? void 0 : _ga.colDef) == null ? void 0 : _ha.headerIcons,
721
- ((_ja = (_ia = rest.column) == null ? void 0 : _ia.colDef) == null ? void 0 : _ja.sortable) && /* @__PURE__ */ jsx(
735
+ (_ia = (_ha = rest.column) == null ? void 0 : _ha.colDef) == null ? void 0 : _ia.headerIcons,
736
+ ((_ka = (_ja = rest.column) == null ? void 0 : _ja.colDef) == null ? void 0 : _ka.sortable) && /* @__PURE__ */ jsx(
722
737
  "img",
723
738
  {
724
739
  alt: "TableSortIcon",
@@ -735,10 +750,10 @@ function AgGridHeader({
735
750
  {
736
751
  className: `ia-icon-div ${hasActiveSearch ? "has-active-search" : ""} ${menuVisible ? "menu-visible" : ""}`,
737
752
  children: [
738
- (_ma = (_la = (_ka = rest.column) == null ? void 0 : _ka.colDef) == null ? void 0 : _la.customHeaderIcons) == null ? void 0 : _ma.map((icon) => {
753
+ (_na = (_ma = (_la = rest.column) == null ? void 0 : _la.colDef) == null ? void 0 : _ma.customHeaderIcons) == null ? void 0 : _na.map((icon) => {
739
754
  return icon;
740
755
  }),
741
- ((_oa = (_na = rest.column) == null ? void 0 : _na.colDef) == null ? void 0 : _oa.isSearchable) && (hasActiveSearch || !showInputField) && /* @__PURE__ */ jsx(Badge, { invisible: !hasActiveSearch, variant: "dot", children: /* @__PURE__ */ jsx(
756
+ ((_pa = (_oa = rest.column) == null ? void 0 : _oa.colDef) == null ? void 0 : _pa.isSearchable) && (hasActiveSearch || !showInputField) && /* @__PURE__ */ jsx(Badge, { invisible: !hasActiveSearch, variant: "dot", children: /* @__PURE__ */ jsx(
742
757
  default_1$2,
743
758
  {
744
759
  fontSize: "small",
@@ -759,7 +774,7 @@ function AgGridHeader({
759
774
  } : handleSearch
760
775
  }
761
776
  ) }),
762
- !((_qa = (_pa = rest.column) == null ? void 0 : _pa.colDef) == null ? void 0 : _qa.suppressMenu) && /* @__PURE__ */ jsx("div", { className: "custom-ag-header-icons", children: /* @__PURE__ */ jsx(
777
+ !((_ra = (_qa = rest.column) == null ? void 0 : _qa.colDef) == null ? void 0 : _ra.suppressMenu) && /* @__PURE__ */ jsx("div", { className: "custom-ag-header-icons", children: /* @__PURE__ */ jsx(
763
778
  "button",
764
779
  {
765
780
  ref: menuRef,
@@ -1 +1 @@
1
- {"version":3,"file":"NewAdvanceSearchModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;;CAU9B,4CAoRA,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"NewAdvanceSearchModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.tsx"],"names":[],"mappings":"AAgBA,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;;CAU9B,4CAyRA,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import React__default, { useState, useMemo, useEffect } from "react";
3
- import { useForm, useFieldArray } from "react-hook-form";
3
+ import { useForm, useFieldArray, useWatch } from "react-hook-form";
4
4
  import NewAdvanceSearchModalItem from "./NewAdvanceSearchModalItem.js";
5
5
  import { convertToOptions } from "../../../utils/helper.js";
6
6
  import { Button } from "../../Button/index.js";
@@ -39,7 +39,6 @@ const NewAdvanceSearchModal = ({
39
39
  const {
40
40
  control,
41
41
  handleSubmit,
42
- watch,
43
42
  formState: { isValid: isFormValid },
44
43
  setValue,
45
44
  getValues,
@@ -50,14 +49,15 @@ const NewAdvanceSearchModal = ({
50
49
  name: "filters",
51
50
  keyName: "fieldId"
52
51
  });
53
- const formValues = watch();
54
- const filteredColumnsInitialOptions = useMemo(() => {
55
- const selectedValues = (formValues.filters || []).map((f) => {
52
+ const columnOptions = useMemo(() => convertToOptions(colDefs || []), [colDefs]);
53
+ const watchedFilters = useWatch({ control, name: "filters" });
54
+ const selectedColumnValues = useMemo(
55
+ () => (watchedFilters || []).map((f) => {
56
56
  var _a;
57
57
  return (_a = f == null ? void 0 : f.column) == null ? void 0 : _a.value;
58
- }).filter(Boolean);
59
- return convertToOptions(colDefs || []).filter((opt) => !selectedValues.includes(opt.value));
60
- }, [colDefs, formValues.filters]);
58
+ }).filter(Boolean),
59
+ [watchedFilters]
60
+ );
61
61
  const [hasInitializedWithColumnId, setHasInitializedWithColumnId] = useState(false);
62
62
  const prevIsAdvanceSearchRef = React__default.useRef(false);
63
63
  useEffect(() => {
@@ -84,8 +84,8 @@ const NewAdvanceSearchModal = ({
84
84
  }
85
85
  );
86
86
  if (!hasValidFilters) {
87
- const formValues2 = getValues();
88
- const existingFilters = formValues2.filters || [];
87
+ const formValues = getValues();
88
+ const existingFilters = formValues.filters || [];
89
89
  const columnExists = existingFilters.some(
90
90
  (filter) => {
91
91
  var _a2;
@@ -130,8 +130,8 @@ const NewAdvanceSearchModal = ({
130
130
  toggleAdvanceSearch();
131
131
  };
132
132
  const handleSearchApplyClick = () => {
133
- const formValues2 = formMethods.getValues().filters || [];
134
- const validFilters = formValues2.filter((filter) => {
133
+ const formValues = formMethods.getValues().filters || [];
134
+ const validFilters = formValues.filter((filter) => {
135
135
  var _a, _b, _c, _d, _e, _f;
136
136
  const hasColumn = ((_a = filter == null ? void 0 : filter.column) == null ? void 0 : _a.value) && ((_b = filter == null ? void 0 : filter.column) == null ? void 0 : _b.value) !== null && ((_c = filter == null ? void 0 : filter.column) == null ? void 0 : _c.value) !== "";
137
137
  if (activeSearchType === "advanceSearch") {
@@ -229,15 +229,16 @@ const NewAdvanceSearchModal = ({
229
229
  {
230
230
  activeSearchType,
231
231
  colDefs,
232
+ columnOptions,
232
233
  control,
233
234
  currentColumnId,
234
235
  field,
235
236
  fields,
236
- filteredColumnsInitialOptions,
237
237
  getValues,
238
238
  index,
239
239
  isLastVisible: fields.length === 1,
240
- remove
240
+ remove,
241
+ selectedColumnValues
241
242
  },
242
243
  field.fieldId || field.id
243
244
  )) }),
@@ -1,11 +1,12 @@
1
- declare const NewAdvanceSearchModalItem: ({ colDefs, control, index, field, remove, filteredColumnsInitialOptions, activeSearchType, isLastVisible, currentColumnId, getValues, fields, ...args }: {
1
+ declare const NewAdvanceSearchModalItem: ({ colDefs, control, index, field, remove, columnOptions, selectedColumnValues, activeSearchType, isLastVisible, currentColumnId, getValues, fields, ...args }: {
2
2
  [x: string]: any;
3
3
  colDefs: any;
4
4
  control: any;
5
5
  index: any;
6
6
  field: any;
7
7
  remove: any;
8
- filteredColumnsInitialOptions: any;
8
+ columnOptions: any;
9
+ selectedColumnValues: any;
9
10
  activeSearchType: any;
10
11
  isLastVisible: any;
11
12
  currentColumnId: any;
@@ -1 +1 @@
1
- {"version":3,"file":"NewAdvanceSearchModalItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.tsx"],"names":[],"mappings":"AAsBA,QAAA,MAAM,yBAAyB,GAAI;;;;;;;;;;;;;CAalC,4CA4ZA,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"NewAdvanceSearchModalItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.tsx"],"names":[],"mappings":"AAqBA,QAAA,MAAM,yBAAyB,GAAI;;;;;;;;;;;;;;CAclC,4CAsbA,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import { useState, useEffect } from "react";
2
+ import { useState, useMemo, useEffect } from "react";
3
3
  import default_1 from "../../../node_modules/@mui/icons-material/DeleteOutlineOutlined.js";
4
4
  import moment from "moment";
5
5
  import { useController } from "react-hook-form";
@@ -9,14 +9,15 @@ import { DatePicker } from "../../DatePicker/index.js";
9
9
  import { DateRangePicker } from "../../DateRangePicker/index.js";
10
10
  import { Input } from "../../Input/index.js";
11
11
  import { Select } from "../../Select/index.js";
12
- import { findColumnDef, getOperatorListForColumn, getDefaultOperationForColumn } from "../filterUtils.js";
12
+ import { isNumericValueColumn, findColumnDef, getOperatorListForColumn, getDefaultOperationForColumn, handleNumericKeyDown, isPartialNumericInput, handleNumericPaste } from "../filterUtils.js";
13
13
  const NewAdvanceSearchModalItem = ({
14
14
  colDefs,
15
15
  control,
16
16
  index,
17
17
  field,
18
18
  remove,
19
- filteredColumnsInitialOptions,
19
+ columnOptions,
20
+ selectedColumnValues,
20
21
  activeSearchType,
21
22
  isLastVisible,
22
23
  currentColumnId,
@@ -51,6 +52,15 @@ const NewAdvanceSearchModalItem = ({
51
52
  required: true
52
53
  }
53
54
  });
55
+ const rowColumnOptions = useMemo(() => {
56
+ var _a2;
57
+ const ownValue = (_a2 = columnField.value) == null ? void 0 : _a2.value;
58
+ const takenByOtherRows = new Set(
59
+ (selectedColumnValues || []).filter((value) => value !== ownValue)
60
+ );
61
+ return (columnOptions || []).filter((option) => !takenByOtherRows.has(option.value));
62
+ }, [columnOptions, selectedColumnValues, columnField.value]);
63
+ const isNumericColumn = isNumericValueColumn(currentColumnDef);
54
64
  useEffect(() => {
55
65
  var _a2;
56
66
  if (!((_a2 = columnField.value) == null ? void 0 : _a2.value)) return;
@@ -100,9 +110,7 @@ const NewAdvanceSearchModalItem = ({
100
110
  var _a2;
101
111
  if (currentColumnId && index === 0 && // Only auto-select for the first filter
102
112
  !columnField.value && ((_a2 = columnField.value) == null ? void 0 : _a2.value) !== currentColumnId) {
103
- const columnOption = filteredColumnsInitialOptions == null ? void 0 : filteredColumnsInitialOptions.find(
104
- (opt) => opt.value === currentColumnId
105
- );
113
+ const columnOption = rowColumnOptions == null ? void 0 : rowColumnOptions.find((opt) => opt.value === currentColumnId);
106
114
  const allOptions = convertToOptions(colDefs || []);
107
115
  const columnOptionFromAll = allOptions.find((opt) => opt.value === currentColumnId);
108
116
  const optionToSelect = columnOption || columnOptionFromAll;
@@ -110,7 +118,7 @@ const NewAdvanceSearchModalItem = ({
110
118
  columnField.onChange(optionToSelect);
111
119
  }
112
120
  }
113
- }, [currentColumnId, index, columnField.value, filteredColumnsInitialOptions, colDefs]);
121
+ }, [currentColumnId, index, columnField.value, rowColumnOptions, colDefs]);
114
122
  const handleClickOutside = (event) => {
115
123
  if (isColumnOptionsOpen || isThirdOptionDropdownOpen || isOperationOptionsOpen && !event.target.closest(".ia-table-search-content-body")) {
116
124
  setIsColumnOptionsOpen(false);
@@ -127,8 +135,8 @@ const NewAdvanceSearchModalItem = ({
127
135
  /* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", flex: 1 }, children: /* @__PURE__ */ jsx(
128
136
  Select,
129
137
  {
130
- currentOptions: filteredColumnsInitialOptions || [],
131
- initialOptions: filteredColumnsInitialOptions || [],
138
+ currentOptions: rowColumnOptions,
139
+ initialOptions: rowColumnOptions,
132
140
  isOpen: isColumnOptionsOpen,
133
141
  minWidth: activeSearchType !== "advanceSearch" ? 400 : void 0,
134
142
  name: `filters.${index}.column`,
@@ -263,12 +271,23 @@ const NewAdvanceSearchModalItem = ({
263
271
  ) : /* @__PURE__ */ jsx(
264
272
  Input,
265
273
  {
274
+ inputProps: isNumericColumn ? {
275
+ inputMode: "decimal",
276
+ onKeyDown: handleNumericKeyDown,
277
+ onPaste: (event) => {
278
+ handleNumericPaste(event, valueField.onChange);
279
+ }
280
+ } : void 0,
266
281
  isDisabled: activeSearchType === "advanceSearch" && !operationField.value,
267
282
  name: `filters.${index}.value`,
268
- placeholder: "Enter text",
283
+ placeholder: isNumericColumn ? "Enter number" : "Enter text",
269
284
  value: valueField.value || "",
270
285
  onChange: (e) => {
271
- valueField.onChange(e.target.value);
286
+ const nextValue = e.target.value;
287
+ if (isNumericColumn && !isPartialNumericInput(nextValue)) {
288
+ return;
289
+ }
290
+ valueField.onChange(nextValue);
272
291
  }
273
292
  }
274
293
  ) }),
@@ -7,6 +7,59 @@ export declare const getDefaultOperationForColumn: (columnDef: any, filter?: nul
7
7
  * @returns {string} - Cleaned value
8
8
  */
9
9
  export declare const cleanNumericValue: (value: any) => any;
10
+ /**
11
+ * Whether a column's search value must be entered as a number.
12
+ * Date, boolean and dropdown columns render their own editors, so they are never numeric
13
+ * inputs even when their underlying data is numeric.
14
+ * @param {object} columnDef - The column definition from AG Grid
15
+ * @returns {boolean} - true when the value should be restricted to numeric input
16
+ */
17
+ export declare const isNumericValueColumn: (columnDef: any) => boolean;
18
+ /**
19
+ * Builds a `colDef.filterValueGetter` that filters on the number the cell displays rather
20
+ * than the one it stores, for columns whose valueFormatter rounds.
21
+ *
22
+ * A rate held as 27.865460358560085 and rendered as "27.9%" cannot otherwise be matched
23
+ * with Equals: the user searches for what is on screen, and no one can type digits they
24
+ * cannot see. Rounding the compared value to the displayed precision makes Equals and
25
+ * Not equal mean what they appear to mean, and leaves the filter model itself untouched.
26
+ * @param {number} decimals - Decimal places the column's valueFormatter shows
27
+ * @returns {Function} - A filterValueGetter for the column definition
28
+ */
29
+ export declare const roundedFilterValueGetter: (decimals?: number) => (params: any) => any;
30
+ /**
31
+ * Matches any value that is, or could still become, a decimal number.
32
+ * Intermediate states such as "", "-", "1." are allowed so the user can keep typing.
33
+ * @param {string} value - The candidate input value
34
+ * @returns {boolean} - true when the value may be entered into a numeric field
35
+ */
36
+ export declare const isPartialNumericInput: (value: any) => boolean;
37
+ /**
38
+ * Inserts a pasted value into a numeric field, reading it the way it was rendered:
39
+ * currency symbols, thousands separators and percent signs are dropped, accounting
40
+ * parentheses become a minus, and a magnitude suffix is expanded, so `$ 428,815`,
41
+ * `(21.0%)` and `$ 428.82k` all land as numbers. Typed characters stay restricted —
42
+ * only a paste carries value-level intent.
43
+ *
44
+ * The paste is all-or-nothing. Anything that is not a complete number is refused outright
45
+ * rather than salvaged, otherwise pasting "Order 66 units" would quietly leave 66 behind
46
+ * and pasting a word would wipe the field.
47
+ *
48
+ * An expanded suffix is only as precise as the cell was: `428.82k` reads as 428,820, which
49
+ * is not the 428,815 underneath it. Columns that abbreviate need a matching
50
+ * roundedFilterValueGetter for an Equals search to find anything.
51
+ * @param {object} event - React clipboard event from a numeric input
52
+ * @param {Function} applyValue - Called with the field's next value when the paste is taken
53
+ */
54
+ export declare const handleNumericPaste: (event: any, applyValue: any) => void;
55
+ /**
56
+ * Blocks keystrokes that cannot form part of a decimal number.
57
+ * Rejecting the key press rather than the resulting value keeps the caret in place;
58
+ * pasting is handled by handleNumericPaste, and drag-drop by the isPartialNumericInput
59
+ * check on change.
60
+ * @param {object} event - React keyboard event from a numeric input
61
+ */
62
+ export declare const handleNumericKeyDown: (event: any) => void;
10
63
  /**
11
64
  * Parses a filter value based on the column type and definition
12
65
  * @param {*} value - The raw filter value