@operato/form 1.0.0-beta.4 → 1.0.0-beta.43

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 (62) hide show
  1. package/CHANGELOG.md +466 -0
  2. package/demo/index.html +68 -2
  3. package/dist/src/filters/filter-checkbox.d.ts +3 -0
  4. package/dist/src/filters/filter-checkbox.js +26 -0
  5. package/dist/src/filters/filter-checkbox.js.map +1 -0
  6. package/dist/src/filters/filter-input-barcode.d.ts +3 -0
  7. package/dist/src/filters/filter-input-barcode.js +27 -0
  8. package/dist/src/filters/filter-input-barcode.js.map +1 -0
  9. package/dist/src/filters/filter-input.d.ts +2 -0
  10. package/dist/src/filters/filter-input.js +24 -0
  11. package/dist/src/filters/filter-input.js.map +1 -0
  12. package/dist/src/filters/filter-range-date.d.ts +2 -0
  13. package/dist/src/filters/filter-range-date.js +54 -0
  14. package/dist/src/filters/filter-range-date.js.map +1 -0
  15. package/dist/src/filters/filter-range-number.d.ts +2 -0
  16. package/dist/src/filters/filter-range-number.js +53 -0
  17. package/dist/src/filters/filter-range-number.js.map +1 -0
  18. package/dist/src/filters/filter-select.d.ts +3 -0
  19. package/dist/src/filters/filter-select.js +33 -0
  20. package/dist/src/filters/filter-select.js.map +1 -0
  21. package/dist/src/filters/filter-styles.d.ts +1 -0
  22. package/dist/src/filters/filter-styles.js +88 -0
  23. package/dist/src/filters/filter-styles.js.map +1 -0
  24. package/dist/src/filters/index.d.ts +8 -0
  25. package/dist/src/filters/index.js +9 -0
  26. package/dist/src/filters/index.js.map +1 -0
  27. package/dist/src/filters/ox-filters-form-base.d.ts +25 -0
  28. package/dist/src/filters/ox-filters-form-base.js +238 -0
  29. package/dist/src/filters/ox-filters-form-base.js.map +1 -0
  30. package/dist/src/filters/registry.d.ts +7 -0
  31. package/dist/src/filters/registry.js +46 -0
  32. package/dist/src/filters/registry.js.map +1 -0
  33. package/dist/src/filters/types.d.ts +17 -0
  34. package/dist/src/filters/types.js +2 -0
  35. package/dist/src/filters/types.js.map +1 -0
  36. package/dist/src/index.d.ts +1 -0
  37. package/dist/src/index.js +1 -0
  38. package/dist/src/index.js.map +1 -1
  39. package/dist/stories/ox-filter-form-barcode.stories.d.ts +29 -0
  40. package/dist/stories/ox-filter-form-barcode.stories.js +82 -0
  41. package/dist/stories/ox-filter-form-barcode.stories.js.map +1 -0
  42. package/dist/stories/ox-filter-form-base.stories.d.ts +29 -0
  43. package/dist/stories/ox-filter-form-base.stories.js +82 -0
  44. package/dist/stories/ox-filter-form-base.stories.js.map +1 -0
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +8 -6
  47. package/src/filters/filter-checkbox.ts +31 -0
  48. package/src/filters/filter-input-barcode.ts +33 -0
  49. package/src/filters/filter-input.ts +29 -0
  50. package/src/filters/filter-range-date.ts +64 -0
  51. package/src/filters/filter-range-number.ts +62 -0
  52. package/src/filters/filter-select.ts +47 -0
  53. package/src/filters/filter-styles.ts +88 -0
  54. package/src/filters/index.ts +10 -0
  55. package/src/filters/ox-filters-form-base.ts +261 -0
  56. package/src/filters/registry.ts +54 -0
  57. package/src/filters/types.ts +47 -0
  58. package/src/index.ts +1 -0
  59. package/stories/ox-filter-form-barcode.stories.ts +97 -0
  60. package/stories/ox-filter-form-base.stories.ts +97 -0
  61. package/themes/app-theme.css +142 -0
  62. /package/{src/themes → themes}/form-theme.css +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,472 @@
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.43](https://github.com/hatiolab/operato/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2022-07-03)
7
+
8
+ **Note:** Version bump only for package @operato/form
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.0-beta.42](https://github.com/hatiolab/operato/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2022-07-03)
15
+
16
+ **Note:** Version bump only for package @operato/form
17
+
18
+
19
+
20
+
21
+
22
+ ## [1.0.0-beta.41](https://github.com/hatiolab/operato/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2022-06-30)
23
+
24
+ **Note:** Version bump only for package @operato/form
25
+
26
+
27
+
28
+
29
+
30
+ ## [1.0.0-beta.40](https://github.com/hatiolab/operato/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2022-06-29)
31
+
32
+ **Note:** Version bump only for package @operato/form
33
+
34
+
35
+
36
+
37
+
38
+ ## [1.0.0-beta.39](https://github.com/hatiolab/operato/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2022-06-22)
39
+
40
+ **Note:** Version bump only for package @operato/form
41
+
42
+
43
+
44
+
45
+
46
+ ## [1.0.0-beta.38](https://github.com/hatiolab/operato/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2022-06-20)
47
+
48
+ **Note:** Version bump only for package @operato/form
49
+
50
+
51
+
52
+
53
+
54
+ ## [1.0.0-beta.37](https://github.com/hatiolab/operato/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2022-06-20)
55
+
56
+ **Note:** Version bump only for package @operato/form
57
+
58
+
59
+
60
+
61
+
62
+ ## [1.0.0-beta.36](https://github.com/hatiolab/operato/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2022-06-16)
63
+
64
+ **Note:** Version bump only for package @operato/form
65
+
66
+
67
+
68
+
69
+
70
+ ## [1.0.0-beta.35](https://github.com/hatiolab/operato/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2022-06-16)
71
+
72
+ **Note:** Version bump only for package @operato/form
73
+
74
+
75
+
76
+
77
+
78
+ ## [1.0.0-beta.34](https://github.com/hatiolab/operato/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2022-06-16)
79
+
80
+
81
+ ### :bug: Bug Fix
82
+
83
+ * apply english-only option to filter-input ([aa81f5e](https://github.com/hatiolab/operato/commit/aa81f5ebfe2a332f93968a28c63d7947e2f7dce3))
84
+
85
+
86
+
87
+ ## [1.0.0-beta.33](https://github.com/hatiolab/operato/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2022-06-16)
88
+
89
+ **Note:** Version bump only for package @operato/form
90
+
91
+
92
+
93
+
94
+
95
+ ## [1.0.0-beta.32](https://github.com/hatiolab/operato/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2022-06-15)
96
+
97
+ **Note:** Version bump only for package @operato/form
98
+
99
+
100
+
101
+
102
+
103
+ ## [1.0.0-beta.31](https://github.com/hatiolab/operato/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2022-06-15)
104
+
105
+ **Note:** Version bump only for package @operato/form
106
+
107
+
108
+
109
+
110
+
111
+ ## [1.0.0-beta.30](https://github.com/hatiolab/operato/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2022-06-13)
112
+
113
+ **Note:** Version bump only for package @operato/form
114
+
115
+
116
+
117
+
118
+
119
+ ## [1.0.0-beta.29](https://github.com/hatiolab/operato/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2022-06-10)
120
+
121
+
122
+ ### :rocket: New Features
123
+
124
+ * support 'barcode' type for filters-form in data-grist ([79f8e84](https://github.com/hatiolab/operato/commit/79f8e84151537ee9b27351a75de2c6bdf8049c91))
125
+ * support 'barcode' type for filters-form-base in form module ([799f374](https://github.com/hatiolab/operato/commit/799f37403e477a1050a9077bfe0311c8852f109c))
126
+
127
+
128
+
129
+ ## [1.0.0-beta.28](https://github.com/hatiolab/operato/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2022-06-10)
130
+
131
+ **Note:** Version bump only for package @operato/form
132
+
133
+
134
+
135
+
136
+
137
+ ## [1.0.0-beta.27](https://github.com/hatiolab/operato/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2022-06-09)
138
+
139
+ **Note:** Version bump only for package @operato/form
140
+
141
+
142
+
143
+
144
+
145
+ ## [1.0.0-beta.26](https://github.com/hatiolab/operato/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2022-06-04)
146
+
147
+
148
+ ### :bug: Bug Fix
149
+
150
+ * form, input style ([b94efe5](https://github.com/hatiolab/operato/commit/b94efe5bb844f2a410918d4a464c2a1e6530d4cd))
151
+
152
+
153
+
154
+ ## [1.0.0-beta.25](https://github.com/hatiolab/operato/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2022-06-02)
155
+
156
+ **Note:** Version bump only for package @operato/form
157
+
158
+
159
+
160
+
161
+
162
+ ## [1.0.0-beta.24](https://github.com/hatiolab/operato/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2022-06-02)
163
+
164
+ **Note:** Version bump only for package @operato/form
165
+
166
+
167
+
168
+
169
+
170
+ ## [1.0.0-beta.23](https://github.com/hatiolab/operato/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2022-06-02)
171
+
172
+
173
+ ### :bug: Bug Fix
174
+
175
+ * grid margin style ([2c19634](https://github.com/hatiolab/operato/commit/2c19634d97f4ad06e95c776b22b03a212af40b9a))
176
+
177
+
178
+
179
+ ## [1.0.0-beta.22](https://github.com/hatiolab/operato/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2022-05-31)
180
+
181
+ **Note:** Version bump only for package @operato/form
182
+
183
+
184
+
185
+
186
+
187
+ ## [1.0.0-beta.21](https://github.com/hatiolab/operato/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2022-05-31)
188
+
189
+ **Note:** Version bump only for package @operato/form
190
+
191
+
192
+
193
+
194
+
195
+ ## [1.0.0-beta.20](https://github.com/hatiolab/operato/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2022-05-30)
196
+
197
+ **Note:** Version bump only for package @operato/form
198
+
199
+
200
+
201
+
202
+
203
+ ## [1.0.0-beta.19](https://github.com/hatiolab/operato/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2022-05-29)
204
+
205
+ **Note:** Version bump only for package @operato/form
206
+
207
+
208
+
209
+
210
+
211
+ ## [1.0.0-beta.18](https://github.com/hatiolab/operato/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2022-05-27)
212
+
213
+ **Note:** Version bump only for package @operato/form
214
+
215
+
216
+
217
+
218
+
219
+ ## [1.0.0-beta.17](https://github.com/hatiolab/operato/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2022-05-25)
220
+
221
+ **Note:** Version bump only for package @operato/form
222
+
223
+
224
+
225
+
226
+
227
+ ## [1.0.0-beta.16](https://github.com/hatiolab/operato/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2022-05-23)
228
+
229
+ **Note:** Version bump only for package @operato/form
230
+
231
+
232
+
233
+
234
+
235
+ ## [1.0.0-beta.15](https://github.com/hatiolab/operato/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2022-05-20)
236
+
237
+ **Note:** Version bump only for package @operato/form
238
+
239
+
240
+
241
+
242
+
243
+ ## [1.0.0-beta.14](https://github.com/hatiolab/operato/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2022-05-19)
244
+
245
+ **Note:** Version bump only for package @operato/form
246
+
247
+
248
+
249
+
250
+
251
+ ## [1.0.0-beta.13](https://github.com/hatiolab/operato/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2022-05-19)
252
+
253
+
254
+ ### :bug: Bug Fix
255
+
256
+ * incorrect package.json scripts for storybooks ([8c8c405](https://github.com/hatiolab/operato/commit/8c8c405443247108b9c411b8161c008d9b6a2261))
257
+ * record-view ([ffcb397](https://github.com/hatiolab/operato/commit/ffcb397748efb64ce4e515f733b50f088ea1a093))
258
+ * storybook for data-grist ([ae0ad52](https://github.com/hatiolab/operato/commit/ae0ad52d642454c70a4e27f262b8811f7e53f420))
259
+
260
+
261
+
262
+ ## [1.0.0-beta.12](https://github.com/hatiolab/operato/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2022-05-13)
263
+
264
+
265
+ ### :rocket: New Features
266
+
267
+ * storybook started ([90c08c9](https://github.com/hatiolab/operato/commit/90c08c9a15e5fe554baaa1becca07793e8434799))
268
+
269
+
270
+
271
+ ## [1.0.0-beta.11](https://github.com/hatiolab/operato/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2022-05-01)
272
+
273
+
274
+ ### :rocket: New Features
275
+
276
+ * separated filter-form from data-grist ([513a498](https://github.com/hatiolab/operato/commit/513a49830be87053568d69fb68f1544586c3345b))
277
+ * separated filter-form from data-grist ([21e27f7](https://github.com/hatiolab/operato/commit/21e27f74d3e66d782da4aa75801c39a037627f62))
278
+
279
+
280
+ ### :bug: Bug Fix
281
+
282
+ * export filters-form functions ([bb84681](https://github.com/hatiolab/operato/commit/bb84681e0c61af344a3756332be722ffafbcfb0b))
283
+ * filters-form style ([e32b875](https://github.com/hatiolab/operato/commit/e32b8759dddad7be2b7f9dae0fd257064eb31043))
284
+
285
+
286
+
287
+ ## [1.0.0-beta.10](https://github.com/hatiolab/operato/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2022-04-28)
288
+
289
+ **Note:** Version bump only for package @operato/form
290
+
291
+
292
+
293
+
294
+
295
+ ## [1.0.0-beta.9](https://github.com/hatiolab/operato/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2022-04-28)
296
+
297
+ **Note:** Version bump only for package @operato/form
298
+
299
+
300
+
301
+
302
+
303
+ ## [1.0.0-beta.8](https://github.com/hatiolab/operato/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2022-04-27)
304
+
305
+ **Note:** Version bump only for package @operato/form
306
+
307
+
308
+
309
+
310
+
311
+ ## [1.0.0-beta.7](https://github.com/hatiolab/operato/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2022-04-24)
312
+
313
+ **Note:** Version bump only for package @operato/form
314
+
315
+
316
+
317
+
318
+
319
+ ## [1.0.0-beta.6](https://github.com/hatiolab/operato/compare/v0.4.5...v1.0.0-beta.6) (2022-04-22)
320
+
321
+ ## [1.0.0-beta.5](https://github.com/hatiolab/operato/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-04-18)
322
+
323
+ ## [1.0.0-beta.4](https://github.com/hatiolab/operato/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-04-14)
324
+
325
+ ## [1.0.0-beta.3](https://github.com/hatiolab/operato/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-04-12)
326
+
327
+ ## [1.0.0-beta.2](https://github.com/hatiolab/operato/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-04-12)
328
+
329
+ ## [1.0.0-beta.1](https://github.com/hatiolab/operato/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2022-04-11)
330
+
331
+ ## [1.0.0-beta.0](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.53...v1.0.0-beta.0) (2022-04-10)
332
+
333
+ ## [1.0.0-alpha.53](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.52...v1.0.0-alpha.53) (2022-04-08)
334
+
335
+ ## [1.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.51...v1.0.0-alpha.52) (2022-04-08)
336
+
337
+ ## [1.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.50...v1.0.0-alpha.51) (2022-04-05)
338
+
339
+ ## [1.0.0-alpha.50](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.49...v1.0.0-alpha.50) (2022-04-04)
340
+
341
+ ## [1.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.48...v1.0.0-alpha.49) (2022-04-04)
342
+
343
+
344
+ ### :bug: Bug Fix
345
+
346
+ * lit@2.2.1 ([6707752](https://github.com/hatiolab/operato/commit/6707752907d24f7ecbe248cba18a4b18cfda282f))
347
+
348
+ ## [1.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.47...v1.0.0-alpha.48) (2022-04-03)
349
+
350
+
351
+ ### :rocket: New Features
352
+
353
+ * support copy and paste in data-grid ([9dd686f](https://github.com/hatiolab/operato/commit/9dd686f6817500863a1c36140ef01b39fcafef9f))
354
+
355
+ ## [1.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.46...v1.0.0-alpha.47) (2022-04-02)
356
+
357
+ ## [1.0.0-alpha.46](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.45...v1.0.0-alpha.46) (2022-04-02)
358
+
359
+ ## [1.0.0-alpha.45](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.44...v1.0.0-alpha.45) (2022-03-31)
360
+
361
+ ## [1.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.43...v1.0.0-alpha.44) (2022-03-31)
362
+
363
+ ## [1.0.0-alpha.43](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) (2022-03-30)
364
+
365
+ ## [1.0.0-alpha.42](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) (2022-03-29)
366
+
367
+ ## [1.0.0-alpha.41](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) (2022-03-27)
368
+
369
+ ## [1.0.0-alpha.40](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-03-26)
370
+
371
+ ## [1.0.0-alpha.39](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-03-25)
372
+
373
+ ## [1.0.0-alpha.38](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-03-25)
374
+
375
+ ## [1.0.0-alpha.37](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-03-25)
376
+
377
+ ## [1.0.0-alpha.36](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-03-21)
378
+
379
+ ## [1.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-03-21)
380
+
381
+ ## [1.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-03-20)
382
+
383
+ ## [1.0.0-alpha.33](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-03-19)
384
+
385
+ ## [1.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-03-19)
386
+
387
+ ## [1.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-03-19)
388
+
389
+ ## [1.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-03-18)
390
+
391
+
392
+ ### :bug: Bug Fix
393
+
394
+ * ox-search-form ([00b6dbd](https://github.com/hatiolab/operato/commit/00b6dbd7238ea3bf4738646d55fa990b216ae158))
395
+
396
+ ## [1.0.0-alpha.29](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-03-17)
397
+
398
+ ## [1.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.26...v1.0.0-alpha.28) (2022-03-17)
399
+
400
+ ## [1.0.0-alpha.26](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2022-03-17)
401
+
402
+ ## [1.0.0-alpha.25](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2022-03-17)
403
+
404
+
405
+ ### :bug: Bug Fix
406
+
407
+ * typo ([907aceb](https://github.com/hatiolab/operato/commit/907acebaf882613991bce064efea435c2d148543))
408
+
409
+ ## [1.0.0-alpha.24](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-03-17)
410
+
411
+ ## [1.0.0-alpha.23](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-03-17)
412
+
413
+ ## [1.0.0-alpha.22](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-03-17)
414
+
415
+ ## [1.0.0-alpha.21](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-03-16)
416
+
417
+ ## [1.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2022-03-15)
418
+
419
+ ## [1.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-03-14)
420
+
421
+ ## [1.0.0-alpha.18](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2022-03-14)
422
+
423
+ ## [1.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2022-03-13)
424
+
425
+ ## [1.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-03-13)
426
+
427
+ ## [1.0.0-alpha.15](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-13)
428
+
429
+ ## [1.0.0-alpha.14](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2022-03-13)
430
+
431
+ ## [1.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-13)
432
+
433
+ ## [1.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-03-13)
434
+
435
+ ## [1.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-03-12)
436
+
437
+ ## [1.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-03-12)
438
+
439
+ ## [1.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-03-12)
440
+
441
+ ## [1.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-03-11)
442
+
443
+ ## [1.0.0-alpha.7](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-03-11)
444
+
445
+ ## [1.0.0-alpha.6](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2022-03-11)
446
+
447
+ ## [1.0.0-alpha.5](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2022-03-11)
448
+
449
+ ## [1.0.0-alpha.4](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2022-03-11)
450
+
451
+ ## [1.0.0-alpha.3](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2022-03-10)
452
+
453
+ ## [1.0.0-alpha.2](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2022-03-10)
454
+
455
+ ## [1.0.0-alpha.1](https://github.com/hatiolab/operato/compare/v0.4.3...v1.0.0-alpha.1) (2022-03-09)
456
+
457
+
458
+ ### :rocket: New Features
459
+
460
+ * 1.0-alpha ([42f87cf](https://github.com/hatiolab/operato/commit/42f87cf6a3cef0381db91ecb1179e63c64c01370))
461
+
462
+
463
+
464
+ ## [1.0.0-beta.5](https://github.com/hatiolab/operato/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-04-18)
465
+
466
+ **Note:** Version bump only for package @operato/form
467
+
468
+
469
+
470
+
471
+
6
472
  ## [1.0.0-beta.4](https://github.com/hatiolab/operato/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-04-14)
7
473
 
8
474
  **Note:** Version bump only for package @operato/form
package/demo/index.html CHANGED
@@ -2,6 +2,8 @@
2
2
  <html lang="en-GB">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+
5
7
  <style>
6
8
  body {
7
9
  background: #fafafa;
@@ -17,6 +19,9 @@
17
19
  </style>
18
20
  <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
19
21
  <link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
22
+
23
+ <link href="/themes/app-theme.css" rel="stylesheet" />
24
+ <link href="/themes/form-theme.css" rel="stylesheet" />
20
25
  </head>
21
26
  <body>
22
27
  <div id="demo"></div>
@@ -24,10 +29,71 @@
24
29
  <script type="module">
25
30
  import { html, render } from 'lit'
26
31
  import '@material/mwc-icon'
32
+ import '../dist/src/filters/ox-filters-form-base.js'
33
+
34
+ const form = document.querySelector('#demo')
27
35
 
28
- const parent = document.querySelector('#demo')
36
+ const filters = [
37
+ {
38
+ name: 'test',
39
+ type: 'string',
40
+ label: 'name',
41
+ operator: 'eq'
42
+ },
43
+ {
44
+ name: 'active',
45
+ type: 'boolean',
46
+ label: 'active',
47
+ operator: 'eq'
48
+ },
49
+ {
50
+ name: 'sss',
51
+ type: 'select',
52
+ label: 'sss',
53
+ operator: 'eq',
54
+ options: () => {
55
+ return [
56
+ {
57
+ display: '',
58
+ value: ''
59
+ },
60
+ {
61
+ display: 'ABC',
62
+ value: 'ABC'
63
+ },
64
+ {
65
+ display: 'DEF',
66
+ value: 'DEF'
67
+ }
68
+ ]
69
+ }
70
+ },
71
+ {
72
+ name: 'range',
73
+ type: 'number',
74
+ label: 'range',
75
+ operator: 'between'
76
+ },
77
+ {
78
+ name: 'date-range',
79
+ type: 'datetime',
80
+ label: 'date',
81
+ operator: 'between'
82
+ }
83
+ ]
29
84
 
30
- render(html``, parent)
85
+ render(
86
+ html`
87
+ <ox-filters-form-base
88
+ .filters=${filters}
89
+ @filters-change=${e => {
90
+ console.log('filters changed', e.detail)
91
+ }}
92
+ url-params-sensitive
93
+ ></ox-filters-form-base>
94
+ `,
95
+ form
96
+ )
31
97
  </script>
32
98
  </body>
33
99
  </html>
@@ -0,0 +1,3 @@
1
+ import '@operato/input/ox-checkbox.js';
2
+ import { FilterSelectRenderer } from './types.js';
3
+ export declare const FilterCheckbox: FilterSelectRenderer;
@@ -0,0 +1,26 @@
1
+ import '@operato/input/ox-checkbox.js';
2
+ import { html } from 'lit-html';
3
+ export const FilterCheckbox = (filter, value, owner) => {
4
+ const { name } = filter;
5
+ return html `
6
+ <ox-checkbox
7
+ name=${name}
8
+ ?checked=${value}
9
+ indeterminatable
10
+ ?indeterminate=${value === undefined}
11
+ @change=${(e) => {
12
+ ;
13
+ e.target.dispatchEvent(new CustomEvent('filter-change', {
14
+ bubbles: true,
15
+ composed: true,
16
+ detail: {
17
+ name: name,
18
+ operator: filter.operator,
19
+ value: e.target.checked
20
+ }
21
+ }));
22
+ }}
23
+ />
24
+ `;
25
+ };
26
+ //# sourceMappingURL=filter-checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-checkbox.js","sourceRoot":"","sources":["../../../src/filters/filter-checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AAEtC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAI/B,MAAM,CAAC,MAAM,cAAc,GAAyB,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;IAC3E,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,CAAA;IAEvB,OAAO,IAAI,CAAA;;aAEA,IAAI;iBACA,KAAK;;uBAEC,KAAK,KAAK,SAAS;gBAC1B,CAAC,CAAc,EAAE,EAAE;QAC3B,CAAC;QAAC,CAAC,CAAC,MAAsB,CAAC,aAAa,CACtC,IAAI,WAAW,CAAC,eAAe,EAAE;YAC/B,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI;gBACV,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAG,CAAC,CAAC,MAAqD,CAAC,OAAO;aACxE;SACF,CAAC,CACH,CAAA;IACH,CAAC;;GAEJ,CAAA;AACH,CAAC,CAAA","sourcesContent":["import '@operato/input/ox-checkbox.js'\n\nimport { html } from 'lit-html'\n\nimport { FilterSelectRenderer } from './types.js'\n\nexport const FilterCheckbox: FilterSelectRenderer = (filter, value, owner) => {\n const { name } = filter\n\n return html`\n <ox-checkbox\n name=${name}\n ?checked=${value}\n indeterminatable\n ?indeterminate=${value === undefined}\n @change=${(e: CustomEvent) => {\n ;(e.target as HTMLElement).dispatchEvent(\n new CustomEvent('filter-change', {\n bubbles: true,\n composed: true,\n detail: {\n name: name,\n operator: filter.operator,\n value: (e.target as Element & { checked: boolean | undefined }).checked\n }\n })\n )\n }}\n />\n `\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import '@operato/input/ox-input-barcode.js';
2
+ import { FilterSelectRenderer } from './types.js';
3
+ export declare const FilterInputBarcode: FilterSelectRenderer;
@@ -0,0 +1,27 @@
1
+ import '@operato/input/ox-input-barcode.js';
2
+ import { html } from 'lit-html';
3
+ export const FilterInputBarcode = (filter, value, owner) => {
4
+ const { name, type } = filter;
5
+ const { englishOnly, selectAfterChange } = filter.options || {};
6
+ return html `
7
+ <ox-input-barcode
8
+ name=${name}
9
+ ?english-only=${englishOnly}
10
+ ?select-after-change=${selectAfterChange}
11
+ .value=${value === undefined ? '' : value}
12
+ @change=${(e) => {
13
+ const input = e.target;
14
+ input.dispatchEvent(new CustomEvent('filter-change', {
15
+ bubbles: true,
16
+ composed: true,
17
+ detail: {
18
+ name,
19
+ operator: filter.operator,
20
+ value: input.value
21
+ }
22
+ }));
23
+ }}
24
+ />
25
+ `;
26
+ };
27
+ //# sourceMappingURL=filter-input-barcode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-input-barcode.js","sourceRoot":"","sources":["../../../src/filters/filter-input-barcode.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAA;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAI/B,MAAM,CAAC,MAAM,kBAAkB,GAAyB,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;IAC/E,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAA;IAC7B,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAA;IAE/D,OAAO,IAAI,CAAA;;aAEA,IAAI;sBACK,WAAW;6BACJ,iBAAiB;eAC/B,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;gBAC/B,CAAC,CAAc,EAAE,EAAE;QAC3B,MAAM,KAAK,GAAG,CAAC,CAAC,MAA0B,CAAA;QAC1C,KAAK,CAAC,aAAa,CACjB,IAAI,WAAW,CAAC,eAAe,EAAE;YAC/B,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE;gBACN,IAAI;gBACJ,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB;SACF,CAAC,CACH,CAAA;IACH,CAAC;;GAEJ,CAAA;AACH,CAAC,CAAA","sourcesContent":["import '@operato/input/ox-input-barcode.js'\n\nimport { html } from 'lit-html'\n\nimport { FilterSelectRenderer } from './types.js'\n\nexport const FilterInputBarcode: FilterSelectRenderer = (filter, value, owner) => {\n const { name, type } = filter\n const { englishOnly, selectAfterChange } = filter.options || {}\n\n return html`\n <ox-input-barcode\n name=${name}\n ?english-only=${englishOnly}\n ?select-after-change=${selectAfterChange}\n .value=${value === undefined ? '' : value}\n @change=${(e: CustomEvent) => {\n const input = e.target as HTMLInputElement\n input.dispatchEvent(\n new CustomEvent('filter-change', {\n bubbles: true,\n composed: true,\n detail: {\n name,\n operator: filter.operator,\n value: input.value\n }\n })\n )\n }}\n />\n `\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import { FilterSelectRenderer } from './types.js';
2
+ export declare const FilterInput: FilterSelectRenderer;
@@ -0,0 +1,24 @@
1
+ import { html } from 'lit-html';
2
+ export const FilterInput = (filter, value, owner) => {
3
+ const { name, type } = filter;
4
+ return html `
5
+ <input
6
+ type=${type}
7
+ name=${name}
8
+ .value=${value === undefined ? '' : value}
9
+ @change=${(e) => {
10
+ const input = e.target;
11
+ input.dispatchEvent(new CustomEvent('filter-change', {
12
+ bubbles: true,
13
+ composed: true,
14
+ detail: {
15
+ name: name,
16
+ operator: filter.operator,
17
+ value: input.value
18
+ }
19
+ }));
20
+ }}
21
+ />
22
+ `;
23
+ };
24
+ //# sourceMappingURL=filter-input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-input.js","sourceRoot":"","sources":["../../../src/filters/filter-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAI/B,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAA;IAE7B,OAAO,IAAI,CAAA;;aAEA,IAAI;aACJ,IAAI;eACF,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK;gBAC/B,CAAC,CAAc,EAAE,EAAE;QAC3B,MAAM,KAAK,GAAG,CAAC,CAAC,MAA0B,CAAA;QAC1C,KAAK,CAAC,aAAa,CACjB,IAAI,WAAW,CAAC,eAAe,EAAE;YAC/B,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI;gBACV,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB;SACF,CAAC,CACH,CAAA;IACH,CAAC;;GAEJ,CAAA;AACH,CAAC,CAAA","sourcesContent":["import { html } from 'lit-html'\n\nimport { FilterSelectRenderer } from './types.js'\n\nexport const FilterInput: FilterSelectRenderer = (filter, value, owner) => {\n const { name, type } = filter\n\n return html`\n <input\n type=${type}\n name=${name}\n .value=${value === undefined ? '' : value}\n @change=${(e: CustomEvent) => {\n const input = e.target as HTMLInputElement\n input.dispatchEvent(\n new CustomEvent('filter-change', {\n bubbles: true,\n composed: true,\n detail: {\n name: name,\n operator: filter.operator,\n value: input.value\n }\n })\n )\n }}\n />\n `\n}\n"]}
@@ -0,0 +1,2 @@
1
+ import { FilterSelectRenderer } from './types.js';
2
+ export declare const FilterRangeDate: FilterSelectRenderer;