@ic3/reporting-api 8.6.2 → 9.0.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 (54) hide show
  1. package/dist/ApiUtils.js +27 -8
  2. package/dist/ApiUtils.js.map +1 -1
  3. package/dist/ITypes.d.ts +1 -2
  4. package/dist/IcEvent.d.ts +3 -1
  5. package/dist/IcEvent.js +2 -0
  6. package/dist/IcEvent.js.map +1 -1
  7. package/dist/Logger.d.ts +1 -1
  8. package/dist/PublicAmchartsData.js +1 -2
  9. package/dist/PublicAmchartsData.js.map +1 -1
  10. package/dist/PublicContext.d.ts +47 -304
  11. package/dist/PublicContext.js.map +1 -1
  12. package/dist/PublicTemplate.d.ts +5 -5
  13. package/dist/PublicTemplateExprForm.d.ts +30 -0
  14. package/dist/PublicTemplateExprForm.js +3 -0
  15. package/dist/PublicTemplateExprForm.js.map +1 -0
  16. package/dist/PublicTemplateForm.d.ts +73 -310
  17. package/dist/PublicTemplateForm.js +9 -5
  18. package/dist/PublicTemplateForm.js.map +1 -1
  19. package/dist/PublicTemplates.d.ts +3 -1
  20. package/dist/PublicTheme.d.ts +131 -154
  21. package/dist/PublicTheme.js +1 -1
  22. package/dist/PublicTheme.js.map +1 -1
  23. package/dist/PublicTidyColumn.d.ts +6 -13
  24. package/dist/PublicTidyTree.js +6 -3
  25. package/dist/PublicTidyTree.js.map +1 -1
  26. package/dist/RemoteContainerUtils.js +5 -14
  27. package/dist/RemoteContainerUtils.js.map +1 -1
  28. package/dist/ReportingVersion.js +2 -2
  29. package/dist/ReportingVersion.js.map +1 -1
  30. package/dist/ThemeAugmentation.d.ts +35 -0
  31. package/dist/ThemeAugmentation.js +3 -0
  32. package/dist/ThemeAugmentation.js.map +1 -0
  33. package/dist/index.d.ts +4 -0
  34. package/dist/index.js +4 -0
  35. package/dist/index.js.map +1 -1
  36. package/dist/theme/ThemeAIWidgetChatBot.d.ts +1 -0
  37. package/dist/theme/ThemeAmCharts4.d.ts +13 -1
  38. package/dist/theme/ThemeFilterPanel.d.ts +14 -1
  39. package/dist/theme/ThemeFilterPanel.js +6 -1
  40. package/dist/theme/ThemeFilterPanel.js.map +1 -1
  41. package/dist/theme/ThemeIc3CustomDrilldownMenu.d.ts +7 -0
  42. package/dist/theme/ThemeIc3CustomDrilldownMenu.js +11 -0
  43. package/dist/theme/ThemeIc3CustomDrilldownMenu.js.map +1 -0
  44. package/dist/theme/ThemeIc3TableCellDrilldown.js.map +1 -1
  45. package/dist/theme/ThemeIc3WidgetBoxSpinner.d.ts +15 -0
  46. package/dist/theme/ThemeIc3WidgetBoxSpinner.js +13 -0
  47. package/dist/theme/ThemeIc3WidgetBoxSpinner.js.map +1 -0
  48. package/dist/theme/ThemeKpiCard.d.ts +0 -8
  49. package/dist/theme/ThemeListCounter.d.ts +6 -0
  50. package/dist/theme/ThemeListCounter.js +6 -0
  51. package/dist/theme/ThemeListCounter.js.map +1 -1
  52. package/dist/theme/ThemeSinglePanelFilter.d.ts +1 -1
  53. package/dist/theme/ThemeWidgetBox.d.ts +1 -0
  54. package/package.json +7 -7
package/dist/ApiUtils.js CHANGED
@@ -8,7 +8,10 @@ const ReportingVersion_1 = __importDefault(require("./ReportingVersion"));
8
8
  class ApiUtils {
9
9
  static makePlugin(definition) {
10
10
  return () => {
11
- return Object.assign({ apiVersion: new ReportingVersion_1.default("8.6.2", "Mon, 28 Apr 2025 07:51:49 GMT") }, definition);
11
+ return {
12
+ apiVersion: new ReportingVersion_1.default("9.0.1", "Fri, 21 Nov 2025 08:18:22 GMT"),
13
+ ...definition,
14
+ };
12
15
  };
13
16
  }
14
17
  /**
@@ -18,12 +21,22 @@ class ApiUtils {
18
21
  * @see IPublicWidgetJsTemplateDefinition#resolveDefinition
19
22
  */
20
23
  static createLazyJsWidgetTemplateDefinition(definition) {
21
- return Object.assign(Object.assign({}, definition), { jsCode: (context, container) => {
24
+ return {
25
+ ...definition,
26
+ jsCode: (context, container) => {
22
27
  throw new Error("JS Lazy: unexpected jsCode() call!");
23
- }, reactComponent: false, withDrilldownPivotTableLikeAs: false });
28
+ },
29
+ reactComponent: false,
30
+ withDrilldownPivotTableLikeAs: false,
31
+ };
24
32
  }
25
33
  static resolveAmCharts4WidgetTemplateDefinition(definition, wrapped) {
26
- return Object.assign(Object.assign(Object.assign({}, wrapped), definition /* since Typescript 5.0.2 */), { resolveDefinition: undefined, jsCode: wrapped.jsCode });
34
+ return {
35
+ ...wrapped,
36
+ ...definition /* since Typescript 5.0.2 */,
37
+ resolveDefinition: undefined,
38
+ jsCode: wrapped.jsCode,
39
+ };
27
40
  }
28
41
  /**
29
42
  * A utility function creating a wrapper widget template definition for existing AmCharts 4 widgets.
@@ -33,7 +46,9 @@ class ApiUtils {
33
46
  registrationInfo: props.registrationInfo,
34
47
  wrappedWidgetTemplateId: props.wrappedWidgetTemplateId,
35
48
  wrapper: (wrapped) => {
36
- return Object.assign(Object.assign(Object.assign({}, wrapped /* unresolved */), props.props /* e.g., id, groupId, etc... */), {
49
+ return {
50
+ ...wrapped /* unresolved */,
51
+ ...props.props /* e.g., id, groupId, etc... */,
37
52
  /**
38
53
  * amCharts 4 widgets are loading the amCharts 4 Javascript library on the fly.
39
54
  *
@@ -43,11 +58,15 @@ class ApiUtils {
43
58
  resolveDefinition: function (wrappedR) {
44
59
  const wrappedResolved = ApiUtils.resolveAmCharts4WidgetTemplateDefinition(this, wrappedR);
45
60
  return new Promise((resolve, reject) => {
46
- props.hooks.then(definition => resolve(Object.assign(Object.assign({}, wrappedResolved), {
61
+ props.hooks.then(definition => resolve({
62
+ ...wrappedResolved,
47
63
  // our (lazy-loaded) widget meta-information and options hook.
48
- chartOptionsMeta: definition.default.hookChartOptionsMeta(wrappedResolved.chartOptionsMeta), hookChartOptions: definition.default.hookChartOptions }))).catch(err => reject(err));
64
+ chartOptionsMeta: definition.default.hookChartOptionsMeta(wrappedResolved.chartOptionsMeta),
65
+ hookChartOptions: definition.default.hookChartOptions,
66
+ })).catch(err => re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
35
  export interface IWidgetBoxIconsDefinition {
36
- disableQueryRunning?: boolean;
37
36
  disableQueryFilter?: boolean;
38
37
  disableQueryCellOnError?: boolean;
39
38
  disableQueryMaxRowsReached?: boolean;
@@ -41,4 +40,4 @@ export interface IWidgetBoxIconsDefinition {
41
40
  disableHelp?: boolean;
42
41
  disableInteractionSwitch?: boolean;
43
42
  }
44
- export type IUserMenuOptions = 'editGadget' | 'editWidget' | 'deleteWidget' | 'deleteGadget' | 'convertGadgetToWidget' | 'addEventToAllQueries' | 'migrateWidget' | 'maximize' | 'clearSorting' | 'showData' | 'resetQuery' | 'clearState' | 'clearSelection' | 'toInitialSelectionOnEditing' | 'toInitialSelection' | 'export_xls' | 'export_png' | 'export_svg';
43
+ export type IUserMenuOptions = 'editGadget' | 'editWidget' | 'deleteWidget' | 'deleteGadget' | 'convertGadgetToWidget' | 'addEventToAllQueries' | 'migrateWidget' | 'maximize' | 'clearSorting' | 'showData' | 'resetDrilldown' | 'clearState' | 'clearSelection' | 'toInitialSelectionOnEditing' | 'toInitialSelection' | 'export_xls' | 'export_png' | 'export_svg';
package/dist/IcEvent.d.ts CHANGED
@@ -49,7 +49,9 @@ export declare enum WidgetNotificationType {
49
49
  toInitialSelection = "ic3toInitialSelection",
50
50
  clearSelection = "ic3clearSelection",
51
51
  clearState = "ic3clearState",
52
- doTemplateUserMenuAction = "ic3doTemplateUserMenuAction"
52
+ doTemplateUserMenuAction = "ic3doTemplateUserMenuAction",
53
+ doPrintReport = "ic3doPrintReport",
54
+ onWidgetZoom = "ic3onWidgetZoom"
53
55
  }
54
56
  export type WidgetNotificationHandler = {
55
57
  type: WidgetNotificationType;
package/dist/IcEvent.js CHANGED
@@ -21,5 +21,7 @@ var WidgetNotificationType;
21
21
  WidgetNotificationType["clearSelection"] = "ic3clearSelection";
22
22
  WidgetNotificationType["clearState"] = "ic3clearState";
23
23
  WidgetNotificationType["doTemplateUserMenuAction"] = "ic3doTemplateUserMenuAction";
24
+ WidgetNotificationType["doPrintReport"] = "ic3doPrintReport";
25
+ WidgetNotificationType["onWidgetZoom"] = "ic3onWidgetZoom";
24
26
  })(WidgetNotificationType || (exports.WidgetNotificationType = WidgetNotificationType = {}));
25
27
  //# sourceMappingURL=IcEvent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IcEvent.js","sourceRoot":"","sources":["../src/IcEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,GAAG,CAAA;AAE3B,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,iEAAc,CAAA;IACd,uDAAS,CAAA;IACT,2DAAW,CAAA;IACX,2CAAG,CAAA;AACP,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AA+CD,IAAY,sBAkBX;AAlBD,WAAY,sBAAsB;IAE9B,wDAA8B,CAAA;IAE9B,8DAAoC,CAAA;IAEpC,oEAA0C,CAAA;IAE1C,8DAAoC,CAAA;IACpC,0DAAgC,CAAA;IAChC,0DAAgC,CAAA;IAEhC,sEAA4C,CAAA;IAE5C,8DAAoC,CAAA;IACpC,sDAA4B,CAAA;IAE5B,kFAAwD,CAAA;AAC5D,CAAC,EAlBW,sBAAsB,sCAAtB,sBAAsB,QAkBjC"}
1
+ {"version":3,"file":"IcEvent.js","sourceRoot":"","sources":["../src/IcEvent.ts"],"names":[],"mappings":";;;AAAa,QAAA,QAAQ,GAAG,GAAG,CAAA;AAE3B,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,iEAAc,CAAA;IACd,uDAAS,CAAA;IACT,2DAAW,CAAA;IACX,2CAAG,CAAA;AACP,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB;AA+CD,IAAY,sBAqBX;AArBD,WAAY,sBAAsB;IAE9B,wDAA8B,CAAA;IAE9B,8DAAoC,CAAA;IAEpC,oEAA0C,CAAA;IAE1C,8DAAoC,CAAA;IACpC,0DAAgC,CAAA;IAChC,0DAAgC,CAAA;IAEhC,sEAA4C,CAAA;IAE5C,8DAAoC,CAAA;IACpC,sDAA4B,CAAA;IAE5B,kFAAwD,CAAA;IAExD,4DAAkC,CAAA;IAClC,0DAAgC,CAAA;AACpC,CAAC,EArBW,sBAAsB,sCAAtB,sBAAsB,QAqBjC"}
package/dist/Logger.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type LoggerComponent = "AI" | "AlertDialog" | "AmCharts4" | "AmCharts4GeoMap" | "App" | "AppCustomHeaders" | "AppStarter" | "AppStatus" | "ChartTemplateWidget" | "Demo" | "EmbeddedReport" | "ErrorRenderer" | "Font" | "General" | "GoogleMap" | "Help" | "History" | "Keyboard" | "Layout" | "LayoutConverter" | "LayoutPage" | "LayoutRender" | "Loader" | "Localization" | "MdxConsole" | "Operation" | "Other" | "PivotTable" | "PivotTablePagingView" | "Plugin" | "Profiler" | "ReportAppBar" | "ReportAppMenu" | "ReportInitializer" | "ReportStarter" | "RepetitionWidget" | "Request" | "SchemaDataUpdate" | "Storage" | "Table" | "WidgetBox" | "WidgetBoxWrapper" | "WidgetTemplateLibrary" | "FilterPanel" | "FilterPanelViews";
1
+ export type LoggerComponent = "AI" | "AlertDialog" | "AmCharts4" | "AmCharts4GeoMap" | "App" | "AppCustomHeaders" | "AppStarter" | "AppStatus" | "ChartTemplateWidget" | "Demo" | "EmbeddedReport" | "ErrorRenderer" | "Font" | "General" | "GoogleMap" | "Help" | "History" | "Keyboard" | "Layout" | "LayoutConverter" | "LayoutPage" | "LayoutRender" | "Loader" | "Localization" | "MdxConsole" | "Operation" | "Other" | "PivotTable" | "PivotTablePagingView" | "Plugin" | "Profiler" | "ReportAppBar" | "ReportAppMenu" | "ReportInitializer" | "ReportStarter" | "RepetitionWidget" | "Request" | "SchemaDataUpdate" | "Storage" | "Table" | "WidgetBox" | "WidgetBoxWrapper" | "WidgetTemplateLibrary" | "FilterPanel" | "FilterPanelViews" | "UseOnWhenVisible";
2
2
  export interface ILogger {
3
3
  resetTime(): void;
4
4
  disable(component: LoggerComponent): void;
@@ -160,8 +160,7 @@ class PublicAmchartsData {
160
160
  * Returns the first column used for a series type.
161
161
  */
162
162
  getFirstColumnOfType(seriesType) {
163
- var _a;
164
- return (_a = this.onValues.find(i => i.type === seriesType)) === null || _a === void 0 ? void 0 : _a.values;
163
+ return this.onValues.find(i => i.type === seriesType)?.values;
165
164
  }
166
165
  }
167
166
  exports.PublicAmchartsData = PublicAmchartsData;
@@ -1 +1 @@
1
- {"version":3,"file":"PublicAmchartsData.js","sourceRoot":"","sources":["../src/PublicAmchartsData.ts"],"names":[],"mappings":";;;AAEA,iEAA2G;AAE3G,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,yDAAI,CAAA;IACJ,6DAAM,CAAA;IACN,2DAAK,CAAA;IACL,mEAAS,CAAA;IACT,uEAAW,CAAA;IACX,yEAAY,CAAA;AAChB,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AA8BD;;;GAGG;AACH,MAAa,kBAAkB;IAa3B,YAAY,KAAiB,EAAE,QAAyB,EAAE,MAAmB,EAAE,OAAqB,EACxF,OAAqB,EAAE,mBAA6B;QAC5D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACnD,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,QAAgB,EAAE,WAAmB;QACpD,OAAO,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IAChD,CAAC;IAED;;OAEG;IACH,YAAY;QAER,MAAM,WAAW,GAAgC,EAAE,CAAC;QACpD,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YAEjC;;;eAGG;YACH,IAAI,WAAwB,CAAC;YAC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C,MAAM,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;YAC9C,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACT,MAAM,KAAK,CAAC,+BAA+B,CAAC,CAAC;YACjD,CAAC;YACD,UAAU,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,iBAAiB,CAAC,KAAK;SACvD,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;IAED;;OAEG;IACH,aAAa;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,cAAc;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,iBAAiB,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,oBAAoB,CAAC,UAA6B;QAC9C,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,EAAE,MAAM,CAAC;IAClE,CAAC;;AA1LL,gDA4LC;AA1L0B,4BAAS,GAAG,GAAG,CAAC;AAChB,4BAAS,GAAG,GAAG,CAAC;AAChB,uCAAoB,GAAG,IAAI,CAAC"}
@@ -10,6 +10,7 @@ import { ILogger } from "./Logger";
10
10
  import { AppNotification } from "./INotification";
11
11
  import { WidgetNotificationHandler } from "./IcEvent";
12
12
  import { TidyRowFilter } from "./PublicTidyTableTypes";
13
+ import { FormFieldTidyTableExprType } from "./PublicTemplateForm";
13
14
  export declare enum WidgetRenderLayoutStatus {
14
15
  RENDERING = "RENDERING",
15
16
  RENDERED = "RENDERED"
@@ -82,6 +83,15 @@ export interface IPublicContext {
82
83
  * A bunch of mathematical functions related to the tidy table.
83
84
  */
84
85
  tidyMath(): ITidyMath;
86
+ /**
87
+ * Create an expression from a field.
88
+ *
89
+ * @param expression typically coming from a widget field so it cannot be null if there is a default value.
90
+ * To prevent usage of the default, pass a string with a single space to make this method return undefined.
91
+ * @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
92
+ * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
93
+ */
94
+ createExpression<T extends FormFieldTidyTableExprType>(fieldType: T, field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): T extends "tidyTableColorRowExpr" | "tidyTableScaleRowExpr" | "tidyTableHtmlRowExpr" | "tidyTableNumericRowExpr" | "tidyTableStringRowExpr" | "tidyTableTextRowExpr" ? ((rowIdx: number) => string) | undefined : (() => string) | undefined;
85
95
  /**
86
96
  * Not in widget public context because of transformation not applied from a widget context always.
87
97
  *
@@ -90,6 +100,8 @@ export interface IPublicContext {
90
100
  * undefined.
91
101
  * @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
92
102
  * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
103
+ *
104
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
93
105
  */
94
106
  createTableRowTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string) | undefined;
95
107
  /**
@@ -99,6 +111,8 @@ export interface IPublicContext {
99
111
  * To prevent usage of the default, pass an "empty" string that makes this method returns
100
112
  * undefined.
101
113
  * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
114
+ *
115
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
102
116
  */
103
117
  createTableTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, isRowSelected?: TidyRowFilter): (() => string) | undefined;
104
118
  /**
@@ -109,6 +123,8 @@ export interface IPublicContext {
109
123
  * undefined.
110
124
  * @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
111
125
  * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
126
+ *
127
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
112
128
  */
113
129
  createTableRowMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string) | undefined;
114
130
  /**
@@ -119,6 +135,8 @@ export interface IPublicContext {
119
135
  * undefined.
120
136
  * @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
121
137
  * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
138
+ *
139
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
122
140
  */
123
141
  createTableMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => string) | undefined;
124
142
  /**
@@ -129,14 +147,24 @@ export interface IPublicContext {
129
147
  * undefined.
130
148
  * @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
131
149
  * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
150
+ *
151
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
132
152
  */
133
153
  createTableRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => number | undefined) | undefined;
134
154
  /**
135
155
  * same as createTableRowNumericExpr but returning a string
136
156
  * @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
137
157
  * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
158
+ *
159
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
138
160
  */
139
161
  createTableRowNumericStringExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string | undefined) | undefined;
162
+ /**
163
+ * @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
164
+ * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
165
+ *
166
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
167
+ */
140
168
  createTableScaleRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => number | undefined) | undefined;
141
169
  /**
142
170
  * Not in widget public context because of transformation not applied from a widget context always.
@@ -146,14 +174,20 @@ export interface IPublicContext {
146
174
  * undefined.
147
175
  * @param selectedColumns get the row of these columns using `_rowOfSelectedColumns` or `_selectedColumns`.
148
176
  * @param isRowSelected function for usage with `totalSelectedOrTotal`. Use tableInter.isSelected(rowIdx).
177
+ *
178
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
149
179
  */
150
180
  createTableNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => number | undefined) | undefined;
151
181
  /**
152
182
  * same as createTableNumericExpr but returning a javascript object
183
+ *
184
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
153
185
  */
154
186
  createTableNumericStringExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => any | undefined) | undefined;
155
187
  /**
156
188
  * same as createTableNumericExpr but returning a javascript object
189
+ *
190
+ * @deprecated will be removed in version >=9.1.0. Use `createExpression` instead.
157
191
  */
158
192
  createTableNumericJSExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => any | undefined) | undefined;
159
193
  /**
@@ -308,6 +342,18 @@ export interface IWidgetStableContext extends IPublicContext {
308
342
  * @param defaultFileName
309
343
  */
310
344
  getExportFileName(defaultFileName?: string): string;
345
+ /**
346
+ * Returns the report name of the report defining this widget (i.e. could be the embedding)
347
+ */
348
+ getDefiningReportName(): string;
349
+ /**
350
+ * Returns the report path of the report defining this widget (i.e. could be the embedding)
351
+ */
352
+ getDefiningReportPath(): string;
353
+ /**
354
+ * Returns the report folder name of the report defining this widget (i.e. could be the embedding)
355
+ */
356
+ getDefiningReportFolderName(): string;
311
357
  }
312
358
  export interface IWidgetPublicContext extends IPublicContext {
313
359
  /**
@@ -328,310 +374,7 @@ export interface IWidgetPublicContext extends IPublicContext {
328
374
  * Returns true if and only if the widgets has a header (from the chart box settings).
329
375
  */
330
376
  widgetHasHeader(): boolean;
331
- getBoxSettings(): IPublicWidgetBoxSettings | undefined;
332
- /**
333
- * @deprecated use the method in this.getStableContext()
334
- */
335
- getTemplateId(): string;
336
- /**
337
- * @deprecated use the method in this.getStableContext()
338
- */
339
- getNsId(): string;
340
- /**
341
- * @deprecated use the method in this.getStableContext()
342
- */
343
- getWidgetId(): string;
344
- /**
345
- * @deprecated use the method in this.getStableContext()
346
- */
347
- getTemplateId(): string;
348
- /**
349
- * @deprecated use the method in this.getStableContext()
350
- */
351
- isPrintingMode(): boolean;
352
- /**
353
- * @deprecated use the method in this.getStableContext()
354
- */
355
- renderWidgetContentMessage(type: IContentMessageType, message: string): any;
356
- /**
357
- * @deprecated use the method in this.getStableContext()
358
- */
359
- renderLazyTreeView<T>(props: LazyTreeViewProps): T;
360
- /**
361
- * @deprecated use the method in this.getStableContext()
362
- */
363
- wrapWithTooltip(tooltip: string | undefined, wrappedElement: React.ReactElement): React.ReactElement;
364
- /**
365
- * @deprecated use the method in this.getStableContext()
366
- */
367
- onWidgetRenderStatusChange(status: WidgetRenderLayoutStatus): void;
368
- /**
369
- * @deprecated use the method in this.getStableContext()
370
- */
371
- firesEvent(actionName: string): boolean;
372
- /**
373
- * @deprecated use the method in this.getStableContext()
374
- */
375
- fireClearEvent(actionName: string): void;
376
- /**
377
- * @deprecated use the method in this.getStableContext()
378
- */
379
- fireMdxEvent(actionName: string, value: string, mdx: string): void;
380
- /**
381
- * @deprecated use the method in this.getStableContext()
382
- */
383
- fireMdxEvents(events: {
384
- actionName: string;
385
- value: string;
386
- mdx: string;
387
- }[]): void;
388
- /**
389
- * @deprecated use the method in this.getStableContext()
390
- */
391
- incrementWidgetContentRendering(): void;
392
- /**
393
- * @deprecated use the method in this.getStableContext()
394
- */
395
- getWidgetTemplateDefinition(qualifiedId: string): IPublicWidgetTemplateDefinition<any>;
396
- /**
397
- * @deprecated use the method in this.getStableContext()
398
- */
399
- resolveWidgetTemplateDefinition(definition: IPublicWidgetTemplateDefinition<any>): Promise<IPublicWidgetTemplateDefinition<any>>;
400
- /**
401
- * @deprecated use the method in this.getStableContext()
402
- */
403
- useReduxOwnPropsState<T>(fieldName: string, valueIfUndefined?: T): [T, (newValue: T | undefined) => void];
404
- /**
405
- * @deprecated use the method in this.getStableContext()
406
- */
407
- useReduxOwnProps<T>(fieldName: string): T;
408
- /**
409
- * @deprecated use the method in this.getStableContext()
410
- */
411
- setReduxOwnProps(fieldName: string, value: any): void;
412
- /**
413
- * @deprecated use the method in this.getStableContext()
414
- */
415
- reactUseGoogleMap(): boolean | Error;
416
- /**
417
- * @deprecated use the method in this.getStableContext()
418
- */
419
- reactUseGoogleMapPlus(mapOptions: any, ref: any): undefined | {
420
- map?: any;
421
- error?: Error;
422
- };
423
- /**
424
- * @deprecated use the method in this.getStableContext()
425
- */
426
- getMapCoordinates(table: ITidyTable): [ITidyNumericColumn, ITidyNumericColumn] | [];
427
- /**
428
- * @deprecated use the method in this.getStableContext()
429
- */
430
- getGoogleMapRenderedDelayMS(): number;
431
- /**
432
- * @deprecated use the method in this.getStableContext()
433
- */
434
- addWidgetWarning(warning: string, severity?: WidgetWarningSeverity): void;
435
- /**
436
- * @deprecated use the method in this.getStableContext()
437
- */
438
- widgetClearWarnings(): void;
439
- /**
440
- * @deprecated use the method in this.getStableContext()
441
- */
442
- useNotification(notifications: WidgetNotificationHandler | WidgetNotificationHandler[], deps: ReadonlyArray<unknown> | undefined): void;
443
- /**
444
- * @deprecated use the method in this.getStableContext()
445
- */
446
- useUserMenu(handler: (userMenu: string) => any | void, deps: ReadonlyArray<unknown> | undefined): void;
447
- /**
448
- * @deprecated use the method in this.getStableContext()
449
- */
450
- onExportToExcel(doExport: undefined | ((fileName: string | undefined) => ITidyTable | undefined | null), disabled?: boolean): void;
451
- /**
452
- * @deprecated use the method in this.getStableContext()
453
- */
454
- exportToExcel(table: ITidyTable, asPivotForExcel: boolean, rows: number[] | undefined): void;
455
- /**
456
- * @deprecated use the method in this.getStableContext()
457
- */
458
- useUserMenuWidth(): number | undefined;
459
- /**
460
- * @deprecated use the method in this.getStableContext()
461
- */
462
- getExportFileName(defaultFileName?: string): string;
463
- /**
464
- * @deprecated use the method in this.getStableContext()
465
- */
466
- logger(): ILogger;
467
- /**
468
- * @deprecated use the method in this.getStableContext()
469
- */
470
- isAppConsole(): boolean;
471
- /**
472
- * @deprecated use the method in this.getStableContext()
473
- */
474
- isAppReportViewer(): boolean;
475
- /**
476
- * @deprecated use the method in this.getStableContext()
477
- */
478
- isAppReportEditor(): boolean;
479
- /**
480
- * @deprecated use the method in this.getStableContext()
481
- */
482
- isAppReportEditorPreview(): boolean;
483
- /**
484
- * @deprecated use the method in this.getStableContext()
485
- */
486
- isAppReportAppEditor(): boolean;
487
- /**
488
- * @deprecated use the method in this.getStableContext()
489
- */
490
- isAppGadgetEditor(): boolean;
491
- /**
492
- * @deprecated use the method in this.getStableContext()
493
- */
494
- useGoogleMapHook(): boolean | Error;
495
- /**
496
- * @deprecated use the method in this.getStableContext()
497
- */
498
- getTheme(): Theme;
499
- /**
500
- * @deprecated use the method in this.getStableContext()
501
- */
502
- getThemeFormatter(): ThemeFormatters;
503
- /**
504
- * @deprecated use the method in this.getStableContext()
505
- */
506
- getUserName(): string;
507
- /**
508
- * @deprecated use the method in this.getStableContext()
509
- */
510
- getReportName(): string;
511
- /**
512
- * @deprecated use the method in this.getStableContext()
513
- */
514
- getReportPath(): string;
515
- /**
516
- * @deprecated use the method in this.getStableContext()
517
- */
518
- getReportFolderName(): string;
519
- /**
520
- * @deprecated use the method in this.getStableContext()
521
- */
522
- getReportLocale(): string;
523
- /**
524
- * @deprecated use the method in this.getStableContext()
525
- */
526
- getNumberFormatter(format: ThemeTextFormatter | null | undefined): (value: any | undefined) => string;
527
- /**
528
- * @deprecated use the method in this.getStableContext()
529
- */
530
- getDateFormatter(format: ThemeTextFormatter | null | undefined): (value: any | undefined) => string;
531
- /**
532
- * @deprecated use the method in this.getStableContext()
533
- */
534
- translateContent(content: string, ...args: any[]): string;
535
- /**
536
- * @deprecated use the method in this.getStableContext()
537
- */
538
- localize(name: string, ...args: any[]): string;
539
- /**
540
- * @deprecated use the method in this.getStableContext()
541
- */
542
- localizeError(name: string, ...args: any[]): string;
543
- /**
544
- * @deprecated use the method in this.getStableContext()
545
- */
546
- localizeTransformationCaption(template: ITidyTableTransformation<any>): {
547
- info: string;
548
- description?: string;
549
- };
550
- /**
551
- * @deprecated use the method in this.getStableContext()
552
- */
553
- localizeFormField(pluginId: string, widgetTemplateId: string, name: string, ...args: any[]): [string, string | undefined, string | undefined];
554
- /**
555
- * @deprecated use the method in this.getStableContext()
556
- */
557
- markdownToHtml(markDown: string): string;
558
- /**
559
- * @deprecated use the method in this.getStableContext()
560
- */
561
- tidyMath(): ITidyMath;
562
- /**
563
- * @deprecated use the method in this.getStableContext()
564
- */
565
- createTableRowTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string) | undefined;
566
- /**
567
- * @deprecated use the method in this.getStableContext()
568
- */
569
- createTableTextExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, isRowSelected?: TidyRowFilter): (() => string) | undefined;
570
- /**
571
- * @deprecated use the method in this.getStableContext()
572
- */
573
- createTableRowMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string) | undefined;
574
- /**
575
- * @deprecated use the method in this.getStableContext()
576
- */
577
- createTableMarkdownExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => string) | undefined;
578
- /**
579
- * @deprecated use the method in this.getStableContext()
580
- */
581
- createTableRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => number | undefined) | undefined;
582
- /**
583
- * @deprecated use the method in this.getStableContext()
584
- */
585
- createTableRowNumericStringExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => string | undefined) | undefined;
586
- /**
587
- * @deprecated use the method in this.getStableContext()
588
- */
589
- createTableScaleRowNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): ((rowIdx: number) => number | undefined) | undefined;
590
- /**
591
- * @deprecated use the method in this.getStableContext()
592
- */
593
- createTableNumericExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => number | undefined) | undefined;
594
- /**
595
- * @deprecated use the method in this.getStableContext()
596
- */
597
- createTableNumericStringExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => any | undefined) | undefined;
598
- /**
599
- * @deprecated use the method in this.getStableContext()
600
- */
601
- createTableNumericJSExpr(field: string, table: ITidyTable, currentColumn: ITidyColumn | undefined, expression: string | undefined, selectedColumns: ITidyColumn[] | undefined, isRowSelected?: TidyRowFilter): (() => any | undefined) | undefined;
602
- /**
603
- * Event methods that do not depend on a Table
604
- *
605
- * @see ITidyTableInteractionEvent for more
606
- */
607
- /**
608
- * @deprecated use the method in this.getStableContext()
609
- */
610
- fireClearEventName(actionName: string): void;
611
- /**
612
- * @deprecated use the method in this.getStableContext()
613
- */
614
- fireMdxEventName(actionName: string, value: string, mdx: string): void;
615
- /**
616
- * @deprecated use the method in this.getStableContext()
617
- */
618
- fireAppNotification(notification: AppNotification): void;
619
- /**
620
- * @deprecated use the method in this.getStableContext()
621
- */
622
- formatDate(value: Date | string | undefined | null, format: ThemeTextFormatter | null | undefined, locale?: string): string;
623
- /**
624
- * @deprecated use the method in this.getStableContext()
625
- */
626
- formatNumber(value: number | string | undefined | null, format: ThemeTextFormatter | null | undefined, locale?: string): string;
627
- /**
628
- * @deprecated use the method in this.getStableContext()
629
- */
630
- formatAmount(value: number | string | undefined | null, locale?: string): string;
631
- /**
632
- * @deprecated use the method in this.getStableContext()
633
- */
634
- formatPercent(value: number | string | undefined | null, locale?: string): string;
377
+ getBoxSettings(): IPublicWidgetBoxSettings;
635
378
  }
636
379
  export interface IPublicWidgetBoxSettings {
637
380
  widgetId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AAaA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,uEAAO,CAAA;IACP,mEAAK,CAAA;AACT,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,mCAAnB,mBAAmB,QAAe"}
1
+ {"version":3,"file":"PublicContext.js","sourceRoot":"","sources":["../src/PublicContext.ts"],"names":[],"mappings":";;;AAcA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,iDAAqB,CAAA;AACzB,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC;AAED,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,uEAAO,CAAA;IACP,mEAAK,CAAA;AACT,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAED,IAAY,mBAAkC;AAA9C,WAAY,mBAAmB;IAAG,6DAAI,CAAA;IAAE,+DAAK,CAAA;AAAA,CAAC,EAAlC,mBAAmB,mCAAnB,mBAAmB,QAAe"}
@@ -428,18 +428,18 @@ interface IPublicCommonWidgetTemplateDefinition<OPTIONS extends FormFieldObject>
428
428
  * E.g a Pivot table can manage both modes
429
429
  */
430
430
  userMenuDisableInteractionMode?: boolean;
431
- /**
432
- * @deprecated
433
- */
434
- withoutTidyTable?: boolean;
435
431
  /**
436
432
  * This widget knows how to render a result without any data.
437
433
  */
438
434
  handlesNoData?: boolean;
439
435
  /**
440
- * This widget knows how to render when it has no query.
436
+ * This widget knows how to render when it has an empty query result.
441
437
  */
442
438
  handlesEmptyQuery?: boolean;
439
+ /**
440
+ * When the widget is just created, it shows an edit widget button. Set true here to show the widget instead.
441
+ */
442
+ canRenderWithoutUserConfig?: boolean;
443
443
  /**
444
444
  * This widget is responsible to notify its rendered status. Required with asynchronous rendering
445
445
  * (e.g., Google maps).