@xh/hoist 73.0.0-SNAPSHOT.1746205425691 → 73.0.0-SNAPSHOT.1746476925456
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/columns/Rest.ts +1 -0
- package/admin/columns/Tracking.ts +9 -6
- package/admin/tabs/activity/tracking/ActivityTrackingModel.ts +47 -14
- package/admin/tabs/activity/tracking/ActivityTrackingPanel.ts +1 -1
- package/admin/tabs/activity/tracking/detail/ActivityDetailModel.ts +51 -35
- package/admin/tabs/activity/tracking/detail/ActivityDetailView.ts +7 -5
- package/admin/tabs/client/clients/ClientsModel.ts +7 -2
- package/admin/tabs/client/clients/ClientsPanel.ts +3 -2
- package/admin/tabs/client/clients/activity/ClientDetail.scss +24 -0
- package/admin/tabs/client/clients/activity/ClientDetailModel.ts +83 -0
- package/admin/tabs/client/clients/activity/ClientDetailPanel.ts +63 -0
- package/admin/tabs/monitor/MonitorTab.ts +3 -2
- package/build/types/admin/tabs/activity/tracking/ActivityTrackingModel.d.ts +7 -2
- package/build/types/admin/tabs/activity/tracking/detail/ActivityDetailModel.d.ts +18 -6
- package/build/types/admin/tabs/client/clients/activity/ClientDetailModel.d.ts +21 -0
- package/build/types/admin/tabs/client/clients/activity/ClientDetailPanel.d.ts +3 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import { ActivityTrackingDataFieldSpec } from '@xh/hoist/admin/tabs/activity/tracking/datafields/DataFieldsEditorModel';
|
|
1
2
|
import { FormModel } from '@xh/hoist/cmp/form';
|
|
2
|
-
import { GridModel } from '@xh/hoist/cmp/grid';
|
|
3
|
-
import { HoistModel } from '@xh/hoist/core';
|
|
4
|
-
|
|
3
|
+
import { ColumnSpec, GridModel } from '@xh/hoist/cmp/grid';
|
|
4
|
+
import { HoistModel, PersistOptions, PlainObject } from '@xh/hoist/core';
|
|
5
|
+
/**
|
|
6
|
+
* Interface to cover the two usages of this component - {@link ActivityTrackingModel} and {@link ClientDetailModel}
|
|
7
|
+
*/
|
|
8
|
+
export interface ActivityDetailProvider {
|
|
9
|
+
isActivityDetailProvider: true;
|
|
10
|
+
trackLogs: PlainObject[];
|
|
11
|
+
persistWith?: PersistOptions;
|
|
12
|
+
colDefaults?: Record<string, Partial<ColumnSpec>>;
|
|
13
|
+
dataFields?: ActivityTrackingDataFieldSpec[];
|
|
14
|
+
dataFieldCols?: ColumnSpec[];
|
|
15
|
+
}
|
|
5
16
|
export declare class ActivityDetailModel extends HoistModel {
|
|
6
|
-
|
|
17
|
+
parentModel: ActivityDetailProvider;
|
|
7
18
|
gridModel: GridModel;
|
|
8
19
|
formModel: FormModel;
|
|
9
20
|
/**
|
|
@@ -14,12 +25,13 @@ export declare class ActivityDetailModel extends HoistModel {
|
|
|
14
25
|
formattedDataFilterPath: string;
|
|
15
26
|
/** Stringified, pretty-printed, optionally path-filtered `data` payload. */
|
|
16
27
|
formattedData: string;
|
|
28
|
+
get dataFields(): ActivityTrackingDataFieldSpec[];
|
|
29
|
+
get dataFieldCols(): ColumnSpec[];
|
|
17
30
|
get hasExtraTrackData(): boolean;
|
|
18
31
|
get hasSelection(): boolean;
|
|
19
32
|
constructor();
|
|
20
33
|
onLinked(): void;
|
|
21
|
-
private
|
|
22
|
-
private getAllLeafRows;
|
|
34
|
+
private showTrackLogsAsync;
|
|
23
35
|
/** Extract data from a (detail) grid record and flush it into our form for display. */
|
|
24
36
|
private showEntryDetail;
|
|
25
37
|
private updateFormattedData;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ClientsModel } from '@xh/hoist/admin/tabs/client/clients/ClientsModel';
|
|
2
|
+
import { ColumnSpec } from '@xh/hoist/cmp/grid';
|
|
3
|
+
import { HoistModel, LoadSpec, PlainObject } from '@xh/hoist/core';
|
|
4
|
+
import { StoreRecord } from '@xh/hoist/data';
|
|
5
|
+
import { ReactNode } from 'react';
|
|
6
|
+
import { ActivityDetailProvider } from '../../../activity/tracking/detail/ActivityDetailModel';
|
|
7
|
+
export declare class ClientDetailModel extends HoistModel implements ActivityDetailProvider {
|
|
8
|
+
clientsModel: ClientsModel;
|
|
9
|
+
readonly isActivityDetailProvider = true;
|
|
10
|
+
/** Client tabID for which to load and show activity. */
|
|
11
|
+
tabId: string;
|
|
12
|
+
trackLogs: PlainObject[];
|
|
13
|
+
get selectedRec(): StoreRecord;
|
|
14
|
+
get hasSelection(): boolean;
|
|
15
|
+
get title(): ReactNode;
|
|
16
|
+
/** For child {@link ActivityDetailModel}. */
|
|
17
|
+
readonly colDefaults: Record<string, Partial<ColumnSpec>>;
|
|
18
|
+
constructor();
|
|
19
|
+
onLinked(): void;
|
|
20
|
+
doLoadAsync(loadSpec: LoadSpec): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ClientDetailModel } from '@xh/hoist/admin/tabs/client/clients/activity/ClientDetailModel';
|
|
2
|
+
import './ClientDetail.scss';
|
|
3
|
+
export declare const clientDetailPanel: import("@xh/hoist/core").ElementFactory<import("@xh/hoist/core").DefaultHoistProps<ClientDetailModel>>;
|
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.1746476925456",
|
|
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",
|