@xh/hoist 73.0.0-SNAPSHOT.1746647244798 → 73.0.0-SNAPSHOT.1746740884592

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +4 -5
  2. package/admin/AppModel.ts +6 -10
  3. package/admin/columns/Tracking.ts +11 -11
  4. package/admin/tabs/activity/tracking/ActivityTracking.scss +18 -0
  5. package/admin/tabs/activity/tracking/ActivityTrackingModel.ts +15 -6
  6. package/admin/tabs/activity/tracking/detail/ActivityDetailModel.ts +3 -0
  7. package/admin/tabs/activity/tracking/detail/ActivityDetailView.ts +1 -0
  8. package/admin/tabs/{client/clients → clients}/ClientsPanel.ts +2 -2
  9. package/admin/tabs/{client/clients → clients}/activity/ClientDetailModel.ts +2 -2
  10. package/admin/tabs/{client/clients → clients}/activity/ClientDetailPanel.ts +1 -1
  11. package/admin/tabs/cluster/ClusterTab.ts +1 -1
  12. package/admin/tabs/cluster/instances/InstancesTabModel.ts +1 -1
  13. package/admin/tabs/general/GeneralTab.ts +0 -2
  14. package/appcontainer/FeedbackDialogModel.ts +12 -13
  15. package/build/types/admin/columns/Tracking.d.ts +1 -3
  16. package/build/types/admin/tabs/{client/clients → clients}/activity/ClientDetailModel.d.ts +2 -2
  17. package/build/types/admin/tabs/{client/clients → clients}/activity/ClientDetailPanel.d.ts +1 -1
  18. package/build/types/appcontainer/FeedbackDialogModel.d.ts +1 -4
  19. package/build/types/cmp/grid/Types.d.ts +1 -4
  20. package/build/types/cmp/store/StoreFilterField.d.ts +3 -2
  21. package/build/types/desktop/cmp/grid/impl/filter/headerfilter/values/ValuesTabModel.d.ts +0 -3
  22. package/cmp/grid/Types.ts +1 -4
  23. package/cmp/grid/filter/GridFilterModel.ts +1 -1
  24. package/cmp/store/StoreFilterField.ts +3 -2
  25. package/core/exception/ExceptionHandler.ts +14 -15
  26. package/desktop/cmp/grid/impl/filter/headerfilter/values/ValuesTab.scss +0 -13
  27. package/desktop/cmp/grid/impl/filter/headerfilter/values/ValuesTab.ts +3 -36
  28. package/desktop/cmp/grid/impl/filter/headerfilter/values/ValuesTabModel.ts +15 -60
  29. package/package.json +1 -1
  30. package/styles/XH.scss +1 -0
  31. package/styles/vars.scss +1 -0
  32. package/tsconfig.tsbuildinfo +1 -1
  33. package/admin/tabs/client/ClientTab.ts +0 -24
  34. package/admin/tabs/client/errors/ClientErrorDetail.ts +0 -129
  35. package/admin/tabs/client/errors/ClientErrors.scss +0 -52
  36. package/admin/tabs/client/errors/ClientErrorsModel.ts +0 -227
  37. package/admin/tabs/client/errors/ClientErrorsPanel.ts +0 -101
  38. package/admin/tabs/general/feedback/FeedbackPanel.ts +0 -61
  39. package/build/types/admin/tabs/client/ClientTab.d.ts +0 -1
  40. package/build/types/admin/tabs/client/errors/ClientErrorDetail.d.ts +0 -2
  41. package/build/types/admin/tabs/client/errors/ClientErrorsModel.d.ts +0 -30
  42. package/build/types/admin/tabs/client/errors/ClientErrorsPanel.d.ts +0 -3
  43. package/build/types/admin/tabs/general/feedback/FeedbackPanel.d.ts +0 -1
  44. /package/admin/tabs/{client/clients → clients}/ClientsModel.ts +0 -0
  45. /package/admin/tabs/{client/clients → clients}/activity/ClientDetail.scss +0 -0
  46. /package/build/types/admin/tabs/{client/clients → clients}/ClientsModel.d.ts +0 -0
  47. /package/build/types/admin/tabs/{client/clients → clients}/ClientsPanel.d.ts +0 -0
@@ -10,7 +10,7 @@ import {FieldFilterSpec} from '@xh/hoist/data';
10
10
  import {HeaderFilterModel} from '../HeaderFilterModel';
11
11
  import {checkbox} from '@xh/hoist/desktop/cmp/input';
12
12
  import {action, bindable, computed, makeObservable, observable} from '@xh/hoist/mobx';
13
- import {castArray, difference, flatten, isEmpty, map, partition, uniq, without} from 'lodash';
13
+ import {castArray, difference, isEmpty, partition, uniq, without} from 'lodash';
14
14
 
15
15
  export class ValuesTabModel extends HoistModel {
16
16
  override xhImpl = true;
@@ -26,12 +26,6 @@ export class ValuesTabModel extends HoistModel {
26
26
  /** Bound search term for `StoreFilterField` */
27
27
  @bindable filterText: string = null;
28
28
 
29
- /*
30
- * Available only when commit on change is false merge
31
- * current filter with pendingValues on commit
32
- */
33
- @bindable combineCurrentFilters: boolean = false;
34
-
35
29
  /** FieldFilter output by this model. */
36
30
  @computed.struct
37
31
  get filter(): FieldFilterSpec {
@@ -87,22 +81,11 @@ export class ValuesTabModel extends HoistModel {
87
81
  this.headerFilterModel = headerFilterModel;
88
82
  this.gridModel = this.createGridModel();
89
83
 
90
- this.addReaction(
91
- {
92
- track: () => this.pendingValues,
93
- run: () => this.syncGrid(),
94
- fireImmediately: true
95
- },
96
- {
97
- track: () => this.filterText,
98
- run: () => this.filterTextReaction(),
99
- debounce: 300
100
- },
101
- {
102
- track: () => this.combineCurrentFilters,
103
- run: () => this.combineCurrentFiltersToggleReaction()
104
- }
105
- );
84
+ this.addReaction({
85
+ track: () => this.pendingValues,
86
+ run: () => this.syncGrid(),
87
+ fireImmediately: true
88
+ });
106
89
  }
107
90
 
108
91
  syncWithFilter() {
@@ -132,42 +115,6 @@ export class ValuesTabModel extends HoistModel {
132
115
  //-------------------
133
116
  // Implementation
134
117
  //-------------------
135
- @action
136
- filterTextReaction() {
137
- if (!this.filterText) {
138
- this.combineCurrentFilters = false;
139
- this.doSyncWithFilter();
140
- return;
141
- }
142
-
143
- const {records} = this.gridModel.store,
144
- currentFilterValues = flatten(map(this.columnFilters, 'value')),
145
- checkedRecs = records.filter(
146
- it =>
147
- this.headerFilterModel.commitOnChange ||
148
- currentFilterValues.length ||
149
- it.get('isChecked')
150
- ),
151
- values = map(checkedRecs, it => it.get('value'));
152
-
153
- this.pendingValues = uniq(
154
- this.combineCurrentFilters ? [...currentFilterValues, ...values] : values
155
- );
156
- }
157
-
158
- @action combineCurrentFiltersToggleReaction() {
159
- if (!this.filterText) return;
160
-
161
- const {records} = this.gridModel.store,
162
- currentFilterValues = flatten(map(this.columnFilters, 'value')),
163
- checkedRecs = records.filter(it => it.get('isChecked')),
164
- values = map(checkedRecs, it => it.get('value'));
165
-
166
- this.pendingValues = uniq(
167
- this.combineCurrentFilters ? [...currentFilterValues, ...values] : values
168
- );
169
- }
170
-
171
118
  private getFilter() {
172
119
  const {gridFilterModel, pendingValues, values, valueCount, field} = this,
173
120
  included = pendingValues.map(it => gridFilterModel.fromDisplayValue(it)),
@@ -270,10 +217,17 @@ export class ValuesTabModel extends HoistModel {
270
217
  onRowClicked: ({data: record}) => {
271
218
  this.setRecsChecked(!record.get('isChecked'), record.get('value'));
272
219
  },
273
- hideHeaders: true,
274
220
  columns: [
275
221
  {
276
222
  field: 'isChecked',
223
+ headerName: ({gridModel}) => {
224
+ return checkbox({
225
+ disabled: gridModel.store.empty,
226
+ displayUnsetState: true,
227
+ value: this.allVisibleRecsChecked,
228
+ onChange: () => this.toggleAllRecsChecked()
229
+ });
230
+ },
277
231
  width: 28,
278
232
  autosizable: false,
279
233
  pinned: true,
@@ -291,6 +245,7 @@ export class ValuesTabModel extends HoistModel {
291
245
  },
292
246
  {
293
247
  field: 'value',
248
+ displayName: '(Select All)',
294
249
  align: 'left',
295
250
  comparator: (v1, v2, sortDir, abs, {defaultComparator}) => {
296
251
  const mul = sortDir === 'desc' ? -1 : 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1746647244798",
3
+ "version": "73.0.0-SNAPSHOT.1746740884592",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",
package/styles/XH.scss CHANGED
@@ -96,6 +96,7 @@ body.xh-app {
96
96
  .xh-text-color-accent { color: var(--xh-text-color-accent); }
97
97
  .xh-text-color-muted { color: var(--xh-text-color-muted); }
98
98
  .xh-transparent { color: transparent; }
99
+ .xh-white { color: var(--xh-white); }
99
100
  .xh-yellow { color: var(--xh-yellow); }
100
101
  .xh-yellow-light { color: var(--xh-yellow-light); }
101
102
 
package/styles/vars.scss CHANGED
@@ -47,6 +47,7 @@ body {
47
47
  --xh-purple: var(--purple, #{mc('purple', '800')});
48
48
  --xh-red: var(--red, #{mc('red', '900')});
49
49
  --xh-red-muted: var(--red-muted, #{mc-muted('red', '900', 40%, 20%)});
50
+ --xh-white: var(--white, hsl(0, 0%, 100%));
50
51
  --xh-yellow: var(--yellow, #{mc('yellow', '800')});
51
52
  --xh-yellow-light: var(--yellow-light, #{mc('yellow', '50')});
52
53