@hantera/portal-app 20260812.0.0-develop.1 → 20260825.0.0-develop.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +32 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@ import { DataColumnValuesEnumSet } from '@hantera/design-system';
11
11
  import { DataColumnValuesEnumValue } from '@hantera/design-system';
12
12
  import { DataProvider } from '@hantera/design-system';
13
13
  import { DataRow } from '@hantera/design-system';
14
+ import { DataTableEndMessage } from '@hantera/design-system';
14
15
  import { DateOnly } from '@hantera/design-system';
15
16
  import Decimal from 'decimal.js';
16
17
  import { DeepReadonly } from 'vue';
@@ -1342,6 +1343,14 @@ export declare interface GraphDataProvider extends DataProvider {
1342
1343
  setSort(column: DataColumn, direction?: 'asc' | 'desc'): void;
1343
1344
  updateRow(key: string, updates: Record<string, any>): boolean;
1344
1345
  getCurrentQuery(): GraphQueryNavigation | undefined;
1346
+ /** Whether the live query service is available in this host (false when no socket is provided). */
1347
+ liveAvailable: ComputedRef<boolean>;
1348
+ /** Whether the provider is currently in live mode. */
1349
+ isLive: ComputedRef<boolean>;
1350
+ /** True when a live query hit the server record cap (results truncated). */
1351
+ capped: ComputedRef<boolean>;
1352
+ /** Message shown at the bottom of the table when the live view is capped. */
1353
+ endMessage: ComputedRef<DataTableEndMessage | undefined>;
1345
1354
  }
1346
1355
 
1347
1356
  export declare interface GraphDataProviderColumn {
@@ -1837,6 +1846,7 @@ export declare interface JobStatisticsData {
1837
1846
  minExecutionMs: number | null;
1838
1847
  maxExecutionMs: number | null;
1839
1848
  avgExecutionMs: number | null;
1849
+ p95ExecutionMs: number | null;
1840
1850
  }
1841
1851
 
1842
1852
  export declare interface JsonTableResponse {
@@ -2393,6 +2403,21 @@ declare interface LiveQueryResult<T = unknown> {
2393
2403
  dispose(): void;
2394
2404
  }
2395
2405
 
2406
+ declare interface LiveQueryTableResult {
2407
+ columns: DeepReadonly<Ref<string[]>>;
2408
+ rows: DeepReadonly<Ref<LiveQueryTableRow[]>>;
2409
+ loading: DeepReadonly<Ref<boolean>>;
2410
+ totalCount: DeepReadonly<Ref<number | null>>;
2411
+ capped: DeepReadonly<Ref<boolean>>;
2412
+ revision: DeepReadonly<Ref<number>>;
2413
+ dispose(): void;
2414
+ }
2415
+
2416
+ declare interface LiveQueryTableRow {
2417
+ nodeId: string;
2418
+ values: unknown[];
2419
+ }
2420
+
2396
2421
  declare function loadLocales(): Promise<LocaleInfo[]>;
2397
2422
 
2398
2423
  declare interface LocaleInfo {
@@ -2496,6 +2521,11 @@ declare interface OpenDeliveryCommand {
2496
2521
  declare interface Options {
2497
2522
  rowHue?: (row: Record<string, any>) => number | string | undefined;
2498
2523
  rowKey?: (row: Record<string, any>) => string;
2524
+ /**
2525
+ * When true, the table is driven by a live query instead of a static fetch. Toggling this ref
2526
+ * switches between live and static modes at runtime.
2527
+ */
2528
+ live?: Ref<boolean>;
2499
2529
  }
2500
2530
 
2501
2531
  declare interface Order {
@@ -4131,9 +4161,11 @@ export declare function useHost(): {
4131
4161
  export declare function useLiveQueries(): {
4132
4162
  available: false;
4133
4163
  query: <T = unknown>(_spec: object) => LiveQueryResult<T>;
4164
+ queryTable: (_spec: object) => LiveQueryTableResult;
4134
4165
  } | {
4135
4166
  available: true;
4136
4167
  query: <T = unknown>(spec: object) => LiveQueryResult<T>;
4168
+ queryTable: (spec: object) => LiveQueryTableResult;
4137
4169
  };
4138
4170
 
4139
4171
  export declare function useLocalization(basePath?: string): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hantera/portal-app",
3
- "version": "20260812.0.0-develop.1",
3
+ "version": "20260825.0.0-develop.1",
4
4
  "types": "./dist/index.d.ts",
5
5
  "scripts": {
6
6
  "build": "cpx ../../portal/portal-app/dist/**/*.d.ts ./dist -C"