wenay-react2 1.0.12 → 1.0.14
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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CellClassParams } from "ag-grid-community";
|
|
2
2
|
import type { Theme, ThemeDefaultParams } from "ag-grid-community";
|
|
3
3
|
import { provideGlobalGridOptions } from "ag-grid-community";
|
|
4
|
-
export { AllCommunityModule, ModuleRegistry } from "ag-grid-community";
|
|
5
4
|
export declare function GridStyleDefault(): {
|
|
6
5
|
theme: Theme<ThemeDefaultParams>;
|
|
7
6
|
provideGlobalGridOptions: typeof provideGlobalGridOptions;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { colorSchemeDarkBlue, iconSetMaterial, provideGlobalGridOptions, themeAlpine } from "ag-grid-community";
|
|
2
2
|
import { AllCommunityModule, ModuleRegistry } from "ag-grid-community";
|
|
3
|
-
export { AllCommunityModule, ModuleRegistry } from "ag-grid-community";
|
|
3
|
+
// export { AllCommunityModule, ModuleRegistry } from "ag-grid-community";
|
|
4
4
|
// import 'ag-grid-community/styles/ag-grid.css';
|
|
5
5
|
// import 'ag-grid-community/styles/ag-theme-alpine.css';
|
|
6
6
|
// Register all community features
|
|
7
|
-
ModuleRegistry.registerModules([AllCommunityModule]);
|
|
8
7
|
export function GridStyleDefault() {
|
|
8
|
+
ModuleRegistry.registerModules([AllCommunityModule]);
|
|
9
9
|
const theme = themeAlpine
|
|
10
10
|
.withPart(colorSchemeDarkBlue)
|
|
11
11
|
.withPart(iconSetMaterial)
|
|
@@ -7,6 +7,12 @@ export declare function staticGetAdd<T extends object>(key: any, def: T, options
|
|
|
7
7
|
reversDeep?: boolean;
|
|
8
8
|
}): T;
|
|
9
9
|
export declare function staticGetById<T extends object>(key: any, def: T, id: string | number): T;
|
|
10
|
+
export declare const Cash: {
|
|
11
|
+
load(): Promise<void>;
|
|
12
|
+
save(): Promise<void>;
|
|
13
|
+
clear(): Promise<void>;
|
|
14
|
+
getArr: [k: string, v: Map<string, unknown>][];
|
|
15
|
+
};
|
|
10
16
|
export declare const MemoryMap: {
|
|
11
17
|
rnd: Map<string, {
|
|
12
18
|
position: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { deepClone } from "wenay-common2";
|
|
2
2
|
import { ExRNDMap3 } from "../components/Dnd/RNDFunc3";
|
|
3
3
|
import { mapResiReact } from "../components/Dnd/Resizable";
|
|
4
|
+
import { CacheFuncMap } from "./cache";
|
|
4
5
|
const staticProps = new Map();
|
|
5
6
|
export function staticSet(key, data) {
|
|
6
7
|
if (!staticProps.has(key))
|
|
@@ -59,13 +60,11 @@ export function staticGetById(key, def, id) {
|
|
|
59
60
|
}
|
|
60
61
|
return el.data;
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// ]
|
|
68
|
-
// )
|
|
63
|
+
export const Cash = CacheFuncMap([
|
|
64
|
+
["mapResiReact", mapResiReact],
|
|
65
|
+
["ExRNDMap3", ExRNDMap3],
|
|
66
|
+
["staticProps", staticProps]
|
|
67
|
+
]);
|
|
69
68
|
export const MemoryMap = {
|
|
70
69
|
rnd: ExRNDMap3,
|
|
71
70
|
resize: mapResiReact,
|