@xh/hoist 77.0.0 → 77.1.1
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 +28 -11
- package/admin/tabs/cluster/instances/services/ServiceModel.ts +7 -1
- package/admin/tabs/general/config/ConfigPanelModel.ts +31 -27
- package/admin/tabs/userData/prefs/UserPreferenceModel.ts +10 -6
- package/admin/tabs/userData/prefs/editor/PrefEditorModel.ts +26 -19
- package/build/types/core/persist/PersistOptions.d.ts +2 -2
- package/build/types/data/StoreRecord.d.ts +8 -0
- package/build/types/desktop/cmp/rest/RestGridModel.d.ts +5 -4
- package/build/types/desktop/cmp/rest/impl/RestFormModel.d.ts +3 -3
- package/cmp/chart/impl/copyToClipboard.ts +6 -13
- package/cmp/grid/Grid.ts +1 -1
- package/cmp/tab/TabModel.ts +2 -0
- package/cmp/treemap/TreeMap.ts +10 -2
- package/cmp/treemap/TreeMapModel.ts +2 -2
- package/core/persist/PersistOptions.ts +2 -2
- package/data/Store.ts +29 -8
- package/data/StoreRecord.ts +23 -10
- package/data/cube/View.ts +1 -1
- package/desktop/cmp/rest/RestGridModel.ts +6 -9
- package/kit/highcharts/index.ts +2 -2
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
package/data/cube/View.ts
CHANGED
|
@@ -5,15 +5,16 @@
|
|
|
5
5
|
* Copyright © 2025 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import {RowDoubleClickedEvent} from '@xh/hoist/kit/ag-grid';
|
|
9
8
|
import {BaseFieldConfig} from '@xh/hoist/cmp/form';
|
|
10
9
|
import {GridConfig, GridModel} from '@xh/hoist/cmp/grid';
|
|
11
10
|
import {ElementSpec, HoistModel, managed, PlainObject, XH} from '@xh/hoist/core';
|
|
12
11
|
import '@xh/hoist/desktop/register';
|
|
13
12
|
import {RecordAction, RecordActionSpec, StoreRecord} from '@xh/hoist/data';
|
|
13
|
+
import {RowDoubleClickedEvent} from '@xh/hoist/kit/ag-grid';
|
|
14
14
|
import {ExportOptions} from '@xh/hoist/svc';
|
|
15
15
|
import {pluralize, throwIf, withDefault} from '@xh/hoist/utils/js';
|
|
16
16
|
import {isFunction} from 'lodash';
|
|
17
|
+
import {ReactNode} from 'react';
|
|
17
18
|
import {FormFieldProps} from '../form';
|
|
18
19
|
import {addAction, deleteAction, editAction, viewAction} from './Actions';
|
|
19
20
|
import {RestStore, RestStoreConfig} from './data/RestStore';
|
|
@@ -39,9 +40,9 @@ export interface RestGridConfig extends GridConfig {
|
|
|
39
40
|
|
|
40
41
|
/** Warning to display before actions on a selection of records. */
|
|
41
42
|
actionWarning?: {
|
|
42
|
-
add?:
|
|
43
|
-
del?:
|
|
44
|
-
edit?:
|
|
43
|
+
add?: ReactNode | ((recs: StoreRecord[]) => ReactNode);
|
|
44
|
+
del?: ReactNode | ((recs: StoreRecord[]) => ReactNode);
|
|
45
|
+
edit?: ReactNode | ((recs: StoreRecord[]) => ReactNode);
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
/** Name that describes records in this grid. */
|
|
@@ -109,11 +110,7 @@ export class RestGridModel extends HoistModel {
|
|
|
109
110
|
add: null,
|
|
110
111
|
edit: null,
|
|
111
112
|
del: recs =>
|
|
112
|
-
recs.length
|
|
113
|
-
? `Are you sure you want to delete the selected ${recs.length} ${pluralize(
|
|
114
|
-
this.unit
|
|
115
|
-
)}?`
|
|
116
|
-
: `Are you sure you want to delete the selected ${this.unit}?`
|
|
113
|
+
`Are you sure you want to delete ${pluralize(`selected ${this.unit}`, recs.length, true)}?`
|
|
117
114
|
};
|
|
118
115
|
|
|
119
116
|
@managed gridModel: GridModel = null;
|
package/kit/highcharts/index.ts
CHANGED
|
@@ -9,8 +9,8 @@ import {checkVersion, logError} from '@xh/hoist/utils/js';
|
|
|
9
9
|
|
|
10
10
|
export let Highcharts = null;
|
|
11
11
|
|
|
12
|
-
const MIN_VERSION = '
|
|
13
|
-
const MAX_VERSION = '
|
|
12
|
+
const MIN_VERSION = '12.4.0';
|
|
13
|
+
const MAX_VERSION = '12.*.*';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Expose application versions of Highcharts to Hoist.
|