survey-js-ui 1.12.13 → 1.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/survey-js-ui.js +486 -486
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +4 -4
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.14
|
|
3
3
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -110,7 +110,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
110
110
|
/***/ (function(module, exports, __webpack_require__) {
|
|
111
111
|
|
|
112
112
|
/*!
|
|
113
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
113
|
+
* surveyjs - Survey JavaScript library v1.12.14
|
|
114
114
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
115
115
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
116
116
|
*/
|
|
@@ -1043,7 +1043,7 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1043
1043
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1044
1044
|
|
|
1045
1045
|
/*!
|
|
1046
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
1046
|
+
* surveyjs - Survey JavaScript library v1.12.14
|
|
1047
1047
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1048
1048
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1049
1049
|
*/
|
|
@@ -2004,17 +2004,17 @@ __webpack_require__.d(__webpack_exports__, "render", function() { return /* reex
|
|
|
2004
2004
|
__webpack_require__.d(__webpack_exports__, "hydrate", function() { return /* reexport */ nn; });
|
|
2005
2005
|
__webpack_require__.d(__webpack_exports__, "unmountComponentAtNode", function() { return /* reexport */ _n; });
|
|
2006
2006
|
__webpack_require__.d(__webpack_exports__, "createPortal", function() { return /* reexport */ Y; });
|
|
2007
|
-
__webpack_require__.d(__webpack_exports__, "createElement", function() { return /* reexport */
|
|
2008
|
-
__webpack_require__.d(__webpack_exports__, "createContext", function() { return /* reexport */
|
|
2007
|
+
__webpack_require__.d(__webpack_exports__, "createElement", function() { return /* reexport */ g; });
|
|
2008
|
+
__webpack_require__.d(__webpack_exports__, "createContext", function() { return /* reexport */ J; });
|
|
2009
2009
|
__webpack_require__.d(__webpack_exports__, "createFactory", function() { return /* reexport */ vn; });
|
|
2010
2010
|
__webpack_require__.d(__webpack_exports__, "cloneElement", function() { return /* reexport */ yn; });
|
|
2011
|
-
__webpack_require__.d(__webpack_exports__, "createRef", function() { return /* reexport */
|
|
2012
|
-
__webpack_require__.d(__webpack_exports__, "Fragment", function() { return /* reexport */
|
|
2011
|
+
__webpack_require__.d(__webpack_exports__, "createRef", function() { return /* reexport */ b; });
|
|
2012
|
+
__webpack_require__.d(__webpack_exports__, "Fragment", function() { return /* reexport */ k; });
|
|
2013
2013
|
__webpack_require__.d(__webpack_exports__, "isValidElement", function() { return /* reexport */ dn; });
|
|
2014
2014
|
__webpack_require__.d(__webpack_exports__, "isFragment", function() { return /* reexport */ pn; });
|
|
2015
2015
|
__webpack_require__.d(__webpack_exports__, "isMemo", function() { return /* reexport */ mn; });
|
|
2016
2016
|
__webpack_require__.d(__webpack_exports__, "findDOMNode", function() { return /* reexport */ bn; });
|
|
2017
|
-
__webpack_require__.d(__webpack_exports__, "Component", function() { return /* reexport */
|
|
2017
|
+
__webpack_require__.d(__webpack_exports__, "Component", function() { return /* reexport */ x; });
|
|
2018
2018
|
__webpack_require__.d(__webpack_exports__, "PureComponent", function() { return /* reexport */ compat_module_I; });
|
|
2019
2019
|
__webpack_require__.d(__webpack_exports__, "memo", function() { return /* reexport */ compat_module_N; });
|
|
2020
2020
|
__webpack_require__.d(__webpack_exports__, "forwardRef", function() { return /* reexport */ compat_module_A; });
|
|
@@ -2140,11 +2140,11 @@ __webpack_require__.d(__webpack_exports__, "Model", function() { return /* reexp
|
|
|
2140
2140
|
// NAMESPACE OBJECT: ./node_modules/preact/compat/dist/compat.module.js
|
|
2141
2141
|
var compat_module_namespaceObject = {};
|
|
2142
2142
|
__webpack_require__.r(compat_module_namespaceObject);
|
|
2143
|
-
__webpack_require__.d(compat_module_namespaceObject, "Component", function() { return
|
|
2144
|
-
__webpack_require__.d(compat_module_namespaceObject, "Fragment", function() { return
|
|
2145
|
-
__webpack_require__.d(compat_module_namespaceObject, "createContext", function() { return
|
|
2146
|
-
__webpack_require__.d(compat_module_namespaceObject, "createElement", function() { return
|
|
2147
|
-
__webpack_require__.d(compat_module_namespaceObject, "createRef", function() { return
|
|
2143
|
+
__webpack_require__.d(compat_module_namespaceObject, "Component", function() { return x; });
|
|
2144
|
+
__webpack_require__.d(compat_module_namespaceObject, "Fragment", function() { return k; });
|
|
2145
|
+
__webpack_require__.d(compat_module_namespaceObject, "createContext", function() { return J; });
|
|
2146
|
+
__webpack_require__.d(compat_module_namespaceObject, "createElement", function() { return g; });
|
|
2147
|
+
__webpack_require__.d(compat_module_namespaceObject, "createRef", function() { return b; });
|
|
2148
2148
|
__webpack_require__.d(compat_module_namespaceObject, "useCallback", function() { return hooks_module_q; });
|
|
2149
2149
|
__webpack_require__.d(compat_module_namespaceObject, "useContext", function() { return hooks_module_x; });
|
|
2150
2150
|
__webpack_require__.d(compat_module_namespaceObject, "useDebugValue", function() { return hooks_module_P; });
|
|
@@ -2188,7 +2188,7 @@ __webpack_require__.d(compat_module_namespaceObject, "useTransition", function()
|
|
|
2188
2188
|
__webpack_require__.d(compat_module_namespaceObject, "version", function() { return hn; });
|
|
2189
2189
|
|
|
2190
2190
|
// CONCATENATED MODULE: ./node_modules/preact/dist/preact.module.js
|
|
2191
|
-
var preact_module_n,l,preact_module_u,preact_module_t,preact_module_i,preact_module_o,preact_module_r,preact_module_f,preact_module_e,preact_module_c,s,a,h={},v=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?preact_module_n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++preact_module_u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function b(n){return n.children}function k(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(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?x(n):null}function C(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(n)}}function S(n){(!n.__d&&(n.__d=!0)&&preact_module_i.push(n)&&!M.__r++||preact_module_o!==l.debounceRendering)&&((preact_module_o=l.debounceRendering)||preact_module_r)(M)}function M(){var n,u,t,o,r,e,c,s;for(preact_module_i.sort(preact_module_f);n=preact_module_i.shift();)n.__d&&(u=preact_module_i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&C(o)),preact_module_i.length>u&&preact_module_i.sort(preact_module_f));M.__r=0}function P(n,l,u,t,i,o,r,f,e,c,s){var a,p,y,d,w,_=t&&t.__k||v,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&(p=-1===y.__i?h:_[y.__i]||h,y.__i=a,O(n,y,p,i,o,r,f,e,c,s),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&E(p.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||p.__k===y.__k?e=I(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=l[t])&&"boolean"!=typeof i&&"function"!=typeof i?(r=t+a,(i=n.__k[t]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y(i)?g(b,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=n,i.__b=n.__b+1,o=null,-1!==(f=i.__i=L(i,u,r,s))&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a--:f==r+1?a++:(f>r?a--:a++,i.__u|=65536))):i=n.__k[t]=null;if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),N(o,o))}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=x(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(n,l){return l=l||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(("function"!=typeof o||o===b||i)&&t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||p.test(l)?u:u+"px"}function A(n,l,u,t,i){var 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(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=preact_module_e,n.addEventListener(l,o?s:preact_module_c,o)):n.removeEventListener(l,o?s:preact_module_c,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(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=preact_module_e++;else if(u.t<t.u)return;return l.event&&(u=l.event(u)),"handleEvent"in t?t.handleEvent(u):t(u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,v,p,w,_,g,m,x,C,S,M,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],S=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,S):(u.__c=h=new k(m,S),h.constructor=T,h.render=V),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=S,h.__n=i,v=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,T.getDerivedStateFromProps(m,h.__s))),p=h.props,w=h.state,h.__v=u,v)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==T.getDerivedStateFromProps&&m!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,S),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,S)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,S),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,w,_)})}if(h.context=S,h.props=m,h.__P=n,h.__e=!1,$=l.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(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,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),x&&!v&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(p,w)),P(n,y(L=null!=a&&a.type===b&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r){for(u.__u|=c?160:128;e&&8===e.nodeType&&e.nextSibling;)e=e.nextSibling;r[r.indexOf(e)]=null,u.__e=e}else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)E(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function z(u,t,i,o,r,f,e,c,s){var a,v,p,d,_,g,m,b=i.props,k=t.props,C=t.type;if("svg"===C?r="http://www.w3.org/2000/svg":"math"===C?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((_=f[a])&&"setAttribute"in _==!!C&&(C?_.localName===C:3===_.nodeType)){u=_,f[a]=null;break}if(null==u){if(null===C)return document.createTextNode(k);u=document.createElementNS(r,C,k.is&&k),c&&(l.__m&&l.__m(t,f),c=!1),f=null}if(null===C)b===k||c&&u.data===k||(u.data=k);else{if(f=f&&preact_module_n.call(u.childNodes),b=i.props||h,!c&&null!=f)for(b={},a=0;a<u.attributes.length;a++)b[(_=u.attributes[a]).name]=_.value;for(a in b)if(_=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=_;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;A(u,a,null,_,r)}for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?m=_:c&&"function"!=typeof _||b[a]===_||A(u,a,_,b[a],r);if(v)c||p&&(v.__html===p.__html||v.__html===u.innerHTML)||(u.innerHTML=v.__html),t.__k=[];else if(p&&(u.innerHTML=""),P(u,y(d)?d:[d],t,i,o,"foreignObject"===C?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:i.__k&&x(i,0),c,s),null!=f)for(a=f.length;a--;)w(f[a]);c||(a="value","progress"===C&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===C&&!g||"option"===C&&g!==b[a])&&A(u,a,g,b[a],r),a="checked",void 0!==m&&m!==u[a]&&A(u,a,m,b[a],r))}return u}function E(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.__e(n,t)}}function N(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||E(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&N(i[o],u,t||"function"!=typeof n.type);t||w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function V(n,l,u){return this.constructor(n,u)}function q(u,t,i){var o,r,f,e;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=_(b,null,[u]),r||h,h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?preact_module_n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function B(n,l){q(n,l,B)}function D(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?preact_module_n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l]=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,S(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 u.Provider.__=u.Consumer.contextType=u}preact_module_n=v.slice,l={__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}},preact_module_u=0,preact_module_t=function(n){return null!=n&&null==n.constructor},k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),S(this))},k.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),S(this))},k.prototype.render=b,preact_module_i=[],preact_module_r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,preact_module_f=function(n,l){return n.__v.__b-l.__v.__b},M.__r=0,preact_module_e=0,preact_module_c=F(!1),s=F(!0),a=0;
|
|
2191
|
+
var preact_module_n,l,preact_module_u,preact_module_t,preact_module_i,preact_module_r,preact_module_o,preact_module_e,preact_module_f,preact_module_c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(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?preact_module_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(l,e,i,r,null)}function m(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?++preact_module_u:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(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?C(n):null}function S(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 S(n)}}function M(n){(!n.__d&&(n.__d=!0)&&preact_module_i.push(n)&&!P.__r++||preact_module_r!==l.debounceRendering)&&((preact_module_r=l.debounceRendering)||preact_module_o)(P)}function P(){var n,u,t,r,o,f,c,s;for(preact_module_i.sort(preact_module_e);n=preact_module_i.shift();)n.__d&&(u=preact_module_i.length,r=void 0,f=(o=(t=n).__v).__e,c=[],s=[],t.__P&&((r=w({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),j(t.__P,r,o,t.__n,t.__P.namespaceURI,32&o.__u?[f]:null,c,null==f?C(o):f,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,z(c,r,s),r.__e!=f&&S(r)),preact_module_i.length>u&&preact_module_i.sort(preact_module_e));P.__r=0}function $(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,d,w,_,g=t&&t.__k||v,m=l.length;for(f=I(u,l,g,f),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1===y.__i?p:g[y.__i]||p,y.__i=a,_=j(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(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=H(y,f,n):"function"==typeof y.type&&void 0!==_?f=_:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function I(n,l,u,t){var i,r,o,e,f,c=l.length,s=u.length,a=s,h=0;for(n.__k=[],i=0;i<c;i++)null!=(r=l[i])&&"boolean"!=typeof r&&"function"!=typeof r?(e=i+h,(r=n.__k[i]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?m(null,r,null,null,null):d(r)?m(k,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?m(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=n,r.__b=n.__b+1,o=null,-1!==(f=r.__i=T(r,u,e,a))&&(a--,(o=u[f])&&(o.__u|=2)),null==o||null===o.__v?(-1==f&&h--,"function"!=typeof r.type&&(r.__u|=4)):f!==e&&(f==e-1?h--:f==e+1?h++:(f>e?h--:h++,r.__u|=4))):r=n.__k[i]=null;if(a)for(i=0;i<s;i++)null!=(o=u[i])&&0==(2&o.__u)&&(o.__e==t&&(t=C(o)),q(o,o));return t}function H(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=H(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=C(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function L(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){L(n,l)}):l.push(n)),l}function T(n,l,u,t){var i=n.key,r=n.type,o=u-1,e=u+1,f=l[u];if(null===f||f&&i==f.key&&r===f.type&&0==(2&f.__u))return u;if(("function"!=typeof r||r===k||i)&&t>(null!=f&&0==(2&f.__u)?1:0))for(;o>=0||e<l.length;){if(o>=0){if((f=l[o])&&0==(2&f.__u)&&i==f.key&&r===f.type)return o;o--}if(e<l.length){if((f=l[e])&&0==(2&f.__u)&&i==f.key&&r===f.type)return e;e++}}return-1}function A(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function F(n,l,u,t,i){var 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||A(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||A(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])r=l!==(l=l.replace(preact_module_f,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=preact_module_c,n.addEventListener(l,r?a:s,r)):n.removeEventListener(l,r?a:s,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 O(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=preact_module_c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function j(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,g,m,b,C,S,M,P,I,H,L,T,A,F=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof F)try{if(b=u.props,C="prototype"in F&&F.prototype.render,S=(a=F.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(C?u.__c=h=new F(b,M):(u.__c=h=new x(b,M),h.constructor=F,h.render=B),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=F.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,F.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)C&&null==F.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==F.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)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,g)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,H=0,C){for(h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),L=0;L<h._sb.length;L++)h.__h.push(h._sb[L]);h._sb=[]}else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++H<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(v,y)),f=$(n,d(T=null!=a&&a.type===k&&null==a.key?a.props.children:a)?T:[T],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(A=o.length;A--;)_(o[A]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==o&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=N(t.__e,u,t,i,r,o,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n,u,t){for(var i=0;i<t.length;i++)V(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function N(u,t,i,r,o,e,f,c,s){var a,h,v,y,w,g,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((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(o,x,k.is&&k),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null===x)b===k||c&&u.data===k||(u.data=k);else{if(e=e&&preact_module_n.call(u.childNodes),b=i.props||p,!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;F(u,a,null,w,o)}for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?g=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||F(u,a,w,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=""),$(u,d(y)?y:[y],t,i,r,"foreignObject"===x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&C(i,0),c,s),null!=e)for(a=e.length;a--;)_(e[a]);c||(a="value","progress"===x&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===x&&!g||"option"===x&&g!==b[a])&&F(u,a,g,b[a],o),a="checked",void 0!==m&&m!==u[a]&&F(u,a,m,b[a],o))}return u}function V(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.__e(n,t)}}function q(n,u,t){var i,r;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&q(i[r],u,t||"function"!=typeof n.type);t||_(n.__e),n.__c=n.__=n.__e=void 0}function B(n,l,u){return this.constructor(n,u)}function D(u,t,i){var r,o,e,f;t===document&&(t=document.documentElement),l.__&&l.__(u,t),o=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],j(t,u=(!r&&i||t).__k=g(k,null,[u]),o||p,p,t.namespaceURI,!r&&i?[i]:o?null:t.firstChild?preact_module_n.call(t.childNodes):null,e,!r&&i?i:o?o.__e:t.firstChild,r,f),z(e,u,f)}function E(n,l){D(n,l,E)}function G(l,u,t){var i,r,o,e,f=w({},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]&&void 0!==e?e[o]:u[o];return arguments.length>2&&(f.children=arguments.length>3?preact_module_n.call(arguments,2):t),m(l.type,f,i||l.key,r||l.ref,null)}function J(n,l){var u={__c:l="__cC"+h++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l]=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(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 u.Provider.__=u.Consumer.contextType=u}preact_module_n=v.slice,l={__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}},preact_module_u=0,preact_module_t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,preact_module_i=[],preact_module_o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,preact_module_e=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,preact_module_f=/(PointerCapture)$|Capture$/i,preact_module_c=0,s=O(!1),a=O(!0),h=0;
|
|
2192
2192
|
//# sourceMappingURL=preact.module.js.map
|
|
2193
2193
|
|
|
2194
2194
|
// CONCATENATED MODULE: ./node_modules/preact/hooks/dist/hooks.module.js
|
|
@@ -2196,7 +2196,7 @@ var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0
|
|
|
2196
2196
|
//# sourceMappingURL=hooks.module.js.map
|
|
2197
2197
|
|
|
2198
2198
|
// CONCATENATED MODULE: ./node_modules/preact/compat/dist/compat.module.js
|
|
2199
|
-
function compat_module_g(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function compat_module_E(n,t){var e=t(),r=hooks_module_h({t:{__:e,u:t}}),u=r[0].t,o=r[1];return hooks_module_(function(){u.__=e,u.u=t,compat_module_C(u)&&o({t:u})},[n,e,t]),hooks_module_y(function(){return compat_module_C(u)&&o({t:u}),n(function(){compat_module_C(u)&&o({t:u})})},[n]),e}function compat_module_C(n){var t,e,r=n.u,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}function compat_module_x(n){n()}function R(n){return n}function compat_module_w(){return[!1,compat_module_x]}var compat_module_k=hooks_module_;function compat_module_I(n,t){this.props=n,this.context=t}function compat_module_N(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:compat_module_g(this.props,n)}function u(e){return this.shouldComponentUpdate=r,_(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(compat_module_I.prototype=new k).isPureReactComponent=!0,compat_module_I.prototype.shouldComponentUpdate=function(n,t){return compat_module_g(this.props,n)||compat_module_g(this.state,t)};var compat_module_M=l.__b;l.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),compat_module_M&&compat_module_M(n)};var compat_module_T="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function compat_module_A(n){function t(t){if(!("ref"in t))return n(t,null);var e=t.ref;delete t.ref;var r=n(t,e);return t.ref=e,r}return t.$$typeof=compat_module_T,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var compat_module_D=function(n,t){return null==n?null:H(H(n).map(t))},compat_module_L={map:compat_module_D,forEach:compat_module_D,count:function(n){return n?H(n).length:0},only:function(n){var t=H(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:H},compat_module_O=l.__e;l.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);compat_module_O(n,t,e,r)};var compat_module_F=l.unmount;function U(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=function(n,t){for(var e in t)n[e]=t[e];return n}({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)})),n}function compat_module_V(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return compat_module_V(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function W(){this.__u=0,this.o=null,this.__b=null}function compat_module_P(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function compat_module_j(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return _(r,o)}return o.displayName="Lazy",o.__f=!0,o}function compat_module_z(){this.i=null,this.l=null}l.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),compat_module_F&&compat_module_F(n)},(W.prototype=new k).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=compat_module_P(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=compat_module_V(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},W.prototype.componentWillUnmount=function(){this.o=[]},W.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=U(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&_(b,null,n.fallback);return i&&(i.__u&=-33),[_(b,null,e.__a?null:n.children),i]};var compat_module_B=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};function compat_module_H(n){return this.getChildContext=function(){return n.context},n.children}function Z(n){var e=this,r=n.h;e.componentWillUnmount=function(){q(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),e.v||(e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),e.h.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.h.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}),q(_(compat_module_H,{context:e.context},n.__v),e.v)}function Y(n,e){var r=_(Z,{__v:n,h:e});return r.containerInfo=e,r}(compat_module_z.prototype=new k).__a=function(n){var t=this,e=compat_module_P(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),compat_module_B(t,n,r)):u()};e?e(o):o()}},compat_module_z.prototype.render=function(n){this.i=null,this.l=new Map;var t=H(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},compat_module_z.prototype.componentDidUpdate=compat_module_z.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){compat_module_B(n,e,t)})};var compat_module_$="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,compat_module_q=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,compat_module_G=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,J=/[A-Z0-9]/g,K="undefined"!=typeof document,Q=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function X(n,t,e){return null==t.__k&&(t.textContent=""),q(n,t),"function"==typeof e&&e(),n?n.__c:null}function nn(n,t,e){return B(n,t),"function"==typeof e&&e(),n?n.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(k.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var tn=l.event;function en(){}function rn(){return this.cancelBubble}function un(){return this.defaultPrevented}l.event=function(n){return tn&&(n=tn(n)),n.persist=en,n.isPropagationStopped=rn,n.isDefaultPrevented=un,n.nativeEvent=n};var on,cn={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=l.vnode;l.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf("-");for(var i in t){var c=t[i];if(!("value"===i&&"defaultValue"in t&&null==c||K&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var f=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===f&&"no"===c?c=!1:"o"===f[0]&&"n"===f[1]?"ondoubleclick"===f?i="ondblclick":"onchange"!==f||"input"!==e&&"textarea"!==e||Q(t.type)?"onfocus"===f?i="onfocusin":"onblur"===f?i="onfocusout":compat_module_G.test(i)&&(i=f):f=i="oninput":o&&compat_module_q.test(i)?i=i.replace(J,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===f&&u[i=f]&&(i="oninputCapture"),u[i]=c}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=H(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=H(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",cn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=compat_module_$,fn&&fn(n)};var ln=l.__r;l.__r=function(n){ln&&ln(n),on=n.__c};var an=l.diffed;l.diffed=function(n){an&&an(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),on=null};var sn={ReactCurrentDispatcher:{current:{readContext:function(n){return on.__n[n.__c].props.value},useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,useDeferredValue:R,useEffect:hooks_module_y,useId:hooks_module_g,useImperativeHandle:hooks_module_F,useInsertionEffect:compat_module_k,useLayoutEffect:hooks_module_,useMemo:hooks_module_T,useReducer:hooks_module_p,useRef:hooks_module_A,useState:hooks_module_h,useSyncExternalStore:compat_module_E,useTransition:compat_module_w}}},hn="18.3.1";function vn(n){return _.bind(null,n)}function dn(n){return!!n&&n.$$typeof===compat_module_$}function pn(n){return dn(n)&&n.type===b}function mn(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function yn(n){return dn(n)?D.apply(null,arguments):n}function _n(n){return!!n.__k&&(q(null,n),!0)}function bn(n){return n&&(n.base||1===n.nodeType&&n)||null}var Sn=function(n,t){return n(t)},gn=function(n,t){return n(t)},En=b,Cn=dn,xn={useState:hooks_module_h,useId:hooks_module_g,useReducer:hooks_module_p,useEffect:hooks_module_y,useLayoutEffect:hooks_module_,useInsertionEffect:compat_module_k,useTransition:compat_module_w,useDeferredValue:R,useSyncExternalStore:compat_module_E,startTransition:compat_module_x,useRef:hooks_module_A,useImperativeHandle:hooks_module_F,useMemo:hooks_module_T,useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,version:"18.3.1",Children:compat_module_L,render:X,hydrate:nn,unmountComponentAtNode:_n,createPortal:Y,createElement:_,createContext:G,createFactory:vn,cloneElement:yn,createRef:m,Fragment:b,isValidElement:dn,isElement:Cn,isFragment:pn,isMemo:mn,findDOMNode:bn,Component:k,PureComponent:compat_module_I,memo:compat_module_N,forwardRef:compat_module_A,flushSync:gn,unstable_batchedUpdates:Sn,StrictMode:En,Suspense:W,SuspenseList:compat_module_z,lazy:compat_module_j,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sn};
|
|
2199
|
+
function compat_module_g(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function compat_module_E(n,t){var e=t(),r=hooks_module_h({t:{__:e,u:t}}),u=r[0].t,o=r[1];return hooks_module_(function(){u.__=e,u.u=t,compat_module_C(u)&&o({t:u})},[n,e,t]),hooks_module_y(function(){return compat_module_C(u)&&o({t:u}),n(function(){compat_module_C(u)&&o({t:u})})},[n]),e}function compat_module_C(n){var t,e,r=n.u,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}function compat_module_x(n){n()}function R(n){return n}function compat_module_w(){return[!1,compat_module_x]}var compat_module_k=hooks_module_;function compat_module_I(n,t){this.props=n,this.context=t}function compat_module_N(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:compat_module_g(this.props,n)}function u(e){return this.shouldComponentUpdate=r,g(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(compat_module_I.prototype=new x).isPureReactComponent=!0,compat_module_I.prototype.shouldComponentUpdate=function(n,t){return compat_module_g(this.props,n)||compat_module_g(this.state,t)};var compat_module_M=l.__b;l.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),compat_module_M&&compat_module_M(n)};var compat_module_T="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function compat_module_A(n){function t(t){if(!("ref"in t))return n(t,null);var e=t.ref;delete t.ref;var r=n(t,e);return t.ref=e,r}return t.$$typeof=compat_module_T,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var compat_module_D=function(n,t){return null==n?null:L(L(n).map(t))},compat_module_L={map:compat_module_D,forEach:compat_module_D,count:function(n){return n?L(n).length:0},only:function(n){var t=L(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:L},compat_module_O=l.__e;l.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);compat_module_O(n,t,e,r)};var compat_module_F=l.unmount;function U(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=function(n,t){for(var e in t)n[e]=t[e];return n}({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return U(n,t,e)})),n}function compat_module_V(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return compat_module_V(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function W(){this.__u=0,this.o=null,this.__b=null}function compat_module_P(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function compat_module_j(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return g(r,o)}return o.displayName="Lazy",o.__f=!0,o}function compat_module_z(){this.i=null,this.l=null}l.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),compat_module_F&&compat_module_F(n)},(W.prototype=new x).__c=function(n,t){var e=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(e);var u=compat_module_P(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=compat_module_V(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},W.prototype.componentWillUnmount=function(){this.o=[]},W.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=U(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&g(k,null,n.fallback);return i&&(i.__u&=-33),[g(k,null,e.__a?null:n.children),i]};var compat_module_B=function(n,t,e){if(++e[1]===e[0]&&n.l.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.l.size))for(e=n.i;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.i=e=e[2]}};function compat_module_H(n){return this.getChildContext=function(){return n.context},n.children}function Z(n){var e=this,r=n.h;e.componentWillUnmount=function(){D(null,e.v),e.v=null,e.h=null},e.h&&e.h!==r&&e.componentWillUnmount(),e.v||(e.h=r,e.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),e.h.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.h.insertBefore(n,t)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.h.removeChild(n)}}),D(g(compat_module_H,{context:e.context},n.__v),e.v)}function Y(n,e){var r=g(Z,{__v:n,h:e});return r.containerInfo=e,r}(compat_module_z.prototype=new x).__a=function(n){var t=this,e=compat_module_P(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),compat_module_B(t,n,r)):u()};e?e(o):o()}},compat_module_z.prototype.render=function(n){this.i=null,this.l=new Map;var t=L(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.l.set(t[e],this.i=[1,0,this.i]);return n.children},compat_module_z.prototype.componentDidUpdate=compat_module_z.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){compat_module_B(n,e,t)})};var compat_module_$="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,compat_module_q=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,compat_module_G=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,compat_module_J=/[A-Z0-9]/g,K="undefined"!=typeof document,Q=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function X(n,t,e){return null==t.__k&&(t.textContent=""),D(n,t),"function"==typeof e&&e(),n?n.__c:null}function nn(n,t,e){return E(n,t),"function"==typeof e&&e(),n?n.__c:null}x.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(x.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var tn=l.event;function en(){}function rn(){return this.cancelBubble}function un(){return this.defaultPrevented}l.event=function(n){return tn&&(n=tn(n)),n.persist=en,n.isPropagationStopped=rn,n.isDefaultPrevented=un,n.nativeEvent=n};var on,cn={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=l.vnode;l.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf("-");for(var i in t){var c=t[i];if(!("value"===i&&"defaultValue"in t&&null==c||K&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var f=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===f&&"no"===c?c=!1:"o"===f[0]&&"n"===f[1]?"ondoubleclick"===f?i="ondblclick":"onchange"!==f||"input"!==e&&"textarea"!==e||Q(t.type)?"onfocus"===f?i="onfocusin":"onblur"===f?i="onfocusout":compat_module_G.test(i)&&(i=f):f=i="oninput":o&&compat_module_q.test(i)?i=i.replace(compat_module_J,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===f&&u[i=f]&&(i="oninputCapture"),u[i]=c}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=L(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=L(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",cn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=compat_module_$,fn&&fn(n)};var ln=l.__r;l.__r=function(n){ln&&ln(n),on=n.__c};var an=l.diffed;l.diffed=function(n){an&&an(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),on=null};var sn={ReactCurrentDispatcher:{current:{readContext:function(n){return on.__n[n.__c].props.value},useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,useDeferredValue:R,useEffect:hooks_module_y,useId:hooks_module_g,useImperativeHandle:hooks_module_F,useInsertionEffect:compat_module_k,useLayoutEffect:hooks_module_,useMemo:hooks_module_T,useReducer:hooks_module_p,useRef:hooks_module_A,useState:hooks_module_h,useSyncExternalStore:compat_module_E,useTransition:compat_module_w}}},hn="18.3.1";function vn(n){return g.bind(null,n)}function dn(n){return!!n&&n.$$typeof===compat_module_$}function pn(n){return dn(n)&&n.type===k}function mn(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function yn(n){return dn(n)?G.apply(null,arguments):n}function _n(n){return!!n.__k&&(D(null,n),!0)}function bn(n){return n&&(n.base||1===n.nodeType&&n)||null}var Sn=function(n,t){return n(t)},gn=function(n,t){return n(t)},En=k,Cn=dn,xn={useState:hooks_module_h,useId:hooks_module_g,useReducer:hooks_module_p,useEffect:hooks_module_y,useLayoutEffect:hooks_module_,useInsertionEffect:compat_module_k,useTransition:compat_module_w,useDeferredValue:R,useSyncExternalStore:compat_module_E,startTransition:compat_module_x,useRef:hooks_module_A,useImperativeHandle:hooks_module_F,useMemo:hooks_module_T,useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,version:"18.3.1",Children:compat_module_L,render:X,hydrate:nn,unmountComponentAtNode:_n,createPortal:Y,createElement:g,createContext:J,createFactory:vn,cloneElement:yn,createRef:b,Fragment:k,isValidElement:dn,isElement:Cn,isFragment:pn,isMemo:mn,findDOMNode:bn,Component:x,PureComponent:compat_module_I,memo:compat_module_N,forwardRef:compat_module_A,flushSync:gn,unstable_batchedUpdates:Sn,StrictMode:En,Suspense:W,SuspenseList:compat_module_z,lazy:compat_module_j,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sn};
|
|
2200
2200
|
//# sourceMappingURL=compat.module.js.map
|
|
2201
2201
|
|
|
2202
2202
|
// EXTERNAL MODULE: external {"root":"Survey","commonjs2":"survey-core","commonjs":"survey-core","amd":"survey-core"}
|
|
@@ -2328,7 +2328,7 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
SurveyElementBase.renderQuestionDescription = function (question) {
|
|
2330
2330
|
var descriptionText = SurveyElementBase.renderLocString(question.locDescription);
|
|
2331
|
-
return
|
|
2331
|
+
return g("div", { style: question.hasDescription ? undefined : { display: "none" }, id: question.ariaDescriptionId, className: question.cssDescription }, descriptionText);
|
|
2332
2332
|
};
|
|
2333
2333
|
SurveyElementBase.prototype.componentDidMount = function () {
|
|
2334
2334
|
this.makeBaseElementsReact();
|
|
@@ -2509,7 +2509,7 @@ var reactquestion_element_SurveyElementBase = /** @class */ (function (_super) {
|
|
|
2509
2509
|
});
|
|
2510
2510
|
};
|
|
2511
2511
|
return SurveyElementBase;
|
|
2512
|
-
}(
|
|
2512
|
+
}(x));
|
|
2513
2513
|
|
|
2514
2514
|
var ReactSurveyElement = /** @class */ (function (_super) {
|
|
2515
2515
|
__extends(ReactSurveyElement, _super);
|
|
@@ -2688,7 +2688,7 @@ var element_SurveyRowElement = /** @class */ (function (_super) {
|
|
|
2688
2688
|
function SurveyRowElement(props) {
|
|
2689
2689
|
var _this = _super.call(this, props) || this;
|
|
2690
2690
|
_this.element.cssClasses;
|
|
2691
|
-
_this.rootRef =
|
|
2691
|
+
_this.rootRef = b();
|
|
2692
2692
|
return _this;
|
|
2693
2693
|
}
|
|
2694
2694
|
SurveyRowElement.prototype.getStateElement = function () {
|
|
@@ -2770,7 +2770,7 @@ var element_SurveyRowElement = /** @class */ (function (_super) {
|
|
|
2770
2770
|
el.focusIn();
|
|
2771
2771
|
}
|
|
2772
2772
|
};
|
|
2773
|
-
return (
|
|
2773
|
+
return (g("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": innerElement.key, key: innerElement.key, onFocus: focusIn, ref: this.rootRef }, innerElement));
|
|
2774
2774
|
};
|
|
2775
2775
|
SurveyRowElement.prototype.createElement = function (element, elementIndex) {
|
|
2776
2776
|
var index = elementIndex ? "-" + elementIndex : 0;
|
|
@@ -2818,7 +2818,7 @@ var row_SurveyRow = /** @class */ (function (_super) {
|
|
|
2818
2818
|
row_extends(SurveyRow, _super);
|
|
2819
2819
|
function SurveyRow(props) {
|
|
2820
2820
|
var _this = _super.call(this, props) || this;
|
|
2821
|
-
_this.rootRef =
|
|
2821
|
+
_this.rootRef = b();
|
|
2822
2822
|
_this.recalculateCss();
|
|
2823
2823
|
return _this;
|
|
2824
2824
|
}
|
|
@@ -2864,9 +2864,9 @@ var row_SurveyRow = /** @class */ (function (_super) {
|
|
|
2864
2864
|
var elements = this.row.visibleElements.map(function (element, elementIndex) {
|
|
2865
2865
|
var index = elementIndex ? "-" + elementIndex : 0;
|
|
2866
2866
|
var key = element.name + index;
|
|
2867
|
-
return (
|
|
2867
|
+
return (g(element_SurveyRowElement, { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: key }));
|
|
2868
2868
|
});
|
|
2869
|
-
return (
|
|
2869
|
+
return (g("div", { ref: this.rootRef, className: this.row.getRowCss() }, elements));
|
|
2870
2870
|
};
|
|
2871
2871
|
SurveyRow.prototype.renderElement = function () {
|
|
2872
2872
|
var survey = this.survey;
|
|
@@ -2950,7 +2950,7 @@ var panel_base_SurveyPanelBase = /** @class */ (function (_super) {
|
|
|
2950
2950
|
panel_base_extends(SurveyPanelBase, _super);
|
|
2951
2951
|
function SurveyPanelBase(props) {
|
|
2952
2952
|
var _this = _super.call(this, props) || this;
|
|
2953
|
-
_this.rootRef =
|
|
2953
|
+
_this.rootRef = b();
|
|
2954
2954
|
return _this;
|
|
2955
2955
|
}
|
|
2956
2956
|
SurveyPanelBase.prototype.getStateElement = function () {
|
|
@@ -3038,7 +3038,7 @@ var panel_base_SurveyPanelBase = /** @class */ (function (_super) {
|
|
|
3038
3038
|
return this.panelBase.visibleRows.map(function (row) { return _this.createRow(row, css); });
|
|
3039
3039
|
};
|
|
3040
3040
|
SurveyPanelBase.prototype.createRow = function (row, css) {
|
|
3041
|
-
return (
|
|
3041
|
+
return (g(row_SurveyRow, { key: row.id, row: row, survey: this.survey, creator: this.creator, css: css }));
|
|
3042
3042
|
};
|
|
3043
3043
|
return SurveyPanelBase;
|
|
3044
3044
|
}(reactquestion_element_SurveyElementBase));
|
|
@@ -3898,18 +3898,18 @@ var reactquestion_comment_SurveyQuestionComment = /** @class */ (function (_supe
|
|
|
3898
3898
|
SurveyQuestionComment.prototype.renderCharacterCounter = function () {
|
|
3899
3899
|
var counter = null;
|
|
3900
3900
|
if (!!this.question.getMaxLength()) {
|
|
3901
|
-
counter =
|
|
3901
|
+
counter = g(character_counter_CharacterCounterComponent, { counter: this.question.characterCounter, remainingCharacterCounter: this.question.cssClasses.remainingCharacterCounter });
|
|
3902
3902
|
}
|
|
3903
3903
|
return counter;
|
|
3904
3904
|
};
|
|
3905
3905
|
SurveyQuestionComment.prototype.renderElement = function () {
|
|
3906
3906
|
if (this.question.isReadOnlyRenderDiv()) {
|
|
3907
|
-
return
|
|
3907
|
+
return g("div", null, this.question.value);
|
|
3908
3908
|
}
|
|
3909
3909
|
var counter = this.renderCharacterCounter();
|
|
3910
3910
|
var textAreaModel = this.props.question.textAreaModel;
|
|
3911
|
-
return (
|
|
3912
|
-
|
|
3911
|
+
return (g(k, null,
|
|
3912
|
+
g(text_area_TextAreaComponent, { viewModel: textAreaModel }),
|
|
3913
3913
|
counter));
|
|
3914
3914
|
};
|
|
3915
3915
|
return SurveyQuestionComment;
|
|
@@ -3932,9 +3932,9 @@ var reactquestion_comment_SurveyQuestionCommentItem = /** @class */ (function (_
|
|
|
3932
3932
|
var question = this.props.question;
|
|
3933
3933
|
if (question.isReadOnlyRenderDiv()) {
|
|
3934
3934
|
var comment = this.textAreaModel.getTextValue() || "";
|
|
3935
|
-
return
|
|
3935
|
+
return g("div", null, comment);
|
|
3936
3936
|
}
|
|
3937
|
-
return (
|
|
3937
|
+
return (g(text_area_TextAreaComponent, { viewModel: this.textAreaModel }));
|
|
3938
3938
|
};
|
|
3939
3939
|
return SurveyQuestionCommentItem;
|
|
3940
3940
|
}(ReactSurveyElement));
|
|
@@ -3951,7 +3951,7 @@ var SurveyQuestionOtherValueItem = /** @class */ (function (_super) {
|
|
|
3951
3951
|
}(reactquestion_comment_SurveyQuestionCommentItem));
|
|
3952
3952
|
|
|
3953
3953
|
ReactQuestionFactory.Instance.registerQuestion("comment", function (props) {
|
|
3954
|
-
return
|
|
3954
|
+
return g(reactquestion_comment_SurveyQuestionComment, props);
|
|
3955
3955
|
});
|
|
3956
3956
|
|
|
3957
3957
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/custom-widget.tsx
|
|
@@ -3976,7 +3976,7 @@ var custom_widget_SurveyCustomWidget = /** @class */ (function (_super) {
|
|
|
3976
3976
|
custom_widget_extends(SurveyCustomWidget, _super);
|
|
3977
3977
|
function SurveyCustomWidget(props) {
|
|
3978
3978
|
var _this = _super.call(this, props) || this;
|
|
3979
|
-
_this.widgetRef =
|
|
3979
|
+
_this.widgetRef = b();
|
|
3980
3980
|
return _this;
|
|
3981
3981
|
}
|
|
3982
3982
|
SurveyCustomWidget.prototype._afterRender = function () {
|
|
@@ -4017,7 +4017,7 @@ var custom_widget_SurveyCustomWidget = /** @class */ (function (_super) {
|
|
|
4017
4017
|
SurveyCustomWidget.prototype.renderElement = function () {
|
|
4018
4018
|
var customWidget = this.questionBase.customWidget;
|
|
4019
4019
|
if (customWidget.isDefaultRender) {
|
|
4020
|
-
return (
|
|
4020
|
+
return (g("div", { ref: this.widgetRef }, this.creator.createQuestionElement(this.questionBase)));
|
|
4021
4021
|
}
|
|
4022
4022
|
var widget = null;
|
|
4023
4023
|
if (customWidget.widgetJson.render) {
|
|
@@ -4026,10 +4026,10 @@ var custom_widget_SurveyCustomWidget = /** @class */ (function (_super) {
|
|
|
4026
4026
|
else {
|
|
4027
4027
|
if (customWidget.htmlTemplate) {
|
|
4028
4028
|
var htmlValue = { __html: customWidget.htmlTemplate };
|
|
4029
|
-
return
|
|
4029
|
+
return g("div", { ref: this.widgetRef, dangerouslySetInnerHTML: htmlValue });
|
|
4030
4030
|
}
|
|
4031
4031
|
}
|
|
4032
|
-
return
|
|
4032
|
+
return g("div", { ref: this.widgetRef }, widget);
|
|
4033
4033
|
};
|
|
4034
4034
|
return SurveyCustomWidget;
|
|
4035
4035
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
@@ -4116,7 +4116,7 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4116
4116
|
function SurveyQuestion(props) {
|
|
4117
4117
|
var _this = _super.call(this, props) || this;
|
|
4118
4118
|
_this.isNeedFocus = false;
|
|
4119
|
-
_this.rootRef =
|
|
4119
|
+
_this.rootRef = b();
|
|
4120
4120
|
return _this;
|
|
4121
4121
|
}
|
|
4122
4122
|
SurveyQuestion.renderQuestionBody = function (creator, question) {
|
|
@@ -4125,7 +4125,7 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4125
4125
|
if (!customWidget) {
|
|
4126
4126
|
return creator.createQuestionElement(question);
|
|
4127
4127
|
}
|
|
4128
|
-
return
|
|
4128
|
+
return g(custom_widget_SurveyCustomWidget, { creator: creator, question: question });
|
|
4129
4129
|
};
|
|
4130
4130
|
SurveyQuestion.prototype.getStateElement = function () {
|
|
4131
4131
|
return this.question;
|
|
@@ -4205,7 +4205,7 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4205
4205
|
var descriptionUnderInput = question.hasDescriptionUnderInput
|
|
4206
4206
|
? this.renderDescription()
|
|
4207
4207
|
: null;
|
|
4208
|
-
return (
|
|
4208
|
+
return (g("div", { className: question.cssContent || undefined, style: contentStyle, role: "presentation" },
|
|
4209
4209
|
errorsTop,
|
|
4210
4210
|
questionRender,
|
|
4211
4211
|
comment,
|
|
@@ -4226,8 +4226,8 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4226
4226
|
: null;
|
|
4227
4227
|
var rootStyle = question.getRootStyle();
|
|
4228
4228
|
var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
|
|
4229
|
-
return (
|
|
4230
|
-
|
|
4229
|
+
return (g(k, null,
|
|
4230
|
+
g("div", { ref: this.rootRef, id: question.id, className: question.getRootCss(), style: rootStyle, role: question.ariaRole, "aria-required": this.question.ariaRequired, "aria-invalid": this.question.ariaInvalid, "aria-labelledby": question.ariaLabelledBy, "aria-describedby": question.ariaDescribedBy, "aria-expanded": question.ariaExpanded },
|
|
4231
4231
|
errorsAboveQuestion,
|
|
4232
4232
|
headerTop,
|
|
4233
4233
|
questionContent,
|
|
@@ -4258,21 +4258,21 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4258
4258
|
};
|
|
4259
4259
|
SurveyQuestion.prototype.renderComment = function (cssClasses) {
|
|
4260
4260
|
var commentText = reactquestion_element_SurveyElementBase.renderLocString(this.question.locCommentText);
|
|
4261
|
-
return (
|
|
4262
|
-
|
|
4263
|
-
|
|
4261
|
+
return (g("div", { className: this.question.getCommentAreaCss() },
|
|
4262
|
+
g("div", null, commentText),
|
|
4263
|
+
g(reactquestion_comment_SurveyQuestionCommentItem, { question: this.question, cssClasses: cssClasses, otherCss: cssClasses.other, isDisplayMode: this.question.isInputReadOnly })));
|
|
4264
4264
|
};
|
|
4265
4265
|
SurveyQuestion.prototype.renderHeader = function (question) {
|
|
4266
|
-
return
|
|
4266
|
+
return g(element_header_SurveyElementHeader, { element: question });
|
|
4267
4267
|
};
|
|
4268
4268
|
SurveyQuestion.prototype.renderErrors = function (cssClasses, location) {
|
|
4269
|
-
return (
|
|
4269
|
+
return (g(reactquestion_SurveyElementErrors, { element: this.question, cssClasses: cssClasses, creator: this.creator, location: location, id: this.question.id + "_errors" }));
|
|
4270
4270
|
};
|
|
4271
4271
|
return SurveyQuestion;
|
|
4272
4272
|
}(reactquestion_element_SurveyElementBase));
|
|
4273
4273
|
|
|
4274
4274
|
ReactElementFactory.Instance.registerElement("question", function (props) {
|
|
4275
|
-
return
|
|
4275
|
+
return g(reactquestion_SurveyQuestion, props);
|
|
4276
4276
|
});
|
|
4277
4277
|
var reactquestion_SurveyElementErrors = /** @class */ (function (_super) {
|
|
4278
4278
|
reactquestion_extends(SurveyElementErrors, _super);
|
|
@@ -4324,7 +4324,7 @@ var reactquestion_SurveyElementErrors = /** @class */ (function (_super) {
|
|
|
4324
4324
|
var key = "error" + i;
|
|
4325
4325
|
errors.push(this.creator.renderError(key, this.element.errors[i], this.cssClasses, this.element));
|
|
4326
4326
|
}
|
|
4327
|
-
return (
|
|
4327
|
+
return (g("div", { role: "alert", "aria-live": "polite", className: this.element.cssError, id: this.id }, errors));
|
|
4328
4328
|
};
|
|
4329
4329
|
return SurveyElementErrors;
|
|
4330
4330
|
}(ReactSurveyElement));
|
|
@@ -4375,7 +4375,7 @@ var reactquestion_SurveyQuestionAndErrorsWrapped = /** @class */ (function (_sup
|
|
|
4375
4375
|
};
|
|
4376
4376
|
SurveyQuestionAndErrorsWrapped.prototype.renderContent = function () {
|
|
4377
4377
|
var renderedQuestion = this.renderQuestion();
|
|
4378
|
-
return (
|
|
4378
|
+
return (g(k, null, renderedQuestion));
|
|
4379
4379
|
};
|
|
4380
4380
|
SurveyQuestionAndErrorsWrapped.prototype.getShowErrors = function () {
|
|
4381
4381
|
return this.question.isVisible;
|
|
@@ -4390,7 +4390,7 @@ var reactquestion_SurveyQuestionAndErrorsCell = /** @class */ (function (_super)
|
|
|
4390
4390
|
reactquestion_extends(SurveyQuestionAndErrorsCell, _super);
|
|
4391
4391
|
function SurveyQuestionAndErrorsCell(props) {
|
|
4392
4392
|
var _this = _super.call(this, props) || this;
|
|
4393
|
-
_this.cellRef =
|
|
4393
|
+
_this.cellRef = b();
|
|
4394
4394
|
return _this;
|
|
4395
4395
|
}
|
|
4396
4396
|
SurveyQuestionAndErrorsCell.prototype.componentWillUnmount = function () {
|
|
@@ -4403,13 +4403,13 @@ var reactquestion_SurveyQuestionAndErrorsCell = /** @class */ (function (_super)
|
|
|
4403
4403
|
}
|
|
4404
4404
|
};
|
|
4405
4405
|
SurveyQuestionAndErrorsCell.prototype.renderCellContent = function () {
|
|
4406
|
-
return (
|
|
4406
|
+
return (g("div", { className: this.props.cell.cellQuestionWrapperClassName }, this.renderQuestion()));
|
|
4407
4407
|
};
|
|
4408
4408
|
SurveyQuestionAndErrorsCell.prototype.renderElement = function () {
|
|
4409
4409
|
var style = this.getCellStyle();
|
|
4410
4410
|
var cell = this.props.cell;
|
|
4411
4411
|
var focusIn = function () { cell.focusIn(); };
|
|
4412
|
-
return (
|
|
4412
|
+
return (g("td", { ref: this.cellRef, className: this.itemCss, colSpan: cell.colSpans, title: cell.getTitle(), style: style, onFocus: focusIn }, this.wrapCell(this.props.cell, this.renderCellContent())));
|
|
4413
4413
|
};
|
|
4414
4414
|
SurveyQuestionAndErrorsCell.prototype.getCellStyle = function () {
|
|
4415
4415
|
return null;
|
|
@@ -4479,10 +4479,10 @@ var reactquestion_SurveyQuestionErrorCell = /** @class */ (function (_super) {
|
|
|
4479
4479
|
}
|
|
4480
4480
|
};
|
|
4481
4481
|
SurveyQuestionErrorCell.prototype.render = function () {
|
|
4482
|
-
return
|
|
4482
|
+
return g(reactquestion_SurveyElementErrors, { element: this.question, creator: this.props.creator, cssClasses: this.question.cssClasses });
|
|
4483
4483
|
};
|
|
4484
4484
|
return SurveyQuestionErrorCell;
|
|
4485
|
-
}(
|
|
4485
|
+
}(x));
|
|
4486
4486
|
|
|
4487
4487
|
|
|
4488
4488
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/page.tsx
|
|
@@ -4529,21 +4529,21 @@ var page_SurveyPage = /** @class */ (function (_super) {
|
|
|
4529
4529
|
var title = this.renderTitle();
|
|
4530
4530
|
var description = this.renderDescription();
|
|
4531
4531
|
var rows = this.renderRows(this.panelBase.cssClasses);
|
|
4532
|
-
var errors = (
|
|
4533
|
-
return (
|
|
4532
|
+
var errors = (g(reactquestion_SurveyElementErrors, { element: this.panelBase, cssClasses: this.panelBase.cssClasses, creator: this.creator }));
|
|
4533
|
+
return (g("div", { ref: this.rootRef, className: this.page.cssRoot },
|
|
4534
4534
|
title,
|
|
4535
4535
|
description,
|
|
4536
4536
|
errors,
|
|
4537
4537
|
rows));
|
|
4538
4538
|
};
|
|
4539
4539
|
SurveyPage.prototype.renderTitle = function () {
|
|
4540
|
-
return
|
|
4540
|
+
return g(title_element_TitleElement, { element: this.page });
|
|
4541
4541
|
};
|
|
4542
4542
|
SurveyPage.prototype.renderDescription = function () {
|
|
4543
4543
|
if (!this.page._showDescription)
|
|
4544
4544
|
return null;
|
|
4545
4545
|
var text = reactquestion_element_SurveyElementBase.renderLocString(this.page.locDescription);
|
|
4546
|
-
return (
|
|
4546
|
+
return (g("div", { className: this.panelBase.cssClasses.page.description }, text));
|
|
4547
4547
|
};
|
|
4548
4548
|
return SurveyPage;
|
|
4549
4549
|
}(panel_base_SurveyPanelBase));
|
|
@@ -4972,7 +4972,7 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
4972
4972
|
_this.isSurveyUpdated = false;
|
|
4973
4973
|
_this.createSurvey(props);
|
|
4974
4974
|
_this.updateSurvey(props, {});
|
|
4975
|
-
_this.rootRef =
|
|
4975
|
+
_this.rootRef = b();
|
|
4976
4976
|
_this.rootNodeId = props.id || null;
|
|
4977
4977
|
_this.rootNodeClassName = props.className || "";
|
|
4978
4978
|
return _this;
|
|
@@ -5051,30 +5051,30 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
5051
5051
|
else {
|
|
5052
5052
|
renderResult = this.renderSurvey();
|
|
5053
5053
|
}
|
|
5054
|
-
var backgroundImage = !!this.survey.backgroundImage ?
|
|
5055
|
-
var header = this.survey.headerView === "basic" ?
|
|
5054
|
+
var backgroundImage = !!this.survey.backgroundImage ? g("div", { className: this.css.rootBackgroundImage, style: this.survey.backgroundImageStyle }) : null;
|
|
5055
|
+
var header = this.survey.headerView === "basic" ? g(survey_header_SurveyHeader, { survey: this.survey }) : null;
|
|
5056
5056
|
var onSubmit = function (event) {
|
|
5057
5057
|
event.preventDefault();
|
|
5058
5058
|
};
|
|
5059
|
-
var customHeader =
|
|
5059
|
+
var customHeader = g("div", { className: "sv_custom_header" });
|
|
5060
5060
|
if (this.survey.hasLogo) {
|
|
5061
5061
|
customHeader = null;
|
|
5062
5062
|
}
|
|
5063
5063
|
var rootCss = this.survey.getRootCss();
|
|
5064
5064
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
5065
|
-
return (
|
|
5066
|
-
this.survey.needRenderIcons ?
|
|
5067
|
-
|
|
5068
|
-
|
|
5065
|
+
return (g("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.locale || "en", dir: this.survey.localeDir },
|
|
5066
|
+
this.survey.needRenderIcons ? g(svgbundle_SvgBundleComponent, null) : null,
|
|
5067
|
+
g(popup_modal_PopupModal, null),
|
|
5068
|
+
g("div", { className: this.survey.wrapperFormCss },
|
|
5069
5069
|
backgroundImage,
|
|
5070
|
-
|
|
5070
|
+
g("form", { onSubmit: onSubmit },
|
|
5071
5071
|
customHeader,
|
|
5072
|
-
|
|
5072
|
+
g("div", { className: this.css.container },
|
|
5073
5073
|
header,
|
|
5074
|
-
|
|
5074
|
+
g(components_container_ComponentsContainer, { survey: this.survey, container: "header", needRenderWrapper: false }),
|
|
5075
5075
|
renderResult,
|
|
5076
|
-
|
|
5077
|
-
|
|
5076
|
+
g(components_container_ComponentsContainer, { survey: this.survey, container: "footer", needRenderWrapper: false }))),
|
|
5077
|
+
g(notifier_NotifierComponent, { notifier: this.survey.notifier }))));
|
|
5078
5078
|
};
|
|
5079
5079
|
Survey.prototype.renderElement = function () {
|
|
5080
5080
|
return this.doRender();
|
|
@@ -5093,17 +5093,17 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
5093
5093
|
if (!this.survey.showCompletedPage)
|
|
5094
5094
|
return null;
|
|
5095
5095
|
var htmlValue = { __html: this.survey.processedCompletedHtml };
|
|
5096
|
-
return (
|
|
5097
|
-
|
|
5098
|
-
|
|
5096
|
+
return (g(k, null,
|
|
5097
|
+
g("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedCss }),
|
|
5098
|
+
g(components_container_ComponentsContainer, { survey: this.survey, container: "completePage", needRenderWrapper: false })));
|
|
5099
5099
|
};
|
|
5100
5100
|
Survey.prototype.renderCompletedBefore = function () {
|
|
5101
5101
|
var htmlValue = { __html: this.survey.processedCompletedBeforeHtml };
|
|
5102
|
-
return (
|
|
5102
|
+
return (g("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedBeforeCss }));
|
|
5103
5103
|
};
|
|
5104
5104
|
Survey.prototype.renderLoading = function () {
|
|
5105
5105
|
var htmlValue = { __html: this.survey.processedLoadingHtml };
|
|
5106
|
-
return (
|
|
5106
|
+
return (g("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.loadingBodyCss }));
|
|
5107
5107
|
};
|
|
5108
5108
|
Survey.prototype.renderSurvey = function () {
|
|
5109
5109
|
var activePage = this.survey.activePage
|
|
@@ -5116,22 +5116,22 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
5116
5116
|
if (!!this.survey.renderedWidth) {
|
|
5117
5117
|
style.maxWidth = this.survey.renderedWidth;
|
|
5118
5118
|
}
|
|
5119
|
-
return (
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5119
|
+
return (g("div", { className: this.survey.bodyContainerCss },
|
|
5120
|
+
g(components_container_ComponentsContainer, { survey: this.survey, container: "left" }),
|
|
5121
|
+
g("div", { className: "sv-components-column sv-components-column--expandable" },
|
|
5122
|
+
g(components_container_ComponentsContainer, { survey: this.survey, container: "center" }),
|
|
5123
|
+
g("div", { id: pageId, className: className, style: style },
|
|
5124
|
+
g(components_container_ComponentsContainer, { survey: this.survey, container: "contentTop" }),
|
|
5125
5125
|
activePage,
|
|
5126
|
-
|
|
5127
|
-
this.survey.showBrandInfo ?
|
|
5128
|
-
|
|
5126
|
+
g(components_container_ComponentsContainer, { survey: this.survey, container: "contentBottom" }),
|
|
5127
|
+
this.survey.showBrandInfo ? g(brand_info_BrandInfo, null) : null)),
|
|
5128
|
+
g(components_container_ComponentsContainer, { survey: this.survey, container: "right" })));
|
|
5129
5129
|
};
|
|
5130
5130
|
Survey.prototype.renderPage = function (page) {
|
|
5131
|
-
return (
|
|
5131
|
+
return (g(page_SurveyPage, { survey: this.survey, page: page, css: this.css, creator: this }));
|
|
5132
5132
|
};
|
|
5133
5133
|
Survey.prototype.renderEmptySurvey = function () {
|
|
5134
|
-
return
|
|
5134
|
+
return g("div", { className: this.css.bodyEmpty }, this.survey.emptySurveyText);
|
|
5135
5135
|
};
|
|
5136
5136
|
Survey.prototype.createSurvey = function (newProps) {
|
|
5137
5137
|
if (!newProps)
|
|
@@ -5224,7 +5224,7 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
5224
5224
|
}(reactquestion_element_SurveyElementBase));
|
|
5225
5225
|
|
|
5226
5226
|
ReactElementFactory.Instance.registerElement("survey", function (props) {
|
|
5227
|
-
return
|
|
5227
|
+
return g(reactSurvey_Survey, props);
|
|
5228
5228
|
});
|
|
5229
5229
|
function attachKey2click(element, viewModel, options) {
|
|
5230
5230
|
if (options === void 0) { options = { processEsc: true, disableTabStop: false }; }
|
|
@@ -5300,7 +5300,7 @@ var SurveyNavigationBase = /** @class */ (function (_super) {
|
|
|
5300
5300
|
}
|
|
5301
5301
|
};
|
|
5302
5302
|
return SurveyNavigationBase;
|
|
5303
|
-
}(
|
|
5303
|
+
}(x));
|
|
5304
5304
|
|
|
5305
5305
|
|
|
5306
5306
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reacttimerpanel.tsx
|
|
@@ -5351,16 +5351,16 @@ var reacttimerpanel_SurveyTimerPanel = /** @class */ (function (_super) {
|
|
|
5351
5351
|
if (!this.timerModel.isRunning) {
|
|
5352
5352
|
return null;
|
|
5353
5353
|
}
|
|
5354
|
-
var result =
|
|
5354
|
+
var result = g("div", { className: this.timerModel.survey.getCss().timerRoot }, this.timerModel.text);
|
|
5355
5355
|
if (this.timerModel.showTimerAsClock) {
|
|
5356
5356
|
var style = { strokeDasharray: this.circleLength, strokeDashoffset: this.progress };
|
|
5357
|
-
var progress = (this.timerModel.showProgress ?
|
|
5357
|
+
var progress = (this.timerModel.showProgress ? g(svg_icon_SvgIcon, { className: this.timerModel.getProgressCss(), style: style, iconName: "icon-timercircle", size: "auto" }) : null);
|
|
5358
5358
|
result =
|
|
5359
|
-
(
|
|
5359
|
+
(g("div", { className: this.timerModel.rootCss },
|
|
5360
5360
|
progress,
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
(this.timerModel.clockMinorText ?
|
|
5361
|
+
g("div", { className: this.timerModel.textContainerCss },
|
|
5362
|
+
g("span", { className: this.timerModel.majorTextCss }, this.timerModel.clockMajorText),
|
|
5363
|
+
(this.timerModel.clockMinorText ? g("span", { className: this.timerModel.minorTextCss }, this.timerModel.clockMinorText) : null))));
|
|
5364
5364
|
}
|
|
5365
5365
|
return result;
|
|
5366
5366
|
};
|
|
@@ -5368,7 +5368,7 @@ var reacttimerpanel_SurveyTimerPanel = /** @class */ (function (_super) {
|
|
|
5368
5368
|
}(ReactSurveyElement));
|
|
5369
5369
|
|
|
5370
5370
|
ReactElementFactory.Instance.registerElement("sv-timerpanel", function (props) {
|
|
5371
|
-
return
|
|
5371
|
+
return g(reacttimerpanel_SurveyTimerPanel, props);
|
|
5372
5372
|
});
|
|
5373
5373
|
|
|
5374
5374
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/panel.tsx
|
|
@@ -5413,7 +5413,7 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5413
5413
|
SurveyPanel.prototype.renderElement = function () {
|
|
5414
5414
|
var _this = this;
|
|
5415
5415
|
var header = this.renderHeader();
|
|
5416
|
-
var errors = (
|
|
5416
|
+
var errors = (g(reactquestion_SurveyElementErrors, { element: this.panelBase, cssClasses: this.panelBase.cssClasses, creator: this.creator }));
|
|
5417
5417
|
var style = {
|
|
5418
5418
|
paddingLeft: this.panel.innerPaddingLeft,
|
|
5419
5419
|
display: this.panel.renderedIsExpanded ? undefined : "none",
|
|
@@ -5429,7 +5429,7 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5429
5429
|
if (_this.panelBase)
|
|
5430
5430
|
_this.panelBase.focusIn();
|
|
5431
5431
|
};
|
|
5432
|
-
return (
|
|
5432
|
+
return (g("div", { ref: this.rootRef, className: this.panelBase.getContainerCss(), onFocus: focusIn, id: this.panelBase.id },
|
|
5433
5433
|
this.panel.showErrorsAbovePanel ? errors : null,
|
|
5434
5434
|
header,
|
|
5435
5435
|
this.panel.showErrorsAbovePanel ? null : errors,
|
|
@@ -5439,7 +5439,7 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5439
5439
|
if (!this.panel.hasTitle && !this.panel.hasDescription) {
|
|
5440
5440
|
return null;
|
|
5441
5441
|
}
|
|
5442
|
-
return
|
|
5442
|
+
return g(element_header_SurveyElementHeader, { element: this.panel });
|
|
5443
5443
|
};
|
|
5444
5444
|
SurveyPanel.prototype.wrapElement = function (element) {
|
|
5445
5445
|
var survey = this.panel.survey;
|
|
@@ -5451,26 +5451,26 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5451
5451
|
};
|
|
5452
5452
|
SurveyPanel.prototype.renderContent = function (style, rows, className) {
|
|
5453
5453
|
var bottom = this.renderBottom();
|
|
5454
|
-
return (
|
|
5454
|
+
return (g("div", { style: style, className: className, id: this.panel.contentId },
|
|
5455
5455
|
rows,
|
|
5456
5456
|
bottom));
|
|
5457
5457
|
};
|
|
5458
5458
|
SurveyPanel.prototype.renderTitle = function () {
|
|
5459
5459
|
if (!this.panelBase.title)
|
|
5460
5460
|
return null;
|
|
5461
|
-
return
|
|
5461
|
+
return g(title_element_TitleElement, { element: this.panelBase });
|
|
5462
5462
|
};
|
|
5463
5463
|
SurveyPanel.prototype.renderDescription = function () {
|
|
5464
5464
|
if (!this.panelBase.description)
|
|
5465
5465
|
return null;
|
|
5466
5466
|
var text = reactquestion_element_SurveyElementBase.renderLocString(this.panelBase.locDescription);
|
|
5467
|
-
return (
|
|
5467
|
+
return (g("div", { className: this.panel.cssClasses.panel.description }, text));
|
|
5468
5468
|
};
|
|
5469
5469
|
SurveyPanel.prototype.renderBottom = function () {
|
|
5470
5470
|
var footerToolbar = this.panel.getFooterToolbar();
|
|
5471
5471
|
if (!footerToolbar.hasActions)
|
|
5472
5472
|
return null;
|
|
5473
|
-
return
|
|
5473
|
+
return g(action_bar_SurveyActionBar, { model: footerToolbar });
|
|
5474
5474
|
};
|
|
5475
5475
|
SurveyPanel.prototype.getIsVisible = function () {
|
|
5476
5476
|
return this.panelBase.getIsContentVisible();
|
|
@@ -5479,7 +5479,7 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5479
5479
|
}(panel_base_SurveyPanelBase));
|
|
5480
5480
|
|
|
5481
5481
|
ReactElementFactory.Instance.registerElement("panel", function (props) {
|
|
5482
|
-
return
|
|
5482
|
+
return g(panel_SurveyPanel, props);
|
|
5483
5483
|
});
|
|
5484
5484
|
|
|
5485
5485
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/flow-panel.tsx
|
|
@@ -5554,7 +5554,7 @@ var flow_panel_SurveyFlowPanel = /** @class */ (function (_super) {
|
|
|
5554
5554
|
var html = "<span>" + this.flowPanel.produceHtml() + "</span>";
|
|
5555
5555
|
if (!DOMParser) {
|
|
5556
5556
|
var htmlValue = { __html: html };
|
|
5557
|
-
return
|
|
5557
|
+
return g("div", { dangerouslySetInnerHTML: htmlValue });
|
|
5558
5558
|
}
|
|
5559
5559
|
var doc = new DOMParser().parseFromString(html, "text/xml");
|
|
5560
5560
|
this.renderedIndex = 0;
|
|
@@ -5587,8 +5587,8 @@ var flow_panel_SurveyFlowPanel = /** @class */ (function (_super) {
|
|
|
5587
5587
|
var nodeType = node.nodeName.toLowerCase();
|
|
5588
5588
|
var children = this.renderNodes(this.getChildDomNodes(node));
|
|
5589
5589
|
if (nodeType === "div")
|
|
5590
|
-
return
|
|
5591
|
-
return (
|
|
5590
|
+
return g("div", { key: this.getNodeIndex() }, children);
|
|
5591
|
+
return (g("span", { key: this.getNodeIndex(), style: this.getStyle(nodeType) }, children));
|
|
5592
5592
|
};
|
|
5593
5593
|
SurveyFlowPanel.prototype.renderNode = function (node) {
|
|
5594
5594
|
if (!this.hasTextChildNodesOnly(node)) {
|
|
@@ -5599,13 +5599,13 @@ var flow_panel_SurveyFlowPanel = /** @class */ (function (_super) {
|
|
|
5599
5599
|
var question = this.flowPanel.getQuestionByName(node.textContent);
|
|
5600
5600
|
if (!question)
|
|
5601
5601
|
return null;
|
|
5602
|
-
var questionBody = (
|
|
5603
|
-
return
|
|
5602
|
+
var questionBody = (g(reactquestion_SurveyQuestion, { key: question.name, element: question, creator: this.creator, css: this.css }));
|
|
5603
|
+
return g("span", { key: this.getNodeIndex() }, questionBody);
|
|
5604
5604
|
}
|
|
5605
5605
|
if (nodeType === "div") {
|
|
5606
|
-
return
|
|
5606
|
+
return g("div", { key: this.getNodeIndex() }, node.textContent);
|
|
5607
5607
|
}
|
|
5608
|
-
return (
|
|
5608
|
+
return (g("span", { key: this.getNodeIndex(), style: this.getStyle(nodeType) }, node.textContent));
|
|
5609
5609
|
};
|
|
5610
5610
|
SurveyFlowPanel.prototype.getChildDomNodes = function (node) {
|
|
5611
5611
|
var domNodes = [];
|
|
@@ -5623,13 +5623,13 @@ var flow_panel_SurveyFlowPanel = /** @class */ (function (_super) {
|
|
|
5623
5623
|
return true;
|
|
5624
5624
|
};
|
|
5625
5625
|
SurveyFlowPanel.prototype.renderContent = function (style, rows) {
|
|
5626
|
-
return
|
|
5626
|
+
return g("f-panel", { style: style }, rows);
|
|
5627
5627
|
};
|
|
5628
5628
|
return SurveyFlowPanel;
|
|
5629
5629
|
}(panel_SurveyPanel));
|
|
5630
5630
|
|
|
5631
5631
|
ReactElementFactory.Instance.registerElement("flowpanel", function (props) {
|
|
5632
|
-
return
|
|
5632
|
+
return g(flow_panel_SurveyFlowPanel, props);
|
|
5633
5633
|
});
|
|
5634
5634
|
|
|
5635
5635
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_checkbox.tsx
|
|
@@ -5669,8 +5669,8 @@ var reactquestion_checkbox_SurveyQuestionCheckbox = /** @class */ (function (_su
|
|
|
5669
5669
|
SurveyQuestionCheckbox.prototype.renderElement = function () {
|
|
5670
5670
|
var _this = this;
|
|
5671
5671
|
var cssClasses = this.question.cssClasses;
|
|
5672
|
-
return (
|
|
5673
|
-
|
|
5672
|
+
return (g("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(fieldset)); }, role: this.question.a11y_input_ariaRole, "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 },
|
|
5673
|
+
g("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
5674
5674
|
this.getHeader(),
|
|
5675
5675
|
this.question.hasColumns
|
|
5676
5676
|
? this.getColumnedBody(cssClasses)
|
|
@@ -5695,7 +5695,7 @@ var reactquestion_checkbox_SurveyQuestionCheckbox = /** @class */ (function (_su
|
|
|
5695
5695
|
}
|
|
5696
5696
|
};
|
|
5697
5697
|
SurveyQuestionCheckbox.prototype.getColumnedBody = function (cssClasses) {
|
|
5698
|
-
return (
|
|
5698
|
+
return (g("div", { className: cssClasses.rootMultiColumn }, this.getColumns(cssClasses)));
|
|
5699
5699
|
};
|
|
5700
5700
|
SurveyQuestionCheckbox.prototype.getColumns = function (cssClasses) {
|
|
5701
5701
|
var _this = this;
|
|
@@ -5703,15 +5703,15 @@ var reactquestion_checkbox_SurveyQuestionCheckbox = /** @class */ (function (_su
|
|
|
5703
5703
|
var items = column.map(function (item, ii) {
|
|
5704
5704
|
return _this.renderItem(item, ci === 0 && ii === 0, cssClasses, "" + ci + ii);
|
|
5705
5705
|
});
|
|
5706
|
-
return (
|
|
5706
|
+
return (g("div", { key: "column" + ci + _this.question.getItemsColumnKey(column), className: _this.question.getColumnClass(), role: "presentation" }, items));
|
|
5707
5707
|
});
|
|
5708
5708
|
};
|
|
5709
5709
|
SurveyQuestionCheckbox.prototype.getBody = function (cssClasses) {
|
|
5710
5710
|
if (this.question.blockedRow) {
|
|
5711
|
-
return
|
|
5711
|
+
return g("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
|
|
5712
5712
|
}
|
|
5713
5713
|
else
|
|
5714
|
-
return
|
|
5714
|
+
return g(k, null, this.getItems(cssClasses, this.question.bodyItems));
|
|
5715
5715
|
};
|
|
5716
5716
|
SurveyQuestionCheckbox.prototype.getItems = function (cssClasses, choices) {
|
|
5717
5717
|
var renderedItems = [];
|
|
@@ -5734,8 +5734,8 @@ var reactquestion_checkbox_SurveyQuestionCheckbox = /** @class */ (function (_su
|
|
|
5734
5734
|
});
|
|
5735
5735
|
SurveyQuestionCheckbox.prototype.renderOther = function () {
|
|
5736
5736
|
var cssClasses = this.question.cssClasses;
|
|
5737
|
-
return (
|
|
5738
|
-
|
|
5737
|
+
return (g("div", { className: this.question.getCommentAreaCss(true) },
|
|
5738
|
+
g(SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode })));
|
|
5739
5739
|
};
|
|
5740
5740
|
SurveyQuestionCheckbox.prototype.renderItem = function (item, isFirst, cssClasses, index) {
|
|
5741
5741
|
var renderedItem = ReactElementFactory.Instance.createElement(this.question.itemComponent, {
|
|
@@ -5765,7 +5765,7 @@ var reactquestion_checkbox_SurveyQuestionCheckboxItem = /** @class */ (function
|
|
|
5765
5765
|
_this.handleOnChange = function (event) {
|
|
5766
5766
|
_this.question.clickItemHandler(_this.item, event.target.checked);
|
|
5767
5767
|
};
|
|
5768
|
-
_this.rootRef =
|
|
5768
|
+
_this.rootRef = b();
|
|
5769
5769
|
return _this;
|
|
5770
5770
|
}
|
|
5771
5771
|
SurveyQuestionCheckboxItem.prototype.getStateElement = function () {
|
|
@@ -5850,14 +5850,14 @@ var reactquestion_checkbox_SurveyQuestionCheckboxItem = /** @class */ (function
|
|
|
5850
5850
|
var id = this.question.getItemId(this.item);
|
|
5851
5851
|
var itemClass = this.question.getItemClass(this.item);
|
|
5852
5852
|
var labelClass = this.question.getLabelClass(this.item);
|
|
5853
|
-
var itemLabel = !this.hideCaption ?
|
|
5854
|
-
return (
|
|
5855
|
-
|
|
5856
|
-
|
|
5853
|
+
var itemLabel = !this.hideCaption ? g("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
5854
|
+
return (g("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
5855
|
+
g("label", { className: labelClass },
|
|
5856
|
+
g("input", { className: this.cssClasses.itemControl, type: "checkbox", name: this.question.name + this.item.id, value: this.item.value, id: id, style: this.inputStyle, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, required: this.question.hasRequiredError() }),
|
|
5857
5857
|
this.cssClasses.materialDecorator ?
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5858
|
+
g("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
5859
|
+
g("svg", { className: this.cssClasses.itemDecorator },
|
|
5860
|
+
g("use", { xlinkHref: this.question.itemSvgIcon })) :
|
|
5861
5861
|
null) :
|
|
5862
5862
|
null,
|
|
5863
5863
|
itemLabel),
|
|
@@ -5879,10 +5879,10 @@ var reactquestion_checkbox_SurveyQuestionCheckboxItem = /** @class */ (function
|
|
|
5879
5879
|
}(ReactSurveyElement));
|
|
5880
5880
|
|
|
5881
5881
|
ReactElementFactory.Instance.registerElement("survey-checkbox-item", function (props) {
|
|
5882
|
-
return
|
|
5882
|
+
return g(reactquestion_checkbox_SurveyQuestionCheckboxItem, props);
|
|
5883
5883
|
});
|
|
5884
5884
|
ReactQuestionFactory.Instance.registerQuestion("checkbox", function (props) {
|
|
5885
|
-
return
|
|
5885
|
+
return g(reactquestion_checkbox_SurveyQuestionCheckbox, props);
|
|
5886
5886
|
});
|
|
5887
5887
|
|
|
5888
5888
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_ranking.tsx
|
|
@@ -5921,21 +5921,21 @@ var reactquestion_ranking_SurveyQuestionRanking = /** @class */ (function (_supe
|
|
|
5921
5921
|
SurveyQuestionRanking.prototype.renderElement = function () {
|
|
5922
5922
|
var _this = this;
|
|
5923
5923
|
if (!this.question.selectToRankEnabled) {
|
|
5924
|
-
return (
|
|
5924
|
+
return (g("div", { className: this.question.rootClass, ref: function (root) { return (_this.setControl(root)); } }, this.getItems()));
|
|
5925
5925
|
}
|
|
5926
5926
|
else {
|
|
5927
5927
|
var unrankedItem = true;
|
|
5928
|
-
return (
|
|
5929
|
-
|
|
5928
|
+
return (g("div", { className: this.question.rootClass, ref: function (root) { return (_this.setControl(root)); } },
|
|
5929
|
+
g("div", { className: this.question.getContainerClasses("from"), "data-ranking": "from-container" },
|
|
5930
5930
|
this.getItems(this.question.renderedUnRankingChoices, unrankedItem),
|
|
5931
|
-
this.question.renderedUnRankingChoices.length === 0 ?
|
|
5931
|
+
this.question.renderedUnRankingChoices.length === 0 ? g("div", { className: this.question.cssClasses.containerPlaceholder },
|
|
5932
5932
|
" ",
|
|
5933
5933
|
this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText),
|
|
5934
5934
|
" ") : null),
|
|
5935
|
-
|
|
5936
|
-
|
|
5935
|
+
g("div", { className: this.question.cssClasses.containersDivider }),
|
|
5936
|
+
g("div", { className: this.question.getContainerClasses("to"), "data-ranking": "to-container" },
|
|
5937
5937
|
this.getItems(),
|
|
5938
|
-
this.question.renderedRankingChoices.length === 0 ?
|
|
5938
|
+
this.question.renderedRankingChoices.length === 0 ? g("div", { className: this.question.cssClasses.containerPlaceholder },
|
|
5939
5939
|
" ",
|
|
5940
5940
|
this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText),
|
|
5941
5941
|
" ") : null)));
|
|
@@ -5971,7 +5971,7 @@ var reactquestion_ranking_SurveyQuestionRanking = /** @class */ (function (_supe
|
|
|
5971
5971
|
var index = i;
|
|
5972
5972
|
var indexText = this.question.getNumberByIndex(index);
|
|
5973
5973
|
var tabIndex = this.question.getItemTabIndex(item);
|
|
5974
|
-
var renderedItem = (
|
|
5974
|
+
var renderedItem = (g(reactquestion_ranking_SurveyQuestionRankingItem, { key: item.value, text: text, index: index, indexText: indexText, itemTabIndex: tabIndex, handleKeydown: handleKeydown, handlePointerDown: handlePointerDown, handlePointerUp: handlePointerUp, cssClasses: cssClasses, itemClass: itemClass, question: question, unrankedItem: unrankedItem, item: item }));
|
|
5975
5975
|
var survey = this.question.survey;
|
|
5976
5976
|
var wrappedItem = null;
|
|
5977
5977
|
if (!!survey) {
|
|
@@ -6072,21 +6072,21 @@ var reactquestion_ranking_SurveyQuestionRankingItem = /** @class */ (function (_
|
|
|
6072
6072
|
configurable: true
|
|
6073
6073
|
});
|
|
6074
6074
|
SurveyQuestionRankingItem.prototype.renderEmptyIcon = function () {
|
|
6075
|
-
return (
|
|
6076
|
-
|
|
6075
|
+
return (g("svg", null,
|
|
6076
|
+
g("use", { xlinkHref: this.question.dashSvgIcon })));
|
|
6077
6077
|
};
|
|
6078
6078
|
SurveyQuestionRankingItem.prototype.renderElement = function () {
|
|
6079
6079
|
var itemContent = ReactElementFactory.Instance.createElement(this.question.itemComponent, { item: this.item, cssClasses: this.cssClasses });
|
|
6080
|
-
return (
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6080
|
+
return (g("div", { tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
|
|
6081
|
+
g("div", { tabIndex: -1, style: { outline: "none" } },
|
|
6082
|
+
g("div", { className: this.cssClasses.itemGhostNode }),
|
|
6083
|
+
g("div", { className: this.cssClasses.itemContent },
|
|
6084
|
+
g("div", { className: this.cssClasses.itemIconContainer },
|
|
6085
|
+
g("svg", { className: this.question.getIconHoverCss() },
|
|
6086
|
+
g("use", { xlinkHref: this.question.dragDropSvgIcon })),
|
|
6087
|
+
g("svg", { className: this.question.getIconFocusCss() },
|
|
6088
|
+
g("use", { xlinkHref: this.question.arrowsSvgIcon }))),
|
|
6089
|
+
g("div", { className: this.question.getItemIndexClasses(this.item) }, (!this.unrankedItem && this.indexText) ? this.indexText : this.renderEmptyIcon()),
|
|
6090
6090
|
itemContent))));
|
|
6091
6091
|
};
|
|
6092
6092
|
return SurveyQuestionRankingItem;
|
|
@@ -6112,16 +6112,16 @@ var reactquestion_ranking_SurveyQuestionRankingItemContent = /** @class */ (func
|
|
|
6112
6112
|
configurable: true
|
|
6113
6113
|
});
|
|
6114
6114
|
SurveyQuestionRankingItemContent.prototype.renderElement = function () {
|
|
6115
|
-
return
|
|
6115
|
+
return g("div", { className: this.cssClasses.controlLabel }, reactquestion_element_SurveyElementBase.renderLocString(this.item.locText));
|
|
6116
6116
|
};
|
|
6117
6117
|
return SurveyQuestionRankingItemContent;
|
|
6118
6118
|
}(ReactSurveyElement));
|
|
6119
6119
|
|
|
6120
6120
|
ReactElementFactory.Instance.registerElement("sv-ranking-item", function (props) {
|
|
6121
|
-
return
|
|
6121
|
+
return g(reactquestion_ranking_SurveyQuestionRankingItemContent, props);
|
|
6122
6122
|
});
|
|
6123
6123
|
ReactQuestionFactory.Instance.registerQuestion("ranking", function (props) {
|
|
6124
|
-
return
|
|
6124
|
+
return g(reactquestion_ranking_SurveyQuestionRanking, props);
|
|
6125
6125
|
});
|
|
6126
6126
|
|
|
6127
6127
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/rating/rating-item.tsx
|
|
@@ -6409,22 +6409,22 @@ var tagbox_filter_TagboxFilterString = /** @class */ (function (_super) {
|
|
|
6409
6409
|
};
|
|
6410
6410
|
TagboxFilterString.prototype.render = function () {
|
|
6411
6411
|
var _this = this;
|
|
6412
|
-
return (
|
|
6412
|
+
return (g("div", { className: this.question.cssClasses.hint },
|
|
6413
6413
|
this.model.showHintPrefix ?
|
|
6414
|
-
(
|
|
6415
|
-
|
|
6416
|
-
|
|
6414
|
+
(g("div", { className: this.question.cssClasses.hintPrefix },
|
|
6415
|
+
g("span", null, this.model.hintStringPrefix))) : null,
|
|
6416
|
+
g("div", { className: this.question.cssClasses.hintSuffixWrapper },
|
|
6417
6417
|
this.model.showHintString ?
|
|
6418
|
-
(
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6418
|
+
(g("div", { className: this.question.cssClasses.hintSuffix },
|
|
6419
|
+
g("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.model.inputStringRendered),
|
|
6420
|
+
g("span", null, this.model.hintStringSuffix))) : null,
|
|
6421
|
+
g("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: this.model.filterReadOnly ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-controls": this.model.listElementId, "aria-activedescendant": this.model.ariaActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); }, onFocus: function (e) { _this.onFocus(e); } }))));
|
|
6422
6422
|
};
|
|
6423
6423
|
return TagboxFilterString;
|
|
6424
6424
|
}(reactquestion_element_SurveyElementBase));
|
|
6425
6425
|
|
|
6426
6426
|
ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter", function (props) {
|
|
6427
|
-
return
|
|
6427
|
+
return g(tagbox_filter_TagboxFilterString, props);
|
|
6428
6428
|
});
|
|
6429
6429
|
|
|
6430
6430
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/dropdown-item.tsx
|
|
@@ -6489,7 +6489,7 @@ var dropdown_item_SurveyQuestionOptionItem = /** @class */ (function (_super) {
|
|
|
6489
6489
|
return !!this.item;
|
|
6490
6490
|
};
|
|
6491
6491
|
SurveyQuestionOptionItem.prototype.renderElement = function () {
|
|
6492
|
-
return (
|
|
6492
|
+
return (g("option", { value: this.item.value, disabled: !this.item.isEnabled }, this.item.text));
|
|
6493
6493
|
};
|
|
6494
6494
|
return SurveyQuestionOptionItem;
|
|
6495
6495
|
}(ReactSurveyElement));
|
|
@@ -6557,7 +6557,7 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6557
6557
|
return this.questionBase.renderedValue;
|
|
6558
6558
|
};
|
|
6559
6559
|
SurveyQuestionDropdownBase.prototype.renderReadOnlyElement = function () {
|
|
6560
|
-
return
|
|
6560
|
+
return g("div", null, this.question.readOnlyText);
|
|
6561
6561
|
};
|
|
6562
6562
|
SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
|
|
6563
6563
|
var _a, _b;
|
|
@@ -6566,16 +6566,16 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6566
6566
|
var text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
|
|
6567
6567
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6568
6568
|
// @ts-ignore
|
|
6569
|
-
selectElement =
|
|
6569
|
+
selectElement = g("div", { id: this.question.inputId, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, tabIndex: this.question.isDisabledAttr ? undefined : 0, className: this.question.getControlClass() },
|
|
6570
6570
|
text,
|
|
6571
6571
|
this.renderReadOnlyElement());
|
|
6572
6572
|
}
|
|
6573
6573
|
else {
|
|
6574
|
-
selectElement =
|
|
6574
|
+
selectElement = g(k, null,
|
|
6575
6575
|
this.renderInput(this.question["dropdownListModel"]),
|
|
6576
|
-
|
|
6576
|
+
g(popup_Popup, { model: (_b = (_a = this.question) === null || _a === void 0 ? void 0 : _a.dropdownListModel) === null || _b === void 0 ? void 0 : _b.popupModel }));
|
|
6577
6577
|
}
|
|
6578
|
-
return (
|
|
6578
|
+
return (g("div", { className: cssClasses.selectWrapper, onClick: this.click },
|
|
6579
6579
|
selectElement,
|
|
6580
6580
|
this.createChevronButton()));
|
|
6581
6581
|
};
|
|
@@ -6597,38 +6597,38 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6597
6597
|
dropdownListModel.inputStringRendered = e.target.value;
|
|
6598
6598
|
}
|
|
6599
6599
|
};
|
|
6600
|
-
return (
|
|
6600
|
+
return (g("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
6601
6601
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6602
6602
|
// @ts-ignore
|
|
6603
6603
|
disabled: this.question.isDisabledAttr, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, onFocus: this.focus, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
|
|
6604
6604
|
dropdownListModel.showHintPrefix ?
|
|
6605
|
-
(
|
|
6606
|
-
|
|
6607
|
-
|
|
6605
|
+
(g("div", { className: this.question.cssClasses.hintPrefix },
|
|
6606
|
+
g("span", null, dropdownListModel.hintStringPrefix))) : null,
|
|
6607
|
+
g("div", { className: this.question.cssClasses.controlValue },
|
|
6608
6608
|
dropdownListModel.showHintString ?
|
|
6609
|
-
(
|
|
6610
|
-
|
|
6611
|
-
|
|
6609
|
+
(g("div", { className: this.question.cssClasses.hintSuffix },
|
|
6610
|
+
g("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
|
|
6611
|
+
g("span", null, dropdownListModel.hintStringSuffix))) : null,
|
|
6612
6612
|
valueElement,
|
|
6613
|
-
|
|
6613
|
+
g("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded, "aria-label": this.question.a11y_input_ariaLabel, "aria-labelledby": this.question.a11y_input_ariaLabelledBy, "aria-describedby": this.question.a11y_input_ariaDescribedBy, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: dropdownListModel.filterReadOnly ? true : undefined, tabIndex: dropdownListModel.noTabIndex ? undefined : -1, disabled: this.question.isDisabledAttr, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
|
|
6614
6614
|
this.createClearButton()));
|
|
6615
6615
|
};
|
|
6616
6616
|
SurveyQuestionDropdownBase.prototype.createClearButton = function () {
|
|
6617
6617
|
if (!this.question.allowClear || !this.question.cssClasses.cleanButtonIconId)
|
|
6618
6618
|
return null;
|
|
6619
6619
|
var style = { display: !this.question.showClearButton ? "none" : "" };
|
|
6620
|
-
return (
|
|
6621
|
-
|
|
6620
|
+
return (g("div", { className: this.question.cssClasses.cleanButton, style: style, onClick: this.clear, "aria-hidden": "true" },
|
|
6621
|
+
g(svg_icon_SvgIcon, { className: this.question.cssClasses.cleanButtonSvg, iconName: this.question.cssClasses.cleanButtonIconId, title: this.question.clearCaption, size: "auto" })));
|
|
6622
6622
|
};
|
|
6623
6623
|
SurveyQuestionDropdownBase.prototype.createChevronButton = function () {
|
|
6624
6624
|
if (!this.question.cssClasses.chevronButtonIconId)
|
|
6625
6625
|
return null;
|
|
6626
|
-
return (
|
|
6627
|
-
|
|
6626
|
+
return (g("div", { className: this.question.cssClasses.chevronButton, "aria-hidden": "true", onPointerDown: this.chevronPointerDown },
|
|
6627
|
+
g(svg_icon_SvgIcon, { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size: "auto" })));
|
|
6628
6628
|
};
|
|
6629
6629
|
SurveyQuestionDropdownBase.prototype.renderOther = function (cssClasses) {
|
|
6630
|
-
return (
|
|
6631
|
-
|
|
6630
|
+
return (g("div", { className: this.question.getCommentAreaCss(true) },
|
|
6631
|
+
g(SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, isOther: true })));
|
|
6632
6632
|
};
|
|
6633
6633
|
SurveyQuestionDropdownBase.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
6634
6634
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
@@ -6684,7 +6684,7 @@ var reactquestion_dropdown_SurveyQuestionDropdown = /** @class */ (function (_su
|
|
|
6684
6684
|
var cssClasses = this.question.cssClasses;
|
|
6685
6685
|
var comment = this.question.isOtherSelected ? this.renderOther(cssClasses) : null;
|
|
6686
6686
|
var select = this.renderSelect(cssClasses);
|
|
6687
|
-
return (
|
|
6687
|
+
return (g("div", { className: this.question.renderCssRoot },
|
|
6688
6688
|
select,
|
|
6689
6689
|
comment));
|
|
6690
6690
|
};
|
|
@@ -6692,7 +6692,7 @@ var reactquestion_dropdown_SurveyQuestionDropdown = /** @class */ (function (_su
|
|
|
6692
6692
|
}(dropdown_base_SurveyQuestionDropdownBase));
|
|
6693
6693
|
|
|
6694
6694
|
ReactQuestionFactory.Instance.registerQuestion("dropdown", function (props) {
|
|
6695
|
-
return
|
|
6695
|
+
return g(reactquestion_dropdown_SurveyQuestionDropdown, props);
|
|
6696
6696
|
});
|
|
6697
6697
|
|
|
6698
6698
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/tagbox-item.tsx
|
|
@@ -6743,10 +6743,10 @@ var tagbox_item_SurveyQuestionTagboxItem = /** @class */ (function (_super) {
|
|
|
6743
6743
|
_this.question.dropdownListModel.deselectItem(_this.item.value);
|
|
6744
6744
|
event.stopPropagation();
|
|
6745
6745
|
};
|
|
6746
|
-
return (
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6746
|
+
return (g("div", { className: "sv-tagbox__item" },
|
|
6747
|
+
g("div", { className: "sv-tagbox__item-text" }, text),
|
|
6748
|
+
g("div", { className: this.question.cssClasses.cleanItemButton, onClick: removeItem },
|
|
6749
|
+
g(svg_icon_SvgIcon, { className: this.question.cssClasses.cleanItemButtonSvg, iconName: this.question.cssClasses.cleanItemButtonIconId, size: "auto" }))));
|
|
6750
6750
|
};
|
|
6751
6751
|
return SurveyQuestionTagboxItem;
|
|
6752
6752
|
}(ReactSurveyElement));
|
|
@@ -6779,27 +6779,27 @@ var reactquestion_tagbox_SurveyQuestionTagbox = /** @class */ (function (_super)
|
|
|
6779
6779
|
return _super.call(this, props) || this;
|
|
6780
6780
|
}
|
|
6781
6781
|
SurveyQuestionTagbox.prototype.renderItem = function (key, item) {
|
|
6782
|
-
var renderedItem = (
|
|
6782
|
+
var renderedItem = (g(tagbox_item_SurveyQuestionTagboxItem, { key: key, question: this.question, item: item }));
|
|
6783
6783
|
return renderedItem;
|
|
6784
6784
|
};
|
|
6785
6785
|
SurveyQuestionTagbox.prototype.renderInput = function (dropdownListModel) {
|
|
6786
6786
|
var _this = this;
|
|
6787
6787
|
var dropdownMultiSelectListModel = dropdownListModel;
|
|
6788
6788
|
var items = this.question.selectedChoices.map(function (choice, index) { return _this.renderItem("item" + index, choice); });
|
|
6789
|
-
return (
|
|
6789
|
+
return (g("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
6790
6790
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6791
6791
|
// @ts-ignore
|
|
6792
6792
|
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, "aria-expanded": this.question.ariaExpanded, "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
|
|
6793
|
-
|
|
6793
|
+
g("div", { className: this.question.cssClasses.controlValue },
|
|
6794
6794
|
items,
|
|
6795
|
-
|
|
6795
|
+
g(tagbox_filter_TagboxFilterString, { model: dropdownMultiSelectListModel, question: this.question })),
|
|
6796
6796
|
this.createClearButton()));
|
|
6797
6797
|
};
|
|
6798
6798
|
SurveyQuestionTagbox.prototype.renderElement = function () {
|
|
6799
6799
|
var cssClasses = this.question.cssClasses;
|
|
6800
6800
|
var comment = this.question.isOtherSelected ? this.renderOther(cssClasses) : null;
|
|
6801
6801
|
var select = this.renderSelect(cssClasses);
|
|
6802
|
-
return (
|
|
6802
|
+
return (g("div", { className: this.question.renderCssRoot },
|
|
6803
6803
|
select,
|
|
6804
6804
|
comment));
|
|
6805
6805
|
};
|
|
@@ -6815,7 +6815,7 @@ var reactquestion_tagbox_SurveyQuestionTagbox = /** @class */ (function (_super)
|
|
|
6815
6815
|
}(dropdown_base_SurveyQuestionDropdownBase));
|
|
6816
6816
|
|
|
6817
6817
|
ReactQuestionFactory.Instance.registerQuestion("tagbox", function (props) {
|
|
6818
|
-
return
|
|
6818
|
+
return g(reactquestion_tagbox_SurveyQuestionTagbox, props);
|
|
6819
6819
|
});
|
|
6820
6820
|
|
|
6821
6821
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/dropdown-select.tsx
|
|
@@ -6855,11 +6855,11 @@ var dropdown_select_SurveyQuestionDropdownSelect = /** @class */ (function (_sup
|
|
|
6855
6855
|
var selectElement = this.isDisplayMode ? (
|
|
6856
6856
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6857
6857
|
// @ts-ignore
|
|
6858
|
-
|
|
6859
|
-
(
|
|
6860
|
-
this.question.allowClear ? (
|
|
6861
|
-
this.question.visibleChoices.map(function (item, i) { return
|
|
6862
|
-
return (
|
|
6858
|
+
g("div", { id: this.question.inputId, className: this.question.getControlClass(), disabled: true }, this.question.readOnlyText)) :
|
|
6859
|
+
(g("select", { id: this.question.inputId, className: this.question.getControlClass(), ref: function (select) { return (_this.setControl(select)); }, autoComplete: this.question.autocomplete, onChange: this.updateValueOnEvent, onInput: this.updateValueOnEvent, onClick: click, onKeyUp: keyup, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, required: this.question.isRequired },
|
|
6860
|
+
this.question.allowClear ? (g("option", { value: "" }, this.question.placeholder)) : null,
|
|
6861
|
+
this.question.visibleChoices.map(function (item, i) { return g(dropdown_item_SurveyQuestionOptionItem, { key: "item" + i, item: item }); })));
|
|
6862
|
+
return (g("div", { className: cssClasses.selectWrapper },
|
|
6863
6863
|
selectElement,
|
|
6864
6864
|
this.createChevronButton()));
|
|
6865
6865
|
};
|
|
@@ -6867,7 +6867,7 @@ var dropdown_select_SurveyQuestionDropdownSelect = /** @class */ (function (_sup
|
|
|
6867
6867
|
}(reactquestion_dropdown_SurveyQuestionDropdown));
|
|
6868
6868
|
|
|
6869
6869
|
ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select", function (props) {
|
|
6870
|
-
return
|
|
6870
|
+
return g(dropdown_select_SurveyQuestionDropdownSelect, props);
|
|
6871
6871
|
});
|
|
6872
6872
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("dropdown", "select", "sv-dropdown-select");
|
|
6873
6873
|
|
|
@@ -6924,7 +6924,7 @@ var reactquestion_matrix_SurveyQuestionMatrix = /** @class */ (function (_super)
|
|
|
6924
6924
|
SurveyQuestionMatrix.prototype.renderElement = function () {
|
|
6925
6925
|
var _this = this;
|
|
6926
6926
|
var cssClasses = this.question.cssClasses;
|
|
6927
|
-
var rowsTH = this.question.hasRows ?
|
|
6927
|
+
var rowsTH = this.question.hasRows ? g("td", null) : null;
|
|
6928
6928
|
var headers = [];
|
|
6929
6929
|
for (var i = 0; i < this.question.visibleColumns.length; i++) {
|
|
6930
6930
|
var column = this.question.visibleColumns[i];
|
|
@@ -6935,25 +6935,25 @@ var reactquestion_matrix_SurveyQuestionMatrix = /** @class */ (function (_super)
|
|
|
6935
6935
|
style.minWidth = this.question.columnMinWidth;
|
|
6936
6936
|
style.width = this.question.columnMinWidth;
|
|
6937
6937
|
}
|
|
6938
|
-
headers.push(
|
|
6938
|
+
headers.push(g("th", { className: this.question.cssClasses.headerCell, style: style, key: key }, this.wrapCell({ column: column }, columText, "column-header")));
|
|
6939
6939
|
}
|
|
6940
6940
|
var rows = [];
|
|
6941
6941
|
var visibleRows = this.question.visibleRows;
|
|
6942
6942
|
for (var i = 0; i < visibleRows.length; i++) {
|
|
6943
6943
|
var row = visibleRows[i];
|
|
6944
6944
|
var key = "row-" + row.name + "-" + i;
|
|
6945
|
-
rows.push(
|
|
6945
|
+
rows.push(g(reactquestion_matrix_SurveyQuestionMatrixRow, { key: key, question: this.question, cssClasses: cssClasses, row: row, isFirst: i == 0 }));
|
|
6946
6946
|
}
|
|
6947
|
-
var header = !this.question.showHeader ? null : (
|
|
6948
|
-
|
|
6947
|
+
var header = !this.question.showHeader ? null : (g("thead", null,
|
|
6948
|
+
g("tr", null,
|
|
6949
6949
|
rowsTH,
|
|
6950
6950
|
headers)));
|
|
6951
|
-
return (
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6951
|
+
return (g("div", { className: cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
6952
|
+
g("fieldset", null,
|
|
6953
|
+
g("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
6954
|
+
g("table", { className: this.question.getTableCss() },
|
|
6955
6955
|
header,
|
|
6956
|
-
|
|
6956
|
+
g("tbody", null, rows)))));
|
|
6957
6957
|
};
|
|
6958
6958
|
return SurveyQuestionMatrix;
|
|
6959
6959
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
@@ -7005,10 +7005,10 @@ var reactquestion_matrix_SurveyQuestionMatrixRow = /** @class */ (function (_sup
|
|
|
7005
7005
|
style.minWidth = this.question.rowTitleWidth;
|
|
7006
7006
|
style.width = this.question.rowTitleWidth;
|
|
7007
7007
|
}
|
|
7008
|
-
rowsTD =
|
|
7008
|
+
rowsTD = g("td", { style: style, className: this.row.rowTextClasses }, this.wrapCell({ row: this.row }, rowText, "row-header"));
|
|
7009
7009
|
}
|
|
7010
7010
|
var tds = this.generateTds();
|
|
7011
|
-
return (
|
|
7011
|
+
return (g("tr", { className: this.row.rowClasses || undefined },
|
|
7012
7012
|
rowsTD,
|
|
7013
7013
|
tds));
|
|
7014
7014
|
};
|
|
@@ -7024,7 +7024,7 @@ var reactquestion_matrix_SurveyQuestionMatrixRow = /** @class */ (function (_sup
|
|
|
7024
7024
|
var itemClass = this_1.question.getItemClass(row, column);
|
|
7025
7025
|
if (this_1.question.hasCellText) {
|
|
7026
7026
|
var getHandler = function (column) { return function () { return _this.cellClick(row, column); }; };
|
|
7027
|
-
td = (
|
|
7027
|
+
td = (g("td", { key: key, className: itemClass, onClick: getHandler ? getHandler(column) : function () { } }, this_1.renderLocString(this_1.question.getCellDisplayLocText(row.name, column))));
|
|
7028
7028
|
}
|
|
7029
7029
|
else {
|
|
7030
7030
|
var renderedCell = ReactElementFactory.Instance.createElement(cellComponent, {
|
|
@@ -7035,7 +7035,7 @@ var reactquestion_matrix_SurveyQuestionMatrixRow = /** @class */ (function (_sup
|
|
|
7035
7035
|
cssClasses: this_1.cssClasses,
|
|
7036
7036
|
cellChanged: function () { _this.cellClick(_this.row, column); }
|
|
7037
7037
|
});
|
|
7038
|
-
td = (
|
|
7038
|
+
td = (g("td", { key: key, "data-responsive-title": column.locText.renderedHtml, className: this_1.question.cssClasses.cell }, renderedCell));
|
|
7039
7039
|
}
|
|
7040
7040
|
tds.push(td);
|
|
7041
7041
|
};
|
|
@@ -7104,27 +7104,27 @@ var reactquestion_matrix_SurveyQuestionMatrixCell = /** @class */ (function (_su
|
|
|
7104
7104
|
var inputId = this.question.inputId + "_" + this.row.name + "_" + this.columnIndex;
|
|
7105
7105
|
var itemClass = this.question.getItemClass(this.row, this.column);
|
|
7106
7106
|
var mobileSpan = this.question.isMobile ?
|
|
7107
|
-
(
|
|
7107
|
+
(g("span", { className: this.question.cssClasses.cellResponsiveTitle }, this.renderLocString(this.column.locText)))
|
|
7108
7108
|
: undefined;
|
|
7109
|
-
return (
|
|
7109
|
+
return (g("label", { onMouseDown: this.handleOnMouseDown, className: itemClass },
|
|
7110
7110
|
this.renderInput(inputId, isChecked),
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7111
|
+
g("span", { className: this.question.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
7112
|
+
g("svg", { className: this.cssClasses.itemDecorator },
|
|
7113
|
+
g("use", { xlinkHref: this.question.itemSvgIcon })) :
|
|
7114
7114
|
null),
|
|
7115
7115
|
mobileSpan));
|
|
7116
7116
|
};
|
|
7117
7117
|
SurveyQuestionMatrixCell.prototype.renderInput = function (inputId, isChecked) {
|
|
7118
|
-
return (
|
|
7118
|
+
return (g("input", { id: inputId, type: "radio", className: this.cssClasses.itemValue, name: this.row.fullName, value: this.column.value, disabled: this.row.isDisabledAttr, readOnly: this.row.isReadOnlyAttr, checked: isChecked, onChange: this.handleOnChange, "aria-required": this.question.a11y_input_ariaRequired, "aria-label": this.question.getCellAriaLabel(this.row.locText.renderedHtml, this.column.locText.renderedHtml), "aria-invalid": this.question.a11y_input_ariaInvalid, "aria-errormessage": this.question.a11y_input_ariaErrormessage }));
|
|
7119
7119
|
};
|
|
7120
7120
|
return SurveyQuestionMatrixCell;
|
|
7121
7121
|
}(ReactSurveyElement));
|
|
7122
7122
|
|
|
7123
7123
|
ReactElementFactory.Instance.registerElement("survey-matrix-cell", function (props) {
|
|
7124
|
-
return
|
|
7124
|
+
return g(reactquestion_matrix_SurveyQuestionMatrixCell, props);
|
|
7125
7125
|
});
|
|
7126
7126
|
ReactQuestionFactory.Instance.registerQuestion("matrix", function (props) {
|
|
7127
|
-
return
|
|
7127
|
+
return g(reactquestion_matrix_SurveyQuestionMatrix, props);
|
|
7128
7128
|
});
|
|
7129
7129
|
|
|
7130
7130
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_html.tsx
|
|
@@ -7178,13 +7178,13 @@ var reactquestion_html_SurveyQuestionHtml = /** @class */ (function (_super) {
|
|
|
7178
7178
|
};
|
|
7179
7179
|
SurveyQuestionHtml.prototype.renderElement = function () {
|
|
7180
7180
|
var htmlValue = { __html: this.question.locHtml.renderedHtml };
|
|
7181
|
-
return (
|
|
7181
|
+
return (g("div", { className: this.question.renderCssRoot, dangerouslySetInnerHTML: htmlValue }));
|
|
7182
7182
|
};
|
|
7183
7183
|
return SurveyQuestionHtml;
|
|
7184
7184
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
7185
7185
|
|
|
7186
7186
|
ReactQuestionFactory.Instance.registerQuestion("html", function (props) {
|
|
7187
|
-
return
|
|
7187
|
+
return g(reactquestion_html_SurveyQuestionHtml, props);
|
|
7188
7188
|
});
|
|
7189
7189
|
|
|
7190
7190
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/loading-indicator.tsx
|
|
@@ -7211,11 +7211,11 @@ var loading_indicator_LoadingIndicatorComponent = /** @class */ (function (_supe
|
|
|
7211
7211
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7212
7212
|
}
|
|
7213
7213
|
LoadingIndicatorComponent.prototype.render = function () {
|
|
7214
|
-
return (
|
|
7215
|
-
|
|
7214
|
+
return (g("div", { className: "sd-loading-indicator" },
|
|
7215
|
+
g(svg_icon_SvgIcon, { iconName: "icon-loading", size: "auto" })));
|
|
7216
7216
|
};
|
|
7217
7217
|
return LoadingIndicatorComponent;
|
|
7218
|
-
}(
|
|
7218
|
+
}(x));
|
|
7219
7219
|
|
|
7220
7220
|
|
|
7221
7221
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/file/file-choose-button.tsx
|
|
@@ -7310,23 +7310,23 @@ var reactquestion_file_SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
7310
7310
|
var fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
|
|
7311
7311
|
var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
|
|
7312
7312
|
var clearButtonBottom = this.question.showRemoveButtonBottom ? this.renderClearButton(this.question.cssClasses.removeButtonBottom) : null;
|
|
7313
|
-
var fileNavigator = this.question.fileNavigatorVisible ? (
|
|
7313
|
+
var fileNavigator = this.question.fileNavigatorVisible ? (g(action_bar_SurveyActionBar, { model: this.question.fileNavigator })) : null;
|
|
7314
7314
|
var fileInput;
|
|
7315
7315
|
if (this.question.isReadOnlyAttr) {
|
|
7316
|
-
fileInput =
|
|
7316
|
+
fileInput = g("input", { readOnly: true, type: "file", className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: this.question.acceptedTypes });
|
|
7317
7317
|
}
|
|
7318
7318
|
else if (this.question.isDisabledAttr) {
|
|
7319
|
-
fileInput =
|
|
7319
|
+
fileInput = g("input", { disabled: true, type: "file", className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, multiple: this.question.allowMultiple, placeholder: this.question.title, accept: this.question.acceptedTypes });
|
|
7320
7320
|
}
|
|
7321
7321
|
else if (this.question.hasFileUI) {
|
|
7322
|
-
fileInput =
|
|
7322
|
+
fileInput = g("input", { type: "file", disabled: this.isDisplayMode, tabIndex: -1, className: !this.isDisplayMode ? this.question.cssClasses.fileInput : this.question.getReadOnlyFileCss(), id: this.question.inputId, ref: function (input) { return (_this.setControl(input)); }, style: !this.isDisplayMode ? {} : { color: "transparent" }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage, multiple: this.question.allowMultiple, title: this.question.inputTitle, accept: this.question.acceptedTypes, capture: this.question.renderCapture });
|
|
7323
7323
|
}
|
|
7324
7324
|
else {
|
|
7325
7325
|
fileInput = null;
|
|
7326
7326
|
}
|
|
7327
|
-
return (
|
|
7327
|
+
return (g("div", { className: this.question.fileRootCss, ref: function (el) { return (_this.setContent(el)); } },
|
|
7328
7328
|
fileInput,
|
|
7329
|
-
|
|
7329
|
+
g("div", { className: this.question.cssClasses.dragArea, onDrop: this.question.onDrop, onDragOver: this.question.onDragOver, onDragLeave: this.question.onDragLeave, onDragEnter: this.question.onDragEnter },
|
|
7330
7330
|
fileDecorator,
|
|
7331
7331
|
loadingIndicator,
|
|
7332
7332
|
video,
|
|
@@ -7337,42 +7337,42 @@ var reactquestion_file_SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
7337
7337
|
};
|
|
7338
7338
|
SurveyQuestionFile.prototype.renderFileDecorator = function () {
|
|
7339
7339
|
var chooseButton = this.question.showChooseButton ? this.renderChooseButton() : null;
|
|
7340
|
-
var actionsContainer = this.question.actionsContainerVisible ?
|
|
7341
|
-
var noFileChosen = this.question.isEmpty() ? (
|
|
7342
|
-
return (
|
|
7343
|
-
|
|
7344
|
-
|
|
7340
|
+
var actionsContainer = this.question.actionsContainerVisible ? g(action_bar_SurveyActionBar, { model: this.question.actionsContainer }) : null;
|
|
7341
|
+
var noFileChosen = this.question.isEmpty() ? (g("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
|
|
7342
|
+
return (g("div", { className: this.question.getFileDecoratorCss() },
|
|
7343
|
+
g("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
|
7344
|
+
g("div", { className: this.question.cssClasses.wrapper },
|
|
7345
7345
|
chooseButton,
|
|
7346
7346
|
actionsContainer,
|
|
7347
7347
|
noFileChosen)));
|
|
7348
7348
|
};
|
|
7349
7349
|
SurveyQuestionFile.prototype.renderChooseButton = function () {
|
|
7350
|
-
return
|
|
7350
|
+
return g(file_choose_button_SurveyFileChooseButton, { data: { question: this.question } });
|
|
7351
7351
|
};
|
|
7352
7352
|
SurveyQuestionFile.prototype.renderClearButton = function (className) {
|
|
7353
|
-
return !this.question.isUploading ? (
|
|
7354
|
-
|
|
7355
|
-
(!!this.question.cssClasses.removeButtonIconId) ?
|
|
7353
|
+
return !this.question.isUploading ? (g("button", { type: "button", onClick: this.question.doClean, className: className },
|
|
7354
|
+
g("span", null, this.question.clearButtonCaption),
|
|
7355
|
+
(!!this.question.cssClasses.removeButtonIconId) ? g(svg_icon_SvgIcon, { iconName: this.question.cssClasses.removeButtonIconId, size: "auto", title: this.question.clearButtonCaption }) : null)) : null;
|
|
7356
7356
|
};
|
|
7357
7357
|
SurveyQuestionFile.prototype.renderPreview = function () {
|
|
7358
7358
|
return ReactElementFactory.Instance.createElement("sv-file-preview", { question: this.question });
|
|
7359
7359
|
};
|
|
7360
7360
|
SurveyQuestionFile.prototype.renderLoadingIndicator = function () {
|
|
7361
|
-
return
|
|
7362
|
-
|
|
7361
|
+
return g("div", { className: this.question.cssClasses.loadingIndicator },
|
|
7362
|
+
g(loading_indicator_LoadingIndicatorComponent, null));
|
|
7363
7363
|
};
|
|
7364
7364
|
SurveyQuestionFile.prototype.renderVideo = function () {
|
|
7365
|
-
return (
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7365
|
+
return (g("div", { className: this.question.cssClasses.videoContainer },
|
|
7366
|
+
g(action_bar_item_SurveyAction, { item: this.question.changeCameraAction }),
|
|
7367
|
+
g(action_bar_item_SurveyAction, { item: this.question.closeCameraAction }),
|
|
7368
|
+
g("video", { autoPlay: true, playsInline: true, id: this.question.videoId, className: this.question.cssClasses.video }),
|
|
7369
|
+
g(action_bar_item_SurveyAction, { item: this.question.takePictureAction })));
|
|
7370
7370
|
};
|
|
7371
7371
|
return SurveyQuestionFile;
|
|
7372
7372
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
7373
7373
|
|
|
7374
7374
|
ReactQuestionFactory.Instance.registerQuestion("file", function (props) {
|
|
7375
|
-
return
|
|
7375
|
+
return g(reactquestion_file_SurveyQuestionFile, props);
|
|
7376
7376
|
});
|
|
7377
7377
|
|
|
7378
7378
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/file/file-item.tsx
|
|
@@ -7590,19 +7590,19 @@ var reactquestion_multipletext_SurveyQuestionMultipleText = /** @class */ (funct
|
|
|
7590
7590
|
rows.push(this.renderRow(i, tableRows[i].cells, cssClasses));
|
|
7591
7591
|
}
|
|
7592
7592
|
}
|
|
7593
|
-
return (
|
|
7594
|
-
|
|
7593
|
+
return (g("table", { className: this.question.getQuestionRootCss() },
|
|
7594
|
+
g("tbody", null, rows)));
|
|
7595
7595
|
};
|
|
7596
7596
|
SurveyQuestionMultipleText.prototype.renderCell = function (cell, cssClasses, index) {
|
|
7597
7597
|
var cellContent;
|
|
7598
7598
|
var focusIn = function () { cell.item.focusIn(); };
|
|
7599
7599
|
if (cell.isErrorsCell) {
|
|
7600
|
-
cellContent =
|
|
7600
|
+
cellContent = g(reactquestion_SurveyQuestionErrorCell, { question: cell.item.editor, creator: this.creator });
|
|
7601
7601
|
}
|
|
7602
7602
|
else {
|
|
7603
|
-
cellContent =
|
|
7603
|
+
cellContent = g(reactquestion_multipletext_SurveyMultipleTextItem, { question: this.question, item: cell.item, creator: this.creator, cssClasses: cssClasses });
|
|
7604
7604
|
}
|
|
7605
|
-
return (
|
|
7605
|
+
return (g("td", { key: "item" + index, className: cell.className, onFocus: focusIn }, cellContent));
|
|
7606
7606
|
};
|
|
7607
7607
|
SurveyQuestionMultipleText.prototype.renderRow = function (rowIndex, cells, cssClasses) {
|
|
7608
7608
|
var key = "item" + rowIndex;
|
|
@@ -7611,7 +7611,7 @@ var reactquestion_multipletext_SurveyQuestionMultipleText = /** @class */ (funct
|
|
|
7611
7611
|
var cell = cells[i];
|
|
7612
7612
|
tds.push(this.renderCell(cell, cssClasses, i));
|
|
7613
7613
|
}
|
|
7614
|
-
return (
|
|
7614
|
+
return (g("tr", { key: key, className: cssClasses.row }, tds));
|
|
7615
7615
|
};
|
|
7616
7616
|
return SurveyQuestionMultipleText;
|
|
7617
7617
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
@@ -7653,10 +7653,10 @@ var reactquestion_multipletext_SurveyMultipleTextItem = /** @class */ (function
|
|
|
7653
7653
|
titleStyle.minWidth = this.question.itemTitleWidth;
|
|
7654
7654
|
titleStyle.width = this.question.itemTitleWidth;
|
|
7655
7655
|
}
|
|
7656
|
-
return (
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7656
|
+
return (g("label", { className: this.question.getItemLabelCss(item) },
|
|
7657
|
+
g("span", { className: cssClasses.itemTitle, style: titleStyle },
|
|
7658
|
+
g(title_content_TitleContent, { element: item.editor, cssClasses: item.editor.cssClasses })),
|
|
7659
|
+
g(reactquestion_multipletext_SurveyMultipleTextItemEditor, { cssClasses: cssClasses, itemCss: this.question.getItemCss(), question: item.editor, creator: this.creator })));
|
|
7660
7660
|
};
|
|
7661
7661
|
return SurveyMultipleTextItem;
|
|
7662
7662
|
}(ReactSurveyElement));
|
|
@@ -7667,13 +7667,13 @@ var reactquestion_multipletext_SurveyMultipleTextItemEditor = /** @class */ (fun
|
|
|
7667
7667
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7668
7668
|
}
|
|
7669
7669
|
SurveyMultipleTextItemEditor.prototype.renderElement = function () {
|
|
7670
|
-
return
|
|
7670
|
+
return g("div", { className: this.itemCss }, this.renderContent());
|
|
7671
7671
|
};
|
|
7672
7672
|
return SurveyMultipleTextItemEditor;
|
|
7673
7673
|
}(reactquestion_SurveyQuestionAndErrorsWrapped));
|
|
7674
7674
|
|
|
7675
7675
|
ReactQuestionFactory.Instance.registerQuestion("multipletext", function (props) {
|
|
7676
|
-
return
|
|
7676
|
+
return g(reactquestion_multipletext_SurveyQuestionMultipleText, props);
|
|
7677
7677
|
});
|
|
7678
7678
|
|
|
7679
7679
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_radiogroup.tsx
|
|
@@ -7715,10 +7715,10 @@ var reactquestion_radiogroup_SurveyQuestionRadiogroup = /** @class */ (function
|
|
|
7715
7715
|
var cssClasses = this.question.cssClasses;
|
|
7716
7716
|
var clearButton = null;
|
|
7717
7717
|
if (this.question.showClearButtonInContent) {
|
|
7718
|
-
clearButton = (
|
|
7719
|
-
|
|
7718
|
+
clearButton = (g("div", null,
|
|
7719
|
+
g("input", { type: "button", className: this.question.cssClasses.clearButton, onClick: function () { return _this.question.clearValue(true); }, value: this.question.clearButtonCaption })));
|
|
7720
7720
|
}
|
|
7721
|
-
return (
|
|
7721
|
+
return (g("fieldset", { className: this.question.getSelectBaseRootCss(), ref: function (fieldset) { return (_this.setControl(fieldset)); }, role: this.question.a11y_input_ariaRole, "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 },
|
|
7722
7722
|
this.question.hasColumns
|
|
7723
7723
|
? this.getColumnedBody(cssClasses)
|
|
7724
7724
|
: this.getBody(cssClasses),
|
|
@@ -7735,7 +7735,7 @@ var reactquestion_radiogroup_SurveyQuestionRadiogroup = /** @class */ (function
|
|
|
7735
7735
|
}
|
|
7736
7736
|
};
|
|
7737
7737
|
SurveyQuestionRadiogroup.prototype.getColumnedBody = function (cssClasses) {
|
|
7738
|
-
return (
|
|
7738
|
+
return (g("div", { className: cssClasses.rootMultiColumn }, this.getColumns(cssClasses)));
|
|
7739
7739
|
};
|
|
7740
7740
|
SurveyQuestionRadiogroup.prototype.getColumns = function (cssClasses) {
|
|
7741
7741
|
var _this = this;
|
|
@@ -7744,15 +7744,15 @@ var reactquestion_radiogroup_SurveyQuestionRadiogroup = /** @class */ (function
|
|
|
7744
7744
|
var items = column.map(function (item, ii) {
|
|
7745
7745
|
return _this.renderItem(item, value, cssClasses, "" + ci + ii);
|
|
7746
7746
|
});
|
|
7747
|
-
return (
|
|
7747
|
+
return (g("div", { key: "column" + ci + _this.question.getItemsColumnKey(column), className: _this.question.getColumnClass(), role: "presentation" }, items));
|
|
7748
7748
|
});
|
|
7749
7749
|
};
|
|
7750
7750
|
SurveyQuestionRadiogroup.prototype.getBody = function (cssClasses) {
|
|
7751
7751
|
if (this.question.blockedRow) {
|
|
7752
|
-
return
|
|
7752
|
+
return g("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
|
|
7753
7753
|
}
|
|
7754
7754
|
else
|
|
7755
|
-
return
|
|
7755
|
+
return g(k, null, this.getItems(cssClasses, this.question.bodyItems));
|
|
7756
7756
|
};
|
|
7757
7757
|
SurveyQuestionRadiogroup.prototype.getItems = function (cssClasses, choices) {
|
|
7758
7758
|
var items = [];
|
|
@@ -7772,8 +7772,8 @@ var reactquestion_radiogroup_SurveyQuestionRadiogroup = /** @class */ (function
|
|
|
7772
7772
|
configurable: true
|
|
7773
7773
|
});
|
|
7774
7774
|
SurveyQuestionRadiogroup.prototype.renderOther = function (cssClasses) {
|
|
7775
|
-
return (
|
|
7776
|
-
|
|
7775
|
+
return (g("div", { className: this.question.getCommentAreaCss(true) },
|
|
7776
|
+
g(SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode })));
|
|
7777
7777
|
};
|
|
7778
7778
|
SurveyQuestionRadiogroup.prototype.renderItem = function (item, value, cssClasses, index) {
|
|
7779
7779
|
var renderedItem = ReactElementFactory.Instance.createElement(this.question.itemComponent, {
|
|
@@ -7803,7 +7803,7 @@ var reactquestion_radiogroup_SurveyQuestionRadioItem = /** @class */ (function (
|
|
|
7803
7803
|
reactquestion_radiogroup_extends(SurveyQuestionRadioItem, _super);
|
|
7804
7804
|
function SurveyQuestionRadioItem(props) {
|
|
7805
7805
|
var _this = _super.call(this, props) || this;
|
|
7806
|
-
_this.rootRef =
|
|
7806
|
+
_this.rootRef = b();
|
|
7807
7807
|
_this.handleOnChange = _this.handleOnChange.bind(_this);
|
|
7808
7808
|
_this.handleOnMouseDown = _this.handleOnMouseDown.bind(_this);
|
|
7809
7809
|
return _this;
|
|
@@ -7887,14 +7887,14 @@ var reactquestion_radiogroup_SurveyQuestionRadioItem = /** @class */ (function (
|
|
|
7887
7887
|
var itemClass = this.question.getItemClass(this.item);
|
|
7888
7888
|
var labelClass = this.question.getLabelClass(this.item);
|
|
7889
7889
|
var controlLabelClass = this.question.getControlLabelClass(this.item);
|
|
7890
|
-
var itemLabel = !this.hideCaption ?
|
|
7891
|
-
return (
|
|
7892
|
-
|
|
7893
|
-
|
|
7890
|
+
var itemLabel = !this.hideCaption ? g("span", { className: controlLabelClass }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
7891
|
+
return (g("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
7892
|
+
g("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
|
|
7893
|
+
g("input", { "aria-errormessage": this.question.ariaErrormessage, className: this.cssClasses.itemControl, id: this.question.getItemId(this.item), type: "radio", name: this.question.questionName, checked: this.isChecked, value: this.item.value, disabled: !this.question.getItemEnabled(this.item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange }),
|
|
7894
7894
|
this.cssClasses.materialDecorator ?
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7895
|
+
g("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
7896
|
+
g("svg", { className: this.cssClasses.itemDecorator },
|
|
7897
|
+
g("use", { xlinkHref: this.question.itemSvgIcon })) :
|
|
7898
7898
|
null) :
|
|
7899
7899
|
null,
|
|
7900
7900
|
itemLabel)));
|
|
@@ -7915,10 +7915,10 @@ var reactquestion_radiogroup_SurveyQuestionRadioItem = /** @class */ (function (
|
|
|
7915
7915
|
}(ReactSurveyElement));
|
|
7916
7916
|
|
|
7917
7917
|
ReactElementFactory.Instance.registerElement("survey-radiogroup-item", function (props) {
|
|
7918
|
-
return
|
|
7918
|
+
return g(reactquestion_radiogroup_SurveyQuestionRadioItem, props);
|
|
7919
7919
|
});
|
|
7920
7920
|
ReactQuestionFactory.Instance.registerQuestion("radiogroup", function (props) {
|
|
7921
|
-
return
|
|
7921
|
+
return g(reactquestion_radiogroup_SurveyQuestionRadiogroup, props);
|
|
7922
7922
|
});
|
|
7923
7923
|
|
|
7924
7924
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_text.tsx
|
|
@@ -7953,11 +7953,11 @@ var reactquestion_text_SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
7953
7953
|
var inputClass = this.question.getControlClass();
|
|
7954
7954
|
var placeholder = this.question.renderedPlaceholder;
|
|
7955
7955
|
if (this.question.isReadOnlyRenderDiv()) {
|
|
7956
|
-
return
|
|
7956
|
+
return g("div", null, this.question.inputValue);
|
|
7957
7957
|
}
|
|
7958
|
-
var counter = !!this.question.getMaxLength() ? (
|
|
7959
|
-
return (
|
|
7960
|
-
|
|
7958
|
+
var counter = !!this.question.getMaxLength() ? (g(character_counter_CharacterCounterComponent, { counter: this.question.characterCounter, remainingCharacterCounter: this.question.cssClasses.remainingCharacterCounter })) : null;
|
|
7959
|
+
return (g(k, null,
|
|
7960
|
+
g("input", { id: this.question.inputId,
|
|
7961
7961
|
// disabled={this.isDisplayMode}
|
|
7962
7962
|
disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: inputClass, type: this.question.inputType,
|
|
7963
7963
|
//ref={this.controlRef}
|
|
@@ -7966,7 +7966,7 @@ var reactquestion_text_SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
7966
7966
|
};
|
|
7967
7967
|
SurveyQuestionText.prototype.renderElement = function () {
|
|
7968
7968
|
return (this.question.dataListId ?
|
|
7969
|
-
|
|
7969
|
+
g("div", null,
|
|
7970
7970
|
this.renderInput(),
|
|
7971
7971
|
this.renderDataList()) :
|
|
7972
7972
|
this.renderInput());
|
|
@@ -7985,15 +7985,15 @@ var reactquestion_text_SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
7985
7985
|
return null;
|
|
7986
7986
|
var options = [];
|
|
7987
7987
|
for (var i = 0; i < items.length; i++) {
|
|
7988
|
-
options.push(
|
|
7988
|
+
options.push(g("option", { key: "item" + i, value: items[i] }));
|
|
7989
7989
|
}
|
|
7990
|
-
return
|
|
7990
|
+
return g("datalist", { id: this.question.dataListId }, options);
|
|
7991
7991
|
};
|
|
7992
7992
|
return SurveyQuestionText;
|
|
7993
7993
|
}(reactquestion_element_SurveyQuestionUncontrolledElement));
|
|
7994
7994
|
|
|
7995
7995
|
ReactQuestionFactory.Instance.registerQuestion("text", function (props) {
|
|
7996
|
-
return
|
|
7996
|
+
return g(reactquestion_text_SurveyQuestionText, props);
|
|
7997
7997
|
});
|
|
7998
7998
|
|
|
7999
7999
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/boolean.tsx
|
|
@@ -8024,7 +8024,7 @@ var boolean_SurveyQuestionBoolean = /** @class */ (function (_super) {
|
|
|
8024
8024
|
_this.handleOnLabelClick = _this.handleOnLabelClick.bind(_this);
|
|
8025
8025
|
_this.handleOnSwitchClick = _this.handleOnSwitchClick.bind(_this);
|
|
8026
8026
|
_this.handleOnKeyDown = _this.handleOnKeyDown.bind(_this);
|
|
8027
|
-
_this.checkRef =
|
|
8027
|
+
_this.checkRef = b();
|
|
8028
8028
|
return _this;
|
|
8029
8029
|
}
|
|
8030
8030
|
SurveyQuestionBoolean.prototype.getStateElement = function () {
|
|
@@ -8074,25 +8074,25 @@ var boolean_SurveyQuestionBoolean = /** @class */ (function (_super) {
|
|
|
8074
8074
|
var _this = this;
|
|
8075
8075
|
var cssClasses = this.question.cssClasses;
|
|
8076
8076
|
var itemClass = this.question.getItemCss();
|
|
8077
|
-
return (
|
|
8078
|
-
|
|
8079
|
-
|
|
8077
|
+
return (g("div", { className: cssClasses.root, onKeyDown: this.handleOnKeyDown },
|
|
8078
|
+
g("label", { className: itemClass, onClick: this.handleOnClick },
|
|
8079
|
+
g("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
8080
8080
|
? ""
|
|
8081
8081
|
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.control, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.booleanValue || false, onChange: this.handleOnChange, role: this.question.a11y_input_ariaRole, "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 }),
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
|
|
8082
|
+
g("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, _this.question.swapOrder); } },
|
|
8083
|
+
g("span", { className: this.question.getLabelCss(this.question.swapOrder) }, this.renderLocString(this.question.locLabelLeft))),
|
|
8084
|
+
g("div", { className: cssClasses.switch, onClick: this.handleOnSwitchClick },
|
|
8085
|
+
g("span", { className: cssClasses.slider }, this.question.isDeterminated && cssClasses.sliderText ?
|
|
8086
|
+
g("span", { className: cssClasses.sliderText }, this.renderLocString(this.question.getCheckedLabel()))
|
|
8087
8087
|
: null)),
|
|
8088
|
-
|
|
8089
|
-
|
|
8088
|
+
g("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, !_this.question.swapOrder); } },
|
|
8089
|
+
g("span", { className: this.question.getLabelCss(!this.question.swapOrder) }, this.renderLocString(this.question.locLabelRight))))));
|
|
8090
8090
|
};
|
|
8091
8091
|
return SurveyQuestionBoolean;
|
|
8092
8092
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
8093
8093
|
|
|
8094
8094
|
ReactQuestionFactory.Instance.registerQuestion("boolean", function (props) {
|
|
8095
|
-
return
|
|
8095
|
+
return g(boolean_SurveyQuestionBoolean, props);
|
|
8096
8096
|
});
|
|
8097
8097
|
|
|
8098
8098
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/boolean-checkbox.tsx
|
|
@@ -8127,26 +8127,26 @@ var boolean_checkbox_SurveyQuestionBooleanCheckbox = /** @class */ (function (_s
|
|
|
8127
8127
|
var itemClass = this.question.getCheckboxItemCss();
|
|
8128
8128
|
var description = this.question.canRenderLabelDescription ?
|
|
8129
8129
|
reactquestion_element_SurveyElementBase.renderQuestionDescription(this.question) : null;
|
|
8130
|
-
return (
|
|
8131
|
-
|
|
8132
|
-
|
|
8133
|
-
|
|
8130
|
+
return (g("div", { className: cssClasses.rootCheckbox },
|
|
8131
|
+
g("div", { className: itemClass },
|
|
8132
|
+
g("label", { className: cssClasses.checkboxLabel },
|
|
8133
|
+
g("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
8134
8134
|
? ""
|
|
8135
8135
|
: this.question.booleanValue, id: this.question.inputId, className: cssClasses.controlCheckbox, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, checked: this.question.booleanValue || false, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
8136
|
-
|
|
8136
|
+
g("span", { className: cssClasses.checkboxMaterialDecorator },
|
|
8137
8137
|
this.question.svgIcon ?
|
|
8138
|
-
|
|
8139
|
-
|
|
8140
|
-
|
|
8141
|
-
this.question.isLabelRendered && (
|
|
8142
|
-
|
|
8138
|
+
g("svg", { className: cssClasses.checkboxItemDecorator },
|
|
8139
|
+
g("use", { xlinkHref: this.question.svgIcon })) : null,
|
|
8140
|
+
g("span", { className: "check" })),
|
|
8141
|
+
this.question.isLabelRendered && (g("span", { className: cssClasses.checkboxControlLabel, id: this.question.labelRenderedAriaID },
|
|
8142
|
+
g(title_actions_TitleActions, { element: this.question, cssClasses: this.question.cssClasses })))),
|
|
8143
8143
|
description)));
|
|
8144
8144
|
};
|
|
8145
8145
|
return SurveyQuestionBooleanCheckbox;
|
|
8146
8146
|
}(boolean_SurveyQuestionBoolean));
|
|
8147
8147
|
|
|
8148
8148
|
ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox", function (props) {
|
|
8149
|
-
return
|
|
8149
|
+
return g(boolean_checkbox_SurveyQuestionBooleanCheckbox, props);
|
|
8150
8150
|
});
|
|
8151
8151
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("boolean", "checkbox", "sv-boolean-checkbox");
|
|
8152
8152
|
|
|
@@ -8181,24 +8181,24 @@ var boolean_radio_SurveyQuestionBooleanRadio = /** @class */ (function (_super)
|
|
|
8181
8181
|
}
|
|
8182
8182
|
SurveyQuestionBooleanRadio.prototype.renderRadioItem = function (value, locText) {
|
|
8183
8183
|
var cssClasses = this.question.cssClasses;
|
|
8184
|
-
return (
|
|
8185
|
-
|
|
8186
|
-
|
|
8184
|
+
return (g("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
|
|
8185
|
+
g("label", { className: cssClasses.radioLabel },
|
|
8186
|
+
g("input", { type: "radio", name: this.question.name, value: value, "aria-errormessage": this.question.ariaErrormessage, checked: value === this.question.booleanValueRendered, disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: cssClasses.itemRadioControl, onChange: this.handleOnChange }),
|
|
8187
8187
|
this.question.cssClasses.materialRadioDecorator ?
|
|
8188
|
-
(
|
|
8189
|
-
(
|
|
8190
|
-
|
|
8191
|
-
|
|
8188
|
+
(g("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
|
|
8189
|
+
(g("svg", { className: cssClasses.itemRadioDecorator },
|
|
8190
|
+
g("use", { xlinkHref: this.question.itemSvgIcon }))) : null)) : null,
|
|
8191
|
+
g("span", { className: cssClasses.radioControlLabel }, this.renderLocString(locText)))));
|
|
8192
8192
|
};
|
|
8193
8193
|
SurveyQuestionBooleanRadio.prototype.renderElement = function () {
|
|
8194
8194
|
var cssClasses = this.question.cssClasses;
|
|
8195
|
-
return (
|
|
8196
|
-
|
|
8197
|
-
(
|
|
8195
|
+
return (g("div", { className: cssClasses.rootRadio },
|
|
8196
|
+
g("fieldset", { role: "presentation", className: cssClasses.radioFieldset }, !this.question.swapOrder ?
|
|
8197
|
+
(g(k, null,
|
|
8198
8198
|
this.renderRadioItem(false, this.question.locLabelFalse),
|
|
8199
8199
|
this.renderRadioItem(true, this.question.locLabelTrue)))
|
|
8200
8200
|
:
|
|
8201
|
-
(
|
|
8201
|
+
(g(k, null,
|
|
8202
8202
|
this.renderRadioItem(true, this.question.locLabelTrue),
|
|
8203
8203
|
this.renderRadioItem(false, this.question.locLabelFalse))))));
|
|
8204
8204
|
};
|
|
@@ -8206,7 +8206,7 @@ var boolean_radio_SurveyQuestionBooleanRadio = /** @class */ (function (_super)
|
|
|
8206
8206
|
}(boolean_SurveyQuestionBoolean));
|
|
8207
8207
|
|
|
8208
8208
|
ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio", function (props) {
|
|
8209
|
-
return
|
|
8209
|
+
return g(boolean_radio_SurveyQuestionBooleanRadio, props);
|
|
8210
8210
|
});
|
|
8211
8211
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("boolean", "radio", "sv-boolean-radio");
|
|
8212
8212
|
|
|
@@ -8244,13 +8244,13 @@ var reactquestion_empty_SurveyQuestionEmpty = /** @class */ (function (_super) {
|
|
|
8244
8244
|
configurable: true
|
|
8245
8245
|
});
|
|
8246
8246
|
SurveyQuestionEmpty.prototype.renderElement = function () {
|
|
8247
|
-
return
|
|
8247
|
+
return g("div", null);
|
|
8248
8248
|
};
|
|
8249
8249
|
return SurveyQuestionEmpty;
|
|
8250
8250
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
8251
8251
|
|
|
8252
8252
|
ReactQuestionFactory.Instance.registerQuestion("empty", function (props) {
|
|
8253
|
-
return
|
|
8253
|
+
return g(reactquestion_empty_SurveyQuestionEmpty, props);
|
|
8254
8254
|
});
|
|
8255
8255
|
|
|
8256
8256
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/matrix/row.tsx
|
|
@@ -8463,22 +8463,22 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8463
8463
|
}
|
|
8464
8464
|
var cellContent = this.renderCellContent(cell, "column-header", {});
|
|
8465
8465
|
var header = cell.hasTitle ?
|
|
8466
|
-
|
|
8466
|
+
g("th", { className: cell.className, key: key, style: columnStyle },
|
|
8467
8467
|
" ",
|
|
8468
8468
|
cellContent,
|
|
8469
8469
|
" ")
|
|
8470
|
-
:
|
|
8470
|
+
: g("td", { className: cell.className, key: key, style: columnStyle });
|
|
8471
8471
|
headers.push(header);
|
|
8472
8472
|
}
|
|
8473
|
-
return (
|
|
8474
|
-
|
|
8473
|
+
return (g("thead", null,
|
|
8474
|
+
g("tr", null, headers)));
|
|
8475
8475
|
};
|
|
8476
8476
|
SurveyQuestionMatrixTable.prototype.renderFooter = function () {
|
|
8477
8477
|
var table = this.question.renderedTable;
|
|
8478
8478
|
if (!table.showFooter)
|
|
8479
8479
|
return null;
|
|
8480
8480
|
var row = this.renderRow("footer", table.footerRow, this.question.cssClasses, "row-footer");
|
|
8481
|
-
return
|
|
8481
|
+
return g("tfoot", null, row);
|
|
8482
8482
|
};
|
|
8483
8483
|
SurveyQuestionMatrixTable.prototype.renderRows = function () {
|
|
8484
8484
|
var cssClasses = this.question.cssClasses;
|
|
@@ -8487,7 +8487,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8487
8487
|
for (var i = 0; i < renderedRows.length; i++) {
|
|
8488
8488
|
rows.push(this.renderRow(renderedRows[i].id, renderedRows[i], cssClasses));
|
|
8489
8489
|
}
|
|
8490
|
-
return
|
|
8490
|
+
return g("tbody", null, rows);
|
|
8491
8491
|
};
|
|
8492
8492
|
SurveyQuestionMatrixTable.prototype.renderRow = function (keyValue, row, cssClasses, reason) {
|
|
8493
8493
|
var matrixrow = [];
|
|
@@ -8496,16 +8496,16 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8496
8496
|
matrixrow.push(this.renderCell(cells[i], i, cssClasses, reason));
|
|
8497
8497
|
}
|
|
8498
8498
|
var key = "row" + keyValue;
|
|
8499
|
-
return (
|
|
8499
|
+
return (g(k, { key: key }, (reason == "row-footer") ? g("tr", null, matrixrow) : g(row_MatrixRow, { model: row, parentMatrix: this.question }, matrixrow)));
|
|
8500
8500
|
};
|
|
8501
8501
|
SurveyQuestionMatrixTable.prototype.renderCell = function (cell, index, cssClasses, reason) {
|
|
8502
8502
|
var key = "cell" + index;
|
|
8503
8503
|
if (cell.hasQuestion) {
|
|
8504
|
-
return (
|
|
8504
|
+
return (g(reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell, { key: key, cssClasses: cssClasses, cell: cell, creator: this.creator, reason: reason }));
|
|
8505
8505
|
}
|
|
8506
8506
|
if (cell.isErrorsCell) {
|
|
8507
8507
|
if (cell.isErrorsCell) {
|
|
8508
|
-
return (
|
|
8508
|
+
return (g(reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownErrorsCell, { cell: cell, key: key, keyValue: key, question: cell.question, creator: this.creator }));
|
|
8509
8509
|
}
|
|
8510
8510
|
}
|
|
8511
8511
|
var calcReason = reason;
|
|
@@ -8521,7 +8521,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8521
8521
|
if (!!cell.minWidth)
|
|
8522
8522
|
cellStyle.minWidth = cell.minWidth;
|
|
8523
8523
|
}
|
|
8524
|
-
return (
|
|
8524
|
+
return (g("td", { className: cell.className, key: key, style: cellStyle, colSpan: cell.colSpans, title: cell.getTitle() }, cellContent));
|
|
8525
8525
|
};
|
|
8526
8526
|
SurveyQuestionMatrixTable.prototype.renderCellContent = function (cell, reason, cssClasses) {
|
|
8527
8527
|
var cellContent = null;
|
|
@@ -8536,14 +8536,14 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8536
8536
|
if (cell.hasTitle) {
|
|
8537
8537
|
reason = "row-header";
|
|
8538
8538
|
var str = this.renderLocString(cell.locTitle);
|
|
8539
|
-
var require_1 = !!cell.column ?
|
|
8540
|
-
cellContent = (
|
|
8539
|
+
var require_1 = !!cell.column ? g(reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired, { column: cell.column, question: this.question }) : null;
|
|
8540
|
+
cellContent = (g(k, null,
|
|
8541
8541
|
str,
|
|
8542
8542
|
require_1));
|
|
8543
8543
|
}
|
|
8544
8544
|
if (cell.isDragHandlerCell) {
|
|
8545
|
-
cellContent = (
|
|
8546
|
-
|
|
8545
|
+
cellContent = (g(k, null,
|
|
8546
|
+
g(drag_drop_icon_SurveyQuestionMatrixDynamicDragDropIcon, { item: { data: { row: cell.row, question: this.question } } })));
|
|
8547
8547
|
}
|
|
8548
8548
|
if (cell.isActionsCell) {
|
|
8549
8549
|
cellContent = (ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell", {
|
|
@@ -8553,18 +8553,18 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8553
8553
|
}));
|
|
8554
8554
|
}
|
|
8555
8555
|
if (cell.hasPanel) {
|
|
8556
|
-
cellContent = (
|
|
8556
|
+
cellContent = (g(panel_SurveyPanel, { key: cell.panel.id, element: cell.panel, survey: this.question.survey, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, creator: this.creator }));
|
|
8557
8557
|
}
|
|
8558
8558
|
if (!cellContent)
|
|
8559
8559
|
return null;
|
|
8560
|
-
var readyCell = (
|
|
8560
|
+
var readyCell = (g(k, null, cellContent));
|
|
8561
8561
|
return this.wrapCell(cell, readyCell, reason);
|
|
8562
8562
|
};
|
|
8563
8563
|
SurveyQuestionMatrixTable.prototype.renderElement = function () {
|
|
8564
8564
|
var header = this.renderHeader();
|
|
8565
8565
|
var footers = this.renderFooter();
|
|
8566
8566
|
var rows = this.renderRows();
|
|
8567
|
-
return (
|
|
8567
|
+
return (g("table", { className: this.question.getTableCss() },
|
|
8568
8568
|
header,
|
|
8569
8569
|
rows,
|
|
8570
8570
|
footers));
|
|
@@ -8615,8 +8615,8 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownBase = /** @cla
|
|
|
8615
8615
|
var divStyle = this.question.showHorizontalScroll
|
|
8616
8616
|
? { overflowX: "scroll" }
|
|
8617
8617
|
: {};
|
|
8618
|
-
return (
|
|
8619
|
-
|
|
8618
|
+
return (g("div", { style: divStyle, className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
8619
|
+
g(reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: function (cell, element, reason) { return _this.wrapCell(cell, element, reason); } })));
|
|
8620
8620
|
};
|
|
8621
8621
|
return SurveyQuestionMatrixDropdownBase;
|
|
8622
8622
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
@@ -8634,7 +8634,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixActionsCell = /** @clas
|
|
|
8634
8634
|
configurable: true
|
|
8635
8635
|
});
|
|
8636
8636
|
SurveyQuestionMatrixActionsCell.prototype.renderElement = function () {
|
|
8637
|
-
return (
|
|
8637
|
+
return (g(action_bar_SurveyActionBar, { model: this.model, handleClick: false }));
|
|
8638
8638
|
};
|
|
8639
8639
|
return SurveyQuestionMatrixActionsCell;
|
|
8640
8640
|
}(ReactSurveyElement));
|
|
@@ -8660,7 +8660,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownErrorsCell = /*
|
|
|
8660
8660
|
SurveyQuestionMatrixDropdownErrorsCell.prototype.render = function () {
|
|
8661
8661
|
if (!this.cell.isVisible)
|
|
8662
8662
|
return null;
|
|
8663
|
-
return
|
|
8663
|
+
return g("td", { className: this.cell.className, key: this.key, colSpan: this.cell.colSpans, title: this.cell.getTitle() }, _super.prototype.render.call(this));
|
|
8664
8664
|
};
|
|
8665
8665
|
SurveyQuestionMatrixDropdownErrorsCell.prototype.getQuestionPropertiesToTrack = function () {
|
|
8666
8666
|
return _super.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"]);
|
|
@@ -8668,7 +8668,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownErrorsCell = /*
|
|
|
8668
8668
|
return SurveyQuestionMatrixDropdownErrorsCell;
|
|
8669
8669
|
}(reactquestion_SurveyQuestionErrorCell));
|
|
8670
8670
|
ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell", function (props) {
|
|
8671
|
-
return
|
|
8671
|
+
return g(reactquestion_matrixdropdownbase_SurveyQuestionMatrixActionsCell, props);
|
|
8672
8672
|
});
|
|
8673
8673
|
var reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired = /** @class */ (function (_super) {
|
|
8674
8674
|
reactquestion_matrixdropdownbase_extends(SurveyQuestionMatrixHeaderRequired, _super);
|
|
@@ -8695,9 +8695,9 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired = /** @c
|
|
|
8695
8695
|
SurveyQuestionMatrixHeaderRequired.prototype.renderElement = function () {
|
|
8696
8696
|
if (!this.column.isRenderedRequired)
|
|
8697
8697
|
return null;
|
|
8698
|
-
return (
|
|
8699
|
-
|
|
8700
|
-
|
|
8698
|
+
return (g(k, null,
|
|
8699
|
+
g("span", null, "\u00A0"),
|
|
8700
|
+
g("span", { className: this.question.cssClasses.cellRequiredText }, this.column.requiredText)));
|
|
8701
8701
|
};
|
|
8702
8702
|
return SurveyQuestionMatrixHeaderRequired;
|
|
8703
8703
|
}(ReactSurveyElement));
|
|
@@ -8772,14 +8772,14 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell = /** @cla
|
|
|
8772
8772
|
};
|
|
8773
8773
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellContent = function () {
|
|
8774
8774
|
var content = _super.prototype.renderCellContent.call(this);
|
|
8775
|
-
var responsiveTitle = this.cell.showResponsiveTitle ? (
|
|
8776
|
-
return
|
|
8775
|
+
var responsiveTitle = this.cell.showResponsiveTitle ? (g("span", { className: this.cell.responsiveTitleCss }, this.renderLocString(this.cell.responsiveLocTitle))) : null;
|
|
8776
|
+
return g(k, null,
|
|
8777
8777
|
responsiveTitle,
|
|
8778
8778
|
content);
|
|
8779
8779
|
};
|
|
8780
8780
|
SurveyQuestionMatrixDropdownCell.prototype.renderQuestion = function () {
|
|
8781
8781
|
if (!this.question.isVisible)
|
|
8782
|
-
return
|
|
8782
|
+
return g(k, null);
|
|
8783
8783
|
if (!this.cell.isChoice)
|
|
8784
8784
|
return reactquestion_SurveyQuestion.renderQuestionBody(this.creator, this.question);
|
|
8785
8785
|
if (this.cell.isOtherChoice)
|
|
@@ -8791,15 +8791,15 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell = /** @cla
|
|
|
8791
8791
|
SurveyQuestionMatrixDropdownCell.prototype.renderOtherComment = function () {
|
|
8792
8792
|
var question = this.cell.question;
|
|
8793
8793
|
var cssClasses = question.cssClasses || {};
|
|
8794
|
-
return
|
|
8794
|
+
return g(SurveyQuestionOtherValueItem, { question: question, cssClasses: cssClasses, otherCss: cssClasses.other, isDisplayMode: question.isInputReadOnly });
|
|
8795
8795
|
};
|
|
8796
8796
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellCheckboxButton = function () {
|
|
8797
8797
|
var key = this.cell.question.id + "item" + this.cell.choiceIndex;
|
|
8798
|
-
return (
|
|
8798
|
+
return (g(reactquestion_checkbox_SurveyQuestionCheckboxItem, { key: key, question: this.cell.question, cssClasses: this.cell.question.cssClasses, isDisplayMode: this.cell.question.isInputReadOnly, item: this.cell.item, isFirst: this.cell.isFirstChoice, index: this.cell.choiceIndex.toString(), hideCaption: true }));
|
|
8799
8799
|
};
|
|
8800
8800
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellRadiogroupButton = function () {
|
|
8801
8801
|
var key = this.cell.question.id + "item" + this.cell.choiceIndex;
|
|
8802
|
-
return (
|
|
8802
|
+
return (g(reactquestion_radiogroup_SurveyQuestionRadioItem, { key: key, question: this.cell.question, cssClasses: this.cell.question.cssClasses, isDisplayMode: this.cell.question.isInputReadOnly, item: this.cell.item, index: this.cell.choiceIndex.toString(), isChecked: this.cell.question.value === this.cell.item.value, isDisabled: this.cell.question.isReadOnly || !this.cell.item.isEnabled, hideCaption: true }));
|
|
8803
8803
|
};
|
|
8804
8804
|
return SurveyQuestionMatrixDropdownCell;
|
|
8805
8805
|
}(reactquestion_SurveyQuestionAndErrorsCell));
|
|
@@ -8833,7 +8833,7 @@ var SurveyQuestionMatrixDropdown = /** @class */ (function (_super) {
|
|
|
8833
8833
|
}(reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownBase));
|
|
8834
8834
|
|
|
8835
8835
|
ReactQuestionFactory.Instance.registerQuestion("matrixdropdown", function (props) {
|
|
8836
|
-
return
|
|
8836
|
+
return g(SurveyQuestionMatrixDropdown, props);
|
|
8837
8837
|
});
|
|
8838
8838
|
|
|
8839
8839
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_matrixdynamic.tsx
|
|
@@ -8880,7 +8880,7 @@ var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamic = /** @class */ (fun
|
|
|
8880
8880
|
var mainDiv = showTable
|
|
8881
8881
|
? this.renderTableDiv()
|
|
8882
8882
|
: this.renderNoRowsContent(cssClasses);
|
|
8883
|
-
return (
|
|
8883
|
+
return (g("div", null,
|
|
8884
8884
|
this.renderAddRowButtonOnTop(cssClasses),
|
|
8885
8885
|
mainDiv,
|
|
8886
8886
|
this.renderAddRowButtonOnBottom(cssClasses)));
|
|
@@ -8897,9 +8897,9 @@ var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamic = /** @class */ (fun
|
|
|
8897
8897
|
};
|
|
8898
8898
|
SurveyQuestionMatrixDynamic.prototype.renderNoRowsContent = function (cssClasses) {
|
|
8899
8899
|
var text = this.renderLocString(this.matrix.locEmptyRowsText);
|
|
8900
|
-
var textDiv =
|
|
8900
|
+
var textDiv = g("div", { className: cssClasses.emptyRowsText }, text);
|
|
8901
8901
|
var btn = this.matrix.renderedTable.showAddRow ? this.renderAddRowButton(cssClasses, true) : undefined;
|
|
8902
|
-
return (
|
|
8902
|
+
return (g("div", { className: cssClasses.emptyRowsSection },
|
|
8903
8903
|
textDiv,
|
|
8904
8904
|
btn));
|
|
8905
8905
|
};
|
|
@@ -8914,7 +8914,7 @@ var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamic = /** @class */ (fun
|
|
|
8914
8914
|
}(reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownBase));
|
|
8915
8915
|
|
|
8916
8916
|
ReactQuestionFactory.Instance.registerQuestion("matrixdynamic", function (props) {
|
|
8917
|
-
return
|
|
8917
|
+
return g(reactquestion_matrixdynamic_SurveyQuestionMatrixDynamic, props);
|
|
8918
8918
|
});
|
|
8919
8919
|
var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamicAddButton = /** @class */ (function (_super) {
|
|
8920
8920
|
reactquestion_matrixdynamic_extends(SurveyQuestionMatrixDynamicAddButton, _super);
|
|
@@ -8935,16 +8935,16 @@ var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamicAddButton = /** @clas
|
|
|
8935
8935
|
};
|
|
8936
8936
|
SurveyQuestionMatrixDynamicAddButton.prototype.renderElement = function () {
|
|
8937
8937
|
var addRowText = this.renderLocString(this.matrix.locAddRowText);
|
|
8938
|
-
var addButton = (
|
|
8938
|
+
var addButton = (g("button", { className: this.matrix.getAddRowButtonCss(this.props.isEmptySection), type: "button", disabled: this.matrix.isInputReadOnly, onClick: this.matrix.isDesignMode ? undefined : this.handleOnRowAddClick },
|
|
8939
8939
|
addRowText,
|
|
8940
|
-
|
|
8941
|
-
return (this.props.isEmptySection ? addButton :
|
|
8940
|
+
g("span", { className: this.props.cssClasses.iconAdd })));
|
|
8941
|
+
return (this.props.isEmptySection ? addButton : g("div", { className: this.props.cssClasses.footer }, addButton));
|
|
8942
8942
|
};
|
|
8943
8943
|
return SurveyQuestionMatrixDynamicAddButton;
|
|
8944
8944
|
}(ReactSurveyElement));
|
|
8945
8945
|
|
|
8946
8946
|
ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn", function (props) {
|
|
8947
|
-
return
|
|
8947
|
+
return g(reactquestion_matrixdynamic_SurveyQuestionMatrixDynamicAddButton, props);
|
|
8948
8948
|
});
|
|
8949
8949
|
|
|
8950
8950
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-add-btn.tsx
|
|
@@ -9191,7 +9191,7 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamic = /** @class */ (funct
|
|
|
9191
9191
|
var _this = this;
|
|
9192
9192
|
var panels = [];
|
|
9193
9193
|
this.question.renderedPanels.forEach(function (panel, index) {
|
|
9194
|
-
panels.push(
|
|
9194
|
+
panels.push(g(reactquestion_paneldynamic_SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: _this.question, index: index, cssClasses: _this.question.cssClasses, isDisplayMode: _this.isDisplayMode, creator: _this.creator }));
|
|
9195
9195
|
});
|
|
9196
9196
|
var btnAdd = this.question.isRenderModeList && this.question["showLegacyNavigation"]
|
|
9197
9197
|
? this.renderAddRowButton()
|
|
@@ -9204,10 +9204,10 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamic = /** @class */ (funct
|
|
|
9204
9204
|
: null;
|
|
9205
9205
|
var navV2 = this.renderNavigatorV2();
|
|
9206
9206
|
var noEntriesPlaceholder = this.renderPlaceholder();
|
|
9207
|
-
return (
|
|
9207
|
+
return (g("div", { className: this.question.cssClasses.root },
|
|
9208
9208
|
noEntriesPlaceholder,
|
|
9209
9209
|
navTop,
|
|
9210
|
-
|
|
9210
|
+
g("div", { className: this.question.cssClasses.panelsContainer }, panels),
|
|
9211
9211
|
navBottom,
|
|
9212
9212
|
btnAdd,
|
|
9213
9213
|
navV2));
|
|
@@ -9228,9 +9228,9 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamic = /** @class */ (funct
|
|
|
9228
9228
|
var progressClass = this.question.isProgressTopShowing
|
|
9229
9229
|
? this.question.cssClasses.progressTop
|
|
9230
9230
|
: this.question.cssClasses.progressBottom;
|
|
9231
|
-
return (
|
|
9232
|
-
|
|
9233
|
-
|
|
9231
|
+
return (g("div", { className: progressClass },
|
|
9232
|
+
g("div", { style: { clear: "both" } },
|
|
9233
|
+
g("div", { className: this.question.cssClasses.progressContainer },
|
|
9234
9234
|
btnPrev,
|
|
9235
9235
|
range,
|
|
9236
9236
|
btnNext),
|
|
@@ -9238,17 +9238,17 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamic = /** @class */ (funct
|
|
|
9238
9238
|
this.renderProgressText())));
|
|
9239
9239
|
};
|
|
9240
9240
|
SurveyQuestionPanelDynamic.prototype.renderProgressText = function () {
|
|
9241
|
-
return (
|
|
9241
|
+
return (g(paneldynamic_progress_text_SurveyQuestionPanelDynamicProgressText, { data: { question: this.question } }));
|
|
9242
9242
|
};
|
|
9243
9243
|
SurveyQuestionPanelDynamic.prototype.rendrerPrevButton = function () {
|
|
9244
|
-
return (
|
|
9244
|
+
return (g(paneldynamic_prev_btn_SurveyQuestionPanelDynamicPrevButton, { data: { question: this.question } }));
|
|
9245
9245
|
};
|
|
9246
9246
|
SurveyQuestionPanelDynamic.prototype.rendrerNextButton = function () {
|
|
9247
|
-
return (
|
|
9247
|
+
return (g(paneldynamic_next_btn_SurveyQuestionPanelDynamicNextButton, { data: { question: this.question } }));
|
|
9248
9248
|
};
|
|
9249
9249
|
SurveyQuestionPanelDynamic.prototype.renderRange = function () {
|
|
9250
|
-
return (
|
|
9251
|
-
|
|
9250
|
+
return (g("div", { className: this.question.cssClasses.progress },
|
|
9251
|
+
g("div", { className: this.question.cssClasses.progressBar, style: { width: this.question.progress }, role: "progressbar" })));
|
|
9252
9252
|
};
|
|
9253
9253
|
SurveyQuestionPanelDynamic.prototype.renderAddRowButton = function () {
|
|
9254
9254
|
return ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
|
|
@@ -9259,16 +9259,16 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamic = /** @class */ (funct
|
|
|
9259
9259
|
if (!this.question.showNavigation)
|
|
9260
9260
|
return null;
|
|
9261
9261
|
var range = this.question.isRangeShowing && this.question.isProgressBottomShowing ? this.renderRange() : null;
|
|
9262
|
-
return (
|
|
9263
|
-
|
|
9262
|
+
return (g("div", { className: this.question.cssClasses.footer },
|
|
9263
|
+
g("hr", { className: this.question.cssClasses.separator }),
|
|
9264
9264
|
range,
|
|
9265
|
-
this.question.footerToolbar.visibleActions.length ? (
|
|
9266
|
-
|
|
9265
|
+
this.question.footerToolbar.visibleActions.length ? (g("div", { className: this.question.cssClasses.footerButtonsContainer },
|
|
9266
|
+
g(action_bar_SurveyActionBar, { model: this.question.footerToolbar }))) : null));
|
|
9267
9267
|
};
|
|
9268
9268
|
SurveyQuestionPanelDynamic.prototype.renderPlaceholder = function () {
|
|
9269
9269
|
if (this.question.getShowNoEntriesPlaceholder()) {
|
|
9270
|
-
return (
|
|
9271
|
-
|
|
9270
|
+
return (g("div", { className: this.question.cssClasses.noEntriesPlaceholder },
|
|
9271
|
+
g("span", null, this.renderLocString(this.question.locNoEntriesText)),
|
|
9272
9272
|
this.renderAddRowButton()));
|
|
9273
9273
|
}
|
|
9274
9274
|
return null;
|
|
@@ -9306,9 +9306,9 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamicItem = /** @class */ (f
|
|
|
9306
9306
|
var panel = _super.prototype.render.call(this);
|
|
9307
9307
|
var removeButton = this.renderButton();
|
|
9308
9308
|
var separator = this.question.showSeparator(this.index) ?
|
|
9309
|
-
(
|
|
9310
|
-
return (
|
|
9311
|
-
|
|
9309
|
+
(g("hr", { className: this.question.cssClasses.separator })) : null;
|
|
9310
|
+
return (g(k, null,
|
|
9311
|
+
g("div", { className: this.question.getPanelWrapperCss(this.panel) },
|
|
9312
9312
|
panel,
|
|
9313
9313
|
removeButton),
|
|
9314
9314
|
separator));
|
|
@@ -9327,7 +9327,7 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamicItem = /** @class */ (f
|
|
|
9327
9327
|
}(panel_SurveyPanel));
|
|
9328
9328
|
|
|
9329
9329
|
ReactQuestionFactory.Instance.registerQuestion("paneldynamic", function (props) {
|
|
9330
|
-
return
|
|
9330
|
+
return g(reactquestion_paneldynamic_SurveyQuestionPanelDynamic, props);
|
|
9331
9331
|
});
|
|
9332
9332
|
|
|
9333
9333
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/progress.tsx
|
|
@@ -9380,25 +9380,25 @@ var progress_SurveyProgress = /** @class */ (function (_super) {
|
|
|
9380
9380
|
var progressStyle = {
|
|
9381
9381
|
width: this.progress + "%",
|
|
9382
9382
|
};
|
|
9383
|
-
return (
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9383
|
+
return (g("div", { className: this.survey.getProgressCssClasses(this.props.container) },
|
|
9384
|
+
g("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
|
|
9385
|
+
g("span", { className: external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["SurveyProgressModel"].getProgressTextInBarCss(this.css) }, this.progressText)),
|
|
9386
|
+
g("span", { className: external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["SurveyProgressModel"].getProgressTextUnderBarCss(this.css) }, this.progressText)));
|
|
9387
9387
|
};
|
|
9388
9388
|
return SurveyProgress;
|
|
9389
9389
|
}(SurveyNavigationBase));
|
|
9390
9390
|
|
|
9391
9391
|
ReactElementFactory.Instance.registerElement("sv-progress-pages", function (props) {
|
|
9392
|
-
return
|
|
9392
|
+
return g(progress_SurveyProgress, props);
|
|
9393
9393
|
});
|
|
9394
9394
|
ReactElementFactory.Instance.registerElement("sv-progress-questions", function (props) {
|
|
9395
|
-
return
|
|
9395
|
+
return g(progress_SurveyProgress, props);
|
|
9396
9396
|
});
|
|
9397
9397
|
ReactElementFactory.Instance.registerElement("sv-progress-correctquestions", function (props) {
|
|
9398
|
-
return
|
|
9398
|
+
return g(progress_SurveyProgress, props);
|
|
9399
9399
|
});
|
|
9400
9400
|
ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions", function (props) {
|
|
9401
|
-
return
|
|
9401
|
+
return g(progress_SurveyProgress, props);
|
|
9402
9402
|
});
|
|
9403
9403
|
|
|
9404
9404
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/progressButtons.tsx
|
|
@@ -9426,7 +9426,7 @@ var progressButtons_SurveyProgressButtons = /** @class */ (function (_super) {
|
|
|
9426
9426
|
progressButtons_extends(SurveyProgressButtons, _super);
|
|
9427
9427
|
function SurveyProgressButtons(props) {
|
|
9428
9428
|
var _this = _super.call(this, props) || this;
|
|
9429
|
-
_this.listContainerRef =
|
|
9429
|
+
_this.listContainerRef = b();
|
|
9430
9430
|
return _this;
|
|
9431
9431
|
}
|
|
9432
9432
|
Object.defineProperty(SurveyProgressButtons.prototype, "model", {
|
|
@@ -9456,20 +9456,20 @@ var progressButtons_SurveyProgressButtons = /** @class */ (function (_super) {
|
|
|
9456
9456
|
};
|
|
9457
9457
|
SurveyProgressButtons.prototype.render = function () {
|
|
9458
9458
|
var _this = this;
|
|
9459
|
-
return (
|
|
9460
|
-
this.state.canShowHeader ?
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9459
|
+
return (g("div", { className: this.model.getRootCss(this.props.container), style: { "maxWidth": this.model.progressWidth }, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
|
|
9460
|
+
this.state.canShowHeader ? g("div", { className: this.css.progressButtonsHeader },
|
|
9461
|
+
g("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
|
|
9462
|
+
g("div", { className: this.css.progressButtonsContainer },
|
|
9463
|
+
g("div", { className: this.model.getScrollButtonCss(this.state.hasScroller, true), role: "button", onClick: function () {
|
|
9464
9464
|
return _this.clickScrollButton(_this.listContainerRef.current, true);
|
|
9465
9465
|
} }),
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
|
|
9466
|
+
g("div", { className: this.css.progressButtonsListContainer, ref: this.listContainerRef },
|
|
9467
|
+
g("ul", { className: this.css.progressButtonsList }, this.getListElements())),
|
|
9468
|
+
g("div", { className: this.model.getScrollButtonCss(this.state.hasScroller, false), role: "button", onClick: function () {
|
|
9469
9469
|
return _this.clickScrollButton(_this.listContainerRef.current, false);
|
|
9470
9470
|
} })),
|
|
9471
|
-
this.state.canShowFooter ?
|
|
9472
|
-
|
|
9471
|
+
this.state.canShowFooter ? g("div", { className: this.css.progressButtonsFooter },
|
|
9472
|
+
g("div", { className: this.css.progressButtonsPageTitle, title: this.model.footerText }, this.model.footerText)) : null));
|
|
9473
9473
|
};
|
|
9474
9474
|
SurveyProgressButtons.prototype.getListElements = function () {
|
|
9475
9475
|
var _this = this;
|
|
@@ -9482,17 +9482,17 @@ var progressButtons_SurveyProgressButtons = /** @class */ (function (_super) {
|
|
|
9482
9482
|
SurveyProgressButtons.prototype.renderListElement = function (page, index) {
|
|
9483
9483
|
var _this = this;
|
|
9484
9484
|
var text = reactquestion_element_SurveyElementBase.renderLocString(page.locNavigationTitle);
|
|
9485
|
-
return (
|
|
9485
|
+
return (g("li", { key: "listelement" + index, className: this.model.getListElementCss(index), onClick: this.model.isListElementClickable(index)
|
|
9486
9486
|
? function () { return _this.model.clickListElement(page); }
|
|
9487
9487
|
: undefined, "data-page-number": this.model.getItemNumber(page) },
|
|
9488
|
-
|
|
9489
|
-
this.state.canShowItemTitles ?
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9488
|
+
g("div", { className: this.css.progressButtonsConnector }),
|
|
9489
|
+
this.state.canShowItemTitles ? g(k, null,
|
|
9490
|
+
g("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle }, text),
|
|
9491
|
+
g("div", { className: this.css.progressButtonsPageDescription, title: page.navigationDescription }, page.navigationDescription)) : null,
|
|
9492
|
+
g("div", { className: this.css.progressButtonsButton },
|
|
9493
|
+
g("div", { className: this.css.progressButtonsButtonBackground }),
|
|
9494
|
+
g("div", { className: this.css.progressButtonsButtonContent }),
|
|
9495
|
+
g("span", null, this.model.getItemNumber(page)))));
|
|
9496
9496
|
};
|
|
9497
9497
|
SurveyProgressButtons.prototype.clickScrollButton = function (listContainerElement, isLeftScroll) {
|
|
9498
9498
|
if (!!listContainerElement) {
|
|
@@ -9516,7 +9516,7 @@ var progressButtons_SurveyProgressButtons = /** @class */ (function (_super) {
|
|
|
9516
9516
|
}(SurveyNavigationBase));
|
|
9517
9517
|
|
|
9518
9518
|
ReactElementFactory.Instance.registerElement("sv-progress-buttons", function (props) {
|
|
9519
|
-
return
|
|
9519
|
+
return g(progressButtons_SurveyProgressButtons, props);
|
|
9520
9520
|
});
|
|
9521
9521
|
|
|
9522
9522
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/list/list-item.tsx
|
|
@@ -9766,20 +9766,20 @@ var progressToc_SurveyProgressToc = /** @class */ (function (_super) {
|
|
|
9766
9766
|
var tocModel = this.props.model;
|
|
9767
9767
|
var content;
|
|
9768
9768
|
if (tocModel.isMobile) {
|
|
9769
|
-
content =
|
|
9770
|
-
|
|
9771
|
-
|
|
9769
|
+
content = g("div", { onClick: tocModel.togglePopup },
|
|
9770
|
+
g(svg_icon_SvgIcon, { iconName: tocModel.icon, size: 24 }),
|
|
9771
|
+
g(popup_Popup, { model: tocModel.popupModel }));
|
|
9772
9772
|
}
|
|
9773
9773
|
else {
|
|
9774
|
-
content =
|
|
9774
|
+
content = g(list_List, { model: tocModel.listModel });
|
|
9775
9775
|
}
|
|
9776
|
-
return (
|
|
9776
|
+
return (g("div", { className: tocModel.containerCss }, content));
|
|
9777
9777
|
};
|
|
9778
9778
|
return SurveyProgressToc;
|
|
9779
9779
|
}(SurveyNavigationBase));
|
|
9780
9780
|
|
|
9781
9781
|
ReactElementFactory.Instance.registerElement("sv-navigation-toc", function (props) {
|
|
9782
|
-
return
|
|
9782
|
+
return g(progressToc_SurveyProgressToc, props);
|
|
9783
9783
|
});
|
|
9784
9784
|
|
|
9785
9785
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_rating.tsx
|
|
@@ -9840,18 +9840,18 @@ var reactquestion_rating_SurveyQuestionRating = /** @class */ (function (_super)
|
|
|
9840
9840
|
var maxText = this.question.maxRateDescription
|
|
9841
9841
|
? this.renderLocString(this.question.locMaxRateDescription)
|
|
9842
9842
|
: null;
|
|
9843
|
-
return (
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
!!this.question.hasMinLabel ?
|
|
9843
|
+
return (g("div", { className: this.question.ratingRootCss, ref: function (div) { return (_this.setControl(div)); } },
|
|
9844
|
+
g("fieldset", { role: "radiogroup" },
|
|
9845
|
+
g("legend", { role: "presentation", className: "sv-hidden" }),
|
|
9846
|
+
!!this.question.hasMinLabel ? g("span", { className: cssClasses.minText }, minText) : null,
|
|
9847
9847
|
this.question.renderedRateItems.map(function (item, index) { return _this.renderItem(item, index); }),
|
|
9848
|
-
!!this.question.hasMaxLabel ?
|
|
9848
|
+
!!this.question.hasMaxLabel ? g("span", { className: cssClasses.maxText }, maxText) : null)));
|
|
9849
9849
|
};
|
|
9850
9850
|
return SurveyQuestionRating;
|
|
9851
9851
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
9852
9852
|
|
|
9853
9853
|
ReactQuestionFactory.Instance.registerQuestion("rating", function (props) {
|
|
9854
|
-
return
|
|
9854
|
+
return g(reactquestion_rating_SurveyQuestionRating, props);
|
|
9855
9855
|
});
|
|
9856
9856
|
|
|
9857
9857
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/rating-dropdown.tsx
|
|
@@ -9883,13 +9883,13 @@ var rating_dropdown_SurveyQuestionRatingDropdown = /** @class */ (function (_sup
|
|
|
9883
9883
|
SurveyQuestionRatingDropdown.prototype.renderElement = function () {
|
|
9884
9884
|
var cssClasses = this.question.cssClasses;
|
|
9885
9885
|
var select = this.renderSelect(cssClasses);
|
|
9886
|
-
return (
|
|
9886
|
+
return (g("div", { className: this.question.cssClasses.rootDropdown }, select));
|
|
9887
9887
|
};
|
|
9888
9888
|
return SurveyQuestionRatingDropdown;
|
|
9889
9889
|
}(dropdown_base_SurveyQuestionDropdownBase));
|
|
9890
9890
|
|
|
9891
9891
|
ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown", function (props) {
|
|
9892
|
-
return
|
|
9892
|
+
return g(rating_dropdown_SurveyQuestionRatingDropdown, props);
|
|
9893
9893
|
});
|
|
9894
9894
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("rating", "dropdown", "sv-rating-dropdown");
|
|
9895
9895
|
|
|
@@ -9927,13 +9927,13 @@ var reactquestion_expression_SurveyQuestionExpression = /** @class */ (function
|
|
|
9927
9927
|
SurveyQuestionExpression.prototype.renderElement = function () {
|
|
9928
9928
|
var _this = this;
|
|
9929
9929
|
var cssClasses = this.question.cssClasses;
|
|
9930
|
-
return (
|
|
9930
|
+
return (g("div", { id: this.question.inputId, className: cssClasses.root, ref: function (div) { return (_this.setControl(div)); } }, this.question.formatedValue));
|
|
9931
9931
|
};
|
|
9932
9932
|
return SurveyQuestionExpression;
|
|
9933
9933
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
9934
9934
|
|
|
9935
9935
|
ReactQuestionFactory.Instance.registerQuestion("expression", function (props) {
|
|
9936
|
-
return
|
|
9936
|
+
return g(reactquestion_expression_SurveyQuestionExpression, props);
|
|
9937
9937
|
});
|
|
9938
9938
|
|
|
9939
9939
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/react-popup-survey.tsx
|
|
@@ -9981,8 +9981,8 @@ var react_popup_survey_PopupSurvey = /** @class */ (function (_super) {
|
|
|
9981
9981
|
style.width = this.popup.renderedWidth;
|
|
9982
9982
|
style.maxWidth = this.popup.renderedWidth;
|
|
9983
9983
|
}
|
|
9984
|
-
return (
|
|
9985
|
-
|
|
9984
|
+
return (g("div", { className: this.popup.cssRoot, style: style, onScroll: function () { return _this.popup.onScroll(); } },
|
|
9985
|
+
g("div", { className: this.popup.cssRootContent },
|
|
9986
9986
|
header,
|
|
9987
9987
|
body)));
|
|
9988
9988
|
};
|
|
@@ -10007,46 +10007,46 @@ var react_popup_survey_PopupSurvey = /** @class */ (function (_super) {
|
|
|
10007
10007
|
if (popup.allowFullScreen) {
|
|
10008
10008
|
allowFullScreenButon = this.renderAllowFullScreenButon(this.popup);
|
|
10009
10009
|
}
|
|
10010
|
-
return (
|
|
10010
|
+
return (g("div", { className: popup.cssHeaderRoot },
|
|
10011
10011
|
titleCollapsed,
|
|
10012
|
-
|
|
10012
|
+
g("div", { className: popup.cssHeaderButtonsContainer },
|
|
10013
10013
|
allowFullScreenButon,
|
|
10014
|
-
|
|
10014
|
+
g("div", { className: popup.cssHeaderCollapseButton, onClick: this.handleOnExpanded }, expandCollapseIcon),
|
|
10015
10015
|
closeButton)));
|
|
10016
10016
|
};
|
|
10017
10017
|
PopupSurvey.prototype.renderTitleCollapsed = function (popup) {
|
|
10018
10018
|
if (!popup.locTitle)
|
|
10019
10019
|
return null;
|
|
10020
|
-
return
|
|
10020
|
+
return g("div", { className: popup.cssHeaderTitleCollapsed }, popup.locTitle.renderedHtml);
|
|
10021
10021
|
};
|
|
10022
10022
|
PopupSurvey.prototype.renderExpandIcon = function () {
|
|
10023
|
-
return
|
|
10023
|
+
return g(svg_icon_SvgIcon, { iconName: "icon-restore_16x16", size: 16 });
|
|
10024
10024
|
};
|
|
10025
10025
|
PopupSurvey.prototype.renderCollapseIcon = function () {
|
|
10026
|
-
return
|
|
10026
|
+
return g(svg_icon_SvgIcon, { iconName: "icon-minimize_16x16", size: 16 });
|
|
10027
10027
|
};
|
|
10028
10028
|
PopupSurvey.prototype.renderCloseButton = function (popup) {
|
|
10029
10029
|
var _this = this;
|
|
10030
|
-
return (
|
|
10030
|
+
return (g("div", { className: popup.cssHeaderCloseButton, onClick: function () {
|
|
10031
10031
|
popup.hide();
|
|
10032
10032
|
if (typeof _this.props.onClose == "function") {
|
|
10033
10033
|
_this.props.onClose();
|
|
10034
10034
|
}
|
|
10035
10035
|
} },
|
|
10036
|
-
|
|
10036
|
+
g(svg_icon_SvgIcon, { iconName: "icon-close_16x16", size: 16 })));
|
|
10037
10037
|
};
|
|
10038
10038
|
PopupSurvey.prototype.renderAllowFullScreenButon = function (popup) {
|
|
10039
10039
|
var Icon;
|
|
10040
10040
|
if (popup.isFullScreen) {
|
|
10041
|
-
Icon =
|
|
10041
|
+
Icon = g(svg_icon_SvgIcon, { iconName: "icon-back-to-panel_16x16", size: 16 });
|
|
10042
10042
|
}
|
|
10043
10043
|
else {
|
|
10044
|
-
Icon =
|
|
10044
|
+
Icon = g(svg_icon_SvgIcon, { iconName: "icon-full-screen_16x16", size: 16 });
|
|
10045
10045
|
}
|
|
10046
|
-
return (
|
|
10046
|
+
return (g("div", { className: popup.cssHeaderFullScreenButton, onClick: function () { popup.toggleFullScreen(); } }, Icon));
|
|
10047
10047
|
};
|
|
10048
10048
|
PopupSurvey.prototype.renderBody = function () {
|
|
10049
|
-
return
|
|
10049
|
+
return g("div", { className: this.popup.cssBody }, this.doRender());
|
|
10050
10050
|
};
|
|
10051
10051
|
PopupSurvey.prototype.createSurvey = function (newProps) {
|
|
10052
10052
|
if (!newProps)
|
|
@@ -10112,8 +10112,8 @@ var imagepicker_SurveyQuestionImagePicker = /** @class */ (function (_super) {
|
|
|
10112
10112
|
});
|
|
10113
10113
|
SurveyQuestionImagePicker.prototype.renderElement = function () {
|
|
10114
10114
|
var cssClasses = this.question.cssClasses;
|
|
10115
|
-
return (
|
|
10116
|
-
|
|
10115
|
+
return (g("fieldset", { className: this.question.getSelectBaseRootCss() },
|
|
10116
|
+
g("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
10117
10117
|
this.question.hasColumns ? this.getColumns(cssClasses) : this.getItems(cssClasses)));
|
|
10118
10118
|
};
|
|
10119
10119
|
SurveyQuestionImagePicker.prototype.getColumns = function (cssClasses) {
|
|
@@ -10122,7 +10122,7 @@ var imagepicker_SurveyQuestionImagePicker = /** @class */ (function (_super) {
|
|
|
10122
10122
|
var items = column.map(function (item, ii) {
|
|
10123
10123
|
return _this.renderItem("item" + ii, item, cssClasses);
|
|
10124
10124
|
});
|
|
10125
|
-
return (
|
|
10125
|
+
return (g("div", { key: "column" + ci + _this.question.getItemsColumnKey(column), className: _this.question.getColumnClass(), role: "presentation" }, items));
|
|
10126
10126
|
});
|
|
10127
10127
|
};
|
|
10128
10128
|
SurveyQuestionImagePicker.prototype.getItems = function (cssClasses) {
|
|
@@ -10142,7 +10142,7 @@ var imagepicker_SurveyQuestionImagePicker = /** @class */ (function (_super) {
|
|
|
10142
10142
|
configurable: true
|
|
10143
10143
|
});
|
|
10144
10144
|
SurveyQuestionImagePicker.prototype.renderItem = function (key, item, cssClasses) {
|
|
10145
|
-
var renderedItem =
|
|
10145
|
+
var renderedItem = g(imagepicker_SurveyQuestionImagePickerItem, { key: key, question: this.question, item: item, cssClasses: cssClasses });
|
|
10146
10146
|
var survey = this.question.survey;
|
|
10147
10147
|
var wrappedItem = null;
|
|
10148
10148
|
if (!!survey) {
|
|
@@ -10229,15 +10229,15 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
|
|
|
10229
10229
|
var itemClass = question.getItemClass(item);
|
|
10230
10230
|
var text = null;
|
|
10231
10231
|
if (question.showLabel) {
|
|
10232
|
-
text = (
|
|
10232
|
+
text = (g("span", { className: question.cssClasses.itemText }, item.text ? reactquestion_element_SurveyElementBase.renderLocString(item.locText) : item.value));
|
|
10233
10233
|
}
|
|
10234
10234
|
var style = { objectFit: this.question.imageFit };
|
|
10235
10235
|
var control = null;
|
|
10236
10236
|
if (item.locImageLink.renderedHtml && this.question.contentMode === "image") {
|
|
10237
|
-
control = (
|
|
10237
|
+
control = (g("img", { className: cssClasses.image, src: item.locImageLink.renderedHtml, width: this.question.renderedImageWidth, height: this.question.renderedImageHeight, alt: item.locText.renderedHtml, style: style, onLoad: function (event) { _this.question["onContentLoaded"](item, event.nativeEvent); }, onError: function (event) { item.onErrorHandler(item, event.nativeEvent); } }));
|
|
10238
10238
|
}
|
|
10239
10239
|
if (item.locImageLink.renderedHtml && this.question.contentMode === "video") {
|
|
10240
|
-
control = (
|
|
10240
|
+
control = (g("video", { controls: true, className: cssClasses.image, src: item.locImageLink.renderedHtml, width: this.question.renderedImageWidth, height: this.question.renderedImageHeight, style: style, onLoadedMetadata: function (event) { _this.question["onContentLoaded"](item, event.nativeEvent); }, onError: function (event) { item.onErrorHandler(item, event.nativeEvent); } }));
|
|
10241
10241
|
}
|
|
10242
10242
|
if (!item.locImageLink.renderedHtml || item.contentNotLoaded) {
|
|
10243
10243
|
var style_1 = {
|
|
@@ -10245,17 +10245,17 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
|
|
|
10245
10245
|
height: this.question.renderedImageHeight,
|
|
10246
10246
|
objectFit: this.question.imageFit
|
|
10247
10247
|
};
|
|
10248
|
-
control = (
|
|
10249
|
-
|
|
10248
|
+
control = (g("div", { className: cssClasses.itemNoImage, style: style_1 }, cssClasses.itemNoImageSvgIcon ?
|
|
10249
|
+
g(svg_icon_SvgIcon, { className: cssClasses.itemNoImageSvgIcon, iconName: this.question.cssClasses.itemNoImageSvgIconId, size: 48 }) :
|
|
10250
10250
|
null));
|
|
10251
10251
|
}
|
|
10252
|
-
var renderedItem = (
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10252
|
+
var renderedItem = (g("div", { className: itemClass },
|
|
10253
|
+
g("label", { className: cssClasses.label },
|
|
10254
|
+
g("input", { className: cssClasses.itemControl, id: this.question.getItemId(item), type: this.question.inputType, name: this.question.questionName, checked: isChecked, value: item.value, disabled: !this.question.getItemEnabled(item), readOnly: this.question.isReadOnlyAttr, onChange: this.handleOnChange, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
10255
|
+
g("div", { className: this.question.cssClasses.itemDecorator },
|
|
10256
|
+
g("div", { className: this.question.cssClasses.imageContainer },
|
|
10257
10257
|
!!this.question.cssClasses.checkedItemDecorator ?
|
|
10258
|
-
|
|
10258
|
+
g("span", { className: this.question.cssClasses.checkedItemDecorator }, !!this.question.cssClasses.checkedItemSvgIconId ? g(svg_icon_SvgIcon, { size: "auto", className: this.question.cssClasses.checkedItemSvgIcon, iconName: this.question.cssClasses.checkedItemSvgIconId }) : null) : null,
|
|
10259
10259
|
control),
|
|
10260
10260
|
text))));
|
|
10261
10261
|
return renderedItem;
|
|
@@ -10264,7 +10264,7 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
|
|
|
10264
10264
|
}(ReactSurveyElement));
|
|
10265
10265
|
|
|
10266
10266
|
ReactQuestionFactory.Instance.registerQuestion("imagepicker", function (props) {
|
|
10267
|
-
return
|
|
10267
|
+
return g(imagepicker_SurveyQuestionImagePicker, props);
|
|
10268
10268
|
});
|
|
10269
10269
|
|
|
10270
10270
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/image.tsx
|
|
@@ -10319,22 +10319,22 @@ var image_SurveyQuestionImage = /** @class */ (function (_super) {
|
|
|
10319
10319
|
}
|
|
10320
10320
|
var control = null;
|
|
10321
10321
|
if (this.question.renderedMode === "image") {
|
|
10322
|
-
control = (
|
|
10322
|
+
control = (g("img", { className: cssClasses, src: this.question.locImageLink.renderedHtml, alt: this.question.altText || this.question.title, width: this.question.renderedWidth, height: this.question.renderedHeight,
|
|
10323
10323
|
//alt={item.text || item.value}
|
|
10324
10324
|
style: style, onLoad: function (event) { _this.question.onLoadHandler(); }, onError: function (event) { _this.question.onErrorHandler(); } }));
|
|
10325
10325
|
}
|
|
10326
10326
|
if (this.question.renderedMode === "video") {
|
|
10327
|
-
control = (
|
|
10327
|
+
control = (g("video", { controls: true, className: cssClasses, src: this.question.locImageLink.renderedHtml, width: this.question.renderedWidth, height: this.question.renderedHeight, style: style, onLoadedMetadata: function (event) { _this.question.onLoadHandler(); }, onError: function (event) { _this.question.onErrorHandler(); } }));
|
|
10328
10328
|
}
|
|
10329
10329
|
if (this.question.renderedMode === "youtube") {
|
|
10330
|
-
control = (
|
|
10330
|
+
control = (g("iframe", { className: cssClasses, src: this.question.locImageLink.renderedHtml, width: this.question.renderedWidth, height: this.question.renderedHeight, style: style }));
|
|
10331
10331
|
}
|
|
10332
10332
|
var noImage = null;
|
|
10333
10333
|
if (!this.question.imageLink || this.question.contentNotLoaded) {
|
|
10334
|
-
noImage = (
|
|
10335
|
-
|
|
10334
|
+
noImage = (g("div", { className: this.question.cssClasses.noImage },
|
|
10335
|
+
g(svg_icon_SvgIcon, { iconName: this.question.cssClasses.noImageSvgIconId, size: 48 })));
|
|
10336
10336
|
}
|
|
10337
|
-
return
|
|
10337
|
+
return g("div", { className: this.question.cssClasses.root },
|
|
10338
10338
|
control,
|
|
10339
10339
|
noImage);
|
|
10340
10340
|
};
|
|
@@ -10342,7 +10342,7 @@ var image_SurveyQuestionImage = /** @class */ (function (_super) {
|
|
|
10342
10342
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
10343
10343
|
|
|
10344
10344
|
ReactQuestionFactory.Instance.registerQuestion("image", function (props) {
|
|
10345
|
-
return
|
|
10345
|
+
return g(image_SurveyQuestionImage, props);
|
|
10346
10346
|
});
|
|
10347
10347
|
|
|
10348
10348
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/signaturepad.tsx
|
|
@@ -10385,36 +10385,36 @@ var signaturepad_SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
|
10385
10385
|
var cssClasses = this.question.cssClasses;
|
|
10386
10386
|
var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
|
|
10387
10387
|
var clearButton = this.renderCleanButton();
|
|
10388
|
-
return (
|
|
10389
|
-
|
|
10390
|
-
|
|
10388
|
+
return (g("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: { width: this.question.renderedCanvasWidth } },
|
|
10389
|
+
g("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
|
10390
|
+
g("div", null,
|
|
10391
10391
|
this.renderBackgroundImage(),
|
|
10392
|
-
|
|
10392
|
+
g("canvas", { tabIndex: -1, className: this.question.cssClasses.canvas, onBlur: function (event) { _this.question.onBlur(event); } })),
|
|
10393
10393
|
clearButton,
|
|
10394
10394
|
loadingIndicator));
|
|
10395
10395
|
};
|
|
10396
10396
|
SurveyQuestionSignaturePad.prototype.renderBackgroundImage = function () {
|
|
10397
10397
|
if (!this.question.backgroundImage)
|
|
10398
10398
|
return null;
|
|
10399
|
-
return
|
|
10399
|
+
return g("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth } });
|
|
10400
10400
|
};
|
|
10401
10401
|
SurveyQuestionSignaturePad.prototype.renderLoadingIndicator = function () {
|
|
10402
|
-
return
|
|
10403
|
-
|
|
10402
|
+
return g("div", { className: this.question.cssClasses.loadingIndicator },
|
|
10403
|
+
g(loading_indicator_LoadingIndicatorComponent, null));
|
|
10404
10404
|
};
|
|
10405
10405
|
SurveyQuestionSignaturePad.prototype.renderCleanButton = function () {
|
|
10406
10406
|
var _this = this;
|
|
10407
10407
|
if (!this.question.canShowClearButton)
|
|
10408
10408
|
return null;
|
|
10409
10409
|
var cssClasses = this.question.cssClasses;
|
|
10410
|
-
return
|
|
10411
|
-
|
|
10410
|
+
return g("div", { className: cssClasses.controls },
|
|
10411
|
+
g("button", { type: "button", className: cssClasses.clearButton, title: this.question.clearButtonCaption, onClick: function () { return _this.question.clearValue(true); } }, this.question.cssClasses.clearButtonIconId ? g(svg_icon_SvgIcon, { iconName: this.question.cssClasses.clearButtonIconId, size: "auto" }) : g("span", null, "\u2716")));
|
|
10412
10412
|
};
|
|
10413
10413
|
return SurveyQuestionSignaturePad;
|
|
10414
10414
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
10415
10415
|
|
|
10416
10416
|
ReactQuestionFactory.Instance.registerQuestion("signaturepad", function (props) {
|
|
10417
|
-
return
|
|
10417
|
+
return g(signaturepad_SurveyQuestionSignaturePad, props);
|
|
10418
10418
|
});
|
|
10419
10419
|
|
|
10420
10420
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_buttongroup.tsx
|
|
@@ -10579,16 +10579,16 @@ var reactquestion_custom_SurveyQuestionComposite = /** @class */ (function (_sup
|
|
|
10579
10579
|
return !!this.question.contentPanel;
|
|
10580
10580
|
};
|
|
10581
10581
|
SurveyQuestionComposite.prototype.renderElement = function () {
|
|
10582
|
-
return (
|
|
10582
|
+
return (g(panel_SurveyPanel, { element: this.question.contentPanel, creator: this.creator, survey: this.question.survey }));
|
|
10583
10583
|
};
|
|
10584
10584
|
return SurveyQuestionComposite;
|
|
10585
10585
|
}(reactquestion_element_SurveyQuestionUncontrolledElement));
|
|
10586
10586
|
|
|
10587
10587
|
ReactQuestionFactory.Instance.registerQuestion("custom", function (props) {
|
|
10588
|
-
return
|
|
10588
|
+
return g(reactquestion_custom_SurveyQuestionCustom, props);
|
|
10589
10589
|
});
|
|
10590
10590
|
ReactQuestionFactory.Instance.registerQuestion("composite", function (props) {
|
|
10591
|
-
return
|
|
10591
|
+
return g(reactquestion_custom_SurveyQuestionComposite, props);
|
|
10592
10592
|
});
|
|
10593
10593
|
|
|
10594
10594
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/list/list-item-content.tsx
|
|
@@ -10647,7 +10647,7 @@ var list_item_content_ListItemContent = /** @class */ (function (_super) {
|
|
|
10647
10647
|
content.push(text);
|
|
10648
10648
|
}
|
|
10649
10649
|
if (this.item.markerIconName) {
|
|
10650
|
-
var icon = xn.createElement(svg_icon_SvgIcon, { key: "marker", className: this.item.cssClasses.itemMarkerIcon, iconName: this.item.markerIconName, size:
|
|
10650
|
+
var icon = xn.createElement(svg_icon_SvgIcon, { key: "marker", className: this.item.cssClasses.itemMarkerIcon, iconName: this.item.markerIconName, size: "auto" });
|
|
10651
10651
|
content.push(icon);
|
|
10652
10652
|
}
|
|
10653
10653
|
return xn.createElement(xn.Fragment, null, content);
|
|
@@ -11439,12 +11439,12 @@ var js_ui_assign = (undefined && undefined.__assign) || function () {
|
|
|
11439
11439
|
|
|
11440
11440
|
function renderSurvey(model, element, props) {
|
|
11441
11441
|
if (props === void 0) { props = {}; }
|
|
11442
|
-
var survey =
|
|
11442
|
+
var survey = g(reactSurvey_Survey, js_ui_assign({ model: model }, props));
|
|
11443
11443
|
X(survey, element);
|
|
11444
11444
|
}
|
|
11445
11445
|
function renderPopupSurvey(model, element, props) {
|
|
11446
11446
|
if (props === void 0) { props = {}; }
|
|
11447
|
-
var survey =
|
|
11447
|
+
var survey = g(react_popup_survey_PopupSurvey, js_ui_assign({ model: model }, props));
|
|
11448
11448
|
X(survey, element);
|
|
11449
11449
|
}
|
|
11450
11450
|
function doPopupSurvey(props) {
|
|
@@ -11493,7 +11493,7 @@ var preact = compat_module_namespaceObject;
|
|
|
11493
11493
|
|
|
11494
11494
|
|
|
11495
11495
|
|
|
11496
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
11496
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.14", "survey-js-ui");
|
|
11497
11497
|
|
|
11498
11498
|
|
|
11499
11499
|
/***/ }),
|