survey-creator-core 1.12.19 → 1.12.21
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +2 -2
- package/survey-creator-core.fontless.css +1 -1
- package/survey-creator-core.fontless.min.css +1 -1
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +30 -14
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +2 -2
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js.LICENSE.txt +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/typings/components/action-container-view-model.d.ts +1 -0
- package/typings/creator-base.d.ts +1 -0
- package/typings/creator-settings.d.ts +1 -27
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.12.
|
|
2
|
+
* SurveyJS Creator v1.12.21
|
|
3
3
|
* (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -4784,6 +4784,12 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
4784
4784
|
_this.updateActionsProperties();
|
|
4785
4785
|
}
|
|
4786
4786
|
};
|
|
4787
|
+
_this.creatorOnLocaleChanged = function (_, options) {
|
|
4788
|
+
if (_this.surveyElement) {
|
|
4789
|
+
_this.updateActionsContainer(_this.surveyElement);
|
|
4790
|
+
_this.updateActionsProperties();
|
|
4791
|
+
}
|
|
4792
|
+
};
|
|
4787
4793
|
_this.expandCollapseAction = _this.getExpandCollapseAction();
|
|
4788
4794
|
_this.createActionContainers();
|
|
4789
4795
|
_this.attachToUI(surveyElement);
|
|
@@ -5009,6 +5015,7 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
5009
5015
|
}
|
|
5010
5016
|
if (this.surveyElement != surveyElement) {
|
|
5011
5017
|
this.setSurveyElement(surveyElement);
|
|
5018
|
+
this.creator.onLocaleChanded.add(this.creatorOnLocaleChanged);
|
|
5012
5019
|
this.creator.sidebar.onPropertyChanged.add(this.sidebarFlyoutModeChangedFunc);
|
|
5013
5020
|
this.creator.expandCollapseManager.add(this);
|
|
5014
5021
|
}
|
|
@@ -5022,6 +5029,7 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
5022
5029
|
this.rootElement = undefined;
|
|
5023
5030
|
this.detachOnlyMyElement();
|
|
5024
5031
|
this.surveyElement = undefined;
|
|
5032
|
+
this.creator.onLocaleChanded.remove(this.creatorOnLocaleChanged);
|
|
5025
5033
|
this.creator.sidebar.onPropertyChanged.remove(this.sidebarFlyoutModeChangedFunc);
|
|
5026
5034
|
this.creator.expandCollapseManager.remove(this);
|
|
5027
5035
|
};
|
|
@@ -23172,6 +23180,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23172
23180
|
* Default value: `true`
|
|
23173
23181
|
*/
|
|
23174
23182
|
_this.showErrorOnFailedSave = true;
|
|
23183
|
+
_this.onLocaleChanded = _this.addCreatorEvent();
|
|
23175
23184
|
/**
|
|
23176
23185
|
* An event that is raised before the [active tab](#activeTab) is switched. Use this event to allow or cancel the switch.
|
|
23177
23186
|
* @see makeNewViewActive
|
|
@@ -23770,6 +23779,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23770
23779
|
_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.editorLocalization.currentLocale = value;
|
|
23771
23780
|
this.setPropertyValue("locale", value);
|
|
23772
23781
|
this.updateLocalizedStrings();
|
|
23782
|
+
this.onLocaleChanded.fire(this, { locale: value });
|
|
23773
23783
|
},
|
|
23774
23784
|
enumerable: false,
|
|
23775
23785
|
configurable: true
|
|
@@ -34056,7 +34066,7 @@ var ConditionEditorItemsBuilder = /** @class */ (function () {
|
|
|
34056
34066
|
function questionValueVisibleIf(params) {
|
|
34057
34067
|
if (params.length !== 2)
|
|
34058
34068
|
return false;
|
|
34059
|
-
if (
|
|
34069
|
+
if (survey_core__WEBPACK_IMPORTED_MODULE_1__.Helpers.isValueEmpty(params[0]) || !params[1])
|
|
34060
34070
|
return false;
|
|
34061
34071
|
return params[1] !== "empty" && params[1] !== "notempty";
|
|
34062
34072
|
}
|
|
@@ -35323,18 +35333,24 @@ var FastEntryEditor = /** @class */ (function (_super) {
|
|
|
35323
35333
|
};
|
|
35324
35334
|
FastEntryEditor.prototype.applyItemValueArray = function (dest, src, names) {
|
|
35325
35335
|
if (names === void 0) { names = []; }
|
|
35326
|
-
|
|
35327
|
-
|
|
35328
|
-
|
|
35329
|
-
|
|
35336
|
+
if (!Array.isArray(src))
|
|
35337
|
+
src = [];
|
|
35338
|
+
var _loop_1 = function (i) {
|
|
35339
|
+
var item = survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue.getItemByValue(dest, src[i].value);
|
|
35340
|
+
if (item) {
|
|
35341
|
+
item.text = src[i].text;
|
|
35342
|
+
names.forEach(function (name) {
|
|
35343
|
+
if (name == "value" || name == "text")
|
|
35344
|
+
return;
|
|
35345
|
+
dest[i][name] = src[i][name];
|
|
35346
|
+
});
|
|
35347
|
+
src.splice(i, 1, item);
|
|
35330
35348
|
}
|
|
35331
|
-
|
|
35332
|
-
|
|
35333
|
-
|
|
35334
|
-
return;
|
|
35335
|
-
dest[i][name] = src[i][name];
|
|
35336
|
-
});
|
|
35349
|
+
};
|
|
35350
|
+
for (var i = 0; i < src.length; i++) {
|
|
35351
|
+
_loop_1(i);
|
|
35337
35352
|
}
|
|
35353
|
+
dest.splice.apply(dest, [0, dest.length].concat(src));
|
|
35338
35354
|
};
|
|
35339
35355
|
FastEntryEditor.prototype.convertItemValuesToText = function () {
|
|
35340
35356
|
var _this = this;
|
|
@@ -46148,7 +46164,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46148
46164
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
46149
46165
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_98__);
|
|
46150
46166
|
var Version;
|
|
46151
|
-
Version = "".concat("1.12.
|
|
46167
|
+
Version = "".concat("1.12.21");
|
|
46152
46168
|
//should be loaded before other styles for easier override
|
|
46153
46169
|
__webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
|
|
46154
46170
|
|
|
@@ -46271,7 +46287,7 @@ __webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
|
46271
46287
|
__webpack_require__(/*! ../custom-questions/boolean-switch.scss */ "./src/custom-questions/boolean-switch.scss");
|
|
46272
46288
|
|
|
46273
46289
|
survey_core__WEBPACK_IMPORTED_MODULE_98__.settings.supportCreatorV2 = true;
|
|
46274
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.
|
|
46290
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.21"), "survey-creator-core");
|
|
46275
46291
|
|
|
46276
46292
|
})();
|
|
46277
46293
|
|