@operato/app 1.1.45 → 1.1.47
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 +17 -0
- package/dist/src/grist-editor/ox-grist-editor-code.d.ts +2 -1
- package/dist/src/grist-editor/ox-grist-editor-code.js +9 -6
- package/dist/src/grist-editor/ox-grist-editor-code.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-json.d.ts +2 -1
- package/dist/src/grist-editor/ox-grist-editor-json.js +9 -6
- package/dist/src/grist-editor/ox-grist-editor-json.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-id.d.ts +2 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-id.js +11 -6
- package/dist/src/grist-editor/ox-grist-editor-resource-id.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-object-legacy.d.ts +2 -0
- package/dist/src/grist-editor/ox-grist-editor-resource-object-legacy.js +15 -5
- package/dist/src/grist-editor/ox-grist-editor-resource-object-legacy.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-object.d.ts +2 -0
- package/dist/src/grist-editor/ox-grist-editor-resource-object.js +15 -5
- package/dist/src/grist-editor/ox-grist-editor-resource-object.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/grist-editor/ox-grist-editor-code.ts +9 -8
- package/src/grist-editor/ox-grist-editor-json.ts +9 -8
- package/src/grist-editor/ox-grist-editor-resource-id.ts +11 -8
- package/src/grist-editor/ox-grist-editor-resource-object-legacy.ts +15 -7
- package/src/grist-editor/ox-grist-editor-resource-object.ts +15 -7
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/app",
|
|
3
3
|
"description": "WebApplication production supporting components following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.47",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -114,15 +114,15 @@
|
|
|
114
114
|
"@material/mwc-button": "^0.27.0",
|
|
115
115
|
"@material/mwc-icon": "^0.27.0",
|
|
116
116
|
"@material/mwc-icon-button": "^0.27.0",
|
|
117
|
-
"@operato/attachment": "^1.1.
|
|
118
|
-
"@operato/data-grist": "^1.1.
|
|
119
|
-
"@operato/font": "^1.1.
|
|
117
|
+
"@operato/attachment": "^1.1.47",
|
|
118
|
+
"@operato/data-grist": "^1.1.47",
|
|
119
|
+
"@operato/font": "^1.1.47",
|
|
120
120
|
"@operato/form": "^1.1.42",
|
|
121
121
|
"@operato/graphql": "^1.1.13",
|
|
122
122
|
"@operato/i18n": "^1.1.13",
|
|
123
|
-
"@operato/input": "^1.1.
|
|
124
|
-
"@operato/layout": "^1.1.
|
|
125
|
-
"@operato/property-editor": "^1.1.
|
|
123
|
+
"@operato/input": "^1.1.46",
|
|
124
|
+
"@operato/layout": "^1.1.46",
|
|
125
|
+
"@operato/property-editor": "^1.1.47",
|
|
126
126
|
"@operato/shell": "^1.1.42",
|
|
127
127
|
"@operato/styles": "^1.1.28",
|
|
128
128
|
"@operato/utils": "^1.1.42",
|
|
@@ -166,5 +166,5 @@
|
|
|
166
166
|
"prettier --write"
|
|
167
167
|
]
|
|
168
168
|
},
|
|
169
|
-
"gitHead": "
|
|
169
|
+
"gitHead": "8241178dd84d4864ec17a181f37dc9b530a38dac"
|
|
170
170
|
}
|
|
@@ -10,19 +10,20 @@ import { openPopup } from '@operato/layout'
|
|
|
10
10
|
@customElement('ox-grist-editor-code')
|
|
11
11
|
export class OxGristEditorCode extends OxGristEditor {
|
|
12
12
|
get editorTemplate() {
|
|
13
|
-
return html` <
|
|
13
|
+
return html` <div tabindex="0">${this.value || ''}</div> `
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
_onclick(e: Event): void {
|
|
17
|
+
e.stopPropagation()
|
|
18
|
+
this.showEditorPopup()
|
|
19
|
+
}
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
_onkeydown(e: KeyboardEvent): void {
|
|
22
|
+
const key = e.key
|
|
23
|
+
if (key == 'Enter') {
|
|
20
24
|
e.stopPropagation()
|
|
21
|
-
|
|
22
25
|
this.showEditorPopup()
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
this.showEditorPopup()
|
|
26
|
+
}
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
showEditorPopup() {
|
|
@@ -9,19 +9,20 @@ import { openPopup } from '@operato/layout'
|
|
|
9
9
|
@customElement('ox-grist-editor-json')
|
|
10
10
|
export class OxGristEditorJson extends OxGristEditor {
|
|
11
11
|
get editorTemplate() {
|
|
12
|
-
return html` <
|
|
12
|
+
return html` <div tabindex="0">${this.value || ''}</div> `
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
_onclick(e: Event): void {
|
|
16
|
+
e.stopPropagation()
|
|
17
|
+
this.showEditorPopup()
|
|
18
|
+
}
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
_onkeydown(e: KeyboardEvent): void {
|
|
21
|
+
const key = e.key
|
|
22
|
+
if (key == 'Enter') {
|
|
19
23
|
e.stopPropagation()
|
|
20
|
-
|
|
21
24
|
this.showEditorPopup()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
this.showEditorPopup()
|
|
25
|
+
}
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
showEditorPopup() {
|
|
@@ -16,21 +16,24 @@ export class OxGristEditorResourceId extends OxGristEditor {
|
|
|
16
16
|
var value = this.value
|
|
17
17
|
|
|
18
18
|
return html`
|
|
19
|
-
${!value
|
|
19
|
+
${!value
|
|
20
|
+
? html`<span tabindex="0"></span>`
|
|
21
|
+
: html` <span tabindex="0">${value[nameField]} (${value[descriptionField]})</span> `}
|
|
20
22
|
<mwc-icon>arrow_drop_down</mwc-icon>
|
|
21
23
|
`
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
_onclick(e: Event): void {
|
|
27
|
+
e.stopPropagation()
|
|
28
|
+
this.openSelector()
|
|
29
|
+
}
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
_onkeydown(e: KeyboardEvent): void {
|
|
32
|
+
const key = e.key
|
|
33
|
+
if (key == 'Enter') {
|
|
28
34
|
e.stopPropagation()
|
|
29
|
-
|
|
30
35
|
this.openSelector()
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
this.openSelector()
|
|
36
|
+
}
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
openSelector() {
|
|
@@ -29,21 +29,29 @@ export class OxGristEditorResourceObjectLegacy extends OxGristEditor {
|
|
|
29
29
|
description = value[descriptionField] && `(${value[descriptionField]})`
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
return html`
|
|
32
|
+
return html`
|
|
33
|
+
${!value
|
|
34
|
+
? html`<span tabindex="0"></span>`
|
|
35
|
+
: html` <span tabindex="0" style="flex:1">${name || ''}${description || ''}</span> `}
|
|
36
|
+
`
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
async firstUpdated() {
|
|
40
|
+
super.firstUpdated()
|
|
36
41
|
this.template = ((this.column.record || {}).options || {}).template
|
|
42
|
+
}
|
|
37
43
|
|
|
38
|
-
|
|
44
|
+
_onclick(e: Event): void {
|
|
45
|
+
e.stopPropagation()
|
|
46
|
+
this.openSelector()
|
|
47
|
+
}
|
|
39
48
|
|
|
40
|
-
|
|
49
|
+
_onkeydown(e: KeyboardEvent): void {
|
|
50
|
+
const key = e.key
|
|
51
|
+
if (key == 'Enter') {
|
|
41
52
|
e.stopPropagation()
|
|
42
|
-
|
|
43
53
|
this.openSelector()
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
this.openSelector()
|
|
54
|
+
}
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
openSelector() {
|
|
@@ -29,21 +29,29 @@ export class OxGristEditorResourceObject extends OxGristEditor {
|
|
|
29
29
|
description = value[descriptionField] && `(${value[descriptionField]})`
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
return html`
|
|
32
|
+
return html`
|
|
33
|
+
${!value
|
|
34
|
+
? html`<span tabindex="0"></span>`
|
|
35
|
+
: html` <span tabindex="0" style="flex:1">${name || ''}${description || ''}</span> `}
|
|
36
|
+
`
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
async firstUpdated() {
|
|
40
|
+
super.firstUpdated()
|
|
36
41
|
this.template = ((this.column.record || {}).options || {}).template
|
|
42
|
+
}
|
|
37
43
|
|
|
38
|
-
|
|
44
|
+
_onclick(e: Event): void {
|
|
45
|
+
e.stopPropagation()
|
|
46
|
+
this.openSelector()
|
|
47
|
+
}
|
|
39
48
|
|
|
40
|
-
|
|
49
|
+
_onkeydown(e: KeyboardEvent): void {
|
|
50
|
+
const key = e.key
|
|
51
|
+
if (key == 'Enter') {
|
|
41
52
|
e.stopPropagation()
|
|
42
|
-
|
|
43
53
|
this.openSelector()
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
this.openSelector()
|
|
54
|
+
}
|
|
47
55
|
}
|
|
48
56
|
|
|
49
57
|
openSelector() {
|