survey-analytics 1.9.69 → 1.9.71-31-g828ef9f53
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 +2 -2
- package/survey.analytics.css +1 -1
- package/survey.analytics.d.ts +118 -36
- package/survey.analytics.datatables.css +1 -1
- package/survey.analytics.datatables.d.ts +91 -20
- package/survey.analytics.datatables.js +210 -111
- package/survey.analytics.datatables.min.css +1 -1
- package/survey.analytics.datatables.min.js +2 -2
- package/survey.analytics.js +1496 -1386
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js +3 -3
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.d.ts +90 -19
- package/survey.analytics.tabulator.js +214 -115
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +2 -2
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"lint": "eslint ./src --quiet",
|
|
20
20
|
"pre-push-check": "npm run lint && npm run test"
|
|
21
21
|
},
|
|
22
|
-
"version": "1.9.
|
|
22
|
+
"version": "1.9.71-31-g828ef9f53",
|
|
23
23
|
"name": "survey-analytics",
|
|
24
24
|
"description": "SurveyJS analytics Library.",
|
|
25
25
|
"main": "survey.analytics.js",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"jquery": "3.5.0",
|
|
72
72
|
"muuri": "^0.8.0",
|
|
73
73
|
"plotly.js-dist-min": "^2.11.1",
|
|
74
|
-
"survey-core": "1.9.
|
|
74
|
+
"survey-core": "1.9.71-31-g828ef9f53",
|
|
75
75
|
"tabulator-tables": "4.8.4",
|
|
76
76
|
"wordcloud": "^1.2.2"
|
|
77
77
|
},
|
package/survey.analytics.css
CHANGED
package/survey.analytics.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module "localization/english" {
|
|
1
|
+
declare module "analytics-localization/english" {
|
|
2
2
|
export var englishStrings: {
|
|
3
3
|
groupButton: string;
|
|
4
4
|
ungroupButton: string;
|
|
@@ -157,7 +157,7 @@ declare module "localizationManager" {
|
|
|
157
157
|
responses: string;
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
declare module "localization/farsi" {
|
|
160
|
+
declare module "analytics-localization/farsi" {
|
|
161
161
|
export var farsiStrings: {
|
|
162
162
|
groupButton: string;
|
|
163
163
|
ungroupButton: string;
|
|
@@ -179,7 +179,7 @@ declare module "localization/farsi" {
|
|
|
179
179
|
addElement: string;
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
declare module "localization/french" {
|
|
182
|
+
declare module "analytics-localization/french" {
|
|
183
183
|
export var frenchStrings: {
|
|
184
184
|
groupButton: string;
|
|
185
185
|
ungroupButton: string;
|
|
@@ -227,7 +227,7 @@ declare module "localization/french" {
|
|
|
227
227
|
responses: string;
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
declare module "localization/norwegian" {
|
|
230
|
+
declare module "analytics-localization/norwegian" {
|
|
231
231
|
export var norwegianStrings: {
|
|
232
232
|
groupButton: string;
|
|
233
233
|
ungroupButton: string;
|
|
@@ -268,7 +268,7 @@ declare module "localization/norwegian" {
|
|
|
268
268
|
hidePercentages: string;
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
|
-
declare module "localization/portuguese" {
|
|
271
|
+
declare module "analytics-localization/portuguese" {
|
|
272
272
|
export var portugueseStrings: {
|
|
273
273
|
groupButton: string;
|
|
274
274
|
ungroupButton: string;
|
|
@@ -318,7 +318,7 @@ declare module "localization/portuguese" {
|
|
|
318
318
|
noResults: string;
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
declare module "localization/russian" {
|
|
321
|
+
declare module "analytics-localization/russian" {
|
|
322
322
|
export var russianStrings: {
|
|
323
323
|
groupButton: string;
|
|
324
324
|
ungroupButton: string;
|
|
@@ -354,7 +354,7 @@ declare module "localization/russian" {
|
|
|
354
354
|
noResults: string;
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
declare module "localization/dutch" {
|
|
357
|
+
declare module "analytics-localization/dutch" {
|
|
358
358
|
export var dutchStrings: {
|
|
359
359
|
groupButton: string;
|
|
360
360
|
ungroupButton: string;
|
|
@@ -405,7 +405,7 @@ declare module "localization/dutch" {
|
|
|
405
405
|
topNValueText20: string;
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
-
declare module "localization/spanish" {
|
|
408
|
+
declare module "analytics-localization/spanish" {
|
|
409
409
|
export var spanishStrings: {
|
|
410
410
|
ungroupButton: string;
|
|
411
411
|
selectButton: string;
|
|
@@ -458,7 +458,7 @@ declare module "localization/spanish" {
|
|
|
458
458
|
noResults: string;
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
declare module "localization/italian" {
|
|
461
|
+
declare module "analytics-localization/italian" {
|
|
462
462
|
export var italianStrings: {
|
|
463
463
|
groupButton: string;
|
|
464
464
|
ungroupButton: string;
|
|
@@ -529,6 +529,74 @@ declare module "localization/italian" {
|
|
|
529
529
|
responses: string;
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
|
+
declare module "analytics-localization/arabic" {
|
|
533
|
+
export var arabicStrings: {
|
|
534
|
+
groupButton: string;
|
|
535
|
+
ungroupButton: string;
|
|
536
|
+
selectButton: string;
|
|
537
|
+
hideColumn: string;
|
|
538
|
+
showColumn: string;
|
|
539
|
+
makePrivateColumn: string;
|
|
540
|
+
makePublicColumn: string;
|
|
541
|
+
moveToDetail: string;
|
|
542
|
+
showAsColumn: string;
|
|
543
|
+
filterPlaceholder: string;
|
|
544
|
+
removeRows: string;
|
|
545
|
+
showLabel: string;
|
|
546
|
+
entriesLabel: string;
|
|
547
|
+
visualizer_text: string;
|
|
548
|
+
visualizer_wordcloud: string;
|
|
549
|
+
visualizer_histogram: string;
|
|
550
|
+
visualizer_number: string;
|
|
551
|
+
visualizer_choices: string;
|
|
552
|
+
visualizer_selectBase: string;
|
|
553
|
+
chartType_bar: string;
|
|
554
|
+
chartType_vbar: string;
|
|
555
|
+
chartType_stackedbar: string;
|
|
556
|
+
chartType_doughnut: string;
|
|
557
|
+
chartType_pie: string;
|
|
558
|
+
chartType_scatter: string;
|
|
559
|
+
chartType_gauge: string;
|
|
560
|
+
chartType_bullet: string;
|
|
561
|
+
hideButton: string;
|
|
562
|
+
makePrivateButton: string;
|
|
563
|
+
makePublicButton: string;
|
|
564
|
+
showButton: string;
|
|
565
|
+
filter: string;
|
|
566
|
+
resetFilter: string;
|
|
567
|
+
changeLocale: string;
|
|
568
|
+
en: string;
|
|
569
|
+
fr: string;
|
|
570
|
+
ru: string;
|
|
571
|
+
de: string;
|
|
572
|
+
clearButton: string;
|
|
573
|
+
addElement: string;
|
|
574
|
+
defaultOrder: string;
|
|
575
|
+
ascOrder: string;
|
|
576
|
+
descOrder: string;
|
|
577
|
+
showMinorColumns: string;
|
|
578
|
+
otherCommentTitle: string;
|
|
579
|
+
showPercentages: string;
|
|
580
|
+
hidePercentages: string;
|
|
581
|
+
pdfDownloadCaption: string;
|
|
582
|
+
xlsxDownloadCaption: string;
|
|
583
|
+
csvDownloadCaption: string;
|
|
584
|
+
saveDiagramAsPNG: string;
|
|
585
|
+
hideEmptyAnswers: string;
|
|
586
|
+
showEmptyAnswers: string;
|
|
587
|
+
hideMissingAnswers: string;
|
|
588
|
+
showMissingAnswers: string;
|
|
589
|
+
missingAnswersLabel: string;
|
|
590
|
+
noVisualizerForQuestion: string;
|
|
591
|
+
noResults: string;
|
|
592
|
+
showPerValues: string;
|
|
593
|
+
showPerColumns: string;
|
|
594
|
+
answer: string;
|
|
595
|
+
correctAnswer: string;
|
|
596
|
+
percent: string;
|
|
597
|
+
responses: string;
|
|
598
|
+
};
|
|
599
|
+
}
|
|
532
600
|
declare module "dataProvider" {
|
|
533
601
|
import { Event } from "survey-core";
|
|
534
602
|
/**
|
|
@@ -575,7 +643,7 @@ declare module "dataProvider" {
|
|
|
575
643
|
/**
|
|
576
644
|
* Fires when data has been changed.
|
|
577
645
|
*/
|
|
578
|
-
onDataChanged: Event<(sender: DataProvider, options: any) => any, any>;
|
|
646
|
+
onDataChanged: Event<(sender: DataProvider, options: any) => any, DataProvider, any>;
|
|
579
647
|
protected raiseDataChanged(): void;
|
|
580
648
|
}
|
|
581
649
|
}
|
|
@@ -715,8 +783,16 @@ declare module "visualizerBase" {
|
|
|
715
783
|
/**
|
|
716
784
|
* The event is fired right after a visualizer's content is rendered in DOM.
|
|
717
785
|
**/
|
|
718
|
-
onAfterRender: Event<(sender: VisualizerBase, options: any) => any, any>;
|
|
786
|
+
onAfterRender: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
|
|
719
787
|
protected afterRender(contentContainer: HTMLElement): void;
|
|
788
|
+
/**
|
|
789
|
+
* Fires when visualizer locale changed.
|
|
790
|
+
* sender - this visualizer
|
|
791
|
+
* locale - new locale of the visualizer
|
|
792
|
+
*/
|
|
793
|
+
onLocaleChanged: Event<(sender: VisualizerBase, options: {
|
|
794
|
+
locale: string;
|
|
795
|
+
}) => any, VisualizerBase, any>;
|
|
720
796
|
protected toolbarItemCreators: {
|
|
721
797
|
[name: string]: (toolbar?: HTMLDivElement) => HTMLElement;
|
|
722
798
|
};
|
|
@@ -866,6 +942,17 @@ declare module "visualizerBase" {
|
|
|
866
942
|
getData(): any;
|
|
867
943
|
getState(): any;
|
|
868
944
|
setState(state: any): void;
|
|
945
|
+
/**
|
|
946
|
+
* Returns current locale of the visualizer.
|
|
947
|
+
* If locales more than one, the language selection dropdown will be added in the toolbar
|
|
948
|
+
* In order to use survey locales the survey instance object should be passed as 'survey' option for visualizer
|
|
949
|
+
*/
|
|
950
|
+
get locale(): string;
|
|
951
|
+
/**
|
|
952
|
+
* Sets locale for visualization panel.
|
|
953
|
+
*/
|
|
954
|
+
set locale(newLocale: string);
|
|
955
|
+
protected setLocale(newLocale: string): void;
|
|
869
956
|
}
|
|
870
957
|
}
|
|
871
958
|
declare module "number" {
|
|
@@ -975,7 +1062,7 @@ declare module "selectBase" {
|
|
|
975
1062
|
* options - the answers data object containing: datasets, labels, colors, additional texts (percentage).
|
|
976
1063
|
* options fields can be modified
|
|
977
1064
|
*/
|
|
978
|
-
onAnswersDataReady: Event<(sender: SelectBase, options: any) => any, any>;
|
|
1065
|
+
onAnswersDataReady: Event<(sender: SelectBase, options: any) => any, SelectBase, any>;
|
|
979
1066
|
/**
|
|
980
1067
|
* Returns object with all infotmation for data visualization: datasets, labels, colors, additional texts (percentage).
|
|
981
1068
|
*/
|
|
@@ -1407,17 +1494,7 @@ declare module "visualizationPanel" {
|
|
|
1407
1494
|
protected setBackgroundColorCore(color: string): void;
|
|
1408
1495
|
private buildVisualizers;
|
|
1409
1496
|
private destroyVisualizers;
|
|
1410
|
-
|
|
1411
|
-
* Returns current locale of the visualization panel.
|
|
1412
|
-
* If locales more than one, the language selection dropdown will be added in the toolbar
|
|
1413
|
-
* In order to use survey locales the survey instance object should be passed as 'survey' option for visualizer
|
|
1414
|
-
*/
|
|
1415
|
-
get locale(): string;
|
|
1416
|
-
/**
|
|
1417
|
-
* Sets locale for visualization panel.
|
|
1418
|
-
*/
|
|
1419
|
-
set locale(newLocale: string);
|
|
1420
|
-
private setLocale;
|
|
1497
|
+
protected setLocale(newLocale: string): void;
|
|
1421
1498
|
/**
|
|
1422
1499
|
* Returns whether the VisualizationPanel allows dynamic layouting - rearrange items via drap/drop. Set via options.
|
|
1423
1500
|
*/
|
|
@@ -1473,14 +1550,14 @@ declare module "visualizationPanel" {
|
|
|
1473
1550
|
* changed - changed element
|
|
1474
1551
|
* reason - reason (string) why event fired: "ADDED", "MOVED" or "REMOVED"
|
|
1475
1552
|
*/
|
|
1476
|
-
onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, any>;
|
|
1553
|
+
onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, VisualizationPanel, any>;
|
|
1477
1554
|
protected visibleElementsChanged(element: IVisualizerPanelElement, reason: string): void;
|
|
1478
1555
|
/**
|
|
1479
1556
|
* Fires when vizualization panel state changed.
|
|
1480
1557
|
* sender - this panel
|
|
1481
1558
|
* state - new state of the panel
|
|
1482
1559
|
*/
|
|
1483
|
-
onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, any>;
|
|
1560
|
+
onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, VisualizationPanel, any>;
|
|
1484
1561
|
/**
|
|
1485
1562
|
* Fires when permissions changed
|
|
1486
1563
|
*/
|
|
@@ -1541,6 +1618,7 @@ declare module "visualizationPanelDynamic" {
|
|
|
1541
1618
|
}>, options?: {
|
|
1542
1619
|
[index: string]: any;
|
|
1543
1620
|
}, name?: string);
|
|
1621
|
+
protected setLocale(newLocale: string): void;
|
|
1544
1622
|
private onAfterRenderPanelCallback;
|
|
1545
1623
|
get name(): string;
|
|
1546
1624
|
private updatePanelVisualizerData;
|
|
@@ -1570,11 +1648,13 @@ declare module "visualizationMatrixDropdown" {
|
|
|
1570
1648
|
import { VisualizerBase } from "visualizerBase";
|
|
1571
1649
|
export class VisualizationMatrixDropdown extends VisualizerBase {
|
|
1572
1650
|
protected _matrixDropdownVisualizer: VisualizerBase;
|
|
1651
|
+
private readonly _childOptions;
|
|
1573
1652
|
constructor(question: QuestionMatrixDropdownModel, data: Array<{
|
|
1574
1653
|
[index: string]: any;
|
|
1575
1654
|
}>, options?: {
|
|
1576
1655
|
[index: string]: any;
|
|
1577
1656
|
}, name?: string);
|
|
1657
|
+
protected setLocale(newLocale: string): void;
|
|
1578
1658
|
get matrixDropdownVisualizer(): VisualizerBase;
|
|
1579
1659
|
private onPanelAfterRenderCallback;
|
|
1580
1660
|
private updateDropdownVisualizerData;
|
|
@@ -1591,6 +1671,7 @@ declare module "visualizationMatrixDropdown" {
|
|
|
1591
1671
|
declare module "plotly/setup" {
|
|
1592
1672
|
import { Event } from "survey-core";
|
|
1593
1673
|
import { SelectBase } from "selectBase";
|
|
1674
|
+
import { VisualizerBase } from "visualizerBase";
|
|
1594
1675
|
export interface PlotlyOptions {
|
|
1595
1676
|
traces: Array<any>;
|
|
1596
1677
|
layout: any;
|
|
@@ -1601,12 +1682,12 @@ declare module "plotly/setup" {
|
|
|
1601
1682
|
/**
|
|
1602
1683
|
* Fires when end user clicks on the 'save as image' button.
|
|
1603
1684
|
*/
|
|
1604
|
-
static onImageSaving: Event<(sender: SelectBase, options: any) => any, any>;
|
|
1685
|
+
static onImageSaving: Event<(sender: SelectBase, options: any) => any, SelectBase, any>;
|
|
1605
1686
|
/**
|
|
1606
1687
|
* Fires before plot will be created. User can change traces, layout and config of the plot.
|
|
1607
1688
|
* Options is an object with the following fields: traces, layout and config of the plot.
|
|
1608
1689
|
*/
|
|
1609
|
-
static onPlotCreating: Event<(sender:
|
|
1690
|
+
static onPlotCreating: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
|
|
1610
1691
|
static setups: {
|
|
1611
1692
|
[type: string]: (model: SelectBase) => PlotlyOptions;
|
|
1612
1693
|
};
|
|
@@ -1785,7 +1866,7 @@ declare module "wordcloud/wordcloud" {
|
|
|
1785
1866
|
static shrinkToFit: boolean;
|
|
1786
1867
|
static abortThreshold: any;
|
|
1787
1868
|
static weightFactor: number;
|
|
1788
|
-
static onWordcloudCreating: Event<(sender: WordCloud, options: any) => any, any>;
|
|
1869
|
+
static onWordcloudCreating: Event<(sender: WordCloud, options: any) => any, WordCloud, any>;
|
|
1789
1870
|
constructor(model: WordCloud);
|
|
1790
1871
|
get wordcloud(): any;
|
|
1791
1872
|
create(node: HTMLElement): any;
|
|
@@ -1846,14 +1927,15 @@ declare module "choices-table" {
|
|
|
1846
1927
|
}
|
|
1847
1928
|
declare module "entries/summary" {
|
|
1848
1929
|
export * from "localizationManager";
|
|
1849
|
-
import "localization/farsi";
|
|
1850
|
-
import "localization/french";
|
|
1851
|
-
import "localization/norwegian";
|
|
1852
|
-
import "localization/portuguese";
|
|
1853
|
-
import "localization/russian";
|
|
1854
|
-
import "localization/dutch";
|
|
1855
|
-
import "localization/spanish";
|
|
1856
|
-
import "localization/italian";
|
|
1930
|
+
import "analytics-localization/farsi";
|
|
1931
|
+
import "analytics-localization/french";
|
|
1932
|
+
import "analytics-localization/norwegian";
|
|
1933
|
+
import "analytics-localization/portuguese";
|
|
1934
|
+
import "analytics-localization/russian";
|
|
1935
|
+
import "analytics-localization/dutch";
|
|
1936
|
+
import "analytics-localization/spanish";
|
|
1937
|
+
import "analytics-localization/italian";
|
|
1938
|
+
import "analytics-localization/arabic";
|
|
1857
1939
|
export * from "dataProvider";
|
|
1858
1940
|
export * from "number";
|
|
1859
1941
|
export * from "selectBase";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare module "localization/english" {
|
|
1
|
+
declare module "analytics-localization/english" {
|
|
2
2
|
export var englishStrings: {
|
|
3
3
|
groupButton: string;
|
|
4
4
|
ungroupButton: string;
|
|
@@ -157,7 +157,7 @@ declare module "localizationManager" {
|
|
|
157
157
|
responses: string;
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
declare module "localization/farsi" {
|
|
160
|
+
declare module "analytics-localization/farsi" {
|
|
161
161
|
export var farsiStrings: {
|
|
162
162
|
groupButton: string;
|
|
163
163
|
ungroupButton: string;
|
|
@@ -179,7 +179,7 @@ declare module "localization/farsi" {
|
|
|
179
179
|
addElement: string;
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
declare module "localization/french" {
|
|
182
|
+
declare module "analytics-localization/french" {
|
|
183
183
|
export var frenchStrings: {
|
|
184
184
|
groupButton: string;
|
|
185
185
|
ungroupButton: string;
|
|
@@ -227,7 +227,7 @@ declare module "localization/french" {
|
|
|
227
227
|
responses: string;
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
declare module "localization/norwegian" {
|
|
230
|
+
declare module "analytics-localization/norwegian" {
|
|
231
231
|
export var norwegianStrings: {
|
|
232
232
|
groupButton: string;
|
|
233
233
|
ungroupButton: string;
|
|
@@ -268,7 +268,7 @@ declare module "localization/norwegian" {
|
|
|
268
268
|
hidePercentages: string;
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
|
-
declare module "localization/portuguese" {
|
|
271
|
+
declare module "analytics-localization/portuguese" {
|
|
272
272
|
export var portugueseStrings: {
|
|
273
273
|
groupButton: string;
|
|
274
274
|
ungroupButton: string;
|
|
@@ -318,7 +318,7 @@ declare module "localization/portuguese" {
|
|
|
318
318
|
noResults: string;
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
declare module "localization/russian" {
|
|
321
|
+
declare module "analytics-localization/russian" {
|
|
322
322
|
export var russianStrings: {
|
|
323
323
|
groupButton: string;
|
|
324
324
|
ungroupButton: string;
|
|
@@ -354,7 +354,7 @@ declare module "localization/russian" {
|
|
|
354
354
|
noResults: string;
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
declare module "localization/dutch" {
|
|
357
|
+
declare module "analytics-localization/dutch" {
|
|
358
358
|
export var dutchStrings: {
|
|
359
359
|
groupButton: string;
|
|
360
360
|
ungroupButton: string;
|
|
@@ -405,6 +405,74 @@ declare module "localization/dutch" {
|
|
|
405
405
|
topNValueText20: string;
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
|
+
declare module "analytics-localization/arabic" {
|
|
409
|
+
export var arabicStrings: {
|
|
410
|
+
groupButton: string;
|
|
411
|
+
ungroupButton: string;
|
|
412
|
+
selectButton: string;
|
|
413
|
+
hideColumn: string;
|
|
414
|
+
showColumn: string;
|
|
415
|
+
makePrivateColumn: string;
|
|
416
|
+
makePublicColumn: string;
|
|
417
|
+
moveToDetail: string;
|
|
418
|
+
showAsColumn: string;
|
|
419
|
+
filterPlaceholder: string;
|
|
420
|
+
removeRows: string;
|
|
421
|
+
showLabel: string;
|
|
422
|
+
entriesLabel: string;
|
|
423
|
+
visualizer_text: string;
|
|
424
|
+
visualizer_wordcloud: string;
|
|
425
|
+
visualizer_histogram: string;
|
|
426
|
+
visualizer_number: string;
|
|
427
|
+
visualizer_choices: string;
|
|
428
|
+
visualizer_selectBase: string;
|
|
429
|
+
chartType_bar: string;
|
|
430
|
+
chartType_vbar: string;
|
|
431
|
+
chartType_stackedbar: string;
|
|
432
|
+
chartType_doughnut: string;
|
|
433
|
+
chartType_pie: string;
|
|
434
|
+
chartType_scatter: string;
|
|
435
|
+
chartType_gauge: string;
|
|
436
|
+
chartType_bullet: string;
|
|
437
|
+
hideButton: string;
|
|
438
|
+
makePrivateButton: string;
|
|
439
|
+
makePublicButton: string;
|
|
440
|
+
showButton: string;
|
|
441
|
+
filter: string;
|
|
442
|
+
resetFilter: string;
|
|
443
|
+
changeLocale: string;
|
|
444
|
+
en: string;
|
|
445
|
+
fr: string;
|
|
446
|
+
ru: string;
|
|
447
|
+
de: string;
|
|
448
|
+
clearButton: string;
|
|
449
|
+
addElement: string;
|
|
450
|
+
defaultOrder: string;
|
|
451
|
+
ascOrder: string;
|
|
452
|
+
descOrder: string;
|
|
453
|
+
showMinorColumns: string;
|
|
454
|
+
otherCommentTitle: string;
|
|
455
|
+
showPercentages: string;
|
|
456
|
+
hidePercentages: string;
|
|
457
|
+
pdfDownloadCaption: string;
|
|
458
|
+
xlsxDownloadCaption: string;
|
|
459
|
+
csvDownloadCaption: string;
|
|
460
|
+
saveDiagramAsPNG: string;
|
|
461
|
+
hideEmptyAnswers: string;
|
|
462
|
+
showEmptyAnswers: string;
|
|
463
|
+
hideMissingAnswers: string;
|
|
464
|
+
showMissingAnswers: string;
|
|
465
|
+
missingAnswersLabel: string;
|
|
466
|
+
noVisualizerForQuestion: string;
|
|
467
|
+
noResults: string;
|
|
468
|
+
showPerValues: string;
|
|
469
|
+
showPerColumns: string;
|
|
470
|
+
answer: string;
|
|
471
|
+
correctAnswer: string;
|
|
472
|
+
percent: string;
|
|
473
|
+
responses: string;
|
|
474
|
+
};
|
|
475
|
+
}
|
|
408
476
|
declare module "tables/config" {
|
|
409
477
|
import { Question } from "survey-core";
|
|
410
478
|
import { Table } from "tables/table";
|
|
@@ -637,7 +705,7 @@ declare module "tables/columnbuilder" {
|
|
|
637
705
|
}
|
|
638
706
|
}
|
|
639
707
|
declare module "tables/table" {
|
|
640
|
-
import { SurveyModel, Question, Event } from "survey-core";
|
|
708
|
+
import { SurveyModel, Question, Event, EventBase } from "survey-core";
|
|
641
709
|
import { IPermission, QuestionLocation, ITableState, IColumn, IColumnData } from "tables/config";
|
|
642
710
|
import { Details } from "tables/extensions/detailsextensions";
|
|
643
711
|
import { TableExtensions } from "tables/extensions/tableextensions";
|
|
@@ -658,6 +726,8 @@ declare module "tables/table" {
|
|
|
658
726
|
displayValue: any;
|
|
659
727
|
}) => void;
|
|
660
728
|
}
|
|
729
|
+
export class TableEvent extends EventBase<Table> {
|
|
730
|
+
}
|
|
661
731
|
export abstract class Table {
|
|
662
732
|
protected _survey: SurveyModel;
|
|
663
733
|
protected data: Array<Object>;
|
|
@@ -679,9 +749,9 @@ declare module "tables/table" {
|
|
|
679
749
|
* Sets pagination selector content.
|
|
680
750
|
*/
|
|
681
751
|
paginationSizeSelector: number[];
|
|
682
|
-
onColumnsVisibilityChanged:
|
|
683
|
-
onColumnsLocationChanged:
|
|
684
|
-
onRowRemoved:
|
|
752
|
+
onColumnsVisibilityChanged: TableEvent;
|
|
753
|
+
onColumnsLocationChanged: TableEvent;
|
|
754
|
+
onRowRemoved: TableEvent;
|
|
685
755
|
renderDetailActions: (container: HTMLElement, row: TableRow) => HTMLElement;
|
|
686
756
|
getData(): Object[];
|
|
687
757
|
get survey(): SurveyModel;
|
|
@@ -741,7 +811,7 @@ declare module "tables/table" {
|
|
|
741
811
|
/**
|
|
742
812
|
* Fires when table state changed.
|
|
743
813
|
*/
|
|
744
|
-
onStateChanged:
|
|
814
|
+
onStateChanged: TableEvent;
|
|
745
815
|
/**
|
|
746
816
|
* Gets table permissions.
|
|
747
817
|
*/
|
|
@@ -764,7 +834,7 @@ declare module "tables/table" {
|
|
|
764
834
|
extensions: TableExtensions;
|
|
765
835
|
private detailedRowClass;
|
|
766
836
|
private isDetailsExpanded;
|
|
767
|
-
onToggleDetails: Event<(sender: TableRow, options: any) => any, any>;
|
|
837
|
+
onToggleDetails: Event<(sender: TableRow, options: any) => any, TableRow, any>;
|
|
768
838
|
/**
|
|
769
839
|
* Returns row's html element
|
|
770
840
|
*/
|
|
@@ -812,7 +882,7 @@ declare module "tables/datatables" {
|
|
|
812
882
|
* <br/> options.survey current survey
|
|
813
883
|
* @see getColumns
|
|
814
884
|
*/
|
|
815
|
-
onColumnsReorder: Event<(sender: DataTables, options: any) => any, any>;
|
|
885
|
+
onColumnsReorder: Event<(sender: DataTables, options: any) => any, DataTables, any>;
|
|
816
886
|
static initJQuery($: any): void;
|
|
817
887
|
static set haveCommercialLicense(val: boolean);
|
|
818
888
|
constructor(survey: SurveyModel, data: Array<Object>, options?: DataTablesOptions, _columnsData?: Array<IColumnData>);
|
|
@@ -846,12 +916,13 @@ declare module "tables/datatables" {
|
|
|
846
916
|
}
|
|
847
917
|
declare module "entries/datatables" {
|
|
848
918
|
export * from "localizationManager";
|
|
849
|
-
import "localization/farsi";
|
|
850
|
-
import "localization/french";
|
|
851
|
-
import "localization/norwegian";
|
|
852
|
-
import "localization/portuguese";
|
|
853
|
-
import "localization/russian";
|
|
854
|
-
import "localization/dutch";
|
|
919
|
+
import "analytics-localization/farsi";
|
|
920
|
+
import "analytics-localization/french";
|
|
921
|
+
import "analytics-localization/norwegian";
|
|
922
|
+
import "analytics-localization/portuguese";
|
|
923
|
+
import "analytics-localization/russian";
|
|
924
|
+
import "analytics-localization/dutch";
|
|
925
|
+
import "analytics-localization/arabic";
|
|
855
926
|
import "tables/extensions/rowextensions";
|
|
856
927
|
import "tables/extensions/headerextensions";
|
|
857
928
|
import "tables/extensions/columnextensions";
|