survey-js-ui 2.3.16 → 2.4.1
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/fesm/survey-js-ui.mjs +10 -7
- package/fesm/survey-js-ui.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-js-ui.js +39 -32
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +1 -1
- package/survey-js-ui.min.js.LICENSE.txt +1 -1
- package/typings/survey-react-ui/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-js-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"license": "MIT",
|
|
5
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
6
|
"homepage": "https://surveyjs.io/",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"survey-core": "2.
|
|
56
|
+
"survey-core": "2.4.1",
|
|
57
57
|
"@types/react-dom": "*",
|
|
58
58
|
"@types/react": "*"
|
|
59
59
|
}
|
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.4.1
|
|
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.
|
|
26
|
+
* surveyjs - Survey JavaScript library v2.4.1
|
|
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,
|
|
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
|
|
111
|
+
return __nested_webpack_require_869__(id);
|
|
112
112
|
}
|
|
113
113
|
function webpackContextResolve(req) {
|
|
114
|
-
if(!
|
|
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
|
|
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,
|
|
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
|
-
/******/
|
|
770
|
+
/******/ __nested_webpack_require_51423__.d = (exports, definition) => {
|
|
771
771
|
/******/ for(var key in definition) {
|
|
772
|
-
/******/ if(
|
|
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
|
-
/******/
|
|
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
|
-
/******/
|
|
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
|
-
|
|
804
|
-
/* harmony export */
|
|
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 =
|
|
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.
|
|
833
|
+
* surveyjs - Survey JavaScript library v2.4.1
|
|
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,
|
|
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
|
|
918
|
+
return __nested_webpack_require_869__(id);
|
|
919
919
|
}
|
|
920
920
|
function webpackContextResolve(req) {
|
|
921
|
-
if(!
|
|
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
|
|
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,
|
|
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
|
-
/******/
|
|
1577
|
+
/******/ __nested_webpack_require_64535__.d = (exports, definition) => {
|
|
1578
1578
|
/******/ for(var key in definition) {
|
|
1579
|
-
/******/ if(
|
|
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
|
-
/******/
|
|
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
|
-
/******/
|
|
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
|
-
|
|
1611
|
-
/* harmony export */
|
|
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 =
|
|
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.
|
|
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)));
|
|
@@ -3893,8 +3893,16 @@ var SurveyQuestionMatrixDynamicDragDropIcon = /** @class */ (function (_super) {
|
|
|
3893
3893
|
enumerable: false,
|
|
3894
3894
|
configurable: true
|
|
3895
3895
|
});
|
|
3896
|
+
Object.defineProperty(SurveyQuestionMatrixDynamicDragDropIcon.prototype, "row", {
|
|
3897
|
+
get: function () {
|
|
3898
|
+
return this.props.item.data.row;
|
|
3899
|
+
},
|
|
3900
|
+
enumerable: false,
|
|
3901
|
+
configurable: true
|
|
3902
|
+
});
|
|
3896
3903
|
SurveyQuestionMatrixDynamicDragDropIcon.prototype.renderElement = function () {
|
|
3897
|
-
|
|
3904
|
+
var _this = this;
|
|
3905
|
+
return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { onPointerDown: function (event) { _this.question.onPointerDown(event.nativeEvent, _this.row); } }, this.renderIcon());
|
|
3898
3906
|
};
|
|
3899
3907
|
SurveyQuestionMatrixDynamicDragDropIcon.prototype.renderIcon = function () {
|
|
3900
3908
|
if (this.question.iconDragElement) {
|
|
@@ -4070,11 +4078,10 @@ var MatrixRow = /** @class */ (function (_super) {
|
|
|
4070
4078
|
return true;
|
|
4071
4079
|
};
|
|
4072
4080
|
MatrixRow.prototype.render = function () {
|
|
4073
|
-
var _this = this;
|
|
4074
4081
|
var model = this.model;
|
|
4075
4082
|
if (!model.visible)
|
|
4076
4083
|
return null;
|
|
4077
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", { ref: this.root, className: model.className, "data-sv-drop-target-matrix-row": model.dropTargetId
|
|
4084
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr", { ref: this.root, className: model.className, "data-sv-drop-target-matrix-row": model.dropTargetId }, this.props.children));
|
|
4078
4085
|
};
|
|
4079
4086
|
return MatrixRow;
|
|
4080
4087
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
@@ -13767,7 +13774,7 @@ var preact = react__WEBPACK_IMPORTED_MODULE_0__;
|
|
|
13767
13774
|
|
|
13768
13775
|
|
|
13769
13776
|
|
|
13770
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.
|
|
13777
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_2__.checkLibraryVersion)("".concat("2.4.1"), "survey-js-ui");
|
|
13771
13778
|
|
|
13772
13779
|
})();
|
|
13773
13780
|
|