survey-js-ui 1.12.24 → 1.12.26
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 +470 -470
- 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.26
|
|
3
3
|
* Copyright (c) 2015-2025 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.26
|
|
114
114
|
* Copyright (c) 2015-2025 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.26
|
|
1047
1047
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
1048
1048
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
1049
1049
|
*/
|
|
@@ -1982,9 +1982,9 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
1982
1982
|
__webpack_require__.r(__webpack_exports__);
|
|
1983
1983
|
|
|
1984
1984
|
// EXPORTS
|
|
1985
|
-
__webpack_require__.d(__webpack_exports__, "useState", function() { return /* reexport */
|
|
1985
|
+
__webpack_require__.d(__webpack_exports__, "useState", function() { return /* reexport */ hooks_module_d; });
|
|
1986
1986
|
__webpack_require__.d(__webpack_exports__, "useId", function() { return /* reexport */ hooks_module_g; });
|
|
1987
|
-
__webpack_require__.d(__webpack_exports__, "useReducer", function() { return /* reexport */
|
|
1987
|
+
__webpack_require__.d(__webpack_exports__, "useReducer", function() { return /* reexport */ hooks_module_h; });
|
|
1988
1988
|
__webpack_require__.d(__webpack_exports__, "useEffect", function() { return /* reexport */ hooks_module_y; });
|
|
1989
1989
|
__webpack_require__.d(__webpack_exports__, "useLayoutEffect", function() { return /* reexport */ hooks_module_; });
|
|
1990
1990
|
__webpack_require__.d(__webpack_exports__, "useInsertionEffect", function() { return /* reexport */ compat_module_I; });
|
|
@@ -2004,7 +2004,7 @@ __webpack_require__.d(__webpack_exports__, "render", function() { return /* reex
|
|
|
2004
2004
|
__webpack_require__.d(__webpack_exports__, "hydrate", function() { return /* reexport */ tn; });
|
|
2005
2005
|
__webpack_require__.d(__webpack_exports__, "unmountComponentAtNode", function() { return /* reexport */ bn; });
|
|
2006
2006
|
__webpack_require__.d(__webpack_exports__, "createPortal", function() { return /* reexport */ compat_module_$; });
|
|
2007
|
-
__webpack_require__.d(__webpack_exports__, "createElement", function() { return /* reexport */
|
|
2007
|
+
__webpack_require__.d(__webpack_exports__, "createElement", function() { return /* reexport */ _; });
|
|
2008
2008
|
__webpack_require__.d(__webpack_exports__, "createContext", function() { return /* reexport */ J; });
|
|
2009
2009
|
__webpack_require__.d(__webpack_exports__, "createFactory", function() { return /* reexport */ dn; });
|
|
2010
2010
|
__webpack_require__.d(__webpack_exports__, "cloneElement", function() { return /* reexport */ _n; });
|
|
@@ -2143,7 +2143,7 @@ __webpack_require__.r(compat_module_namespaceObject);
|
|
|
2143
2143
|
__webpack_require__.d(compat_module_namespaceObject, "Component", function() { return x; });
|
|
2144
2144
|
__webpack_require__.d(compat_module_namespaceObject, "Fragment", function() { return k; });
|
|
2145
2145
|
__webpack_require__.d(compat_module_namespaceObject, "createContext", function() { return J; });
|
|
2146
|
-
__webpack_require__.d(compat_module_namespaceObject, "createElement", function() { return
|
|
2146
|
+
__webpack_require__.d(compat_module_namespaceObject, "createElement", function() { return _; });
|
|
2147
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; });
|
|
@@ -2154,9 +2154,9 @@ __webpack_require__.d(compat_module_namespaceObject, "useId", function() { retur
|
|
|
2154
2154
|
__webpack_require__.d(compat_module_namespaceObject, "useImperativeHandle", function() { return hooks_module_F; });
|
|
2155
2155
|
__webpack_require__.d(compat_module_namespaceObject, "useLayoutEffect", function() { return hooks_module_; });
|
|
2156
2156
|
__webpack_require__.d(compat_module_namespaceObject, "useMemo", function() { return hooks_module_T; });
|
|
2157
|
-
__webpack_require__.d(compat_module_namespaceObject, "useReducer", function() { return
|
|
2157
|
+
__webpack_require__.d(compat_module_namespaceObject, "useReducer", function() { return hooks_module_h; });
|
|
2158
2158
|
__webpack_require__.d(compat_module_namespaceObject, "useRef", function() { return hooks_module_A; });
|
|
2159
|
-
__webpack_require__.d(compat_module_namespaceObject, "useState", function() { return
|
|
2159
|
+
__webpack_require__.d(compat_module_namespaceObject, "useState", function() { return hooks_module_d; });
|
|
2160
2160
|
__webpack_require__.d(compat_module_namespaceObject, "Children", function() { return compat_module_O; });
|
|
2161
2161
|
__webpack_require__.d(compat_module_namespaceObject, "PureComponent", function() { return compat_module_N; });
|
|
2162
2162
|
__webpack_require__.d(compat_module_namespaceObject, "StrictMode", function() { return Cn; });
|
|
@@ -2188,15 +2188,15 @@ __webpack_require__.d(compat_module_namespaceObject, "useTransition", function()
|
|
|
2188
2188
|
__webpack_require__.d(compat_module_namespaceObject, "version", function() { return vn; });
|
|
2189
2189
|
|
|
2190
2190
|
// CONCATENATED MODULE: ./node_modules/preact/dist/preact.module.js
|
|
2191
|
-
var preact_module_n,preact_module_l,preact_module_u,preact_module_t,preact_module_i,preact_module_r,preact_module_o,preact_module_e,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!=preact_module_l.vnode&&preact_module_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!==preact_module_l.debounceRendering)&&((preact_module_r=preact_module_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,preact_module_l.vnode&&preact_module_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,m),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=A(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,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&h--,"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=C(e)),q(e,e));return t}function A(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=A(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 H(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i,r,o=n.key,e=n.type,f=l[u];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return u;if(t>(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++}}return-1}function T(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||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])r=l!=(l=l.replace(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(preact_module_l.event?preact_module_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,A,H,L,T,F=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=preact_module_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=preact_module_l.__r,A=0,C){for(h.state=h.__s,h.__d=!1,I&&I(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,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(v,y)),f=$(n,d(L=null!=a&&a.type===k&&null==a.key?a.props.children:a)?L:[L],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f}else for(T=o.length;T--;)_(o[T]);else u.__e=t.__e,u.__k=t.__k;preact_module_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=preact_module_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]);preact_module_l.__c&&preact_module_l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){preact_module_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&&(preact_module_l.__m&&preact_module_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){preact_module_l.__e(n,t)}}function q(n,u,t){var i,r;if(preact_module_l.unmount&&preact_module_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){preact_module_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),preact_module_l.__&&preact_module_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,preact_module_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,f=/(PointerCapture)$|Capture$/i,preact_module_c=0,s=O(!1),a=O(!0),h=0;
|
|
2191
|
+
var preact_module_n,preact_module_l,preact_module_u,preact_module_t,preact_module_i,preact_module_r,preact_module_o,preact_module_e,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 g(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function _(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!=preact_module_l.vnode&&preact_module_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 S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?S(n):null}function C(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 M(n){(!n.__d&&(n.__d=!0)&&preact_module_i.push(n)&&!$.__r++||preact_module_r!==preact_module_l.debounceRendering)&&((preact_module_r=preact_module_l.debounceRendering)||preact_module_o)($)}function $(){for(var n,u,t,r,o,f,c,s=1;preact_module_i.length;)preact_module_i.length>s&&preact_module_i.sort(preact_module_e),n=preact_module_i.shift(),s=preact_module_i.length,n.__d&&(t=void 0,o=(r=(u=n).__v).__e,f=[],c=[],u.__P&&((t=w({},r)).__v=r.__v+1,preact_module_l.vnode&&preact_module_l.vnode(t),j(u.__P,t,r,u.__n,u.__P.namespaceURI,32&r.__u?[o]:null,f,null==o?S(r):o,!!(32&r.__u),c),t.__v=r.__v,t.__.__k[t.__i]=t,z(f,t,c),t.__e!=o&&C(t)));$.__r=0}function I(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=P(u,l,_,f,m),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1===y.__i?p:_[y.__i]||p,y.__i=a,g=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=A(y,f,n):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function P(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?(f=r+h,(o=n.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,e=null,-1!==(c=o.__i=L(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null===e.__v?(-1==c&&h--,"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),q(e,e));return t}function A(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=A(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=S(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i,r,o=n.key,e=n.type,f=l[u];if(null===f||f&&o==f.key&&e===f.type&&0==(2&f.__u))return u;if(t>(null!=f&&0==(2&f.__u)?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;){if(i>=0){if((f=l[i])&&0==(2&f.__u)&&o==f.key&&e===f.type)return i;i--}if(r<l.length){if((f=l[r])&&0==(2&f.__u)&&o==f.key&&e===f.type)return r;r++}}return-1}function T(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||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])r=l!=(l=l.replace(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(preact_module_l.event?preact_module_l.event(u):u)}}}function j(n,u,t,i,r,o,e,f,c,s){var a,h,p,v,y,_,m,b,S,C,M,$,P,A,H,L,T,F,O=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=preact_module_l.__b)&&a(u);n:if("function"==typeof O)try{if(b=u.props,S="prototype"in O&&O.prototype.render,C=(a=O.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(S?u.__c=h=new O(b,M):(u.__c=h=new x(b,M),h.constructor=O,h.render=B),C&&C.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=O.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,O.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)S&&null==O.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==O.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v==t.__v)){for(u.__v!=t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,_)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,P=preact_module_l.__r,A=0,S){for(h.state=h.__s,h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,P&&P(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),S&&!p&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(v,y)),T=(L=null!=a&&a.type===k&&null==a.key)?a.props.children:a,L&&(a.props.children=null),f=I(n,d(T)?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(F=o.length;F--;)g(o[F]);else u.__e=t.__e,u.__k=t.__k;preact_module_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=preact_module_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]);preact_module_l.__c&&preact_module_l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){preact_module_l.__e(n,u.__v)}})}function N(u,t,i,r,o,e,f,c,s){var a,h,v,y,w,_,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&&(preact_module_l.__m&&preact_module_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?_=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=""),I("template"===t.type?u.content:u,d(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):void 0!==_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!==b[a])&&F(u,a,_,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){preact_module_l.__e(n,t)}}function q(n,u,t){var i,r;if(preact_module_l.unmount&&preact_module_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){preact_module_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||g(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),preact_module_l.__&&preact_module_l.__(u,t),o=(r="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],j(t,u=(!r&&i||t).__k=_(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){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+h++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}preact_module_n=v.slice,preact_module_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},$.__r=0,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
|
|
2195
|
-
var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=preact_module_l,hooks_module_e=hooks_module_c.__b,hooks_module_a=hooks_module_c.__r,hooks_module_v=hooks_module_c.diffed,hooks_module_l=hooks_module_c.__c,hooks_module_m=hooks_module_c.unmount,hooks_module_s=hooks_module_c.__;function
|
|
2195
|
+
var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=preact_module_l,hooks_module_e=hooks_module_c.__b,hooks_module_a=hooks_module_c.__r,hooks_module_v=hooks_module_c.diffed,hooks_module_l=hooks_module_c.__c,hooks_module_m=hooks_module_c.unmount,hooks_module_s=hooks_module_c.__;function hooks_module_p(n,t){hooks_module_c.__h&&hooks_module_c.__h(hooks_module_r,n,hooks_module_o||t),hooks_module_o=0;var u=hooks_module_r.__H||(hooks_module_r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function hooks_module_d(n){return hooks_module_o=1,hooks_module_h(hooks_module_D,n)}function hooks_module_h(n,u,i){var o=hooks_module_p(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):hooks_module_D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=hooks_module_r,!hooks_module_r.__f)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=o.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),c&&c.call(this,n,t,r)||i};hooks_module_r.__f=!0;var c=hooks_module_r.shouldComponentUpdate,e=hooks_module_r.componentWillUpdate;hooks_module_r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},hooks_module_r.shouldComponentUpdate=f}return o.__N||o.__}function hooks_module_y(n,u){var i=hooks_module_p(hooks_module_t++,3);!hooks_module_c.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.u=u,hooks_module_r.__H.__h.push(i))}function hooks_module_(n,u){var i=hooks_module_p(hooks_module_t++,4);!hooks_module_c.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.u=u,hooks_module_r.__h.push(i))}function hooks_module_A(n){return hooks_module_o=5,hooks_module_T(function(){return{current:n}},[])}function hooks_module_F(n,t,r){hooks_module_o=6,hooks_module_(function(){if("function"==typeof n){var r=n(t());return function(){n(null),r&&"function"==typeof r&&r()}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n))}function hooks_module_T(n,r){var u=hooks_module_p(hooks_module_t++,7);return hooks_module_C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function hooks_module_q(n,t){return hooks_module_o=8,hooks_module_T(function(){return n},t)}function hooks_module_x(n){var u=hooks_module_r.context[n.__c],i=hooks_module_p(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(hooks_module_r)),u.props.value):n.__}function hooks_module_P(n,t){hooks_module_c.useDebugValue&&hooks_module_c.useDebugValue(t?t(n):n)}function hooks_module_b(n){var u=hooks_module_p(hooks_module_t++,10),i=hooks_module_d();return u.__=n,hooks_module_r.componentDidCatch||(hooks_module_r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function hooks_module_g(){var n=hooks_module_p(hooks_module_t++,11);if(!n.__){for(var u=hooks_module_r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function hooks_module_j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(hooks_module_z),n.__H.__h.forEach(hooks_module_B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_c.__e(t,n.__v)}}hooks_module_c.__b=function(n){hooks_module_r=null,hooks_module_e&&hooks_module_e(n)},hooks_module_c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),hooks_module_s&&hooks_module_s(n,t)},hooks_module_c.__r=function(n){hooks_module_a&&hooks_module_a(n),hooks_module_t=0;var i=(hooks_module_r=n.__c).__H;i&&(hooks_module_u===hooks_module_r?(i.__h=[],hooks_module_r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.forEach(hooks_module_z),i.__h.forEach(hooks_module_B),i.__h=[],hooks_module_t=0)),hooks_module_u=hooks_module_r},hooks_module_c.diffed=function(n){hooks_module_v&&hooks_module_v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&hooks_module_i===hooks_module_c.requestAnimationFrame||((hooks_module_i=hooks_module_c.requestAnimationFrame)||hooks_module_w)(hooks_module_j)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),hooks_module_u=hooks_module_r=null},hooks_module_c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(hooks_module_z),n.__h=n.__h.filter(function(n){return!n.__||hooks_module_B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_c.__e(r,n.__v)}}),hooks_module_l&&hooks_module_l(n,t)},hooks_module_c.unmount=function(n){hooks_module_m&&hooks_module_m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hooks_module_z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_c.__e(t,r.__v))};var hooks_module_k="function"==typeof requestAnimationFrame;function hooks_module_w(n){var t,r=function(){clearTimeout(u),hooks_module_k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);hooks_module_k&&(t=requestAnimationFrame(r))}function hooks_module_z(n){var t=hooks_module_r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),hooks_module_r=t}function hooks_module_B(n){var t=hooks_module_r;n.__c=n.__(),hooks_module_r=t}function hooks_module_C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function hooks_module_D(n,t){return"function"==typeof t?t(n):t}
|
|
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 t)n[e]=t[e];return n}function compat_module_E(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_C(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_x(u)&&o({t:u})},[n,e,t]),hooks_module_y(function(){return compat_module_x(u)&&o({t:u}),n(function(){compat_module_x(u)&&o({t:u})})},[n]),e}function compat_module_x(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 R(n){n()}function compat_module_w(n){return n}function compat_module_k(){return[!1,R]}var compat_module_I=hooks_module_;function compat_module_N(n,t){this.props=n,this.context=t}function compat_module_M(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_E(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_N.prototype=new x).isPureReactComponent=!0,compat_module_N.prototype.shouldComponentUpdate=function(n,t){return compat_module_E(this.props,n)||compat_module_E(this.state,t)};var compat_module_T=preact_module_l.__b;preact_module_l.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),compat_module_T&&compat_module_T(n)};var compat_module_A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function compat_module_D(n){function t(t){var e=compat_module_g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=compat_module_A,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var compat_module_L=function(n,t){return null==n?null:H(H(n).map(t))},compat_module_O={map:compat_module_L,forEach:compat_module_L,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_F=preact_module_l.__e;preact_module_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_F(n,t,e,r)};var U=preact_module_l.unmount;function compat_module_V(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=compat_module_g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return compat_module_V(n,t,e)})),n}function W(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return W(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 compat_module_P(){this.__u=0,this.o=null,this.__b=null}function compat_module_j(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function compat_module_z(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_B(){this.i=null,this.l=null}preact_module_l.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),U&&U(n)},(compat_module_P.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_j(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]=W(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)},compat_module_P.prototype.componentWillUnmount=function(){this.o=[]},compat_module_P.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]=compat_module_V(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_H=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 Z(n){return this.getChildContext=function(){return n.context},n.children}function Y(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(Z,{context:e.context},n.__v),e.v)}function compat_module_$(n,e){var r=g(Y,{__v:n,h:e});return r.containerInfo=e,r}(compat_module_B.prototype=new x).__a=function(n){var t=this,e=compat_module_j(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),compat_module_H(t,n,r)):u()};e?e(o):o()}},compat_module_B.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_B.prototype.componentDidUpdate=compat_module_B.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){compat_module_H(n,e,t)})};var compat_module_q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,compat_module_G=/^(?: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_J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function nn(n,t,e){return null==t.__k&&(t.textContent=""),D(n,t),"function"==typeof e&&e(),n?n.__c:null}function tn(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 en=preact_module_l.event;function rn(){}function un(){return this.cancelBubble}function on(){return this.defaultPrevented}preact_module_l.event=function(n){return en&&(n=en(n)),n.persist=rn,n.isPropagationStopped=un,n.isDefaultPrevented=on,n.nativeEvent=n};var cn,ln={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=preact_module_l.vnode;preact_module_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||Q&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===l&&"no"===c?c=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||X(t.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":compat_module_J.test(i)&&(i=l):l=i="oninput":o&&compat_module_G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===l&&u[i=l]&&(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",ln)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=compat_module_q,fn&&fn(n)};var an=preact_module_l.__r;preact_module_l.__r=function(n){an&&an(n),cn=n.__c};var sn=preact_module_l.diffed;preact_module_l.diffed=function(n){sn&&sn(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),cn=null};var hn={ReactCurrentDispatcher:{current:{readContext:function(n){return cn.__n[n.__c].props.value},useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,useDeferredValue:compat_module_w,useEffect:hooks_module_y,useId:hooks_module_g,useImperativeHandle:hooks_module_F,useInsertionEffect:compat_module_I,useLayoutEffect:hooks_module_,useMemo:hooks_module_T,useReducer:hooks_module_p,useRef:hooks_module_A,useState:hooks_module_h,useSyncExternalStore:compat_module_C,useTransition:compat_module_k}}},vn="18.3.1";function dn(n){return g.bind(null,n)}function pn(n){return!!n&&n.$$typeof===compat_module_q}function mn(n){return pn(n)&&n.type===k}function yn(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function _n(n){return pn(n)?G.apply(null,arguments):n}function bn(n){return!!n.__k&&(D(null,n),!0)}function Sn(n){return n&&(n.base||1===n.nodeType&&n)||null}var gn=function(n,t){return n(t)},En=function(n,t){return n(t)},Cn=k,xn=pn,Rn={useState:hooks_module_h,useId:hooks_module_g,useReducer:hooks_module_p,useEffect:hooks_module_y,useLayoutEffect:hooks_module_,useInsertionEffect:compat_module_I,useTransition:compat_module_k,useDeferredValue:compat_module_w,useSyncExternalStore:compat_module_C,startTransition:R,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_O,render:nn,hydrate:tn,unmountComponentAtNode:bn,createPortal:compat_module_$,createElement:g,createContext:J,createFactory:dn,cloneElement:_n,createRef:b,Fragment:k,isValidElement:pn,isElement:xn,isFragment:mn,isMemo:yn,findDOMNode:Sn,Component:x,PureComponent:compat_module_N,memo:compat_module_M,forwardRef:compat_module_D,flushSync:En,unstable_batchedUpdates:gn,StrictMode:Cn,Suspense:compat_module_P,SuspenseList:compat_module_B,lazy:compat_module_z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hn};
|
|
2199
|
+
function compat_module_g(n,t){for(var e in t)n[e]=t[e];return n}function compat_module_E(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_C(n,t){var e=t(),r=hooks_module_d({t:{__:e,u:t}}),u=r[0].t,o=r[1];return hooks_module_(function(){u.__=e,u.u=t,compat_module_x(u)&&o({t:u})},[n,e,t]),hooks_module_y(function(){return compat_module_x(u)&&o({t:u}),n(function(){compat_module_x(u)&&o({t:u})})},[n]),e}function compat_module_x(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 R(n){n()}function compat_module_w(n){return n}function compat_module_k(){return[!1,R]}var compat_module_I=hooks_module_;function compat_module_N(n,t){this.props=n,this.context=t}function compat_module_M(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_E(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_N.prototype=new x).isPureReactComponent=!0,compat_module_N.prototype.shouldComponentUpdate=function(n,t){return compat_module_E(this.props,n)||compat_module_E(this.state,t)};var compat_module_T=preact_module_l.__b;preact_module_l.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),compat_module_T&&compat_module_T(n)};var compat_module_A="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function compat_module_D(n){function t(t){var e=compat_module_g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=compat_module_A,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var compat_module_L=function(n,t){return null==n?null:H(H(n).map(t))},compat_module_O={map:compat_module_L,forEach:compat_module_L,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_F=preact_module_l.__e;preact_module_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_F(n,t,e,r)};var U=preact_module_l.unmount;function compat_module_V(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=compat_module_g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return compat_module_V(n,t,e)})),n}function W(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return W(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 compat_module_P(){this.__u=0,this.o=null,this.__b=null}function compat_module_j(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function compat_module_z(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_B(){this.i=null,this.l=null}preact_module_l.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),U&&U(n)},(compat_module_P.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_j(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]=W(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)},compat_module_P.prototype.componentWillUnmount=function(){this.o=[]},compat_module_P.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]=compat_module_V(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&_(k,null,n.fallback);return i&&(i.__u&=-33),[_(k,null,e.__a?null:n.children),i]};var compat_module_H=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 Z(n){return this.getChildContext=function(){return n.context},n.children}function Y(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(_(Z,{context:e.context},n.__v),e.v)}function compat_module_$(n,e){var r=_(Y,{__v:n,h:e});return r.containerInfo=e,r}(compat_module_B.prototype=new x).__a=function(n){var t=this,e=compat_module_j(t.__v),r=t.l.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),compat_module_H(t,n,r)):u()};e?e(o):o()}},compat_module_B.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_B.prototype.componentDidUpdate=compat_module_B.prototype.componentDidMount=function(){var n=this;this.l.forEach(function(t,e){compat_module_H(n,e,t)})};var compat_module_q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,compat_module_G=/^(?: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_J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,K=/[A-Z0-9]/g,Q="undefined"!=typeof document,X=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function nn(n,t,e){return null==t.__k&&(t.textContent=""),D(n,t),"function"==typeof e&&e(),n?n.__c:null}function tn(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 en=preact_module_l.event;function rn(){}function un(){return this.cancelBubble}function on(){return this.defaultPrevented}preact_module_l.event=function(n){return en&&(n=en(n)),n.persist=rn,n.isPropagationStopped=un,n.isDefaultPrevented=on,n.nativeEvent=n};var cn,ln={enumerable:!1,configurable:!0,get:function(){return this.class}},fn=preact_module_l.vnode;preact_module_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||Q&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===l&&"no"===c?c=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||X(t.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":compat_module_J.test(i)&&(i=l):l=i="oninput":o&&compat_module_G.test(i)?i=i.replace(K,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===l&&u[i=l]&&(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",ln)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=compat_module_q,fn&&fn(n)};var an=preact_module_l.__r;preact_module_l.__r=function(n){an&&an(n),cn=n.__c};var sn=preact_module_l.diffed;preact_module_l.diffed=function(n){sn&&sn(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),cn=null};var hn={ReactCurrentDispatcher:{current:{readContext:function(n){return cn.__n[n.__c].props.value},useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,useDeferredValue:compat_module_w,useEffect:hooks_module_y,useId:hooks_module_g,useImperativeHandle:hooks_module_F,useInsertionEffect:compat_module_I,useLayoutEffect:hooks_module_,useMemo:hooks_module_T,useReducer:hooks_module_h,useRef:hooks_module_A,useState:hooks_module_d,useSyncExternalStore:compat_module_C,useTransition:compat_module_k}}},vn="18.3.1";function dn(n){return _.bind(null,n)}function pn(n){return!!n&&n.$$typeof===compat_module_q}function mn(n){return pn(n)&&n.type===k}function yn(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function _n(n){return pn(n)?G.apply(null,arguments):n}function bn(n){return!!n.__k&&(D(null,n),!0)}function Sn(n){return n&&(n.base||1===n.nodeType&&n)||null}var gn=function(n,t){return n(t)},En=function(n,t){return n(t)},Cn=k,xn=pn,Rn={useState:hooks_module_d,useId:hooks_module_g,useReducer:hooks_module_h,useEffect:hooks_module_y,useLayoutEffect:hooks_module_,useInsertionEffect:compat_module_I,useTransition:compat_module_k,useDeferredValue:compat_module_w,useSyncExternalStore:compat_module_C,startTransition:R,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_O,render:nn,hydrate:tn,unmountComponentAtNode:bn,createPortal:compat_module_$,createElement:_,createContext:J,createFactory:dn,cloneElement:_n,createRef:b,Fragment:k,isValidElement:pn,isElement:xn,isFragment:mn,isMemo:yn,findDOMNode:Sn,Component:x,PureComponent:compat_module_N,memo:compat_module_M,forwardRef:compat_module_D,flushSync:En,unstable_batchedUpdates:gn,StrictMode:Cn,Suspense:compat_module_P,SuspenseList:compat_module_B,lazy:compat_module_z,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:hn};
|
|
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 _("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();
|
|
@@ -2770,7 +2770,7 @@ var element_SurveyRowElement = /** @class */ (function (_super) {
|
|
|
2770
2770
|
el.focusIn();
|
|
2771
2771
|
}
|
|
2772
2772
|
};
|
|
2773
|
-
return (
|
|
2773
|
+
return (_("div", { className: css.questionWrapper, style: element.rootStyle, "data-key": element.name + this.index, onFocus: focusIn, ref: this.rootRef }, innerElement));
|
|
2774
2774
|
};
|
|
2775
2775
|
SurveyRowElement.prototype.createElement = function (element, elementIndex) {
|
|
2776
2776
|
if (!this.row.isNeedRender) {
|
|
@@ -2860,9 +2860,9 @@ var row_SurveyRow = /** @class */ (function (_super) {
|
|
|
2860
2860
|
SurveyRow.prototype.renderElementContent = function () {
|
|
2861
2861
|
var _this = this;
|
|
2862
2862
|
var elements = this.row.visibleElements.map(function (element, elementIndex) {
|
|
2863
|
-
return (
|
|
2863
|
+
return (_(element_SurveyRowElement, { element: element, index: elementIndex, row: _this.row, survey: _this.survey, creator: _this.creator, css: _this.css, key: element.id }));
|
|
2864
2864
|
});
|
|
2865
|
-
return (
|
|
2865
|
+
return (_("div", { ref: this.rootRef, className: this.row.getRowCss() }, elements));
|
|
2866
2866
|
};
|
|
2867
2867
|
SurveyRow.prototype.renderElement = function () {
|
|
2868
2868
|
var survey = this.survey;
|
|
@@ -3034,7 +3034,7 @@ var panel_base_SurveyPanelBase = /** @class */ (function (_super) {
|
|
|
3034
3034
|
return this.panelBase.visibleRows.map(function (row) { return _this.createRow(row, css); });
|
|
3035
3035
|
};
|
|
3036
3036
|
SurveyPanelBase.prototype.createRow = function (row, css) {
|
|
3037
|
-
return (
|
|
3037
|
+
return (_(row_SurveyRow, { key: row.id, row: row, survey: this.survey, creator: this.creator, css: css }));
|
|
3038
3038
|
};
|
|
3039
3039
|
return SurveyPanelBase;
|
|
3040
3040
|
}(reactquestion_element_SurveyElementBase));
|
|
@@ -3894,18 +3894,18 @@ var reactquestion_comment_SurveyQuestionComment = /** @class */ (function (_supe
|
|
|
3894
3894
|
SurveyQuestionComment.prototype.renderCharacterCounter = function () {
|
|
3895
3895
|
var counter = null;
|
|
3896
3896
|
if (!!this.question.getMaxLength()) {
|
|
3897
|
-
counter =
|
|
3897
|
+
counter = _(character_counter_CharacterCounterComponent, { counter: this.question.characterCounter, remainingCharacterCounter: this.question.cssClasses.remainingCharacterCounter });
|
|
3898
3898
|
}
|
|
3899
3899
|
return counter;
|
|
3900
3900
|
};
|
|
3901
3901
|
SurveyQuestionComment.prototype.renderElement = function () {
|
|
3902
3902
|
if (this.question.isReadOnlyRenderDiv()) {
|
|
3903
|
-
return
|
|
3903
|
+
return _("div", null, this.question.value);
|
|
3904
3904
|
}
|
|
3905
3905
|
var counter = this.renderCharacterCounter();
|
|
3906
3906
|
var textAreaModel = this.props.question.textAreaModel;
|
|
3907
|
-
return (
|
|
3908
|
-
|
|
3907
|
+
return (_(k, null,
|
|
3908
|
+
_(text_area_TextAreaComponent, { viewModel: textAreaModel }),
|
|
3909
3909
|
counter));
|
|
3910
3910
|
};
|
|
3911
3911
|
return SurveyQuestionComment;
|
|
@@ -3928,9 +3928,9 @@ var reactquestion_comment_SurveyQuestionCommentItem = /** @class */ (function (_
|
|
|
3928
3928
|
var question = this.props.question;
|
|
3929
3929
|
if (question.isReadOnlyRenderDiv()) {
|
|
3930
3930
|
var comment = this.textAreaModel.getTextValue() || "";
|
|
3931
|
-
return
|
|
3931
|
+
return _("div", null, comment);
|
|
3932
3932
|
}
|
|
3933
|
-
return (
|
|
3933
|
+
return (_(text_area_TextAreaComponent, { viewModel: this.textAreaModel }));
|
|
3934
3934
|
};
|
|
3935
3935
|
return SurveyQuestionCommentItem;
|
|
3936
3936
|
}(ReactSurveyElement));
|
|
@@ -3947,7 +3947,7 @@ var SurveyQuestionOtherValueItem = /** @class */ (function (_super) {
|
|
|
3947
3947
|
}(reactquestion_comment_SurveyQuestionCommentItem));
|
|
3948
3948
|
|
|
3949
3949
|
ReactQuestionFactory.Instance.registerQuestion("comment", function (props) {
|
|
3950
|
-
return
|
|
3950
|
+
return _(reactquestion_comment_SurveyQuestionComment, props);
|
|
3951
3951
|
});
|
|
3952
3952
|
|
|
3953
3953
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/custom-widget.tsx
|
|
@@ -4013,7 +4013,7 @@ var custom_widget_SurveyCustomWidget = /** @class */ (function (_super) {
|
|
|
4013
4013
|
SurveyCustomWidget.prototype.renderElement = function () {
|
|
4014
4014
|
var customWidget = this.questionBase.customWidget;
|
|
4015
4015
|
if (customWidget.isDefaultRender) {
|
|
4016
|
-
return (
|
|
4016
|
+
return (_("div", { ref: this.widgetRef }, this.creator.createQuestionElement(this.questionBase)));
|
|
4017
4017
|
}
|
|
4018
4018
|
var widget = null;
|
|
4019
4019
|
if (customWidget.widgetJson.render) {
|
|
@@ -4022,10 +4022,10 @@ var custom_widget_SurveyCustomWidget = /** @class */ (function (_super) {
|
|
|
4022
4022
|
else {
|
|
4023
4023
|
if (customWidget.htmlTemplate) {
|
|
4024
4024
|
var htmlValue = { __html: customWidget.htmlTemplate };
|
|
4025
|
-
return
|
|
4025
|
+
return _("div", { ref: this.widgetRef, dangerouslySetInnerHTML: htmlValue });
|
|
4026
4026
|
}
|
|
4027
4027
|
}
|
|
4028
|
-
return
|
|
4028
|
+
return _("div", { ref: this.widgetRef }, widget);
|
|
4029
4029
|
};
|
|
4030
4030
|
return SurveyCustomWidget;
|
|
4031
4031
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
@@ -4121,7 +4121,7 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4121
4121
|
if (!customWidget) {
|
|
4122
4122
|
return creator.createQuestionElement(question);
|
|
4123
4123
|
}
|
|
4124
|
-
return
|
|
4124
|
+
return _(custom_widget_SurveyCustomWidget, { creator: creator, question: question });
|
|
4125
4125
|
};
|
|
4126
4126
|
SurveyQuestion.prototype.getStateElement = function () {
|
|
4127
4127
|
return this.question;
|
|
@@ -4200,7 +4200,7 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4200
4200
|
var descriptionUnderInput = question.hasDescriptionUnderInput
|
|
4201
4201
|
? this.renderDescription()
|
|
4202
4202
|
: null;
|
|
4203
|
-
return (
|
|
4203
|
+
return (_("div", { className: question.cssContent || undefined, style: contentStyle, role: "presentation" },
|
|
4204
4204
|
errorsTop,
|
|
4205
4205
|
questionRender,
|
|
4206
4206
|
comment,
|
|
@@ -4221,8 +4221,8 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4221
4221
|
: null;
|
|
4222
4222
|
var rootStyle = question.getRootStyle();
|
|
4223
4223
|
var questionContent = this.wrapQuestionContent(this.renderQuestionContent());
|
|
4224
|
-
return (
|
|
4225
|
-
|
|
4224
|
+
return (_(k, null,
|
|
4225
|
+
_("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, "data-name": question.name },
|
|
4226
4226
|
errorsAboveQuestion,
|
|
4227
4227
|
headerTop,
|
|
4228
4228
|
questionContent,
|
|
@@ -4253,21 +4253,21 @@ var reactquestion_SurveyQuestion = /** @class */ (function (_super) {
|
|
|
4253
4253
|
};
|
|
4254
4254
|
SurveyQuestion.prototype.renderComment = function (cssClasses) {
|
|
4255
4255
|
var commentText = reactquestion_element_SurveyElementBase.renderLocString(this.question.locCommentText);
|
|
4256
|
-
return (
|
|
4257
|
-
|
|
4258
|
-
|
|
4256
|
+
return (_("div", { className: this.question.getCommentAreaCss() },
|
|
4257
|
+
_("div", null, commentText),
|
|
4258
|
+
_(reactquestion_comment_SurveyQuestionCommentItem, { question: this.question, cssClasses: cssClasses, otherCss: cssClasses.other, isDisplayMode: this.question.isInputReadOnly })));
|
|
4259
4259
|
};
|
|
4260
4260
|
SurveyQuestion.prototype.renderHeader = function (question) {
|
|
4261
|
-
return
|
|
4261
|
+
return _(element_header_SurveyElementHeader, { element: question });
|
|
4262
4262
|
};
|
|
4263
4263
|
SurveyQuestion.prototype.renderErrors = function (cssClasses, location) {
|
|
4264
|
-
return (
|
|
4264
|
+
return (_(reactquestion_SurveyElementErrors, { element: this.question, cssClasses: cssClasses, creator: this.creator, location: location, id: this.question.id + "_errors" }));
|
|
4265
4265
|
};
|
|
4266
4266
|
return SurveyQuestion;
|
|
4267
4267
|
}(reactquestion_element_SurveyElementBase));
|
|
4268
4268
|
|
|
4269
4269
|
ReactElementFactory.Instance.registerElement("question", function (props) {
|
|
4270
|
-
return
|
|
4270
|
+
return _(reactquestion_SurveyQuestion, props);
|
|
4271
4271
|
});
|
|
4272
4272
|
var reactquestion_SurveyElementErrors = /** @class */ (function (_super) {
|
|
4273
4273
|
reactquestion_extends(SurveyElementErrors, _super);
|
|
@@ -4319,7 +4319,7 @@ var reactquestion_SurveyElementErrors = /** @class */ (function (_super) {
|
|
|
4319
4319
|
var key = "error" + i;
|
|
4320
4320
|
errors.push(this.creator.renderError(key, this.element.errors[i], this.cssClasses, this.element));
|
|
4321
4321
|
}
|
|
4322
|
-
return (
|
|
4322
|
+
return (_("div", { role: "alert", "aria-live": "polite", className: this.element.cssError, id: this.id }, errors));
|
|
4323
4323
|
};
|
|
4324
4324
|
return SurveyElementErrors;
|
|
4325
4325
|
}(ReactSurveyElement));
|
|
@@ -4370,7 +4370,7 @@ var reactquestion_SurveyQuestionAndErrorsWrapped = /** @class */ (function (_sup
|
|
|
4370
4370
|
};
|
|
4371
4371
|
SurveyQuestionAndErrorsWrapped.prototype.renderContent = function () {
|
|
4372
4372
|
var renderedQuestion = this.renderQuestion();
|
|
4373
|
-
return (
|
|
4373
|
+
return (_(k, null, renderedQuestion));
|
|
4374
4374
|
};
|
|
4375
4375
|
SurveyQuestionAndErrorsWrapped.prototype.getShowErrors = function () {
|
|
4376
4376
|
return this.question.isVisible;
|
|
@@ -4398,13 +4398,13 @@ var reactquestion_SurveyQuestionAndErrorsCell = /** @class */ (function (_super)
|
|
|
4398
4398
|
}
|
|
4399
4399
|
};
|
|
4400
4400
|
SurveyQuestionAndErrorsCell.prototype.renderCellContent = function () {
|
|
4401
|
-
return (
|
|
4401
|
+
return (_("div", { className: this.props.cell.cellQuestionWrapperClassName }, this.renderQuestion()));
|
|
4402
4402
|
};
|
|
4403
4403
|
SurveyQuestionAndErrorsCell.prototype.renderElement = function () {
|
|
4404
4404
|
var style = this.getCellStyle();
|
|
4405
4405
|
var cell = this.props.cell;
|
|
4406
4406
|
var focusIn = function () { cell.focusIn(); };
|
|
4407
|
-
return (
|
|
4407
|
+
return (_("td", { ref: this.cellRef, className: this.itemCss, colSpan: cell.colSpans, title: cell.getTitle(), style: style, onFocus: focusIn }, this.wrapCell(this.props.cell, this.renderCellContent())));
|
|
4408
4408
|
};
|
|
4409
4409
|
SurveyQuestionAndErrorsCell.prototype.getCellStyle = function () {
|
|
4410
4410
|
return null;
|
|
@@ -4474,7 +4474,7 @@ var reactquestion_SurveyQuestionErrorCell = /** @class */ (function (_super) {
|
|
|
4474
4474
|
}
|
|
4475
4475
|
};
|
|
4476
4476
|
SurveyQuestionErrorCell.prototype.render = function () {
|
|
4477
|
-
return
|
|
4477
|
+
return _(reactquestion_SurveyElementErrors, { element: this.question, creator: this.props.creator, cssClasses: this.question.cssClasses });
|
|
4478
4478
|
};
|
|
4479
4479
|
return SurveyQuestionErrorCell;
|
|
4480
4480
|
}(x));
|
|
@@ -4524,21 +4524,21 @@ var page_SurveyPage = /** @class */ (function (_super) {
|
|
|
4524
4524
|
var title = this.renderTitle();
|
|
4525
4525
|
var description = this.renderDescription();
|
|
4526
4526
|
var rows = this.renderRows(this.panelBase.cssClasses);
|
|
4527
|
-
var errors = (
|
|
4528
|
-
return (
|
|
4527
|
+
var errors = (_(reactquestion_SurveyElementErrors, { element: this.panelBase, cssClasses: this.panelBase.cssClasses, creator: this.creator }));
|
|
4528
|
+
return (_("div", { ref: this.rootRef, className: this.page.cssRoot },
|
|
4529
4529
|
title,
|
|
4530
4530
|
description,
|
|
4531
4531
|
errors,
|
|
4532
4532
|
rows));
|
|
4533
4533
|
};
|
|
4534
4534
|
SurveyPage.prototype.renderTitle = function () {
|
|
4535
|
-
return
|
|
4535
|
+
return _(title_element_TitleElement, { element: this.page });
|
|
4536
4536
|
};
|
|
4537
4537
|
SurveyPage.prototype.renderDescription = function () {
|
|
4538
4538
|
if (!this.page._showDescription)
|
|
4539
4539
|
return null;
|
|
4540
4540
|
var text = reactquestion_element_SurveyElementBase.renderLocString(this.page.locDescription);
|
|
4541
|
-
return (
|
|
4541
|
+
return (_("div", { className: this.panelBase.cssClasses.page.description }, text));
|
|
4542
4542
|
};
|
|
4543
4543
|
return SurveyPage;
|
|
4544
4544
|
}(panel_base_SurveyPanelBase));
|
|
@@ -5046,30 +5046,30 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
5046
5046
|
else {
|
|
5047
5047
|
renderResult = this.renderSurvey();
|
|
5048
5048
|
}
|
|
5049
|
-
var backgroundImage = !!this.survey.backgroundImage ?
|
|
5050
|
-
var header = this.survey.headerView === "basic" ?
|
|
5049
|
+
var backgroundImage = !!this.survey.backgroundImage ? _("div", { className: this.css.rootBackgroundImage, style: this.survey.backgroundImageStyle }) : null;
|
|
5050
|
+
var header = this.survey.headerView === "basic" ? _(survey_header_SurveyHeader, { survey: this.survey }) : null;
|
|
5051
5051
|
var onSubmit = function (event) {
|
|
5052
5052
|
event.preventDefault();
|
|
5053
5053
|
};
|
|
5054
|
-
var customHeader =
|
|
5054
|
+
var customHeader = _("div", { className: "sv_custom_header" });
|
|
5055
5055
|
if (this.survey.hasLogo) {
|
|
5056
5056
|
customHeader = null;
|
|
5057
5057
|
}
|
|
5058
5058
|
var rootCss = this.survey.getRootCss();
|
|
5059
5059
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
|
5060
|
-
return (
|
|
5061
|
-
this.survey.needRenderIcons ?
|
|
5062
|
-
|
|
5063
|
-
|
|
5060
|
+
return (_("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables, lang: this.survey.locale || "en", dir: this.survey.localeDir },
|
|
5061
|
+
this.survey.needRenderIcons ? _(svgbundle_SvgBundleComponent, null) : null,
|
|
5062
|
+
_(popup_modal_PopupModal, null),
|
|
5063
|
+
_("div", { className: this.survey.wrapperFormCss },
|
|
5064
5064
|
backgroundImage,
|
|
5065
|
-
|
|
5065
|
+
_("form", { onSubmit: onSubmit },
|
|
5066
5066
|
customHeader,
|
|
5067
|
-
|
|
5067
|
+
_("div", { className: this.css.container },
|
|
5068
5068
|
header,
|
|
5069
|
-
|
|
5069
|
+
_(components_container_ComponentsContainer, { survey: this.survey, container: "header", needRenderWrapper: false }),
|
|
5070
5070
|
renderResult,
|
|
5071
|
-
|
|
5072
|
-
|
|
5071
|
+
_(components_container_ComponentsContainer, { survey: this.survey, container: "footer", needRenderWrapper: false }))),
|
|
5072
|
+
_(notifier_NotifierComponent, { notifier: this.survey.notifier }))));
|
|
5073
5073
|
};
|
|
5074
5074
|
Survey.prototype.renderElement = function () {
|
|
5075
5075
|
return this.doRender();
|
|
@@ -5088,17 +5088,17 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
5088
5088
|
if (!this.survey.showCompletedPage)
|
|
5089
5089
|
return null;
|
|
5090
5090
|
var htmlValue = { __html: this.survey.processedCompletedHtml };
|
|
5091
|
-
return (
|
|
5092
|
-
|
|
5093
|
-
|
|
5091
|
+
return (_(k, null,
|
|
5092
|
+
_("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedCss }),
|
|
5093
|
+
_(components_container_ComponentsContainer, { survey: this.survey, container: "completePage", needRenderWrapper: false })));
|
|
5094
5094
|
};
|
|
5095
5095
|
Survey.prototype.renderCompletedBefore = function () {
|
|
5096
5096
|
var htmlValue = { __html: this.survey.processedCompletedBeforeHtml };
|
|
5097
|
-
return (
|
|
5097
|
+
return (_("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.completedBeforeCss }));
|
|
5098
5098
|
};
|
|
5099
5099
|
Survey.prototype.renderLoading = function () {
|
|
5100
5100
|
var htmlValue = { __html: this.survey.processedLoadingHtml };
|
|
5101
|
-
return (
|
|
5101
|
+
return (_("div", { dangerouslySetInnerHTML: htmlValue, className: this.survey.loadingBodyCss }));
|
|
5102
5102
|
};
|
|
5103
5103
|
Survey.prototype.renderSurvey = function () {
|
|
5104
5104
|
var activePage = this.survey.activePage
|
|
@@ -5111,22 +5111,22 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
5111
5111
|
if (!!this.survey.renderedWidth) {
|
|
5112
5112
|
style.maxWidth = this.survey.renderedWidth;
|
|
5113
5113
|
}
|
|
5114
|
-
return (
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5114
|
+
return (_("div", { className: this.survey.bodyContainerCss },
|
|
5115
|
+
_(components_container_ComponentsContainer, { survey: this.survey, container: "left" }),
|
|
5116
|
+
_("div", { className: "sv-components-column sv-components-column--expandable" },
|
|
5117
|
+
_(components_container_ComponentsContainer, { survey: this.survey, container: "center" }),
|
|
5118
|
+
_("div", { id: pageId, className: className, style: style },
|
|
5119
|
+
_(components_container_ComponentsContainer, { survey: this.survey, container: "contentTop" }),
|
|
5120
5120
|
activePage,
|
|
5121
|
-
|
|
5122
|
-
this.survey.showBrandInfo ?
|
|
5123
|
-
|
|
5121
|
+
_(components_container_ComponentsContainer, { survey: this.survey, container: "contentBottom" }),
|
|
5122
|
+
this.survey.showBrandInfo ? _(brand_info_BrandInfo, null) : null)),
|
|
5123
|
+
_(components_container_ComponentsContainer, { survey: this.survey, container: "right" })));
|
|
5124
5124
|
};
|
|
5125
5125
|
Survey.prototype.renderPage = function (page) {
|
|
5126
|
-
return (
|
|
5126
|
+
return (_(page_SurveyPage, { survey: this.survey, page: page, css: this.css, creator: this }));
|
|
5127
5127
|
};
|
|
5128
5128
|
Survey.prototype.renderEmptySurvey = function () {
|
|
5129
|
-
return
|
|
5129
|
+
return _("div", { className: this.css.bodyEmpty }, this.survey.emptySurveyText);
|
|
5130
5130
|
};
|
|
5131
5131
|
Survey.prototype.createSurvey = function (newProps) {
|
|
5132
5132
|
if (!newProps)
|
|
@@ -5219,7 +5219,7 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
5219
5219
|
}(reactquestion_element_SurveyElementBase));
|
|
5220
5220
|
|
|
5221
5221
|
ReactElementFactory.Instance.registerElement("survey", function (props) {
|
|
5222
|
-
return
|
|
5222
|
+
return _(reactSurvey_Survey, props);
|
|
5223
5223
|
});
|
|
5224
5224
|
function attachKey2click(element, viewModel, options) {
|
|
5225
5225
|
if (options === void 0) { options = { processEsc: true, disableTabStop: false }; }
|
|
@@ -5346,16 +5346,16 @@ var reacttimerpanel_SurveyTimerPanel = /** @class */ (function (_super) {
|
|
|
5346
5346
|
if (!this.timerModel.isRunning) {
|
|
5347
5347
|
return null;
|
|
5348
5348
|
}
|
|
5349
|
-
var result =
|
|
5349
|
+
var result = _("div", { className: this.timerModel.survey.getCss().timerRoot }, this.timerModel.text);
|
|
5350
5350
|
if (this.timerModel.showTimerAsClock) {
|
|
5351
5351
|
var style = { strokeDasharray: this.circleLength, strokeDashoffset: this.progress };
|
|
5352
|
-
var progress = (this.timerModel.showProgress ?
|
|
5352
|
+
var progress = (this.timerModel.showProgress ? _(svg_icon_SvgIcon, { className: this.timerModel.getProgressCss(), style: style, iconName: "icon-timercircle", size: "auto" }) : null);
|
|
5353
5353
|
result =
|
|
5354
|
-
(
|
|
5354
|
+
(_("div", { className: this.timerModel.rootCss },
|
|
5355
5355
|
progress,
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
(this.timerModel.clockMinorText ?
|
|
5356
|
+
_("div", { className: this.timerModel.textContainerCss },
|
|
5357
|
+
_("span", { className: this.timerModel.majorTextCss }, this.timerModel.clockMajorText),
|
|
5358
|
+
(this.timerModel.clockMinorText ? _("span", { className: this.timerModel.minorTextCss }, this.timerModel.clockMinorText) : null))));
|
|
5359
5359
|
}
|
|
5360
5360
|
return result;
|
|
5361
5361
|
};
|
|
@@ -5363,7 +5363,7 @@ var reacttimerpanel_SurveyTimerPanel = /** @class */ (function (_super) {
|
|
|
5363
5363
|
}(ReactSurveyElement));
|
|
5364
5364
|
|
|
5365
5365
|
ReactElementFactory.Instance.registerElement("sv-timerpanel", function (props) {
|
|
5366
|
-
return
|
|
5366
|
+
return _(reacttimerpanel_SurveyTimerPanel, props);
|
|
5367
5367
|
});
|
|
5368
5368
|
|
|
5369
5369
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/panel.tsx
|
|
@@ -5408,7 +5408,7 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5408
5408
|
SurveyPanel.prototype.renderElement = function () {
|
|
5409
5409
|
var _this = this;
|
|
5410
5410
|
var header = this.renderHeader();
|
|
5411
|
-
var errors = (
|
|
5411
|
+
var errors = (_(reactquestion_SurveyElementErrors, { element: this.panelBase, cssClasses: this.panelBase.cssClasses, creator: this.creator }));
|
|
5412
5412
|
var style = {
|
|
5413
5413
|
paddingLeft: this.panel.innerPaddingLeft,
|
|
5414
5414
|
display: this.panel.renderedIsExpanded ? undefined : "none",
|
|
@@ -5424,7 +5424,7 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5424
5424
|
if (_this.panelBase)
|
|
5425
5425
|
_this.panelBase.focusIn();
|
|
5426
5426
|
};
|
|
5427
|
-
return (
|
|
5427
|
+
return (_("div", { ref: this.rootRef, className: this.panelBase.getContainerCss(), onFocus: focusIn, id: this.panelBase.id },
|
|
5428
5428
|
this.panel.showErrorsAbovePanel ? errors : null,
|
|
5429
5429
|
header,
|
|
5430
5430
|
this.panel.showErrorsAbovePanel ? null : errors,
|
|
@@ -5434,7 +5434,7 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5434
5434
|
if (!this.panel.hasTitle && !this.panel.hasDescription) {
|
|
5435
5435
|
return null;
|
|
5436
5436
|
}
|
|
5437
|
-
return
|
|
5437
|
+
return _(element_header_SurveyElementHeader, { element: this.panel });
|
|
5438
5438
|
};
|
|
5439
5439
|
SurveyPanel.prototype.wrapElement = function (element) {
|
|
5440
5440
|
var survey = this.panel.survey;
|
|
@@ -5446,26 +5446,26 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5446
5446
|
};
|
|
5447
5447
|
SurveyPanel.prototype.renderContent = function (style, rows, className) {
|
|
5448
5448
|
var bottom = this.renderBottom();
|
|
5449
|
-
return (
|
|
5449
|
+
return (_("div", { style: style, className: className, id: this.panel.contentId },
|
|
5450
5450
|
rows,
|
|
5451
5451
|
bottom));
|
|
5452
5452
|
};
|
|
5453
5453
|
SurveyPanel.prototype.renderTitle = function () {
|
|
5454
5454
|
if (!this.panelBase.title)
|
|
5455
5455
|
return null;
|
|
5456
|
-
return
|
|
5456
|
+
return _(title_element_TitleElement, { element: this.panelBase });
|
|
5457
5457
|
};
|
|
5458
5458
|
SurveyPanel.prototype.renderDescription = function () {
|
|
5459
5459
|
if (!this.panelBase.description)
|
|
5460
5460
|
return null;
|
|
5461
5461
|
var text = reactquestion_element_SurveyElementBase.renderLocString(this.panelBase.locDescription);
|
|
5462
|
-
return (
|
|
5462
|
+
return (_("div", { className: this.panel.cssClasses.panel.description }, text));
|
|
5463
5463
|
};
|
|
5464
5464
|
SurveyPanel.prototype.renderBottom = function () {
|
|
5465
5465
|
var footerToolbar = this.panel.getFooterToolbar();
|
|
5466
5466
|
if (!footerToolbar.hasActions)
|
|
5467
5467
|
return null;
|
|
5468
|
-
return
|
|
5468
|
+
return _(action_bar_SurveyActionBar, { model: footerToolbar });
|
|
5469
5469
|
};
|
|
5470
5470
|
SurveyPanel.prototype.getIsVisible = function () {
|
|
5471
5471
|
return this.panelBase.getIsContentVisible();
|
|
@@ -5474,7 +5474,7 @@ var panel_SurveyPanel = /** @class */ (function (_super) {
|
|
|
5474
5474
|
}(panel_base_SurveyPanelBase));
|
|
5475
5475
|
|
|
5476
5476
|
ReactElementFactory.Instance.registerElement("panel", function (props) {
|
|
5477
|
-
return
|
|
5477
|
+
return _(panel_SurveyPanel, props);
|
|
5478
5478
|
});
|
|
5479
5479
|
|
|
5480
5480
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/flow-panel.tsx
|
|
@@ -5549,7 +5549,7 @@ var flow_panel_SurveyFlowPanel = /** @class */ (function (_super) {
|
|
|
5549
5549
|
var html = "<span>" + this.flowPanel.produceHtml() + "</span>";
|
|
5550
5550
|
if (!DOMParser) {
|
|
5551
5551
|
var htmlValue = { __html: html };
|
|
5552
|
-
return
|
|
5552
|
+
return _("div", { dangerouslySetInnerHTML: htmlValue });
|
|
5553
5553
|
}
|
|
5554
5554
|
var doc = new DOMParser().parseFromString(html, "text/xml");
|
|
5555
5555
|
this.renderedIndex = 0;
|
|
@@ -5582,8 +5582,8 @@ var flow_panel_SurveyFlowPanel = /** @class */ (function (_super) {
|
|
|
5582
5582
|
var nodeType = node.nodeName.toLowerCase();
|
|
5583
5583
|
var children = this.renderNodes(this.getChildDomNodes(node));
|
|
5584
5584
|
if (nodeType === "div")
|
|
5585
|
-
return
|
|
5586
|
-
return (
|
|
5585
|
+
return _("div", { key: this.getNodeIndex() }, children);
|
|
5586
|
+
return (_("span", { key: this.getNodeIndex(), style: this.getStyle(nodeType) }, children));
|
|
5587
5587
|
};
|
|
5588
5588
|
SurveyFlowPanel.prototype.renderNode = function (node) {
|
|
5589
5589
|
if (!this.hasTextChildNodesOnly(node)) {
|
|
@@ -5594,13 +5594,13 @@ var flow_panel_SurveyFlowPanel = /** @class */ (function (_super) {
|
|
|
5594
5594
|
var question = this.flowPanel.getQuestionByName(node.textContent);
|
|
5595
5595
|
if (!question)
|
|
5596
5596
|
return null;
|
|
5597
|
-
var questionBody = (
|
|
5598
|
-
return
|
|
5597
|
+
var questionBody = (_(reactquestion_SurveyQuestion, { key: question.name, element: question, creator: this.creator, css: this.css }));
|
|
5598
|
+
return _("span", { key: this.getNodeIndex() }, questionBody);
|
|
5599
5599
|
}
|
|
5600
5600
|
if (nodeType === "div") {
|
|
5601
|
-
return
|
|
5601
|
+
return _("div", { key: this.getNodeIndex() }, node.textContent);
|
|
5602
5602
|
}
|
|
5603
|
-
return (
|
|
5603
|
+
return (_("span", { key: this.getNodeIndex(), style: this.getStyle(nodeType) }, node.textContent));
|
|
5604
5604
|
};
|
|
5605
5605
|
SurveyFlowPanel.prototype.getChildDomNodes = function (node) {
|
|
5606
5606
|
var domNodes = [];
|
|
@@ -5618,13 +5618,13 @@ var flow_panel_SurveyFlowPanel = /** @class */ (function (_super) {
|
|
|
5618
5618
|
return true;
|
|
5619
5619
|
};
|
|
5620
5620
|
SurveyFlowPanel.prototype.renderContent = function (style, rows) {
|
|
5621
|
-
return
|
|
5621
|
+
return _("f-panel", { style: style }, rows);
|
|
5622
5622
|
};
|
|
5623
5623
|
return SurveyFlowPanel;
|
|
5624
5624
|
}(panel_SurveyPanel));
|
|
5625
5625
|
|
|
5626
5626
|
ReactElementFactory.Instance.registerElement("flowpanel", function (props) {
|
|
5627
|
-
return
|
|
5627
|
+
return _(flow_panel_SurveyFlowPanel, props);
|
|
5628
5628
|
});
|
|
5629
5629
|
|
|
5630
5630
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_checkbox.tsx
|
|
@@ -5664,8 +5664,8 @@ var reactquestion_checkbox_SurveyQuestionCheckbox = /** @class */ (function (_su
|
|
|
5664
5664
|
SurveyQuestionCheckbox.prototype.renderElement = function () {
|
|
5665
5665
|
var _this = this;
|
|
5666
5666
|
var cssClasses = this.question.cssClasses;
|
|
5667
|
-
return (
|
|
5668
|
-
|
|
5667
|
+
return (_("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 },
|
|
5668
|
+
_("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
5669
5669
|
this.getHeader(),
|
|
5670
5670
|
this.question.hasColumns
|
|
5671
5671
|
? this.getColumnedBody(cssClasses)
|
|
@@ -5690,7 +5690,7 @@ var reactquestion_checkbox_SurveyQuestionCheckbox = /** @class */ (function (_su
|
|
|
5690
5690
|
}
|
|
5691
5691
|
};
|
|
5692
5692
|
SurveyQuestionCheckbox.prototype.getColumnedBody = function (cssClasses) {
|
|
5693
|
-
return (
|
|
5693
|
+
return (_("div", { className: cssClasses.rootMultiColumn }, this.getColumns(cssClasses)));
|
|
5694
5694
|
};
|
|
5695
5695
|
SurveyQuestionCheckbox.prototype.getColumns = function (cssClasses) {
|
|
5696
5696
|
var _this = this;
|
|
@@ -5698,15 +5698,15 @@ var reactquestion_checkbox_SurveyQuestionCheckbox = /** @class */ (function (_su
|
|
|
5698
5698
|
var items = column.map(function (item, ii) {
|
|
5699
5699
|
return _this.renderItem(item, ci === 0 && ii === 0, cssClasses, "" + ci + ii);
|
|
5700
5700
|
});
|
|
5701
|
-
return (
|
|
5701
|
+
return (_("div", { key: "column" + ci + _this.question.getItemsColumnKey(column), className: _this.question.getColumnClass(), role: "presentation" }, items));
|
|
5702
5702
|
});
|
|
5703
5703
|
};
|
|
5704
5704
|
SurveyQuestionCheckbox.prototype.getBody = function (cssClasses) {
|
|
5705
5705
|
if (this.question.blockedRow) {
|
|
5706
|
-
return
|
|
5706
|
+
return _("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
|
|
5707
5707
|
}
|
|
5708
5708
|
else
|
|
5709
|
-
return
|
|
5709
|
+
return _(k, null, this.getItems(cssClasses, this.question.bodyItems));
|
|
5710
5710
|
};
|
|
5711
5711
|
SurveyQuestionCheckbox.prototype.getItems = function (cssClasses, choices) {
|
|
5712
5712
|
var renderedItems = [];
|
|
@@ -5729,8 +5729,8 @@ var reactquestion_checkbox_SurveyQuestionCheckbox = /** @class */ (function (_su
|
|
|
5729
5729
|
});
|
|
5730
5730
|
SurveyQuestionCheckbox.prototype.renderOther = function () {
|
|
5731
5731
|
var cssClasses = this.question.cssClasses;
|
|
5732
|
-
return (
|
|
5733
|
-
|
|
5732
|
+
return (_("div", { className: this.question.getCommentAreaCss(true) },
|
|
5733
|
+
_(SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode })));
|
|
5734
5734
|
};
|
|
5735
5735
|
SurveyQuestionCheckbox.prototype.renderItem = function (item, isFirst, cssClasses, index) {
|
|
5736
5736
|
var renderedItem = ReactElementFactory.Instance.createElement(this.question.itemComponent, {
|
|
@@ -5845,14 +5845,14 @@ var reactquestion_checkbox_SurveyQuestionCheckboxItem = /** @class */ (function
|
|
|
5845
5845
|
var id = this.question.getItemId(this.item);
|
|
5846
5846
|
var itemClass = this.question.getItemClass(this.item);
|
|
5847
5847
|
var labelClass = this.question.getLabelClass(this.item);
|
|
5848
|
-
var itemLabel = !this.hideCaption ?
|
|
5849
|
-
return (
|
|
5850
|
-
|
|
5851
|
-
|
|
5848
|
+
var itemLabel = !this.hideCaption ? _("span", { className: this.cssClasses.controlLabel }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
5849
|
+
return (_("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
5850
|
+
_("label", { className: labelClass },
|
|
5851
|
+
_("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() }),
|
|
5852
5852
|
this.cssClasses.materialDecorator ?
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5853
|
+
_("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
5854
|
+
_("svg", { className: this.cssClasses.itemDecorator },
|
|
5855
|
+
_("use", { xlinkHref: this.question.itemSvgIcon })) :
|
|
5856
5856
|
null) :
|
|
5857
5857
|
null,
|
|
5858
5858
|
itemLabel),
|
|
@@ -5874,10 +5874,10 @@ var reactquestion_checkbox_SurveyQuestionCheckboxItem = /** @class */ (function
|
|
|
5874
5874
|
}(ReactSurveyElement));
|
|
5875
5875
|
|
|
5876
5876
|
ReactElementFactory.Instance.registerElement("survey-checkbox-item", function (props) {
|
|
5877
|
-
return
|
|
5877
|
+
return _(reactquestion_checkbox_SurveyQuestionCheckboxItem, props);
|
|
5878
5878
|
});
|
|
5879
5879
|
ReactQuestionFactory.Instance.registerQuestion("checkbox", function (props) {
|
|
5880
|
-
return
|
|
5880
|
+
return _(reactquestion_checkbox_SurveyQuestionCheckbox, props);
|
|
5881
5881
|
});
|
|
5882
5882
|
|
|
5883
5883
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_ranking.tsx
|
|
@@ -5916,21 +5916,21 @@ var reactquestion_ranking_SurveyQuestionRanking = /** @class */ (function (_supe
|
|
|
5916
5916
|
SurveyQuestionRanking.prototype.renderElement = function () {
|
|
5917
5917
|
var _this = this;
|
|
5918
5918
|
if (!this.question.selectToRankEnabled) {
|
|
5919
|
-
return (
|
|
5919
|
+
return (_("div", { className: this.question.rootClass, ref: function (root) { return (_this.setControl(root)); } }, this.getItems()));
|
|
5920
5920
|
}
|
|
5921
5921
|
else {
|
|
5922
5922
|
var unrankedItem = true;
|
|
5923
|
-
return (
|
|
5924
|
-
|
|
5923
|
+
return (_("div", { className: this.question.rootClass, ref: function (root) { return (_this.setControl(root)); } },
|
|
5924
|
+
_("div", { className: this.question.getContainerClasses("from"), "data-ranking": "from-container" },
|
|
5925
5925
|
this.getItems(this.question.renderedUnRankingChoices, unrankedItem),
|
|
5926
|
-
this.question.renderedUnRankingChoices.length === 0 ?
|
|
5926
|
+
this.question.renderedUnRankingChoices.length === 0 ? _("div", { className: this.question.cssClasses.containerPlaceholder },
|
|
5927
5927
|
" ",
|
|
5928
5928
|
this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText),
|
|
5929
5929
|
" ") : null),
|
|
5930
|
-
|
|
5931
|
-
|
|
5930
|
+
_("div", { className: this.question.cssClasses.containersDivider }),
|
|
5931
|
+
_("div", { className: this.question.getContainerClasses("to"), "data-ranking": "to-container" },
|
|
5932
5932
|
this.getItems(),
|
|
5933
|
-
this.question.renderedRankingChoices.length === 0 ?
|
|
5933
|
+
this.question.renderedRankingChoices.length === 0 ? _("div", { className: this.question.cssClasses.containerPlaceholder },
|
|
5934
5934
|
" ",
|
|
5935
5935
|
this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText),
|
|
5936
5936
|
" ") : null)));
|
|
@@ -5966,7 +5966,7 @@ var reactquestion_ranking_SurveyQuestionRanking = /** @class */ (function (_supe
|
|
|
5966
5966
|
var index = i;
|
|
5967
5967
|
var indexText = this.question.getNumberByIndex(index);
|
|
5968
5968
|
var tabIndex = this.question.getItemTabIndex(item);
|
|
5969
|
-
var renderedItem = (
|
|
5969
|
+
var renderedItem = (_(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 }));
|
|
5970
5970
|
var survey = this.question.survey;
|
|
5971
5971
|
var wrappedItem = null;
|
|
5972
5972
|
if (!!survey) {
|
|
@@ -6067,21 +6067,21 @@ var reactquestion_ranking_SurveyQuestionRankingItem = /** @class */ (function (_
|
|
|
6067
6067
|
configurable: true
|
|
6068
6068
|
});
|
|
6069
6069
|
SurveyQuestionRankingItem.prototype.renderEmptyIcon = function () {
|
|
6070
|
-
return (
|
|
6071
|
-
|
|
6070
|
+
return (_("svg", null,
|
|
6071
|
+
_("use", { xlinkHref: this.question.dashSvgIcon })));
|
|
6072
6072
|
};
|
|
6073
6073
|
SurveyQuestionRankingItem.prototype.renderElement = function () {
|
|
6074
6074
|
var itemContent = ReactElementFactory.Instance.createElement(this.question.itemComponent, { item: this.item, cssClasses: this.cssClasses });
|
|
6075
|
-
return (
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6075
|
+
return (_("div", { tabIndex: this.itemTabIndex, className: this.itemClass, onKeyDown: this.handleKeydown, onPointerDown: this.handlePointerDown, onPointerUp: this.handlePointerUp, "data-sv-drop-target-ranking-item": this.index },
|
|
6076
|
+
_("div", { tabIndex: -1, style: { outline: "none" } },
|
|
6077
|
+
_("div", { className: this.cssClasses.itemGhostNode }),
|
|
6078
|
+
_("div", { className: this.cssClasses.itemContent },
|
|
6079
|
+
_("div", { className: this.cssClasses.itemIconContainer },
|
|
6080
|
+
_("svg", { className: this.question.getIconHoverCss() },
|
|
6081
|
+
_("use", { xlinkHref: this.question.dragDropSvgIcon })),
|
|
6082
|
+
_("svg", { className: this.question.getIconFocusCss() },
|
|
6083
|
+
_("use", { xlinkHref: this.question.arrowsSvgIcon }))),
|
|
6084
|
+
_("div", { className: this.question.getItemIndexClasses(this.item) }, (!this.unrankedItem && this.indexText) ? this.indexText : this.renderEmptyIcon()),
|
|
6085
6085
|
itemContent))));
|
|
6086
6086
|
};
|
|
6087
6087
|
return SurveyQuestionRankingItem;
|
|
@@ -6107,16 +6107,16 @@ var reactquestion_ranking_SurveyQuestionRankingItemContent = /** @class */ (func
|
|
|
6107
6107
|
configurable: true
|
|
6108
6108
|
});
|
|
6109
6109
|
SurveyQuestionRankingItemContent.prototype.renderElement = function () {
|
|
6110
|
-
return
|
|
6110
|
+
return _("div", { className: this.cssClasses.controlLabel }, reactquestion_element_SurveyElementBase.renderLocString(this.item.locText));
|
|
6111
6111
|
};
|
|
6112
6112
|
return SurveyQuestionRankingItemContent;
|
|
6113
6113
|
}(ReactSurveyElement));
|
|
6114
6114
|
|
|
6115
6115
|
ReactElementFactory.Instance.registerElement("sv-ranking-item", function (props) {
|
|
6116
|
-
return
|
|
6116
|
+
return _(reactquestion_ranking_SurveyQuestionRankingItemContent, props);
|
|
6117
6117
|
});
|
|
6118
6118
|
ReactQuestionFactory.Instance.registerQuestion("ranking", function (props) {
|
|
6119
|
-
return
|
|
6119
|
+
return _(reactquestion_ranking_SurveyQuestionRanking, props);
|
|
6120
6120
|
});
|
|
6121
6121
|
|
|
6122
6122
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/rating/rating-item.tsx
|
|
@@ -6404,22 +6404,22 @@ var tagbox_filter_TagboxFilterString = /** @class */ (function (_super) {
|
|
|
6404
6404
|
};
|
|
6405
6405
|
TagboxFilterString.prototype.render = function () {
|
|
6406
6406
|
var _this = this;
|
|
6407
|
-
return (
|
|
6407
|
+
return (_("div", { className: this.question.cssClasses.hint },
|
|
6408
6408
|
this.model.showHintPrefix ?
|
|
6409
|
-
(
|
|
6410
|
-
|
|
6411
|
-
|
|
6409
|
+
(_("div", { className: this.question.cssClasses.hintPrefix },
|
|
6410
|
+
_("span", null, this.model.hintStringPrefix))) : null,
|
|
6411
|
+
_("div", { className: this.question.cssClasses.hintSuffixWrapper },
|
|
6412
6412
|
this.model.showHintString ?
|
|
6413
|
-
(
|
|
6414
|
-
|
|
6415
|
-
|
|
6416
|
-
|
|
6413
|
+
(_("div", { className: this.question.cssClasses.hintSuffix },
|
|
6414
|
+
_("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.model.inputStringRendered),
|
|
6415
|
+
_("span", null, this.model.hintStringSuffix))) : null,
|
|
6416
|
+
_("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); } }))));
|
|
6417
6417
|
};
|
|
6418
6418
|
return TagboxFilterString;
|
|
6419
6419
|
}(reactquestion_element_SurveyElementBase));
|
|
6420
6420
|
|
|
6421
6421
|
ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter", function (props) {
|
|
6422
|
-
return
|
|
6422
|
+
return _(tagbox_filter_TagboxFilterString, props);
|
|
6423
6423
|
});
|
|
6424
6424
|
|
|
6425
6425
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/dropdown-item.tsx
|
|
@@ -6484,7 +6484,7 @@ var dropdown_item_SurveyQuestionOptionItem = /** @class */ (function (_super) {
|
|
|
6484
6484
|
return !!this.item;
|
|
6485
6485
|
};
|
|
6486
6486
|
SurveyQuestionOptionItem.prototype.renderElement = function () {
|
|
6487
|
-
return (
|
|
6487
|
+
return (_("option", { value: this.item.value, disabled: !this.item.isEnabled }, this.item.text));
|
|
6488
6488
|
};
|
|
6489
6489
|
return SurveyQuestionOptionItem;
|
|
6490
6490
|
}(ReactSurveyElement));
|
|
@@ -6552,7 +6552,7 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6552
6552
|
return this.questionBase.renderedValue;
|
|
6553
6553
|
};
|
|
6554
6554
|
SurveyQuestionDropdownBase.prototype.renderReadOnlyElement = function () {
|
|
6555
|
-
return
|
|
6555
|
+
return _("div", null, this.question.readOnlyText);
|
|
6556
6556
|
};
|
|
6557
6557
|
SurveyQuestionDropdownBase.prototype.renderSelect = function (cssClasses) {
|
|
6558
6558
|
var _this = this;
|
|
@@ -6562,16 +6562,16 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6562
6562
|
var text = (this.question.selectedItemLocText) ? this.renderLocString(this.question.selectedItemLocText) : "";
|
|
6563
6563
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6564
6564
|
// @ts-ignore
|
|
6565
|
-
selectElement =
|
|
6565
|
+
selectElement = _("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(), ref: function (div) { return (_this.setControl(div)); } },
|
|
6566
6566
|
text,
|
|
6567
6567
|
this.renderReadOnlyElement());
|
|
6568
6568
|
}
|
|
6569
6569
|
else {
|
|
6570
|
-
selectElement =
|
|
6570
|
+
selectElement = _(k, null,
|
|
6571
6571
|
this.renderInput(this.question["dropdownListModel"]),
|
|
6572
|
-
|
|
6572
|
+
_(popup_Popup, { model: (_b = (_a = this.question) === null || _a === void 0 ? void 0 : _a.dropdownListModel) === null || _b === void 0 ? void 0 : _b.popupModel }));
|
|
6573
6573
|
}
|
|
6574
|
-
return (
|
|
6574
|
+
return (_("div", { className: cssClasses.selectWrapper, onClick: this.click },
|
|
6575
6575
|
selectElement,
|
|
6576
6576
|
this.createChevronButton()));
|
|
6577
6577
|
};
|
|
@@ -6593,38 +6593,38 @@ var dropdown_base_SurveyQuestionDropdownBase = /** @class */ (function (_super)
|
|
|
6593
6593
|
dropdownListModel.inputStringRendered = e.target.value;
|
|
6594
6594
|
}
|
|
6595
6595
|
};
|
|
6596
|
-
return (
|
|
6596
|
+
return (_("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
6597
6597
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6598
6598
|
// @ts-ignore
|
|
6599
6599
|
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, ref: function (div) { return (_this.setControl(div)); } },
|
|
6600
6600
|
dropdownListModel.showHintPrefix ?
|
|
6601
|
-
(
|
|
6602
|
-
|
|
6603
|
-
|
|
6601
|
+
(_("div", { className: this.question.cssClasses.hintPrefix },
|
|
6602
|
+
_("span", null, dropdownListModel.hintStringPrefix))) : null,
|
|
6603
|
+
_("div", { className: this.question.cssClasses.controlValue },
|
|
6604
6604
|
dropdownListModel.showHintString ?
|
|
6605
|
-
(
|
|
6606
|
-
|
|
6607
|
-
|
|
6605
|
+
(_("div", { className: this.question.cssClasses.hintSuffix },
|
|
6606
|
+
_("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
|
|
6607
|
+
_("span", null, dropdownListModel.hintStringSuffix))) : null,
|
|
6608
6608
|
valueElement,
|
|
6609
|
-
|
|
6609
|
+
_("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 })),
|
|
6610
6610
|
this.createClearButton()));
|
|
6611
6611
|
};
|
|
6612
6612
|
SurveyQuestionDropdownBase.prototype.createClearButton = function () {
|
|
6613
6613
|
if (!this.question.allowClear || !this.question.cssClasses.cleanButtonIconId)
|
|
6614
6614
|
return null;
|
|
6615
6615
|
var style = { display: !this.question.showClearButton ? "none" : "" };
|
|
6616
|
-
return (
|
|
6617
|
-
|
|
6616
|
+
return (_("div", { className: this.question.cssClasses.cleanButton, style: style, onClick: this.clear, "aria-hidden": "true" },
|
|
6617
|
+
_(svg_icon_SvgIcon, { className: this.question.cssClasses.cleanButtonSvg, iconName: this.question.cssClasses.cleanButtonIconId, title: this.question.clearCaption, size: "auto" })));
|
|
6618
6618
|
};
|
|
6619
6619
|
SurveyQuestionDropdownBase.prototype.createChevronButton = function () {
|
|
6620
6620
|
if (!this.question.cssClasses.chevronButtonIconId)
|
|
6621
6621
|
return null;
|
|
6622
|
-
return (
|
|
6623
|
-
|
|
6622
|
+
return (_("div", { className: this.question.cssClasses.chevronButton, "aria-hidden": "true", onPointerDown: this.chevronPointerDown },
|
|
6623
|
+
_(svg_icon_SvgIcon, { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size: "auto" })));
|
|
6624
6624
|
};
|
|
6625
6625
|
SurveyQuestionDropdownBase.prototype.renderOther = function (cssClasses) {
|
|
6626
|
-
return (
|
|
6627
|
-
|
|
6626
|
+
return (_("div", { className: this.question.getCommentAreaCss(true) },
|
|
6627
|
+
_(SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, isOther: true })));
|
|
6628
6628
|
};
|
|
6629
6629
|
SurveyQuestionDropdownBase.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
6630
6630
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
@@ -6680,7 +6680,7 @@ var reactquestion_dropdown_SurveyQuestionDropdown = /** @class */ (function (_su
|
|
|
6680
6680
|
var cssClasses = this.question.cssClasses;
|
|
6681
6681
|
var comment = this.question.isOtherSelected ? this.renderOther(cssClasses) : null;
|
|
6682
6682
|
var select = this.renderSelect(cssClasses);
|
|
6683
|
-
return (
|
|
6683
|
+
return (_("div", { className: this.question.renderCssRoot },
|
|
6684
6684
|
select,
|
|
6685
6685
|
comment));
|
|
6686
6686
|
};
|
|
@@ -6688,7 +6688,7 @@ var reactquestion_dropdown_SurveyQuestionDropdown = /** @class */ (function (_su
|
|
|
6688
6688
|
}(dropdown_base_SurveyQuestionDropdownBase));
|
|
6689
6689
|
|
|
6690
6690
|
ReactQuestionFactory.Instance.registerQuestion("dropdown", function (props) {
|
|
6691
|
-
return
|
|
6691
|
+
return _(reactquestion_dropdown_SurveyQuestionDropdown, props);
|
|
6692
6692
|
});
|
|
6693
6693
|
|
|
6694
6694
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/tagbox-item.tsx
|
|
@@ -6739,10 +6739,10 @@ var tagbox_item_SurveyQuestionTagboxItem = /** @class */ (function (_super) {
|
|
|
6739
6739
|
_this.question.dropdownListModel.deselectItem(_this.item.value);
|
|
6740
6740
|
event.stopPropagation();
|
|
6741
6741
|
};
|
|
6742
|
-
return (
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6742
|
+
return (_("div", { className: "sv-tagbox__item" },
|
|
6743
|
+
_("div", { className: "sv-tagbox__item-text" }, text),
|
|
6744
|
+
_("div", { className: this.question.cssClasses.cleanItemButton, onClick: removeItem },
|
|
6745
|
+
_(svg_icon_SvgIcon, { className: this.question.cssClasses.cleanItemButtonSvg, iconName: this.question.cssClasses.cleanItemButtonIconId, size: "auto" }))));
|
|
6746
6746
|
};
|
|
6747
6747
|
return SurveyQuestionTagboxItem;
|
|
6748
6748
|
}(ReactSurveyElement));
|
|
@@ -6775,27 +6775,27 @@ var reactquestion_tagbox_SurveyQuestionTagbox = /** @class */ (function (_super)
|
|
|
6775
6775
|
return _super.call(this, props) || this;
|
|
6776
6776
|
}
|
|
6777
6777
|
SurveyQuestionTagbox.prototype.renderItem = function (key, item) {
|
|
6778
|
-
var renderedItem = (
|
|
6778
|
+
var renderedItem = (_(tagbox_item_SurveyQuestionTagboxItem, { key: key, question: this.question, item: item }));
|
|
6779
6779
|
return renderedItem;
|
|
6780
6780
|
};
|
|
6781
6781
|
SurveyQuestionTagbox.prototype.renderInput = function (dropdownListModel) {
|
|
6782
6782
|
var _this = this;
|
|
6783
6783
|
var dropdownMultiSelectListModel = dropdownListModel;
|
|
6784
6784
|
var items = this.question.selectedChoices.map(function (choice, index) { return _this.renderItem("item" + index, choice); });
|
|
6785
|
-
return (
|
|
6785
|
+
return (_("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.noTabIndex ? undefined : 0,
|
|
6786
6786
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6787
6787
|
// @ts-ignore
|
|
6788
6788
|
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, ref: function (div) { return (_this.setControl(div)); } },
|
|
6789
|
-
|
|
6789
|
+
_("div", { className: this.question.cssClasses.controlValue },
|
|
6790
6790
|
items,
|
|
6791
|
-
|
|
6791
|
+
_(tagbox_filter_TagboxFilterString, { model: dropdownMultiSelectListModel, question: this.question })),
|
|
6792
6792
|
this.createClearButton()));
|
|
6793
6793
|
};
|
|
6794
6794
|
SurveyQuestionTagbox.prototype.renderElement = function () {
|
|
6795
6795
|
var cssClasses = this.question.cssClasses;
|
|
6796
6796
|
var comment = this.question.isOtherSelected ? this.renderOther(cssClasses) : null;
|
|
6797
6797
|
var select = this.renderSelect(cssClasses);
|
|
6798
|
-
return (
|
|
6798
|
+
return (_("div", { className: this.question.renderCssRoot },
|
|
6799
6799
|
select,
|
|
6800
6800
|
comment));
|
|
6801
6801
|
};
|
|
@@ -6811,7 +6811,7 @@ var reactquestion_tagbox_SurveyQuestionTagbox = /** @class */ (function (_super)
|
|
|
6811
6811
|
}(dropdown_base_SurveyQuestionDropdownBase));
|
|
6812
6812
|
|
|
6813
6813
|
ReactQuestionFactory.Instance.registerQuestion("tagbox", function (props) {
|
|
6814
|
-
return
|
|
6814
|
+
return _(reactquestion_tagbox_SurveyQuestionTagbox, props);
|
|
6815
6815
|
});
|
|
6816
6816
|
|
|
6817
6817
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/dropdown-select.tsx
|
|
@@ -6851,11 +6851,11 @@ var dropdown_select_SurveyQuestionDropdownSelect = /** @class */ (function (_sup
|
|
|
6851
6851
|
var selectElement = this.isDisplayMode ? (
|
|
6852
6852
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6853
6853
|
// @ts-ignore
|
|
6854
|
-
|
|
6855
|
-
(
|
|
6856
|
-
this.question.allowClear ? (
|
|
6857
|
-
this.question.visibleChoices.map(function (item, i) { return
|
|
6858
|
-
return (
|
|
6854
|
+
_("div", { id: this.question.inputId, className: this.question.getControlClass(), disabled: true }, this.question.readOnlyText)) :
|
|
6855
|
+
(_("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 },
|
|
6856
|
+
this.question.allowClear ? (_("option", { value: "" }, this.question.placeholder)) : null,
|
|
6857
|
+
this.question.visibleChoices.map(function (item, i) { return _(dropdown_item_SurveyQuestionOptionItem, { key: "item" + i, item: item }); })));
|
|
6858
|
+
return (_("div", { className: cssClasses.selectWrapper },
|
|
6859
6859
|
selectElement,
|
|
6860
6860
|
this.createChevronButton()));
|
|
6861
6861
|
};
|
|
@@ -6863,7 +6863,7 @@ var dropdown_select_SurveyQuestionDropdownSelect = /** @class */ (function (_sup
|
|
|
6863
6863
|
}(reactquestion_dropdown_SurveyQuestionDropdown));
|
|
6864
6864
|
|
|
6865
6865
|
ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select", function (props) {
|
|
6866
|
-
return
|
|
6866
|
+
return _(dropdown_select_SurveyQuestionDropdownSelect, props);
|
|
6867
6867
|
});
|
|
6868
6868
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("dropdown", "select", "sv-dropdown-select");
|
|
6869
6869
|
|
|
@@ -6920,7 +6920,7 @@ var reactquestion_matrix_SurveyQuestionMatrix = /** @class */ (function (_super)
|
|
|
6920
6920
|
SurveyQuestionMatrix.prototype.renderElement = function () {
|
|
6921
6921
|
var _this = this;
|
|
6922
6922
|
var cssClasses = this.question.cssClasses;
|
|
6923
|
-
var rowsTH = this.question.hasRows ?
|
|
6923
|
+
var rowsTH = this.question.hasRows ? _("td", null) : null;
|
|
6924
6924
|
var headers = [];
|
|
6925
6925
|
for (var i = 0; i < this.question.visibleColumns.length; i++) {
|
|
6926
6926
|
var column = this.question.visibleColumns[i];
|
|
@@ -6931,25 +6931,25 @@ var reactquestion_matrix_SurveyQuestionMatrix = /** @class */ (function (_super)
|
|
|
6931
6931
|
style.minWidth = this.question.columnMinWidth;
|
|
6932
6932
|
style.width = this.question.columnMinWidth;
|
|
6933
6933
|
}
|
|
6934
|
-
headers.push(
|
|
6934
|
+
headers.push(_("th", { className: this.question.cssClasses.headerCell, style: style, key: key }, this.wrapCell({ column: column }, columText, "column-header")));
|
|
6935
6935
|
}
|
|
6936
6936
|
var rows = [];
|
|
6937
6937
|
var visibleRows = this.question.visibleRows;
|
|
6938
6938
|
for (var i = 0; i < visibleRows.length; i++) {
|
|
6939
6939
|
var row = visibleRows[i];
|
|
6940
6940
|
var key = "row-" + row.name + "-" + i;
|
|
6941
|
-
rows.push(
|
|
6941
|
+
rows.push(_(reactquestion_matrix_SurveyQuestionMatrixRow, { key: key, question: this.question, cssClasses: cssClasses, row: row, isFirst: i == 0 }));
|
|
6942
6942
|
}
|
|
6943
|
-
var header = !this.question.showHeader ? null : (
|
|
6944
|
-
|
|
6943
|
+
var header = !this.question.showHeader ? null : (_("thead", null,
|
|
6944
|
+
_("tr", null,
|
|
6945
6945
|
rowsTH,
|
|
6946
6946
|
headers)));
|
|
6947
|
-
return (
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6947
|
+
return (_("div", { className: cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
6948
|
+
_("fieldset", null,
|
|
6949
|
+
_("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
6950
|
+
_("table", { className: this.question.getTableCss() },
|
|
6951
6951
|
header,
|
|
6952
|
-
|
|
6952
|
+
_("tbody", null, rows)))));
|
|
6953
6953
|
};
|
|
6954
6954
|
return SurveyQuestionMatrix;
|
|
6955
6955
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
@@ -7001,10 +7001,10 @@ var reactquestion_matrix_SurveyQuestionMatrixRow = /** @class */ (function (_sup
|
|
|
7001
7001
|
style.minWidth = this.question.rowTitleWidth;
|
|
7002
7002
|
style.width = this.question.rowTitleWidth;
|
|
7003
7003
|
}
|
|
7004
|
-
rowsTD =
|
|
7004
|
+
rowsTD = _("td", { style: style, className: this.row.rowTextClasses }, this.wrapCell({ row: this.row }, rowText, "row-header"));
|
|
7005
7005
|
}
|
|
7006
7006
|
var tds = this.generateTds();
|
|
7007
|
-
return (
|
|
7007
|
+
return (_("tr", { className: this.row.rowClasses || undefined },
|
|
7008
7008
|
rowsTD,
|
|
7009
7009
|
tds));
|
|
7010
7010
|
};
|
|
@@ -7020,7 +7020,7 @@ var reactquestion_matrix_SurveyQuestionMatrixRow = /** @class */ (function (_sup
|
|
|
7020
7020
|
var itemClass = this_1.question.getItemClass(row, column);
|
|
7021
7021
|
if (this_1.question.hasCellText) {
|
|
7022
7022
|
var getHandler = function (column) { return function () { return _this.cellClick(row, column); }; };
|
|
7023
|
-
td = (
|
|
7023
|
+
td = (_("td", { key: key, className: itemClass, onClick: getHandler ? getHandler(column) : function () { } }, this_1.renderLocString(this_1.question.getCellDisplayLocText(row.name, column))));
|
|
7024
7024
|
}
|
|
7025
7025
|
else {
|
|
7026
7026
|
var renderedCell = ReactElementFactory.Instance.createElement(cellComponent, {
|
|
@@ -7031,7 +7031,7 @@ var reactquestion_matrix_SurveyQuestionMatrixRow = /** @class */ (function (_sup
|
|
|
7031
7031
|
cssClasses: this_1.cssClasses,
|
|
7032
7032
|
cellChanged: function () { _this.cellClick(_this.row, column); }
|
|
7033
7033
|
});
|
|
7034
|
-
td = (
|
|
7034
|
+
td = (_("td", { key: key, "data-responsive-title": column.locText.renderedHtml, className: this_1.question.cssClasses.cell }, renderedCell));
|
|
7035
7035
|
}
|
|
7036
7036
|
tds.push(td);
|
|
7037
7037
|
};
|
|
@@ -7100,27 +7100,27 @@ var reactquestion_matrix_SurveyQuestionMatrixCell = /** @class */ (function (_su
|
|
|
7100
7100
|
var inputId = this.question.inputId + "_" + this.row.name + "_" + this.columnIndex;
|
|
7101
7101
|
var itemClass = this.question.getItemClass(this.row, this.column);
|
|
7102
7102
|
var mobileSpan = this.question.isMobile ?
|
|
7103
|
-
(
|
|
7103
|
+
(_("span", { className: this.question.cssClasses.cellResponsiveTitle }, this.renderLocString(this.column.locText)))
|
|
7104
7104
|
: undefined;
|
|
7105
|
-
return (
|
|
7105
|
+
return (_("label", { onMouseDown: this.handleOnMouseDown, className: itemClass },
|
|
7106
7106
|
this.renderInput(inputId, isChecked),
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7107
|
+
_("span", { className: this.question.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
7108
|
+
_("svg", { className: this.cssClasses.itemDecorator },
|
|
7109
|
+
_("use", { xlinkHref: this.question.itemSvgIcon })) :
|
|
7110
7110
|
null),
|
|
7111
7111
|
mobileSpan));
|
|
7112
7112
|
};
|
|
7113
7113
|
SurveyQuestionMatrixCell.prototype.renderInput = function (inputId, isChecked) {
|
|
7114
|
-
return (
|
|
7114
|
+
return (_("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 }));
|
|
7115
7115
|
};
|
|
7116
7116
|
return SurveyQuestionMatrixCell;
|
|
7117
7117
|
}(ReactSurveyElement));
|
|
7118
7118
|
|
|
7119
7119
|
ReactElementFactory.Instance.registerElement("survey-matrix-cell", function (props) {
|
|
7120
|
-
return
|
|
7120
|
+
return _(reactquestion_matrix_SurveyQuestionMatrixCell, props);
|
|
7121
7121
|
});
|
|
7122
7122
|
ReactQuestionFactory.Instance.registerQuestion("matrix", function (props) {
|
|
7123
|
-
return
|
|
7123
|
+
return _(reactquestion_matrix_SurveyQuestionMatrix, props);
|
|
7124
7124
|
});
|
|
7125
7125
|
|
|
7126
7126
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_html.tsx
|
|
@@ -7174,13 +7174,13 @@ var reactquestion_html_SurveyQuestionHtml = /** @class */ (function (_super) {
|
|
|
7174
7174
|
};
|
|
7175
7175
|
SurveyQuestionHtml.prototype.renderElement = function () {
|
|
7176
7176
|
var htmlValue = { __html: this.question.locHtml.renderedHtml };
|
|
7177
|
-
return (
|
|
7177
|
+
return (_("div", { className: this.question.renderCssRoot, dangerouslySetInnerHTML: htmlValue }));
|
|
7178
7178
|
};
|
|
7179
7179
|
return SurveyQuestionHtml;
|
|
7180
7180
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
7181
7181
|
|
|
7182
7182
|
ReactQuestionFactory.Instance.registerQuestion("html", function (props) {
|
|
7183
|
-
return
|
|
7183
|
+
return _(reactquestion_html_SurveyQuestionHtml, props);
|
|
7184
7184
|
});
|
|
7185
7185
|
|
|
7186
7186
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/loading-indicator.tsx
|
|
@@ -7207,8 +7207,8 @@ var loading_indicator_LoadingIndicatorComponent = /** @class */ (function (_supe
|
|
|
7207
7207
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7208
7208
|
}
|
|
7209
7209
|
LoadingIndicatorComponent.prototype.render = function () {
|
|
7210
|
-
return (
|
|
7211
|
-
|
|
7210
|
+
return (_("div", { className: "sd-loading-indicator" },
|
|
7211
|
+
_(svg_icon_SvgIcon, { iconName: "icon-loading", size: "auto" })));
|
|
7212
7212
|
};
|
|
7213
7213
|
return LoadingIndicatorComponent;
|
|
7214
7214
|
}(x));
|
|
@@ -7306,23 +7306,23 @@ var reactquestion_file_SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
7306
7306
|
var fileDecorator = this.question.showFileDecorator ? this.renderFileDecorator() : null;
|
|
7307
7307
|
var clearButton = this.question.showRemoveButton ? this.renderClearButton(this.question.cssClasses.removeButton) : null;
|
|
7308
7308
|
var clearButtonBottom = this.question.showRemoveButtonBottom ? this.renderClearButton(this.question.cssClasses.removeButtonBottom) : null;
|
|
7309
|
-
var fileNavigator = this.question.fileNavigatorVisible ? (
|
|
7309
|
+
var fileNavigator = this.question.fileNavigatorVisible ? (_(action_bar_SurveyActionBar, { model: this.question.fileNavigator })) : null;
|
|
7310
7310
|
var fileInput;
|
|
7311
7311
|
if (this.question.isReadOnlyAttr) {
|
|
7312
|
-
fileInput =
|
|
7312
|
+
fileInput = _("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 });
|
|
7313
7313
|
}
|
|
7314
7314
|
else if (this.question.isDisabledAttr) {
|
|
7315
|
-
fileInput =
|
|
7315
|
+
fileInput = _("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 });
|
|
7316
7316
|
}
|
|
7317
7317
|
else if (this.question.hasFileUI) {
|
|
7318
|
-
fileInput =
|
|
7318
|
+
fileInput = _("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 });
|
|
7319
7319
|
}
|
|
7320
7320
|
else {
|
|
7321
7321
|
fileInput = null;
|
|
7322
7322
|
}
|
|
7323
|
-
return (
|
|
7323
|
+
return (_("div", { className: this.question.fileRootCss, ref: function (el) { return (_this.setContent(el)); } },
|
|
7324
7324
|
fileInput,
|
|
7325
|
-
|
|
7325
|
+
_("div", { className: this.question.cssClasses.dragArea, onDrop: this.question.onDrop, onDragOver: this.question.onDragOver, onDragLeave: this.question.onDragLeave, onDragEnter: this.question.onDragEnter },
|
|
7326
7326
|
fileDecorator,
|
|
7327
7327
|
loadingIndicator,
|
|
7328
7328
|
video,
|
|
@@ -7333,42 +7333,42 @@ var reactquestion_file_SurveyQuestionFile = /** @class */ (function (_super) {
|
|
|
7333
7333
|
};
|
|
7334
7334
|
SurveyQuestionFile.prototype.renderFileDecorator = function () {
|
|
7335
7335
|
var chooseButton = this.question.showChooseButton ? this.renderChooseButton() : null;
|
|
7336
|
-
var actionsContainer = this.question.actionsContainerVisible ?
|
|
7337
|
-
var noFileChosen = this.question.isEmpty() ? (
|
|
7338
|
-
return (
|
|
7339
|
-
|
|
7340
|
-
|
|
7336
|
+
var actionsContainer = this.question.actionsContainerVisible ? _(action_bar_SurveyActionBar, { model: this.question.actionsContainer }) : null;
|
|
7337
|
+
var noFileChosen = this.question.isEmpty() ? (_("span", { className: this.question.cssClasses.noFileChosen }, this.question.noFileChosenCaption)) : null;
|
|
7338
|
+
return (_("div", { className: this.question.getFileDecoratorCss() },
|
|
7339
|
+
_("span", { className: this.question.cssClasses.dragAreaPlaceholder }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
|
7340
|
+
_("div", { className: this.question.cssClasses.wrapper },
|
|
7341
7341
|
chooseButton,
|
|
7342
7342
|
actionsContainer,
|
|
7343
7343
|
noFileChosen)));
|
|
7344
7344
|
};
|
|
7345
7345
|
SurveyQuestionFile.prototype.renderChooseButton = function () {
|
|
7346
|
-
return
|
|
7346
|
+
return _(file_choose_button_SurveyFileChooseButton, { data: { question: this.question } });
|
|
7347
7347
|
};
|
|
7348
7348
|
SurveyQuestionFile.prototype.renderClearButton = function (className) {
|
|
7349
|
-
return !this.question.isUploading ? (
|
|
7350
|
-
|
|
7351
|
-
(!!this.question.cssClasses.removeButtonIconId) ?
|
|
7349
|
+
return !this.question.isUploading ? (_("button", { type: "button", onClick: this.question.doClean, className: className },
|
|
7350
|
+
_("span", null, this.question.clearButtonCaption),
|
|
7351
|
+
(!!this.question.cssClasses.removeButtonIconId) ? _(svg_icon_SvgIcon, { iconName: this.question.cssClasses.removeButtonIconId, size: "auto", title: this.question.clearButtonCaption }) : null)) : null;
|
|
7352
7352
|
};
|
|
7353
7353
|
SurveyQuestionFile.prototype.renderPreview = function () {
|
|
7354
7354
|
return ReactElementFactory.Instance.createElement("sv-file-preview", { question: this.question });
|
|
7355
7355
|
};
|
|
7356
7356
|
SurveyQuestionFile.prototype.renderLoadingIndicator = function () {
|
|
7357
|
-
return
|
|
7358
|
-
|
|
7357
|
+
return _("div", { className: this.question.cssClasses.loadingIndicator },
|
|
7358
|
+
_(loading_indicator_LoadingIndicatorComponent, null));
|
|
7359
7359
|
};
|
|
7360
7360
|
SurveyQuestionFile.prototype.renderVideo = function () {
|
|
7361
|
-
return (
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7361
|
+
return (_("div", { className: this.question.cssClasses.videoContainer },
|
|
7362
|
+
_(action_bar_item_SurveyAction, { item: this.question.changeCameraAction }),
|
|
7363
|
+
_(action_bar_item_SurveyAction, { item: this.question.closeCameraAction }),
|
|
7364
|
+
_("video", { autoPlay: true, playsInline: true, id: this.question.videoId, className: this.question.cssClasses.video }),
|
|
7365
|
+
_(action_bar_item_SurveyAction, { item: this.question.takePictureAction })));
|
|
7366
7366
|
};
|
|
7367
7367
|
return SurveyQuestionFile;
|
|
7368
7368
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
7369
7369
|
|
|
7370
7370
|
ReactQuestionFactory.Instance.registerQuestion("file", function (props) {
|
|
7371
|
-
return
|
|
7371
|
+
return _(reactquestion_file_SurveyQuestionFile, props);
|
|
7372
7372
|
});
|
|
7373
7373
|
|
|
7374
7374
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/file/file-item.tsx
|
|
@@ -7586,19 +7586,19 @@ var reactquestion_multipletext_SurveyQuestionMultipleText = /** @class */ (funct
|
|
|
7586
7586
|
rows.push(this.renderRow(i, tableRows[i].cells, cssClasses));
|
|
7587
7587
|
}
|
|
7588
7588
|
}
|
|
7589
|
-
return (
|
|
7590
|
-
|
|
7589
|
+
return (_("table", { className: this.question.getQuestionRootCss() },
|
|
7590
|
+
_("tbody", null, rows)));
|
|
7591
7591
|
};
|
|
7592
7592
|
SurveyQuestionMultipleText.prototype.renderCell = function (cell, cssClasses, index) {
|
|
7593
7593
|
var cellContent;
|
|
7594
7594
|
var focusIn = function () { cell.item.focusIn(); };
|
|
7595
7595
|
if (cell.isErrorsCell) {
|
|
7596
|
-
cellContent =
|
|
7596
|
+
cellContent = _(reactquestion_SurveyQuestionErrorCell, { question: cell.item.editor, creator: this.creator });
|
|
7597
7597
|
}
|
|
7598
7598
|
else {
|
|
7599
|
-
cellContent =
|
|
7599
|
+
cellContent = _(reactquestion_multipletext_SurveyMultipleTextItem, { question: this.question, item: cell.item, creator: this.creator, cssClasses: cssClasses });
|
|
7600
7600
|
}
|
|
7601
|
-
return (
|
|
7601
|
+
return (_("td", { key: "item" + index, className: cell.className, onFocus: focusIn }, cellContent));
|
|
7602
7602
|
};
|
|
7603
7603
|
SurveyQuestionMultipleText.prototype.renderRow = function (rowIndex, cells, cssClasses) {
|
|
7604
7604
|
var key = "item" + rowIndex;
|
|
@@ -7607,7 +7607,7 @@ var reactquestion_multipletext_SurveyQuestionMultipleText = /** @class */ (funct
|
|
|
7607
7607
|
var cell = cells[i];
|
|
7608
7608
|
tds.push(this.renderCell(cell, cssClasses, i));
|
|
7609
7609
|
}
|
|
7610
|
-
return (
|
|
7610
|
+
return (_("tr", { key: key, className: cssClasses.row }, tds));
|
|
7611
7611
|
};
|
|
7612
7612
|
return SurveyQuestionMultipleText;
|
|
7613
7613
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
@@ -7649,10 +7649,10 @@ var reactquestion_multipletext_SurveyMultipleTextItem = /** @class */ (function
|
|
|
7649
7649
|
titleStyle.minWidth = this.question.itemTitleWidth;
|
|
7650
7650
|
titleStyle.width = this.question.itemTitleWidth;
|
|
7651
7651
|
}
|
|
7652
|
-
return (
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7652
|
+
return (_("label", { className: this.question.getItemLabelCss(item) },
|
|
7653
|
+
_("span", { className: cssClasses.itemTitle, style: titleStyle },
|
|
7654
|
+
_(title_content_TitleContent, { element: item.editor, cssClasses: item.editor.cssClasses })),
|
|
7655
|
+
_(reactquestion_multipletext_SurveyMultipleTextItemEditor, { cssClasses: cssClasses, itemCss: this.question.getItemCss(), question: item.editor, creator: this.creator })));
|
|
7656
7656
|
};
|
|
7657
7657
|
return SurveyMultipleTextItem;
|
|
7658
7658
|
}(ReactSurveyElement));
|
|
@@ -7663,13 +7663,13 @@ var reactquestion_multipletext_SurveyMultipleTextItemEditor = /** @class */ (fun
|
|
|
7663
7663
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7664
7664
|
}
|
|
7665
7665
|
SurveyMultipleTextItemEditor.prototype.renderElement = function () {
|
|
7666
|
-
return
|
|
7666
|
+
return _("div", { className: this.itemCss }, this.renderContent());
|
|
7667
7667
|
};
|
|
7668
7668
|
return SurveyMultipleTextItemEditor;
|
|
7669
7669
|
}(reactquestion_SurveyQuestionAndErrorsWrapped));
|
|
7670
7670
|
|
|
7671
7671
|
ReactQuestionFactory.Instance.registerQuestion("multipletext", function (props) {
|
|
7672
|
-
return
|
|
7672
|
+
return _(reactquestion_multipletext_SurveyQuestionMultipleText, props);
|
|
7673
7673
|
});
|
|
7674
7674
|
|
|
7675
7675
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_radiogroup.tsx
|
|
@@ -7711,10 +7711,10 @@ var reactquestion_radiogroup_SurveyQuestionRadiogroup = /** @class */ (function
|
|
|
7711
7711
|
var cssClasses = this.question.cssClasses;
|
|
7712
7712
|
var clearButton = null;
|
|
7713
7713
|
if (this.question.showClearButtonInContent) {
|
|
7714
|
-
clearButton = (
|
|
7715
|
-
|
|
7714
|
+
clearButton = (_("div", null,
|
|
7715
|
+
_("input", { type: "button", className: this.question.cssClasses.clearButton, onClick: function () { return _this.question.clearValue(true); }, value: this.question.clearButtonCaption })));
|
|
7716
7716
|
}
|
|
7717
|
-
return (
|
|
7717
|
+
return (_("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 },
|
|
7718
7718
|
this.question.hasColumns
|
|
7719
7719
|
? this.getColumnedBody(cssClasses)
|
|
7720
7720
|
: this.getBody(cssClasses),
|
|
@@ -7731,7 +7731,7 @@ var reactquestion_radiogroup_SurveyQuestionRadiogroup = /** @class */ (function
|
|
|
7731
7731
|
}
|
|
7732
7732
|
};
|
|
7733
7733
|
SurveyQuestionRadiogroup.prototype.getColumnedBody = function (cssClasses) {
|
|
7734
|
-
return (
|
|
7734
|
+
return (_("div", { className: cssClasses.rootMultiColumn }, this.getColumns(cssClasses)));
|
|
7735
7735
|
};
|
|
7736
7736
|
SurveyQuestionRadiogroup.prototype.getColumns = function (cssClasses) {
|
|
7737
7737
|
var _this = this;
|
|
@@ -7740,15 +7740,15 @@ var reactquestion_radiogroup_SurveyQuestionRadiogroup = /** @class */ (function
|
|
|
7740
7740
|
var items = column.map(function (item, ii) {
|
|
7741
7741
|
return _this.renderItem(item, value, cssClasses, "" + ci + ii);
|
|
7742
7742
|
});
|
|
7743
|
-
return (
|
|
7743
|
+
return (_("div", { key: "column" + ci + _this.question.getItemsColumnKey(column), className: _this.question.getColumnClass(), role: "presentation" }, items));
|
|
7744
7744
|
});
|
|
7745
7745
|
};
|
|
7746
7746
|
SurveyQuestionRadiogroup.prototype.getBody = function (cssClasses) {
|
|
7747
7747
|
if (this.question.blockedRow) {
|
|
7748
|
-
return
|
|
7748
|
+
return _("div", { className: cssClasses.rootRow }, this.getItems(cssClasses, this.question.dataChoices));
|
|
7749
7749
|
}
|
|
7750
7750
|
else
|
|
7751
|
-
return
|
|
7751
|
+
return _(k, null, this.getItems(cssClasses, this.question.bodyItems));
|
|
7752
7752
|
};
|
|
7753
7753
|
SurveyQuestionRadiogroup.prototype.getItems = function (cssClasses, choices) {
|
|
7754
7754
|
var items = [];
|
|
@@ -7768,8 +7768,8 @@ var reactquestion_radiogroup_SurveyQuestionRadiogroup = /** @class */ (function
|
|
|
7768
7768
|
configurable: true
|
|
7769
7769
|
});
|
|
7770
7770
|
SurveyQuestionRadiogroup.prototype.renderOther = function (cssClasses) {
|
|
7771
|
-
return (
|
|
7772
|
-
|
|
7771
|
+
return (_("div", { className: this.question.getCommentAreaCss(true) },
|
|
7772
|
+
_(SurveyQuestionOtherValueItem, { question: this.question, otherCss: cssClasses.other, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode })));
|
|
7773
7773
|
};
|
|
7774
7774
|
SurveyQuestionRadiogroup.prototype.renderItem = function (item, value, cssClasses, index) {
|
|
7775
7775
|
var renderedItem = ReactElementFactory.Instance.createElement(this.question.itemComponent, {
|
|
@@ -7883,14 +7883,14 @@ var reactquestion_radiogroup_SurveyQuestionRadioItem = /** @class */ (function (
|
|
|
7883
7883
|
var itemClass = this.question.getItemClass(this.item);
|
|
7884
7884
|
var labelClass = this.question.getLabelClass(this.item);
|
|
7885
7885
|
var controlLabelClass = this.question.getControlLabelClass(this.item);
|
|
7886
|
-
var itemLabel = !this.hideCaption ?
|
|
7887
|
-
return (
|
|
7888
|
-
|
|
7889
|
-
|
|
7886
|
+
var itemLabel = !this.hideCaption ? _("span", { className: controlLabelClass }, this.renderLocString(this.item.locText, this.textStyle)) : null;
|
|
7887
|
+
return (_("div", { className: itemClass, role: "presentation", ref: this.rootRef },
|
|
7888
|
+
_("label", { onMouseDown: this.handleOnMouseDown, className: labelClass },
|
|
7889
|
+
_("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 }),
|
|
7890
7890
|
this.cssClasses.materialDecorator ?
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7891
|
+
_("span", { className: this.cssClasses.materialDecorator }, this.question.itemSvgIcon ?
|
|
7892
|
+
_("svg", { className: this.cssClasses.itemDecorator },
|
|
7893
|
+
_("use", { xlinkHref: this.question.itemSvgIcon })) :
|
|
7894
7894
|
null) :
|
|
7895
7895
|
null,
|
|
7896
7896
|
itemLabel)));
|
|
@@ -7911,10 +7911,10 @@ var reactquestion_radiogroup_SurveyQuestionRadioItem = /** @class */ (function (
|
|
|
7911
7911
|
}(ReactSurveyElement));
|
|
7912
7912
|
|
|
7913
7913
|
ReactElementFactory.Instance.registerElement("survey-radiogroup-item", function (props) {
|
|
7914
|
-
return
|
|
7914
|
+
return _(reactquestion_radiogroup_SurveyQuestionRadioItem, props);
|
|
7915
7915
|
});
|
|
7916
7916
|
ReactQuestionFactory.Instance.registerQuestion("radiogroup", function (props) {
|
|
7917
|
-
return
|
|
7917
|
+
return _(reactquestion_radiogroup_SurveyQuestionRadiogroup, props);
|
|
7918
7918
|
});
|
|
7919
7919
|
|
|
7920
7920
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_text.tsx
|
|
@@ -7949,11 +7949,11 @@ var reactquestion_text_SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
7949
7949
|
var inputClass = this.question.getControlClass();
|
|
7950
7950
|
var placeholder = this.question.renderedPlaceholder;
|
|
7951
7951
|
if (this.question.isReadOnlyRenderDiv()) {
|
|
7952
|
-
return
|
|
7952
|
+
return _("div", null, this.question.inputValue);
|
|
7953
7953
|
}
|
|
7954
|
-
var counter = !!this.question.getMaxLength() ? (
|
|
7955
|
-
return (
|
|
7956
|
-
|
|
7954
|
+
var counter = !!this.question.getMaxLength() ? (_(character_counter_CharacterCounterComponent, { counter: this.question.characterCounter, remainingCharacterCounter: this.question.cssClasses.remainingCharacterCounter })) : null;
|
|
7955
|
+
return (_(k, null,
|
|
7956
|
+
_("input", { id: this.question.inputId,
|
|
7957
7957
|
// disabled={this.isDisplayMode}
|
|
7958
7958
|
disabled: this.question.isDisabledAttr, readOnly: this.question.isReadOnlyAttr, className: inputClass, type: this.question.inputType,
|
|
7959
7959
|
//ref={this.controlRef}
|
|
@@ -7962,7 +7962,7 @@ var reactquestion_text_SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
7962
7962
|
};
|
|
7963
7963
|
SurveyQuestionText.prototype.renderElement = function () {
|
|
7964
7964
|
return (this.question.dataListId ?
|
|
7965
|
-
|
|
7965
|
+
_("div", null,
|
|
7966
7966
|
this.renderInput(),
|
|
7967
7967
|
this.renderDataList()) :
|
|
7968
7968
|
this.renderInput());
|
|
@@ -7981,15 +7981,15 @@ var reactquestion_text_SurveyQuestionText = /** @class */ (function (_super) {
|
|
|
7981
7981
|
return null;
|
|
7982
7982
|
var options = [];
|
|
7983
7983
|
for (var i = 0; i < items.length; i++) {
|
|
7984
|
-
options.push(
|
|
7984
|
+
options.push(_("option", { key: "item" + i, value: items[i] }));
|
|
7985
7985
|
}
|
|
7986
|
-
return
|
|
7986
|
+
return _("datalist", { id: this.question.dataListId }, options);
|
|
7987
7987
|
};
|
|
7988
7988
|
return SurveyQuestionText;
|
|
7989
7989
|
}(reactquestion_element_SurveyQuestionUncontrolledElement));
|
|
7990
7990
|
|
|
7991
7991
|
ReactQuestionFactory.Instance.registerQuestion("text", function (props) {
|
|
7992
|
-
return
|
|
7992
|
+
return _(reactquestion_text_SurveyQuestionText, props);
|
|
7993
7993
|
});
|
|
7994
7994
|
|
|
7995
7995
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/boolean.tsx
|
|
@@ -8070,25 +8070,25 @@ var boolean_SurveyQuestionBoolean = /** @class */ (function (_super) {
|
|
|
8070
8070
|
var _this = this;
|
|
8071
8071
|
var cssClasses = this.question.cssClasses;
|
|
8072
8072
|
var itemClass = this.question.getItemCss();
|
|
8073
|
-
return (
|
|
8074
|
-
|
|
8075
|
-
|
|
8073
|
+
return (_("div", { className: cssClasses.root, onKeyDown: this.handleOnKeyDown },
|
|
8074
|
+
_("label", { className: itemClass, onClick: this.handleOnClick },
|
|
8075
|
+
_("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
8076
8076
|
? ""
|
|
8077
8077
|
: 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 }),
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8078
|
+
_("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, _this.question.swapOrder); } },
|
|
8079
|
+
_("span", { className: this.question.getLabelCss(this.question.swapOrder) }, this.renderLocString(this.question.locLabelLeft))),
|
|
8080
|
+
_("div", { className: cssClasses.switch, onClick: this.handleOnSwitchClick },
|
|
8081
|
+
_("span", { className: cssClasses.slider }, this.question.isDeterminated && cssClasses.sliderText ?
|
|
8082
|
+
_("span", { className: cssClasses.sliderText }, this.renderLocString(this.question.getCheckedLabel()))
|
|
8083
8083
|
: null)),
|
|
8084
|
-
|
|
8085
|
-
|
|
8084
|
+
_("div", { className: cssClasses.sliderGhost, onClick: function (event) { return _this.handleOnLabelClick(event, !_this.question.swapOrder); } },
|
|
8085
|
+
_("span", { className: this.question.getLabelCss(!this.question.swapOrder) }, this.renderLocString(this.question.locLabelRight))))));
|
|
8086
8086
|
};
|
|
8087
8087
|
return SurveyQuestionBoolean;
|
|
8088
8088
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
8089
8089
|
|
|
8090
8090
|
ReactQuestionFactory.Instance.registerQuestion("boolean", function (props) {
|
|
8091
|
-
return
|
|
8091
|
+
return _(boolean_SurveyQuestionBoolean, props);
|
|
8092
8092
|
});
|
|
8093
8093
|
|
|
8094
8094
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/boolean-checkbox.tsx
|
|
@@ -8123,26 +8123,26 @@ var boolean_checkbox_SurveyQuestionBooleanCheckbox = /** @class */ (function (_s
|
|
|
8123
8123
|
var itemClass = this.question.getCheckboxItemCss();
|
|
8124
8124
|
var description = this.question.canRenderLabelDescription ?
|
|
8125
8125
|
reactquestion_element_SurveyElementBase.renderQuestionDescription(this.question) : null;
|
|
8126
|
-
return (
|
|
8127
|
-
|
|
8128
|
-
|
|
8129
|
-
|
|
8126
|
+
return (_("div", { className: cssClasses.rootCheckbox },
|
|
8127
|
+
_("div", { className: itemClass },
|
|
8128
|
+
_("label", { className: cssClasses.checkboxLabel },
|
|
8129
|
+
_("input", { ref: this.checkRef, type: "checkbox", name: this.question.name, value: this.question.booleanValue === null
|
|
8130
8130
|
? ""
|
|
8131
8131
|
: 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 }),
|
|
8132
|
-
|
|
8132
|
+
_("span", { className: cssClasses.checkboxMaterialDecorator },
|
|
8133
8133
|
this.question.svgIcon ?
|
|
8134
|
-
|
|
8135
|
-
|
|
8136
|
-
|
|
8137
|
-
this.question.isLabelRendered && (
|
|
8138
|
-
|
|
8134
|
+
_("svg", { className: cssClasses.checkboxItemDecorator },
|
|
8135
|
+
_("use", { xlinkHref: this.question.svgIcon })) : null,
|
|
8136
|
+
_("span", { className: "check" })),
|
|
8137
|
+
this.question.isLabelRendered && (_("span", { className: cssClasses.checkboxControlLabel, id: this.question.labelRenderedAriaID },
|
|
8138
|
+
_(title_actions_TitleActions, { element: this.question, cssClasses: this.question.cssClasses })))),
|
|
8139
8139
|
description)));
|
|
8140
8140
|
};
|
|
8141
8141
|
return SurveyQuestionBooleanCheckbox;
|
|
8142
8142
|
}(boolean_SurveyQuestionBoolean));
|
|
8143
8143
|
|
|
8144
8144
|
ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox", function (props) {
|
|
8145
|
-
return
|
|
8145
|
+
return _(boolean_checkbox_SurveyQuestionBooleanCheckbox, props);
|
|
8146
8146
|
});
|
|
8147
8147
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("boolean", "checkbox", "sv-boolean-checkbox");
|
|
8148
8148
|
|
|
@@ -8177,24 +8177,24 @@ var boolean_radio_SurveyQuestionBooleanRadio = /** @class */ (function (_super)
|
|
|
8177
8177
|
}
|
|
8178
8178
|
SurveyQuestionBooleanRadio.prototype.renderRadioItem = function (value, locText) {
|
|
8179
8179
|
var cssClasses = this.question.cssClasses;
|
|
8180
|
-
return (
|
|
8181
|
-
|
|
8182
|
-
|
|
8180
|
+
return (_("div", { role: "presentation", className: this.question.getRadioItemClass(cssClasses, value) },
|
|
8181
|
+
_("label", { className: cssClasses.radioLabel },
|
|
8182
|
+
_("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 }),
|
|
8183
8183
|
this.question.cssClasses.materialRadioDecorator ?
|
|
8184
|
-
(
|
|
8185
|
-
(
|
|
8186
|
-
|
|
8187
|
-
|
|
8184
|
+
(_("span", { className: cssClasses.materialRadioDecorator }, this.question.itemSvgIcon ?
|
|
8185
|
+
(_("svg", { className: cssClasses.itemRadioDecorator },
|
|
8186
|
+
_("use", { xlinkHref: this.question.itemSvgIcon }))) : null)) : null,
|
|
8187
|
+
_("span", { className: cssClasses.radioControlLabel }, this.renderLocString(locText)))));
|
|
8188
8188
|
};
|
|
8189
8189
|
SurveyQuestionBooleanRadio.prototype.renderElement = function () {
|
|
8190
8190
|
var cssClasses = this.question.cssClasses;
|
|
8191
|
-
return (
|
|
8192
|
-
|
|
8193
|
-
(
|
|
8191
|
+
return (_("div", { className: cssClasses.rootRadio },
|
|
8192
|
+
_("fieldset", { role: "presentation", className: cssClasses.radioFieldset }, !this.question.swapOrder ?
|
|
8193
|
+
(_(k, null,
|
|
8194
8194
|
this.renderRadioItem(false, this.question.locLabelFalse),
|
|
8195
8195
|
this.renderRadioItem(true, this.question.locLabelTrue)))
|
|
8196
8196
|
:
|
|
8197
|
-
(
|
|
8197
|
+
(_(k, null,
|
|
8198
8198
|
this.renderRadioItem(true, this.question.locLabelTrue),
|
|
8199
8199
|
this.renderRadioItem(false, this.question.locLabelFalse))))));
|
|
8200
8200
|
};
|
|
@@ -8202,7 +8202,7 @@ var boolean_radio_SurveyQuestionBooleanRadio = /** @class */ (function (_super)
|
|
|
8202
8202
|
}(boolean_SurveyQuestionBoolean));
|
|
8203
8203
|
|
|
8204
8204
|
ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio", function (props) {
|
|
8205
|
-
return
|
|
8205
|
+
return _(boolean_radio_SurveyQuestionBooleanRadio, props);
|
|
8206
8206
|
});
|
|
8207
8207
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("boolean", "radio", "sv-boolean-radio");
|
|
8208
8208
|
|
|
@@ -8240,13 +8240,13 @@ var reactquestion_empty_SurveyQuestionEmpty = /** @class */ (function (_super) {
|
|
|
8240
8240
|
configurable: true
|
|
8241
8241
|
});
|
|
8242
8242
|
SurveyQuestionEmpty.prototype.renderElement = function () {
|
|
8243
|
-
return
|
|
8243
|
+
return _("div", null);
|
|
8244
8244
|
};
|
|
8245
8245
|
return SurveyQuestionEmpty;
|
|
8246
8246
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
8247
8247
|
|
|
8248
8248
|
ReactQuestionFactory.Instance.registerQuestion("empty", function (props) {
|
|
8249
|
-
return
|
|
8249
|
+
return _(reactquestion_empty_SurveyQuestionEmpty, props);
|
|
8250
8250
|
});
|
|
8251
8251
|
|
|
8252
8252
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/matrix/row.tsx
|
|
@@ -8459,22 +8459,22 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8459
8459
|
}
|
|
8460
8460
|
var cellContent = this.renderCellContent(cell, "column-header", {});
|
|
8461
8461
|
var header = cell.hasTitle ?
|
|
8462
|
-
|
|
8462
|
+
_("th", { className: cell.className, key: key, style: columnStyle },
|
|
8463
8463
|
" ",
|
|
8464
8464
|
cellContent,
|
|
8465
8465
|
" ")
|
|
8466
|
-
:
|
|
8466
|
+
: _("td", { className: cell.className, key: key, style: columnStyle });
|
|
8467
8467
|
headers.push(header);
|
|
8468
8468
|
}
|
|
8469
|
-
return (
|
|
8470
|
-
|
|
8469
|
+
return (_("thead", null,
|
|
8470
|
+
_("tr", null, headers)));
|
|
8471
8471
|
};
|
|
8472
8472
|
SurveyQuestionMatrixTable.prototype.renderFooter = function () {
|
|
8473
8473
|
var table = this.question.renderedTable;
|
|
8474
8474
|
if (!table.showFooter)
|
|
8475
8475
|
return null;
|
|
8476
8476
|
var row = this.renderRow("footer", table.footerRow, this.question.cssClasses, "row-footer");
|
|
8477
|
-
return
|
|
8477
|
+
return _("tfoot", null, row);
|
|
8478
8478
|
};
|
|
8479
8479
|
SurveyQuestionMatrixTable.prototype.renderRows = function () {
|
|
8480
8480
|
var cssClasses = this.question.cssClasses;
|
|
@@ -8483,7 +8483,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8483
8483
|
for (var i = 0; i < renderedRows.length; i++) {
|
|
8484
8484
|
rows.push(this.renderRow(renderedRows[i].id, renderedRows[i], cssClasses));
|
|
8485
8485
|
}
|
|
8486
|
-
return
|
|
8486
|
+
return _("tbody", null, rows);
|
|
8487
8487
|
};
|
|
8488
8488
|
SurveyQuestionMatrixTable.prototype.renderRow = function (keyValue, row, cssClasses, reason) {
|
|
8489
8489
|
var matrixrow = [];
|
|
@@ -8492,16 +8492,16 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8492
8492
|
matrixrow.push(this.renderCell(cells[i], cssClasses, reason));
|
|
8493
8493
|
}
|
|
8494
8494
|
var key = "row" + keyValue;
|
|
8495
|
-
return (
|
|
8495
|
+
return (_(k, { key: key }, (reason == "row-footer") ? _("tr", null, matrixrow) : _(row_MatrixRow, { model: row, parentMatrix: this.question }, matrixrow)));
|
|
8496
8496
|
};
|
|
8497
8497
|
SurveyQuestionMatrixTable.prototype.renderCell = function (cell, cssClasses, reason) {
|
|
8498
8498
|
var key = "cell" + cell.id;
|
|
8499
8499
|
if (cell.hasQuestion) {
|
|
8500
|
-
return (
|
|
8500
|
+
return (_(reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell, { key: key, cssClasses: cssClasses, cell: cell, creator: this.creator, reason: reason }));
|
|
8501
8501
|
}
|
|
8502
8502
|
if (cell.isErrorsCell) {
|
|
8503
8503
|
if (cell.isErrorsCell) {
|
|
8504
|
-
return (
|
|
8504
|
+
return (_(reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownErrorsCell, { cell: cell, key: key, keyValue: key, question: cell.question, creator: this.creator }));
|
|
8505
8505
|
}
|
|
8506
8506
|
}
|
|
8507
8507
|
var calcReason = reason;
|
|
@@ -8517,7 +8517,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8517
8517
|
if (!!cell.minWidth)
|
|
8518
8518
|
cellStyle.minWidth = cell.minWidth;
|
|
8519
8519
|
}
|
|
8520
|
-
return (
|
|
8520
|
+
return (_("td", { className: cell.className, key: key, style: cellStyle, colSpan: cell.colSpans, title: cell.getTitle() }, cellContent));
|
|
8521
8521
|
};
|
|
8522
8522
|
SurveyQuestionMatrixTable.prototype.renderCellContent = function (cell, reason, cssClasses) {
|
|
8523
8523
|
var cellContent = null;
|
|
@@ -8532,14 +8532,14 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8532
8532
|
if (cell.hasTitle) {
|
|
8533
8533
|
reason = "row-header";
|
|
8534
8534
|
var str = this.renderLocString(cell.locTitle);
|
|
8535
|
-
var require_1 = !!cell.column ?
|
|
8536
|
-
cellContent = (
|
|
8535
|
+
var require_1 = !!cell.column ? _(reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired, { column: cell.column, question: this.question }) : null;
|
|
8536
|
+
cellContent = (_(k, null,
|
|
8537
8537
|
str,
|
|
8538
8538
|
require_1));
|
|
8539
8539
|
}
|
|
8540
8540
|
if (cell.isDragHandlerCell) {
|
|
8541
|
-
cellContent = (
|
|
8542
|
-
|
|
8541
|
+
cellContent = (_(k, null,
|
|
8542
|
+
_(drag_drop_icon_SurveyQuestionMatrixDynamicDragDropIcon, { item: { data: { row: cell.row, question: this.question } } })));
|
|
8543
8543
|
}
|
|
8544
8544
|
if (cell.isActionsCell) {
|
|
8545
8545
|
cellContent = (ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell", {
|
|
@@ -8549,18 +8549,18 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable = /** @class */ (
|
|
|
8549
8549
|
}));
|
|
8550
8550
|
}
|
|
8551
8551
|
if (cell.hasPanel) {
|
|
8552
|
-
cellContent = (
|
|
8552
|
+
cellContent = (_(panel_SurveyPanel, { key: cell.panel.id, element: cell.panel, survey: this.question.survey, cssClasses: cssClasses, isDisplayMode: this.isDisplayMode, creator: this.creator }));
|
|
8553
8553
|
}
|
|
8554
8554
|
if (!cellContent)
|
|
8555
8555
|
return null;
|
|
8556
|
-
var readyCell = (
|
|
8556
|
+
var readyCell = (_(k, null, cellContent));
|
|
8557
8557
|
return this.wrapCell(cell, readyCell, reason);
|
|
8558
8558
|
};
|
|
8559
8559
|
SurveyQuestionMatrixTable.prototype.renderElement = function () {
|
|
8560
8560
|
var header = this.renderHeader();
|
|
8561
8561
|
var footers = this.renderFooter();
|
|
8562
8562
|
var rows = this.renderRows();
|
|
8563
|
-
return (
|
|
8563
|
+
return (_("table", { className: this.question.getTableCss() },
|
|
8564
8564
|
header,
|
|
8565
8565
|
rows,
|
|
8566
8566
|
footers));
|
|
@@ -8611,8 +8611,8 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownBase = /** @cla
|
|
|
8611
8611
|
var divStyle = this.question.showHorizontalScroll
|
|
8612
8612
|
? { overflowX: "scroll" }
|
|
8613
8613
|
: {};
|
|
8614
|
-
return (
|
|
8615
|
-
|
|
8614
|
+
return (_("div", { style: divStyle, className: this.question.cssClasses.tableWrapper, ref: function (root) { return (_this.setControl(root)); } },
|
|
8615
|
+
_(reactquestion_matrixdropdownbase_SurveyQuestionMatrixTable, { question: this.question, creator: this.creator, wrapCell: function (cell, element, reason) { return _this.wrapCell(cell, element, reason); } })));
|
|
8616
8616
|
};
|
|
8617
8617
|
return SurveyQuestionMatrixDropdownBase;
|
|
8618
8618
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
@@ -8630,7 +8630,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixActionsCell = /** @clas
|
|
|
8630
8630
|
configurable: true
|
|
8631
8631
|
});
|
|
8632
8632
|
SurveyQuestionMatrixActionsCell.prototype.renderElement = function () {
|
|
8633
|
-
return (
|
|
8633
|
+
return (_(action_bar_SurveyActionBar, { model: this.model, handleClick: false }));
|
|
8634
8634
|
};
|
|
8635
8635
|
return SurveyQuestionMatrixActionsCell;
|
|
8636
8636
|
}(ReactSurveyElement));
|
|
@@ -8656,7 +8656,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownErrorsCell = /*
|
|
|
8656
8656
|
SurveyQuestionMatrixDropdownErrorsCell.prototype.render = function () {
|
|
8657
8657
|
if (!this.cell.isVisible)
|
|
8658
8658
|
return null;
|
|
8659
|
-
return
|
|
8659
|
+
return _("td", { className: this.cell.className, key: this.key, colSpan: this.cell.colSpans, title: this.cell.getTitle() }, _super.prototype.render.call(this));
|
|
8660
8660
|
};
|
|
8661
8661
|
SurveyQuestionMatrixDropdownErrorsCell.prototype.getQuestionPropertiesToTrack = function () {
|
|
8662
8662
|
return _super.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"]);
|
|
@@ -8664,7 +8664,7 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownErrorsCell = /*
|
|
|
8664
8664
|
return SurveyQuestionMatrixDropdownErrorsCell;
|
|
8665
8665
|
}(reactquestion_SurveyQuestionErrorCell));
|
|
8666
8666
|
ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell", function (props) {
|
|
8667
|
-
return
|
|
8667
|
+
return _(reactquestion_matrixdropdownbase_SurveyQuestionMatrixActionsCell, props);
|
|
8668
8668
|
});
|
|
8669
8669
|
var reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired = /** @class */ (function (_super) {
|
|
8670
8670
|
reactquestion_matrixdropdownbase_extends(SurveyQuestionMatrixHeaderRequired, _super);
|
|
@@ -8691,9 +8691,9 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired = /** @c
|
|
|
8691
8691
|
SurveyQuestionMatrixHeaderRequired.prototype.renderElement = function () {
|
|
8692
8692
|
if (!this.column.isRenderedRequired)
|
|
8693
8693
|
return null;
|
|
8694
|
-
return (
|
|
8695
|
-
|
|
8696
|
-
|
|
8694
|
+
return (_(k, null,
|
|
8695
|
+
_("span", null, "\u00A0"),
|
|
8696
|
+
_("span", { className: this.question.cssClasses.cellRequiredText }, this.column.requiredText)));
|
|
8697
8697
|
};
|
|
8698
8698
|
return SurveyQuestionMatrixHeaderRequired;
|
|
8699
8699
|
}(ReactSurveyElement));
|
|
@@ -8768,16 +8768,16 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell = /** @cla
|
|
|
8768
8768
|
};
|
|
8769
8769
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellContent = function () {
|
|
8770
8770
|
var content = _super.prototype.renderCellContent.call(this);
|
|
8771
|
-
var responsiveTitle = this.cell.showResponsiveTitle ? (
|
|
8771
|
+
var responsiveTitle = this.cell.showResponsiveTitle ? (_("span", { className: this.cell.responsiveTitleCss },
|
|
8772
8772
|
this.renderLocString(this.cell.responsiveLocTitle),
|
|
8773
|
-
|
|
8774
|
-
return
|
|
8773
|
+
_(reactquestion_matrixdropdownbase_SurveyQuestionMatrixHeaderRequired, { column: this.cell.column, question: this.cell.matrix }))) : null;
|
|
8774
|
+
return _(k, null,
|
|
8775
8775
|
responsiveTitle,
|
|
8776
8776
|
content);
|
|
8777
8777
|
};
|
|
8778
8778
|
SurveyQuestionMatrixDropdownCell.prototype.renderQuestion = function () {
|
|
8779
8779
|
if (!this.question.isVisible)
|
|
8780
|
-
return
|
|
8780
|
+
return _(k, null);
|
|
8781
8781
|
if (!this.cell.isChoice)
|
|
8782
8782
|
return reactquestion_SurveyQuestion.renderQuestionBody(this.creator, this.question);
|
|
8783
8783
|
if (this.cell.isOtherChoice)
|
|
@@ -8789,15 +8789,15 @@ var reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownCell = /** @cla
|
|
|
8789
8789
|
SurveyQuestionMatrixDropdownCell.prototype.renderOtherComment = function () {
|
|
8790
8790
|
var question = this.cell.question;
|
|
8791
8791
|
var cssClasses = question.cssClasses || {};
|
|
8792
|
-
return
|
|
8792
|
+
return _(SurveyQuestionOtherValueItem, { question: question, cssClasses: cssClasses, otherCss: cssClasses.other, isDisplayMode: question.isInputReadOnly });
|
|
8793
8793
|
};
|
|
8794
8794
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellCheckboxButton = function () {
|
|
8795
8795
|
var key = this.cell.question.id + "item" + this.cell.choiceIndex;
|
|
8796
|
-
return (
|
|
8796
|
+
return (_(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 }));
|
|
8797
8797
|
};
|
|
8798
8798
|
SurveyQuestionMatrixDropdownCell.prototype.renderCellRadiogroupButton = function () {
|
|
8799
8799
|
var key = this.cell.question.id + "item" + this.cell.choiceIndex;
|
|
8800
|
-
return (
|
|
8800
|
+
return (_(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 }));
|
|
8801
8801
|
};
|
|
8802
8802
|
return SurveyQuestionMatrixDropdownCell;
|
|
8803
8803
|
}(reactquestion_SurveyQuestionAndErrorsCell));
|
|
@@ -8831,7 +8831,7 @@ var SurveyQuestionMatrixDropdown = /** @class */ (function (_super) {
|
|
|
8831
8831
|
}(reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownBase));
|
|
8832
8832
|
|
|
8833
8833
|
ReactQuestionFactory.Instance.registerQuestion("matrixdropdown", function (props) {
|
|
8834
|
-
return
|
|
8834
|
+
return _(SurveyQuestionMatrixDropdown, props);
|
|
8835
8835
|
});
|
|
8836
8836
|
|
|
8837
8837
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_matrixdynamic.tsx
|
|
@@ -8878,7 +8878,7 @@ var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamic = /** @class */ (fun
|
|
|
8878
8878
|
var mainDiv = showTable
|
|
8879
8879
|
? this.renderTableDiv()
|
|
8880
8880
|
: this.renderNoRowsContent(cssClasses);
|
|
8881
|
-
return (
|
|
8881
|
+
return (_("div", null,
|
|
8882
8882
|
this.renderAddRowButtonOnTop(cssClasses),
|
|
8883
8883
|
mainDiv,
|
|
8884
8884
|
this.renderAddRowButtonOnBottom(cssClasses)));
|
|
@@ -8895,9 +8895,9 @@ var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamic = /** @class */ (fun
|
|
|
8895
8895
|
};
|
|
8896
8896
|
SurveyQuestionMatrixDynamic.prototype.renderNoRowsContent = function (cssClasses) {
|
|
8897
8897
|
var text = this.renderLocString(this.matrix.locEmptyRowsText);
|
|
8898
|
-
var textDiv =
|
|
8898
|
+
var textDiv = _("div", { className: cssClasses.emptyRowsText }, text);
|
|
8899
8899
|
var btn = this.matrix.renderedTable.showAddRow ? this.renderAddRowButton(cssClasses, true) : undefined;
|
|
8900
|
-
return (
|
|
8900
|
+
return (_("div", { className: cssClasses.emptyRowsSection },
|
|
8901
8901
|
textDiv,
|
|
8902
8902
|
btn));
|
|
8903
8903
|
};
|
|
@@ -8912,7 +8912,7 @@ var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamic = /** @class */ (fun
|
|
|
8912
8912
|
}(reactquestion_matrixdropdownbase_SurveyQuestionMatrixDropdownBase));
|
|
8913
8913
|
|
|
8914
8914
|
ReactQuestionFactory.Instance.registerQuestion("matrixdynamic", function (props) {
|
|
8915
|
-
return
|
|
8915
|
+
return _(reactquestion_matrixdynamic_SurveyQuestionMatrixDynamic, props);
|
|
8916
8916
|
});
|
|
8917
8917
|
var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamicAddButton = /** @class */ (function (_super) {
|
|
8918
8918
|
reactquestion_matrixdynamic_extends(SurveyQuestionMatrixDynamicAddButton, _super);
|
|
@@ -8933,16 +8933,16 @@ var reactquestion_matrixdynamic_SurveyQuestionMatrixDynamicAddButton = /** @clas
|
|
|
8933
8933
|
};
|
|
8934
8934
|
SurveyQuestionMatrixDynamicAddButton.prototype.renderElement = function () {
|
|
8935
8935
|
var addRowText = this.renderLocString(this.matrix.locAddRowText);
|
|
8936
|
-
var addButton = (
|
|
8936
|
+
var addButton = (_("button", { className: this.matrix.getAddRowButtonCss(this.props.isEmptySection), type: "button", disabled: this.matrix.isInputReadOnly, onClick: this.matrix.isDesignMode ? undefined : this.handleOnRowAddClick },
|
|
8937
8937
|
addRowText,
|
|
8938
|
-
|
|
8939
|
-
return (this.props.isEmptySection ? addButton :
|
|
8938
|
+
_("span", { className: this.props.cssClasses.iconAdd })));
|
|
8939
|
+
return (this.props.isEmptySection ? addButton : _("div", { className: this.props.cssClasses.footer }, addButton));
|
|
8940
8940
|
};
|
|
8941
8941
|
return SurveyQuestionMatrixDynamicAddButton;
|
|
8942
8942
|
}(ReactSurveyElement));
|
|
8943
8943
|
|
|
8944
8944
|
ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn", function (props) {
|
|
8945
|
-
return
|
|
8945
|
+
return _(reactquestion_matrixdynamic_SurveyQuestionMatrixDynamicAddButton, props);
|
|
8946
8946
|
});
|
|
8947
8947
|
|
|
8948
8948
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-add-btn.tsx
|
|
@@ -9189,7 +9189,7 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamic = /** @class */ (funct
|
|
|
9189
9189
|
var _this = this;
|
|
9190
9190
|
var panels = [];
|
|
9191
9191
|
this.question.renderedPanels.forEach(function (panel, index) {
|
|
9192
|
-
panels.push(
|
|
9192
|
+
panels.push(_(reactquestion_paneldynamic_SurveyQuestionPanelDynamicItem, { key: panel.id, element: panel, question: _this.question, index: index, cssClasses: _this.question.cssClasses, isDisplayMode: _this.isDisplayMode, creator: _this.creator }));
|
|
9193
9193
|
});
|
|
9194
9194
|
var btnAdd = this.question.isRenderModeList && this.question["showLegacyNavigation"]
|
|
9195
9195
|
? this.renderAddRowButton()
|
|
@@ -9202,12 +9202,12 @@ var reactquestion_paneldynamic_SurveyQuestionPanelDynamic = /** @class */ (funct
|
|
|
9202
9202
|
: null;
|
|
9203
9203
|
var navV2 = this.renderNavigatorV2();
|
|
9204
9204
|
var noEntriesPlaceholder = this.renderPlaceholder();
|
|
9205
|
-
return (
|
|
9206
|
-
this.question.hasTabbedMenu ?
|
|
9207
|
-
|
|
9205
|
+
return (_("div", { className: this.question.cssClasses.root },
|
|
9206
|
+
this.question.hasTabbedMenu ? _("div", { className: this.question.getTabsContainerCss() },
|
|
9207
|
+
_(action_bar_SurveyActionBar, { model: this.question.tabbedMenu })) : null,
|
|
9208
9208
|
noEntriesPlaceholder,
|
|
9209
9209
|
navTop,
|
|
9210
|
-
|
|
9210
|
+
_("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 (_("div", { className: progressClass },
|
|
9232
|
+
_("div", { style: { clear: "both" } },
|
|
9233
|
+
_("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 (_(paneldynamic_progress_text_SurveyQuestionPanelDynamicProgressText, { data: { question: this.question } }));
|
|
9242
9242
|
};
|
|
9243
9243
|
SurveyQuestionPanelDynamic.prototype.rendrerPrevButton = function () {
|
|
9244
|
-
return (
|
|
9244
|
+
return (_(paneldynamic_prev_btn_SurveyQuestionPanelDynamicPrevButton, { data: { question: this.question } }));
|
|
9245
9245
|
};
|
|
9246
9246
|
SurveyQuestionPanelDynamic.prototype.rendrerNextButton = function () {
|
|
9247
|
-
return (
|
|
9247
|
+
return (_(paneldynamic_next_btn_SurveyQuestionPanelDynamicNextButton, { data: { question: this.question } }));
|
|
9248
9248
|
};
|
|
9249
9249
|
SurveyQuestionPanelDynamic.prototype.renderRange = function () {
|
|
9250
|
-
return (
|
|
9251
|
-
|
|
9250
|
+
return (_("div", { className: this.question.cssClasses.progress },
|
|
9251
|
+
_("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 (_("div", { className: this.question.cssClasses.footer },
|
|
9263
|
+
_("hr", { className: this.question.cssClasses.separator }),
|
|
9264
9264
|
range,
|
|
9265
|
-
this.question.footerToolbar.visibleActions.length ? (
|
|
9266
|
-
|
|
9265
|
+
this.question.footerToolbar.visibleActions.length ? (_("div", { className: this.question.cssClasses.footerButtonsContainer },
|
|
9266
|
+
_(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 (_("div", { className: this.question.cssClasses.noEntriesPlaceholder },
|
|
9271
|
+
_("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
|
+
(_("hr", { className: this.question.cssClasses.separator })) : null;
|
|
9310
|
+
return (_(k, null,
|
|
9311
|
+
_("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 _(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 (_("div", { className: this.survey.getProgressCssClasses(this.props.container) },
|
|
9384
|
+
_("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
|
|
9385
|
+
_("span", { className: external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["SurveyProgressModel"].getProgressTextInBarCss(this.css) }, this.progressText)),
|
|
9386
|
+
_("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 _(progress_SurveyProgress, props);
|
|
9393
9393
|
});
|
|
9394
9394
|
ReactElementFactory.Instance.registerElement("sv-progress-questions", function (props) {
|
|
9395
|
-
return
|
|
9395
|
+
return _(progress_SurveyProgress, props);
|
|
9396
9396
|
});
|
|
9397
9397
|
ReactElementFactory.Instance.registerElement("sv-progress-correctquestions", function (props) {
|
|
9398
|
-
return
|
|
9398
|
+
return _(progress_SurveyProgress, props);
|
|
9399
9399
|
});
|
|
9400
9400
|
ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions", function (props) {
|
|
9401
|
-
return
|
|
9401
|
+
return _(progress_SurveyProgress, props);
|
|
9402
9402
|
});
|
|
9403
9403
|
|
|
9404
9404
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/progressButtons.tsx
|
|
@@ -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 (_("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 ? _("div", { className: this.css.progressButtonsHeader },
|
|
9461
|
+
_("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
|
|
9462
|
+
_("div", { className: this.css.progressButtonsContainer },
|
|
9463
|
+
_("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
|
+
_("div", { className: this.css.progressButtonsListContainer, ref: this.listContainerRef },
|
|
9467
|
+
_("ul", { className: this.css.progressButtonsList }, this.getListElements())),
|
|
9468
|
+
_("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 ? _("div", { className: this.css.progressButtonsFooter },
|
|
9472
|
+
_("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 (_("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
|
+
_("div", { className: this.css.progressButtonsConnector }),
|
|
9489
|
+
this.state.canShowItemTitles ? _(k, null,
|
|
9490
|
+
_("div", { className: this.css.progressButtonsPageTitle, title: page.renderedNavigationTitle }, text),
|
|
9491
|
+
_("div", { className: this.css.progressButtonsPageDescription, title: page.navigationDescription }, page.navigationDescription)) : null,
|
|
9492
|
+
_("div", { className: this.css.progressButtonsButton },
|
|
9493
|
+
_("div", { className: this.css.progressButtonsButtonBackground }),
|
|
9494
|
+
_("div", { className: this.css.progressButtonsButtonContent }),
|
|
9495
|
+
_("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 _(progressButtons_SurveyProgressButtons, props);
|
|
9520
9520
|
});
|
|
9521
9521
|
|
|
9522
9522
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/list/list-item.tsx
|
|
@@ -9763,20 +9763,20 @@ var progressToc_SurveyProgressToc = /** @class */ (function (_super) {
|
|
|
9763
9763
|
var tocModel = this.props.model;
|
|
9764
9764
|
var content;
|
|
9765
9765
|
if (tocModel.isMobile) {
|
|
9766
|
-
content =
|
|
9767
|
-
|
|
9768
|
-
|
|
9766
|
+
content = _("div", { onClick: tocModel.togglePopup },
|
|
9767
|
+
_(svg_icon_SvgIcon, { iconName: tocModel.icon, size: 24 }),
|
|
9768
|
+
_(popup_Popup, { model: tocModel.popupModel }));
|
|
9769
9769
|
}
|
|
9770
9770
|
else {
|
|
9771
|
-
content =
|
|
9771
|
+
content = _(list_List, { model: tocModel.listModel });
|
|
9772
9772
|
}
|
|
9773
|
-
return (
|
|
9773
|
+
return (_("div", { className: tocModel.containerCss }, content));
|
|
9774
9774
|
};
|
|
9775
9775
|
return SurveyProgressToc;
|
|
9776
9776
|
}(SurveyNavigationBase));
|
|
9777
9777
|
|
|
9778
9778
|
ReactElementFactory.Instance.registerElement("sv-navigation-toc", function (props) {
|
|
9779
|
-
return
|
|
9779
|
+
return _(progressToc_SurveyProgressToc, props);
|
|
9780
9780
|
});
|
|
9781
9781
|
|
|
9782
9782
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_rating.tsx
|
|
@@ -9837,18 +9837,18 @@ var reactquestion_rating_SurveyQuestionRating = /** @class */ (function (_super)
|
|
|
9837
9837
|
var maxText = this.question.maxRateDescription
|
|
9838
9838
|
? this.renderLocString(this.question.locMaxRateDescription)
|
|
9839
9839
|
: null;
|
|
9840
|
-
return (
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
!!this.question.hasMinLabel ?
|
|
9840
|
+
return (_("div", { className: this.question.ratingRootCss, ref: function (div) { return (_this.setControl(div)); } },
|
|
9841
|
+
_("fieldset", { role: "radiogroup" },
|
|
9842
|
+
_("legend", { role: "presentation", className: "sv-hidden" }),
|
|
9843
|
+
!!this.question.hasMinLabel ? _("span", { className: cssClasses.minText }, minText) : null,
|
|
9844
9844
|
this.question.renderedRateItems.map(function (item, index) { return _this.renderItem(item, index); }),
|
|
9845
|
-
!!this.question.hasMaxLabel ?
|
|
9845
|
+
!!this.question.hasMaxLabel ? _("span", { className: cssClasses.maxText }, maxText) : null)));
|
|
9846
9846
|
};
|
|
9847
9847
|
return SurveyQuestionRating;
|
|
9848
9848
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
9849
9849
|
|
|
9850
9850
|
ReactQuestionFactory.Instance.registerQuestion("rating", function (props) {
|
|
9851
|
-
return
|
|
9851
|
+
return _(reactquestion_rating_SurveyQuestionRating, props);
|
|
9852
9852
|
});
|
|
9853
9853
|
|
|
9854
9854
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/rating-dropdown.tsx
|
|
@@ -9880,13 +9880,13 @@ var rating_dropdown_SurveyQuestionRatingDropdown = /** @class */ (function (_sup
|
|
|
9880
9880
|
SurveyQuestionRatingDropdown.prototype.renderElement = function () {
|
|
9881
9881
|
var cssClasses = this.question.cssClasses;
|
|
9882
9882
|
var select = this.renderSelect(cssClasses);
|
|
9883
|
-
return (
|
|
9883
|
+
return (_("div", { className: this.question.cssClasses.rootDropdown }, select));
|
|
9884
9884
|
};
|
|
9885
9885
|
return SurveyQuestionRatingDropdown;
|
|
9886
9886
|
}(dropdown_base_SurveyQuestionDropdownBase));
|
|
9887
9887
|
|
|
9888
9888
|
ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown", function (props) {
|
|
9889
|
-
return
|
|
9889
|
+
return _(rating_dropdown_SurveyQuestionRatingDropdown, props);
|
|
9890
9890
|
});
|
|
9891
9891
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("rating", "dropdown", "sv-rating-dropdown");
|
|
9892
9892
|
|
|
@@ -9924,13 +9924,13 @@ var reactquestion_expression_SurveyQuestionExpression = /** @class */ (function
|
|
|
9924
9924
|
SurveyQuestionExpression.prototype.renderElement = function () {
|
|
9925
9925
|
var _this = this;
|
|
9926
9926
|
var cssClasses = this.question.cssClasses;
|
|
9927
|
-
return (
|
|
9927
|
+
return (_("div", { id: this.question.inputId, className: cssClasses.root, ref: function (div) { return (_this.setControl(div)); } }, this.question.formatedValue));
|
|
9928
9928
|
};
|
|
9929
9929
|
return SurveyQuestionExpression;
|
|
9930
9930
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
9931
9931
|
|
|
9932
9932
|
ReactQuestionFactory.Instance.registerQuestion("expression", function (props) {
|
|
9933
|
-
return
|
|
9933
|
+
return _(reactquestion_expression_SurveyQuestionExpression, props);
|
|
9934
9934
|
});
|
|
9935
9935
|
|
|
9936
9936
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/react-popup-survey.tsx
|
|
@@ -9978,8 +9978,8 @@ var react_popup_survey_PopupSurvey = /** @class */ (function (_super) {
|
|
|
9978
9978
|
style.width = this.popup.renderedWidth;
|
|
9979
9979
|
style.maxWidth = this.popup.renderedWidth;
|
|
9980
9980
|
}
|
|
9981
|
-
return (
|
|
9982
|
-
|
|
9981
|
+
return (_("div", { className: this.popup.cssRoot, style: style, onScroll: function () { return _this.popup.onScroll(); } },
|
|
9982
|
+
_("div", { className: this.popup.cssRootContent },
|
|
9983
9983
|
header,
|
|
9984
9984
|
body)));
|
|
9985
9985
|
};
|
|
@@ -10004,46 +10004,46 @@ var react_popup_survey_PopupSurvey = /** @class */ (function (_super) {
|
|
|
10004
10004
|
if (popup.allowFullScreen) {
|
|
10005
10005
|
allowFullScreenButon = this.renderAllowFullScreenButon(this.popup);
|
|
10006
10006
|
}
|
|
10007
|
-
return (
|
|
10007
|
+
return (_("div", { className: popup.cssHeaderRoot },
|
|
10008
10008
|
titleCollapsed,
|
|
10009
|
-
|
|
10009
|
+
_("div", { className: popup.cssHeaderButtonsContainer },
|
|
10010
10010
|
allowFullScreenButon,
|
|
10011
|
-
|
|
10011
|
+
_("div", { className: popup.cssHeaderCollapseButton, onClick: this.handleOnExpanded }, expandCollapseIcon),
|
|
10012
10012
|
closeButton)));
|
|
10013
10013
|
};
|
|
10014
10014
|
PopupSurvey.prototype.renderTitleCollapsed = function (popup) {
|
|
10015
10015
|
if (!popup.locTitle)
|
|
10016
10016
|
return null;
|
|
10017
|
-
return
|
|
10017
|
+
return _("div", { className: popup.cssHeaderTitleCollapsed }, popup.locTitle.renderedHtml);
|
|
10018
10018
|
};
|
|
10019
10019
|
PopupSurvey.prototype.renderExpandIcon = function () {
|
|
10020
|
-
return
|
|
10020
|
+
return _(svg_icon_SvgIcon, { iconName: "icon-restore_16x16", size: 16 });
|
|
10021
10021
|
};
|
|
10022
10022
|
PopupSurvey.prototype.renderCollapseIcon = function () {
|
|
10023
|
-
return
|
|
10023
|
+
return _(svg_icon_SvgIcon, { iconName: "icon-minimize_16x16", size: 16 });
|
|
10024
10024
|
};
|
|
10025
10025
|
PopupSurvey.prototype.renderCloseButton = function (popup) {
|
|
10026
10026
|
var _this = this;
|
|
10027
|
-
return (
|
|
10027
|
+
return (_("div", { className: popup.cssHeaderCloseButton, onClick: function () {
|
|
10028
10028
|
popup.hide();
|
|
10029
10029
|
if (typeof _this.props.onClose == "function") {
|
|
10030
10030
|
_this.props.onClose();
|
|
10031
10031
|
}
|
|
10032
10032
|
} },
|
|
10033
|
-
|
|
10033
|
+
_(svg_icon_SvgIcon, { iconName: "icon-close_16x16", size: 16 })));
|
|
10034
10034
|
};
|
|
10035
10035
|
PopupSurvey.prototype.renderAllowFullScreenButon = function (popup) {
|
|
10036
10036
|
var Icon;
|
|
10037
10037
|
if (popup.isFullScreen) {
|
|
10038
|
-
Icon =
|
|
10038
|
+
Icon = _(svg_icon_SvgIcon, { iconName: "icon-back-to-panel_16x16", size: 16 });
|
|
10039
10039
|
}
|
|
10040
10040
|
else {
|
|
10041
|
-
Icon =
|
|
10041
|
+
Icon = _(svg_icon_SvgIcon, { iconName: "icon-full-screen_16x16", size: 16 });
|
|
10042
10042
|
}
|
|
10043
|
-
return (
|
|
10043
|
+
return (_("div", { className: popup.cssHeaderFullScreenButton, onClick: function () { popup.toggleFullScreen(); } }, Icon));
|
|
10044
10044
|
};
|
|
10045
10045
|
PopupSurvey.prototype.renderBody = function () {
|
|
10046
|
-
return
|
|
10046
|
+
return _("div", { className: this.popup.cssBody }, this.doRender());
|
|
10047
10047
|
};
|
|
10048
10048
|
PopupSurvey.prototype.createSurvey = function (newProps) {
|
|
10049
10049
|
if (!newProps)
|
|
@@ -10109,8 +10109,8 @@ var imagepicker_SurveyQuestionImagePicker = /** @class */ (function (_super) {
|
|
|
10109
10109
|
});
|
|
10110
10110
|
SurveyQuestionImagePicker.prototype.renderElement = function () {
|
|
10111
10111
|
var cssClasses = this.question.cssClasses;
|
|
10112
|
-
return (
|
|
10113
|
-
|
|
10112
|
+
return (_("fieldset", { className: this.question.getSelectBaseRootCss(), style: this.question.getContainerStyle() },
|
|
10113
|
+
_("legend", { className: "sv-hidden" }, this.question.locTitle.renderedHtml),
|
|
10114
10114
|
this.question.hasColumns ? this.getColumns(cssClasses) : this.getItems(cssClasses)));
|
|
10115
10115
|
};
|
|
10116
10116
|
SurveyQuestionImagePicker.prototype.getColumns = function (cssClasses) {
|
|
@@ -10119,7 +10119,7 @@ var imagepicker_SurveyQuestionImagePicker = /** @class */ (function (_super) {
|
|
|
10119
10119
|
var items = column.map(function (item, ii) {
|
|
10120
10120
|
return _this.renderItem("item" + ii, item, cssClasses);
|
|
10121
10121
|
});
|
|
10122
|
-
return (
|
|
10122
|
+
return (_("div", { key: "column" + ci + _this.question.getItemsColumnKey(column), className: _this.question.getColumnClass(), role: "presentation" }, items));
|
|
10123
10123
|
});
|
|
10124
10124
|
};
|
|
10125
10125
|
SurveyQuestionImagePicker.prototype.getItems = function (cssClasses) {
|
|
@@ -10139,7 +10139,7 @@ var imagepicker_SurveyQuestionImagePicker = /** @class */ (function (_super) {
|
|
|
10139
10139
|
configurable: true
|
|
10140
10140
|
});
|
|
10141
10141
|
SurveyQuestionImagePicker.prototype.renderItem = function (key, item, cssClasses) {
|
|
10142
|
-
var renderedItem =
|
|
10142
|
+
var renderedItem = _(imagepicker_SurveyQuestionImagePickerItem, { key: key, question: this.question, item: item, cssClasses: cssClasses });
|
|
10143
10143
|
var survey = this.question.survey;
|
|
10144
10144
|
var wrappedItem = null;
|
|
10145
10145
|
if (!!survey) {
|
|
@@ -10226,15 +10226,15 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
|
|
|
10226
10226
|
var itemClass = question.getItemClass(item);
|
|
10227
10227
|
var text = null;
|
|
10228
10228
|
if (question.showLabel) {
|
|
10229
|
-
text = (
|
|
10229
|
+
text = (_("span", { className: question.cssClasses.itemText }, item.text ? reactquestion_element_SurveyElementBase.renderLocString(item.locText) : item.value));
|
|
10230
10230
|
}
|
|
10231
10231
|
var style = { objectFit: this.question.imageFit };
|
|
10232
10232
|
var control = null;
|
|
10233
10233
|
if (item.locImageLink.renderedHtml && this.question.contentMode === "image") {
|
|
10234
|
-
control = (
|
|
10234
|
+
control = (_("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); } }));
|
|
10235
10235
|
}
|
|
10236
10236
|
if (item.locImageLink.renderedHtml && this.question.contentMode === "video") {
|
|
10237
|
-
control = (
|
|
10237
|
+
control = (_("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); } }));
|
|
10238
10238
|
}
|
|
10239
10239
|
if (!item.locImageLink.renderedHtml || item.contentNotLoaded) {
|
|
10240
10240
|
var style_1 = {
|
|
@@ -10242,17 +10242,17 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
|
|
|
10242
10242
|
height: this.question.renderedImageHeight,
|
|
10243
10243
|
objectFit: this.question.imageFit
|
|
10244
10244
|
};
|
|
10245
|
-
control = (
|
|
10246
|
-
|
|
10245
|
+
control = (_("div", { className: cssClasses.itemNoImage, style: style_1 }, cssClasses.itemNoImageSvgIcon ?
|
|
10246
|
+
_(svg_icon_SvgIcon, { className: cssClasses.itemNoImageSvgIcon, iconName: this.question.cssClasses.itemNoImageSvgIconId, size: 48 }) :
|
|
10247
10247
|
null));
|
|
10248
10248
|
}
|
|
10249
|
-
var renderedItem = (
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10249
|
+
var renderedItem = (_("div", { className: itemClass },
|
|
10250
|
+
_("label", { className: cssClasses.label },
|
|
10251
|
+
_("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": item.locText.renderedHtml, "aria-invalid": this.question.ariaInvalid, "aria-errormessage": this.question.ariaErrormessage }),
|
|
10252
|
+
_("div", { className: this.question.cssClasses.itemDecorator },
|
|
10253
|
+
_("div", { className: this.question.cssClasses.imageContainer },
|
|
10254
10254
|
!!this.question.cssClasses.checkedItemDecorator ?
|
|
10255
|
-
|
|
10255
|
+
_("span", { className: this.question.cssClasses.checkedItemDecorator, "aria-hidden": "true" }, !!this.question.cssClasses.checkedItemSvgIconId ? _(svg_icon_SvgIcon, { size: "auto", className: this.question.cssClasses.checkedItemSvgIcon, iconName: this.question.cssClasses.checkedItemSvgIconId }) : null) : null,
|
|
10256
10256
|
control),
|
|
10257
10257
|
text))));
|
|
10258
10258
|
return renderedItem;
|
|
@@ -10261,7 +10261,7 @@ var imagepicker_SurveyQuestionImagePickerItem = /** @class */ (function (_super)
|
|
|
10261
10261
|
}(ReactSurveyElement));
|
|
10262
10262
|
|
|
10263
10263
|
ReactQuestionFactory.Instance.registerQuestion("imagepicker", function (props) {
|
|
10264
|
-
return
|
|
10264
|
+
return _(imagepicker_SurveyQuestionImagePicker, props);
|
|
10265
10265
|
});
|
|
10266
10266
|
|
|
10267
10267
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/image.tsx
|
|
@@ -10316,22 +10316,22 @@ var image_SurveyQuestionImage = /** @class */ (function (_super) {
|
|
|
10316
10316
|
}
|
|
10317
10317
|
var control = null;
|
|
10318
10318
|
if (this.question.renderedMode === "image") {
|
|
10319
|
-
control = (
|
|
10319
|
+
control = (_("img", { className: cssClasses, src: this.question.locImageLink.renderedHtml || null, alt: this.question.altText || this.question.title, width: this.question.renderedWidth, height: this.question.renderedHeight,
|
|
10320
10320
|
//alt={item.text || item.value}
|
|
10321
10321
|
style: style, onLoad: function (event) { _this.question.onLoadHandler(); }, onError: function (event) { _this.question.onErrorHandler(); } }));
|
|
10322
10322
|
}
|
|
10323
10323
|
if (this.question.renderedMode === "video") {
|
|
10324
|
-
control = (
|
|
10324
|
+
control = (_("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(); } }));
|
|
10325
10325
|
}
|
|
10326
10326
|
if (this.question.renderedMode === "youtube") {
|
|
10327
|
-
control = (
|
|
10327
|
+
control = (_("iframe", { className: cssClasses, src: this.question.locImageLink.renderedHtml, width: this.question.renderedWidth, height: this.question.renderedHeight, style: style }));
|
|
10328
10328
|
}
|
|
10329
10329
|
var noImage = null;
|
|
10330
10330
|
if (!this.question.imageLink || this.question.contentNotLoaded) {
|
|
10331
|
-
noImage = (
|
|
10332
|
-
|
|
10331
|
+
noImage = (_("div", { className: this.question.cssClasses.noImage },
|
|
10332
|
+
_(svg_icon_SvgIcon, { iconName: this.question.cssClasses.noImageSvgIconId, size: 48 })));
|
|
10333
10333
|
}
|
|
10334
|
-
return
|
|
10334
|
+
return _("div", { className: this.question.cssClasses.root },
|
|
10335
10335
|
control,
|
|
10336
10336
|
noImage);
|
|
10337
10337
|
};
|
|
@@ -10339,7 +10339,7 @@ var image_SurveyQuestionImage = /** @class */ (function (_super) {
|
|
|
10339
10339
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
10340
10340
|
|
|
10341
10341
|
ReactQuestionFactory.Instance.registerQuestion("image", function (props) {
|
|
10342
|
-
return
|
|
10342
|
+
return _(image_SurveyQuestionImage, props);
|
|
10343
10343
|
});
|
|
10344
10344
|
|
|
10345
10345
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/signaturepad.tsx
|
|
@@ -10382,36 +10382,36 @@ var signaturepad_SurveyQuestionSignaturePad = /** @class */ (function (_super) {
|
|
|
10382
10382
|
var cssClasses = this.question.cssClasses;
|
|
10383
10383
|
var loadingIndicator = this.question.showLoadingIndicator ? this.renderLoadingIndicator() : null;
|
|
10384
10384
|
var clearButton = this.renderCleanButton();
|
|
10385
|
-
return (
|
|
10386
|
-
|
|
10387
|
-
|
|
10385
|
+
return (_("div", { className: cssClasses.root, ref: function (root) { return (_this.setControl(root)); }, style: { width: this.question.renderedCanvasWidth } },
|
|
10386
|
+
_("div", { className: cssClasses.placeholder, style: { display: this.question.needShowPlaceholder() ? "" : "none" } }, this.renderLocString(this.question.locRenderedPlaceholder)),
|
|
10387
|
+
_("div", null,
|
|
10388
10388
|
this.renderBackgroundImage(),
|
|
10389
|
-
|
|
10389
|
+
_("canvas", { tabIndex: -1, className: this.question.cssClasses.canvas, onBlur: function (event) { _this.question.onBlur(event); } })),
|
|
10390
10390
|
clearButton,
|
|
10391
10391
|
loadingIndicator));
|
|
10392
10392
|
};
|
|
10393
10393
|
SurveyQuestionSignaturePad.prototype.renderBackgroundImage = function () {
|
|
10394
10394
|
if (!this.question.backgroundImage)
|
|
10395
10395
|
return null;
|
|
10396
|
-
return
|
|
10396
|
+
return _("img", { className: this.question.cssClasses.backgroundImage, src: this.question.backgroundImage, style: { width: this.question.renderedCanvasWidth } });
|
|
10397
10397
|
};
|
|
10398
10398
|
SurveyQuestionSignaturePad.prototype.renderLoadingIndicator = function () {
|
|
10399
|
-
return
|
|
10400
|
-
|
|
10399
|
+
return _("div", { className: this.question.cssClasses.loadingIndicator },
|
|
10400
|
+
_(loading_indicator_LoadingIndicatorComponent, null));
|
|
10401
10401
|
};
|
|
10402
10402
|
SurveyQuestionSignaturePad.prototype.renderCleanButton = function () {
|
|
10403
10403
|
var _this = this;
|
|
10404
10404
|
if (!this.question.canShowClearButton)
|
|
10405
10405
|
return null;
|
|
10406
10406
|
var cssClasses = this.question.cssClasses;
|
|
10407
|
-
return
|
|
10408
|
-
|
|
10407
|
+
return _("div", { className: cssClasses.controls },
|
|
10408
|
+
_("button", { type: "button", className: cssClasses.clearButton, title: this.question.clearButtonCaption, onClick: function () { return _this.question.clearValue(true); } }, this.question.cssClasses.clearButtonIconId ? _(svg_icon_SvgIcon, { iconName: this.question.cssClasses.clearButtonIconId, size: "auto" }) : _("span", null, "\u2716")));
|
|
10409
10409
|
};
|
|
10410
10410
|
return SurveyQuestionSignaturePad;
|
|
10411
10411
|
}(reactquestion_element_SurveyQuestionElementBase));
|
|
10412
10412
|
|
|
10413
10413
|
ReactQuestionFactory.Instance.registerQuestion("signaturepad", function (props) {
|
|
10414
|
-
return
|
|
10414
|
+
return _(signaturepad_SurveyQuestionSignaturePad, props);
|
|
10415
10415
|
});
|
|
10416
10416
|
|
|
10417
10417
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_buttongroup.tsx
|
|
@@ -10576,16 +10576,16 @@ var reactquestion_custom_SurveyQuestionComposite = /** @class */ (function (_sup
|
|
|
10576
10576
|
return !!this.question.contentPanel;
|
|
10577
10577
|
};
|
|
10578
10578
|
SurveyQuestionComposite.prototype.renderElement = function () {
|
|
10579
|
-
return (
|
|
10579
|
+
return (_(panel_SurveyPanel, { element: this.question.contentPanel, creator: this.creator, survey: this.question.survey }));
|
|
10580
10580
|
};
|
|
10581
10581
|
return SurveyQuestionComposite;
|
|
10582
10582
|
}(reactquestion_element_SurveyQuestionUncontrolledElement));
|
|
10583
10583
|
|
|
10584
10584
|
ReactQuestionFactory.Instance.registerQuestion("custom", function (props) {
|
|
10585
|
-
return
|
|
10585
|
+
return _(reactquestion_custom_SurveyQuestionCustom, props);
|
|
10586
10586
|
});
|
|
10587
10587
|
ReactQuestionFactory.Instance.registerQuestion("composite", function (props) {
|
|
10588
|
-
return
|
|
10588
|
+
return _(reactquestion_custom_SurveyQuestionComposite, props);
|
|
10589
10589
|
});
|
|
10590
10590
|
|
|
10591
10591
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/list/list-item-content.tsx
|
|
@@ -11430,12 +11430,12 @@ var js_ui_assign = (undefined && undefined.__assign) || function () {
|
|
|
11430
11430
|
|
|
11431
11431
|
function renderSurvey(model, element, props) {
|
|
11432
11432
|
if (props === void 0) { props = {}; }
|
|
11433
|
-
var survey =
|
|
11433
|
+
var survey = _(reactSurvey_Survey, js_ui_assign({ model: model }, props));
|
|
11434
11434
|
nn(survey, element);
|
|
11435
11435
|
}
|
|
11436
11436
|
function renderPopupSurvey(model, element, props) {
|
|
11437
11437
|
if (props === void 0) { props = {}; }
|
|
11438
|
-
var survey =
|
|
11438
|
+
var survey = _(react_popup_survey_PopupSurvey, js_ui_assign({ model: model }, props));
|
|
11439
11439
|
nn(survey, element);
|
|
11440
11440
|
}
|
|
11441
11441
|
function doPopupSurvey(props) {
|
|
@@ -11484,7 +11484,7 @@ var preact = compat_module_namespaceObject;
|
|
|
11484
11484
|
|
|
11485
11485
|
|
|
11486
11486
|
|
|
11487
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
11487
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.26", "survey-js-ui");
|
|
11488
11488
|
|
|
11489
11489
|
|
|
11490
11490
|
/***/ }),
|