@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.
@@ -4,9 +4,13 @@ import {
4
4
  registerRenderer as registerGristRenderer
5
5
  } from '@operato/data-grist'
6
6
 
7
- import { OxDataItemSpecEditor } from '@operato/dataset/grist-editor'
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', OxDataItemSpecEditor)
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 gql from 'graphql-tag'
3
+ import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
4
+ import { PageView, store } from '@operato/shell'
4
5
  import { css, html } from 'lit'
5
- import { connect } from 'pwa-helpers/connect-mixin'
6
+ import { i18next, localize } from '@operato/i18n'
6
7
 
7
8
  import { client } from '@operato/graphql'
8
- import { i18next, localize } from '@operato/i18n'
9
- import { notify } from '@operato/layout'
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.partitionKeys'),
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 gql from 'graphql-tag'
3
+ import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
4
+ import { PageView, store } from '@operato/shell'
4
5
  import { css, html } from 'lit'
5
- import { connect } from 'pwa-helpers/connect-mixin'
6
+ import { i18next, localize } from '@operato/i18n'
6
7
 
7
8
  import { client } from '@operato/graphql'
8
- import { i18next, localize } from '@operato/i18n'
9
- import { notify } from '@operato/layout'
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() {
@@ -3,17 +3,17 @@ import './data-item-list'
3
3
  import './data-set-importer'
4
4
  import './data-entry-form'
5
5
 
6
- import gql from 'graphql-tag'
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
- import { PageView, store } from '@operato/shell'
15
- import { CommonButtonStyles, ScrollbarStyles } from '@operato/styles'
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: 'json',
203
+ type: 'partition-keys',
204
204
  name: 'partitionKeys',
205
- header: i18next.t('field.partitionKeys'),
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.10",
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/data-grist": "1.0.0-alpha.23",
28
- "@operato/dataset": "1.0.0-alpha.23",
29
- "@operato/graphql": "1.0.0-alpha.23",
30
- "@operato/i18n": "1.0.0-alpha.23",
31
- "@operato/layout": "1.0.0-alpha.23",
32
- "@operato/shell": "1.0.0-alpha.23",
33
- "@operato/styles": "1.0.0-alpha.23",
34
- "@operato/utils": "1.0.0-alpha.23",
35
- "@things-factory/auth-base": "^5.0.0-alpha.10",
36
- "@things-factory/env": "^5.0.0-alpha.10",
37
- "@things-factory/shell": "^5.0.0-alpha.10"
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": "24e85b0265d10cb664b8279bb927ea2a86227775"
40
+ "gitHead": "9f8d36335eabb80642c18ffc4a09fca23636bb00"
40
41
  }
@@ -6,7 +6,7 @@
6
6
  "field.device-id": "device id",
7
7
  "field.netmask": "network mask",
8
8
  "field.options": "options",
9
- "field.partitionKeys": "partition keys",
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",
@@ -6,7 +6,7 @@
6
6
  "field.device-id": "디바이스 아이디",
7
7
  "field.netmask": "네트워크마스크",
8
8
  "field.options": "선택옵션",
9
- "field.partitionKeys": "파티션 키",
9
+ "field.partition-keys": "파티션 키",
10
10
  "field.quota": "샘플수",
11
11
  "field.raw-data": "데이타 원본",
12
12
  "field.ref-by": "참조아이템",
@@ -6,7 +6,7 @@
6
6
  "field.device-id": "device id",
7
7
  "field.netmask": "network mask",
8
8
  "field.options": "options",
9
- "field.partitionKeys": "partition keys",
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",
@@ -6,7 +6,7 @@
6
6
  "field.device-id": "device id",
7
7
  "field.netmask": "network mask",
8
8
  "field.options": "options",
9
- "field.partitionKeys": "partition keys",
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",