@medyll/idae-machine 0.112.0 → 0.113.0
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/LICENSE +21 -0
- package/dist/db/dbFields.d.ts +4 -12
- package/dist/db/dbSchema.d.ts +1 -1
- package/dist/db/testDbSchema.d.ts +1 -1
- package/dist/form/FieldValue.svelte +1 -1
- package/dist/main/machine.d.ts +4 -4
- package/package.json +64 -65
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 medyll
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/db/dbFields.d.ts
CHANGED
|
@@ -43,14 +43,8 @@ export declare class IDbCollection {
|
|
|
43
43
|
_dbCollections: IDbCollections;
|
|
44
44
|
constructor(collection: TplCollectionName, dbCollections: IDbCollections);
|
|
45
45
|
getCollectionModelTemplate(): Tpl;
|
|
46
|
-
getCollectionModelTemplateFks():
|
|
47
|
-
|
|
48
|
-
code: string;
|
|
49
|
-
multiple: boolean;
|
|
50
|
-
rules: import("@medyll/idae-idbql").CombinedArgs;
|
|
51
|
-
} | undefined;
|
|
52
|
-
};
|
|
53
|
-
getIndexName(): string;
|
|
46
|
+
getCollectionModelTemplateFks(): Tpl;
|
|
47
|
+
getIndexName(): any;
|
|
54
48
|
collectionValues(): IDbCollectionValues<any>;
|
|
55
49
|
collectionFieldValues<T extends Record<string, any>>(data: T): IDbCollectionFieldValues<T>;
|
|
56
50
|
fieldForge<T extends Record<string, any>>(fieldName: keyof T, data: T): IDbCollectionFieldForge<T>;
|
|
@@ -151,7 +145,7 @@ export declare class IDbCollections {
|
|
|
151
145
|
* @param collection The collection name.
|
|
152
146
|
* @returns The index field name.
|
|
153
147
|
*/
|
|
154
|
-
getIndexName(collection: TplCollectionName):
|
|
148
|
+
getIndexName(collection: TplCollectionName): any;
|
|
155
149
|
/**
|
|
156
150
|
* Returns a shared instance of IDbCollectionValues for a given collection
|
|
157
151
|
*/
|
|
@@ -193,9 +187,7 @@ export declare class IDbCollections {
|
|
|
193
187
|
* @param string The string in the form 'collection.field'.
|
|
194
188
|
* @returns The fields object for the referenced collection.
|
|
195
189
|
*/
|
|
196
|
-
getFkTemplateFields(string: `${string}.${string}`):
|
|
197
|
-
[x: string]: import("@medyll/idae-idbql").TplFieldRules;
|
|
198
|
-
};
|
|
190
|
+
getFkTemplateFields(string: `${string}.${string}`): any;
|
|
199
191
|
/**
|
|
200
192
|
* Test if a field rule matches a given type (primitive, array, object, fk).
|
|
201
193
|
* @param what The type to test ('primitive', 'array', 'object', 'fk').
|
package/dist/db/dbSchema.d.ts
CHANGED
|
@@ -453,4 +453,4 @@ export declare const schemeModelDb: {
|
|
|
453
453
|
};
|
|
454
454
|
export declare const schemeModel: IdbqModel;
|
|
455
455
|
export type DataModelFinal = DbDataModelTs<typeof schemeModelDb>;
|
|
456
|
-
export declare const idbql:
|
|
456
|
+
export declare const idbql: any, idbqlState: any, idbDatabase: any, idbqModel: any;
|
|
@@ -53,4 +53,4 @@ export declare const schemeModelTestDb: {
|
|
|
53
53
|
};
|
|
54
54
|
export declare const schemeModelTest: IdbqModel;
|
|
55
55
|
export type DataModelTestFinal = DbDataModelTs<typeof schemeModelTestDb>;
|
|
56
|
-
export declare const idbql:
|
|
56
|
+
export declare const idbql: any, idbqlState: any, idbDatabase: any, idbqModel: any;
|
package/dist/main/machine.d.ts
CHANGED
|
@@ -85,19 +85,19 @@ export declare class Machine {
|
|
|
85
85
|
/**
|
|
86
86
|
* IDBQL (readonly) instance
|
|
87
87
|
*/
|
|
88
|
-
get idbql():
|
|
88
|
+
get idbql(): any;
|
|
89
89
|
/**
|
|
90
90
|
* IDBQL (stateful) instance
|
|
91
91
|
*/
|
|
92
|
-
get store():
|
|
92
|
+
get store(): any;
|
|
93
93
|
/**
|
|
94
94
|
* IndexedDB (core) instance
|
|
95
95
|
* @deprecated
|
|
96
96
|
*/
|
|
97
|
-
get indexedb():
|
|
97
|
+
get indexedb(): any;
|
|
98
98
|
/**
|
|
99
99
|
* IDBQL data model instance
|
|
100
100
|
*/
|
|
101
|
-
get idbqModel():
|
|
101
|
+
get idbqModel(): any;
|
|
102
102
|
}
|
|
103
103
|
export declare const machine: Machine;
|
package/package.json
CHANGED
|
@@ -1,66 +1,65 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
2
|
+
"name": "@medyll/idae-machine",
|
|
3
|
+
"version": "0.113.0",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist",
|
|
6
|
+
"!dist/**/*.test.*",
|
|
7
|
+
"!dist/**/*.spec.*"
|
|
8
|
+
],
|
|
9
|
+
"sideEffects": [
|
|
10
|
+
"**/*.css"
|
|
11
|
+
],
|
|
12
|
+
"svelte": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"svelte": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"svelte": "^5.0.0"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@eslint/compat": "^1.2.7",
|
|
26
|
+
"@eslint/js": "^9.23.0",
|
|
27
|
+
"@sveltejs/adapter-auto": "^5.0.0",
|
|
28
|
+
"@sveltejs/kit": "^2.20.2",
|
|
29
|
+
"@sveltejs/package": "^2.3.10",
|
|
30
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
31
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
32
|
+
"@testing-library/svelte": "^5.2.7",
|
|
33
|
+
"eslint": "^9.23.0",
|
|
34
|
+
"eslint-config-prettier": "^10.1.1",
|
|
35
|
+
"eslint-plugin-svelte": "^3.3.3",
|
|
36
|
+
"globals": "^16.0.0",
|
|
37
|
+
"jsdom": "^26.0.0",
|
|
38
|
+
"prettier": "^3.5.3",
|
|
39
|
+
"prettier-plugin-svelte": "^3.3.3",
|
|
40
|
+
"publint": "^0.3.9",
|
|
41
|
+
"svelte": "^5.25.3",
|
|
42
|
+
"svelte-check": "^4.1.5",
|
|
43
|
+
"typescript": "^5.8.2",
|
|
44
|
+
"typescript-eslint": "^8.28.0",
|
|
45
|
+
"vite": "^6.2.3",
|
|
46
|
+
"vitest": "^3.0.9",
|
|
47
|
+
"@medyll/idae-prettier-config": "1.2.1"
|
|
48
|
+
},
|
|
49
|
+
"scope": "@medyll",
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@huggingface/prettier-plugin-vertical-align": "^0.2.3"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"dev": "vite dev",
|
|
55
|
+
"build": "vite build && npm run prepack",
|
|
56
|
+
"preview": "vite preview",
|
|
57
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
58
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
59
|
+
"format": "prettier --write .",
|
|
60
|
+
"lint": "prettier --check . && eslint .",
|
|
61
|
+
"test:unit": "vitest",
|
|
62
|
+
"test": "npm run test:unit -- --run",
|
|
63
|
+
"package:pre": "node scripts/package-pre.js"
|
|
64
|
+
}
|
|
65
|
+
}
|