@servicetitan/table 21.7.3 → 22.1.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md ADDED
@@ -0,0 +1,566 @@
1
+ # v22.1.0 (Mon Jun 27 2022)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, Anton Maksimenko ([@AntonMaksimenko](https://github.com/AntonMaksimenko)), for all your work!
6
+
7
+ #### 🚀 Enhancement
8
+
9
+ - Table: allow user to select table row by clicking on any spot within cell with selection [#113](https://github.com/servicetitan/anvil-uikit-contrib/pull/113) ([@AntonMaksimenko](https://github.com/AntonMaksimenko))
10
+
11
+ #### Authors: 1
12
+
13
+ - Anton Maksimenko ([@AntonMaksimenko](https://github.com/AntonMaksimenko))
14
+
15
+ ---
16
+
17
+ # v22.0.1 (Tue Jun 21 2022)
18
+
19
+ #### 🐛 Bug Fix
20
+
21
+ - FAR-823: Migrating uikit components [#106](https://github.com/servicetitan/anvil-uikit-contrib/pull/106) ([@rgdelato](https://github.com/rgdelato) github-actions@github.com)
22
+
23
+ #### Authors: 2
24
+
25
+ - github-actions (github-actions@github.com)
26
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
27
+
28
+ ---
29
+
30
+ # v21.6.0 (Mon May 09 2022)
31
+
32
+ ### Release Notes
33
+
34
+ #### Bump @servicetitan packages from 11.5.1 to 11.6.0 ([#1439](https://github.com/servicetitan/uikit/pull/1439))
35
+
36
+ #### Font Update: Bold Sofia to use the real bold instead of medium ([#2430](https://github.com/servicetitan/anvil/pull/2430))
37
+
38
+ To solve inconsistency/mismatch of weight definition on web implementation, using `font-weight: bold;` use to default to `600` which is not the norm and has bug report about it from devs, we are changing `bold` to be true bold which is `700`. From UX standpoint this is also solving visual hierarchy issue when Sofia Pro Medium and Nunito Sans Regular were not distinctive enough when they are similar in size.
39
+
40
+ More info here: https://www.figma.com/file/LZ56wcBF6xF2HpWx1MiNuq/Font-style-update?node-id=217%3A126
41
+
42
+ ---
43
+
44
+ #### 🚀 Enhancement
45
+
46
+ - Time Picker to support 24-hour format [#2434](https://github.com/servicetitan/anvil/pull/2434) ([@yakunins](https://github.com/yakunins))
47
+ - Adds Drag and Drop Icon [#2443](https://github.com/servicetitan/anvil/pull/2443) ([@jpex](https://github.com/jpex))
48
+ - InlineEdit: Show truncated items as the title for the `+X` tag [#2439](https://github.com/servicetitan/anvil/pull/2439) ([@tounsoo](https://github.com/tounsoo))
49
+ - AnvilSelect Drillin Footer needs custom className [#2433](https://github.com/servicetitan/anvil/pull/2433) ([@blalond](https://github.com/blalond))
50
+
51
+ #### 💅 Visual Update
52
+
53
+ - Font Update: Bold Sofia to use the real bold instead of medium [#2430](https://github.com/servicetitan/anvil/pull/2430) ([@tounsoo](https://github.com/tounsoo))
54
+ - Filter Button: fix filter button wrapping weird in small space [#2436](https://github.com/servicetitan/anvil/pull/2436) ([@tounsoo](https://github.com/tounsoo))
55
+ - ActionMenu: icon color to work with theme variables [#2435](https://github.com/servicetitan/anvil/pull/2435) ([@tounsoo](https://github.com/tounsoo))
56
+ - Tag: Update subtle default text and icon color to work with dark mode [#2425](https://github.com/servicetitan/anvil/pull/2425) ([@tounsoo](https://github.com/tounsoo))
57
+
58
+ #### 📝 Documentation
59
+
60
+ - Table: showcase right-aligned column [#2441](https://github.com/servicetitan/anvil/pull/2441) ([@yakunins](https://github.com/yakunins))
61
+ - Gatsby: infinite resizing loop at Filter Button All Filter example [#2438](https://github.com/servicetitan/anvil/pull/2438) ([@yakunins](https://github.com/yakunins))
62
+ - Some examples in docs to be properly rendered in Codesandbox [#2429](https://github.com/servicetitan/anvil/pull/2429) ([@yakunins](https://github.com/yakunins))
63
+ - Gatsby: update theming information [#2428](https://github.com/servicetitan/anvil/pull/2428) ([@tounsoo](https://github.com/tounsoo))
64
+
65
+ #### 🐛 Bug Fix
66
+
67
+ - DS-877: Updating onChange return values for "Select All/None" [#2332](https://github.com/servicetitan/anvil/pull/2332) ([@rgdelato](https://github.com/rgdelato))
68
+
69
+ #### 🏠 Internal
70
+
71
+ - Updating .nvmrc file to Node 16 [#2437](https://github.com/servicetitan/anvil/pull/2437) ([@rgdelato](https://github.com/rgdelato))
72
+ - DS-619: Adding kendo license file to root directory [#2440](https://github.com/servicetitan/anvil/pull/2440) ([@rgdelato](https://github.com/rgdelato))
73
+ - DS-995: Removing react-window dep from design-system package [#2432](https://github.com/servicetitan/anvil/pull/2432) ([@rgdelato](https://github.com/rgdelato))
74
+ - ButtonGroup: ThemeProvider compatibility [#2366](https://github.com/servicetitan/anvil/pull/2366) ([@tounsoo](https://github.com/tounsoo))
75
+ - Cleaner theme var method [#2431](https://github.com/servicetitan/anvil/pull/2431) ([@tounsoo](https://github.com/tounsoo) [@rgdelato](https://github.com/rgdelato))
76
+
77
+ #### ⚠️ Pushed to `master`
78
+
79
+ - Merge branch 'master' of github.com:servicetitan/anvil ([@tounsoo](https://github.com/tounsoo))
80
+
81
+ #### 📝 Dependencies
82
+
83
+ - Bump moment from 2.29.1 to 2.29.2 in /packages/design-system [#2426](https://github.com/servicetitan/anvil/pull/2426) ([@dependabot[bot]](https://github.com/dependabot[bot]))
84
+
85
+ #### Authors: 6
86
+
87
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
88
+ - Ben Ho ([@tounsoo](https://github.com/tounsoo))
89
+ - Brian LaLonde ([@blalond](https://github.com/blalond))
90
+ - James C ([@jpex](https://github.com/jpex))
91
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
92
+ - Sergey Yakunin ([@yakunins](https://github.com/yakunins))
93
+
94
+ </blockquote>
95
+ </details>
96
+
97
+ <em><code>servicetitan/anvil</code>'s top-level, root <a href="https://github.com/servicetitan/anvil/blob/v11.6.0/CHANGELOG.md">CHANGELOG.md</a></em>
98
+
99
+ ---
100
+
101
+ #### 🔩 Dependency Updates
102
+
103
+ - Bump @servicetitan packages from 11.5.1 to 11.6.0 [#1439](https://github.com/servicetitan/uikit/pull/1439) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
104
+ - Bump mobx-react from 7.3.0 to 7.4.0 [#1438](https://github.com/servicetitan/uikit/pull/1438) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
105
+
106
+ #### Authors: 2
107
+
108
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
109
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
110
+
111
+ ---
112
+
113
+ # v21.5.0 (Thu Apr 28 2022)
114
+
115
+ #### 🔩 Dependency Updates
116
+
117
+ - Bump moment from 2.29.2 to 2.29.3 [#1411](https://github.com/servicetitan/uikit/pull/1411) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
118
+ - Bump @servicetitan packages from 11.5.0 to 11.5.1 [#1410](https://github.com/servicetitan/uikit/pull/1410) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
119
+
120
+ #### Authors: 2
121
+
122
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
123
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
124
+
125
+ ---
126
+
127
+ # v21.4.1 (Wed Apr 06 2022)
128
+
129
+ #### 🔩 Dependency Updates
130
+
131
+ - Bump @servicetitan packages from 11.4.2 to 11.5.0 [#1396](https://github.com/servicetitan/uikit/pull/1396) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
132
+ - Bump mobx-utils from 6.0.4 to 6.0.5 [#1390](https://github.com/servicetitan/uikit/pull/1390) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
133
+ - Bump moment from 2.29.1 to 2.29.2 [#1392](https://github.com/servicetitan/uikit/pull/1392) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
134
+
135
+ #### Authors: 2
136
+
137
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
138
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
139
+
140
+ ---
141
+
142
+ # v21.3.0 (Mon Mar 21 2022)
143
+
144
+ #### 🔩 Dependency Updates
145
+
146
+ - Bump @servicetitan packages from 11.4.1 to 11.4.2 [#1371](https://github.com/servicetitan/uikit/pull/1371) ([@rgdelato](https://github.com/rgdelato))
147
+
148
+ #### Authors: 1
149
+
150
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
151
+
152
+ ---
153
+
154
+ # v21.2.0 (Thu Mar 17 2022)
155
+
156
+ #### 🔩 Dependency Updates
157
+
158
+ - Bump mobx from 6.4.2 to 6.5.0 [#1369](https://github.com/servicetitan/uikit/pull/1369) ([@rgdelato](https://github.com/rgdelato))
159
+
160
+ #### Authors: 1
161
+
162
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
163
+
164
+ ---
165
+
166
+ # v21.0.0 (Tue Mar 15 2022)
167
+
168
+ #### 🐛 Bug Fix
169
+
170
+ - Notifications: fix compatibility with anvil 11.4.0 [#1361](https://github.com/servicetitan/uikit/pull/1361) ([@kanoshin](https://github.com/kanoshin))
171
+
172
+ #### Authors: 1
173
+
174
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
175
+
176
+ ---
177
+
178
+ # v20.2.0 (Tue Mar 01 2022)
179
+
180
+ #### 🔩 Dependency Updates
181
+
182
+ - Bump mobx from 6.4.1 to 6.4.2 [#1341](https://github.com/servicetitan/uikit/pull/1341) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
183
+ - Bump mobx from 6.3.13 to 6.4.1 [#1332](https://github.com/servicetitan/uikit/pull/1332) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
184
+ - Bump mobx-react from 7.2.1 to 7.3.0 [#1331](https://github.com/servicetitan/uikit/pull/1331) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
185
+ - Bump @servicetitan packages from 11.3.0 to 11.3.1 [#1317](https://github.com/servicetitan/uikit/pull/1317) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
186
+ - Bump @servicetitan packages from 11.2.0 to 11.3.0 [#1315](https://github.com/servicetitan/uikit/pull/1315) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
187
+ - Bump memoize-one from 5.2.1 to 6.0.0 [#1294](https://github.com/servicetitan/uikit/pull/1294) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
188
+
189
+ #### Authors: 2
190
+
191
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
192
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
193
+
194
+ ---
195
+
196
+ # v20.1.0 (Thu Jan 27 2022)
197
+
198
+ :tada: This release contains work from a new contributor! :tada:
199
+
200
+ Thank you, ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity)), for all your work!
201
+
202
+ #### 🚀 Enhancement
203
+
204
+ - Bump @servicetitan packages from 11.1.1 to 11.2.0 [#1285](https://github.com/servicetitan/uikit/pull/1285) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
205
+
206
+ #### 🐛 Bug Fix
207
+
208
+ - Bump mobx from 6.3.12 to 6.3.13 [#1284](https://github.com/servicetitan/uikit/pull/1284) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
209
+ - Bump @servicetitan packages from 11.1.0 to 11.1.1 [#1264](https://github.com/servicetitan/uikit/pull/1264) ([@rgdelato](https://github.com/rgdelato) [@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
210
+
211
+ #### ⚠️ Pushed to `master`
212
+
213
+ - Merge branch 'fp/FAR-893' into master ([@rgdelato](https://github.com/rgdelato))
214
+
215
+ #### Authors: 2
216
+
217
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
218
+ - ServiceTitan TeamCity ([@ServiceTitanTeamCity](https://github.com/ServiceTitanTeamCity))
219
+
220
+ ---
221
+
222
+ # v20.0.0 (Thu Jan 13 2022)
223
+
224
+ #### 💥 Breaking Change
225
+
226
+ - Startup: chunking support for the web components [#1184](https://github.com/servicetitan/uikit/pull/1184) ([@xarety](https://github.com/xarety))
227
+
228
+ #### 🔩 Dependency Updates
229
+
230
+ - Bump mobx from 6.3.10 to 6.3.12 [#1237](https://github.com/servicetitan/uikit/pull/1237) ([@dependabot[bot]](https://github.com/dependabot[bot]))
231
+
232
+ #### Authors: 2
233
+
234
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
235
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
236
+
237
+ ---
238
+
239
+ # v19.4.0 (Mon Jan 10 2022)
240
+
241
+ #### 🔩 Dependency Updates
242
+
243
+ - Bump @types/react from 17.0.37 to 17.0.38 [#1209](https://github.com/servicetitan/uikit/pull/1209) ([@dependabot[bot]](https://github.com/dependabot[bot]))
244
+ - Bump mobx from 6.3.8 to 6.3.10 [#1205](https://github.com/servicetitan/uikit/pull/1205) ([@dependabot[bot]](https://github.com/dependabot[bot]))
245
+
246
+ #### Authors: 1
247
+
248
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
249
+
250
+ ---
251
+
252
+ # v19.2.0 (Wed Dec 15 2021)
253
+
254
+ #### 🚀 Enhancement
255
+
256
+ - Table: exit from handleSelectionChange when it is triggered from selectionRelease (when row is no longer selected) [#1166](https://github.com/servicetitan/uikit/pull/1166) ([@kanoshin](https://github.com/kanoshin))
257
+
258
+ #### 🔩 Dependency Updates
259
+
260
+ - Bump @types/react from 17.0.36 to 17.0.37 [#1129](https://github.com/servicetitan/uikit/pull/1129) ([@dependabot[bot]](https://github.com/dependabot[bot]))
261
+
262
+ #### Authors: 2
263
+
264
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
265
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
266
+
267
+ ---
268
+
269
+ # v19.1.0 (Wed Dec 08 2021)
270
+
271
+ :tada: This release contains work from a new contributor! :tada:
272
+
273
+ Thank you, Danny Rizko ([@DannyRizko](https://github.com/DannyRizko)), for all your work!
274
+
275
+ #### 🔩 Dependency Updates
276
+
277
+ - Bump mobx from 6.3.7 to 6.3.8 [#1136](https://github.com/servicetitan/uikit/pull/1136) ([@dependabot[bot]](https://github.com/dependabot[bot]))
278
+ - Bump @types/react from 17.0.35 to 17.0.36 [#1113](https://github.com/servicetitan/uikit/pull/1113) ([@dependabot[bot]](https://github.com/dependabot[bot]))
279
+
280
+ #### Authors: 1
281
+
282
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
283
+
284
+ ---
285
+
286
+ # v19.0.0 (Wed Nov 24 2021)
287
+
288
+ #### 🚀 Enhancement
289
+
290
+ - : Set column with selection control locked [#1103](https://github.com/servicetitan/uikit/pull/1103) ([@Mikhe](https://github.com/Mikhe))
291
+
292
+ #### 🔩 Dependency Updates
293
+
294
+ - Bump @types/react from 17.0.34 to 17.0.35 [#1089](https://github.com/servicetitan/uikit/pull/1089) ([@dependabot[bot]](https://github.com/dependabot[bot]))
295
+
296
+ #### Authors: 2
297
+
298
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
299
+ - Sergei Mikhailovskikh ([@Mikhe](https://github.com/Mikhe))
300
+
301
+ ---
302
+
303
+ # v18.1.0 (Wed Nov 17 2021)
304
+
305
+ #### 🔩 Dependency Updates
306
+
307
+ - Bump @types/react from 17.0.33 to 17.0.34 [#1063](https://github.com/servicetitan/uikit/pull/1063) ([@dependabot[bot]](https://github.com/dependabot[bot]))
308
+
309
+ #### Authors: 1
310
+
311
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
312
+
313
+ ---
314
+
315
+ # v18.0.0 (Mon Nov 15 2021)
316
+
317
+ #### 💥 Breaking Change
318
+
319
+ - Table: fix filters ui regression [#1068](https://github.com/servicetitan/uikit/pull/1068) ([@xarety](https://github.com/xarety))
320
+
321
+ #### Authors: 1
322
+
323
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
324
+
325
+ ---
326
+
327
+ # v17.5.0 (Fri Nov 12 2021)
328
+
329
+ #### 🚀 Enhancement
330
+
331
+ - Log service: improve error logging for unexpected usages [#1083](https://github.com/servicetitan/uikit/pull/1083) ([@kanoshin](https://github.com/kanoshin))
332
+
333
+ #### 🔩 Dependency Updates
334
+
335
+ - Bump mobx from 6.3.6 to 6.3.7 [#1085](https://github.com/servicetitan/uikit/pull/1085) ([@dependabot[bot]](https://github.com/dependabot[bot]))
336
+
337
+ #### Authors: 2
338
+
339
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
340
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
341
+
342
+ ---
343
+
344
+ # v17.3.1 (Wed Nov 03 2021)
345
+
346
+ #### 🔩 Dependency Updates
347
+
348
+ - Bump dependencies [#1062](https://github.com/servicetitan/uikit/pull/1062) ([@xarety](https://github.com/xarety))
349
+
350
+ #### Authors: 1
351
+
352
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
353
+
354
+ ---
355
+
356
+ # v17.2.1 (Tue Oct 26 2021)
357
+
358
+ #### 🔩 Dependency Updates
359
+
360
+ - Bump @types/react from 17.0.32 to 17.0.33 [#1041](https://github.com/servicetitan/uikit/pull/1041) ([@dependabot[bot]](https://github.com/dependabot[bot]))
361
+ - Bump @types/react from 17.0.30 to 17.0.32 [#1033](https://github.com/servicetitan/uikit/pull/1033) ([@dependabot[bot]](https://github.com/dependabot[bot]))
362
+ - Bump mobx from 6.3.3 to 6.3.5 [#998](https://github.com/servicetitan/uikit/pull/998) ([@dependabot[bot]](https://github.com/dependabot[bot]))
363
+ - Bump mobx-react from 7.2.0 to 7.2.1 [#997](https://github.com/servicetitan/uikit/pull/997) ([@dependabot[bot]](https://github.com/dependabot[bot]))
364
+ - Bump @types/react from 17.0.27 to 17.0.30 [#996](https://github.com/servicetitan/uikit/pull/996) ([@dependabot[bot]](https://github.com/dependabot[bot]))
365
+
366
+ #### Authors: 1
367
+
368
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
369
+
370
+ ---
371
+
372
+ # v17.1.1 (Tue Oct 05 2021)
373
+
374
+ #### 🔩 Dependency Updates
375
+
376
+ - Bump @types/react from 17.0.26 to 17.0.27 [#949](https://github.com/servicetitan/uikit/pull/949) ([@dependabot[bot]](https://github.com/dependabot[bot]))
377
+
378
+ #### Authors: 1
379
+
380
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
381
+
382
+ ---
383
+
384
+ # v17.1.0 (Sat Oct 02 2021)
385
+
386
+ #### 🔩 Dependency Updates
387
+
388
+ - Bump @types/react from 17.0.25 to 17.0.26 [#940](https://github.com/servicetitan/uikit/pull/940) ([@dependabot[bot]](https://github.com/dependabot[bot]))
389
+
390
+ #### Authors: 1
391
+
392
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
393
+
394
+ ---
395
+
396
+ # v17.0.0 (Thu Sep 30 2021)
397
+
398
+ #### 💥 Breaking Change
399
+
400
+ - Stylelint config: use-tokens rule [#837](https://github.com/servicetitan/uikit/pull/837) ([@xarety](https://github.com/xarety))
401
+
402
+ #### 🔩 Dependency Updates
403
+
404
+ - Bump @servicetitan/design-system from 10.2.1 to 10.3.3 [#935](https://github.com/servicetitan/uikit/pull/935) ([@xarety](https://github.com/xarety))
405
+
406
+ #### Authors: 1
407
+
408
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
409
+
410
+ ---
411
+
412
+ # v16.0.0 (Fri Sep 24 2021)
413
+
414
+ #### 🔩 Dependency Updates
415
+
416
+ - Bump @types/react from 17.0.21 to 17.0.24 [#897](https://github.com/servicetitan/uikit/pull/897) ([@dependabot[bot]](https://github.com/dependabot[bot]))
417
+ - Bump @types/react from 17.0.20 to 17.0.21 [#860](https://github.com/servicetitan/uikit/pull/860) ([@dependabot[bot]](https://github.com/dependabot[bot]))
418
+ - Bump @servicetitan/design-system from 10.1.0 to 10.2.1 [#858](https://github.com/servicetitan/uikit/pull/858) ([@xarety](https://github.com/xarety))
419
+ - Bump prettier from 2.3.2 to 2.4.0 [#832](https://github.com/servicetitan/uikit/pull/832) ([@dependabot[bot]](https://github.com/dependabot[bot]))
420
+ - Bump @types/react from 17.0.19 to 17.0.20 [#817](https://github.com/servicetitan/uikit/pull/817) ([@dependabot[bot]](https://github.com/dependabot[bot]))
421
+ - Bump mobx from 6.3.2 to 6.3.3 [#803](https://github.com/servicetitan/uikit/pull/803) ([@dependabot[bot]](https://github.com/dependabot[bot]))
422
+
423
+ #### Authors: 2
424
+
425
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
426
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
427
+
428
+ ---
429
+
430
+ # v15.0.0 (Tue Sep 14 2021)
431
+
432
+ #### 🚀 Enhancement
433
+
434
+ - Table: multiItemMultiSelectColumnMenuFilter [#854](https://github.com/servicetitan/uikit/pull/854) ([@aschumahua](https://github.com/aschumahua))
435
+
436
+ #### Authors: 1
437
+
438
+ - Anzar Schumahua ([@aschumahua](https://github.com/aschumahua))
439
+
440
+ ---
441
+
442
+ # v14.3.0 (Mon Aug 23 2021)
443
+
444
+ :tada: This release contains work from a new contributor! :tada:
445
+
446
+ Thank you, Hayk Ghazaryan ([@haykghazaryan-st](https://github.com/haykghazaryan-st)), for all your work!
447
+
448
+ #### 🚀 Enhancement
449
+
450
+ - Table: added multi-select feature [#748](https://github.com/servicetitan/uikit/pull/748) ([@haykghazaryan-st](https://github.com/haykghazaryan-st) [@xarety](https://github.com/xarety))
451
+
452
+ #### 🐛 Bug Fix
453
+
454
+ - Table: add missing kendo peer dependencies [#742](https://github.com/servicetitan/uikit/pull/742) ([@xarety](https://github.com/xarety))
455
+
456
+ #### 🔩 Dependency Updates
457
+
458
+ - Bump @types/react from 17.0.18 to 17.0.19 [#768](https://github.com/servicetitan/uikit/pull/768) ([@dependabot[bot]](https://github.com/dependabot[bot]))
459
+ - Bump @types/react from 17.0.17 to 17.0.18 [#760](https://github.com/servicetitan/uikit/pull/760) ([@dependabot[bot]](https://github.com/dependabot[bot]))
460
+ - Bump @types/react from 17.0.16 to 17.0.17 [#747](https://github.com/servicetitan/uikit/pull/747) ([@dependabot[bot]](https://github.com/dependabot[bot]))
461
+
462
+ #### Authors: 3
463
+
464
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
465
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
466
+ - Hayk Ghazaryan ([@haykghazaryan-st](https://github.com/haykghazaryan-st))
467
+
468
+ ---
469
+
470
+ # v14.2.0 (Fri Aug 06 2021)
471
+
472
+ #### 🐛 Bug Fix
473
+
474
+ - Stylelint config: disable no-invalid-position-at-import-rule [#732](https://github.com/servicetitan/uikit/pull/732) ([@kanoshin](https://github.com/kanoshin))
475
+
476
+ #### 🔩 Dependency Updates
477
+
478
+ - Bump @types/react from 17.0.15 to 17.0.16 [#728](https://github.com/servicetitan/uikit/pull/728) ([@dependabot[bot]](https://github.com/dependabot[bot]))
479
+
480
+ #### Authors: 2
481
+
482
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
483
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
484
+
485
+ ---
486
+
487
+ # v14.1.1 (Thu Aug 05 2021)
488
+
489
+ #### 🔩 Dependency Updates
490
+
491
+ - Update dependencies [#705](https://github.com/servicetitan/uikit/pull/705) ([@xarety](https://github.com/xarety) [@kanoshin](https://github.com/kanoshin))
492
+
493
+ #### Authors: 2
494
+
495
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
496
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
497
+
498
+ ---
499
+
500
+ # v14.1.0 (Fri Jul 30 2021)
501
+
502
+ #### 🔩 Dependency Updates
503
+
504
+ - Bump @types/react from 17.0.9 to 17.0.14 [#652](https://github.com/servicetitan/uikit/pull/652) ([@dependabot[bot]](https://github.com/dependabot[bot]))
505
+
506
+ #### Authors: 1
507
+
508
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
509
+
510
+ ---
511
+
512
+ # v14.0.0 (Fri Jul 23 2021)
513
+
514
+ #### 💥 Breaking Change
515
+
516
+ - Updating React 17 and react-jsx transform [#620](https://github.com/servicetitan/uikit/pull/620) ([@rgdelato](https://github.com/rgdelato) [@StreetStrider](https://github.com/StreetStrider) [@kanoshin](https://github.com/kanoshin))
517
+
518
+ #### Authors: 3
519
+
520
+ - Ivan Pukhtin ([@StreetStrider](https://github.com/StreetStrider))
521
+ - Kirill Anoshin ([@kanoshin](https://github.com/kanoshin))
522
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
523
+
524
+ ---
525
+
526
+ # v12.5.0 (Wed Jun 16 2021)
527
+
528
+ :tada: This release contains work from a new contributor! :tada:
529
+
530
+ Thank you, Mike Kozhevnikov ([@mkozhevnikov](https://github.com/mkozhevnikov)), for all your work!
531
+
532
+ #### 🐛 Bug Fix
533
+
534
+ - Startup: WatchIgnorePlugin requires at least one value [#622](https://github.com/servicetitan/uikit/pull/622) ([@xarety](https://github.com/xarety))
535
+ - Hash browser router: correct basename handling [#616](https://github.com/servicetitan/uikit/pull/616) ([@xarety](https://github.com/xarety))
536
+ - FAR-792: Fixing existing subpackage CHANGELOG.md files [#621](https://github.com/servicetitan/uikit/pull/621) ([@rgdelato](https://github.com/rgdelato))
537
+
538
+ #### Authors: 2
539
+
540
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
541
+ - Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
542
+
543
+ ---
544
+
545
+ # v12.4.0 (Tue Jun 08 2021)
546
+
547
+ #### ⚠️ Pushed to `master`
548
+
549
+ - Undo fail publish consequences ([@xarety](https://github.com/xarety))
550
+ - Publish ([@xarety](https://github.com/xarety))
551
+ - Bump packages ([@xarety](https://github.com/xarety))
552
+
553
+ #### 🔩 Dependency Updates
554
+
555
+ - Bump @types/react from 17.0.8 to 17.0.9 [#607](https://github.com/servicetitan/uikit/pull/607) ([@dependabot[bot]](https://github.com/dependabot[bot]))
556
+ - Bump @types/react from 17.0.6 to 17.0.8 [#575](https://github.com/servicetitan/uikit/pull/575) ([@dependabot[bot]](https://github.com/dependabot[bot]))
557
+ - Bump @servicetitan/design-system from 9.2.0 to 9.2.1 [#596](https://github.com/servicetitan/uikit/pull/596) ([@dependabot[bot]](https://github.com/dependabot[bot]))
558
+ - Bump @servicetitan/design-system from 9.1.0 to 9.2.0 [#557](https://github.com/servicetitan/uikit/pull/557) ([@dependabot[bot]](https://github.com/dependabot[bot]))
559
+ - Bump mobx-react from 7.1.0 to 7.2.0 [#553](https://github.com/servicetitan/uikit/pull/553) ([@dependabot[bot]](https://github.com/dependabot[bot]))
560
+ - Bump @types/react from 17.0.5 to 17.0.6 [#551](https://github.com/servicetitan/uikit/pull/551) ([@dependabot[bot]](https://github.com/dependabot[bot]))
561
+ - Bump prettier from 2.2.1 to 2.3.0 [#534](https://github.com/servicetitan/uikit/pull/534) ([@dependabot[bot]](https://github.com/dependabot[bot]) [@xarety](https://github.com/xarety))
562
+
563
+ #### Authors: 2
564
+
565
+ - [@dependabot[bot]](https://github.com/dependabot[bot])
566
+ - Denis Gordeev ([@xarety](https://github.com/xarety))
@@ -1 +1 @@
1
- {"version":3,"file":"select-cell.d.ts","sourceRoot":"","sources":["../../src/select-cell/select-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EACH,cAAc,EACd,oBAAoB,EAEpB,aAAa,EAChB,MAAM,6BAA6B,CAAC;AAGrC,oBAAY,oBAAoB,GAAG,aAAa,CA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AE,OAAO,CAAC;IAC7B,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,UAAU,eAAe;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,cAAc,EAAE,cAAc,CAAC,GAAG,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3E,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAgB1C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA4CtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAOtD,CAAC"}
@@ -10,26 +10,33 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { useCallback } from 'react';
13
14
  import { Checkbox, } from '@servicetitan/design-system';
15
+ import classNames from 'classnames';
14
16
  import * as Styles from './select-cell.module.css';
15
17
  export const SelectCell = (_a) => {
16
18
  var { selectionChange, control: Control = Checkbox } = _a, props = __rest(_a, ["selectionChange", "control"]);
17
- const onChange = (_0, _1, event) => {
19
+ const onChange = useCallback((_0, _1, event) => {
18
20
  if (!selectionChange) {
19
21
  return;
20
22
  }
21
23
  selectionChange({ syntheticEvent: event });
22
- };
24
+ }, [selectionChange]);
23
25
  return _jsx(Control, Object.assign({ className: Styles.checkbox, onChange: onChange }, props));
24
26
  };
25
- export const SelectColumnCell = (props) => {
26
- if (props.rowType === 'groupHeader') {
27
+ export const SelectColumnCell = ({ style, rowType, dataItem, control, isRowSelectable, selectionChange, className, }) => {
28
+ const onSelectionChange = useCallback((event) => {
29
+ if (isRowSelectable && selectionChange) {
30
+ selectionChange({ syntheticEvent: event });
31
+ }
32
+ }, [selectionChange, isRowSelectable]);
33
+ if (rowType === 'groupHeader') {
27
34
  return null;
28
35
  }
29
- if (props.rowType === 'groupFooter') {
36
+ if (rowType === 'groupFooter') {
30
37
  return _jsx("td", {});
31
38
  }
32
- return (_jsx("td", Object.assign({ style: props.style, className: props.className }, { children: _jsx(SelectCell, { checked: props.dataItem.selected, disabled: !props.isRowSelectable, selectionChange: props.selectionChange, indeterminate: props.dataItem.indeterminate, control: props.control }) })));
39
+ return (_jsx("td", Object.assign({ style: style, className: classNames(isRowSelectable && selectionChange && 'cursor-pointer', className), onClick: onSelectionChange }, { children: _jsx(SelectCell, { checked: dataItem.selected, disabled: !isRowSelectable, selectionChange: selectionChange, indeterminate: dataItem.indeterminate, control: control }) })));
33
40
  };
34
41
  export const SelectHeaderCell = (props) => (_jsx(SelectCell, { checked: props.selectionValue, indeterminate: props.isSomeRowsSelected, selectionChange: props.selectionChange, control: props.control }));
35
42
  //# sourceMappingURL=select-cell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-cell.js","sourceRoot":"","sources":["../../src/select-cell/select-cell.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAGH,QAAQ,GAEX,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,0BAA0B,CAAC;AAsBnD,MAAM,CAAC,MAAM,UAAU,GAAwB,CAAC,EAI9B,EAAE,EAAE;QAJ0B,EAC5C,eAAe,EACf,OAAO,EAAE,OAAO,GAAG,QAAQ,OAEb,EADX,KAAK,cAHoC,8BAI/C,CADW;IAER,MAAM,QAAQ,GAAG,CAAC,EAAS,EAAE,EAAW,EAAE,KAAuC,EAAE,EAAE;QACjF,IAAI,CAAC,eAAe,EAAE;YAClB,OAAO;SACV;QACD,eAAe,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC;IAEF,OAAO,KAAC,OAAO,kBAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,EAAE,Q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ChC,aAAa,EAAE,QAAQ,CAAC,aAAa,EACrC,OAAO,EAAE,OAAO,GAClB,IACD,CACR,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAA8B,CAAC,KAA4B,EAAE,EAAE,CAAC,CACzF,KAAC,UAAU,IACP,OAAO,EAAE,KAAK,CAAC,cAAc,EAC7B,aAAa,EAAE,KAAK,CAAC,kBAAkB,EACvC,eAAe,EAAE,KAAK,CAAC,eAAe,EACtC,OAAO,EAAE,KAAK,CAAC,OAAO,GACxB,CACL,CAAC"}
@@ -151,7 +151,7 @@ export declare class TableState<T, TId extends IdType = never, P = never, PId ex
151
151
  setTablePdfExportRef: (el: TablePDFExport | null) => TablePDFExport | null;
152
152
  setTableExcelExportRef: (el: ExcelExport | null) => ExcelExport | null;
153
153
  exportPdf: () => Promise<void>;
154
- exportExcel: (data?: any[] | ExcelExportData | WorkbookOptions, columns?: ExcelExportColumnProps[] | ReactElement<ExcelExportColumnProps>[]) => Promise<void>;
154
+ exportExcel: (data?: any[] | WorkbookOptions | ExcelExportData | undefined, columns?: ExcelExportColumnProps[] | ReactElement<ExcelExportColumnProps, string | import("react").JSXElementConstructor<any>>[] | undefined) => Promise<void>;
155
155
  filteredSortedUnpaginatedData: () => Promise<DataResult<T>>;
156
156
  getRowsBetween: (start: Selectable<T>, end: Selectable<T>) => Selectable<T>[];
157
157
  exportState(): TableStateModel<TId>;
@@ -1 +1 @@
1
- {"version":3,"file":"table-state.d.ts","sourceRoot":"","sources":["../src/table-state.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAGrC,OAAO,EACH,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,cAAc,EACd,UAAU,EACV,WAAW,EACX,UAAU,EACV,MAAM,EACT,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,WAAW,EACX,eAAe,EACf,sBAAsB,EACzB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,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,cAAc,UAAW,WAAW,CAAC,CAAC,OAAO,WAAW,CAAC,CAAC,qBA6BxD;IAEF,WAAW,IAAI,eAAe,CAAC,GAAG,CAAC;IAcnC,WAAW,CAAC,IAAI,EAAE,eAAe,CAAC,GAAG,CAAC;CAUzC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicetitan/table",
3
- "version": "21.7.3",
3
+ "version": "22.1.1",
4
4
  "description": "",
5
5
  "homepage": "https://docs.st.dev/docs/frontend/table",
6
6
  "repository": {
@@ -36,31 +36,31 @@
36
36
  "memoize-one": "~6.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@servicetitan/data-query": "^21.7.3",
40
- "@servicetitan/design-system": "~11.9.0",
41
- "@servicetitan/form": "^21.7.3",
42
- "@servicetitan/react-ioc": "^21.7.3",
43
- "@servicetitan/suppress-warnings": "^21.7.3",
39
+ "@servicetitan/data-query": "^22.1.1",
40
+ "@servicetitan/design-system": "~11.8.0",
41
+ "@servicetitan/form": "^22.1.1",
42
+ "@servicetitan/react-ioc": "^21.6.0",
43
+ "@servicetitan/suppress-warnings": "^21.6.0",
44
44
  "@types/accounting": "~0.4.2",
45
45
  "@types/react": "~17.0.38",
46
46
  "accounting": "~0.4.1",
47
47
  "formstate": "~2.0.0",
48
48
  "mobx": "~6.6.0",
49
- "mobx-react": "~7.5.1",
49
+ "mobx-react": "~7.5.0",
50
50
  "mobx-utils": "~6.0.5",
51
51
  "moment": "~2.29.3",
52
52
  "react": "~17.0.2"
53
53
  },
54
54
  "peerDependencies": {
55
- "@servicetitan/data-query": "^20.0.0",
56
- "@servicetitan/design-system": "~11.9.0",
57
- "@servicetitan/form": "^20.0.0",
55
+ "@servicetitan/data-query": "^22.1.1",
56
+ "@servicetitan/design-system": "~11.8.0",
57
+ "@servicetitan/form": "^22.1.1",
58
58
  "@servicetitan/react-ioc": "^20.0.0",
59
59
  "@servicetitan/suppress-warnings": "^20.0.0",
60
60
  "accounting": "~0.4.1",
61
61
  "formstate": "~2.0.0",
62
62
  "mobx": "~6.6.0",
63
- "mobx-react": "~7.5.1",
63
+ "mobx-react": "~7.5.0",
64
64
  "mobx-utils": "~6.0.5",
65
65
  "moment": "~2.29.3",
66
66
  "react": "~17.0.2"
@@ -71,5 +71,5 @@
71
71
  "cli": {
72
72
  "webpack": false
73
73
  },
74
- "gitHead": "84a4b3e0c3642680d8fc6e710f9736e99e19c3d7"
74
+ "gitHead": "7148377158b6d403739648d5e2eea293c732c491"
75
75
  }
@@ -1,10 +1,11 @@
1
- import { ComponentType, SyntheticEvent, FC } from 'react';
1
+ import { ComponentType, SyntheticEvent, FC, useCallback } from 'react';
2
2
  import {
3
3
  TableCellProps,
4
4
  TableHeaderCellProps,
5
5
  Checkbox,
6
6
  CheckboxProps,
7
7
  } from '@servicetitan/design-system';
8
+ import classNames from 'classnames';
8
9
  import * as Styles from './select-cell.module.css';
9
10
 
10
11
  export type SelectionControlType = ComponentType<CheckboxProps<never>>;
@@ -32,33 +33,60 @@ export const SelectCell: FC<SelectCellProps> = ({
32
33
  control: Control = Checkbox,
33
34
  ...props
34
35
  }: SelectCellProps) => {
35
- const onChange = (_0: never, _1: boolean, event: SyntheticEvent<HTMLInputElement>) => {
36
- if (!selectionChange) {
37
- return;
38
- }
39
- selectionChange({ syntheticEvent: event });
40
- };
36
+ const onChange = useCallback(
37
+ (_0: never, _1: boolean, event: SyntheticEvent<HTMLInputElement>) => {
38
+ if (!selectionChange) {
39
+ return;
40
+ }
41
+ selectionChange({ syntheticEvent: event });
42
+ },
43
+ [selectionChange]
44
+ );
41
45
 
42
46
  return <Control className={Styles.checkbox} onChange={onChange} {...props} />;
43
47
  };
44
48
 
45
- export const SelectColumnCell: FC<SelectColumnCellProps> = (props: SelectColumnCellProps) => {
46
- if (props.rowType === 'groupHeader') {
49
+ export const SelectColumnCell: FC<SelectColumnCellProps> = ({
50
+ style,
51
+ rowType,
52
+ dataItem,
53
+ control,
54
+ isRowSelectable,
55
+ selectionChange,
56
+ className,
57
+ }: SelectColumnCellProps) => {
58
+ const onSelectionChange = useCallback(
59
+ (event: SyntheticEvent<HTMLTableCellElement>) => {
60
+ if (isRowSelectable && selectionChange) {
61
+ selectionChange({ syntheticEvent: event });
62
+ }
63
+ },
64
+ [selectionChange, isRowSelectable]
65
+ );
66
+
67
+ if (rowType === 'groupHeader') {
47
68
  return null;
48
69
  }
49
70
 
50
- if (props.rowType === 'groupFooter') {
71
+ if (rowType === 'groupFooter') {
51
72
  return <td />;
52
73
  }
53
74
 
54
75
  return (
55
- <td style={props.style} className={props.className}>
76
+ <td
77
+ style={style}
78
+ className={classNames(
79
+ isRowSelectable && selectionChange && 'cursor-pointer',
80
+ className
81
+ )}
82
+ onClick={onSelectionChange}
83
+ >
56
84
  <SelectCell
57
- checked={props.dataItem.selected}
58
- disabled={!props.isRowSelectable}
59
- selectionChange={props.selectionChange}
60
- indeterminate={props.dataItem.indeterminate}
61
- control={props.control}
85
+ checked={dataItem.selected}
86
+ disabled={!isRowSelectable}
87
+ selectionChange={selectionChange}
88
+ indeterminate={dataItem.indeterminate}
89
+ control={control}
62
90
  />
63
91
  </td>
64
92
  );