survey-creator-core 1.9.86 → 1.9.87

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.
@@ -1,19 +1,19 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.86
2
+ * SurveyJS Creator v1.9.87
3
3
  * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
6
6
  */
7
7
  (function webpackUniversalModuleDefinition(root, factory) {
8
8
  if(typeof exports === 'object' && typeof module === 'object')
9
- module.exports = factory(require("survey-core"), require("survey-creator-core"));
9
+ module.exports = factory(require("survey-creator-core"));
10
10
  else if(typeof define === 'function' && define.amd)
11
- define("SurveyCreatorLocales", ["survey-core", "survey-creator-core"], factory);
11
+ define("SurveyCreatorLocales", ["survey-creator-core"], factory);
12
12
  else if(typeof exports === 'object')
13
- exports["SurveyCreatorLocales"] = factory(require("survey-core"), require("survey-creator-core"));
13
+ exports["SurveyCreatorLocales"] = factory(require("survey-creator-core"));
14
14
  else
15
- root["SurveyCreatorLocales"] = factory(root["Survey"], root["SurveyCreatorCore"]);
16
- })(this, function(__WEBPACK_EXTERNAL_MODULE_survey_core__, __WEBPACK_EXTERNAL_MODULE_survey_creator_core__) {
15
+ root["SurveyCreatorLocales"] = factory(root["SurveyCreatorCore"]);
16
+ })(this, function(__WEBPACK_EXTERNAL_MODULE_survey_creator_core__) {
17
17
  return /******/ (function(modules) { // webpackBootstrap
18
18
  /******/ // The module cache
19
19
  /******/ var installedModules = {};
@@ -102,530 +102,6 @@ return /******/ (function(modules) { // webpackBootstrap
102
102
  /************************************************************************/
103
103
  /******/ ({
104
104
 
105
- /***/ "./src/creator-settings.ts":
106
- /*!*********************************!*\
107
- !*** ./src/creator-settings.ts ***!
108
- \*********************************/
109
- /*! exports provided: QuestionConvertMode, settings, EmptySurveyCreatorOptions */
110
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
111
-
112
- "use strict";
113
- __webpack_require__.r(__webpack_exports__);
114
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionConvertMode", function() { return QuestionConvertMode; });
115
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
116
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptySurveyCreatorOptions", function() { return EmptySurveyCreatorOptions; });
117
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
118
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
119
-
120
- /**
121
- * List available question convert modes
122
- */
123
- var QuestionConvertMode;
124
- (function (QuestionConvertMode) {
125
- QuestionConvertMode[QuestionConvertMode["AllTypes"] = 0] = "AllTypes";
126
- QuestionConvertMode[QuestionConvertMode["CompatibleTypes"] = 1] = "CompatibleTypes";
127
- })(QuestionConvertMode || (QuestionConvertMode = {}));
128
- var settings = {
129
- translation: {
130
- sortByName: false,
131
- //Set it to \xef\xbb\xbf; to tell system that it is UTF8 file. You can use other prefix as well
132
- exportPrefix: "",
133
- /**
134
- * The maximum number of locales that user can select at once for translation
135
- */
136
- maximumSelectedLocales: 7,
137
- /**
138
- * The name of the translation export file in csv format
139
- */
140
- exportFileName: "survey_translation.csv"
141
- },
142
- operators: {
143
- empty: [],
144
- notempty: [],
145
- equal: ["!file"],
146
- notequal: ["!file"],
147
- contains: ["checkbox", "text", "comment"],
148
- notcontains: ["checkbox", "text", "comment"],
149
- anyof: ["selectbase"],
150
- allof: ["checkbox"],
151
- greater: ["!checkbox", "!imagepicker", "!boolean", "!file"],
152
- less: ["!checkbox", "!imagepicker", "!boolean", "!file"],
153
- greaterorequal: ["!checkbox", "!imagepicker", "!boolean", "!file"],
154
- lessorequal: ["!checkbox", "!imagepicker", "!boolean", "!file"]
155
- },
156
- defaultNewSurveyJSON: {},
157
- designer: {
158
- /**
159
- * The default question type on clicking Add Question button.
160
- */
161
- defaultAddQuestionType: "text",
162
- /**
163
- * Set this property to false, to hide "Add Question" button on designer surface
164
- */
165
- showAddQuestionButton: true
166
- },
167
- logic: {
168
- get defaultOperator() { return settings.logic.defaultOperators.default; },
169
- set defaultOperator(val) { settings.logic.defaultOperators.default = val; },
170
- defaultOperators: {
171
- default: "equal",
172
- checkbox: "allof",
173
- tagbox: "allof"
174
- },
175
- visibleActions: [],
176
- logicItemTitleMaxChars: 50,
177
- openBracket: "{",
178
- closeBracket: "}",
179
- /**
180
- * Set these properties to false if you don't want to update expressions on changing question and column names and on changing choices values
181
- */
182
- updateExpressionsOnChanging: {
183
- questionName: true,
184
- columnName: true,
185
- choiceValue: true
186
- }
187
- },
188
- /**
189
- * Determines which types of questions the conversion will be available for.
190
- */
191
- questionConvertMode: QuestionConvertMode.AllTypes,
192
- propertyGrid: {
193
- useButtonGroup: true,
194
- maxCharsInButtonGroup: 25,
195
- showNavigationButtons: false,
196
- maximumColumnsCount: 0,
197
- maximumChoicesCount: 0,
198
- maximumRowsCount: 0,
199
- maximumRateValues: 0,
200
- generalTabName: "general",
201
- defaultExpandedTabName: "general"
202
- },
203
- toolbox: {
204
- /**
205
- * Use it to change the default question JSON on dropping it into designer or converting questions
206
- */
207
- defaultJSON: {
208
- dropdown: {
209
- choices: ["Item 1", "Item 2", "Item 3"]
210
- },
211
- tagbox: {
212
- choices: ["Item 1", "Item 2", "Item 3"]
213
- },
214
- checkbox: {
215
- choices: ["Item 1", "Item 2", "Item 3"]
216
- },
217
- radiogroup: {
218
- choices: ["Item 1", "Item 2", "Item 3"]
219
- },
220
- ranking: {
221
- choices: ["Item 1", "Item 2", "Item 3"]
222
- },
223
- imagepicker: {
224
- choices: [
225
- {
226
- value: "Image 1",
227
- imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"
228
- },
229
- {
230
- value: "Image 2",
231
- imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"
232
- },
233
- {
234
- value: "Image 3",
235
- imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"
236
- },
237
- {
238
- value: "Image 4",
239
- imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"
240
- }
241
- ]
242
- },
243
- image: {
244
- imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg",
245
- imageFit: "cover",
246
- imageHeight: "auto",
247
- imageWidth: "100%"
248
- }
249
- }
250
- },
251
- /**
252
- * Notification settings
253
- */
254
- notifications: {
255
- lifetime: 2000
256
- },
257
- /**
258
- * Auto save parameters
259
- */
260
- autoSave: {
261
- delay: 500
262
- },
263
- /**
264
- * Drag Drop Settings
265
- */
266
- dragDrop: {
267
- restrictDragQuestionBetweenPages: false
268
- },
269
- /**
270
- * Creator layout settings
271
- */
272
- layout: {
273
- showTabs: true,
274
- showToolbar: true,
275
- allowCollapseSidebar: true
276
- },
277
- jsonEditor: {
278
- indentation: 1
279
- }
280
- };
281
- var EmptySurveyCreatorOptions = /** @class */ (function () {
282
- function EmptySurveyCreatorOptions() {
283
- this.isMobileView = false;
284
- this.allowEditExpressionsInTextEditor = true;
285
- this.maximumColumnsCount = settings.propertyGrid.maximumColumnsCount;
286
- this.maximumChoicesCount = settings.propertyGrid.maximumChoicesCount;
287
- this.maximumRowsCount = settings.propertyGrid.maximumRowsCount;
288
- this.maximumRateValues = settings.propertyGrid.maximumRateValues;
289
- }
290
- EmptySurveyCreatorOptions.prototype.getProcessedTranslationItemText = function (locale, locString, newText, obj) {
291
- return newText;
292
- };
293
- EmptySurveyCreatorOptions.prototype.getObjectDisplayName = function (obj, area, reason, displayName) {
294
- return displayName;
295
- };
296
- EmptySurveyCreatorOptions.prototype.onCanShowPropertyCallback = function (object, property, showMode, parentObj, parentProperty) {
297
- return true;
298
- };
299
- EmptySurveyCreatorOptions.prototype.onPropertyGridSurveyCreatedCallback = function (object, survey) { };
300
- EmptySurveyCreatorOptions.prototype.onPropertyEditorCreatedCallback = function (object, property, editor) { };
301
- EmptySurveyCreatorOptions.prototype.onPropertyEditorUpdateTitleActionsCallback = function (object, property, editor, titleActions) { };
302
- EmptySurveyCreatorOptions.prototype.onPropertyGridShowModalCallback = function (object, property, editor, popupEditor, popupModel) { };
303
- EmptySurveyCreatorOptions.prototype.onIsPropertyReadOnlyCallback = function (obj, property, readOnly, parentObj, parentProperty) {
304
- return readOnly;
305
- };
306
- EmptySurveyCreatorOptions.prototype.onCanDeleteItemCallback = function (object, item, allowDelete) {
307
- return allowDelete;
308
- };
309
- EmptySurveyCreatorOptions.prototype.onCollectionItemDeletingCallback = function (obj, property, collection, item) {
310
- return true;
311
- };
312
- EmptySurveyCreatorOptions.prototype.onCollectionItemAllowingCallback = function (obj, property, collection, item, options) { };
313
- EmptySurveyCreatorOptions.prototype.onItemValueAddedCallback = function (obj, propertyName, itemValue, itemValues) { };
314
- EmptySurveyCreatorOptions.prototype.onMatrixDropdownColumnAddedCallback = function (matrix, column, columns) { };
315
- EmptySurveyCreatorOptions.prototype.onSetPropertyEditorOptionsCallback = function (propertyName, obj, editorOptions) { };
316
- EmptySurveyCreatorOptions.prototype.onGetErrorTextOnValidationCallback = function (propertyName, obj, value) {
317
- return null;
318
- };
319
- EmptySurveyCreatorOptions.prototype.onValueChangingCallback = function (options) { };
320
- EmptySurveyCreatorOptions.prototype.onGetElementEditorTitleCallback = function (obj, title) {
321
- return title;
322
- };
323
- EmptySurveyCreatorOptions.prototype.startUndoRedoTransaction = function () { };
324
- EmptySurveyCreatorOptions.prototype.stopUndoRedoTransaction = function () { };
325
- EmptySurveyCreatorOptions.prototype.createSurvey = function (json, reason, surveyType) {
326
- return new survey_core__WEBPACK_IMPORTED_MODULE_0__["SurveyModel"](json);
327
- };
328
- EmptySurveyCreatorOptions.prototype.onConditionQuestionsGetListCallback = function (propertyName, obj, editor, list) { return "asc"; };
329
- EmptySurveyCreatorOptions.prototype.onConditionGetTitleCallback = function (expression, title) {
330
- return title;
331
- };
332
- EmptySurveyCreatorOptions.prototype.onLogicGetTitleCallback = function (expression, displayExpression, text, logicItem) { return text; };
333
- EmptySurveyCreatorOptions.prototype.getTranslationExportedText = function (obj, name, locString, locale, text) { return text; };
334
- return EmptySurveyCreatorOptions;
335
- }());
336
-
337
- survey_core__WEBPACK_IMPORTED_MODULE_0__["StylesManager"].applyTheme("defaultV2");
338
-
339
-
340
- /***/ }),
341
-
342
- /***/ "./src/editorLocalization.ts":
343
- /*!***********************************!*\
344
- !*** ./src/editorLocalization.ts ***!
345
- \***********************************/
346
- /*! exports provided: EditorLocalization, editorLocalization, getLocString, defaultStrings */
347
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
348
-
349
- "use strict";
350
- __webpack_require__.r(__webpack_exports__);
351
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditorLocalization", function() { return EditorLocalization; });
352
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return editorLocalization; });
353
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocString", function() { return getLocString; });
354
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultStrings", function() { return defaultStrings; });
355
- /* harmony import */ var _localization_english__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./localization/english */ "./src/localization/english.ts");
356
- /* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/utils */ "./src/utils/utils.ts");
357
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
358
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
359
-
360
-
361
-
362
- var EditorLocalization = /** @class */ (function () {
363
- function EditorLocalization() {
364
- this.camelCaseBreaking = true;
365
- this.currentLocale = "";
366
- this.locales = {};
367
- this.peByClass = {};
368
- this.peHelpByClass = {};
369
- }
370
- EditorLocalization.prototype.reset = function () {
371
- this.peByClass = {};
372
- this.peHelpByClass = {};
373
- };
374
- EditorLocalization.prototype.getString = function (strName, locale) {
375
- if (locale === void 0) { locale = null; }
376
- var loc = this.getLocale(locale);
377
- var defaultLocale = this.getLocale("en");
378
- var path = strName.split(".");
379
- var obj = loc;
380
- for (var i = 0; i < path.length; i++) {
381
- obj = obj[path[i]];
382
- if (!obj && obj !== "") {
383
- if (loc === defaultLocale)
384
- return path[i];
385
- return this.getString(strName, "en");
386
- }
387
- }
388
- return obj;
389
- };
390
- EditorLocalization.prototype.hasString = function (strName, locale) {
391
- if (locale === void 0) { locale = null; }
392
- var loc = this.getLocale(locale);
393
- var path = strName.split(".");
394
- var obj = loc;
395
- for (var i = 0; i < path.length; i++) {
396
- obj = obj[path[i]];
397
- if (!obj && obj !== "")
398
- return false;
399
- }
400
- return true;
401
- };
402
- EditorLocalization.prototype.getLocaleName = function (loc, defaultLocale) {
403
- if (defaultLocale === void 0) { defaultLocale = null; }
404
- var localeNames = survey_core__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"]["localeNames"];
405
- if (!defaultLocale) {
406
- defaultLocale = survey_core__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].defaultLocale;
407
- }
408
- var res = !!loc
409
- ? Object(_utils_utils__WEBPACK_IMPORTED_MODULE_1__["capitalize"])(localeNames[loc])
410
- : editorLocalization
411
- .getString("ed.defaultLocale")["format"](Object(_utils_utils__WEBPACK_IMPORTED_MODULE_1__["capitalize"])(localeNames[defaultLocale]));
412
- return !!res ? res : loc;
413
- };
414
- EditorLocalization.prototype.getPropertyName = function (strName, defaultName) {
415
- if (defaultName === void 0) { defaultName = null; }
416
- var obj = this.getProperty(strName, defaultName);
417
- var name = obj["name"];
418
- if (!!name) {
419
- if (name != strName)
420
- return name;
421
- return this.getAutoPropertyName(name, defaultName);
422
- }
423
- return obj;
424
- };
425
- EditorLocalization.prototype.getPropertyTitle = function (strName) {
426
- var obj = this.getProperty(strName);
427
- if (obj["title"])
428
- return obj["title"];
429
- return "";
430
- };
431
- EditorLocalization.prototype.getPropertyNameInEditor = function (typeName, propName, defaultName) {
432
- if (defaultName === void 0) { defaultName = null; }
433
- var obj = this.getPropertyInfoInEditorByType(typeName, propName, this.peByClass, "pe");
434
- if (!obj) {
435
- obj = this.getString("pe." + propName);
436
- }
437
- if (obj !== propName)
438
- return obj;
439
- return this.getPropertyName(propName, defaultName);
440
- };
441
- EditorLocalization.prototype.getPropertyHelpInEditor = function (typeName, propName, propType) {
442
- if (propType === void 0) { propType = undefined; }
443
- var helpStr = this.getPropertyInfoInEditorByType(typeName, propName, this.peHelpByClass, "pehelp");
444
- if (!!helpStr)
445
- return (helpStr === " ") ? null : helpStr;
446
- var loc = this.getLocale();
447
- if (!!loc && !!loc.pehelp) {
448
- helpStr = loc.pehelp[propName];
449
- }
450
- if (!!helpStr)
451
- return helpStr;
452
- if (!!propType && !!loc.pe)
453
- return loc.pe[propType + "Help"];
454
- return undefined;
455
- };
456
- EditorLocalization.prototype.getPropertyInfoInEditorByType = function (typeName, propName, peInfoByClass, postFix) {
457
- if (!typeName)
458
- return undefined;
459
- var peClass = peInfoByClass[typeName];
460
- if (peClass === undefined) {
461
- peClass = this.getObjInEditorByType(typeName, peInfoByClass, postFix);
462
- }
463
- while (!!peClass) {
464
- if (!!peClass.props[propName])
465
- return peClass.props[propName];
466
- peClass = peClass.parent;
467
- }
468
- return undefined;
469
- };
470
- EditorLocalization.prototype.getObjInEditorByType = function (typeName, peInfoByClass, postFix) {
471
- if (!typeName)
472
- return undefined;
473
- var peClass = peInfoByClass[typeName];
474
- if (peClass !== undefined)
475
- peClass;
476
- var loc = this.getLocale();
477
- var pe = !!loc ? loc[postFix] : undefined;
478
- if (!pe)
479
- return undefined;
480
- var classInfo = survey_core__WEBPACK_IMPORTED_MODULE_2__["Serializer"].findClass(typeName);
481
- var classNames = [];
482
- var res = undefined;
483
- while (!!classInfo) {
484
- var tName = classInfo.name;
485
- res = peInfoByClass[typeName];
486
- if (!!res)
487
- break;
488
- classNames.push(tName);
489
- if (pe[tName]) {
490
- res = { props: pe[tName], parent: this.getObjInEditorByType(classInfo.parentName, peInfoByClass, postFix) };
491
- break;
492
- }
493
- if (!classInfo.parentName)
494
- break;
495
- classInfo = survey_core__WEBPACK_IMPORTED_MODULE_2__["Serializer"].findClass(classInfo.parentName);
496
- }
497
- for (var i = 0; i < classNames.length; i++) {
498
- peInfoByClass[classNames[i]] = res;
499
- }
500
- return res;
501
- };
502
- EditorLocalization.prototype.getProperty = function (strName, defaultName) {
503
- if (defaultName === void 0) { defaultName = null; }
504
- var obj = this.getString("p." + strName);
505
- if (obj !== strName)
506
- return obj;
507
- var pos = strName.indexOf("_");
508
- if (pos < -1)
509
- return this.getAutoPropertyName(obj, defaultName);
510
- strName = strName.substring(pos + 1);
511
- obj = this.getString("p." + strName);
512
- if (obj !== strName)
513
- return obj;
514
- return this.getAutoPropertyName(obj, defaultName);
515
- };
516
- EditorLocalization.prototype.convertToCamelCase = function (value, toLowCase) {
517
- if (toLowCase === void 0) { toLowCase = false; }
518
- if (!value)
519
- return value;
520
- value = value.trim();
521
- if (value.indexOf(" ") > -1)
522
- return value;
523
- var hasLowCase = false;
524
- for (var i = 0; i < value.length; i++) {
525
- if (value[i] !== value[i].toUpperCase()) {
526
- hasLowCase = true;
527
- break;
528
- }
529
- }
530
- if (!hasLowCase)
531
- return value;
532
- var res = value[0].toUpperCase();
533
- var isPrevUpperCase = false;
534
- var isUpperCase = function (index) {
535
- if (index >= value.length)
536
- return false;
537
- return value[index].toUpperCase() === value[index];
538
- };
539
- for (var i = 1; i < value.length; i++) {
540
- if (!isPrevUpperCase && isUpperCase(i)) {
541
- res += " ";
542
- }
543
- var requireConvert = !isPrevUpperCase && !isUpperCase(i + 1);
544
- res += requireConvert ? value[i].toLowerCase() : value[i];
545
- isPrevUpperCase = isUpperCase(i);
546
- }
547
- if (toLowCase) {
548
- res = res.toLowerCase();
549
- }
550
- return res;
551
- };
552
- EditorLocalization.prototype.getAutoPropertyName = function (propName, defaultName) {
553
- if (defaultName === void 0) { defaultName = null; }
554
- if (!!defaultName)
555
- return defaultName;
556
- if (!propName || !this.camelCaseBreaking)
557
- return propName;
558
- return this.convertToCamelCase(propName);
559
- };
560
- EditorLocalization.prototype.getPropertyValueInEditor = function (propName, value) {
561
- var loc = this.getLocale();
562
- if (!!loc && !!loc.pv && !!loc.pv[propName]) {
563
- var res = loc.pv[propName][value];
564
- if (!!res)
565
- return res;
566
- }
567
- return this.getPropertyValue(value);
568
- };
569
- EditorLocalization.prototype.getPropertyValue = function (value, locale) {
570
- if (locale === void 0) { locale = null; }
571
- return this.getValueInternal(value, "pv", locale);
572
- };
573
- EditorLocalization.prototype.getValidatorName = function (name, locale) {
574
- if (locale === void 0) { locale = null; }
575
- return this.getValueInternal(name, "validators", locale);
576
- };
577
- EditorLocalization.prototype.getTriggerName = function (name, locale) {
578
- if (locale === void 0) { locale = null; }
579
- return this.getValueInternal(name, "triggers", locale);
580
- };
581
- EditorLocalization.prototype.getLocale = function (locale) {
582
- if (!locale)
583
- locale = this.currentLocale;
584
- var loc = locale ? this.locales[locale] : defaultStrings;
585
- if (!loc)
586
- loc = defaultStrings;
587
- return loc;
588
- };
589
- EditorLocalization.prototype.getValueInternal = function (value, prefix, locale) {
590
- if (locale === void 0) { locale = null; }
591
- if (value === "" || value === null || value === undefined)
592
- return "";
593
- value = value.toString();
594
- var loc = this.getLocale(locale);
595
- var res = loc[prefix] ? loc[prefix][value] : null;
596
- if (!res)
597
- res = defaultStrings[prefix][value];
598
- if (!!res)
599
- return res;
600
- return this.camelCaseBreaking
601
- ? this.convertToCamelCase(value, false)
602
- : value;
603
- };
604
- EditorLocalization.prototype.getLocales = function () {
605
- var res = [];
606
- res.push("");
607
- for (var key in this.locales) {
608
- res.push(key);
609
- }
610
- return res;
611
- };
612
- return EditorLocalization;
613
- }());
614
-
615
- var editorLocalization = new EditorLocalization();
616
- survey_core__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].onGetExternalString = function (name, locale) {
617
- var res = editorLocalization.getString(name, locale);
618
- return res !== name ? res : "";
619
- };
620
- function getLocString(strName, locale) {
621
- if (locale === void 0) { locale = null; }
622
- return editorLocalization.getString(strName, locale);
623
- }
624
- var defaultStrings = _localization_english__WEBPACK_IMPORTED_MODULE_0__["enStrings"];
625
-
626
-
627
- /***/ }),
628
-
629
105
  /***/ "./src/entries/i18n.ts":
630
106
  /*!*****************************!*\
631
107
  !*** ./src/entries/i18n.ts ***!
@@ -5289,958 +4765,6 @@ var nlStrings = {
5289
4765
  survey_creator_core__WEBPACK_IMPORTED_MODULE_0__["editorLocalization"].locales["nl"] = nlStrings;
5290
4766
 
5291
4767
 
5292
- /***/ }),
5293
-
5294
- /***/ "./src/localization/english.ts":
5295
- /*!*************************************!*\
5296
- !*** ./src/localization/english.ts ***!
5297
- \*************************************/
5298
- /*! exports provided: enStrings */
5299
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
5300
-
5301
- "use strict";
5302
- __webpack_require__.r(__webpack_exports__);
5303
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enStrings", function() { return enStrings; });
5304
- // Uncomment the line below if you create a custom dictionary
5305
- // import { editorLocalization, defaultStrings } from "../editorLocalization";
5306
- var enStrings = {
5307
- // survey templates
5308
- survey: {
5309
- edit: "Edit",
5310
- externalHelpLink: "Watch and learn how to create surveys",
5311
- externalHelpLinkUrl: "https://www.youtube.com/channel/UCH2ru9okIcooNZfpIbyq4qQ?view_as=subscriber",
5312
- dropQuestion: "Please drop a question here from the Toolbox.",
5313
- addLogicItem: "Create a rule to customize the flow of the survey.",
5314
- copy: "Copy",
5315
- duplicate: "Duplicate",
5316
- addToToolbox: "Add to toolbox",
5317
- deletePanel: "Delete Panel",
5318
- deleteQuestion: "Delete Question",
5319
- convertTo: "Convert to",
5320
- drag: "Drag element",
5321
- license: "PLEASE PURCHASE A DEVELOPER LICENSE TO BE ABLE TO USE SURVEY CREATOR IN YOUR APP"
5322
- },
5323
- // Question types
5324
- qt: {
5325
- default: "Default",
5326
- checkbox: "Checkboxes",
5327
- comment: "Long Text",
5328
- imagepicker: "Image Picker",
5329
- ranking: "Ranking",
5330
- image: "Image",
5331
- dropdown: "Dropdown",
5332
- tagbox: "Multi-Select Dropdown",
5333
- file: "File Upload",
5334
- html: "HTML",
5335
- matrix: "Single-Select Matrix",
5336
- matrixdropdown: "Multi-Select Matrix",
5337
- matrixdynamic: "Dynamic Matrix",
5338
- multipletext: "Multiple Textboxes",
5339
- panel: "Panel",
5340
- paneldynamic: "Dynamic Panel",
5341
- radiogroup: "Radio Button Group",
5342
- rating: "Rating Scale",
5343
- text: "Single-Line Input",
5344
- boolean: "Yes/No (Boolean)",
5345
- expression: "Expression (read-only)",
5346
- signaturepad: "Signature",
5347
- buttongroup: "Button Group"
5348
- },
5349
- // Strings in SurveyJS Creator
5350
- ed: {
5351
- defaultLocale: "Default ({0})",
5352
- survey: "Survey",
5353
- settings: "Settings",
5354
- settingsTooltip: "Open settings",
5355
- surveySettings: "Survey Settings",
5356
- surveySettingsTooltip: "Open survey settings",
5357
- showPanel: "Show Panel",
5358
- hidePanel: "Hide Panel",
5359
- prevSelected: "Select previous",
5360
- nextSelected: "Select next",
5361
- surveyTypeName: "Survey",
5362
- pageTypeName: "Page",
5363
- panelTypeName: "Panel",
5364
- questionTypeName: "Question",
5365
- columnTypeName: "Column",
5366
- addNewPage: "Add New Page",
5367
- moveRight: "Scroll to the Right",
5368
- moveLeft: "Scroll to the Left",
5369
- deletePage: "Delete Page",
5370
- editPage: "Edit Page",
5371
- edit: "Edit",
5372
- newPageName: "page",
5373
- newQuestionName: "question",
5374
- newPanelName: "panel",
5375
- newTextItemName: "text",
5376
- testSurvey: "Preview",
5377
- defaultV2Theme: "Default",
5378
- modernTheme: "Modern",
5379
- defaultTheme: "Default (legacy)",
5380
- testSurveyAgain: "Preview Survey Again",
5381
- testSurveyWidth: "Survey width: ",
5382
- navigateToMsg: "You had to navigate to",
5383
- logic: "Logic",
5384
- embedSurvey: "Embed Survey",
5385
- translation: "Translation",
5386
- saveSurvey: "Save Survey",
5387
- saveSurveyTooltip: "Save Survey",
5388
- designer: "Designer",
5389
- jsonEditor: "JSON Editor",
5390
- jsonHideErrors: "Hide errors",
5391
- jsonShowErrors: "Show errors",
5392
- undo: "Undo",
5393
- redo: "Redo",
5394
- undoTooltip: "Undo last change",
5395
- redoTooltip: "Redo the change",
5396
- showMoreChoices: "Show more",
5397
- showLessChoices: "Show less",
5398
- copy: "Copy",
5399
- cut: "Cut",
5400
- paste: "Paste",
5401
- copyTooltip: "Copy selection to clipboard",
5402
- cutTooltip: "Cut selection to clipboard",
5403
- pasteTooltip: "Paste from clipboard",
5404
- options: "Options",
5405
- generateValidJSON: "Generate Valid JSON",
5406
- generateReadableJSON: "Generate Readable JSON",
5407
- toolbox: "Toolbox",
5408
- "property-grid": "Properties",
5409
- propertyGridFilteredTextPlaceholder: "Type to search...",
5410
- toolboxGeneralCategory: "General",
5411
- toolboxChoiceCategory: "Choice Questions",
5412
- toolboxTextCategory: "Text Input Questions",
5413
- toolboxContainersCategory: "Containers",
5414
- toolboxMatrixCategory: "Matrix Questions",
5415
- toolboxMiscCategory: "Misc",
5416
- correctJSON: "Please correct JSON.",
5417
- surveyResults: "Survey Results ",
5418
- surveyResultsTable: "As Table",
5419
- surveyResultsJson: "As JSON",
5420
- resultsTitle: "Question Title",
5421
- resultsName: "Question Name",
5422
- resultsValue: "Answer Value",
5423
- resultsDisplayValue: "Display Value",
5424
- modified: "Modified",
5425
- saving: "Saving",
5426
- saved: "Saved",
5427
- propertyEditorError: "Error",
5428
- saveError: "Error! Editor content is not saved.",
5429
- translationPropertyGridTitle: "Language Settings",
5430
- translationLanguages: "Languages",
5431
- translationAddLanguage: "Select language to translate",
5432
- translationShowAllStrings: "All Strings",
5433
- translationShowUsedStringsOnly: "Used Strings Only",
5434
- translationShowAllPages: "All Pages",
5435
- translationNoStrings: "No strings to translate. Please, change the filter.",
5436
- translationExportToSCVButton: "Export to CSV",
5437
- translationImportFromSCVButton: "Import from CSV",
5438
- translationMergeLocaleWithDefault: "Merge {0} with default locale",
5439
- translationPlaceHolder: "Translation...",
5440
- bold: "Bold",
5441
- italic: "Italic",
5442
- underline: "Underline",
5443
- addNewQuestion: "Add Question",
5444
- selectPage: "Select page...",
5445
- htmlPlaceHolder: "HTML content will be here.",
5446
- panelPlaceHolder: "Drop a question from the toolbox here.",
5447
- surveyPlaceHolder: "The survey is empty. Drag an element from the toolbox or click the button below.",
5448
- addNewTypeQuestion: "Add {0}",
5449
- chooseLogoPlaceholder: "[LOGO]",
5450
- auto: "auto",
5451
- choices_Item: "Item ",
5452
- lg: {
5453
- addNewItem: "Add New Rule",
5454
- empty_tab: "Create a rule to customize the flow of the survey.",
5455
- page_visibilityName: "Show (hide) page",
5456
- page_enableName: "Enable (disable) page",
5457
- panel_visibilityName: "Show (hide) panel",
5458
- panel_enableName: "Enable (disable) panel",
5459
- question_visibilityName: "Show (hide) question",
5460
- question_enableName: "Enable (disable) question",
5461
- question_requireName: "Make question required",
5462
- column_visibilityName: "Show (hide) column",
5463
- column_enableName: "Enable (disable) column",
5464
- column_requireName: "Make column required",
5465
- trigger_completeName: "Complete survey",
5466
- trigger_setvalueName: "Set answer",
5467
- trigger_copyvalueName: "Copy answer",
5468
- trigger_skipName: "Skip to question",
5469
- trigger_runExpressionName: "Run expression",
5470
- completedHtmlOnConditionName: "Set \"Survey Complete\" page markup",
5471
- page_visibilityDescription: "Make the page visible when the logic expression returns true. Otherwise keep it invisible.",
5472
- panel_visibilityDescription: "Make the panel visible when the logic expression returns true. Otherwise keep it invisible.",
5473
- panel_enableDescription: "Make the panel, and all elements inside it, enable when the logic expression returns true. Otherwise keep them disabled.",
5474
- question_visibilityDescription: "Make the question visible when the logic expression returns true. Otherwise keep it invisible.",
5475
- question_enableDescription: "Make the question enable when the logic expression returns true. Otherwise keep it disabled.",
5476
- question_requireDescription: "Question becomes required when the logic expression returns true.",
5477
- trigger_completeDescription: "When the logic expression returns true then the survey becomes completed and an end-user see the 'Thank you page'.",
5478
- trigger_setvalueDescription: "When question values, that are used in the logic expression, are changed and the logic expression returns true, then the value is set to the selected question.",
5479
- trigger_copyvalueDescription: "When question values, that are used in the logic expression, are changed and the logic expression returns true, then the value of one selected question is copied to another selected question.",
5480
- trigger_skipDescription: "When the logic expression returns true then the survey skip to / focus the selected question.",
5481
- trigger_runExpressionDescription: "When the logic expression returns true, then the custom expression is performed. You may optionally set this expression result into the selected question",
5482
- completedHtmlOnConditionDescription: "If the logic expression returns true, then the default text for the 'Thank you page' is changed to the given one.",
5483
- itemExpressionText: "When expression: '{0}' returns true",
5484
- itemEmptyExpressionText: "New rule",
5485
- page_visibilityText: "make page {0} visible",
5486
- panel_visibilityText: "make panel {0} visible",
5487
- panel_enableText: "make panel {0} enable",
5488
- question_visibilityText: "make question {0} visible",
5489
- question_enableText: "make question {0} enable",
5490
- question_requireText: "make question {0} required",
5491
- column_visibilityText: "make column {0} of question {1} visible",
5492
- column_enableText: "make column {0} of question {1} enable",
5493
- column_requireText: "make column {0} of question {1} required",
5494
- trigger_completeText: "survey becomes completed",
5495
- trigger_setvalueText: "set into question: {0} value {1}",
5496
- trigger_copyvalueText: "copy into question: {0} value from question {1}",
5497
- trigger_skipText: "survey skip to the question {0}",
5498
- trigger_runExpressionText1: "run expression: '{0}'",
5499
- trigger_runExpressionText2: " and set its result into question: {0}",
5500
- completedHtmlOnConditionText: "show custom text for the 'Thank you page'.",
5501
- showAllQuestions: "All Questions",
5502
- showAllActionTypes: "All Action Types",
5503
- conditions: "Condition(s)",
5504
- actions: "Action(s)",
5505
- expressionEditorTitle: "Define condition(s)",
5506
- actionsEditorTitle: "Define action(s)",
5507
- deleteAction: "Delete Action",
5508
- addNewAction: "Add Action",
5509
- selectedActionCaption: "Select action...",
5510
- expressionInvalid: "The logic expression is empty or invalid. Please correct it.",
5511
- noActionError: "Please, add at least one action.",
5512
- actionInvalid: "Please, fix problems in your action(s).",
5513
- uncompletedRule_title: "Leave the tab?",
5514
- uncompletedRule_text: "One or more logical rules are uncompleted. If you leave the tab, those changes that cannot be applied will vanish. Are you sure you want to leave?",
5515
- uncompletedRule_apply: "Yes",
5516
- uncompletedRule_cancel: "No, I want to complete the rules",
5517
- expressionSetup: "",
5518
- actionsSetup: ""
5519
- }
5520
- },
5521
- // Property Editors
5522
- pe: {
5523
- apply: "Apply",
5524
- ok: "OK",
5525
- save: "Save",
5526
- clear: "Clear",
5527
- saveTooltip: "Save",
5528
- cancel: "Cancel",
5529
- set: "Set",
5530
- reset: "Reset",
5531
- change: "Change",
5532
- refresh: "Refresh",
5533
- close: "Close",
5534
- delete: "Delete",
5535
- add: "Add",
5536
- addNew: "Add New",
5537
- addItem: "Click to add an item...",
5538
- removeItem: "Click to remove the item...",
5539
- dragItem: "Drag the item",
5540
- addOther: "Other",
5541
- addSelectAll: "Select All",
5542
- addNone: "None",
5543
- removeAll: "Remove All",
5544
- edit: "Edit",
5545
- back: "Return without saving",
5546
- backTooltip: "Return without saving",
5547
- saveAndBack: "Save and return",
5548
- saveAndBackTooltip: "Save and return",
5549
- doneEditing: "Done",
5550
- editChoices: "Edit Choices",
5551
- showChoices: "Show Choices",
5552
- move: "Move",
5553
- empty: "<empty>",
5554
- emptyValue: "Value is empty",
5555
- fastEntry: "Manual Entry",
5556
- fastEntryNonUniqueError: "Value '{0}' is not unique",
5557
- fastEntryChoicesCountError: "Please limit the number of items from {0} to {1}",
5558
- fastEntryPlaceholder: "You can set data in the following format:\nvalue1|text\nvalue2",
5559
- formEntry: "Form Entry",
5560
- testService: "Test the service",
5561
- itemSelectorEmpty: "Please select the element",
5562
- conditionActionEmpty: "Please select the action",
5563
- conditionSelectQuestion: "Select question...",
5564
- conditionSelectPage: "Select page...",
5565
- conditionSelectPanel: "Select panel...",
5566
- conditionValueQuestionTitle: "Please enter/select the value",
5567
- expressionHelp: "Use curly brackets to access answers: `{question1} + {question2}`. Expressions also support functions: `iif()`, `today()`, `age()`, `min()`, `max()`, `count()`, `avg()`, and others",
5568
- aceEditorHelp: "Press ctrl+space to get expression completion hint",
5569
- aceEditorRowTitle: "Current row",
5570
- aceEditorPanelTitle: "Current panel",
5571
- showMore: "For more details please check the documentation",
5572
- assistantTitle: "Available questions",
5573
- cellsEmptyRowsColumns: "There is should be at least one column or row",
5574
- showPreviewBeforeComplete: "Preview answers before submitting the survey",
5575
- propertyIsEmpty: "Please enter a value",
5576
- propertyIsNoUnique: "Please enter a unique value",
5577
- propertyNameIsNotUnique: "Please enter a unique name",
5578
- listIsEmpty: "No items have been added yet",
5579
- "listIsEmpty@choices": "No choices have been added yet",
5580
- "addNew@choices": "Add a choice",
5581
- expressionIsEmpty: "Expression is empty",
5582
- value: "Value",
5583
- text: "Text",
5584
- rowid: "Row ID",
5585
- imageLink: "Image or video URL",
5586
- columnEdit: "Edit column: {0}",
5587
- itemEdit: "Edit item: {0}",
5588
- url: "Service URL",
5589
- path: "Path to data within the service",
5590
- valueName: "Store answers in the following JSON field",
5591
- choicesbyurl: {
5592
- valueName: "Get values from the following JSON field"
5593
- },
5594
- titleName: "Get display texts from the following JSON field",
5595
- imageLinkName: "Get image URLs from the following JSON field",
5596
- allowEmptyResponse: "Allow empty response",
5597
- titlePlaceholder: "Title",
5598
- surveyTitlePlaceholder: "Survey Title",
5599
- pageTitlePlaceholder: "Page {num}",
5600
- descriptionPlaceholder: "Description",
5601
- surveyDescriptionPlaceholder: "Description",
5602
- pageDescriptionPlaceholder: "Description",
5603
- showOtherItem: "Allow the Other option",
5604
- otherText: "Other option text",
5605
- showNoneItem: "Allow the None option",
5606
- noneText: "None option text",
5607
- showSelectAllItem: "Allow the Select All option",
5608
- selectAllText: "Select All option text",
5609
- choicesMin: "Minimum value for auto-generated items",
5610
- choicesMax: "Maximum value for auto-generated items",
5611
- choicesStep: "Step for auto-generated items",
5612
- name: "Name",
5613
- title: "Title",
5614
- cellType: "Cell type",
5615
- colCount: "Column count",
5616
- choicesOrder: "Choices sort order",
5617
- visible: "Visible",
5618
- isRequired: "Required",
5619
- isAllRowRequired: "Require answer for all rows",
5620
- requiredErrorText: "\"Required\" error message",
5621
- startWithNewLine: "Display the question on a new line",
5622
- rows: "Rows",
5623
- cols: "Columns",
5624
- placeholder: "Input area placeholder",
5625
- showPreview: "Show preview area",
5626
- storeDataAsText: "Store file content in JSON result as text",
5627
- maxSize: "Maximum file size (in bytes)",
5628
- imageHeight: "Image height",
5629
- imageWidth: "Image width",
5630
- rowCount: "Row count",
5631
- columnLayout: "Columns layout",
5632
- addRowLocation: "Add Row button location",
5633
- addRowText: "Add Row button text",
5634
- removeRowText: "Remove Row button text",
5635
- rateMin: "Minimum rate value",
5636
- rateMax: "Maximum rate value",
5637
- rateStep: "Rate step",
5638
- minRateDescription: "Minimum rate value description",
5639
- maxRateDescription: "Maximum rate value description",
5640
- inputType: "Input type",
5641
- optionsCaption: "Option placeholder",
5642
- defaultValue: "Default Answer",
5643
- cellsDefaultRow: "Default texts",
5644
- surveyEditorTitle: "Edit survey settings",
5645
- qEditorTitle: "Edit: {0}",
5646
- maxLength: "Maximum length (in characters)",
5647
- buildExpression: "Build",
5648
- editExpression: "Edit",
5649
- and: "and",
5650
- or: "or",
5651
- remove: "Remove",
5652
- addCondition: "Add Condition",
5653
- emptyLogicPopupMessage: "Select a question to start configuring conditions.",
5654
- if: "If",
5655
- then: "then",
5656
- setToName: "Target question",
5657
- fromName: "Question to copy answer from",
5658
- gotoName: "Question to skip to",
5659
- ruleIsNotSet: "Rule is incorrect",
5660
- includeIntoResult: "Include into survey results",
5661
- showTitle: "Show the title",
5662
- expandCollapseTitle: "Expand/collapse title",
5663
- locale: "Survey language",
5664
- simulator: "Select device type",
5665
- landscapeOrientation: "Switch to landscape orientation",
5666
- portraitOrientation: "Switch to portrait orientation",
5667
- mode: "Editable or read-only",
5668
- clearInvisibleValues: "Clear invisible values",
5669
- cookieName: "Cookie name",
5670
- sendResultOnPageNext: "Save partial survey results in progress",
5671
- storeOthersAsComment: "Store the Others value in a separate field",
5672
- showPageTitles: "Show page titles",
5673
- showPageNumbers: "Show page numbers",
5674
- pagePrevText: "Previous Page button text",
5675
- pageNextText: "Next Page button text",
5676
- completeText: "Complete Survey button text",
5677
- previewText: "Preview Answers button text",
5678
- editText: "Edit Answer button text",
5679
- startSurveyText: "Start Survey button text",
5680
- showNavigationButtons: "Navigation buttons location",
5681
- showPrevButton: "Show the Previous Page button",
5682
- firstPageIsStarted: "First page is a start page",
5683
- showCompletedPage: "Show the Survey Complete page",
5684
- goNextPageAutomatic: "Proceed to the next page automatically",
5685
- showProgressBar: "Progress bar location",
5686
- questionTitleLocation: "Question title location",
5687
- requiredText: "Required symbol(s)",
5688
- questionStartIndex: "Start index (number or letter)",
5689
- showQuestionNumbers: "Question numbering",
5690
- questionTitleTemplate: "Question title template, default is: '{no}. {require} {title}'",
5691
- questionErrorLocation: "Error message location",
5692
- focusFirstQuestionAutomatic: "Focus first question on a new page",
5693
- questionsOrder: "Element order on the page",
5694
- maxTimeToFinish: "Time limit to finish the survey (in seconds)",
5695
- maxTimeToFinishPage: "Time limit to finish one page (in seconds)",
5696
- image: {
5697
- imageHeight: "Image height (in CSS-accepted values)",
5698
- imageWidth: "Image width (in CSS-accepted values)"
5699
- },
5700
- page: {
5701
- maxTimeToFinish: "Time limit to finish the page (in seconds)"
5702
- },
5703
- question: {
5704
- page: "Parent page"
5705
- },
5706
- showTimerPanel: "Timer location",
5707
- showTimerPanelMode: "Timer mode",
5708
- renderMode: "Panel display mode",
5709
- allowAddPanel: "Allow adding panels",
5710
- allowRemovePanel: "Allow removing panels",
5711
- noEntriesText: "Empty entries text",
5712
- panelAddText: "Add Panel button text",
5713
- panelRemoveText: "Remove Panel button text",
5714
- isSinglePage: "Show all elements on one page",
5715
- html: "HTML markup",
5716
- expression: "Expression",
5717
- setValue: "Answer",
5718
- dataFormat: "Image format",
5719
- allowAddRows: "Allow adding rows",
5720
- allowRemoveRows: "Allow removing rows",
5721
- allowRowsDragAndDrop: "Allow row drag and drop",
5722
- responsiveImageSizeHelp: "Does not apply if you specify the exact image width or height.",
5723
- minImageWidth: "Minimum image width",
5724
- maxImageWidth: "Maximum image width",
5725
- minImageHeight: "Minimum image height",
5726
- maxImageHeight: "Maximum image height",
5727
- minValue: "Minimum value",
5728
- maxValue: "Maximum value",
5729
- minLength: "Minimum length (in characters)",
5730
- allowDigits: "Allow digits",
5731
- minCount: "Minimum count",
5732
- maxCount: "Maximum count",
5733
- regex: "Regular expression",
5734
- surveyvalidator: {
5735
- text: "Error message",
5736
- expression: "Validation expression"
5737
- },
5738
- totalText: "Total row text",
5739
- totalType: "Total type",
5740
- totalExpression: "Total expression",
5741
- totalDisplayStyle: "Total value display style",
5742
- totalCurrency: "Currency",
5743
- totalFormat: "Formatted string",
5744
- logo: "Logo (URL or base64-encoded string)",
5745
- questionsOnPageMode: "Survey structure",
5746
- maxTextLength: "Maximum answer length (in characters)",
5747
- maxOthersLength: "Maximum comment length (in characters)",
5748
- autoGrowComment: "Auto-expand comment area if necessary",
5749
- textUpdateMode: "Update text question value",
5750
- focusOnFirstError: "Set focus on the first invalid answer",
5751
- checkErrorsMode: "Run validation",
5752
- navigateToUrl: "Navigate to URL",
5753
- navigateToUrlOnCondition: "Dynamic URL",
5754
- completedBeforeHtml: "Markup to show if the user already filled out this survey",
5755
- completedHtml: "Survey Complete page markup",
5756
- completedHtmlOnCondition: "Dynamic Survey Complete page markup",
5757
- loadingHtml: "Markup to show while survey model is loading",
5758
- commentText: "Comment area text",
5759
- autocomplete: "Autocomplete type",
5760
- labelTrue: "\"True\" label",
5761
- labelFalse: "\"False\" label",
5762
- allowClear: "Show the Clear button",
5763
- displayStyle: "Value display style",
5764
- format: "Formatted string",
5765
- maximumFractionDigits: "Maximum fractional digits",
5766
- minimumFractionDigits: "Minimum fractional digits",
5767
- useGrouping: "Display grouping separators",
5768
- allowMultiple: "Allow multiple files",
5769
- allowImagesPreview: "Preview images",
5770
- acceptedTypes: "Accepted file types",
5771
- waitForUpload: "Wait for the upload to complete",
5772
- needConfirmRemoveFile: "Confirm file deletion",
5773
- detailPanelMode: "Detail panel location",
5774
- minRowCount: "Minimum row count",
5775
- maxRowCount: "Maximum row count",
5776
- confirmDelete: "Confirm row deletion",
5777
- confirmDeleteText: "Confirmation message",
5778
- paneldynamic: {
5779
- confirmDelete: "Confirm panel deletion"
5780
- },
5781
- panelCount: "Initial panel count",
5782
- minPanelCount: "Minimum panel count",
5783
- maxPanelCount: "Maximum panel count",
5784
- panelsState: "Inner panel expand state",
5785
- templateDescription: "Description template",
5786
- templateTitle: "Title template",
5787
- panelPrevText: "Previous Panel button tooltip",
5788
- panelNextText: "Next Panel button tooltip",
5789
- showRangeInProgress: "Show progress bar",
5790
- templateTitleLocation: "Question title location",
5791
- panelRemoveButtonLocation: "Remove Panel button location",
5792
- hideIfRowsEmpty: "Hide the question if there are no rows",
5793
- hideColumnsIfEmpty: "Hide columns if there are no rows",
5794
- rateValues: "Custom rate values",
5795
- rateCount: "Rate count",
5796
- rateDisplayMode: "Rate display mode",
5797
- autoGenerate: "How to specify rate values?",
5798
- hideIfChoicesEmpty: "Hide the question if it contains no choices",
5799
- hideNumber: "Hide question number",
5800
- minWidth: "Minimum width (in CSS-accepted values)",
5801
- maxWidth: "Maximum width (in CSS-accepted values)",
5802
- width: "Width (in CSS-accepted values)",
5803
- showHeader: "Show column headers",
5804
- horizontalScroll: "Show horizontal scrollbar",
5805
- columnMinWidth: "Minimum column width (in CSS-accepted values)",
5806
- rowTitleWidth: "Row header width (in CSS-accepted values)",
5807
- valueTrue: "\"True\" value",
5808
- valueFalse: "\"False\" value",
5809
- minErrorText: "\"Value is below minimum\" error message",
5810
- maxErrorText: "\"Value exceeds maximum\" error message",
5811
- otherErrorText: "\"Empty comment\" error message",
5812
- keyDuplicationError: "\"Non-unique key value\" error message",
5813
- maxSelectedChoices: "Maximum selected choices",
5814
- showClearButton: "Show the Clear button",
5815
- showNumber: "Show panel number",
5816
- logoWidth: "Logo width (in CSS-accepted values)",
5817
- logoHeight: "Logo height (in CSS-accepted values)",
5818
- readOnly: "Read-only",
5819
- enableIf: "Editable if",
5820
- emptyRowsText: "\"No rows\" message",
5821
- size: "Input size (in characters)",
5822
- separateSpecialChoices: "Separate special choices (None, Other, Select All)",
5823
- choicesFromQuestion: "Copy choices from the following question",
5824
- choicesFromQuestionMode: "Which choices to copy?",
5825
- showCommentArea: "Show the comment area",
5826
- commentPlaceholder: "Comment area placeholder",
5827
- displayRateDescriptionsAsExtremeItems: "Display rate descriptions as extreme values",
5828
- rowsOrder: "Row order",
5829
- columnsLayout: "Column layout",
5830
- columnColCount: "Nested column count",
5831
- state: "Panel expand state",
5832
- correctAnswer: "Correct Answer",
5833
- defaultPanelValue: "Default Values",
5834
- cells: "Cell Texts",
5835
- keyName: "Key column",
5836
- itemvalue: {
5837
- text: "Alt text"
5838
- },
5839
- logoPosition: "Logo position",
5840
- addLogo: "Add logo...",
5841
- changeLogo: "Change logo...",
5842
- logoPositions: {
5843
- none: "Remove logo",
5844
- left: "Left",
5845
- right: "Right",
5846
- top: "On the top",
5847
- bottom: "In the bottom"
5848
- },
5849
- tabs: {
5850
- general: "General",
5851
- fileOptions: "Options",
5852
- html: "HTML Editor",
5853
- columns: "Columns",
5854
- rows: "Rows",
5855
- choices: "Choices",
5856
- items: "Items",
5857
- visibleIf: "Visible If",
5858
- enableIf: "Editable If",
5859
- requiredIf: "Required If",
5860
- rateValues: "Rate Values",
5861
- choicesByUrl: "Choices from a RESTful Service",
5862
- matrixChoices: "Default Choices",
5863
- multipleTextItems: "Text Inputs",
5864
- numbering: "Numbering",
5865
- validators: "Validators",
5866
- navigation: "Navigation",
5867
- question: "Question",
5868
- pages: "Pages",
5869
- timer: "Timer/Quiz",
5870
- calculatedValues: "Calculated Values",
5871
- triggers: "Triggers",
5872
- templateTitle: "Title template",
5873
- totals: "Totals",
5874
- logic: "Logic",
5875
- layout: "Layout",
5876
- data: "Data",
5877
- validation: "Validation",
5878
- cells: "Cell Texts",
5879
- showOnCompleted: "Survey Complete",
5880
- logo: "Logo in Survey Title",
5881
- slider: "Slider",
5882
- expression: "Expression",
5883
- others: "Others"
5884
- },
5885
- editProperty: "Edit property '{0}'",
5886
- items: "Items",
5887
- choicesVisibleIf: "Choices are visible if",
5888
- choicesEnableIf: "Choices are selectable if",
5889
- columnsEnableIf: "Columns are visible if",
5890
- rowsEnableIf: "Rows are visible if",
5891
- indent: "Add indents",
5892
- panel: {
5893
- indent: "Add outer indents"
5894
- },
5895
- innerIndent: "Add inner indents",
5896
- defaultValueFromLastRow: "Take default values from the last row",
5897
- defaultValueFromLastPanel: "Take default values from the last panel",
5898
- enterNewValue: "Please, enter the value.",
5899
- noquestions: "There are no questions in the survey.",
5900
- createtrigger: "Please create a trigger",
5901
- titleKeyboardAdornerTip: "Press enter button to edit",
5902
- keyboardAdornerTip: "Press enter button to edit item, press delete button to delete item, press alt plus arrow up or arrow down to move item",
5903
- triggerOn: "On ",
5904
- triggerMakePagesVisible: "Make pages visible",
5905
- triggerMakeQuestionsVisible: "Make elements visible",
5906
- triggerCompleteText: "Complete the survey if succeed.",
5907
- triggerNotSet: "The trigger is not set",
5908
- triggerRunIf: "Run if",
5909
- triggerSetToName: "Change value of: ",
5910
- triggerFromName: "Copy value from: ",
5911
- triggerRunExpression: "Run this Expression",
5912
- triggerSetValue: "to: ",
5913
- triggerGotoName: "Go to the question",
5914
- triggerIsVariable: "Do not put the variable into the survey result.",
5915
- triggerRunExpressionEmpty: "Please enter a valid expression",
5916
- emptyExpressionPlaceHolder: "Type expression here...",
5917
- noFile: "No file choosen",
5918
- clearIfInvisible: "Clear the value if the question becomes hidden",
5919
- valuePropertyName: "Value property name",
5920
- searchEnabled: "Enable search",
5921
- hideSelectedItems: "Hide selected items",
5922
- closeOnSelect: "Close the dropdown after selection",
5923
- signatureWidth: "Signature width",
5924
- signatureHeight: "Signature height",
5925
- verticalAlign: "Vertical alignment",
5926
- alternateRows: "Alternate rows",
5927
- columnsVisibleIf: "Columns are visible if",
5928
- rowsVisibleIf: "Rows are visible if",
5929
- otherPlaceholder: "Comment area placeholder"
5930
- },
5931
- // Property values
5932
- pv: {
5933
- true: "true",
5934
- false: "false",
5935
- inherit: "Inherit",
5936
- show: "Visible",
5937
- hide: "Hidden",
5938
- default: "Inherit",
5939
- initial: "Initial",
5940
- random: "Random",
5941
- collapsed: "Collapsed",
5942
- expanded: "Expanded",
5943
- none: "None",
5944
- asc: "Ascending",
5945
- desc: "Descending",
5946
- indeterminate: "Indeterminate",
5947
- decimal: "decimal",
5948
- currency: "currency",
5949
- percent: "percent",
5950
- firstExpanded: "First panel is expanded",
5951
- off: "Hide question numbers",
5952
- onpanel: "Start on each panel",
5953
- onPanel: "Start on each panel",
5954
- onSurvey: "Continue throughout the survey",
5955
- list: "List",
5956
- progressTop: "Panel navigator + Progress bar at the top",
5957
- progressBottom: "Panel navigator + Progress bar at the bottom",
5958
- progressTopBottom: "Panel navigator + Progress bar at the top and bottom",
5959
- horizontal: "Horizontal",
5960
- vertical: "Vertical",
5961
- top: "Top",
5962
- bottom: "Bottom",
5963
- topBottom: "Top and bottom",
5964
- both: "Both",
5965
- left: "Left",
5966
- right: "Right",
5967
- color: "color",
5968
- date: "date",
5969
- datetime: "datetime",
5970
- "datetime-local": "datetime-local",
5971
- email: "email",
5972
- month: "month",
5973
- number: "number",
5974
- password: "password",
5975
- range: "range",
5976
- tel: "tel",
5977
- text: "text",
5978
- time: "time",
5979
- url: "url",
5980
- week: "week",
5981
- hidden: "Hidden",
5982
- on: "Continue from the previous page",
5983
- onPage: "Start on each page",
5984
- edit: "Editable",
5985
- display: "Read-only",
5986
- onComplete: "When the survey is completed",
5987
- onHidden: "When the question becomes hidden",
5988
- onHiddenContainer: "When the question or its panel/page becomes hidden",
5989
- clearInvisibleValues: {
5990
- none: "Never"
5991
- },
5992
- inputType: {
5993
- color: "Color",
5994
- date: "Date",
5995
- "datetime-local": "Date and Time",
5996
- email: "Email",
5997
- month: "Month",
5998
- number: "Number",
5999
- password: "Password",
6000
- range: "Range",
6001
- tel: "Phone Number",
6002
- text: "Text",
6003
- time: "Time",
6004
- url: "URL",
6005
- week: "Week"
6006
- },
6007
- all: "All",
6008
- page: "Page",
6009
- survey: "Survey",
6010
- onNextPage: "When switching to the next page",
6011
- onValueChanged: "After an answer is changed",
6012
- onValueChanging: "Before an answer is changed",
6013
- standard: "Original structure",
6014
- singlePage: "All questions on a single page",
6015
- questionPerPage: "Each question on an individual page",
6016
- noPreview: "No preview",
6017
- showAllQuestions: "Show all questions",
6018
- showAnsweredQuestions: "Show answered questions only",
6019
- pages: "Completed pages",
6020
- questions: "Answered questions",
6021
- requiredQuestions: "Answered required questions",
6022
- correctQuestions: "Valid answers",
6023
- buttons: "Completed pages (button UI)",
6024
- underInput: "Under the input",
6025
- underTitle: "Under the title",
6026
- onBlur: "On blur",
6027
- onTyping: "While typing",
6028
- underRow: "Under the row",
6029
- underRowSingle: "Under the row, only one panel is visible",
6030
- showNavigationButtons: {
6031
- none: "Hidden"
6032
- },
6033
- showProgressBar: {
6034
- off: "Hidden"
6035
- },
6036
- showTimerPanel: {
6037
- none: "Hidden"
6038
- },
6039
- showTimerPanelMode: {
6040
- all: "Both"
6041
- },
6042
- detailPanelMode: {
6043
- none: "Hidden"
6044
- },
6045
- addRowLocation: {
6046
- default: "Depends on matrix layout"
6047
- },
6048
- panelsState: {
6049
- default: "Users cannot expand or collapse panels",
6050
- collapsed: "All panels are collapsed",
6051
- expanded: "All panels are expanded"
6052
- },
6053
- widthMode: {
6054
- auto: "Auto",
6055
- static: "Static",
6056
- responsive: "Responsive"
6057
- },
6058
- imageFit: {
6059
- none: "None",
6060
- contain: "Contain",
6061
- cover: "Cover",
6062
- fill: "Fill"
6063
- },
6064
- contentMode: {
6065
- auto: "Auto",
6066
- image: "Image",
6067
- video: "Video",
6068
- youtube: "YouTube"
6069
- },
6070
- displayMode: {
6071
- auto: "Auto",
6072
- buttons: "Buttons",
6073
- dropdown: "Dropdown"
6074
- },
6075
- rateColorMode: { default: "Default" }
6076
- },
6077
- // Operators
6078
- op: {
6079
- empty: "Empty",
6080
- notempty: "Not empty",
6081
- equal: "Equals",
6082
- notequal: "Does not equal",
6083
- contains: "Contains",
6084
- notcontains: "Does not contain",
6085
- anyof: "Any of",
6086
- allof: "All of",
6087
- greater: "Greater than",
6088
- less: "Less than",
6089
- greaterorequal: "Greater than or equal to",
6090
- lessorequal: "Less than or equal to",
6091
- and: "and",
6092
- or: "or"
6093
- },
6094
- // Embed window
6095
- ew: {
6096
- angular: "Use Angular version",
6097
- jquery: "Use jQuery version",
6098
- knockout: "Use Knockout version",
6099
- react: "Use React version",
6100
- vue: "Use Vue version",
6101
- bootstrap: "For bootstrap framework",
6102
- modern: "Modern theme",
6103
- default: "Default theme",
6104
- orange: "Orange theme",
6105
- darkblue: "Darkblue theme",
6106
- darkrose: "Darkrose theme",
6107
- stone: "Stone theme",
6108
- winter: "Winter theme",
6109
- winterstone: "Winter-Stone theme",
6110
- showOnPage: "Show survey on a page",
6111
- showInWindow: "Show survey in a window",
6112
- loadFromServer: "Load Survey JSON from server",
6113
- titleScript: "Scripts and styles",
6114
- titleHtml: "HTML",
6115
- titleJavaScript: "JavaScript"
6116
- },
6117
- // Preview (Survey)
6118
- ts: {
6119
- selectPage: "Select the page to test it",
6120
- showInvisibleElements: "Show invisible elements",
6121
- hideInvisibleElements: "Hide invisible elements"
6122
- },
6123
- validators: {
6124
- answercountvalidator: "Answer count",
6125
- emailvalidator: "Email",
6126
- expressionvalidator: "Expression",
6127
- numericvalidator: "Number",
6128
- regexvalidator: "Regex",
6129
- textvalidator: "Text"
6130
- },
6131
- triggers: {
6132
- completetrigger: "Complete survey",
6133
- setvaluetrigger: "Set answer",
6134
- copyvaluetrigger: "Copy answer",
6135
- skiptrigger: "Skip to question",
6136
- runexpressiontrigger: "Run expression",
6137
- visibletrigger: "change visibility (deprecated)"
6138
- },
6139
- pehelp: {
6140
- cookieName: "Cookies prevent users from filling out the same survey twice.",
6141
- format: "Use {0} as a placeholder for the actual value.",
6142
- totalText: "Visible only when at least one column has Total type or Total expression.",
6143
- acceptedTypes: "Refer to the [accept](https://www.w3schools.com/tags/att_input_accept.asp) attribute description for more information.",
6144
- columnColCount: "Applicable only to Radiogroup and Checkbox cell types.",
6145
- autocomplete: "Refer to the [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute description for more information.",
6146
- valueName: "If you do not set this property, the answer will be stored in a field specified by the Name property.",
6147
- choicesbyurl: {
6148
- valueName: " "
6149
- },
6150
- keyName: "If the specified column contains identical values, the survey throws the \"Non-unique key value\" error."
6151
- },
6152
- // Properties
6153
- p: {
6154
- title: {
6155
- name: "title",
6156
- title: "Leave it empty, if it is the same as 'Name'"
6157
- },
6158
- multiSelect: "Allow multiple selection",
6159
- showLabel: "Show image captions",
6160
- value: "Value",
6161
- tabAlign: "Tab alignment",
6162
- description: "Description",
6163
- logoFit: "Logo fit",
6164
- pages: "Pages",
6165
- questions: "Questions",
6166
- triggers: "Triggers",
6167
- calculatedValues: "Calculated values",
6168
- surveyId: "Survey id",
6169
- surveyPostId: "Survey post id",
6170
- surveyShowDataSaving: "Survey show data saving",
6171
- questionDescriptionLocation: "Question description location",
6172
- progressBarType: "Progress bar type",
6173
- showTOC: "Show TOC",
6174
- tocLocation: "Toc location",
6175
- questionTitlePattern: "Question title pattern",
6176
- widthMode: "Width mode",
6177
- showBrandInfo: "Show brand info",
6178
- useDisplayValuesInDynamicTexts: "Use display values in dynamic texts",
6179
- visibleIf: "Visible if",
6180
- titleLocation: "Title location",
6181
- descriptionLocation: "Description location",
6182
- defaultValueExpression: "Default value expression",
6183
- requiredIf: "Required if",
6184
- validators: "Validators",
6185
- bindings: "Bindings",
6186
- renderAs: "Render as",
6187
- attachOriginalItems: "Attach original items",
6188
- choices: "Choices",
6189
- choicesByUrl: "Choices by url",
6190
- currency: "Currency",
6191
- cellHint: "Cell hint",
6192
- isUnique: "Is unique",
6193
- showInMultipleColumns: "Show in multiple columns",
6194
- totalMaximumFractionDigits: "Total maximum fraction digits",
6195
- totalMinimumFractionDigits: "Total minimum fraction digits",
6196
- columns: "Columns",
6197
- detailElements: "Detail elements",
6198
- allowAdaptiveActions: "Allow adaptive actions",
6199
- defaultRowValue: "Default row value",
6200
- detailPanelShowOnAdding: "Detail panel show on adding",
6201
- choicesLazyLoadEnabled: "Choices lazy load enabled",
6202
- choicesLazyLoadPageSize: "Choices lazy load page size",
6203
- inputFieldComponent: "Input field component",
6204
- itemComponent: "Item component",
6205
- min: "Min",
6206
- max: "Max",
6207
- minValueExpression: "Min value expression",
6208
- maxValueExpression: "Max value expression",
6209
- step: "Step",
6210
- dataList: "Data list",
6211
- itemSize: "Item size",
6212
- elements: "Elements",
6213
- content: "Content",
6214
- navigationButtonsVisibility: "Navigation buttons visibility",
6215
- navigationTitle: "Navigation title",
6216
- navigationDescription: "Navigation description",
6217
- longTap: "Long tap",
6218
- autoGrow: "Auto grow",
6219
- acceptCarriageReturn: "Accept carriage return",
6220
- displayMode: "Display mode",
6221
- rateType: "Rate type",
6222
- label: "Label",
6223
- contentMode: "Content mode",
6224
- imageFit: "Image fit",
6225
- altText: "Alt text",
6226
- height: "Height",
6227
- penColor: "Pen color",
6228
- backgroundColor: "Background color",
6229
- templateElements: "Template elements",
6230
- operator: "Operator",
6231
- isVariable: "Is variable",
6232
- runExpression: "Run expression",
6233
- showCaption: "Show caption",
6234
- iconName: "Icon name",
6235
- iconSize: "Icon size" // Auto-generated string
6236
- }
6237
- };
6238
- // Uncomment the line below if you create a custom dictionary.
6239
- // Replace "en" with a custom locale code (for example, "fr" or "de"),
6240
- // Replace `enStrings` with the name of the variable that contains the custom dictionary.
6241
- // editorLocalization.locales["en"] = enStrings;
6242
-
6243
-
6244
4768
  /***/ }),
6245
4769
 
6246
4770
  /***/ "./src/localization/finnish.ts":
@@ -14524,7 +13048,8 @@ survey_creator_core__WEBPACK_IMPORTED_MODULE_0__["editorLocalization"].locales["
14524
13048
  "use strict";
14525
13049
  __webpack_require__.r(__webpack_exports__);
14526
13050
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mnStrings", function() { return mnStrings; });
14527
- /* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
13051
+ /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
13052
+ /* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_0__);
14528
13053
  // Uncomment the line below if you create a custom dictionary
14529
13054
 
14530
13055
  var mnStrings = {
@@ -15443,7 +13968,7 @@ var mnStrings = {
15443
13968
  // Uncomment the line below if you create a custom dictionary.
15444
13969
  // Replace "en" with a custom locale code (for example, "fr" or "de"),
15445
13970
  // Replace `enStrings` with the name of the variable that contains the custom dictionary.
15446
- _editorLocalization__WEBPACK_IMPORTED_MODULE_0__["editorLocalization"].locales["mn"] = mnStrings;
13971
+ survey_creator_core__WEBPACK_IMPORTED_MODULE_0__["editorLocalization"].locales["mn"] = mnStrings;
15447
13972
 
15448
13973
 
15449
13974
  /***/ }),
@@ -26471,354 +24996,6 @@ var turkishStrings = {
26471
24996
  survey_creator_core__WEBPACK_IMPORTED_MODULE_0__["editorLocalization"].locales["tr"] = turkishStrings;
26472
24997
 
26473
24998
 
26474
- /***/ }),
26475
-
26476
- /***/ "./src/utils/utils.ts":
26477
- /*!****************************!*\
26478
- !*** ./src/utils/utils.ts ***!
26479
- \****************************/
26480
- /*! exports provided: getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd */
26481
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
26482
-
26483
- "use strict";
26484
- __webpack_require__.r(__webpack_exports__);
26485
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return getNextItemValue; });
26486
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNextItemText", function() { return getNextItemText; });
26487
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNextValue", function() { return getNextValue; });
26488
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findParentNode", function() { return findParentNode; });
26489
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "focusFirstControl", function() { return focusFirstControl; });
26490
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFirstNonTextElement", function() { return getFirstNonTextElement; });
26491
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNodesFromKoComponentInfo", function() { return getNodesFromKoComponentInfo; });
26492
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "propertyExists", function() { return propertyExists; });
26493
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPropertyVisible", function() { return isPropertyVisible; });
26494
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toggleHovered", function() { return toggleHovered; });
26495
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "clearNewLines", function() { return clearNewLines; });
26496
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "select", function() { return select; });
26497
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyObject", function() { return copyObject; });
26498
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyCssClasses", function() { return copyCssClasses; });
26499
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assignDefaultV2Classes", function() { return assignDefaultV2Classes; });
26500
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return wrapTextByCurlyBraces; });
26501
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return capitalize; });
26502
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return notShortCircuitAnd; });
26503
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
26504
- /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
26505
- /* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
26506
-
26507
-
26508
- function getNumericFromString(str) {
26509
- if (!str)
26510
- return "";
26511
- var num = "";
26512
- for (var i = str.length - 1; i >= 0; i--) {
26513
- if (str[i] >= "0" && str[i] <= "9") {
26514
- num = str[i] + num;
26515
- }
26516
- else {
26517
- if (!!num)
26518
- return num;
26519
- }
26520
- if (num.length == 10)
26521
- break;
26522
- }
26523
- return num;
26524
- }
26525
- var opositeValues = {
26526
- true: "false",
26527
- True: "False",
26528
- TRUE: "FALSE",
26529
- false: "true",
26530
- False: "True",
26531
- FALSE: "TRUE",
26532
- yes: "no",
26533
- Yes: "No",
26534
- YES: "NO",
26535
- no: "yes",
26536
- No: "Yes",
26537
- NO: "YES"
26538
- };
26539
- function getOpositValue(str) {
26540
- if (!!opositeValues[str])
26541
- return opositeValues[str];
26542
- return null;
26543
- }
26544
- function hasValueInArray(values, search) {
26545
- search = search.toString();
26546
- for (var i = 0; i < values.length; i++) {
26547
- if (!values[i])
26548
- continue;
26549
- if (values[i].toString() === search)
26550
- return true;
26551
- }
26552
- return false;
26553
- }
26554
- function getNextItemValue(prefix, choices) {
26555
- var values = choices.map(function (item) { return item.value; });
26556
- return getNextValue(prefix, values);
26557
- }
26558
- function getNextItemText(choices) {
26559
- var ln = choices.length;
26560
- if (ln === 0)
26561
- return "";
26562
- if (!choices[ln - 1].text || choices[ln - 1].text === choices[ln - 1].value)
26563
- return "";
26564
- var values = [];
26565
- choices.forEach(function (item) { if (item.hasText)
26566
- values.push(item.text); });
26567
- choices.map(function (item) { return item.text; });
26568
- var nextValue = getNextValue("", values);
26569
- return !!nextValue ? nextValue.toString() : "";
26570
- }
26571
- function getNextValue(prefix, values) {
26572
- if (values.length > 0)
26573
- var oposite = getOpositValue(values[values.length - 1]);
26574
- if (oposite && values.indexOf(oposite) < 0)
26575
- return oposite;
26576
- var numStr = "";
26577
- var baseValue;
26578
- var numStrIndex = -1;
26579
- for (var i = values.length - 1; i >= 0; i--) {
26580
- if (!values[i])
26581
- continue;
26582
- var str = values[i].toString();
26583
- numStr = getNumericFromString(str);
26584
- if (!!numStr) {
26585
- numStrIndex = str.lastIndexOf(numStr);
26586
- baseValue = values[i];
26587
- break;
26588
- }
26589
- }
26590
- if (numStrIndex > -1) {
26591
- var num = parseInt(numStr);
26592
- var isNumber = baseValue === num;
26593
- var newValue;
26594
- do {
26595
- if (isNumber) {
26596
- newValue = ++num;
26597
- }
26598
- else {
26599
- var newNum = (num++).toString();
26600
- while (numStr.length > newNum.length) {
26601
- newNum = "0" + newNum;
26602
- }
26603
- newValue = str.substring(0, numStrIndex) + newNum + str.substring(numStrIndex + numStr.length);
26604
- }
26605
- } while (hasValueInArray(values, newValue));
26606
- return newValue;
26607
- }
26608
- if (!prefix) {
26609
- prefix = values[values.length - 1];
26610
- }
26611
- return prefix + 1;
26612
- }
26613
- function findParentNode(className, sourceNode) {
26614
- var parent = sourceNode;
26615
- while (!!parent && !parent.classList.contains(className)) {
26616
- parent = parent.parentElement;
26617
- }
26618
- return parent;
26619
- }
26620
- function focusFirstControl(renderedElements) {
26621
- for (var i = 0; i < renderedElements.length; i++) {
26622
- if (typeof renderedElements[i].getElementsByClassName === "function") {
26623
- var elements = (renderedElements[i].getElementsByClassName("svd-focusable"));
26624
- if (elements.length === 0 &&
26625
- renderedElements[i].className.indexOf("svd-focusable") !== -1) {
26626
- elements = [renderedElements[i]];
26627
- }
26628
- if (elements.length > 0) {
26629
- var element = elements[0];
26630
- if (element.tagName.toLowerCase() !== "a") {
26631
- element.focus({ preventScroll: true });
26632
- break;
26633
- }
26634
- }
26635
- }
26636
- }
26637
- }
26638
- function getFirstNonTextElement(elements) {
26639
- if (!elements || !elements.length)
26640
- return;
26641
- for (var i = 0; i < elements.length; i++) {
26642
- if (elements[i].nodeName != "#text" && elements[i].nodeName != "#comment")
26643
- return elements[i];
26644
- }
26645
- return null;
26646
- }
26647
- // about compoentInfo: https://knockoutjs.com/documentation/component-registration.html
26648
- function getNodesFromKoComponentInfo(componentInfo) {
26649
- // elem.nodeType === 3 // text node
26650
- // elem.nodeType === 8 // comment node
26651
- var element = componentInfo.element;
26652
- var siblings = [];
26653
- if (element.nodeType !== 8) {
26654
- return element.childNodes;
26655
- }
26656
- while ((element = element.nextSibling)) {
26657
- if (element.nodeType === 3)
26658
- continue;
26659
- siblings.push(element);
26660
- }
26661
- return siblings;
26662
- }
26663
- // ko.bindingHandlers["trueclick"] = {
26664
- // init: function (element, valueAccessor, allBindingsAccessor) {
26665
- // element.onclick = () => true;
26666
- // },
26667
- // };
26668
- // export function createKey2click(element: HTMLElement) {
26669
- // return (ev: KeyboardEvent) => {
26670
- // var char = ev.which || ev.keyCode;
26671
- // if (char === 13 || char === 32) {
26672
- // element.click();
26673
- // } else if (char === 27) {
26674
- // element.blur();
26675
- // }
26676
- // };
26677
- // }
26678
- // ko.bindingHandlers["key2click"] = {
26679
- // init: function (element, valueAccessor, allBindingsAccessor) {
26680
- // element.onkeyup = createKey2click(element);
26681
- // },
26682
- // };
26683
- // ko.bindingHandlers["clickNoFocus"] = {
26684
- // init: function (element, valueAccessor, allBindingsAccessor, viewModel) {
26685
- // element.onclick = (ev) => {
26686
- // valueAccessor().call(viewModel, viewModel, ev);
26687
- // };
26688
- // },
26689
- // };
26690
- // ko.bindingHandlers["afterRenderParent"] = {
26691
- // init: function (element, valueAccessor, allBindingsAccessor, viewModel) {
26692
- // element.style.display = "none";
26693
- // valueAccessor() && valueAccessor()([element.parentElement]);
26694
- // },
26695
- // };
26696
- function propertyExists(obj, propertyName) {
26697
- var result = true;
26698
- if (!!obj && typeof obj.getType === "function") {
26699
- var property = survey_core__WEBPACK_IMPORTED_MODULE_0__["Serializer"].findProperty(obj.getType(), propertyName);
26700
- result = !!property;
26701
- }
26702
- return result;
26703
- }
26704
- function isPropertyVisible(obj, propertyName) {
26705
- var result = true;
26706
- if (!!obj && typeof obj.getType === "function") {
26707
- var property = survey_core__WEBPACK_IMPORTED_MODULE_0__["Serializer"].findProperty(obj.getType(), propertyName);
26708
- result = !property || property.visible;
26709
- }
26710
- return result;
26711
- }
26712
- function toggleHovered(e, element, timeout) {
26713
- if (timeout === void 0) { timeout = 0; }
26714
- var processedFlagName = "__svc_question_processed";
26715
- var name = "svc-hovered";
26716
- var nameReady = "svc-hovered-ready";
26717
- function setClass(className, checkReady) {
26718
- if (checkReady === void 0) { checkReady = null; }
26719
- var arr = (element.className || "").split(" ");
26720
- if (checkReady) {
26721
- if (arr.indexOf(checkReady) == -1) {
26722
- return;
26723
- }
26724
- }
26725
- if (arr.indexOf(className) == -1) {
26726
- element.className += " " + className;
26727
- }
26728
- }
26729
- if (!e[processedFlagName] && e.type === "mouseover") {
26730
- if (timeout) {
26731
- setClass(nameReady);
26732
- setTimeout(function () {
26733
- setClass(name, nameReady);
26734
- }, timeout);
26735
- }
26736
- else {
26737
- setClass(name);
26738
- }
26739
- e[processedFlagName] = true;
26740
- }
26741
- else {
26742
- element.className = (element.className || "").replace(" svc-hovered-ready", "");
26743
- element.className = (element.className || "").replace(" svc-hovered", "");
26744
- }
26745
- }
26746
- function clearNewLines(text) {
26747
- return text.replace(new RegExp("(\\r\\n|\\n|\\r)", "gm"), "");
26748
- }
26749
- function select(element) {
26750
- if (!window)
26751
- return;
26752
- var range, selection;
26753
- if (window.getSelection && document.createRange) {
26754
- selection = window.getSelection();
26755
- range = document.createRange();
26756
- range.selectNodeContents(element);
26757
- selection.removeAllRanges();
26758
- selection.addRange(range);
26759
- }
26760
- else if (document["selection"] && document.body["createTextRange"]) {
26761
- range = document.body["createTextRange"]();
26762
- range.moveToElementText(element);
26763
- range.select();
26764
- }
26765
- }
26766
- function copyObject(dst, src) {
26767
- for (var key in src) {
26768
- var source = src[key];
26769
- if (typeof source === "object") {
26770
- source = {};
26771
- this.copyObject(source, src[key]);
26772
- }
26773
- dst[key] = source;
26774
- }
26775
- }
26776
- function copyCssClasses(dest, source) {
26777
- if (!source)
26778
- return;
26779
- if (typeof source === "string" || source instanceof String) {
26780
- dest["root"] = source;
26781
- }
26782
- else {
26783
- copyObject(dest, source);
26784
- }
26785
- }
26786
- function assignDefaultV2Classes(destination, questionType) {
26787
- copyCssClasses(destination, survey_core__WEBPACK_IMPORTED_MODULE_0__["defaultV2Css"].question);
26788
- copyCssClasses(destination, survey_core__WEBPACK_IMPORTED_MODULE_0__["defaultV2Css"][questionType]);
26789
- }
26790
- function wrapTextByCurlyBraces(text) {
26791
- return _creator_settings__WEBPACK_IMPORTED_MODULE_1__["settings"].logic.openBracket + text + _creator_settings__WEBPACK_IMPORTED_MODULE_1__["settings"].logic.closeBracket;
26792
- }
26793
- function capitalize(str) {
26794
- if (!str)
26795
- return str;
26796
- str = str.replace(/[\s]+/g, " ");
26797
- str = str.replace(/([\s]|^)(\S)/g, function (_, p1, p2) {
26798
- return p1 + p2.toUpperCase();
26799
- });
26800
- return str;
26801
- }
26802
- function notShortCircuitAnd() {
26803
- var args = [];
26804
- for (var _i = 0; _i < arguments.length; _i++) {
26805
- args[_i] = arguments[_i];
26806
- }
26807
- return args.every(function (val) { return val === true; });
26808
- }
26809
-
26810
-
26811
- /***/ }),
26812
-
26813
- /***/ "survey-core":
26814
- /*!*********************************************************************************************************!*\
26815
- !*** external {"root":"Survey","commonjs2":"survey-core","commonjs":"survey-core","amd":"survey-core"} ***!
26816
- \*********************************************************************************************************/
26817
- /*! no static exports found */
26818
- /***/ (function(module, exports) {
26819
-
26820
- module.exports = __WEBPACK_EXTERNAL_MODULE_survey_core__;
26821
-
26822
24999
  /***/ }),
26823
25000
 
26824
25001
  /***/ "survey-creator-core":