@operato/app 1.0.0-alpha.49 → 1.0.0-alpha.51
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 +18 -0
- package/dist/src/grist-editor/index.js +1 -1
- package/dist/src/grist-editor/index.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-renderer-crontab.js +11 -3
- package/dist/src/grist-editor/ox-grist-renderer-crontab.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -14
- package/src/grist-editor/index.ts +1 -1
- package/src/grist-editor/ox-grist-renderer-crontab.ts +13 -5
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "WebApplication production supporting components following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "heartyoh",
|
|
6
|
-
"version": "1.0.0-alpha.
|
|
6
|
+
"version": "1.0.0-alpha.51",
|
|
7
7
|
"main": "dist/src/index.js",
|
|
8
8
|
"module": "dist/src/index.js",
|
|
9
9
|
"exports": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"./grist-editor/ox-selector-resource-object.js": "./dist/src/grist-editor/ox-selector-resource-object.js",
|
|
22
22
|
"./grist-editor/ox-grist-renderer-resource-object.js": "./dist/src/grist-editor/ox-grist-renderer-resource-object.js",
|
|
23
23
|
"./grist-editor/ox-grist-editor-crontab.js": "./dist/src/grist-editor/ox-grist-editor-crontab.js",
|
|
24
|
+
"./grist-editor/ox-grist-renderer-crontab.js": "./dist/src/grist-editor/ox-grist-renderer-crontab.js",
|
|
24
25
|
"./grist-editor/ox-grist-editor-json.js": "./dist/src/grist-editor/ox-grist-editor-json.js",
|
|
25
26
|
"./grist-editor/ox-grist-editor-code.js": "./dist/src/grist-editor/ox-grist-editor-code.js",
|
|
26
27
|
"./grist-editor/ox-grist-editor-resource-object.js": "./dist/src/grist-editor/ox-grist-editor-resource-object.js",
|
|
@@ -57,18 +58,18 @@
|
|
|
57
58
|
"@material/mwc-button": "^0.25.3",
|
|
58
59
|
"@material/mwc-icon": "^0.25.3",
|
|
59
60
|
"@material/mwc-icon-button": "^0.25.3",
|
|
60
|
-
"@operato/attachment": "^1.0.0-alpha.
|
|
61
|
-
"@operato/data-grist": "^1.0.0-alpha.
|
|
62
|
-
"@operato/font": "^1.0.0-alpha.
|
|
63
|
-
"@operato/form": "^1.0.0-alpha.
|
|
64
|
-
"@operato/graphql": "^1.0.0-alpha.
|
|
65
|
-
"@operato/i18n": "^1.0.0-alpha.
|
|
66
|
-
"@operato/input": "^1.0.0-alpha.
|
|
67
|
-
"@operato/layout": "^1.0.0-alpha.
|
|
68
|
-
"@operato/property-editor": "^1.0.0-alpha.
|
|
69
|
-
"@operato/shell": "^1.0.0-alpha.
|
|
70
|
-
"@operato/styles": "^1.0.0-alpha.
|
|
71
|
-
"@operato/utils": "^1.0.0-alpha.
|
|
61
|
+
"@operato/attachment": "^1.0.0-alpha.51",
|
|
62
|
+
"@operato/data-grist": "^1.0.0-alpha.51",
|
|
63
|
+
"@operato/font": "^1.0.0-alpha.51",
|
|
64
|
+
"@operato/form": "^1.0.0-alpha.51",
|
|
65
|
+
"@operato/graphql": "^1.0.0-alpha.51",
|
|
66
|
+
"@operato/i18n": "^1.0.0-alpha.51",
|
|
67
|
+
"@operato/input": "^1.0.0-alpha.51",
|
|
68
|
+
"@operato/layout": "^1.0.0-alpha.51",
|
|
69
|
+
"@operato/property-editor": "^1.0.0-alpha.51",
|
|
70
|
+
"@operato/shell": "^1.0.0-alpha.51",
|
|
71
|
+
"@operato/styles": "^1.0.0-alpha.51",
|
|
72
|
+
"@operato/utils": "^1.0.0-alpha.51",
|
|
72
73
|
"codemirror": "^5.59.1",
|
|
73
74
|
"codemirror-graphql": "^0.15.2",
|
|
74
75
|
"cronstrue": "^2.2.0",
|
|
@@ -109,5 +110,5 @@
|
|
|
109
110
|
"prettier --write"
|
|
110
111
|
]
|
|
111
112
|
},
|
|
112
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "6304a714c9e6c9dd7d5dcaa0bb4715c48fe2f9bc"
|
|
113
114
|
}
|
|
@@ -8,7 +8,7 @@ import { OxGristEditorResourceCode } from './ox-grist-editor-resource-code.js'
|
|
|
8
8
|
import { OxGristEditorResourceId } from './ox-grist-editor-resource-id.js'
|
|
9
9
|
import { OxGristEditorResourceObject } from './ox-grist-editor-resource-object.js'
|
|
10
10
|
import { OxGristEditorValueMap } from './ox-grist-editor-value-map.js'
|
|
11
|
-
import { OxGristRendererCrontab } from './ox-grist-renderer-crontab'
|
|
11
|
+
import { OxGristRendererCrontab } from './ox-grist-renderer-crontab.js'
|
|
12
12
|
import { OxGristRendererResourceId } from './ox-grist-renderer-resource-id.js'
|
|
13
13
|
import { OxGristRendererResourceObject } from './ox-grist-renderer-resource-object.js'
|
|
14
14
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import cronstrue from 'cronstrue/i18n'
|
|
2
|
-
import { html } from 'lit'
|
|
3
|
-
|
|
4
1
|
import { FieldRenderer } from '@operato/data-grist'
|
|
2
|
+
import cronstrue from 'cronstrue/i18n'
|
|
5
3
|
import { detectOverflow } from '@operato/utils'
|
|
4
|
+
import { html } from 'lit'
|
|
5
|
+
import i18next from 'i18next'
|
|
6
6
|
|
|
7
7
|
function onmouseover(e: Event) {
|
|
8
8
|
const element = e.target as HTMLSpanElement
|
|
@@ -17,6 +17,14 @@ function onmouseout(e: Event) {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const OxGristRendererCrontab: FieldRenderer = (value, column, record, rowIndex, field) => {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
let text = ''
|
|
21
|
+
|
|
22
|
+
try {
|
|
23
|
+
const language = (i18next.language || 'en').substring(0, 2)
|
|
24
|
+
text = value === undefined ? '' : cronstrue.toString(value, { locale: language || 'en' })
|
|
25
|
+
} catch (e) {
|
|
26
|
+
console.error(e)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return html`<span @mouseover=${onmouseover} @mouseout=${onmouseout}>${text}</span>`
|
|
22
30
|
}
|