@operato/app 8.0.0 → 9.0.0-beta.10
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 +245 -30
- package/dist/src/filter-renderer/filter-resource-select.d.ts +1 -1
- package/dist/src/filter-renderer/filter-resource-select.js +1 -1
- package/dist/src/filter-renderer/filter-resource-select.js.map +1 -1
- package/dist/src/filters-form/filter-resource-select.d.ts +1 -1
- package/dist/src/filters-form/filter-resource-select.js +1 -1
- package/dist/src/filters-form/filter-resource-select.js.map +1 -1
- package/dist/src/filters-form/ox-filter-resource-code.js +28 -2
- package/dist/src/filters-form/ox-filter-resource-code.js.map +1 -1
- package/dist/src/filters-form/ox-filter-resource-object.js +35 -3
- package/dist/src/filters-form/ox-filter-resource-object.js.map +1 -1
- package/dist/src/grist-editor/index.js +1 -1
- package/dist/src/grist-editor/index.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-id.js +10 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-id.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-object-legacy.js +15 -0
- package/dist/src/grist-editor/ox-grist-editor-resource-object-legacy.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-editor-resource-object.js +15 -0
- package/dist/src/grist-editor/ox-grist-editor-resource-object.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-renderer-crontab.js +1 -1
- package/dist/src/grist-editor/ox-grist-renderer-crontab.js.map +1 -1
- package/dist/src/grist-editor/ox-grist-renderer-resource-code.js +7 -2
- package/dist/src/grist-editor/ox-grist-renderer-resource-code.js.map +1 -1
- package/dist/src/grist-editor/ox-popup-code-input.js +34 -7
- package/dist/src/grist-editor/ox-popup-code-input.js.map +1 -1
- package/dist/src/grist-editor/ox-popup-privilege-input.js +28 -6
- package/dist/src/grist-editor/ox-popup-privilege-input.js.map +1 -1
- package/dist/src/input/ox-input-background-pattern.js +16 -2
- package/dist/src/input/ox-input-background-pattern.js.map +1 -1
- package/dist/src/input/ox-input-fill-style.js +49 -4
- package/dist/src/input/ox-input-fill-style.js.map +1 -1
- package/dist/src/input/ox-input-graphql.js +47 -6
- package/dist/src/input/ox-input-graphql.js.map +1 -1
- package/dist/src/property-editor/ox-property-editor-graphql.js +9 -4
- package/dist/src/property-editor/ox-property-editor-graphql.js.map +1 -1
- package/dist/src/property-editor/ox-property-editor-resource-object.js +9 -0
- package/dist/src/property-editor/ox-property-editor-resource-object.js.map +1 -1
- package/dist/src/selector/ox-selector-resource-id.js +63 -7
- package/dist/src/selector/ox-selector-resource-id.js.map +1 -1
- package/dist/src/selector/ox-selector-resource-object-legacy.js +129 -40
- package/dist/src/selector/ox-selector-resource-object-legacy.js.map +1 -1
- package/dist/src/selector/ox-selector-resource-object.js +139 -50
- package/dist/src/selector/ox-selector-resource-object.js.map +1 -1
- package/dist/stories/ox-selector-resource-object.stories.d.ts +1 -1
- package/dist/stories/ox-selector-resource-object.stories.js +1 -1
- package/dist/stories/ox-selector-resource-object.stories.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -22
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,51 @@
|
|
|
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
|
-
## [
|
|
6
|
+
## [9.0.0-beta.10](https://github.com/hatiolab/operato/compare/v9.0.0-beta.9...v9.0.0-beta.10) (2025-01-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :bug: Bug Fix
|
|
10
|
+
|
|
11
|
+
* tweak tsconfig.json ([3c424b1](https://github.com/hatiolab/operato/commit/3c424b18d046f95d5619076d113d49a4b4dc9bbb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [9.0.0-beta.7](https://github.com/hatiolab/operato/compare/v9.0.0-beta.6...v9.0.0-beta.7) (2025-01-20)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @operato/app
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [9.0.0-beta.6](https://github.com/hatiolab/operato/compare/v9.0.0-beta.5...v9.0.0-beta.6) (2025-01-20)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### :bug: Bug Fix
|
|
27
|
+
|
|
28
|
+
* esm module ([9642b97](https://github.com/hatiolab/operato/commit/9642b97650623d9ce71f6db0fd1995a2379205b5))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## [9.0.0-beta.5](https://github.com/hatiolab/operato/compare/v9.0.0-beta.4...v9.0.0-beta.5) (2025-01-20)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### :bug: Bug Fix
|
|
36
|
+
|
|
37
|
+
* esm module ([1319b00](https://github.com/hatiolab/operato/commit/1319b00d6955a514f63b3469fb514a28f84168a2))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## [9.0.0-beta.4](https://github.com/hatiolab/operato/compare/v9.0.0-beta.3...v9.0.0-beta.4) (2025-01-20)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### :bug: Bug Fix
|
|
45
|
+
|
|
46
|
+
* esm module ([0402232](https://github.com/hatiolab/operato/commit/04022327fa47eac64eaf3c56eeec55b9ace13e0e))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## [9.0.0-beta.0](https://github.com/hatiolab/operato/compare/v8.0.0-beta.11...v9.0.0-beta.0) (2025-01-13)
|
|
7
51
|
|
|
8
52
|
**Note:** Version bump only for package @operato/app
|
|
9
53
|
|
|
@@ -11,7 +55,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
55
|
|
|
12
56
|
|
|
13
57
|
|
|
14
|
-
|
|
58
|
+
## [8.0.0-beta.11](https://github.com/hatiolab/operato/compare/v8.0.0-beta.10...v8.0.0-beta.11) (2025-01-11)
|
|
15
59
|
|
|
16
60
|
**Note:** Version bump only for package @operato/app
|
|
17
61
|
|
|
@@ -19,19 +63,84 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
63
|
|
|
20
64
|
|
|
21
65
|
|
|
22
|
-
|
|
66
|
+
## [8.0.0-beta.10](https://github.com/hatiolab/operato/compare/v8.0.0-beta.9...v8.0.0-beta.10) (2025-01-11)
|
|
23
67
|
|
|
24
68
|
|
|
25
69
|
### :bug: Bug Fix
|
|
26
70
|
|
|
27
|
-
* fine tune for [@graphql-tools](https://github.com/graphql-tools) version ([
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
71
|
+
* fine tune for [@graphql-tools](https://github.com/graphql-tools) version ([61f5431](https://github.com/hatiolab/operato/commit/61f5431d354f0ea599cc97b1c55eda0773025d3d))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
## [8.0.0-beta.6](https://github.com/hatiolab/operato/compare/v8.0.0-beta.5...v8.0.0-beta.6) (2025-01-11)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### :bug: Bug Fix
|
|
79
|
+
|
|
80
|
+
* fine tune for [@graphql-tools](https://github.com/graphql-tools) version ([72c6663](https://github.com/hatiolab/operato/commit/72c66636767d7880cb2b020755ff4cb217d9731e))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
## [8.0.0-beta.5](https://github.com/hatiolab/operato/compare/v8.0.0-beta.4...v8.0.0-beta.5) (2025-01-10)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @operato/app
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## [8.0.0-beta.4](https://github.com/hatiolab/operato/compare/v8.0.0-beta.3...v8.0.0-beta.4) (2025-01-09)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @operato/app
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
## [8.0.0-beta.2](https://github.com/hatiolab/operato/compare/v8.0.0-beta.1...v8.0.0-beta.2) (2025-01-08)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### :bug: Bug Fix
|
|
104
|
+
|
|
105
|
+
* typo .npmignore ([d9c0c8c](https://github.com/hatiolab/operato/commit/d9c0c8c79abc688c3c2cfb6c37fcb689483a5977))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
## [8.0.0-beta.1](https://github.com/hatiolab/operato/compare/v8.0.0-beta.0...v8.0.0-beta.1) (2025-01-08)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### :bug: Bug Fix
|
|
113
|
+
|
|
114
|
+
* missing .npmignore ([be05985](https://github.com/hatiolab/operato/commit/be05985abfae4af53501f718dd52932099f7fbcb))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
## [8.0.0-beta.0](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.56...v8.0.0-beta.0) (2025-01-07)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @operato/app
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
## [8.0.0-alpha.56](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.55...v8.0.0-alpha.56) (2025-01-05)
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### :bug: Bug Fix
|
|
130
|
+
|
|
131
|
+
* typo ox-input-resource-id => ox-grist-editor-resource-id ([5f72582](https://github.com/hatiolab/operato/commit/5f725827c1fc99b6d9592487b4e87a865e8b36e0))
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
## [8.0.0-alpha.54](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.53...v8.0.0-alpha.54) (2024-12-09)
|
|
136
|
+
|
|
137
|
+
**Note:** Version bump only for package @operato/app
|
|
138
|
+
|
|
139
|
+
|
|
31
140
|
|
|
32
141
|
|
|
33
142
|
|
|
34
|
-
|
|
143
|
+
## [8.0.0-alpha.52](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.51...v8.0.0-alpha.52) (2024-12-03)
|
|
35
144
|
|
|
36
145
|
**Note:** Version bump only for package @operato/app
|
|
37
146
|
|
|
@@ -39,7 +148,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
39
148
|
|
|
40
149
|
|
|
41
150
|
|
|
42
|
-
|
|
151
|
+
## [8.0.0-alpha.51](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.50...v8.0.0-alpha.51) (2024-11-29)
|
|
43
152
|
|
|
44
153
|
**Note:** Version bump only for package @operato/app
|
|
45
154
|
|
|
@@ -47,7 +156,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
47
156
|
|
|
48
157
|
|
|
49
158
|
|
|
50
|
-
|
|
159
|
+
## [8.0.0-alpha.50](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.49...v8.0.0-alpha.50) (2024-11-16)
|
|
51
160
|
|
|
52
161
|
**Note:** Version bump only for package @operato/app
|
|
53
162
|
|
|
@@ -55,7 +164,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
55
164
|
|
|
56
165
|
|
|
57
166
|
|
|
58
|
-
|
|
167
|
+
## [8.0.0-alpha.49](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.48...v8.0.0-alpha.49) (2024-11-13)
|
|
59
168
|
|
|
60
169
|
**Note:** Version bump only for package @operato/app
|
|
61
170
|
|
|
@@ -63,7 +172,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
63
172
|
|
|
64
173
|
|
|
65
174
|
|
|
66
|
-
|
|
175
|
+
## [8.0.0-alpha.48](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.47...v8.0.0-alpha.48) (2024-11-13)
|
|
67
176
|
|
|
68
177
|
**Note:** Version bump only for package @operato/app
|
|
69
178
|
|
|
@@ -71,7 +180,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
71
180
|
|
|
72
181
|
|
|
73
182
|
|
|
74
|
-
|
|
183
|
+
## [8.0.0-alpha.46](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.45...v8.0.0-alpha.46) (2024-10-23)
|
|
75
184
|
|
|
76
185
|
**Note:** Version bump only for package @operato/app
|
|
77
186
|
|
|
@@ -79,7 +188,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
79
188
|
|
|
80
189
|
|
|
81
190
|
|
|
82
|
-
|
|
191
|
+
## [8.0.0-alpha.45](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.44...v8.0.0-alpha.45) (2024-10-23)
|
|
83
192
|
|
|
84
193
|
**Note:** Version bump only for package @operato/app
|
|
85
194
|
|
|
@@ -87,7 +196,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
87
196
|
|
|
88
197
|
|
|
89
198
|
|
|
90
|
-
|
|
199
|
+
## [8.0.0-alpha.44](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.43...v8.0.0-alpha.44) (2024-10-23)
|
|
91
200
|
|
|
92
201
|
**Note:** Version bump only for package @operato/app
|
|
93
202
|
|
|
@@ -95,56 +204,162 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
95
204
|
|
|
96
205
|
|
|
97
206
|
|
|
98
|
-
|
|
207
|
+
## [8.0.0-alpha.41](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.40...v8.0.0-alpha.41) (2024-10-21)
|
|
208
|
+
|
|
209
|
+
**Note:** Version bump only for package @operato/app
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
## [8.0.0-alpha.37](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.36...v8.0.0-alpha.37) (2024-10-20)
|
|
99
216
|
|
|
100
217
|
|
|
101
218
|
### :bug: Bug Fix
|
|
102
219
|
|
|
103
|
-
*
|
|
104
|
-
|
|
105
|
-
|
|
220
|
+
* update dev-dependencies version ([d6fe342](https://github.com/hatiolab/operato/commit/d6fe342de738c6bad3528550a862b5a1d2573161))
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
## [8.0.0-alpha.34](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.33...v8.0.0-alpha.34) (2024-10-15)
|
|
225
|
+
|
|
226
|
+
**Note:** Version bump only for package @operato/app
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
## [8.0.0-alpha.33](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.32...v8.0.0-alpha.33) (2024-10-14)
|
|
233
|
+
|
|
234
|
+
**Note:** Version bump only for package @operato/app
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
## [8.0.0-alpha.30](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.29...v8.0.0-alpha.30) (2024-10-11)
|
|
241
|
+
|
|
242
|
+
**Note:** Version bump only for package @operato/app
|
|
106
243
|
|
|
107
244
|
|
|
108
245
|
|
|
109
|
-
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
## [8.0.0-alpha.29](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.28...v8.0.0-alpha.29) (2024-10-10)
|
|
110
249
|
|
|
111
250
|
**Note:** Version bump only for package @operato/app
|
|
112
251
|
|
|
113
|
-
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
## [8.0.0-alpha.27](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.26...v8.0.0-alpha.27) (2024-10-06)
|
|
114
257
|
|
|
115
258
|
**Note:** Version bump only for package @operato/app
|
|
116
259
|
|
|
117
|
-
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
## [8.0.0-alpha.26](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.25...v8.0.0-alpha.26) (2024-10-06)
|
|
118
265
|
|
|
119
266
|
**Note:** Version bump only for package @operato/app
|
|
120
267
|
|
|
121
|
-
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
## [8.0.0-alpha.21](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.20...v8.0.0-alpha.21) (2024-10-05)
|
|
122
273
|
|
|
123
274
|
**Note:** Version bump only for package @operato/app
|
|
124
275
|
|
|
125
|
-
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
## [8.0.0-alpha.20](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.19...v8.0.0-alpha.20) (2024-10-04)
|
|
126
281
|
|
|
127
282
|
**Note:** Version bump only for package @operato/app
|
|
128
283
|
|
|
129
|
-
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
## [8.0.0-alpha.19](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.18...v8.0.0-alpha.19) (2024-10-04)
|
|
289
|
+
|
|
290
|
+
**Note:** Version bump only for package @operato/app
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
## [8.0.0-alpha.16](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.15...v8.0.0-alpha.16) (2024-10-03)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### :bug: Bug Fix
|
|
300
|
+
|
|
301
|
+
* ox-filter-resource-object.ts ([2ff7200](https://github.com/hatiolab/operato/commit/2ff7200943eb23bc4c5dcce9f6811b9592a0b1c1))
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
## [8.0.0-alpha.15](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.14...v8.0.0-alpha.15) (2024-10-03)
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
### :bug: Bug Fix
|
|
309
|
+
|
|
310
|
+
* filter-resource-code and filter-resource-object ([c3c0035](https://github.com/hatiolab/operato/commit/c3c003540f468693358b70807d23f33c22762cc3))
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
## [8.0.0-alpha.14](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.13...v8.0.0-alpha.14) (2024-10-02)
|
|
130
315
|
|
|
131
316
|
### :bug: Bug Fix
|
|
132
317
|
|
|
133
|
-
-
|
|
318
|
+
- ox-filter-resource-code ([c6ef056](https://github.com/hatiolab/operato/commit/c6ef0567493130ae43b0634ea2cd54ef1028b86b))
|
|
319
|
+
|
|
320
|
+
## [8.0.0-alpha.11](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.10...v8.0.0-alpha.11) (2024-09-21)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package @operato/app
|
|
323
|
+
|
|
324
|
+
## [8.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.9...v8.0.0-alpha.10) (2024-09-18)
|
|
325
|
+
|
|
326
|
+
**Note:** Version bump only for package @operato/app
|
|
327
|
+
|
|
328
|
+
## [8.0.0-alpha.9](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.8...v8.0.0-alpha.9) (2024-09-15)
|
|
329
|
+
|
|
330
|
+
### :bug: Bug Fix
|
|
331
|
+
|
|
332
|
+
- datetime property 추가 ([98b7d60](https://github.com/hatiolab/operato/commit/98b7d606e41c44d6344f1ca79fcd823a6234b9b0))
|
|
333
|
+
|
|
334
|
+
## [8.0.0-alpha.8](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.7...v8.0.0-alpha.8) (2024-09-15)
|
|
335
|
+
|
|
336
|
+
**Note:** Version bump only for package @operato/app
|
|
337
|
+
|
|
338
|
+
## [8.0.0-alpha.6](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.5...v8.0.0-alpha.6) (2024-09-14)
|
|
339
|
+
|
|
340
|
+
**Note:** Version bump only for package @operato/app
|
|
341
|
+
|
|
342
|
+
## [8.0.0-alpha.5](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.4...v8.0.0-alpha.5) (2024-09-12)
|
|
343
|
+
|
|
344
|
+
**Note:** Version bump only for package @operato/app
|
|
345
|
+
|
|
346
|
+
## [8.0.0-alpha.4](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.3...v8.0.0-alpha.4) (2024-09-07)
|
|
347
|
+
|
|
348
|
+
**Note:** Version bump only for package @operato/app
|
|
134
349
|
|
|
135
|
-
|
|
350
|
+
## [8.0.0-alpha.3](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.2...v8.0.0-alpha.3) (2024-09-06)
|
|
136
351
|
|
|
137
352
|
**Note:** Version bump only for package @operato/app
|
|
138
353
|
|
|
139
|
-
|
|
354
|
+
## [8.0.0-alpha.2](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.1...v8.0.0-alpha.2) (2024-09-05)
|
|
140
355
|
|
|
141
356
|
**Note:** Version bump only for package @operato/app
|
|
142
357
|
|
|
143
|
-
|
|
358
|
+
## [8.0.0-alpha.1](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.0...v8.0.0-alpha.1) (2024-09-04)
|
|
144
359
|
|
|
145
360
|
**Note:** Version bump only for package @operato/app
|
|
146
361
|
|
|
147
|
-
|
|
362
|
+
## [8.0.0-alpha.0](https://github.com/hatiolab/operato/compare/v7.1.1...v8.0.0-alpha.0) (2024-09-01)
|
|
148
363
|
|
|
149
364
|
**Note:** Version bump only for package @operato/app
|
|
150
365
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-resource-select.js","sourceRoot":"","sources":["../../../src/filter-renderer/filter-resource-select.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"filter-resource-select.js","sourceRoot":"","sources":["../../../src/filter-renderer/filter-resource-select.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AACtC,OAA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E,KAAK,EAAE,eAAe,CAAC,CAAA;gBACtD,CAAC;;WAEJ;gBACH,CAAC,CAAC,IAAI,CAAA,EAAE,CAAA;AAChB,CAAC,CAAA","sourcesContent":["import '@operato/input/ox-checkbox.js'\nimport '../selector/ox-selector-resource-id.js'\n\nimport { html } from 'lit-html'\n\nimport { ColumnConfig, FilterConfigObject, FilterSelectRenderer } from '@operato/data-grist'\nimport { i18next } from '@operato/i18n'\nimport { openPopup } from '@operato/layout'\n\ntype SelectedCallback = (value: { id: string; name: string; description: string }) => void\n\nfunction openResourceSelector(column: ColumnConfig, value: any, confirmCallback: SelectedCallback) {\n const { queryName, select, list, basicArgs, valueField = 'id', title } = column.record.options\n\n var actualValue\n if (typeof valueField === 'function') {\n actualValue = valueField(value)\n } else {\n actualValue = value?.[valueField]\n }\n\n var template = html`\n <ox-selector-resource-object\n .value=${actualValue}\n .confirmCallback=${confirmCallback}\n .queryName=${queryName}\n .columns=${select}\n .list=${list}\n .basicArgs=${basicArgs}\n .valueField=${valueField}\n ></ox-selector-resource-object>\n `\n\n const popup = openPopup(template, {\n backdrop: true,\n size: 'large',\n search: {\n autofocus: true,\n placeholder: title || i18next.t('title.select_item'),\n handler: (instance: any, value: any) => {\n /* instance: template instance */\n instance.searchText(value)\n }\n },\n filter: {\n handler: (instance: any) => {\n /* instance: template instance */\n instance.toggleFilter()\n }\n }\n })\n}\n\nexport const FilterResourceSelect: FilterSelectRenderer = (column, value, owner: any) => {\n const filter = column.filter as FilterConfigObject\n const { operator = 'like' } = filter\n var { idField = 'id', nameField = 'name', descriptionField = 'description' } = column.record.options || {}\n const hideValue = value ? value[idField] : ''\n const text = value ? value[nameField] : ''\n\n return operator === 'like'\n ? html` <input\n type=\"text\"\n name=${column.name}\n .value=${text}\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: column.name,\n operator,\n value: input.value\n }\n })\n )\n }}\n />`\n : operator == 'in'\n ? html``\n : operator === 'eq'\n ? html`\n <input name=\"${column.name}\" .value=${hideValue} type=\"text\" hidden />\n <input\n type=\"text\"\n name=\"${column.name}_disp\"\n .value=${text}\n readonly\n @click=${(e: Event) => {\n e.stopPropagation()\n\n const input = e.target as HTMLInputElement\n\n const confirmCallback = (selected?: { [field: string]: any }) => {\n let disp = selected ? selected[idField] : ''\n\n if (selected && nameField) {\n disp = selected[nameField]\n }\n\n input.value = disp\n\n let codeInput =\n owner.tagName.toLowerCase() == 'ox-grid-header'\n ? owner.renderRoot.querySelector(`[name=\"${column.name}\"]`)\n : owner.renderRoot.querySelector(`form [name=\"${column.name}\"]`)\n\n const objectValue = selected ? selected[idField] : ''\n codeInput.value = objectValue\n\n input.dispatchEvent(new Event('change', { bubbles: true }))\n\n owner.dispatchEvent(\n new CustomEvent('filter-change', {\n bubbles: true,\n composed: true,\n detail: {\n name: column.name,\n operator,\n value: objectValue\n }\n })\n )\n }\n\n openResourceSelector(column, value, confirmCallback)\n }}\n />\n `\n : html``\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@operato/input/ox-checkbox.js';
|
|
2
|
-
import '../selector/ox-selector-resource-object';
|
|
2
|
+
import '../selector/ox-selector-resource-object.js';
|
|
3
3
|
import { html } from 'lit-html';
|
|
4
4
|
import { i18next } from '@operato/i18n';
|
|
5
5
|
import { openPopup } from '@operato/layout';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-resource-select.js","sourceRoot":"","sources":["../../../src/filters-form/filter-resource-select.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"filter-resource-select.js","sourceRoot":"","sources":["../../../src/filters-form/filter-resource-select.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAA;AACtC,OAAO,4CAA4C,CAAA;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AA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,CAAC,QAAmC,EAAE,EAAE;wBAC9D,IAAI,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;wBAE5C,IAAI,QAAQ,IAAI,SAAS,EAAE,CAAC;4BAC1B,IAAI,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAA;wBAC5B,CAAC;wBACD,KAAK,CAAC,KAAK,GAAG,IAAI,CAAA;wBAElB,MAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;wBAC/C,SAAS,CAAC,KAAK,GAAG,KAAK,CAAA;wBAEvB,SAAS,CAAC,aAAa,CACrB,IAAI,KAAK,CAAC,QAAQ,EAAE;4BAClB,OAAO,EAAE,IAAI;4BACb,QAAQ,EAAE,IAAI;yBACf,CAAC,CACH,CAAA;wBAED,KAAK,CAAC,aAAa,CACjB,IAAI,WAAW,CAAC,eAAe,EAAE;4BAC/B,OAAO,EAAE,IAAI;4BACb,QAAQ,EAAE,IAAI;4BACd,MAAM,EAAE;gCACN,IAAI,EAAE,IAAI;gCACV,QAAQ;gCACR,KAAK;6BACN;yBACF,CAAC,CACH,CAAA;oBACH,CAAC,CAAA;oBAED,oBAAoB,CAAC,MAAM,EAAE,SAAS,CAAC,KAAK,EAAE,eAAe,CAAC,CAAA;gBAChE,CAAC;;WAEJ;gBACH,CAAC,CAAC,IAAI,CAAA,EAAE,CAAA;AAChB,CAAC,CAAA","sourcesContent":["import '@operato/input/ox-checkbox.js'\nimport '../selector/ox-selector-resource-object.js'\n\nimport { html } from 'lit-html'\n\nimport { FilterConfig, FilterSelectRenderer } from '@operato/form'\nimport { i18next } from '@operato/i18n'\nimport { openPopup } from '@operato/layout'\nimport { GristRecord } from '@operato/data-grist'\n\ntype SelectedCallback = (value?: Partial<GristRecord>) => void\n\nfunction openResourceSelector(filter: FilterConfig, value: any, confirmCallback: SelectedCallback) {\n const { queryName, select, list, basicArgs, valueField = 'id', title } = filter.options || ({} as any)\n\n var template = html`\n <ox-selector-resource-object\n .value=${value}\n .confirmCallback=${confirmCallback}\n .queryName=${queryName}\n .columns=${select}\n .list=${list}\n .basicArgs=${basicArgs}\n .valueField=${valueField}\n ></ox-selector-resource-object>\n `\n\n const popup = openPopup(template, {\n backdrop: true,\n size: 'large',\n search: {\n autofocus: true,\n placeholder: title || i18next.t('title.select_item'),\n handler: (instance: any, value: any) => {\n /* instance: template instance */\n instance.searchText(value)\n }\n },\n filter: {\n handler: (instance: any) => {\n /* instance: template instance */\n instance.toggleFilter()\n }\n }\n })\n}\n\nexport const FilterResourceSelect: FilterSelectRenderer = (filter, value, owner: any) => {\n const { name, operator = 'like' } = filter\n var { idField = 'id', nameField = 'name', descriptionField = 'description' } = filter.options || ({} as any)\n const hideValue = value ? value[idField] : ''\n const text = value ? value[nameField] : ''\n\n return operator === 'like'\n ? html` <input\n type=\"text\"\n name=${name}\n .value=${text}\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,\n value: input.value\n }\n })\n )\n }}\n />`\n : operator == 'in'\n ? html``\n : operator === 'eq'\n ? html`\n <input name=\"${name}\" .value=${hideValue} type=\"text\" hidden />\n <input\n type=\"text\"\n name=\"${name}_disp\"\n .value=${text}\n readonly\n @change=${() => false}\n @click=${(e: Event) => {\n e.stopPropagation()\n\n const input = e.target as HTMLInputElement\n const codeInput =\n owner.tagName.toLowerCase() == 'ox-grid-header'\n ? owner.renderRoot.querySelector(`[name=\"${name}\"]`)\n : owner.renderRoot.querySelector(`form [name=\"${name}\"]`)\n\n const confirmCallback = (selected?: { [field: string]: any }) => {\n let disp = selected ? selected[idField] : ''\n\n if (selected && nameField) {\n disp = selected[nameField]\n }\n input.value = disp\n\n const value = selected ? selected[idField] : ''\n codeInput.value = value\n\n codeInput.dispatchEvent(\n new Event('change', {\n bubbles: true,\n composed: true\n })\n )\n\n owner.dispatchEvent(\n new CustomEvent('filter-change', {\n bubbles: true,\n composed: true,\n detail: {\n name: name,\n operator,\n value\n }\n })\n )\n }\n\n openResourceSelector(filter, codeInput.value, confirmCallback)\n }}\n />\n `\n : html``\n}\n"]}
|
|
@@ -18,6 +18,27 @@ const FETCH_COMMON_CODE_GQL = (codeName) => gql `
|
|
|
18
18
|
}
|
|
19
19
|
`;
|
|
20
20
|
let OxFilterResourceCode = class OxFilterResourceCode extends OxFormField {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
Object.defineProperty(this, "column", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: void 0
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(this, "value", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true,
|
|
33
|
+
value: undefined
|
|
34
|
+
});
|
|
35
|
+
Object.defineProperty(this, "codes", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true,
|
|
38
|
+
writable: true,
|
|
39
|
+
value: void 0
|
|
40
|
+
});
|
|
41
|
+
}
|
|
21
42
|
render() {
|
|
22
43
|
var _a, _b;
|
|
23
44
|
const { name, filter } = this.column;
|
|
@@ -112,11 +133,16 @@ let OxFilterResourceCode = class OxFilterResourceCode extends OxFormField {
|
|
|
112
133
|
this.fetchCodes();
|
|
113
134
|
}
|
|
114
135
|
};
|
|
115
|
-
OxFilterResourceCode
|
|
136
|
+
Object.defineProperty(OxFilterResourceCode, "styles", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
configurable: true,
|
|
139
|
+
writable: true,
|
|
140
|
+
value: css `
|
|
116
141
|
:host {
|
|
117
142
|
min-width: 100px;
|
|
118
143
|
}
|
|
119
|
-
|
|
144
|
+
`
|
|
145
|
+
});
|
|
120
146
|
__decorate([
|
|
121
147
|
property({ type: Object })
|
|
122
148
|
], OxFilterResourceCode.prototype, "column", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ox-filter-resource-code.js","sourceRoot":"","sources":["../../../src/filters-form/ox-filter-resource-code.ts"],"names":[],"mappings":";AAAA,OAAO,6BAA6B,CAAA;AAEpC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQ5C,MAAM,qBAAqB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,GAAG,CAAA;;sBAEjC,QAAQ;;;;;;;;CAQ7B,CAAA;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"ox-filter-resource-code.js","sourceRoot":"","sources":["../../../src/filters-form/ox-filter-resource-code.ts"],"names":[],"mappings":";AAAA,OAAO,6BAA6B,CAAA;AAEpC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAQ5C,MAAM,qBAAqB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,GA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,MAAM,EAAE,CAAC;oDAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAA2B;AAE7C;IAAR,KAAK,EAAE;mDAA2B;AAVxB,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CA2HhC","sourcesContent":["import '@operato/input/ox-select.js'\n\nimport gql from 'graphql-tag'\nimport { css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\n\nimport { i18next } from '@operato/i18n'\nimport { FilterConfigObject } from '@operato/data-grist'\nimport { client, gqlContext } from '@operato/graphql'\nimport { OxFormField } from '@operato/input'\n\ntype CommonCodeDetail = {\n name: string\n description: string\n rank: number\n}\n\nconst FETCH_COMMON_CODE_GQL = (codeName: string) => gql`\n{\n commonCode(name: \"${codeName}\") {\n details {\n name\n description\n rank\n }\n }\n}\n`\n\n@customElement('ox-filter-resource-code')\nexport class OxFilterResourceCode extends OxFormField {\n static styles = css`\n :host {\n min-width: 100px;\n }\n `\n\n @property({ type: Object }) column: any\n @property({ type: String }) value?: string = undefined\n\n @state() codes?: CommonCodeDetail[]\n\n render() {\n const { name, filter } = this.column\n const operator = (filter as FilterConfigObject).operator\n const { selectDispOpt = 'code-name' } = this.column.record || {}\n\n if (!this.codes) {\n return html`<p>Loading...</p>`\n }\n\n return operator === 'in'\n ? html`\n <ox-select\n .value=${this.value}\n @change=${(e: CustomEvent) => {\n let val = e.detail\n this.value = val?.length > 0 ? val : undefined\n\n this?.dispatchEvent(\n new CustomEvent('change', {\n detail: {\n name,\n operator,\n value: this.value\n }\n })\n )\n }}\n >\n <ox-popup-list multiple attr-selected=\"checked\" with-search align-left>\n <ox-checkbox\n checkAll\n @click=${(e: any) => {\n const checked = e.target.checked\n const val = checked ? this.codes!.map((code: CommonCodeDetail) => code.name) : []\n\n e.target?.dispatchEvent(new CustomEvent('select', { bubbles: true, detail: val }))\n }}\n >${i18next.t('label.all')}</ox-checkbox\n >\n ${this.codes\n ?.filter((code: CommonCodeDetail) => !!code.name)\n .map(\n (code: CommonCodeDetail) => html`\n <ox-checkbox\n option\n value=${code.name}\n @change=${(e: any) => {\n const parent = e.target.parentElement\n const checkCnt = e.target.checked ? 1 : -1\n const checkedLen = parent.querySelectorAll('ox-checkbox[option][checked]').length + checkCnt\n\n parent.querySelector('ox-checkbox[checkAll]').checked =\n this.codes!.filter((code: CommonCodeDetail) => !!code.name).length === checkedLen\n }}\n >${selectDispOpt.replace('name', code.description).replace('code', code.name)}</ox-checkbox\n >\n `\n )}\n </ox-popup-list>\n </ox-select>\n `\n : html`\n <ox-select\n .value=${this.value}\n @change=${(e: CustomEvent) => {\n this.value = e.detail\n this.dispatchEvent(\n new CustomEvent('change', {\n detail: {\n name,\n operator,\n value: this.value\n }\n })\n )\n }}\n >\n <ox-popup-list with-search>\n <div option value=\"\"> </div>\n ${this.codes?.map(\n (code: CommonCodeDetail) => html`\n <div option value=${code.name}>\n ${selectDispOpt.replace('name', code.description).replace('code', code.name)}\n </div>\n `\n )}\n </ox-popup-list>\n </ox-select>\n `\n }\n\n async fetchCodes() {\n const { codeName } = this.column.record || {}\n\n if (codeName) {\n const response = await client.query({\n query: FETCH_COMMON_CODE_GQL(codeName),\n context: gqlContext()\n })\n\n this.codes = response?.data?.commonCode?.details || []\n\n this.requestUpdate()\n }\n }\n\n connectedCallback() {\n super.connectedCallback()\n\n this.fetchCodes()\n }\n}\n"]}
|
|
@@ -6,6 +6,33 @@ import { i18next } from '@operato/i18n';
|
|
|
6
6
|
import { openPopup } from '@operato/layout';
|
|
7
7
|
import { OxFormField } from '@operato/input';
|
|
8
8
|
let OxFilterResourceObject = class OxFilterResourceObject extends OxFormField {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
Object.defineProperty(this, "column", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
configurable: true,
|
|
14
|
+
writable: true,
|
|
15
|
+
value: void 0
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(this, "value", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
configurable: true,
|
|
20
|
+
writable: true,
|
|
21
|
+
value: undefined
|
|
22
|
+
});
|
|
23
|
+
Object.defineProperty(this, "resourceObject", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true,
|
|
27
|
+
value: void 0
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(this, "popup", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
configurable: true,
|
|
32
|
+
writable: true,
|
|
33
|
+
value: void 0
|
|
34
|
+
});
|
|
35
|
+
}
|
|
9
36
|
render() {
|
|
10
37
|
var { nameField = 'name', descriptionField = 'description' } = this.column.record.options || {};
|
|
11
38
|
var value = this.resourceObject || {};
|
|
@@ -129,8 +156,12 @@ let OxFilterResourceObject = class OxFilterResourceObject extends OxFormField {
|
|
|
129
156
|
});
|
|
130
157
|
}
|
|
131
158
|
};
|
|
132
|
-
OxFilterResourceObject
|
|
133
|
-
|
|
159
|
+
Object.defineProperty(OxFilterResourceObject, "styles", {
|
|
160
|
+
enumerable: true,
|
|
161
|
+
configurable: true,
|
|
162
|
+
writable: true,
|
|
163
|
+
value: [
|
|
164
|
+
css `
|
|
134
165
|
:host {
|
|
135
166
|
display: block;
|
|
136
167
|
position: relative;
|
|
@@ -178,7 +209,8 @@ OxFilterResourceObject.styles = [
|
|
|
178
209
|
color: var(--md-sys-color-on-primary-container);
|
|
179
210
|
}
|
|
180
211
|
`
|
|
181
|
-
]
|
|
212
|
+
]
|
|
213
|
+
});
|
|
182
214
|
__decorate([
|
|
183
215
|
property({ type: Object })
|
|
184
216
|
], OxFilterResourceObject.prototype, "column", void 0);
|