sccoreui 6.5.23 → 6.5.24
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/components/ag-grid/advancedFeature/global-search.js +1 -0
- package/dist/components/ag-grid/advancedFeature/new-filter/table-filter.js +2 -1
- package/dist/components/ag-grid/context-provider.js +2 -1
- package/dist/components/ag-grid/parent-for-grid.js +3 -2
- package/dist/types/components/ag-grid/context-provider.d.ts +1 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ const skeleton_1 = require("primereact/skeleton");
|
|
|
13
13
|
function Search({ searchPlaceHolder }) {
|
|
14
14
|
const { featureDetails, setFeatureDetails, rowModelType, gridApi, quickSearch, conditionsToDisplay, setGridViewData, gridView, inputValue, deboucedValue, setInputValue } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
15
15
|
const isDisabled = (0, helper_1.isComponentDisable)(conditionsToDisplay.displaySearch);
|
|
16
|
+
console.log(deboucedValue, inputValue, "input-data-values");
|
|
16
17
|
(0, react_1.useEffect)(() => {
|
|
17
18
|
var _a, _b, _c;
|
|
18
19
|
if (rowModelType === constants_1.ROWMODELTYPE.CLIENT_SIDE && quickSearch) {
|
|
@@ -28,7 +28,7 @@ const form_1 = tslib_1.__importDefault(require("../../../form/form"));
|
|
|
28
28
|
*/
|
|
29
29
|
const TableFilter = () => {
|
|
30
30
|
// Context values for filter state management
|
|
31
|
-
const { featureDetails, columnData, conditionType, conditionTypes, globalFilters, setConditionType, setGlobalFilters, setFeatureDetails, callGrid, setViewName, viewName, createView, enableViewCreate, filterModelText, enableAdvancedFilter, gridApi, conditionsToDisplay, renderSelectField, renderMultiSelectField, } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
31
|
+
const { featureDetails, columnData, conditionType, conditionTypes, globalFilters, setConditionType, setGlobalFilters, setFeatureDetails, callGrid, setViewName, viewName, createView, enableViewCreate, filterModelText, enableAdvancedFilter, gridApi, conditionsToDisplay, renderSelectField, renderMultiSelectField, onFiltersCleared, } = (0, react_1.useContext)(context_provider_1.FeatureContext);
|
|
32
32
|
// Form reference for validation
|
|
33
33
|
const formRef = (0, react_1.useRef)(null);
|
|
34
34
|
// Column mapping keys
|
|
@@ -292,6 +292,7 @@ const TableFilter = () => {
|
|
|
292
292
|
setViewName("");
|
|
293
293
|
formSetter === null || formSetter === void 0 ? void 0 : formSetter("conditions", [newDefault]);
|
|
294
294
|
formSetter === null || formSetter === void 0 ? void 0 : formSetter("viewName", "");
|
|
295
|
+
onFiltersCleared === null || onFiltersCleared === void 0 ? void 0 : onFiltersCleared();
|
|
295
296
|
};
|
|
296
297
|
/**
|
|
297
298
|
* Create a saved view from current filter configuration
|
|
@@ -9,7 +9,7 @@ const hooks_1 = require("primereact/hooks");
|
|
|
9
9
|
const constants_1 = tslib_1.__importDefault(require("./constants"));
|
|
10
10
|
exports.FeatureContext = (0, react_1.createContext)(null);
|
|
11
11
|
function MyProvider({ children, value }) {
|
|
12
|
-
const { featureDetails, setFeatureDetails, gridData, callGrid, totalRecords, initialFeature, defaultFilters, defaultSearchText, defaultSort, createView, enableViewCreate, filterModelText, sortModelText, recordDetailModelText, sidePanelText, sortOptions, filterConditions, clearFilters, setGridData, gridApi, updateColumnsForGrid, enableManageColumnsCallback, columnToRender, selectedGroup, setSelectedGroup, initialCheckBoxData, intialColumns, setIntialColumns, rowModelType, quickSearch, enableAdvancedFilter, conditionsToDisplay, gridViewFun, gridViewData, setGridViewData, gridView, serverSideSelectRow, defaultViewName, isDataLoading,
|
|
12
|
+
const { featureDetails, setFeatureDetails, gridData, callGrid, totalRecords, initialFeature, defaultFilters, defaultSearchText, defaultSort, createView, enableViewCreate, filterModelText, sortModelText, recordDetailModelText, sidePanelText, sortOptions, filterConditions, clearFilters, onFiltersCleared, setGridData, gridApi, updateColumnsForGrid, enableManageColumnsCallback, columnToRender, selectedGroup, setSelectedGroup, initialCheckBoxData, intialColumns, setIntialColumns, rowModelType, quickSearch, enableAdvancedFilter, conditionsToDisplay, gridViewFun, gridViewData, setGridViewData, gridView, serverSideSelectRow, defaultViewName, isDataLoading,
|
|
13
13
|
// dynamicText
|
|
14
14
|
renderSelectField, renderMultiSelectField, } = value;
|
|
15
15
|
// States for sort
|
|
@@ -185,6 +185,7 @@ function MyProvider({ children, value }) {
|
|
|
185
185
|
gridView,
|
|
186
186
|
inputValue, deboucedValue, setInputValue, serverSideSelectRow, isDataLoading,
|
|
187
187
|
renderSelectField, renderMultiSelectField,
|
|
188
|
+
onFiltersCleared,
|
|
188
189
|
} }, { children: children })));
|
|
189
190
|
}
|
|
190
191
|
exports.default = MyProvider;
|
|
@@ -445,7 +445,7 @@ function ParentForGrid(props) {
|
|
|
445
445
|
const newFilterQueries = ((_a = props === null || props === void 0 ? void 0 : props.defaultFilters) === null || _a === void 0 ? void 0 : _a.length)
|
|
446
446
|
? (0, helper_1.applyDefaultFilters)(props.defaultFilters)
|
|
447
447
|
: [];
|
|
448
|
-
const newSearchText = (props === null || props === void 0 ? void 0 : props.defaultSearchText) || "";
|
|
448
|
+
const newSearchText = (props === null || props === void 0 ? void 0 : props.defaultSearchText) || featureDetails.searchedText || "";
|
|
449
449
|
const currentFeature = Object.assign(Object.assign({}, featureDetails), { filterQueries: newFilterQueries, searchedText: newSearchText });
|
|
450
450
|
setDefaultFilters((props === null || props === void 0 ? void 0 : props.defaultFilters) || []);
|
|
451
451
|
setDefaultSearchText(newSearchText);
|
|
@@ -528,7 +528,7 @@ function ParentForGrid(props) {
|
|
|
528
528
|
initialFeature,
|
|
529
529
|
defaultFilters,
|
|
530
530
|
defaultSearchText,
|
|
531
|
-
defaultSort, createView: props === null || props === void 0 ? void 0 : props.createView, enableViewCreate: (_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.enableViewCreate, filterModelText: (_b = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _b === void 0 ? void 0 : _b.filterModelText, sortModelText: (_c = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _c === void 0 ? void 0 : _c.sortModelText, recordDetailModelText: (_d = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _d === void 0 ? void 0 : _d.recordDetailModelText, sidePanelText: (_e = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _e === void 0 ? void 0 : _e.sidePanelText, sortOptions: (props === null || props === void 0 ? void 0 : props.sortOptions) ? props.sortOptions : constants_1.COLUMN_SORT_OPTIONS, filterConditions: props === null || props === void 0 ? void 0 : props.filterConditions, clearFilters: props === null || props === void 0 ? void 0 : props.clearFilters, setGridData, gridApi: gridRef, updateColumnsForGrid: props === null || props === void 0 ? void 0 : props.updateColumnsForGrid, enableManageColumnsCallback: props.enableManageColumnsCallback, columnToRender: gridData.columnData, selectedGroup: selectedGroup, setSelectedGroup: setSelectedGroup, initialCheckBoxData: initialCheckBoxData, intialColumns,
|
|
531
|
+
defaultSort, createView: props === null || props === void 0 ? void 0 : props.createView, enableViewCreate: (_a = props === null || props === void 0 ? void 0 : props.conditionsToDisplay) === null || _a === void 0 ? void 0 : _a.enableViewCreate, filterModelText: (_b = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _b === void 0 ? void 0 : _b.filterModelText, sortModelText: (_c = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _c === void 0 ? void 0 : _c.sortModelText, recordDetailModelText: (_d = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _d === void 0 ? void 0 : _d.recordDetailModelText, sidePanelText: (_e = props === null || props === void 0 ? void 0 : props.dynamicText) === null || _e === void 0 ? void 0 : _e.sidePanelText, sortOptions: (props === null || props === void 0 ? void 0 : props.sortOptions) ? props.sortOptions : constants_1.COLUMN_SORT_OPTIONS, filterConditions: props === null || props === void 0 ? void 0 : props.filterConditions, clearFilters: props === null || props === void 0 ? void 0 : props.clearFilters, onFiltersCleared: props === null || props === void 0 ? void 0 : props.onFiltersCleared, setGridData, gridApi: gridRef, updateColumnsForGrid: props === null || props === void 0 ? void 0 : props.updateColumnsForGrid, enableManageColumnsCallback: props.enableManageColumnsCallback, columnToRender: gridData.columnData, selectedGroup: selectedGroup, setSelectedGroup: setSelectedGroup, initialCheckBoxData: initialCheckBoxData, intialColumns,
|
|
532
532
|
setIntialColumns,
|
|
533
533
|
gridViewFun,
|
|
534
534
|
gridViewData,
|
|
@@ -546,6 +546,7 @@ function ParentForGrid(props) {
|
|
|
546
546
|
props === null || props === void 0 ? void 0 : props.sortOptions,
|
|
547
547
|
props === null || props === void 0 ? void 0 : props.filterConditions,
|
|
548
548
|
props === null || props === void 0 ? void 0 : props.clearFilters,
|
|
549
|
+
props === null || props === void 0 ? void 0 : props.onFiltersCleared,
|
|
549
550
|
props === null || props === void 0 ? void 0 : props.updateColumnsForGrid,
|
|
550
551
|
props.enableManageColumnsCallback, selectedGroup, initialCheckBoxData,
|
|
551
552
|
intialColumns, gridViewFun, gridViewData, gridView,
|
|
@@ -21,6 +21,7 @@ interface MyProviderProps {
|
|
|
21
21
|
sortOptions: any[];
|
|
22
22
|
filterConditions: FilterCondition[];
|
|
23
23
|
clearFilters: Boolean;
|
|
24
|
+
onFiltersCleared?: () => void;
|
|
24
25
|
setGridData: (GridData: any) => void;
|
|
25
26
|
gridApi: any;
|
|
26
27
|
updateColumnsForGrid: (columns: ColumnDef) => void;
|