survey-analytics 1.9.71 → 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.71",
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.71",
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.71
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
  */
@@ -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;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.71
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
  */
@@ -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>);