@things-factory/dataset 7.0.0-alpha.5 → 7.0.0-alpha.6
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/pages/data-entry/data-entry-list-page.ts +8 -23
- package/client/pages/data-ooc/data-ooc-list-page.ts +26 -11
- package/client/pages/data-ooc/{data-ooc-view-page.ts → data-ooc-page.ts} +1 -1
- package/client/pages/data-ooc/data-ooc-view.ts +53 -35
- package/client/pages/data-ooc/data-oocs-page.ts +132 -0
- package/client/pages/data-sample/data-sample-list-page.ts +25 -20
- package/client/pages/data-sample/{data-sample-view-page.ts → data-sample-page.ts} +1 -1
- package/client/pages/data-sample/data-sample-search-page.ts +25 -20
- package/client/pages/data-sample/data-sample-view.ts +60 -12
- package/client/pages/data-sample/data-samples-page.ts +121 -0
- package/client/route.ts +10 -2
- package/dist-client/pages/data-entry/data-entry-list-page.js +3 -15
- package/dist-client/pages/data-entry/data-entry-list-page.js.map +1 -1
- package/dist-client/pages/data-ooc/data-ooc-list-page.d.ts +6 -0
- package/dist-client/pages/data-ooc/data-ooc-list-page.js +17 -3
- package/dist-client/pages/data-ooc/data-ooc-list-page.js.map +1 -1
- package/dist-client/pages/data-ooc/{data-ooc-view-page.js → data-ooc-page.js} +2 -2
- package/dist-client/pages/data-ooc/data-ooc-page.js.map +1 -0
- package/dist-client/pages/data-ooc/data-ooc-view.d.ts +5 -1
- package/dist-client/pages/data-ooc/data-ooc-view.js +50 -38
- package/dist-client/pages/data-ooc/data-ooc-view.js.map +1 -1
- package/dist-client/pages/data-ooc/data-oocs-page.d.ts +17 -0
- package/dist-client/pages/data-ooc/data-oocs-page.js +132 -0
- package/dist-client/pages/data-ooc/data-oocs-page.js.map +1 -0
- package/dist-client/pages/data-sample/data-sample-list-page.d.ts +6 -1
- package/dist-client/pages/data-sample/data-sample-list-page.js +19 -13
- package/dist-client/pages/data-sample/data-sample-list-page.js.map +1 -1
- package/dist-client/pages/data-sample/{data-sample-view-page.js → data-sample-page.js} +2 -2
- package/dist-client/pages/data-sample/data-sample-page.js.map +1 -0
- package/dist-client/pages/data-sample/data-sample-search-page.d.ts +6 -1
- package/dist-client/pages/data-sample/data-sample-search-page.js +19 -13
- package/dist-client/pages/data-sample/data-sample-search-page.js.map +1 -1
- package/dist-client/pages/data-sample/data-sample-view.js +55 -11
- package/dist-client/pages/data-sample/data-sample-view.js.map +1 -1
- package/dist-client/pages/data-sample/data-samples-page.d.ts +19 -0
- package/dist-client/pages/data-sample/data-samples-page.js +120 -0
- package/dist-client/pages/data-sample/data-samples-page.js.map +1 -0
- package/dist-client/route.js +8 -2
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/data-ooc/data-ooc.js +33 -15
- package/dist-server/service/data-ooc/data-ooc.js.map +1 -1
- package/dist-server/service/data-sample/data-sample.js +15 -12
- package/dist-server/service/data-sample/data-sample.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -11
- package/server/service/data-ooc/data-ooc.ts +27 -28
- package/server/service/data-sample/data-sample.ts +14 -32
- package/things-factory.config.js +10 -2
- package/translations/en.json +1 -0
- package/translations/ja.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
- package/dist-client/pages/data-ooc/data-ooc-view-page.js.map +0 -1
- package/dist-client/pages/data-sample/data-sample-view-page.js.map +0 -1
- /package/dist-client/pages/data-ooc/{data-ooc-view-page.d.ts → data-ooc-page.d.ts} +0 -0
- /package/dist-client/pages/data-sample/{data-sample-view-page.d.ts → data-sample-page.d.ts} +0 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/dataset",
|
3
|
-
"version": "7.0.0-alpha.
|
3
|
+
"version": "7.0.0-alpha.6",
|
4
4
|
"main": "dist-server/index.js",
|
5
5
|
"browser": "dist-client/index.js",
|
6
6
|
"things-factory": true,
|
@@ -27,9 +27,12 @@
|
|
27
27
|
"migration:create": "node ../../node_modules/typeorm/cli.js migration:create -d ./server/migrations"
|
28
28
|
},
|
29
29
|
"dependencies": {
|
30
|
+
"@material/mwc-fab": "^0.27.0",
|
31
|
+
"@material/mwc-icon": "^0.27.0",
|
30
32
|
"@operato/app": "^2.0.0-alpha.0",
|
31
33
|
"@operato/data-grist": "^2.0.0-alpha.0",
|
32
34
|
"@operato/dataset": "^2.0.0-alpha.0",
|
35
|
+
"@operato/ghost-print": "^2.0.0-alpha.0",
|
33
36
|
"@operato/graphql": "^2.0.0-alpha.0",
|
34
37
|
"@operato/grist-editor": "^2.0.0-alpha.0",
|
35
38
|
"@operato/i18n": "^2.0.0-alpha.0",
|
@@ -37,20 +40,20 @@
|
|
37
40
|
"@operato/shell": "^2.0.0-alpha.0",
|
38
41
|
"@operato/styles": "^2.0.0-alpha.0",
|
39
42
|
"@operato/utils": "^2.0.0-alpha.0",
|
40
|
-
"@things-factory/auth-base": "^7.0.0-alpha.
|
41
|
-
"@things-factory/aws-base": "^7.0.0-alpha.
|
42
|
-
"@things-factory/board-service": "^7.0.0-alpha.
|
43
|
+
"@things-factory/auth-base": "^7.0.0-alpha.6",
|
44
|
+
"@things-factory/aws-base": "^7.0.0-alpha.6",
|
45
|
+
"@things-factory/board-service": "^7.0.0-alpha.6",
|
43
46
|
"@things-factory/env": "^7.0.0-alpha.0",
|
44
|
-
"@things-factory/integration-base": "^7.0.0-alpha.
|
45
|
-
"@things-factory/organization": "^7.0.0-alpha.
|
46
|
-
"@things-factory/scheduler-client": "^7.0.0-alpha.
|
47
|
-
"@things-factory/shell": "^7.0.0-alpha.
|
48
|
-
"@things-factory/work-shift": "^7.0.0-alpha.
|
49
|
-
"@things-factory/worklist": "^7.0.0-alpha.
|
47
|
+
"@things-factory/integration-base": "^7.0.0-alpha.6",
|
48
|
+
"@things-factory/organization": "^7.0.0-alpha.6",
|
49
|
+
"@things-factory/scheduler-client": "^7.0.0-alpha.6",
|
50
|
+
"@things-factory/shell": "^7.0.0-alpha.6",
|
51
|
+
"@things-factory/work-shift": "^7.0.0-alpha.6",
|
52
|
+
"@things-factory/worklist": "^7.0.0-alpha.6",
|
50
53
|
"cron-parser": "^4.3.0",
|
51
54
|
"moment-timezone": "^0.5.40",
|
52
55
|
"simple-statistics": "^7.8.3",
|
53
56
|
"statistics": "^3.3.0"
|
54
57
|
},
|
55
|
-
"gitHead": "
|
58
|
+
"gitHead": "cf46b4e03d6312f7ccb366a3c9fc2df16c68b7fa"
|
56
59
|
}
|
@@ -1,21 +1,14 @@
|
|
1
1
|
import { Field, ID, ObjectType, registerEnumType } from 'type-graphql'
|
2
|
-
import {
|
3
|
-
Column,
|
4
|
-
CreateDateColumn,
|
5
|
-
Entity,
|
6
|
-
Index,
|
7
|
-
ManyToOne,
|
8
|
-
PrimaryGeneratedColumn,
|
9
|
-
RelationId,
|
10
|
-
UpdateDateColumn
|
11
|
-
} from 'typeorm'
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'
|
12
3
|
|
13
4
|
import { User } from '@things-factory/auth-base'
|
14
5
|
import { config } from '@things-factory/env'
|
15
6
|
import { Domain, ScalarObject } from '@things-factory/shell'
|
7
|
+
import { ActivityInstance } from '@things-factory/worklist'
|
16
8
|
|
17
9
|
import { DataItem } from '../data-set/data-item-type'
|
18
10
|
import { DataSet } from '../data-set/data-set'
|
11
|
+
import { DataSample } from '../data-sample/data-sample'
|
19
12
|
|
20
13
|
const ORMCONFIG = config.get('ormconfig', {})
|
21
14
|
const DATABASE_TYPE = ORMCONFIG.type
|
@@ -87,24 +80,14 @@ export class DataOoc {
|
|
87
80
|
|
88
81
|
@Column({
|
89
82
|
nullable: true,
|
90
|
-
type:
|
91
|
-
DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
92
|
-
? 'longtext'
|
93
|
-
: DATABASE_TYPE == 'oracle'
|
94
|
-
? 'clob'
|
95
|
-
: 'varchar'
|
83
|
+
type: DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? 'longtext' : DATABASE_TYPE == 'oracle' ? 'clob' : 'varchar'
|
96
84
|
})
|
97
85
|
@Field({ nullable: true })
|
98
86
|
correctiveInstruction?: string
|
99
87
|
|
100
88
|
@Column({
|
101
89
|
nullable: true,
|
102
|
-
type:
|
103
|
-
DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
104
|
-
? 'longtext'
|
105
|
-
: DATABASE_TYPE == 'oracle'
|
106
|
-
? 'clob'
|
107
|
-
: 'varchar'
|
90
|
+
type: DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? 'longtext' : DATABASE_TYPE == 'oracle' ? 'clob' : 'varchar'
|
108
91
|
})
|
109
92
|
@Field({ nullable: true })
|
110
93
|
correctiveAction?: string
|
@@ -162,12 +145,7 @@ export class DataOoc {
|
|
162
145
|
|
163
146
|
@Column({
|
164
147
|
nullable: true,
|
165
|
-
type:
|
166
|
-
DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
167
|
-
? 'longtext'
|
168
|
-
: DATABASE_TYPE == 'oracle'
|
169
|
-
? 'clob'
|
170
|
-
: 'varchar'
|
148
|
+
type: DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? 'longtext' : DATABASE_TYPE == 'oracle' ? 'clob' : 'varchar'
|
171
149
|
})
|
172
150
|
@Field({ nullable: true })
|
173
151
|
rawData?: string
|
@@ -178,6 +156,27 @@ export class DataOoc {
|
|
178
156
|
@Field({ nullable: true })
|
179
157
|
source?: string
|
180
158
|
|
159
|
+
@ManyToOne(type => DataSample, { nullable: true })
|
160
|
+
@Field({ nullable: true })
|
161
|
+
dataSample?: DataSample
|
162
|
+
|
163
|
+
@RelationId((dataOoc: DataOoc) => dataOoc.dataSample)
|
164
|
+
dataSampleId?: string
|
165
|
+
|
166
|
+
@ManyToOne(type => ActivityInstance, { nullable: true })
|
167
|
+
@Field({ nullable: true })
|
168
|
+
reviewActivityInstance?: ActivityInstance
|
169
|
+
|
170
|
+
@RelationId((dataOoc: DataOoc) => dataOoc.reviewActivityInstance)
|
171
|
+
reviewActivityInstanceId?: string
|
172
|
+
|
173
|
+
@ManyToOne(type => ActivityInstance, { nullable: true })
|
174
|
+
@Field({ nullable: true })
|
175
|
+
resolveActivityInstance?: ActivityInstance
|
176
|
+
|
177
|
+
@RelationId((dataOoc: DataOoc) => dataOoc.resolveActivityInstance)
|
178
|
+
resolveActivityInstanceId?: string
|
179
|
+
|
181
180
|
@Column({ nullable: true })
|
182
181
|
@Field({ nullable: true })
|
183
182
|
workDate?: string
|
@@ -1,18 +1,10 @@
|
|
1
1
|
import { Field, ID, ObjectType } from 'type-graphql'
|
2
|
-
import {
|
3
|
-
Column,
|
4
|
-
CreateDateColumn,
|
5
|
-
Entity,
|
6
|
-
Index,
|
7
|
-
ManyToOne,
|
8
|
-
PrimaryGeneratedColumn,
|
9
|
-
RelationId,
|
10
|
-
UpdateDateColumn
|
11
|
-
} from 'typeorm'
|
2
|
+
import { Column, CreateDateColumn, Entity, Index, ManyToOne, PrimaryGeneratedColumn, RelationId, UpdateDateColumn } from 'typeorm'
|
12
3
|
|
13
4
|
import { User } from '@things-factory/auth-base'
|
14
5
|
import { config } from '@things-factory/env'
|
15
6
|
import { Domain, ScalarObject } from '@things-factory/shell'
|
7
|
+
import { ActivityInstance } from '@things-factory/worklist'
|
16
8
|
|
17
9
|
import { DataItem } from '../data-set/data-item-type'
|
18
10
|
import { DataSet } from '../data-set/data-set'
|
@@ -20,22 +12,10 @@ import { DataSet } from '../data-set/data-set'
|
|
20
12
|
const ORMCONFIG = config.get('ormconfig', {})
|
21
13
|
const DATABASE_TYPE = ORMCONFIG.type
|
22
14
|
@Entity()
|
23
|
-
@Index(
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
dataSample.dataSet,
|
28
|
-
dataSample.workDate,
|
29
|
-
dataSample.workShift,
|
30
|
-
dataSample.collectedAt
|
31
|
-
],
|
32
|
-
{ unique: false }
|
33
|
-
)
|
34
|
-
@Index(
|
35
|
-
'ix_data_sample_1',
|
36
|
-
(dataSample: DataSample) => [dataSample.domain, dataSample.dataSet, dataSample.collectedAt],
|
37
|
-
{ unique: false }
|
38
|
-
)
|
15
|
+
@Index('ix_data_sample_0', (dataSample: DataSample) => [dataSample.domain, dataSample.dataSet, dataSample.workDate, dataSample.workShift, dataSample.collectedAt], {
|
16
|
+
unique: false
|
17
|
+
})
|
18
|
+
@Index('ix_data_sample_1', (dataSample: DataSample) => [dataSample.domain, dataSample.dataSet, dataSample.collectedAt], { unique: false })
|
39
19
|
@ObjectType({ description: 'Entity for DataSample' })
|
40
20
|
export class DataSample {
|
41
21
|
@PrimaryGeneratedColumn('uuid')
|
@@ -99,12 +79,7 @@ export class DataSample {
|
|
99
79
|
|
100
80
|
@Column({
|
101
81
|
nullable: true,
|
102
|
-
type:
|
103
|
-
DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb'
|
104
|
-
? 'longtext'
|
105
|
-
: DATABASE_TYPE == 'oracle'
|
106
|
-
? 'clob'
|
107
|
-
: 'varchar'
|
82
|
+
type: DATABASE_TYPE == 'mysql' || DATABASE_TYPE == 'mariadb' ? 'longtext' : DATABASE_TYPE == 'oracle' ? 'clob' : 'varchar'
|
108
83
|
})
|
109
84
|
@Field({ nullable: true })
|
110
85
|
rawData?: string
|
@@ -155,6 +130,13 @@ export class DataSample {
|
|
155
130
|
@Field({ nullable: true })
|
156
131
|
workShift?: string
|
157
132
|
|
133
|
+
@ManyToOne(type => ActivityInstance, { nullable: true })
|
134
|
+
@Field({ nullable: true })
|
135
|
+
reviewActivityInstance?: ActivityInstance
|
136
|
+
|
137
|
+
@RelationId((dataSample: DataSample) => dataSample.reviewActivityInstance)
|
138
|
+
reviewActivityInstanceId?: string
|
139
|
+
|
158
140
|
@Column({ nullable: true })
|
159
141
|
@Field({ nullable: true })
|
160
142
|
collectedAt?: Date
|
package/things-factory.config.js
CHANGED
@@ -13,9 +13,13 @@ export default {
|
|
13
13
|
page: 'data-sensor-list'
|
14
14
|
},
|
15
15
|
{
|
16
|
-
tagname: 'data-sample-
|
16
|
+
tagname: 'data-sample-page',
|
17
17
|
page: 'data-sample'
|
18
18
|
},
|
19
|
+
{
|
20
|
+
tagname: 'data-samples-page',
|
21
|
+
page: 'data-samples'
|
22
|
+
},
|
19
23
|
{
|
20
24
|
tagname: 'data-sample-list-page',
|
21
25
|
page: 'data-sample-list'
|
@@ -37,9 +41,13 @@ export default {
|
|
37
41
|
page: 'data-summary-period'
|
38
42
|
},
|
39
43
|
{
|
40
|
-
tagname: 'data-ooc-
|
44
|
+
tagname: 'data-ooc-page',
|
41
45
|
page: 'data-ooc'
|
42
46
|
},
|
47
|
+
{
|
48
|
+
tagname: 'data-oocs-page',
|
49
|
+
page: 'data-oocs'
|
50
|
+
},
|
43
51
|
{
|
44
52
|
tagname: 'data-ooc-list-page',
|
45
53
|
page: 'data-ooc-list'
|
package/translations/en.json
CHANGED
package/translations/ja.json
CHANGED
package/translations/ko.json
CHANGED
package/translations/ms.json
CHANGED
package/translations/zh.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"data-ooc-view-page.js","sourceRoot":"","sources":["../../../client/pages/data-ooc/data-ooc-view-page.ts"],"names":[],"mappings":";AAAA,OAAO,GAAG,MAAM,aAAa,CAAA;AAE7B,OAAO,EAAkB,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEzC,OAAO,oBAAoB,CAAA;AAGpB,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC;IAe9D,IAAI,OAAO;QACT,OAAO;YACL,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC;YACvC,IAAI,EAAE,kBAAkB;YACxB,OAAO,EAAE,EAAE;SACZ,CAAA;IACH,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,4BAA4B,IAAI,CAAC,OAAO,oBAAoB,CAAA;IACzE,CAAC;IAED,OAAO,CAAC,OAA6B,IAAG,CAAC;IAEzC,WAAW,CAAC,OAAY,EAAE,SAAc,EAAE,MAAW;QACnD,IAAI,IAAI,CAAC,MAAM,EAAE;YACf;;eAEG;YACH,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;SACpC;aAAM;YACL,8BAA8B;SAC/B;IACH,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EAAU;QACvB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC;YAClC,KAAK,EAAE,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0DT;YACD,SAAS,EAAE;gBACT,EAAE;aACH;SACF,CAAC,CAAA;QAEF,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAA;IACtC,CAAC;;AA1GM,sBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;KAQF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDAAc;AAb9B,eAAe;IAD3B,aAAa,CAAC,oBAAoB,CAAC;GACvB,eAAe,CA4G3B;SA5GY,eAAe","sourcesContent":["import gql from 'graphql-tag'\n\nimport { PropertyValues, html, css } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { PageView } from '@operato/shell'\nimport { i18next, localize } from '@operato/i18n'\nimport { client } from '@operato/graphql'\n\nimport './data-ooc-view.js'\n\n@customElement('data-ooc-view-page')\nexport class DataOocViewPage extends localize(i18next)(PageView) {\n static styles = [\n css`\n :host {\n display: flex;\n }\n\n data-ooc-view {\n flex: 1;\n }\n `\n ]\n\n @property({ type: Object }) dataOoc?: any\n\n get context() {\n return {\n title: i18next.t('title.data-ooc view'),\n help: 'dataset/data-ooc',\n actions: []\n }\n }\n\n render() {\n return html` <data-ooc-view .dataOoc=${this.dataOoc}></data-ooc-view> `\n }\n\n updated(changes: PropertyValues<this>) {}\n\n pageUpdated(changes: any, lifecycle: any, before: any) {\n if (this.active) {\n /*\n * this page is activated\n */\n this.fetchOoc(lifecycle.resourceId)\n } else {\n /* this page is deactivated */\n }\n }\n\n async fetchOoc(id: string) {\n const response = await client.query({\n query: gql`\n query ($id: String!) {\n dataOoc(id: $id) {\n id\n name\n description\n useCase\n dataSet {\n id\n name\n }\n key01\n key02\n key03\n key04\n key05\n partitionKeys\n dataItems {\n name\n description\n active\n tag\n group\n type\n unit\n options\n quota\n spec\n }\n data\n rawData\n judgment\n ooc\n oos\n state\n history\n workDate\n workShift\n correctiveInstruction\n correctiveAction\n reviewedAt\n reviewer {\n id\n name\n }\n correctedAt\n corrector {\n id\n name\n }\n updater {\n id\n name\n }\n updatedAt\n collectedAt\n }\n }\n `,\n variables: {\n id\n }\n })\n\n this.dataOoc = response.data.dataOoc\n }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"data-sample-view-page.js","sourceRoot":"","sources":["../../../client/pages/data-sample/data-sample-view-page.ts"],"names":[],"mappings":";AAAA,OAAO,EAAkB,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,uBAAuB,CAAA;AAGvB,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,QAAQ,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC;IAejE,IAAI,OAAO;QACT,OAAO;YACL,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,wBAAwB,CAAC;YAC1C,IAAI,EAAE,qBAAqB;YAC3B,OAAO,EAAE,EAAE;SACZ,CAAA;IACH,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAA,oCAAoC,IAAI,CAAC,YAAY,uBAAuB,CAAA;IACzF,CAAC;IAED,OAAO,CAAC,OAA6B,IAAG,CAAC;IAEzC,WAAW,CAAC,OAAY,EAAE,SAAc,EAAE,MAAW;QACnD,IAAI,IAAI,CAAC,MAAM,EAAE;YACf;;eAEG;YACH,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC,UAAU,CAAA;SACzC;aAAM;YACL,8BAA8B;SAC/B;IACH,CAAC;;AArCM,yBAAM,GAAG;IACd,GAAG,CAAA;;;;;;;;KAQF;CACF,CAAA;AAED;IAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDAAmB;AAbnC,kBAAkB;IAD9B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,kBAAkB,CAuC9B;SAvCY,kBAAkB","sourcesContent":["import { PropertyValues, html, css } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { PageView } from '@operato/shell'\nimport { i18next, localize } from '@operato/i18n'\n\nimport './data-sample-view.js'\n\n@customElement('data-sample-view-page')\nexport class DataSampleViewPage extends localize(i18next)(PageView) {\n static styles = [\n css`\n :host {\n display: flex;\n }\n\n data-sample-view {\n flex: 1;\n }\n `\n ]\n\n @property({ type: Object }) dataSampleId?: any\n\n get context() {\n return {\n title: i18next.t('title.data-sample view'),\n help: 'dataset/data-sample',\n actions: []\n }\n }\n\n render() {\n return html` <data-sample-view .dataSampleId=${this.dataSampleId}></data-sample-view> `\n }\n\n updated(changes: PropertyValues<this>) {}\n\n pageUpdated(changes: any, lifecycle: any, before: any) {\n if (this.active) {\n /*\n * this page is activated\n */\n this.dataSampleId = lifecycle.resourceId\n } else {\n /* this page is deactivated */\n }\n }\n}\n"]}
|
File without changes
|
File without changes
|