@entropic-bond/crud-panel 3.5.2 → 3.5.3
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/lib/crud-controller.d.ts +3 -3
- package/lib/crud-panel.d.ts +1 -1
- package/package.json +10 -10
package/lib/crud-controller.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ type CrudControllerAction = 'saved' | 'deleted' | 'populated';
|
|
|
4
4
|
export interface CrudControllerEvent<T extends EntropicComponent> {
|
|
5
5
|
documentProps?: PropChangeEvent<T>;
|
|
6
6
|
documentChanged?: T;
|
|
7
|
-
documentCollection?: T[]
|
|
7
|
+
documentCollection?: T[];
|
|
8
8
|
action?: CrudControllerAction;
|
|
9
9
|
error?: Error;
|
|
10
10
|
}
|
|
@@ -15,13 +15,13 @@ export declare abstract class CrudController<T extends EntropicComponent> {
|
|
|
15
15
|
protected abstract getModel(): Model<T>;
|
|
16
16
|
protected storeDoc(): Promise<void>;
|
|
17
17
|
protected deleteDoc(): Promise<void>;
|
|
18
|
-
protected findDocs(limit: number): Promise<T[]
|
|
18
|
+
protected findDocs(limit: number): Promise<T[]>;
|
|
19
19
|
onChange(observer: Callback<CrudControllerEvent<T>>): Unsubscriber;
|
|
20
20
|
protected notifyChange<U extends CrudControllerEvent<T>>(event: U): void;
|
|
21
21
|
newDocument(): CrudController<T>;
|
|
22
22
|
storeDocument(): Promise<void>;
|
|
23
23
|
deleteDocument(): Promise<void>;
|
|
24
|
-
documentCollection(limit?: number): Promise<T[]
|
|
24
|
+
documentCollection(limit?: number): Promise<T[]>;
|
|
25
25
|
onProgress(observer: Callback<ProgressEvent>): Unsubscriber;
|
|
26
26
|
protected get model(): Model<T>;
|
|
27
27
|
setDocument(value: T): CrudController<T>;
|
package/lib/crud-panel.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface CrudPanelLabels {
|
|
|
27
27
|
}
|
|
28
28
|
export type Layout = 'formOrItems' | 'itemsAlways' | 'formAndItems';
|
|
29
29
|
interface CrudPanelState<T extends EntropicComponent> {
|
|
30
|
-
documents: T[]
|
|
30
|
+
documents: T[];
|
|
31
31
|
mode: Mode;
|
|
32
32
|
}
|
|
33
33
|
interface CrudPanelProps<T extends EntropicComponent> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entropic-bond/crud-panel",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"branches": [
|
|
@@ -47,21 +47,21 @@
|
|
|
47
47
|
"@semantic-release/changelog": "^6.0.2",
|
|
48
48
|
"@semantic-release/git": "^10.0.1",
|
|
49
49
|
"@testing-library/jest-dom": "^5.16.5",
|
|
50
|
-
"@testing-library/react": "^
|
|
50
|
+
"@testing-library/react": "^14.0.0",
|
|
51
51
|
"@testing-library/user-event": "^14.4.3",
|
|
52
|
-
"@types/jest": "^29.
|
|
53
|
-
"@types/react": "^18.0.
|
|
54
|
-
"@types/react-dom": "^18.0.
|
|
52
|
+
"@types/jest": "^29.4.0",
|
|
53
|
+
"@types/react": "^18.0.28",
|
|
54
|
+
"@types/react-dom": "^18.0.11",
|
|
55
55
|
"fetch-mock": "^9.11.0",
|
|
56
56
|
"git-branch-is": "^4.0.0",
|
|
57
57
|
"husky": "^8.0.3",
|
|
58
|
-
"jest": "^29.3
|
|
59
|
-
"jest-environment-jsdom": "^29.3
|
|
58
|
+
"jest": "^29.4.3",
|
|
59
|
+
"jest-environment-jsdom": "^29.4.3",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
|
-
"semantic-release": "^
|
|
62
|
+
"semantic-release": "^20.1.1",
|
|
63
63
|
"ts-jest": "^29.0.5",
|
|
64
|
-
"typescript": "^4.9.
|
|
64
|
+
"typescript": "^4.9.5"
|
|
65
65
|
},
|
|
66
66
|
"husky": {
|
|
67
67
|
"hooks": {
|
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"entropic-bond": "^1.
|
|
72
|
+
"entropic-bond": "^1.38.0"
|
|
73
73
|
}
|
|
74
74
|
}
|