@sisense/sdk-pivot-ui 2.17.0
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/LICENSE.md +35 -0
- package/README.md +2 -0
- package/dist/__demo__/app.d.ts +2 -0
- package/dist/__demo__/app.d.ts.map +1 -0
- package/dist/__demo__/examples.d.ts +947 -0
- package/dist/__demo__/examples.d.ts.map +1 -0
- package/dist/__demo__/main.d.ts +1 -0
- package/dist/__demo__/main.d.ts.map +1 -0
- package/dist/__demo__/pivot-builder-demo.d.ts +9 -0
- package/dist/__demo__/pivot-builder-demo.d.ts.map +1 -0
- package/dist/__test-helpers__/testUtils.d.ts +31 -0
- package/dist/__test-helpers__/testUtils.d.ts.map +1 -0
- package/dist/builders/index.d.ts +2 -0
- package/dist/builders/index.d.ts.map +1 -0
- package/dist/builders/pivot-builder.d.ts +336 -0
- package/dist/builders/pivot-builder.d.ts.map +1 -0
- package/dist/components/ColumnWidthInput/ColumnWidthInput.d.ts +14 -0
- package/dist/components/ColumnWidthInput/ColumnWidthInput.d.ts.map +1 -0
- package/dist/components/ColumnWidthInput/index.d.ts +2 -0
- package/dist/components/ColumnWidthInput/index.d.ts.map +1 -0
- package/dist/components/CustomScroll/CustomScroll.d.ts +259 -0
- package/dist/components/CustomScroll/CustomScroll.d.ts.map +1 -0
- package/dist/components/CustomScroll/defaultRenderElements.d.ts +18 -0
- package/dist/components/CustomScroll/defaultRenderElements.d.ts.map +1 -0
- package/dist/components/CustomScroll/index.d.ts +2 -0
- package/dist/components/CustomScroll/index.d.ts.map +1 -0
- package/dist/components/CustomScroll/styles/index.d.ts +62 -0
- package/dist/components/CustomScroll/styles/index.d.ts.map +1 -0
- package/dist/components/CustomScroll/types.d.ts +6 -0
- package/dist/components/CustomScroll/types.d.ts.map +1 -0
- package/dist/components/CustomScroll/utils/getInnerHeight.d.ts +2 -0
- package/dist/components/CustomScroll/utils/getInnerHeight.d.ts.map +1 -0
- package/dist/components/CustomScroll/utils/getInnerWidth.d.ts +2 -0
- package/dist/components/CustomScroll/utils/getInnerWidth.d.ts.map +1 -0
- package/dist/components/CustomScroll/utils/getScrollbarWidth.d.ts +2 -0
- package/dist/components/CustomScroll/utils/getScrollbarWidth.d.ts.map +1 -0
- package/dist/components/CustomScroll/utils/index.d.ts +5 -0
- package/dist/components/CustomScroll/utils/index.d.ts.map +1 -0
- package/dist/components/CustomScroll/utils/isString.d.ts +2 -0
- package/dist/components/CustomScroll/utils/isString.d.ts.map +1 -0
- package/dist/components/DataBar/DataBar.d.ts +37 -0
- package/dist/components/DataBar/DataBar.d.ts.map +1 -0
- package/dist/components/DataBar/classes.d.ts +6 -0
- package/dist/components/DataBar/classes.d.ts.map +1 -0
- package/dist/components/DataBar/helpers.d.ts +2 -0
- package/dist/components/DataBar/helpers.d.ts.map +1 -0
- package/dist/components/DataBar/index.d.ts +2 -0
- package/dist/components/DataBar/index.d.ts.map +1 -0
- package/dist/components/MouseWheelCatcher/MouseWheelCatcher.d.ts +21 -0
- package/dist/components/MouseWheelCatcher/MouseWheelCatcher.d.ts.map +1 -0
- package/dist/components/MouseWheelCatcher/index.d.ts +2 -0
- package/dist/components/MouseWheelCatcher/index.d.ts.map +1 -0
- package/dist/components/PageForPrint/ControlButton.d.ts +9 -0
- package/dist/components/PageForPrint/ControlButton.d.ts.map +1 -0
- package/dist/components/PageForPrint/Header.d.ts +44 -0
- package/dist/components/PageForPrint/Header.d.ts.map +1 -0
- package/dist/components/PageForPrint/Layout.d.ts +52 -0
- package/dist/components/PageForPrint/Layout.d.ts.map +1 -0
- package/dist/components/PageForPrint/Page.d.ts +18 -0
- package/dist/components/PageForPrint/Page.d.ts.map +1 -0
- package/dist/components/PageForPrint/constants.d.ts +55 -0
- package/dist/components/PageForPrint/constants.d.ts.map +1 -0
- package/dist/components/PageForPrint/index.d.ts +4 -0
- package/dist/components/PageForPrint/index.d.ts.map +1 -0
- package/dist/components/PageForPrint/types.d.ts +6 -0
- package/dist/components/PageForPrint/types.d.ts.map +1 -0
- package/dist/components/PaginationPanel/PaginationPanel.d.ts +130 -0
- package/dist/components/PaginationPanel/PaginationPanel.d.ts.map +1 -0
- package/dist/components/PaginationPanel/classes.d.ts +14 -0
- package/dist/components/PaginationPanel/classes.d.ts.map +1 -0
- package/dist/components/PaginationPanel/index.d.ts +2 -0
- package/dist/components/PaginationPanel/index.d.ts.map +1 -0
- package/dist/components/Pivot/EmbedImage.d.ts +42 -0
- package/dist/components/Pivot/EmbedImage.d.ts.map +1 -0
- package/dist/components/Pivot/Pivot.d.ts +170 -0
- package/dist/components/Pivot/Pivot.d.ts.map +1 -0
- package/dist/components/Pivot/PivotCell.d.ts +209 -0
- package/dist/components/Pivot/PivotCell.d.ts.map +1 -0
- package/dist/components/Pivot/PivotCell.test.d.ts +2 -0
- package/dist/components/Pivot/PivotCell.test.d.ts.map +1 -0
- package/dist/components/Pivot/PivotStylingWrapper.d.ts +23 -0
- package/dist/components/Pivot/PivotStylingWrapper.d.ts.map +1 -0
- package/dist/components/Pivot/SortingSettingsIcon.d.ts +13 -0
- package/dist/components/Pivot/SortingSettingsIcon.d.ts.map +1 -0
- package/dist/components/Pivot/classes.d.ts +7 -0
- package/dist/components/Pivot/classes.d.ts.map +1 -0
- package/dist/components/Pivot/index.d.ts +3 -0
- package/dist/components/Pivot/index.d.ts.map +1 -0
- package/dist/components/Pivot/types.d.ts +9 -0
- package/dist/components/Pivot/types.d.ts.map +1 -0
- package/dist/components/PivotCell/helpers.d.ts +70 -0
- package/dist/components/PivotCell/helpers.d.ts.map +1 -0
- package/dist/components/PivotTable/AnchorCell.d.ts +35 -0
- package/dist/components/PivotTable/AnchorCell.d.ts.map +1 -0
- package/dist/components/PivotTable/PivotInnerTable.d.ts +58 -0
- package/dist/components/PivotTable/PivotInnerTable.d.ts.map +1 -0
- package/dist/components/PivotTable/PivotTable.d.ts +155 -0
- package/dist/components/PivotTable/PivotTable.d.ts.map +1 -0
- package/dist/components/PivotTable/classes.d.ts +44 -0
- package/dist/components/PivotTable/classes.d.ts.map +1 -0
- package/dist/components/PivotTable/constants.d.ts +13 -0
- package/dist/components/PivotTable/constants.d.ts.map +1 -0
- package/dist/components/PivotTable/index.d.ts +2 -0
- package/dist/components/PivotTable/index.d.ts.map +1 -0
- package/dist/components/PivotTable/types.d.ts +4 -0
- package/dist/components/PivotTable/types.d.ts.map +1 -0
- package/dist/components/ResizeColumnControl/ResizeColumnControl.d.ts +27 -0
- package/dist/components/ResizeColumnControl/ResizeColumnControl.d.ts.map +1 -0
- package/dist/components/ResizeColumnControl/classes.d.ts +2 -0
- package/dist/components/ResizeColumnControl/classes.d.ts.map +1 -0
- package/dist/components/ResizeColumnControl/index.d.ts +2 -0
- package/dist/components/ResizeColumnControl/index.d.ts.map +1 -0
- package/dist/components/SelectWithLabel.tsx/SelectWithLabel.d.ts +38 -0
- package/dist/components/SelectWithLabel.tsx/SelectWithLabel.d.ts.map +1 -0
- package/dist/components/SortingSettings/Complex/ComplexSortingSettings.d.ts +12 -0
- package/dist/components/SortingSettings/Complex/ComplexSortingSettings.d.ts.map +1 -0
- package/dist/components/SortingSettings/Complex/ComplexSortingSettings.test.d.ts +1 -0
- package/dist/components/SortingSettings/Complex/ComplexSortingSettings.test.d.ts.map +1 -0
- package/dist/components/SortingSettings/Complex/index.d.ts +2 -0
- package/dist/components/SortingSettings/Complex/index.d.ts.map +1 -0
- package/dist/components/SortingSettings/Header/Header.d.ts +9 -0
- package/dist/components/SortingSettings/Header/Header.d.ts.map +1 -0
- package/dist/components/SortingSettings/Header/HeaderText.d.ts +7 -0
- package/dist/components/SortingSettings/Header/HeaderText.d.ts.map +1 -0
- package/dist/components/SortingSettings/Header/index.d.ts +2 -0
- package/dist/components/SortingSettings/Header/index.d.ts.map +1 -0
- package/dist/components/SortingSettings/SettingsItem/DirectionSelector/DirectionSelector.d.ts +15 -0
- package/dist/components/SortingSettings/SettingsItem/DirectionSelector/DirectionSelector.d.ts.map +1 -0
- package/dist/components/SortingSettings/SettingsItem/DirectionSelector/index.d.ts +2 -0
- package/dist/components/SortingSettings/SettingsItem/DirectionSelector/index.d.ts.map +1 -0
- package/dist/components/SortingSettings/SettingsItem/SettingsItemComponent.d.ts +23 -0
- package/dist/components/SortingSettings/SettingsItem/SettingsItemComponent.d.ts.map +1 -0
- package/dist/components/SortingSettings/SettingsItem/index.d.ts +2 -0
- package/dist/components/SortingSettings/SettingsItem/index.d.ts.map +1 -0
- package/dist/components/SortingSettings/Simple/SimpleSortingSettingsPopup.d.ts +11 -0
- package/dist/components/SortingSettings/Simple/SimpleSortingSettingsPopup.d.ts.map +1 -0
- package/dist/components/SortingSettings/Simple/index.d.ts +2 -0
- package/dist/components/SortingSettings/Simple/index.d.ts.map +1 -0
- package/dist/components/SortingSettings/SortingSettingItem.d.ts +8 -0
- package/dist/components/SortingSettings/SortingSettingItem.d.ts.map +1 -0
- package/dist/components/SortingSettings/detectElementOverflow.d.ts +11 -0
- package/dist/components/SortingSettings/detectElementOverflow.d.ts.map +1 -0
- package/dist/components/SortingSettings/getCaption.d.ts +5 -0
- package/dist/components/SortingSettings/getCaption.d.ts.map +1 -0
- package/dist/components/SortingSettings/index.d.ts +3 -0
- package/dist/components/SortingSettings/index.d.ts.map +1 -0
- package/dist/data-handling/index.d.ts +2 -0
- package/dist/data-handling/index.d.ts.map +1 -0
- package/dist/data-handling/types.d.ts +22 -0
- package/dist/data-handling/types.d.ts.map +1 -0
- package/dist/emotion-cache-provider.d.ts +11 -0
- package/dist/emotion-cache-provider.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +46533 -0
- package/dist/pivot-client.d.ts +22 -0
- package/dist/pivot-client.d.ts.map +1 -0
- package/dist/pivot-client.test.d.ts +2 -0
- package/dist/pivot-client.test.d.ts.map +1 -0
- package/dist/printing/PageConfigurationService.d.ts +127 -0
- package/dist/printing/PageConfigurationService.d.ts.map +1 -0
- package/dist/printing/index.d.ts +2 -0
- package/dist/printing/index.d.ts.map +1 -0
- package/dist/sizing/TableSize.d.ts +67 -0
- package/dist/sizing/TableSize.d.ts.map +1 -0
- package/dist/sizing/index.d.ts +2 -0
- package/dist/sizing/index.d.ts.map +1 -0
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/utils/array.d.ts +14 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/cloneObject.d.ts +31 -0
- package/dist/utils/cloneObject.d.ts.map +1 -0
- package/dist/utils/createCallbackMemoizer.d.ts +14 -0
- package/dist/utils/createCallbackMemoizer.d.ts.map +1 -0
- package/dist/utils/createTemplate.d.ts +15 -0
- package/dist/utils/createTemplate.d.ts.map +1 -0
- package/dist/utils/debug.d.ts +61 -0
- package/dist/utils/debug.d.ts.map +1 -0
- package/dist/utils/getChangedProps.d.ts +10 -0
- package/dist/utils/getChangedProps.d.ts.map +1 -0
- package/dist/utils/getDefaultSortDirection.d.ts +9 -0
- package/dist/utils/getDefaultSortDirection.d.ts.map +1 -0
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/throttle.d.ts +13 -0
- package/dist/utils/throttle.d.ts.map +1 -0
- package/dist/utils/types.d.ts +24 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/package.json +92 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DataService, PivotQueryClient, SocketBuilder } from '@sisense/sdk-pivot-query-client';
|
|
2
|
+
import { PivotBuilder } from './builders';
|
|
3
|
+
/**
|
|
4
|
+
* A client helper for pivot that abstracts away from all the internal implementations
|
|
5
|
+
* (e.g., web socket, data load service, data service, etc).
|
|
6
|
+
* To some extent, it is similar to the HttpClient, but for pivot.
|
|
7
|
+
* This client makes it easier to mock and test the consumers of the pivot functionalities (e.g., query client).
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class PivotClient {
|
|
12
|
+
private pivotQueryClient;
|
|
13
|
+
/**
|
|
14
|
+
* Builder to create on demand a web socket to the Sisense instance
|
|
15
|
+
* Required by the pivot table service
|
|
16
|
+
*/
|
|
17
|
+
socketBuilder: SocketBuilder;
|
|
18
|
+
constructor(pivotQueryClient: PivotQueryClient);
|
|
19
|
+
prepareDataService(): DataService;
|
|
20
|
+
preparePivotBuilder(): PivotBuilder;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=pivot-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pivot-client.d.ts","sourceRoot":"","sources":["../src/pivot-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAEhB,aAAa,EACd,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C;;;;;;;GAOG;AACH,qBAAa,WAAW;IAOV,OAAO,CAAC,gBAAgB;IANpC;;;OAGG;IACI,aAAa,EAAE,aAAa,CAAC;gBAEhB,gBAAgB,EAAE,gBAAgB;IAItD,kBAAkB;IAKlB,mBAAmB,IAAI,YAAY;CAIpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pivot-client.test.d.ts","sourceRoot":"","sources":["../src/pivot-client.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { DimensionsProps } from '../components/PageForPrint/types.js';
|
|
2
|
+
export declare class PageConfigurationService {
|
|
3
|
+
/** @private */
|
|
4
|
+
pivotDimensions: DimensionsProps;
|
|
5
|
+
/** @private */
|
|
6
|
+
format: string;
|
|
7
|
+
/** @private */
|
|
8
|
+
orientation: string;
|
|
9
|
+
/** @private */
|
|
10
|
+
setDefaultMinWidth: boolean;
|
|
11
|
+
/** @private */
|
|
12
|
+
defaultMinWidth: number;
|
|
13
|
+
/**
|
|
14
|
+
* clear internal state
|
|
15
|
+
*
|
|
16
|
+
* @returns {void}
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
clearAll(): void;
|
|
20
|
+
/**
|
|
21
|
+
* clear indexed height dimensions
|
|
22
|
+
*
|
|
23
|
+
* @returns {void}
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
clearHeight(): void;
|
|
27
|
+
/**
|
|
28
|
+
* clear indexed width dimensions
|
|
29
|
+
*
|
|
30
|
+
* @returns {void}
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
clearWidth(): void;
|
|
34
|
+
/**
|
|
35
|
+
* checks if height should be added
|
|
36
|
+
*
|
|
37
|
+
* @returns {boolean} - result
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
withHeight(): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* checks if all requirements for page service fill completed
|
|
43
|
+
*
|
|
44
|
+
* @returns {boolean} - result
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
isComplete(): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* sets internal cache for width and height dimensions
|
|
50
|
+
*
|
|
51
|
+
* @param {DimensionsProps} dimensions - width and height dimensions
|
|
52
|
+
* @param {boolean} withHeight - is height dimension should be setted
|
|
53
|
+
* @returns {void}
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
updateDimensions(dimensions: DimensionsProps, withHeight?: boolean): void;
|
|
57
|
+
/**
|
|
58
|
+
* calculates normalized width by internal or param width
|
|
59
|
+
*
|
|
60
|
+
* @param {string} format - format of page
|
|
61
|
+
* @param {string} orientation - orientation of page
|
|
62
|
+
* @param {object} [options] - additional options
|
|
63
|
+
* @param {number} [options.bolderWidth] - border width
|
|
64
|
+
* @returns {DimensionFormat} - optimized width
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
getNormalizedWidth(format?: string, orientation?: string, options?: {
|
|
68
|
+
borderWidth?: number;
|
|
69
|
+
}): number[][];
|
|
70
|
+
/**
|
|
71
|
+
* updates internal format and orientation
|
|
72
|
+
*
|
|
73
|
+
* @param {string} format - format of page
|
|
74
|
+
* @param {string} orientation - orientation of page
|
|
75
|
+
* @returns {void}
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
setPageConfiguration(format?: string, orientation?: string): void;
|
|
79
|
+
/**
|
|
80
|
+
* @param {string} data - raw page format to be converted
|
|
81
|
+
* @returns {number} - internal format representation
|
|
82
|
+
*/
|
|
83
|
+
getPageFormat(data?: string): number;
|
|
84
|
+
/**
|
|
85
|
+
* @param {string} data - raw page orientation to be converted
|
|
86
|
+
* @returns {number} converted orientation
|
|
87
|
+
*/
|
|
88
|
+
getPageOrientation(data?: string): number;
|
|
89
|
+
/**
|
|
90
|
+
* @param {number} pageFormat - converted page format
|
|
91
|
+
* @param {number} pageOrientation - converted page orientation
|
|
92
|
+
* @returns {number} - height in mm by format and orientation
|
|
93
|
+
*/
|
|
94
|
+
getPageMMHeight(pageFormat: number, pageOrientation: number): 0 | 1189 | 841 | 594 | 420 | 297 | 210 | 148 | 355.6 | 215.9 | 279.4 | 431.8;
|
|
95
|
+
/**
|
|
96
|
+
* @param {number} pageFormat - converted page format
|
|
97
|
+
* @param {number} pageOrientation - converted page orientation
|
|
98
|
+
* @returns {number} - page height in px
|
|
99
|
+
*/
|
|
100
|
+
getPagePixelHeight(pageFormat?: number, pageOrientation?: number): number;
|
|
101
|
+
/**
|
|
102
|
+
* @param {number} pageFormat - converted page format
|
|
103
|
+
* @param {number} pageOrientation - converted page orientation
|
|
104
|
+
* @returns {number} - page width in px
|
|
105
|
+
*/
|
|
106
|
+
getPagePixelWidth(pageFormat?: number, pageOrientation?: number): number;
|
|
107
|
+
/**
|
|
108
|
+
* Returns pixels from mm.
|
|
109
|
+
*
|
|
110
|
+
* @param {number} mm - dimension
|
|
111
|
+
* @returns {number} - px per mm ratio
|
|
112
|
+
*/
|
|
113
|
+
getPixelsFromMM(mm: number): number;
|
|
114
|
+
/**
|
|
115
|
+
* calculates pages by internal height and configuration
|
|
116
|
+
*
|
|
117
|
+
* @param {number} start - fixed rows
|
|
118
|
+
* @returns {Array<{start: number, stop: number}>} - pages indexes
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
calculatePages(start: number): Array<{
|
|
122
|
+
start: number;
|
|
123
|
+
stop: number;
|
|
124
|
+
}>;
|
|
125
|
+
}
|
|
126
|
+
export default PageConfigurationService;
|
|
127
|
+
//# sourceMappingURL=PageConfigurationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageConfigurationService.d.ts","sourceRoot":"","sources":["../../src/printing/PageConfigurationService.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAEtE,qBAAa,wBAAwB;IACnC,eAAe;IACf,eAAe,EAAE,eAAe,CAG9B;IAEF,eAAe;IACf,MAAM,EAAE,MAAM,CAAQ;IAEtB,eAAe;IACf,WAAW,EAAE,MAAM,CAAc;IAEjC,eAAe;IACf,kBAAkB,EAAE,OAAO,CAAS;IAEpC,eAAe;IACf,eAAe,EAAE,MAAM,CAAM;IAE7B;;;;;OAKG;IACH,QAAQ;IAKR;;;;;OAKG;IACH,WAAW;IAIX;;;;;OAKG;IACH,UAAU;IAIV;;;;;OAKG;IACH,UAAU;IAKV;;;;;OAKG;IACH,UAAU;IAKV;;;;;;;OAOG;IACH,gBAAgB,CAAC,UAAU,EAAE,eAAe,EAAE,UAAU,UAAQ,GAAG,IAAI;IAOvE;;;;;;;;;OASG;IACH,kBAAkB,CAChB,MAAM,GAAE,MAAoB,EAC5B,WAAW,GAAE,MAAyB,EACtC,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE;IAoCpC;;;;;;;OAOG;IACH,oBAAoB,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM;IAU1D;;;OAGG;IACH,aAAa,CAAC,IAAI,GAAE,MAAoB;IAkCxC;;;OAGG;IACH,kBAAkB,CAAC,IAAI,GAAE,MAAyB;IAalD;;;;OAIG;IACH,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM;IAmC3D;;;;OAIG;IACH,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM;IAShE;;;;OAIG;IACH,iBAAiB,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM;IAgB/D;;;;;OAKG;IACH,eAAe,CAAC,EAAE,EAAE,MAAM;IAI1B;;;;;;OAMG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAkDtE;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/printing/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const EVENT_NOTIFY_SIZE = "getSize";
|
|
2
|
+
export declare const EVENT_SIZE_CHANGED = "change";
|
|
3
|
+
export declare const EVENT_DATABARS_CHANGED = "dataBars";
|
|
4
|
+
export declare const EVENT_RANGEMINMAX_CHANGED = "rangeMinMax";
|
|
5
|
+
export declare class TableSize {
|
|
6
|
+
private events;
|
|
7
|
+
private colsWidth;
|
|
8
|
+
private rowsHeight;
|
|
9
|
+
private initialFixedWidth;
|
|
10
|
+
private dataBarsCols;
|
|
11
|
+
private dataBarsColsCache;
|
|
12
|
+
private dataBarsMinMax;
|
|
13
|
+
private rangeMinMax;
|
|
14
|
+
private notifyChangeTimer;
|
|
15
|
+
private notifySizeChangeTimer;
|
|
16
|
+
private notifyDataBarsChangeTimer;
|
|
17
|
+
private notifyRangeMinMaxChangeTimer;
|
|
18
|
+
private logger;
|
|
19
|
+
constructor(dataBarsMinMax?: Array<[number, number]>, rangeMinMax?: Array<[number, number]>);
|
|
20
|
+
updateDataBars(colIndex: number, rowIndex: number, width: number): void;
|
|
21
|
+
updateDataBarsMinMax(dataBars: Array<[number, number]>): void;
|
|
22
|
+
updateRangeMinMax(rangeMinMax: Array<[number, number]>): void;
|
|
23
|
+
updateWidth(colIndex: number, width: number): void;
|
|
24
|
+
updateHeight(rowIndex: number, height: number): void;
|
|
25
|
+
notifyChange(): void;
|
|
26
|
+
setFixedWidth(colIndex: number, width: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* Set initial width to columns
|
|
29
|
+
*
|
|
30
|
+
* @param {Array} predefinedColumnWidth - array with predefine with data for column
|
|
31
|
+
* @returns {void}
|
|
32
|
+
*/
|
|
33
|
+
setInitialFixedWidth(predefinedColumnWidth: Array<Array<number>>): void;
|
|
34
|
+
/**
|
|
35
|
+
* Check for initial column width
|
|
36
|
+
*
|
|
37
|
+
* @param {number} columnIndex - column index
|
|
38
|
+
* @returns {boolean} - true - has initial width
|
|
39
|
+
*/
|
|
40
|
+
hasInitialFixedWidth(columnIndex: number): boolean;
|
|
41
|
+
columnWidth: ({ index }: {
|
|
42
|
+
index: number;
|
|
43
|
+
}) => number;
|
|
44
|
+
rowHeight: ({ index }: {
|
|
45
|
+
index: number;
|
|
46
|
+
}) => number;
|
|
47
|
+
hasPendingChanges(): boolean;
|
|
48
|
+
fitWidths(totalWidth: number): void;
|
|
49
|
+
/**
|
|
50
|
+
* @returns {void}
|
|
51
|
+
* @private
|
|
52
|
+
*/
|
|
53
|
+
private notifySizesChange;
|
|
54
|
+
private notifyDataBarsChange;
|
|
55
|
+
private notifyRangeMinMaxChange;
|
|
56
|
+
getDataBars(): {
|
|
57
|
+
colsWidth: Array<number>;
|
|
58
|
+
minMaxs: Array<[number, number]>;
|
|
59
|
+
} | undefined;
|
|
60
|
+
getRangeMinMax(): {
|
|
61
|
+
rangeMinMax: Array<[number, number]>;
|
|
62
|
+
} | undefined;
|
|
63
|
+
on(event: string | symbol, listener: (...args: any[]) => void): void;
|
|
64
|
+
off(event: string | symbol, listener: (...args: any[]) => void): void;
|
|
65
|
+
}
|
|
66
|
+
export default TableSize;
|
|
67
|
+
//# sourceMappingURL=TableSize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSize.d.ts","sourceRoot":"","sources":["../../src/sizing/TableSize.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,sBAAsB,aAAa,CAAC;AACjD,eAAO,MAAM,yBAAyB,gBAAgB,CAAC;AAEvD,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAe;IAE7B,OAAO,CAAC,SAAS,CAAiC;IAElD,OAAO,CAAC,UAAU,CAAiC;IAEnD,OAAO,CAAC,iBAAiB,CAAiC;IAE1D,OAAO,CAAC,YAAY,CAA4B;IAEhD,OAAO,CAAC,iBAAiB,CAA4B;IAErD,OAAO,CAAC,cAAc,CAAsC;IAE5D,OAAO,CAAC,WAAW,CAAsC;IAEzD,OAAO,CAAC,iBAAiB,CAAK;IAE9B,OAAO,CAAC,qBAAqB,CAAK;IAElC,OAAO,CAAC,yBAAyB,CAAK;IAEtC,OAAO,CAAC,4BAA4B,CAAK;IAEzC,OAAO,CAAC,MAAM,CAAU;gBAEZ,cAAc,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAU3F,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAUvE,oBAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI;IAK7D,iBAAiB,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI;IAK7D,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAMlD,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAMpD,YAAY,IAAI,IAAI;IAWpB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAMpD;;;;;OAKG;IACH,oBAAoB,CAAC,qBAAqB,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI;IAUvE;;;;;OAKG;IACH,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAIlD,WAAW;eAAwB,MAAM;iBAIvC;IAEF,SAAS;eAAwB,MAAM;iBAA4C;IAEnF,iBAAiB;IAIjB,SAAS,CAAC,UAAU,EAAE,MAAM;IAe5B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,oBAAoB;IAkB5B,OAAO,CAAC,uBAAuB;IAgB/B,WAAW,IAAI;QAAE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAAC,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;KAAE,GAAG,SAAS;IAUzF,cAAc,IAAI;QAAE,WAAW,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;KAAE,GAAG,SAAS;IAStE,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GAAG,IAAI;IAIpE,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,GAAG,IAAI;CAGtE;AACD,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sizing/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC"}
|
package/dist/styles.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,uCAAuC,CAAC;AAC/C,OAAO,0CAA0C,CAAC;AAClD,OAAO,gCAAgC,CAAC;AACxC,OAAO,qCAAqC,CAAC;AAC7C,OAAO,8CAA8C,CAAC;AACtD,OAAO,kEAAkE,CAAC;AAC1E,OAAO,iDAAiD,CAAC;AACzD,OAAO,oFAAoF,CAAC;AAC5F,OAAO,6DAA6D,CAAC;AACrE,OAAO,qEAAqE,CAAC;AAC7E,OAAO,yCAAyC,CAAC;AACjD,OAAO,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper for finding first element index from array that meets check condition
|
|
3
|
+
*
|
|
4
|
+
* @param {Array<any>} arr - target array
|
|
5
|
+
* @param {Function} check - check function
|
|
6
|
+
* @param {number} [startFrom=0] - index from which to start search
|
|
7
|
+
* @returns {number} - found element index
|
|
8
|
+
*/
|
|
9
|
+
export declare function findIndex(arr: Array<any>, check: Function, startFrom?: number): number;
|
|
10
|
+
declare const _default: {
|
|
11
|
+
findIndex: typeof findIndex;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
//# sourceMappingURL=array.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../src/utils/array.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,SAAI,UASxE;;;;AAED,wBAEE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Makes deep clone of the object with ability exclude some properties or include only specific ones
|
|
3
|
+
* (includeKeys && excludeKeys) - simple key name comparison
|
|
4
|
+
* (include && exclude) - with parent hierarchy support, example:
|
|
5
|
+
* 'property1.deep_property2.deep_property3'
|
|
6
|
+
* or for array:
|
|
7
|
+
* 'arrayProperty.0' and 'arrayProperty.$.deep_property'
|
|
8
|
+
*
|
|
9
|
+
* @param {any} obj - object to clone
|
|
10
|
+
* @param {object} [options] - additional behaviour options
|
|
11
|
+
* @param {Array<string>} [options.include] - list of include properties keys
|
|
12
|
+
* @param {Array<string>} [options.includeKeys] - list of include properties keys
|
|
13
|
+
* @param {Array<string>} [options.exclude] - list of exclude properties keys
|
|
14
|
+
* @param {Array<string>} [options.excludeKeys] - list of exclude properties keys
|
|
15
|
+
* @param {boolean} [options.excludeEmpty] - defines if empty objects should be copied or not
|
|
16
|
+
* @param {Array<any>} [options.referenceClone] - defines types which clone by reference
|
|
17
|
+
* @returns {any} - cloned object
|
|
18
|
+
*/
|
|
19
|
+
export declare function cloneObject(obj: any, options?: {
|
|
20
|
+
include?: Array<string> | undefined;
|
|
21
|
+
includeKeys?: Array<string> | undefined;
|
|
22
|
+
exclude?: Array<string> | undefined;
|
|
23
|
+
excludeKeys?: Array<string> | undefined;
|
|
24
|
+
excludeEmpty?: boolean;
|
|
25
|
+
referenceClone?: Array<any>;
|
|
26
|
+
}): any;
|
|
27
|
+
export declare namespace cloneObject {
|
|
28
|
+
var REFERENCE_CLONE_TYPES: (DateConstructor | ErrorConstructor | RegExpConstructor | PromiseConstructor)[];
|
|
29
|
+
}
|
|
30
|
+
export default cloneObject;
|
|
31
|
+
//# sourceMappingURL=cloneObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloneObject.d.ts","sourceRoot":"","sources":["../../src/utils/cloneObject.ts"],"names":[],"mappings":"AA+QA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,GAAG,EACR,OAAO,CAAC,EAAE;IACR,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACxC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CAC7B,GACA,GAAG,CAgBL;yBA1Be,WAAW;;;AA6B3B,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper utility that updates the specified callback whenever any of the specified
|
|
3
|
+
* indices have changed.
|
|
4
|
+
*
|
|
5
|
+
* @param {boolean} [requireAllKeys=true] - defines if wait for all properties in indices
|
|
6
|
+
* to be initiated
|
|
7
|
+
* @returns {function({callback: Function, indices: object})} - wrapped function
|
|
8
|
+
*/
|
|
9
|
+
export declare function createCallbackMemoizer(requireAllKeys?: boolean): ({ callback, indices }: {
|
|
10
|
+
callback: Function;
|
|
11
|
+
indices: any;
|
|
12
|
+
}) => any;
|
|
13
|
+
export default createCallbackMemoizer;
|
|
14
|
+
//# sourceMappingURL=createCallbackMemoizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCallbackMemoizer.d.ts","sourceRoot":"","sources":["../../src/utils/createCallbackMemoizer.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,GAAE,OAAc;cAIxB,QAAQ;aAAW,GAAG;UA2BlE;AACD,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type TemplateStringsMap = {
|
|
2
|
+
[s: string]: string | number | boolean;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* Creates template function
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* var template = createTemplate('Rows {{from}}-{{to}} ({{total}} Total)');
|
|
9
|
+
* var str = template({ from: 0, to: 10, total: 100 });
|
|
10
|
+
*
|
|
11
|
+
* @param {string} templateString - template string to work with
|
|
12
|
+
* @returns {function(object): string} - template function
|
|
13
|
+
*/
|
|
14
|
+
export declare const createTemplate: (templateString: string) => (templateData: TemplateStringsMap) => string;
|
|
15
|
+
//# sourceMappingURL=createTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createTemplate.d.ts","sourceRoot":"","sources":["../../src/utils/createTemplate.ts"],"names":[],"mappings":"AACA,oBAAY,kBAAkB,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAE5E;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,mBACR,MAAM,oBACR,kBAAkB,KAAG,MAMhC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Console, LoggerI } from './types.js';
|
|
2
|
+
export declare class Logger implements LoggerI {
|
|
3
|
+
name: string;
|
|
4
|
+
log: Function;
|
|
5
|
+
warn: Function;
|
|
6
|
+
error: Function;
|
|
7
|
+
console: Console;
|
|
8
|
+
constructor(name?: string);
|
|
9
|
+
setName(name: string): void;
|
|
10
|
+
getName(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Creates real or fake "log" function depending on include/exclude rules
|
|
13
|
+
*
|
|
14
|
+
* @returns {void}
|
|
15
|
+
*
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
createLogFn(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Defines if logger is excluded from logging
|
|
21
|
+
*
|
|
22
|
+
* @returns {boolean} - true - excluded
|
|
23
|
+
*
|
|
24
|
+
* @private
|
|
25
|
+
*/
|
|
26
|
+
isExcludedName(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Determinates if included/excluded items contains part of the name
|
|
29
|
+
*
|
|
30
|
+
* @param {Array<string>} array - included/excluded items
|
|
31
|
+
* @returns {boolean} - true - contains
|
|
32
|
+
*
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
hasNamePartsInList(array: Array<string>): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Creates mock console instance for tests
|
|
38
|
+
*
|
|
39
|
+
* @returns {LoggerI} - logger instance
|
|
40
|
+
*/
|
|
41
|
+
static createMockConsole(): Console;
|
|
42
|
+
/**
|
|
43
|
+
* Creates mock instance for tests
|
|
44
|
+
*
|
|
45
|
+
* @returns {LoggerI} - logger instance
|
|
46
|
+
*/
|
|
47
|
+
static createMock(): LoggerI;
|
|
48
|
+
}
|
|
49
|
+
export declare const create: (namespace: string) => LoggerI;
|
|
50
|
+
export declare const excludeLogs: (name?: string) => void;
|
|
51
|
+
export declare const includeLogs: (name?: string) => void;
|
|
52
|
+
export declare const clearIncludeExclude: () => void;
|
|
53
|
+
declare const _default: {
|
|
54
|
+
Logger: typeof Logger;
|
|
55
|
+
create: (namespace: string) => LoggerI;
|
|
56
|
+
excludeLogs: (name?: string) => void;
|
|
57
|
+
includeLogs: (name?: string) => void;
|
|
58
|
+
clearIncludeExclude: () => void;
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
61
|
+
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/utils/debug.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAK9C,qBAAa,MAAO,YAAW,OAAO;IACpC,IAAI,EAAE,MAAM,CAAC;IAEb,GAAG,EAAE,QAAQ,CAAC;IAEd,IAAI,EAAE,QAAQ,CAAC;IAEf,KAAK,EAAE,QAAQ,CAAC;IAEhB,OAAO,EAAE,OAAO,CAAC;gBAEL,IAAI,SAAK;IAYrB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAK3B,OAAO,IAAI,MAAM;IAIjB;;;;;;OAMG;IACH,WAAW;IAeX;;;;;;OAMG;IACH,cAAc;IAUd;;;;;;;OAOG;IACH,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC;IAOvC;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,IAAI,OAAO;IAQnC;;;;OAIG;IACH,MAAM,CAAC,UAAU,IAAI,OAAO;CAS7B;AAED,eAAO,MAAM,MAAM,cAAe,MAAM,KAAG,OAAgC,CAAC;AAE5E,eAAO,MAAM,WAAW,qBAAgB,IAEvC,CAAC;AAEF,eAAO,MAAM,WAAW,qBAAgB,IAEvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,IAGtC,CAAC;;;;;;;;AAEF,wBAME"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines differences between two objects
|
|
3
|
+
*
|
|
4
|
+
* @param {object} odlObj - old object
|
|
5
|
+
* @param {object} newObj - new object
|
|
6
|
+
* @returns {object} - object with changed properties
|
|
7
|
+
*/
|
|
8
|
+
export declare const getChangedProps: (odlObj: any, newObj: any) => any;
|
|
9
|
+
export default getChangedProps;
|
|
10
|
+
//# sourceMappingURL=getChangedProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getChangedProps.d.ts","sourceRoot":"","sources":["../../src/utils/getChangedProps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,WAAY,GAAG,UAAU,GAAG,QAavD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PivotTreeNode } from '../data-handling/types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Helper for getting tree node default sort direction
|
|
4
|
+
*
|
|
5
|
+
* @param {PivotTreeNode} treeNode - tree node
|
|
6
|
+
* @returns {SortingDirection} - tree node default sort direction
|
|
7
|
+
*/
|
|
8
|
+
export declare const getDefaultSortDirection: (treeNode: PivotTreeNode) => "desc" | "asc";
|
|
9
|
+
//# sourceMappingURL=getDefaultSortDirection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDefaultSortDirection.d.ts","sourceRoot":"","sources":["../../src/utils/getDefaultSortDirection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,aAAc,aAAa,mBAQ9D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default as debug } from './debug.js';
|
|
2
|
+
export { cloneObject } from './cloneObject.js';
|
|
3
|
+
export { createTemplate, type TemplateStringsMap } from './createTemplate.js';
|
|
4
|
+
export { throttle } from './throttle.js';
|
|
5
|
+
export { getChangedProps } from './getChangedProps.js';
|
|
6
|
+
export { createCallbackMemoizer } from './createCallbackMemoizer.js';
|
|
7
|
+
export { findIndex } from './array.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,YAAY,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prevent too frequent function calling in time limit
|
|
3
|
+
*
|
|
4
|
+
* @param {Function} func - function to execute
|
|
5
|
+
* @param {number} limit - time interval in which function should be called only once
|
|
6
|
+
* @returns {Function} - throttled function
|
|
7
|
+
*/
|
|
8
|
+
export declare const throttle: (func: Function, limit: number) => {
|
|
9
|
+
(...args: Array<any>): void;
|
|
10
|
+
cancel(): void;
|
|
11
|
+
};
|
|
12
|
+
export default throttle;
|
|
13
|
+
//# sourceMappingURL=throttle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["../../src/utils/throttle.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,SAAU,QAAQ,SAAS,MAAM;cAIzB,MAAM,GAAG,CAAC;;CAqBtC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { InputStyles as InputStylesBase } from '@sisense/sdk-pivot-query-client';
|
|
3
|
+
export interface LoggerI {
|
|
4
|
+
setName(name: string): void;
|
|
5
|
+
getName(): string;
|
|
6
|
+
console: Console;
|
|
7
|
+
log: Function;
|
|
8
|
+
warn: Function;
|
|
9
|
+
error: Function;
|
|
10
|
+
}
|
|
11
|
+
export declare type Console = {
|
|
12
|
+
log: (args: any) => void;
|
|
13
|
+
warn: (args: any) => void;
|
|
14
|
+
error: (args: any) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare type Defer = {
|
|
17
|
+
promise: Promise<any>;
|
|
18
|
+
resolve: Function;
|
|
19
|
+
reject: Function;
|
|
20
|
+
};
|
|
21
|
+
export declare type InputStyles = InputStylesBase<CSSProperties>;
|
|
22
|
+
export declare type Styles = CSSProperties;
|
|
23
|
+
export declare type CloneFn = <T>(obj: T, skipChildren?: boolean) => T;
|
|
24
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEjF,MAAM,WAAW,OAAO;IACtB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,OAAO,IAAI,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,QAAQ,CAAC;IACd,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,QAAQ,CAAC;CACjB;AAED,oBAAY,OAAO,GAAG;IACpB,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IACzB,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1B,KAAK,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5B,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IACtB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,QAAQ,CAAC;CAClB,CAAC;AAEF,oBAAY,WAAW,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;AAEzD,oBAAY,MAAM,GAAG,aAAa,CAAC;AAEnC,oBAAY,OAAO,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,OAAO,KAAK,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sisense/sdk-pivot-ui",
|
|
3
|
+
"homepage": "https://developer.sisense.com/guides/sdk/",
|
|
4
|
+
"description": "Compose SDK package containing Pivot Table UI elements",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/sisense/compose-sdk-monorepo",
|
|
8
|
+
"directory": "packages/sdk-pivot-ui"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"Sisense",
|
|
12
|
+
"Compose SDK"
|
|
13
|
+
],
|
|
14
|
+
"version": "2.17.0",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": "./dist/index.js",
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"author": "Sisense",
|
|
21
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"dev": "vite",
|
|
24
|
+
"type-check": "tsc --noEmit",
|
|
25
|
+
"build": "run type-check && vite build --mode development",
|
|
26
|
+
"build:prod": "run type-check && vite build",
|
|
27
|
+
"clean": "rm -rf dist coverage tsconfig.build.tsbuildinfo tsconfig.prod.tsbuildinfo",
|
|
28
|
+
"lint": "echo 'eslint disabled for now.'",
|
|
29
|
+
"lint:fix": "run lint",
|
|
30
|
+
"format": "prettier --write .",
|
|
31
|
+
"format:check": "prettier --check .",
|
|
32
|
+
"vitest": "run -T vitest",
|
|
33
|
+
"test": "run vitest run",
|
|
34
|
+
"test:watch": "run vitest watch",
|
|
35
|
+
"test:coverage": "run vitest run --coverage"
|
|
36
|
+
},
|
|
37
|
+
"files": [
|
|
38
|
+
"dist/**/*",
|
|
39
|
+
"esm/**/*"
|
|
40
|
+
],
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@sisense/sdk-common": "2.17.0",
|
|
43
|
+
"@sisense/sdk-data": "2.17.0",
|
|
44
|
+
"@sisense/sdk-pivot-query-client": "2.17.0",
|
|
45
|
+
"@sisense/sdk-rest-client": "2.17.0",
|
|
46
|
+
"@sisense/sdk-shared-ui": "2.17.0",
|
|
47
|
+
"classnames": "2.3.2",
|
|
48
|
+
"dom-css": "2.1.0",
|
|
49
|
+
"dompurify": "^3.3.0",
|
|
50
|
+
"immer": "^10.0.2",
|
|
51
|
+
"lodash-es": "^4.17.21",
|
|
52
|
+
"raf": "3.4.0",
|
|
53
|
+
"socket.io-client": "^2.5.0",
|
|
54
|
+
"uuid": "^9.0.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@babel/preset-env": "^7.20.2",
|
|
58
|
+
"@emotion/cache": "^11.14.0",
|
|
59
|
+
"@emotion/react": "^11.14.0",
|
|
60
|
+
"@emotion/styled": "^11.14.0",
|
|
61
|
+
"@types/lodash-es": "^4.17.12",
|
|
62
|
+
"@types/raf": "3.4.0",
|
|
63
|
+
"@types/react": "19.1.9",
|
|
64
|
+
"@types/react-dom": "19.1.7",
|
|
65
|
+
"@types/socket.io-client": "^1.4.36",
|
|
66
|
+
"@vitejs/plugin-react": "^4.0.4",
|
|
67
|
+
"@vitejs/plugin-react-swc": "^3.3.0",
|
|
68
|
+
"eslint": "^8.40.0",
|
|
69
|
+
"prettier": "2.8.4",
|
|
70
|
+
"react": "19.1.0",
|
|
71
|
+
"react-dom": "19.1.0",
|
|
72
|
+
"rollup-plugin-re": "^1.0.7",
|
|
73
|
+
"typescript": "4.8.4",
|
|
74
|
+
"vite": "4.5.2",
|
|
75
|
+
"vite-plugin-checker": "^0.6.1",
|
|
76
|
+
"vite-plugin-css-injected-by-js": "3.0.1",
|
|
77
|
+
"vite-plugin-dts": "^4.5.4"
|
|
78
|
+
},
|
|
79
|
+
"resolutions": {
|
|
80
|
+
"socket.io-parser": "3.3.4"
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"@emotion/cache": "^11.0.0",
|
|
84
|
+
"@emotion/react": "^11.0.0",
|
|
85
|
+
"@emotion/styled": "^11.0.0",
|
|
86
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
87
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
88
|
+
},
|
|
89
|
+
"volta": {
|
|
90
|
+
"extends": "../../package.json"
|
|
91
|
+
}
|
|
92
|
+
}
|