@planeasyinc/le-core 0.0.11 → 0.0.13
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +16 -32
- package/dist/adapter/normalize-config.d.ts.map +1 -1
- package/dist/adapter/normalize-config.js +4 -0
- package/dist/adapter/normalize-config.js.map +1 -1
- package/dist/adapter/normalize-documentation.d.ts +7 -0
- package/dist/adapter/normalize-documentation.d.ts.map +1 -0
- package/dist/adapter/normalize-documentation.js +24 -0
- package/dist/adapter/normalize-documentation.js.map +1 -0
- package/dist/models/internal.d.ts +24 -2
- package/dist/models/internal.d.ts.map +1 -1
- package/dist/public-api.d.ts +1 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js.map +1 -1
- package/package.json +2 -2
- package/src/adapter/normalize-config.test.ts +76 -1
- package/src/adapter/normalize-config.ts +4 -0
- package/src/adapter/normalize-documentation.ts +31 -0
- package/src/models/internal.ts +26 -2
- package/src/public-api.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @planeasyinc/le-core@0.0.
|
|
3
|
+
> @planeasyinc/le-core@0.0.12 test /Users/yefimenko/Work/amsdal/form-engine/packages/le-core
|
|
4
4
|
> vitest --run
|
|
5
5
|
|
|
6
6
|
[?25l[33m▲ [43;33m[[43;30mWARNING[43;33m][0m [1mThe condition "path" here will never be used as it comes after both "import" and "require"[0m [package.json]
|
|
@@ -29,44 +29,28 @@
|
|
|
29
29
|
|
|
30
30
|
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (5)[39m
|
|
31
31
|
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (0)[39m
|
|
32
|
-
[2m Start at [
|
|
33
|
-
[2m Duration [
|
|
32
|
+
[2m Start at [22m17:34:28
|
|
33
|
+
[2m Duration [22m205ms
|
|
34
34
|
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K
|
|
35
|
-
[1m[33m ❯ [39m[22msrc/adapter/normalize-ui.test.ts[2m [queued][22m
|
|
36
|
-
[1m[33m ❯ [39m[22msrc/utils/decodeJwt.test.ts[2m [queued][22m
|
|
37
|
-
|
|
38
|
-
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (5)[39m
|
|
39
|
-
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (0)[39m
|
|
40
|
-
[2m Start at [22m16:36:37
|
|
41
|
-
[2m Duration [22m1.09s
|
|
42
|
-
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/utils/url-fragment-builder.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
43
|
-
|
|
44
35
|
[1m[33m ❯ [39m[22msrc/adapter/normalize-actions.test.ts[2m [queued][22m
|
|
45
36
|
[1m[33m ❯ [39m[22msrc/adapter/normalize-config.test.ts[2m [queued][22m
|
|
46
37
|
[1m[33m ❯ [39m[22msrc/adapter/normalize-ui.test.ts[2m [queued][22m
|
|
47
38
|
[1m[33m ❯ [39m[22msrc/utils/decodeJwt.test.ts[2m 0/9[22m
|
|
39
|
+
[1m[33m ❯ [39m[22msrc/utils/url-fragment-builder.test.ts[2m [queued][22m
|
|
48
40
|
|
|
49
|
-
[2m Test Files [22m[1m[
|
|
50
|
-
[2m Tests [22m[1m[
|
|
51
|
-
[2m Start at [
|
|
52
|
-
[2m Duration [
|
|
53
|
-
[?2026l[
|
|
54
|
-
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
|
|
59
|
-
[2m Test Files [22m[1m[32m2 passed[39m[22m[90m (5)[39m
|
|
60
|
-
[2m Tests [22m[1m[32m11 passed[39m[22m[90m (16)[39m
|
|
61
|
-
[2m Start at [22m16:36:37
|
|
62
|
-
[2m Duration [22m1.68s
|
|
63
|
-
[?2026l[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/adapter/normalize-ui.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
64
|
-
[32m✓[39m src/adapter/normalize-actions.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
65
|
-
[32m✓[39m src/adapter/normalize-config.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
41
|
+
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (5)[39m
|
|
42
|
+
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (9)[39m
|
|
43
|
+
[2m Start at [22m17:34:28
|
|
44
|
+
[2m Duration [22m305ms
|
|
45
|
+
[?2026l[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/utils/decodeJwt.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
46
|
+
[32m✓[39m src/utils/url-fragment-builder.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
47
|
+
[32m✓[39m src/adapter/normalize-ui.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
48
|
+
[32m✓[39m src/adapter/normalize-actions.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
49
|
+
[32m✓[39m src/adapter/normalize-config.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
66
50
|
|
|
67
51
|
[2m Test Files [22m [1m[32m5 passed[39m[22m[90m (5)[39m
|
|
68
|
-
[2m Tests [22m [1m[
|
|
69
|
-
[2m Start at [22m
|
|
70
|
-
[2m Duration [22m
|
|
52
|
+
[2m Tests [22m [1m[32m30 passed[39m[22m[90m (30)[39m
|
|
53
|
+
[2m Start at [22m 17:34:28
|
|
54
|
+
[2m Duration [22m 492ms[2m (transform 542ms, setup 0ms, import 740ms, tests 49ms, environment 1ms)[22m
|
|
71
55
|
|
|
72
56
|
[?25h
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-config.d.ts","sourceRoot":"","sources":["../../src/adapter/normalize-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,MAAM,EAAe,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"normalize-config.d.ts","sourceRoot":"","sources":["../../src/adapter/normalize-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,MAAM,EAAe,MAAM,oBAAoB,CAAC;AASrE,eAAO,MAAM,eAAe,QAAS,GAAG,KAAG,MAE1C,CAAC"}
|
|
@@ -5,6 +5,7 @@ import { normalizeDataSource } from './normalize-data-source';
|
|
|
5
5
|
import { normalizeControlSource } from './normalize-control-source';
|
|
6
6
|
import { normalizeActions } from './normalize-actions';
|
|
7
7
|
import { normalizeAppearance, normalizeUi } from './normalize-ui';
|
|
8
|
+
import { normalizeDocumentation } from './normalize-documentation';
|
|
8
9
|
export const normalizeConfig = (raw) => {
|
|
9
10
|
return normalizeNode(raw);
|
|
10
11
|
};
|
|
@@ -29,6 +30,7 @@ function normalizeNode(node) {
|
|
|
29
30
|
const appearance = normalizeAppearance(node);
|
|
30
31
|
return {
|
|
31
32
|
...base,
|
|
33
|
+
...normalizeDocumentation(node),
|
|
32
34
|
controlSource: normalizeControlSource(node.control_source),
|
|
33
35
|
...(appearance ? { ui: { appearance } } : {}),
|
|
34
36
|
};
|
|
@@ -36,6 +38,8 @@ function normalizeNode(node) {
|
|
|
36
38
|
if (node.type === 'table') {
|
|
37
39
|
return {
|
|
38
40
|
...base,
|
|
41
|
+
...(node.id ? { configId: node.id } : {}),
|
|
42
|
+
...normalizeDocumentation(node),
|
|
39
43
|
dataSource: normalizeDataSource(node.data_source),
|
|
40
44
|
actions: normalizeActions(node),
|
|
41
45
|
ui: normalizeUi(node),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-config.js","sourceRoot":"","sources":["../../src/adapter/normalize-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"normalize-config.js","sourceRoot":"","sources":["../../src/adapter/normalize-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAQ,EAAU,EAAE;IAClD,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC,CAAC;AAEF,SAAS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AC;YAC/B,UAAU,EAAE,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC;YACjD,OAAO,EAAE,gBAAgB,CAAC,IAAI,CAAC;YAC/B,EAAE,EAAE,WAAW,CAAC,IAAI,CAAC;SACA,CAAC;IAC1B,CAAC;IAED,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC1B,OAAO;YACL,GAAG,IAAI;SACR,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,gBAAgB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LeDocumented } from '../models/internal';
|
|
2
|
+
/**
|
|
3
|
+
* The documentation of a table or a form node: only the fields it really has, so a node of a
|
|
4
|
+
* stored dashboard or an older backend, which sends neither, comes out as it did before.
|
|
5
|
+
* */
|
|
6
|
+
export declare const normalizeDocumentation: (node: any) => LeDocumented;
|
|
7
|
+
//# sourceMappingURL=normalize-documentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-documentation.d.ts","sourceRoot":"","sources":["../../src/adapter/normalize-documentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAkBtE;;;KAGK;AACL,eAAO,MAAM,sBAAsB,SAAU,GAAG,KAAG,YAQlD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const KINDS = ['model', 'transaction'];
|
|
2
|
+
const text = (value) => {
|
|
3
|
+
return typeof value === 'string' && value.trim() ? value.trim() : undefined;
|
|
4
|
+
};
|
|
5
|
+
const normalizeDocumentationRef = (raw) => {
|
|
6
|
+
const name = text(raw?.name);
|
|
7
|
+
if (!name || !KINDS.includes(raw.kind))
|
|
8
|
+
return undefined;
|
|
9
|
+
const provider = text(raw.provider);
|
|
10
|
+
return { kind: raw.kind, name, ...(provider ? { provider } : {}) };
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The documentation of a table or a form node: only the fields it really has, so a node of a
|
|
14
|
+
* stored dashboard or an older backend, which sends neither, comes out as it did before.
|
|
15
|
+
* */
|
|
16
|
+
export const normalizeDocumentation = (node) => {
|
|
17
|
+
const description = text(node.description);
|
|
18
|
+
const documentation = normalizeDocumentationRef(node.documentation);
|
|
19
|
+
return {
|
|
20
|
+
...(description ? { description } : {}),
|
|
21
|
+
...(documentation ? { documentation } : {}),
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=normalize-documentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-documentation.js","sourceRoot":"","sources":["../../src/adapter/normalize-documentation.ts"],"names":[],"mappings":"AAEA,MAAM,KAAK,GAA8C,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAElF,MAAM,IAAI,GAAG,CAAC,KAAc,EAAsB,EAAE;IAClD,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9E,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAAG,CAAC,GAAQ,EAAkC,EAAE;IAC7E,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAE7B,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC;IAEzD,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAEpC,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AACrE,CAAC,CAAC;AAEF;;;KAGK;AACL,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,IAAS,EAAgB,EAAE;IAChE,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC3C,MAAM,aAAa,GAAG,yBAAyB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAEpE,OAAO;QACL,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvC,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5C,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -25,7 +25,24 @@ export interface LeGridNode extends LeBaseNode, LeContainerNode {
|
|
|
25
25
|
export interface LeGridColNode extends LeBaseNode, LeContainerNode {
|
|
26
26
|
type: 'grid_col';
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Where the full documentation of a model or a transaction comes from: the transaction `provider`
|
|
30
|
+
* (`get_documentation_form` when absent) answers `{ kind, name }` with a form for the side panel.
|
|
31
|
+
* */
|
|
32
|
+
export interface LeDocumentationRef {
|
|
33
|
+
kind: 'model' | 'transaction';
|
|
34
|
+
name: string;
|
|
35
|
+
provider?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The documentation a table or a form carries: `description` is one line of plain text drawn
|
|
39
|
+
* under the title, never as HTML; `documentation` puts an info button next to the title.
|
|
40
|
+
* */
|
|
41
|
+
export interface LeDocumented {
|
|
42
|
+
description?: string;
|
|
43
|
+
documentation?: LeDocumentationRef;
|
|
44
|
+
}
|
|
45
|
+
export interface LeFormNode extends LeBaseNode, LeDocumented {
|
|
29
46
|
type: 'form';
|
|
30
47
|
controlSource?: LeDataSource;
|
|
31
48
|
onRender?: FeControlAction[];
|
|
@@ -34,8 +51,13 @@ export interface LeFormNode extends LeBaseNode {
|
|
|
34
51
|
appearance?: LeAppearance;
|
|
35
52
|
};
|
|
36
53
|
}
|
|
37
|
-
export interface LeTableNode extends LeBaseNode {
|
|
54
|
+
export interface LeTableNode extends LeBaseNode, LeDocumented {
|
|
38
55
|
type: 'table';
|
|
56
|
+
/**
|
|
57
|
+
* The `id` the dashboard config gave the element. `id` is always set, generated when the config
|
|
58
|
+
* gives none, so this is how a table tells an id of its own from a made-up one.
|
|
59
|
+
*/
|
|
60
|
+
configId?: string;
|
|
39
61
|
dataSource?: LeDataSource;
|
|
40
62
|
actions?: LeNodeActions;
|
|
41
63
|
ui?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/models/internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,MAAM,MAAM,GACd,UAAU,GACV,aAAa,GACb,aAAa,GACb,UAAU,GACV,WAAW,GACX,WAAW,CAAC;AAEhB,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,eAAe,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,aAAc,SAAQ,UAAU,EAAE,eAAe;IAChE,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,UAAW,SAAQ,UAAU,EAAE,eAAe;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,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AM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,WAAW,EAAE,CAAC;IAC3B,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;KAEK;AACL,MAAM,WAAW,YAAa,SAAQ,WAAW;IAC/C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,QAAQ,EAAE,CAAC;CACrB"}
|
package/dist/public-api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { normalizeConfig } from './adapter/normalize-config';
|
|
|
2
2
|
export { normalizeControlSource } from './adapter/normalize-control-source';
|
|
3
3
|
export { normalizeDataSource } from './adapter/normalize-data-source';
|
|
4
4
|
export { normalizeActions } from './adapter/normalize-actions';
|
|
5
|
-
export { LeNode, LeSectionNode, LeGridNode, LeGridColNode, LeChartNode, LeFormNode, LeTableNode, LeSort, LePagination, LeQuickFilter, LeAppearance, LeAction, LeRowAction, LeCellAction, LeTableAction, LeDataSource, } from './models/internal';
|
|
5
|
+
export { LeNode, LeSectionNode, LeGridNode, LeGridColNode, LeChartNode, LeFormNode, LeTableNode, LeSort, LePagination, LeQuickFilter, LeAppearance, LeAction, LeRowAction, LeCellAction, LeTableAction, LeDataSource, LeDocumentationRef, LeDocumented, } from './models/internal';
|
|
6
6
|
export { LeApiConfigModel, LeTheme } from './models/api-config.model';
|
|
7
7
|
export { isFormNode, isChartNode, isGridNode, isTableNode, isSectionNode } from './guards';
|
|
8
8
|
export { UrlFragmentBuilder } from './utils/url-fragment-builder';
|
package/dist/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,MAAM,EACN,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,MAAM,EACN,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
package/dist/public-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAsB/D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@planeasyinc/le-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/public-api.jcs",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"typescript": "5.6.3",
|
|
24
24
|
"@types/node": "18.15.3",
|
|
25
25
|
"@types/web": "0.0.347",
|
|
26
|
-
"@planeasyinc/fe-core": "0.1.
|
|
26
|
+
"@planeasyinc/fe-core": "0.1.41"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsc -p tsconfig.json",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, it, expect } from 'vitest';
|
|
2
2
|
import { normalizeConfig } from './normalize-config';
|
|
3
|
-
import { LeFormNode } from '../models/internal';
|
|
3
|
+
import { LeFormNode, LeTableNode } from '../models/internal';
|
|
4
4
|
|
|
5
5
|
const form = (extra: Record<string, unknown> = {}) => {
|
|
6
6
|
return normalizeConfig({
|
|
@@ -24,3 +24,78 @@ describe('normalizeConfig — form', () => {
|
|
|
24
24
|
expect(form({ appearance: 'fancy' }).ui).toBeUndefined();
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
+
|
|
28
|
+
const table = (extra: Record<string, unknown> = {}) => {
|
|
29
|
+
return normalizeConfig({
|
|
30
|
+
id: 'cls-Deal',
|
|
31
|
+
type: 'table',
|
|
32
|
+
title: 'Deal',
|
|
33
|
+
data_source: { type: 'class', entity_name: 'Deal' },
|
|
34
|
+
...extra,
|
|
35
|
+
}) as LeTableNode;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const DEAL_DOCUMENTATION = { kind: 'model', name: 'Deal', provider: 'get_documentation_form' };
|
|
39
|
+
|
|
40
|
+
describe('normalizeConfig — documentation', () => {
|
|
41
|
+
it('keeps the description and the documentation reference of a table', () => {
|
|
42
|
+
const node = table({ description: 'A sales opportunity.', documentation: DEAL_DOCUMENTATION });
|
|
43
|
+
|
|
44
|
+
expect(node.description).toBe('A sales opportunity.');
|
|
45
|
+
expect(node.documentation).toEqual(DEAL_DOCUMENTATION);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it('keeps the description and the documentation reference of a form', () => {
|
|
49
|
+
const node = form({
|
|
50
|
+
description: 'Close a deal.',
|
|
51
|
+
documentation: { kind: 'transaction', name: 'close_deal' },
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
expect(node.description).toBe('Close a deal.');
|
|
55
|
+
expect(node.documentation).toEqual({ kind: 'transaction', name: 'close_deal' });
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it('adds no documentation keys to a node of a stored dashboard, which sends neither field', () => {
|
|
59
|
+
expect('description' in table()).toBe(false);
|
|
60
|
+
expect('documentation' in table()).toBe(false);
|
|
61
|
+
expect('description' in form()).toBe(false);
|
|
62
|
+
expect('documentation' in form()).toBe(false);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it('keeps the description text as it is, HTML included, for the view to draw as text', () => {
|
|
66
|
+
expect(table({ description: '<b>bold</b> deal' }).description).toBe('<b>bold</b> deal');
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it('drops a blank or non-text description, so no empty line is drawn', () => {
|
|
70
|
+
expect(table({ description: ' ' }).description).toBeUndefined();
|
|
71
|
+
expect(table({ description: 42 }).description).toBeUndefined();
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
it('drops a documentation reference without a name or with an unknown kind', () => {
|
|
75
|
+
expect(table({ documentation: { kind: 'model' } }).documentation).toBeUndefined();
|
|
76
|
+
expect(table({ documentation: { kind: 'class', name: 'Deal' } }).documentation).toBeUndefined();
|
|
77
|
+
expect(table({ documentation: 'Deal' }).documentation).toBeUndefined();
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
it('leaves the provider out when it is blank, so the default transaction is used', () => {
|
|
81
|
+
expect(
|
|
82
|
+
table({ documentation: { kind: 'model', name: 'Deal', provider: '' } }).documentation,
|
|
83
|
+
).toEqual({ kind: 'model', name: 'Deal' });
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
describe('normalizeConfig — table id', () => {
|
|
88
|
+
it('keeps the id the config gives a table', () => {
|
|
89
|
+
const node = table();
|
|
90
|
+
|
|
91
|
+
expect(node.id).toBe('cls-Deal');
|
|
92
|
+
expect(node.configId).toBe('cls-Deal');
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it('makes up an id for a table the config gives none, and tells it apart', () => {
|
|
96
|
+
const node = table({ id: undefined });
|
|
97
|
+
|
|
98
|
+
expect(node.id).toBeTruthy();
|
|
99
|
+
expect('configId' in node).toBe(false);
|
|
100
|
+
});
|
|
101
|
+
});
|
|
@@ -6,6 +6,7 @@ import { normalizeDataSource } from './normalize-data-source';
|
|
|
6
6
|
import { normalizeControlSource } from './normalize-control-source';
|
|
7
7
|
import { normalizeActions } from './normalize-actions';
|
|
8
8
|
import { normalizeAppearance, normalizeUi } from './normalize-ui';
|
|
9
|
+
import { normalizeDocumentation } from './normalize-documentation';
|
|
9
10
|
|
|
10
11
|
export const normalizeConfig = (raw: any): LeNode => {
|
|
11
12
|
return normalizeNode(raw);
|
|
@@ -36,6 +37,7 @@ function normalizeNode(node: any): LeNode {
|
|
|
36
37
|
|
|
37
38
|
return {
|
|
38
39
|
...base,
|
|
40
|
+
...normalizeDocumentation(node),
|
|
39
41
|
controlSource: normalizeControlSource(node.control_source),
|
|
40
42
|
...(appearance ? { ui: { appearance } } : {}),
|
|
41
43
|
} satisfies LeFormNode;
|
|
@@ -44,6 +46,8 @@ function normalizeNode(node: any): LeNode {
|
|
|
44
46
|
if (node.type === 'table') {
|
|
45
47
|
return {
|
|
46
48
|
...base,
|
|
49
|
+
...(node.id ? { configId: node.id } : {}),
|
|
50
|
+
...normalizeDocumentation(node),
|
|
47
51
|
dataSource: normalizeDataSource(node.data_source),
|
|
48
52
|
actions: normalizeActions(node),
|
|
49
53
|
ui: normalizeUi(node),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LeDocumentationRef, LeDocumented } from '../models/internal';
|
|
2
|
+
|
|
3
|
+
const KINDS: ReadonlyArray<LeDocumentationRef['kind']> = ['model', 'transaction'];
|
|
4
|
+
|
|
5
|
+
const text = (value: unknown): string | undefined => {
|
|
6
|
+
return typeof value === 'string' && value.trim() ? value.trim() : undefined;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const normalizeDocumentationRef = (raw: any): LeDocumentationRef | undefined => {
|
|
10
|
+
const name = text(raw?.name);
|
|
11
|
+
|
|
12
|
+
if (!name || !KINDS.includes(raw.kind)) return undefined;
|
|
13
|
+
|
|
14
|
+
const provider = text(raw.provider);
|
|
15
|
+
|
|
16
|
+
return { kind: raw.kind, name, ...(provider ? { provider } : {}) };
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The documentation of a table or a form node: only the fields it really has, so a node of a
|
|
21
|
+
* stored dashboard or an older backend, which sends neither, comes out as it did before.
|
|
22
|
+
* */
|
|
23
|
+
export const normalizeDocumentation = (node: any): LeDocumented => {
|
|
24
|
+
const description = text(node.description);
|
|
25
|
+
const documentation = normalizeDocumentationRef(node.documentation);
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
...(description ? { description } : {}),
|
|
29
|
+
...(documentation ? { documentation } : {}),
|
|
30
|
+
};
|
|
31
|
+
};
|
package/src/models/internal.ts
CHANGED
|
@@ -38,7 +38,26 @@ export interface LeGridColNode extends LeBaseNode, LeContainerNode {
|
|
|
38
38
|
type: 'grid_col';
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Where the full documentation of a model or a transaction comes from: the transaction `provider`
|
|
43
|
+
* (`get_documentation_form` when absent) answers `{ kind, name }` with a form for the side panel.
|
|
44
|
+
* */
|
|
45
|
+
export interface LeDocumentationRef {
|
|
46
|
+
kind: 'model' | 'transaction';
|
|
47
|
+
name: string;
|
|
48
|
+
provider?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The documentation a table or a form carries: `description` is one line of plain text drawn
|
|
53
|
+
* under the title, never as HTML; `documentation` puts an info button next to the title.
|
|
54
|
+
* */
|
|
55
|
+
export interface LeDocumented {
|
|
56
|
+
description?: string;
|
|
57
|
+
documentation?: LeDocumentationRef;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface LeFormNode extends LeBaseNode, LeDocumented {
|
|
42
61
|
type: 'form';
|
|
43
62
|
controlSource?: LeDataSource;
|
|
44
63
|
onRender?: FeControlAction[];
|
|
@@ -48,8 +67,13 @@ export interface LeFormNode extends LeBaseNode {
|
|
|
48
67
|
};
|
|
49
68
|
}
|
|
50
69
|
|
|
51
|
-
export interface LeTableNode extends LeBaseNode {
|
|
70
|
+
export interface LeTableNode extends LeBaseNode, LeDocumented {
|
|
52
71
|
type: 'table';
|
|
72
|
+
/**
|
|
73
|
+
* The `id` the dashboard config gave the element. `id` is always set, generated when the config
|
|
74
|
+
* gives none, so this is how a table tells an id of its own from a made-up one.
|
|
75
|
+
*/
|
|
76
|
+
configId?: string;
|
|
53
77
|
dataSource?: LeDataSource;
|
|
54
78
|
actions?: LeNodeActions;
|
|
55
79
|
ui?: {
|
package/src/public-api.ts
CHANGED
|
@@ -19,6 +19,8 @@ export {
|
|
|
19
19
|
LeCellAction,
|
|
20
20
|
LeTableAction,
|
|
21
21
|
LeDataSource,
|
|
22
|
+
LeDocumentationRef,
|
|
23
|
+
LeDocumented,
|
|
22
24
|
} from './models/internal';
|
|
23
25
|
export { LeApiConfigModel, LeTheme } from './models/api-config.model';
|
|
24
26
|
export { isFormNode, isChartNode, isGridNode, isTableNode, isSectionNode } from './guards';
|