@xh/hoist 79.0.0-SNAPSHOT.1765893892330 → 79.0.0-SNAPSHOT.1766020485210
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
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## 79.0.0-SNAPSHOT - unreleased
|
|
4
4
|
|
|
5
|
+
### 🎁 New Features
|
|
6
|
+
|
|
7
|
+
* Enhance `LocalDate` with `addWeekdays` and `subtractWeekdays` methods.
|
|
8
|
+
|
|
5
9
|
### 💥 Breaking Changes
|
|
6
10
|
|
|
7
11
|
* Renamed `GridModel.applyColumnStateChanges()` to `updateColumnState()` for clarity and better
|
|
@@ -13,6 +17,7 @@
|
|
|
13
17
|
* Fixed column chooser to display columns in the same order as they appear in the grid.
|
|
14
18
|
* Defaulted Highcharts font to Hoist default (--xh-font-family)
|
|
15
19
|
* Tweaked `GridFindField` to forward a provided `ref` to its underlying `TextInput`.
|
|
20
|
+
* Fixed bug where `SelectEditor` with `queryFn` would not commit on enter keydown.
|
|
16
21
|
|
|
17
22
|
### ⚙️ Technical
|
|
18
23
|
|
|
@@ -66,6 +66,8 @@ export declare class LocalDate {
|
|
|
66
66
|
get isLocalDate(): boolean;
|
|
67
67
|
add(value: any, unit?: string): LocalDate;
|
|
68
68
|
subtract(value: any, unit?: string): LocalDate;
|
|
69
|
+
addWeekdays(value: any): LocalDate;
|
|
70
|
+
subtractWeekdays(value: any): LocalDate;
|
|
69
71
|
startOf(unit: any): LocalDate;
|
|
70
72
|
startOfMonth(): LocalDate;
|
|
71
73
|
startOfQuarter(): LocalDate;
|
|
@@ -761,8 +761,12 @@ export class Column {
|
|
|
761
761
|
const {gridModel, colId} = this,
|
|
762
762
|
editor = gridModel.agApi.getCellEditorInstances({columns: [colId]})[0],
|
|
763
763
|
// @ts-ignore -- private
|
|
764
|
-
|
|
765
|
-
|
|
764
|
+
reactSelectState = editor?.componentInstance?.reactSelect?.state;
|
|
765
|
+
// menuIsOpen will be undefined on AsyncSelect due to a react-select bug,
|
|
766
|
+
// but loadedInputValue should be truthy when the menu is open
|
|
767
|
+
if (reactSelectState?.menuIsOpen || reactSelectState?.loadedInputValue) {
|
|
768
|
+
return true;
|
|
769
|
+
}
|
|
766
770
|
|
|
767
771
|
// Allow shift+enter to add newlines in certain editors
|
|
768
772
|
if (event.shiftKey && event.key === 'Enter') return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "79.0.0-SNAPSHOT.
|
|
3
|
+
"version": "79.0.0-SNAPSHOT.1766020485210",
|
|
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",
|