survey-analytics 2.3.4 → 2.3.6

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.
Files changed (67) hide show
  1. package/fesm/shared.mjs +59 -1
  2. package/fesm/shared.mjs.map +1 -1
  3. package/fesm/shared2.mjs +166 -65
  4. package/fesm/shared2.mjs.map +1 -1
  5. package/fesm/survey.analytics.core.mjs +2 -2
  6. package/fesm/survey.analytics.mjs +12 -5
  7. package/fesm/survey.analytics.mjs.map +1 -1
  8. package/fesm/survey.analytics.tabulator.mjs +17 -4
  9. package/fesm/survey.analytics.tabulator.mjs.map +1 -1
  10. package/package.json +2 -2
  11. package/survey-analytics-tabulator.types/analytics-localization/arabic.d.ts +2 -0
  12. package/survey-analytics-tabulator.types/analytics-localization/dutch.d.ts +2 -0
  13. package/survey-analytics-tabulator.types/analytics-localization/english.d.ts +2 -0
  14. package/survey-analytics-tabulator.types/analytics-localization/farsi.d.ts +2 -0
  15. package/survey-analytics-tabulator.types/analytics-localization/finnish.d.ts +2 -0
  16. package/survey-analytics-tabulator.types/analytics-localization/french.d.ts +2 -0
  17. package/survey-analytics-tabulator.types/analytics-localization/german.d.ts +2 -0
  18. package/survey-analytics-tabulator.types/analytics-localization/italian.d.ts +2 -0
  19. package/survey-analytics-tabulator.types/analytics-localization/japanese.d.ts +2 -0
  20. package/survey-analytics-tabulator.types/analytics-localization/norwegian.d.ts +2 -0
  21. package/survey-analytics-tabulator.types/analytics-localization/polish.d.ts +2 -0
  22. package/survey-analytics-tabulator.types/analytics-localization/portuguese.d.ts +2 -0
  23. package/survey-analytics-tabulator.types/analytics-localization/russian.d.ts +2 -0
  24. package/survey-analytics-tabulator.types/analytics-localization/spanish.d.ts +2 -0
  25. package/survey-analytics-tabulator.types/analytics-localization/swedish.d.ts +2 -0
  26. package/survey-analytics-tabulator.types/localizationManager.d.ts +2 -0
  27. package/survey-analytics-tabulator.types/tables/table.d.ts +6 -2
  28. package/survey-analytics.types/alternativeVizualizersWrapper.d.ts +9 -1
  29. package/survey-analytics.types/analytics-localization/arabic.d.ts +2 -0
  30. package/survey-analytics.types/analytics-localization/dutch.d.ts +2 -0
  31. package/survey-analytics.types/analytics-localization/english.d.ts +2 -0
  32. package/survey-analytics.types/analytics-localization/farsi.d.ts +2 -0
  33. package/survey-analytics.types/analytics-localization/finnish.d.ts +2 -0
  34. package/survey-analytics.types/analytics-localization/french.d.ts +2 -0
  35. package/survey-analytics.types/analytics-localization/german.d.ts +2 -0
  36. package/survey-analytics.types/analytics-localization/italian.d.ts +2 -0
  37. package/survey-analytics.types/analytics-localization/japanese.d.ts +2 -0
  38. package/survey-analytics.types/analytics-localization/norwegian.d.ts +2 -0
  39. package/survey-analytics.types/analytics-localization/polish.d.ts +2 -0
  40. package/survey-analytics.types/analytics-localization/portuguese.d.ts +2 -0
  41. package/survey-analytics.types/analytics-localization/russian.d.ts +2 -0
  42. package/survey-analytics.types/analytics-localization/spanish.d.ts +2 -0
  43. package/survey-analytics.types/analytics-localization/swedish.d.ts +2 -0
  44. package/survey-analytics.types/localizationManager.d.ts +2 -0
  45. package/survey-analytics.types/selectBase.d.ts +2 -1
  46. package/survey-analytics.types/statistics-table.d.ts +11 -1
  47. package/survey-analytics.types/visualizationManager.d.ts +2 -2
  48. package/survey-analytics.types/visualizationPanel.d.ts +2 -1
  49. package/survey-analytics.types/visualizerBase.d.ts +14 -0
  50. package/survey.analytics.core.css +1 -1
  51. package/survey.analytics.core.js +256 -77
  52. package/survey.analytics.core.js.map +1 -1
  53. package/survey.analytics.core.min.css +1 -1
  54. package/survey.analytics.core.min.js +1 -1
  55. package/survey.analytics.core.min.js.LICENSE.txt +1 -1
  56. package/survey.analytics.css +1 -1
  57. package/survey.analytics.js +266 -79
  58. package/survey.analytics.js.map +1 -1
  59. package/survey.analytics.min.css +1 -1
  60. package/survey.analytics.min.js +1 -1
  61. package/survey.analytics.min.js.LICENSE.txt +1 -1
  62. package/survey.analytics.tabulator.css +1 -1
  63. package/survey.analytics.tabulator.js +74 -3
  64. package/survey.analytics.tabulator.js.map +1 -1
  65. package/survey.analytics.tabulator.min.css +1 -1
  66. package/survey.analytics.tabulator.min.js +1 -1
  67. package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "pre-push-check": "npm run lint && npm run test",
19
19
  "pwinst": "playwright install chromium"
20
20
  },
21
- "version": "2.3.4",
21
+ "version": "2.3.6",
22
22
  "name": "survey-analytics",
23
23
  "description": "SurveyJS analytics Library.",
24
24
  "main": "survey.analytics.js",
@@ -91,7 +91,7 @@
91
91
  "peerDependencies": {
92
92
  "@types/plotly.js-dist-min": "^2.3.0",
93
93
  "@types/tabulator-tables": "^6.2.3",
94
- "survey-core": "2.3.4"
94
+ "survey-core": "2.3.6"
95
95
  },
96
96
  "husky": {
97
97
  "hooks": {
@@ -70,6 +70,8 @@ export declare var arabicStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var dutchStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var englishStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var farsiStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var finnishStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var frenchStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var germanStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var italianStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var japaneseStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var norwegianStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var plStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var portugueseStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var russianStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var spanishStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var swedishStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -87,6 +87,8 @@ export declare var surveyStrings: {
87
87
  statistics_chart: string;
88
88
  responses: string;
89
89
  visualizer_nps: string;
90
+ visualizer_boolean: string;
91
+ visualizer_options: string;
90
92
  npsScore: string;
91
93
  npsPromoters: string;
92
94
  npsPassives: string;
@@ -129,13 +129,17 @@ export declare abstract class Table {
129
129
  destroy(): void;
130
130
  get isRendered(): boolean;
131
131
  /**
132
- * Vizualization panel state getter.
132
+ * Table state getter.
133
133
  */
134
134
  get state(): ITableState;
135
135
  /**
136
- * Vizualization panel state setter.
136
+ * Table state setter.
137
137
  */
138
138
  set state(newState: ITableState);
139
+ /**
140
+ * Resets table state.
141
+ */
142
+ resetState(): void;
139
143
  private updateColumnsFromData;
140
144
  /**
141
145
  * Fires when table state changed.
@@ -44,15 +44,23 @@ export declare class AlternativeVisualizersWrapper extends VisualizerBase implem
44
44
  *
45
45
  * > This method is overriden in descendant classes.
46
46
  * @see setState
47
+ * @see resetState
47
48
  */
48
49
  getState(): any;
49
50
  /**
50
51
  * Sets the visualizer's state.
51
52
  *
52
- * > This method is overriden in descendant classes.
53
53
  * @see getState
54
+ * @see resetState
54
55
  */
55
56
  setState(state: any): void;
57
+ /**
58
+ * Resets the visualizer's state.
59
+ *
60
+ * @see getState
61
+ * @see setState
62
+ */
63
+ resetState(): void;
56
64
  getValues(): Array<any>;
57
65
  getLabels(): Array<string>;
58
66
  getCalculatedValues(): Promise<Array<Object>>;
@@ -70,6 +70,8 @@ export declare var arabicStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var dutchStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var englishStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var farsiStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var finnishStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var frenchStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var germanStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var italianStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var japaneseStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var norwegianStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var plStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var portugueseStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var russianStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var spanishStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -70,6 +70,8 @@ export declare var swedishStrings: {
70
70
  statistics_chart: string;
71
71
  responses: string;
72
72
  visualizer_nps: string;
73
+ visualizer_boolean: string;
74
+ visualizer_options: string;
73
75
  npsScore: string;
74
76
  npsPromoters: string;
75
77
  npsPassives: string;
@@ -87,6 +87,8 @@ export declare var surveyStrings: {
87
87
  statistics_chart: string;
88
88
  responses: string;
89
89
  visualizer_nps: string;
90
+ visualizer_boolean: string;
91
+ visualizer_options: string;
90
92
  npsScore: string;
91
93
  npsPromoters: string;
92
94
  npsPassives: string;
@@ -24,7 +24,6 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
24
24
  private _showOnlyPercentages;
25
25
  private _percentagePrecision;
26
26
  protected _answersOrder: string;
27
- protected _supportSelection: boolean;
28
27
  private _hideEmptyAnswers;
29
28
  private _topN;
30
29
  static topNValuesDefaults: number[];
@@ -61,6 +60,7 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
61
60
  */
62
61
  get showOnlyPercentages(): boolean;
63
62
  set showOnlyPercentages(val: boolean);
63
+ protected getShowPercentagesDefault(): boolean;
64
64
  /**
65
65
  * Gets and sets whether chart should show values and percentages.
66
66
  */
@@ -113,4 +113,5 @@ export declare class SelectBase extends VisualizerBase implements IVisualizerWit
113
113
  private static _stateProperties;
114
114
  getState(): any;
115
115
  setState(state: any): void;
116
+ resetState(): void;
116
117
  }
@@ -1,9 +1,10 @@
1
1
  import { Question } from "survey-core";
2
2
  import { SelectBase } from "./selectBase";
3
+ import { BooleanModel } from "./boolean";
3
4
  import "./statistics-table.scss";
4
5
  export declare class StatisticsTableAdapter {
5
6
  private model;
6
- constructor(model: StatisticsTable);
7
+ constructor(model: SelectBase);
7
8
  create(container: HTMLElement): Promise<void>;
8
9
  destroy(node: HTMLElement): void;
9
10
  }
@@ -16,3 +17,12 @@ export declare class StatisticsTable extends SelectBase {
16
17
  protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
17
18
  destroy(): void;
18
19
  }
20
+ export declare class StatisticsTableBoolean extends BooleanModel {
21
+ private _statisticsTableAdapter;
22
+ constructor(question: Question, data: Array<{
23
+ [index: string]: any;
24
+ }>, options?: Object, name?: string);
25
+ protected destroyContent(container: HTMLElement): void;
26
+ protected renderContentAsync(container: HTMLElement): Promise<HTMLElement>;
27
+ destroy(): void;
28
+ }
@@ -41,9 +41,9 @@ export declare class VisualizationManager {
41
41
  static unregisterVisualizerForAll(constructor: VisualizerConstructor): void;
42
42
  /**
43
43
  * Returns all visualizer constructors for a specified question type.
44
- * @param questionType A question [type](https://surveyjs.io/form-library/documentation/api-reference/question#getType).
44
+ * @param visualizerType A question [type](https://surveyjs.io/form-library/documentation/api-reference/question#getType).
45
45
  */
46
- static getVisualizersByType(questionType: string): VisualizerConstructor[];
46
+ static getVisualizersByType(visualizerType: string, fallbackVisualizerType?: string): VisualizerConstructor[];
47
47
  /**
48
48
  * Returns a constructor for an alternative visualizer selector.
49
49
  * @see registerAltVisualizerSelector
@@ -119,7 +119,7 @@ export interface IVisualizationPanelOptions {
119
119
  /**
120
120
  * Specifies percentage precision.
121
121
  *
122
- * Default value: 0
122
+ * Default value: 2
123
123
  *
124
124
  * @see allowShowPercentages
125
125
  * @see showPercentages
@@ -432,6 +432,7 @@ export declare class VisualizationPanel extends VisualizerBase {
432
432
  */
433
433
  get state(): IState;
434
434
  set state(newState: IState);
435
+ resetState(): void;
435
436
  get permissions(): IPermission[];
436
437
  set permissions(permissions: IPermission[]);
437
438
  protected getCalculatedValuesCore(): Array<any>;
@@ -74,6 +74,7 @@ export declare class VisualizerBase implements IDataInfo {
74
74
  protected _supportSelection: boolean;
75
75
  protected _chartAdapter: IChartAdapter;
76
76
  static otherCommentCollapsed: boolean;
77
+ protected _footerIsCollapsed: boolean;
77
78
  /**
78
79
  * An event that is raised after the visualizer's content is rendered.
79
80
  *
@@ -263,6 +264,8 @@ export declare class VisualizerBase implements IDataInfo {
263
264
  protected ensureQuestionIsReady(): Promise<void>;
264
265
  protected renderContent(container: HTMLElement): void;
265
266
  protected destroyFooter(container: HTMLElement): void;
267
+ get isFooterCollapsed(): boolean;
268
+ set isFooterCollapsed(newVal: boolean);
266
269
  protected renderFooter(container: HTMLElement): void;
267
270
  /**
268
271
  * Renders the visualizer in a specified container.
@@ -316,6 +319,7 @@ export declare class VisualizerBase implements IDataInfo {
316
319
  *
317
320
  * > This method is overriden in classes descendant from `VisualizerBase`.
318
321
  * @see setState
322
+ * @see resetState
319
323
  * @see onStateChanged
320
324
  */
321
325
  getState(): any;
@@ -326,9 +330,19 @@ export declare class VisualizerBase implements IDataInfo {
326
330
  *
327
331
  * > This method is overriden in classes descendant from `VisualizerBase`.
328
332
  * @see getState
333
+ * @see resetState
329
334
  * @see onStateChanged
330
335
  */
331
336
  setState(state: any): void;
337
+ /**
338
+ * Resets the visualizer's state.
339
+ *
340
+ * > This method is overriden in classes descendant from `VisualizerBase`.
341
+ * @see getState
342
+ * @see setState
343
+ * @see onStateChanged
344
+ */
345
+ resetState(): void;
332
346
  /**
333
347
  * Gets or sets the current locale.
334
348
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.3.4
2
+ * surveyjs - SurveyJS Dashboard library v2.3.6
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */