@operato/form 1.0.0-beta.5 → 1.0.0-beta.50
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/CHANGELOG.md +516 -0
- package/demo/index.html +68 -2
- package/dist/src/components/ox-search-form.d.ts +2 -0
- package/dist/src/components/ox-search-form.js +19 -4
- package/dist/src/components/ox-search-form.js.map +1 -1
- package/dist/src/filters/filter-checkbox.d.ts +3 -0
- package/dist/src/filters/filter-checkbox.js +26 -0
- package/dist/src/filters/filter-checkbox.js.map +1 -0
- package/dist/src/filters/filter-input-barcode.d.ts +3 -0
- package/dist/src/filters/filter-input-barcode.js +27 -0
- package/dist/src/filters/filter-input-barcode.js.map +1 -0
- package/dist/src/filters/filter-input.d.ts +2 -0
- package/dist/src/filters/filter-input.js +24 -0
- package/dist/src/filters/filter-input.js.map +1 -0
- package/dist/src/filters/filter-range-date.d.ts +2 -0
- package/dist/src/filters/filter-range-date.js +54 -0
- package/dist/src/filters/filter-range-date.js.map +1 -0
- package/dist/src/filters/filter-range-number.d.ts +2 -0
- package/dist/src/filters/filter-range-number.js +53 -0
- package/dist/src/filters/filter-range-number.js.map +1 -0
- package/dist/src/filters/filter-select.d.ts +3 -0
- package/dist/src/filters/filter-select.js +33 -0
- package/dist/src/filters/filter-select.js.map +1 -0
- package/dist/src/filters/filter-styles.d.ts +1 -0
- package/dist/src/filters/filter-styles.js +88 -0
- package/dist/src/filters/filter-styles.js.map +1 -0
- package/dist/src/filters/index.d.ts +8 -0
- package/dist/src/filters/index.js +9 -0
- package/dist/src/filters/index.js.map +1 -0
- package/dist/src/filters/ox-filters-form-base.d.ts +25 -0
- package/dist/src/filters/ox-filters-form-base.js +238 -0
- package/dist/src/filters/ox-filters-form-base.js.map +1 -0
- package/dist/src/filters/registry.d.ts +7 -0
- package/dist/src/filters/registry.js +46 -0
- package/dist/src/filters/registry.js.map +1 -0
- package/dist/src/filters/types.d.ts +17 -0
- package/dist/src/filters/types.js +2 -0
- package/dist/src/filters/types.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/stories/ox-filter-form-barcode.stories.d.ts +29 -0
- package/dist/stories/ox-filter-form-barcode.stories.js +82 -0
- package/dist/stories/ox-filter-form-barcode.stories.js.map +1 -0
- package/dist/stories/ox-filter-form-base.stories.d.ts +29 -0
- package/dist/stories/ox-filter-form-base.stories.js +82 -0
- package/dist/stories/ox-filter-form-base.stories.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -8
- package/src/components/ox-search-form.ts +16 -4
- package/src/filters/filter-checkbox.ts +31 -0
- package/src/filters/filter-input-barcode.ts +33 -0
- package/src/filters/filter-input.ts +29 -0
- package/src/filters/filter-range-date.ts +64 -0
- package/src/filters/filter-range-number.ts +62 -0
- package/src/filters/filter-select.ts +47 -0
- package/src/filters/filter-styles.ts +88 -0
- package/src/filters/index.ts +10 -0
- package/src/filters/ox-filters-form-base.ts +261 -0
- package/src/filters/registry.ts +54 -0
- package/src/filters/types.ts +47 -0
- package/src/index.ts +1 -0
- package/stories/ox-filter-form-barcode.stories.ts +97 -0
- package/stories/ox-filter-form-base.stories.ts +97 -0
- package/themes/app-theme.css +142 -0
- /package/{src/themes → themes}/form-theme.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,522 @@
|
|
|
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.50](https://github.com/hatiolab/operato/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2022-07-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :bug: Bug Fix
|
|
10
|
+
|
|
11
|
+
* autofocus for ox-search-form ([a9d394b](https://github.com/hatiolab/operato/commit/a9d394b0d404ab7e71d943cad69decfa9a369a06))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.0.0-beta.49](https://github.com/hatiolab/operato/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2022-07-17)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @operato/form
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [1.0.0-beta.48](https://github.com/hatiolab/operato/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2022-07-17)
|
|
24
|
+
|
|
25
|
+
**Note:** Version bump only for package @operato/form
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## [1.0.0-beta.47](https://github.com/hatiolab/operato/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2022-07-15)
|
|
32
|
+
|
|
33
|
+
**Note:** Version bump only for package @operato/form
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [1.0.0-beta.46](https://github.com/hatiolab/operato/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2022-07-11)
|
|
40
|
+
|
|
41
|
+
**Note:** Version bump only for package @operato/form
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## [1.0.0-beta.45](https://github.com/hatiolab/operato/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2022-07-09)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### :bug: Bug Fix
|
|
51
|
+
|
|
52
|
+
* upgrade dependencies ([4986392](https://github.com/hatiolab/operato/commit/4986392e64524b5602cc9a144def239e85524bee))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## [1.0.0-beta.44](https://github.com/hatiolab/operato/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2022-07-07)
|
|
57
|
+
|
|
58
|
+
**Note:** Version bump only for package @operato/form
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## [1.0.0-beta.43](https://github.com/hatiolab/operato/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2022-07-03)
|
|
65
|
+
|
|
66
|
+
**Note:** Version bump only for package @operato/form
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
## [1.0.0-beta.42](https://github.com/hatiolab/operato/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2022-07-03)
|
|
73
|
+
|
|
74
|
+
**Note:** Version bump only for package @operato/form
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
## [1.0.0-beta.41](https://github.com/hatiolab/operato/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2022-06-30)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package @operato/form
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## [1.0.0-beta.40](https://github.com/hatiolab/operato/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2022-06-29)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @operato/form
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## [1.0.0-beta.39](https://github.com/hatiolab/operato/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2022-06-22)
|
|
97
|
+
|
|
98
|
+
**Note:** Version bump only for package @operato/form
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## [1.0.0-beta.38](https://github.com/hatiolab/operato/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2022-06-20)
|
|
105
|
+
|
|
106
|
+
**Note:** Version bump only for package @operato/form
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
## [1.0.0-beta.37](https://github.com/hatiolab/operato/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2022-06-20)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package @operato/form
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
## [1.0.0-beta.36](https://github.com/hatiolab/operato/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2022-06-16)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package @operato/form
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## [1.0.0-beta.35](https://github.com/hatiolab/operato/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2022-06-16)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package @operato/form
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## [1.0.0-beta.34](https://github.com/hatiolab/operato/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2022-06-16)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### :bug: Bug Fix
|
|
140
|
+
|
|
141
|
+
* apply english-only option to filter-input ([aa81f5e](https://github.com/hatiolab/operato/commit/aa81f5ebfe2a332f93968a28c63d7947e2f7dce3))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
## [1.0.0-beta.33](https://github.com/hatiolab/operato/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2022-06-16)
|
|
146
|
+
|
|
147
|
+
**Note:** Version bump only for package @operato/form
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
## [1.0.0-beta.32](https://github.com/hatiolab/operato/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2022-06-15)
|
|
154
|
+
|
|
155
|
+
**Note:** Version bump only for package @operato/form
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
## [1.0.0-beta.31](https://github.com/hatiolab/operato/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2022-06-15)
|
|
162
|
+
|
|
163
|
+
**Note:** Version bump only for package @operato/form
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## [1.0.0-beta.30](https://github.com/hatiolab/operato/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2022-06-13)
|
|
170
|
+
|
|
171
|
+
**Note:** Version bump only for package @operato/form
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
## [1.0.0-beta.29](https://github.com/hatiolab/operato/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2022-06-10)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### :rocket: New Features
|
|
181
|
+
|
|
182
|
+
* support 'barcode' type for filters-form in data-grist ([79f8e84](https://github.com/hatiolab/operato/commit/79f8e84151537ee9b27351a75de2c6bdf8049c91))
|
|
183
|
+
* support 'barcode' type for filters-form-base in form module ([799f374](https://github.com/hatiolab/operato/commit/799f37403e477a1050a9077bfe0311c8852f109c))
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
## [1.0.0-beta.28](https://github.com/hatiolab/operato/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2022-06-10)
|
|
188
|
+
|
|
189
|
+
**Note:** Version bump only for package @operato/form
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
## [1.0.0-beta.27](https://github.com/hatiolab/operato/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2022-06-09)
|
|
196
|
+
|
|
197
|
+
**Note:** Version bump only for package @operato/form
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## [1.0.0-beta.26](https://github.com/hatiolab/operato/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2022-06-04)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### :bug: Bug Fix
|
|
207
|
+
|
|
208
|
+
* form, input style ([b94efe5](https://github.com/hatiolab/operato/commit/b94efe5bb844f2a410918d4a464c2a1e6530d4cd))
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
## [1.0.0-beta.25](https://github.com/hatiolab/operato/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2022-06-02)
|
|
213
|
+
|
|
214
|
+
**Note:** Version bump only for package @operato/form
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
## [1.0.0-beta.24](https://github.com/hatiolab/operato/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2022-06-02)
|
|
221
|
+
|
|
222
|
+
**Note:** Version bump only for package @operato/form
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
## [1.0.0-beta.23](https://github.com/hatiolab/operato/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2022-06-02)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### :bug: Bug Fix
|
|
232
|
+
|
|
233
|
+
* grid margin style ([2c19634](https://github.com/hatiolab/operato/commit/2c19634d97f4ad06e95c776b22b03a212af40b9a))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
## [1.0.0-beta.22](https://github.com/hatiolab/operato/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2022-05-31)
|
|
238
|
+
|
|
239
|
+
**Note:** Version bump only for package @operato/form
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
## [1.0.0-beta.21](https://github.com/hatiolab/operato/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2022-05-31)
|
|
246
|
+
|
|
247
|
+
**Note:** Version bump only for package @operato/form
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
## [1.0.0-beta.20](https://github.com/hatiolab/operato/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2022-05-30)
|
|
254
|
+
|
|
255
|
+
**Note:** Version bump only for package @operato/form
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
## [1.0.0-beta.19](https://github.com/hatiolab/operato/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2022-05-29)
|
|
262
|
+
|
|
263
|
+
**Note:** Version bump only for package @operato/form
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
## [1.0.0-beta.18](https://github.com/hatiolab/operato/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2022-05-27)
|
|
270
|
+
|
|
271
|
+
**Note:** Version bump only for package @operato/form
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
## [1.0.0-beta.17](https://github.com/hatiolab/operato/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2022-05-25)
|
|
278
|
+
|
|
279
|
+
**Note:** Version bump only for package @operato/form
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
## [1.0.0-beta.16](https://github.com/hatiolab/operato/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2022-05-23)
|
|
286
|
+
|
|
287
|
+
**Note:** Version bump only for package @operato/form
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
## [1.0.0-beta.15](https://github.com/hatiolab/operato/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2022-05-20)
|
|
294
|
+
|
|
295
|
+
**Note:** Version bump only for package @operato/form
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
## [1.0.0-beta.14](https://github.com/hatiolab/operato/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2022-05-19)
|
|
302
|
+
|
|
303
|
+
**Note:** Version bump only for package @operato/form
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
## [1.0.0-beta.13](https://github.com/hatiolab/operato/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2022-05-19)
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
### :bug: Bug Fix
|
|
313
|
+
|
|
314
|
+
* incorrect package.json scripts for storybooks ([8c8c405](https://github.com/hatiolab/operato/commit/8c8c405443247108b9c411b8161c008d9b6a2261))
|
|
315
|
+
* record-view ([ffcb397](https://github.com/hatiolab/operato/commit/ffcb397748efb64ce4e515f733b50f088ea1a093))
|
|
316
|
+
* storybook for data-grist ([ae0ad52](https://github.com/hatiolab/operato/commit/ae0ad52d642454c70a4e27f262b8811f7e53f420))
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
## [1.0.0-beta.12](https://github.com/hatiolab/operato/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2022-05-13)
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
### :rocket: New Features
|
|
324
|
+
|
|
325
|
+
* storybook started ([90c08c9](https://github.com/hatiolab/operato/commit/90c08c9a15e5fe554baaa1becca07793e8434799))
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
## [1.0.0-beta.11](https://github.com/hatiolab/operato/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2022-05-01)
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
### :rocket: New Features
|
|
333
|
+
|
|
334
|
+
* separated filter-form from data-grist ([513a498](https://github.com/hatiolab/operato/commit/513a49830be87053568d69fb68f1544586c3345b))
|
|
335
|
+
* separated filter-form from data-grist ([21e27f7](https://github.com/hatiolab/operato/commit/21e27f74d3e66d782da4aa75801c39a037627f62))
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
### :bug: Bug Fix
|
|
339
|
+
|
|
340
|
+
* export filters-form functions ([bb84681](https://github.com/hatiolab/operato/commit/bb84681e0c61af344a3756332be722ffafbcfb0b))
|
|
341
|
+
* filters-form style ([e32b875](https://github.com/hatiolab/operato/commit/e32b8759dddad7be2b7f9dae0fd257064eb31043))
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
## [1.0.0-beta.10](https://github.com/hatiolab/operato/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2022-04-28)
|
|
346
|
+
|
|
347
|
+
**Note:** Version bump only for package @operato/form
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
## [1.0.0-beta.9](https://github.com/hatiolab/operato/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2022-04-28)
|
|
354
|
+
|
|
355
|
+
**Note:** Version bump only for package @operato/form
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
## [1.0.0-beta.8](https://github.com/hatiolab/operato/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2022-04-27)
|
|
362
|
+
|
|
363
|
+
**Note:** Version bump only for package @operato/form
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
## [1.0.0-beta.7](https://github.com/hatiolab/operato/compare/v1.0.0-beta.6...v1.0.0-beta.7) (2022-04-24)
|
|
370
|
+
|
|
371
|
+
**Note:** Version bump only for package @operato/form
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
## [1.0.0-beta.6](https://github.com/hatiolab/operato/compare/v0.4.5...v1.0.0-beta.6) (2022-04-22)
|
|
378
|
+
|
|
379
|
+
## [1.0.0-beta.5](https://github.com/hatiolab/operato/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-04-18)
|
|
380
|
+
|
|
381
|
+
## [1.0.0-beta.4](https://github.com/hatiolab/operato/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2022-04-14)
|
|
382
|
+
|
|
383
|
+
## [1.0.0-beta.3](https://github.com/hatiolab/operato/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-04-12)
|
|
384
|
+
|
|
385
|
+
## [1.0.0-beta.2](https://github.com/hatiolab/operato/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-04-12)
|
|
386
|
+
|
|
387
|
+
## [1.0.0-beta.1](https://github.com/hatiolab/operato/compare/v1.0.0-beta.0...v1.0.0-beta.1) (2022-04-11)
|
|
388
|
+
|
|
389
|
+
## [1.0.0-beta.0](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.53...v1.0.0-beta.0) (2022-04-10)
|
|
390
|
+
|
|
391
|
+
## [1.0.0-alpha.53](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.52...v1.0.0-alpha.53) (2022-04-08)
|
|
392
|
+
|
|
393
|
+
## [1.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.51...v1.0.0-alpha.52) (2022-04-08)
|
|
394
|
+
|
|
395
|
+
## [1.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.50...v1.0.0-alpha.51) (2022-04-05)
|
|
396
|
+
|
|
397
|
+
## [1.0.0-alpha.50](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.49...v1.0.0-alpha.50) (2022-04-04)
|
|
398
|
+
|
|
399
|
+
## [1.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.48...v1.0.0-alpha.49) (2022-04-04)
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
### :bug: Bug Fix
|
|
403
|
+
|
|
404
|
+
* lit@2.2.1 ([6707752](https://github.com/hatiolab/operato/commit/6707752907d24f7ecbe248cba18a4b18cfda282f))
|
|
405
|
+
|
|
406
|
+
## [1.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.47...v1.0.0-alpha.48) (2022-04-03)
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
### :rocket: New Features
|
|
410
|
+
|
|
411
|
+
* support copy and paste in data-grid ([9dd686f](https://github.com/hatiolab/operato/commit/9dd686f6817500863a1c36140ef01b39fcafef9f))
|
|
412
|
+
|
|
413
|
+
## [1.0.0-alpha.47](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.46...v1.0.0-alpha.47) (2022-04-02)
|
|
414
|
+
|
|
415
|
+
## [1.0.0-alpha.46](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.45...v1.0.0-alpha.46) (2022-04-02)
|
|
416
|
+
|
|
417
|
+
## [1.0.0-alpha.45](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.44...v1.0.0-alpha.45) (2022-03-31)
|
|
418
|
+
|
|
419
|
+
## [1.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.43...v1.0.0-alpha.44) (2022-03-31)
|
|
420
|
+
|
|
421
|
+
## [1.0.0-alpha.43](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.42...v1.0.0-alpha.43) (2022-03-30)
|
|
422
|
+
|
|
423
|
+
## [1.0.0-alpha.42](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.41...v1.0.0-alpha.42) (2022-03-29)
|
|
424
|
+
|
|
425
|
+
## [1.0.0-alpha.41](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.40...v1.0.0-alpha.41) (2022-03-27)
|
|
426
|
+
|
|
427
|
+
## [1.0.0-alpha.40](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.39...v1.0.0-alpha.40) (2022-03-26)
|
|
428
|
+
|
|
429
|
+
## [1.0.0-alpha.39](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.38...v1.0.0-alpha.39) (2022-03-25)
|
|
430
|
+
|
|
431
|
+
## [1.0.0-alpha.38](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.37...v1.0.0-alpha.38) (2022-03-25)
|
|
432
|
+
|
|
433
|
+
## [1.0.0-alpha.37](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.36...v1.0.0-alpha.37) (2022-03-25)
|
|
434
|
+
|
|
435
|
+
## [1.0.0-alpha.36](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.35...v1.0.0-alpha.36) (2022-03-21)
|
|
436
|
+
|
|
437
|
+
## [1.0.0-alpha.35](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.34...v1.0.0-alpha.35) (2022-03-21)
|
|
438
|
+
|
|
439
|
+
## [1.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.33...v1.0.0-alpha.34) (2022-03-20)
|
|
440
|
+
|
|
441
|
+
## [1.0.0-alpha.33](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-03-19)
|
|
442
|
+
|
|
443
|
+
## [1.0.0-alpha.32](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-03-19)
|
|
444
|
+
|
|
445
|
+
## [1.0.0-alpha.31](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.30...v1.0.0-alpha.31) (2022-03-19)
|
|
446
|
+
|
|
447
|
+
## [1.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-03-18)
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
### :bug: Bug Fix
|
|
451
|
+
|
|
452
|
+
* ox-search-form ([00b6dbd](https://github.com/hatiolab/operato/commit/00b6dbd7238ea3bf4738646d55fa990b216ae158))
|
|
453
|
+
|
|
454
|
+
## [1.0.0-alpha.29](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.28...v1.0.0-alpha.29) (2022-03-17)
|
|
455
|
+
|
|
456
|
+
## [1.0.0-alpha.28](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.26...v1.0.0-alpha.28) (2022-03-17)
|
|
457
|
+
|
|
458
|
+
## [1.0.0-alpha.26](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.25...v1.0.0-alpha.26) (2022-03-17)
|
|
459
|
+
|
|
460
|
+
## [1.0.0-alpha.25](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.24...v1.0.0-alpha.25) (2022-03-17)
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
### :bug: Bug Fix
|
|
464
|
+
|
|
465
|
+
* typo ([907aceb](https://github.com/hatiolab/operato/commit/907acebaf882613991bce064efea435c2d148543))
|
|
466
|
+
|
|
467
|
+
## [1.0.0-alpha.24](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.23...v1.0.0-alpha.24) (2022-03-17)
|
|
468
|
+
|
|
469
|
+
## [1.0.0-alpha.23](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.22...v1.0.0-alpha.23) (2022-03-17)
|
|
470
|
+
|
|
471
|
+
## [1.0.0-alpha.22](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.21...v1.0.0-alpha.22) (2022-03-17)
|
|
472
|
+
|
|
473
|
+
## [1.0.0-alpha.21](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.20...v1.0.0-alpha.21) (2022-03-16)
|
|
474
|
+
|
|
475
|
+
## [1.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.19...v1.0.0-alpha.20) (2022-03-15)
|
|
476
|
+
|
|
477
|
+
## [1.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.18...v1.0.0-alpha.19) (2022-03-14)
|
|
478
|
+
|
|
479
|
+
## [1.0.0-alpha.18](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.17...v1.0.0-alpha.18) (2022-03-14)
|
|
480
|
+
|
|
481
|
+
## [1.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.16...v1.0.0-alpha.17) (2022-03-13)
|
|
482
|
+
|
|
483
|
+
## [1.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.15...v1.0.0-alpha.16) (2022-03-13)
|
|
484
|
+
|
|
485
|
+
## [1.0.0-alpha.15](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.14...v1.0.0-alpha.15) (2022-03-13)
|
|
486
|
+
|
|
487
|
+
## [1.0.0-alpha.14](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.13...v1.0.0-alpha.14) (2022-03-13)
|
|
488
|
+
|
|
489
|
+
## [1.0.0-alpha.13](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.12...v1.0.0-alpha.13) (2022-03-13)
|
|
490
|
+
|
|
491
|
+
## [1.0.0-alpha.12](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.11...v1.0.0-alpha.12) (2022-03-13)
|
|
492
|
+
|
|
493
|
+
## [1.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.10...v1.0.0-alpha.11) (2022-03-12)
|
|
494
|
+
|
|
495
|
+
## [1.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.9...v1.0.0-alpha.10) (2022-03-12)
|
|
496
|
+
|
|
497
|
+
## [1.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.8...v1.0.0-alpha.9) (2022-03-12)
|
|
498
|
+
|
|
499
|
+
## [1.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.7...v1.0.0-alpha.8) (2022-03-11)
|
|
500
|
+
|
|
501
|
+
## [1.0.0-alpha.7](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2022-03-11)
|
|
502
|
+
|
|
503
|
+
## [1.0.0-alpha.6](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2022-03-11)
|
|
504
|
+
|
|
505
|
+
## [1.0.0-alpha.5](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.4...v1.0.0-alpha.5) (2022-03-11)
|
|
506
|
+
|
|
507
|
+
## [1.0.0-alpha.4](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.3...v1.0.0-alpha.4) (2022-03-11)
|
|
508
|
+
|
|
509
|
+
## [1.0.0-alpha.3](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2022-03-10)
|
|
510
|
+
|
|
511
|
+
## [1.0.0-alpha.2](https://github.com/hatiolab/operato/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2022-03-10)
|
|
512
|
+
|
|
513
|
+
## [1.0.0-alpha.1](https://github.com/hatiolab/operato/compare/v0.4.3...v1.0.0-alpha.1) (2022-03-09)
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
### :rocket: New Features
|
|
517
|
+
|
|
518
|
+
* 1.0-alpha ([42f87cf](https://github.com/hatiolab/operato/commit/42f87cf6a3cef0381db91ecb1179e63c64c01370))
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
6
522
|
## [1.0.0-beta.5](https://github.com/hatiolab/operato/compare/v1.0.0-beta.4...v1.0.0-beta.5) (2022-04-18)
|
|
7
523
|
|
|
8
524
|
**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
|
|
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(
|
|
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>
|
|
@@ -27,7 +27,9 @@ export declare class SearchForm extends LitElement {
|
|
|
27
27
|
};
|
|
28
28
|
}[];
|
|
29
29
|
hideSearchButton: boolean;
|
|
30
|
+
autofocus: boolean;
|
|
30
31
|
form: HTMLFormElement;
|
|
32
|
+
autofocused?: HTMLInputElement;
|
|
31
33
|
formFields: ((HTMLInputElement | HTMLSelectElement) & {
|
|
32
34
|
field: string;
|
|
33
35
|
_value: any;
|
|
@@ -2,17 +2,19 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import '@material/mwc-icon';
|
|
3
3
|
import './ox-custom-input.js';
|
|
4
4
|
import './ox-custom-select.js';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
5
|
+
import gql from 'graphql-tag';
|
|
6
|
+
import { css, html, LitElement } from 'lit';
|
|
7
7
|
import { customElement, property, query, queryAll } from 'lit/decorators.js';
|
|
8
|
+
import { buildArgs, client } from '@operato/graphql';
|
|
8
9
|
import { SearchFormStyles } from '../styles/search-form-styles.js';
|
|
9
|
-
import gql from 'graphql-tag';
|
|
10
10
|
let SearchForm = class SearchForm extends LitElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.hideSearchButton = false;
|
|
14
|
+
this.autofocus = false;
|
|
14
15
|
}
|
|
15
16
|
render() {
|
|
17
|
+
var autofocusConsumed = 0;
|
|
16
18
|
return html `
|
|
17
19
|
<form
|
|
18
20
|
class="search-form"
|
|
@@ -76,6 +78,7 @@ let SearchForm = class SearchForm extends LitElement {
|
|
|
76
78
|
.field=${field.field}
|
|
77
79
|
.queryName=${field.queryName}
|
|
78
80
|
?hidden=${field.hidden}
|
|
81
|
+
?autofocus=${!field.hidden && 0 === autofocusConsumed++}
|
|
79
82
|
/>
|
|
80
83
|
`
|
|
81
84
|
: html `
|
|
@@ -84,8 +87,9 @@ let SearchForm = class SearchForm extends LitElement {
|
|
|
84
87
|
.type=${field.type}
|
|
85
88
|
.value=${field.value || ''}
|
|
86
89
|
.name=${field.name}
|
|
87
|
-
?hidden=${field.hidden}
|
|
88
90
|
.placeholder=${field.placeholder || ''}
|
|
91
|
+
?hidden=${field.hidden}
|
|
92
|
+
?autofocus=${!field.hidden && 0 === autofocusConsumed++}
|
|
89
93
|
/>
|
|
90
94
|
`}
|
|
91
95
|
`)}
|
|
@@ -96,6 +100,7 @@ let SearchForm = class SearchForm extends LitElement {
|
|
|
96
100
|
`;
|
|
97
101
|
}
|
|
98
102
|
async updated(changes) {
|
|
103
|
+
var _a;
|
|
99
104
|
if (changes.has('fields')) {
|
|
100
105
|
this._checkInputValidity();
|
|
101
106
|
var formFields = Array.from(this.formFields);
|
|
@@ -126,6 +131,10 @@ let SearchForm = class SearchForm extends LitElement {
|
|
|
126
131
|
}
|
|
127
132
|
}
|
|
128
133
|
});
|
|
134
|
+
if (this.autofocus) {
|
|
135
|
+
await this.requestUpdate();
|
|
136
|
+
(_a = this.autofocused) === null || _a === void 0 ? void 0 : _a.focus();
|
|
137
|
+
}
|
|
129
138
|
}
|
|
130
139
|
}
|
|
131
140
|
_checkInputValidity() {
|
|
@@ -267,9 +276,15 @@ __decorate([
|
|
|
267
276
|
__decorate([
|
|
268
277
|
property({ type: Boolean })
|
|
269
278
|
], SearchForm.prototype, "hideSearchButton", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
property({ type: Boolean, attribute: true })
|
|
281
|
+
], SearchForm.prototype, "autofocus", void 0);
|
|
270
282
|
__decorate([
|
|
271
283
|
query('form')
|
|
272
284
|
], SearchForm.prototype, "form", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
query('input[autofocus]')
|
|
287
|
+
], SearchForm.prototype, "autofocused", void 0);
|
|
273
288
|
__decorate([
|
|
274
289
|
queryAll('input, select')
|
|
275
290
|
], SearchForm.prototype, "formFields", void 0);
|