@operato/input 1.0.0-alpha.9 → 1.0.0-beta.0

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 (97) hide show
  1. package/CHANGELOG.md +395 -0
  2. package/assets/images/icon-properties-line-type.png +0 -0
  3. package/assets/images/icon-properties-table.png +0 -0
  4. package/demo/index-crontab.html +37 -0
  5. package/demo/index-partition-keys.html +71 -0
  6. package/demo/index-select.html +21 -14
  7. package/demo/index-table.html +39 -0
  8. package/demo/index-value-map.html +80 -0
  9. package/demo/index-value-ranges.html +80 -0
  10. package/demo/index-work-shift.html +59 -0
  11. package/demo/index.html +10 -0
  12. package/dist/src/index.d.ts +9 -3
  13. package/dist/src/index.js +9 -3
  14. package/dist/src/index.js.map +1 -1
  15. package/dist/src/ox-checkbox.d.ts +1 -1
  16. package/dist/src/ox-checkbox.js +1 -1
  17. package/dist/src/ox-checkbox.js.map +1 -1
  18. package/dist/src/ox-form-field.d.ts +2 -2
  19. package/dist/src/ox-form-field.js.map +1 -1
  20. package/dist/src/ox-input-barcode.d.ts +1 -1
  21. package/dist/src/ox-input-barcode.js +1 -1
  22. package/dist/src/ox-input-barcode.js.map +1 -1
  23. package/dist/src/ox-input-color-gradient.d.ts +4 -4
  24. package/dist/src/ox-input-color-gradient.js +3 -3
  25. package/dist/src/ox-input-color-gradient.js.map +1 -1
  26. package/dist/src/ox-input-color-stops.js +1 -1
  27. package/dist/src/ox-input-color-stops.js.map +1 -1
  28. package/dist/src/ox-input-crontab.d.ts +23 -0
  29. package/dist/src/ox-input-crontab.js +560 -0
  30. package/dist/src/ox-input-crontab.js.map +1 -0
  31. package/dist/src/ox-input-layout/ox-input-card-layout.d.ts +4 -0
  32. package/dist/src/ox-input-layout/ox-input-card-layout.js +57 -0
  33. package/dist/src/ox-input-layout/ox-input-card-layout.js.map +1 -0
  34. package/dist/src/ox-input-layout/ox-input-grid-layout.d.ts +4 -0
  35. package/dist/src/ox-input-layout/ox-input-grid-layout.js +63 -0
  36. package/dist/src/ox-input-layout/ox-input-grid-layout.js.map +1 -0
  37. package/dist/src/ox-input-layout/ox-input-layout.d.ts +5 -0
  38. package/dist/src/ox-input-layout/ox-input-layout.js +73 -0
  39. package/dist/src/ox-input-layout/ox-input-layout.js.map +1 -0
  40. package/dist/src/ox-input-multiple-colors.d.ts +2 -2
  41. package/dist/src/ox-input-multiple-colors.js +2 -2
  42. package/dist/src/ox-input-multiple-colors.js.map +1 -1
  43. package/dist/src/ox-input-options.js.map +1 -1
  44. package/dist/src/ox-input-partition-keys.d.ts +36 -0
  45. package/dist/src/ox-input-partition-keys.js +204 -0
  46. package/dist/src/ox-input-partition-keys.js.map +1 -0
  47. package/dist/src/ox-input-search.d.ts +1 -0
  48. package/dist/src/ox-input-search.js +7 -1
  49. package/dist/src/ox-input-search.js.map +1 -1
  50. package/dist/src/ox-input-table.d.ts +8 -0
  51. package/dist/src/ox-input-table.js +379 -0
  52. package/dist/src/ox-input-table.js.map +1 -0
  53. package/dist/src/ox-input-value-map.d.ts +41 -0
  54. package/dist/src/ox-input-value-map.js +279 -0
  55. package/dist/src/ox-input-value-map.js.map +1 -0
  56. package/dist/src/ox-input-value-ranges.d.ts +41 -0
  57. package/dist/src/ox-input-value-ranges.js +298 -0
  58. package/dist/src/ox-input-value-ranges.js.map +1 -0
  59. package/dist/src/ox-input-work-shift.d.ts +33 -0
  60. package/dist/src/ox-input-work-shift.js +229 -0
  61. package/dist/src/ox-input-work-shift.js.map +1 -0
  62. package/dist/src/ox-select.d.ts +3 -0
  63. package/dist/src/ox-select.js +28 -3
  64. package/dist/src/ox-select.js.map +1 -1
  65. package/dist/tsconfig.tsbuildinfo +1 -1
  66. package/package.json +18 -8
  67. package/src/index.ts +9 -3
  68. package/src/ox-checkbox.ts +2 -2
  69. package/src/ox-form-field.ts +2 -2
  70. package/src/ox-input-barcode.ts +2 -3
  71. package/src/{ox-input-color-gradient.ts.xxx → ox-input-color-gradient.ts} +4 -4
  72. package/src/ox-input-color-stops.ts +1 -1
  73. package/src/ox-input-crontab.ts +561 -0
  74. package/src/ox-input-layout/ox-input-card-layout.ts +58 -0
  75. package/src/ox-input-layout/ox-input-grid-layout.ts +64 -0
  76. package/src/ox-input-layout/ox-input-layout.ts +77 -0
  77. package/src/ox-input-multiple-colors.ts +2 -2
  78. package/src/ox-input-options.ts +1 -1
  79. package/src/ox-input-partition-keys.ts +243 -0
  80. package/src/ox-input-search.ts +9 -1
  81. package/src/ox-input-table.ts +404 -0
  82. package/src/{ox-input-keyvalues.ts.ing → ox-input-value-map.ts} +120 -89
  83. package/src/ox-input-value-ranges.ts +325 -0
  84. package/src/ox-input-work-shift.ts +251 -0
  85. package/src/ox-select.ts +31 -5
  86. package/dist/src/ox-input-background-pattern.d.ts +0 -31
  87. package/dist/src/ox-input-background-pattern.js +0 -147
  88. package/dist/src/ox-input-background-pattern.js.map +0 -1
  89. package/dist/src/ox-input-fill-style.d.ts +0 -42
  90. package/dist/src/ox-input-fill-style.js +0 -323
  91. package/dist/src/ox-input-fill-style.js.map +0 -1
  92. package/dist/src/ox-input-id.d.ts +0 -11
  93. package/dist/src/ox-input-id.js +0 -68
  94. package/dist/src/ox-input-id.js.map +0 -1
  95. package/src/ox-input-background-pattern.ts.xxx +0 -163
  96. package/src/ox-input-fill-style.ts.xxx +0 -361
  97. package/src/ox-input-ranges.ts.ing +0 -292
package/CHANGELOG.md CHANGED
@@ -3,6 +3,401 @@
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-beta.0](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.53...v1.0.0-beta.0) (2022-04-10)
7
+
8
+ **Note:** Version bump only for package @operato/input
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.0-alpha.53](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.52...v1.0.0-alpha.53) (2022-04-08)
15
+
16
+ **Note:** Version bump only for package @operato/input
17
+
18
+
19
+
20
+
21
+
22
+ ## [1.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.51...v1.0.0-alpha.52) (2022-04-08)
23
+
24
+ **Note:** Version bump only for package @operato/input
25
+
26
+
27
+
28
+
29
+
30
+ ## [1.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.50...v1.0.0-alpha.51) (2022-04-05)
31
+
32
+ **Note:** Version bump only for package @operato/input
33
+
34
+
35
+
36
+
37
+
38
+ ## [1.0.0-alpha.50](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.49...v1.0.0-alpha.50) (2022-04-04)
39
+
40
+ **Note:** Version bump only for package @operato/input
41
+
42
+
43
+
44
+
45
+
46
+ ## [1.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.48...v1.0.0-alpha.49) (2022-04-04)
47
+
48
+
49
+ ### :bug: Bug Fix
50
+
51
+ * lit@2.2.1 ([6707752](https://github.com/hatiolab/operato/commit/6707752907d24f7ecbe248cba18a4b18cfda282f))
52
+
53
+
54
+ ### :rocket: New Features
55
+
56
+ * translation crontab for ox-grist-renderer-crontab ([c13d6ef](https://github.com/hatiolab/operato/commit/c13d6efab9ff02ceb4b4d244455a480070a80a3e))
57
+
58
+
59
+
60
+ ## [1.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.47...v1.0.0-alpha.48) (2022-04-03)
61
+
62
+
63
+ ### :bug: Bug Fix
64
+
65
+ * event handling for clicking magnify icon in filters-form - fetch data forcely ([cc17a05](https://github.com/hatiolab/operato/commit/cc17a056807a6e5018ee89d1f6be91e463671bac))
66
+
67
+
68
+ ### :rocket: New Features
69
+
70
+ * support copy and paste in data-grid ([9dd686f](https://github.com/hatiolab/operato/commit/9dd686f6817500863a1c36140ef01b39fcafef9f))
71
+
72
+
73
+
74
+ ## [1.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.46...v1.0.0-alpha.47) (2022-04-02)
75
+
76
+
77
+ ### :bug: Bug Fix
78
+
79
+ * ox-input-work-shift bug ([0a7ae96](https://github.com/hatiolab/operato/commit/0a7ae96e404eb6c846291075e12ac7fcfb9f88f9))
80
+ * ox-input-work-shift header ([816dbd0](https://github.com/hatiolab/operato/commit/816dbd06e53a44a29413e7605431ad62f2090a43))
81
+
82
+
83
+
84
+ ## [1.0.0-alpha.46](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.45...v1.0.0-alpha.46) (2022-04-02)
85
+
86
+
87
+ ### :rocket: New Features
88
+
89
+ * add ox-input-work-shift ([f5c78e7](https://github.com/hatiolab/operato/commit/f5c78e7e9bfcbc456e9da269d069f843ee3e043c))
90
+
91
+
92
+
93
+ ## [1.0.0-alpha.45](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.44...v1.0.0-alpha.45) (2022-03-31)
94
+
95
+ **Note:** Version bump only for package @operato/input
96
+
97
+
98
+
99
+
100
+
101
+ ## [1.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.43...v1.0.0-alpha.44) (2022-03-31)
102
+
103
+ **Note:** Version bump only for package @operato/input
104
+
105
+
106
+
107
+
108
+
109
+ ## [1.0.0-alpha.43](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) (2022-03-30)
110
+
111
+ **Note:** Version bump only for package @operato/input
112
+
113
+
114
+
115
+
116
+
117
+ ## [1.0.0-alpha.42](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) (2022-03-29)
118
+
119
+ **Note:** Version bump only for package @operato/input
120
+
121
+
122
+
123
+
124
+
125
+ ## [1.0.0-alpha.41](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) (2022-03-27)
126
+
127
+
128
+ ### :rocket: New Features
129
+
130
+ * grid-header filter integrated with filters-form ([ebecb71](https://github.com/hatiolab/operato/commit/ebecb71133d38bb8358909660319de6cb5b45d7d))
131
+
132
+
133
+
134
+ ## [1.0.0-alpha.40](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-03-26)
135
+
136
+
137
+ ### :bug: Bug Fix
138
+
139
+ * ox-select label ([7f4a208](https://github.com/hatiolab/operato/commit/7f4a208d4ebadf459c48331774c88e68a72ae90d))
140
+
141
+
142
+
143
+ ## [1.0.0-alpha.39](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-03-25)
144
+
145
+ **Note:** Version bump only for package @operato/input
146
+
147
+
148
+
149
+
150
+
151
+ ## [1.0.0-alpha.38](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-03-25)
152
+
153
+ **Note:** Version bump only for package @operato/input
154
+
155
+
156
+
157
+
158
+
159
+ ## [1.0.0-alpha.37](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-03-25)
160
+
161
+
162
+ ### :bug: Bug Fix
163
+
164
+ * ox-input-partition-keys ([65883a3](https://github.com/hatiolab/operato/commit/65883a3a8419390c8cd7eb37177fe1b3e0530e1a))
165
+
166
+
167
+
168
+ ## [1.0.0-alpha.36](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-03-21)
169
+
170
+ **Note:** Version bump only for package @operato/input
171
+
172
+
173
+
174
+
175
+
176
+ ## [1.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-03-21)
177
+
178
+ **Note:** Version bump only for package @operato/input
179
+
180
+
181
+
182
+
183
+
184
+ ## [1.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-03-20)
185
+
186
+ **Note:** Version bump only for package @operato/input
187
+
188
+
189
+
190
+
191
+
192
+ ## [1.0.0-alpha.33](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-03-19)
193
+
194
+ **Note:** Version bump only for package @operato/input
195
+
196
+
197
+
198
+
199
+
200
+ ## [1.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-03-19)
201
+
202
+ **Note:** Version bump only for package @operato/input
203
+
204
+
205
+
206
+
207
+
208
+ ## [1.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-03-19)
209
+
210
+
211
+ ### :bug: Bug Fix
212
+
213
+ * partition-keys related ui components ([c21b4d2](https://github.com/hatiolab/operato/commit/c21b4d292ca4a6d6b4bf774a570dbabd349528fc))
214
+
215
+
216
+
217
+ ## [1.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-03-18)
218
+
219
+ **Note:** Version bump only for package @operato/input
220
+
221
+
222
+
223
+
224
+
225
+ ## [1.0.0-alpha.29](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-03-17)
226
+
227
+
228
+ ### :bug: Bug Fix
229
+
230
+ * datalist in ox-input-partition-keys ([a25e3a6](https://github.com/hatiolab/operato/commit/a25e3a66cf5f7a25bca057be90ef336b29e915a7))
231
+
232
+
233
+
234
+ ## [1.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.26...v1.0.0-alpha.28) (2022-03-17)
235
+
236
+
237
+ ### :rocket: New Features
238
+
239
+ * add ox-grist-editor for partition-keys ([7672a27](https://github.com/hatiolab/operato/commit/7672a2729f78475602733a83779f6a7a96e128fd))
240
+
241
+
242
+
243
+ ## [1.0.0-alpha.27](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.26...v1.0.0-alpha.27) (2022-03-17)
244
+
245
+
246
+ ### :rocket: New Features
247
+
248
+ * add ox-grist-editor for partition-keys ([7672a27](https://github.com/hatiolab/operato/commit/7672a2729f78475602733a83779f6a7a96e128fd))
249
+
250
+
251
+
252
+ ## [1.0.0-alpha.26](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2022-03-17)
253
+
254
+ **Note:** Version bump only for package @operato/input
255
+
256
+
257
+
258
+
259
+
260
+ ## [1.0.0-alpha.25](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2022-03-17)
261
+
262
+ **Note:** Version bump only for package @operato/input
263
+
264
+
265
+
266
+
267
+
268
+ ## [1.0.0-alpha.24](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-03-17)
269
+
270
+
271
+ ### :bug: Bug Fix
272
+
273
+ * refactoring grist-editor, property-editor and input ([ea7431a](https://github.com/hatiolab/operato/commit/ea7431a5e2dfd96ef392c1905e9622df7c2ef88c))
274
+
275
+
276
+
277
+ ## [1.0.0-alpha.23](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-03-17)
278
+
279
+ **Note:** Version bump only for package @operato/input
280
+
281
+
282
+
283
+
284
+
285
+ ## [1.0.0-alpha.22](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-03-17)
286
+
287
+ **Note:** Version bump only for package @operato/input
288
+
289
+
290
+
291
+
292
+
293
+ ## [1.0.0-alpha.21](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-03-16)
294
+
295
+
296
+ ### :rocket: New Features
297
+
298
+ * @operato/ccp module added ([f08ba5a](https://github.com/hatiolab/operato/commit/f08ba5a464c04b7fb132c6f18de975997087846a))
299
+ * add ccp module ([cbea635](https://github.com/hatiolab/operato/commit/cbea635d5f638d49fc99d68cc1727ac3e06ddf22))
300
+
301
+
302
+ ### :bug: Bug Fix
303
+
304
+ * add missing exporting ([844d9e7](https://github.com/hatiolab/operato/commit/844d9e7331c2e966eb7a5351a8755b7f1e599e3e))
305
+ * demo ([6fa3eac](https://github.com/hatiolab/operato/commit/6fa3eac612bd98ce25e3ef6d8ce89527d7152fb4))
306
+
307
+
308
+
309
+ ## [1.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2022-03-15)
310
+
311
+ **Note:** Version bump only for package @operato/input
312
+
313
+
314
+
315
+
316
+
317
+ ## [1.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-03-14)
318
+
319
+ **Note:** Version bump only for package @operato/input
320
+
321
+
322
+
323
+
324
+
325
+ ## [1.0.0-alpha.18](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2022-03-14)
326
+
327
+ **Note:** Version bump only for package @operato/input
328
+
329
+
330
+
331
+
332
+
333
+ ## [1.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2022-03-13)
334
+
335
+ **Note:** Version bump only for package @operato/input
336
+
337
+
338
+
339
+
340
+
341
+ ## [1.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-03-13)
342
+
343
+ **Note:** Version bump only for package @operato/input
344
+
345
+
346
+
347
+
348
+
349
+ ## [1.0.0-alpha.15](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-13)
350
+
351
+
352
+ ### :rocket: New Features
353
+
354
+ * migrate input, property-editor from things-factory ([dbd5e73](https://github.com/hatiolab/operato/commit/dbd5e73eac328e72c4bb7abd113a819532bc894d))
355
+
356
+
357
+
358
+ ## [1.0.0-alpha.14](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2022-03-13)
359
+
360
+ **Note:** Version bump only for package @operato/input
361
+
362
+
363
+
364
+
365
+
366
+ ## [1.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-13)
367
+
368
+
369
+ ### :bug: Bug Fix
370
+
371
+ * typos ([71447fa](https://github.com/hatiolab/operato/commit/71447fa2dfb52c5e45909baac735c2e195856256))
372
+
373
+
374
+
375
+ ## [1.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-03-13)
376
+
377
+
378
+ ### :rocket: New Features
379
+
380
+ * migrate input, property-editor from things-factory ([4800d85](https://github.com/hatiolab/operato/commit/4800d859473bf623325233a7f2af851e5d093dcb))
381
+
382
+
383
+
384
+ ## [1.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-03-12)
385
+
386
+ **Note:** Version bump only for package @operato/input
387
+
388
+
389
+
390
+
391
+
392
+ ## [1.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-03-12)
393
+
394
+
395
+ ### :bug: Bug Fix
396
+
397
+ * style ([89ba680](https://github.com/hatiolab/operato/commit/89ba68072c3141b6bbcad3378cc6980670ef4198))
398
+
399
+
400
+
6
401
  ## [1.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-03-12)
7
402
 
8
403
 
@@ -0,0 +1,37 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-GB">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <style>
6
+ body {
7
+ background: #fafafa;
8
+ }
9
+ </style>
10
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.3.2/web-animations-next-lite.min.js"></script>
11
+ <script src="https://unpkg.com/cronstrue@latest/dist/cronstrue.min.js" async></script>
12
+ </head>
13
+ <body>
14
+ <form id="demo"></form>
15
+
16
+ <script type="module">
17
+ import { html, render } from 'lit'
18
+ import '../dist/src/ox-input-crontab.js'
19
+
20
+ const form = document.querySelector('#demo')
21
+
22
+ render(
23
+ html`
24
+ <ox-input-crontab
25
+ value="* * * * * *"
26
+ name="crontab"
27
+ @change=${e => {
28
+ console.log(e.target.value)
29
+ console.log('form value', new FormData(form).get('crontab'))
30
+ }}
31
+ ></ox-input-crontab>
32
+ `,
33
+ form
34
+ )
35
+ </script>
36
+ </body>
37
+ </html>
@@ -0,0 +1,71 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-GB">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <style>
6
+ body {
7
+ background: #fafafa;
8
+ }
9
+ </style>
10
+ </head>
11
+ <body>
12
+ <form id="demo"></form>
13
+
14
+ <script type="module">
15
+ import { html, render } from 'lit'
16
+ import '../dist/src/ox-input-partition-keys.js'
17
+
18
+ const form = document.querySelector('#demo')
19
+
20
+ const value1 = {
21
+ A: 'A',
22
+ B: 'B',
23
+ C: 'C'
24
+ }
25
+
26
+ const value2 = {
27
+ A: true,
28
+ B: false,
29
+ C: true
30
+ }
31
+
32
+ const value3 = {
33
+ A: 'red',
34
+ B: 'yellow',
35
+ C: 'blue'
36
+ }
37
+
38
+ render(
39
+ html`
40
+ <ox-input-partition-keys
41
+ name="partition-keys1"
42
+ .value=${value1}
43
+ @change=${e => {
44
+ console.log(e.target.value)
45
+ console.log('form value', new FormData(form).get('partition-keys1'))
46
+ }}
47
+ ></ox-input-partition-keys>
48
+
49
+ <ox-input-partition-keys
50
+ name="partition-keys2"
51
+ .value=${value2}
52
+ @change=${e => {
53
+ console.log(e.target.value)
54
+ console.log('form value', new FormData(form).get('partition-keys2'))
55
+ }}
56
+ ></ox-input-partition-keys>
57
+
58
+ <ox-input-partition-keys
59
+ name="partition-keys3"
60
+ .value=${value3}
61
+ @change=${e => {
62
+ console.log(e.target.value)
63
+ console.log('form value', new FormData(form).get('partition-keys3'))
64
+ }}
65
+ ></ox-input-partition-keys>
66
+ `,
67
+ form
68
+ )
69
+ </script>
70
+ </body>
71
+ </html>
@@ -57,16 +57,19 @@
57
57
 
58
58
  render(
59
59
  html`
60
- <ox-select name="single" @change=${onchanged} placeholder="single select">
60
+ <ox-select name="single" @change=${onchanged} placeholder="single select" .value=${'C'}>
61
61
  <ox-popup-list align-left nowrap>
62
- <div option value="A">A</div>
63
- <div option value="B">B</div>
64
- <div option value="C">C</div>
65
- <div option value="TOO LONG VALUE">TOO LONG VALUE</div>
62
+ <div option value="A">LABEL-A</div>
63
+ <div option value="B">LABEL-B</div>
64
+ <div option value="C">LABEL-C</div>
65
+ <div option value="TOO LONG VALUE">LABEL-TOO LONG VALUE</div>
66
66
  </ox-popup-list>
67
67
  </ox-select>
68
68
 
69
- <ox-select name="multiple" @change=${onchanged} placeholder="multiple select">
69
+ <ox-select name="multiple" @change=${onchanged} placeholder="multiple select" .value=${[
70
+ 'B',
71
+ 'TOO LONG VALUE'
72
+ ]}>
70
73
  <ox-popup-list multiple>
71
74
  <div option value="A">A</div>
72
75
  <div option value="B">B</div>
@@ -75,20 +78,24 @@
75
78
  </ox-popup-list>
76
79
  </ox-select>
77
80
 
78
- <ox-select name="multiple with checkbox" @change=${onchanged} placeholder="multiple with checkbox">
81
+ <ox-select name="multiple with checkbox" @change=${onchanged} placeholder="multiple with checkbox" .value=${[
82
+ 'B',
83
+ 'C',
84
+ 'F'
85
+ ]}>
79
86
  <ox-popup-list attr-selected="checked" multiple with-search>
80
87
  <ox-checkbox option @change=${e => {
81
88
  const options = e.target.parentElement.querySelectorAll('[option]')
82
89
  console.log(options)
83
90
  options.forEach(option => (option.checked = e.target.checked))
84
91
  }}>set all</ox-checkbox>
85
- <ox-checkbox option value="A">A</ox-checkbox>
86
- <ox-checkbox option value="B">B</ox-checkbox>
87
- <ox-checkbox option value="C"checked >C</ox-checkbox>
88
- <ox-checkbox option value="D">D</ox-checkbox>
89
- <ox-checkbox option value="E">E</ox-checkbox>
90
- <ox-checkbox option value="F">F</ox-checkbox>
91
- <ox-checkbox option value="G">G</ox-checkbox>
92
+ <ox-checkbox option value="A">LABEL-A</ox-checkbox>
93
+ <ox-checkbox option value="B">LABEL-B</ox-checkbox>
94
+ <ox-checkbox option value="C" checked>LABEL-C</ox-checkbox>
95
+ <ox-checkbox option value="D">LABEL-D</ox-checkbox>
96
+ <ox-checkbox option value="E">LABEL-E</ox-checkbox>
97
+ <ox-checkbox option value="F">LABEL-F</ox-checkbox>
98
+ <ox-checkbox option value="G">LABEL-G</ox-checkbox>
92
99
  <ox-checkbox option value="TOO LONG VALUE">TOO LONG VALUE</ox-checkbox>
93
100
  </ox-popup-list>
94
101
  </ox-select>
@@ -0,0 +1,39 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-GB">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <style>
6
+ body {
7
+ background: #fafafa;
8
+ }
9
+ </style>
10
+
11
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.3.2/web-animations-next-lite.min.js"></script>
12
+
13
+ <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
14
+ <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
15
+ </head>
16
+ <body>
17
+ <form id="demo"></form>
18
+
19
+ <script type="module">
20
+ import { html, render } from 'lit'
21
+ import '../dist/src/ox-input-table.js'
22
+
23
+ const form = document.querySelector('#demo')
24
+
25
+ render(
26
+ html`
27
+ <ox-input-table
28
+ name="table"
29
+ @change=${e => {
30
+ console.log(e.target.value)
31
+ console.log('form value', new FormData(form).get('table'))
32
+ }}
33
+ ></ox-input-table>
34
+ `,
35
+ form
36
+ )
37
+ </script>
38
+ </body>
39
+ </html>
@@ -0,0 +1,80 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-GB">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <style>
6
+ body {
7
+ background: #fafafa;
8
+ }
9
+ </style>
10
+ </head>
11
+ <body>
12
+ <form id="demo"></form>
13
+
14
+ <script type="module">
15
+ import { html, render } from 'lit'
16
+ import '../dist/src/ox-input-value-map.js'
17
+
18
+ const form = document.querySelector('#demo')
19
+
20
+ const value1 = {
21
+ A: 'A',
22
+ B: 'B',
23
+ C: 'C',
24
+ default: 'B'
25
+ }
26
+
27
+ const value2 = {
28
+ A: true,
29
+ B: false,
30
+ C: true,
31
+ default: true
32
+ }
33
+
34
+ const value3 = {
35
+ A: 'red',
36
+ B: 'yellow',
37
+ C: 'blue',
38
+ default: 'yellow'
39
+ }
40
+
41
+ render(
42
+ html`
43
+ <ox-input-value-map
44
+ name="value-map1"
45
+ valuetype="string"
46
+ keytype="string"
47
+ .value=${value1}
48
+ @change=${e => {
49
+ console.log(e.target.value)
50
+ console.log('form value', new FormData(form).get('value-map1'))
51
+ }}
52
+ ></ox-input-value-map>
53
+
54
+ <ox-input-value-map
55
+ name="value-map2"
56
+ valuetype="boolean"
57
+ keytype="string"
58
+ .value=${value2}
59
+ @change=${e => {
60
+ console.log(e.target.value)
61
+ console.log('form value', new FormData(form).get('value-map2'))
62
+ }}
63
+ ></ox-input-value-map>
64
+
65
+ <ox-input-value-map
66
+ name="value-map3"
67
+ valuetype="color"
68
+ keytype="string"
69
+ .value=${value3}
70
+ @change=${e => {
71
+ console.log(e.target.value)
72
+ console.log('form value', new FormData(form).get('value-map3'))
73
+ }}
74
+ ></ox-input-value-map>
75
+ `,
76
+ form
77
+ )
78
+ </script>
79
+ </body>
80
+ </html>