@holistics/anfra-sdk 0.20.0 → 0.22.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.
Files changed (38) hide show
  1. package/README.md +5 -0
  2. package/dist/api.d.ts +11 -8
  3. package/dist/api.js +45 -22
  4. package/dist/app.d.ts +5 -5
  5. package/dist/app.js +5 -4
  6. package/dist/{bootstrap-DHU2haC5.d.ts → bootstrap-fGoj2ap1.d.ts} +324 -27
  7. package/dist/build.d.ts +2 -2
  8. package/dist/{chunk-32566ZNE.js → chunk-2TTGSNHA.js} +1 -1
  9. package/dist/{chunk-H52PO7MP.js → chunk-33HI2ODM.js} +25 -0
  10. package/dist/chunk-4UEESYHH.js +32 -0
  11. package/dist/{chunk-KKSOTHP4.js → chunk-7GQZU5FL.js} +1 -1
  12. package/dist/{chunk-4TXKXLWK.js → chunk-7I2HXY72.js} +1 -1
  13. package/dist/{chunk-DITKCHFQ.js → chunk-CLXZMA5D.js} +1 -1
  14. package/dist/{chunk-GBXK7F2V.js → chunk-D7DIJRAC.js} +14 -1
  15. package/dist/{chunk-ACKFOANJ.js → chunk-DWQUIHUX.js} +4 -1
  16. package/dist/{chunk-FTTVLHNN.js → chunk-EOFPMSND.js} +1 -1
  17. package/dist/{chunk-SXKJQU7A.js → chunk-GPBYPSWK.js} +22 -36
  18. package/dist/{chunk-EIPHDMZ7.js → chunk-UWRQXPPG.js} +69 -24
  19. package/dist/{chunk-T5T76SAR.js → chunk-YPGMBSOZ.js} +1209 -274
  20. package/dist/common.d.ts +3 -3
  21. package/dist/common.js +1 -1
  22. package/dist/{data-ESPFZ5IM.js → data-SZDYO55C.js} +7 -5
  23. package/dist/{declaration-RYRBX7PH.js → declaration-GYV6OUR3.js} +5 -3
  24. package/dist/{errors-189T_Mnc.d.ts → errors-kH5eHvNO.d.ts} +1 -1
  25. package/dist/host.d.ts +2 -2
  26. package/dist/host.js +31 -8
  27. package/dist/{overview-AWPXJACF.js → overview-CD6NY3VQ.js} +28 -13
  28. package/dist/{plugin-rRd-zHGt.d.ts → plugin-DG2NDTCT.d.ts} +7 -2
  29. package/dist/plugins.d.ts +1 -7
  30. package/dist/plugins.js +53 -17
  31. package/dist/{queries-FWMX7H5Z.js → queries-BWKWZQMG.js} +70 -17
  32. package/dist/{structure-VFRJFC4C.js → structure-JO4YZHKZ.js} +5 -3
  33. package/dist/{tab-XL2HS5W4.js → tab-QPHE7YUQ.js} +3 -3
  34. package/dist/testing.d.ts +2 -1
  35. package/dist/testing.js +8 -7
  36. package/dist/{menu-Cam-hOdJ.d.ts → theme-FQ_1b569.d.ts} +72 -55
  37. package/dist/{types-N0V9n38H.d.ts → types-BE767W6G.d.ts} +879 -129
  38. package/package.json +1 -1
package/dist/common.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiErrorCode, D as DataAppError, a as DataAppErrorInit, E as ErrorCode, b as ErrorContextEntry, c as ErrorDetails, d as ErrorScope, F as FromHttpStatusOptions, G as GENERIC_CODES, e as GenericCode, V as ValidationError, f as callFailed, g as connectionFailed, h as forbidden, i as fromHttpStatus, j as hasErrorCode, k as invalidRequest, l as isDataAppError } from './errors-189T_Mnc.js';
2
- export { A as Aggregation, a as AppDeclaration, b as AppJson, c as ArrowType, B as Backend, d as BackendCondition, e as BackendDateDrill, f as BackendExportRequest, g as BackendFilter, h as BackendLineageRequest, i as BackendQueryRequest, j as BackendQueryResult, k as BackendSort, C as ColumnMeta, l as Condition, m as ConditionValue, n as ControlMappingJson, o as CrossFilterJson, D as DatasetDescriptor, p as DateDrillDeclaration, q as DateGrain, r as DateTransformation, E as EntityKind, s as EntityRef, t as EntityUsage, u as ExecuteOptions, v as ExecuteSummary, w as ExportFormat, x as ExportFormatOptions, y as ExportOptions, z as ExportResult, F as FILTER_AGGREGATIONS, G as FieldLineage, H as FieldSuggestionsRequest, I as FilterAggregation, J as FilterDeclaration, K as FilterValueType, L as InspectedApp, M as InspectedControl, N as InspectedError, O as InspectedQuery, P as InspectedSelection, Q as InspectedStructure, R as LineageCard, S as LineageDiagram, T as LineageNode, U as LineageOptions, V as LineageResult, W as LineageTarget, X as Listener, Y as LocateKind, Z as LocateTarget, _ as MappingJson, $ as Operator, a0 as QueryDebug, a1 as QueryDeclaration, a2 as QueryInput, a3 as QueryRequest, a4 as QueryResult, a5 as QuerySort, a6 as QueryState, a7 as QueryTimings, a8 as RenderFormat, a9 as RenderRequest, aa as Rendering, ab as Row, ac as SdkEnvironment, ad as SdkFeatures, ae as Selection, af as SelectionCondition, ag as SemanticType, ah as StructureKind, ai as StructureNode, aj as Unsubscribe, ak as User } from './types-N0V9n38H.js';
1
+ export { A as ApiErrorCode, D as DataAppError, a as DataAppErrorInit, E as ErrorCode, b as ErrorContextEntry, c as ErrorDetails, d as ErrorScope, F as FromHttpStatusOptions, G as GENERIC_CODES, e as GenericCode, V as ValidationError, f as callFailed, g as connectionFailed, h as forbidden, i as fromHttpStatus, j as hasErrorCode, k as invalidRequest, l as isDataAppError } from './errors-kH5eHvNO.js';
2
+ export { A as Aggregation, a as Annotation, b as AnnotationInput, c as AnnotationKind, d as AnnotationSeverity, e as AppDeclaration, f as AppJson, g as ArrowType, B as Backend, h as BackendCondition, i as BackendDateDrill, j as BackendExportRequest, k as BackendFilter, l as BackendLineageRequest, m as BackendQueryRequest, n as BackendQueryResult, o as BackendSort, C as CallStamp, p as ColumnMeta, q as Condition, r as ConditionValue, s as ControlMappingJson, t as CrossFilterJson, D as DatasetDescriptor, u as DateDrillDeclaration, v as DateGrain, w as DateTransformation, E as EntityKind, x as EntityRef, y as EntityUsage, z as ExecuteOptions, F as ExecuteSummary, G as ExportFormat, H as ExportFormatOptions, I as ExportOptions, J as ExportResult, K as FILTER_AGGREGATIONS, L as FieldLineage, M as FieldSuggestionsRequest, N as FilterAggregation, O as FilterDeclaration, P as FilterValueType, Q as InspectedApp, R as InspectedControl, S as InspectedError, T as InspectedQuery, U as InspectedSelection, V as InspectedStructure, W as LineageCard, X as LineageDiagram, Y as LineageNode, Z as LineageOptions, _ as LineageResult, $ as LineageTarget, a0 as Listener, a1 as LocateKind, a2 as LocateTarget, a3 as MappingJson, a4 as Operator, a5 as QueryCacheResult, a6 as QueryCacheSettings, a7 as QueryDebug, a8 as QueryDeclaration, a9 as QueryInput, aa as QueryInputDefaults, ab as QueryPagination, ac as QueryPivot, ad as QueryRequest, ae as QueryResult, af as QuerySeeds, ag as QuerySort, ah as QueryStamp, ai as QueryState, aj as QueryTimings, ak as RangeAnchor, al as RenderFormat, am as RenderRequest, an as Rendering, ao as ResolvedRowsAnchor, ap as Row, aq as RowsAnchor, ar as SdkEnvironment, as as SdkFeatures, at as Selection, au as SelectionCondition, av as SemanticType, aw as SeriesAnchor, ax as SeriesPoint, ay as StructureKind, az as StructureNode, aA as Unsubscribe, aB as User, aC as ValueAnchor, aD as WeekStartDay } from './types-BE767W6G.js';
3
3
  export { A as AppConsoleEvent, a as AppErrorEvent, b as AppErrorKind } from './runtimeErrors-gswksjDk.js';
4
- export { B as BridgeError, a as BridgeMessage, D as DEFAULT_TOKENS, b as DESIGN_TOKENS, F as FrameMessage, H as HostMessage, M as MenuEntry, c as MenuTarget, d as MenuTargetKind, N as NodeTarget, P as PROVISION_ELEMENT_ID, e as PluginInfo, f as Provision, R as RowsTarget, T as THEME_TOKENS, g as TargetRect, h as Theme, i as ThemeInput, j as ThemeScheme, k as ThemeToken, l as ThemeTokens, m as checkTarget, n as designTheme, r as resolveTheme } from './menu-Cam-hOdJ.js';
4
+ export { B as BridgeError, a as BridgeMessage, D as DEFAULT_TOKENS, b as DESIGN_TOKENS, F as FrameMessage, H as HostMessage, M as MenuEntry, c as MenuTarget, d as MenuTargetKind, N as NodeTarget, P as PROVISION_ELEMENT_ID, e as PluginInfo, f as Provision, R as RowsTarget, T as THEME_TOKENS, g as TargetPoint, h as TargetRect, i as Theme, j as ThemeInput, k as ThemeScheme, l as ThemeToken, m as ThemeTokens, n as checkTarget, o as designTheme, r as resolveTheme } from './theme-FQ_1b569.js';
package/dist/common.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk-UUKXJSE4.js";
2
2
  import {
3
3
  checkTarget
4
- } from "./chunk-ACKFOANJ.js";
4
+ } from "./chunk-DWQUIHUX.js";
5
5
  import {
6
6
  FILTER_AGGREGATIONS
7
7
  } from "./chunk-XIUFHRZE.js";
@@ -5,11 +5,13 @@ import {
5
5
  declaredFilters,
6
6
  isActive,
7
7
  queryInputs
8
- } from "./chunk-DITKCHFQ.js";
8
+ } from "./chunk-CLXZMA5D.js";
9
9
  import {
10
10
  attributeRequests,
11
11
  stateOf
12
- } from "./chunk-EIPHDMZ7.js";
12
+ } from "./chunk-UWRQXPPG.js";
13
+ import "./chunk-GPBYPSWK.js";
14
+ import "./chunk-HELL45MM.js";
13
15
  import {
14
16
  badge,
15
17
  collapsible,
@@ -25,13 +27,13 @@ import {
25
27
  queryTrust,
26
28
  table,
27
29
  trustIndicator
28
- } from "./chunk-32566ZNE.js";
30
+ } from "./chunk-2TTGSNHA.js";
29
31
  import "./chunk-K633QHGO.js";
30
32
  import {
31
33
  entityNodeKey,
32
34
  formatAgo,
33
35
  plural
34
- } from "./chunk-H52PO7MP.js";
36
+ } from "./chunk-33HI2ODM.js";
35
37
  import "./chunk-PKBMQBKP.js";
36
38
 
37
39
  // src/plugins/inspect/tabs/data.ts
@@ -77,7 +79,7 @@ function rowCount(shown, total) {
77
79
  return total !== void 0 && total > shown ? `First ${shown} of ${total} rows` : plural(shown, "row");
78
80
  }
79
81
  function latestRows(requests) {
80
- return requests?.find(({ entry, shared }) => !shared && entry.status === "ok" && entry.preview && entry.columns && !(entry.page && entry.page > 1))?.entry;
82
+ return requests?.find(({ entry }) => entry.status === "ok" && entry.preview && entry.columns && !entry.stamp?.variant && (entry.input?.pagination?.page ?? 1) === 1)?.entry;
81
83
  }
82
84
  var handled = /* @__PURE__ */ new WeakMap();
83
85
  function dataTab(root, context) {
@@ -1,6 +1,8 @@
1
1
  import {
2
2
  stateOf
3
- } from "./chunk-EIPHDMZ7.js";
3
+ } from "./chunk-UWRQXPPG.js";
4
+ import "./chunk-GPBYPSWK.js";
5
+ import "./chunk-HELL45MM.js";
4
6
  import {
5
7
  collapsible,
6
8
  copyIcon,
@@ -12,13 +14,13 @@ import {
12
14
  link,
13
15
  note,
14
16
  popover
15
- } from "./chunk-32566ZNE.js";
17
+ } from "./chunk-2TTGSNHA.js";
16
18
  import {
17
19
  controlMappings,
18
20
  crossFilters,
19
21
  wiringChecks
20
22
  } from "./chunk-K633QHGO.js";
21
- import "./chunk-H52PO7MP.js";
23
+ import "./chunk-33HI2ODM.js";
22
24
  import "./chunk-PKBMQBKP.js";
23
25
 
24
26
  // src/plugins/inspect/tabs/declaration.ts
@@ -1,4 +1,4 @@
1
- import { al as components } from './types-N0V9n38H.js';
1
+ import { aE as components } from './types-BE767W6G.js';
2
2
 
3
3
  /**
4
4
  * A Data App's errors are the API's error document, not classes picked for it
package/dist/host.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PluginInfo, Theme, ThemeInput, Provision } from './app.js';
2
2
  import { DatasetDescriptor, User } from './app.js';
3
- import { C as Command, T as Tab, a as CallOptions, P as Panel, b as CommandState, c as Plugin, M as Middleware, d as CommandContribution, e as TabContribution, f as Contribution } from './plugin-rRd-zHGt.js';
4
- export { g as CallContext, h as CallDefinition, i as CallHandler, j as Caller, k as CommandRun, l as CommandStateContext, E as EventCheck, F as FrameHalf, H as HandlerCallOptions, m as HandlerContext, n as HostHalf, o as MountContext, p as PanelVerb, S as Snapshot, q as TabContext, r as definePlugin } from './plugin-rRd-zHGt.js';
3
+ import { C as Command, T as Tab, a as CallOptions, P as Panel, b as CommandState, c as Plugin, M as Middleware, d as CommandContribution, e as TabContribution, f as Contribution } from './plugin-DG2NDTCT.js';
4
+ export { g as CallContext, h as CallDefinition, i as CallHandler, j as Caller, k as CommandRun, l as CommandStateContext, E as EventCheck, F as FrameHalf, H as HandlerCallOptions, m as HandlerContext, n as HostHalf, o as MountContext, p as PanelVerb, S as Snapshot, q as TabContext, r as definePlugin } from './plugin-DG2NDTCT.js';
5
5
  export { A as AppConsoleEvent, a as AppErrorEvent, b as AppErrorKind } from './runtimeErrors-gswksjDk.js';
6
6
 
7
7
  interface HostOptions {