polymatica-widget 2.0.4 → 2.0.10
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.
- package/package.json +1 -1
- package/widget-config.d.ts +6 -8
- package/widget-config.js +1 -1
package/package.json
CHANGED
package/widget-config.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Options } from './widget';
|
|
|
3
3
|
import { WidgetOptionConfig } from './__internal__/widget-options';
|
|
4
4
|
export declare enum DataQueryMethod {
|
|
5
5
|
Aggregate = "aggregate",
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Table = "table",
|
|
7
|
+
PivotTable = "pivot"
|
|
8
8
|
}
|
|
9
9
|
export interface WidgetConfig {
|
|
10
10
|
data?: {
|
|
@@ -19,22 +19,20 @@ export interface WidgetConfig {
|
|
|
19
19
|
export interface DataConfig {
|
|
20
20
|
method: DataQueryMethod;
|
|
21
21
|
blocks: Block[];
|
|
22
|
-
label?: Text;
|
|
23
22
|
validation?: {
|
|
24
23
|
requiredSome?: string[];
|
|
25
24
|
requiredEvery?: string[];
|
|
26
25
|
};
|
|
27
|
-
|
|
26
|
+
repeatable?: boolean | {
|
|
27
|
+
min?: number;
|
|
28
|
+
max?: number;
|
|
29
|
+
};
|
|
28
30
|
drilldown?: {
|
|
29
31
|
source: string;
|
|
30
32
|
};
|
|
31
33
|
heatmap?: boolean | {
|
|
32
34
|
targets: string[];
|
|
33
35
|
};
|
|
34
|
-
repeatable?: boolean | {
|
|
35
|
-
min?: number;
|
|
36
|
-
max?: number;
|
|
37
|
-
};
|
|
38
36
|
}
|
|
39
37
|
export interface WithKey {
|
|
40
38
|
key: string;
|
package/widget-config.js
CHANGED
|
@@ -6,8 +6,8 @@ const widget_options_1 = require("./__internal__/widget-options");
|
|
|
6
6
|
var DataQueryMethod;
|
|
7
7
|
(function (DataQueryMethod) {
|
|
8
8
|
DataQueryMethod["Aggregate"] = "aggregate";
|
|
9
|
-
DataQueryMethod["Pivot"] = "pivot";
|
|
10
9
|
DataQueryMethod["Table"] = "table";
|
|
10
|
+
DataQueryMethod["PivotTable"] = "pivot";
|
|
11
11
|
})(DataQueryMethod = exports.DataQueryMethod || (exports.DataQueryMethod = {}));
|
|
12
12
|
// widget options
|
|
13
13
|
exports.STEP = 24;
|