survey-analytics 1.9.83 → 1.9.84

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
@@ -13,13 +13,14 @@
13
13
  "watch:dev": "webpack --env.buildType dev --watch",
14
14
  "build:dev": "webpack --env.buildType dev",
15
15
  "build:prod": "npm run build:dev && webpack --env.buildType prod",
16
+ "build": "npm run build:prod",
16
17
  "build:types:summary": "tsc --p tsconfig.summary.json && echo \"declare module 'survey-analytics' { import main = require('entries/summary'); export = main; }\" >> packages/survey.analytics.d.ts",
17
18
  "build:types:datatables": "tsc --p tsconfig.datatables.json && echo \"declare module 'survey-analytics/survey.analytics.datatables' { import main = require('entries/datatables'); export = main; }\" >> packages/survey.analytics.datatables.d.ts",
18
19
  "build:types:tabulator": "tsc --p tsconfig.tabulator.json && echo \"declare module 'survey-analytics/survey.analytics.tabulator' { import main = require('entries/tabulator'); export = main; }\" >> packages/survey.analytics.tabulator.d.ts",
19
20
  "lint": "eslint ./src --quiet",
20
21
  "pre-push-check": "npm run lint && npm run test"
21
22
  },
22
- "version": "1.9.83",
23
+ "version": "1.9.84",
23
24
  "name": "survey-analytics",
24
25
  "description": "SurveyJS analytics Library.",
25
26
  "main": "survey.analytics.js",
@@ -71,7 +72,7 @@
71
72
  "jquery": "3.5.0",
72
73
  "muuri": "^0.8.0",
73
74
  "plotly.js-dist-min": "^2.11.1",
74
- "survey-core": "1.9.83",
75
+ "survey-core": "1.9.84",
75
76
  "tabulator-tables": "4.8.4",
76
77
  "wordcloud": "^1.2.2"
77
78
  },
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.83
2
+ * surveyjs - SurveyJS Dashboard library v1.9.84
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
  */
@@ -824,10 +824,6 @@ declare module "visualizerBase" {
824
824
  [index: string]: any;
825
825
  }, _name?: string);
826
826
  protected get questionOptions(): any;
827
- /**
828
- * This method is called then data has been changed for some reason, e.g. filter was set.
829
- * This method should be overriden if descendant computes own statistics or process data somehow.
830
- */
831
827
  protected onDataChanged(): void;
832
828
  /**
833
829
  * Name of the data field of data object from the data array.
@@ -880,9 +876,6 @@ declare module "visualizerBase" {
880
876
  protected get data(): {
881
877
  [index: string]: any;
882
878
  }[];
883
- /**
884
- * The data provider is used by the visaulizer.
885
- */
886
879
  protected get dataProvider(): DataProvider;
887
880
  /**
888
881
  * Updates visualizer data.
@@ -902,41 +895,13 @@ declare module "visualizerBase" {
902
895
  clear(): void;
903
896
  protected createToolbarItems(toolbar: HTMLDivElement): void;
904
897
  protected getCorrectAnswerText(): string;
905
- /**
906
- * Destroys visualizer toolbar.
907
- */
908
898
  protected destroyToolbar(container: HTMLElement): void;
909
- /**
910
- * Renderss visualizer toolbar.
911
- */
912
899
  protected renderToolbar(container: HTMLElement): void;
913
- /**
914
- * Destroys visualizer header.
915
- * Usually overriden in descendants.
916
- */
917
900
  protected destroyHeader(container: HTMLElement): void;
918
- /**
919
- * Destroys visualizer content.
920
- * Usually overriden in descendants.
921
- */
922
901
  protected destroyContent(container: HTMLElement): void;
923
- /**
924
- * Renders visualizer header.
925
- * Usually overriden in descendants.
926
- */
927
902
  protected renderHeader(container: HTMLElement): void;
928
- /**
929
- * Renders visualizer content.
930
- * Usually overriden in descendants.
931
- */
932
903
  protected renderContent(container: HTMLElement): void;
933
- /**
934
- * Destroys visualizer footer.
935
- */
936
904
  protected destroyFooter(container: HTMLElement): void;
937
- /**
938
- * Renders visualizer footer.
939
- */
940
905
  protected renderFooter(container: HTMLElement): void;
941
906
  /**
942
907
  * Renders visualizer in the given container.
@@ -956,13 +921,27 @@ declare module "visualizerBase" {
956
921
  static customColors: string[];
957
922
  private static colors;
958
923
  getColors(count?: number): any;
924
+ /**
925
+ * Returns whether the visualizer renders it header.
926
+ */
959
927
  get showHeader(): boolean;
928
+ /**
929
+ * Sets whether the visualizer renders it header.
930
+ */
960
931
  set showHeader(newValue: boolean);
961
932
  /**
962
933
  * Returns data to be used in the visualizer.
963
934
  */
964
935
  getData(): any;
936
+ /**
937
+ * Returns visualizer state - options control visualizer behavior and rendering.
938
+ * Overriden in descendants
939
+ */
965
940
  getState(): any;
941
+ /**
942
+ * Sets visualizer state - options control visualizer behavior and rendering.
943
+ * Overriden in descendants
944
+ */
966
945
  setState(state: any): void;
967
946
  /**
968
947
  * Returns current locale of the visualizer.
@@ -1042,7 +1021,12 @@ declare module "selectBase" {
1042
1021
  [index: string]: any;
1043
1022
  }>, options?: any, name?: string);
1044
1023
  protected chartTypes: string[];
1045
- chartType: string;
1024
+ protected _chartType: string;
1025
+ /**
1026
+ * Chart type - current chart type.
1027
+ */
1028
+ get chartType(): string;
1029
+ set chartType(newChartType: string);
1046
1030
  private updateEmptyAnswersBtn;
1047
1031
  private updateTransposeDataBtn;
1048
1032
  private updateOrderSelector;
@@ -1055,19 +1039,37 @@ declare module "selectBase" {
1055
1039
  getSelectedItemByText(itemText: string): any;
1056
1040
  setSelection(item: ItemValue): void;
1057
1041
  get selection(): ItemValue;
1042
+ /**
1043
+ * Gets and sets whether chart should show percentages only.
1044
+ */
1058
1045
  get showOnlyPercentages(): boolean;
1059
1046
  set showOnlyPercentages(val: boolean);
1047
+ /**
1048
+ * Gets and sets whether chart should show values and percentages.
1049
+ */
1060
1050
  get showPercentages(): boolean;
1061
1051
  set showPercentages(val: boolean);
1052
+ /**
1053
+ * Gets and sets chart elements order.
1054
+ */
1062
1055
  get answersOrder(): string;
1063
1056
  set answersOrder(value: string);
1057
+ /**
1058
+ * Set to true if need to hide empty chart elements (e.g. bars vith zero value).
1059
+ */
1064
1060
  get hideEmptyAnswers(): boolean;
1065
1061
  set hideEmptyAnswers(value: boolean);
1066
1062
  get transposeData(): boolean;
1067
1063
  set transposeData(value: boolean);
1064
+ /**
1065
+ * Set to some value if need to show top N chart elements.
1066
+ */
1068
1067
  get topN(): number;
1069
1068
  set topN(value: number);
1070
1069
  protected isSupportMissingAnswers(): boolean;
1070
+ /**
1071
+ * Set to true if you want to see chart elements for missing answers (e.g. radiogroup items never been selected by surveyee).
1072
+ */
1071
1073
  get showMissingAnswers(): boolean;
1072
1074
  set showMissingAnswers(value: boolean);
1073
1075
  refreshContent(): void;
@@ -1120,7 +1122,6 @@ declare module "boolean" {
1120
1122
  import { SelectBase } from "selectBase";
1121
1123
  export class BooleanModel extends SelectBase {
1122
1124
  protected chartTypes: string[];
1123
- chartType: string;
1124
1125
  constructor(question: Question, data: Array<{
1125
1126
  [index: string]: any;
1126
1127
  }>, options?: Object, name?: string);
@@ -1143,7 +1144,6 @@ declare module "histogram" {
1143
1144
  private _cachedIntervals;
1144
1145
  private _intervalPrecision;
1145
1146
  protected chartTypes: string[];
1146
- chartType: string;
1147
1147
  static IntervalsCount: number;
1148
1148
  static UseIntervalsFrom: number;
1149
1149
  constructor(question: Question, data: Array<{
@@ -1252,6 +1252,10 @@ declare module "filterInfo" {
1252
1252
  }
1253
1253
  }
1254
1254
  declare module "layoutEngine" {
1255
+ /**
1256
+ * LayoutEngine controls visualizer layoput in a visualization panel.
1257
+ * You can create a descendant of this class in order to override layout.
1258
+ */
1255
1259
  export class LayoutEngine {
1256
1260
  protected _allowed: boolean;
1257
1261
  constructor(_allowed: boolean);
@@ -1259,8 +1263,17 @@ declare module "layoutEngine" {
1259
1263
  protected stopCore(): void;
1260
1264
  protected updateCore(): void;
1261
1265
  get allowed(): boolean;
1266
+ /**
1267
+ * Initilizes layout engine in the given HTML element.
1268
+ */
1262
1269
  start(container: HTMLElement): void;
1270
+ /**
1271
+ * Deactivates layouting: stops elements auto-positioning
1272
+ */
1263
1273
  stop(): void;
1274
+ /**
1275
+ * Updates layout: performs elements auto-positioning
1276
+ */
1264
1277
  update(): void;
1265
1278
  add(elements: Array<HTMLElement>, options?: any): void;
1266
1279
  remove(elements: Array<HTMLElement>, options?: any): void;
@@ -1613,9 +1626,6 @@ declare module "visualizationPanel" {
1613
1626
  * Fires when permissions changed
1614
1627
  */
1615
1628
  onPermissionsChangedCallback: any;
1616
- /**
1617
- * Renders given panel element.
1618
- */
1619
1629
  protected renderPanelElement(element: IVisualizerPanelRenderedElement, container: HTMLElement): HTMLElement;
1620
1630
  protected renderToolbar(container: HTMLElement): void;
1621
1631
  /**
@@ -1623,9 +1633,6 @@ declare module "visualizationPanel" {
1623
1633
  * container - HTML element to render the panel
1624
1634
  */
1625
1635
  renderContent(container: HTMLElement): void;
1626
- /**
1627
- * Destroys visualizer and all inner content.
1628
- */
1629
1636
  protected destroyContent(container: HTMLElement): void;
1630
1637
  /**
1631
1638
  * Redraws visualizer toobar and all inner content.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.83
2
+ * surveyjs - SurveyJS Dashboard library v1.9.84
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,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.83
2
+ * surveyjs - SurveyJS Dashboard library v1.9.84
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,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.83
2
+ * surveyjs - SurveyJS Dashboard library v1.9.84
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,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v1.9.83
2
+ * surveyjs - SurveyJS Dashboard library v1.9.84
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
  */