@hantera/portal-app 20250526.0.0-develop.2 → 20250707.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 +316 -34
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2,9 +2,12 @@ import { Component } from 'vue';
2
2
  import { ComponentOptionsMixin } from 'vue';
3
3
  import { ComponentProvideOptions } from 'vue';
4
4
  import { ComputedRef } from 'vue';
5
- import { ContextMenuItem } from '@hantera/design-system';
6
- import { ContextMenuSection } from '@hantera/design-system';
7
- import { ContextMenuSections } from '@hantera/design-system';
5
+ import { DataColumn } from '@hantera/design-system';
6
+ import { DataColumnFilter } from '@hantera/design-system';
7
+ import { DataColumnValuesEnumSet } from '@hantera/design-system';
8
+ import { DataColumnValuesEnumValue } from '@hantera/design-system';
9
+ import { DataProvider } from '@hantera/design-system';
10
+ import { DataRow } from '@hantera/design-system';
8
11
  import Decimal from 'decimal.js';
9
12
  import { default as default_2 } from 'decimal.js';
10
13
  import { DefineComponent } from 'vue';
@@ -191,13 +194,24 @@ declare interface AddTagCommand_4 {
191
194
  key: string;
192
195
  }
193
196
 
197
+ export declare interface AppContext {
198
+ appId: string;
199
+ getAppViewPath(relativePath: string, appId?: string): string;
200
+ }
201
+
202
+ /**
203
+ * Provides information about the current app
204
+ */
205
+ export declare const appContextKey: InjectionKey<Readonly<AppContext>>;
206
+
194
207
  export declare namespace apps {
195
208
  export {
196
209
  defineSlot,
197
210
  defineService,
198
211
  componentContext,
199
- _default as orderViewSlots,
200
- _default_2 as legacySlots,
212
+ _default as workspaceSlots,
213
+ _default_2 as orderViewSlots,
214
+ _default_3 as legacySlots,
201
215
  AppSlot,
202
216
  AppService,
203
217
  standardServices
@@ -295,6 +309,18 @@ export declare interface BackendFetchResponse extends Response {
295
309
  graph(): Promise<any>;
296
310
  }
297
311
 
312
+ declare interface BackOrder {
313
+ backOrderId: string;
314
+ inventoryDate: Date;
315
+ quantity: default_2;
316
+ }
317
+
318
+ declare interface BackOrder_2 {
319
+ backOrderId: string
320
+ inventoryDate: Date
321
+ quantity: Decimal
322
+ }
323
+
298
324
  declare interface CalculatedDiscount {
299
325
  calculatedDiscountId: string;
300
326
  discountId: string;
@@ -417,18 +443,12 @@ declare interface ComputedDiscount_2 {
417
443
  /**
418
444
  * Provides contextual information about the current session
419
445
  */
420
- export declare const contextKey: InjectionKey<PortalContext>;
446
+ export declare const contextKey: InjectionKey<Readonly<PortalContext>>;
421
447
 
422
448
  export declare const contextKeys: {
423
449
  orderView: InjectionKey<OrderViewContext>;
424
450
  };
425
451
 
426
- export { ContextMenuItem }
427
-
428
- export { ContextMenuSection }
429
-
430
- export { ContextMenuSections }
431
-
432
452
  declare function country(countryCode: string): string;
433
453
 
434
454
  /**
@@ -687,6 +707,10 @@ declare function dateTime(date: Date | string): string;
687
707
 
688
708
  declare const _default: {
689
709
  sidebar: AppSlot<unknown>;
710
+ };
711
+
712
+ declare const _default_2: {
713
+ sidebar: AppSlot<unknown>;
690
714
  sidebarCustomer: AppSlot<unknown>;
691
715
  toolbars: {
692
716
  deliveries: AppSlot<unknown>;
@@ -722,7 +746,7 @@ declare const _default: {
722
746
  };
723
747
  };
724
748
 
725
- declare const _default_2: {
749
+ declare const _default_3: {
726
750
  legacyOrder: {
727
751
  details: {
728
752
  beforeSummary: AppSlot<unknown>;
@@ -765,7 +789,9 @@ declare const _default_2: {
765
789
  rows: AppSlot<unknown>;
766
790
  contextMenu: AppSlot<unknown>;
767
791
  row: AppSlot<unknown>;
768
- rowDetails: AppSlot<unknown>;
792
+ rowDetails: AppSlot< {
793
+ rmaRow: LegacyRmaRow;
794
+ }>;
769
795
  };
770
796
  invoices: {
771
797
  first: AppSlot<unknown>;
@@ -1015,6 +1041,87 @@ export declare namespace Graph_2 {
1015
1041
  }
1016
1042
  }
1017
1043
 
1044
+ declare class GraphDataProvider implements DataProvider {
1045
+ private graph;
1046
+ private graphMeta;
1047
+ private enums;
1048
+ private query;
1049
+ private state;
1050
+ private options;
1051
+ private _rows;
1052
+ rows: ComputedRef<DataRow[]>;
1053
+ private _isLoading;
1054
+ isLoading: ComputedRef<boolean>;
1055
+ private _allLoaded;
1056
+ allLoaded: ComputedRef<boolean>;
1057
+ private _totalCount;
1058
+ totalCount: ComputedRef<{
1059
+ count: number;
1060
+ cap: number;
1061
+ }>;
1062
+ private _errors;
1063
+ errors: ComputedRef<BackendError[] | undefined>;
1064
+ columns: ComputedRef<DataColumn[]>;
1065
+ private abortController;
1066
+ private lastCursor;
1067
+ private currentQuery;
1068
+ private currentQueryJson;
1069
+ private rootEdges;
1070
+ private tableHeaders;
1071
+ constructor(graph: BackendApiGraph, graphMeta: Record<string, GraphNodeMeta_2>, enums: ReturnType<typeof useEnums>, query: Ref<GraphDataProviderQuery>, state: Ref<GraphDataProviderState>, options: Options);
1072
+ refresh(): Promise<void>;
1073
+ private refreshInternal;
1074
+ protected rowHue(r: any[]): void;
1075
+ loadMore(): Promise<void>;
1076
+ private buildQuery;
1077
+ private toRecord;
1078
+ private getNodeMeta;
1079
+ }
1080
+
1081
+ declare interface GraphDataProviderColumnState {
1082
+ queryPath: string[];
1083
+ field: string;
1084
+ filters: DataColumnFilter[];
1085
+ size?: number;
1086
+ }
1087
+
1088
+ declare interface GraphDataProviderQuery {
1089
+ edge: string;
1090
+ /**
1091
+ * These fields are always queried but not necessarily displayed. Can be used for coloring rows or
1092
+ * providing context options.
1093
+ */
1094
+ dataFields?: string[];
1095
+ /**
1096
+ * Fields available to the user
1097
+ */
1098
+ availableFields: {
1099
+ field: string;
1100
+ label?: string;
1101
+ }[];
1102
+ /**
1103
+ * Base filter that will always apply
1104
+ */
1105
+ filter?: string;
1106
+ navigations?: GraphDataProviderQuery[];
1107
+ }
1108
+
1109
+ export declare interface GraphDataProviderQueryRoot extends GraphDataProviderQuery {
1110
+ /**
1111
+ * Default ordering if not overridden by user.
1112
+ */
1113
+ orderBy?: string;
1114
+ }
1115
+
1116
+ export declare interface GraphDataProviderState {
1117
+ columns: GraphDataProviderColumnState[];
1118
+ orderBy?: {
1119
+ queryPath: string[];
1120
+ field: string;
1121
+ direction: 'asc' | 'desc';
1122
+ };
1123
+ }
1124
+
1018
1125
  declare type GraphEdgeCardinality = 'single' | 'many';
1019
1126
 
1020
1127
  declare type GraphEdgeCardinality_2 = 'single' | 'many';
@@ -1047,9 +1154,17 @@ declare interface GraphFieldMeta_2 {
1047
1154
  dimensionKey?: string;
1048
1155
  }
1049
1156
 
1050
- declare type GraphFilterMeta = GraphFilterMetaDateTimeRange | GraphFilterMetaValues | GraphFilterMetaEnums | GraphFilterMetaNone | GraphFilterMetaNumeric;
1157
+ declare type GraphFilterMeta = GraphFilterMetaDateTimeRange | GraphFilterMetaValues | GraphFilterMetaEnums | GraphFilterMetaNone | GraphFilterMetaNumeric | GraphFilterMetaBoolean
1051
1158
 
1052
- declare type GraphFilterMeta_2 = GraphFilterMetaDateTimeRange_2 | GraphFilterMetaValues_2 | GraphFilterMetaEnums_2 | GraphFilterMetaNone_2 | GraphFilterMetaNumeric_2;
1159
+ declare type GraphFilterMeta_2 = GraphFilterMetaDateTimeRange_2 | GraphFilterMetaValues_2 | GraphFilterMetaEnums_2 | GraphFilterMetaNone_2 | GraphFilterMetaNumeric_2 | GraphFilterMetaBoolean_2;
1160
+
1161
+ declare interface GraphFilterMetaBoolean {
1162
+ type: 'boolean'
1163
+ }
1164
+
1165
+ declare interface GraphFilterMetaBoolean_2 {
1166
+ type: 'boolean';
1167
+ }
1053
1168
 
1054
1169
  declare interface GraphFilterMetaDateTimeRange {
1055
1170
  type: 'dateTimeRange'
@@ -1108,6 +1223,8 @@ export declare namespace GraphMeta {
1108
1223
  GraphValueTypeMeta,
1109
1224
  GraphValueTypeScalar,
1110
1225
  GraphValueTypeEnum,
1226
+ GraphValueTypeEnumValueSet,
1227
+ GraphValueTypeEnumValue,
1111
1228
  GraphValueTypeArray,
1112
1229
  GraphValueTypeDynamic,
1113
1230
  GraphFilterMeta,
@@ -1115,6 +1232,7 @@ export declare namespace GraphMeta {
1115
1232
  GraphFilterMetaValues,
1116
1233
  GraphFilterMetaEnums,
1117
1234
  GraphFilterMetaNone,
1235
+ GraphFilterMetaBoolean,
1118
1236
  GraphFilterMetaNumeric
1119
1237
  }
1120
1238
  }
@@ -1128,6 +1246,8 @@ export declare namespace GraphMeta_2 {
1128
1246
  GraphValueTypeMeta_2 as GraphValueTypeMeta,
1129
1247
  GraphValueTypeScalar_2 as GraphValueTypeScalar,
1130
1248
  GraphValueTypeEnum_2 as GraphValueTypeEnum,
1249
+ GraphValueTypeEnumValueSet_2 as GraphValueTypeEnumValueSet,
1250
+ GraphValueTypeEnumValue_2 as GraphValueTypeEnumValue,
1131
1251
  GraphValueTypeArray_2 as GraphValueTypeArray,
1132
1252
  GraphValueTypeDynamic_2 as GraphValueTypeDynamic,
1133
1253
  GraphFilterMeta_2 as GraphFilterMeta,
@@ -1135,12 +1255,14 @@ export declare namespace GraphMeta_2 {
1135
1255
  GraphFilterMetaValues_2 as GraphFilterMetaValues,
1136
1256
  GraphFilterMetaEnums_2 as GraphFilterMetaEnums,
1137
1257
  GraphFilterMetaNone_2 as GraphFilterMetaNone,
1258
+ GraphFilterMetaBoolean_2 as GraphFilterMetaBoolean,
1138
1259
  GraphFilterMetaNumeric_2 as GraphFilterMetaNumeric
1139
1260
  }
1140
1261
  }
1141
1262
 
1142
1263
  declare interface GraphNodeMeta {
1143
1264
  rootEdgeName: string
1265
+ name: string
1144
1266
  idField: string
1145
1267
  fields: Record<string, GraphFieldMeta>
1146
1268
  edges: Record<string, GraphEdgeMeta>
@@ -1148,6 +1270,7 @@ declare interface GraphNodeMeta {
1148
1270
 
1149
1271
  declare interface GraphNodeMeta_2 {
1150
1272
  rootEdgeName: string;
1273
+ name: string;
1151
1274
  idField: string;
1152
1275
  fields: Record<string, GraphFieldMeta_2>;
1153
1276
  edges: Record<string, GraphEdgeMeta_2>;
@@ -1161,9 +1284,9 @@ export declare interface GraphQueryNavigation {
1161
1284
  orderBy?: string;
1162
1285
  filter?: string;
1163
1286
  phrase?: string;
1164
- phraseFields?: string;
1287
+ after?: string;
1165
1288
  node: {
1166
- fields: string[];
1289
+ fields?: string[];
1167
1290
  navigate?: GraphQueryNavigation[];
1168
1291
  };
1169
1292
  }
@@ -1190,12 +1313,32 @@ declare interface GraphValueTypeDynamic_2 {
1190
1313
 
1191
1314
  declare interface GraphValueTypeEnum {
1192
1315
  type: 'enum'
1193
- values: string[]
1316
+ valueSets: Record<string, GraphValueTypeEnumValueSet>
1194
1317
  }
1195
1318
 
1196
1319
  declare interface GraphValueTypeEnum_2 {
1197
1320
  type: 'enum';
1198
- values: string[];
1321
+ valueSets: Record<string, GraphValueTypeEnumValueSet_2>;
1322
+ }
1323
+
1324
+ declare interface GraphValueTypeEnumValue {
1325
+ label: Record<string, string>
1326
+ hue?: Decimal
1327
+ }
1328
+
1329
+ declare interface GraphValueTypeEnumValue_2 {
1330
+ label: Record<string, string>;
1331
+ hue?: Decimal;
1332
+ }
1333
+
1334
+ declare interface GraphValueTypeEnumValueSet {
1335
+ label: Record<string, string>
1336
+ values: Record<string, GraphValueTypeEnumValue>
1337
+ }
1338
+
1339
+ declare interface GraphValueTypeEnumValueSet_2 {
1340
+ label: Record<string, string>;
1341
+ values: Record<string, GraphValueTypeEnumValue_2>;
1199
1342
  }
1200
1343
 
1201
1344
  declare type GraphValueTypeMeta = GraphValueTypeScalar | GraphValueTypeEnum | GraphValueTypeArray | GraphValueTypeDynamic
@@ -1229,9 +1372,6 @@ export declare const hostKey: InjectionKey<Host>;
1229
1372
  * Messages sent from client to host
1230
1373
  */
1231
1374
  declare type HostMessage = {
1232
- type: 'navigated';
1233
- path: string;
1234
- } | {
1235
1375
  type: 'expiredSession';
1236
1376
  } | {
1237
1377
  type: 'signOut';
@@ -1364,7 +1504,7 @@ export declare interface JsonTableResponse {
1364
1504
  first?: string;
1365
1505
  last?: string;
1366
1506
  };
1367
- totalCount?: number;
1507
+ totalCount?: default_2;
1368
1508
  headers: string[];
1369
1509
  rows: Array<Array<unknown>>;
1370
1510
  }
@@ -1401,7 +1541,7 @@ export declare interface LegacyAdjustment {
1401
1541
  adjustmentTotal: default_2;
1402
1542
  adjustmentVat: default_2;
1403
1543
  fields: LegacyField[];
1404
- orderRule: LegacyRule;
1544
+ orderRule?: LegacyRule;
1405
1545
  actionId: string;
1406
1546
  }
1407
1547
 
@@ -1646,6 +1786,9 @@ export declare const legacyOrderCommands: {
1646
1786
  setDeliveryAsReleased: TypedCommand<{
1647
1787
  deliveryId: string;
1648
1788
  }>;
1789
+ cancelDelivery: TypedCommand<{
1790
+ deliveryId: string;
1791
+ }>;
1649
1792
  setRmaRowReference: TypedCommand<{
1650
1793
  rmaId: string;
1651
1794
  rmaRowId: string;
@@ -1910,6 +2053,10 @@ declare namespace Models_2 {
1910
2053
 
1911
2054
  declare function number(value: default_2 | number): string;
1912
2055
 
2056
+ declare interface Options {
2057
+ rowHue?: (row: Record<string, any>) => number | string | undefined;
2058
+ }
2059
+
1913
2060
  declare interface Order {
1914
2061
  orderId: string
1915
2062
  orderNumber: string
@@ -2040,6 +2187,7 @@ declare interface OrderLine {
2040
2187
  image?: string;
2041
2188
  quantity: default_2;
2042
2189
  returnedQuantity: default_2;
2190
+ reservedQuantity: default_2;
2043
2191
  salesQuantity: default_2;
2044
2192
  unitPrice: default_2;
2045
2193
  taxFactor: default_2;
@@ -2048,6 +2196,8 @@ declare interface OrderLine {
2048
2196
  dynamic: Record<string, any>;
2049
2197
  calculatedDiscounts: Array<CalculatedDiscount>;
2050
2198
  orderLineDiscounts: Array<Discount>;
2199
+ backOrders: Array<BackOrder>;
2200
+ skus: Array<OrderLineSku>;
2051
2201
  }
2052
2202
 
2053
2203
  declare interface OrderLine_2 {
@@ -2058,6 +2208,7 @@ declare interface OrderLine_2 {
2058
2208
  image?: string
2059
2209
  quantity: Decimal
2060
2210
  returnedQuantity: Decimal
2211
+ reservedQuantity: Decimal
2061
2212
  salesQuantity: Decimal
2062
2213
  unitPrice: Decimal
2063
2214
  taxFactor: Decimal
@@ -2067,6 +2218,27 @@ declare interface OrderLine_2 {
2067
2218
 
2068
2219
  calculatedDiscounts: Array<CalculatedDiscount_2>
2069
2220
  orderLineDiscounts: Array<Discount_2>
2221
+ backOrders: Array<BackOrder_2>
2222
+ skus: Array<OrderLineSku_2>
2223
+ }
2224
+
2225
+ declare interface OrderLineSku {
2226
+ skuNumber: string;
2227
+ totalQuantity: default_2;
2228
+ reservedQuantity: default_2;
2229
+ unitQuantity: default_2;
2230
+ stockReservations: Array<StockReservation>;
2231
+ backOrders: Array<BackOrder>;
2232
+ }
2233
+
2234
+ declare interface OrderLineSku_2 {
2235
+ skuNumber: string
2236
+ totalQuantity: Decimal
2237
+ reservedQuantity: Decimal
2238
+ unitQuantity: Decimal
2239
+
2240
+ stockReservations: Array<StockReservation_2>
2241
+ backOrders: Array<BackOrder_2>
2070
2242
  }
2071
2243
 
2072
2244
  declare interface OrderViewContext {
@@ -2255,6 +2427,31 @@ export declare interface PortalContext {
2255
2427
  user(): User;
2256
2428
  authorize(pattern: string): boolean;
2257
2429
  authorizeAll(patterns?: string[]): boolean;
2430
+ mode: 'workspace' | 'stack';
2431
+ /**
2432
+ * If set upon initial load, instructs the view manager to open this view
2433
+ */
2434
+ defaultViewUri?: string;
2435
+ /**
2436
+ * Opens the view specified by the path.
2437
+ * @param uri The view URI to the view to open. May contain a querystring.
2438
+ * @param options
2439
+ */
2440
+ openView(uri: string, options: ViewOptions): Readonly<ViewContext>;
2441
+ /**
2442
+ * Gets a view by its ID
2443
+ * @param viewId
2444
+ */
2445
+ getView(viewId: string | undefined): Readonly<ViewContext> | undefined;
2446
+ /**
2447
+ * Gets all the views opened as child of the specified view
2448
+ * @param parentViewId View ID of the parent to fetch child views of
2449
+ */
2450
+ getChildrenViews(parentViewId: string | undefined): Readonly<ViewContext>[];
2451
+ /**
2452
+ * Provides access to current view. Will be undefined outside any view.
2453
+ */
2454
+ currentView: ComputedRef<Readonly<ViewContext> | undefined>;
2258
2455
  }
2259
2456
 
2260
2457
  export declare interface Processes {
@@ -2781,6 +2978,21 @@ declare interface StaticDiscount_2 {
2781
2978
  createdAt: Date
2782
2979
  }
2783
2980
 
2981
+ declare interface StockReservation {
2982
+ stockReservationId: string;
2983
+ inventoryDate: Date;
2984
+ quantity: default_2;
2985
+ }
2986
+
2987
+ declare interface StockReservation_2 {
2988
+ stockReservationId: string
2989
+ inventoryDate: Date
2990
+ quantity: Decimal
2991
+
2992
+ // Add incoming stock and allocation
2993
+ // Add stock position
2994
+ }
2995
+
2784
2996
  declare function string(template: string, values?: {
2785
2997
  [key: string]: string | number | undefined | null;
2786
2998
  }): string;
@@ -2841,6 +3053,11 @@ declare interface UnsetDeliveryInventoryCommand {
2841
3053
  deliveryId: string;
2842
3054
  }
2843
3055
 
3056
+ export declare function useAppContext(): {
3057
+ appId: string;
3058
+ getAppViewPath(relativePath: string, appId?: string): string;
3059
+ };
3060
+
2844
3061
  export declare function useBackendApi(): {
2845
3062
  fetch: BackendFetch;
2846
3063
  legacyOrders: BackendApiOrders;
@@ -2855,6 +3072,12 @@ export declare function useContext(): {
2855
3072
  user(): User;
2856
3073
  authorize(pattern: string): boolean;
2857
3074
  authorizeAll(patterns?: string[]): boolean;
3075
+ mode: "workspace" | "stack";
3076
+ defaultViewUri?: string;
3077
+ openView(uri: string, options: ViewOptions): Readonly<ViewContext>;
3078
+ getView(viewId: string | undefined): Readonly<ViewContext> | undefined;
3079
+ getChildrenViews(parentViewId: string | undefined): Readonly<ViewContext>[];
3080
+ currentView: ComputedRef<Readonly<ViewContext> | undefined>;
2858
3081
  };
2859
3082
 
2860
3083
  export declare function useDialogs(): {
@@ -2903,18 +3126,18 @@ export declare function useDialogs(): {
2903
3126
  alert(message: string, title?: string, confirmLabel?: string): Promise<void>;
2904
3127
  };
2905
3128
 
2906
- export declare function useEnumFields(): {
2907
- valueLabel(nodeName: string, fieldName: string, value: string): ComputedRef<string>;
2908
- valueColor(nodeName: string, fieldName: string, value: string): ComputedRef<string>;
2909
- values(nodeName: string, fieldName: string): ComputedRef<{
2910
- categoryId?: string;
2911
- sortOrder: number;
2912
- name: string;
2913
- values: string[];
2914
- }[]>;
3129
+ export declare function useEnums(): {
3130
+ valueSets(nodeName: string, fieldName: string): ComputedRef<DataColumnValuesEnumSet[]>;
3131
+ value(nodeName: string, fieldName: string, valueKey: string): ComputedRef<DataColumnValuesEnumValue | undefined>;
2915
3132
  openEditor(nodeName: string, fieldName: string, value?: string): void;
2916
3133
  };
2917
3134
 
3135
+ /**
3136
+ * Creates a GraphDataProvider that can be used to easily create DataTables or ListDetailLayouts
3137
+ * that work with the Hantera Graph.
3138
+ */
3139
+ export declare function useGraphDataProvider(query: Ref<GraphDataProviderQueryRoot>, state: Ref<GraphDataProviderState>, options?: Options): GraphDataProvider;
3140
+
2918
3141
  export declare function useGraphMeta(): Record<string, GraphNodeMeta_2>;
2919
3142
 
2920
3143
  export declare function useHost(): {
@@ -2957,6 +3180,45 @@ declare interface User {
2957
3180
  */
2958
3181
  export declare function useRegistry(): Record<string, any>;
2959
3182
 
3183
+ export declare interface ViewContext {
3184
+ /**
3185
+ * A unique ID identifying this view instance
3186
+ */
3187
+ viewId: string;
3188
+ /**
3189
+ * The current path of the view
3190
+ */
3191
+ path: Readonly<string>;
3192
+ query: Readonly<Record<string, string | undefined>>;
3193
+ uri: Readonly<string>;
3194
+ /**
3195
+ * The state can be used to store arbitrary data in the view between
3196
+ * reloads (if supported by view manager).
3197
+ */
3198
+ state: Record<string, any>;
3199
+ name: Ref<string | undefined>;
3200
+ hasPendingChanges: Ref<boolean>;
3201
+ parentView?: Readonly<string>;
3202
+ /**
3203
+ * Closes the view
3204
+ */
3205
+ close(): void;
3206
+ /**
3207
+ * Replaces the view with another view specified by the path
3208
+ * @param uri The path to the view to open. May contain a querystring
3209
+ * @param options
3210
+ */
3211
+ navigate(uri: string, options?: ViewNavigateOptions): void;
3212
+ /**
3213
+ * Whether this view is currently visible to the user
3214
+ */
3215
+ visible: Readonly<boolean>;
3216
+ /**
3217
+ * Whether this is the active view user is currently interacting with.
3218
+ */
3219
+ active: Readonly<boolean>;
3220
+ }
3221
+
2960
3222
  export declare namespace ViewContexts {
2961
3223
  export {
2962
3224
  OrderViewContext,
@@ -2964,6 +3226,26 @@ export declare namespace ViewContexts {
2964
3226
  }
2965
3227
  }
2966
3228
 
3229
+ export declare interface ViewNavigateOptions {
3230
+ /**
3231
+ * Optional structured "querystring" to pass to the view. As an alternative to path-embedded querystring
3232
+ */
3233
+ query?: Record<string, string | undefined>;
3234
+ state?: Record<string, any>;
3235
+ }
3236
+
3237
+ export declare interface ViewOptions {
3238
+ /**
3239
+ * Optional structured "querystring" to pass to the view. As an alternative to path-embedded querystring
3240
+ */
3241
+ query?: Record<string, string | undefined>;
3242
+ state?: Record<string, any>;
3243
+ /**
3244
+ * If set, allows views to be queried using PortalContext.getChildrenViews
3245
+ */
3246
+ parentViewId?: string;
3247
+ }
3248
+
2967
3249
  export declare interface WorkspaceMenuItem {
2968
3250
  folderPath: string;
2969
3251
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hantera/portal-app",
3
- "version": "20250526.0.0-develop.2",
3
+ "version": "20250707.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"