@hantera/portal-app 20260812.0.0-develop.2 → 20260825.0.0-develop.2
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/dist/index.d.ts +33 -0
- 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 {
|
|
@@ -2754,6 +2784,7 @@ declare const orderView: {
|
|
|
2754
2784
|
* panels in the order view. Implement only the methods relevant to the app.
|
|
2755
2785
|
*/
|
|
2756
2786
|
contextMenuProvider: AppService< {
|
|
2787
|
+
buildContextMenu?(context: PortalContext, orderViewContext: OrderViewContext): ContextMenuSection;
|
|
2757
2788
|
buildDeliveryContextMenu?(context: PortalContext, orderViewContext: OrderViewContext, delivery: Models_2.Graph.Delivery): ContextMenuSection;
|
|
2758
2789
|
buildPaymentContextMenu?(context: PortalContext, orderViewContext: OrderViewContext, payment: Models_2.Graph.Payment): ContextMenuSection;
|
|
2759
2790
|
}>;
|
|
@@ -4131,9 +4162,11 @@ export declare function useHost(): {
|
|
|
4131
4162
|
export declare function useLiveQueries(): {
|
|
4132
4163
|
available: false;
|
|
4133
4164
|
query: <T = unknown>(_spec: object) => LiveQueryResult<T>;
|
|
4165
|
+
queryTable: (_spec: object) => LiveQueryTableResult;
|
|
4134
4166
|
} | {
|
|
4135
4167
|
available: true;
|
|
4136
4168
|
query: <T = unknown>(spec: object) => LiveQueryResult<T>;
|
|
4169
|
+
queryTable: (spec: object) => LiveQueryTableResult;
|
|
4137
4170
|
};
|
|
4138
4171
|
|
|
4139
4172
|
export declare function useLocalization(basePath?: string): {
|