@things-factory/reference-app 4.0.33 → 4.0.37
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/grist-mode-page.js +27 -6
- package/package.json +34 -34
|
@@ -197,10 +197,14 @@ class GristModePage extends localize(i18next)(PageView) {
|
|
|
197
197
|
name: 'HatioSEA',
|
|
198
198
|
description: `말레이시아 세티아알람-${start + idx + 1}`
|
|
199
199
|
},
|
|
200
|
-
|
|
201
|
-
idx %
|
|
200
|
+
thumbnail:
|
|
201
|
+
idx % 4 === 0
|
|
202
|
+
? '' /* no source */
|
|
203
|
+
: idx % 4 === 1
|
|
202
204
|
? `http://www.hatiolab.com/assets/img/operato-biz3.png`
|
|
203
|
-
:
|
|
205
|
+
: idx % 4 === 2
|
|
206
|
+
? `http://www.hatiolab.com/assets/img/thingsboard-30.png`
|
|
207
|
+
: `http://www.hatiolab.com/wrong-url.png` /* wrong source */,
|
|
204
208
|
role: ['admin', 'worker', 'tester'][idx % 3],
|
|
205
209
|
color: idx % 2 ? `#87f018` : `#180f87`,
|
|
206
210
|
rate: Math.round(Math.random() * 100),
|
|
@@ -222,9 +226,7 @@ class GristModePage extends localize(i18next)(PageView) {
|
|
|
222
226
|
get gristConfig() {
|
|
223
227
|
return {
|
|
224
228
|
list: {
|
|
225
|
-
thumbnail:
|
|
226
|
-
return html` <img src=${record.image} style="width: 100%; height: 100%;" /> `
|
|
227
|
-
},
|
|
229
|
+
thumbnail: 'thumbnail',
|
|
228
230
|
fields: ['name', 'description'],
|
|
229
231
|
details: ['role', 'email']
|
|
230
232
|
},
|
|
@@ -270,6 +272,9 @@ class GristModePage extends localize(i18next)(PageView) {
|
|
|
270
272
|
// target: '_blank'
|
|
271
273
|
}
|
|
272
274
|
},
|
|
275
|
+
filter: {
|
|
276
|
+
type: 'text'
|
|
277
|
+
},
|
|
273
278
|
sortable: true,
|
|
274
279
|
width: 120
|
|
275
280
|
},
|
|
@@ -296,6 +301,7 @@ class GristModePage extends localize(i18next)(PageView) {
|
|
|
296
301
|
record: {
|
|
297
302
|
editable: true
|
|
298
303
|
},
|
|
304
|
+
filter: true,
|
|
299
305
|
sortable: true,
|
|
300
306
|
width: 130,
|
|
301
307
|
validation: function (after, before, record, column) {
|
|
@@ -338,6 +344,9 @@ class GristModePage extends localize(i18next)(PageView) {
|
|
|
338
344
|
options: ['admin', 'worker', 'tester'],
|
|
339
345
|
editable: true
|
|
340
346
|
},
|
|
347
|
+
filter: {
|
|
348
|
+
options: ['admin', 'worker', 'tester', 'xyz', 'VERY']
|
|
349
|
+
},
|
|
341
350
|
sortable: true,
|
|
342
351
|
width: 120
|
|
343
352
|
},
|
|
@@ -359,6 +368,9 @@ class GristModePage extends localize(i18next)(PageView) {
|
|
|
359
368
|
align: 'right',
|
|
360
369
|
editable: true
|
|
361
370
|
},
|
|
371
|
+
filter: {
|
|
372
|
+
operator: 'between'
|
|
373
|
+
},
|
|
362
374
|
sortable: true,
|
|
363
375
|
width: 50
|
|
364
376
|
},
|
|
@@ -368,6 +380,11 @@ class GristModePage extends localize(i18next)(PageView) {
|
|
|
368
380
|
header: 'JSON5',
|
|
369
381
|
width: 200
|
|
370
382
|
},
|
|
383
|
+
{
|
|
384
|
+
type: 'image',
|
|
385
|
+
name: 'thumbnail',
|
|
386
|
+
hidden: true
|
|
387
|
+
},
|
|
371
388
|
{
|
|
372
389
|
type: 'datetime',
|
|
373
390
|
name: 'updatedAt',
|
|
@@ -375,6 +392,10 @@ class GristModePage extends localize(i18next)(PageView) {
|
|
|
375
392
|
record: {
|
|
376
393
|
editable: true
|
|
377
394
|
},
|
|
395
|
+
filter: {
|
|
396
|
+
type: 'datetime',
|
|
397
|
+
operator: 'between'
|
|
398
|
+
},
|
|
378
399
|
sortable: true,
|
|
379
400
|
width: 180
|
|
380
401
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/reference-app",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.37",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@hatiolab/things-scene": "^2.7.31",
|
|
41
41
|
"@material/mwc-checkbox": "^0.25.3",
|
|
42
|
-
"@operato/data-grist": "^0.3.
|
|
43
|
-
"@operato/ghost-print": "^0.3.
|
|
44
|
-
"@operato/input": "^0.3.
|
|
45
|
-
"@operato/ocr": "^0.3.
|
|
46
|
-
"@operato/popup": "^0.3.
|
|
47
|
-
"@operato/pull-to-refresh": "^0.3.
|
|
42
|
+
"@operato/data-grist": "^0.3.17",
|
|
43
|
+
"@operato/ghost-print": "^0.3.17",
|
|
44
|
+
"@operato/input": "^0.3.17",
|
|
45
|
+
"@operato/ocr": "^0.3.17",
|
|
46
|
+
"@operato/popup": "^0.3.17",
|
|
47
|
+
"@operato/pull-to-refresh": "^0.3.17",
|
|
48
48
|
"@operato/scene-chartjs": "^0.1.2",
|
|
49
49
|
"@operato/scene-clock": "^0.1.2",
|
|
50
50
|
"@operato/scene-gauge": "^0.1.2",
|
|
@@ -53,35 +53,35 @@
|
|
|
53
53
|
"@operato/scene-random": "^0.1.2",
|
|
54
54
|
"@operato/scene-switch": "^0.1.2",
|
|
55
55
|
"@operato/scene-tab": "^0.1.2",
|
|
56
|
-
"@things-factory/api": "^4.0.
|
|
57
|
-
"@things-factory/apptool-ui": "^4.0.
|
|
58
|
-
"@things-factory/auth-ui": "^4.0.
|
|
59
|
-
"@things-factory/board-service": "^4.0.
|
|
60
|
-
"@things-factory/board-ui": "^4.0.
|
|
61
|
-
"@things-factory/context-ui": "^4.0.
|
|
62
|
-
"@things-factory/dashboard": "^4.0.
|
|
63
|
-
"@things-factory/export-ui": "^4.0.
|
|
64
|
-
"@things-factory/export-ui-excel": "^4.0.
|
|
65
|
-
"@things-factory/grist-ui": "^4.0.
|
|
66
|
-
"@things-factory/help": "^4.0.
|
|
67
|
-
"@things-factory/i18n-ui": "^4.0.
|
|
68
|
-
"@things-factory/integration-ui": "^4.0.
|
|
69
|
-
"@things-factory/lite-menu": "^4.0.
|
|
70
|
-
"@things-factory/more-ui": "^4.0.
|
|
71
|
-
"@things-factory/notification": "^4.0.
|
|
72
|
-
"@things-factory/oauth2-client": "^4.0.
|
|
73
|
-
"@things-factory/print-ui": "^4.0.
|
|
74
|
-
"@things-factory/resource-ui": "^4.0.
|
|
75
|
-
"@things-factory/scene-form": "^4.0.
|
|
56
|
+
"@things-factory/api": "^4.0.37",
|
|
57
|
+
"@things-factory/apptool-ui": "^4.0.37",
|
|
58
|
+
"@things-factory/auth-ui": "^4.0.37",
|
|
59
|
+
"@things-factory/board-service": "^4.0.37",
|
|
60
|
+
"@things-factory/board-ui": "^4.0.37",
|
|
61
|
+
"@things-factory/context-ui": "^4.0.37",
|
|
62
|
+
"@things-factory/dashboard": "^4.0.37",
|
|
63
|
+
"@things-factory/export-ui": "^4.0.37",
|
|
64
|
+
"@things-factory/export-ui-excel": "^4.0.37",
|
|
65
|
+
"@things-factory/grist-ui": "^4.0.37",
|
|
66
|
+
"@things-factory/help": "^4.0.37",
|
|
67
|
+
"@things-factory/i18n-ui": "^4.0.37",
|
|
68
|
+
"@things-factory/integration-ui": "^4.0.37",
|
|
69
|
+
"@things-factory/lite-menu": "^4.0.37",
|
|
70
|
+
"@things-factory/more-ui": "^4.0.37",
|
|
71
|
+
"@things-factory/notification": "^4.0.37",
|
|
72
|
+
"@things-factory/oauth2-client": "^4.0.37",
|
|
73
|
+
"@things-factory/print-ui": "^4.0.37",
|
|
74
|
+
"@things-factory/resource-ui": "^4.0.37",
|
|
75
|
+
"@things-factory/scene-form": "^4.0.37",
|
|
76
76
|
"@things-factory/scene-half-roundrect": "^4.0.9",
|
|
77
|
-
"@things-factory/scene-news-ticker": "^4.0.
|
|
78
|
-
"@things-factory/setting-base": "^4.0.
|
|
79
|
-
"@things-factory/setting-ui": "^4.0.
|
|
80
|
-
"@things-factory/shell": "^4.0.
|
|
81
|
-
"@things-factory/system-ui": "^4.0.
|
|
77
|
+
"@things-factory/scene-news-ticker": "^4.0.37",
|
|
78
|
+
"@things-factory/setting-base": "^4.0.37",
|
|
79
|
+
"@things-factory/setting-ui": "^4.0.37",
|
|
80
|
+
"@things-factory/shell": "^4.0.37",
|
|
81
|
+
"@things-factory/system-ui": "^4.0.37"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@things-factory/builder": "^4.0.
|
|
84
|
+
"@things-factory/builder": "^4.0.37"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "7abd5ee06f7329c7fbb0c305f7b075a990bc2c18"
|
|
87
87
|
}
|