@xh/hoist 73.0.0-SNAPSHOT.1746562287920 → 73.0.0-SNAPSHOT.1746638889909

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.
@@ -11,9 +11,8 @@ export interface StoreFilterFieldProps extends DefaultHoistProps {
11
11
  autoApply?: boolean;
12
12
  /**
13
13
  * Field on optional model to which this component should bind its raw (text) value to persist
14
- * across renders. Specify this field to control the state of this component directly or if
15
- * deliberately not connecting this component to a Store/GridModel. These are both advanced
16
- * use-cases - this prop is typically left unset.
14
+ * across renders. Specify this field to control the state of this component directly from a model.
15
+ * These are both advanced use-cases - this prop is typically left unset.
17
16
  */
18
17
  bind?: string;
19
18
  /** Names of field(s) to exclude from search. Cannot be used with `includeFields`. */
@@ -21,9 +21,8 @@ export interface StoreFilterFieldProps extends DefaultHoistProps {
21
21
 
22
22
  /**
23
23
  * Field on optional model to which this component should bind its raw (text) value to persist
24
- * across renders. Specify this field to control the state of this component directly or if
25
- * deliberately not connecting this component to a Store/GridModel. These are both advanced
26
- * use-cases - this prop is typically left unset.
24
+ * across renders. Specify this field to control the state of this component directly from a model.
25
+ * These are both advanced use-cases - this prop is typically left unset.
27
26
  */
28
27
  bind?: string;
29
28
 
@@ -32,16 +32,16 @@ export const valuesTab = hoistCmp.factory({
32
32
  }
33
33
  });
34
34
 
35
- const tbar = hoistCmp.factory<ValuesTabModel>(({model}) => {
35
+ const tbar = hoistCmp.factory(() => {
36
36
  return toolbar(
37
37
  storeFilterField({
38
38
  bind: 'filterText',
39
- model,
40
39
  leftIcon: Icon.search(),
41
40
  placeholder: 'Search...',
42
41
  flex: 1,
43
42
  autoFocus: true,
44
- matchMode: 'any'
43
+ matchMode: 'any',
44
+ includeFields: ['value']
45
45
  })
46
46
  );
47
47
  });
@@ -138,7 +138,13 @@ export class ValuesTabModel extends HoistModel {
138
138
 
139
139
  const {records} = this.gridModel.store,
140
140
  currentFilterValues = flatten(map(this.columnFilters, 'value')),
141
- values = map(records, it => it.get('value'));
141
+ checkedRecs = records.filter(
142
+ it =>
143
+ this.headerFilterModel.commitOnChange ||
144
+ currentFilterValues.length ||
145
+ it.get('isChecked')
146
+ ),
147
+ values = map(checkedRecs, it => it.get('value'));
142
148
 
143
149
  this.pendingValues = uniq(
144
150
  this.combineCurrentFilters ? [...currentFilterValues, ...values] : values
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1746562287920",
3
+ "version": "73.0.0-SNAPSHOT.1746638889909",
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",