@xh/hoist 73.0.0-SNAPSHOT.1738073819234 → 73.0.0-SNAPSHOT.1738098319236
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 +10 -51
- package/admin/tabs/userData/prefs/UserPreferencePanel.ts +15 -45
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/admin/jsonsearch/JsonSearchPanel.ts +0 -243
- package/admin/jsonsearch/impl/JsonSearchPanelImplModel.ts +0 -159
- package/build/types/admin/jsonsearch/JsonSearchPanel.d.ts +0 -18
- package/build/types/admin/jsonsearch/impl/JsonSearchPanelImplModel.d.ts +0 -33
|
@@ -5,16 +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 {
|
|
14
|
-
jsonSearchPanel,
|
|
15
|
-
type JsonSearchPanelProps
|
|
16
|
-
} from '@xh/hoist/admin/jsonsearch/JsonSearchPanel';
|
|
17
|
-
import {panel} from '@xh/hoist/desktop/cmp/panel';
|
|
18
11
|
import {restGrid} from '@xh/hoist/desktop/cmp/rest';
|
|
19
12
|
import {Icon} from '@xh/hoist/icon';
|
|
20
13
|
import {differ} from '../../../differ/Differ';
|
|
@@ -24,50 +17,16 @@ export const jsonBlobPanel = hoistCmp.factory({
|
|
|
24
17
|
model: creates(JsonBlobModel),
|
|
25
18
|
|
|
26
19
|
render({model}) {
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
})
|
|
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
|
+
}
|
|
38
29
|
}),
|
|
39
|
-
jsonSearchPanel({
|
|
40
|
-
docSearchUrl: 'jsonSearch/searchBlobs',
|
|
41
|
-
matchingNodesUrl: 'jsonSearch/getMatchingNodes',
|
|
42
|
-
gridModelConfig: {
|
|
43
|
-
sortBy: ['owner', 'name'],
|
|
44
|
-
store: {
|
|
45
|
-
idSpec: 'token'
|
|
46
|
-
},
|
|
47
|
-
columns: [
|
|
48
|
-
{
|
|
49
|
-
field: {name: 'token', type: 'string'},
|
|
50
|
-
hidden: true,
|
|
51
|
-
width: 100
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
field: {name: 'type', type: 'string'},
|
|
55
|
-
width: 200
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
field: {name: 'owner', type: 'string'},
|
|
59
|
-
width: 200
|
|
60
|
-
},
|
|
61
|
-
{...AdminCol.name},
|
|
62
|
-
{
|
|
63
|
-
field: {name: 'json', type: 'string'},
|
|
64
|
-
hidden: true
|
|
65
|
-
},
|
|
66
|
-
{...Col.lastUpdated}
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
groupByOptions: ['owner', 'type', 'name']
|
|
70
|
-
} as JsonSearchPanelProps),
|
|
71
30
|
differ({omit: !model.differModel})
|
|
72
31
|
);
|
|
73
32
|
}
|
|
@@ -4,17 +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 {
|
|
15
|
-
jsonSearchPanel,
|
|
16
|
-
type JsonSearchPanelProps
|
|
17
|
-
} from '@xh/hoist/admin/jsonsearch/JsonSearchPanel';
|
|
18
11
|
import {panel} from '@xh/hoist/desktop/cmp/panel';
|
|
19
12
|
import {restGrid} from '@xh/hoist/desktop/cmp/rest';
|
|
20
13
|
import {Icon} from '@xh/hoist/icon';
|
|
@@ -23,43 +16,20 @@ export const userPreferencePanel = hoistCmp.factory({
|
|
|
23
16
|
model: creates(UserPreferenceModel),
|
|
24
17
|
|
|
25
18
|
render({model}) {
|
|
26
|
-
return
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}),
|
|
42
|
-
jsonSearchPanel({
|
|
43
|
-
docSearchUrl: 'jsonSearch/searchUserPreferences',
|
|
44
|
-
matchingNodesUrl: 'jsonSearch/getMatchingNodes',
|
|
45
|
-
gridModelConfig: {
|
|
46
|
-
sortBy: ['name'],
|
|
47
|
-
columns: [
|
|
48
|
-
{
|
|
49
|
-
field: {name: 'owner', type: 'string'},
|
|
50
|
-
width: 200
|
|
51
|
-
},
|
|
52
|
-
{...AdminCol.groupName},
|
|
53
|
-
{...AdminCol.name},
|
|
54
|
-
{
|
|
55
|
-
field: {name: 'json', type: 'string'},
|
|
56
|
-
hidden: true
|
|
57
|
-
},
|
|
58
|
-
{...Col.lastUpdated}
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
groupByOptions: ['owner', 'groupName', 'name']
|
|
62
|
-
} as JsonSearchPanelProps)
|
|
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
|
});
|
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.1738098319236",
|
|
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",
|