survey-analytics 1.9.70 → 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 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.70",
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.70",
74
+ "survey-core": "1.9.71-31-g828ef9f53",
75
75
  "tabulator-tables": "4.8.4",
76
76
  "wordcloud": "^1.2.2"
77
77
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.70
2
+ * surveyjs - SurveyJS Dashboard library v1.9.71-31-g828ef9f53
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -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,7 +529,7 @@ declare module "localization/italian" {
529
529
  responses: string;
530
530
  };
531
531
  }
532
- declare module "localization/arabic" {
532
+ declare module "analytics-localization/arabic" {
533
533
  export var arabicStrings: {
534
534
  groupButton: string;
535
535
  ungroupButton: string;
@@ -643,7 +643,7 @@ declare module "dataProvider" {
643
643
  /**
644
644
  * Fires when data has been changed.
645
645
  */
646
- onDataChanged: Event<(sender: DataProvider, options: any) => any, any>;
646
+ onDataChanged: Event<(sender: DataProvider, options: any) => any, DataProvider, any>;
647
647
  protected raiseDataChanged(): void;
648
648
  }
649
649
  }
@@ -783,8 +783,16 @@ declare module "visualizerBase" {
783
783
  /**
784
784
  * The event is fired right after a visualizer's content is rendered in DOM.
785
785
  **/
786
- onAfterRender: Event<(sender: VisualizerBase, options: any) => any, any>;
786
+ onAfterRender: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
787
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>;
788
796
  protected toolbarItemCreators: {
789
797
  [name: string]: (toolbar?: HTMLDivElement) => HTMLElement;
790
798
  };
@@ -934,6 +942,17 @@ declare module "visualizerBase" {
934
942
  getData(): any;
935
943
  getState(): any;
936
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;
937
956
  }
938
957
  }
939
958
  declare module "number" {
@@ -1043,7 +1062,7 @@ declare module "selectBase" {
1043
1062
  * options - the answers data object containing: datasets, labels, colors, additional texts (percentage).
1044
1063
  * options fields can be modified
1045
1064
  */
1046
- onAnswersDataReady: Event<(sender: SelectBase, options: any) => any, any>;
1065
+ onAnswersDataReady: Event<(sender: SelectBase, options: any) => any, SelectBase, any>;
1047
1066
  /**
1048
1067
  * Returns object with all infotmation for data visualization: datasets, labels, colors, additional texts (percentage).
1049
1068
  */
@@ -1475,17 +1494,7 @@ declare module "visualizationPanel" {
1475
1494
  protected setBackgroundColorCore(color: string): void;
1476
1495
  private buildVisualizers;
1477
1496
  private destroyVisualizers;
1478
- /**
1479
- * Returns current locale of the visualization panel.
1480
- * If locales more than one, the language selection dropdown will be added in the toolbar
1481
- * In order to use survey locales the survey instance object should be passed as 'survey' option for visualizer
1482
- */
1483
- get locale(): string;
1484
- /**
1485
- * Sets locale for visualization panel.
1486
- */
1487
- set locale(newLocale: string);
1488
- private setLocale;
1497
+ protected setLocale(newLocale: string): void;
1489
1498
  /**
1490
1499
  * Returns whether the VisualizationPanel allows dynamic layouting - rearrange items via drap/drop. Set via options.
1491
1500
  */
@@ -1541,14 +1550,14 @@ declare module "visualizationPanel" {
1541
1550
  * changed - changed element
1542
1551
  * reason - reason (string) why event fired: "ADDED", "MOVED" or "REMOVED"
1543
1552
  */
1544
- onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, any>;
1553
+ onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, VisualizationPanel, any>;
1545
1554
  protected visibleElementsChanged(element: IVisualizerPanelElement, reason: string): void;
1546
1555
  /**
1547
1556
  * Fires when vizualization panel state changed.
1548
1557
  * sender - this panel
1549
1558
  * state - new state of the panel
1550
1559
  */
1551
- onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, any>;
1560
+ onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, VisualizationPanel, any>;
1552
1561
  /**
1553
1562
  * Fires when permissions changed
1554
1563
  */
@@ -1609,6 +1618,7 @@ declare module "visualizationPanelDynamic" {
1609
1618
  }>, options?: {
1610
1619
  [index: string]: any;
1611
1620
  }, name?: string);
1621
+ protected setLocale(newLocale: string): void;
1612
1622
  private onAfterRenderPanelCallback;
1613
1623
  get name(): string;
1614
1624
  private updatePanelVisualizerData;
@@ -1638,11 +1648,13 @@ declare module "visualizationMatrixDropdown" {
1638
1648
  import { VisualizerBase } from "visualizerBase";
1639
1649
  export class VisualizationMatrixDropdown extends VisualizerBase {
1640
1650
  protected _matrixDropdownVisualizer: VisualizerBase;
1651
+ private readonly _childOptions;
1641
1652
  constructor(question: QuestionMatrixDropdownModel, data: Array<{
1642
1653
  [index: string]: any;
1643
1654
  }>, options?: {
1644
1655
  [index: string]: any;
1645
1656
  }, name?: string);
1657
+ protected setLocale(newLocale: string): void;
1646
1658
  get matrixDropdownVisualizer(): VisualizerBase;
1647
1659
  private onPanelAfterRenderCallback;
1648
1660
  private updateDropdownVisualizerData;
@@ -1659,6 +1671,7 @@ declare module "visualizationMatrixDropdown" {
1659
1671
  declare module "plotly/setup" {
1660
1672
  import { Event } from "survey-core";
1661
1673
  import { SelectBase } from "selectBase";
1674
+ import { VisualizerBase } from "visualizerBase";
1662
1675
  export interface PlotlyOptions {
1663
1676
  traces: Array<any>;
1664
1677
  layout: any;
@@ -1669,12 +1682,12 @@ declare module "plotly/setup" {
1669
1682
  /**
1670
1683
  * Fires when end user clicks on the 'save as image' button.
1671
1684
  */
1672
- static onImageSaving: Event<(sender: SelectBase, options: any) => any, any>;
1685
+ static onImageSaving: Event<(sender: SelectBase, options: any) => any, SelectBase, any>;
1673
1686
  /**
1674
1687
  * Fires before plot will be created. User can change traces, layout and config of the plot.
1675
1688
  * Options is an object with the following fields: traces, layout and config of the plot.
1676
1689
  */
1677
- static onPlotCreating: Event<(sender: SelectBase, options: any) => any, any>;
1690
+ static onPlotCreating: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
1678
1691
  static setups: {
1679
1692
  [type: string]: (model: SelectBase) => PlotlyOptions;
1680
1693
  };
@@ -1853,7 +1866,7 @@ declare module "wordcloud/wordcloud" {
1853
1866
  static shrinkToFit: boolean;
1854
1867
  static abortThreshold: any;
1855
1868
  static weightFactor: number;
1856
- static onWordcloudCreating: Event<(sender: WordCloud, options: any) => any, any>;
1869
+ static onWordcloudCreating: Event<(sender: WordCloud, options: any) => any, WordCloud, any>;
1857
1870
  constructor(model: WordCloud);
1858
1871
  get wordcloud(): any;
1859
1872
  create(node: HTMLElement): any;
@@ -1914,15 +1927,15 @@ declare module "choices-table" {
1914
1927
  }
1915
1928
  declare module "entries/summary" {
1916
1929
  export * from "localizationManager";
1917
- import "localization/farsi";
1918
- import "localization/french";
1919
- import "localization/norwegian";
1920
- import "localization/portuguese";
1921
- import "localization/russian";
1922
- import "localization/dutch";
1923
- import "localization/spanish";
1924
- import "localization/italian";
1925
- import "localization/arabic";
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";
1926
1939
  export * from "dataProvider";
1927
1940
  export * from "number";
1928
1941
  export * from "selectBase";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.70
2
+ * surveyjs - SurveyJS Dashboard library v1.9.71-31-g828ef9f53
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -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/arabic" {
408
+ declare module "analytics-localization/arabic" {
409
409
  export var arabicStrings: {
410
410
  groupButton: string;
411
411
  ungroupButton: string;
@@ -705,7 +705,7 @@ declare module "tables/columnbuilder" {
705
705
  }
706
706
  }
707
707
  declare module "tables/table" {
708
- import { SurveyModel, Question, Event } from "survey-core";
708
+ import { SurveyModel, Question, Event, EventBase } from "survey-core";
709
709
  import { IPermission, QuestionLocation, ITableState, IColumn, IColumnData } from "tables/config";
710
710
  import { Details } from "tables/extensions/detailsextensions";
711
711
  import { TableExtensions } from "tables/extensions/tableextensions";
@@ -726,6 +726,8 @@ declare module "tables/table" {
726
726
  displayValue: any;
727
727
  }) => void;
728
728
  }
729
+ export class TableEvent extends EventBase<Table> {
730
+ }
729
731
  export abstract class Table {
730
732
  protected _survey: SurveyModel;
731
733
  protected data: Array<Object>;
@@ -747,9 +749,9 @@ declare module "tables/table" {
747
749
  * Sets pagination selector content.
748
750
  */
749
751
  paginationSizeSelector: number[];
750
- onColumnsVisibilityChanged: Event<(sender: Table, options: any) => any, any>;
751
- onColumnsLocationChanged: Event<(sender: Table, options: any) => any, any>;
752
- onRowRemoved: Event<(sender: Table, options: any) => any, any>;
752
+ onColumnsVisibilityChanged: TableEvent;
753
+ onColumnsLocationChanged: TableEvent;
754
+ onRowRemoved: TableEvent;
753
755
  renderDetailActions: (container: HTMLElement, row: TableRow) => HTMLElement;
754
756
  getData(): Object[];
755
757
  get survey(): SurveyModel;
@@ -809,7 +811,7 @@ declare module "tables/table" {
809
811
  /**
810
812
  * Fires when table state changed.
811
813
  */
812
- onStateChanged: Event<(sender: Table, options: any) => any, any>;
814
+ onStateChanged: TableEvent;
813
815
  /**
814
816
  * Gets table permissions.
815
817
  */
@@ -832,7 +834,7 @@ declare module "tables/table" {
832
834
  extensions: TableExtensions;
833
835
  private detailedRowClass;
834
836
  private isDetailsExpanded;
835
- onToggleDetails: Event<(sender: TableRow, options: any) => any, any>;
837
+ onToggleDetails: Event<(sender: TableRow, options: any) => any, TableRow, any>;
836
838
  /**
837
839
  * Returns row's html element
838
840
  */
@@ -880,7 +882,7 @@ declare module "tables/datatables" {
880
882
  * <br/> options.survey current survey
881
883
  * @see getColumns
882
884
  */
883
- onColumnsReorder: Event<(sender: DataTables, options: any) => any, any>;
885
+ onColumnsReorder: Event<(sender: DataTables, options: any) => any, DataTables, any>;
884
886
  static initJQuery($: any): void;
885
887
  static set haveCommercialLicense(val: boolean);
886
888
  constructor(survey: SurveyModel, data: Array<Object>, options?: DataTablesOptions, _columnsData?: Array<IColumnData>);
@@ -914,13 +916,13 @@ declare module "tables/datatables" {
914
916
  }
915
917
  declare module "entries/datatables" {
916
918
  export * from "localizationManager";
917
- import "localization/farsi";
918
- import "localization/french";
919
- import "localization/norwegian";
920
- import "localization/portuguese";
921
- import "localization/russian";
922
- import "localization/dutch";
923
- import "localization/arabic";
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";
924
926
  import "tables/extensions/rowextensions";
925
927
  import "tables/extensions/headerextensions";
926
928
  import "tables/extensions/columnextensions";