@or-sdk/views 1.0.19-beta.2471.0 → 1.0.19-beta.2472.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/dist/types/types.d.ts +18 -18
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/types.ts +18 -18
package/dist/types/types.d.ts
CHANGED
|
@@ -6,51 +6,51 @@ export declare type ViewsConfig = {
|
|
|
6
6
|
dataHubSvcUrl?: string;
|
|
7
7
|
feature?: string;
|
|
8
8
|
};
|
|
9
|
-
declare type
|
|
9
|
+
declare type ViewData<D = Record<string, unknown>> = D & {
|
|
10
10
|
description?: string;
|
|
11
11
|
filterByTagIds: string[];
|
|
12
12
|
isDefaultView?: boolean;
|
|
13
13
|
label: string;
|
|
14
14
|
layoutType?: 'default' | 'custom-grid-layout';
|
|
15
15
|
};
|
|
16
|
-
declare type
|
|
16
|
+
declare type ViewAnchorItem = {
|
|
17
17
|
label: string;
|
|
18
18
|
cardIds: string[];
|
|
19
19
|
selected: boolean;
|
|
20
20
|
};
|
|
21
|
-
declare type
|
|
22
|
-
items: Array<
|
|
21
|
+
declare type ViewAnchors = {
|
|
22
|
+
items: Array<ViewAnchorItem>;
|
|
23
23
|
};
|
|
24
|
-
declare type
|
|
24
|
+
declare type ViewCardItem = {
|
|
25
25
|
id: string;
|
|
26
26
|
data: {
|
|
27
27
|
label: string;
|
|
28
28
|
};
|
|
29
29
|
cardComponentId: string;
|
|
30
30
|
};
|
|
31
|
-
declare type
|
|
31
|
+
declare type ViewCardComponent = {
|
|
32
32
|
id: string;
|
|
33
33
|
label: string;
|
|
34
34
|
type?: string | null;
|
|
35
35
|
version: string;
|
|
36
36
|
};
|
|
37
|
-
declare type
|
|
38
|
-
items: Array<
|
|
39
|
-
cardComponents: Array<
|
|
37
|
+
declare type ViewCards = {
|
|
38
|
+
items: Array<ViewCardItem>;
|
|
39
|
+
cardComponents: Array<ViewCardComponent>;
|
|
40
40
|
};
|
|
41
|
-
declare type
|
|
41
|
+
declare type ViewForm<FD = Record<string, unknown>> = {
|
|
42
42
|
code: string;
|
|
43
43
|
data?: FD;
|
|
44
44
|
style: string;
|
|
45
45
|
template: string;
|
|
46
46
|
};
|
|
47
|
-
declare type
|
|
47
|
+
declare type ViewPresentation<PD = Record<string, unknown>> = {
|
|
48
48
|
code: string;
|
|
49
49
|
data?: PD;
|
|
50
50
|
style: string;
|
|
51
51
|
template: string;
|
|
52
52
|
};
|
|
53
|
-
declare type
|
|
53
|
+
declare type ViewLibraryInfo = {
|
|
54
54
|
badgeLabel: string;
|
|
55
55
|
category: string | null;
|
|
56
56
|
publishedBy: string;
|
|
@@ -60,12 +60,12 @@ export declare type View<D = Record<string, unknown>, FD = Record<string, unknow
|
|
|
60
60
|
id?: string;
|
|
61
61
|
cardIds: string[];
|
|
62
62
|
data: {
|
|
63
|
-
anchors?:
|
|
64
|
-
cards?:
|
|
65
|
-
data:
|
|
66
|
-
form:
|
|
67
|
-
library?:
|
|
68
|
-
presentation:
|
|
63
|
+
anchors?: ViewAnchors | null;
|
|
64
|
+
cards?: ViewCards | null;
|
|
65
|
+
data: ViewData<D>;
|
|
66
|
+
form: ViewForm<FD>;
|
|
67
|
+
library?: ViewLibraryInfo | null;
|
|
68
|
+
presentation: ViewPresentation<PD>;
|
|
69
69
|
};
|
|
70
70
|
dateCreated: number;
|
|
71
71
|
dateModified: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,oBAAY,WAAW,GAAG;IAIxB,KAAK,EAAE,KAAK,CAAC;IAKb,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,C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ACjC,YAAY,EAAE,gBAAgB,CAAC,EAAE,CAAC,CAAC;KACpC,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IACjC,aAAa,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC/B,QAAQ,EAAE,IAAI,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,oBAAY,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE;QACN,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,oBAAY,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,oBAAY,6BAA6B,GAAG;IAC1C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,CAAC"}
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -27,7 +27,7 @@ export type ViewsConfig = {
|
|
|
27
27
|
feature?: string;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
type
|
|
30
|
+
type ViewData<D = Record<string, unknown>> = D & {
|
|
31
31
|
description?: string;
|
|
32
32
|
filterByTagIds: string[];
|
|
33
33
|
isDefaultView?: boolean;
|
|
@@ -35,17 +35,17 @@ type View$Data<D = Record<string, unknown>> = D & {
|
|
|
35
35
|
layoutType?: 'default' | 'custom-grid-layout';
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
type
|
|
38
|
+
type ViewAnchorItem = {
|
|
39
39
|
label: string;
|
|
40
40
|
cardIds: string[];
|
|
41
41
|
selected: boolean;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
type
|
|
45
|
-
items: Array<
|
|
44
|
+
type ViewAnchors = {
|
|
45
|
+
items: Array<ViewAnchorItem>;
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
type
|
|
48
|
+
type ViewCardItem = {
|
|
49
49
|
id: string;
|
|
50
50
|
data: {
|
|
51
51
|
label: string;
|
|
@@ -53,33 +53,33 @@ type View$CardItem = {
|
|
|
53
53
|
cardComponentId: string;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
type
|
|
56
|
+
type ViewCardComponent = {
|
|
57
57
|
id: string;
|
|
58
58
|
label: string;
|
|
59
59
|
type?: string | null;
|
|
60
60
|
version: string;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
type
|
|
64
|
-
items: Array<
|
|
65
|
-
cardComponents: Array<
|
|
63
|
+
type ViewCards = {
|
|
64
|
+
items: Array<ViewCardItem>;
|
|
65
|
+
cardComponents: Array<ViewCardComponent>;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
type
|
|
68
|
+
type ViewForm<FD = Record<string, unknown>> = {
|
|
69
69
|
code: string;
|
|
70
70
|
data?: FD;
|
|
71
71
|
style: string;
|
|
72
72
|
template: string;
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
type
|
|
75
|
+
type ViewPresentation<PD = Record<string, unknown>> = {
|
|
76
76
|
code: string;
|
|
77
77
|
data?: PD;
|
|
78
78
|
style: string;
|
|
79
79
|
template: string;
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
type
|
|
82
|
+
type ViewLibraryInfo = {
|
|
83
83
|
badgeLabel: string;
|
|
84
84
|
category: string | null;
|
|
85
85
|
publishedBy: string;
|
|
@@ -90,12 +90,12 @@ export type View<D = Record<string, unknown>, FD = Record<string, unknown>, PD =
|
|
|
90
90
|
id?: string;
|
|
91
91
|
cardIds: string[];
|
|
92
92
|
data: {
|
|
93
|
-
anchors?:
|
|
94
|
-
cards?:
|
|
95
|
-
data:
|
|
96
|
-
form:
|
|
97
|
-
library?:
|
|
98
|
-
presentation:
|
|
93
|
+
anchors?: ViewAnchors | null;
|
|
94
|
+
cards?: ViewCards | null;
|
|
95
|
+
data: ViewData<D>;
|
|
96
|
+
form: ViewForm<FD>;
|
|
97
|
+
library?: ViewLibraryInfo | null;
|
|
98
|
+
presentation: ViewPresentation<PD>;
|
|
99
99
|
};
|
|
100
100
|
dateCreated: number;
|
|
101
101
|
dateModified: number;
|