@xh/hoist 79.0.0-SNAPSHOT.1766170418182 → 79.0.0-SNAPSHOT.1766259546947
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 +4 -3
- package/build/types/data/UrlStore.d.ts +1 -1
- package/cmp/ag-grid/AgGrid.ts +1 -4
- package/cmp/grid/impl/ColumnGroupHeader.ts +1 -2
- package/cmp/grid/impl/MenuSupport.ts +1 -1
- package/core/HoistProps.ts +2 -1
- package/core/model/HoistModel.ts +8 -1
- package/data/UrlStore.ts +9 -1
- package/desktop/cmp/button/Button.ts +1 -5
- package/desktop/cmp/button/ButtonGroup.ts +2 -1
- package/desktop/cmp/button/grid/ColAutosizeButton.ts +2 -2
- package/desktop/cmp/dash/container/DashContainerModel.ts +4 -2
- package/desktop/cmp/input/ButtonGroupInput.ts +1 -2
- package/desktop/cmp/rest/RestGrid.ts +1 -2
- package/kit/react-dates/datepicker.css +530 -528
- package/mobile/appcontainer/VersionBar.ts +1 -1
- package/mobile/cmp/button/Button.ts +1 -3
- package/mobile/cmp/button/grid/ColAutosizeButton.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
allows for dynamic addition, removal, and drag-and-drop reordering of tabs with the ability to
|
|
10
10
|
persist "favorited" tab state across sessions. Additionally, existing static `TabSwitcher` now
|
|
11
11
|
supports context-menu items. See `TabContainerConfig.switcher`.
|
|
12
|
+
* Changed the icon used for the Grid autosize buttons and menu option (to 🪄).
|
|
12
13
|
|
|
13
14
|
### 💥 Breaking Changes
|
|
14
15
|
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
* Renamed `GridModel.applyColumnStateChanges()` to `updateColumnState()` for clarity and better
|
|
20
21
|
symmetry with `setColumnState()`. The prior method remains as an alias but is now deprecated and
|
|
21
22
|
scheduled for removal in v82.
|
|
22
|
-
* `TabSwitcherProps`
|
|
23
|
+
* Moved `TabSwitcherProps` to `cmp/tab/Types.ts` but maintained export from `cmp/tab/index.ts`.
|
|
23
24
|
Some apps may need to update their imports.
|
|
24
25
|
* `TabContainerConfig.switcher` has been repurposed to accept a `TabSwitcherConfig`. To pass
|
|
25
26
|
`TabSwitcherProps` via a parent `TabContainer`, use `TabContainerProps.switcher`.
|
|
@@ -27,8 +28,8 @@
|
|
|
27
28
|
### 🐞 Bug Fixes
|
|
28
29
|
|
|
29
30
|
* Fixed column chooser to display columns in the same order as they appear in the grid.
|
|
30
|
-
* Defaulted Highcharts font to Hoist default
|
|
31
|
-
* Restore previous behavior of
|
|
31
|
+
* Defaulted Highcharts font to Hoist default `--xh-font-family`.
|
|
32
|
+
* Restore previous behavior of Highcharts treemap labels with regard to visibility and positioning.
|
|
32
33
|
* Tweaked `GridFindField` to forward a provided `ref` to its underlying `TextInput`.
|
|
33
34
|
* Fixed bug where `SelectEditor` with `queryFn` would not commit on enter keydown.
|
|
34
35
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Loadable, LoadSpec, LoadSupport, PlainObject, TaskObserver } from '@xh/hoist/core';
|
|
2
2
|
import { Store, StoreConfig } from './Store';
|
|
3
3
|
export interface UrlStoreConfig extends StoreConfig {
|
|
4
4
|
/** URL from which to load data. */
|
package/cmp/ag-grid/AgGrid.ts
CHANGED
|
@@ -26,10 +26,7 @@ import './AgGrid.scss';
|
|
|
26
26
|
import {AgGridModel} from './AgGridModel';
|
|
27
27
|
|
|
28
28
|
export interface AgGridProps
|
|
29
|
-
extends HoistProps<AgGridModel>,
|
|
30
|
-
GridOptions,
|
|
31
|
-
LayoutProps,
|
|
32
|
-
TestSupportProps {}
|
|
29
|
+
extends HoistProps<AgGridModel>, GridOptions, LayoutProps, TestSupportProps {}
|
|
33
30
|
|
|
34
31
|
/**
|
|
35
32
|
* Minimal wrapper for AgGridReact, supporting direct use of the ag-Grid component with limited
|
|
@@ -16,8 +16,7 @@ import {ReactNode} from 'react';
|
|
|
16
16
|
import type {AgProvidedColumnGroup, IHeaderGroupParams} from '@xh/hoist/kit/ag-grid';
|
|
17
17
|
|
|
18
18
|
export interface ColumnGroupHeaderProps
|
|
19
|
-
extends HoistProps<ColumnGroupHeaderModel>,
|
|
20
|
-
IHeaderGroupParams {
|
|
19
|
+
extends HoistProps<ColumnGroupHeaderModel>, IHeaderGroupParams {
|
|
21
20
|
gridModel: GridModel;
|
|
22
21
|
xhColumnGroup: ColumnGroup;
|
|
23
22
|
}
|
|
@@ -110,7 +110,7 @@ function replaceHoistToken(token: string, gridModel: GridModel): Some<RecordActi
|
|
|
110
110
|
case 'autosizeColumns':
|
|
111
111
|
return new RecordAction({
|
|
112
112
|
text: 'Autosize Columns',
|
|
113
|
-
icon: Icon.
|
|
113
|
+
icon: Icon.magic(),
|
|
114
114
|
hidden: !gridModel?.autosizeEnabled,
|
|
115
115
|
actionFn: () => gridModel.autosizeAsync({showMask: true})
|
|
116
116
|
});
|
package/core/HoistProps.ts
CHANGED
|
@@ -67,7 +67,8 @@ export interface DefaultHoistProps<M extends HoistModel = HoistModel> extends Ho
|
|
|
67
67
|
* which also supports this interface. Eventually, they should be passed to a Box class.
|
|
68
68
|
*/
|
|
69
69
|
export interface BoxProps
|
|
70
|
-
extends
|
|
70
|
+
extends
|
|
71
|
+
LayoutProps,
|
|
71
72
|
TestSupportProps,
|
|
72
73
|
Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'contextMenu'> {}
|
|
73
74
|
|
package/core/model/HoistModel.ts
CHANGED
|
@@ -7,7 +7,14 @@
|
|
|
7
7
|
import {action, computed, comparer, makeObservable, observable} from '@xh/hoist/mobx';
|
|
8
8
|
import {apiDeprecated, warnIf} from '@xh/hoist/utils/js';
|
|
9
9
|
import {isFunction} from 'lodash';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
DefaultHoistProps,
|
|
12
|
+
HoistBase,
|
|
13
|
+
LoadSpecConfig,
|
|
14
|
+
managed,
|
|
15
|
+
PlainObject,
|
|
16
|
+
TaskObserver
|
|
17
|
+
} from '../';
|
|
11
18
|
import {instanceManager} from '../impl/InstanceManager';
|
|
12
19
|
import {Loadable, LoadSpec, LoadSupport} from '../load';
|
|
13
20
|
import {ModelSelector} from './';
|
package/data/UrlStore.ts
CHANGED
|
@@ -5,7 +5,15 @@
|
|
|
5
5
|
* Copyright © 2025 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
Loadable,
|
|
10
|
+
LoadSpec,
|
|
11
|
+
LoadSupport,
|
|
12
|
+
managed,
|
|
13
|
+
PlainObject,
|
|
14
|
+
TaskObserver,
|
|
15
|
+
XH
|
|
16
|
+
} from '@xh/hoist/core';
|
|
9
17
|
import {apiDeprecated} from '@xh/hoist/utils/js';
|
|
10
18
|
|
|
11
19
|
import {Store, StoreConfig} from './Store';
|
|
@@ -23,11 +23,7 @@ import {ReactElement, ReactNode} from 'react';
|
|
|
23
23
|
import './Button.scss';
|
|
24
24
|
|
|
25
25
|
export interface ButtonProps<M extends HoistModel = null>
|
|
26
|
-
extends HoistProps<M>,
|
|
27
|
-
StyleProps,
|
|
28
|
-
LayoutProps,
|
|
29
|
-
TestSupportProps,
|
|
30
|
-
Omit<BpButtonProps, 'ref'> {
|
|
26
|
+
extends HoistProps<M>, StyleProps, LayoutProps, TestSupportProps, Omit<BpButtonProps, 'ref'> {
|
|
31
27
|
active?: boolean;
|
|
32
28
|
autoFocus?: boolean;
|
|
33
29
|
disabled?: boolean;
|
|
@@ -20,7 +20,8 @@ import {splitLayoutProps} from '@xh/hoist/utils/react';
|
|
|
20
20
|
import {SetOptional} from 'type-fest';
|
|
21
21
|
|
|
22
22
|
export interface ButtonGroupProps<M extends HoistModel = null>
|
|
23
|
-
extends
|
|
23
|
+
extends
|
|
24
|
+
HoistProps<M>,
|
|
24
25
|
LayoutProps,
|
|
25
26
|
StyleProps,
|
|
26
27
|
TestSupportProps,
|
|
@@ -58,8 +58,8 @@ export const [ColAutosizeButton, colAutosizeButton] = hoistCmp.withFactory<ColAu
|
|
|
58
58
|
|
|
59
59
|
return button({
|
|
60
60
|
ref,
|
|
61
|
-
icon: withDefault(icon, Icon.
|
|
62
|
-
title: withDefault(title, 'Autosize
|
|
61
|
+
icon: withDefault(icon, Icon.magic()),
|
|
62
|
+
title: withDefault(title, 'Autosize columns'),
|
|
63
63
|
disabled: withDefault(disabled, gridModel?.empty),
|
|
64
64
|
className,
|
|
65
65
|
onClick,
|
|
@@ -49,8 +49,10 @@ import {
|
|
|
49
49
|
} from './impl/DashContainerUtils';
|
|
50
50
|
import {dashContainerView} from './impl/DashContainerView';
|
|
51
51
|
|
|
52
|
-
export interface DashContainerConfig
|
|
53
|
-
|
|
52
|
+
export interface DashContainerConfig extends DashConfig<
|
|
53
|
+
DashContainerViewSpec,
|
|
54
|
+
DashContainerViewState
|
|
55
|
+
> {
|
|
54
56
|
/** Strategy for rendering DashContainerViews. Can also be set per-view in `viewSpecs`*/
|
|
55
57
|
renderMode?: RenderMode;
|
|
56
58
|
|
|
@@ -14,8 +14,7 @@ import {castArray, filter, isEmpty, without} from 'lodash';
|
|
|
14
14
|
import {Children, cloneElement, isValidElement} from 'react';
|
|
15
15
|
|
|
16
16
|
export interface ButtonGroupInputProps
|
|
17
|
-
extends Omit<ButtonGroupProps<HoistModel>, 'onChange'>,
|
|
18
|
-
HoistInputProps {
|
|
17
|
+
extends Omit<ButtonGroupProps<HoistModel>, 'onChange'>, HoistInputProps {
|
|
19
18
|
/**
|
|
20
19
|
* True to allow buttons to be unselected (aka inactivated). Defaults to false.
|
|
21
20
|
* Does not apply when enableMulti: true.
|
|
@@ -21,8 +21,7 @@ import {restGridToolbar} from './impl/RestGridToolbar';
|
|
|
21
21
|
import {RestGridModel} from './RestGridModel';
|
|
22
22
|
|
|
23
23
|
export interface RestGridProps
|
|
24
|
-
extends HoistProps<RestGridModel>,
|
|
25
|
-
Omit<PanelProps, 'model' | 'modelConfig' | 'modelRef'> {
|
|
24
|
+
extends HoistProps<RestGridModel>, Omit<PanelProps, 'model' | 'modelConfig' | 'modelRef'> {
|
|
26
25
|
/**
|
|
27
26
|
* This constitutes an 'escape hatch' for applications that need to get to the underlying
|
|
28
27
|
* AG Grid API. Use with care - settings made here might be overwritten and/or interfere with
|