@xh/hoist 73.0.0-SNAPSHOT.1738003189230 → 73.0.0-SNAPSHOT.1738003454248
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/admin/tabs/userData/jsonblob/JsonBlobPanel.ts +9 -47
- package/admin/tabs/userData/prefs/UserPreferencePanel.ts +15 -42
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/admin/jsonsearch/JsonSearchPanel.ts +0 -217
- package/admin/jsonsearch/impl/JsonSearchPanelImplModel.ts +0 -141
- package/build/types/admin/jsonsearch/JsonSearchPanel.d.ts +0 -3
- package/build/types/admin/jsonsearch/impl/JsonSearchPanelImplModel.d.ts +0 -28
|
@@ -5,13 +5,9 @@
|
|
|
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 {jsonSearchPanel} 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
12
|
import {Icon} from '@xh/hoist/icon';
|
|
17
13
|
import {differ} from '../../../differ/Differ';
|
|
@@ -21,48 +17,14 @@ export const jsonBlobPanel = hoistCmp.factory({
|
|
|
21
17
|
model: creates(JsonBlobModel),
|
|
22
18
|
|
|
23
19
|
render({model}) {
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
}),
|
|
36
|
-
jsonSearchPanel({
|
|
37
|
-
docSearchUrl: 'jsonBlobSearchAdmin/searchByJsonPath',
|
|
38
|
-
matchingNodesUrl: 'jsonBlobSearchAdmin/getMatchingNodes',
|
|
39
|
-
gridModelConfig: {
|
|
40
|
-
sortBy: ['owner', 'name'],
|
|
41
|
-
store: {
|
|
42
|
-
idSpec: 'token'
|
|
43
|
-
},
|
|
44
|
-
groupBy: 'type',
|
|
45
|
-
columns: [
|
|
46
|
-
{
|
|
47
|
-
field: {name: 'token', type: 'string'},
|
|
48
|
-
hidden: true,
|
|
49
|
-
width: 100
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
field: {name: 'type', type: 'string'},
|
|
53
|
-
width: 200
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
field: {name: 'owner', type: 'string'},
|
|
57
|
-
width: 200
|
|
58
|
-
},
|
|
59
|
-
{...AdminCol.name},
|
|
60
|
-
{
|
|
61
|
-
field: {name: 'json', type: 'string'},
|
|
62
|
-
hidden: true
|
|
63
|
-
},
|
|
64
|
-
{...Col.lastUpdated}
|
|
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
|
+
});
|
|
66
28
|
}
|
|
67
29
|
}),
|
|
68
30
|
differ({omit: !model.differModel})
|
|
@@ -4,14 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Copyright © 2025 Extremely Heavy Industries Inc.
|
|
6
6
|
*/
|
|
7
|
-
import * as Col from '@xh/hoist/admin/columns/Rest';
|
|
8
|
-
import * as AdminCol from '@xh/hoist/admin/columns';
|
|
9
7
|
import {prefEditorDialog} from '@xh/hoist/admin/tabs/userData/prefs/editor/PrefEditorDialog';
|
|
10
8
|
import {UserPreferenceModel} from '@xh/hoist/admin/tabs/userData/prefs/UserPreferenceModel';
|
|
11
|
-
import {hframe} from '@xh/hoist/cmp/layout';
|
|
12
9
|
import {creates, hoistCmp} from '@xh/hoist/core';
|
|
13
10
|
import {button} from '@xh/hoist/desktop/cmp/button';
|
|
14
|
-
import {jsonSearchPanel} from '@xh/hoist/admin/jsonsearch/JsonSearchPanel';
|
|
15
11
|
import {panel} from '@xh/hoist/desktop/cmp/panel';
|
|
16
12
|
import {restGrid} from '@xh/hoist/desktop/cmp/rest';
|
|
17
13
|
import {Icon} from '@xh/hoist/icon';
|
|
@@ -20,43 +16,20 @@ export const userPreferencePanel = hoistCmp.factory({
|
|
|
20
16
|
model: creates(UserPreferenceModel),
|
|
21
17
|
|
|
22
18
|
render({model}) {
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}),
|
|
39
|
-
jsonSearchPanel({
|
|
40
|
-
docSearchUrl: 'preferenceJsonSearchAdmin/searchByJsonPath',
|
|
41
|
-
matchingNodesUrl: 'preferenceJsonSearchAdmin/getMatchingNodes',
|
|
42
|
-
gridModelConfig: {
|
|
43
|
-
sortBy: ['name'],
|
|
44
|
-
groupBy: 'groupName',
|
|
45
|
-
columns: [
|
|
46
|
-
{
|
|
47
|
-
field: {name: 'owner', type: 'string'},
|
|
48
|
-
width: 200
|
|
49
|
-
},
|
|
50
|
-
{...AdminCol.groupName},
|
|
51
|
-
{...AdminCol.name},
|
|
52
|
-
{
|
|
53
|
-
field: {name: 'json', type: 'string'},
|
|
54
|
-
hidden: true
|
|
55
|
-
},
|
|
56
|
-
{...Col.lastUpdated}
|
|
57
|
-
]
|
|
58
|
-
}
|
|
59
|
-
})
|
|
60
|
-
);
|
|
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
|
+
});
|
|
61
34
|
}
|
|
62
35
|
});
|
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.1738003454248",
|
|
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",
|