@trackunit/iris-app-runtime-core-api 1.13.3 → 1.13.4-alpha-58b6b568fca.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core-api",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.4-alpha-58b6b568fca.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
11
|
-
"@trackunit/shared-utils": "1.13.
|
|
12
|
-
"@trackunit/geo-json-utils": "1.11.
|
|
11
|
+
"@trackunit/shared-utils": "1.13.79-alpha-58b6b568fca.0",
|
|
12
|
+
"@trackunit/geo-json-utils": "1.11.80-alpha-58b6b568fca.0"
|
|
13
13
|
},
|
|
14
14
|
"module": "./index.esm.js",
|
|
15
15
|
"main": "./index.cjs.js",
|
package/src/ChildConnector.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AssetSortingState } from "./AssetSortingRuntime";
|
|
2
2
|
import { FilterBarValues } from "./FilterBarRuntime";
|
|
3
|
+
import { TableColumnOptions } from "./TablePersistenceRuntime";
|
|
3
4
|
import { TemporalPeriod, TimeRange } from "./TimeRangeRuntime";
|
|
4
5
|
import { TokenContext } from "./TokenRuntime";
|
|
5
6
|
export interface ChildConnectorApi {
|
|
@@ -47,6 +48,12 @@ export interface ChildConnectorApi {
|
|
|
47
48
|
* @deprecated Use { ChildConnectorApi.onAssetsFilterBarValuesChanged} instead.
|
|
48
49
|
*/
|
|
49
50
|
onFilterBarValuesChanged: (filters: FilterBarValues | null) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Gets called when the table persistence state changes.
|
|
53
|
+
*
|
|
54
|
+
* @param tableState new table column options
|
|
55
|
+
*/
|
|
56
|
+
onTablePersistenceStateChanged: (tableState: TableColumnOptions | null) => void;
|
|
50
57
|
/**
|
|
51
58
|
* Gets called when the widget poll interval changes.
|
|
52
59
|
*
|
package/src/HostConnector.d.ts
CHANGED
|
@@ -17,11 +17,12 @@ import { OemBrandingRuntimeApi } from "./OemBrandingRuntime";
|
|
|
17
17
|
import { ParamsRuntimeApi } from "./ParamsRuntime";
|
|
18
18
|
import { RestRuntimeApi } from "./RestRuntime";
|
|
19
19
|
import { SiteRuntimeApi } from "./SiteRuntime";
|
|
20
|
+
import { TablePersistenceRuntimeApi } from "./TablePersistenceRuntime";
|
|
20
21
|
import { ThemeCssRuntimeApi } from "./ThemeCssRuntime";
|
|
21
22
|
import { TimeRangeRuntimeApi } from "./TimeRangeRuntime";
|
|
22
23
|
import { ToastRuntimeApi } from "./ToastRuntime";
|
|
23
24
|
import { TokenRuntimeApi } from "./TokenRuntime";
|
|
24
25
|
import { UserSubscriptionRuntimeApi } from "./UserSubscriptionRuntime";
|
|
25
26
|
import { WidgetConfigRuntimeApi } from "./WidgetConfigRuntime";
|
|
26
|
-
export interface HostConnectorApi extends AnalyticsRuntimeApi<EventDictionary>, AssetRuntimeApi, AssetSortingRuntimeApi, ConfirmationDialogRuntimeApi, CurrentUserPreferenceRuntimeApi, CurrentUserRuntimeApi, CustomerRuntimeApi, EnvironmentRuntimeApi, EventRuntimeApi, ExportDataRuntimeApi, FilterBarRuntimeApi, GeolocationRuntimeApi, ModalDialogRuntimeApi, NavigationRuntimeApi, OemBrandingRuntimeApi, RestRuntimeApi, SiteRuntimeApi, ThemeCssRuntimeApi, TimeRangeRuntimeApi, ToastRuntimeApi, TokenRuntimeApi, UserSubscriptionRuntimeApi, ParamsRuntimeApi, FeatureFlagRuntimeApi, WidgetConfigRuntimeApi {
|
|
27
|
+
export interface HostConnectorApi extends AnalyticsRuntimeApi<EventDictionary>, AssetRuntimeApi, AssetSortingRuntimeApi, ConfirmationDialogRuntimeApi, CurrentUserPreferenceRuntimeApi, CurrentUserRuntimeApi, CustomerRuntimeApi, EnvironmentRuntimeApi, EventRuntimeApi, ExportDataRuntimeApi, FilterBarRuntimeApi, GeolocationRuntimeApi, ModalDialogRuntimeApi, NavigationRuntimeApi, OemBrandingRuntimeApi, RestRuntimeApi, SiteRuntimeApi, TablePersistenceRuntimeApi, ThemeCssRuntimeApi, TimeRangeRuntimeApi, ToastRuntimeApi, TokenRuntimeApi, UserSubscriptionRuntimeApi, ParamsRuntimeApi, FeatureFlagRuntimeApi, WidgetConfigRuntimeApi {
|
|
27
28
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type SortingEntry = {
|
|
2
|
+
id: string;
|
|
3
|
+
desc: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type ColumnPinning = {
|
|
6
|
+
left?: Array<string>;
|
|
7
|
+
right?: Array<string>;
|
|
8
|
+
};
|
|
9
|
+
export type TableColumnOptions = {
|
|
10
|
+
columnOrder?: Array<string>;
|
|
11
|
+
sorting?: Array<SortingEntry>;
|
|
12
|
+
columnVisibility?: Record<string, boolean>;
|
|
13
|
+
columnSizing?: Record<string, number>;
|
|
14
|
+
columnPinning?: ColumnPinning;
|
|
15
|
+
};
|
|
16
|
+
export interface TablePersistenceContext {
|
|
17
|
+
/**
|
|
18
|
+
* The current persisted table state, or `null` if no state has been persisted yet.
|
|
19
|
+
*/
|
|
20
|
+
tableState: TableColumnOptions | null;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the table persistence state is still loading.
|
|
23
|
+
*/
|
|
24
|
+
isLoading: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface TablePersistenceRuntimeApi {
|
|
27
|
+
/**
|
|
28
|
+
* Returns the currently persisted table column state for the active table.
|
|
29
|
+
*/
|
|
30
|
+
getTablePersistenceState: () => Promise<TableColumnOptions | null>;
|
|
31
|
+
/**
|
|
32
|
+
* Persists a new table column state.
|
|
33
|
+
*
|
|
34
|
+
* @param state - The table column options to persist.
|
|
35
|
+
*/
|
|
36
|
+
setTablePersistenceState: (state: TableColumnOptions) => Promise<void>;
|
|
37
|
+
}
|
package/src/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./ParamsRuntime";
|
|
|
22
22
|
export * from "./RestRuntime";
|
|
23
23
|
export * from "./RouterRuntime";
|
|
24
24
|
export * from "./SiteRuntime";
|
|
25
|
+
export * from "./TablePersistenceRuntime";
|
|
25
26
|
export * from "./ThemeCssProperties";
|
|
26
27
|
export * from "./ThemeCssRuntime";
|
|
27
28
|
export * from "./TimeRangeRuntime";
|