survey-core 1.11.1 → 1.11.2
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/defaultV2.css +24 -10
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +24 -10
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/philippines.js +1 -1
- package/i18n/philippines.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/modern.css +1 -1
- package/modern.css.map +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +56 -30
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/questionfactory.d.ts +5 -3
- package/ts3.4/typings/survey-events-api.d.ts +12 -0
- package/ts3.4/typings/survey.d.ts +6 -2
- package/typings/questionfactory.d.ts +5 -3
- package/typings/survey-events-api.d.ts +12 -0
- package/typings/survey.d.ts +6 -2
package/modern.fontless.min.css
CHANGED
package/modern.min.css
CHANGED
package/package.json
CHANGED
package/survey.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.11.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.11.2
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -9785,8 +9785,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9785
9785
|
|
|
9786
9786
|
var Version;
|
|
9787
9787
|
var ReleaseDate;
|
|
9788
|
-
Version = "" + "1.11.
|
|
9789
|
-
ReleaseDate = "" + "2024-06-
|
|
9788
|
+
Version = "" + "1.11.2";
|
|
9789
|
+
ReleaseDate = "" + "2024-06-11";
|
|
9790
9790
|
function checkLibraryVersion(ver, libraryName) {
|
|
9791
9791
|
if (Version != ver) {
|
|
9792
9792
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
|
@@ -56732,8 +56732,9 @@ var QuestionFactory = /** @class */ (function () {
|
|
|
56732
56732
|
enumerable: false,
|
|
56733
56733
|
configurable: true
|
|
56734
56734
|
});
|
|
56735
|
-
QuestionFactory.prototype.registerQuestion = function (questionType, questionCreator) {
|
|
56736
|
-
|
|
56735
|
+
QuestionFactory.prototype.registerQuestion = function (questionType, questionCreator, showInToolbox) {
|
|
56736
|
+
if (showInToolbox === void 0) { showInToolbox = true; }
|
|
56737
|
+
ElementFactory.Instance.registerElement(questionType, questionCreator, showInToolbox);
|
|
56737
56738
|
};
|
|
56738
56739
|
QuestionFactory.prototype.registerCustomQuestion = function (questionType) {
|
|
56739
56740
|
ElementFactory.Instance.registerCustomQuestion(questionType);
|
|
@@ -56759,18 +56760,20 @@ var ElementFactory = /** @class */ (function () {
|
|
|
56759
56760
|
function ElementFactory() {
|
|
56760
56761
|
var _this = this;
|
|
56761
56762
|
this.creatorHash = {};
|
|
56762
|
-
this.registerCustomQuestion = function (questionType) {
|
|
56763
|
+
this.registerCustomQuestion = function (questionType, showInToolbox) {
|
|
56764
|
+
if (showInToolbox === void 0) { showInToolbox = true; }
|
|
56763
56765
|
var creator = function (name) {
|
|
56764
56766
|
var el = _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass(questionType);
|
|
56765
56767
|
if (!!el)
|
|
56766
56768
|
el.name = name;
|
|
56767
56769
|
return el;
|
|
56768
56770
|
};
|
|
56769
|
-
_this.registerElement(questionType, creator);
|
|
56771
|
+
_this.registerElement(questionType, creator, showInToolbox);
|
|
56770
56772
|
};
|
|
56771
56773
|
}
|
|
56772
|
-
ElementFactory.prototype.registerElement = function (elementType, elementCreator) {
|
|
56773
|
-
|
|
56774
|
+
ElementFactory.prototype.registerElement = function (elementType, elementCreator, showInToolbox) {
|
|
56775
|
+
if (showInToolbox === void 0) { showInToolbox = true; }
|
|
56776
|
+
this.creatorHash[elementType] = { showInToolbox: showInToolbox, creator: elementCreator };
|
|
56774
56777
|
};
|
|
56775
56778
|
ElementFactory.prototype.clear = function () {
|
|
56776
56779
|
this.creatorHash = {};
|
|
@@ -56782,22 +56785,30 @@ var ElementFactory = /** @class */ (function () {
|
|
|
56782
56785
|
_jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].removeClass(elementType);
|
|
56783
56786
|
}
|
|
56784
56787
|
};
|
|
56788
|
+
ElementFactory.prototype.getAllToolboxTypes = function () {
|
|
56789
|
+
return this.getAllTypesCore(true);
|
|
56790
|
+
};
|
|
56785
56791
|
ElementFactory.prototype.getAllTypes = function () {
|
|
56786
|
-
|
|
56787
|
-
for (var key in this.creatorHash) {
|
|
56788
|
-
result.push(key);
|
|
56789
|
-
}
|
|
56790
|
-
return result.sort();
|
|
56792
|
+
return this.getAllTypesCore(false);
|
|
56791
56793
|
};
|
|
56792
56794
|
ElementFactory.prototype.createElement = function (elementType, name) {
|
|
56793
|
-
var
|
|
56794
|
-
if (!!creator)
|
|
56795
|
-
return creator(name);
|
|
56795
|
+
var item = this.creatorHash[elementType];
|
|
56796
|
+
if (!!item && !!item.creator)
|
|
56797
|
+
return item.creator(name);
|
|
56796
56798
|
var compJSON = _question_custom__WEBPACK_IMPORTED_MODULE_2__["ComponentCollection"].Instance.getCustomQuestionByName(elementType);
|
|
56797
56799
|
if (!!compJSON)
|
|
56798
56800
|
return _question_custom__WEBPACK_IMPORTED_MODULE_2__["ComponentCollection"].Instance.createQuestion(name, compJSON);
|
|
56799
56801
|
return null;
|
|
56800
56802
|
};
|
|
56803
|
+
ElementFactory.prototype.getAllTypesCore = function (showInToolboxOnly) {
|
|
56804
|
+
var result = new Array();
|
|
56805
|
+
for (var key in this.creatorHash) {
|
|
56806
|
+
if (!showInToolboxOnly || this.creatorHash[key].showInToolbox) {
|
|
56807
|
+
result.push(key);
|
|
56808
|
+
}
|
|
56809
|
+
}
|
|
56810
|
+
return result.sort();
|
|
56811
|
+
};
|
|
56801
56812
|
ElementFactory.Instance = new ElementFactory();
|
|
56802
56813
|
return ElementFactory;
|
|
56803
56814
|
}());
|
|
@@ -60432,6 +60443,8 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
60432
60443
|
* An event that is raised after the visibility of a popup is changed. This event can be raised for [Single-](https://surveyjs.io/form-library/documentation/api-reference/dropdown-menu-model) and [Multi-Select Dropdown](https://surveyjs.io/form-library/documentation/api-reference/dropdown-tag-box-model) questions and [Rating](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model) questions [rendered as drop-down menus](https://surveyjs.io/form-library/documentation/api-reference/rating-scale-question-model#displayMode).
|
|
60433
60444
|
*/
|
|
60434
60445
|
_this.onPopupVisibleChanged = _this.addEvent();
|
|
60446
|
+
_this.onElementWrapperComponentName = _this.addEvent();
|
|
60447
|
+
_this.onElementWrapperComponentData = _this.addEvent();
|
|
60435
60448
|
/**
|
|
60436
60449
|
* A list of errors in a survey JSON schema.
|
|
60437
60450
|
* @see ensureUniqueNames
|
|
@@ -67693,32 +67706,45 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
67693
67706
|
}
|
|
67694
67707
|
}
|
|
67695
67708
|
};
|
|
67709
|
+
SurveyModel.prototype.elementWrapperComponentNameCore = function (componentName, element, wrapperName, reason, item) {
|
|
67710
|
+
if (this.onElementWrapperComponentName.isEmpty)
|
|
67711
|
+
return componentName;
|
|
67712
|
+
var options = { componentName: componentName, element: element, wrapperName: wrapperName, reason: reason, item: item };
|
|
67713
|
+
this.onElementWrapperComponentName.fire(this, options);
|
|
67714
|
+
return options.componentName;
|
|
67715
|
+
};
|
|
67716
|
+
SurveyModel.prototype.elementWrapperDataCore = function (data, element, wrapperName, reason, item) {
|
|
67717
|
+
if (this.onElementWrapperComponentData.isEmpty)
|
|
67718
|
+
return data;
|
|
67719
|
+
var options = { data: data, element: element, wrapperName: wrapperName, reason: reason, item: item };
|
|
67720
|
+
this.onElementWrapperComponentData.fire(this, options);
|
|
67721
|
+
return options.data;
|
|
67722
|
+
};
|
|
67696
67723
|
SurveyModel.prototype.getElementWrapperComponentName = function (element, reason) {
|
|
67697
|
-
|
|
67698
|
-
|
|
67699
|
-
}
|
|
67700
|
-
return SurveyModel.TemplateRendererComponentName;
|
|
67724
|
+
var res = reason === "logo-image" ? "sv-logo-image" : SurveyModel.TemplateRendererComponentName;
|
|
67725
|
+
return this.elementWrapperComponentNameCore(res, element, "component", reason);
|
|
67701
67726
|
};
|
|
67702
67727
|
SurveyModel.prototype.getQuestionContentWrapperComponentName = function (element) {
|
|
67703
|
-
return SurveyModel.TemplateRendererComponentName;
|
|
67728
|
+
return this.elementWrapperComponentNameCore(SurveyModel.TemplateRendererComponentName, element, "content-component");
|
|
67704
67729
|
};
|
|
67705
67730
|
SurveyModel.prototype.getRowWrapperComponentName = function (row) {
|
|
67706
|
-
return SurveyModel.TemplateRendererComponentName;
|
|
67731
|
+
return this.elementWrapperComponentNameCore(SurveyModel.TemplateRendererComponentName, row, "row");
|
|
67732
|
+
};
|
|
67733
|
+
SurveyModel.prototype.getItemValueWrapperComponentName = function (item, question) {
|
|
67734
|
+
return this.elementWrapperComponentNameCore(SurveyModel.TemplateRendererComponentName, question, "itemvalue", undefined, item);
|
|
67707
67735
|
};
|
|
67708
67736
|
SurveyModel.prototype.getElementWrapperComponentData = function (element, reason) {
|
|
67709
|
-
return element;
|
|
67737
|
+
return this.elementWrapperDataCore(element, element, "component", reason);
|
|
67710
67738
|
};
|
|
67711
67739
|
SurveyModel.prototype.getRowWrapperComponentData = function (row) {
|
|
67712
|
-
return row;
|
|
67713
|
-
};
|
|
67714
|
-
SurveyModel.prototype.getItemValueWrapperComponentName = function (item, question) {
|
|
67715
|
-
return SurveyModel.TemplateRendererComponentName;
|
|
67740
|
+
return this.elementWrapperDataCore(row, row, "row");
|
|
67716
67741
|
};
|
|
67717
67742
|
SurveyModel.prototype.getItemValueWrapperComponentData = function (item, question) {
|
|
67718
|
-
return item;
|
|
67743
|
+
return this.elementWrapperDataCore(item, question, "itemvalue", undefined, item);
|
|
67719
67744
|
};
|
|
67720
67745
|
SurveyModel.prototype.getMatrixCellTemplateData = function (cell) {
|
|
67721
|
-
|
|
67746
|
+
var res = cell.question;
|
|
67747
|
+
return this.elementWrapperDataCore(res, res, "cell");
|
|
67722
67748
|
};
|
|
67723
67749
|
SurveyModel.prototype.searchText = function (text) {
|
|
67724
67750
|
if (!!text)
|