impact-ui 4.0.1-alpha.24 → 4.0.1-alpha.27
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.
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -4
- package/dist/_virtual/index4.js +2 -4
- package/dist/_virtual/index5.js +4 -2
- package/dist/_virtual/index6.js +4 -2
- package/dist/components/BottomSheet/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +45 -30
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +15 -14
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +3 -2
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +30 -11
- package/dist/components/Table/agGridLocale.d.ts +1 -1
- package/dist/components/Table/agGridLocale.d.ts.map +1 -1
- package/dist/components/Table/agGridLocale.js +3 -7
- package/dist/components/Table/filterUtils.d.ts +53 -0
- package/dist/components/Table/filterUtils.d.ts.map +1 -1
- package/dist/components/Table/filterUtils.js +74 -0
- package/dist/components/Table/filterUtils.test.d.ts +2 -0
- package/dist/components/Table/filterUtils.test.d.ts.map +1 -0
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +5 -3
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +1 -0
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
- package/dist/components/TableOld/index.d.ts.map +1 -1
- package/dist/components/TableOld/index.js +4 -2
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts +27 -0
- package/dist/components/TableV36/AdvanceSearchModalItem.d.ts.map +1 -0
- package/dist/components/TableV36/AdvanceSortModal.d.ts +8 -0
- package/dist/components/TableV36/AdvanceSortModal.d.ts.map +1 -0
- package/dist/components/TableV36/AdvanceSortModal.js +297 -0
- package/dist/components/TableV36/AgGridHeader.d.ts +16 -0
- package/dist/components/TableV36/AgGridHeader.d.ts.map +1 -0
- package/dist/components/TableV36/AgGridHeader.js +799 -0
- package/dist/components/TableV36/CommentsPortal.d.ts +31 -0
- package/dist/components/TableV36/CommentsPortal.d.ts.map +1 -0
- package/dist/components/TableV36/CommentsPortal.js +362 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts +13 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModal.js +282 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts +16 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -0
- package/dist/components/TableV36/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +302 -0
- package/dist/components/TableV36/NoComments.d.ts +16 -0
- package/dist/components/TableV36/NoComments.d.ts.map +1 -0
- package/dist/components/TableV36/NoComments.js +237 -0
- package/dist/components/TableV36/Table.types.d.ts +89 -0
- package/dist/components/TableV36/Table.types.d.ts.map +1 -0
- package/dist/components/TableV36/actionBar.d.ts +7 -0
- package/dist/components/TableV36/actionBar.d.ts.map +1 -0
- package/dist/components/TableV36/actionBar.js +31 -0
- package/dist/components/TableV36/advanceSearchModal.d.ts +20 -0
- package/dist/components/TableV36/advanceSearchModal.d.ts.map +1 -0
- package/dist/components/TableV36/filterUtils.d.ts +133 -0
- package/dist/components/TableV36/filterUtils.d.ts.map +1 -0
- package/dist/components/TableV36/filterUtils.js +478 -0
- package/dist/components/TableV36/index.d.ts +3 -0
- package/dist/components/TableV36/index.d.ts.map +1 -0
- package/dist/components/TableV36/index.js +1603 -0
- package/dist/components/TableV36/mockData.d.ts +39 -0
- package/dist/components/TableV36/mockData.d.ts.map +1 -0
- package/dist/components/TableV36/tableFunctions.d.ts +63 -0
- package/dist/components/TableV36/tableFunctions.d.ts.map +1 -0
- package/dist/components/TableV36/tableFunctions.js +1796 -0
- package/dist/components/TableV36/tableHeader.d.ts +80 -0
- package/dist/components/TableV36/tableHeader.d.ts.map +1 -0
- package/dist/components/TableV36/tableHeader.js +396 -0
- package/dist/components/TableV36/tableIcons.d.ts +3 -0
- package/dist/components/TableV36/tableIcons.d.ts.map +1 -0
- package/dist/components/TableV36/tableMoreOptions.d.ts +52 -0
- package/dist/components/TableV36/tableMoreOptions.d.ts.map +1 -0
- package/dist/components/TableV36/tableMoreOptions.js +324 -0
- package/dist/components/TableV36/tablePagination.d.ts +7 -0
- package/dist/components/TableV36/tablePagination.d.ts.map +1 -0
- package/dist/components/TableV36/tablePagination.js +67 -0
- package/dist/components/TableV36/tableSettings.d.ts +41 -0
- package/dist/components/TableV36/tableSettings.d.ts.map +1 -0
- package/dist/components/TableV36/tableSettings.js +317 -0
- package/dist/components/TableV36/withCommentIcon.d.ts +7 -0
- package/dist/components/TableV36/withCommentIcon.d.ts.map +1 -0
- package/dist/components/TableV36/withCommentIcon.js +108 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/locales/de-DE.json.d.ts +1 -0
- package/dist/locales/de-DE.json.js +1 -0
- package/dist/locales/en-US.json.d.ts +1 -0
- package/dist/locales/en-US.json.js +1 -0
- package/dist/mcp-component-registry.json +1 -1
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +0 -1
- /package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType → ChatEditedMessageType}/ChatEditedMessageType.d.ts +0 -0
- /package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType → ChatEditedMessageType}/ChatEditedMessageType.js +0 -0
package/dist/_virtual/index13.js
CHANGED
package/dist/_virtual/index14.js
CHANGED
package/dist/_virtual/index15.js
CHANGED
package/dist/_virtual/index16.js
CHANGED
package/dist/_virtual/index2.js
CHANGED
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
3
|
+
propTypes as __module
|
|
6
4
|
};
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import * as index from "../node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/index.js";
|
|
3
|
-
const require$$2 = /* @__PURE__ */ getAugmentedNamespace(index);
|
|
1
|
+
var reactIs = { exports: {} };
|
|
4
2
|
export {
|
|
5
|
-
|
|
3
|
+
reactIs as __module
|
|
6
4
|
};
|
package/dist/_virtual/index5.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
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);
|
|
2
4
|
export {
|
|
3
|
-
|
|
5
|
+
require$$1 as default
|
|
4
6
|
};
|
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,4 +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
4
|
export {
|
|
3
|
-
|
|
5
|
+
require$$2 as default
|
|
4
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,2BAA2B,CAAC;AAEnC,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EACb,SAAgC,EAChC,cAAsB,EACtB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/BottomSheet/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,2BAA2B,CAAC;AAEnC,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EACb,SAAgC,EAChC,cAAsB,EACtB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAgElB;yBA3Ee,WAAW"}
|
|
@@ -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":"
|
|
1
|
+
{"version":3,"file":"AgGridHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/AgGridHeader.tsx"],"names":[],"mappings":"AA8BA,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,oBAA2B,EAC3B,GAAG,IAAI,EACR;;;;;;;;;;CAAA,kDAm8BA;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 { useTranslation } from "../../i18n/useTranslation.js";
|
|
16
16
|
import Badge from "../../node_modules/@mui/material/Badge/Badge.js";
|
|
@@ -28,7 +28,7 @@ function AgGridHeader({
|
|
|
28
28
|
enableHeaderTextWrap = true,
|
|
29
29
|
...rest
|
|
30
30
|
}) {
|
|
31
|
-
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;
|
|
31
|
+
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;
|
|
32
32
|
const { t } = useTranslation();
|
|
33
33
|
if (!rest.column || !rest.api) {
|
|
34
34
|
return null;
|
|
@@ -290,6 +290,11 @@ function AgGridHeader({
|
|
|
290
290
|
}, debounceTime),
|
|
291
291
|
[]
|
|
292
292
|
);
|
|
293
|
+
const applySearchText = (value) => {
|
|
294
|
+
setSearchText(value);
|
|
295
|
+
setHasActiveSearch(!!value);
|
|
296
|
+
debouncedHandleSearchChange(value);
|
|
297
|
+
};
|
|
293
298
|
const handleSearch = (e) => {
|
|
294
299
|
var _a2, _b2;
|
|
295
300
|
e.stopPropagation();
|
|
@@ -326,6 +331,7 @@ function AgGridHeader({
|
|
|
326
331
|
}
|
|
327
332
|
updateEmptyStateOverlay();
|
|
328
333
|
};
|
|
334
|
+
const isNumericSearchColumn = isNumericValueColumn((_l = rest.column) == null ? void 0 : _l.colDef);
|
|
329
335
|
const MIN_SEARCH_WIDTH = 200;
|
|
330
336
|
const expandColumnIfNeeded = () => {
|
|
331
337
|
var _a2;
|
|
@@ -421,7 +427,7 @@ function AgGridHeader({
|
|
|
421
427
|
colDef.suppressHeaderKeyboardEvent = originalSuppressHeaderKeyboardEventRef.current;
|
|
422
428
|
}
|
|
423
429
|
};
|
|
424
|
-
}, [isInputFocused, (
|
|
430
|
+
}, [isInputFocused, (_m = rest.column) == null ? void 0 : _m.colId]);
|
|
425
431
|
useEffect(() => {
|
|
426
432
|
if (containerRef.current) {
|
|
427
433
|
setContainerHeight(containerRef.current.clientHeight);
|
|
@@ -431,15 +437,15 @@ function AgGridHeader({
|
|
|
431
437
|
"div",
|
|
432
438
|
{
|
|
433
439
|
ref: containerRef,
|
|
434
|
-
className: `custom-ag-header-container ${((
|
|
440
|
+
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" : ""}`,
|
|
435
441
|
onClick: () => rest.onClick(),
|
|
436
442
|
children: showDatePicker ? /* @__PURE__ */ jsxs("div", { className: `ia-search-input-field ia-search-input-narrow`, children: [
|
|
437
|
-
((
|
|
443
|
+
((_w = (_v = rest.column) == null ? void 0 : _v.colDef) == null ? void 0 : _w.thirdOptionAsDateRangePicker) ? /* @__PURE__ */ jsx(
|
|
438
444
|
DateRangePicker,
|
|
439
445
|
{
|
|
440
446
|
fullWidth: true,
|
|
441
447
|
withPortal: true,
|
|
442
|
-
customIcon: ((
|
|
448
|
+
customIcon: ((_y = (_x = rest.column) == null ? void 0 : _x.colDef) == null ? void 0 : _y.advanceSearchEnabled) && /* @__PURE__ */ jsx(
|
|
443
449
|
default_1,
|
|
444
450
|
{
|
|
445
451
|
className: "ia-search-input-field-custom-icon",
|
|
@@ -456,7 +462,7 @@ function AgGridHeader({
|
|
|
456
462
|
}
|
|
457
463
|
}
|
|
458
464
|
),
|
|
459
|
-
displayFormat: ((
|
|
465
|
+
displayFormat: ((_A = (_z = rest.column) == null ? void 0 : _z.colDef) == null ? void 0 : _A.displayFormat) || "MM-DD-YYYY",
|
|
460
466
|
endDate,
|
|
461
467
|
handleDatesChange: (start, end) => {
|
|
462
468
|
setStartDate(start);
|
|
@@ -489,7 +495,7 @@ function AgGridHeader({
|
|
|
489
495
|
fullWidth: true,
|
|
490
496
|
showMonthYearSelect: true,
|
|
491
497
|
withPortal: true,
|
|
492
|
-
customIcon: ((
|
|
498
|
+
customIcon: ((_C = (_B = rest.column) == null ? void 0 : _B.colDef) == null ? void 0 : _C.advanceSearchEnabled) && /* @__PURE__ */ jsx(
|
|
493
499
|
default_1,
|
|
494
500
|
{
|
|
495
501
|
className: "ia-search-input-field-custom-icon",
|
|
@@ -505,7 +511,7 @@ function AgGridHeader({
|
|
|
505
511
|
}
|
|
506
512
|
}
|
|
507
513
|
),
|
|
508
|
-
displayFormat: ((
|
|
514
|
+
displayFormat: ((_E = (_D = rest.column) == null ? void 0 : _D.colDef) == null ? void 0 : _E.displayFormat) || "MM-DD-YYYY",
|
|
509
515
|
maxDate: /* @__PURE__ */ new Date("2100-12-31"),
|
|
510
516
|
minDate: /* @__PURE__ */ new Date("2000-01-01"),
|
|
511
517
|
placeholder: t("table.filter.selectDate"),
|
|
@@ -541,9 +547,9 @@ function AgGridHeader({
|
|
|
541
547
|
"div",
|
|
542
548
|
{
|
|
543
549
|
className: `ia-search-input-field ia-search-input-narrow
|
|
544
|
-
${((
|
|
550
|
+
${((_G = (_F = rest.column) == null ? void 0 : _F.colDef) == null ? void 0 : _G.thirdOptionAsDropdown) ? "with-dropdown" : ""}`,
|
|
545
551
|
children: [
|
|
546
|
-
((
|
|
552
|
+
((_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(
|
|
547
553
|
"div",
|
|
548
554
|
{
|
|
549
555
|
id: "ia-select-option-dropdown-container",
|
|
@@ -559,12 +565,12 @@ function AgGridHeader({
|
|
|
559
565
|
{
|
|
560
566
|
currentOptions: currentDropdownOptions,
|
|
561
567
|
dropDownPortalClassName: "ag-select-dropdown-portal",
|
|
562
|
-
initialOptions: (
|
|
568
|
+
initialOptions: (_M = (_L = rest == null ? void 0 : rest.column) == null ? void 0 : _L.colDef) == null ? void 0 : _M.thirdOptionDropdownOptions,
|
|
563
569
|
isClearable: true,
|
|
564
|
-
isMulti: (
|
|
570
|
+
isMulti: (_O = (_N = rest == null ? void 0 : rest.column) == null ? void 0 : _N.colDef) == null ? void 0 : _O.enableMultiSelect,
|
|
565
571
|
isOpen: isDropdownOpen,
|
|
566
572
|
isSelectAll,
|
|
567
|
-
isWithSearch: (
|
|
573
|
+
isWithSearch: (_Q = (_P = rest == null ? void 0 : rest.column) == null ? void 0 : _P.colDef) == null ? void 0 : _Q.enableSearch,
|
|
568
574
|
placeholder: t("table.filter.selectOption"),
|
|
569
575
|
selectedOptions: selectedDropdownOption,
|
|
570
576
|
setCurrentOptions: setCurrentDropdownOptions,
|
|
@@ -583,7 +589,7 @@ function AgGridHeader({
|
|
|
583
589
|
}
|
|
584
590
|
}
|
|
585
591
|
},
|
|
586
|
-
toggleSelectAll: (
|
|
592
|
+
toggleSelectAll: (_S = (_R = rest == null ? void 0 : rest.column) == null ? void 0 : _R.colDef) == null ? void 0 : _S.enableMultiSelect,
|
|
587
593
|
onClearAll: () => {
|
|
588
594
|
setSelectedDropdownOption(isMultiSelect ? [] : null);
|
|
589
595
|
setHasActiveSearch(false);
|
|
@@ -598,10 +604,10 @@ function AgGridHeader({
|
|
|
598
604
|
},
|
|
599
605
|
withPortal: true,
|
|
600
606
|
minWidth: "100%",
|
|
601
|
-
...(
|
|
607
|
+
...(_U = (_T = rest.column) == null ? void 0 : _T.colDef) == null ? void 0 : _U.selectProps
|
|
602
608
|
}
|
|
603
609
|
),
|
|
604
|
-
((
|
|
610
|
+
((_W = (_V = rest.column) == null ? void 0 : _V.colDef) == null ? void 0 : _W.advanceSearchEnabled) && /* @__PURE__ */ jsx(
|
|
605
611
|
default_1,
|
|
606
612
|
{
|
|
607
613
|
className: "ia-search-input-field-custom-icon",
|
|
@@ -634,8 +640,15 @@ function AgGridHeader({
|
|
|
634
640
|
Input,
|
|
635
641
|
{
|
|
636
642
|
ref: inputRef,
|
|
637
|
-
iconClickOnDisabled: (
|
|
638
|
-
|
|
643
|
+
iconClickOnDisabled: (_Y = (_X = rest.column) == null ? void 0 : _X.colDef) == null ? void 0 : _Y.toShowDuplicateColumnInAdvanceSearch,
|
|
644
|
+
inputProps: isNumericSearchColumn ? {
|
|
645
|
+
inputMode: "decimal",
|
|
646
|
+
onKeyDown: handleNumericKeyDown,
|
|
647
|
+
onPaste: (e) => {
|
|
648
|
+
handleNumericPaste(e, applySearchText);
|
|
649
|
+
}
|
|
650
|
+
} : void 0,
|
|
651
|
+
isDisabled: (__ = (_Z = rest.column) == null ? void 0 : _Z.colDef) == null ? void 0 : __.toShowDuplicateColumnInAdvanceSearch,
|
|
639
652
|
placeholder: t("common.search"),
|
|
640
653
|
rightIcon: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
641
654
|
searchText.toString().length > 0 && /* @__PURE__ */ jsx(
|
|
@@ -649,7 +662,7 @@ function AgGridHeader({
|
|
|
649
662
|
}
|
|
650
663
|
}
|
|
651
664
|
),
|
|
652
|
-
((
|
|
665
|
+
((_aa = (_$ = rest.column) == null ? void 0 : _$.colDef) == null ? void 0 : _aa.advanceSearchEnabled) && /* @__PURE__ */ jsx(
|
|
653
666
|
default_1,
|
|
654
667
|
{
|
|
655
668
|
onClick: () => {
|
|
@@ -668,9 +681,11 @@ function AgGridHeader({
|
|
|
668
681
|
] }),
|
|
669
682
|
value: searchText,
|
|
670
683
|
onChange: (e) => {
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
684
|
+
const nextValue = e.target.value;
|
|
685
|
+
if (isNumericSearchColumn && !isPartialNumericInput(nextValue)) {
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
applySearchText(nextValue);
|
|
674
689
|
}
|
|
675
690
|
}
|
|
676
691
|
),
|
|
@@ -694,9 +709,9 @@ function AgGridHeader({
|
|
|
694
709
|
/* @__PURE__ */ jsxs(
|
|
695
710
|
"div",
|
|
696
711
|
{
|
|
697
|
-
className: `ag-header-cell-text ${((
|
|
712
|
+
className: `ag-header-cell-text ${((_ca = (_ba = rest.column) == null ? void 0 : _ba.colDef) == null ? void 0 : _ca.sortable) ? "sortable" : ""} ${enableHeaderTextWrap ? "header-wrap-enabled" : ""}`,
|
|
698
713
|
children: [
|
|
699
|
-
((
|
|
714
|
+
((_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(
|
|
700
715
|
"div",
|
|
701
716
|
{
|
|
702
717
|
ref: headerTextRef,
|
|
@@ -719,8 +734,8 @@ function AgGridHeader({
|
|
|
719
734
|
)
|
|
720
735
|
}
|
|
721
736
|
),
|
|
722
|
-
(
|
|
723
|
-
((
|
|
737
|
+
(_ia = (_ha = rest.column) == null ? void 0 : _ha.colDef) == null ? void 0 : _ia.headerIcons,
|
|
738
|
+
((_ka = (_ja = rest.column) == null ? void 0 : _ja.colDef) == null ? void 0 : _ka.sortable) && /* @__PURE__ */ jsx(
|
|
724
739
|
"img",
|
|
725
740
|
{
|
|
726
741
|
alt: "TableSortIcon",
|
|
@@ -737,10 +752,10 @@ function AgGridHeader({
|
|
|
737
752
|
{
|
|
738
753
|
className: `ia-icon-div ${hasActiveSearch ? "has-active-search" : ""} ${menuVisible ? "menu-visible" : ""}`,
|
|
739
754
|
children: [
|
|
740
|
-
(
|
|
755
|
+
(_na = (_ma = (_la = rest.column) == null ? void 0 : _la.colDef) == null ? void 0 : _ma.customHeaderIcons) == null ? void 0 : _na.map((icon) => {
|
|
741
756
|
return icon;
|
|
742
757
|
}),
|
|
743
|
-
((
|
|
758
|
+
((_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(
|
|
744
759
|
default_1$2,
|
|
745
760
|
{
|
|
746
761
|
fontSize: "small",
|
|
@@ -761,7 +776,7 @@ function AgGridHeader({
|
|
|
761
776
|
} : handleSearch
|
|
762
777
|
}
|
|
763
778
|
) }),
|
|
764
|
-
!((
|
|
779
|
+
!((_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(
|
|
765
780
|
"button",
|
|
766
781
|
{
|
|
767
782
|
ref: menuRef,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewAdvanceSearchModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;;CAU9B,
|
|
1
|
+
{"version":3,"file":"NewAdvanceSearchModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;;CAU9B,4CA0RA,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";
|
|
@@ -41,7 +41,6 @@ const NewAdvanceSearchModal = ({
|
|
|
41
41
|
const {
|
|
42
42
|
control,
|
|
43
43
|
handleSubmit,
|
|
44
|
-
watch,
|
|
45
44
|
formState: { isValid: isFormValid },
|
|
46
45
|
setValue,
|
|
47
46
|
getValues,
|
|
@@ -52,14 +51,15 @@ const NewAdvanceSearchModal = ({
|
|
|
52
51
|
name: "filters",
|
|
53
52
|
keyName: "fieldId"
|
|
54
53
|
});
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
|
|
54
|
+
const columnOptions = useMemo(() => convertToOptions(colDefs || []), [colDefs]);
|
|
55
|
+
const watchedFilters = useWatch({ control, name: "filters" });
|
|
56
|
+
const selectedColumnValues = useMemo(
|
|
57
|
+
() => (watchedFilters || []).map((f) => {
|
|
58
58
|
var _a;
|
|
59
59
|
return (_a = f == null ? void 0 : f.column) == null ? void 0 : _a.value;
|
|
60
|
-
}).filter(Boolean)
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
}).filter(Boolean),
|
|
61
|
+
[watchedFilters]
|
|
62
|
+
);
|
|
63
63
|
const [hasInitializedWithColumnId, setHasInitializedWithColumnId] = useState(false);
|
|
64
64
|
const prevIsAdvanceSearchRef = React__default.useRef(false);
|
|
65
65
|
useEffect(() => {
|
|
@@ -86,8 +86,8 @@ const NewAdvanceSearchModal = ({
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
if (!hasValidFilters) {
|
|
89
|
-
const
|
|
90
|
-
const existingFilters =
|
|
89
|
+
const formValues = getValues();
|
|
90
|
+
const existingFilters = formValues.filters || [];
|
|
91
91
|
const columnExists = existingFilters.some(
|
|
92
92
|
(filter) => {
|
|
93
93
|
var _a2;
|
|
@@ -132,8 +132,8 @@ const NewAdvanceSearchModal = ({
|
|
|
132
132
|
toggleAdvanceSearch();
|
|
133
133
|
};
|
|
134
134
|
const handleSearchApplyClick = () => {
|
|
135
|
-
const
|
|
136
|
-
const validFilters =
|
|
135
|
+
const formValues = formMethods.getValues().filters || [];
|
|
136
|
+
const validFilters = formValues.filter((filter) => {
|
|
137
137
|
var _a, _b, _c, _d, _e, _f;
|
|
138
138
|
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) !== "";
|
|
139
139
|
if (activeSearchType === "advanceSearch") {
|
|
@@ -231,15 +231,16 @@ const NewAdvanceSearchModal = ({
|
|
|
231
231
|
{
|
|
232
232
|
activeSearchType,
|
|
233
233
|
colDefs,
|
|
234
|
+
columnOptions,
|
|
234
235
|
control,
|
|
235
236
|
currentColumnId,
|
|
236
237
|
field,
|
|
237
238
|
fields,
|
|
238
|
-
filteredColumnsInitialOptions,
|
|
239
239
|
getValues,
|
|
240
240
|
index,
|
|
241
241
|
isLastVisible: fields.length === 1,
|
|
242
|
-
remove
|
|
242
|
+
remove,
|
|
243
|
+
selectedColumnValues
|
|
243
244
|
},
|
|
244
245
|
field.fieldId || field.id
|
|
245
246
|
)) }),
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
declare const NewAdvanceSearchModalItem: ({ colDefs, control, index, field, remove,
|
|
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
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"NewAdvanceSearchModalItem.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.tsx"],"names":[],"mappings":"AAsBA,QAAA,MAAM,yBAAyB,GAAI;;;;;;;;;;;;;;CAclC,4CA4bA,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,7 +9,7 @@ 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
|
import { useTranslation } from "../../../i18n/useTranslation.js";
|
|
14
14
|
const NewAdvanceSearchModalItem = ({
|
|
15
15
|
colDefs,
|
|
@@ -17,7 +17,8 @@ const NewAdvanceSearchModalItem = ({
|
|
|
17
17
|
index,
|
|
18
18
|
field,
|
|
19
19
|
remove,
|
|
20
|
-
|
|
20
|
+
columnOptions,
|
|
21
|
+
selectedColumnValues,
|
|
21
22
|
activeSearchType,
|
|
22
23
|
isLastVisible,
|
|
23
24
|
currentColumnId,
|
|
@@ -53,6 +54,15 @@ const NewAdvanceSearchModalItem = ({
|
|
|
53
54
|
required: true
|
|
54
55
|
}
|
|
55
56
|
});
|
|
57
|
+
const rowColumnOptions = useMemo(() => {
|
|
58
|
+
var _a2;
|
|
59
|
+
const ownValue = (_a2 = columnField.value) == null ? void 0 : _a2.value;
|
|
60
|
+
const takenByOtherRows = new Set(
|
|
61
|
+
(selectedColumnValues || []).filter((value) => value !== ownValue)
|
|
62
|
+
);
|
|
63
|
+
return (columnOptions || []).filter((option) => !takenByOtherRows.has(option.value));
|
|
64
|
+
}, [columnOptions, selectedColumnValues, columnField.value]);
|
|
65
|
+
const isNumericColumn = isNumericValueColumn(currentColumnDef);
|
|
56
66
|
useEffect(() => {
|
|
57
67
|
var _a2;
|
|
58
68
|
if (!((_a2 = columnField.value) == null ? void 0 : _a2.value)) return;
|
|
@@ -105,9 +115,7 @@ const NewAdvanceSearchModalItem = ({
|
|
|
105
115
|
var _a2;
|
|
106
116
|
if (currentColumnId && index === 0 && // Only auto-select for the first filter
|
|
107
117
|
!columnField.value && ((_a2 = columnField.value) == null ? void 0 : _a2.value) !== currentColumnId) {
|
|
108
|
-
const columnOption =
|
|
109
|
-
(opt) => opt.value === currentColumnId
|
|
110
|
-
);
|
|
118
|
+
const columnOption = rowColumnOptions == null ? void 0 : rowColumnOptions.find((opt) => opt.value === currentColumnId);
|
|
111
119
|
const allOptions = convertToOptions(colDefs || []);
|
|
112
120
|
const columnOptionFromAll = allOptions.find((opt) => opt.value === currentColumnId);
|
|
113
121
|
const optionToSelect = columnOption || columnOptionFromAll;
|
|
@@ -115,7 +123,7 @@ const NewAdvanceSearchModalItem = ({
|
|
|
115
123
|
columnField.onChange(optionToSelect);
|
|
116
124
|
}
|
|
117
125
|
}
|
|
118
|
-
}, [currentColumnId, index, columnField.value,
|
|
126
|
+
}, [currentColumnId, index, columnField.value, rowColumnOptions, colDefs]);
|
|
119
127
|
const handleClickOutside = (event) => {
|
|
120
128
|
if (isColumnOptionsOpen || isThirdOptionDropdownOpen || isOperationOptionsOpen && !event.target.closest(".ia-table-search-content-body")) {
|
|
121
129
|
setIsColumnOptionsOpen(false);
|
|
@@ -132,8 +140,8 @@ const NewAdvanceSearchModalItem = ({
|
|
|
132
140
|
/* @__PURE__ */ jsx("div", { style: { display: "flex", flexDirection: "column", flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
133
141
|
Select,
|
|
134
142
|
{
|
|
135
|
-
currentOptions:
|
|
136
|
-
initialOptions:
|
|
143
|
+
currentOptions: rowColumnOptions,
|
|
144
|
+
initialOptions: rowColumnOptions,
|
|
137
145
|
isOpen: isColumnOptionsOpen,
|
|
138
146
|
minWidth: activeSearchType !== "advanceSearch" ? 400 : void 0,
|
|
139
147
|
name: `filters.${index}.column`,
|
|
@@ -268,12 +276,23 @@ const NewAdvanceSearchModalItem = ({
|
|
|
268
276
|
) : /* @__PURE__ */ jsx(
|
|
269
277
|
Input,
|
|
270
278
|
{
|
|
279
|
+
inputProps: isNumericColumn ? {
|
|
280
|
+
inputMode: "decimal",
|
|
281
|
+
onKeyDown: handleNumericKeyDown,
|
|
282
|
+
onPaste: (event) => {
|
|
283
|
+
handleNumericPaste(event, valueField.onChange);
|
|
284
|
+
}
|
|
285
|
+
} : void 0,
|
|
271
286
|
isDisabled: activeSearchType === "advanceSearch" && !operationField.value,
|
|
272
287
|
name: `filters.${index}.value`,
|
|
273
|
-
placeholder: t("table.search.enterText"),
|
|
288
|
+
placeholder: isNumericColumn ? t("table.search.enterNumber") : t("table.search.enterText"),
|
|
274
289
|
value: valueField.value || "",
|
|
275
290
|
onChange: (e) => {
|
|
276
|
-
|
|
291
|
+
const nextValue = e.target.value;
|
|
292
|
+
if (isNumericColumn && !isPartialNumericInput(nextValue)) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
valueField.onChange(nextValue);
|
|
277
296
|
}
|
|
278
297
|
}
|
|
279
298
|
) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agGridLocale.d.ts","sourceRoot":"","sources":["../../../src/components/Table/agGridLocale.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"agGridLocale.d.ts","sourceRoot":"","sources":["../../../src/components/Table/agGridLocale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAG3C,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,oFAQjC,CAAC;AAEX,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAE7E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,EACjD,MAAM,EAAE,MAAM,GACb,gBAAgB,CAGlB;AAED,UAAU,mBAAmB;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,aAAa,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,IACjF,QAAQ,mBAAmB,KAAG,MAAM,CAuB7C;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,WAAW,GAAG,IAAI,EAC7B,UAAU,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,GAC9C,IAAI,CA4BN"}
|