@operato/dataset 1.0.0-alpha.5 → 1.0.0-alpha.52

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +421 -0
  2. package/demo/index.html +8 -90
  3. package/demo/ox-data-entry-form.html +118 -0
  4. package/demo/ox-data-item-spec.html +152 -0
  5. package/demo/ox-data-ooc-view.html +185 -0
  6. package/demo/ox-data-sample-view.html +150 -0
  7. package/demo/ox-grist-editor-data-item-spec.html +476 -0
  8. package/dist/src/grist-editor/index.d.ts +1 -0
  9. package/dist/src/grist-editor/index.js +7 -0
  10. package/dist/src/grist-editor/index.js.map +1 -0
  11. package/dist/src/grist-editor/ox-grist-editor-data-item-spec.d.ts +11 -0
  12. package/dist/src/grist-editor/ox-grist-editor-data-item-spec.js +77 -0
  13. package/dist/src/grist-editor/ox-grist-editor-data-item-spec.js.map +1 -0
  14. package/dist/src/grist-editor/ox-popup-data-item-spec.d.ts +13 -0
  15. package/dist/src/grist-editor/ox-popup-data-item-spec.js +90 -0
  16. package/dist/src/grist-editor/ox-popup-data-item-spec.js.map +1 -0
  17. package/dist/src/index.d.ts +6 -1
  18. package/dist/src/index.js +6 -1
  19. package/dist/src/index.js.map +1 -1
  20. package/dist/src/ox-data-entry-form.d.ts +1 -24
  21. package/dist/src/ox-data-entry-form.js +13 -15
  22. package/dist/src/ox-data-entry-form.js.map +1 -1
  23. package/dist/src/ox-data-item-spec.d.ts +18 -0
  24. package/dist/src/ox-data-item-spec.js +77 -0
  25. package/dist/src/ox-data-item-spec.js.map +1 -0
  26. package/dist/src/ox-data-ooc-view.d.ts +10 -0
  27. package/dist/src/ox-data-ooc-view.js +69 -0
  28. package/dist/src/ox-data-ooc-view.js.map +1 -0
  29. package/dist/src/ox-data-sample-view.d.ts +13 -0
  30. package/dist/src/ox-data-sample-view.js +168 -0
  31. package/dist/src/ox-data-sample-view.js.map +1 -0
  32. package/dist/src/ox-data-use-case.d.ts +16 -0
  33. package/dist/src/ox-data-use-case.js +111 -0
  34. package/dist/src/ox-data-use-case.js.map +1 -0
  35. package/dist/src/types.d.ts +78 -0
  36. package/dist/src/types.js +2 -0
  37. package/dist/src/types.js.map +1 -0
  38. package/dist/tsconfig.tsbuildinfo +1 -1
  39. package/package.json +20 -12
  40. package/src/grist-editor/index.ts +10 -0
  41. package/src/grist-editor/ox-grist-editor-data-item-spec.ts +92 -0
  42. package/src/grist-editor/ox-popup-data-item-spec.ts +90 -0
  43. package/src/index.ts +6 -1
  44. package/src/ox-data-entry-form.ts +14 -36
  45. package/src/ox-data-item-spec.ts +74 -0
  46. package/src/ox-data-ooc-view.ts +67 -0
  47. package/src/ox-data-sample-view.ts +175 -0
  48. package/src/ox-data-use-case.ts +147 -0
  49. package/src/types.ts +72 -0
  50. package/themes/grist-theme.css +194 -0
  51. package/themes/oops-theme.css +26 -0
  52. package/themes/report-theme.css +47 -0
  53. package/translations/en.json +1 -0
  54. package/translations/ko.json +1 -0
  55. package/translations/ms.json +1 -0
  56. package/translations/zh.json +1 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,427 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.51...v1.0.0-alpha.52) (2022-04-08)
7
+
8
+ **Note:** Version bump only for package @operato/dataset
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.50...v1.0.0-alpha.51) (2022-04-05)
15
+
16
+
17
+ ### :bug: Bug Fix
18
+
19
+ * export ox-grist-renderer-crontab.js ([3615720](https://github.com/hatiolab/operato/commit/3615720d119526a17272db2369bd80340b6cbc31))
20
+
21
+
22
+
23
+ ## [1.0.0-alpha.50](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.49...v1.0.0-alpha.50) (2022-04-04)
24
+
25
+ **Note:** Version bump only for package @operato/dataset
26
+
27
+
28
+
29
+
30
+
31
+ ## [1.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.48...v1.0.0-alpha.49) (2022-04-04)
32
+
33
+
34
+ ### :bug: Bug Fix
35
+
36
+ * lit@2.2.1 ([6707752](https://github.com/hatiolab/operato/commit/6707752907d24f7ecbe248cba18a4b18cfda282f))
37
+
38
+
39
+
40
+ ## [1.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.47...v1.0.0-alpha.48) (2022-04-03)
41
+
42
+ **Note:** Version bump only for package @operato/dataset
43
+
44
+
45
+
46
+
47
+
48
+ ## [1.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.46...v1.0.0-alpha.47) (2022-04-02)
49
+
50
+ **Note:** Version bump only for package @operato/dataset
51
+
52
+
53
+
54
+
55
+
56
+ ## [1.0.0-alpha.46](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.45...v1.0.0-alpha.46) (2022-04-02)
57
+
58
+ **Note:** Version bump only for package @operato/dataset
59
+
60
+
61
+
62
+
63
+
64
+ ## [1.0.0-alpha.45](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.44...v1.0.0-alpha.45) (2022-03-31)
65
+
66
+
67
+ ### :bug: Bug Fix
68
+
69
+ * shift => workShift ([449b030](https://github.com/hatiolab/operato/commit/449b030b209adb67fdd3635125ac19f280eed861))
70
+
71
+
72
+
73
+ ## [1.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.43...v1.0.0-alpha.44) (2022-03-31)
74
+
75
+
76
+ ### :rocket: New Features
77
+
78
+ * add workData and shift into data-sample and data-ooc ([35f8857](https://github.com/hatiolab/operato/commit/35f885742a59553c57891f1b6f2297afcf0b8fda))
79
+
80
+
81
+
82
+ ## [1.0.0-alpha.43](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) (2022-03-30)
83
+
84
+ **Note:** Version bump only for package @operato/dataset
85
+
86
+
87
+
88
+
89
+
90
+ ## [1.0.0-alpha.42](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) (2022-03-29)
91
+
92
+ **Note:** Version bump only for package @operato/dataset
93
+
94
+
95
+
96
+
97
+
98
+ ## [1.0.0-alpha.41](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) (2022-03-27)
99
+
100
+ **Note:** Version bump only for package @operato/dataset
101
+
102
+
103
+
104
+
105
+
106
+ ## [1.0.0-alpha.40](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-03-26)
107
+
108
+
109
+ ### :bug: Bug Fix
110
+
111
+ * ox-data-ooc ([77ce499](https://github.com/hatiolab/operato/commit/77ce49978d60cb964ce736f9289655103740f04c))
112
+
113
+
114
+
115
+ ## [1.0.0-alpha.39](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-03-25)
116
+
117
+
118
+ ### :bug: Bug Fix
119
+
120
+ * added ox-data-ooc-view ([6693d0c](https://github.com/hatiolab/operato/commit/6693d0cdea7481c877ded73ab1ca1746f49b5ead))
121
+ * ox-data-sample-view ooc oos style ([7e8bebe](https://github.com/hatiolab/operato/commit/7e8bebe1d08eb60a42823bb1850a8d8738b1bb75))
122
+ * ox-data-sample-view ooc,oos icon checked => done ([3e3e345](https://github.com/hatiolab/operato/commit/3e3e3459104eac47a60fac60ab3c6ceeb933df14))
123
+ * ox-data-sample-view style ([ff0513d](https://github.com/hatiolab/operato/commit/ff0513dbd5f8cc6a72c336c2336f544e463ab78a))
124
+
125
+
126
+
127
+ ## [1.0.0-alpha.38](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-03-25)
128
+
129
+
130
+ ### :bug: Bug Fix
131
+
132
+ * ox-data-sample-view ([6c998f1](https://github.com/hatiolab/operato/commit/6c998f10dcae30fcf228bfe6f547930d0bfc777c))
133
+ * ox-data-sample-view datetime format ([ca8f7ca](https://github.com/hatiolab/operato/commit/ca8f7ca8c29037d5a5bef518f6dfad2df9363097))
134
+ * ox-data-sample-view style ([ec02b2f](https://github.com/hatiolab/operato/commit/ec02b2fae0084f81229a335216672e1231dede7d))
135
+ * ox-data-sample-view style ([7b7c5ee](https://github.com/hatiolab/operato/commit/7b7c5eed16672a4b97c332b5933cc305208d8553))
136
+
137
+
138
+
139
+ ## [1.0.0-alpha.37](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-03-25)
140
+
141
+
142
+ ### :bug: Bug Fix
143
+
144
+ * data-item-spec => data-use-case ([3b5e684](https://github.com/hatiolab/operato/commit/3b5e684362621b89883ea6ed22acb7084678d3a5))
145
+ * data-use-case-xx ([7564cd3](https://github.com/hatiolab/operato/commit/7564cd3bdc9d4f61ac4eba6d382e9066a6d36a90))
146
+ * dataset ox-data-sample-view started ([42ceefe](https://github.com/hatiolab/operato/commit/42ceefe919739bbc9e30e468b3f526831e0a56c8))
147
+ * export some components and remove unused components ([3b9788d](https://github.com/hatiolab/operato/commit/3b9788d9d2a73235a2f96d586dcb02643768f0d6))
148
+ * handling data-use-case acceptables ([9ac1239](https://github.com/hatiolab/operato/commit/9ac12396fe15aebddef52bb0ed7fe1f445a6dbfd))
149
+
150
+
151
+
152
+ ## [1.0.0-alpha.36](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-03-21)
153
+
154
+ **Note:** Version bump only for package @operato/dataset
155
+
156
+
157
+
158
+
159
+
160
+ ## [1.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-03-21)
161
+
162
+ **Note:** Version bump only for package @operato/dataset
163
+
164
+
165
+
166
+
167
+
168
+ ## [1.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-03-20)
169
+
170
+
171
+ ### :bug: Bug Fix
172
+
173
+ * data-grist field styles for tooltip ([5f90650](https://github.com/hatiolab/operato/commit/5f90650ef36023834af3d3bf027cd300cc6bffc1))
174
+ * tooltip style ([4cd1b9d](https://github.com/hatiolab/operato/commit/4cd1b9d05c46c6a607865a0ff71a50f6e0df8797))
175
+
176
+
177
+
178
+ ## [1.0.0-alpha.33](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-03-19)
179
+
180
+ **Note:** Version bump only for package @operato/dataset
181
+
182
+
183
+
184
+
185
+
186
+ ## [1.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-03-19)
187
+
188
+ **Note:** Version bump only for package @operato/dataset
189
+
190
+
191
+
192
+
193
+
194
+ ## [1.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-03-19)
195
+
196
+
197
+ ### :bug: Bug Fix
198
+
199
+ * added unit for ox-data-entry-form demo page, add active filter for ox-data-entry-form ([e981771](https://github.com/hatiolab/operato/commit/e9817714b86ffa6be742f1c5f4c72df7ad09a863))
200
+ * ox-grist-renderer support class type renderer (refer ox-grist-renderer-progress) ([ad7c8e1](https://github.com/hatiolab/operato/commit/ad7c8e1b453d19af9daa13ae4eb7c2059d85dfbb))
201
+
202
+
203
+
204
+ ## [1.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-03-18)
205
+
206
+ **Note:** Version bump only for package @operato/dataset
207
+
208
+
209
+
210
+
211
+
212
+ ## [1.0.0-alpha.29](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-03-17)
213
+
214
+ **Note:** Version bump only for package @operato/dataset
215
+
216
+
217
+
218
+
219
+
220
+ ## [1.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.26...v1.0.0-alpha.28) (2022-03-17)
221
+
222
+
223
+ ### :rocket: New Features
224
+
225
+ * add ox-grist-editor for partition-keys ([7672a27](https://github.com/hatiolab/operato/commit/7672a2729f78475602733a83779f6a7a96e128fd))
226
+
227
+
228
+
229
+ ## [1.0.0-alpha.27](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.26...v1.0.0-alpha.27) (2022-03-17)
230
+
231
+
232
+ ### :rocket: New Features
233
+
234
+ * add ox-grist-editor for partition-keys ([7672a27](https://github.com/hatiolab/operato/commit/7672a2729f78475602733a83779f6a7a96e128fd))
235
+
236
+
237
+
238
+ ## [1.0.0-alpha.26](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2022-03-17)
239
+
240
+ **Note:** Version bump only for package @operato/dataset
241
+
242
+
243
+
244
+
245
+
246
+ ## [1.0.0-alpha.25](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2022-03-17)
247
+
248
+ **Note:** Version bump only for package @operato/dataset
249
+
250
+
251
+
252
+
253
+
254
+ ## [1.0.0-alpha.24](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-03-17)
255
+
256
+
257
+ ### :bug: Bug Fix
258
+
259
+ * ccp, dataset, property-editor style ([92b2448](https://github.com/hatiolab/operato/commit/92b2448756604ee0b885949dd193241f319cf147))
260
+ * ox-data-item-spec style ([f963757](https://github.com/hatiolab/operato/commit/f963757ccef0144687ce49493281c25a82a259d3))
261
+ * refactoring grist-editor, property-editor and input ([bdc3197](https://github.com/hatiolab/operato/commit/bdc31977d148c80a3ac0bea4b33160bac277df1e))
262
+ * refactoring grist-editor, property-editor and input ([ea7431a](https://github.com/hatiolab/operato/commit/ea7431a5e2dfd96ef392c1905e9622df7c2ef88c))
263
+
264
+
265
+
266
+ ## [1.0.0-alpha.23](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-03-17)
267
+
268
+
269
+ ### :rocket: New Features
270
+
271
+ * added qc module ([263b679](https://github.com/hatiolab/operato/commit/263b6794b97a635df1a50d013adaef2e83635908))
272
+
273
+
274
+
275
+ ## [1.0.0-alpha.22](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-03-17)
276
+
277
+
278
+ ### :bug: Bug Fix
279
+
280
+ * ccp demo ([67b7d65](https://github.com/hatiolab/operato/commit/67b7d65b48d0ca7b3350684a45a396c0538c4902))
281
+
282
+
283
+ ### :rocket: New Features
284
+
285
+ * added data-item-spec-editor for grist ([8376e14](https://github.com/hatiolab/operato/commit/8376e142d894a709e60ed676e917d5a26e01e374))
286
+
287
+
288
+
289
+ ## [1.0.0-alpha.21](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-03-16)
290
+
291
+
292
+ ### :rocket: New Features
293
+
294
+ * @operato/ccp module added ([f08ba5a](https://github.com/hatiolab/operato/commit/f08ba5a464c04b7fb132c6f18de975997087846a))
295
+ * ccp spec provider ([d72fe7c](https://github.com/hatiolab/operato/commit/d72fe7c497685e7f033ef04e6a866bd86613f397))
296
+
297
+
298
+ ### :bug: Bug Fix
299
+
300
+ * demo ([6fa3eac](https://github.com/hatiolab/operato/commit/6fa3eac612bd98ce25e3ef6d8ce89527d7152fb4))
301
+ * description on ox-data-item-spec view ([47da306](https://github.com/hatiolab/operato/commit/47da306a253a96e0c24c986e4608bfe0713a111a))
302
+
303
+
304
+
305
+ ## [1.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2022-03-15)
306
+
307
+
308
+ ### :bug: Bug Fix
309
+
310
+ * ox-data-entry-form in dataset module ([736fe96](https://github.com/hatiolab/operato/commit/736fe968e292059055d18a4c18a5da979bbb4722))
311
+
312
+
313
+
314
+ ## [1.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-03-14)
315
+
316
+ **Note:** Version bump only for package @operato/dataset
317
+
318
+
319
+
320
+
321
+
322
+ ## [1.0.0-alpha.18](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2022-03-14)
323
+
324
+ **Note:** Version bump only for package @operato/dataset
325
+
326
+
327
+
328
+
329
+
330
+ ## [1.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2022-03-13)
331
+
332
+ **Note:** Version bump only for package @operato/dataset
333
+
334
+
335
+
336
+
337
+
338
+ ## [1.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-03-13)
339
+
340
+ **Note:** Version bump only for package @operato/dataset
341
+
342
+
343
+
344
+
345
+
346
+ ## [1.0.0-alpha.15](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-13)
347
+
348
+ **Note:** Version bump only for package @operato/dataset
349
+
350
+
351
+
352
+
353
+
354
+ ## [1.0.0-alpha.14](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2022-03-13)
355
+
356
+ **Note:** Version bump only for package @operato/dataset
357
+
358
+
359
+
360
+
361
+
362
+ ## [1.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-13)
363
+
364
+ **Note:** Version bump only for package @operato/dataset
365
+
366
+
367
+
368
+
369
+
370
+ ## [1.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-03-13)
371
+
372
+ **Note:** Version bump only for package @operato/dataset
373
+
374
+
375
+
376
+
377
+
378
+ ## [1.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-03-12)
379
+
380
+ **Note:** Version bump only for package @operato/dataset
381
+
382
+
383
+
384
+
385
+
386
+ ## [1.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-03-12)
387
+
388
+ **Note:** Version bump only for package @operato/dataset
389
+
390
+
391
+
392
+
393
+
394
+ ## [1.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-03-12)
395
+
396
+ **Note:** Version bump only for package @operato/dataset
397
+
398
+
399
+
400
+
401
+
402
+ ## [1.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-03-11)
403
+
404
+ **Note:** Version bump only for package @operato/dataset
405
+
406
+
407
+
408
+
409
+
410
+ ## [1.0.0-alpha.7](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-03-11)
411
+
412
+ **Note:** Version bump only for package @operato/dataset
413
+
414
+
415
+
416
+
417
+
418
+ ## [1.0.0-alpha.6](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2022-03-11)
419
+
420
+
421
+ ### :bug: Bug Fix
422
+
423
+ * ox-data-entry-form style ([c94c833](https://github.com/hatiolab/operato/commit/c94c8338aee8cf3e69c286e6af7cb2b5f081bbc7))
424
+
425
+
426
+
6
427
  ## [1.0.0-alpha.5](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2022-03-11)
7
428
 
8
429
 
package/demo/index.html CHANGED
@@ -8,103 +8,21 @@
8
8
  --ox-checkbox-size: 12px;
9
9
  }
10
10
 
11
- #demo {
11
+ a {
12
+ display: block;
12
13
  }
13
14
  </style>
15
+
14
16
  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
15
17
  <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
16
18
  <link href="/themes/app-theme.css" rel="stylesheet" />
17
19
  <link href="/themes/form-theme.css" rel="stylesheet" />
18
20
  </head>
19
21
  <body>
20
- <div id="demo"></div>
21
-
22
- <script type="module">
23
- import { html, render } from 'lit'
24
- import '../dist/src/ox-data-entry-form.js'
25
-
26
- const parent = document.querySelector('#demo')
27
- const dataSet = {
28
- name: 'sample',
29
- description: 'sample description',
30
- dataItems: [
31
- {
32
- name: '창고 온도',
33
- description: '창고 온도는 섭씨 0도 이하로 유지되어야 합니다.',
34
- sequence: 1,
35
- tag: 'temp',
36
- type: 'number',
37
- quota: 1
38
- },
39
- {
40
- name: '창고 습도',
41
- description: '창고 습도는 30% 이하로 유지되어야 합니다.',
42
- sequence: 2,
43
- tag: 'humid',
44
- type: 'number',
45
- quota: 5
46
- },
47
- {
48
- name: '육안 검사',
49
- description: '육안 검사는 포장전 30분 내로 실행되어야 합니다.',
50
- sequence: 3,
51
- tag: 'inspection',
52
- type: 'boolean',
53
- quota: 3
54
- },
55
- {
56
- name: '품평',
57
- description: '품평은 최우수/우수/보통/미달을 포함하여 간단히 평가.',
58
- sequence: 4,
59
- tag: 'evaluation',
60
- type: 'select',
61
- options: {
62
- options: [
63
- { text: '최우수', value: '최우수' },
64
- { text: '우수', value: '우수' },
65
- { text: '보통', value: '보통' },
66
- { text: '미달', value: '미달' }
67
- ]
68
- },
69
- quota: 3
70
- },
71
- {
72
- name: '코멘트',
73
- description: '특이사항을 기록함.',
74
- sequence: 4,
75
- tag: 'comment',
76
- type: 'string',
77
- quota: 1
78
- },
79
- {
80
- name: '첨부파일',
81
- description: '참조 첨부 파일.',
82
- sequence: 4,
83
- tag: 'attachment',
84
- type: 'file',
85
- quota: 1
86
- }
87
- ]
88
- }
89
-
90
- var value = {
91
- temp: 1000,
92
- humid: [20, 23, 21, 26, 27],
93
- inspection: [true, false, true],
94
- evaluation: ['최우수', '보통', '우수']
95
- }
96
-
97
- render(
98
- html`<ox-data-entry-form
99
- .dataSet=${dataSet}
100
- .value=${value}
101
- @change=${e => {
102
- value = e.detail
103
- console.log('change', value)
104
- }}
105
- ></ox-data-entry-form>`,
106
- parent
107
- )
108
- </script>
22
+ <a href="./ox-data-entry-form.html">ox-data-entry-form</a>
23
+ <a href="./ox-data-sample-view.html">ox-data-sample-view</a>
24
+ <a href="./ox-data-ooc-view.html">ox-data-ooc-view</a>
25
+ <a href="./ox-data-item-spec.html">ox-data-item-spec</a>
26
+ <a href="./ox-grist-editor-data-item-spec.html">ox-grist-editor-data-item-spec</a>
109
27
  </body>
110
28
  </html>
@@ -0,0 +1,118 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-GB">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1" />
6
+ <style>
7
+ body {
8
+ --ox-checkbox-size: 12px;
9
+ }
10
+
11
+ #demo {
12
+ }
13
+ </style>
14
+ <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
15
+ <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
16
+ <link href="/themes/app-theme.css" rel="stylesheet" />
17
+ <link href="/themes/form-theme.css" rel="stylesheet" />
18
+ </head>
19
+ <body>
20
+ <div id="demo"></div>
21
+
22
+ <script type="module">
23
+ import { html, render } from 'lit'
24
+ import '../dist/src/ox-data-entry-form.js'
25
+
26
+ const parent = document.querySelector('#demo')
27
+ const dataSet = {
28
+ name: 'sample',
29
+ description: 'sample description',
30
+ dataItems: [
31
+ {
32
+ name: '창고 온도',
33
+ description: '창고 온도는 섭씨 0도 이하로 유지되어야 합니다.',
34
+ sequence: 1,
35
+ tag: 'temp',
36
+ type: 'number',
37
+ quota: 1,
38
+ active: true,
39
+ unit: '℃'
40
+ },
41
+ {
42
+ name: '창고 습도',
43
+ description: '창고 습도는 30% 이하로 유지되어야 합니다.',
44
+ sequence: 2,
45
+ tag: 'humid',
46
+ type: 'number',
47
+ quota: 5,
48
+ active: true,
49
+ unit: '%'
50
+ },
51
+ {
52
+ name: '육안 검사',
53
+ description: '육안 검사는 포장전 30분 내로 실행되어야 합니다.',
54
+ sequence: 3,
55
+ tag: 'inspection',
56
+ type: 'boolean',
57
+ quota: 3,
58
+ active: true
59
+ },
60
+ {
61
+ name: '품평',
62
+ description: '품평은 최우수/우수/보통/미달을 포함하여 간단히 평가.',
63
+ sequence: 4,
64
+ tag: 'evaluation',
65
+ type: 'select',
66
+ options: {
67
+ options: [
68
+ { text: '최우수', value: '최우수' },
69
+ { text: '우수', value: '우수' },
70
+ { text: '보통', value: '보통' },
71
+ { text: '미달', value: '미달' }
72
+ ]
73
+ },
74
+ quota: 3,
75
+ active: true
76
+ },
77
+ {
78
+ name: '코멘트',
79
+ description: '특이사항을 기록함.',
80
+ sequence: 4,
81
+ tag: 'comment',
82
+ type: 'string',
83
+ quota: 1,
84
+ active: true
85
+ },
86
+ {
87
+ name: '첨부파일',
88
+ description: '참조 첨부 파일.',
89
+ sequence: 4,
90
+ tag: 'attachment',
91
+ type: 'file',
92
+ quota: 1,
93
+ active: true
94
+ }
95
+ ]
96
+ }
97
+
98
+ var value = {
99
+ temp: 1000,
100
+ humid: [20, 23, 21, 26, 27],
101
+ inspection: [true, false, true],
102
+ evaluation: ['최우수', '보통', '우수']
103
+ }
104
+
105
+ render(
106
+ html`<ox-data-entry-form
107
+ .dataSet=${dataSet}
108
+ .value=${value}
109
+ @change=${e => {
110
+ value = e.detail
111
+ console.log('change', value)
112
+ }}
113
+ ></ox-data-entry-form>`,
114
+ parent
115
+ )
116
+ </script>
117
+ </body>
118
+ </html>