@gooddata/sdk-ui 9.0.0-alpha.2 → 9.0.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.
Files changed (48) hide show
  1. package/dist/base/index.d.ts +0 -1
  2. package/dist/base/index.d.ts.map +1 -1
  3. package/dist/base/index.js +1 -3
  4. package/dist/base/index.js.map +1 -1
  5. package/dist/execution/index.d.ts +0 -2
  6. package/dist/execution/index.d.ts.map +1 -1
  7. package/dist/execution/index.js +1 -5
  8. package/dist/execution/index.js.map +1 -1
  9. package/dist/execution/useExecutionDataView.d.ts.map +1 -1
  10. package/dist/execution/useExecutionDataView.js +23 -3
  11. package/dist/execution/useExecutionDataView.js.map +1 -1
  12. package/dist/sdk-ui.d.ts +0 -203
  13. package/esm/base/index.d.ts +0 -1
  14. package/esm/base/index.d.ts.map +1 -1
  15. package/esm/base/index.js +0 -1
  16. package/esm/base/index.js.map +1 -1
  17. package/esm/execution/index.d.ts +0 -2
  18. package/esm/execution/index.d.ts.map +1 -1
  19. package/esm/execution/index.js +0 -2
  20. package/esm/execution/index.js.map +1 -1
  21. package/esm/execution/useExecutionDataView.d.ts.map +1 -1
  22. package/esm/execution/useExecutionDataView.js +24 -4
  23. package/esm/execution/useExecutionDataView.js.map +1 -1
  24. package/package.json +8 -8
  25. package/dist/base/helpers/CatalogHelper.d.ts +0 -99
  26. package/dist/base/helpers/CatalogHelper.d.ts.map +0 -1
  27. package/dist/base/helpers/CatalogHelper.js +0 -89
  28. package/dist/base/helpers/CatalogHelper.js.map +0 -1
  29. package/dist/execution/useDataView.d.ts +0 -31
  30. package/dist/execution/useDataView.d.ts.map +0 -1
  31. package/dist/execution/useDataView.js +0 -38
  32. package/dist/execution/useDataView.js.map +0 -1
  33. package/dist/execution/useExecution.d.ts +0 -70
  34. package/dist/execution/useExecution.d.ts.map +0 -1
  35. package/dist/execution/useExecution.js +0 -28
  36. package/dist/execution/useExecution.js.map +0 -1
  37. package/esm/base/helpers/CatalogHelper.d.ts +0 -99
  38. package/esm/base/helpers/CatalogHelper.d.ts.map +0 -1
  39. package/esm/base/helpers/CatalogHelper.js +0 -85
  40. package/esm/base/helpers/CatalogHelper.js.map +0 -1
  41. package/esm/execution/useDataView.d.ts +0 -31
  42. package/esm/execution/useDataView.d.ts.map +0 -1
  43. package/esm/execution/useDataView.js +0 -34
  44. package/esm/execution/useDataView.js.map +0 -1
  45. package/esm/execution/useExecution.d.ts +0 -70
  46. package/esm/execution/useExecution.d.ts.map +0 -1
  47. package/esm/execution/useExecution.js +0 -24
  48. package/esm/execution/useExecution.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useExecutionDataView.js","sourceRoot":"","sources":["../../src/execution/useExecutionDataView.ts"],"names":[],"mappings":"AAGA,OAAO,EAGH,gBAAgB,EAChB,kBAAkB,EAElB,gCAAgC,GAOnC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAmDpD;;GAEG;AACH,SAAS,wBAAwB,CAAC,GAAY;IAC1C,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,GAA+B,aAA/B,GAAG,uBAAH,GAAG,CAA8B,QAAQ,CAAA,CAAC;AACzE,CAAC;AAgDD;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAChC,MAAmE,EACnE,IAA2B;;IAE3B,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IACzF,MAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAC;IACzE,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAM,CAAC,SAAS,EAAE,sBAAsB,CAAC,CAAC;IAC/E,MAAM,aAAa,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC;IAEjC,MAAM,cAAc,GAAG,8BAA8B,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACxE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,gCAAgC,CAClF;QACI,cAAc,CAAC,QAAQ;QACvB,cAAc,CAAC,QAAQ;QACvB,cAAc,CAAC,MAAM;QACrB,cAAc,CAAC,OAAO;QACtB,cAAc,CAAC,MAAM;KACxB,EACD,cAAc,CAAC,6BAA6B,CAC/C,CAAC;IAEF,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,SAAS,CAAC;QACzD,CAAC,CAAC,eAAe,iCACR,SAAS,KACZ,QAAQ,EAAE,QAAS,EACnB,QAAQ;YACR,MAAM;YACN,OAAO;YACP,MAAM;YACN,OAAO;YACP,SAAS,IACX;QACJ,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO,WAAW,CACd,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,EAC5F;QACI,OAAO;QACP,SAAS;QACT,MAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,mCAAI,0BAA0B;QAC9D,GAAG,aAAa;KACnB,CACJ,CAAC;AACN,CAAC;AAED;;GAEG;AACH,SAAS,8BAA8B,CACnC,SAAwD;IAExD,IAAI,wBAAwB,CAAC,SAAS,CAAC,EAAE;QACrC,OAAO,SAAS,CAAC;KACpB;IAED,OAAO,EAAE,CAAC;AACd,CAAC"}
1
+ {"version":3,"file":"useExecutionDataView.js","sourceRoot":"","sources":["../../src/execution/useExecutionDataView.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,cAAc,EAEd,gBAAgB,EAChB,kBAAkB,EAElB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- "version": "9.0.0-alpha.2",
3
+ "version": "9.0.0-alpha.3",
4
4
  "description": "GoodData.UI SDK - Core",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,9 +45,9 @@
45
45
  "ts-invariant": "^0.7.3",
46
46
  "tslib": "^2.5.0",
47
47
  "uuid": "^8.3.2",
48
- "@gooddata/sdk-model": "9.0.0-alpha.2",
49
- "@gooddata/util": "9.0.0-alpha.2",
50
- "@gooddata/sdk-backend-spi": "9.0.0-alpha.2"
48
+ "@gooddata/sdk-backend-spi": "9.0.0-alpha.3",
49
+ "@gooddata/util": "9.0.0-alpha.3",
50
+ "@gooddata/sdk-model": "9.0.0-alpha.3"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": "^16.10.0 || ^17.0.0 || ^18.0.0",
@@ -100,10 +100,10 @@
100
100
  "ts-jest": "^29.1.0",
101
101
  "tsd": "^0.21.0",
102
102
  "typescript": "5.0.2",
103
- "@gooddata/i18n-toolkit": "9.0.0-alpha.2",
104
- "@gooddata/reference-workspace": "9.0.0-alpha.2",
105
- "@gooddata/sdk-backend-mockingbird": "9.0.0-alpha.2",
106
- "@gooddata/sdk-backend-base": "9.0.0-alpha.2"
103
+ "@gooddata/i18n-toolkit": "9.0.0-alpha.3",
104
+ "@gooddata/reference-workspace": "9.0.0-alpha.3",
105
+ "@gooddata/sdk-backend-base": "9.0.0-alpha.3",
106
+ "@gooddata/sdk-backend-mockingbird": "9.0.0-alpha.3"
107
107
  },
108
108
  "scripts": {
109
109
  "clean": "rm -rf ci dist esm coverage *.log && jest --clearCache",
@@ -1,99 +0,0 @@
1
- /**
2
- * @public
3
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
4
- */
5
- export interface IIdentifierWithTags {
6
- identifier: string;
7
- tags: string;
8
- }
9
- /**
10
- * @public
11
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
12
- */
13
- export interface IDisplayForms {
14
- [key: string]: IIdentifierWithTags;
15
- }
16
- /**
17
- * @public
18
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
19
- */
20
- export interface IAttrItem {
21
- identifier: string;
22
- tags: string;
23
- displayForms: IDisplayForms;
24
- defaultDisplayForm: IIdentifierWithTags;
25
- }
26
- /**
27
- * @public
28
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
29
- */
30
- export interface IAttrs {
31
- [key: string]: IAttrItem;
32
- }
33
- /**
34
- * @public
35
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
36
- */
37
- export interface IDataSet {
38
- identifier: string;
39
- tags: string;
40
- attributes: IAttrs;
41
- }
42
- /**
43
- * @public
44
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
45
- */
46
- export interface ICatalog {
47
- measures?: {
48
- [key: string]: IIdentifierWithTags;
49
- };
50
- visualizations: {
51
- [key: string]: IIdentifierWithTags;
52
- };
53
- attributes: IAttrs;
54
- dateDataSets: {
55
- [key: string]: IDataSet;
56
- };
57
- }
58
- /**
59
- * Tool that exposes API that to look up measures, attributes, visualizations and other metadata elements
60
- *
61
- * @example
62
- * ```
63
- * import catalog from './catalog.json';
64
- * const C = new CatalogHelper(catalog);
65
- * ```
66
- *
67
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
68
- * @public
69
- */
70
- export declare class CatalogHelper {
71
- measures: {
72
- [key: string]: IIdentifierWithTags;
73
- };
74
- visualizations: {
75
- [key: string]: IIdentifierWithTags;
76
- };
77
- attributes: {
78
- [key: string]: IAttrItem;
79
- };
80
- dateDataSets: {
81
- [key: string]: IDataSet;
82
- };
83
- constructor(catalog: ICatalog);
84
- measure(name: string): string;
85
- measureTags(name: string): string;
86
- visualization(name: string): string;
87
- visualizationTags(name: string): string;
88
- attribute(attributeName: string): string;
89
- attributeTags(attributeName: string): string;
90
- attributeDisplayForm(attributeName: string, displayFormName?: string): string;
91
- attributeDisplayFormTags(attributeName: string, displayFormName?: string): string;
92
- dateDataSet(dataSetName: string): string;
93
- dateDataSetTags(dataSetName: string): string;
94
- dateDataSetAttribute(dataSetName: string, attrName: string): string;
95
- dateDataSetAttributeTags(dataSetName: string, attrName: string): string;
96
- dateDataSetDisplayForm(dataSetName: string, attributeName: string, displayFormName?: string): string;
97
- dateDataSetDisplayFormTags(dataSetName: string, attributeName: string, displayFormName?: string): string;
98
- }
99
- //# sourceMappingURL=CatalogHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CatalogHelper.d.ts","sourceRoot":"","sources":["../../../src/base/helpers/CatalogHelper.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAC;CACtC;AAED;;;GAGG;AACH,MAAM,WAAW,SAAS;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,aAAa,CAAC;IAC5B,kBAAkB,EAAE,mBAAmB,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAC;IAClD,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAC;IACvD,UAAU,EAAE,MAAM,CAAC;IACn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a,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,GACzB,MAAM;IAKF,0BAA0B,CAC7B,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,GACzB,MAAM;CAIZ"}
@@ -1,89 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CatalogHelper = void 0;
4
- function getDisplayFormFromAttr(attrs, attributeName, displayFormName, property) {
5
- var _a, _b, _c, _d, _e;
6
- if (!displayFormName) {
7
- return (_b = (_a = attrs === null || attrs === void 0 ? void 0 : attrs[attributeName]) === null || _a === void 0 ? void 0 : _a.defaultDisplayForm) === null || _b === void 0 ? void 0 : _b[property];
8
- }
9
- return (_e = (_d = (_c = attrs === null || attrs === void 0 ? void 0 : attrs[attributeName]) === null || _c === void 0 ? void 0 : _c.displayForms) === null || _d === void 0 ? void 0 : _d[displayFormName]) === null || _e === void 0 ? void 0 : _e[property];
10
- }
11
- /**
12
- * Tool that exposes API that to look up measures, attributes, visualizations and other metadata elements
13
- *
14
- * @example
15
- * ```
16
- * import catalog from './catalog.json';
17
- * const C = new CatalogHelper(catalog);
18
- * ```
19
- *
20
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
21
- * @public
22
- */
23
- class CatalogHelper {
24
- constructor(catalog) {
25
- var _a;
26
- this.measures = (_a = catalog.measures) !== null && _a !== void 0 ? _a : {};
27
- this.visualizations = catalog.visualizations;
28
- this.attributes = catalog.attributes;
29
- this.dateDataSets = catalog.dateDataSets;
30
- }
31
- measure(name) {
32
- var _a, _b;
33
- return (_b = (_a = this.measures) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.identifier;
34
- }
35
- measureTags(name) {
36
- var _a, _b;
37
- return (_b = (_a = this.measures) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.tags;
38
- }
39
- visualization(name) {
40
- var _a, _b;
41
- return (_b = (_a = this.visualizations) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.identifier;
42
- }
43
- visualizationTags(name) {
44
- var _a, _b;
45
- return (_b = (_a = this.visualizations) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.tags;
46
- }
47
- attribute(attributeName) {
48
- var _a, _b;
49
- return (_b = (_a = this.attributes) === null || _a === void 0 ? void 0 : _a[attributeName]) === null || _b === void 0 ? void 0 : _b.identifier;
50
- }
51
- attributeTags(attributeName) {
52
- var _a, _b;
53
- return (_b = (_a = this.attributes) === null || _a === void 0 ? void 0 : _a[attributeName]) === null || _b === void 0 ? void 0 : _b.tags;
54
- }
55
- attributeDisplayForm(attributeName, displayFormName) {
56
- return getDisplayFormFromAttr(this.attributes, attributeName, displayFormName, "identifier");
57
- }
58
- attributeDisplayFormTags(attributeName, displayFormName) {
59
- return getDisplayFormFromAttr(this.attributes, attributeName, displayFormName, "tags");
60
- }
61
- dateDataSet(dataSetName) {
62
- var _a, _b;
63
- return (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.identifier;
64
- }
65
- dateDataSetTags(dataSetName) {
66
- var _a, _b;
67
- return (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.tags;
68
- }
69
- dateDataSetAttribute(dataSetName, attrName) {
70
- var _a, _b, _c, _d;
71
- return (_d = (_c = (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.attributes) === null || _c === void 0 ? void 0 : _c[attrName]) === null || _d === void 0 ? void 0 : _d.identifier;
72
- }
73
- dateDataSetAttributeTags(dataSetName, attrName) {
74
- var _a, _b, _c, _d;
75
- return (_d = (_c = (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.attributes) === null || _c === void 0 ? void 0 : _c[attrName]) === null || _d === void 0 ? void 0 : _d.tags;
76
- }
77
- dateDataSetDisplayForm(dataSetName, attributeName, displayFormName) {
78
- var _a, _b;
79
- const attrs = (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.attributes;
80
- return getDisplayFormFromAttr(attrs, attributeName, displayFormName, "identifier");
81
- }
82
- dateDataSetDisplayFormTags(dataSetName, attributeName, displayFormName) {
83
- var _a, _b;
84
- const attrs = (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.attributes;
85
- return getDisplayFormFromAttr(attrs, attributeName, displayFormName, "tags");
86
- }
87
- }
88
- exports.CatalogHelper = CatalogHelper;
89
- //# sourceMappingURL=CatalogHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CatalogHelper.js","sourceRoot":"","sources":["../../../src/base/helpers/CatalogHelper.ts"],"names":[],"mappings":";;;AA0DA,SAAS,sBAAsB,CAC3B,KAAa,EACb,aAAqB,EACrB,eAAmC,EACnC,QAA+B;;IAE/B,IAAI,CAAC,eAAe,EAAE;QAClB,OAAO,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,aAAa,CAAC,0CAAE,kBAAkB,0CAAG,QAAQ,CAAC,CAAC;KACjE;IACD,OAAO,MAAA,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,aAAa,CAAC,0CAAE,YAAY,0CAAG,eAAe,CAAC,0CAAG,QAAQ,CAAC,CAAC;AAC/E,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAa,aAAa;IAMtB,YAAY,OAAiB;;QACzB,IAAI,CAAC,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,EAAE,CAAC;QACvC,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC7C,IAAI,CAAC,UAAU,G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M,eAAe,CAAC,WAAmB;;QACtC,OAAO,MAAA,MAAA,IAAI,CAAC,YAAY,0CAAG,WAAW,CAAC,0CAAE,IAAI,CAAC;IAClD,CAAC;IAEM,oBAAoB,CAAC,WAAmB,EAAE,QAAgB;;QAC7D,OAAO,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,YAAY,0CAAG,WAAW,CAAC,0CAAE,UAAU,0CAAG,QAAQ,CAAC,0CAAE,UAAU,CAAC;IAChF,CAAC;IAEM,wBAAwB,CAAC,WAAmB,EAAE,QAAgB;;QACjE,OAAO,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,YAAY,0CAAG,WAAW,CAAC,0CAAE,UAAU,0CAAG,QAAQ,CAAC,0CAAE,IAAI,CAAC;IAC1E,CAAC;IAEM,sBAAsB,CACzB,WAAmB,EACnB,aAAqB,EACrB,eAAwB;;QAExB,MAAM,KAAK,GAAG,MAAA,MAAA,IAAI,CAAC,YAAY,0CAAG,WAAW,CAAC,0CAAE,UAAU,CAAC;QAC3D,OAAO,sBAAsB,CAAC,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC;IACvF,CAAC;IAEM,0BAA0B,CAC7B,WAAmB,EACnB,aAAqB,EACrB,eAAwB;;QAExB,MAAM,KAAK,GAAG,MAAA,MAAA,IAAI,CAAC,YAAY,0CAAG,WAAW,CAAC,0CAAE,UAAU,CAAC;QAC3D,OAAO,sBAAsB,CAAC,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;IACjF,CAAC;CACJ;AA9ED,sCA8EC"}
@@ -1,31 +0,0 @@
1
- import { DependencyList } from "react";
2
- import { IPreparedExecution } from "@gooddata/sdk-backend-spi";
3
- import { DataViewWindow } from "./withExecutionLoading";
4
- import { DataViewFacade, GoodDataSdkError, UseCancelablePromiseCallbacks, UseCancelablePromiseState } from "../base";
5
- /**
6
- * Indicates current state of useDataView hook
7
- * @deprecated use {@link useExecutionDataView} instead
8
- * @beta
9
- */
10
- export type UseDataViewState = UseCancelablePromiseState<DataViewFacade, GoodDataSdkError>;
11
- /**
12
- * Callbacks for useDataView hook
13
- * @deprecated use {@link useExecutionDataView} instead
14
- * @beta
15
- */
16
- export type UseDataViewCallbacks = UseCancelablePromiseCallbacks<DataViewFacade, GoodDataSdkError>;
17
- /**
18
- * This hook provides easy way to get data for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
19
- *
20
- * @remarks
21
- * You can use it to create custom visualizations on top of GoodData platform.
22
- * Be aware that execution is re-executed only on dependency list change, not on execution/window/callbacks change.
23
- *
24
- * @deprecated use {@link useExecutionDataView} instead
25
- * @beta
26
- */
27
- export declare function useDataView({ execution, window, onCancel, onError, onLoading, onPending, onSuccess, }: {
28
- execution: IPreparedExecution | undefined | null;
29
- window?: DataViewWindow;
30
- } & UseDataViewCallbacks, deps?: DependencyList): UseDataViewState;
31
- //# sourceMappingURL=useDataView.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataView.d.ts","sourceRoot":"","sources":["../../src/execution/useDataView.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAEH,cAAc,EACd,gBAAgB,EAEhB,6BAA6B,EAC7B,yBAAyB,EAC5B,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAE3F;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,6BAA6B,CAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;AAEnG;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CACvB,EACI,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GACZ,EAAE;IACC,SAAS,EAAE,kBAAkB,GAAG,SAAS,GAAG,IAAI,CAAC;IACjD,MAAM,CAAC,EAAE,cAAc,CAAC;CAC3B,GAAG,oBAAoB,EACxB,IAAI,CAAC,EAAE,cAAc,GACtB,gBAAgB,CA2BlB"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useDataView = void 0;
4
- const base_1 = require("../base");
5
- /**
6
- * This hook provides easy way to get data for the provided {@link @gooddata/sdk-backend-spi#IPreparedExecution}.
7
- *
8
- * @remarks
9
- * You can use it to create custom visualizations on top of GoodData platform.
10
- * Be aware that execution is re-executed only on dependency list change, not on execution/window/callbacks change.
11
- *
12
- * @deprecated use {@link useExecutionDataView} instead
13
- * @beta
14
- */
15
- function useDataView({ execution, window, onCancel, onError, onLoading, onPending, onSuccess, }, deps) {
16
- return (0, base_1.useCancelablePromise)({
17
- promise: execution
18
- ? () => execution
19
- .execute()
20
- .then((executionResult) => window
21
- ? executionResult.readWindow(window.offset, window.size)
22
- : executionResult.readAll())
23
- .then((dataView) => {
24
- return base_1.DataViewFacade.for(dataView);
25
- })
26
- .catch((error) => {
27
- throw (0, base_1.convertError)(error);
28
- })
29
- : null,
30
- onCancel,
31
- onError,
32
- onLoading,
33
- onPending,
34
- onSuccess,
35
- }, deps);
36
- }
37
- exports.useDataView = useDataView;
38
- //# sourceMappingURL=useDataView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataView.js","sourceRoot":"","sources":["../../src/execution/useDataView.ts"],"names":[],"mappings":";;;AAIA,kCAOiB;AAgBjB;;;;;;;;;GASG;AACH,SAAgB,WAAW,CACvB,EACI,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,SAAS,GAIW,EACxB,IAAqB;IAErB,OAAO,IAAA,2BAAoB,EACvB;QACI,OAAO,EAAE,SAAS;YACd,CAAC,CAAC,GAAG,EAAE,CACD,SAAS;iBACJ,OAAO,EAAE;iBACT,IAAI,CAAC,CAAC,eAAe,EAAE,EAAE,CACtB,MAAM;gBACF,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC;gBACxD,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,CAClC;iBACA,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;gBACf,OAAO,qBAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACxC,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;gBACb,MAAM,IAAA,mBAAY,EAAC,KAAK,CAAC,CAAC;YAC9B,CAAC,CAAC;YACZ,CAAC,CAAC,IAAI;QACV,QAAQ;QACR,OAAO;QACP,SAAS;QACT,SAAS;QACT,SAAS;KACZ,EACD,IAAI,CACP,CAAC;AACN,CAAC;AAzCD,kCAyCC"}
@@ -1,70 +0,0 @@
1
- import { IAnalyticalBackend, IPreparedExecution } from "@gooddata/sdk-backend-spi";
2
- import { AttributesMeasuresOrPlaceholders, AttributesOrPlaceholders, TotalsOrPlaceholders, NullableFiltersOrPlaceholders, SortsOrPlaceholders } from "../base";
3
- /**
4
- * @deprecated use {@link useExecutionDataView} instead
5
- * @beta
6
- */
7
- export interface IUseExecutionConfig {
8
- /**
9
- * Data series will be built using the provided measures that are further scoped for
10
- * elements of the specified attributes.
11
- */
12
- seriesBy: AttributesMeasuresOrPlaceholders;
13
- /**
14
- * Slice all data series by elements of these attributes.
15
- */
16
- slicesBy?: AttributesOrPlaceholders;
17
- /**
18
- * Include these totals among the data slices.
19
- */
20
- totals?: TotalsOrPlaceholders;
21
- /**
22
- * Filters to apply on server side.
23
- */
24
- filters?: NullableFiltersOrPlaceholders;
25
- /**
26
- * Sorting to apply on server side.
27
- */
28
- sortBy?: SortsOrPlaceholders;
29
- /**
30
- * Resolution context for composed placeholders.
31
- */
32
- placeholdersResolutionContext?: any;
33
- /**
34
- * Informative name of the component.
35
- *
36
- * @remarks
37
- * This value is sent as telemetry information together with the actual execution request.
38
- * We recommend to set this because it can be useful for diagnostic purposes.
39
- *
40
- * Defaults 'Execute'.
41
- */
42
- componentName?: string;
43
- /**
44
- * Backend to work with.
45
- *
46
- * @remarks
47
- * Note: the backend must come either from this property or from BackendContext. If you do not specify
48
- * backend here, then the executor MUST be rendered within an existing BackendContext.
49
- */
50
- backend?: IAnalyticalBackend;
51
- /**
52
- * Workspace where execution should be executed.
53
- *
54
- * @remarks
55
- * Note: the workspace must come either from this property or from WorkspaceContext. If you do not specify
56
- * workspace here, then the executor MUST be rendered within an existing WorkspaceContext.
57
- */
58
- workspace?: string;
59
- }
60
- /**
61
- * This hook provides a simplified interface for creating executions.
62
- *
63
- * @remarks
64
- * It builds the execution on top of the backend passed to the BackendProvider, and workspace passed to the WorkspaceProvider.
65
- *
66
- * @deprecated use {@link useExecutionDataView} instead
67
- * @beta
68
- */
69
- export declare function useExecution(config: IUseExecutionConfig): IPreparedExecution;
70
- //# sourceMappingURL=useExecution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useExecution.d.ts","sourceRoot":"","sources":["../../src/execution/useExecution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAIH,gCAAgC,EAChC,wBAAwB,EACxB,oBAAoB,EACpB,6BAA6B,EAC7B,mBAAmB,EACtB,MAAM,SAAS,CAAC;AAGjB;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;OAGG;IACH,QAAQ,EAAE,gCAAgC,CAAC;IAE3C;;OAEG;IACH,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IAEpC;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B;;OAEG;IACH,6BAA6B,CAAC,EAAE,GAAG,CAAC;IAEpC;;;;;;;;OAQG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,kBAAkB,CAkB5E"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useExecution = void 0;
4
- const base_1 = require("../base");
5
- const createExecution_1 = require("./createExecution");
6
- /**
7
- * This hook provides a simplified interface for creating executions.
8
- *
9
- * @remarks
10
- * It builds the execution on top of the backend passed to the BackendProvider, and workspace passed to the WorkspaceProvider.
11
- *
12
- * @deprecated use {@link useExecutionDataView} instead
13
- * @beta
14
- */
15
- function useExecution(config) {
16
- const backend = (0, base_1.useBackend)(config.backend);
17
- const workspace = (0, base_1.useWorkspace)(config.workspace);
18
- const [seriesBy, slicesBy, totals, filters, sortBy] = (0, base_1.useResolveValuesWithPlaceholders)([config.seriesBy, config.slicesBy, config.totals, config.filters, config.sortBy], config.placeholdersResolutionContext);
19
- return (0, createExecution_1.createExecution)(Object.assign(Object.assign({}, config), { backend,
20
- workspace,
21
- seriesBy,
22
- slicesBy,
23
- totals,
24
- filters,
25
- sortBy }));
26
- }
27
- exports.useExecution = useExecution;
28
- //# sourceMappingURL=useExecution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useExecution.js","sourceRoot":"","sources":["../../src/execution/useExecution.ts"],"names":[],"mappings":";;;AAEA,kCASiB;AACjB,uDAAoD;AAoEpD;;;;;;;;GAQG;AACH,SAAgB,YAAY,CAAC,MAA2B;IACpD,MAAM,OAAO,GAAG,IAAA,iBAAU,EAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,SAAS,GAAG,IAAA,mBAAY,EAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACjD,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,IAAA,uCAAgC,EAClF,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAChF,MAAM,CAAC,6BAA6B,CACvC,CAAC;IAEF,OAAO,IAAA,iCAAe,kCACf,MAAM,KACT,OAAO;QACP,SAAS;QACT,QAAQ;QACR,QAAQ;QACR,MAAM;QACN,OAAO;QACP,MAAM,IACR,CAAC;AACP,CAAC;AAlBD,oCAkBC"}
@@ -1,99 +0,0 @@
1
- /**
2
- * @public
3
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
4
- */
5
- export interface IIdentifierWithTags {
6
- identifier: string;
7
- tags: string;
8
- }
9
- /**
10
- * @public
11
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
12
- */
13
- export interface IDisplayForms {
14
- [key: string]: IIdentifierWithTags;
15
- }
16
- /**
17
- * @public
18
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
19
- */
20
- export interface IAttrItem {
21
- identifier: string;
22
- tags: string;
23
- displayForms: IDisplayForms;
24
- defaultDisplayForm: IIdentifierWithTags;
25
- }
26
- /**
27
- * @public
28
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
29
- */
30
- export interface IAttrs {
31
- [key: string]: IAttrItem;
32
- }
33
- /**
34
- * @public
35
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
36
- */
37
- export interface IDataSet {
38
- identifier: string;
39
- tags: string;
40
- attributes: IAttrs;
41
- }
42
- /**
43
- * @public
44
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
45
- */
46
- export interface ICatalog {
47
- measures?: {
48
- [key: string]: IIdentifierWithTags;
49
- };
50
- visualizations: {
51
- [key: string]: IIdentifierWithTags;
52
- };
53
- attributes: IAttrs;
54
- dateDataSets: {
55
- [key: string]: IDataSet;
56
- };
57
- }
58
- /**
59
- * Tool that exposes API that to look up measures, attributes, visualizations and other metadata elements
60
- *
61
- * @example
62
- * ```
63
- * import catalog from './catalog.json';
64
- * const C = new CatalogHelper(catalog);
65
- * ```
66
- *
67
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
68
- * @public
69
- */
70
- export declare class CatalogHelper {
71
- measures: {
72
- [key: string]: IIdentifierWithTags;
73
- };
74
- visualizations: {
75
- [key: string]: IIdentifierWithTags;
76
- };
77
- attributes: {
78
- [key: string]: IAttrItem;
79
- };
80
- dateDataSets: {
81
- [key: string]: IDataSet;
82
- };
83
- constructor(catalog: ICatalog);
84
- measure(name: string): string;
85
- measureTags(name: string): string;
86
- visualization(name: string): string;
87
- visualizationTags(name: string): string;
88
- attribute(attributeName: string): string;
89
- attributeTags(attributeName: string): string;
90
- attributeDisplayForm(attributeName: string, displayFormName?: string): string;
91
- attributeDisplayFormTags(attributeName: string, displayFormName?: string): string;
92
- dateDataSet(dataSetName: string): string;
93
- dateDataSetTags(dataSetName: string): string;
94
- dateDataSetAttribute(dataSetName: string, attrName: string): string;
95
- dateDataSetAttributeTags(dataSetName: string, attrName: string): string;
96
- dateDataSetDisplayForm(dataSetName: string, attributeName: string, displayFormName?: string): string;
97
- dateDataSetDisplayFormTags(dataSetName: string, attributeName: string, displayFormName?: string): string;
98
- }
99
- //# sourceMappingURL=CatalogHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CatalogHelper.d.ts","sourceRoot":"","sources":["../../../src/base/helpers/CatalogHelper.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,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,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI7B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIjC,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAInC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIvC,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;IAIxC,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;IAI5C,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM;IAI7E,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM;IAIjF,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAIxC,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAI5C,oBAAoB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM;IAInE,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM;IAIvE,sBAAsB,CACzB,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,GACzB,MAAM;IAKF,0BAA0B,CAC7B,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,GACzB,MAAM;CAIZ"}
@@ -1,85 +0,0 @@
1
- function getDisplayFormFromAttr(attrs, attributeName, displayFormName, property) {
2
- var _a, _b, _c, _d, _e;
3
- if (!displayFormName) {
4
- return (_b = (_a = attrs === null || attrs === void 0 ? void 0 : attrs[attributeName]) === null || _a === void 0 ? void 0 : _a.defaultDisplayForm) === null || _b === void 0 ? void 0 : _b[property];
5
- }
6
- return (_e = (_d = (_c = attrs === null || attrs === void 0 ? void 0 : attrs[attributeName]) === null || _c === void 0 ? void 0 : _c.displayForms) === null || _d === void 0 ? void 0 : _d[displayFormName]) === null || _e === void 0 ? void 0 : _e[property];
7
- }
8
- /**
9
- * Tool that exposes API that to look up measures, attributes, visualizations and other metadata elements
10
- *
11
- * @example
12
- * ```
13
- * import catalog from './catalog.json';
14
- * const C = new CatalogHelper(catalog);
15
- * ```
16
- *
17
- * @deprecated catalog helper is deprecated in favor of code-based catalog that can be generated by catalog-export tool
18
- * @public
19
- */
20
- export class CatalogHelper {
21
- constructor(catalog) {
22
- var _a;
23
- this.measures = (_a = catalog.measures) !== null && _a !== void 0 ? _a : {};
24
- this.visualizations = catalog.visualizations;
25
- this.attributes = catalog.attributes;
26
- this.dateDataSets = catalog.dateDataSets;
27
- }
28
- measure(name) {
29
- var _a, _b;
30
- return (_b = (_a = this.measures) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.identifier;
31
- }
32
- measureTags(name) {
33
- var _a, _b;
34
- return (_b = (_a = this.measures) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.tags;
35
- }
36
- visualization(name) {
37
- var _a, _b;
38
- return (_b = (_a = this.visualizations) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.identifier;
39
- }
40
- visualizationTags(name) {
41
- var _a, _b;
42
- return (_b = (_a = this.visualizations) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.tags;
43
- }
44
- attribute(attributeName) {
45
- var _a, _b;
46
- return (_b = (_a = this.attributes) === null || _a === void 0 ? void 0 : _a[attributeName]) === null || _b === void 0 ? void 0 : _b.identifier;
47
- }
48
- attributeTags(attributeName) {
49
- var _a, _b;
50
- return (_b = (_a = this.attributes) === null || _a === void 0 ? void 0 : _a[attributeName]) === null || _b === void 0 ? void 0 : _b.tags;
51
- }
52
- attributeDisplayForm(attributeName, displayFormName) {
53
- return getDisplayFormFromAttr(this.attributes, attributeName, displayFormName, "identifier");
54
- }
55
- attributeDisplayFormTags(attributeName, displayFormName) {
56
- return getDisplayFormFromAttr(this.attributes, attributeName, displayFormName, "tags");
57
- }
58
- dateDataSet(dataSetName) {
59
- var _a, _b;
60
- return (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.identifier;
61
- }
62
- dateDataSetTags(dataSetName) {
63
- var _a, _b;
64
- return (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.tags;
65
- }
66
- dateDataSetAttribute(dataSetName, attrName) {
67
- var _a, _b, _c, _d;
68
- return (_d = (_c = (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.attributes) === null || _c === void 0 ? void 0 : _c[attrName]) === null || _d === void 0 ? void 0 : _d.identifier;
69
- }
70
- dateDataSetAttributeTags(dataSetName, attrName) {
71
- var _a, _b, _c, _d;
72
- return (_d = (_c = (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.attributes) === null || _c === void 0 ? void 0 : _c[attrName]) === null || _d === void 0 ? void 0 : _d.tags;
73
- }
74
- dateDataSetDisplayForm(dataSetName, attributeName, displayFormName) {
75
- var _a, _b;
76
- const attrs = (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.attributes;
77
- return getDisplayFormFromAttr(attrs, attributeName, displayFormName, "identifier");
78
- }
79
- dateDataSetDisplayFormTags(dataSetName, attributeName, displayFormName) {
80
- var _a, _b;
81
- const attrs = (_b = (_a = this.dateDataSets) === null || _a === void 0 ? void 0 : _a[dataSetName]) === null || _b === void 0 ? void 0 : _b.attributes;
82
- return getDisplayFormFromAttr(attrs, attributeName, displayFormName, "tags");
83
- }
84
- }
85
- //# sourceMappingURL=CatalogHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CatalogHelper.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