@datagrok/compute 1.32.4 → 1.33.1
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/CHANGELOG.md +13 -0
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +4 -3
- package/src/package.ts +3 -9
- package/src/css/model-card.css +0 -94
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/compute",
|
|
3
3
|
"friendlyName": "Compute",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.33.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aufar Zakiev",
|
|
7
7
|
"email": "aufar.zakiev@softwarecountry.com"
|
|
@@ -13,15 +13,16 @@
|
|
|
13
13
|
"directory": "packages/Compute"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"
|
|
17
|
-
"@datagrok-libraries/compute-utils": "^1.32.0",
|
|
16
|
+
"@datagrok-libraries/compute-utils": "^1.33.1",
|
|
18
17
|
"cash-dom": "latest",
|
|
19
18
|
"datagrok-api": "^1.17.0",
|
|
19
|
+
"rxjs": "^6.6.7",
|
|
20
20
|
"source-map-loader": "^4.0.1",
|
|
21
21
|
"ts-loader": "latest",
|
|
22
22
|
"typescript": "latest"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
+
"@types/lodash.clonedeepwith": "^4.5.9",
|
|
25
26
|
"@typescript-eslint/eslint-plugin": "^5.1.0",
|
|
26
27
|
"@typescript-eslint/parser": "^5.1.0",
|
|
27
28
|
"css-loader": "^6.5.1",
|
package/src/package.ts
CHANGED
|
@@ -7,7 +7,6 @@ import {OutliersSelectionViewer} from './outliers-selection/outliers-selection-v
|
|
|
7
7
|
import {RichFunctionView, UiUtils} from "@datagrok-libraries/compute-utils";
|
|
8
8
|
import { ValidationInfo, makeAdvice, makeValidationResult } from '@datagrok-libraries/compute-utils/shared-utils/validation';
|
|
9
9
|
import {ModelCatalogView, ModelHandler} from '@datagrok-libraries/compute-utils/model-catalog';
|
|
10
|
-
import './css/model-card.css';
|
|
11
10
|
|
|
12
11
|
let initCompleted: boolean = false;
|
|
13
12
|
export const _package = new DG.Package();
|
|
@@ -82,13 +81,6 @@ function getCookie(name: string): string | undefined{
|
|
|
82
81
|
return matches ? decodeURIComponent(matches[1]) : undefined;
|
|
83
82
|
}
|
|
84
83
|
|
|
85
|
-
|
|
86
|
-
//tags: autostart
|
|
87
|
-
//meta.autostartImmediate: true
|
|
88
|
-
export function autostart() {
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
92
84
|
//name: CustomDataUploader
|
|
93
85
|
//input: func func
|
|
94
86
|
//output: object uploadedCalls
|
|
@@ -154,7 +146,9 @@ export function init() {
|
|
|
154
146
|
if (initCompleted)
|
|
155
147
|
return;
|
|
156
148
|
|
|
157
|
-
DG.ObjectHandler.
|
|
149
|
+
if (!(DG.ObjectHandler.list().find((handler) => handler.type === "Model"))) {
|
|
150
|
+
DG.ObjectHandler.register(new ModelHandler());
|
|
151
|
+
}
|
|
158
152
|
|
|
159
153
|
grok.events.onAccordionConstructed.subscribe((acc: DG.Accordion) => {
|
|
160
154
|
const ent = acc.context;
|
package/src/css/model-card.css
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
.model-catalog-view .d4-gallery-card.entity-model i.grok-icon {
|
|
2
|
-
height: 64px;
|
|
3
|
-
width: 64px;
|
|
4
|
-
position: initial;
|
|
5
|
-
flex-shrink: 0;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.model-catalog-view .d4-gallery-card.entity-model .d4-link-label i.grok-icon + label {
|
|
9
|
-
margin-left: 6px;
|
|
10
|
-
align-items: center;
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
white-space: normal;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.model-catalog-view .d4-gallery-card.entity-model {
|
|
16
|
-
padding: 0 8px;
|
|
17
|
-
align-items: center;
|
|
18
|
-
display: flex;
|
|
19
|
-
margin: 0;
|
|
20
|
-
height: 94px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.model-catalog-view .grok-gallery-grid[mode="Brief"] .grok-gallery-grid {
|
|
24
|
-
flex-direction: row!important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.model-catalog-view .grok-gallery-grid[mode="Brief"] .d4-link-label i.grok-icon {
|
|
28
|
-
width: 32px;
|
|
29
|
-
height: 32px;
|
|
30
|
-
position: initial;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.model-catalog-view .grok-gallery-grid[mode="Brief"] .d4-link-label label {
|
|
34
|
-
margin-left: 8px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.model-catalog-view .grok-gallery-grid[mode="Brief"] .grok-gallery-grid .d4-link-label {
|
|
38
|
-
min-width: 250px;
|
|
39
|
-
margin-bottom: 9px;
|
|
40
|
-
color: var(--grey-6);
|
|
41
|
-
padding: 10px;
|
|
42
|
-
width: initial;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.model-catalog-view .d4-tree-view-root > .d4-tree-view-group-host > .d4-tree-view-group > .d4-tree-view-node {
|
|
46
|
-
font-size: 20px;
|
|
47
|
-
padding: 4px 0;
|
|
48
|
-
color: var(--grey-6);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.model-catalog-view .d4-tree-view-root > .d4-tree-view-group-host > .d4-tree-view-group > .d4-tree-view-group-host > .d4-tree-view-group > .d4-tree-view-node {
|
|
52
|
-
font-size: 16px;
|
|
53
|
-
padding: 4px 0;
|
|
54
|
-
color: var(--grey-6);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.model-catalog-view .d4-tree-view-root > .d4-tree-view-group-host > .d4-tree-view-group > .d4-tree-view-group-host > .d4-tree-view-group > .d4-tree-view-group-host > .d4-tree-view-group .d4-tree-view-node {
|
|
58
|
-
font-size: 14px;
|
|
59
|
-
padding: 4px 0;
|
|
60
|
-
color: var(--grey-6);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.model-catalog-video {
|
|
64
|
-
width: 80%;
|
|
65
|
-
height: 0;
|
|
66
|
-
padding-bottom: 50%;
|
|
67
|
-
margin: 10px 10px 0 0;
|
|
68
|
-
border: 1px solid var(--grey-2);
|
|
69
|
-
position: relative;
|
|
70
|
-
background-size: cover;
|
|
71
|
-
background-repeat: no-repeat;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.model-catalog-video i {
|
|
75
|
-
position: absolute;
|
|
76
|
-
right: 0;
|
|
77
|
-
left: 0;
|
|
78
|
-
bottom: 0;
|
|
79
|
-
top: 0;
|
|
80
|
-
display: flex;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
font-weight: 600;
|
|
84
|
-
color: var(--grey-2);
|
|
85
|
-
font-size: 42px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.model-catalog-video i:hover {
|
|
89
|
-
color: var(--grey-1);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.model-catalog-description {
|
|
93
|
-
padding: 10px 0 0 0;
|
|
94
|
-
}
|