@xh/hoist 73.0.0-SNAPSHOT.1738169109530 → 73.0.0-SNAPSHOT.1738198923410
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 -0
- package/admin/tabs/general/config/ConfigPanel.ts +4 -30
- package/admin/tabs/userData/jsonblob/JsonBlobPanel.ts +10 -47
- package/admin/tabs/userData/prefs/UserPreferencePanel.ts +15 -45
- package/admin/tabs/userData/roles/RoleModel.ts +3 -3
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/admin/jsonsearch/JsonSearchPanel.ts +0 -300
- package/admin/jsonsearch/impl/JsonSearchPanelImplModel.ts +0 -161
- package/build/types/admin/jsonsearch/JsonSearchPanel.d.ts +0 -18
- package/build/types/admin/jsonsearch/impl/JsonSearchPanelImplModel.d.ts +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -4,14 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Copyright © 2025 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
|
-
import * as AdminCol from '@xh/hoist/admin/columns';
|
|
8
|
-
import * as Col from '@xh/hoist/admin/columns/Rest';
|
|
9
|
-
import {jsonSearchButton} from '@xh/hoist/admin/jsonsearch/JsonSearchPanel';
|
|
10
7
|
import {fragment} from '@xh/hoist/cmp/layout';
|
|
11
8
|
import {creates, hoistCmp} from '@xh/hoist/core';
|
|
12
9
|
import {button} from '@xh/hoist/desktop/cmp/button';
|
|
13
10
|
import {restGrid} from '@xh/hoist/desktop/cmp/rest';
|
|
14
|
-
import {toolbarSep} from '@xh/hoist/desktop/cmp/toolbar';
|
|
15
11
|
import {Icon} from '@xh/hoist/icon';
|
|
16
12
|
import {differ} from '../../../differ/Differ';
|
|
17
13
|
import {regroupDialog} from '../../../regroup/RegroupDialog';
|
|
@@ -24,35 +20,13 @@ export const configPanel = hoistCmp.factory({
|
|
|
24
20
|
return fragment(
|
|
25
21
|
restGrid({
|
|
26
22
|
testId: 'config',
|
|
27
|
-
extraToolbarItems: () =>
|
|
28
|
-
button({
|
|
23
|
+
extraToolbarItems: () => {
|
|
24
|
+
return button({
|
|
29
25
|
icon: Icon.diff(),
|
|
30
26
|
text: 'Compare w/ Remote',
|
|
31
27
|
onClick: () => model.openDiffer()
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
jsonSearchButton({
|
|
35
|
-
subjectName: 'Config',
|
|
36
|
-
docSearchUrl: 'jsonSearch/searchConfigs',
|
|
37
|
-
gridModelConfig: {
|
|
38
|
-
sortBy: ['groupName', 'name', 'owner'],
|
|
39
|
-
columns: [
|
|
40
|
-
{
|
|
41
|
-
field: {name: 'owner', type: 'string'},
|
|
42
|
-
width: 200
|
|
43
|
-
},
|
|
44
|
-
{...AdminCol.groupName},
|
|
45
|
-
{...AdminCol.name},
|
|
46
|
-
{
|
|
47
|
-
field: {name: 'json', type: 'string'},
|
|
48
|
-
hidden: true
|
|
49
|
-
},
|
|
50
|
-
{...Col.lastUpdated}
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
groupByOptions: ['owner', 'groupName', 'name']
|
|
54
|
-
})
|
|
55
|
-
]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
56
30
|
}),
|
|
57
31
|
differ({omit: !model.differModel}),
|
|
58
32
|
regroupDialog()
|
|
@@ -5,15 +5,10 @@
|
|
|
5
5
|
* Copyright © 2025 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
9
|
-
import * as AdminCol from '@xh/hoist/admin/columns';
|
|
10
|
-
import {hframe} from '@xh/hoist/cmp/layout';
|
|
8
|
+
import {fragment} from '@xh/hoist/cmp/layout';
|
|
11
9
|
import {creates, hoistCmp} from '@xh/hoist/core';
|
|
12
10
|
import {button} from '@xh/hoist/desktop/cmp/button';
|
|
13
|
-
import {jsonSearchButton} from '@xh/hoist/admin/jsonsearch/JsonSearchPanel';
|
|
14
|
-
import {panel} from '@xh/hoist/desktop/cmp/panel';
|
|
15
11
|
import {restGrid} from '@xh/hoist/desktop/cmp/rest';
|
|
16
|
-
import {toolbarSep} from '@xh/hoist/desktop/cmp/toolbar';
|
|
17
12
|
import {Icon} from '@xh/hoist/icon';
|
|
18
13
|
import {differ} from '../../../differ/Differ';
|
|
19
14
|
import {JsonBlobModel} from './JsonBlobModel';
|
|
@@ -22,47 +17,15 @@ export const jsonBlobPanel = hoistCmp.factory({
|
|
|
22
17
|
model: creates(JsonBlobModel),
|
|
23
18
|
|
|
24
19
|
render({model}) {
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
toolbarSep(),
|
|
35
|
-
jsonSearchButton({
|
|
36
|
-
subjectName: 'JSON Blob',
|
|
37
|
-
docSearchUrl: 'jsonSearch/searchBlobs',
|
|
38
|
-
gridModelConfig: {
|
|
39
|
-
sortBy: ['type', 'name', 'owner'],
|
|
40
|
-
columns: [
|
|
41
|
-
{
|
|
42
|
-
field: {name: 'token', type: 'string'},
|
|
43
|
-
hidden: true,
|
|
44
|
-
width: 100
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
field: {name: 'type', type: 'string'},
|
|
48
|
-
width: 200
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
field: {name: 'owner', type: 'string'},
|
|
52
|
-
width: 200
|
|
53
|
-
},
|
|
54
|
-
{...AdminCol.name},
|
|
55
|
-
{
|
|
56
|
-
field: {name: 'json', type: 'string'},
|
|
57
|
-
hidden: true
|
|
58
|
-
},
|
|
59
|
-
{...Col.lastUpdated}
|
|
60
|
-
]
|
|
61
|
-
},
|
|
62
|
-
groupByOptions: ['owner', 'type', 'name']
|
|
63
|
-
})
|
|
64
|
-
]
|
|
65
|
-
})
|
|
20
|
+
return fragment(
|
|
21
|
+
restGrid({
|
|
22
|
+
extraToolbarItems: () => {
|
|
23
|
+
return button({
|
|
24
|
+
icon: Icon.diff(),
|
|
25
|
+
text: 'Compare w/ Remote',
|
|
26
|
+
onClick: () => model.openDiffer()
|
|
27
|
+
});
|
|
28
|
+
}
|
|
66
29
|
}),
|
|
67
30
|
differ({omit: !model.differModel})
|
|
68
31
|
);
|
|
@@ -4,62 +4,32 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Copyright © 2025 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
import * as Col from '@xh/hoist/admin/columns/Rest';
|
|
9
|
-
import * as AdminCol from '@xh/hoist/admin/columns';
|
|
10
7
|
import {prefEditorDialog} from '@xh/hoist/admin/tabs/userData/prefs/editor/PrefEditorDialog';
|
|
11
8
|
import {UserPreferenceModel} from '@xh/hoist/admin/tabs/userData/prefs/UserPreferenceModel';
|
|
12
|
-
import {hframe} from '@xh/hoist/cmp/layout';
|
|
13
9
|
import {creates, hoistCmp} from '@xh/hoist/core';
|
|
14
10
|
import {button} from '@xh/hoist/desktop/cmp/button';
|
|
15
|
-
import {jsonSearchButton} from '@xh/hoist/admin/jsonsearch/JsonSearchPanel';
|
|
16
11
|
import {panel} from '@xh/hoist/desktop/cmp/panel';
|
|
17
12
|
import {restGrid} from '@xh/hoist/desktop/cmp/rest';
|
|
18
|
-
import {toolbarSep} from '@xh/hoist/desktop/cmp/toolbar';
|
|
19
13
|
import {Icon} from '@xh/hoist/icon';
|
|
20
14
|
|
|
21
15
|
export const userPreferencePanel = hoistCmp.factory({
|
|
22
16
|
model: creates(UserPreferenceModel),
|
|
23
17
|
|
|
24
18
|
render({model}) {
|
|
25
|
-
return
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
sortBy: ['groupName', 'name', 'owner'],
|
|
41
|
-
columns: [
|
|
42
|
-
{
|
|
43
|
-
field: {name: 'owner', type: 'string'},
|
|
44
|
-
width: 200
|
|
45
|
-
},
|
|
46
|
-
{...AdminCol.groupName},
|
|
47
|
-
{...AdminCol.name},
|
|
48
|
-
{
|
|
49
|
-
field: {name: 'json', type: 'string'},
|
|
50
|
-
hidden: true
|
|
51
|
-
},
|
|
52
|
-
{...Col.lastUpdated}
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
groupByOptions: ['owner', 'groupName', 'name']
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
}),
|
|
59
|
-
prefEditorDialog()
|
|
60
|
-
],
|
|
61
|
-
mask: 'onLoad'
|
|
62
|
-
})
|
|
63
|
-
);
|
|
19
|
+
return panel({
|
|
20
|
+
items: [
|
|
21
|
+
restGrid({
|
|
22
|
+
extraToolbarItems: () => {
|
|
23
|
+
return button({
|
|
24
|
+
icon: Icon.gear(),
|
|
25
|
+
text: 'Configure',
|
|
26
|
+
onClick: () => (model.showEditorDialog = true)
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}),
|
|
30
|
+
prefEditorDialog()
|
|
31
|
+
],
|
|
32
|
+
mask: 'onLoad'
|
|
33
|
+
});
|
|
64
34
|
}
|
|
65
35
|
});
|
|
@@ -80,7 +80,7 @@ export class RoleModel extends HoistModel {
|
|
|
80
80
|
runInAction(() => {
|
|
81
81
|
this.allRoles = this.processRolesFromServer(data);
|
|
82
82
|
});
|
|
83
|
-
this.displayRoles();
|
|
83
|
+
this.displayRoles(loadSpec.isRefresh);
|
|
84
84
|
await this.gridModel.preSelectFirstAsync();
|
|
85
85
|
} catch (e) {
|
|
86
86
|
if (loadSpec.isStale) return;
|
|
@@ -212,13 +212,13 @@ export class RoleModel extends HoistModel {
|
|
|
212
212
|
//------------------
|
|
213
213
|
// Implementation
|
|
214
214
|
//------------------
|
|
215
|
-
private displayRoles() {
|
|
215
|
+
private displayRoles(isRefresh?: boolean) {
|
|
216
216
|
const {gridModel} = this,
|
|
217
217
|
gridData = this.showInGroups
|
|
218
218
|
? this.processRolesForTreeGrid(this.allRoles)
|
|
219
219
|
: this.allRoles;
|
|
220
220
|
gridModel.loadData(gridData);
|
|
221
|
-
gridModel.expandAll();
|
|
221
|
+
if (!isRefresh) gridModel.expandAll();
|
|
222
222
|
gridModel.autosizeAsync({includeCollapsedChildren: true});
|
|
223
223
|
}
|
|
224
224
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "73.0.0-SNAPSHOT.
|
|
3
|
+
"version": "73.0.0-SNAPSHOT.1738198923410",
|
|
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",
|