@datagrok/webcomponents 1.4.6 → 1.5.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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +22 -0
- package/dist/package-test.js +4 -4
- package/dist/package-test.js.map +1 -1
- package/dist/package.js +12 -48
- package/dist/package.js.map +1 -1
- package/package.json +5 -11
- package/src/package.ts +17 -32
- package/src/styles.css +0 -36
package/package.json
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/webcomponents",
|
|
3
3
|
"friendlyName": "WebComponents",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Andrey Sharapov",
|
|
7
7
|
"email": "andrey.sharapov@softwarecountry.com"
|
|
8
8
|
},
|
|
9
9
|
"description": "WebComponents runtime code",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@datagrok-libraries/
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"@datagrok-libraries/utils": "^4.7.9",
|
|
16
|
-
"@datagrok-libraries/webcomponents": "^0.3.7",
|
|
17
|
-
"datagrok-api": "^1.27.11"
|
|
11
|
+
"@datagrok-libraries/dock-spawn-dg": "^1.0.0",
|
|
12
|
+
"@datagrok-libraries/test": "^1.6.0",
|
|
13
|
+
"@datagrok-libraries/webcomponents": "^1.0.0",
|
|
14
|
+
"datagrok-api": "^1.28.1"
|
|
18
15
|
},
|
|
19
16
|
"canEdit": [
|
|
20
17
|
"Administrators"
|
|
@@ -28,9 +25,6 @@
|
|
|
28
25
|
"directory": "packages/WebComponents"
|
|
29
26
|
},
|
|
30
27
|
"category": "General",
|
|
31
|
-
"meta": {
|
|
32
|
-
"dartium": false
|
|
33
|
-
},
|
|
34
28
|
"scripts": {
|
|
35
29
|
"build": "grok build",
|
|
36
30
|
"typecheck": "grok tsc --noEmit -p tsconfig.json",
|
package/src/package.ts
CHANGED
|
@@ -14,41 +14,26 @@ import './styles.css';
|
|
|
14
14
|
export * from './package.g';
|
|
15
15
|
export const _package = new DG.Package();
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const ELEMENTS: [string, CustomElementConstructor, ElementDefinitionOptions?][] = [
|
|
18
|
+
['dg-viewer', Viewer],
|
|
19
|
+
['dg-input-form', InputForm],
|
|
20
|
+
['dg-button', DGButton, {extends: 'button'}],
|
|
21
|
+
['dg-big-button', DGBigButton, {extends: 'button'}],
|
|
22
|
+
['dg-icon-fa', DGIconFA],
|
|
23
|
+
['dg-icon-image', DGIconImage],
|
|
24
|
+
['dg-toggle-input', DGToggleInput],
|
|
25
|
+
['dg-combo-popup', DGComboPopup],
|
|
26
|
+
['dock-spawn-ts', DockSpawnTsWebcomponent],
|
|
27
|
+
['dg-markdown', DGMarkdown],
|
|
28
|
+
['dg-validation-icon', ValidationIcon],
|
|
29
|
+
];
|
|
19
30
|
|
|
20
31
|
export class PackageFunctions {
|
|
21
32
|
@grok.decorators.init()
|
|
22
33
|
static async init() {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
customElements.define('dg-button', DGButton, {extends: 'button'});
|
|
28
|
-
customElements.define('dg-big-button', DGBigButton, {extends: 'button'});
|
|
29
|
-
customElements.define('dg-icon-fa', DGIconFA);
|
|
30
|
-
customElements.define('dg-icon-image', DGIconImage);
|
|
31
|
-
customElements.define('dg-toggle-input', DGToggleInput);
|
|
32
|
-
customElements.define('dg-combo-popup', DGComboPopup);
|
|
33
|
-
customElements.define('dock-spawn-ts', DockSpawnTsWebcomponent);
|
|
34
|
-
customElements.define('dg-markdown', DGMarkdown);
|
|
35
|
-
customElements.define('dg-validation-icon', ValidationIcon);
|
|
36
|
-
inited = true;
|
|
37
|
-
|
|
38
|
-
await Promise.all([
|
|
39
|
-
customElements.whenDefined('dg-viewer'),
|
|
40
|
-
customElements.whenDefined('dg-input-form'),
|
|
41
|
-
customElements.whenDefined('dg-button'),
|
|
42
|
-
customElements.whenDefined('dg-big-button'),
|
|
43
|
-
customElements.whenDefined('dg-icon-fa'),
|
|
44
|
-
customElements.whenDefined('dg-icon-image'),
|
|
45
|
-
customElements.whenDefined('dg-toggle-input'),
|
|
46
|
-
customElements.whenDefined('dg-combo-popup'),
|
|
47
|
-
customElements.whenDefined('dock-spawn-ts'),
|
|
48
|
-
customElements.whenDefined('dg-markdown'),
|
|
49
|
-
customElements.whenDefined('dg-validation-icon'),
|
|
50
|
-
]);
|
|
51
|
-
|
|
52
|
-
console.log('webcomponents registered');
|
|
34
|
+
for (const [name, element, options] of ELEMENTS) {
|
|
35
|
+
if (!customElements.get(name))
|
|
36
|
+
customElements.define(name, element, options);
|
|
37
|
+
}
|
|
53
38
|
}
|
|
54
39
|
}
|
package/src/styles.css
CHANGED
|
@@ -3,42 +3,6 @@
|
|
|
3
3
|
left: unset !important;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
dg-input-form .ui-form-condensed .ui-input-multi-choice .grok-wait {
|
|
7
|
-
height: auto !important;
|
|
8
|
-
min-height: 28px;
|
|
9
|
-
width: 100% !important;
|
|
10
|
-
padding-bottom: 8px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
dg-input-form .ui-input-multi-choice .ui-input-multi-choice-tree-wrap {
|
|
14
|
-
margin-left: 0 !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
6
|
dg-input-form .ui-form-condensed .ui-input-choice select.ui-input-editor {
|
|
18
7
|
box-sizing: border-box !important;
|
|
19
8
|
}
|
|
20
|
-
|
|
21
|
-
dg-input-form .ui-form-condensed .ui-input-multi-choice {
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
align-items: flex-start !important;
|
|
24
|
-
padding-top: 8px !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
dg-input-form .ui-form-condensed .ui-input-multi-choice label.ui-input-label {
|
|
28
|
-
justify-content: flex-start !important;
|
|
29
|
-
width: 100% !important;
|
|
30
|
-
height: auto !important;
|
|
31
|
-
min-height: 24px;
|
|
32
|
-
margin-bottom: 4px;
|
|
33
|
-
overflow: visible;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
dg-input-form .ui-form-condensed .ui-input-multi-choice .ui-input-options {
|
|
37
|
-
height: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
dg-input-form .ui-form-condensed .ui-input-multi-choice label.ui-input-label > span {
|
|
41
|
-
margin-top: 0 !important;
|
|
42
|
-
display: inline-flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
}
|