survey-analytics 2.0.0-rc.7 → 2.0.0-rc.8

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
@@ -10,14 +10,14 @@
10
10
  "release": "standard-version --message \"Release: %s [azurepipelines skip]\" ",
11
11
  "doc_gen": "node doc_generator/lib_docgenerator.js src/index.ts",
12
12
  "doc_update": "chmod +x ./docupdate_npm.sh && ./docupdate_npm.sh",
13
- "watch:dev": "concurrently \"webpack --env buildType=dev --env emitStyles\" \"webpack --config ./webpack.fesm.js --env buildType=prod --watch\" ",
14
- "build": "webpack --env buildType=dev --env emitNonSourceFiles --env emitStyles && webpack --env buildType=prod --env emitStyles && webpack --config ./webpack.fesm.js --env buildType=prod",
13
+ "watch:dev": "concurrently \"webpack --env buildType=dev --env emitStyles\" \"rollup -c -w\" ",
14
+ "build": "webpack --env buildType=dev --env emitNonSourceFiles --env emitStyles && webpack --env buildType=prod --env emitStyles && rollup -c",
15
15
  "build:types:summary": "tsc --p tsconfig.summary.json && echo \"export * from './survey-analytics.types/entries/summary';\" >> build/survey.analytics.d.ts",
16
16
  "build:types:tabulator": "tsc --p tsconfig.tabulator.json && echo \"export * from './survey-analytics-tabulator.types/entries/tabulator';\" >> build/survey.analytics.tabulator.d.ts",
17
17
  "lint": "eslint ./src --quiet",
18
18
  "pre-push-check": "npm run lint && npm run test"
19
19
  },
20
- "version": "2.0.0-rc.7",
20
+ "version": "2.0.0-rc.8",
21
21
  "name": "survey-analytics",
22
22
  "description": "SurveyJS analytics Library.",
23
23
  "main": "survey.analytics.js",
@@ -46,6 +46,10 @@
46
46
  "tabulator-tables": "^6.2.5"
47
47
  },
48
48
  "devDependencies": {
49
+ "@rollup/plugin-node-resolve": "^16.0.0",
50
+ "@rollup/plugin-commonjs": "^28.0.2",
51
+ "@rollup/plugin-replace": "^6.0.2",
52
+ "@rollup/plugin-typescript": "^12.1.2",
49
53
  "@types/jest": "^26.0.24",
50
54
  "@types/jquery": "3.3.29",
51
55
  "@types/node": "7.0.4",
@@ -65,6 +69,8 @@
65
69
  "node-uuid": "1.4.7",
66
70
  "puppeteer": "22.13.1",
67
71
  "replace-in-file": "^6.3.2",
72
+ "rollup": "^4.34.8",
73
+ "rollup-plugin-license": "^3.6.0",
68
74
  "sass": "^1.62.1",
69
75
  "sass-loader": "^16.0.4",
70
76
  "standard-version": "^9.5.0",
@@ -83,7 +89,7 @@
83
89
  "peerDependencies": {
84
90
  "@types/plotly.js-dist-min": "^2.3.0",
85
91
  "@types/tabulator-tables": "^6.2.3",
86
- "survey-core": "2.0.0-rc.7"
92
+ "survey-core": "2.0.0-rc.8"
87
93
  },
88
94
  "husky": {
89
95
  "hooks": {
@@ -2,6 +2,7 @@ import { GetDataFn, ITableOptions, Table, TableRow } from "./table";
2
2
  import { SurveyModel } from "survey-core";
3
3
  import { IColumnData, QuestionLocation } from "./config";
4
4
  import type { DownloadType, SortDirection, TabulatorFull } from "tabulator-tables";
5
+ import "./tabulator.scss";
5
6
  interface ITabulatorOptions extends ITableOptions {
6
7
  tabulatorOptions?: any;
7
8
  downloadHiddenColumns?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { Question } from "survey-core";
2
2
  import { SelectBase } from "./selectBase";
3
+ import "./statistics-table.scss";
3
4
  export declare class StatisticsTableAdapter {
4
5
  private model;
5
6
  constructor(model: StatisticsTable);
@@ -1,5 +1,6 @@
1
1
  import { Question } from "survey-core";
2
2
  import { VisualizerBase } from "./visualizerBase";
3
+ import "./text.scss";
3
4
  export declare class TextTableAdapter {
4
5
  private model;
5
6
  constructor(model: Text);
@@ -4,6 +4,7 @@ import { AlternativeVisualizersWrapper } from "./alternativeVizualizersWrapper";
4
4
  import { IVisualizerPanelElement, IState, IPermission } from "./config";
5
5
  import { LayoutEngine } from "./layoutEngine";
6
6
  import { DataProvider } from "./dataProvider";
7
+ import "./visualizationPanel.scss";
7
8
  export interface IVisualizerPanelRenderedElement extends IVisualizerPanelElement {
8
9
  renderedElement?: HTMLElement;
9
10
  }
@@ -1,6 +1,7 @@
1
1
  import { Question } from "survey-core";
2
2
  import { DataProvider, GetDataFn } from "./dataProvider";
3
3
  import { Event } from "survey-core";
4
+ import "./visualizerBase.scss";
4
5
  export interface IDataInfo {
5
6
  name: string;
6
7
  dataNames: Array<string>;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.7
2
+ * surveyjs - SurveyJS Dashboard library v2.0.0-rc.8
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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS Dashboard library v2.0.0-rc.7
2
+ * surveyjs - SurveyJS Dashboard library v2.0.0-rc.8
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
  */
@@ -8957,6 +8957,29 @@ var HistogramModel = /** @class */ (function (_super) {
8957
8957
 
8958
8958
 
8959
8959
 
8960
+ /***/ }),
8961
+
8962
+ /***/ "./src/icons.ts":
8963
+ /*!**********************!*\
8964
+ !*** ./src/icons.ts ***!
8965
+ \**********************/
8966
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
8967
+
8968
+ "use strict";
8969
+ __webpack_require__.r(__webpack_exports__);
8970
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8971
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8972
+ /* harmony export */ });
8973
+ function getIconsData(path) {
8974
+ var icons = {};
8975
+ path.keys().forEach(function (key) {
8976
+ icons[key.substring(2, key.length - 4).toLowerCase()] = path(key);
8977
+ });
8978
+ return icons;
8979
+ }
8980
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (getIconsData(__webpack_require__("./src/images sync recursive \\.svg$")));
8981
+
8982
+
8960
8983
  /***/ }),
8961
8984
 
8962
8985
  /***/ "./src/layoutEngine.ts":
@@ -8972,8 +8995,10 @@ __webpack_require__.r(__webpack_exports__);
8972
8995
  /* harmony export */ MuuriLayoutEngine: () => (/* binding */ MuuriLayoutEngine)
8973
8996
  /* harmony export */ });
8974
8997
  /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/utils/helpers.ts");
8998
+ /* harmony import */ var muuri__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! muuri */ "./node_modules/muuri/dist/muuri.js");
8999
+ /* harmony import */ var muuri__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(muuri__WEBPACK_IMPORTED_MODULE_1__);
9000
+
8975
9001
 
8976
- var Muuri = __webpack_require__(/*! muuri */ "./node_modules/muuri/dist/muuri.js");
8977
9002
  /**
8978
9003
  * A base class used to implement custom layout engines or integrate third-party layout engines with SurveyJS Dashboard.
8979
9004
  */
@@ -9038,7 +9063,7 @@ var MuuriLayoutEngine = /** @class */ (function (_super) {
9038
9063
  }
9039
9064
  MuuriLayoutEngine.prototype.startCore = function (container) {
9040
9065
  var _this = this;
9041
- this._muuri = new Muuri(container, {
9066
+ this._muuri = new (muuri__WEBPACK_IMPORTED_MODULE_1___default())(container, {
9042
9067
  dragStartPredicate: {
9043
9068
  handle: ".sa-question__title--draggable",
9044
9069
  },
@@ -11558,12 +11583,13 @@ __webpack_require__.r(__webpack_exports__);
11558
11583
  /* harmony import */ var _visualizationManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./visualizationManager */ "./src/visualizationManager.ts");
11559
11584
  /* harmony import */ var _localizationManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./localizationManager */ "./src/localizationManager.ts");
11560
11585
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./src/utils/index.ts");
11586
+ /* harmony import */ var _statistics_table_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./statistics-table.scss */ "./src/statistics-table.scss");
11587
+
11561
11588
 
11562
11589
 
11563
11590
 
11564
11591
 
11565
11592
 
11566
- var styles = __webpack_require__(/*! ./statistics-table.scss */ "./src/statistics-table.scss");
11567
11593
  var StatisticsTableAdapter = /** @class */ (function () {
11568
11594
  function StatisticsTableAdapter(model) {
11569
11595
  this.model = model;
@@ -11698,13 +11724,10 @@ __webpack_require__.r(__webpack_exports__);
11698
11724
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11699
11725
  /* harmony export */ svgTemplate: () => (/* binding */ svgTemplate)
11700
11726
  /* harmony export */ });
11701
- function getIconsData(path) {
11702
- var icons = {};
11703
- path.keys().forEach(function (key) {
11704
- icons[key.substring(2, key.length - 4).toLowerCase()] = path(key);
11705
- });
11706
- return icons;
11707
- }
11727
+ /* harmony import */ var icons__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! icons */ "./src/icons.ts");
11728
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
11729
+ //@ts-ignore
11730
+
11708
11731
  var iconPrefix = "sa-svg-";
11709
11732
  function getIconSymbolTemplate(iconId, iconSvg) {
11710
11733
  var startStr = "<svg ";
@@ -11719,8 +11742,7 @@ function getIconSymbolTemplate(iconId, iconSvg) {
11719
11742
  "</symbol>";
11720
11743
  }
11721
11744
  }
11722
- var iconsData = getIconsData(__webpack_require__("./src/images sync recursive \\.svg$"));
11723
- var iconsHtml = Object.keys(iconsData).map(function (iconId) { return getIconSymbolTemplate(iconId, iconsData[iconId]); });
11745
+ var iconsHtml = Object.keys(icons__WEBPACK_IMPORTED_MODULE_0__["default"]).map(function (iconId) { return getIconSymbolTemplate(iconId, icons__WEBPACK_IMPORTED_MODULE_0__["default"][iconId]); });
11724
11746
  var svgTemplate = "<svg style=\"display:none;\">".concat(iconsHtml, "<svg>");
11725
11747
 
11726
11748
 
@@ -11744,12 +11766,13 @@ __webpack_require__.r(__webpack_exports__);
11744
11766
  /* harmony import */ var _visualizationManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./visualizationManager */ "./src/visualizationManager.ts");
11745
11767
  /* harmony import */ var _localizationManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./localizationManager */ "./src/localizationManager.ts");
11746
11768
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./src/utils/index.ts");
11769
+ /* harmony import */ var _text_scss__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./text.scss */ "./src/text.scss");
11770
+
11747
11771
 
11748
11772
 
11749
11773
 
11750
11774
 
11751
11775
 
11752
- var styles = __webpack_require__(/*! ./text.scss */ "./src/text.scss");
11753
11776
  var TextTableAdapter = /** @class */ (function () {
11754
11777
  function TextTableAdapter(model) {
11755
11778
  this.model = model;
@@ -12570,6 +12593,8 @@ __webpack_require__.r(__webpack_exports__);
12570
12593
  /* harmony import */ var _filterInfo__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./filterInfo */ "./src/filterInfo.ts");
12571
12594
  /* harmony import */ var _layoutEngine__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./layoutEngine */ "./src/layoutEngine.ts");
12572
12595
  /* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./svgbundle */ "./src/svgbundle.ts");
12596
+ /* harmony import */ var _visualizationPanel_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./visualizationPanel.scss */ "./src/visualizationPanel.scss");
12597
+
12573
12598
 
12574
12599
 
12575
12600
 
@@ -12581,7 +12606,6 @@ __webpack_require__.r(__webpack_exports__);
12581
12606
 
12582
12607
 
12583
12608
 
12584
- __webpack_require__(/*! ./visualizationPanel.scss */ "./src/visualizationPanel.scss");
12585
12609
  var questionElementClassName = "sa-question";
12586
12610
  var questionLayoutedElementClassName = "sa-question-layouted";
12587
12611
  if (!!document) {
@@ -13412,6 +13436,8 @@ __webpack_require__.r(__webpack_exports__);
13412
13436
  /* harmony import */ var _visualizerFactory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./visualizerFactory */ "./src/visualizerFactory.ts");
13413
13437
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./src/utils/index.ts");
13414
13438
  /* harmony import */ var _localizationManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./localizationManager */ "./src/localizationManager.ts");
13439
+ /* harmony import */ var _visualizerBase_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./visualizerBase.scss */ "./src/visualizerBase.scss");
13440
+
13415
13441
 
13416
13442
 
13417
13443
 
@@ -13419,7 +13445,6 @@ __webpack_require__.r(__webpack_exports__);
13419
13445
 
13420
13446
 
13421
13447
 
13422
- var styles = __webpack_require__(/*! ./visualizerBase.scss */ "./src/visualizerBase.scss");
13423
13448
  /**
13424
13449
  * A base object for all visualizers. Use it to implement a custom visualizer.
13425
13450
  *