survey-react-ui 1.9.88 → 1.9.90

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,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.88
2
+ * surveyjs - Survey JavaScript library v1.9.90
3
3
  * Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -101,505 +101,6 @@ return /******/ (function(modules) { // webpackBootstrap
101
101
  /************************************************************************/
102
102
  /******/ ({
103
103
 
104
- /***/ "./node_modules/process/browser.js":
105
- /*!*****************************************!*\
106
- !*** ./node_modules/process/browser.js ***!
107
- \*****************************************/
108
- /*! no static exports found */
109
- /***/ (function(module, exports) {
110
-
111
- // shim for using process in browser
112
- var process = module.exports = {};
113
-
114
- // cached from whatever global is present so that test runners that stub it
115
- // don't break things. But we need to wrap it in a try catch in case it is
116
- // wrapped in strict mode code which doesn't define any globals. It's inside a
117
- // function because try/catches deoptimize in certain engines.
118
-
119
- var cachedSetTimeout;
120
- var cachedClearTimeout;
121
-
122
- function defaultSetTimout() {
123
- throw new Error('setTimeout has not been defined');
124
- }
125
- function defaultClearTimeout () {
126
- throw new Error('clearTimeout has not been defined');
127
- }
128
- (function () {
129
- try {
130
- if (typeof setTimeout === 'function') {
131
- cachedSetTimeout = setTimeout;
132
- } else {
133
- cachedSetTimeout = defaultSetTimout;
134
- }
135
- } catch (e) {
136
- cachedSetTimeout = defaultSetTimout;
137
- }
138
- try {
139
- if (typeof clearTimeout === 'function') {
140
- cachedClearTimeout = clearTimeout;
141
- } else {
142
- cachedClearTimeout = defaultClearTimeout;
143
- }
144
- } catch (e) {
145
- cachedClearTimeout = defaultClearTimeout;
146
- }
147
- } ())
148
- function runTimeout(fun) {
149
- if (cachedSetTimeout === setTimeout) {
150
- //normal enviroments in sane situations
151
- return setTimeout(fun, 0);
152
- }
153
- // if setTimeout wasn't available but was latter defined
154
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
155
- cachedSetTimeout = setTimeout;
156
- return setTimeout(fun, 0);
157
- }
158
- try {
159
- // when when somebody has screwed with setTimeout but no I.E. maddness
160
- return cachedSetTimeout(fun, 0);
161
- } catch(e){
162
- try {
163
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
164
- return cachedSetTimeout.call(null, fun, 0);
165
- } catch(e){
166
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
167
- return cachedSetTimeout.call(this, fun, 0);
168
- }
169
- }
170
-
171
-
172
- }
173
- function runClearTimeout(marker) {
174
- if (cachedClearTimeout === clearTimeout) {
175
- //normal enviroments in sane situations
176
- return clearTimeout(marker);
177
- }
178
- // if clearTimeout wasn't available but was latter defined
179
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
180
- cachedClearTimeout = clearTimeout;
181
- return clearTimeout(marker);
182
- }
183
- try {
184
- // when when somebody has screwed with setTimeout but no I.E. maddness
185
- return cachedClearTimeout(marker);
186
- } catch (e){
187
- try {
188
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
189
- return cachedClearTimeout.call(null, marker);
190
- } catch (e){
191
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
192
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
193
- return cachedClearTimeout.call(this, marker);
194
- }
195
- }
196
-
197
-
198
-
199
- }
200
- var queue = [];
201
- var draining = false;
202
- var currentQueue;
203
- var queueIndex = -1;
204
-
205
- function cleanUpNextTick() {
206
- if (!draining || !currentQueue) {
207
- return;
208
- }
209
- draining = false;
210
- if (currentQueue.length) {
211
- queue = currentQueue.concat(queue);
212
- } else {
213
- queueIndex = -1;
214
- }
215
- if (queue.length) {
216
- drainQueue();
217
- }
218
- }
219
-
220
- function drainQueue() {
221
- if (draining) {
222
- return;
223
- }
224
- var timeout = runTimeout(cleanUpNextTick);
225
- draining = true;
226
-
227
- var len = queue.length;
228
- while(len) {
229
- currentQueue = queue;
230
- queue = [];
231
- while (++queueIndex < len) {
232
- if (currentQueue) {
233
- currentQueue[queueIndex].run();
234
- }
235
- }
236
- queueIndex = -1;
237
- len = queue.length;
238
- }
239
- currentQueue = null;
240
- draining = false;
241
- runClearTimeout(timeout);
242
- }
243
-
244
- process.nextTick = function (fun) {
245
- var args = new Array(arguments.length - 1);
246
- if (arguments.length > 1) {
247
- for (var i = 1; i < arguments.length; i++) {
248
- args[i - 1] = arguments[i];
249
- }
250
- }
251
- queue.push(new Item(fun, args));
252
- if (queue.length === 1 && !draining) {
253
- runTimeout(drainQueue);
254
- }
255
- };
256
-
257
- // v8 likes predictible objects
258
- function Item(fun, array) {
259
- this.fun = fun;
260
- this.array = array;
261
- }
262
- Item.prototype.run = function () {
263
- this.fun.apply(null, this.array);
264
- };
265
- process.title = 'browser';
266
- process.browser = true;
267
- process.env = {};
268
- process.argv = [];
269
- process.version = ''; // empty string to avoid regexp issues
270
- process.versions = {};
271
-
272
- function noop() {}
273
-
274
- process.on = noop;
275
- process.addListener = noop;
276
- process.once = noop;
277
- process.off = noop;
278
- process.removeListener = noop;
279
- process.removeAllListeners = noop;
280
- process.emit = noop;
281
- process.prependListener = noop;
282
- process.prependOnceListener = noop;
283
-
284
- process.listeners = function (name) { return [] }
285
-
286
- process.binding = function (name) {
287
- throw new Error('process.binding is not supported');
288
- };
289
-
290
- process.cwd = function () { return '/' };
291
- process.chdir = function (dir) {
292
- throw new Error('process.chdir is not supported');
293
- };
294
- process.umask = function() { return 0; };
295
-
296
-
297
- /***/ }),
298
-
299
- /***/ "./node_modules/setimmediate/setImmediate.js":
300
- /*!***************************************************!*\
301
- !*** ./node_modules/setimmediate/setImmediate.js ***!
302
- \***************************************************/
303
- /*! no static exports found */
304
- /***/ (function(module, exports, __webpack_require__) {
305
-
306
- /* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) {
307
- "use strict";
308
-
309
- if (global.setImmediate) {
310
- return;
311
- }
312
-
313
- var nextHandle = 1; // Spec says greater than zero
314
- var tasksByHandle = {};
315
- var currentlyRunningATask = false;
316
- var doc = global.document;
317
- var registerImmediate;
318
-
319
- function setImmediate(callback) {
320
- // Callback can either be a function or a string
321
- if (typeof callback !== "function") {
322
- callback = new Function("" + callback);
323
- }
324
- // Copy function arguments
325
- var args = new Array(arguments.length - 1);
326
- for (var i = 0; i < args.length; i++) {
327
- args[i] = arguments[i + 1];
328
- }
329
- // Store and register the task
330
- var task = { callback: callback, args: args };
331
- tasksByHandle[nextHandle] = task;
332
- registerImmediate(nextHandle);
333
- return nextHandle++;
334
- }
335
-
336
- function clearImmediate(handle) {
337
- delete tasksByHandle[handle];
338
- }
339
-
340
- function run(task) {
341
- var callback = task.callback;
342
- var args = task.args;
343
- switch (args.length) {
344
- case 0:
345
- callback();
346
- break;
347
- case 1:
348
- callback(args[0]);
349
- break;
350
- case 2:
351
- callback(args[0], args[1]);
352
- break;
353
- case 3:
354
- callback(args[0], args[1], args[2]);
355
- break;
356
- default:
357
- callback.apply(undefined, args);
358
- break;
359
- }
360
- }
361
-
362
- function runIfPresent(handle) {
363
- // From the spec: "Wait until any invocations of this algorithm started before this one have completed."
364
- // So if we're currently running a task, we'll need to delay this invocation.
365
- if (currentlyRunningATask) {
366
- // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a
367
- // "too much recursion" error.
368
- setTimeout(runIfPresent, 0, handle);
369
- } else {
370
- var task = tasksByHandle[handle];
371
- if (task) {
372
- currentlyRunningATask = true;
373
- try {
374
- run(task);
375
- } finally {
376
- clearImmediate(handle);
377
- currentlyRunningATask = false;
378
- }
379
- }
380
- }
381
- }
382
-
383
- function installNextTickImplementation() {
384
- registerImmediate = function(handle) {
385
- process.nextTick(function () { runIfPresent(handle); });
386
- };
387
- }
388
-
389
- function canUsePostMessage() {
390
- // The test against `importScripts` prevents this implementation from being installed inside a web worker,
391
- // where `global.postMessage` means something completely different and can't be used for this purpose.
392
- if (global.postMessage && !global.importScripts) {
393
- var postMessageIsAsynchronous = true;
394
- var oldOnMessage = global.onmessage;
395
- global.onmessage = function() {
396
- postMessageIsAsynchronous = false;
397
- };
398
- global.postMessage("", "*");
399
- global.onmessage = oldOnMessage;
400
- return postMessageIsAsynchronous;
401
- }
402
- }
403
-
404
- function installPostMessageImplementation() {
405
- // Installs an event handler on `global` for the `message` event: see
406
- // * https://developer.mozilla.org/en/DOM/window.postMessage
407
- // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages
408
-
409
- var messagePrefix = "setImmediate$" + Math.random() + "$";
410
- var onGlobalMessage = function(event) {
411
- if (event.source === global &&
412
- typeof event.data === "string" &&
413
- event.data.indexOf(messagePrefix) === 0) {
414
- runIfPresent(+event.data.slice(messagePrefix.length));
415
- }
416
- };
417
-
418
- if (global.addEventListener) {
419
- global.addEventListener("message", onGlobalMessage, false);
420
- } else {
421
- global.attachEvent("onmessage", onGlobalMessage);
422
- }
423
-
424
- registerImmediate = function(handle) {
425
- global.postMessage(messagePrefix + handle, "*");
426
- };
427
- }
428
-
429
- function installMessageChannelImplementation() {
430
- var channel = new MessageChannel();
431
- channel.port1.onmessage = function(event) {
432
- var handle = event.data;
433
- runIfPresent(handle);
434
- };
435
-
436
- registerImmediate = function(handle) {
437
- channel.port2.postMessage(handle);
438
- };
439
- }
440
-
441
- function installReadyStateChangeImplementation() {
442
- var html = doc.documentElement;
443
- registerImmediate = function(handle) {
444
- // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
445
- // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
446
- var script = doc.createElement("script");
447
- script.onreadystatechange = function () {
448
- runIfPresent(handle);
449
- script.onreadystatechange = null;
450
- html.removeChild(script);
451
- script = null;
452
- };
453
- html.appendChild(script);
454
- };
455
- }
456
-
457
- function installSetTimeoutImplementation() {
458
- registerImmediate = function(handle) {
459
- setTimeout(runIfPresent, 0, handle);
460
- };
461
- }
462
-
463
- // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.
464
- var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);
465
- attachTo = attachTo && attachTo.setTimeout ? attachTo : global;
466
-
467
- // Don't get fooled by e.g. browserify environments.
468
- if ({}.toString.call(global.process) === "[object process]") {
469
- // For Node.js before 0.9
470
- installNextTickImplementation();
471
-
472
- } else if (canUsePostMessage()) {
473
- // For non-IE10 modern browsers
474
- installPostMessageImplementation();
475
-
476
- } else if (global.MessageChannel) {
477
- // For web workers, where supported
478
- installMessageChannelImplementation();
479
-
480
- } else if (doc && "onreadystatechange" in doc.createElement("script")) {
481
- // For IE 6–8
482
- installReadyStateChangeImplementation();
483
-
484
- } else {
485
- // For older browsers
486
- installSetTimeoutImplementation();
487
- }
488
-
489
- attachTo.setImmediate = setImmediate;
490
- attachTo.clearImmediate = clearImmediate;
491
- }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self));
492
-
493
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../process/browser.js */ "./node_modules/process/browser.js")))
494
-
495
- /***/ }),
496
-
497
- /***/ "./node_modules/timers-browserify/main.js":
498
- /*!************************************************!*\
499
- !*** ./node_modules/timers-browserify/main.js ***!
500
- \************************************************/
501
- /*! no static exports found */
502
- /***/ (function(module, exports, __webpack_require__) {
503
-
504
- /* WEBPACK VAR INJECTION */(function(global) {var scope = (typeof global !== "undefined" && global) ||
505
- (typeof self !== "undefined" && self) ||
506
- window;
507
- var apply = Function.prototype.apply;
508
-
509
- // DOM APIs, for completeness
510
-
511
- exports.setTimeout = function() {
512
- return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);
513
- };
514
- exports.setInterval = function() {
515
- return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);
516
- };
517
- exports.clearTimeout =
518
- exports.clearInterval = function(timeout) {
519
- if (timeout) {
520
- timeout.close();
521
- }
522
- };
523
-
524
- function Timeout(id, clearFn) {
525
- this._id = id;
526
- this._clearFn = clearFn;
527
- }
528
- Timeout.prototype.unref = Timeout.prototype.ref = function() {};
529
- Timeout.prototype.close = function() {
530
- this._clearFn.call(scope, this._id);
531
- };
532
-
533
- // Does not start the time, just sets up the members needed.
534
- exports.enroll = function(item, msecs) {
535
- clearTimeout(item._idleTimeoutId);
536
- item._idleTimeout = msecs;
537
- };
538
-
539
- exports.unenroll = function(item) {
540
- clearTimeout(item._idleTimeoutId);
541
- item._idleTimeout = -1;
542
- };
543
-
544
- exports._unrefActive = exports.active = function(item) {
545
- clearTimeout(item._idleTimeoutId);
546
-
547
- var msecs = item._idleTimeout;
548
- if (msecs >= 0) {
549
- item._idleTimeoutId = setTimeout(function onTimeout() {
550
- if (item._onTimeout)
551
- item._onTimeout();
552
- }, msecs);
553
- }
554
- };
555
-
556
- // setimmediate attaches itself to the global object
557
- __webpack_require__(/*! setimmediate */ "./node_modules/setimmediate/setImmediate.js");
558
- // On some exotic environments, it's not clear which object `setimmediate` was
559
- // able to install onto. Search each possibility in the same order as the
560
- // `setimmediate` library.
561
- exports.setImmediate = (typeof self !== "undefined" && self.setImmediate) ||
562
- (typeof global !== "undefined" && global.setImmediate) ||
563
- (this && this.setImmediate);
564
- exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) ||
565
- (typeof global !== "undefined" && global.clearImmediate) ||
566
- (this && this.clearImmediate);
567
-
568
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
569
-
570
- /***/ }),
571
-
572
- /***/ "./node_modules/webpack/buildin/global.js":
573
- /*!***********************************!*\
574
- !*** (webpack)/buildin/global.js ***!
575
- \***********************************/
576
- /*! no static exports found */
577
- /***/ (function(module, exports) {
578
-
579
- var g;
580
-
581
- // This works in non-strict mode
582
- g = (function() {
583
- return this;
584
- })();
585
-
586
- try {
587
- // This works if eval is allowed (see CSP)
588
- g = g || new Function("return this")();
589
- } catch (e) {
590
- // This works if the window reference is available
591
- if (typeof window === "object") g = window;
592
- }
593
-
594
- // g can still be undefined, but nothing to do about it...
595
- // We return undefined, instead of nothing here, so it's
596
- // easier to handle this case. if(!global) { ...}
597
-
598
- module.exports = g;
599
-
600
-
601
- /***/ }),
602
-
603
104
  /***/ "./src/entries/core-export.ts":
604
105
  /*!************************************!*\
605
106
  !*** ./src/entries/core-export.ts ***!
@@ -1189,7 +690,7 @@ __webpack_require__.r(__webpack_exports__);
1189
690
 
1190
691
 
1191
692
 
1192
- Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.88", "survey-react-ui");
693
+ Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["checkLibraryVersion"])("" + "1.9.90", "survey-react-ui");
1193
694
 
1194
695
 
1195
696
  /***/ }),
@@ -4133,7 +3634,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
4133
3634
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.inputReadOnly ? undefined : 0, onClick: this.click,
4134
3635
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4135
3636
  // @ts-ignore
4136
- disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy, "aria-expanded": this.question.ariaExpanded ? "true" : "false", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
3637
+ disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
4137
3638
  dropdownListModel.showHintPrefix ?
4138
3639
  (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintPrefix },
4139
3640
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringPrefix))) : null,
@@ -4143,7 +3644,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
4143
3644
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
4144
3645
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringSuffix))) : null,
4145
3646
  valueElement,
4146
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.filterStringEnabled ? this.question.ariaRole : undefined, "aria-label": this.question.placeholder, "aria-expanded": this.question.ariaExpanded ? "true" : "false", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: !dropdownListModel.searchEnabled ? true : undefined, tabIndex: dropdownListModel.inputReadOnly ? undefined : -1, disabled: this.question.isInputReadOnly, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
3647
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.filterStringEnabled ? this.question.ariaRole : undefined, "aria-label": this.question.placeholder, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: !dropdownListModel.searchEnabled ? true : undefined, tabIndex: dropdownListModel.inputReadOnly ? undefined : -1, disabled: this.question.isInputReadOnly, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
4147
3648
  this.createClearButton()));
4148
3649
  };
4149
3650
  SurveyQuestionDropdownBase.prototype.createClearButton = function () {
@@ -4664,6 +4165,9 @@ var SurveyQuestionImage = /** @class */ (function (_super) {
4664
4165
  var _this = this;
4665
4166
  var cssClasses = this.question.getImageCss();
4666
4167
  var style = { objectFit: this.question.imageFit };
4168
+ if (!this.question.imageLink || this.question.contentNotLoaded) {
4169
+ style["display"] = "none";
4170
+ }
4667
4171
  var control = null;
4668
4172
  if (this.question.renderedMode === "image") {
4669
4173
  control = (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { className: cssClasses, src: this.question.locImageLink.renderedHtml, alt: this.question.altText || this.question.title, width: this.question.renderedWidth, height: this.question.renderedHeight,
@@ -5459,6 +4963,17 @@ var __extends = (undefined && undefined.__extends) || (function () {
5459
4963
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
5460
4964
  };
5461
4965
  })();
4966
+ var __assign = (undefined && undefined.__assign) || function () {
4967
+ __assign = Object.assign || function(t) {
4968
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4969
+ s = arguments[i];
4970
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
4971
+ t[p] = s[p];
4972
+ }
4973
+ return t;
4974
+ };
4975
+ return __assign.apply(this, arguments);
4976
+ };
5462
4977
 
5463
4978
 
5464
4979
 
@@ -5741,6 +5256,7 @@ function attachKey2click(element, viewModel, options) {
5741
5256
  if ((!!viewModel && viewModel.disableTabStop) || (!!options && options.disableTabStop)) {
5742
5257
  return react__WEBPACK_IMPORTED_MODULE_0__["cloneElement"](element, { tabIndex: -1 });
5743
5258
  }
5259
+ options = __assign({}, options);
5744
5260
  return react__WEBPACK_IMPORTED_MODULE_0__["cloneElement"](element, {
5745
5261
  tabIndex: 0,
5746
5262
  onKeyUp: function (evt) {
@@ -6258,7 +5774,7 @@ var SurveyQuestion = /** @class */ (function (_super) {
6258
5774
  var rootStyle = question.getRootStyle();
6259
5775
  var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
6260
5776
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
6261
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy },
5777
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-expanded": question.ariaExpanded === null ? undefined : question.ariaExpanded === "true" },
6262
5778
  errorsAboveQuestion,
6263
5779
  headerTop,
6264
5780
  questionContent,
@@ -6951,7 +6467,7 @@ var SurveyQuestionComment = /** @class */ (function (_super) {
6951
6467
  }
6952
6468
  var counter = !!this.question.getMaxLength() ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_character_counter__WEBPACK_IMPORTED_MODULE_3__["CharacterCounterComponent"], { counter: this.question.characterCounter, remainingCharacterCounter: this.question.cssClasses.remainingCharacterCounter })) : null;
6953
6469
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
6954
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("textarea", { id: this.question.inputId, className: this.question.className, disabled: this.question.isInputReadOnly, readOnly: this.question.isInputReadOnly, ref: function (textarea) { return (_this.setControl(textarea)); }, maxLength: this.question.getMaxLength(), placeholder: placeholder, onBlur: onBlur, onInput: onInput, onKeyDown: function (event) { _this.question.onKeyDown(event); }, cols: this.question.cols, rows: this.question.rows, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy, style: { resize: this.question.resizeStyle } }),
6470
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("textarea", { id: this.question.inputId, className: this.question.className, disabled: this.question.isInputReadOnly, readOnly: this.question.isInputReadOnly, ref: function (textarea) { return (_this.setControl(textarea)); }, maxLength: this.question.getMaxLength(), placeholder: placeholder, onBlur: onBlur, onInput: onInput, onKeyDown: function (event) { _this.question.onKeyDown(event); }, cols: this.question.cols, rows: this.question.rows, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy, style: { resize: this.question.resizeStyle } }),
6955
6471
  counter));
6956
6472
  };
6957
6473
  return SurveyQuestionComment;
@@ -8945,11 +8461,8 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
8945
8461
  });
8946
8462
  };
8947
8463
  SurveyQuestionPanelDynamic.prototype.renderNavigatorV2 = function () {
8948
- if (this.question.panelCount === 0 || this.question["showLegacyNavigation"])
8949
- return null;
8950
- if (!this.question.cssClasses.footer) {
8464
+ if (!this.question.showNavigation)
8951
8465
  return null;
8952
- }
8953
8466
  var range = this.question.isRangeShowing && this.question.isProgressBottomShowing ? this.renderRange() : null;
8954
8467
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.footer },
8955
8468
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("hr", { className: this.question.cssClasses.separator }),
@@ -8997,7 +8510,7 @@ var SurveyQuestionPanelDynamicItem = /** @class */ (function (_super) {
8997
8510
  SurveyQuestionPanelDynamicItem.prototype.render = function () {
8998
8511
  var panel = _super.prototype.render.call(this);
8999
8512
  var removeButton = this.renderButton();
9000
- var separator = this.question.isRenderModeList && this.index < this.question.panelCount - 1 ?
8513
+ var separator = this.question.showSeparator(this.index) ?
9001
8514
  (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("hr", { className: this.question.cssClasses.separator })) : null;
9002
8515
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
9003
8516
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.getPanelWrapperCss() },
@@ -9583,7 +9096,7 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
9583
9096
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.inputReadOnly ? undefined : 0, onClick: this.click,
9584
9097
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9585
9098
  // @ts-ignore
9586
- disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy, "aria-expanded": this.question.ariaExpanded ? "true" : "false", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
9099
+ disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
9587
9100
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.controlValue },
9588
9101
  items,
9589
9102
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_tagbox_filter__WEBPACK_IMPORTED_MODULE_4__["TagboxFilterString"], { model: dropdownMultiSelectListModel, question: this.question })),
@@ -9659,7 +9172,7 @@ var SurveyQuestionText = /** @class */ (function (_super) {
9659
9172
  return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
9660
9173
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: inputClass, type: this.question.inputType,
9661
9174
  //ref={this.controlRef}
9662
- ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: this.question.onBlur, onFocus: this.question.onFocus, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy }),
9175
+ ref: function (input) { return (_this.setControl(input)); }, style: this.question.inputStyle, maxLength: this.question.getMaxLength(), min: this.question.renderedMin, max: this.question.renderedMax, step: this.question.renderedStep, size: this.question.inputSize, placeholder: placeholder, list: this.question.dataListId, autoComplete: this.question.autocomplete, onBlur: this.question.onBlur, onFocus: this.question.onFocus, onChange: this.question.onChange, onKeyUp: this.question.onKeyUp, onKeyDown: this.question.onKeyDown, onCompositionUpdate: function (event) { return _this.question.onCompositionUpdate(event.nativeEvent); }, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-describedby": this.question.a11y_input_ariaDescribedBy }),
9663
9176
  counter));
9664
9177
  };
9665
9178
  SurveyQuestionText.prototype.renderElement = function () {
@@ -10373,7 +9886,7 @@ var TagboxFilterString = /** @class */ (function (_super) {
10373
9886
  (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintSuffix },
10374
9887
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.model.inputStringRendered),
10375
9888
  react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.model.hintStringSuffix))) : null,
10376
- react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: !this.model.searchEnabled ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-label": this.question.placeholder, "aria-expanded": this.question.ariaExpanded ? "true" : "false", "aria-controls": this.model.listElementId, "aria-activedescendant": this.model.ariaActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); }, onFocus: function (e) { _this.onFocus(e); } }))));
9889
+ react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: !this.model.searchEnabled ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-label": this.question.placeholder, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": this.model.listElementId, "aria-activedescendant": this.model.ariaActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); }, onFocus: function (e) { _this.onFocus(e); } }))));
10377
9890
  };
10378
9891
  return TagboxFilterString;
10379
9892
  }(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"]));
@@ -10467,8 +9980,8 @@ var SurveyQuestionTagboxItem = /** @class */ (function (_super) {
10467
9980
 
10468
9981
  "use strict";
10469
9982
  __webpack_require__.r(__webpack_exports__);
10470
- /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
10471
- var document = global.document;
9983
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
9984
+ var document = globalThis.document;
10472
9985
  var defaultEnvironment = (!!document ? {
10473
9986
  root: document,
10474
9987
  _rootElement: document.body,
@@ -10972,7 +10485,6 @@ var settings = {
10972
10485
  }
10973
10486
  };
10974
10487
 
10975
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node_modules/webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
10976
10488
 
10977
10489
  /***/ }),
10978
10490
 
@@ -10987,9 +10499,7 @@ var settings = {
10987
10499
  __webpack_require__.r(__webpack_exports__);
10988
10500
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResponsivityManager", function() { return ResponsivityManager; });
10989
10501
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerticalResponsivityManager", function() { return VerticalResponsivityManager; });
10990
- /* harmony import */ var timers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! timers */ "./node_modules/timers-browserify/main.js");
10991
- /* harmony import */ var timers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(timers__WEBPACK_IMPORTED_MODULE_0__);
10992
- /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./src/utils/utils.ts");
10502
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils/utils.ts");
10993
10503
  var __extends = (undefined && undefined.__extends) || (function () {
10994
10504
  var extendStatics = function (d, b) {
10995
10505
  extendStatics = Object.setPrototypeOf ||
@@ -11006,7 +10516,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
11006
10516
  };
11007
10517
  })();
11008
10518
 
11009
-
11010
10519
  var ResponsivityManager = /** @class */ (function () {
11011
10520
  function ResponsivityManager(container, model, itemsSelector, dotsItemSize) {
11012
10521
  var _this = this;
@@ -11028,7 +10537,7 @@ var ResponsivityManager = /** @class */ (function () {
11028
10537
  if (isResetInitialized)
11029
10538
  _this.isInitialized = false;
11030
10539
  else
11031
- Object(timers__WEBPACK_IMPORTED_MODULE_0__["setTimeout"])(function () { _this.process(); }, 1);
10540
+ setTimeout(function () { _this.process(); }, 1);
11032
10541
  };
11033
10542
  if (typeof ResizeObserver !== "undefined") {
11034
10543
  this.resizeObserver = new ResizeObserver(function (_) { return _this.process(); });
@@ -11078,7 +10587,7 @@ var ResponsivityManager = /** @class */ (function () {
11078
10587
  };
11079
10588
  Object.defineProperty(ResponsivityManager.prototype, "isContainerVisible", {
11080
10589
  get: function () {
11081
- return Object(_utils__WEBPACK_IMPORTED_MODULE_1__["isContainerVisible"])(this.container);
10590
+ return Object(_utils__WEBPACK_IMPORTED_MODULE_0__["isContainerVisible"])(this.container);
11082
10591
  },
11083
10592
  enumerable: false,
11084
10593
  configurable: true
@@ -11387,8 +10896,14 @@ function doKey2ClickUp(evt, options) {
11387
10896
  if (!!element.classList && !element.classList.contains(keyFocusedClassName)) {
11388
10897
  element.classList.add(keyFocusedClassName);
11389
10898
  }
10899
+ return;
10900
+ }
10901
+ if (options) {
10902
+ if (!options.__keyDownReceived)
10903
+ return;
10904
+ options.__keyDownReceived = false;
11390
10905
  }
11391
- else if (char === 13 || char === 32) {
10906
+ if (char === 13 || char === 32) {
11392
10907
  if (element.click)
11393
10908
  element.click();
11394
10909
  }
@@ -11399,6 +10914,8 @@ function doKey2ClickUp(evt, options) {
11399
10914
  }
11400
10915
  function doKey2ClickDown(evt, options) {
11401
10916
  if (options === void 0) { options = { processEsc: true }; }
10917
+ if (options)
10918
+ options.__keyDownReceived = true;
11402
10919
  if (!!evt.target && evt.target["contentEditable"] === "true") {
11403
10920
  return;
11404
10921
  }