@things-factory/dataset 5.0.0-alpha.10 → 5.0.0-alpha.11
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/client/bootstrap.js +6 -2
- package/client/pages/data-sample.js +7 -7
- package/client/pages/data-sensor.js +6 -6
- package/client/pages/data-set.js +13 -10
- package/package.json +14 -13
- package/translations/en.json +1 -1
- package/translations/ko.json +1 -1
- package/translations/ms.json +1 -1
- package/translations/zh.json +1 -1
package/client/bootstrap.js
CHANGED
@@ -4,9 +4,13 @@ import {
|
|
4
4
|
registerRenderer as registerGristRenderer
|
5
5
|
} from '@operato/data-grist'
|
6
6
|
|
7
|
-
import {
|
7
|
+
import { OxGristEditorDataItemSpec } from '@operato/dataset/grist-editor'
|
8
|
+
import { OxGristEditorPartitionKeys } from '@operato/app/grist-editor/ox-grist-editor-partition-keys.js'
|
8
9
|
|
9
10
|
export default function bootstrap() {
|
10
|
-
registerGristEditor('data-item-spec',
|
11
|
+
registerGristEditor('data-item-spec', OxGristEditorDataItemSpec)
|
11
12
|
registerGristRenderer('data-item-spec', Json5Renderer)
|
13
|
+
|
14
|
+
registerGristEditor('partition-keys', OxGristEditorPartitionKeys)
|
15
|
+
registerGristRenderer('partition-keys', Json5Renderer)
|
12
16
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import '@operato/data-grist'
|
2
2
|
|
3
|
-
import
|
3
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
4
|
+
import { PageView, store } from '@operato/shell'
|
4
5
|
import { css, html } from 'lit'
|
5
|
-
import {
|
6
|
+
import { i18next, localize } from '@operato/i18n'
|
6
7
|
|
7
8
|
import { client } from '@operato/graphql'
|
8
|
-
import {
|
9
|
-
import
|
10
|
-
import { PageView, store } from '@operato/shell'
|
11
|
-
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
9
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
10
|
+
import gql from 'graphql-tag'
|
12
11
|
import { isMobileDevice } from '@operato/utils'
|
12
|
+
import { notify } from '@operato/layout'
|
13
13
|
|
14
14
|
export class DataSample extends connect(store)(localize(i18next)(PageView)) {
|
15
15
|
static get properties() {
|
@@ -147,7 +147,7 @@ export class DataSample extends connect(store)(localize(i18next)(PageView)) {
|
|
147
147
|
{
|
148
148
|
type: 'json5',
|
149
149
|
name: 'partitionKeys',
|
150
|
-
header: i18next.t('field.
|
150
|
+
header: i18next.t('field.partition-keys'),
|
151
151
|
record: {
|
152
152
|
editable: false
|
153
153
|
},
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import '@operato/data-grist'
|
2
2
|
|
3
|
-
import
|
3
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
4
|
+
import { PageView, store } from '@operato/shell'
|
4
5
|
import { css, html } from 'lit'
|
5
|
-
import {
|
6
|
+
import { i18next, localize } from '@operato/i18n'
|
6
7
|
|
7
8
|
import { client } from '@operato/graphql'
|
8
|
-
import {
|
9
|
-
import
|
10
|
-
import { PageView, store } from '@operato/shell'
|
11
|
-
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
9
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
10
|
+
import gql from 'graphql-tag'
|
12
11
|
import { isMobileDevice } from '@operato/utils'
|
12
|
+
import { notify } from '@operato/layout'
|
13
13
|
|
14
14
|
export class DataSensor extends connect(store)(localize(i18next)(PageView)) {
|
15
15
|
static get properties() {
|
package/client/pages/data-set.js
CHANGED
@@ -3,17 +3,17 @@ import './data-item-list'
|
|
3
3
|
import './data-set-importer'
|
4
4
|
import './data-entry-form'
|
5
5
|
|
6
|
-
import
|
6
|
+
import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
|
7
|
+
import { PageView, store } from '@operato/shell'
|
7
8
|
import { css, html } from 'lit'
|
8
|
-
import moment from 'moment-timezone'
|
9
|
-
import { connect } from 'pwa-helpers/connect-mixin'
|
10
|
-
|
11
|
-
import { client } from '@operato/graphql'
|
12
9
|
import { i18next, localize } from '@operato/i18n'
|
13
10
|
import { notify, openPopup } from '@operato/layout'
|
14
|
-
|
15
|
-
import {
|
11
|
+
|
12
|
+
import { client } from '@operato/graphql'
|
13
|
+
import { connect } from 'pwa-helpers/connect-mixin'
|
14
|
+
import gql from 'graphql-tag'
|
16
15
|
import { isMobileDevice } from '@operato/utils'
|
16
|
+
import moment from 'moment-timezone'
|
17
17
|
|
18
18
|
export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
19
19
|
static get properties() {
|
@@ -200,9 +200,9 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
200
200
|
width: 60
|
201
201
|
},
|
202
202
|
{
|
203
|
-
type: '
|
203
|
+
type: 'partition-keys',
|
204
204
|
name: 'partitionKeys',
|
205
|
-
header: i18next.t('field.
|
205
|
+
header: i18next.t('field.partition-keys'),
|
206
206
|
record: {
|
207
207
|
editable: true
|
208
208
|
},
|
@@ -214,7 +214,10 @@ export class DataSet extends connect(store)(localize(i18next)(PageView)) {
|
|
214
214
|
label: true,
|
215
215
|
header: i18next.t('field.schedule'),
|
216
216
|
record: {
|
217
|
-
editable: true
|
217
|
+
editable: true,
|
218
|
+
options: {
|
219
|
+
objectified: true
|
220
|
+
}
|
218
221
|
},
|
219
222
|
width: 80,
|
220
223
|
label: true
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "5.0.0-alpha.
|
3
|
+
"version": "5.0.0-alpha.11",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -24,17 +24,18 @@
|
|
24
24
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
|
-
"@operato/
|
28
|
-
"@operato/
|
29
|
-
"@operato/
|
30
|
-
"@operato/
|
31
|
-
"@operato/
|
32
|
-
"@operato/
|
33
|
-
"@operato/
|
34
|
-
"@operato/
|
35
|
-
"@
|
36
|
-
"@things-factory/
|
37
|
-
"@things-factory/
|
27
|
+
"@operato/app": "1.0.0-alpha.29",
|
28
|
+
"@operato/data-grist": "1.0.0-alpha.29",
|
29
|
+
"@operato/dataset": "1.0.0-alpha.29",
|
30
|
+
"@operato/graphql": "1.0.0-alpha.29",
|
31
|
+
"@operato/i18n": "1.0.0-alpha.29",
|
32
|
+
"@operato/layout": "1.0.0-alpha.29",
|
33
|
+
"@operato/shell": "1.0.0-alpha.29",
|
34
|
+
"@operato/styles": "1.0.0-alpha.29",
|
35
|
+
"@operato/utils": "1.0.0-alpha.29",
|
36
|
+
"@things-factory/auth-base": "^5.0.0-alpha.11",
|
37
|
+
"@things-factory/env": "^5.0.0-alpha.11",
|
38
|
+
"@things-factory/shell": "^5.0.0-alpha.11"
|
38
39
|
},
|
39
|
-
"gitHead": "
|
40
|
+
"gitHead": "9f8d36335eabb80642c18ffc4a09fca23636bb00"
|
40
41
|
}
|
package/translations/en.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
"field.device-id": "device id",
|
7
7
|
"field.netmask": "network mask",
|
8
8
|
"field.options": "options",
|
9
|
-
"field.
|
9
|
+
"field.partition-keys": "partition keys",
|
10
10
|
"field.quota": "sampling #",
|
11
11
|
"field.raw-data": "raw data",
|
12
12
|
"field.ref-by": "ref. by",
|
package/translations/ko.json
CHANGED
package/translations/ms.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
"field.device-id": "device id",
|
7
7
|
"field.netmask": "network mask",
|
8
8
|
"field.options": "options",
|
9
|
-
"field.
|
9
|
+
"field.partition-keys": "partition keys",
|
10
10
|
"field.quota": "sampling #",
|
11
11
|
"field.raw-data": "raw data",
|
12
12
|
"field.ref-by": "ref. by",
|
package/translations/zh.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
"field.device-id": "device id",
|
7
7
|
"field.netmask": "network mask",
|
8
8
|
"field.options": "options",
|
9
|
-
"field.
|
9
|
+
"field.partition-keys": "partition keys",
|
10
10
|
"field.quota": "sampling #",
|
11
11
|
"field.raw-data": "raw data",
|
12
12
|
"field.ref-by": "ref. by",
|