survey-js-ui 2.3.15 → 2.4.0

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
@@ -1,17 +1,39 @@
1
1
  {
2
2
  "name": "survey-js-ui",
3
- "version": "2.3.15",
4
- "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
3
+ "version": "2.4.0",
4
+ "license": "MIT",
5
+ "description": "A free MIT-licensed UI component that renders dynamic, interactive JSON-based forms and surveys in apps built with HTML, CSS, and JavaScript. You can use it to collect responses from users and send them to your own database.",
6
+ "homepage": "https://surveyjs.io/",
7
+ "author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
5
8
  "keywords": [
6
- "Survey",
7
- "JavaScript",
8
- "Bootstrap",
9
- "Library",
10
- "jquery",
11
- "jquery-plugin"
9
+ "vanilla",
10
+ "vanilla-js",
11
+ "survey",
12
+ "form",
13
+ "surveyjs",
14
+ "survey-library",
15
+ "form-component",
16
+ "form-rendering",
17
+ "survey-renderer",
18
+ "dynamic-form",
19
+ "interactive-form",
20
+ "form-library",
21
+ "form-management",
22
+ "questionnaire",
23
+ "data-collection",
24
+ "data-validation",
25
+ "form-validation",
26
+ "input-validation",
27
+ "ui-component",
28
+ "json",
29
+ "json-schema",
30
+ "schema-form",
31
+ "survey-renderer",
32
+ "client-side",
33
+ "frontend",
34
+ "javascript",
35
+ "typescript"
12
36
  ],
13
- "homepage": "https://surveyjs.io/",
14
- "license": "MIT",
15
37
  "files": [
16
38
  "**/*"
17
39
  ],
@@ -31,7 +53,7 @@
31
53
  },
32
54
  "dependencies": {},
33
55
  "peerDependencies": {
34
- "survey-core": "2.3.15",
56
+ "survey-core": "2.4.0",
35
57
  "@types/react-dom": "*",
36
58
  "@types/react": "*"
37
59
  }
package/survey-js-ui.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.3.15
2
+ * surveyjs - Survey JavaScript library v2.4.0
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
  */
@@ -23,7 +23,7 @@ return /******/ (() => { // webpackBootstrap
23
23
  /***/ (function(module) {
24
24
 
25
25
  /*!
26
- * surveyjs - Survey JavaScript library v2.3.15
26
+ * surveyjs - Survey JavaScript library v2.4.0
27
27
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
28
28
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
29
29
  */
@@ -39,7 +39,7 @@ return /******/ (() => { // webpackBootstrap
39
39
  /*!************************************!*\
40
40
  !*** ./src/images-v1/ sync \.svg$ ***!
41
41
  \************************************/
42
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_870__) => {
42
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_869__) => {
43
43
 
44
44
  var map = {
45
45
  "./ModernBooleanCheckChecked.svg": "./src/images-v1/ModernBooleanCheckChecked.svg",
@@ -108,10 +108,10 @@ var map = {
108
108
 
109
109
  function webpackContext(req) {
110
110
  var id = webpackContextResolve(req);
111
- return __nested_webpack_require_870__(id);
111
+ return __nested_webpack_require_869__(id);
112
112
  }
113
113
  function webpackContextResolve(req) {
114
- if(!__nested_webpack_require_870__.o(map, req)) {
114
+ if(!__nested_webpack_require_869__.o(map, req)) {
115
115
  var e = new Error("Cannot find module '" + req + "'");
116
116
  e.code = 'MODULE_NOT_FOUND';
117
117
  throw e;
@@ -743,7 +743,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
743
743
  /******/ var __webpack_module_cache__ = {};
744
744
  /******/
745
745
  /******/ // The require function
746
- /******/ function __nested_webpack_require_51424__(moduleId) {
746
+ /******/ function __nested_webpack_require_51423__(moduleId) {
747
747
  /******/ // Check if module is in cache
748
748
  /******/ var cachedModule = __webpack_module_cache__[moduleId];
749
749
  /******/ if (cachedModule !== undefined) {
@@ -757,7 +757,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
757
757
  /******/ };
758
758
  /******/
759
759
  /******/ // Execute the module function
760
- /******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_51424__);
760
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_51423__);
761
761
  /******/
762
762
  /******/ // Return the exports of the module
763
763
  /******/ return module.exports;
@@ -767,9 +767,9 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
767
767
  /******/ /* webpack/runtime/define property getters */
768
768
  /******/ (() => {
769
769
  /******/ // define getter functions for harmony exports
770
- /******/ __nested_webpack_require_51424__.d = (exports, definition) => {
770
+ /******/ __nested_webpack_require_51423__.d = (exports, definition) => {
771
771
  /******/ for(var key in definition) {
772
- /******/ if(__nested_webpack_require_51424__.o(definition, key) && !__nested_webpack_require_51424__.o(exports, key)) {
772
+ /******/ if(__nested_webpack_require_51423__.o(definition, key) && !__nested_webpack_require_51423__.o(exports, key)) {
773
773
  /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
774
774
  /******/ }
775
775
  /******/ }
@@ -778,13 +778,13 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
778
778
  /******/
779
779
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
780
780
  /******/ (() => {
781
- /******/ __nested_webpack_require_51424__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
781
+ /******/ __nested_webpack_require_51423__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
782
782
  /******/ })();
783
783
  /******/
784
784
  /******/ /* webpack/runtime/make namespace object */
785
785
  /******/ (() => {
786
786
  /******/ // define __esModule on exports
787
- /******/ __nested_webpack_require_51424__.r = (exports) => {
787
+ /******/ __nested_webpack_require_51423__.r = (exports) => {
788
788
  /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
789
789
  /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
790
790
  /******/ }
@@ -800,13 +800,13 @@ var __nested_webpack_exports__ = {};
800
800
  /*!************************!*\
801
801
  !*** ./src/iconsV1.ts ***!
802
802
  \************************/
803
- __nested_webpack_require_51424__.r(__nested_webpack_exports__);
804
- /* harmony export */ __nested_webpack_require_51424__.d(__nested_webpack_exports__, {
803
+ __nested_webpack_require_51423__.r(__nested_webpack_exports__);
804
+ /* harmony export */ __nested_webpack_require_51423__.d(__nested_webpack_exports__, {
805
805
  /* harmony export */ icons: () => (/* binding */ icons)
806
806
  /* harmony export */ });
807
807
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
808
808
  //@ts-ignore
809
- var path = __nested_webpack_require_51424__("./src/images-v1 sync recursive \\.svg$");
809
+ var path = __nested_webpack_require_51423__("./src/images-v1 sync recursive \\.svg$");
810
810
  var icons = {};
811
811
  path.keys().forEach(function (key) {
812
812
  icons[key.substring(2, key.length - 4).toLowerCase()] = path(key);
@@ -830,7 +830,7 @@ path.keys().forEach(function (key) {
830
830
  /***/ (function(module) {
831
831
 
832
832
  /*!
833
- * surveyjs - Survey JavaScript library v2.3.15
833
+ * surveyjs - Survey JavaScript library v2.4.0
834
834
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
835
835
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
836
836
  */
@@ -846,7 +846,7 @@ return /******/ (() => { // webpackBootstrap
846
846
  /*!************************************!*\
847
847
  !*** ./src/images-v2/ sync \.svg$ ***!
848
848
  \************************************/
849
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_870__) => {
849
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_869__) => {
850
850
 
851
851
  var map = {
852
852
  "./ModernBooleanCheckChecked.svg": "./src/images-v2/ModernBooleanCheckChecked.svg",
@@ -915,10 +915,10 @@ var map = {
915
915
 
916
916
  function webpackContext(req) {
917
917
  var id = webpackContextResolve(req);
918
- return __nested_webpack_require_870__(id);
918
+ return __nested_webpack_require_869__(id);
919
919
  }
920
920
  function webpackContextResolve(req) {
921
- if(!__nested_webpack_require_870__.o(map, req)) {
921
+ if(!__nested_webpack_require_869__.o(map, req)) {
922
922
  var e = new Error("Cannot find module '" + req + "'");
923
923
  e.code = 'MODULE_NOT_FOUND';
924
924
  throw e;
@@ -1550,7 +1550,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
1550
1550
  /******/ var __webpack_module_cache__ = {};
1551
1551
  /******/
1552
1552
  /******/ // The require function
1553
- /******/ function __nested_webpack_require_64536__(moduleId) {
1553
+ /******/ function __nested_webpack_require_64535__(moduleId) {
1554
1554
  /******/ // Check if module is in cache
1555
1555
  /******/ var cachedModule = __webpack_module_cache__[moduleId];
1556
1556
  /******/ if (cachedModule !== undefined) {
@@ -1564,7 +1564,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
1564
1564
  /******/ };
1565
1565
  /******/
1566
1566
  /******/ // Execute the module function
1567
- /******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_64536__);
1567
+ /******/ __webpack_modules__[moduleId](module, module.exports, __nested_webpack_require_64535__);
1568
1568
  /******/
1569
1569
  /******/ // Return the exports of the module
1570
1570
  /******/ return module.exports;
@@ -1574,9 +1574,9 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
1574
1574
  /******/ /* webpack/runtime/define property getters */
1575
1575
  /******/ (() => {
1576
1576
  /******/ // define getter functions for harmony exports
1577
- /******/ __nested_webpack_require_64536__.d = (exports, definition) => {
1577
+ /******/ __nested_webpack_require_64535__.d = (exports, definition) => {
1578
1578
  /******/ for(var key in definition) {
1579
- /******/ if(__nested_webpack_require_64536__.o(definition, key) && !__nested_webpack_require_64536__.o(exports, key)) {
1579
+ /******/ if(__nested_webpack_require_64535__.o(definition, key) && !__nested_webpack_require_64535__.o(exports, key)) {
1580
1580
  /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
1581
1581
  /******/ }
1582
1582
  /******/ }
@@ -1585,13 +1585,13 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
1585
1585
  /******/
1586
1586
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
1587
1587
  /******/ (() => {
1588
- /******/ __nested_webpack_require_64536__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1588
+ /******/ __nested_webpack_require_64535__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
1589
1589
  /******/ })();
1590
1590
  /******/
1591
1591
  /******/ /* webpack/runtime/make namespace object */
1592
1592
  /******/ (() => {
1593
1593
  /******/ // define __esModule on exports
1594
- /******/ __nested_webpack_require_64536__.r = (exports) => {
1594
+ /******/ __nested_webpack_require_64535__.r = (exports) => {
1595
1595
  /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
1596
1596
  /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1597
1597
  /******/ }
@@ -1607,13 +1607,13 @@ var __nested_webpack_exports__ = {};
1607
1607
  /*!************************!*\
1608
1608
  !*** ./src/iconsV2.ts ***!
1609
1609
  \************************/
1610
- __nested_webpack_require_64536__.r(__nested_webpack_exports__);
1611
- /* harmony export */ __nested_webpack_require_64536__.d(__nested_webpack_exports__, {
1610
+ __nested_webpack_require_64535__.r(__nested_webpack_exports__);
1611
+ /* harmony export */ __nested_webpack_require_64535__.d(__nested_webpack_exports__, {
1612
1612
  /* harmony export */ icons: () => (/* binding */ icons)
1613
1613
  /* harmony export */ });
1614
1614
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1615
1615
  //@ts-ignore
1616
- var path = __nested_webpack_require_64536__("./src/images-v2 sync recursive \\.svg$");
1616
+ var path = __nested_webpack_require_64535__("./src/images-v2 sync recursive \\.svg$");
1617
1617
  var icons = {};
1618
1618
  path.keys().forEach(function (key) {
1619
1619
  icons[key.substring(2, key.length - 4).toLowerCase()] = path(key);
@@ -2388,7 +2388,7 @@ var SurveyAction = /** @class */ (function (_super) {
2388
2388
  var itemComponent = _element_factory__WEBPACK_IMPORTED_MODULE_1__.ReactElementFactory.Instance.createElement(this.item.component || "sv-action-bar-item", {
2389
2389
  item: this.item,
2390
2390
  });
2391
- return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: itemClass, id: this.item.id, ref: this.ref },
2391
+ return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: itemClass, id: "" + this.item.uniqueId, ref: this.ref },
2392
2392
  react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { className: "sv-action__content" },
2393
2393
  separator,
2394
2394
  itemComponent)));
@@ -9925,15 +9925,18 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
9925
9925
  var video = this.question.isPlayingVideo ? this.renderVideo() : null;
9926
9926
  var fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
9927
9927
  var fileNavigator = this.question.fileNavigatorVisible ? (react__WEBPACK_IMPORTED_MODULE_0__.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__.SurveyActionBar, { model: this.question.fileNavigator })) : null;
9928
+ var acceptedTypes = this.question.renderedAcceptedTypes;
9929
+ var className = !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss();
9930
+ var style = this.isDisplayMode ? { color: "transparent" } : {};
9928
9931
  var fileInput;
9929
9932
  if (this.question.isReadOnlyAttr) {
9930
- fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { readOnly: true, type: "file", className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: this.question.acceptedTypes });
9933
+ fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { readOnly: true, type: "file", className: className, id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: style, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: acceptedTypes });
9931
9934
  }
9932
9935
  else if (this.question.isDisabledAttr) {
9933
- fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { disabled: true, type: "file", className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: this.question.acceptedTypes });
9936
+ fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { disabled: true, type: "file", className: className, id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: style, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: acceptedTypes });
9934
9937
  }
9935
9938
  else if (this.question.hasFileUI) {
9936
- fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, multiple: this.question.allowMultiple, title: this.question.inputTitle, accept: this.question.acceptedTypes, capture: this.question.renderCapture });
9939
+ fileInput = react__WEBPACK_IMPORTED_MODULE_0__.createElement("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className: className, id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: style, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, multiple: this.question.allowMultiple, title: this.question.inputTitle, accept: acceptedTypes, capture: this.question.renderCapture });
9937
9940
  }
9938
9941
  else {
9939
9942
  fileInput = null;
@@ -13764,7 +13767,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
13764
13767
 
13765
13768
 
13766
13769
 
13767
- (0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.3.15"), "survey-js-ui");
13770
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.4.0"), "survey-js-ui");
13768
13771
 
13769
13772
  })();
13770
13773