@gooddata/sdk-ui-kit 10.25.0-alpha.1 → 10.25.0-alpha.3

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.
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ArrowOffsets } from "../Bubble/index.js";
3
- import { IFilter, ISeparators } from "@gooddata/sdk-model";
3
+ import { IExecutionConfig, IFilter, ISeparators } from "@gooddata/sdk-model";
4
4
  /**
5
5
  * @internal
6
6
  */
@@ -45,6 +45,7 @@ export interface IDescriptionPanelProps {
45
45
  LoadingComponent?: React.ComponentType;
46
46
  filters?: IFilter[];
47
47
  separators?: ISeparators;
48
+ execConfig?: IExecutionConfig;
48
49
  }
49
50
  /**
50
51
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"DescriptionPanel.d.ts","sourceRoot":"","sources":["../../src/DescriptionPanel/DescriptionPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,YAAY,EAA8B,MAAM,oBAAoB,CAAC;AAG9E,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAI3D;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAgB1C,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;CAgB3C,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AAEH,MAAM,WAAW,sBAAsB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,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,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAI7D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAIpE,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAgB9D,CAAC"}
@@ -71,13 +71,13 @@ const DescriptionPanelCore = (props) => {
71
71
  React.createElement(DescriptionPanelContentCore, { ...props }))));
72
72
  };
73
73
  const DescriptionPanelContentCore = (props) => {
74
- const { title, description, useRichText = false, useReferences = false, LoadingComponent, filters, separators, } = props;
74
+ const { title, description, useRichText = false, useReferences = false, LoadingComponent, filters, separators, execConfig, } = props;
75
75
  const isZoomed = useIsZoomed(ZOOM_THRESHOLD); // ignore slight zoom in
76
76
  const className = cx("gd-description-panel s-gd-description-panel", {
77
77
  zoomed: isZoomed,
78
78
  });
79
79
  return (React.createElement("div", { className: className },
80
80
  !isEmpty(title) && React.createElement("div", { className: "gd-description-panel-title" }, title),
81
- !isEmpty(description) && (React.createElement("div", { className: "gd-description-panel-content" }, useRichText ? (React.createElement(RichText, { value: description, renderMode: "view", referencesEnabled: useReferences, filters: filters, separators: separators, LoadingComponent: LoadingComponent })) : (React.createElement(EllipsisText, { text: description }))))));
81
+ !isEmpty(description) && (React.createElement("div", { className: "gd-description-panel-content" }, useRichText ? (React.createElement(RichText, { value: description, renderMode: "view", referencesEnabled: useReferences, filters: filters, separators: separators, LoadingComponent: LoadingComponent, execConfig: execConfig })) : (React.createElement(EllipsisText, { text: description }))))));
82
82
  };
83
83
  //# sourceMappingURL=DescriptionPanel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DescriptionPanel.js","sourceRoot":"","sources":["../../src/DescriptionPanel/DescriptionPanel.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAgB,MAAM,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5E;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC1C,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAElB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;IAClB,EAAE,KAAK,EAAE,OAAO,EAAE;CACrB,CAAC;AACF;;GAEG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC3C,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IACf,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CA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O,CAAC,KAAK,CAAC,IAAI,6BAAK,SAAS,EAAC,4BAA4B,IAAE,KAAK,CAAO;QAC5E,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CACtB,6BAAK,SAAS,EAAC,8BAA8B,IACxC,WAAW,CAAC,CAAC,CAAC,CACX,oBAAC,QAAQ,IACL,KAAK,EAAE,WAAW,EAClB,UAAU,EAAC,MAAM,EACjB,iBAAiB,EAAE,aAAa,EAChC,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,UAAU,EAAE,UAAU,GACxB,CACL,CAAC,CAAC,CAAC,CACA,oBAAC,YAAY,IAAC,IAAI,EAAE,WAAW,GAAI,CACtC,CACC,CACT,CACC,CACT,CAAC;AACN,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { IFilter, ISeparators } from "@gooddata/sdk-model";
2
+ import { IExecutionConfig, IFilter, ISeparators } from "@gooddata/sdk-model";
3
3
  import { OnError, OnLoadingChanged } from "@gooddata/sdk-ui";
4
4
  /**
5
5
  * @internal
@@ -9,6 +9,7 @@ export interface IRichTextProps {
9
9
  onChange?: (text: string) => void;
10
10
  renderMode?: "view" | "edit";
11
11
  editPlaceholder?: string;
12
+ execConfig?: IExecutionConfig;
12
13
  editRows?: number;
13
14
  emptyElement?: JSX.Element;
14
15
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAiC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAqB5F;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,IAAI,EA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CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE;QACT,IAAI,EAAE,OAAO,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC3C,CAAC;IAEF;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IAEzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC1C;AA+LD;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAI7C,CAAC"}
@@ -19,7 +19,7 @@ const RICH_TEXT_PLACEHOLDER = `
19
19
  function DefaultLoadingComponent() {
20
20
  return React.createElement(LoadingComponent, null);
21
21
  }
22
- const RichTextCore = ({ value, onChange, referencesEnabled, renderMode = "view", editPlaceholder, editRows, emptyElement, className, autoResize, rawContent, filters, separators, onLoadingChanged, onError, LoadingComponent, }) => {
22
+ const RichTextCore = ({ value, execConfig, onChange, referencesEnabled, renderMode = "view", editPlaceholder, editRows, emptyElement, className, autoResize, rawContent, filters, separators, onLoadingChanged, onError, LoadingComponent, }) => {
23
23
  return (React.createElement("div", { className: cx([
24
24
  "gd-rich-text-content",
25
25
  `gd-rich-text-content-${renderMode}`,
@@ -28,7 +28,7 @@ const RichTextCore = ({ value, onChange, referencesEnabled, renderMode = "view",
28
28
  { "gd-visible-scrollbar": renderMode === "view" },
29
29
  className,
30
30
  ]) },
31
- renderMode === "edit" ? (React.createElement(RichTextEdit, { value: value, onChange: (updatedValue) => onChange?.(updatedValue), placeholder: editPlaceholder, rows: editRows, autoResize: autoResize })) : (React.createElement(RichTextView, { value: value, filters: filters, separators: separators, referencesEnabled: referencesEnabled, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError, emptyElement: emptyElement })),
31
+ renderMode === "edit" ? (React.createElement(RichTextEdit, { value: value, onChange: (updatedValue) => onChange?.(updatedValue), placeholder: editPlaceholder, rows: editRows, autoResize: autoResize })) : (React.createElement(RichTextView, { value: value, filters: filters, separators: separators, referencesEnabled: referencesEnabled, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError, emptyElement: emptyElement, execConfig: execConfig })),
32
32
  rawContent?.show ? React.createElement("input", { type: "hidden", value: value, ...rawContent.dataAttributes }) : null));
33
33
  };
34
34
  const RichTextEdit = ({ value, onChange, placeholder, rows = 10, autoResize = false, }) => {
@@ -62,9 +62,12 @@ const RichTextEdit = ({ value, onChange, placeholder, rows = 10, autoResize = fa
62
62
  };
63
63
  const ImageComponent = (props) => (React.createElement("img", { style: { maxWidth: "100%" }, ...props }));
64
64
  const AnchorComponent = (props) => (React.createElement("a", { target: "_blank", rel: "noopener noreferrer", ...props }));
65
- const RichTextView = ({ value, referencesEnabled, emptyElement, filters, separators, onError, onLoadingChanged, LoadingComponent = DefaultLoadingComponent, }) => {
65
+ const RichTextView = ({ value, referencesEnabled, emptyElement, filters, separators, execConfig, onError, onLoadingChanged, LoadingComponent = DefaultLoadingComponent, }) => {
66
66
  const intl = useIntl();
67
- const { loading, metrics, isEmptyValue, error } = useEvaluatedReferences(value, filters, referencesEnabled);
67
+ const { loading, metrics, isEmptyValue, error } = useEvaluatedReferences(value, filters, {
68
+ enabled: referencesEnabled,
69
+ ...execConfig,
70
+ });
68
71
  useEffect(() => {
69
72
  onLoadingChanged?.({
70
73
  isLoading: loading,
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.js","sourceRoot":"","sources":["../../src/RichText/RichText.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAA6B,MAAM,kBAAkB,CAAC;AAE5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,yFAAyF;AACzF,MAAM,6BAA6B,GAAG,EAAE,CAAC;AAEzC,MAAM,qBAAqB,GAAG;;;;;;CAM7B,CAAC;AAEF,SAAS,uBAAuB;IAC5B,OAAO,oBAAC,gBAAgB,OAAG,CAAC;AAChC,CAAC;AAoDD,MAAM,YAAY,GAA6B,CAAC,EAC5C,KAAK,EACL,QAAQ,EACR,iBAAiB,EACjB,UAAU,GAAG,MAAM,EACnB,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,EACV,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,OAAO,EACP,gBAAgB,GACnB,EAAE,EAAE;IACD,OAAO,CACH,6BACI,SAAS,EAAE,EAAE,CAAC;YACV,sBAAsB;YACtB,wBAAwB,UAAU,EAAE;YACpC,aAAa;YACb,eAAe,UAAU,EAAE;YAC3B,EAAE,sBAAsB,EAAE,UAAU,KAAK,MAAM,EAAE;YACjD,SAA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AAC,OAAO,CAAC;CACjC;AAqFD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAInE,CAAC"}
1
+ {"version":3,"file":"RichTextWithTooltip.d.ts","sourceRoot":"","sources":["../../src/RichText/RichTextWithTooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAE,cAAc,EAAY,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAgBxD;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,cAAc;IAC7D,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAC;IACnC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACjC;AA4FD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAInE,CAAC"}
@@ -13,11 +13,14 @@ const descriptionMarkdown = (React.createElement(React.Fragment, null,
13
13
  "* List",
14
14
  React.createElement("br", null),
15
15
  "[link](http://thisisalink.com)"));
16
- const RichTextWithTooltipCore = ({ value, onChange, renderMode, editPlaceholder, editRows, emptyElement, className, showTooltip = true, tooltipAlignPoints = alignPoints, tooltipDescription, tooltipMarkdown = descriptionMarkdown, autoResize, referencesEnabled, filters, separators, onLoadingChanged, onError, LoadingComponent, rawContent, }) => {
16
+ const RichTextWithTooltipCore = ({ value, onChange, renderMode, editPlaceholder, editRows, emptyElement, className, showTooltip = true, tooltipAlignPoints = alignPoints, tooltipDescription, tooltipMarkdown = descriptionMarkdown, autoResize, referencesEnabled, filters, separators, onLoadingChanged, onError, LoadingComponent, rawContent, execConfig, }) => {
17
17
  const intl = useIntl();
18
18
  const description = tooltipDescription ?? intl.formatMessage({ id: "richText.tooltip" });
19
19
  const Component = useMemo(() => {
20
- return (React.createElement(RichText, { value: value, onChange: onChange, renderMode: renderMode, editPlaceholder: editPlaceholder, editRows: editRows, emptyElement: emptyElement, className: className, autoResize: autoResize, referencesEnabled: referencesEnabled, filters: filters, separators: separators, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError, rawContent: rawContent }));
20
+ return (React.createElement(RichText, { value: value, onChange: onChange, renderMode: renderMode, editPlaceholder: editPlaceholder, editRows: editRows, emptyElement: emptyElement, className: className, autoResize: autoResize, referencesEnabled: referencesEnabled, filters: filters, separators: separators, LoadingComponent: LoadingComponent, onLoadingChanged: onLoadingChanged, onError: onError, rawContent: rawContent, execConfig: {
21
+ timestamp: execConfig.timestamp,
22
+ dataSamplingPercentage: execConfig.dataSamplingPercentage,
23
+ } }));
21
24
  }, [
22
25
  value,
23
26
  onChange,
@@ -34,6 +37,8 @@ const RichTextWithTooltipCore = ({ value, onChange, renderMode, editPlaceholder,
34
37
  onError,
35
38
  rawContent,
36
39
  separators,
40
+ execConfig.timestamp,
41
+ execConfig.dataSamplingPercentage,
37
42
  ]);
38
43
  if (!showTooltip) {
39
44
  return Component;
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextWithTooltip.js","sourceRoot":"","sources":["../../src/RichText/RichTextWithTooltip.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAkB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,MAAM,WAAW,GAAkB,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,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OAAO;QACP,UAAU;QACV,UAAU;QACV,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,sBAAsB;KACpC,CAAC,CAAC;IAEH,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO,CACH,oBAAC,kBAAkB,IAAC,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI;QAC3D,SAAS;QACT,WAAW,CAAC,CAAC,CAAC,CACX,oBAAC,MAAM,IACH,WAAW,EAAE,kBAAkB,EAC/B,SAAS,EAAC,6BAA6B,EACvC,gBAAgB,EAAC,mBAAmB;YAEnC,WAAW;YACX,eAAe,CACX,CACZ,CAAC,CAAC,CAAC,IAAI,CACS,CACxB,CAAC;AACN,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC/E,oBAAC,WAAW;IACR,oBAAC,uBAAuB,OAAK,KAAK,GAAI,CAC5B,CACjB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { DataPoint } from "@gooddata/sdk-ui";
2
- import { IFilter, IMeasure, IResultHeader, ObjRef } from "@gooddata/sdk-model";
2
+ import { IExecutionConfig, IFilter, IMeasure, IResultHeader, ObjRef } from "@gooddata/sdk-model";
3
3
  import { ReferenceMap } from "../helpers/references.js";
4
4
  export type EvaluatedMetric = {
5
5
  def: IMeasure;
@@ -9,7 +9,9 @@ export type EvaluatedMetric = {
9
9
  count: number;
10
10
  format?: string;
11
11
  };
12
- export declare function useEvaluatedMetricsAndAttributes(references: ReferenceMap, filters: IFilter[], enabled: boolean): {
12
+ export declare function useEvaluatedMetricsAndAttributes(references: ReferenceMap, filters: IFilter[], config: IExecutionConfig & {
13
+ enabled: boolean;
14
+ }): {
13
15
  loading: boolean;
14
16
  error: any;
15
17
  result: EvaluatedMetric[];
@@ -1 +1 @@
1
- {"version":3,"file":"useEvaluatedMetricsAndAttributes.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,SAAS,EAKZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,OAAO,EACP,QAAQ,EACR,aAAa,EAIb,MAAM,EACT,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG;IAC1B,GAAG,EAAE,QAAQ,CAAC;IACd,MAAM,EAAE,aAAa,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,gCAAgC,CAC5C,UAAU,EAAE,YAAY,EACxB,OAAO,EAAE,OAAO,EAAE,EAClB,OAAO,EAAE,OAAO;;;;EAiGnB"}
1
+ {"version":3,"file":"useEvaluatedMetricsAndAttributes.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,SAAS,EAKZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,gBAAgB,EAChB,OAAO,EACP,QAAQ,EACR,aAAa,EAIb,MAAM,EACT,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,MAAM,eAAe,GAAG;IAC1B,GAAG,EAAE,QAAQ,CAAC;IACd,MAAM,EAAE,aAAa,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,gCAAgC,CAC5C,UAAU,EAAE,YAAY,EACxB,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;;EAyGlD"}
@@ -1,17 +1,22 @@
1
1
  // (C) 2022-2025 GoodData Corporation
2
2
  import { useBackend, useCancelablePromise, useExecutionDataView, useWorkspace, } from "@gooddata/sdk-ui";
3
3
  import { isMeasureDefinition, newAttribute, newMeasure, } from "@gooddata/sdk-model";
4
- export function useEvaluatedMetricsAndAttributes(references, filters, enabled) {
4
+ export function useEvaluatedMetricsAndAttributes(references, filters, config) {
5
5
  const workspace = useWorkspace();
6
6
  const backend = useBackend();
7
7
  const metrics = getMeasures(references);
8
8
  const { metrics: labels, countMap } = getLabels(references);
9
9
  const items = [...metrics, ...labels];
10
+ const { enabled, ...execConfig } = config;
10
11
  const { status: executionStatus, result: executionResult, error: executionError, } = useExecutionDataView({
11
12
  execution: enabled && items.length > 0
12
- ? backend.workspace(workspace).execution().forItems(items, filters)
13
+ ? backend
14
+ .workspace(workspace)
15
+ .execution()
16
+ .forItems(items, filters)
17
+ .withExecConfig(execConfig)
13
18
  : null,
14
- });
19
+ }, [execConfig.timestamp, execConfig.dataSamplingPercentage]);
15
20
  const { status: loadStatus, result: loadResult, error: loadError, } = useCancelablePromise({
16
21
  promise: async () => {
17
22
  if (!executionResult) {
@@ -1 +1 @@
1
- {"version":3,"file":"useEvaluatedMetricsAndAttributes.js","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAEH,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAIH,mBAAmB,EACnB,YAAY,EACZ,UAAU,GAEb,MAAM,qBAAqB,CAAC;AAa7B,MAAM,UAAU,gCAAgC,CAC5C,UAAwB,EACxB,OAAkB,EAClB,OAAgB;IAEhB,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;I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AE,EAAE;gBACzC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;gBACxB,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;gBACvB,OAAO,CAAC,CAAC;YACb,CAAC,CAAC;SACL,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACH,QAAQ;QACR,OAAO;KACV,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"useEvaluatedMetricsAndAttributes.js","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedMetricsAndAttributes.ts"],"names":[],"mappings":"AAAA,qCAAqC;AAErC,OAAO,EAEH,UAAU,EACV,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,GACf,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAKH,mBAAmB,EACnB,YAAY,EACZ,UAAU,GAEb,MAAM,qBAAqB,CAAC;AAa7B,MAAM,UAAU,gCAAgC,CAC5C,UAAwB,EACxB,OAAkB,EAClB,MAA+C;IAE/C,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,MAAM,OAAO,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IACxC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,KAAK,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC;IACtC,MAAM,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,MAAM,CAAC;IAE1C,MAAM,EACF,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,cAAc,GACxB,GAAG,oBAAoB,CACpB;QACI,SAAS,EACL,OAAO,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YACvB,CAAC,CAAC,OAAO;iBACF,SAAS,CAAC,SAAS,CAAC;iBACpB,SAAS,EAAE;i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AC,GAAG,EAAE,CAAC,EAAE,EAAE;QACpC,OAAO,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,EAAE;YAC3B,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACpB,OAAO,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAEH,MAAM,QAAQ,GAA2B,EAAE,CAAC;IAC5C,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAe,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;QACtD,MAAM,YAAY,GAAG,SAAS,CAAC,EAAE,CAAC;QAClC,MAAM,YAAY,GAAG,WAAW,CAAC,EAAE,CAAC;QAEpC,QAAQ,CAAC,YAAY,CAAC,GAAG,YAAY,CAAC;QACtC,OAAO;YACH,GAAG,GAAG;YACN,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;gBACzC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;gBACxB,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;gBACrB,OAAO,CAAC,CAAC;YACb,CAAC,CAAC;YACF,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE;gBACzC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;gBACxB,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;gBACvB,OAAO,CAAC,CAAC;YACb,CAAC,CAAC;SACL,CAAC;IACN,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACH,QAAQ;QACR,OAAO;KACV,CAAC;AACN,CAAC"}
@@ -1,5 +1,7 @@
1
- import { IFilter } from "@gooddata/sdk-model";
2
- export declare function useEvaluatedReferences(value: string, filters: IFilter[], enabled: boolean): {
1
+ import { IExecutionConfig, IFilter } from "@gooddata/sdk-model";
2
+ export declare function useEvaluatedReferences(value: string, filters: IFilter[], config: IExecutionConfig & {
3
+ enabled: boolean;
4
+ }): {
3
5
  isEmptyValue: boolean;
4
6
  loading: boolean;
5
7
  metrics: import("./useEvaluatedMetricsAndAttributes.js").EvaluatedMetric[];
@@ -1 +1 @@
1
- {"version":3,"file":"useEvaluatedReferences.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAM9C,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO;;;;;EAgBzF"}
1
+ {"version":3,"file":"useEvaluatedReferences.d.ts","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAMhE,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,EAAE,gBAAgB,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;;;EAiBlD"}
@@ -2,10 +2,10 @@
2
2
  import { useMemo } from "react";
3
3
  import { collectReferences } from "../helpers/references.js";
4
4
  import { useEvaluatedMetricsAndAttributes } from "./useEvaluatedMetricsAndAttributes.js";
5
- export function useEvaluatedReferences(value, filters, enabled) {
5
+ export function useEvaluatedReferences(value, filters, config) {
6
6
  const isEmptyValue = useMemo(() => !value?.replace(/\s/g, ""), [value]);
7
7
  const references = useMemo(() => collectReferences(value), [value]);
8
- const { loading, result: metrics, error: metricsError, } = useEvaluatedMetricsAndAttributes(references, filters, enabled);
8
+ const { loading, result: metrics, error: metricsError, } = useEvaluatedMetricsAndAttributes(references, filters, config);
9
9
  return {
10
10
  isEmptyValue,
11
11
  loading,
@@ -1 +1 @@
1
- {"version":3,"file":"useEvaluatedReferences.js","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,MAAM,UAAU,sBAAsB,CAAC,KAAa,EAAE,OAAkB,EAAE,OAAgB;IACtF,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpE,MAAM,EACF,OAAO,EACP,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,YAAY,GACtB,GAAG,gCAAgC,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IAEnE,OAAO;QACH,YAAY;QACZ,OAAO;QACP,OAAO;QACP,KAAK,EAAE,YAAY;KACtB,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"useEvaluatedReferences.js","sourceRoot":"","sources":["../../../src/RichText/hooks/useEvaluatedReferences.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AAEzF,MAAM,UAAU,sBAAsB,CAClC,KAAa,EACb,OAAkB,EAClB,MAA+C;IAE/C,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IACxE,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpE,MAAM,EACF,OAAO,EACP,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,YAAY,GACtB,GAAG,gCAAgC,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;IAElE,OAAO;QACH,YAAY;QACZ,OAAO;QACP,OAAO;QACP,KAAK,EAAE,YAAY;KACtB,CAAC;AACN,CAAC"}
@@ -23,6 +23,7 @@ import { IAnalyticalBackend } from '@gooddata/sdk-backend-spi';
23
23
  import { IAuditableUsers } from '@gooddata/sdk-model';
24
24
  import { IColorPalette } from '@gooddata/sdk-model';
25
25
  import { IColorPaletteDefinition } from '@gooddata/sdk-model';
26
+ import { IExecutionConfig } from '@gooddata/sdk-model';
26
27
  import { IFilter } from '@gooddata/sdk-model';
27
28
  import { ILocale } from '@gooddata/sdk-ui';
28
29
  import { IMeasureSortTarget } from '@gooddata/sdk-model';
@@ -1614,6 +1615,7 @@ export declare interface IDescriptionPanelProps {
1614
1615
  LoadingComponent?: React_2.ComponentType;
1615
1616
  filters?: IFilter[];
1616
1617
  separators?: ISeparators_2;
1618
+ execConfig?: IExecutionConfig;
1617
1619
  }
1618
1620
 
1619
1621
  /**
@@ -3588,6 +3590,7 @@ export declare interface IRichTextProps {
3588
3590
  onChange?: (text: string) => void;
3589
3591
  renderMode?: "view" | "edit";
3590
3592
  editPlaceholder?: string;
3593
+ execConfig?: IExecutionConfig;
3591
3594
  editRows?: number;
3592
3595
  emptyElement?: JSX.Element;
3593
3596
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-ui-kit",
3
- "version": "10.25.0-alpha.1",
3
+ "version": "10.25.0-alpha.3",
4
4
  "description": "GoodData SDK - UI Building Components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -68,11 +68,11 @@
68
68
  "tslib": "^2.5.0",
69
69
  "uuid": "^8.3.2",
70
70
  "unified": "^11.0.5",
71
- "@gooddata/sdk-backend-spi": "10.25.0-alpha.1",
72
- "@gooddata/sdk-ui": "10.25.0-alpha.1",
73
- "@gooddata/sdk-model": "10.25.0-alpha.1",
74
- "@gooddata/sdk-ui-theme-provider": "10.25.0-alpha.1",
75
- "@gooddata/util": "10.25.0-alpha.1"
71
+ "@gooddata/sdk-backend-spi": "10.25.0-alpha.3",
72
+ "@gooddata/sdk-model": "10.25.0-alpha.3",
73
+ "@gooddata/sdk-ui": "10.25.0-alpha.3",
74
+ "@gooddata/sdk-ui-theme-provider": "10.25.0-alpha.3",
75
+ "@gooddata/util": "10.25.0-alpha.3"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "react": "^16.10.0 || ^17.0.0 || ^18.0.0",
@@ -131,8 +131,8 @@
131
131
  "typescript": "5.3.3",
132
132
  "vitest": "3.0.8",
133
133
  "vitest-dom": "0.1.1",
134
- "@gooddata/sdk-backend-mockingbird": "10.25.0-alpha.1",
135
- "@gooddata/reference-workspace": "10.25.0-alpha.1"
134
+ "@gooddata/reference-workspace": "10.25.0-alpha.3",
135
+ "@gooddata/sdk-backend-mockingbird": "10.25.0-alpha.3"
136
136
  },
137
137
  "scripts": {
138
138
  "clean": "rm -rf ci dist esm coverage styles/css *.log tsconfig.tsbuildinfo",