@ic3/reporting-api 8.3.0-alpha.1 → 8.4.0-alpha.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.
- package/README.md +6 -4
- package/dist/ApiUtils.js +1 -1
- package/dist/ApiUtils.js.map +1 -1
- package/dist/INotification.d.ts +17 -2
- package/dist/IOnNewEventJsContext.d.ts +1 -1
- package/dist/IPluginDefinition.d.ts +3 -0
- package/dist/IThemeManager.d.ts +1 -1
- package/dist/ITypes.d.ts +3 -3
- package/dist/IWidgetVariantManager.d.ts +2 -2
- package/dist/LazyTreeView.d.ts +1 -1
- package/dist/Logger.d.ts +1 -1
- package/dist/PublicAmCharts4Base.d.ts +91 -0
- package/dist/{IReporting.js → PublicAmCharts4Base.js} +1 -1
- package/dist/PublicAmCharts4Base.js.map +1 -0
- package/dist/PublicAmchartsData.d.ts +41 -15
- package/dist/PublicAmchartsData.js +32 -21
- package/dist/PublicAmchartsData.js.map +1 -1
- package/dist/PublicContext.d.ts +27 -1
- package/dist/PublicContext.js +6 -1
- package/dist/PublicContext.js.map +1 -1
- package/dist/PublicLayout.d.ts +2 -2
- package/dist/PublicTemplate.d.ts +16 -5
- package/dist/PublicTemplate.js.map +1 -1
- package/dist/PublicTemplateForm.d.ts +39 -20
- package/dist/PublicTemplateForm.js.map +1 -1
- package/dist/PublicTemplates.d.ts +4 -2
- package/dist/PublicTheme.d.ts +215 -85
- package/dist/PublicTheme.js.map +1 -1
- package/dist/PublicTidyColumn.d.ts +39 -19
- package/dist/PublicTidyColumn.js +3 -14
- package/dist/PublicTidyColumn.js.map +1 -1
- package/dist/PublicTidyHistogram.d.ts +20 -1
- package/dist/PublicTidyHistogram.js +28 -5
- package/dist/PublicTidyHistogram.js.map +1 -1
- package/dist/PublicTidyMath.d.ts +7 -1
- package/dist/PublicTidyTableInteractions.d.ts +11 -2
- package/dist/PublicTidyTableInteractions.js.map +1 -1
- package/dist/PublicTidyTableTypes.d.ts +49 -18
- package/dist/PublicTidyTableTypes.js +3 -4
- package/dist/PublicTidyTableTypes.js.map +1 -1
- package/dist/PublicTidyTree.d.ts +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/theme/ThemeAmCharts4.d.ts +88 -25
- package/dist/theme/ThemeAmCharts4.js +7 -1
- package/dist/theme/ThemeAmCharts4.js.map +1 -1
- package/dist/theme/ThemeCodeMirror.d.ts +4 -0
- package/dist/theme/ThemeCodeMirror.js +8 -0
- package/dist/theme/ThemeCodeMirror.js.map +1 -0
- package/dist/theme/ThemeDatePicker.d.ts +10 -0
- package/dist/theme/ThemeEditorTopBar.d.ts +4 -0
- package/dist/theme/ThemeEditorTopBar.js +4 -0
- package/dist/theme/ThemeEditorTopBar.js.map +1 -1
- package/dist/theme/ThemeEmbeddedReport.d.ts +9 -0
- package/dist/theme/ThemeEmbeddedReport.js +6 -0
- package/dist/theme/ThemeEmbeddedReport.js.map +1 -1
- package/dist/theme/ThemeFilterAutocomplete.d.ts +9 -1
- package/dist/theme/ThemeFilterButtons.d.ts +5 -0
- package/dist/theme/ThemeFilterCheckboxRadio.d.ts +4 -0
- package/dist/theme/ThemeFilterPanel.d.ts +4 -0
- package/dist/theme/ThemeFilterSlider.d.ts +8 -0
- package/dist/theme/ThemeFilterTree.d.ts +6 -1
- package/dist/theme/ThemeHtmlBox.d.ts +4 -5
- package/dist/theme/ThemeHtmlBox.js +0 -1
- package/dist/theme/ThemeHtmlBox.js.map +1 -1
- package/dist/theme/ThemeLazyTreeClasses.d.ts +3 -0
- package/dist/theme/ThemeListCounter.d.ts +7 -0
- package/dist/theme/ThemeListCounter.js +9 -0
- package/dist/theme/ThemeListCounter.js.map +1 -0
- package/dist/theme/ThemePrintButton.d.ts +25 -0
- package/dist/theme/ThemePrintButton.js +10 -0
- package/dist/theme/ThemePrintButton.js.map +1 -0
- package/dist/theme/ThemeSinglePanelFilter.d.ts +18 -0
- package/dist/theme/ThemeSinglePanelFilter.js +3 -0
- package/dist/theme/ThemeSinglePanelFilter.js.map +1 -0
- package/dist/theme/ThemeTable.d.ts +1 -6
- package/dist/theme/ThemeTable.js.map +1 -1
- package/dist/theme/ThemeWidgetBox.d.ts +3 -0
- package/dist/theme/ThemeWidgetFilteredBy.d.ts +5 -0
- package/dist/theme/ThemeWidgetFilteredBy.js +9 -0
- package/dist/theme/ThemeWidgetFilteredBy.js.map +1 -0
- package/package.json +8 -10
- package/dist/IReporting.d.ts +0 -112
- package/dist/IReporting.js.map +0 -1
- package/dist/Loader.d.ts +0 -117
- package/dist/Loader.js +0 -208
- package/dist/Loader.js.map +0 -1
|
@@ -9,8 +9,12 @@ export interface ITidyColumnTypedValue {
|
|
|
9
9
|
value: any;
|
|
10
10
|
fValue?: string;
|
|
11
11
|
type: TidyColumnsType;
|
|
12
|
+
/**
|
|
13
|
+
* Insert this mdx value for this row. Leave undefined to set the mdx info of the row to undefined.
|
|
14
|
+
*/
|
|
15
|
+
mdxInfo?: MdxInfo | null;
|
|
12
16
|
}
|
|
13
|
-
export
|
|
17
|
+
export type ITidyColumnAddValue = ITidyColumnAddValueInsert | ITidyColumnAddValueCopyRow;
|
|
14
18
|
export interface ITidyColumnAddValueInsert {
|
|
15
19
|
options: "INSERT";
|
|
16
20
|
value: ITidyColumnTypedValue;
|
|
@@ -127,8 +131,8 @@ export interface ITidyColumnXlsxCell {
|
|
|
127
131
|
/** The style/theme of the cell (if applicable) */
|
|
128
132
|
s?: any;
|
|
129
133
|
}
|
|
130
|
-
|
|
131
|
-
export
|
|
134
|
+
type NonNullable<T> = Exclude<T, null | undefined>;
|
|
135
|
+
export type AllowedColumnType<T> = TidyColumnsType.UNKNOWN | TidyColumnsType.MIXED | (NonNullable<T> extends Property.Color ? TidyColumnsType.COLOR : TidyColumnsType.UNKNOWN) | (NonNullable<T> extends string ? TidyColumnsType.CHARACTER : TidyColumnsType.UNKNOWN) | (NonNullable<T> extends number ? TidyColumnsType.NUMERIC | TidyColumnsType.LATITUDE | TidyColumnsType.LONGITUDE : TidyColumnsType.UNKNOWN) | (NonNullable<T> extends boolean ? TidyColumnsType.LOGICAL : TidyColumnsType.UNKNOWN) | (NonNullable<T> extends any[] ? TidyColumnsType.LIST : TidyColumnsType.UNKNOWN) | (NonNullable<T> extends Date ? TidyColumnsType.DATETIME : TidyColumnsType.UNKNOWN) | (NonNullable<T> extends unknown ? TidyColumnsType : TidyColumnsType.UNKNOWN) | (T extends null ? TidyColumnsType.NULL : TidyColumnsType.UNKNOWN);
|
|
132
136
|
export interface ITidyBaseColumnReadonly<T> {
|
|
133
137
|
/**
|
|
134
138
|
* Returns the length of the value array.
|
|
@@ -356,6 +360,10 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
356
360
|
* Returns true if and only if the node in the hierarchy has children.
|
|
357
361
|
*/
|
|
358
362
|
hasChildren(index: number): boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Returns the children of the node at index.
|
|
365
|
+
*/
|
|
366
|
+
getChildren(index: number): number[];
|
|
359
367
|
/**
|
|
360
368
|
* Return the siblings of the node in the hierarchy at the index.
|
|
361
369
|
* Including the node itself.
|
|
@@ -533,12 +541,13 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
533
541
|
*/
|
|
534
542
|
mapAxisOrRows<K>(callbackfn: (rowIdx: number, column: ITidyBaseColumn<T>) => K): K[];
|
|
535
543
|
/**
|
|
536
|
-
* @param
|
|
544
|
+
* @param callbackFn if the return value of callbackFn is undefined, then it is not included in the returned array.
|
|
545
|
+
* @param forceMapAllRows if true, also include values returned by callbackFn that are undefined.
|
|
537
546
|
*/
|
|
538
|
-
mapAllRows<P>(
|
|
547
|
+
mapAllRows<P>(callbackFn: (index: number, column: ITidyBaseColumn<T>) => P | undefined, forceMapAllRows?: boolean): P[];
|
|
539
548
|
/**
|
|
540
549
|
* Map the rows that are visible given a hierarchical axis and an array of boolean values
|
|
541
|
-
* @param expanded
|
|
550
|
+
* @param expanded a function indicating for each index if it is expanded or not. If it is collapsed, then all
|
|
542
551
|
* children are not visible.
|
|
543
552
|
* @param fun function to apply
|
|
544
553
|
*/
|
|
@@ -586,7 +595,8 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
586
595
|
*/
|
|
587
596
|
toFlatColumns(nullValue: any): ITidyUnknownColumn[];
|
|
588
597
|
/**
|
|
589
|
-
* Returns the tree-path for the node, including the node itself.
|
|
598
|
+
* Returns the tree-path for the node, including the node itself. The path starts at the node at rowIdx and contains
|
|
599
|
+
* its parents.
|
|
590
600
|
* @param rowIdx column index of the node.
|
|
591
601
|
*/
|
|
592
602
|
getNodePath(rowIdx: number): number[];
|
|
@@ -612,6 +622,10 @@ export interface ITidyBaseColumn<T> extends ITidyBaseColumnReadonly<T> {
|
|
|
612
622
|
* undefined if it's not an Mdx member column
|
|
613
623
|
*/
|
|
614
624
|
getQueryNodeIdentifier(idx: number): MdxNodeIdentifier | undefined;
|
|
625
|
+
/**
|
|
626
|
+
* Returns the group key at the row index for use with table.toAmcharts4Data.
|
|
627
|
+
*/
|
|
628
|
+
getAmcharts4GroupKey(rowIdx: number): string;
|
|
615
629
|
}
|
|
616
630
|
export interface PublicTidyColumnCellDecorationRenderedOptions {
|
|
617
631
|
cellWidth?: number;
|
|
@@ -642,17 +656,17 @@ export interface HtmlTidyColumnCellDecoration extends BaseTidyColumnCellDecorati
|
|
|
642
656
|
stringRenderer: true;
|
|
643
657
|
renderer: (rowIdx: number, options?: PublicTidyColumnCellDecorationRenderedOptions) => string;
|
|
644
658
|
}
|
|
645
|
-
export
|
|
646
|
-
export
|
|
647
|
-
export
|
|
648
|
-
export
|
|
649
|
-
export
|
|
650
|
-
export
|
|
651
|
-
export
|
|
652
|
-
export
|
|
653
|
-
export
|
|
654
|
-
export
|
|
655
|
-
export
|
|
659
|
+
export type PublicTidyColumnCellDecoration = ReactTidyColumnCellDecoration | HtmlTidyColumnCellDecoration;
|
|
660
|
+
export type ITidyColumn = ITidyBaseColumn<any>;
|
|
661
|
+
export type ITidyUnknownColumn = ITidyBaseColumn<unknown>;
|
|
662
|
+
export type ITidyNullColumn = ITidyBaseColumn<null>;
|
|
663
|
+
export type ITidyNumericColumn = ITidyBaseColumn<number | null>;
|
|
664
|
+
export type ITidyCharacterColumn = ITidyBaseColumn<string | null>;
|
|
665
|
+
export type ITidyColorColumn = ITidyBaseColumn<Property.Color | null>;
|
|
666
|
+
export type ITidyDateColumn = ITidyBaseColumn<Date | null>;
|
|
667
|
+
export type ITidyLogicalColumn = ITidyBaseColumn<boolean | null>;
|
|
668
|
+
export type ITidyListColumn = ITidyBaseColumn<any[] | null>;
|
|
669
|
+
export type ITidyColumnIsType<T extends TidyColumnsType> = T extends TidyColumnsType.ANY ? ITidyColumn : T extends TidyColumnsType.COLOR ? ITidyColorColumn : T extends TidyColumnsType.LONGITUDE ? ITidyBaseColumn<number | null> : T extends TidyColumnsType.LATITUDE ? ITidyBaseColumn<number | null> : T extends TidyColumnsType.ISO2_LOCATION_CODE ? ITidyCharacterColumn : T extends TidyColumnsType.DATETIME ? ITidyDateColumn : T extends TidyColumnsType.NUMERIC ? ITidyNumericColumn : T extends TidyColumnsType.CHARACTER ? ITidyCharacterColumn : T extends TidyColumnsType.LOGICAL ? ITidyLogicalColumn : T extends TidyColumnsType.LIST ? ITidyListColumn : T extends TidyColumnsType.MIXED ? ITidyColumn : T extends TidyColumnsType.NULL ? ITidyNullColumn : ITidyUnknownColumn;
|
|
656
670
|
/**
|
|
657
671
|
* Introduced for tidy table HTML expression (e.g., tooltip) completion.
|
|
658
672
|
*
|
|
@@ -661,8 +675,14 @@ export declare type ITidyColumnIsType<T extends TidyColumnsType> = T extends Tid
|
|
|
661
675
|
export interface TidyTableExprColumnMeta {
|
|
662
676
|
caption: string;
|
|
663
677
|
method: string;
|
|
678
|
+
/**
|
|
679
|
+
* If true, then modifier only available when eval mode is "row".
|
|
680
|
+
*/
|
|
664
681
|
argRow?: boolean;
|
|
682
|
+
/**
|
|
683
|
+
* If true, then modifier only available when the fieldMeta has allowTotalOfSelection set to true.
|
|
684
|
+
*/
|
|
685
|
+
allowsSelectedTotal?: boolean;
|
|
665
686
|
}
|
|
666
687
|
export declare const TidyTableTextExprColumnMetas: TidyTableExprColumnMeta[];
|
|
667
|
-
export declare const TidyTableNumberExprColumnMetas: TidyTableExprColumnMeta[];
|
|
668
688
|
export {};
|
package/dist/PublicTidyColumn.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TidyTableTextExprColumnMetas = exports.CharacterTidyColumnProperties = exports.ITidyColumnNamedProperties = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Properties with a special meaning
|
|
6
6
|
*/
|
|
@@ -97,20 +97,9 @@ exports.TidyTableTextExprColumnMetas = [
|
|
|
97
97
|
{ caption: "percent", method: "percent", argRow: true },
|
|
98
98
|
{ caption: "caption", method: "getCaption" },
|
|
99
99
|
{ caption: "mdxName", method: "mdxName", argRow: true },
|
|
100
|
-
{ caption: "mdxCaption", method: "
|
|
100
|
+
{ caption: "mdxCaption", method: "mdxCaption", argRow: true },
|
|
101
101
|
{ caption: "mdxUniqueName", method: "mdxUniqueName", argRow: true },
|
|
102
102
|
{ caption: "mdxKey", method: "mdxKey", argRow: true },
|
|
103
|
-
|
|
104
|
-
exports.TidyTableNumberExprColumnMetas = [
|
|
105
|
-
{ caption: "total", method: "sum" },
|
|
106
|
-
{ caption: "average", method: "mean" },
|
|
107
|
-
{ caption: "median", method: "median" },
|
|
108
|
-
{ caption: "min", method: "min" },
|
|
109
|
-
{ caption: "max", method: "max" },
|
|
110
|
-
{ caption: "variance", method: "variance" },
|
|
111
|
-
{ caption: "standardDeviation", method: "standardDeviation" },
|
|
112
|
-
{ caption: "count", method: "count" },
|
|
113
|
-
{ caption: "percent", method: "percent", argRow: true },
|
|
114
|
-
// {caption: "caption", method: "getCaption"},
|
|
103
|
+
{ caption: "totalSelectedOrTotal", method: "sumFiltered", allowsSelectedTotal: true }
|
|
115
104
|
];
|
|
116
105
|
//# sourceMappingURL=PublicTidyColumn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTidyColumn.js","sourceRoot":"","sources":["../src/PublicTidyColumn.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PublicTidyColumn.js","sourceRoot":"","sources":["../src/PublicTidyColumn.ts"],"names":[],"mappings":";;;AAmDA;;GAEG;AACH,IAAY,0BAsFX;AAtFD,WAAY,0BAA0B;IAElC;;OAEG;IACH,oDAAsB,CAAA;IAEtB;;OAEG;IACH,sEAAwC,CAAA;IAExC;;OAEG;IACH,mEAAqC,CAAA;IAErC;;OAEG;IACH,mEAAqC,CAAA;IAErC;;;OAGG;IACH,yEAA2C,CAAA;IAE3C;;OAEG;IACH,oDAAsB,CAAA;IAEtB;;;;OAIG;IACH,yEAA2C,CAAA;IAE3C;;;;OAIG;IACH,+EAAiD,CAAA;IAEjD;;OAEG;IACH,qDAAuB,CAAA;IAEvB;;OAEG;IACH,uDAAyB,CAAA;IAEzB;;OAEG;IACH,6DAA+B,CAAA;IAE/B;;OAEG;IACH,uDAAyB,CAAA;IAEzB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,gDAAkB,CAAA;IAElB;;OAEG;IACH,iDAAmB,CAAA;IAEnB;;OAEG;IACH,mDAAqB,CAAA;AACzB,CAAC,EAtFW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAsFrC;AAEY,QAAA,6BAA6B,GAAG,IAAI,GAAG,CAAS;IAEzD,0BAA0B,CAAC,qBAAqB;IAChD,0BAA0B,CAAC,UAAU;IAErC,0BAA0B,CAAC,mBAAmB;IAE9C,0BAA0B,CAAC,mBAAmB;IAC9C,0BAA0B,CAAC,SAAS;IAEpC,0BAA0B,CAAC,O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ONLY = "toOnly"
|
|
9
9
|
}
|
|
10
10
|
export declare enum TidyHistogramBucketType {
|
|
11
|
+
/**
|
|
12
|
+
* [from, to)
|
|
13
|
+
*/
|
|
11
14
|
LEFT_CLOSED = "leftClosed",
|
|
15
|
+
/**
|
|
16
|
+
* (from, to]
|
|
17
|
+
*/
|
|
12
18
|
RIGHT_CLOSED = "rightClosed"
|
|
13
19
|
}
|
|
20
|
+
export declare enum HistogramBinType {
|
|
21
|
+
AUTOMATIC_WITH_BINS = "automatic",
|
|
22
|
+
USER_DEFINED = "userDefined",
|
|
23
|
+
/**
|
|
24
|
+
* Makes sure that the automatic buckets do not consist of floating point numbers with many decimals.
|
|
25
|
+
* E.g., it uses [0, 0.5, 1] instead of [0.001, 0.4955, 0.99]. User cannot set the number of bins however.
|
|
26
|
+
*/
|
|
27
|
+
INTERVAL_STEPS = "roundedIntervals"
|
|
28
|
+
}
|
|
14
29
|
export interface TidyHistogramOptions extends FormFieldObject {
|
|
15
30
|
/**
|
|
16
31
|
* Bucket Mode.
|
|
17
32
|
*
|
|
18
33
|
* Automatically create buckets or define them yourself.
|
|
19
34
|
*/
|
|
20
|
-
binType:
|
|
35
|
+
binType: HistogramBinType;
|
|
21
36
|
/**
|
|
22
37
|
* Bucket Count.
|
|
23
38
|
*
|
|
24
39
|
* The number of buckets to auto generate.
|
|
25
40
|
*/
|
|
26
41
|
numberOfBins: number;
|
|
42
|
+
/**
|
|
43
|
+
* Number of buckets per interval step.
|
|
44
|
+
*/
|
|
45
|
+
prettyIntervalCount: number;
|
|
27
46
|
/**
|
|
28
47
|
* Custom Buckets.
|
|
29
48
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TidyHistogramRowIdsName = exports.TidyHistogramCountColName = exports.TidyHistogramBucketColName = exports.TidyHistogramMetaOptions = exports.TidyHistogramBucketType = exports.TidyHistogramBucketFormat = void 0;
|
|
3
|
+
exports.TidyHistogramRowIdsName = exports.TidyHistogramCountColName = exports.TidyHistogramBucketColName = exports.TidyHistogramMetaOptions = exports.HistogramBinType = exports.TidyHistogramBucketType = exports.TidyHistogramBucketFormat = void 0;
|
|
4
4
|
const PublicTidyTableTypes_1 = require("./PublicTidyTableTypes");
|
|
5
5
|
var TidyHistogramBucketFormat;
|
|
6
6
|
(function (TidyHistogramBucketFormat) {
|
|
@@ -12,9 +12,25 @@ var TidyHistogramBucketFormat;
|
|
|
12
12
|
})(TidyHistogramBucketFormat = exports.TidyHistogramBucketFormat || (exports.TidyHistogramBucketFormat = {}));
|
|
13
13
|
var TidyHistogramBucketType;
|
|
14
14
|
(function (TidyHistogramBucketType) {
|
|
15
|
+
/**
|
|
16
|
+
* [from, to)
|
|
17
|
+
*/
|
|
15
18
|
TidyHistogramBucketType["LEFT_CLOSED"] = "leftClosed";
|
|
19
|
+
/**
|
|
20
|
+
* (from, to]
|
|
21
|
+
*/
|
|
16
22
|
TidyHistogramBucketType["RIGHT_CLOSED"] = "rightClosed";
|
|
17
23
|
})(TidyHistogramBucketType = exports.TidyHistogramBucketType || (exports.TidyHistogramBucketType = {}));
|
|
24
|
+
var HistogramBinType;
|
|
25
|
+
(function (HistogramBinType) {
|
|
26
|
+
HistogramBinType["AUTOMATIC_WITH_BINS"] = "automatic";
|
|
27
|
+
HistogramBinType["USER_DEFINED"] = "userDefined";
|
|
28
|
+
/**
|
|
29
|
+
* Makes sure that the automatic buckets do not consist of floating point numbers with many decimals.
|
|
30
|
+
* E.g., it uses [0, 0.5, 1] instead of [0.001, 0.4955, 0.99]. User cannot set the number of bins however.
|
|
31
|
+
*/
|
|
32
|
+
HistogramBinType["INTERVAL_STEPS"] = "roundedIntervals";
|
|
33
|
+
})(HistogramBinType = exports.HistogramBinType || (exports.HistogramBinType = {}));
|
|
18
34
|
const TidyHistogramMetaOptions = (group, hideSort = false) => {
|
|
19
35
|
return {
|
|
20
36
|
'binType': {
|
|
@@ -22,24 +38,31 @@ const TidyHistogramMetaOptions = (group, hideSort = false) => {
|
|
|
22
38
|
fieldType: "option",
|
|
23
39
|
editorConf: {
|
|
24
40
|
allowDuplicate: true,
|
|
25
|
-
optionValues:
|
|
41
|
+
optionValues: Object.values(HistogramBinType),
|
|
26
42
|
optionName: "HistogramBinType"
|
|
27
43
|
},
|
|
28
|
-
defaultValue:
|
|
44
|
+
defaultValue: HistogramBinType.AUTOMATIC_WITH_BINS
|
|
29
45
|
},
|
|
30
46
|
'numberOfBins': {
|
|
31
47
|
group,
|
|
32
48
|
fieldType: "number",
|
|
33
49
|
defaultValue: 10,
|
|
34
50
|
dependsOn: "binType",
|
|
35
|
-
dependsOnVisibility: dependsOnValue => dependsOnValue ===
|
|
51
|
+
dependsOnVisibility: dependsOnValue => dependsOnValue === HistogramBinType.AUTOMATIC_WITH_BINS
|
|
36
52
|
},
|
|
37
53
|
'customBins': {
|
|
38
54
|
group,
|
|
39
55
|
fieldType: "json",
|
|
40
56
|
defaultValue: '[{"to": 10},{"from":10,"to":100},{"from":100}]',
|
|
41
57
|
dependsOn: "binType",
|
|
42
|
-
dependsOnVisibility: dependsOnValue => dependsOnValue ===
|
|
58
|
+
dependsOnVisibility: dependsOnValue => dependsOnValue === HistogramBinType.USER_DEFINED
|
|
59
|
+
},
|
|
60
|
+
'prettyIntervalCount': {
|
|
61
|
+
group,
|
|
62
|
+
fieldType: "number",
|
|
63
|
+
defaultValue: 4,
|
|
64
|
+
dependsOn: "binType",
|
|
65
|
+
dependsOnVisibility: dependsOnValue => dependsOnValue === HistogramBinType.INTERVAL_STEPS
|
|
43
66
|
},
|
|
44
67
|
'sortBins': {
|
|
45
68
|
group,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTidyHistogram.js","sourceRoot":"","sources":["../src/PublicTidyHistogram.ts"],"names":[],"mappings":";;;AAAA,iEAAmD;AAGnD,IAAY,yBAMX;AAND,WAAY,yBAAyB;IACjC,kDAAqB,CAAA;IACr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B,4BAkEpC;AAEY,QAAA,0BAA0B,GAAG,QAAQ,CAAC;AACtC,QAAA,yBAAyB,GAAG,OAAO,CAAC;AACpC,QAAA,uBAAuB,GAAG,QAAQ,CAAC"}
|
package/dist/PublicTidyMath.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ITidyBaseColumnReadonly } from "./PublicTidyColumn";
|
|
2
|
-
import { HistogramData, HistogramOptions } from "./PublicTidyTableTypes";
|
|
2
|
+
import { HistogramData, HistogramOptions, TidyRowFilter } from "./PublicTidyTableTypes";
|
|
3
|
+
import { TrendLineType } from "./theme/ThemeAmCharts4";
|
|
3
4
|
/**
|
|
4
5
|
* Utility class for doing maths in columns
|
|
5
6
|
*
|
|
@@ -17,6 +18,10 @@ export interface ITidyMath {
|
|
|
17
18
|
* Sum of all values in the column.
|
|
18
19
|
*/
|
|
19
20
|
sum(column: ITidyBaseColumnReadonly<number | null> | ITidyBaseColumnReadonly<number | null>[]): number | null;
|
|
21
|
+
/**
|
|
22
|
+
* Sum of all values in the column where filter evaluates to true. Returns the sum if filter is undefined.
|
|
23
|
+
*/
|
|
24
|
+
sumFiltered(column: ITidyBaseColumnReadonly<number | null>, filter: TidyRowFilter | undefined): number | null;
|
|
20
25
|
/**
|
|
21
26
|
* Get the extreme value of the column. Null values are skipped.
|
|
22
27
|
* @param column
|
|
@@ -76,6 +81,7 @@ export interface ITidyMath {
|
|
|
76
81
|
* @Returns an array of histogram buckets
|
|
77
82
|
*/
|
|
78
83
|
hist(column: ITidyBaseColumnReadonly<number | null>, options: Partial<HistogramOptions>): HistogramData[];
|
|
84
|
+
trendLine(trendLine: TrendLineType, y: ITidyBaseColumnReadonly<number | null>, x: ITidyBaseColumnReadonly<number | null>): ((x: number) => number) | undefined;
|
|
79
85
|
/**
|
|
80
86
|
* Return a regression model with one predictor: y = a0 + a1*x + error
|
|
81
87
|
* @param y column x
|
|
@@ -4,6 +4,7 @@ import { ILazyTreeViewLoader } from "./LazyTreeView";
|
|
|
4
4
|
import { PublicIcEvent } from "./IcEvent";
|
|
5
5
|
import { Theme } from "@mui/material/styles";
|
|
6
6
|
import { MdxNodeIdentifier } from "./PublicTidyTable";
|
|
7
|
+
import { AppNotification } from "./INotification";
|
|
7
8
|
export declare enum SelectionMode {
|
|
8
9
|
/**
|
|
9
10
|
* User can only select one item.
|
|
@@ -28,8 +29,8 @@ export declare enum TidyPivotTableLikeNodeStatus {
|
|
|
28
29
|
WITH_DRILLDOWN = 3,
|
|
29
30
|
LOADING = 4
|
|
30
31
|
}
|
|
31
|
-
export
|
|
32
|
-
export
|
|
32
|
+
export type TidyEvent = MouseEvent | TouchEvent;
|
|
33
|
+
export type IWidgetInteractionMode = "drilldown" | "selection";
|
|
33
34
|
export interface ITidyTableInteractionSelection {
|
|
34
35
|
/**
|
|
35
36
|
* Sets the selection at the creation of the widget.
|
|
@@ -125,6 +126,10 @@ export interface ITidyTableInteractionSelection {
|
|
|
125
126
|
* selection to the initial selection.
|
|
126
127
|
*/
|
|
127
128
|
handleClearSelection(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Resets the selection to his default/initial state.
|
|
131
|
+
*/
|
|
132
|
+
handletoInitialSelection(): void;
|
|
128
133
|
/**
|
|
129
134
|
* Get the selection mode (single or multiple) of the interaction object.
|
|
130
135
|
*/
|
|
@@ -288,4 +293,8 @@ export interface ITidyTableInteraction extends ITidyTableInteractionSelection, I
|
|
|
288
293
|
* Add an item to the interactions selection.
|
|
289
294
|
*/
|
|
290
295
|
setSelection(items: ITidyTableSelection | ITidyTableSelection[]): void;
|
|
296
|
+
/**
|
|
297
|
+
* Use for publishing app notifications, e.g., print the report.
|
|
298
|
+
*/
|
|
299
|
+
publishAppNotification(notification: AppNotification): void;
|
|
291
300
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTidyTableInteractions.js","sourceRoot":"","sources":["../src/PublicTidyTableInteractions.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PublicTidyTableInteractions.js","sourceRoot":"","sources":["../src/PublicTidyTableInteractions.ts"],"names":[],"mappings":";;;AAQA,IAAY,aAUX;AAVD,WAAY,aAAa;IACrB;;OAEG;IACH,kCAAiB,CAAA;IAEjB;;OAEG;IACH,sCAAqB,CAAA;AACzB,CAAC,EAVW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAUxB;AAED,IAAY,iBAMX;AAND,WAAY,iBAAiB;IACzB,kDAA6B,CAAA;IAC7B;;OAEG;IACH,4DAAuC,CAAA;AAC3C,CAAC,EANW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAM5B;AAGD,IAAY,4BAMX;AAND,WAAY,4BAA4B;IACpC,yFAAS,CAAA;IACT,uFAAQ,CAAA;IACR,uHAAwB,CAAA;IACxB,mGAAc,CAAA;IACd,qFAAO,CAAA;AACX,CAAC,EANW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAMvC"}
|
|
@@ -53,7 +53,7 @@ export declare enum TidyColumnsType {
|
|
|
53
53
|
*/
|
|
54
54
|
ANY = "any"
|
|
55
55
|
}
|
|
56
|
-
export
|
|
56
|
+
export type TidyColumnsSubType = "YEAR" | "HALF_YEAR" | "QUARTER" | "MONTH" | "WEEK" | "DAY" | "DAY_MONTH" | "DAY_YEAR" | "HOUR" | "HALF_HOUR" | "QUARTER_HOUR" | "MINUTE" | "SECOND";
|
|
57
57
|
export declare enum ITidyColumnsSource {
|
|
58
58
|
QUERY = "query",
|
|
59
59
|
TRANSFORMATION = "transformation",
|
|
@@ -64,12 +64,12 @@ export declare enum ITidyColumnsSource {
|
|
|
64
64
|
* The key represents the internal lowercase-name for the mapping, e.g., axis, group, rows, columns.
|
|
65
65
|
* Note that a mapping can have multiple columns, for example, on the Rows.
|
|
66
66
|
*/
|
|
67
|
-
export
|
|
67
|
+
export type ChartTemplateDataMapping = Record<string, ITidyColumn[] | undefined>;
|
|
68
68
|
/**
|
|
69
69
|
* Defines an index from column tag (name, mapping, role, etc..) to the name or index of the column in the table.
|
|
70
70
|
* The column tag is converted to lower case.
|
|
71
71
|
*/
|
|
72
|
-
export
|
|
72
|
+
export type TidyColumnIndex = Record<string, string | number>;
|
|
73
73
|
export declare enum TidyTableMappingColumnSelectorOptions {
|
|
74
74
|
ALL = "@IC3_ALL",
|
|
75
75
|
ALL_NUMERIC = "@IC3_ALL_NUMERIC",
|
|
@@ -93,8 +93,8 @@ export interface TidyTableRoleSelector {
|
|
|
93
93
|
*/
|
|
94
94
|
role: string;
|
|
95
95
|
}
|
|
96
|
-
export
|
|
97
|
-
export
|
|
96
|
+
export type TidyTableColumnSelector = TidyTableColumnIdentifier | TidyTableMappingColumnSelectorOptions | TidyTableRoleSelector;
|
|
97
|
+
export type IFormFieldGranularityItem = IFormFieldGranularityItemColumn | IFormFieldGranularityItemRole | IFormFieldGranularityItemHierarchy | IFormFieldGranularityColumns;
|
|
98
98
|
export interface IFormFieldGranularityItemColumn {
|
|
99
99
|
type: "column";
|
|
100
100
|
/**
|
|
@@ -147,7 +147,7 @@ export interface MdxMemberCoordinates {
|
|
|
147
147
|
*/
|
|
148
148
|
hierIdx?: number;
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
151
151
|
/**
|
|
152
152
|
* The coordinate of an MDX axis. If and only if the columns source is from ON 0, the hierIdx is defined.
|
|
153
153
|
*/
|
|
@@ -171,50 +171,77 @@ export interface MdxRepetitionInfo {
|
|
|
171
171
|
/**
|
|
172
172
|
* identifier of a column value ( uniqueName if it´s an axis or idx if measure )
|
|
173
173
|
*/
|
|
174
|
-
export
|
|
174
|
+
export type TidyColumnCoordinateUniqueName = MdxNodeIdentifier['uid'];
|
|
175
175
|
export declare enum IAmcharts4DataKey {
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
178
|
-
* user mapped a character column. Use an adapter on the category axis to get the actual value of the label.
|
|
177
|
+
* Data key for the date/string value of the axis.
|
|
179
178
|
*/
|
|
180
179
|
AXIS = "axis",
|
|
181
180
|
/**
|
|
182
|
-
*
|
|
181
|
+
* Data key for the tidy-row number.
|
|
183
182
|
*/
|
|
184
183
|
ROW = "row",
|
|
185
184
|
/**
|
|
186
|
-
*
|
|
185
|
+
* Data key for accessing the value of a dataItem. Used when there are no groups or levels in the data.
|
|
187
186
|
*/
|
|
188
187
|
NULL = "_"
|
|
189
188
|
}
|
|
190
189
|
/**
|
|
191
190
|
* Objects that have this type are used in chart.data in amCharts.
|
|
192
191
|
*/
|
|
193
|
-
export
|
|
194
|
-
|
|
195
|
-
|
|
192
|
+
export interface IAmCharts4Data {
|
|
193
|
+
/**
|
|
194
|
+
* The date/string value of the axis.
|
|
195
|
+
*/
|
|
196
|
+
axis: Date | string;
|
|
197
|
+
/**
|
|
198
|
+
* The row number of the axis. Uses first row if multiple rows are in the dataItem for the axis.
|
|
199
|
+
*/
|
|
200
|
+
row: number;
|
|
201
|
+
/**
|
|
202
|
+
* Other values for the series
|
|
203
|
+
*/
|
|
204
|
+
[key: string]: any;
|
|
196
205
|
}
|
|
197
|
-
export
|
|
206
|
+
export interface IAmCharts4DataTreeMap {
|
|
207
|
+
children: {
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
}[];
|
|
210
|
+
[key: string]: any;
|
|
211
|
+
}
|
|
212
|
+
export type ITidyRow = any[];
|
|
198
213
|
export interface MdxInfo {
|
|
199
214
|
uniqueName: string;
|
|
200
215
|
key: any;
|
|
216
|
+
keyS: string | undefined;
|
|
201
217
|
name: string;
|
|
202
218
|
caption: string;
|
|
203
219
|
isAll?: boolean;
|
|
204
220
|
pun?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Children count
|
|
223
|
+
*/
|
|
205
224
|
cc?: number;
|
|
206
225
|
levelCaption?: string;
|
|
207
226
|
/**
|
|
208
227
|
* Relative: starts at 0 + visual depths for ragged dimension.
|
|
209
228
|
*/
|
|
210
229
|
levelDepthR: number;
|
|
230
|
+
/**
|
|
231
|
+
* Actual MDX level depth
|
|
232
|
+
*/
|
|
233
|
+
levelDepth: number;
|
|
234
|
+
/**
|
|
235
|
+
* hierUN
|
|
236
|
+
*/
|
|
237
|
+
hierUN: string;
|
|
211
238
|
/**
|
|
212
239
|
* Index on the MDX axis of the tuple the member belongs to.
|
|
213
240
|
*/
|
|
214
241
|
tupleIndex: number;
|
|
215
242
|
}
|
|
216
|
-
export
|
|
217
|
-
export
|
|
243
|
+
export type MdxLevelType = "date" | "time";
|
|
244
|
+
export type MdxLevelSubType = "YEAR" | "HALF_YEAR" | "QUARTER" | "MONTH" | "WEEK" | "DAY" | "DAY_MONTH" | "DAY_YEAR" | "HOUR" | "HALF_HOUR" | "QUARTER_HOUR" | "MINUTE" | "SECOND";
|
|
218
245
|
export interface IMdxAxisSeriesInfo {
|
|
219
246
|
hierarchyName?: string;
|
|
220
247
|
hierarchyUN?: string;
|
|
@@ -439,7 +466,7 @@ export interface WidgetTidySelectionOptions {
|
|
|
439
466
|
*/
|
|
440
467
|
initSelectionOnNewQuery?: boolean;
|
|
441
468
|
}
|
|
442
|
-
export
|
|
469
|
+
export type GroupRowIndices = [number, ...number[]];
|
|
443
470
|
export interface TreeRowPropsTreeData {
|
|
444
471
|
rowIndex: number;
|
|
445
472
|
nodeId: string;
|
|
@@ -447,4 +474,8 @@ export interface TreeRowPropsTreeData {
|
|
|
447
474
|
hasChildren: boolean;
|
|
448
475
|
isSelected: boolean;
|
|
449
476
|
}
|
|
477
|
+
/**
|
|
478
|
+
* Function filtering the rows of a column / table. Returns true if the row is included, false if the row is excluded.
|
|
479
|
+
*/
|
|
480
|
+
export type TidyRowFilter = (rowIdx: number) => boolean;
|
|
450
481
|
export {};
|
|
@@ -70,16 +70,15 @@ var TidyTableMappingColumnSelectorOptions;
|
|
|
70
70
|
var IAmcharts4DataKey;
|
|
71
71
|
(function (IAmcharts4DataKey) {
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
74
|
-
* user mapped a character column. Use an adapter on the category axis to get the actual value of the label.
|
|
73
|
+
* Data key for the date/string value of the axis.
|
|
75
74
|
*/
|
|
76
75
|
IAmcharts4DataKey["AXIS"] = "axis";
|
|
77
76
|
/**
|
|
78
|
-
*
|
|
77
|
+
* Data key for the tidy-row number.
|
|
79
78
|
*/
|
|
80
79
|
IAmcharts4DataKey["ROW"] = "row";
|
|
81
80
|
/**
|
|
82
|
-
*
|
|
81
|
+
* Data key for accessing the value of a dataItem. Used when there are no groups or levels in the data.
|
|
83
82
|
*/
|
|
84
83
|
IAmcharts4DataKey["NULL"] = "_";
|
|
85
84
|
})(IAmcharts4DataKey = exports.IAmcharts4DataKey || (exports.IAmcharts4DataKey = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicTidyTableTypes.js","sourceRoot":"","sources":["../src/PublicTidyTableTypes.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAOH,IAAY,eA0DX;AA1DD,WAAY,eAAe;IACvB;;OAEG;IACH,kCAAe,CAAA;IAEf,0CAAuB,CAAA;IACvB,wCAAqB,CAAA;IAErB;;OAEG;IACH,sDAAmC,CAAA;IAEnC;;OAEG;IACH,wCAAqB,CAAA;IAErB;;OAEG;IACH,sCAAmB,CAAA;IAEnB;;OAEG;IACH,0CAAuB,CAAA;IAEvB;;OAEG;IACH,sCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAa,CAAA;IAEb;;OAEG;IACH,kCAAe,CAAA;IAEf;;OAEG;IACH,sCAAmB,CAAA;IAEnB;;OAEG;IACH,gCAAa,CAAA;IAEb;;OAEG;IACH,8BAAW,CAAA;AACf,CAAC,EA1DW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA0D1B;AAkBD,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,qCAAe,CAAA;IACf,uDAAiC,CAAA;IACjC,yCAAmB,CAAA;AACvB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAeD,IAAY,qCAQX;A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export declare class TidyTree {
|
|
|
68
68
|
/**
|
|
69
69
|
* Top parent node = the node that is a direct child of root and of which node is a descendant.
|
|
70
70
|
*/
|
|
71
|
-
export
|
|
71
|
+
export type ForEachNodeCallbackFn<T> = (node: TidyTreeNode, levelDepth: number, parent: TidyTreeNode, nodeChildrenIdx: number, parentSummary?: T) => boolean | void;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export * from "./ILocalizationManager";
|
|
|
4
4
|
export * from "./INotification";
|
|
5
5
|
export * from "./IPluginDefinition";
|
|
6
6
|
export * from "./IRemotePluginName";
|
|
7
|
-
export * from "./IReporting";
|
|
8
7
|
export * from "./IThemeManager";
|
|
9
8
|
export * from "./PublicAmchartsData";
|
|
9
|
+
export * from "./PublicAmCharts4Base";
|
|
10
10
|
export * from "./ITidyTableTransformation";
|
|
11
11
|
export * from "./ITidyTableTransformationManager";
|
|
12
12
|
export * from "./ITypes";
|
|
@@ -15,7 +15,6 @@ export * from "./IWidgetDefaultsManager";
|
|
|
15
15
|
export * from "./IWidgetVariantManager";
|
|
16
16
|
export * from "./IWidgetManager";
|
|
17
17
|
export * from "./LazyTreeView";
|
|
18
|
-
export * from "./Loader";
|
|
19
18
|
export * from "./Logger";
|
|
20
19
|
export * from "./PublicCommon";
|
|
21
20
|
export * from "./PublicContext";
|
|
@@ -45,6 +44,7 @@ export * from "./theme/ThemeFilterAutocomplete";
|
|
|
45
44
|
export * from "./theme/ThemeFilterButtons";
|
|
46
45
|
export * from "./theme/ThemeFilterCheckboxRadio";
|
|
47
46
|
export * from "./theme/ThemeFilterPanel";
|
|
47
|
+
export * from "./theme/ThemeSinglePanelFilter";
|
|
48
48
|
export * from "./theme/ThemeFilterSlider";
|
|
49
49
|
export * from "./theme/ThemeFilterTree";
|
|
50
50
|
export * from "./theme/ThemeGlobal";
|
|
@@ -61,6 +61,7 @@ export * from "./theme/ThemeLayoutPage";
|
|
|
61
61
|
export * from "./theme/ThemeLazyTreeClasses";
|
|
62
62
|
export * from "./theme/ThemeMarkdownText";
|
|
63
63
|
export * from "./theme/ThemePivotTable";
|
|
64
|
+
export * from "./theme/ThemePrintButton";
|
|
64
65
|
export * from "./theme/ThemeRepetitionWidget";
|
|
65
66
|
export * from "./theme/ThemeReportAppBar";
|
|
66
67
|
export * from "./theme/ThemeTable";
|
package/dist/index.js
CHANGED
|
@@ -20,9 +20,9 @@ __exportStar(require("./ILocalizationManager"), exports);
|
|
|
20
20
|
__exportStar(require("./INotification"), exports);
|
|
21
21
|
__exportStar(require("./IPluginDefinition"), exports);
|
|
22
22
|
__exportStar(require("./IRemotePluginName"), exports);
|
|
23
|
-
__exportStar(require("./IReporting"), exports);
|
|
24
23
|
__exportStar(require("./IThemeManager"), exports);
|
|
25
24
|
__exportStar(require("./PublicAmchartsData"), exports);
|
|
25
|
+
__exportStar(require("./PublicAmCharts4Base"), exports);
|
|
26
26
|
__exportStar(require("./ITidyTableTransformation"), exports);
|
|
27
27
|
__exportStar(require("./ITidyTableTransformationManager"), exports);
|
|
28
28
|
__exportStar(require("./ITypes"), exports);
|
|
@@ -31,7 +31,6 @@ __exportStar(require("./IWidgetDefaultsManager"), exports);
|
|
|
31
31
|
__exportStar(require("./IWidgetVariantManager"), exports);
|
|
32
32
|
__exportStar(require("./IWidgetManager"), exports);
|
|
33
33
|
__exportStar(require("./LazyTreeView"), exports);
|
|
34
|
-
__exportStar(require("./Loader"), exports);
|
|
35
34
|
__exportStar(require("./Logger"), exports);
|
|
36
35
|
__exportStar(require("./PublicCommon"), exports);
|
|
37
36
|
__exportStar(require("./PublicContext"), exports);
|
|
@@ -61,6 +60,7 @@ __exportStar(require("./theme/ThemeFilterAutocomplete"), exports);
|
|
|
61
60
|
__exportStar(require("./theme/ThemeFilterButtons"), exports);
|
|
62
61
|
__exportStar(require("./theme/ThemeFilterCheckboxRadio"), exports);
|
|
63
62
|
__exportStar(require("./theme/ThemeFilterPanel"), exports);
|
|
63
|
+
__exportStar(require("./theme/ThemeSinglePanelFilter"), exports);
|
|
64
64
|
__exportStar(require("./theme/ThemeFilterSlider"), exports);
|
|
65
65
|
__exportStar(require("./theme/ThemeFilterTree"), exports);
|
|
66
66
|
__exportStar(require("./theme/ThemeGlobal"), exports);
|
|
@@ -77,6 +77,7 @@ __exportStar(require("./theme/ThemeLayoutPage"), exports);
|
|
|
77
77
|
__exportStar(require("./theme/ThemeLazyTreeClasses"), exports);
|
|
78
78
|
__exportStar(require("./theme/ThemeMarkdownText"), exports);
|
|
79
79
|
__exportStar(require("./theme/ThemePivotTable"), exports);
|
|
80
|
+
__exportStar(require("./theme/ThemePrintButton"), exports);
|
|
80
81
|
__exportStar(require("./theme/ThemeRepetitionWidget"), exports);
|
|
81
82
|
__exportStar(require("./theme/ThemeReportAppBar"), exports);
|
|
82
83
|
__exportStar(require("./theme/ThemeTable"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,yDAAuC;AACvC,kDAAgC;AAChC,sDAAoC;AACpC,sDAAoC;AACpC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,4CAA0B;AAC1B,yDAAuC;AACvC,kDAAgC;AAChC,sDAAoC;AACpC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,6DAA0C;AAC1C,oEAAiD;AACjD,2CAAwB;AACxB,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,mDAAiC;AACjC,uDAAqC;AACrC,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,yDAAuC;AACvC,mDAAiC;AACjC,wDAAsC;AACtC,yDAAuC;AACvC,qDAAmC;AAEnC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,yDAAuC;AACvC,0DAAwC;AACxC,8DAA4C;AAC5C,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C;AAC3C,mEAAiD;AACjD,2DAAyC;AACzC,iEAA+C;AAC/C,4DAA0C;AAC1C,0DAAwC;AACxC,sDAAoC;AACpC,sDAAoC;AACpC,6DAA2C;AAC3C,8DAA4C;AAC5C,4DAA0C;AAC1C,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,uDAAqC;AACrC,sDAAoC;AACpC,0DAAwC;AACxC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,gEAA8C;AAC9C,4DAA0C;AAC1C,qDAAmC;AACnC,kEAAgD;AAChD,yDAAuC;AACvC,uEAAqD"}
|