sccoreui 5.7.23 → 5.8.1

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 (24) hide show
  1. package/dist/components/ag-grid/MyProvider.js +58 -0
  2. package/dist/components/ag-grid/ParentForGrid.js +111 -32
  3. package/dist/components/ag-grid/Types.js +0 -8
  4. package/dist/components/ag-grid/advancedFeature/advanced-feature.js +6 -2
  5. package/dist/components/ag-grid/advancedFeature/custom-sort.js +4 -6
  6. package/dist/components/ag-grid/advancedFeature/filter/filter.js +35 -18
  7. package/dist/components/ag-grid/advancedFeature/filter/querty.js +35 -17
  8. package/dist/components/ag-grid/advancedFeature/global-search.js +4 -2
  9. package/dist/components/ag-grid/advancedFeature/record-detail.js +5 -2
  10. package/dist/components/ag-grid/advancedFeature/refresh-grid.js +10 -0
  11. package/dist/components/ag-grid/error-ui.js +1 -1
  12. package/dist/components/ag-grid/grid-checkbox.js +8 -0
  13. package/dist/types/components/ag-grid/MyProvider.d.ts +14 -0
  14. package/dist/types/components/ag-grid/Types.d.ts +32 -6
  15. package/dist/types/components/ag-grid/advancedFeature/advanced-feature.d.ts +1 -5
  16. package/dist/types/components/ag-grid/advancedFeature/custom-sort.d.ts +1 -6
  17. package/dist/types/components/ag-grid/advancedFeature/filter/filter.d.ts +1 -5
  18. package/dist/types/components/ag-grid/advancedFeature/filter/querty.d.ts +4 -2
  19. package/dist/types/components/ag-grid/advancedFeature/global-search.d.ts +1 -3
  20. package/dist/types/components/ag-grid/advancedFeature/record-detail.d.ts +1 -3
  21. package/dist/types/components/ag-grid/advancedFeature/refresh-grid.d.ts +2 -0
  22. package/dist/types/components/ag-grid/grid-checkbox.d.ts +8 -0
  23. package/package.json +1 -1
  24. package/dist/App copy.scss +0 -917
@@ -0,0 +1,14 @@
1
+ import { Features, GridData } from "./Types";
2
+ export declare const FeatureContext: import("react").Context<any>;
3
+ interface MyProviderProps {
4
+ children: React.ReactNode;
5
+ value: {
6
+ featureDetails: Features;
7
+ setFeatureDetails: React.Dispatch<React.SetStateAction<Features>>;
8
+ gridData: GridData;
9
+ callGrid: (featureDetails: Features) => void;
10
+ totalRecords: number;
11
+ };
12
+ }
13
+ declare function MyProvider({ children, value }: MyProviderProps): import("react/jsx-runtime").JSX.Element;
14
+ export default MyProvider;
@@ -12,6 +12,16 @@ export interface IOlympicData {
12
12
  total: number;
13
13
  color: string;
14
14
  }
15
+ export interface ColumnDef extends ColDef {
16
+ id: string;
17
+ dataType: any;
18
+ isFilterable: boolean;
19
+ isSortable: boolean;
20
+ maxLength?: number;
21
+ code?: number;
22
+ enableHeaderCheckbox?: boolean;
23
+ enableChildCheckbox?: boolean;
24
+ }
15
25
  export interface Style {
16
26
  height: number | string;
17
27
  width: number | string;
@@ -50,6 +60,12 @@ export interface Features {
50
60
  }
51
61
  export interface ParentProp {
52
62
  }
63
+ export interface CheckBoxSelection {
64
+ allBoxChecked: boolean;
65
+ isInterminate: boolean;
66
+ selectedCheckboxData: any[];
67
+ unselectedCheckboxData: any[];
68
+ }
53
69
  export declare enum ATTRIBUTEDATATYPES {
54
70
  STRING = "string",
55
71
  DATE = "date",
@@ -63,12 +79,22 @@ export declare enum ATTRIBUTEDATATYPES {
63
79
  SELECT = "select",
64
80
  MULTI_SELECT = "multiselect"
65
81
  }
66
- export interface ColumnDef extends ColDef {
67
- dataType: any;
68
- isFilterable: boolean;
69
- isSortable: boolean;
70
- maxLength?: number;
71
- code?: number;
82
+ export interface GridData {
83
+ rowData: any[];
84
+ columnData: ColumnDef[];
85
+ }
86
+ export interface ConditionsToDisplay {
87
+ displayFilter: boolean;
88
+ displaySort: boolean;
89
+ displaySearch: boolean;
90
+ displayRefresh: boolean;
91
+ }
92
+ export interface PropsFromProduct {
93
+ columnData: ColumnDef[];
94
+ getRowData: () => void;
95
+ style: Style;
96
+ dataForDropDown: () => void;
97
+ conditionsToDisplay: ConditionsToDisplay;
72
98
  }
73
99
  export interface ResoponseFromCallback {
74
100
  totalRecords: number;
@@ -1,8 +1,4 @@
1
- declare function AdvancedFeatures({ featureDetails, setFeatureDetails, columnData, props, callGrid }: {
2
- featureDetails: any;
3
- setFeatureDetails: any;
4
- columnData: any;
1
+ declare function AdvancedFeatures({ props }: {
5
2
  props: any;
6
- callGrid: any;
7
3
  }): import("react/jsx-runtime").JSX.Element;
8
4
  export default AdvancedFeatures;
@@ -1,7 +1,2 @@
1
- declare function Sort({ columnData, featureDetails, setFeatureDetails, callGrid }: {
2
- columnData: any;
3
- featureDetails: any;
4
- setFeatureDetails: any;
5
- callGrid: any;
6
- }): import("react/jsx-runtime").JSX.Element;
1
+ declare function Sort(): import("react/jsx-runtime").JSX.Element;
7
2
  export default Sort;
@@ -1,8 +1,4 @@
1
- declare function FilterParent({ columnData, featureDetails, setFeatureDetails, callBackForSelect, callGrid }: {
2
- columnData: any;
3
- featureDetails: any;
4
- setFeatureDetails: any;
1
+ declare function FilterParent({ callBackForSelect }: {
5
2
  callBackForSelect: any;
6
- callGrid: any;
7
3
  }): import("react/jsx-runtime").JSX.Element;
8
4
  export default FilterParent;
@@ -1,10 +1,12 @@
1
- declare function Querty({ queryId, columnData, featureDetails, setFeatureDetails, callBackForSelect, actionOnMinus, actionOnPlus, }: {
2
- queryId: any;
1
+ declare function Querty({ currentIndex, queryIndex, columnData, featureDetails, setFeatureDetails, callBackForSelect, actionOnMinus, actionOnPlus, defaultFilterValue, }: {
2
+ currentIndex: any;
3
+ queryIndex: any;
3
4
  columnData: any;
4
5
  featureDetails: any;
5
6
  setFeatureDetails: any;
6
7
  callBackForSelect: any;
7
8
  actionOnMinus: any;
8
9
  actionOnPlus: any;
10
+ defaultFilterValue: any;
9
11
  }): import("react/jsx-runtime").JSX.Element;
10
12
  export default Querty;
@@ -1,6 +1,4 @@
1
- declare function Search({ featureDetails, setFeatureDetails, searchPlaceHolder }: {
2
- featureDetails: any;
3
- setFeatureDetails: any;
1
+ declare function Search({ searchPlaceHolder }: {
4
2
  searchPlaceHolder: any;
5
3
  }): import("react/jsx-runtime").JSX.Element;
6
4
  export default Search;
@@ -1,4 +1,2 @@
1
- declare function RecordDetail({ totalLength }: {
2
- totalLength: any;
3
- }): import("react/jsx-runtime").JSX.Element;
1
+ declare function RecordDetail(): import("react/jsx-runtime").JSX.Element;
4
2
  export default RecordDetail;
@@ -0,0 +1,2 @@
1
+ declare function RefreshGrid(): import("react/jsx-runtime").JSX.Element;
2
+ export default RefreshGrid;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface CheckboxProps {
3
+ checked: boolean;
4
+ onChange: () => void;
5
+ isInterminate: boolean;
6
+ }
7
+ declare const Checkbox: React.FC<CheckboxProps>;
8
+ export default Checkbox;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.7.23",
3
+ "version": "5.8.1",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",