@xh/hoist 73.0.0-SNAPSHOT.1746050068813 → 73.0.0-SNAPSHOT.1746051498287

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
@@ -26,6 +26,7 @@ and new properties on `TrackLog`.
26
26
 
27
27
  * Fixed drag-and-drop usability issues with the mobile `ColChooser`.
28
28
  * Made `GridModel.defaultGroupSortFn` null-safe and improved type signature.
29
+ * Disable `dashCanvasAddViewButton` if there are no `menuItems` to show.
29
30
 
30
31
  ### ⚙️ Typescript API Adjustments
31
32
 
package/admin/AppModel.ts CHANGED
@@ -170,7 +170,8 @@ export class AppModel extends HoistAppModel {
170
170
  async initViewManagerModelsAsync() {
171
171
  this.viewManagerModels.activityTracking = await ViewManagerModel.createAsync({
172
172
  type: 'xhAdminActivityTrackingView',
173
- typeDisplayName: 'View'
173
+ typeDisplayName: 'View',
174
+ manageGlobal: XH.getUser().isHoistAdmin
174
175
  });
175
176
  }
176
177
  }
@@ -43,6 +43,7 @@
43
43
  flex: none;
44
44
  margin-left: 5px;
45
45
  margin-right: 5px;
46
+ gap: 5px;
46
47
 
47
48
  &:first-child {
48
49
  margin-top: 5px;
@@ -3,7 +3,7 @@ import {form, FormModel} from '@xh/hoist/cmp/form';
3
3
  import {br, filler, hbox, hspacer, placeholder, span, vspacer} from '@xh/hoist/cmp/layout';
4
4
  import {hoistCmp, uses} from '@xh/hoist/core';
5
5
  import {FieldType} from '@xh/hoist/data';
6
- import {button} from '@xh/hoist/desktop/cmp/button';
6
+ import {button, buttonGroup} from '@xh/hoist/desktop/cmp/button';
7
7
  import {formField} from '@xh/hoist/desktop/cmp/form';
8
8
  import {checkbox, select, textInput} from '@xh/hoist/desktop/cmp/input';
9
9
  import {panel} from '@xh/hoist/desktop/cmp/panel';
@@ -84,18 +84,19 @@ const formPanel = hoistCmp.factory<DataFieldsEditorModel>(({model}) => {
84
84
  marginTop: 8,
85
85
  item: checkbox({label: 'dimension'})
86
86
  }),
87
- button({
88
- icon: Icon.copy(),
87
+ buttonGroup({
88
+ outlined: true,
89
89
  marginTop: 3,
90
- marginRight: 4,
91
- onClick: () => model.cloneField(dfModel)
92
- }),
93
- button({
94
- icon: Icon.delete(),
95
- intent: 'danger',
96
- marginTop: 3,
97
- marginRight: 4,
98
- onClick: () => dataFields.remove(dfModel)
90
+ items: [
91
+ button({
92
+ icon: Icon.copy(),
93
+ onClick: () => model.cloneField(dfModel)
94
+ }),
95
+ button({
96
+ icon: Icon.delete({intent: 'danger'}),
97
+ onClick: () => dataFields.remove(dfModel)
98
+ })
99
+ ]
99
100
  })
100
101
  ]
101
102
  })
@@ -41,6 +41,7 @@ export const [DashCanvasAddViewButton, dashCanvasAddViewButton] =
41
41
  ref,
42
42
  icon: withDefault(icon, Icon.add()),
43
43
  text: withDefault(text, dashCanvasModel.addViewButtonText),
44
+ disabled: !menuItems.length,
44
45
  ...rest
45
46
  }),
46
47
  content: contextMenu({menuItems})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1746050068813",
3
+ "version": "73.0.0-SNAPSHOT.1746051498287",
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",