survey-js-ui 3.2.3 → 3.2.5

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.
Files changed (43) hide show
  1. package/README.md +1 -1
  2. package/fesm/survey-js-ui.mjs +286 -208
  3. package/fesm/survey-js-ui.mjs.map +1 -1
  4. package/package.json +2 -2
  5. package/survey-js-ui.js +286 -207
  6. package/survey-js-ui.js.map +1 -1
  7. package/survey-js-ui.min.js +2 -2
  8. package/typings/survey-react-ui/entries/react-ui-model.d.ts +2 -1
  9. package/typings/survey-react-ui/src/components/components-container.d.ts +3 -2
  10. package/typings/survey-react-ui/src/components/file/file-choose-button.d.ts +1 -1
  11. package/typings/survey-react-ui/src/components/header.d.ts +5 -4
  12. package/typings/survey-react-ui/src/components/list/list-item-content.d.ts +1 -1
  13. package/typings/survey-react-ui/src/components/list/list-item-group.d.ts +1 -1
  14. package/typings/survey-react-ui/src/components/list/list-item.d.ts +1 -1
  15. package/typings/survey-react-ui/src/components/list/list-loading.d.ts +12 -0
  16. package/typings/survey-react-ui/src/components/list/list.d.ts +2 -1
  17. package/typings/survey-react-ui/src/components/matrix/row.d.ts +1 -1
  18. package/typings/survey-react-ui/src/components/popup/popup.d.ts +2 -2
  19. package/typings/survey-react-ui/src/components/question-hint.d.ts +9 -0
  20. package/typings/survey-react-ui/src/components/rating/rating-dropdown-item.d.ts +1 -1
  21. package/typings/survey-react-ui/src/components/rating/rating-item-smiley.d.ts +1 -1
  22. package/typings/survey-react-ui/src/components/rating/rating-item-star.d.ts +1 -1
  23. package/typings/survey-react-ui/src/components/rating/rating-item.d.ts +1 -2
  24. package/typings/survey-react-ui/src/components/survey-header/logo-image.d.ts +7 -2
  25. package/typings/survey-react-ui/src/components/survey-header/survey-header.d.ts +3 -2
  26. package/typings/survey-react-ui/src/components/title/title-actions.d.ts +3 -2
  27. package/typings/survey-react-ui/src/components/title/title-content.d.ts +3 -2
  28. package/typings/survey-react-ui/src/components/title/title-element.d.ts +3 -2
  29. package/typings/survey-react-ui/src/imagepicker.d.ts +1 -0
  30. package/typings/survey-react-ui/src/progress.d.ts +1 -1
  31. package/typings/survey-react-ui/src/progressButtons.d.ts +1 -1
  32. package/typings/survey-react-ui/src/progressToc.d.ts +1 -1
  33. package/typings/survey-react-ui/src/reactSurvey.d.ts +1 -0
  34. package/typings/survey-react-ui/src/reactquestion.d.ts +0 -2
  35. package/typings/survey-react-ui/src/reactquestion_comment.d.ts +2 -0
  36. package/typings/survey-react-ui/src/reactquestion_element.d.ts +7 -10
  37. package/typings/survey-react-ui/src/reactquestion_matrixdropdownbase.d.ts +0 -4
  38. package/typings/survey-react-ui/src/reactquestion_paneldynamic.d.ts +14 -5
  39. package/typings/survey-react-ui/src/reactquestion_view.d.ts +7 -0
  40. package/typings/survey-react-ui/src/reacttimerpanel.d.ts +1 -1
  41. package/typings/survey-react-ui/src/row.d.ts +2 -1
  42. package/typings/survey-react-ui/src/tagbox-filter.d.ts +1 -1
  43. package/typings/survey-react-ui/src/components/records-sort-dialog.d.ts +0 -12
@@ -1,13 +1,13 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v3.2.3
2
+ * surveyjs - Survey JavaScript library v3.2.5
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
6
6
 
7
- import { SurveyModel, Helpers, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, createSvg, LocalizableString, RendererFactory, SvgRegistry, createPopupViewModel, CssClassBuilder, PopupModalManager, settings, ScrollViewModel, addIconsToThemeSet, ResizeManager, Question, QuestionTextModel, SurveyProgressModel, PopupSurveyModel, ButtonGroupItemModel, ActionDropdownViewModel, checkLibraryVersion } from 'survey-core';
7
+ import { SurveyModel, PropertyAccessTracker, Helpers, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, createSvg, LocalizableString, RendererFactory, SvgRegistry, createPopupViewModel, CssClassBuilder, PopupModalManager, settings, ScrollViewModel, addIconsToThemeSet, ResizeManager, Question, QuestionTextModel, SurveyProgressModel, PopupSurveyModel, ButtonGroupItemModel, ActionDropdownViewModel, checkLibraryVersion } from 'survey-core';
8
8
  export { SurveyModel as Model, SurveyModel, SurveyWindowModel, settings, surveyLocalization, surveyStrings } from 'survey-core';
9
9
 
10
- var n,l$1,u$1,i$1,r$1,o$1,e$1,f$1,c$1,s$1,a$1,h$1,p$1={},v$1=[],y$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,w$3=Array.isArray;function d$1(n,l){for(var u in l)n[u]=l[u];return n}function g$3(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function _$1(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps)void 0===e[o]&&(e[o]=l.defaultProps[o]);return m$1(l,e,i,r,null)}function m$1(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u$1:o,__i:-1,__u:0};return null==o&&null!=l$1.vnode&&l$1.vnode(e),e}function b$1(){return {current:null}}function k$3(n){return n.children}function x$3(n,l){this.props=n,this.context=l;}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?S(n):null}function C$3(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C$3(n)}}function M$2(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!$$2.__r++||r$1!=l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)($$2);}function $$2(){for(var n,u,t,r,o,f,c,s=1;i$1.length;)i$1.length>s&&i$1.sort(e$1),n=i$1.shift(),s=i$1.length,n.__d&&(t=void 0,r=void 0,o=(r=(u=n).__v).__e,f=[],c=[],u.__P&&((t=d$1({},r)).__v=r.__v+1,l$1.vnode&&l$1.vnode(t),O$2(u.__P,t,r,u.__n,u.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),t.__v=r.__v,t.__.__k[t.__i]=t,N$2(f,t,c),r.__e=r.__=null,t.__e!=o&&C$3(t)));$$2.__r=0;}function I$2(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,w,d,g,_,m=t&&t.__k||v$1,b=l.length;for(f=P$3(u,l,m,f,b),a=0;a<b;a++)null!=(y=u.__k[a])&&(h=-1==y.__i?p$1:m[y.__i]||p$1,y.__i=a,g=O$2(n,y,h,i,r,o,e,f,c,s),w=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&B$3(h.ref,null,y),s.push(y.ref,y.__c||w,y)),null==d&&null!=w&&(d=w),(_=!!(4&y.__u))||h.__k===y.__k?f=A$3(y,f,n,_):"function"==typeof y.type&&void 0!==g?f=g:w&&(f=w.nextSibling),y.__u&=-7);return u.__e=d,f}function P$3(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m$1(null,o,null,null,null):w$3(o)?m$1(k$3,{children:o},null,null,null):null==o.constructor&&o.__b>0?m$1(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=L$2(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),D$3(e,e));return t}function A$3(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=A$3(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=S(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function H$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(w$3(n)?n.some(function(n){H$2(n,l);}):l.push(n)),l}function L$2(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==n.key||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return -1}function T$3(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y$1.test(l)?u:u+"px";}function j$3(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T$3(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||T$3(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f$1,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c$1,n.addEventListener(l,r?a$1:s$1,r)):n.removeEventListener(l,r?a$1:s$1,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function F$3(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c$1++;else if(u.t<t.u)return;return t(l$1.event?l$1.event(u):u)}}}function O$2(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,j=u.type;if(null!=u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new j(b,M):(u.__c=h=new x$3(b,M),h.constructor=j,h.render=E$2),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d$1({},h.__s)),d$1(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(S&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_);});}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l$1.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=d$1(d$1({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),L=a,null!=a&&a.type===k$3&&null==a.key&&(L=V$2(a.props.children)),f=I$2(n,w$3(L)?L:[L],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else {for(T=o.length;T--;)g$3(o[T]);z$3(u);}else u.__e=t.__e,u.__k=t.__k,n.then||z$3(u);l$1.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=q$3(t.__e,u,t,i,r,o,e,c,s);return (a=l$1.diffed)&&a(u),128&u.__u?void 0:f}function z$3(n){n&&n.__c&&(n.__c.__e=!0),n&&n.__k&&n.__k.forEach(z$3);}function N$2(n,u,t){for(var i=0;i<t.length;i++)B$3(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function V$2(n){return "object"!=typeof n||null==n||n.__b&&n.__b>0?n:w$3(n)?n.map(V$2):d$1({},n)}function q$3(u,t,i,r,o,e,f,c,s){var a,h,v,y,d,_,m,b=i.props,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((d=e[a])&&"setAttribute"in d==!!x&&(x?d.localName==x:3==d.nodeType)){u=d,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l$1.__m&&l$1.__m(t,e),c=!1),e=null;}if(null==x)b===k||c&&u.data==k||(u.data=k);else {if(e=e&&n.call(u.childNodes),b=i.props||p$1,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(d=u.attributes[a]).name]=d.value;for(a in b)if(d=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=d;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j$3(u,a,null,d,o);}for(a in k)d=k[a],"children"==a?y=d:"dangerouslySetInnerHTML"==a?h=d:"value"==a?_=d:"checked"==a?m=d:c&&"function"!=typeof d||b[a]===d||j$3(u,a,d,b[a],o);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I$2("template"==t.type?u.content:u,w$3(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g$3(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&j$3(u,a,_,b[a],o),a="checked",null!=m&&m!=u[a]&&j$3(u,a,m,b[a],o));}return u}function B$3(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l$1.__e(n,t);}}function D$3(n,u,t){var i,r;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||B$3(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&D$3(i[r],u,t||"function"!=typeof n.type);t||g$3(n.__e),n.__c=n.__=n.__e=void 0;}function E$2(n,l,u){return this.constructor(n,u)}function G$2(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l$1.__&&l$1.__(u,t),o=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],O$2(t,u=(!r&&i||t).__k=_$1(k$3,null,[u]),o||p$1,p$1,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?n.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),N$2(e,u,f);}function J$2(n,l){G$2(n,l,J$2);}function K$2(l,u,t){var i,r,o,e,f=d$1({},l.props);for(o in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==o?i=u[o]:"ref"==o?r=u[o]:f[o]=void 0===u[o]&&null!=e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m$1(l.type,f,i||l.key,r||l.ref,null)}function Q$2(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null;},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,M$2(n);});},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n);};}),n.children}return l.__c="__cC"+h$1++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v$1.slice,l$1={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,x$3.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d$1({},this.state),"function"==typeof n&&(n=n(d$1({},u),this.props)),n&&d$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M$2(this));},x$3.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M$2(this));},x$3.prototype.render=k$3,i$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$1=function(n,l){return n.__v.__b-l.__v.__b},$$2.__r=0,f$1=/(PointerCapture)$|Capture$/i,c$1=0,s$1=F$3(!1),a$1=F$3(!0),h$1=0;
10
+ var n,l$1,u$1,i$1,o$1,r$1,e$1,f$1,c$1,s$1,a$1,h$1,p$1={},v$1=[],y$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d$1=Array.isArray;function w$3(n,l){for(var u in l)n[u]=l[u];return n}function g$3(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function _$1(l,u,t){var i,o,r,e={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=u[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return m$1(l,e,i,o,null)}function m$1(n,t,i,o,r){var e={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++u$1:r,__i:-1,__u:0};return null==r&&null!=l$1.vnode&&l$1.vnode(e),e}function b$1(){return {current:null}}function k$3(n){return n.children}function x$3(n,l){this.props=n,this.context=l;}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?S(n):null}function C$3(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C$3(n)}}function M$2(n){(!n.__d&&(n.__d=!0)&&i$1.push(n)&&!$$2.__r++||o$1!=l$1.debounceRendering)&&((o$1=l$1.debounceRendering)||r$1)($$2);}function $$2(){for(var n,u,t,o,r,f,c,s=1;i$1.length;)i$1.length>s&&i$1.sort(e$1),n=i$1.shift(),s=i$1.length,n.__d&&(t=void 0,o=void 0,r=(o=(u=n).__v).__e,f=[],c=[],u.__P&&((t=w$3({},o)).__v=o.__v+1,l$1.vnode&&l$1.vnode(t),O$2(u.__P,t,o,u.__n,u.__P.namespaceURI,32&o.__u?[r]:null,f,null==r?S(o):r,!!(32&o.__u),c),t.__v=o.__v,t.__.__k[t.__i]=t,N$2(f,t,c),o.__e=o.__=null,t.__e!=r&&C$3(t)));$$2.__r=0;}function I$2(n,l,u,t,i,o,r,e,f,c,s){var a,h,y,d,w,g,_,m=t&&t.__k||v$1,b=l.length;for(f=P$3(u,l,m,f,b),a=0;a<b;a++)null!=(y=u.__k[a])&&(h=-1==y.__i?p$1:m[y.__i]||p$1,y.__i=a,g=O$2(n,y,h,i,o,r,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&B$3(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),(_=!!(4&y.__u))||h.__k===y.__k?f=A$3(y,f,n,_):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function P$3(n,l,u,t,i){var o,r,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),o=0;o<i;o++)null!=(r=l[o])&&"boolean"!=typeof r&&"function"!=typeof r?(f=o+h,(r=n.__k[o]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?m$1(null,r,null,null,null):d$1(r)?m$1(k$3,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?m$1(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=n,r.__b=n.__b+1,e=null,-1!=(c=r.__i=L$2(r,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof r.type&&(r.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,r.__u|=4))):n.__k[o]=null;if(a)for(o=0;o<s;o++)null!=(e=u[o])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),D$3(e,e));return t}function A$3(n,l,u,t){var i,o;if("function"==typeof n.type){for(i=n.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=n,l=A$3(i[o],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=S(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function H$2(n,l){return l=l||[],null==n||"boolean"==typeof n||(d$1(n)?n.some(function(n){H$2(n,l);}):l.push(n)),l}function L$2(n,l,u,t){var i,o,r,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==n.key||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,o=u+1;i>=0||o<l.length;)if(null!=(c=l[r=i>=0?i--:o++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return r;return -1}function T$3(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y$1.test(l)?u:u+"px";}function j$3(n,l,u,t,i){var o,r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T$3(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||T$3(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])o=l!=(l=l.replace(f$1,"$1")),r=l.toLowerCase(),l=r in n||"onFocusOut"==l||"onFocusIn"==l?r.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=c$1,n.addEventListener(l,o?a$1:s$1,o)):n.removeEventListener(l,o?a$1:s$1,o);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function F$3(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c$1++;else if(u.t<t.u)return;return t(l$1.event?l$1.event(u):u)}}}function O$2(n,u,t,i,o,r,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,j=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[f=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,S="prototype"in j&&j.prototype.render,C=(a=j.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new j(b,M):(u.__c=h=new x$3(b,M),h.constructor=j,h.render=E$2),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w$3({},h.__s)),w$3(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(S&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_);});}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=l$1.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[];}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w$3(w$3({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),L=a,null!=a&&a.type===k$3&&null==a.key&&(L=V$2(a.props.children)),f=I$2(n,d$1(L)?L:[L],u,t,i,o,r,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=r)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,u.__e=f;}else {for(T=r.length;T--;)g$3(r[T]);z$3(u);}else u.__e=t.__e,u.__k=t.__k,n.then||z$3(u);l$1.__e(n,u,t);}else null==r&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=q$3(t.__e,u,t,i,o,r,e,c,s);return (a=l$1.diffed)&&a(u),128&u.__u?void 0:f}function z$3(n){n&&n.__c&&(n.__c.__e=!0),n&&n.__k&&n.__k.forEach(z$3);}function N$2(n,u,t){for(var i=0;i<t.length;i++)B$3(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function V$2(n){return "object"!=typeof n||null==n||n.__b&&n.__b>0?n:d$1(n)?n.map(V$2):w$3({},n)}function q$3(u,t,i,o,r,e,f,c,s){var a,h,v,y,w,_,m,b=i.props,k=t.props,x=t.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(r,x,k.is&&k),c&&(l$1.__m&&l$1.__m(t,e),c=!1),e=null;}if(null==x)b===k||c&&u.data==k||(u.data=k);else {if(e=e&&n.call(u.childNodes),b=i.props||p$1,!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)if(w=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;j$3(u,a,null,w,r);}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||j$3(u,a,w,b[a],r);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),I$2("template"==t.type?u.content:u,d$1(y)?y:[y],t,i,o,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g$3(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&j$3(u,a,_,b[a],r),a="checked",null!=m&&m!=u[a]&&j$3(u,a,m,b[a],r));}return u}function B$3(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l$1.__e(n,t);}}function D$3(n,u,t){var i,o;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||B$3(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&D$3(i[o],u,t||"function"!=typeof n.type);t||g$3(n.__e),n.__c=n.__=n.__e=void 0;}function E$2(n,l,u){return this.constructor(n,u)}function G$2(u,t,i){var o,r,e,f;t==document&&(t=document.documentElement),l$1.__&&l$1.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],O$2(t,u=(!o&&i||t).__k=_$1(k$3,null,[u]),r||p$1,p$1,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,e,!o&&i?i:r?r.__e:t.firstChild,o,f),N$2(e,u,f);}function J$2(n,l){G$2(n,l,J$2);}function K$2(l,u,t){var i,o,r,e,f=w$3({},l.props);for(r in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=void 0===u[r]&&null!=e?e[r]:u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m$1(l.type,f,i||l.key,o||l.ref,null)}function Q$2(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null;},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=!0,M$2(n);});},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n);};}),n.children}return l.__c="__cC"+h$1++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v$1.slice,l$1={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l;}throw n}},u$1=0,x$3.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w$3({},this.state),"function"==typeof n&&(n=n(w$3({},u),this.props)),n&&w$3(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M$2(this));},x$3.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M$2(this));},x$3.prototype.render=k$3,i$1=[],r$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$1=function(n,l){return n.__v.__b-l.__v.__b},$$2.__r=0,f$1=/(PointerCapture)$|Capture$/i,c$1=0,s$1=F$3(!1),a$1=F$3(!0),h$1=0;
11
11
 
12
12
  var t,r,u,i,o=0,f=[],c=l$1,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,s=c.__;function p(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function d(n){return o=1,h(D$2,n)}function h(n,u,i){var o=p(t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):D$2(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.__f)){var f=function(n,t,r){if(!o.__c.__H)return !0;var u=o.__c.__H.__.filter(function(n){return !!n.__c});if(u.every(function(n){return !n.__N}))return !c||c.call(this,n,t,r);var i=o.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0);}}),c&&c.call(this,n,t,r)||i};r.__f=!0;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function y(n,u){var i=p(t++,3);!c.__s&&C$2(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i));}function _(n,u){var i=p(t++,4);!c.__s&&C$2(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i));}function A$2(n){return o=5,T$2(function(){return {current:n}},[])}function F$2(n,t,r){o=6,_(function(){if("function"==typeof n){var r=n(t());return function(){n(null),r&&"function"==typeof r&&r();}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n));}function T$2(n,r){var u=p(t++,7);return C$2(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q$2(n,t){return o=8,T$2(function(){return n},t)}function x$2(n){var u=r.context[n.__c],i=p(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function P$2(n,t){c.useDebugValue&&c.useDebugValue(t?t(n):n);}function b(n){var u=p(t++,10),i=d();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n);}),[i[0],function(){i[1](void 0);}]}function g$2(){var n=p(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++;}return n.__}function j$2(){for(var n;n=f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z$2),n.__H.__h.forEach(B$2),n.__H.__h=[];}catch(t){n.__H.__h=[],c.__e(t,n.__v);}}c.__b=function(n){r=null,e&&e(n);},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),s&&s(n,t);},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0;})):(i.__h.forEach(z$2),i.__h.forEach(B$2),i.__h=[],t=0)),u=r;},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w$2)(j$2)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0;})),u=r=null;},c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z$2),n.__h=n.__h.filter(function(n){return !n.__||B$2(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],c.__e(r,n.__v);}}),l&&l(n,t);},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z$2(n);}catch(n){t=n;}}),r.__H=void 0,t&&c.__e(t,r.__v));};var k$2="function"==typeof requestAnimationFrame;function w$2(n){var t,r=function(){clearTimeout(u),k$2&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,35);k$2&&(t=requestAnimationFrame(r));}function z$2(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function B$2(n){var t=r;n.__c=n.__(),r=t;}function C$2(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D$2(n,t){return "function"==typeof t?t(n):t}
13
13
 
@@ -156,11 +156,10 @@ class SurveyElementBase extends x$3 {
156
156
  }
157
157
  constructor(props) {
158
158
  super(props);
159
- this._allowComponentUpdate = true;
160
- this.prevStateElements = [];
161
- this.propertyValueChangedHandler = (stateElement, options) => {
159
+ this.allowUpdate = false;
160
+ this.update = (stateElement, options) => {
162
161
  const key = options.name;
163
- if (!this.canUsePropInState(key) || this.isRendering)
162
+ if (!this.canUsePropInState(key) || !this.allowUpdate)
164
163
  return;
165
164
  this.changedStatePropNameValue = key;
166
165
  this.setState((state) => {
@@ -169,27 +168,44 @@ class SurveyElementBase extends x$3 {
169
168
  return newState;
170
169
  });
171
170
  };
172
- this.onArrayChangedCallback = (stateElement, options) => {
173
- if (this.isRendering)
174
- return;
175
- this.changedStatePropNameValue = options.name;
176
- this.setState((state) => {
177
- var newState = {};
178
- newState[options.name] = options.newValue;
179
- return newState;
180
- });
181
- };
171
+ this.propertyAccessTracker = new PropertyAccessTracker(this.update);
172
+ this._allowComponentUpdate = true;
173
+ this.prevStateElements = [];
174
+ const render = this.render;
175
+ this.render = () => this.renderWithTracking(render);
176
+ }
177
+ renderWithTracking(render) {
178
+ let res = null;
179
+ this.propertyAccessTracker.startTracking();
180
+ try {
181
+ if (this.canRender()) {
182
+ this.forceHiddenDependencies();
183
+ res = render.call(this);
184
+ }
185
+ }
186
+ finally {
187
+ this.propertyAccessTracker.stopTracking();
188
+ }
189
+ if (!!res) {
190
+ res = this.wrapElement(res);
191
+ }
192
+ this.changedStatePropNameValue = undefined;
193
+ return res;
182
194
  }
183
195
  componentDidMount() {
184
- this.makeBaseElementsReact();
196
+ this.enableStateElementsRerenderEvent(this.getStateElements());
197
+ this.allowUpdate = true;
198
+ this.propertyAccessTracker.subscribe();
185
199
  }
186
200
  componentWillUnmount() {
187
- this.unMakeBaseElementsReact();
188
201
  this.disableStateElementsRerenderEvent(this.getStateElements());
202
+ this.allowUpdate = false;
203
+ this.propertyAccessTracker.unsubscribe();
189
204
  }
190
205
  componentDidUpdate(prevProps, prevState) {
191
206
  var _a;
192
- this.makeBaseElementsReact();
207
+ this.propertyAccessTracker.subscribe();
208
+ this.enableStateElementsRerenderEvent(this.getStateElements());
193
209
  const stateElements = this.getStateElements();
194
210
  this.disableStateElementsRerenderEvent(((_a = this.prevStateElements) !== null && _a !== void 0 ? _a : []).filter(el => !stateElements.find(stateElement => stateElement == el)));
195
211
  this.prevStateElements = [];
@@ -205,47 +221,22 @@ class SurveyElementBase extends x$3 {
205
221
  this._allowComponentUpdate = false;
206
222
  }
207
223
  shouldComponentUpdate(nextProps, nextState) {
208
- if (this._allowComponentUpdate) {
209
- this.unMakeBaseElementsReact();
224
+ const res = this._allowComponentUpdate && (this.state !== nextState || Object.keys(this.props).some(key => nextProps[key] !== this.props[key]));
225
+ if (res) {
210
226
  this.prevStateElements = this.getStateElements();
211
227
  }
212
- return this._allowComponentUpdate;
228
+ return res;
213
229
  }
230
+ forceHiddenDependencies() { }
214
231
  render() {
215
- if (!this.canRender()) {
216
- return null;
217
- }
218
- this.startEndRendering(1);
219
- var res = this.renderElement();
220
- this.startEndRendering(-1);
221
- if (!!res) {
222
- res = this.wrapElement(res);
223
- }
224
- this.changedStatePropNameValue = undefined;
225
- return res;
232
+ return this.renderElement();
226
233
  }
227
234
  wrapElement(element) {
228
235
  return element;
229
236
  }
230
- get isRendering() {
231
- var stateEls = this.getRenderedElements();
232
- for (let stateEl of stateEls) {
233
- if (stateEl.reactRendering > 0)
234
- return true;
235
- }
236
- return false;
237
- }
238
237
  getRenderedElements() {
239
238
  return this.getStateElements();
240
239
  }
241
- startEndRendering(val) {
242
- var stateEls = this.getRenderedElements();
243
- for (let stateEl of stateEls) {
244
- if (!stateEl.reactRendering)
245
- stateEl.reactRendering = 0;
246
- stateEl.reactRendering += val;
247
- }
248
- }
249
240
  canRender() {
250
241
  return true;
251
242
  }
@@ -255,27 +246,16 @@ class SurveyElementBase extends x$3 {
255
246
  get changedStatePropName() {
256
247
  return this.changedStatePropNameValue;
257
248
  }
258
- makeBaseElementsReact() {
259
- var els = this.getStateElements();
260
- for (var i = 0; i < els.length; i++) {
261
- els[i].enableOnElementRerenderedEvent();
262
- this.makeBaseElementReact(els[i]);
263
- }
264
- }
265
- unMakeBaseElementsReact() {
266
- var els = this.getStateElements();
267
- this.unMakeBaseElementsReactive(els);
268
- }
269
- unMakeBaseElementsReactive(els) {
270
- for (var i = 0; i < els.length; i++) {
271
- this.unMakeBaseElementReact(els[i]);
272
- }
273
- }
274
249
  disableStateElementsRerenderEvent(els) {
275
250
  els.forEach(el => {
276
251
  el.disableOnElementRerenderedEvent();
277
252
  });
278
253
  }
254
+ enableStateElementsRerenderEvent(els) {
255
+ els.forEach(el => {
256
+ el.enableOnElementRerenderedEvent();
257
+ });
258
+ }
279
259
  getStateElements() {
280
260
  var el = this.getStateElement();
281
261
  return !!el ? [el] : [];
@@ -290,24 +270,9 @@ class SurveyElementBase extends x$3 {
290
270
  renderLocString(locStr, style = null, key) {
291
271
  return SurveyElementBase.renderLocString(locStr, style, key);
292
272
  }
293
- canMakeReact(stateElement) {
294
- return !!stateElement && !!stateElement.iteratePropertiesHash;
295
- }
296
- makeBaseElementReact(stateElement) {
297
- if (!this.canMakeReact(stateElement))
298
- return;
299
- stateElement.addOnArrayChangedCallback(this.onArrayChangedCallback);
300
- stateElement.addOnPropertyValueChangedCallback(this.propertyValueChangedHandler);
301
- }
302
273
  canUsePropInState(key) {
303
274
  return true;
304
275
  }
305
- unMakeBaseElementReact(stateElement) {
306
- if (!this.canMakeReact(stateElement))
307
- return;
308
- stateElement.removeOnPropertyValueChangedCallback(this.propertyValueChangedHandler);
309
- stateElement.removeOnArrayChangedCallback(this.onArrayChangedCallback);
310
- }
311
276
  }
312
277
  class ReactSurveyElement extends SurveyElementBase {
313
278
  constructor(props) {
@@ -409,6 +374,9 @@ class SurveyQuestionUncontrolledElement extends SurveyQuestionElementBase {
409
374
  get question() {
410
375
  return this.questionBase;
411
376
  }
377
+ forceHiddenDependencies() {
378
+ this.getValueCore();
379
+ }
412
380
  setValueCore(newValue) {
413
381
  this.questionBase.value = newValue;
414
382
  }
@@ -644,7 +612,7 @@ class SurveyActionBarItem extends SurveyElementBase {
644
612
  const className = this.item.getActionBarItemCss();
645
613
  const buttonContent = this.renderButtonContent();
646
614
  const tabIndex = this.item.disableTabStop ? -1 : undefined;
647
- const button = attachKey2click(_$1("button", { ref: this.ref, className: className, type: "button", disabled: this.item.disabled, onMouseDown: (args) => this.item.doMouseDown(args), onFocus: (args) => this.item.doFocus(args), onClick: (args) => this.item.doAction(args), title: this.item.getTooltip(), tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, "aria-controls": this.item.ariaControls, "aria-labelledby": this.item.ariaLabelledBy, "aria-label": this.item.ariaLabel, role: this.item.ariaRole }, buttonContent), this.item, { processEsc: false });
615
+ const button = attachKey2click(_$1("button", { ref: this.ref, className: className, type: "button", disabled: this.item.disabled, onMouseDown: (args) => this.item.doMouseDown(args), onFocus: (args) => this.item.doFocus(args), onClick: (args) => this.item.doAction(args), title: this.item.getTooltip(), "data-sv-tooltip": this.item.getTooltip(), tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, "aria-controls": this.item.ariaControls, "aria-labelledby": this.item.ariaLabelledBy, "aria-label": this.item.ariaLabel, role: this.item.ariaRole }, buttonContent), this.item, { processEsc: false });
648
616
  return button;
649
617
  }
650
618
  componentDidMount() {
@@ -717,7 +685,7 @@ ReactElementFactory.Instance.registerElement("sv-action-bar", (props) => {
717
685
  return _$1(SurveyActionBar, props);
718
686
  });
719
687
 
720
- class TitleContent extends x$3 {
688
+ class TitleContent extends SurveyElementBase {
721
689
  constructor(props) {
722
690
  super(props);
723
691
  }
@@ -727,7 +695,7 @@ class TitleContent extends x$3 {
727
695
  get element() {
728
696
  return this.props.element;
729
697
  }
730
- render() {
698
+ renderElement() {
731
699
  if (this.element.isTitleRenderedAsString)
732
700
  return SurveyElementBase.renderLocString(this.element.locRenderedTitle);
733
701
  var spans = this.renderTitleSpans(this.element.getTitleOwner(), this.cssClasses);
@@ -763,7 +731,7 @@ class TitleContent extends x$3 {
763
731
  }
764
732
  }
765
733
 
766
- class TitleActions extends x$3 {
734
+ class TitleActions extends SurveyElementBase {
767
735
  get cssClasses() {
768
736
  return this.props.cssClasses;
769
737
  }
@@ -773,7 +741,7 @@ class TitleActions extends x$3 {
773
741
  get renderActions() {
774
742
  return this.props.renderActions === undefined ? true : this.props.renderActions;
775
743
  }
776
- render() {
744
+ renderElement() {
777
745
  const titleContent = _$1(TitleContent, { element: this.element, cssClasses: this.cssClasses });
778
746
  if (!this.element.hasVisibleTitleActions)
779
747
  return titleContent;
@@ -787,7 +755,7 @@ ReactElementFactory.Instance.registerElement("sv-title-actions", (props) => {
787
755
  return _$1(TitleActions, props);
788
756
  });
789
757
 
790
- class TitleElement extends x$3 {
758
+ class TitleElement extends SurveyElementBase {
791
759
  constructor(props) {
792
760
  super(props);
793
761
  }
@@ -800,7 +768,7 @@ class TitleElement extends x$3 {
800
768
  return _$1("span", { className: this.element.getCssTitleExpandableSvgContainer() },
801
769
  _$1(SvgIcon, { className: this.element.getCssTitleExpandableSvg(), iconName: this.element.titleExpandableSvgIconName, size: "auto" }));
802
770
  }
803
- render() {
771
+ renderElement() {
804
772
  const element = this.element;
805
773
  if (!element || !element.hasTitle)
806
774
  return null;
@@ -821,7 +789,7 @@ class TitleElement extends x$3 {
821
789
  }
822
790
  }
823
791
 
824
- class SurveyHeader extends x$3 {
792
+ class SurveyHeader extends SurveyElementBase {
825
793
  constructor(props) {
826
794
  super(props);
827
795
  this.state = { changed: 0 };
@@ -834,13 +802,12 @@ class SurveyHeader extends x$3 {
834
802
  return this.survey.css;
835
803
  }
836
804
  componentDidMount() {
837
- const self = this;
805
+ super.componentDidMount();
838
806
  this.survey.afterRenderHeader(this.rootRef.current);
839
- this.survey.locLogo.onChanged = function () {
840
- self.setState({ changed: self.state.changed + 1 });
841
- };
807
+ this.survey.locLogo.onChanged = () => { this.setState({ changed: this.state.changed + 1 }); };
842
808
  }
843
809
  componentWillUnmount() {
810
+ super.componentWillUnmount();
844
811
  this.survey.locLogo.onChanged = function () { };
845
812
  }
846
813
  renderTitle() {
@@ -860,7 +827,7 @@ class SurveyHeader extends x$3 {
860
827
  data: componentData,
861
828
  });
862
829
  }
863
- render() {
830
+ renderElement() {
864
831
  if (!this.survey.renderedHasHeader)
865
832
  return null;
866
833
  return (_$1("div", { className: this.css.header, ref: this.rootRef },
@@ -930,8 +897,8 @@ ReactElementFactory.Instance.registerElement("sv-notifier", (props) => {
930
897
  return _$1(NotifierComponent, props);
931
898
  });
932
899
 
933
- class ComponentsContainer extends x$3 {
934
- render() {
900
+ class ComponentsContainer extends SurveyElementBase {
901
+ renderElement() {
935
902
  const components = this.props.survey.getContainerContent(this.props.container);
936
903
  const needRenderWrapper = this.props.needRenderWrapper === false ? false : true;
937
904
  if (components.length == 0) {
@@ -1018,7 +985,7 @@ class Popup extends SurveyElementBase {
1018
985
  }
1019
986
  return isNeedUpdate;
1020
987
  }
1021
- render() {
988
+ renderElement() {
1022
989
  this.popup.model = this.model;
1023
990
  let popupContainer;
1024
991
  if (this.model.isModal) {
@@ -1083,14 +1050,14 @@ class PopupContainer extends SurveyElementBase {
1083
1050
  return _$1("div", { className: "sv-popup__content" }, contentComponent);
1084
1051
  }
1085
1052
  renderHeaderPopup(popupModel) {
1086
- return popupModel.showCloseButton ? _$1("button", { tabIndex: -1, className: "sv-popup__close-button sd-action sd-action--icon", onClick: () => this.model.clickClose() },
1053
+ return popupModel.showCloseButton ? _$1("button", { tabIndex: -1, className: "sv-popup__close-button sd-action sd-action--small sd-action--icon", onClick: () => this.model.clickClose() },
1087
1054
  _$1(SvgIcon, { className: "sv-popup__close-button-icon", iconName: "icon-close-24x24", size: "auto" })) : null;
1088
1055
  }
1089
1056
  renderFooter(popuModel) {
1090
1057
  return (_$1("div", { className: "sv-popup__body-footer" },
1091
1058
  _$1(SurveyActionBar, { model: popuModel.footerToolbar })));
1092
1059
  }
1093
- render() {
1060
+ renderElement() {
1094
1061
  // Stays mounted and subscribed to the view model: Popup does not re-render when the popup opens.
1095
1062
  if (!this.model.hasBeenShown)
1096
1063
  return null;
@@ -1175,9 +1142,11 @@ class PopupModal extends SurveyElementBase {
1175
1142
  return _$1(k$3, null, this.modalManager.getModals().map(model => $$1(_$1(PopupContainer, { model: model }), model.container, model.uniqueId.toString())));
1176
1143
  }
1177
1144
  componentDidMount() {
1145
+ super.componentDidMount();
1178
1146
  PopupModal.addModalDescriptor(this.descriptor);
1179
1147
  }
1180
1148
  componentWillUnmount() {
1149
+ super.componentWillUnmount();
1181
1150
  this.modalManager.clear();
1182
1151
  PopupModal.removeModalDescriptor(this.descriptor);
1183
1152
  }
@@ -1285,12 +1254,14 @@ function requireIconsV2 () {
1285
1254
 
1286
1255
  var image_48x48 = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z\"/></svg>";
1287
1256
 
1288
- var loading_48x48 = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_19679_369428)\"><path opacity=\"0.1\" d=\"M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z\" fill=\"black\" fill-opacity=\"0.91\"/><path d=\"M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z\"/></g><defs><clipPath id=\"clip0_19679_369428\"><rect width=\"32\" height=\"32\" fill=\"white\" transform=\"translate(8 8)\"/></clipPath></defs></svg>";
1257
+ var loading_48x48 = "<svg viewBox=\"0 0 48 48\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_19679_369428)\"><path opacity=\"0.25\" d=\"M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z\"/><path d=\"M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z\"/></g><defs><clipPath id=\"clip0_19679_369428\"><rect width=\"32\" height=\"32\" fill=\"white\" transform=\"translate(8 8)\"/></clipPath></defs></svg>";
1289
1258
 
1290
1259
  var maximize_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z\"/></svg>";
1291
1260
 
1292
1261
  var minimize_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z\"/></svg>";
1293
1262
 
1263
+ var more_16x16 = "<svg viewBox=\"0 0 16 16\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8 6.5C7.18 6.5 6.5 7.18 6.5 8C6.5 8.82 7.18 9.5 8 9.5C8.82 9.5 9.5 8.82 9.5 8C9.5 7.18 8.82 6.5 8 6.5ZM2.86 6.5C2.03 6.5 1.36 7.18 1.36 8C1.36 8.82 2.03 9.5 2.86 9.5C3.68 9.5 4.36 8.82 4.36 8C4.36 7.18 3.68 6.5 2.86 6.5ZM13.14 6.5C12.32 6.5 11.64 7.18 11.64 8C11.64 8.82 12.32 9.5 13.14 9.5C13.97 9.5 14.64 8.82 14.64 8C14.64 7.18 13.97 6.5 13.14 6.5Z\"/></svg>";
1264
+
1294
1265
  var more_24x24 = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z\"/></svg>";
1295
1266
 
1296
1267
  var navmenu_24x24 = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z\"/></svg>";
@@ -1393,6 +1364,7 @@ function requireIconsV2 () {
1393
1364
  "loading-48x48": loading_48x48,
1394
1365
  "maximize-16x16": maximize_16x16,
1395
1366
  "minimize-16x16": minimize_16x16,
1367
+ "more-16x16": more_16x16,
1396
1368
  "more-24x24": more_24x24,
1397
1369
  "navmenu-24x24": navmenu_24x24,
1398
1370
  "noimage-48x48": noimage_48x48,
@@ -1473,6 +1445,7 @@ class Survey extends SurveyElementBase {
1473
1445
  super(props);
1474
1446
  this.previousJSON = {};
1475
1447
  this.isSurveyUpdated = false;
1448
+ this.key = 0;
1476
1449
  this.createSurvey(props);
1477
1450
  this.updateSurvey(props, {});
1478
1451
  this.rootRef = b$1();
@@ -1606,7 +1579,7 @@ class Survey extends SurveyElementBase {
1606
1579
  if (!!this.survey.renderedWidth) {
1607
1580
  style.maxWidth = this.survey.renderedWidth;
1608
1581
  }
1609
- return (_$1("div", { className: this.survey.bodyContainerCss },
1582
+ return (_$1("div", { key: this.key, className: this.survey.bodyContainerCss },
1610
1583
  _$1(ComponentsContainer, { survey: this.survey, container: "left" }),
1611
1584
  _$1("div", { className: "sv-components-column sv-components-column--expandable" },
1612
1585
  _$1(ComponentsContainer, { survey: this.survey, container: "center" }),
@@ -1675,6 +1648,13 @@ class Survey extends SurveyElementBase {
1675
1648
  }
1676
1649
  if (newProps[key] === oldProps[key])
1677
1650
  continue;
1651
+ if (key == "settings") {
1652
+ // Data for the model's settings() method; assigning it would replace the method. An absent value applies nothing
1653
+ if (newProps.settings !== undefined && newProps.settings !== null) {
1654
+ this.survey.settings(newProps.settings);
1655
+ }
1656
+ continue;
1657
+ }
1678
1658
  if (key.indexOf("on") == 0 && this.survey[key] && this.survey[key].add) {
1679
1659
  if (!!oldProps[key]) {
1680
1660
  this.survey[key].remove(oldProps[key]);
@@ -1687,14 +1667,13 @@ class Survey extends SurveyElementBase {
1687
1667
  }
1688
1668
  }
1689
1669
  setSurveyEvents() {
1690
- var self = this;
1691
- this.survey.renderCallback = function () {
1692
- var counter = !!self.state && !!self.state.modelChanged ? self.state.modelChanged : 0;
1693
- self.setState({ modelChanged: counter + 1 });
1670
+ this.survey.renderCallback = () => {
1671
+ this.key++;
1672
+ this.forceUpdate();
1694
1673
  };
1695
1674
  this.survey.onPartialSend.add((sender) => {
1696
- if (!!self.state) {
1697
- self.setState(self.state);
1675
+ if (!!this.state) {
1676
+ this.setState(this.state);
1698
1677
  }
1699
1678
  });
1700
1679
  }
@@ -1765,7 +1744,7 @@ class SurveyTimerPanel extends ReactSurveyElement {
1765
1744
  get progress() {
1766
1745
  return -this.timerModel.progress * this.circleLength;
1767
1746
  }
1768
- render() {
1747
+ renderElement() {
1769
1748
  if (!this.timerModel.isRunning) {
1770
1749
  return null;
1771
1750
  }
@@ -1907,14 +1886,18 @@ class SurveyRow extends SurveyElementBase {
1907
1886
  }
1908
1887
  componentDidMount() {
1909
1888
  super.componentDidMount();
1889
+ if (!this.row)
1890
+ return;
1891
+ this.row.changeUIMountCount(1);
1910
1892
  var el = this.rootRef.current;
1911
1893
  if (this.rootRef.current) {
1912
1894
  this.row.setRootElement(this.rootRef.current);
1913
1895
  }
1914
1896
  if (!!el && !this.row.isNeedRender) {
1897
+ var row = this.row;
1915
1898
  var rowContainerDiv = el;
1916
1899
  this.lazyRenderingTimeout = setTimeout(() => {
1917
- this.row.startLazyRendering(rowContainerDiv);
1900
+ row.startLazyRendering(rowContainerDiv);
1918
1901
  }, 10);
1919
1902
  }
1920
1903
  }
@@ -1922,27 +1905,42 @@ class SurveyRow extends SurveyElementBase {
1922
1905
  if (!super.shouldComponentUpdate(nextProps, nextState))
1923
1906
  return false;
1924
1907
  if (nextProps.row !== this.row) {
1908
+ // The next render reads these from the new row. The previous row is released at commit, in componentDidUpdate.
1925
1909
  nextProps.row.isNeedRender = this.row.isNeedRender;
1926
1910
  nextProps.row.setRootElement(this.rootRef.current);
1927
- this.row.setRootElement(undefined);
1928
- this.stopLazyRendering();
1929
1911
  }
1930
1912
  this.recalculateCss();
1931
1913
  return true;
1932
1914
  }
1933
- stopLazyRendering() {
1915
+ componentDidUpdate(prevProps, prevState) {
1916
+ super.componentDidUpdate(prevProps, prevState);
1917
+ const prevRow = prevProps.row;
1918
+ if (prevRow === this.row)
1919
+ return;
1934
1920
  clearTimeout(this.lazyRenderingTimeout);
1935
- this.row.stopLazyRendering();
1936
- this.row.isNeedRender = !this.row.isLazyRendering();
1921
+ if (!!this.row) {
1922
+ this.row.changeUIMountCount(1);
1923
+ }
1924
+ this.releaseRowIfUnmounted(prevRow);
1937
1925
  }
1938
1926
  componentWillUnmount() {
1939
1927
  super.componentWillUnmount();
1940
- if (!!this.row) {
1941
- if (!this.row.hasActiveUISubscribers) {
1942
- this.row.setRootElement(undefined);
1943
- this.stopLazyRendering();
1928
+ clearTimeout(this.lazyRenderingTimeout);
1929
+ this.releaseRowIfUnmounted(this.row);
1930
+ }
1931
+ // Another component may still render the row (#10701), so only the last one to unmount resets it.
1932
+ releaseRowIfUnmounted(row) {
1933
+ if (!row)
1934
+ return;
1935
+ if (row.changeUIMountCount(-1) > 0) {
1936
+ if (row.getRootElement() === this.rootRef.current) {
1937
+ row.setRootElement(undefined);
1944
1938
  }
1939
+ return;
1945
1940
  }
1941
+ row.setRootElement(undefined);
1942
+ row.stopLazyRendering();
1943
+ row.isNeedRender = !row.isLazyRendering();
1946
1944
  }
1947
1945
  createElement(element, elementIndex) {
1948
1946
  const index = elementIndex ? "-" + elementIndex : 0;
@@ -1981,7 +1979,7 @@ class SurveyPanelBase extends SurveyElementBase {
1981
1979
  return this.getCss();
1982
1980
  }
1983
1981
  getPanelFromProps(props) {
1984
- return this.props.element || this.props.question;
1982
+ return props.element || props.question;
1985
1983
  }
1986
1984
  get panelBase() {
1987
1985
  return this.getPanelFromProps(this.props);
@@ -2131,8 +2129,14 @@ class SurveyQuestionCommentItem extends ReactSurveyElement {
2131
2129
  getTextAreaModel() {
2132
2130
  return this.props.question.commentTextAreaModel;
2133
2131
  }
2132
+ getViewText() {
2133
+ return this.props.question.getCommentViewText();
2134
+ }
2134
2135
  renderElement() {
2135
2136
  const question = this.props.question;
2137
+ if (question.isViewMode) {
2138
+ return _$1("div", { className: question.viewModeCssClass }, this.getViewText());
2139
+ }
2136
2140
  if (question.isReadOnlyRenderDiv()) {
2137
2141
  const comment = this.textAreaModel.getTextValue() || "";
2138
2142
  return _$1("div", null, comment);
@@ -2148,6 +2152,9 @@ class SurveyQuestionCommentValueItem extends SurveyQuestionCommentItem {
2148
2152
  getTextAreaModel() {
2149
2153
  return this.props.question.getCommentTextAreaModel(this.props.item);
2150
2154
  }
2155
+ getViewText() {
2156
+ return this.props.question.getCommentViewText(this.props.item);
2157
+ }
2151
2158
  getKey() { return this.props.item.uniqueId; }
2152
2159
  }
2153
2160
  ReactQuestionFactory.Instance.registerQuestion("comment", (props) => {
@@ -2313,6 +2320,21 @@ ReactElementFactory.Instance.registerElement("sv-breadcrumbs", (props) => {
2313
2320
  return _$1(SurveyBreadcrumbs, props);
2314
2321
  });
2315
2322
 
2323
+ class QuestionHint extends SurveyElementBase {
2324
+ renderHint(hint, index) {
2325
+ if (hint.alternatives.length > 0) {
2326
+ return (_$1("span", { className: hint.className, key: index }, hint.alternatives.map((alternative, alternativeIndex) => this.renderHint(alternative, alternativeIndex))));
2327
+ }
2328
+ return (_$1("span", { className: hint.className, key: index }, hint.parts.map((part, partIndex) => (_$1("span", { key: partIndex, className: part.className }, part.text)))));
2329
+ }
2330
+ renderElement() {
2331
+ const keyboardHintModel = this.props.question.getKeyboardHintModel();
2332
+ if (!keyboardHintModel.hasItems())
2333
+ return null;
2334
+ return (_$1("div", { className: keyboardHintModel.cssClasses.keyboardHintContainer, "aria-hidden": "true" }, keyboardHintModel.items.map((hint, index) => this.renderHint(hint, index))));
2335
+ }
2336
+ }
2337
+
2316
2338
  class SurveyQuestion extends SurveyElementBase {
2317
2339
  static renderQuestionBody(creator, question) {
2318
2340
  // if (!question.isVisible) return null;
@@ -2413,7 +2435,7 @@ class SurveyQuestion extends SurveyElementBase {
2413
2435
  const singleInput = singleSummary || (question.singleInputQuestion ? this.renderSingleInputQuestion(question, cssClasses) : undefined);
2414
2436
  const questionContent = singleInput || this.wrapQuestionContent(this.renderQuestionContent());
2415
2437
  return (_$1(k$3, null,
2416
- _$1("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, "data-name": question.name, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-label": this.question.ariaLabel, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, onClick: (event) => question.clickRootFunction && question.clickRootFunction(event.nativeEvent) },
2438
+ _$1("div", { ref: this.rootRef, id: question.renderedId, className: question.getRootCss(), style: rootStyle, "data-name": question.name, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-label": this.question.ariaLabel, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded, onClick: (event) => question.clickRootFunction && question.clickRootFunction(event.nativeEvent) },
2417
2439
  singleBreadcrumbs,
2418
2440
  _$1("div", { className: question.getQuestionContainerCss() },
2419
2441
  errorsAboveQuestion,
@@ -2421,7 +2443,8 @@ class SurveyQuestion extends SurveyElementBase {
2421
2443
  headerTop,
2422
2444
  questionContent,
2423
2445
  headerBottom),
2424
- errorsBelowQuestion))));
2446
+ errorsBelowQuestion)),
2447
+ question.canShowKeyboardHints() ? _$1(QuestionHint, { question: question }) : null));
2425
2448
  }
2426
2449
  renderSingleInputQuestion(question, cssClasses) {
2427
2450
  const singleQuestion = question.singleInputQuestion;
@@ -2475,7 +2498,6 @@ ReactElementFactory.Instance.registerElement("question", (props) => {
2475
2498
  class SurveyElementErrors extends ReactSurveyElement {
2476
2499
  constructor(props) {
2477
2500
  super(props);
2478
- this.state = this.getState();
2479
2501
  }
2480
2502
  get id() {
2481
2503
  return this.props.element.renderedId + "_errors";
@@ -2486,14 +2508,9 @@ class SurveyElementErrors extends ReactSurveyElement {
2486
2508
  get creator() {
2487
2509
  return this.props.creator;
2488
2510
  }
2489
- getState(prevState = null) {
2490
- return !prevState ? { error: 0 } : { error: prevState.error + 1 };
2491
- }
2492
2511
  canRender() {
2493
2512
  return !!this.element && this.element.hasVisibleErrors;
2494
2513
  }
2495
- componentWillUnmount() {
2496
- }
2497
2514
  renderElement() {
2498
2515
  const errors = [];
2499
2516
  for (let i = 0; i < this.element.renderedErrors.length; i++) {
@@ -2701,7 +2718,7 @@ class SurveyPanel extends SurveyPanelBase {
2701
2718
  if (this.panelBase)
2702
2719
  this.panelBase.focusIn();
2703
2720
  };
2704
- return (_$1("div", { ref: this.rootRef, className: this.panelBase.getContainerCss(), onFocus: focusIn, id: this.panelBase.id, onClick: (e) => this.panelBase.clickRootFunction && this.panelBase.clickRootFunction(e.nativeEvent) },
2721
+ return (_$1("div", { ref: this.rootRef, className: this.panelBase.getContainerCss(), onFocus: focusIn, id: this.panelBase.renderedId, onClick: (e) => this.panelBase.clickRootFunction && this.panelBase.clickRootFunction(e.nativeEvent) },
2705
2722
  this.panel.showErrorsAbovePanel ? errors : null,
2706
2723
  header,
2707
2724
  this.panel.showErrorsAbovePanel ? null : errors,
@@ -3271,24 +3288,21 @@ class RatingItemBase extends SurveyElementBase {
3271
3288
  }
3272
3289
  }
3273
3290
  class RatingItem extends RatingItemBase {
3274
- render() {
3291
+ renderElement() {
3275
3292
  var itemText = this.renderLocString(this.item.locText);
3276
3293
  return (_$1("label", { className: this.item.className, onMouseDown: this.handleOnMouseDown },
3277
3294
  _$1("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: () => { }, "aria-label": this.question.ariaLabel }),
3278
3295
  _$1("span", { className: this.question.cssClasses.itemText, "data-text": this.item.text }, itemText)));
3279
3296
  }
3280
- componentDidMount() {
3281
- super.componentDidMount();
3282
- }
3283
3297
  }
3284
3298
  ReactElementFactory.Instance.registerElement("sv-rating-item", (props) => {
3285
3299
  return _$1(RatingItem, props);
3286
3300
  });
3287
3301
 
3288
3302
  class RatingItemStar extends RatingItemBase {
3289
- render() {
3303
+ renderElement() {
3290
3304
  return (_$1("label", { className: this.item.className, onMouseDown: this.handleOnMouseDown, onMouseOver: e => this.question.onItemMouseIn(this.item), onMouseOut: e => this.question.onItemMouseOut(this.item), title: this.item.text },
3291
- _$1("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: () => { }, "aria-label": this.question.ariaLabel }),
3305
+ _$1("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, tabIndex: this.question.itemTabIndex, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: () => { }, "aria-label": this.question.ariaLabel }),
3292
3306
  _$1(SvgIcon, { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon }),
3293
3307
  _$1(SvgIcon, { className: "sv-star-2", size: "auto", iconName: this.question.itemStarIconAlt })));
3294
3308
  }
@@ -3298,9 +3312,9 @@ ReactElementFactory.Instance.registerElement("sv-rating-item-star", (props) => {
3298
3312
  });
3299
3313
 
3300
3314
  class RatingItemSmiley extends RatingItemBase {
3301
- render() {
3315
+ renderElement() {
3302
3316
  return (_$1("label", { style: this.item.style, className: this.item.className, onMouseDown: this.handleOnMouseDown, onMouseOver: e => this.question.onItemMouseIn(this.item), onMouseOut: e => this.question.onItemMouseOut(this.item), title: this.item.text },
3303
- _$1("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: () => { }, "aria-label": this.question.ariaLabel }),
3317
+ _$1("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.questionName, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, tabIndex: this.question.itemTabIndex, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: () => { }, "aria-label": this.question.ariaLabel }),
3304
3318
  _$1(SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item) })));
3305
3319
  }
3306
3320
  }
@@ -3315,7 +3329,7 @@ class RatingDropdownItem extends SurveyElementBase {
3315
3329
  getStateElement() {
3316
3330
  return this.item;
3317
3331
  }
3318
- render() {
3332
+ renderElement() {
3319
3333
  if (!this.item)
3320
3334
  return null;
3321
3335
  const item = this.props.item;
@@ -3384,7 +3398,7 @@ class TagboxFilterString extends SurveyElementBase {
3384
3398
  getStateElement() {
3385
3399
  return this.props.model || this.question.dropdownListModelValue;
3386
3400
  }
3387
- render() {
3401
+ renderElement() {
3388
3402
  return (_$1("div", { className: this.question.cssClasses.hint },
3389
3403
  this.renderState.showHintPrefix ?
3390
3404
  (_$1("div", { className: this.question.cssClasses.hintPrefix },
@@ -3869,13 +3883,19 @@ class SurveyQuestionMatrixCell extends ReactSurveyElement {
3869
3883
  return !!this.question && !!this.row;
3870
3884
  }
3871
3885
  renderElement() {
3886
+ const viewText = this.question.getCellViewText(this.row, this.column);
3887
+ const mobileSpan = this.question.isMobile ?
3888
+ (_$1("span", { className: this.question.cssClasses.cellResponsiveTitle }, this.renderLocString(this.column.locText)))
3889
+ : undefined;
3890
+ if (viewText) {
3891
+ return (_$1(k$3, null,
3892
+ _$1("div", { className: this.question.viewModeCssClass }, viewText),
3893
+ mobileSpan));
3894
+ }
3872
3895
  const isChecked = this.row.isChecked(this.column);
3873
3896
  const inputId = this.question.inputId + "_" + this.row.name + "_" + this.columnIndex;
3874
3897
  const itemClass = this.question.getItemClass(this.row, this.column);
3875
3898
  const itemSvgIcon = this.question.getItemSvgIcon(this.row, this.column);
3876
- const mobileSpan = this.question.isMobile ?
3877
- (_$1("span", { className: this.question.cssClasses.cellResponsiveTitle }, this.renderLocString(this.column.locText)))
3878
- : undefined;
3879
3899
  return (_$1("label", { onMouseDown: this.handleOnMouseDown, className: itemClass },
3880
3900
  this.renderInput(inputId, isChecked),
3881
3901
  _$1("span", { className: this.question.cssMaterialDecorator, "aria-hidden": "true" }, itemSvgIcon ?
@@ -3902,12 +3922,15 @@ class SurveyQuestionHtml extends SurveyQuestionElementBase {
3902
3922
  return this.questionBase;
3903
3923
  }
3904
3924
  componentDidMount() {
3925
+ super.componentDidMount();
3905
3926
  this.reactOnStrChanged();
3906
3927
  }
3907
3928
  componentWillUnmount() {
3929
+ super.componentWillUnmount();
3908
3930
  this.question.locHtml.onChanged = function () { };
3909
3931
  }
3910
3932
  componentDidUpdate(prevProps, prevState) {
3933
+ super.componentDidUpdate(prevProps, prevState);
3911
3934
  this.reactOnStrChanged();
3912
3935
  }
3913
3936
  reactOnStrChanged() {
@@ -3951,7 +3974,13 @@ class SurveyQuestionFile extends SurveyQuestionElementBase {
3951
3974
  const className = !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss();
3952
3975
  const style = this.isDisplayMode ? { color: "transparent" } : {};
3953
3976
  let fileInput;
3954
- if (this.question.isReadOnlyAttr) {
3977
+ if (this.question.isViewMode && this.question.isEmpty()) {
3978
+ return (_$1("div", { className: this.question.viewModeCssClass, id: this.question.inputId, ref: el => (this.setControl(el)) }, this.question.viewDisplayText));
3979
+ }
3980
+ if (this.question.isViewMode) {
3981
+ fileInput = null;
3982
+ }
3983
+ else if (this.question.isReadOnlyAttr) {
3955
3984
  fileInput = _$1("input", { readOnly: true, type: "file", className: className, id: this.question.inputId, ref: input => (this.setControl(input)), style: style, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: acceptedTypes });
3956
3985
  }
3957
3986
  else if (this.question.isDisabledAttr) {
@@ -4004,7 +4033,7 @@ class SurveyFileChooseButton extends ReactSurveyElement {
4004
4033
  get question() {
4005
4034
  return (this.props.item && this.props.item.data.question) || this.props.data.question;
4006
4035
  }
4007
- render() {
4036
+ renderElement() {
4008
4037
  return attachKey2click(_$1("label", { tabIndex: 0, className: this.props.item.getActionBarItemCss(), htmlFor: this.question.inputId, "aria-label": this.question.chooseButtonText, onClick: (e) => this.question.chooseFile(e.nativeEvent) },
4009
4038
  !!this.props.item.iconName ? _$1(SvgIcon, { title: this.question.chooseButtonText, iconName: this.question.cssClasses.chooseFileIconId, size: "auto", className: this.props.item.cssClasses.itemIcon }) : null,
4010
4039
  this.props.item.hasTitle ? _$1(SurveyLocStringViewer, { model: this.props.item.locTitle, textClass: this.props.item.getActionBarItemTitleCss() }) : null));
@@ -4023,7 +4052,7 @@ class SurveyFilePage extends SurveyElementBase {
4023
4052
  }
4024
4053
  renderElement() {
4025
4054
  const items = this.page.items.map((item, index) => { return ReactElementFactory.Instance.createElement("sv-file-item", { item, question: this.question, key: index }); });
4026
- return (_$1("div", { className: this.page.css, id: this.page.id }, items));
4055
+ return (_$1("div", { className: this.page.css, id: this.page.renderedId }, items));
4027
4056
  }
4028
4057
  }
4029
4058
 
@@ -4520,7 +4549,7 @@ class MatrixRow extends SurveyElementBase {
4520
4549
  }
4521
4550
  return true;
4522
4551
  }
4523
- render() {
4552
+ renderElement() {
4524
4553
  const model = this.model;
4525
4554
  if (!model.visible)
4526
4555
  return null;
@@ -4553,10 +4582,12 @@ class SurveyMatrixHeaderSortButton extends ReactSurveyElement {
4553
4582
  renderElement() {
4554
4583
  const cell = this.cell;
4555
4584
  const description = cell.sortDescription;
4585
+ const rank = cell.sortRank;
4556
4586
  return (_$1("button", { type: "button", className: cell.sortButtonCss, "aria-label": cell.sortAriaLabel, title: cell.sortTooltip, "aria-describedby": !!description ? cell.sortDescriptionId : undefined, "aria-disabled": !cell.canToggleSort ? "true" : undefined, onClick: this.onClick },
4557
4587
  _$1("span", { className: cell.sortTitleCss }, this.props.content),
4558
4588
  _$1("span", { className: cell.sortCss, "aria-hidden": "true" },
4559
- _$1(SvgIcon, { iconName: cell.sortIconName, size: 16 })),
4589
+ _$1(SvgIcon, { iconName: cell.sortIconName, size: 16 }),
4590
+ !!rank ? _$1("span", { className: cell.sortRankCss }, rank) : null),
4560
4591
  !!description ? _$1("span", { id: cell.sortDescriptionId, className: "sv-visuallyhidden" }, description) : null));
4561
4592
  }
4562
4593
  }
@@ -4711,29 +4742,10 @@ class SurveyQuestionMatrixDropdownBase extends SurveyQuestionElementBase {
4711
4742
  super(props);
4712
4743
  //Create rendered table in contructor and not on rendering
4713
4744
  this.question.renderedTable;
4714
- this.state = this.getState();
4715
4745
  }
4716
4746
  get question() {
4717
4747
  return this.questionBase;
4718
4748
  }
4719
- getState(prevState = null) {
4720
- return { rowCounter: !prevState ? 0 : prevState.rowCounter + 1 };
4721
- }
4722
- updateStateOnCallback() {
4723
- if (this.isRendering)
4724
- return;
4725
- this.setState(this.getState(this.state));
4726
- }
4727
- componentDidMount() {
4728
- super.componentDidMount();
4729
- this.question.onRenderedTableResetCallback = () => {
4730
- this.updateStateOnCallback();
4731
- };
4732
- }
4733
- componentWillUnmount() {
4734
- super.componentWillUnmount();
4735
- this.question.onRenderedTableResetCallback = () => { };
4736
- }
4737
4749
  renderElement() {
4738
4750
  return this.renderTableDiv();
4739
4751
  }
@@ -4998,6 +5010,9 @@ class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {
4998
5010
  get question() {
4999
5011
  return this.questionBase;
5000
5012
  }
5013
+ getStateElement() {
5014
+ return this.question;
5015
+ }
5001
5016
  componentDidMount() {
5002
5017
  super.componentDidMount();
5003
5018
  this.setState({ panelCounter: 0 });
@@ -5027,7 +5042,7 @@ class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {
5027
5042
  const panels = [];
5028
5043
  const cssClasses = this.question.cssClasses;
5029
5044
  this.question.renderedPanels.forEach((panel, index) => {
5030
- panels.push(_$1(SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: this.question, index: index, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, creator: this.creator }));
5045
+ panels.push(_$1(SurveyQuestionPanelDynamicItem, { key: panel.id, panel: panel, question: this.question, index: index, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, creator: this.creator }));
5031
5046
  });
5032
5047
  const rangeTop = this.question.isRangeShowing && this.question.isProgressTopShowing
5033
5048
  ? this.renderRange()
@@ -5073,13 +5088,16 @@ class SurveyQuestionPanelDynamic extends SurveyQuestionElementBase {
5073
5088
  return null;
5074
5089
  }
5075
5090
  }
5076
- class SurveyQuestionPanelDynamicItem extends SurveyPanel {
5091
+ class SurveyQuestionPanelDynamicItem extends SurveyElementBase {
5077
5092
  get question() {
5078
5093
  return this.props.question;
5079
5094
  }
5080
5095
  get index() {
5081
5096
  return this.props.index;
5082
5097
  }
5098
+ get panel() {
5099
+ return this.props.panel;
5100
+ }
5083
5101
  getSurvey() {
5084
5102
  return !!this.question ? this.question.survey : null;
5085
5103
  }
@@ -5087,14 +5105,13 @@ class SurveyQuestionPanelDynamicItem extends SurveyPanel {
5087
5105
  const survey = this.getSurvey();
5088
5106
  return !!survey ? survey.getCss() : {};
5089
5107
  }
5090
- render() {
5091
- const panel = super.render();
5108
+ renderElement() {
5092
5109
  const removeButton = this.renderButton();
5093
5110
  const separator = this.question.showSeparator(this.index) ?
5094
5111
  (_$1("hr", { className: this.question.cssClasses.separator })) : null;
5095
5112
  return (_$1(k$3, null,
5096
5113
  _$1("div", { className: this.question.getPanelWrapperCss(this.panel) },
5097
- panel,
5114
+ _$1(SurveyPanel, { element: this.panel, cssClasses: this.props.cssClasses, isDisplayMode: this.isDisplayMode, creator: this.props.creator }),
5098
5115
  removeButton),
5099
5116
  separator));
5100
5117
  }
@@ -5143,7 +5160,7 @@ class SurveyProgress extends SurveyNavigationBase {
5143
5160
  get progressBarAriaLabel() {
5144
5161
  return this.model.progressBarAriaLabel;
5145
5162
  }
5146
- render() {
5163
+ renderElement() {
5147
5164
  var progressStyle = {
5148
5165
  width: this.progress + "%",
5149
5166
  };
@@ -5179,7 +5196,7 @@ class SurveyProgressButtons extends SurveyNavigationBase {
5179
5196
  getStateElement() {
5180
5197
  return this.model;
5181
5198
  }
5182
- render() {
5199
+ renderElement() {
5183
5200
  return (_$1("div", { className: this.model.getRootCss(this.props.container), style: { "maxWidth": this.model.progressWidth }, role: "tablist", "aria-label": this.model.progressBarAriaLabel, onKeyDown: (event) => this.model.onKeyDown(event.nativeEvent) },
5184
5201
  _$1("div", { className: this.css.progressButtonsContainer, role: "presentation" },
5185
5202
  _$1("div", { className: this.css.progressButtonsListContainer, role: "presentation" },
@@ -5227,7 +5244,7 @@ class ListItem extends SurveyElementBase {
5227
5244
  getStateElement() {
5228
5245
  return this.item;
5229
5246
  }
5230
- render() {
5247
+ renderElement() {
5231
5248
  if (!this.item)
5232
5249
  return null;
5233
5250
  const className = this.model.getItemClass(this.item);
@@ -5264,6 +5281,22 @@ ReactElementFactory.Instance.registerElement("sv-list-item", (props) => {
5264
5281
  return _$1(ListItem, props);
5265
5282
  });
5266
5283
 
5284
+ class ListLoading extends SurveyElementBase {
5285
+ get model() {
5286
+ return this.props.model;
5287
+ }
5288
+ getStateElement() {
5289
+ return this.model;
5290
+ }
5291
+ render() {
5292
+ return (_$1("div", { className: this.model.cssClasses.emptyContainer, role: "status", "aria-label": this.model.getLocalizationString("loadingData") },
5293
+ _$1(LoadingIndicatorComponent, null)));
5294
+ }
5295
+ }
5296
+ ReactElementFactory.Instance.registerElement("sv-list-loading", (props) => {
5297
+ return _$1(ListLoading, props);
5298
+ });
5299
+
5267
5300
  class List extends SurveyElementBase {
5268
5301
  constructor(props) {
5269
5302
  super(props);
@@ -5361,6 +5394,9 @@ class List extends SurveyElementBase {
5361
5394
  }
5362
5395
  }
5363
5396
  emptyContent() {
5397
+ if (this.model.loadingState === "loading") {
5398
+ return ReactElementFactory.Instance.createElement(this.model.loadingComponent, { model: this.model });
5399
+ }
5364
5400
  const style = { display: this.model.isEmpty ? null : "none" };
5365
5401
  return (_$1("div", { className: this.model.cssClasses.emptyContainer, style: style },
5366
5402
  _$1("div", { className: this.model.cssClasses.emptyText, "aria-label": this.model.emptyMessage }, this.model.emptyMessage)));
@@ -5376,7 +5412,7 @@ class SurveyProgressToc extends SurveyNavigationBase {
5376
5412
  const tocModel = this.props.model;
5377
5413
  tocModel.updateStickyTOCSize(this.survey.rootElement);
5378
5414
  }
5379
- render() {
5415
+ renderElement() {
5380
5416
  const tocModel = this.props.model;
5381
5417
  let content;
5382
5418
  if (tocModel.isMobile) {
@@ -5513,14 +5549,14 @@ class SurveyQuestionSlider extends SurveyQuestionElementBase {
5513
5549
  return thumb;
5514
5550
  }
5515
5551
  getInput(i) {
5516
- const { renderedMax: max, renderedMin: min, step, cssClasses, isDisabledAttr, renderedValue, handleOnChange, handlePointerDown, handlePointerUp, handleKeyDown, handleKeyUp, handleOnFocus, handleOnBlur, id } = this.question;
5552
+ const { renderedMax: max, renderedMin: min, step, cssClasses, isDisabledAttr, renderedValue, handleOnChange, handlePointerDown, handlePointerUp, handleKeyDown, handleKeyUp, handleOnFocus, handleOnBlur, renderedId } = this.question;
5517
5553
  const value = renderedValue[i];
5518
- const input = _$1("input", { className: cssClasses.input, id: id + "-sjs-slider-input-" + i, type: "range", min: min, max: max, step: step, value: value, onChange: (e) => { handleOnChange(e.nativeEvent, i); }, onPointerDown: (e) => { handlePointerDown(e.nativeEvent); }, onPointerUp: (e) => { e.stopPropagation(); handlePointerUp(e.nativeEvent); }, onKeyDown: (e) => { handleKeyDown(e.nativeEvent); }, onKeyUp: (e) => { handleKeyUp(e.nativeEvent); }, onFocus: () => { handleOnFocus(i); }, onBlur: () => { handleOnBlur(); }, disabled: isDisabledAttr, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage });
5554
+ const input = _$1("input", { className: cssClasses.input, id: renderedId + "-sjs-slider-input-" + i, type: "range", min: min, max: max, step: step, value: value, onChange: (e) => { handleOnChange(e.nativeEvent, i); }, onPointerDown: (e) => { handlePointerDown(e.nativeEvent); }, onPointerUp: (e) => { e.stopPropagation(); handlePointerUp(e.nativeEvent); }, onKeyDown: (e) => { handleKeyDown(e.nativeEvent); }, onKeyUp: (e) => { handleKeyUp(e.nativeEvent); }, onFocus: () => { handleOnFocus(i); }, onBlur: () => { handleOnBlur(); }, disabled: isDisabledAttr, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage });
5519
5555
  return input;
5520
5556
  }
5521
5557
  getRangeInput() {
5522
- const { renderedMax: max, renderedMin: min, step, cssClasses, handleRangeOnChange, handleRangePointerDown, handleRangePointerUp, id } = this.question;
5523
- return _$1("input", { name: "range-input", id: id + "-sjs-slider-input-range-input", ref: this.rangeInputRef, className: cssClasses.input, type: "range", "aria-hidden": "true", min: min, max: max, step: step, tabIndex: -1, onChange: (e) => { handleRangeOnChange(e.nativeEvent); }, onPointerDown: (e) => { e.persist(); handleRangePointerDown(e.nativeEvent, this.control); }, onPointerUp: (e) => { handleRangePointerUp(e.nativeEvent, this.control); } });
5558
+ const { renderedMax: max, renderedMin: min, step, cssClasses, handleRangeOnChange, handleRangePointerDown, handleRangePointerUp, renderedId } = this.question;
5559
+ return _$1("input", { name: "range-input", id: renderedId + "-sjs-slider-input-range-input", ref: this.rangeInputRef, className: cssClasses.input, type: "range", "aria-hidden": "true", min: min, max: max, step: step, tabIndex: -1, onChange: (e) => { handleRangeOnChange(e.nativeEvent); }, onPointerDown: (e) => { e.persist(); handleRangePointerDown(e.nativeEvent, this.control); }, onPointerUp: (e) => { handleRangePointerUp(e.nativeEvent, this.control); } });
5524
5560
  }
5525
5561
  getLabels() {
5526
5562
  const labels = [];
@@ -5553,6 +5589,19 @@ ReactQuestionFactory.Instance.registerQuestion("expression", (props) => {
5553
5589
  return _$1(SurveyQuestionExpression, props);
5554
5590
  });
5555
5591
 
5592
+ class SurveyQuestionView extends SurveyQuestionElementBase {
5593
+ get question() {
5594
+ return this.questionBase;
5595
+ }
5596
+ renderElement() {
5597
+ return (_$1("div", { id: this.question.inputId, className: this.question.viewModeCssClass, ref: (div) => (this.setControl(div)) }, this.question.viewDisplayText));
5598
+ }
5599
+ }
5600
+ ReactQuestionFactory.Instance.registerQuestion("sv-question-view", (props) => {
5601
+ return _$1(SurveyQuestionView, props);
5602
+ });
5603
+ RendererFactory.Instance.registerRenderer("question", "view", "sv-question-view");
5604
+
5556
5605
  class PopupSurvey extends Survey {
5557
5606
  constructor(props) {
5558
5607
  super(props);
@@ -5665,11 +5714,31 @@ class SurveyQuestionImagePicker extends SurveyQuestionElementBase {
5665
5714
  return this.questionBase;
5666
5715
  }
5667
5716
  renderElement() {
5717
+ if (this.question.isViewMode) {
5718
+ return this.renderViewMode();
5719
+ }
5668
5720
  var cssClasses = this.question.cssClasses;
5669
5721
  return (_$1("fieldset", { className: this.question.getSelectBaseRootCss(), style: this.question.getContainerStyle(), onKeyDown: (event) => { var _a, _b; return (_b = (_a = this.question).onKeyDown) === null || _b === void 0 ? void 0 : _b.call(_a, event); } },
5670
5722
  _$1("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
5671
5723
  this.question.hasColumns ? this.getColumns(cssClasses) : this.getItems(cssClasses)));
5672
5724
  }
5725
+ renderViewMode() {
5726
+ const items = this.question.getViewModeItems();
5727
+ if (items.length === 0) {
5728
+ return (_$1("div", { className: this.question.viewModeCssClass, id: this.question.inputId, ref: (root) => (this.setControl(root)) }, this.question.viewDisplayText));
5729
+ }
5730
+ const isVideo = this.question.contentMode === "video";
5731
+ const style = { objectFit: this.question.imageFit };
5732
+ return (_$1("div", { className: this.question.getSelectBaseRootCss(), id: this.question.inputId, ref: (root) => (this.setControl(root)) }, items.map((item) => {
5733
+ const src = item.locImageLink.renderedHtml;
5734
+ const width = this.question.renderedImageWidth;
5735
+ const height = this.question.renderedImageHeight;
5736
+ if (isVideo) {
5737
+ return (_$1("video", { key: item.uniqueId, className: this.question.cssClasses.image, src: src, width: width, height: height, style: style, onLoadedMetadata: (event) => { this.question.onContentLoaded(item, event.nativeEvent); } }));
5738
+ }
5739
+ return (_$1("img", { key: item.uniqueId, className: this.question.cssClasses.image, src: src, alt: item.locText.renderedHtml, width: width, height: height, style: style, onLoad: (event) => { this.question.onContentLoaded(item, event.nativeEvent); } }));
5740
+ })));
5741
+ }
5673
5742
  getColumns(cssClasses) {
5674
5743
  return this.question.columns.map((column, ci) => {
5675
5744
  var items = column.map((item, ii) => this.renderItem(item, cssClasses));
@@ -5818,8 +5887,8 @@ class SurveyQuestionImageMap extends SurveyQuestionElementBase {
5818
5887
  }
5819
5888
  renderElement() {
5820
5889
  return (_$1("div", { className: this.question.cssClasses.root, ref: (root) => (this.setControl(root)) },
5821
- _$1("img", { className: this.question.cssClasses.bg, id: `${this.question.id}-bg`, src: this.question.imageLink, role: "presentation" }),
5822
- _$1("svg", { className: this.question.cssClasses.svg, id: `${this.question.id}-svg` })));
5890
+ _$1("img", { className: this.question.cssClasses.bg, id: `${this.question.renderedId}-bg`, src: this.question.imageLink, role: "presentation" }),
5891
+ _$1("svg", { className: this.question.cssClasses.svg, id: `${this.question.renderedId}-svg` })));
5823
5892
  }
5824
5893
  }
5825
5894
  ReactQuestionFactory.Instance.registerQuestion("imagemap", (props) => {
@@ -5882,6 +5951,12 @@ class SurveyQuestionSignaturePad extends SurveyQuestionElementBase {
5882
5951
  return this.questionBase;
5883
5952
  }
5884
5953
  renderElement() {
5954
+ if (this.question.isViewMode) {
5955
+ if (!this.question.value) {
5956
+ return (_$1("div", { className: this.question.viewModeCssClass, id: this.question.inputId, ref: (root) => (this.setControl(root)) }, this.question.viewDisplayText));
5957
+ }
5958
+ return (_$1("img", { className: this.question.viewModeCssClass, id: this.question.inputId, src: this.question.value, alt: "", ref: (root) => (this.setControl(root)) }));
5959
+ }
5885
5960
  var cssClasses = this.question.cssClasses;
5886
5961
  const loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
5887
5962
  var toolbar = this.renderToolbar();
@@ -6047,7 +6122,7 @@ class ListItemContent extends SurveyElementBase {
6047
6122
  getStateElement() {
6048
6123
  return this.item;
6049
6124
  }
6050
- render() {
6125
+ renderElement() {
6051
6126
  if (!this.item)
6052
6127
  return null;
6053
6128
  const text = this.renderLocString(this.item.locTitle, undefined, "locString");
@@ -6075,7 +6150,7 @@ class ListItemGroup extends SurveyElementBase {
6075
6150
  getStateElement() {
6076
6151
  return this.item;
6077
6152
  }
6078
- render() {
6153
+ renderElement() {
6079
6154
  var _a;
6080
6155
  if (!this.item)
6081
6156
  return null;
@@ -6100,6 +6175,7 @@ class SurveyActionBarItemDropdown extends SurveyActionBarItem {
6100
6175
  _$1(Popup, { model: this.item.popupModel })));
6101
6176
  }
6102
6177
  componentDidMount() {
6178
+ super.componentDidMount();
6103
6179
  this.viewModel = new ActionDropdownViewModel(this.item);
6104
6180
  }
6105
6181
  componentWillUnmount() {
@@ -6127,30 +6203,29 @@ ReactElementFactory.Instance.registerElement("sv-sort-bar-level", (props) => {
6127
6203
  return _$1(SurveySortBarLevel, props);
6128
6204
  });
6129
6205
 
6130
- // The content of the "Sort by" dialog: one action bar per row (field, direction, remove).
6131
- class SurveyRecordsSortDialog extends SurveyElementBase {
6132
- get model() {
6133
- return this.props.model;
6134
- }
6135
- getStateElement() {
6136
- return this.model;
6137
- }
6138
- renderElement() {
6139
- return _$1("div", { className: this.model.rootCss }, this.model.rows.map((row) => _$1(k$3, { key: row.uniqueId }, ReactElementFactory.Instance.createElement("sv-action-bar", { model: row }))));
6140
- }
6141
- }
6142
- ReactElementFactory.Instance.registerElement("sv-records-sort-dialog", (props) => {
6143
- return _$1(SurveyRecordsSortDialog, props);
6144
- });
6145
-
6146
- class LogoImage extends x$3 {
6206
+ class LogoImage extends SurveyElementBase {
6147
6207
  constructor(props) {
6148
6208
  super(props);
6209
+ this.reactOnStrChanged = () => {
6210
+ this.setState({ locLogoLinkchanged: !!this.state && this.state.locLogoLink ? this.state.locLogoLink + 1 : 1 });
6211
+ };
6149
6212
  }
6150
6213
  get survey() {
6151
6214
  return this.props.data;
6152
6215
  }
6153
- render() {
6216
+ componentDidMount() {
6217
+ super.componentDidMount();
6218
+ this.survey.locLogo.onStringChanged.add(this.reactOnStrChanged);
6219
+ }
6220
+ componentDidUpdate(prevProps, prevState) {
6221
+ super.componentDidUpdate(prevProps, prevState);
6222
+ this.survey.locLogo.onStringChanged.add(this.reactOnStrChanged);
6223
+ }
6224
+ componentWillUnmount() {
6225
+ super.componentWillUnmount();
6226
+ this.survey.locLogo.onStringChanged.remove(this.reactOnStrChanged);
6227
+ }
6228
+ renderElement() {
6154
6229
  const content = [];
6155
6230
  content.push(_$1("div", { key: "logo-image", className: this.survey.logoClassNames },
6156
6231
  _$1("img", { className: this.survey.css.logoImage, src: this.survey.locLogo.renderedHtml || null, alt: this.survey.locTitle.renderedHtml, width: this.survey.renderedLogoWidth, height: this.survey.renderedLogoHeight, style: { objectFit: this.survey.logoFit, width: this.survey.renderedStyleLogoWidth, height: this.survey.renderedStyleLogoHeight } })));
@@ -6172,7 +6247,7 @@ class SurveyQuestionMatrixDynamicDragDropIcon extends ReactSurveyElement {
6172
6247
  return this.props.item;
6173
6248
  }
6174
6249
  renderElement() {
6175
- return _$1("div", { onPointerDown: (event) => { this.question.onPointerDown(event.nativeEvent, this.row); } }, this.renderIcon());
6250
+ return _$1("div", { className: this.question.cssClasses.dragHandle, role: "button", tabIndex: 0, "aria-label": this.props.item.ariaLabel, onPointerDown: (event) => { this.question.onPointerDown(event.nativeEvent, this.row); }, onKeyDown: (event) => { this.question.onDragHandleKeyDown(event.nativeEvent, this.row); } }, this.renderIcon());
6176
6251
  }
6177
6252
  renderIcon() {
6178
6253
  if (this.question.iconDragElement) {
@@ -6255,7 +6330,7 @@ ReactElementFactory.Instance.registerElement("sv-slider-label-item", (props) =>
6255
6330
  class Skeleton extends x$3 {
6256
6331
  render() {
6257
6332
  var _a, _b;
6258
- return (_$1("div", { className: "sv-skeleton-element", id: (_a = this.props.element) === null || _a === void 0 ? void 0 : _a.id, style: { height: (_b = this.props.element) === null || _b === void 0 ? void 0 : _b.skeletonHeight } }));
6333
+ return (_$1("div", { className: "sv-skeleton-element", id: (_a = this.props.element) === null || _a === void 0 ? void 0 : _a.renderedId, style: { height: (_b = this.props.element) === null || _b === void 0 ? void 0 : _b.skeletonHeight } }));
6259
6334
  }
6260
6335
  }
6261
6336
  ReactElementFactory.Instance.registerElement("sv-skeleton", (props) => {
@@ -6292,7 +6367,7 @@ ReactElementFactory.Instance.registerElement("sv-character-counter", (props) =>
6292
6367
  return _$1(CharacterCounterComponent, props);
6293
6368
  });
6294
6369
 
6295
- class HeaderMobile extends x$3 {
6370
+ class HeaderMobile extends SurveyElementBase {
6296
6371
  get model() {
6297
6372
  return this.props.model;
6298
6373
  }
@@ -6303,7 +6378,7 @@ class HeaderMobile extends x$3 {
6303
6378
  data: componentData,
6304
6379
  });
6305
6380
  }
6306
- render() {
6381
+ renderElement() {
6307
6382
  return (_$1("div", { className: "sv-header--mobile" },
6308
6383
  this.model.survey.hasLogo ? (_$1("div", { className: "sv-header__logo" }, this.renderLogoImage())) : null,
6309
6384
  this.model.survey.hasTitle ? (_$1("div", { className: "sv-header__title", style: { maxWidth: this.model.renderedTextAreaWidth } },
@@ -6312,7 +6387,7 @@ class HeaderMobile extends x$3 {
6312
6387
  _$1("div", { className: this.model.survey.css.description }, SurveyElementBase.renderLocString(this.model.survey.locDescription)))) : null));
6313
6388
  }
6314
6389
  }
6315
- class HeaderCell extends x$3 {
6390
+ class HeaderCell extends SurveyElementBase {
6316
6391
  get model() {
6317
6392
  return this.props.model;
6318
6393
  }
@@ -6323,7 +6398,7 @@ class HeaderCell extends x$3 {
6323
6398
  data: componentData,
6324
6399
  });
6325
6400
  }
6326
- render() {
6401
+ renderElement() {
6327
6402
  return (_$1("div", { className: this.model.css, style: this.model.style },
6328
6403
  _$1("div", { className: "sv-header__cell-content", style: this.model.contentStyle },
6329
6404
  this.model.showLogo ? (_$1("div", { className: "sv-header__logo" }, this.renderLogoImage())) : null,
@@ -6356,6 +6431,9 @@ class Header extends SurveyElementBase {
6356
6431
  this.model.backgroundImage ? _$1("div", { style: this.model.backgroundImageStyle, className: this.model.backgroundImageClasses }) : null,
6357
6432
  headerContent));
6358
6433
  }
6434
+ forceHiddenDependencies() {
6435
+ this.model.width;
6436
+ }
6359
6437
  componentDidMount() {
6360
6438
  super.componentDidMount();
6361
6439
  this.model.processResponsiveness();
@@ -6464,7 +6542,7 @@ SurveyModel.prototype["render"] = function (element = null) {
6464
6542
  }
6465
6543
  };
6466
6544
  const preact = React;
6467
- checkLibraryVersion(`${"3.2.3"}`, "survey-js-ui");
6545
+ checkLibraryVersion(`${"3.2.5"}`, "survey-js-ui");
6468
6546
 
6469
- export { CharacterCounterComponent, O as Children, x$3 as Component, ComponentsContainer, k$3 as Fragment, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, N as PureComponent, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, Cn as StrictMode, Survey, SurveyActionBar, SurveyActionBarItemDropdown, SurveyActionBarSeparator, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFileItem, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyMatrixHeaderSortButton, SurveyNavigationBase, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionBooleanSwitch, SurveyQuestionButtonGroup, SurveyQuestionButtonGroupDropdown, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionComposite, SurveyQuestionCustom, SurveyQuestionDropdown, SurveyQuestionDropdownBase, SurveyQuestionDropdownSelect, SurveyQuestionElementBase, SurveyQuestionEmpty, SurveyQuestionExpression, SurveyQuestionFile, SurveyQuestionHtml, SurveyQuestionImage, SurveyQuestionImageMap, SurveyQuestionImagePicker, SurveyQuestionMatrix, SurveyQuestionMatrixCell, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionMatrixRow, SurveyQuestionMultipleText, SurveyQuestionOptionItem, SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicProgressText, SurveyQuestionRadioItem, SurveyQuestionRadiogroup, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionSignaturePad, SurveyQuestionSlider, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyRecordsSortDialog, SurveyRow, SurveySortBarLevel, SurveyTimerPanel, SurveyWindow, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, Q$2 as createContext, _$1 as createElement, dn as createFactory, $ as createPortal, b$1 as createRef, Sn as findDOMNode, En as flushSync, D as forwardRef, tn as hydrate, pn as isFragment, yn as isMemo, mn as isValidElement, z as lazy, M as memo, preact, nn as render, renderPopupSurvey, renderSurvey, R as startTransition, bn as unmountComponentAtNode, gn as unstable_batchedUpdates, q$2 as useCallback, x$2 as useContext, P$2 as useDebugValue, w as useDeferredValue, y as useEffect, g$2 as useId, F$2 as useImperativeHandle, I as useInsertionEffect, _ as useLayoutEffect, T$2 as useMemo, h as useReducer, A$2 as useRef, d as useState, C as useSyncExternalStore, k as useTransition, vn as version };
6547
+ export { CharacterCounterComponent, O as Children, x$3 as Component, ComponentsContainer, k$3 as Fragment, Header, HeaderCell, HeaderMobile, List, ListItemContent, ListItemGroup, ListLoading, LoadingIndicatorComponent, LogoImage, MatrixRow, NotifierComponent, Popup, PopupModal, PopupSurvey, N as PureComponent, QuestionErrorComponent, RatingDropdownItem, RatingItem, RatingItemSmiley, RatingItemStar, ReactElementFactory, ReactQuestionFactory, ReactSurveyElement, ReactSurveyElementsWrapper, Scroll, Skeleton, SliderLabelItem, Cn as StrictMode, Survey, SurveyActionBar, SurveyActionBarItemDropdown, SurveyActionBarSeparator, SurveyElementBase, SurveyElementErrors, SurveyFileChooseButton, SurveyFileItem, SurveyFilePreview, SurveyFlowPanel, SurveyHeader, SurveyLocStringEditor, SurveyLocStringViewer, SurveyMatrixHeaderSortButton, SurveyNavigationBase, SurveyPage, SurveyPanel, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestion, SurveyQuestionAndErrorsCell, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionBooleanSwitch, SurveyQuestionButtonGroup, SurveyQuestionButtonGroupDropdown, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionComment, SurveyQuestionCommentItem, SurveyQuestionComposite, SurveyQuestionCustom, SurveyQuestionDropdown, SurveyQuestionDropdownBase, SurveyQuestionDropdownSelect, SurveyQuestionElementBase, SurveyQuestionEmpty, SurveyQuestionExpression, SurveyQuestionFile, SurveyQuestionHtml, SurveyQuestionImage, SurveyQuestionImageMap, SurveyQuestionImagePicker, SurveyQuestionMatrix, SurveyQuestionMatrixCell, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionMatrixRow, SurveyQuestionMultipleText, SurveyQuestionOptionItem, SurveyQuestionPanelDynamic, SurveyQuestionPanelDynamicProgressText, SurveyQuestionRadioItem, SurveyQuestionRadiogroup, SurveyQuestionRanking, SurveyQuestionRankingItem, SurveyQuestionRankingItemContent, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionSignaturePad, SurveyQuestionSlider, SurveyQuestionTagbox, SurveyQuestionTagboxItem, SurveyQuestionText, SurveyQuestionView, SurveyRow, SurveySortBarLevel, SurveyTimerPanel, SurveyWindow, P as Suspense, B as SuspenseList, SvgBundleComponent, SvgIcon, TagboxFilterString, TitleActions, TitleElement, attachKey2click, _n as cloneElement, Q$2 as createContext, _$1 as createElement, dn as createFactory, $ as createPortal, b$1 as createRef, Sn as findDOMNode, En as flushSync, D as forwardRef, tn as hydrate, pn as isFragment, yn as isMemo, mn as isValidElement, z as lazy, M as memo, preact, nn as render, renderPopupSurvey, renderSurvey, R as startTransition, bn as unmountComponentAtNode, gn as unstable_batchedUpdates, q$2 as useCallback, x$2 as useContext, P$2 as useDebugValue, w as useDeferredValue, y as useEffect, g$2 as useId, F$2 as useImperativeHandle, I as useInsertionEffect, _ as useLayoutEffect, T$2 as useMemo, h as useReducer, A$2 as useRef, d as useState, C as useSyncExternalStore, k as useTransition, vn as version };
6470
6548
  //# sourceMappingURL=survey-js-ui.mjs.map