@xh/hoist 82.0.2 → 82.0.3
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 +8 -0
- package/build/types/cmp/grouping/impl/GroupingChooserLocalModel.d.ts +1 -0
- package/cmp/grouping/impl/GroupingChooserLocalModel.ts +6 -0
- package/desktop/cmp/dash/canvas/DashCanvasModel.ts +2 -1
- package/desktop/cmp/grouping/GroupingChooser.ts +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 82.0.3 - 2026-03-02
|
|
4
|
+
|
|
5
|
+
### 🐞 Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Fixed bug where `DashCanvasModel.state` returned stale data when persisted state was restored
|
|
8
|
+
during construction.
|
|
9
|
+
* Fixed bug preventing selection of favorites in the GroupingChooser
|
|
10
|
+
|
|
3
11
|
## 82.0.2 - 2026-03-02
|
|
4
12
|
|
|
5
13
|
### 🐞 Bug Fixes
|
|
@@ -24,6 +24,7 @@ export declare class GroupingChooserLocalModel extends HoistModel {
|
|
|
24
24
|
getDimSelectOpts(dims?: string[]): SelectOption[];
|
|
25
25
|
toggleEditor(): void;
|
|
26
26
|
closeEditor(): void;
|
|
27
|
+
setPendingValue(value: string[]): void;
|
|
27
28
|
addPendingDim(dimName: string): void;
|
|
28
29
|
replacePendingDimAtIdx(dimName: string, idx: number): void;
|
|
29
30
|
removePendingDimAtIdx(idx: number): void;
|
|
@@ -102,6 +102,12 @@ export class GroupingChooserLocalModel extends HoistModel {
|
|
|
102
102
|
//-------------------------
|
|
103
103
|
// Value handling
|
|
104
104
|
//-------------------------
|
|
105
|
+
|
|
106
|
+
@action
|
|
107
|
+
setPendingValue(value: string[]) {
|
|
108
|
+
this.pendingValue = value;
|
|
109
|
+
}
|
|
110
|
+
|
|
105
111
|
@action
|
|
106
112
|
addPendingDim(dimName: string) {
|
|
107
113
|
if (!dimName) return;
|
|
@@ -269,7 +269,8 @@ export class DashCanvasModel
|
|
|
269
269
|
|
|
270
270
|
this.addReaction({
|
|
271
271
|
track: () => this.viewState,
|
|
272
|
-
run: () => (this.state = this.buildState())
|
|
272
|
+
run: () => (this.state = this.buildState()),
|
|
273
|
+
fireImmediately: true
|
|
273
274
|
});
|
|
274
275
|
|
|
275
276
|
// Used to make the height of RGL available to the gridBackground component
|
|
@@ -410,7 +410,10 @@ const favoriteMenuItem = hoistCmp.factory<GroupingChooserLocalModel>({
|
|
|
410
410
|
return menuItem({
|
|
411
411
|
text: label,
|
|
412
412
|
className: 'xh-grouping-chooser__favorites__favorite',
|
|
413
|
-
onClick: () =>
|
|
413
|
+
onClick: () => {
|
|
414
|
+
model.setPendingValue(value);
|
|
415
|
+
model.commitPendingValueAndClose();
|
|
416
|
+
},
|
|
414
417
|
labelElement: button({
|
|
415
418
|
icon: Icon.delete(),
|
|
416
419
|
intent: 'danger',
|