@embeddable.com/remarkable-pro 0.0.14 → 0.0.16

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 (130) hide show
  1. package/dist/BarChartDefaultHorizontalPro.js +24 -24
  2. package/dist/BarChartDefaultHorizontalPro.js.map +1 -1
  3. package/dist/BarChartDefaultPro.js +24 -24
  4. package/dist/BarChartDefaultPro.js.map +1 -1
  5. package/dist/BarChartGroupedHorizontalPro.js +27 -27
  6. package/dist/BarChartGroupedHorizontalPro.js.map +1 -1
  7. package/dist/BarChartGroupedPro.js +33 -33
  8. package/dist/BarChartGroupedPro.js.map +1 -1
  9. package/dist/BarChartStackedHorizontalPro.js +28 -28
  10. package/dist/BarChartStackedHorizontalPro.js.map +1 -1
  11. package/dist/BarChartStackedPro.js +27 -27
  12. package/dist/BarChartStackedPro.js.map +1 -1
  13. package/dist/{ChartCard-DaUtlchs.js → ChartCard-DWq8ltZe.js} +3 -3
  14. package/dist/{ChartCard-DaUtlchs.js.map → ChartCard-DWq8ltZe.js.map} +1 -1
  15. package/dist/{index-BIiign0L.js → Color.type.emb-CLYI-rua.js} +7217 -7211
  16. package/dist/Color.type.emb-CLYI-rua.js.map +1 -0
  17. package/dist/ColorEditor.js +10 -11
  18. package/dist/ColorEditor.js.map +1 -1
  19. package/dist/ComparisonPeriodSelectFieldPro.js +19 -22
  20. package/dist/ComparisonPeriodSelectFieldPro.js.map +1 -1
  21. package/dist/DateRangePickerCustomPro.js +29 -28
  22. package/dist/DateRangePickerCustomPro.js.map +1 -1
  23. package/dist/DateRangeSelectFieldPro.js +23 -21
  24. package/dist/DateRangeSelectFieldPro.js.map +1 -1
  25. package/dist/DonutChartPro.js +24 -24
  26. package/dist/DonutChartPro.js.map +1 -1
  27. package/dist/DonutLabelChartPro.js +29 -30
  28. package/dist/DonutLabelChartPro.js.map +1 -1
  29. package/dist/{EditorCard-DXQeyo3r.js → EditorCard-GIL6-rb_.js} +10 -10
  30. package/dist/{EditorCard-DXQeyo3r.js.map → EditorCard-GIL6-rb_.js.map} +1 -1
  31. package/dist/HeatMapPro.js +46 -45
  32. package/dist/HeatMapPro.js.map +1 -1
  33. package/dist/KpiChartNumberComparisonPro.js +32 -31
  34. package/dist/KpiChartNumberComparisonPro.js.map +1 -1
  35. package/dist/KpiChartNumberPro.js +14 -20
  36. package/dist/KpiChartNumberPro.js.map +1 -1
  37. package/dist/LineChartComparisonDefaultPro.js +61 -60
  38. package/dist/LineChartComparisonDefaultPro.js.map +1 -1
  39. package/dist/LineChartDefaultPro.js +46 -38
  40. package/dist/LineChartDefaultPro.js.map +1 -1
  41. package/dist/LineChartGroupedPro.js +47 -36
  42. package/dist/LineChartGroupedPro.js.map +1 -1
  43. package/dist/MultiSelectFieldPro.js +24 -27
  44. package/dist/MultiSelectFieldPro.js.map +1 -1
  45. package/dist/PieChartPro.js +24 -24
  46. package/dist/PieChartPro.js.map +1 -1
  47. package/dist/PivotTablePro.js +31 -29
  48. package/dist/PivotTablePro.js.map +1 -1
  49. package/dist/SingleSelectFieldPro.js +24 -24
  50. package/dist/SingleSelectFieldPro.js.map +1 -1
  51. package/dist/TableChartPaginated.js +43 -37
  52. package/dist/TableChartPaginated.js.map +1 -1
  53. package/dist/{bars.utils-BOaMUmRC.js → bars.utils-fkN2-HS9.js} +4 -4
  54. package/dist/{bars.utils-BOaMUmRC.js.map → bars.utils-fkN2-HS9.js.map} +1 -1
  55. package/dist/{charts.utils-QEdmPKTi.js → charts.utils-BiED7HDM.js} +6 -5
  56. package/dist/charts.utils-BiED7HDM.js.map +1 -0
  57. package/dist/{component.constants-DJqBv0qe.js → component.inputs.constants-BYwiwFNH.js} +446 -407
  58. package/dist/component.inputs.constants-BYwiwFNH.js.map +1 -0
  59. package/dist/components/charts/tables/HeatMapPro/index.d.ts +2 -2
  60. package/dist/components/charts/tables/HeatMapPro/index.d.ts.map +1 -1
  61. package/dist/components/component.inputs.constants.d.ts +309 -0
  62. package/dist/components/component.inputs.constants.d.ts.map +1 -0
  63. package/dist/components/component.subinputs.constants.d.ts +95 -0
  64. package/dist/components/component.subinputs.constants.d.ts.map +1 -0
  65. package/dist/embeddable-components.json +11 -11
  66. package/dist/embeddable-theme-0137e.js +2 -1
  67. package/dist/{formatter.utils-BRMB8qAc.js → formatter.utils-C6e5AE1P.js} +2 -2
  68. package/dist/{formatter.utils-BRMB8qAc.js.map → formatter.utils-C6e5AE1P.js.map} +1 -1
  69. package/dist/{index-DkbXF0dN.js → index-AkhRDk1Q.js} +5 -5
  70. package/dist/{index-DkbXF0dN.js.map → index-AkhRDk1Q.js.map} +1 -1
  71. package/dist/{index-CYfKRRhL.js → index-B6Sxhv5V.js} +16 -16
  72. package/dist/{index-CYfKRRhL.js.map → index-B6Sxhv5V.js.map} +1 -1
  73. package/dist/{index-DD28i12d.js → index-B7ZOvR_0.js} +5 -5
  74. package/dist/{index-DD28i12d.js.map → index-B7ZOvR_0.js.map} +1 -1
  75. package/dist/{index-QLS7PLnH.js → index-BKe5XLWq.js} +5 -5
  76. package/dist/{index-QLS7PLnH.js.map → index-BKe5XLWq.js.map} +1 -1
  77. package/dist/{index-BqgkyNm8.js → index-BLrDwmLF.js} +5 -5
  78. package/dist/index-BLrDwmLF.js.map +1 -0
  79. package/dist/{index-DBFwmzJQ.js → index-BPWmQIUP.js} +11 -11
  80. package/dist/{index-DBFwmzJQ.js.map → index-BPWmQIUP.js.map} +1 -1
  81. package/dist/{index-BcipgJ0R.js → index-BiJMrvpt.js} +5 -5
  82. package/dist/{index-BcipgJ0R.js.map → index-BiJMrvpt.js.map} +1 -1
  83. package/dist/{index-CVv-xIyp.js → index-Bvnqafeu.js} +5 -5
  84. package/dist/{index-CVv-xIyp.js.map → index-Bvnqafeu.js.map} +1 -1
  85. package/dist/{index-BvAMg9p7.js → index-CBauec4T.js} +5 -5
  86. package/dist/{index-BvAMg9p7.js.map → index-CBauec4T.js.map} +1 -1
  87. package/dist/{index-9xeta4is.js → index-CdT1o7ra.js} +5 -5
  88. package/dist/{index-9xeta4is.js.map → index-CdT1o7ra.js.map} +1 -1
  89. package/dist/{index-CfpIN_sB.js → index-DGoq-GmG.js} +6 -6
  90. package/dist/{index-CfpIN_sB.js.map → index-DGoq-GmG.js.map} +1 -1
  91. package/dist/{index-BbypzboN.js → index-DJy_zcds.js} +5 -5
  92. package/dist/{index-BbypzboN.js.map → index-DJy_zcds.js.map} +1 -1
  93. package/dist/{index-Bege60LS.js → index-DP-lVPuh.js} +5 -5
  94. package/dist/{index-Bege60LS.js.map → index-DP-lVPuh.js.map} +1 -1
  95. package/dist/{index-BpTn16mw.js → index-De2fu_3w.js} +22 -22
  96. package/dist/{index-BpTn16mw.js.map → index-De2fu_3w.js.map} +1 -1
  97. package/dist/{index-DlkwNVQ_.js → index-Do4E11C9.js} +5 -5
  98. package/dist/{index-DlkwNVQ_.js.map → index-Do4E11C9.js.map} +1 -1
  99. package/dist/{index-CrFZJTR2.js → index-IERhvJoR.js} +6 -6
  100. package/dist/{index-CrFZJTR2.js.map → index-IERhvJoR.js.map} +1 -1
  101. package/dist/{index-DD5t0omh.js → index-PV9-pvEj.js} +5 -5
  102. package/dist/{index-DD5t0omh.js.map → index-PV9-pvEj.js.map} +1 -1
  103. package/dist/{index-Ba6ziHiQ.js → index-Ybpp0kam.js} +4 -4
  104. package/dist/{index-Ba6ziHiQ.js.map → index-Ybpp0kam.js.map} +1 -1
  105. package/dist/{index-Drxp0RBw.js → index-agIiR5E8.js} +16 -16
  106. package/dist/{index-Drxp0RBw.js.map → index-agIiR5E8.js.map} +1 -1
  107. package/dist/{index-fHVbX-W0.js → index-hHZCF8mP.js} +5 -5
  108. package/dist/{index-fHVbX-W0.js.map → index-hHZCF8mP.js.map} +1 -1
  109. package/dist/{index-CnbSiVWn.js → index-za3bNggu.js} +5 -5
  110. package/dist/{index-CnbSiVWn.js.map → index-za3bNggu.js.map} +1 -1
  111. package/dist/index.d.ts +2 -1
  112. package/dist/index.d.ts.map +1 -1
  113. package/dist/index.js +84 -131
  114. package/dist/index.js.map +1 -1
  115. package/dist/{pies.utils-P0szT8UT.js → pies.utils--MuyzEyP.js} +5 -5
  116. package/dist/{pies.utils-P0szT8UT.js.map → pies.utils--MuyzEyP.js.map} +1 -1
  117. package/dist/remarkable-pro.css +1 -1
  118. package/dist/{timeRange.utils-CgLgHA94.js → timeRange.utils-Cf2JBR0j.js} +2 -2
  119. package/dist/{timeRange.utils-CgLgHA94.js.map → timeRange.utils-Cf2JBR0j.js.map} +1 -1
  120. package/package.json +2 -2
  121. package/dist/Color.type.emb-DFhAaPXz.js +0 -9
  122. package/dist/Color.type.emb-DFhAaPXz.js.map +0 -1
  123. package/dist/ComparisonPeriod.type.emb-C-YdNTEB.js +0 -14
  124. package/dist/ComparisonPeriod.type.emb-C-YdNTEB.js.map +0 -1
  125. package/dist/charts.utils-QEdmPKTi.js.map +0 -1
  126. package/dist/component.constants-DJqBv0qe.js.map +0 -1
  127. package/dist/components/component.constants.d.ts +0 -324
  128. package/dist/components/component.constants.d.ts.map +0 -1
  129. package/dist/index-BIiign0L.js.map +0 -1
  130. package/dist/index-BqgkyNm8.js.map +0 -1
@@ -0,0 +1,309 @@
1
+ export declare const inputs: {
2
+ readonly boolean: {
3
+ readonly name: "boolean";
4
+ readonly type: "boolean";
5
+ readonly label: "Boolean";
6
+ };
7
+ readonly timeRange: {
8
+ readonly name: "timeRange";
9
+ readonly type: "timeRange";
10
+ readonly label: "Time Range";
11
+ };
12
+ readonly number: {
13
+ readonly name: "number";
14
+ readonly type: "number";
15
+ readonly label: "Number";
16
+ };
17
+ readonly string: {
18
+ readonly name: "string";
19
+ readonly type: "string";
20
+ readonly label: "String";
21
+ };
22
+ readonly title: {
23
+ readonly name: "title";
24
+ readonly type: "string";
25
+ readonly label: "Title";
26
+ readonly category: "Component Header";
27
+ };
28
+ readonly description: {
29
+ readonly name: "description";
30
+ readonly type: "string";
31
+ readonly label: "Description";
32
+ readonly category: "Component Header";
33
+ };
34
+ readonly dataset: {
35
+ readonly name: "dataset";
36
+ readonly type: "dataset";
37
+ readonly label: "Dataset";
38
+ readonly required: true;
39
+ readonly category: "Component Data";
40
+ };
41
+ readonly maxLegendItems: {
42
+ readonly name: "maxLegendItems";
43
+ readonly type: "number";
44
+ readonly label: "Max Legend Items";
45
+ readonly defaultValue: 10;
46
+ readonly category: "Component Data";
47
+ };
48
+ readonly dimension: {
49
+ readonly name: "dimension";
50
+ readonly type: "dimension";
51
+ readonly label: "Dimension";
52
+ readonly config: {
53
+ readonly dataset: "dataset";
54
+ };
55
+ readonly required: true;
56
+ readonly category: "Component Data";
57
+ readonly inputs: any[];
58
+ };
59
+ readonly groupBy: {
60
+ readonly name: "groupBy";
61
+ readonly label: "Group By";
62
+ readonly type: "dimension";
63
+ readonly config: {
64
+ readonly dataset: "dataset";
65
+ };
66
+ readonly required: true;
67
+ readonly category: "Component Data";
68
+ readonly inputs: any[];
69
+ };
70
+ readonly dimensionSimple: {
71
+ readonly name: "dimensionSimple";
72
+ readonly type: "dimension";
73
+ readonly label: "Dimension";
74
+ readonly config: {
75
+ readonly dataset: "dataset";
76
+ readonly hideGranularity: true;
77
+ };
78
+ readonly required: true;
79
+ readonly category: "Component Data";
80
+ };
81
+ readonly dimensionTime: {
82
+ readonly name: "dimensionTime";
83
+ readonly type: "dimension";
84
+ readonly label: "Dimension Time";
85
+ readonly config: {
86
+ readonly dataset: "dataset";
87
+ readonly supportedTypes: readonly ["time"];
88
+ readonly hideGranularity: true;
89
+ };
90
+ readonly required: true;
91
+ readonly category: "Component Data";
92
+ };
93
+ readonly dimensionWithDateBounds: {
94
+ readonly name: "dimension";
95
+ readonly type: "dimension";
96
+ readonly label: "Dimension";
97
+ readonly config: {
98
+ readonly dataset: "dataset";
99
+ };
100
+ readonly required: true;
101
+ readonly category: "Component Data";
102
+ readonly inputs: any[];
103
+ };
104
+ readonly dimensions: {
105
+ readonly name: "dimensions";
106
+ readonly type: "dimension";
107
+ readonly label: "Dimensions";
108
+ readonly config: {
109
+ readonly dataset: "dataset";
110
+ };
111
+ readonly required: true;
112
+ readonly category: "Component Data";
113
+ readonly inputs: any[];
114
+ };
115
+ readonly dimensionOrMeasure: {
116
+ readonly name: "dimensionOrMeasure";
117
+ readonly type: "dimensionOrMeasure";
118
+ readonly label: "Dimension or Measure";
119
+ readonly config: {
120
+ readonly dataset: "dataset";
121
+ };
122
+ readonly category: "Component Data";
123
+ readonly inputs: any[];
124
+ };
125
+ readonly dimensionsAndMeasures: {
126
+ readonly name: "dimensionsAndMeasures";
127
+ readonly type: "dimensionOrMeasure";
128
+ readonly label: "Dimensions and Measures";
129
+ readonly array: true;
130
+ readonly required: true;
131
+ readonly config: {
132
+ readonly dataset: "dataset";
133
+ };
134
+ readonly category: "Component Data";
135
+ readonly inputs: any[];
136
+ };
137
+ readonly measure: {
138
+ readonly name: "measure";
139
+ readonly type: "measure";
140
+ readonly label: "Measure";
141
+ readonly config: {
142
+ readonly dataset: "dataset";
143
+ };
144
+ readonly required: true;
145
+ readonly category: "Component Data";
146
+ readonly inputs: any[];
147
+ };
148
+ readonly measures: {
149
+ readonly name: "measures";
150
+ readonly type: "measure";
151
+ readonly label: "Measures";
152
+ readonly array: true;
153
+ readonly config: {
154
+ readonly dataset: "dataset";
155
+ };
156
+ readonly required: true;
157
+ readonly category: "Component Data";
158
+ readonly inputs: any[];
159
+ };
160
+ readonly comparisonPeriod: {
161
+ name: string;
162
+ type: import('@embeddable.com/core').EmbeddableType;
163
+ label: string;
164
+ category: string;
165
+ };
166
+ readonly maxResults: {
167
+ readonly name: "maxResults";
168
+ readonly type: "number";
169
+ readonly label: "Max results";
170
+ readonly category: "Component Settings";
171
+ readonly defaultValue: 1000;
172
+ };
173
+ readonly placeholder: {
174
+ readonly name: "placeholder";
175
+ readonly type: "string";
176
+ readonly label: "Placeholder";
177
+ readonly category: "Component Settings";
178
+ };
179
+ readonly showLegend: {
180
+ readonly name: "showLegend";
181
+ readonly type: "boolean";
182
+ readonly label: "Show Legend";
183
+ readonly defaultValue: true;
184
+ readonly category: "Component Settings";
185
+ };
186
+ readonly showTooltips: {
187
+ readonly name: "showTooltips";
188
+ readonly type: "boolean";
189
+ readonly label: "Show Tooltips";
190
+ readonly defaultValue: true;
191
+ readonly category: "Component Settings";
192
+ };
193
+ readonly showValueLabels: {
194
+ readonly name: "showValueLabels";
195
+ readonly type: "boolean";
196
+ readonly label: "Show Value Labels";
197
+ readonly defaultValue: true;
198
+ readonly category: "Component Settings";
199
+ };
200
+ readonly showTotalLabels: {
201
+ readonly name: "showTotalLabels";
202
+ readonly type: "boolean";
203
+ readonly label: "Show Total Labels";
204
+ readonly defaultValue: false;
205
+ readonly category: "Component Settings";
206
+ };
207
+ readonly showLogarithmicScale: {
208
+ readonly name: "showLogarithmicScale";
209
+ readonly type: "boolean";
210
+ readonly label: "Show Logarithmic Scale";
211
+ readonly defaultValue: false;
212
+ readonly category: "Component Settings";
213
+ };
214
+ readonly displayPercentages: {
215
+ readonly name: "displayPercentages";
216
+ readonly type: "boolean";
217
+ readonly label: "Display Percentages";
218
+ readonly defaultValue: false;
219
+ readonly category: "Component Settings";
220
+ };
221
+ readonly color: {
222
+ readonly type: import('@embeddable.com/core').EmbeddableType;
223
+ readonly name: "color";
224
+ readonly label: "Color";
225
+ readonly category: "Component Settings";
226
+ };
227
+ readonly fontSize: {
228
+ readonly type: "number";
229
+ readonly name: "fontSize";
230
+ readonly label: "Font Size";
231
+ readonly category: "Component Settings";
232
+ };
233
+ readonly clearable: {
234
+ readonly type: "boolean";
235
+ readonly name: "clearable";
236
+ readonly label: "Can be cleared";
237
+ readonly defaultValue: true;
238
+ readonly category: "Component Settings";
239
+ };
240
+ readonly displayNullAs: {
241
+ readonly name: "displayNullAs";
242
+ readonly label: "Display Null As";
243
+ readonly category: "Component Settings";
244
+ readonly type: "string";
245
+ };
246
+ readonly xAxisLabel: {
247
+ readonly name: "xAxisLabel";
248
+ readonly type: "string";
249
+ readonly label: "X-axis Label";
250
+ readonly category: "Axes Settings";
251
+ };
252
+ readonly yAxisLabel: {
253
+ readonly name: "yAxisLabel";
254
+ readonly type: "string";
255
+ readonly label: "Y-axis Label";
256
+ readonly category: "Axes Settings";
257
+ };
258
+ readonly reverseXAxis: {
259
+ readonly name: "reverseXAxis";
260
+ readonly type: "boolean";
261
+ readonly label: "Reverse X-axis";
262
+ readonly defaultValue: false;
263
+ readonly category: "Axes Settings";
264
+ };
265
+ readonly reverseYAxis: {
266
+ readonly name: "reverseYAxis";
267
+ readonly type: "boolean";
268
+ readonly label: "Reverse Y-axis";
269
+ readonly defaultValue: false;
270
+ readonly category: "Axes Settings";
271
+ };
272
+ readonly yAxisRangeMin: {
273
+ readonly name: "yAxisRangeMin";
274
+ readonly type: "number";
275
+ readonly label: "Y-axis Range Min";
276
+ readonly category: "Axes Settings";
277
+ };
278
+ readonly yAxisRangeMax: {
279
+ readonly name: "yAxisRangeMax";
280
+ readonly type: "number";
281
+ readonly label: "Y-axis Range Max";
282
+ readonly category: "Axes Settings";
283
+ };
284
+ readonly xAxisRangeMin: {
285
+ readonly name: "xAxisRangeMin";
286
+ readonly type: "number";
287
+ readonly label: "X-axis Range Min";
288
+ readonly category: "Axes Settings";
289
+ };
290
+ readonly xAxisRangeMax: {
291
+ readonly name: "xAxisRangeMax";
292
+ readonly type: "number";
293
+ readonly label: "X-axis Range Max";
294
+ readonly category: "Axes Settings";
295
+ };
296
+ readonly xAxisMaxItems: {
297
+ readonly name: "xAxisMaxItems";
298
+ readonly type: "number";
299
+ readonly label: "Max X-axis Items";
300
+ readonly category: "Axes Settings";
301
+ };
302
+ readonly yAxisMaxItems: {
303
+ readonly name: "yAxisMaxItems";
304
+ readonly type: "number";
305
+ readonly label: "Max Y-axis Items";
306
+ readonly category: "Axes Settings";
307
+ };
308
+ };
309
+ //# sourceMappingURL=component.inputs.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.inputs.constants.d.ts","sourceRoot":"","sources":["../../src/components/component.inputs.constants.ts"],"names":[],"mappings":"AAiWA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CT,CAAC"}
@@ -0,0 +1,95 @@
1
+ export declare const dimensionMeasureSubInputs: any[];
2
+ export declare const timeDimensionSubInputs: any[];
3
+ export declare const subInputs: {
4
+ boolean: {
5
+ readonly name: "boolean";
6
+ readonly type: "boolean";
7
+ readonly label: "Boolean";
8
+ };
9
+ timeRange: {
10
+ readonly name: "timeRange";
11
+ readonly type: "timeRange";
12
+ readonly label: "Time Range";
13
+ };
14
+ number: {
15
+ readonly name: "number";
16
+ readonly type: "number";
17
+ readonly label: "Number";
18
+ };
19
+ string: {
20
+ readonly name: "string";
21
+ readonly type: "string";
22
+ readonly label: "String";
23
+ };
24
+ width: {
25
+ readonly name: "width";
26
+ readonly type: "number";
27
+ readonly label: "Width";
28
+ readonly description: "You can input a number in pixels e.g. 400";
29
+ };
30
+ align: {
31
+ readonly name: "align";
32
+ readonly type: import('@embeddable.com/core').EmbeddableType;
33
+ readonly label: "Align";
34
+ };
35
+ prefix: {
36
+ readonly name: "prefix";
37
+ readonly type: "string";
38
+ readonly label: "Prefix";
39
+ };
40
+ suffix: {
41
+ readonly name: "suffix";
42
+ readonly type: "string";
43
+ readonly label: "Suffix";
44
+ };
45
+ displayName: {
46
+ readonly name: "displayName";
47
+ readonly type: "string";
48
+ readonly label: "Display name";
49
+ };
50
+ maxCharacters: {
51
+ readonly name: "maxCharacters";
52
+ readonly type: "number";
53
+ readonly label: "Maximum characters";
54
+ readonly description: undefined;
55
+ readonly supportedTypes: readonly ["string"];
56
+ };
57
+ decimalPlaces: {
58
+ readonly name: "decimalPlaces";
59
+ readonly type: "number";
60
+ readonly label: "Decimal places";
61
+ readonly supportedTypes: readonly ["number"];
62
+ };
63
+ currency: {
64
+ readonly name: "currency";
65
+ readonly type: "string";
66
+ readonly label: "Currency";
67
+ readonly description: "e.g. EUR";
68
+ readonly supportedTypes: readonly ["number"];
69
+ };
70
+ abbreviateLargeNumber: {
71
+ readonly name: "abbreviateLargeNumber";
72
+ readonly type: "boolean";
73
+ readonly label: "Abbreviate large number";
74
+ readonly supportedTypes: readonly ["number"];
75
+ };
76
+ dateBounds: {
77
+ readonly name: "dateBounds";
78
+ readonly type: "timeRange";
79
+ readonly label: "Date Bounds";
80
+ readonly description: "Set the date range for the axis";
81
+ readonly supportedTypes: readonly ["time"];
82
+ };
83
+ granularity: {
84
+ readonly name: "granularity";
85
+ readonly type: "granularity";
86
+ readonly label: "Granularity";
87
+ readonly supportedTypes: readonly ["time"];
88
+ };
89
+ color: {
90
+ readonly type: import('@embeddable.com/core').EmbeddableType;
91
+ readonly name: "color";
92
+ readonly label: "Color";
93
+ };
94
+ };
95
+ //# sourceMappingURL=component.subinputs.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.subinputs.constants.d.ts","sourceRoot":"","sources":["../../src/components/component.subinputs.constants.ts"],"names":[],"mappings":"AA0GA,eAAO,MAAM,yBAAyB,EAAE,GAAG,EAQ1C,CAAC;AAGF,eAAO,MAAM,sBAAsB,EAAE,GAAG,EAUvC,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBrB,CAAC"}
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "components": [
3
3
  "MultiSelectFieldPro",
4
- "ComparisonPeriodSelectFieldPro",
5
4
  "SingleSelectFieldPro",
5
+ "BarChartDefaultPro",
6
+ "KpiChartNumberPro",
7
+ "ComparisonPeriodSelectFieldPro",
6
8
  "DateRangePickerCustomPro",
7
- "KpiChartNumberComparisonPro",
8
- "BarChartGroupedHorizontalPro",
9
9
  "DateRangeSelectFieldPro",
10
- "BarChartGroupedPro",
11
10
  "BarChartDefaultHorizontalPro",
11
+ "LineChartDefaultPro",
12
+ "DonutLabelChartPro",
13
+ "BarChartGroupedPro",
12
14
  "BarChartStackedHorizontalPro",
13
- "BarChartDefaultPro",
14
- "DonutChartPro",
15
+ "BarChartGroupedHorizontalPro",
15
16
  "LineChartComparisonDefaultPro",
16
- "KpiChartNumberPro",
17
17
  "BarChartStackedPro",
18
18
  "LineChartGroupedPro",
19
- "HeatMapPro",
20
- "LineChartDefaultPro",
21
19
  "PivotTablePro",
20
+ "DonutChartPro",
21
+ "KpiChartNumberComparisonPro",
22
22
  "PieChartPro",
23
- "DonutLabelChartPro",
24
- "TableChartPaginated"
23
+ "TableChartPaginated",
24
+ "HeatMapPro"
25
25
  ],
26
26
  "editors": [
27
27
  "ColorEditor"
@@ -2539,7 +2539,8 @@ var z0 = {
2539
2539
  "--em-daterangepicker-chevron-background": "var(--em-sem-background--light)",
2540
2540
  "--em-daterangepicker-chevron-icon-size": "var(--em-core-size--0400)",
2541
2541
  "--em-daterangepicker-chevron--hover": "var(--em-sem-background--subtle)",
2542
- "--em-daterangepicker-chevron--active": "var(--em-sem-background--muted)"
2542
+ "--em-daterangepicker-chevron--active": "var(--em-sem-background--muted)",
2543
+ "--em-tablechart-cell-max-width": "calc(3 * var(--em-core-size--2000))"
2543
2544
  }, j0 = {
2544
2545
  ...z0,
2545
2546
  ...Y0,
@@ -1,4 +1,4 @@
1
- import { $ as T } from "./component.constants-DJqBv0qe.js";
1
+ import { c as T } from "./component.inputs.constants-BYwiwFNH.js";
2
2
  const i = (r) => {
3
3
  const s = {};
4
4
  return (m) => {
@@ -43,4 +43,4 @@ const i = (r) => {
43
43
  export {
44
44
  D as g
45
45
  };
46
- //# sourceMappingURL=formatter.utils-BRMB8qAc.js.map
46
+ //# sourceMappingURL=formatter.utils-C6e5AE1P.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatter.utils-BRMB8qAc.js","sources":["../src/utils.ts/cache.utils.ts","../src/utils.ts/data.utils.ts","../src/theme/formatter/formatter.utils.ts"],"sourcesContent":["/**\n * Creates a formatter cache.\n * Cache used to prevent unnecessary (expensive) creation of formatter objects\n */\nexport const cache = <Params, Formatter>(factory: (params?: Params) => Formatter) => {\n const internalCache: { [key: string]: Formatter } = {};\n const get = (params?: Params) => {\n const key = JSON.stringify(params);\n let formatter = internalCache[key];\n if (formatter) {\n return formatter;\n }\n formatter = factory(params);\n internalCache[key] = formatter;\n return formatter;\n };\n return get;\n};\n","const ISO_DATE_TIME_REGEX = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$/;\n\nexport const isValidISODate = (value: string): boolean => {\n return Boolean(value && ISO_DATE_TIME_REGEX.test(value));\n};\n","import { DimensionOrMeasure } from '@embeddable.com/core';\nimport { DateTimeFormatter, NumberFormatter, StringFormatter } from './formatter.types';\nimport { Theme } from '../theme.types';\nimport { cache } from '../../utils.ts/cache.utils';\nimport { isValidISODate } from '../../utils.ts/data.utils';\nimport { resolveI18nString } from '../../components/component.utils';\n\nexport type GetThemeFormatter = {\n string: (key: string) => string;\n number: (value: number | bigint, options?: Intl.NumberFormatOptions) => string;\n dateTime: (value: Date, options?: Intl.DateTimeFormatOptions) => string;\n dimensionOrMeasureTitle: (key: DimensionOrMeasure) => string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: (key: DimensionOrMeasure, value: any) => string;\n};\n\nexport const getThemeFormatter = (theme: Theme): GetThemeFormatter => {\n const cachedNumberFormatter = cache<Intl.NumberFormatOptions, NumberFormatter>((options) =>\n theme.formatter.numberFormatter(theme, options),\n );\n\n const cachedDataNumberFormatter = cache<DimensionOrMeasure, NumberFormatter>((key) =>\n theme.formatter.dataNumberFormatter(theme, key!),\n );\n\n const cachedDateTimeFormatter = cache<Intl.DateTimeFormatOptions, DateTimeFormatter>((options) =>\n theme.formatter.dateTimeFormatter(theme, options),\n );\n\n const cachedDataDateTimeFormatter = cache<DimensionOrMeasure, DateTimeFormatter>((key) =>\n theme.formatter.dataDateTimeFormatter(theme, key!),\n );\n\n const cachedDataOthersFormatter = cache<DimensionOrMeasure, StringFormatter>((key) =>\n theme.formatter.dataOthersFormatter(theme, key!),\n );\n\n return {\n string: (key: string) => theme.formatter.stringFormatter().format(key),\n number: (value: number | bigint, options?: Intl.NumberFormatOptions): string => {\n return cachedNumberFormatter(options).format(value);\n },\n dateTime: (value: Date, options?: Intl.DateTimeFormatOptions): string => {\n return cachedDateTimeFormatter(options).format(value);\n },\n dimensionOrMeasureTitle: (key: DimensionOrMeasure): string => {\n const displayName = key.inputs?.displayName;\n if (displayName) {\n if (displayName.includes('|')) {\n return resolveI18nString(displayName);\n }\n return displayName;\n }\n\n const resolved = cachedDataOthersFormatter(key).format(key.name);\n return resolved === key.name ? (key.title ?? key.name) : resolved;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: (key: DimensionOrMeasure, value: any): string => {\n let newValue = value;\n\n // Number\n if (key.nativeType === 'number') {\n newValue = cachedDataNumberFormatter(key).format(value);\n }\n\n // Time\n if (key.nativeType === 'time' && isValidISODate(value)) {\n newValue = cachedDataDateTimeFormatter(key).format(new Date(value));\n }\n\n // Others (boolean and string)\n if (key.nativeType === 'boolean' || key.nativeType === 'string') {\n newValue = cachedDataOthersFormatter(key).format(value);\n }\n\n // Prefix and suffix\n const appended = `${key.inputs?.prefix || ''}${newValue}${key.inputs?.suffix || ''}`;\n\n // Max characters\n if (key.inputs?.maxCharacters) {\n if (appended.length <= key.inputs.maxCharacters) {\n return appended;\n }\n return appended.substring(0, key.inputs.maxCharacters) + '...';\n }\n\n return appended;\n },\n };\n};\n"],"names":["cache","factory","internalCache","params","key","formatter","ISO_DATE_TIME_REGEX","isValidISODate","value","getThemeFormatter","theme","cachedNumberFormatter","options","cachedDataNumberFormatter","cachedDateTimeFormatter","cachedDataDateTimeFormatter","cachedDataOthersFormatter","displayName","_a","resolveI18nString","resolved","newValue","appended","_b","_c"],"mappings":";AAIO,MAAMA,IAAQ,CAAoBC,MAA4C;AACnF,QAAMC,IAA8C,CAAA;AAWpD,SAVY,CAACC,MAAoB;AAC/B,UAAMC,IAAM,KAAK,UAAUD,CAAM;AACjC,QAAIE,IAAYH,EAAcE,CAAG;AACjC,WAAIC,MAGJA,IAAYJ,EAAQE,CAAM,GAC1BD,EAAcE,CAAG,IAAIC,GACdA;AAAA,EACT;AAEF,GCjBMC,IAAsB,gDAEfC,IAAiB,CAACC,MACtB,GAAQA,KAASF,EAAoB,KAAKE,CAAK,ICa3CC,IAAoB,CAACC,MAAoC;AACpE,QAAMC,IAAwBX;AAAA,IAAiD,CAACY,MAC9EF,EAAM,UAAU,gBAAgBA,GAAOE,CAAO;AAAA,EAAA,GAG1CC,IAA4Bb;AAAA,IAA2C,CAACI,MAC5EM,EAAM,UAAU,oBAAoBA,GAAON,CAAI;AAAA,EAAA,GAG3CU,IAA0Bd;AAAA,IAAqD,CAACY,MACpFF,EAAM,UAAU,kBAAkBA,GAAOE,CAAO;AAAA,EAAA,GAG5CG,IAA8Bf;AAAA,IAA6C,CAACI,MAChFM,EAAM,UAAU,sBAAsBA,GAAON,CAAI;AAAA,EAAA,GAG7CY,IAA4BhB;AAAA,IAA2C,CAACI,MAC5EM,EAAM,UAAU,oBAAoBA,GAAON,CAAI;AAAA,EAAA;AAGjD,SAAO;AAAA,IACL,QAAQ,CAACA,MAAgBM,EAAM,UAAU,gBAAA,EAAkB,OAAON,CAAG;AAAA,IACrE,QAAQ,CAACI,GAAwBI,MACxBD,EAAsBC,CAAO,EAAE,OAAOJ,CAAK;AAAA,IAEpD,UAAU,CAACA,GAAaI,MACfE,EAAwBF,CAAO,EAAE,OAAOJ,CAAK;AAAA,IAEtD,yBAAyB,CAACJ,MAAoC;;AAC5D,YAAMa,KAAcC,IAAAd,EAAI,WAAJ,gBAAAc,EAAY;AAChC,UAAID;AACF,eAAIA,EAAY,SAAS,GAAG,IACnBE,EAAkBF,CAAW,IAE/BA;AAGT,YAAMG,IAAWJ,EAA0BZ,CAAG,EAAE,OAAOA,EAAI,IAAI;AAC/D,aAAOgB,MAAahB,EAAI,OAAQA,EAAI,SAASA,EAAI,OAAQgB;AAAA,IAC3D;AAAA;AAAA,IAEA,MAAM,CAAChB,GAAyBI,MAAuB;;AACrD,UAAIa,IAAWb;AAGf,MAAIJ,EAAI,eAAe,aACrBiB,IAAWR,EAA0BT,CAAG,EAAE,OAAOI,CAAK,IAIpDJ,EAAI,eAAe,UAAUG,EAAeC,CAAK,MACnDa,IAAWN,EAA4BX,CAAG,EAAE,OAAO,IAAI,KAAKI,CAAK,CAAC,KAIhEJ,EAAI,eAAe,aAAaA,EAAI,eAAe,cACrDiB,IAAWL,EAA0BZ,CAAG,EAAE,OAAOI,CAAK;AAIxD,YAAMc,IAAW,KAAGJ,IAAAd,EAAI,WAAJ,gBAAAc,EAAY,WAAU,EAAE,GAAGG,CAAQ,KAAGE,IAAAnB,EAAI,WAAJ,gBAAAmB,EAAY,WAAU,EAAE;AAGlF,cAAIC,IAAApB,EAAI,WAAJ,QAAAoB,EAAY,gBACVF,EAAS,UAAUlB,EAAI,OAAO,gBACzBkB,IAEFA,EAAS,UAAU,GAAGlB,EAAI,OAAO,aAAa,IAAI,QAGpDkB;AAAA,IACT;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"formatter.utils-C6e5AE1P.js","sources":["../src/utils.ts/cache.utils.ts","../src/utils.ts/data.utils.ts","../src/theme/formatter/formatter.utils.ts"],"sourcesContent":["/**\n * Creates a formatter cache.\n * Cache used to prevent unnecessary (expensive) creation of formatter objects\n */\nexport const cache = <Params, Formatter>(factory: (params?: Params) => Formatter) => {\n const internalCache: { [key: string]: Formatter } = {};\n const get = (params?: Params) => {\n const key = JSON.stringify(params);\n let formatter = internalCache[key];\n if (formatter) {\n return formatter;\n }\n formatter = factory(params);\n internalCache[key] = formatter;\n return formatter;\n };\n return get;\n};\n","const ISO_DATE_TIME_REGEX = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}$/;\n\nexport const isValidISODate = (value: string): boolean => {\n return Boolean(value && ISO_DATE_TIME_REGEX.test(value));\n};\n","import { DimensionOrMeasure } from '@embeddable.com/core';\nimport { DateTimeFormatter, NumberFormatter, StringFormatter } from './formatter.types';\nimport { Theme } from '../theme.types';\nimport { cache } from '../../utils.ts/cache.utils';\nimport { isValidISODate } from '../../utils.ts/data.utils';\nimport { resolveI18nString } from '../../components/component.utils';\n\nexport type GetThemeFormatter = {\n string: (key: string) => string;\n number: (value: number | bigint, options?: Intl.NumberFormatOptions) => string;\n dateTime: (value: Date, options?: Intl.DateTimeFormatOptions) => string;\n dimensionOrMeasureTitle: (key: DimensionOrMeasure) => string;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: (key: DimensionOrMeasure, value: any) => string;\n};\n\nexport const getThemeFormatter = (theme: Theme): GetThemeFormatter => {\n const cachedNumberFormatter = cache<Intl.NumberFormatOptions, NumberFormatter>((options) =>\n theme.formatter.numberFormatter(theme, options),\n );\n\n const cachedDataNumberFormatter = cache<DimensionOrMeasure, NumberFormatter>((key) =>\n theme.formatter.dataNumberFormatter(theme, key!),\n );\n\n const cachedDateTimeFormatter = cache<Intl.DateTimeFormatOptions, DateTimeFormatter>((options) =>\n theme.formatter.dateTimeFormatter(theme, options),\n );\n\n const cachedDataDateTimeFormatter = cache<DimensionOrMeasure, DateTimeFormatter>((key) =>\n theme.formatter.dataDateTimeFormatter(theme, key!),\n );\n\n const cachedDataOthersFormatter = cache<DimensionOrMeasure, StringFormatter>((key) =>\n theme.formatter.dataOthersFormatter(theme, key!),\n );\n\n return {\n string: (key: string) => theme.formatter.stringFormatter().format(key),\n number: (value: number | bigint, options?: Intl.NumberFormatOptions): string => {\n return cachedNumberFormatter(options).format(value);\n },\n dateTime: (value: Date, options?: Intl.DateTimeFormatOptions): string => {\n return cachedDateTimeFormatter(options).format(value);\n },\n dimensionOrMeasureTitle: (key: DimensionOrMeasure): string => {\n const displayName = key.inputs?.displayName;\n if (displayName) {\n if (displayName.includes('|')) {\n return resolveI18nString(displayName);\n }\n return displayName;\n }\n\n const resolved = cachedDataOthersFormatter(key).format(key.name);\n return resolved === key.name ? (key.title ?? key.name) : resolved;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n data: (key: DimensionOrMeasure, value: any): string => {\n let newValue = value;\n\n // Number\n if (key.nativeType === 'number') {\n newValue = cachedDataNumberFormatter(key).format(value);\n }\n\n // Time\n if (key.nativeType === 'time' && isValidISODate(value)) {\n newValue = cachedDataDateTimeFormatter(key).format(new Date(value));\n }\n\n // Others (boolean and string)\n if (key.nativeType === 'boolean' || key.nativeType === 'string') {\n newValue = cachedDataOthersFormatter(key).format(value);\n }\n\n // Prefix and suffix\n const appended = `${key.inputs?.prefix || ''}${newValue}${key.inputs?.suffix || ''}`;\n\n // Max characters\n if (key.inputs?.maxCharacters) {\n if (appended.length <= key.inputs.maxCharacters) {\n return appended;\n }\n return appended.substring(0, key.inputs.maxCharacters) + '...';\n }\n\n return appended;\n },\n };\n};\n"],"names":["cache","factory","internalCache","params","key","formatter","ISO_DATE_TIME_REGEX","isValidISODate","value","getThemeFormatter","theme","cachedNumberFormatter","options","cachedDataNumberFormatter","cachedDateTimeFormatter","cachedDataDateTimeFormatter","cachedDataOthersFormatter","displayName","_a","resolveI18nString","resolved","newValue","appended","_b","_c"],"mappings":";AAIO,MAAMA,IAAQ,CAAoBC,MAA4C;AACnF,QAAMC,IAA8C,CAAA;AAWpD,SAVY,CAACC,MAAoB;AAC/B,UAAMC,IAAM,KAAK,UAAUD,CAAM;AACjC,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AAAA,IAEA,MAAM,CAAChB,GAAyBI,MAAuB;;AACrD,UAAIa,IAAWb;AAGf,MAAIJ,EAAI,eAAe,aACrBiB,IAAWR,EAA0BT,CAAG,EAAE,OAAOI,CAAK,IAIpDJ,EAAI,eAAe,UAAUG,EAAeC,CAAK,MACnDa,IAAWN,EAA4BX,CAAG,EAAE,OAAO,IAAI,KAAKI,CAAK,CAAC,KAIhEJ,EAAI,eAAe,aAAaA,EAAI,eAAe,cACrDiB,IAAWL,EAA0BZ,CAAG,EAAE,OAAOI,CAAK;AAIxD,YAAMc,IAAW,KAAGJ,IAAAd,EAAI,WAAJ,gBAAAc,EAAY,WAAU,EAAE,GAAGG,CAAQ,KAAGE,IAAAnB,EAAI,WAAJ,gBAAAmB,EAAY,WAAU,EAAE;AAGlF,cAAIC,IAAApB,EAAI,WAAJ,QAAAoB,EAAY,gBACVF,EAAS,UAAUlB,EAAI,OAAO,gBACzBkB,IAEFA,EAAS,UAAU,GAAGlB,EAAI,OAAO,aAAa,IAAI,QAGpDkB;AAAA,IACT;AAAA,EAAA;AAEJ;"}
@@ -1,10 +1,10 @@
1
- import { j as u, i as A } from "./index-BIiign0L.js";
1
+ import { j as u, h as A } from "./Color.type.emb-CLYI-rua.js";
2
2
  import { useTheme as M } from "@embeddable.com/react";
3
- import { a as j, r as x, i as O } from "./component.constants-DJqBv0qe.js";
4
- import { C as S } from "./ChartCard-DaUtlchs.js";
3
+ import { a as j, r as x, i as O } from "./component.inputs.constants-BYwiwFNH.js";
4
+ import { C as S } from "./ChartCard-DWq8ltZe.js";
5
5
  import { useRef as G } from "react";
6
6
  import { u as c } from "./charts.fillGaps.hooks-zCMYcjxz.js";
7
- import { g as f } from "./formatter.utils-BRMB8qAc.js";
7
+ import { g as f } from "./formatter.utils-C6e5AE1P.js";
8
8
  import { u as _ } from "./tables.hooks-BQdyUxau.js";
9
9
  const B = (e, t) => {
10
10
  const o = f(t);
@@ -86,4 +86,4 @@ export {
86
86
  W as P,
87
87
  K as i
88
88
  };
89
- //# sourceMappingURL=index-DkbXF0dN.js.map
89
+ //# sourceMappingURL=index-AkhRDk1Q.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DkbXF0dN.js","sources":["../src/components/charts/tables/PivotTablePro/PivotPro.utils.ts","../src/components/charts/tables/PivotTablePro/index.tsx"],"sourcesContent":["import { Dimension, Measure } from '@embeddable.com/core';\nimport { Theme } from '../../../../theme/theme.types';\nimport { PivotTableProps } from '@embeddable.com/remarkable-ui';\nimport { getThemeFormatter } from '../../../../theme/formatter/formatter.utils';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nexport const getPivotMeasures = (\n props: { measures: Measure[]; displayNullAs?: string },\n theme: Theme,\n): PivotTableProps<any>['measures'] => {\n const themeFormatter = getThemeFormatter(theme);\n\n return props.measures.map((measure) => {\n return {\n key: measure.name,\n label: themeFormatter.dimensionOrMeasureTitle(measure),\n showAsPercentage: Boolean(measure.inputs?.showAsPercentage),\n percentageDecimalPlaces: measure.inputs?.decimalPlaces ?? 1,\n accessor: (row) => {\n const value = row[measure.name];\n\n return value == null\n ? props.displayNullAs\n : themeFormatter.data(measure, row[measure.name]);\n },\n };\n });\n};\n\nexport const getPivotDimension = (\n props: { dimension: Dimension },\n theme: Theme,\n): PivotTableProps<any>['rowDimension' | 'columnDimension'] => {\n const themeFormatter = getThemeFormatter(theme);\n\n return {\n key: props.dimension.name,\n label: themeFormatter.dimensionOrMeasureTitle(props.dimension),\n formatValue: (value: string) => themeFormatter.data(props.dimension, value),\n };\n};\n\nexport const getPivotColumnTotalsFor = (\n measures: Measure[],\n): PivotTableProps<any>['columnTotalsFor'] | undefined => {\n return measures.filter((m) => m.inputs?.showColumnTotal).map((m) => m.name);\n};\n\nexport const getPivotRowTotalsFor = (\n measures: Measure[],\n): PivotTableProps<any>['rowTotalsFor'] | undefined => {\n return measures.filter((m) => m.inputs?.showRowTotal).map((m) => m.name);\n};\n","import { useTheme } from '@embeddable.com/react';\nimport { Theme } from '../../../../theme/theme.types';\nimport { i18n, i18nSetup } from '../../../../theme/i18n/i18n';\nimport { ChartCard } from '../../shared/ChartCard/ChartCard';\nimport { resolveI18nProps } from '../../../component.utils';\nimport { DataResponse, Dimension, Measure } from '@embeddable.com/core';\nimport { PivotTable } from '@embeddable.com/remarkable-ui';\nimport { useRef } from 'react';\nimport { useFillGaps } from '../../charts.fillGaps.hooks';\nimport {\n getPivotColumnTotalsFor,\n getPivotDimension,\n getPivotMeasures,\n getPivotRowTotalsFor,\n} from './PivotPro.utils';\nimport { useGetTableSortedResults } from '../tables.hooks';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ntype PivotTableProProps = {\n title: string;\n description: string;\n results: DataResponse;\n measures: Measure[];\n rowDimension: Dimension;\n columnDimension: Dimension;\n displayNullAs?: string;\n columnWidth?: number;\n firstColumnWidth?: number;\n};\n\nconst PivotTablePro = (props: PivotTableProProps) => {\n const theme = useTheme() as Theme;\n i18nSetup(theme);\n\n const { description, title } = resolveI18nProps(props);\n const { measures, rowDimension, columnDimension, displayNullAs, columnWidth, firstColumnWidth } =\n props;\n\n const columnOrder = Array.from(\n new Set((props.results.data ?? []).filter(Boolean).map((d) => d[columnDimension.name])),\n );\n\n const rowOrder = Array.from(\n new Set((props.results.data ?? []).filter(Boolean).map((d) => d[rowDimension.name])),\n );\n\n // Fill gaps for the column dimension\n const resultsColumnDimensionFillGaps = useFillGaps({\n results: props.results,\n dimension: columnDimension,\n });\n\n // Fill gaps for the row dimension\n const resultsRowColumnDimensionFillGaps = useFillGaps({\n results: resultsColumnDimensionFillGaps,\n dimension: rowDimension,\n });\n\n const results = useGetTableSortedResults({\n results: resultsRowColumnDimensionFillGaps,\n columnOrder,\n rowOrder,\n columnDimension,\n rowDimension,\n measures,\n });\n\n const cardContentRef = useRef<HTMLDivElement>(null);\n\n const pivotMeasures = getPivotMeasures({ measures, displayNullAs }, theme);\n const pivotRowDimension = getPivotDimension({ dimension: rowDimension }, theme);\n const pivotColumnDimension = getPivotDimension({ dimension: columnDimension }, theme);\n const pivotColumnTotalsFor = getPivotColumnTotalsFor(measures);\n const pivotRowTotalsFor = getPivotRowTotalsFor(measures);\n return (\n <ChartCard\n ref={cardContentRef}\n title={title}\n subtitle={description}\n data={props.results}\n dimensionsAndMeasures={[rowDimension, columnDimension, ...measures]}\n errorMessage={props.results?.error}\n >\n <PivotTable\n firstColumnWidth={firstColumnWidth}\n columnWidth={columnWidth}\n totalLabel={i18n.t('charts.pivotTable.total')}\n data={results}\n measures={pivotMeasures}\n rowDimension={pivotRowDimension}\n columnDimension={pivotColumnDimension}\n columnTotalsFor={pivotColumnTotalsFor}\n rowTotalsFor={pivotRowTotalsFor}\n />\n </ChartCard>\n );\n};\n\nexport default PivotTablePro;\n"],"names":["getPivotMeasures","props","theme","themeFormatter","getThemeFormatter","measure","_a","_b","row","getPivotDimension","value","getPivotColumnTotalsFor","measures","m","getPivotRowTotalsFor","PivotTablePro","useTheme","i18nSetup","description","title","resolveI18nProps","rowDimension","columnDimension","displayNullAs","columnWidth","firstColumnWidth","columnOrder","d","rowOrder","resultsColumnDimensionFillGaps","useFillGaps","resultsRowColumnDimensionFillGaps","results","useGetTableSortedResults","cardContentRef","useRef","pivotMeasures","pivotRowDimension","pivotColumnDimension","pivotColumnTotalsFor","pivotRowTotalsFor","jsx","ChartCard","PivotTable","i18n"],"mappings":";;;;;;;;AAOO,MAAMA,IAAmB,CAC9BC,GACAC,MACqC;AACrC,QAAMC,IAAiBC,EAAkBF,CAAK;AAE9C,SAAOD,EAAM,SAAS,IAAI,CAACI,MAAY;;AACrC,WAAO;AAAA,MACL,KAAKA,EAAQ;AAAA,MACb,OAAOF,EAAe,wBAAwBE,CAAO;AAAA,MACrD,kBAAkB,IAAQC,IAAAD,EAAQ,WAAR,QAAAC,EAAgB;AAAA,MAC1C,2BAAyBC,IAAAF,EAAQ,WAAR,gBAAAE,EAAgB,kBAAiB;AAAA,MAC1D,UAAU,CAACC,MACKA,EAAIH,EAAQ,IAAI,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Pro.utils.ts","../src/components/charts/tables/PivotTablePro/index.tsx"],"sourcesContent":["import { Dimension, Measure } from '@embeddable.com/core';\nimport { Theme } from '../../../../theme/theme.types';\nimport { PivotTableProps } from '@embeddable.com/remarkable-ui';\nimport { getThemeFormatter } from '../../../../theme/formatter/formatter.utils';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nexport const getPivotMeasures = (\n props: { measures: Measure[]; displayNullAs?: string },\n theme: Theme,\n): PivotTableProps<any>['measures'] => {\n const themeFormatter = getThemeFormatter(theme);\n\n return props.measures.map((measure) => {\n return {\n key: measure.name,\n label: themeFormatter.dimensionOrMeasureTitle(measure),\n showAsPercentage: Boolean(measure.inputs?.showAsPercentage),\n percentageDecimalPlaces: measure.inputs?.decimalPlaces ?? 1,\n accessor: (row) => {\n const value = row[measure.name];\n\n return value == null\n ? props.displayNullAs\n : themeFormatter.data(measure, row[measure.name]);\n },\n };\n });\n};\n\nexport const getPivotDimension = (\n props: { dimension: Dimension },\n theme: Theme,\n): PivotTableProps<any>['rowDimension' | 'columnDimension'] => {\n const themeFormatter = getThemeFormatter(theme);\n\n return {\n key: props.dimension.name,\n label: themeFormatter.dimensionOrMeasureTitle(props.dimension),\n formatValue: (value: string) => themeFormatter.data(props.dimension, value),\n };\n};\n\nexport const getPivotColumnTotalsFor = (\n measures: Measure[],\n): PivotTableProps<any>['columnTotalsFor'] | undefined => {\n return measures.filter((m) => m.inputs?.showColumnTotal).map((m) => m.name);\n};\n\nexport const getPivotRowTotalsFor = (\n measures: Measure[],\n): PivotTableProps<any>['rowTotalsFor'] | undefined => {\n return measures.filter((m) => m.inputs?.showRowTotal).map((m) => m.name);\n};\n","import { useTheme } from '@embeddable.com/react';\nimport { Theme } from '../../../../theme/theme.types';\nimport { i18n, i18nSetup } from '../../../../theme/i18n/i18n';\nimport { ChartCard } from '../../shared/ChartCard/ChartCard';\nimport { resolveI18nProps } from '../../../component.utils';\nimport { DataResponse, Dimension, Measure } from '@embeddable.com/core';\nimport { PivotTable } from '@embeddable.com/remarkable-ui';\nimport { useRef } from 'react';\nimport { useFillGaps } from '../../charts.fillGaps.hooks';\nimport {\n getPivotColumnTotalsFor,\n getPivotDimension,\n getPivotMeasures,\n getPivotRowTotalsFor,\n} from './PivotPro.utils';\nimport { useGetTableSortedResults } from '../tables.hooks';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ntype PivotTableProProps = {\n title: string;\n description: string;\n results: DataResponse;\n measures: Measure[];\n rowDimension: Dimension;\n columnDimension: Dimension;\n displayNullAs?: string;\n columnWidth?: number;\n firstColumnWidth?: number;\n};\n\nconst PivotTablePro = (props: PivotTableProProps) => {\n const theme = useTheme() as Theme;\n i18nSetup(theme);\n\n const { description, title } = resolveI18nProps(props);\n const { measures, rowDimension, columnDimension, displayNullAs, columnWidth, firstColumnWidth } =\n props;\n\n const columnOrder = Array.from(\n new Set((props.results.data ?? []).filter(Boolean).map((d) => d[columnDimension.name])),\n );\n\n const rowOrder = Array.from(\n new Set((props.results.data ?? []).filter(Boolean).map((d) => d[rowDimension.name])),\n );\n\n // Fill gaps for the column dimension\n const resultsColumnDimensionFillGaps = useFillGaps({\n results: props.results,\n dimension: columnDimension,\n });\n\n // Fill gaps for the row dimension\n const resultsRowColumnDimensionFillGaps = useFillGaps({\n results: resultsColumnDimensionFillGaps,\n dimension: rowDimension,\n });\n\n const results = useGetTableSortedResults({\n results: resultsRowColumnDimensionFillGaps,\n columnOrder,\n rowOrder,\n columnDimension,\n rowDimension,\n measures,\n });\n\n const cardContentRef = useRef<HTMLDivElement>(null);\n\n const pivotMeasures = getPivotMeasures({ measures, displayNullAs }, theme);\n const pivotRowDimension = getPivotDimension({ dimension: rowDimension }, theme);\n const pivotColumnDimension = getPivotDimension({ dimension: columnDimension }, theme);\n const pivotColumnTotalsFor = getPivotColumnTotalsFor(measures);\n const pivotRowTotalsFor = getPivotRowTotalsFor(measures);\n return (\n <ChartCard\n ref={cardContentRef}\n title={title}\n subtitle={description}\n data={props.results}\n dimensionsAndMeasures={[rowDimension, columnDimension, ...measures]}\n errorMessage={props.results?.error}\n >\n <PivotTable\n firstColumnWidth={firstColumnWidth}\n columnWidth={columnWidth}\n totalLabel={i18n.t('charts.pivotTable.total')}\n data={results}\n measures={pivotMeasures}\n rowDimension={pivotRowDimension}\n columnDimension={pivotColumnDimension}\n columnTotalsFor={pivotColumnTotalsFor}\n rowTotalsFor={pivotRowTotalsFor}\n />\n </ChartCard>\n );\n};\n\nexport default PivotTablePro;\n"],"names":["getPivotMeasures","props","theme","themeFormatter","getThemeFormatter","measure","_a","_b","row","getPivotDimension","value","getPivotColumnTotalsFor","measures","m","getPivotRowTotalsFor","PivotTablePro","useTheme","i18nSetup","description","title","resolveI18nProps","rowDimension","columnDimension","displayNullAs","columnWidth","firstColumnWidth","columnOrder","d","rowOrder","resultsColumnDimensionFillGaps","useFillGaps","resultsRowColumnDimensionFillGaps","results","useGetTableSortedResults","cardContentRef","useRef","pivotMeasures","pivotRowDimension","pivotColumnDimension","pivotColumnTotalsFor","pivotRowTotalsFor","jsx","ChartCard","PivotTable","i18n"],"mappings":";;;;;;;;AAOO,MAAMA,IAAmB,CAC9BC,GACAC,MACqC;AACrC,QAAMC,IAAiBC,EAAkBF,CAAK;AAE9C,SAAOD,EAAM,SAAS,IAAI,CAACI,MAAY;;AACrC,WAAO;AAAA,MACL,KAAKA,EAAQ;AAAA,MACb,OAAOF,EAAe,wBAAwBE,CAAO;AAAA,MACrD,kBAAkB,IAAQC,IAAAD,EAAQ,WAAR,QAAAC,EAAgB;AAAA,MAC1C,2BAAyBC,IAAAF,EAAQ,WAAR,gBAAAE,EAAgB,kBAAiB;AAAA,MAC1D,UAAU,CAACC,MACKA,EAAIH,EAAQ,IAAI,KAEd,OACZJ,EAAM,gBACNE,EAAe,KAAKE,GAASG,EAAIH,EAAQ,IAAI,CAAC;AAAA,IACpD;AAAA,EAEJ,CAAC;AACH,GAEaI,IAAoB,CAC/BR,GACAC,MAC6D;AAC7D,QAAMC,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Z,GAEKW,IAAUC,EAAyB;AAAA,IACvC,SAASF;AAAA,IACT,aAAAL;AAAA,IACA,UAAAE;AAAA,IACA,iBAAAN;AAAA,IACA,cAAAD;AAAA,IACA,UAAAT;AAAA,EAAA,CACD,GAEKsB,IAAiBC,EAAuB,IAAI,GAE5CC,IAAgBpC,EAAiB,EAAE,UAAAY,GAAU,eAAAW,EAAA,GAAiBrB,CAAK,GACnEmC,IAAoB5B,EAAkB,EAAE,WAAWY,EAAA,GAAgBnB,CAAK,GACxEoC,IAAuB7B,EAAkB,EAAE,WAAWa,EAAA,GAAmBpB,CAAK,GAC9EqC,IAAuB5B,EAAwBC,CAAQ,GACvD4B,IAAoB1B,EAAqBF,CAAQ;AACvD,SACE6B,gBAAAA,EAAAA;AAAAA,IAACC;AAAA,IAAA;AAAA,MACC,KAAKR;AAAA,MACL,OAAAf;AAAA,MACA,UAAUD;AAAA,MACV,MAAMjB,EAAM;AAAA,MACZ,uBAAuB,CAACoB,GAAcC,GAAiB,GAAGV,CAAQ;AAAA,MAClE,eAAcN,IAAAL,EAAM,YAAN,gBAAAK,EAAe;AAAA,MAE7B,UAAAmC,gBAAAA,EAAAA;AAAAA,QAACE;AAAA,QAAA;AAAA,UACC,kBAAAlB;AAAA,UACA,aAAAD;AAAA,UACA,YAAYoB,EAAK,EAAE,yBAAyB;AAAA,UAC5C,MAAMZ;AAAA,UACN,UAAUI;AAAA,UACV,cAAcC;AAAA,UACd,iBAAiBC;AAAA,UACjB,iBAAiBC;AAAA,UACjB,cAAcC;AAAA,QAAA;AAAA,MAAA;AAAA,IAChB;AAAA,EAAA;AAGN;;;;"}
@@ -1,8 +1,8 @@
1
- import { t as z, v as E, w as N, j as t, x as q, y as B, z as d, E as G, F as J, G as $, J as A, N as H, O as K } from "./index-BIiign0L.js";
2
- import { useTheme as Q } from "@embeddable.com/react";
3
- import { g as k, u as U, a as W, c as C, b as X } from "./dates.utils-f-XJ_LBg.js";
4
- import { $ as Y, a as Z, r as V, i as m } from "./component.constants-DJqBv0qe.js";
5
- import { E as ee } from "./EditorCard-DXQeyo3r.js";
1
+ import { t as z, v as E, w as N, j as t, x as q, y as B, z as d, E as G, F as J, G as A, J as H, N as K, O as Q } from "./Color.type.emb-CLYI-rua.js";
2
+ import { useTheme as U } from "@embeddable.com/react";
3
+ import { g as k, u as W, a as X, c as C, b as Y } from "./dates.utils-f-XJ_LBg.js";
4
+ import { c as Z, a as $, r as V, i as m } from "./component.inputs.constants-BYwiwFNH.js";
5
+ import { E as ee } from "./EditorCard-GIL6-rb_.js";
6
6
  import { useState as h, useEffect as ae } from "react";
7
7
  /**
8
8
  * @license @tabler/icons-react v3.36.0 - MIT
@@ -13,15 +13,15 @@ import { useState as h, useEffect as ae } from "react";
13
13
  const te = [["path", { d: "M16 2a1 1 0 0 1 .993 .883l.007 .117v1h1a3 3 0 0 1 2.995 2.824l.005 .176v12a3 3 0 0 1 -2.824 2.995l-.176 .005h-12a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-12a3 3 0 0 1 2.824 -2.995l.176 -.005h1v-1a1 1 0 0 1 1.993 -.117l.007 .117v1h6v-1a1 1 0 0 1 1 -1zm3 7h-14v9.625c0 .705 .386 1.286 .883 1.366l.117 .009h12c.513 0 .936 -.53 .993 -1.215l.007 -.16v-9.625z", key: "svg-0" }], ["path", { d: "M12 12a1 1 0 0 1 .993 .883l.007 .117v3a1 1 0 0 1 -1.993 .117l-.007 -.117v-2a1 1 0 0 1 -.117 -1.993l.117 -.007h1z", key: "svg-1" }]], ne = z("filled", "calendar-filled", "CalendarFilled", te), se = (o) => o.map((n) => ({
14
14
  rightLabel: k(n.getRange(), n.dateFormat),
15
15
  value: n.value,
16
- label: Y(n.label)
16
+ label: Z(n.label)
17
17
  })), oe = "_dateRangePickerContent_pig22_1", re = "_dateRangePickerContainer_pig22_5", b = {
18
18
  dateRangePickerContent: oe,
19
19
  dateRangePickerContainer: re
20
20
  }, ie = (o) => {
21
- const n = Q();
22
- Z(n);
23
- const { dayjsLocaleReady: i } = U(), { onChange: s, clearable: P, selectedValue: e, showCustomRangeOptions: j, showTwoMonths: D } = o, R = !j, [x, u] = h(R), [S, v] = h(!1), [l, c] = h(
24
- W(e)
21
+ const n = U();
22
+ $(n);
23
+ const { dayjsLocaleReady: i } = W(), { onChange: s, clearable: P, selectedValue: e, showCustomRangeOptions: j, showTwoMonths: D } = o, R = !j, [x, u] = h(R), [S, v] = h(!1), [l, c] = h(
24
+ X(e)
25
25
  ), r = n.defaults.dateRangesOptions;
26
26
  if (ae(() => {
27
27
  if (!i)
@@ -37,7 +37,7 @@ const te = [["path", { d: "M16 2a1 1 0 0 1 .993 .883l.007 .117v1h1a3 3 0 0 1 2.9
37
37
  );
38
38
  s(g), c(void 0);
39
39
  }, y = (a) => {
40
- s(X(a)), v(!1);
40
+ s(Y(a)), v(!1);
41
41
  }, F = () => {
42
42
  c(void 0), s(void 0);
43
43
  }, L = (() => {
@@ -54,7 +54,7 @@ const te = [["path", { d: "M16 2a1 1 0 0 1 .993 .883l.007 .117v1h1a3 3 0 0 1 2.9
54
54
  open: S,
55
55
  onOpenChange: v,
56
56
  triggerComponent: /* @__PURE__ */ t.jsx(
57
- K,
57
+ Q,
58
58
  {
59
59
  startIcon: ne,
60
60
  "aria-label": f,
@@ -85,7 +85,7 @@ const te = [["path", { d: "M16 2a1 1 0 0 1 .993 .883l.007 .117v1h1a3 3 0 0 1 2.9
85
85
  }
86
86
  ),
87
87
  /* @__PURE__ */ t.jsx(
88
- $,
88
+ A,
89
89
  {
90
90
  size: "small",
91
91
  disabled: I,
@@ -93,7 +93,7 @@ const te = [["path", { d: "M16 2a1 1 0 0 1 .993 .883l.007 .117v1h1a3 3 0 0 1 2.9
93
93
  children: m.t("editors.dateRangePicker.apply")
94
94
  }
95
95
  )
96
- ] }) : /* @__PURE__ */ t.jsxs(A, { children: [
96
+ ] }) : /* @__PURE__ */ t.jsxs(H, { children: [
97
97
  /* @__PURE__ */ t.jsx(
98
98
  d,
99
99
  {
@@ -101,7 +101,7 @@ const te = [["path", { d: "M16 2a1 1 0 0 1 .993 .883l.007 .117v1h1a3 3 0 0 1 2.9
101
101
  onClick: (a) => {
102
102
  a.preventDefault(), u(!0);
103
103
  },
104
- endIcon: /* @__PURE__ */ t.jsx(H, {})
104
+ endIcon: /* @__PURE__ */ t.jsx(K, {})
105
105
  }
106
106
  ),
107
107
  p.map((a) => /* @__PURE__ */ t.jsx(
@@ -125,4 +125,4 @@ export {
125
125
  se as g,
126
126
  ue as i
127
127
  };
128
- //# sourceMappingURL=index-CYfKRRhL.js.map
128
+ //# sourceMappingURL=index-B6Sxhv5V.js.map