@xh/hoist 77.0.1 → 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/data/cube/View.ts CHANGED
@@ -373,7 +373,7 @@ export class View extends HoistBase {
373
373
  if (isNil(bucketVal)) {
374
374
  ret.push(row);
375
375
  } else {
376
- const bucketRows = buckets[bucketVal] ??= [];
376
+ const bucketRows = (buckets[bucketVal] ??= []);
377
377
  bucketRows.push(row);
378
378
  }
379
379
  });
@@ -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?: string | ((recs: StoreRecord[]) => string);
43
- del?: string | ((recs: StoreRecord[]) => string);
44
- edit?: string | ((recs: StoreRecord[]) => string);
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 > 1
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;
@@ -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 = '11.1.0';
13
- const MAX_VERSION = '11.*.*';
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "77.0.1",
3
+ "version": "77.1.1",
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",