survey-analytics 1.9.70 → 1.9.72

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.72",
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.72",
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.72
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,7 +783,7 @@ 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
788
  protected toolbarItemCreators: {
789
789
  [name: string]: (toolbar?: HTMLDivElement) => HTMLElement;
@@ -1043,7 +1043,7 @@ declare module "selectBase" {
1043
1043
  * options - the answers data object containing: datasets, labels, colors, additional texts (percentage).
1044
1044
  * options fields can be modified
1045
1045
  */
1046
- onAnswersDataReady: Event<(sender: SelectBase, options: any) => any, any>;
1046
+ onAnswersDataReady: Event<(sender: SelectBase, options: any) => any, SelectBase, any>;
1047
1047
  /**
1048
1048
  * Returns object with all infotmation for data visualization: datasets, labels, colors, additional texts (percentage).
1049
1049
  */
@@ -1541,14 +1541,14 @@ declare module "visualizationPanel" {
1541
1541
  * changed - changed element
1542
1542
  * reason - reason (string) why event fired: "ADDED", "MOVED" or "REMOVED"
1543
1543
  */
1544
- onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, any>;
1544
+ onVisibleElementsChanged: Event<(sender: VisualizationPanel, options: any) => any, VisualizationPanel, any>;
1545
1545
  protected visibleElementsChanged(element: IVisualizerPanelElement, reason: string): void;
1546
1546
  /**
1547
1547
  * Fires when vizualization panel state changed.
1548
1548
  * sender - this panel
1549
1549
  * state - new state of the panel
1550
1550
  */
1551
- onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, any>;
1551
+ onStateChanged: Event<(sender: VisualizationPanel, state: IState) => any, VisualizationPanel, any>;
1552
1552
  /**
1553
1553
  * Fires when permissions changed
1554
1554
  */
@@ -1659,6 +1659,7 @@ declare module "visualizationMatrixDropdown" {
1659
1659
  declare module "plotly/setup" {
1660
1660
  import { Event } from "survey-core";
1661
1661
  import { SelectBase } from "selectBase";
1662
+ import { VisualizerBase } from "visualizerBase";
1662
1663
  export interface PlotlyOptions {
1663
1664
  traces: Array<any>;
1664
1665
  layout: any;
@@ -1669,12 +1670,12 @@ declare module "plotly/setup" {
1669
1670
  /**
1670
1671
  * Fires when end user clicks on the 'save as image' button.
1671
1672
  */
1672
- static onImageSaving: Event<(sender: SelectBase, options: any) => any, any>;
1673
+ static onImageSaving: Event<(sender: SelectBase, options: any) => any, SelectBase, any>;
1673
1674
  /**
1674
1675
  * Fires before plot will be created. User can change traces, layout and config of the plot.
1675
1676
  * Options is an object with the following fields: traces, layout and config of the plot.
1676
1677
  */
1677
- static onPlotCreating: Event<(sender: SelectBase, options: any) => any, any>;
1678
+ static onPlotCreating: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>;
1678
1679
  static setups: {
1679
1680
  [type: string]: (model: SelectBase) => PlotlyOptions;
1680
1681
  };
@@ -1853,7 +1854,7 @@ declare module "wordcloud/wordcloud" {
1853
1854
  static shrinkToFit: boolean;
1854
1855
  static abortThreshold: any;
1855
1856
  static weightFactor: number;
1856
- static onWordcloudCreating: Event<(sender: WordCloud, options: any) => any, any>;
1857
+ static onWordcloudCreating: Event<(sender: WordCloud, options: any) => any, WordCloud, any>;
1857
1858
  constructor(model: WordCloud);
1858
1859
  get wordcloud(): any;
1859
1860
  create(node: HTMLElement): any;
@@ -1914,15 +1915,15 @@ declare module "choices-table" {
1914
1915
  }
1915
1916
  declare module "entries/summary" {
1916
1917
  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";
1918
+ import "analytics-localization/farsi";
1919
+ import "analytics-localization/french";
1920
+ import "analytics-localization/norwegian";
1921
+ import "analytics-localization/portuguese";
1922
+ import "analytics-localization/russian";
1923
+ import "analytics-localization/dutch";
1924
+ import "analytics-localization/spanish";
1925
+ import "analytics-localization/italian";
1926
+ import "analytics-localization/arabic";
1926
1927
  export * from "dataProvider";
1927
1928
  export * from "number";
1928
1929
  export * from "selectBase";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.70
2
+ * surveyjs - SurveyJS Dashboard library v1.9.72
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";