@xh/hoist 73.0.0-SNAPSHOT.1747087613907 → 73.0.0-SNAPSHOT.1747088840379
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.
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Copyright © 2025 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
7
|
import {grid} from '@xh/hoist/cmp/grid';
|
|
8
|
-
import {div, hframe, placeholder,
|
|
8
|
+
import {div, hframe, placeholder, label, vbox, vframe} from '@xh/hoist/cmp/layout';
|
|
9
9
|
import {storeFilterField} from '@xh/hoist/cmp/store';
|
|
10
|
-
import {hoistCmp, uses} from '@xh/hoist/core';
|
|
10
|
+
import {XH, hoistCmp, uses} from '@xh/hoist/core';
|
|
11
11
|
import {button} from '@xh/hoist/desktop/cmp/button';
|
|
12
12
|
import {checkbox} from '@xh/hoist/desktop/cmp/input';
|
|
13
13
|
import {panel} from '@xh/hoist/desktop/cmp/panel';
|
|
@@ -54,19 +54,25 @@ const body = hoistCmp.factory<ValuesTabModel>(({model}) => {
|
|
|
54
54
|
|
|
55
55
|
const storeFilterSelect = hoistCmp.factory<ValuesTabModel>(({model}) => {
|
|
56
56
|
const {gridModel, allVisibleRecsChecked, filterText, headerFilterModel} = model,
|
|
57
|
-
{store} = gridModel
|
|
57
|
+
{store} = gridModel,
|
|
58
|
+
selectAllId = XH.genId(),
|
|
59
|
+
addToFilterId = XH.genId();
|
|
58
60
|
|
|
59
61
|
return vbox({
|
|
60
62
|
className: 'store-filter-header',
|
|
61
63
|
items: [
|
|
62
64
|
hframe(
|
|
63
65
|
checkbox({
|
|
66
|
+
id: selectAllId,
|
|
64
67
|
disabled: store.empty,
|
|
65
68
|
displayUnsetState: true,
|
|
66
69
|
value: allVisibleRecsChecked,
|
|
67
70
|
onChange: () => model.toggleAllRecsChecked()
|
|
68
71
|
}),
|
|
69
|
-
|
|
72
|
+
label({
|
|
73
|
+
htmlFor: selectAllId,
|
|
74
|
+
item: `(Select All${filterText ? ' Search Results' : ''})`
|
|
75
|
+
})
|
|
70
76
|
),
|
|
71
77
|
hframe({
|
|
72
78
|
omit:
|
|
@@ -75,8 +81,14 @@ const storeFilterSelect = hoistCmp.factory<ValuesTabModel>(({model}) => {
|
|
|
75
81
|
store.empty ||
|
|
76
82
|
headerFilterModel.commitOnChange,
|
|
77
83
|
items: [
|
|
78
|
-
checkbox({
|
|
79
|
-
|
|
84
|
+
checkbox({
|
|
85
|
+
id: addToFilterId,
|
|
86
|
+
bind: 'combineCurrentFilters'
|
|
87
|
+
}),
|
|
88
|
+
label({
|
|
89
|
+
htmlFor: addToFilterId,
|
|
90
|
+
item: 'Add current selection to filter'
|
|
91
|
+
})
|
|
80
92
|
]
|
|
81
93
|
})
|
|
82
94
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "73.0.0-SNAPSHOT.
|
|
3
|
+
"version": "73.0.0-SNAPSHOT.1747088840379",
|
|
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",
|