survey-creator-core 1.9.80 → 1.9.82
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +100 -19
- package/survey-creator-core.d.ts +244 -1
- package/survey-creator-core.fontless.css +99 -18
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +11 -11
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +716 -235
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +12 -12
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.82
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -111,14 +111,14 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
111
111
|
|
|
112
112
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/* @license
|
|
113
113
|
Papa Parse
|
|
114
|
-
v5.4.
|
|
114
|
+
v5.4.1
|
|
115
115
|
https://github.com/mholt/PapaParse
|
|
116
116
|
License: MIT
|
|
117
117
|
*/
|
|
118
118
|
!function(e,t){ true?!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (t),
|
|
119
119
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
120
120
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
121
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):undefined}(this,function s(){"use strict";var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=f.IS_PAPA_WORKER||!1,a={},u=0,b={parse:function(e,t){var r=(t=t||{}).dynamicTyping||!1;J(r)&&(t.dynamicTypingFunction=r,r={});if(t.dynamicTyping=r,t.transform=!!J(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var i=function(){if(!b.WORKERS_SUPPORTED)return!1;var e=(r=f.URL||f.webkitURL||null,i=s.toString(),b.BLOB_URL||(b.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var r,i;return t.onmessage=_,t.id=u++,a[t.id]=t}();return i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=J(t.step),t.chunk=J(t.chunk),t.complete=J(t.complete),t.error=J(t.error),delete t.worker,void i.postMessage({input:e,config:t,workerId:i.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?(e=function(e){if(65279===e.charCodeAt(0))return e.slice(1);return e}(e),n=t.download?new l(t):new p(t)):!0===e.readable&&J(e.read)&&J(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,r=!1,i=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(r=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");i=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}();var u=new RegExp(Q(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,r);if("object"==typeof e[0])return h(i||Object.keys(e[0]),e,r)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||i),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],r);throw new Error("Unable to serialize unrecognized input");function h(e,t,r){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(i+=m),i+=v(e[a],a);0<t.length&&(i+=y)}for(var o=0;o<t.length;o++){var u=n?e.length:t[o].length,h=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(r&&!n&&(h="greedy"===r?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===r&&n){for(var d=[],l=0;l<u;l++){var c=s?e[l]:l;d.push(t[o][c])}h=""===d.join("").trim()}if(!h){for(var p=0;p<u;p++){0<p&&!f&&(i+=m);var g=n&&s?e[p]:p;i+=v(t[o][g],p)}o<t.length-1&&(!r||0<u&&!f)&&(i+=y)}}return i}function v(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,r=!0);var i=e.toString().replace(u,a);return(r=r||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=r,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var r=o.config||{},u=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)u.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},r)})}),e(),this;function e(){if(0!==u.length){var e,t,r,i,n=u[0];if(J(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,r=n.inputElem,i=s.reason,void(J(o.error)&&o.error({name:e},t,r,i));if("skip"===s.action)return void h();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config))}else if("skip"===s)return void h()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){J(a)&&a(e,n.file,n.inputElem),h()},b.parse(n.file,n.instanceConfig)}else J(o.complete)&&o.complete()}function h(){u.splice(0,1),e()}}}function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&J(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e;this._partialLine="";var n=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=i.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(J(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!J(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0},this._sendError=function(e){J(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1})}}function l(e){var i;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),h.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(i=new XMLHttpRequest,this._config.withCredentials&&(i.withCredentials=this._config.withCredentials),n||(i.onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)),i.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)i.setRequestHeader(t,e[t])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;i.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{i.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===i.status&&this._chunkError()}},this._chunkLoaded=function(){4===i.readyState&&(i.status<200||400<=i.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:i.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return-1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(i),this.parseChunk(i.responseText)))},this._chunkError=function(e){var t=i.statusText||e;this._sendError(new Error(t))}}function c(e){var i,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),h.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((i=new FileReader).onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t)}var r=i.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:r}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function p(e){var r;h.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=r.substring(0,t),r=r.substring(t)):(e=r,r=""),this._finished=!r,this.parseChunk(e)}}}function g(e){h.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=v(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function r(m){var a,o,u,i=Math.pow(2,53),n=-i,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,h=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,t=this,r=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(J(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else{if(g(),0===c.data.length)return;r+=e.data.length,m.preview&&r>m.preview?o.abort():(c.data=c.data[0],p(c,t))}}}function y(e){return"greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&u&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),u=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return!y(e)})),_()&&function(){if(!c)return;function e(e,t){J(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e)}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1)}else c.data.forEach(e)}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var r,i=m.header?{}:[];for(r=0;r<e.length;r++){var n=r,s=e[r];m.header&&(n=r>=l.length?"__parsed_extra":l[r]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(i[n]=i[n]||[],i[n].push(s)):i[n]=s}return m.header&&(r>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+r,f+t):r<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+r,f+t)),i}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return r=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[r]&&(m.dynamicTyping[r]=m.dynamicTypingFunction(r)),!0===(m.dynamicTyping[r]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<i)return!0}return!1}(t)?parseFloat(t):h.test(t)?new Date(t):""===t?null:t):t;var r}function k(e,t,r,i){var n={type:e,code:t,message:r};void 0!==i&&(n.row=i),c.errors.push(n)}this.parse=function(e,t,r){var i=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var r=new RegExp(Q(t)+"([^]*?)"+Q(t),"gm"),i=(e=e.replace(r,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<i[0].length;if(1===i.length||s)return"\n";for(var a=0,o=0;o<i.length;o++)"\n"===i[o][0]&&a++;return a>=i.length/2?"\r\n":"\r"}(e,i)),u=!1,m.delimiter)J(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else{var n=function(e,t,r,i,n){var s,a,o,u;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var h=0;h<n.length;h++){var f=n[h],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:i,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(r&&y(p.data[g]))c++;else{var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===u||u<l)&&1.99<l&&(a=d,s=f,u=l)}return{successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(u=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,r),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=J(m.chunk)?"":a.substring(o.getCharIndex())},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3)},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,J(m.complete)&&m.complete(c),a=""}}function Q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(j){var z,M=(j=j||{}).delimiter,P=j.newline,U=j.comments,q=j.step,N=j.preview,B=j.fastMode,K=z=void 0===j.quoteChar||null===j.quoteChar?'"':j.quoteChar;if(void 0!==j.escapeChar&&(K=j.escapeChar),("string"!=typeof M||-1<b.BAD_DELIMITERS.indexOf(M))&&(M=","),U===M)throw new Error("Comment character same as delimiter");!0===U?U="#":("string"!=typeof U||-1<b.BAD_DELIMITERS.indexOf(U))&&(U=!1),"\n"!==P&&"\r"!==P&&"\r\n"!==P&&(P="\n");var W=0,H=!1;this.parse=function(i,t,r){if("string"!=typeof i)throw new Error("Input must be a string");var n=i.length,e=M.length,s=P.length,a=U.length,o=J(q),u=[],h=[],f=[],d=W=0;if(!i)return L();if(j.header){var l=i.split(P)[0].split(M),c=[],p={},g=!1;for(var _ in l){var m=l[_];J(j.transformHeader)&&(m=j.transformHeader(m,_));var y=m,v=p[m]||0;0<v&&(g=!0,y=m+"_"+v),p[m]=v+1,c.push(y)}if(g){var k=i.split(P);k[0]=c.join(M),i=k.join(P)}}if(B||!1!==B&&-1===i.indexOf(z)){for(var b=i.split(P),E=0;E<b.length;E++){if(f=b[E],W+=f.length,E!==b.length-1)W+=P.length;else if(r)return L();if(!U||f.substring(0,a)!==U){if(o){if(u=[],I(f.split(M)),F(),H)return L()}else I(f.split(M));if(N&&N<=E)return u=u.slice(0,N),L(!0)}}return L()}for(var w=i.indexOf(M,W),R=i.indexOf(P,W),C=new RegExp(Q(K)+Q(z),"g"),S=i.indexOf(z,W);;)if(i[W]!==z)if(U&&0===f.length&&i.substring(W,W+a)===U){if(-1===R)return L();W=R+s,R=i.indexOf(P,W),w=i.indexOf(M,W)}else if(-1!==w&&(w<R||-1===R))f.push(i.substring(W,w)),W=w+e,w=i.indexOf(M,W);else{if(-1===R)break;if(f.push(i.substring(W,R)),D(R+s),o&&(F(),H))return L();if(N&&u.length>=N)return L(!0)}else for(S=W,W++;;){if(-1===(S=i.indexOf(z,S+1)))return r||h.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:u.length,index:W}),T();if(S===n-1)return T(i.substring(W,S).replace(C,z));if(z!==K||i[S+1]!==K){if(z===K||0===S||i[S-1]!==K){-1!==w&&w<S+1&&(w=i.indexOf(M,S+1)),-1!==R&&R<S+1&&(R=i.indexOf(P,S+1));var O=A(-1===R?w:Math.min(w,R));if(i.substr(S+1+O,e)===M){f.push(i.substring(W,S).replace(C,z)),i[W=S+1+O+e]!==z&&(S=i.indexOf(z,W)),w=i.indexOf(M,W),R=i.indexOf(P,W);break}var x=A(R);if(i.substring(S+1+x,S+1+x+s)===P){if(f.push(i.substring(W,S).replace(C,z)),D(S+1+x+s),w=i.indexOf(M,W),S=i.indexOf(z,W),o&&(F(),H))return L();if(N&&u.length>=N)return L(!0);break}h.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:u.length,index:W}),S++}}else S++}return T();function I(e){u.push(e),d=W}function A(e){var t=0;if(-1!==e){var r=i.substring(S+1,e);r&&""===r.trim()&&(t=r.length)}return t}function T(e){return r||(void 0===e&&(e=i.substring(W)),f.push(e),W=n,I(f),o&&F()),L()}function D(e){W=e,I(f),f=[],R=i.indexOf(P,W)}function L(e){return{data:u,errors:h,meta:{delimiter:M,linebreak:P,aborted:H,truncated:!!e,cursor:d+(t||0)}}}function F(){q(L()),u=[],h=[]}},this.abort=function(){H=!0},this.getCharIndex=function(){return W}}function _(e){var t=e.data,r=a[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){i=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(J(r.userStep)){for(var s=0;s<t.results.data.length&&(r.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!i);s++);delete t.results}else J(r.userChunk)&&(r.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!i&&m(t.workerId,t.results)}function m(e,t){var r=a[e];J(r.userComplete)&&r.userComplete(t),r.terminate(),delete a[e]}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=w(e[r]);return t}function v(e,t){return function(){e.apply(t,arguments)}}function J(e){return"function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var r=b.parse(t.input,t.config);r&&f.postMessage({workerId:b.WORKER_ID,results:r,finished:!0})}}),(l.prototype=Object.create(h.prototype)).constructor=l,(c.prototype=Object.create(h.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(h.prototype)).constructor=g,b});
|
|
121
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)):undefined}(this,function s(){"use strict";var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=f.IS_PAPA_WORKER||!1,a={},u=0,b={parse:function(e,t){var r=(t=t||{}).dynamicTyping||!1;J(r)&&(t.dynamicTypingFunction=r,r={});if(t.dynamicTyping=r,t.transform=!!J(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var i=function(){if(!b.WORKERS_SUPPORTED)return!1;var e=(r=f.URL||f.webkitURL||null,i=s.toString(),b.BLOB_URL||(b.BLOB_URL=r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var r,i;return t.onmessage=_,t.id=u++,a[t.id]=t}();return i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=J(t.step),t.chunk=J(t.chunk),t.complete=J(t.complete),t.error=J(t.error),delete t.worker,void i.postMessage({input:e,config:t,workerId:i.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?(e=function(e){if(65279===e.charCodeAt(0))return e.slice(1);return e}(e),n=t.download?new l(t):new p(t)):!0===e.readable&&J(e.read)&&J(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,r=!1,i=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(r=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");i=t.columns}void 0!==t.escapeChar&&(a=t.escapeChar+s);("boolean"==typeof t.escapeFormulae||t.escapeFormulae instanceof RegExp)&&(o=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}();var u=new RegExp(Q(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,r);if("object"==typeof e[0])return h(i||Object.keys(e[0]),e,r)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||i),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],r);throw new Error("Unable to serialize unrecognized input");function h(e,t,r){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(i+=m),i+=v(e[a],a);0<t.length&&(i+=y)}for(var o=0;o<t.length;o++){var u=n?e.length:t[o].length,h=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(r&&!n&&(h="greedy"===r?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===r&&n){for(var d=[],l=0;l<u;l++){var c=s?e[l]:l;d.push(t[o][c])}h=""===d.join("").trim()}if(!h){for(var p=0;p<u;p++){0<p&&!f&&(i+=m);var g=n&&s?e[p]:p;i+=v(t[o][g],p)}o<t.length-1&&(!r||0<u&&!f)&&(i+=y)}}return i}function v(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);var r=!1;o&&"string"==typeof e&&o.test(e)&&(e="'"+e,r=!0);var i=e.toString().replace(u,a);return(r=r||!0===n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1))?s+i+s:i}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=r,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var r=o.config||{},u=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)u.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},r)})}),e(),this;function e(){if(0!==u.length){var e,t,r,i,n=u[0];if(J(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,r=n.inputElem,i=s.reason,void(J(o.error)&&o.error({name:e},t,r,i));if("skip"===s.action)return void h();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config))}else if("skip"===s)return void h()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){J(a)&&a(e,n.file,n.inputElem),h()},b.parse(n.file,n.instanceConfig)}else J(o.complete)&&o.complete()}function h(){u.splice(0,1),e()}}}function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&J(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var i=this._partialLine+e;this._partialLine="";var n=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=i.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(J(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!J(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0},this._sendError=function(e){J(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1})}}function l(e){var i;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),h.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(i=new XMLHttpRequest,this._config.withCredentials&&(i.withCredentials=this._config.withCredentials),n||(i.onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)),i.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)i.setRequestHeader(t,e[t])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;i.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{i.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}n&&0===i.status&&this._chunkError()}},this._chunkLoaded=function(){4===i.readyState&&(i.status<200||400<=i.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:i.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return-1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(i),this.parseChunk(i.responseText)))},this._chunkError=function(e){var t=i.statusText||e;this._sendError(new Error(t))}}function c(e){var i,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),h.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((i=new FileReader).onload=v(this._chunkLoaded,this),i.onerror=v(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t)}var r=i.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:r}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function p(e){var r;h.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=r.substring(0,t),r=r.substring(t)):(e=r,r=""),this._finished=!r,this.parseChunk(e)}}}function g(e){h.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=v(function(){this._streamCleanUp(),i=!0,this._streamData("")},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function r(m){var a,o,u,i=Math.pow(2,53),n=-i,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,h=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,t=this,r=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(J(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else{if(g(),0===c.data.length)return;r+=e.data.length,m.preview&&r>m.preview?o.abort():(c.data=c.data[0],p(c,t))}}}function y(e){return"greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){return c&&u&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),u=!1),m.skipEmptyLines&&(c.data=c.data.filter(function(e){return!y(e)})),_()&&function(){if(!c)return;function e(e,t){J(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e)}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1)}else c.data.forEach(e)}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var r,i=m.header?{}:[];for(r=0;r<e.length;r++){var n=r,s=e[r];m.header&&(n=r>=l.length?"__parsed_extra":l[r]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(i[n]=i[n]||[],i[n].push(s)):i[n]=s}return m.header&&(r>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+r,f+t):r<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+r,f+t)),i}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return r=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[r]&&(m.dynamicTyping[r]=m.dynamicTypingFunction(r)),!0===(m.dynamicTyping[r]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<i)return!0}return!1}(t)?parseFloat(t):h.test(t)?new Date(t):""===t?null:t):t;var r}function k(e,t,r,i){var n={type:e,code:t,message:r};void 0!==i&&(n.row=i),c.errors.push(n)}this.parse=function(e,t,r){var i=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var r=new RegExp(Q(t)+"([^]*?)"+Q(t),"gm"),i=(e=e.replace(r,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<i[0].length;if(1===i.length||s)return"\n";for(var a=0,o=0;o<i.length;o++)"\n"===i[o][0]&&a++;return a>=i.length/2?"\r\n":"\r"}(e,i)),u=!1,m.delimiter)J(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else{var n=function(e,t,r,i,n){var s,a,o,u;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var h=0;h<n.length;h++){var f=n[h],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:i,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(r&&y(p.data[g]))c++;else{var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===u||u<l)&&1.99<l&&(a=d,s=f,u=l)}return{successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(u=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,r),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=J(m.chunk)?"":a.substring(o.getCharIndex())},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3)},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,J(m.complete)&&m.complete(c),a=""}}function Q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(j){var z,M=(j=j||{}).delimiter,P=j.newline,U=j.comments,q=j.step,N=j.preview,B=j.fastMode,K=z=void 0===j.quoteChar||null===j.quoteChar?'"':j.quoteChar;if(void 0!==j.escapeChar&&(K=j.escapeChar),("string"!=typeof M||-1<b.BAD_DELIMITERS.indexOf(M))&&(M=","),U===M)throw new Error("Comment character same as delimiter");!0===U?U="#":("string"!=typeof U||-1<b.BAD_DELIMITERS.indexOf(U))&&(U=!1),"\n"!==P&&"\r"!==P&&"\r\n"!==P&&(P="\n");var W=0,H=!1;this.parse=function(i,t,r){if("string"!=typeof i)throw new Error("Input must be a string");var n=i.length,e=M.length,s=P.length,a=U.length,o=J(q),u=[],h=[],f=[],d=W=0;if(!i)return L();if(j.header&&!t){var l=i.split(P)[0].split(M),c=[],p={},g=!1;for(var _ in l){var m=l[_];J(j.transformHeader)&&(m=j.transformHeader(m,_));var y=m,v=p[m]||0;for(0<v&&(g=!0,y=m+"_"+v),p[m]=v+1;c.includes(y);)y=y+"_"+v;c.push(y)}if(g){var k=i.split(P);k[0]=c.join(M),i=k.join(P)}}if(B||!1!==B&&-1===i.indexOf(z)){for(var b=i.split(P),E=0;E<b.length;E++){if(f=b[E],W+=f.length,E!==b.length-1)W+=P.length;else if(r)return L();if(!U||f.substring(0,a)!==U){if(o){if(u=[],I(f.split(M)),F(),H)return L()}else I(f.split(M));if(N&&N<=E)return u=u.slice(0,N),L(!0)}}return L()}for(var w=i.indexOf(M,W),R=i.indexOf(P,W),C=new RegExp(Q(K)+Q(z),"g"),S=i.indexOf(z,W);;)if(i[W]!==z)if(U&&0===f.length&&i.substring(W,W+a)===U){if(-1===R)return L();W=R+s,R=i.indexOf(P,W),w=i.indexOf(M,W)}else if(-1!==w&&(w<R||-1===R))f.push(i.substring(W,w)),W=w+e,w=i.indexOf(M,W);else{if(-1===R)break;if(f.push(i.substring(W,R)),D(R+s),o&&(F(),H))return L();if(N&&u.length>=N)return L(!0)}else for(S=W,W++;;){if(-1===(S=i.indexOf(z,S+1)))return r||h.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:u.length,index:W}),T();if(S===n-1)return T(i.substring(W,S).replace(C,z));if(z!==K||i[S+1]!==K){if(z===K||0===S||i[S-1]!==K){-1!==w&&w<S+1&&(w=i.indexOf(M,S+1)),-1!==R&&R<S+1&&(R=i.indexOf(P,S+1));var O=A(-1===R?w:Math.min(w,R));if(i.substr(S+1+O,e)===M){f.push(i.substring(W,S).replace(C,z)),i[W=S+1+O+e]!==z&&(S=i.indexOf(z,W)),w=i.indexOf(M,W),R=i.indexOf(P,W);break}var x=A(R);if(i.substring(S+1+x,S+1+x+s)===P){if(f.push(i.substring(W,S).replace(C,z)),D(S+1+x+s),w=i.indexOf(M,W),S=i.indexOf(z,W),o&&(F(),H))return L();if(N&&u.length>=N)return L(!0);break}h.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:u.length,index:W}),S++}}else S++}return T();function I(e){u.push(e),d=W}function A(e){var t=0;if(-1!==e){var r=i.substring(S+1,e);r&&""===r.trim()&&(t=r.length)}return t}function T(e){return r||(void 0===e&&(e=i.substring(W)),f.push(e),W=n,I(f),o&&F()),L()}function D(e){W=e,I(f),f=[],R=i.indexOf(P,W)}function L(e){return{data:u,errors:h,meta:{delimiter:M,linebreak:P,aborted:H,truncated:!!e,cursor:d+(t||0)}}}function F(){q(L()),u=[],h=[]}},this.abort=function(){H=!0},this.getCharIndex=function(){return W}}function _(e){var t=e.data,r=a[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){i=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(J(r.userStep)){for(var s=0;s<t.results.data.length&&(r.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!i);s++);delete t.results}else J(r.userChunk)&&(r.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!i&&m(t.workerId,t.results)}function m(e,t){var r=a[e];J(r.userComplete)&&r.userComplete(t),r.terminate(),delete a[e]}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=w(e[r]);return t}function v(e,t){return function(){e.apply(t,arguments)}}function J(e){return"function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var r=b.parse(t.input,t.config);r&&f.postMessage({workerId:b.WORKER_ID,results:r,finished:!0})}}),(l.prototype=Object.create(h.prototype)).constructor=l,(c.prototype=Object.create(h.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(h.prototype)).constructor=g,b});
|
|
122
122
|
|
|
123
123
|
/***/ }),
|
|
124
124
|
|
|
@@ -409,9 +409,11 @@ var LogoImageViewModel = /** @class */ (function (_super) {
|
|
|
409
409
|
configurable: true
|
|
410
410
|
});
|
|
411
411
|
LogoImageViewModel.prototype.uploadFile = function (model, fileInput, files) {
|
|
412
|
+
model.isUploading = true;
|
|
412
413
|
model.creator.uploadFiles(files, undefined, function (_, link) {
|
|
413
414
|
model.creator.survey.logo = link;
|
|
414
415
|
fileInput.value = "";
|
|
416
|
+
model.isUploading = false;
|
|
415
417
|
});
|
|
416
418
|
};
|
|
417
419
|
LogoImageViewModel.prototype.chooseFile = function (model) {
|
|
@@ -436,6 +438,9 @@ var LogoImageViewModel = /** @class */ (function (_super) {
|
|
|
436
438
|
enumerable: false,
|
|
437
439
|
configurable: true
|
|
438
440
|
});
|
|
441
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
442
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
443
|
+
], LogoImageViewModel.prototype, "isUploading", void 0);
|
|
439
444
|
return LogoImageViewModel;
|
|
440
445
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
441
446
|
|
|
@@ -518,13 +523,16 @@ var ImageItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
518
523
|
ImageItemValueWrapperViewModel.prototype.chooseFile = function (model) {
|
|
519
524
|
var fileInput = model.itemsRoot.getElementsByClassName("svc-choose-file-input")[0];
|
|
520
525
|
model.creator.chooseFiles(fileInput, function (files) {
|
|
526
|
+
model.isUploading = true;
|
|
521
527
|
model.creator.uploadFiles(files, model.question, function (_, link) {
|
|
522
528
|
model.item.imageLink = link;
|
|
529
|
+
model.isUploading = false;
|
|
523
530
|
});
|
|
524
531
|
});
|
|
525
532
|
};
|
|
526
533
|
ImageItemValueWrapperViewModel.prototype.uploadFiles = function (files) {
|
|
527
534
|
var _this = this;
|
|
535
|
+
this.isUploading = true;
|
|
528
536
|
this.creator.uploadFiles(files, this.question, function (_, link) {
|
|
529
537
|
var itemValue = _this.creator.createNewItemValue(_this.question);
|
|
530
538
|
itemValue.imageLink = link;
|
|
@@ -533,6 +541,7 @@ var ImageItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
533
541
|
_this.creator.onItemValueAddedCallback(_this.question, "choices", itemValue, _this.question.choices);
|
|
534
542
|
_this.isChoosingNewFile = false;
|
|
535
543
|
}
|
|
544
|
+
_this.isUploading = false;
|
|
536
545
|
});
|
|
537
546
|
};
|
|
538
547
|
ImageItemValueWrapperViewModel.prototype.chooseNewFile = function (model) {
|
|
@@ -546,6 +555,9 @@ var ImageItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
546
555
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
547
556
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
548
557
|
], ImageItemValueWrapperViewModel.prototype, "isFileDragging", void 0);
|
|
558
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
559
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
560
|
+
], ImageItemValueWrapperViewModel.prototype, "isUploading", void 0);
|
|
549
561
|
return ImageItemValueWrapperViewModel;
|
|
550
562
|
}(_item_value__WEBPACK_IMPORTED_MODULE_2__["ItemValueWrapperViewModel"]));
|
|
551
563
|
|
|
@@ -686,12 +698,15 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
686
698
|
}
|
|
687
699
|
_this.dragDropHelper.onGhostPositionChanged.add(_this.handleDragDropGhostPositionChanged);
|
|
688
700
|
_this.dragOrClickHelper = new survey_core__WEBPACK_IMPORTED_MODULE_1__["DragOrClickHelper"](_this.startDragItemValue);
|
|
689
|
-
_this.allowItemOperations = { allowDelete: undefined, allowEdit: undefined };
|
|
701
|
+
_this.allowItemOperations = { allowDelete: undefined, allowEdit: undefined, allowAdd: undefined };
|
|
690
702
|
_this.collectionProperty = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(question.getType(), _this.collectionPropertyName);
|
|
691
703
|
_this.creator.onCollectionItemAllowingCallback(question, _this.collectionProperty, question.visibleChoices, _this.item, _this.allowItemOperations);
|
|
692
704
|
if (_this.allowItemOperations.allowDelete === undefined) {
|
|
693
705
|
_this.allowItemOperations.allowDelete = true;
|
|
694
706
|
}
|
|
707
|
+
if (_this.allowItemOperations.allowAdd === undefined) {
|
|
708
|
+
_this.allowItemOperations.allowAdd = true;
|
|
709
|
+
}
|
|
695
710
|
if (!_this.creator.isCanModifyProperty(question, "choices")) {
|
|
696
711
|
_this.canTouchItems = false;
|
|
697
712
|
}
|
|
@@ -855,7 +870,7 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
855
870
|
Object.defineProperty(ItemValueWrapperViewModel.prototype, "allowAdd", {
|
|
856
871
|
get: function () {
|
|
857
872
|
var isNew = !this.question.isItemInList(this.item);
|
|
858
|
-
return !this.creator.readOnly && this.canTouchItems && isNew;
|
|
873
|
+
return !this.creator.readOnly && this.canTouchItems && (this.allowItemOperations.allowAdd) && isNew;
|
|
859
874
|
},
|
|
860
875
|
enumerable: false,
|
|
861
876
|
configurable: true
|
|
@@ -1309,17 +1324,36 @@ var PageNavigatorViewModel = /** @class */ (function (_super) {
|
|
|
1309
1324
|
};
|
|
1310
1325
|
item.active = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return page === _this.currentPage; });
|
|
1311
1326
|
item.action = function (item) {
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1327
|
+
_this.scrollToPage(page);
|
|
1328
|
+
};
|
|
1329
|
+
item.data = page;
|
|
1330
|
+
return this.createActionBarCore(item);
|
|
1331
|
+
};
|
|
1332
|
+
PageNavigatorViewModel.prototype.scrollToPage = function (page) {
|
|
1333
|
+
var _this = this;
|
|
1334
|
+
if (this.pageEditMode === "bypage") {
|
|
1335
|
+
this.pagesController.currentPage = page;
|
|
1336
|
+
this.currentPage = page;
|
|
1337
|
+
this.pagesController.creator.selectElement(this.pagesController.currentPage);
|
|
1338
|
+
return;
|
|
1339
|
+
}
|
|
1340
|
+
var el = document.getElementById(page.id);
|
|
1341
|
+
if (!!el) {
|
|
1342
|
+
var isLastPage = this.pagesController.pages.indexOf(page) === (this.pagesController.pages.length - 1);
|
|
1343
|
+
if (!!this._scrollableContainer) {
|
|
1344
|
+
// const y = el.offsetTop - (this._scrollableContainer.clientHeight / 4);
|
|
1345
|
+
this._scrollableContainer.scrollTo(this._scrollableContainer.scrollLeft, el.offsetTop - 20);
|
|
1346
|
+
this.patchContainerOffset(el);
|
|
1347
|
+
if (isLastPage) {
|
|
1348
|
+
setTimeout(function () {
|
|
1349
|
+
_this._scrollableContainer.scrollTo(_this._scrollableContainer.scrollLeft, el.offsetTop - 20);
|
|
1350
|
+
_this.patchContainerOffset(el);
|
|
1351
|
+
}, 50);
|
|
1352
|
+
}
|
|
1317
1353
|
}
|
|
1318
|
-
|
|
1319
|
-
if (!!el) {
|
|
1354
|
+
else {
|
|
1320
1355
|
el.scrollIntoView({ block: "start" });
|
|
1321
|
-
|
|
1322
|
-
var isLastPage = _this.pagesController.pages.indexOf(page) === (_this.pagesController.pages.length - 1);
|
|
1356
|
+
this.patchContainerOffset(el);
|
|
1323
1357
|
if (isLastPage) {
|
|
1324
1358
|
setTimeout(function () {
|
|
1325
1359
|
el.scrollIntoView({ block: "start" });
|
|
@@ -1327,9 +1361,7 @@ var PageNavigatorViewModel = /** @class */ (function (_super) {
|
|
|
1327
1361
|
}, 50);
|
|
1328
1362
|
}
|
|
1329
1363
|
}
|
|
1330
|
-
}
|
|
1331
|
-
item.data = page;
|
|
1332
|
-
return this.createActionBarCore(item);
|
|
1364
|
+
}
|
|
1333
1365
|
};
|
|
1334
1366
|
PageNavigatorViewModel.prototype.createActionBarCore = function (item) {
|
|
1335
1367
|
return new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"](item);
|
|
@@ -1390,6 +1422,9 @@ var PageNavigatorViewModel = /** @class */ (function (_super) {
|
|
|
1390
1422
|
this.visibleItemsStartIndex = 0;
|
|
1391
1423
|
this.visibleItemsCount = Number.MAX_VALUE;
|
|
1392
1424
|
};
|
|
1425
|
+
PageNavigatorViewModel.prototype.setScrollableContainer = function (scrollableContainer) {
|
|
1426
|
+
this._scrollableContainer = scrollableContainer;
|
|
1427
|
+
};
|
|
1393
1428
|
PageNavigatorViewModel.prototype.setItemsContainer = function (itemsContainer) {
|
|
1394
1429
|
var _this = this;
|
|
1395
1430
|
this.stopItemsContainerHeightObserver();
|
|
@@ -1833,7 +1868,10 @@ var QuestionDropdownAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1833
1868
|
__webpack_require__.r(__webpack_exports__);
|
|
1834
1869
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionImageAdornerViewModel", function() { return QuestionImageAdornerViewModel; });
|
|
1835
1870
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1836
|
-
/* harmony import */ var
|
|
1871
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
1872
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
1873
|
+
/* harmony import */ var _question__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./question */ "./src/components/question.ts");
|
|
1874
|
+
|
|
1837
1875
|
|
|
1838
1876
|
|
|
1839
1877
|
__webpack_require__(/*! ./question-image.scss */ "./src/components/question-image.scss");
|
|
@@ -1847,13 +1885,18 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1847
1885
|
QuestionImageAdornerViewModel.prototype.chooseFile = function (model) {
|
|
1848
1886
|
var fileInput = model.questionRoot.getElementsByClassName("svc-choose-file-input")[0];
|
|
1849
1887
|
model.creator.chooseFiles(fileInput, function (files) {
|
|
1888
|
+
model.isUploading = true;
|
|
1850
1889
|
model.creator.uploadFiles(files, model.surveyElement, function (_, link) {
|
|
1851
1890
|
model.surveyElement.imageLink = link;
|
|
1891
|
+
model.isUploading = false;
|
|
1852
1892
|
});
|
|
1853
1893
|
});
|
|
1854
1894
|
};
|
|
1895
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
1896
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
1897
|
+
], QuestionImageAdornerViewModel.prototype, "isUploading", void 0);
|
|
1855
1898
|
return QuestionImageAdornerViewModel;
|
|
1856
|
-
}(
|
|
1899
|
+
}(_question__WEBPACK_IMPORTED_MODULE_2__["QuestionAdornerViewModel"]));
|
|
1857
1900
|
|
|
1858
1901
|
|
|
1859
1902
|
|
|
@@ -3700,8 +3743,11 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
|
|
|
3700
3743
|
}
|
|
3701
3744
|
}
|
|
3702
3745
|
else {
|
|
3746
|
+
this.creator.notify(this.errorText, "error");
|
|
3703
3747
|
this.focusedProgram = true;
|
|
3748
|
+
event.target.innerText = clearedText;
|
|
3704
3749
|
event.target.focus();
|
|
3750
|
+
return;
|
|
3705
3751
|
}
|
|
3706
3752
|
}
|
|
3707
3753
|
else {
|
|
@@ -3828,9 +3874,12 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
|
|
|
3828
3874
|
configurable: true
|
|
3829
3875
|
});
|
|
3830
3876
|
StringEditorViewModelBase.prototype.className = function (text) {
|
|
3831
|
-
return "
|
|
3832
|
-
(
|
|
3833
|
-
(
|
|
3877
|
+
return new survey_core__WEBPACK_IMPORTED_MODULE_1__["CssClassBuilder"]()
|
|
3878
|
+
.append("svc-string-editor")
|
|
3879
|
+
.append("svc-string-editor--hidden", text == "" && this.placeholder == "")
|
|
3880
|
+
.append("svc-string-editor--readonly", !this.contentEditable)
|
|
3881
|
+
.append("svc-string-editor--error", !!this.errorText)
|
|
3882
|
+
.toString();
|
|
3834
3883
|
};
|
|
3835
3884
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
3836
3885
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
@@ -5673,6 +5722,14 @@ var LogicItemEditor = /** @class */ (function (_super) {
|
|
|
5673
5722
|
LogicItemEditor.prototype.resetModified = function () {
|
|
5674
5723
|
this.isModifiedValue = false;
|
|
5675
5724
|
};
|
|
5725
|
+
LogicItemEditor.prototype.isEmpty = function () {
|
|
5726
|
+
if (this.panels.length === 0)
|
|
5727
|
+
return true;
|
|
5728
|
+
if (this.panels.length > 1)
|
|
5729
|
+
return false;
|
|
5730
|
+
var modelAction = this.getActionModelByPanel(this.panels[0]);
|
|
5731
|
+
return !modelAction;
|
|
5732
|
+
};
|
|
5676
5733
|
LogicItemEditor.prototype.apply = function () {
|
|
5677
5734
|
if (this.editSurvey.hasErrors())
|
|
5678
5735
|
return false;
|
|
@@ -6630,11 +6687,29 @@ var TabLogicPlugin = /** @class */ (function () {
|
|
|
6630
6687
|
return;
|
|
6631
6688
|
this.model.update(this.creator.survey);
|
|
6632
6689
|
};
|
|
6633
|
-
TabLogicPlugin.prototype.
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6690
|
+
TabLogicPlugin.prototype.canDeactivateAsync = function (onSuccess) {
|
|
6691
|
+
var _this = this;
|
|
6692
|
+
if (!!this.model) {
|
|
6693
|
+
this.model.tryLeaveUI(function (res) {
|
|
6694
|
+
if (!res) {
|
|
6695
|
+
_this.creator.notify(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("ed.lg.expressionInvalid"), "error");
|
|
6696
|
+
}
|
|
6697
|
+
else {
|
|
6698
|
+
onSuccess();
|
|
6699
|
+
}
|
|
6700
|
+
});
|
|
6701
|
+
return;
|
|
6637
6702
|
}
|
|
6703
|
+
onSuccess();
|
|
6704
|
+
};
|
|
6705
|
+
TabLogicPlugin.prototype.deactivate = function () {
|
|
6706
|
+
this.disposeObjs();
|
|
6707
|
+
return true;
|
|
6708
|
+
};
|
|
6709
|
+
TabLogicPlugin.prototype.dispose = function () {
|
|
6710
|
+
this.disposeObjs();
|
|
6711
|
+
};
|
|
6712
|
+
TabLogicPlugin.prototype.disposeObjs = function () {
|
|
6638
6713
|
this.filterActionTypeAction.title = undefined;
|
|
6639
6714
|
this.filterQuestionAction.title = undefined;
|
|
6640
6715
|
if (this.model) {
|
|
@@ -6644,7 +6719,6 @@ var TabLogicPlugin = /** @class */ (function () {
|
|
|
6644
6719
|
this.filterQuestionAction.visible = false;
|
|
6645
6720
|
this.filterActionTypeAction.visible = false;
|
|
6646
6721
|
this.fastEntryAction && (this.fastEntryAction.visible = false);
|
|
6647
|
-
return true;
|
|
6648
6722
|
};
|
|
6649
6723
|
TabLogicPlugin.prototype.createActions = function () {
|
|
6650
6724
|
var _this = this;
|
|
@@ -7627,6 +7701,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7627
7701
|
|
|
7628
7702
|
|
|
7629
7703
|
|
|
7704
|
+
|
|
7630
7705
|
__webpack_require__(/*! ./logic-ui.scss */ "./src/components/tabs/logic-ui.scss");
|
|
7631
7706
|
|
|
7632
7707
|
var SurveyLogicUI = /** @class */ (function (_super) {
|
|
@@ -7685,7 +7760,8 @@ var SurveyLogicUI = /** @class */ (function (_super) {
|
|
|
7685
7760
|
if (this.items.length == 0 || !this.items[this.items.length - 1].isNew) {
|
|
7686
7761
|
this.addNew();
|
|
7687
7762
|
}
|
|
7688
|
-
this.matrixItems.visibleRows
|
|
7763
|
+
var rows = this.matrixItems.visibleRows;
|
|
7764
|
+
rows[rows.length - 1].showDetailPanel();
|
|
7689
7765
|
};
|
|
7690
7766
|
SurveyLogicUI.prototype.toggleExpressionEditorIsFastEntry = function () {
|
|
7691
7767
|
this.expressionEditorIsFastEntry = !this.expressionEditorIsFastEntry;
|
|
@@ -7698,9 +7774,106 @@ var SurveyLogicUI = /** @class */ (function (_super) {
|
|
|
7698
7774
|
this.editableItem.isModified = !!this.itemEditor && !!this.expressionEditor && (this.itemEditor.isModified || this.expressionEditor.isModified(this.editableItem.expression));
|
|
7699
7775
|
}
|
|
7700
7776
|
};
|
|
7701
|
-
SurveyLogicUI.prototype.
|
|
7777
|
+
SurveyLogicUI.prototype.getUnsavedItems = function () {
|
|
7778
|
+
var res = [];
|
|
7779
|
+
for (var i = 0; i < this.visibleItems.length; i++) {
|
|
7780
|
+
var item = this.visibleItems[i];
|
|
7781
|
+
var itemUI = this.findLogicItemUI(item);
|
|
7782
|
+
if (!itemUI)
|
|
7783
|
+
continue;
|
|
7784
|
+
if (item.isNew) {
|
|
7785
|
+
if (!itemUI.expressionEditor.isEmpty() || !itemUI.itemEditor.isEmpty()) {
|
|
7786
|
+
res.push(item);
|
|
7787
|
+
}
|
|
7788
|
+
}
|
|
7789
|
+
else {
|
|
7790
|
+
if (item.isModified) {
|
|
7791
|
+
res.push(item);
|
|
7792
|
+
}
|
|
7793
|
+
}
|
|
7794
|
+
}
|
|
7795
|
+
return res;
|
|
7796
|
+
};
|
|
7797
|
+
SurveyLogicUI.prototype.getErroredItem = function (items) {
|
|
7798
|
+
for (var i = 0; i < items.length; i++) {
|
|
7799
|
+
var item = items[i];
|
|
7800
|
+
if (this.isErroredItem(item))
|
|
7801
|
+
return item;
|
|
7802
|
+
}
|
|
7803
|
+
return null;
|
|
7804
|
+
};
|
|
7805
|
+
SurveyLogicUI.prototype.isErroredItem = function (item) {
|
|
7806
|
+
var itemUI = this.findLogicItemUI(item);
|
|
7807
|
+
if (!itemUI)
|
|
7808
|
+
return false;
|
|
7809
|
+
return itemUI.expressionEditor.hasErrors() || itemUI.itemEditor.hasErrors();
|
|
7810
|
+
};
|
|
7811
|
+
SurveyLogicUI.prototype.showErroredItem = function (item) {
|
|
7812
|
+
var index = this.visibleItems.indexOf(item);
|
|
7813
|
+
var rows = this.matrixItems.visibleRows;
|
|
7814
|
+
var row = index > -1 && index < rows.length ? rows[index] : null;
|
|
7815
|
+
if (!!row) {
|
|
7816
|
+
rows.forEach(function (r) { return r.hideDetailPanel(); });
|
|
7817
|
+
this.mode = "view";
|
|
7818
|
+
row.showDetailPanel();
|
|
7819
|
+
this.hasErrorInUI();
|
|
7820
|
+
}
|
|
7821
|
+
};
|
|
7822
|
+
SurveyLogicUI.prototype.saveItem = function (item) {
|
|
7823
|
+
if (this.isErroredItem(item))
|
|
7824
|
+
return;
|
|
7825
|
+
!!this.options && this.options.startUndoRedoTransaction();
|
|
7826
|
+
this.doItemApply(item);
|
|
7827
|
+
!!this.options && this.options.stopUndoRedoTransaction();
|
|
7828
|
+
};
|
|
7829
|
+
SurveyLogicUI.prototype.tryLeaveUI = function (resultFunc) {
|
|
7830
|
+
var _this = this;
|
|
7702
7831
|
this.updateEditableItemIsModifiedState();
|
|
7703
|
-
|
|
7832
|
+
var unsavedItems = this.getUnsavedItems();
|
|
7833
|
+
if (unsavedItems.length === 0) {
|
|
7834
|
+
!!resultFunc && resultFunc(true);
|
|
7835
|
+
return true;
|
|
7836
|
+
}
|
|
7837
|
+
var erroredItem = this.getErroredItem(unsavedItems);
|
|
7838
|
+
var onLeavingFunc = function () {
|
|
7839
|
+
unsavedItems.forEach(function (item) { return _this.saveItem(item); });
|
|
7840
|
+
!!resultFunc && resultFunc(true);
|
|
7841
|
+
};
|
|
7842
|
+
if (!erroredItem) {
|
|
7843
|
+
onLeavingFunc();
|
|
7844
|
+
return true;
|
|
7845
|
+
}
|
|
7846
|
+
var onStayingFunc = function () {
|
|
7847
|
+
_this.showErroredItem(erroredItem);
|
|
7848
|
+
!!resultFunc && resultFunc(false);
|
|
7849
|
+
};
|
|
7850
|
+
if (this.confirmLeavingOnError(onLeavingFunc, onStayingFunc)) {
|
|
7851
|
+
return undefined;
|
|
7852
|
+
}
|
|
7853
|
+
onStayingFunc();
|
|
7854
|
+
return false;
|
|
7855
|
+
};
|
|
7856
|
+
SurveyLogicUI.prototype.confirmLeavingOnError = function (onLeaving, onStaying) {
|
|
7857
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showModal)
|
|
7858
|
+
return false;
|
|
7859
|
+
var locStr = new survey_core__WEBPACK_IMPORTED_MODULE_1__["LocalizableString"](undefined);
|
|
7860
|
+
locStr.text = this.getLocString("ed.lg.uncompletedRule_text");
|
|
7861
|
+
var popupModel = survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showModal("sv-string-viewer", { locStr: locStr, locString: locStr, model: locStr }, //TODO fix in library
|
|
7862
|
+
function () {
|
|
7863
|
+
onLeaving();
|
|
7864
|
+
return true;
|
|
7865
|
+
}, function () {
|
|
7866
|
+
onStaying();
|
|
7867
|
+
return true;
|
|
7868
|
+
}, undefined, this.getLocString("ed.lg.uncompletedRule_title"), "popup");
|
|
7869
|
+
var toolbar = popupModel.footerToolbar;
|
|
7870
|
+
var applyBtn = toolbar.getActionById("apply");
|
|
7871
|
+
var cancelBtn = toolbar.getActionById("cancel");
|
|
7872
|
+
cancelBtn.title = this.getLocString("ed.lg.uncompletedRule_cancel");
|
|
7873
|
+
applyBtn.title = this.getLocString("ed.lg.uncompletedRule_apply");
|
|
7874
|
+
applyBtn.innerCss += " svc-logic-tab__leave-apply-button";
|
|
7875
|
+
popupModel.width = "800px";
|
|
7876
|
+
return true;
|
|
7704
7877
|
};
|
|
7705
7878
|
SurveyLogicUI.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
|
|
7706
7879
|
_super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
|
|
@@ -7744,7 +7917,7 @@ var SurveyLogicUI = /** @class */ (function (_super) {
|
|
|
7744
7917
|
item.itemEditor.editSurvey.mode = this.readOnly ? "display" : "edit";
|
|
7745
7918
|
};
|
|
7746
7919
|
SurveyLogicUI.prototype.getLogicItemUI = function (item) {
|
|
7747
|
-
var res = this.
|
|
7920
|
+
var res = this.findLogicItemUI(item);
|
|
7748
7921
|
if (!res) {
|
|
7749
7922
|
var context = item.getContext();
|
|
7750
7923
|
res = { expressionEditor: this.createExpressionPropertyEditor(), itemEditor: new _logic_item_editor__WEBPACK_IMPORTED_MODULE_4__["LogicItemEditor"](item, this.options) };
|
|
@@ -7759,6 +7932,9 @@ var SurveyLogicUI = /** @class */ (function (_super) {
|
|
|
7759
7932
|
}
|
|
7760
7933
|
return res;
|
|
7761
7934
|
};
|
|
7935
|
+
SurveyLogicUI.prototype.findLogicItemUI = function (item) {
|
|
7936
|
+
return this.itemUIHash[item.id];
|
|
7937
|
+
};
|
|
7762
7938
|
Object.defineProperty(SurveyLogicUI.prototype, "expressionSurvey", {
|
|
7763
7939
|
get: function () {
|
|
7764
7940
|
return this.expressionEditor.editSurvey;
|
|
@@ -7809,14 +7985,7 @@ var SurveyLogicUI = /** @class */ (function (_super) {
|
|
|
7809
7985
|
this.itemEditorValue = null;
|
|
7810
7986
|
};
|
|
7811
7987
|
SurveyLogicUI.prototype.onEditableItemApply = function () {
|
|
7812
|
-
this.
|
|
7813
|
-
this.itemEditor.apply();
|
|
7814
|
-
this.editableItem.apply(this.expressionEditor.text);
|
|
7815
|
-
if (this.editableItem.actions.length != this.itemEditor.panels.length) {
|
|
7816
|
-
this.itemEditor.setEditableItem(this.editableItem);
|
|
7817
|
-
}
|
|
7818
|
-
this.itemEditor.resetModified();
|
|
7819
|
-
this.editableItem.isNew = false;
|
|
7988
|
+
this.doItemApply(this.editableItem);
|
|
7820
7989
|
if (!this.editableItem.isSuitable(this.questionFilter, this.actionTypeFilter)) {
|
|
7821
7990
|
this.questionFilter = "";
|
|
7822
7991
|
this.actionTypeFilter = "";
|
|
@@ -7825,6 +7994,19 @@ var SurveyLogicUI = /** @class */ (function (_super) {
|
|
|
7825
7994
|
this.updateItemsSurveyData();
|
|
7826
7995
|
}
|
|
7827
7996
|
};
|
|
7997
|
+
SurveyLogicUI.prototype.doItemApply = function (item) {
|
|
7998
|
+
var itemUI = this.findLogicItemUI(item);
|
|
7999
|
+
if (!itemUI)
|
|
8000
|
+
return;
|
|
8001
|
+
itemUI.expressionEditor.apply();
|
|
8002
|
+
itemUI.itemEditor.apply();
|
|
8003
|
+
item.apply(itemUI.expressionEditor.text);
|
|
8004
|
+
if (item.actions.length != itemUI.itemEditor.panels.length) {
|
|
8005
|
+
itemUI.itemEditor.setEditableItem(item);
|
|
8006
|
+
}
|
|
8007
|
+
itemUI.itemEditor.resetModified();
|
|
8008
|
+
item.isNew = false;
|
|
8009
|
+
};
|
|
7828
8010
|
SurveyLogicUI.prototype.hasErrorInUI = function () {
|
|
7829
8011
|
var creator = this.survey.creator;
|
|
7830
8012
|
if (this.expressionEditor.hasErrorInUI()) {
|
|
@@ -8303,7 +8485,7 @@ var SurveyLogic = /** @class */ (function (_super) {
|
|
|
8303
8485
|
};
|
|
8304
8486
|
SurveyLogic.prototype.hasError = function () {
|
|
8305
8487
|
if (!this.editableItem)
|
|
8306
|
-
return
|
|
8488
|
+
return false;
|
|
8307
8489
|
if (this.hasErrorInUI())
|
|
8308
8490
|
return true;
|
|
8309
8491
|
var exp = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ExpressionRunner"](this.getExpressionText());
|
|
@@ -11528,6 +11710,7 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
11528
11710
|
*- options.collection a collection where a target item is located. It is can be Columns in Matrices or Choices in Dropdown question and so on.
|
|
11529
11711
|
*- options.item a target collection item
|
|
11530
11712
|
*- options.allowDelete a boolean value. It is `true` by default. Set it false to prevent an item from being removed from the collection
|
|
11713
|
+
*- options.allowAdd a boolean value. It is `true` by default. Set it false to prevent an item from being added to the collection
|
|
11531
11714
|
*- options.allowEdit a boolean value. It is `true` by default. Set it `false` to disable editing.
|
|
11532
11715
|
*/
|
|
11533
11716
|
_this.onCollectionItemAllowOperations = new CreatorEvent();
|
|
@@ -12459,8 +12642,19 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
12459
12642
|
* @param viewName name of new active view (tab). The following values are available: "designer", "editor", "test", "embed", "logic" and "translation".
|
|
12460
12643
|
*/
|
|
12461
12644
|
CreatorBase.prototype.makeNewViewActive = function (viewName) {
|
|
12645
|
+
var _this = this;
|
|
12462
12646
|
if (viewName == this.viewType)
|
|
12463
12647
|
return false;
|
|
12648
|
+
var plugin = this.currentPlugin;
|
|
12649
|
+
if (!!plugin && !!plugin.canDeactivateAsync) {
|
|
12650
|
+
plugin.canDeactivateAsync(function () {
|
|
12651
|
+
_this.switchViewType(viewName);
|
|
12652
|
+
});
|
|
12653
|
+
return undefined;
|
|
12654
|
+
}
|
|
12655
|
+
return this.switchViewType(viewName);
|
|
12656
|
+
};
|
|
12657
|
+
CreatorBase.prototype.switchViewType = function (viewName) {
|
|
12464
12658
|
var chaningOptions = { tabName: viewName, allow: true };
|
|
12465
12659
|
this.onActiveTabChanging.fire(this, chaningOptions);
|
|
12466
12660
|
if (!chaningOptions.allow)
|
|
@@ -12802,7 +12996,7 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
12802
12996
|
var allowQuestionOperations = this.getElementAllowOperations(parentObj);
|
|
12803
12997
|
if (allowQuestionOperations.allowEdit === false)
|
|
12804
12998
|
return false;
|
|
12805
|
-
var options = { allowDelete: true, allowEdit: allowEdit };
|
|
12999
|
+
var options = { allowDelete: true, allowEdit: allowEdit, allowAdd: true };
|
|
12806
13000
|
this.onCollectionItemAllowingCallback(parentObj, property, parentObj.getPropertyValue(parentProperty === null || parentProperty === void 0 ? void 0 : parentProperty.name), obj, options);
|
|
12807
13001
|
if (options.allowEdit === false) {
|
|
12808
13002
|
return false;
|
|
@@ -14021,11 +14215,13 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14021
14215
|
collection: collection,
|
|
14022
14216
|
item: item,
|
|
14023
14217
|
allowEdit: itemOptions.allowEdit,
|
|
14024
|
-
allowDelete: itemOptions.allowDelete
|
|
14218
|
+
allowDelete: itemOptions.allowDelete,
|
|
14219
|
+
allowAdd: itemOptions.allowAdd
|
|
14025
14220
|
};
|
|
14026
14221
|
this.onCollectionItemAllowOperations.fire(this, options);
|
|
14027
14222
|
itemOptions.allowEdit = options.allowEdit;
|
|
14028
14223
|
itemOptions.allowDelete = options.allowDelete;
|
|
14224
|
+
itemOptions.allowAdd = options.allowAdd;
|
|
14029
14225
|
};
|
|
14030
14226
|
CreatorBase.prototype.onItemValueAddedCallback = function (obj, propertyName, itemValue, itemValues) {
|
|
14031
14227
|
var options = {
|
|
@@ -15014,6 +15210,249 @@ survey_core__WEBPACK_IMPORTED_MODULE_0__["StylesManager"].applyTheme("defaultV2"
|
|
|
15014
15210
|
|
|
15015
15211
|
// extracted by mini-css-extract-plugin
|
|
15016
15212
|
|
|
15213
|
+
/***/ }),
|
|
15214
|
+
|
|
15215
|
+
/***/ "./src/custom-questions/question-color.ts":
|
|
15216
|
+
/*!************************************************!*\
|
|
15217
|
+
!*** ./src/custom-questions/question-color.ts ***!
|
|
15218
|
+
\************************************************/
|
|
15219
|
+
/*! exports provided: QuestionColorModel */
|
|
15220
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15221
|
+
|
|
15222
|
+
"use strict";
|
|
15223
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15224
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionColorModel", function() { return QuestionColorModel; });
|
|
15225
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
15226
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
15227
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
15228
|
+
|
|
15229
|
+
|
|
15230
|
+
var QuestionColorModel = /** @class */ (function (_super) {
|
|
15231
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(QuestionColorModel, _super);
|
|
15232
|
+
function QuestionColorModel() {
|
|
15233
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
15234
|
+
}
|
|
15235
|
+
QuestionColorModel.prototype.getCorrectedValue = function (newValue) {
|
|
15236
|
+
newValue = newValue !== null && newValue !== void 0 ? newValue : "";
|
|
15237
|
+
newValue = (newValue.match(/#(\d|\w){1,6}/) || ["#000000"])[0];
|
|
15238
|
+
if (newValue.length === 4) {
|
|
15239
|
+
for (var i = 1; i < 4; i++) {
|
|
15240
|
+
newValue += newValue[i];
|
|
15241
|
+
}
|
|
15242
|
+
}
|
|
15243
|
+
if (newValue.length < 7) {
|
|
15244
|
+
var length_1 = newValue.length;
|
|
15245
|
+
for (var i = 0; i < 7 - length_1; i++) {
|
|
15246
|
+
newValue += "0";
|
|
15247
|
+
}
|
|
15248
|
+
}
|
|
15249
|
+
return newValue.toUpperCase();
|
|
15250
|
+
};
|
|
15251
|
+
QuestionColorModel.prototype.setNewValue = function (newValue) {
|
|
15252
|
+
this._renderedValue = "";
|
|
15253
|
+
_super.prototype.setNewValue.call(this, this.getCorrectedValue(newValue));
|
|
15254
|
+
this._renderedValue = this.value;
|
|
15255
|
+
};
|
|
15256
|
+
QuestionColorModel.prototype.onBeforeInput = function (event) {
|
|
15257
|
+
if (!!event.data && !/[\d\w#]/.test(event.data)) {
|
|
15258
|
+
event.preventDefault();
|
|
15259
|
+
}
|
|
15260
|
+
};
|
|
15261
|
+
QuestionColorModel.prototype.onColorInputChange = function (event) {
|
|
15262
|
+
this.value = event.target.value;
|
|
15263
|
+
};
|
|
15264
|
+
QuestionColorModel.prototype.getType = function () {
|
|
15265
|
+
return "color";
|
|
15266
|
+
};
|
|
15267
|
+
Object.defineProperty(QuestionColorModel.prototype, "renderedValue", {
|
|
15268
|
+
get: function () {
|
|
15269
|
+
var _a, _b;
|
|
15270
|
+
return (_b = (_a = this._renderedValue) !== null && _a !== void 0 ? _a : this.value) !== null && _b !== void 0 ? _b : "#000000";
|
|
15271
|
+
},
|
|
15272
|
+
enumerable: false,
|
|
15273
|
+
configurable: true
|
|
15274
|
+
});
|
|
15275
|
+
QuestionColorModel.prototype.getSwatchStyle = function () {
|
|
15276
|
+
return { backgroundColor: this.renderedValue };
|
|
15277
|
+
};
|
|
15278
|
+
Object.defineProperty(QuestionColorModel.prototype, "isInputTextUpdate", {
|
|
15279
|
+
get: function () {
|
|
15280
|
+
return false;
|
|
15281
|
+
},
|
|
15282
|
+
enumerable: false,
|
|
15283
|
+
configurable: true
|
|
15284
|
+
});
|
|
15285
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
15286
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
15287
|
+
], QuestionColorModel.prototype, "unit", void 0);
|
|
15288
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
15289
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({})
|
|
15290
|
+
], QuestionColorModel.prototype, "_renderedValue", void 0);
|
|
15291
|
+
return QuestionColorModel;
|
|
15292
|
+
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionTextModel"]));
|
|
15293
|
+
|
|
15294
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("color", [
|
|
15295
|
+
"unit"
|
|
15296
|
+
], function () { return new QuestionColorModel(""); }, "text");
|
|
15297
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionFactory"].Instance.registerQuestion("color", function (name) {
|
|
15298
|
+
return new QuestionColorModel(name);
|
|
15299
|
+
});
|
|
15300
|
+
|
|
15301
|
+
|
|
15302
|
+
/***/ }),
|
|
15303
|
+
|
|
15304
|
+
/***/ "./src/custom-questions/question-spin-editor.ts":
|
|
15305
|
+
/*!******************************************************!*\
|
|
15306
|
+
!*** ./src/custom-questions/question-spin-editor.ts ***!
|
|
15307
|
+
\******************************************************/
|
|
15308
|
+
/*! exports provided: QuestionSpinEditorModel */
|
|
15309
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15310
|
+
|
|
15311
|
+
"use strict";
|
|
15312
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15313
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionSpinEditorModel", function() { return QuestionSpinEditorModel; });
|
|
15314
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
15315
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
15316
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
15317
|
+
|
|
15318
|
+
|
|
15319
|
+
var QuestionSpinEditorModel = /** @class */ (function (_super) {
|
|
15320
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(QuestionSpinEditorModel, _super);
|
|
15321
|
+
function QuestionSpinEditorModel() {
|
|
15322
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
15323
|
+
_this._showUnitsInEditor = true;
|
|
15324
|
+
_this.onUpButtonMouseDown = function () {
|
|
15325
|
+
_this.increase();
|
|
15326
|
+
_this.increaseTimer = setTimeout(_this.onUpButtonMouseDown, 200);
|
|
15327
|
+
};
|
|
15328
|
+
_this.onDownButtonMouseDown = function () {
|
|
15329
|
+
_this.decrease();
|
|
15330
|
+
_this.decreaseTimer = setTimeout(_this.onDownButtonMouseDown, 200);
|
|
15331
|
+
};
|
|
15332
|
+
_this.onButtonMouseUp = function () {
|
|
15333
|
+
clearTimeout(_this.decreaseTimer);
|
|
15334
|
+
clearTimeout(_this.increaseTimer);
|
|
15335
|
+
};
|
|
15336
|
+
_this.onKeyDown = function (event) {
|
|
15337
|
+
switch (event.key) {
|
|
15338
|
+
case "ArrowUp":
|
|
15339
|
+
_this.increase();
|
|
15340
|
+
event.stopPropagation();
|
|
15341
|
+
event.preventDefault();
|
|
15342
|
+
break;
|
|
15343
|
+
case "ArrowDown":
|
|
15344
|
+
_this.decrease();
|
|
15345
|
+
event.stopPropagation();
|
|
15346
|
+
event.preventDefault();
|
|
15347
|
+
break;
|
|
15348
|
+
}
|
|
15349
|
+
};
|
|
15350
|
+
_this.onInputKeyDown = function (event) {
|
|
15351
|
+
if (event.key == "ArrowUp" || event.key == "ArrowDown")
|
|
15352
|
+
_this["updateValueOnEvent"](event);
|
|
15353
|
+
};
|
|
15354
|
+
_this.onFocus = function (event) {
|
|
15355
|
+
_this._showUnitsInEditor = false;
|
|
15356
|
+
};
|
|
15357
|
+
_this.onBlur = function (event) {
|
|
15358
|
+
_this._showUnitsInEditor = true;
|
|
15359
|
+
if (event.target.tagName == "INPUT") {
|
|
15360
|
+
_this["updateValueOnEvent"](event);
|
|
15361
|
+
}
|
|
15362
|
+
};
|
|
15363
|
+
return _this;
|
|
15364
|
+
}
|
|
15365
|
+
QuestionSpinEditorModel.prototype.parseValue = function (val) {
|
|
15366
|
+
var value = parseFloat(val.toString());
|
|
15367
|
+
var unit = val.toString().replace(/[^A-Za-z]/g, "");
|
|
15368
|
+
return { value: value, unit: unit };
|
|
15369
|
+
};
|
|
15370
|
+
QuestionSpinEditorModel.prototype.changeValue = function (increase) {
|
|
15371
|
+
var parsedValue = this.parseValue(this.renderedValue);
|
|
15372
|
+
if (increase) {
|
|
15373
|
+
parsedValue.value++;
|
|
15374
|
+
}
|
|
15375
|
+
else {
|
|
15376
|
+
parsedValue.value--;
|
|
15377
|
+
}
|
|
15378
|
+
this.value = parsedValue.value;
|
|
15379
|
+
};
|
|
15380
|
+
Object.defineProperty(QuestionSpinEditorModel.prototype, "showUnitsInEditor", {
|
|
15381
|
+
get: function () {
|
|
15382
|
+
return !!this.unit && this._showUnitsInEditor;
|
|
15383
|
+
},
|
|
15384
|
+
enumerable: false,
|
|
15385
|
+
configurable: true
|
|
15386
|
+
});
|
|
15387
|
+
QuestionSpinEditorModel.prototype.correctValue = function (newValue) {
|
|
15388
|
+
var renderedMax = Number(this.renderedMax);
|
|
15389
|
+
var renderedMin = Number(this.renderedMin);
|
|
15390
|
+
newValue = typeof newValue === "string" ? parseFloat(newValue) : newValue;
|
|
15391
|
+
if (isNaN(newValue)) {
|
|
15392
|
+
newValue = isNaN(renderedMin) ? 0 : renderedMin;
|
|
15393
|
+
}
|
|
15394
|
+
else if (newValue > renderedMax) {
|
|
15395
|
+
newValue = renderedMax;
|
|
15396
|
+
}
|
|
15397
|
+
else if (newValue < renderedMin) {
|
|
15398
|
+
newValue = renderedMin;
|
|
15399
|
+
}
|
|
15400
|
+
newValue = Math.round(newValue * 1000) / 1000;
|
|
15401
|
+
return newValue;
|
|
15402
|
+
};
|
|
15403
|
+
QuestionSpinEditorModel.prototype.setNewValue = function (newValue) {
|
|
15404
|
+
_super.prototype.setNewValue.call(this, this.correctValue(newValue));
|
|
15405
|
+
};
|
|
15406
|
+
Object.defineProperty(QuestionSpinEditorModel.prototype, "renderedValue", {
|
|
15407
|
+
get: function () {
|
|
15408
|
+
var _a, _b;
|
|
15409
|
+
var renderedValue = ((_b = (_a = this.value) !== null && _a !== void 0 ? _a : this.renderedMin) !== null && _b !== void 0 ? _b : 0).toString();
|
|
15410
|
+
if (this.showUnitsInEditor) {
|
|
15411
|
+
renderedValue += this.unit;
|
|
15412
|
+
}
|
|
15413
|
+
return renderedValue;
|
|
15414
|
+
},
|
|
15415
|
+
enumerable: false,
|
|
15416
|
+
configurable: true
|
|
15417
|
+
});
|
|
15418
|
+
QuestionSpinEditorModel.prototype.increase = function () {
|
|
15419
|
+
this.changeValue(true);
|
|
15420
|
+
};
|
|
15421
|
+
QuestionSpinEditorModel.prototype.decrease = function () {
|
|
15422
|
+
this.changeValue(false);
|
|
15423
|
+
};
|
|
15424
|
+
QuestionSpinEditorModel.prototype.onBeforeInput = function (event) {
|
|
15425
|
+
if (!!event.data && !/[\d.]/.test(event.data)) {
|
|
15426
|
+
event.preventDefault();
|
|
15427
|
+
}
|
|
15428
|
+
};
|
|
15429
|
+
QuestionSpinEditorModel.prototype.getType = function () {
|
|
15430
|
+
return "spinedit";
|
|
15431
|
+
};
|
|
15432
|
+
Object.defineProperty(QuestionSpinEditorModel.prototype, "isInputTextUpdate", {
|
|
15433
|
+
get: function () {
|
|
15434
|
+
return false;
|
|
15435
|
+
},
|
|
15436
|
+
enumerable: false,
|
|
15437
|
+
configurable: true
|
|
15438
|
+
});
|
|
15439
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
15440
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
15441
|
+
], QuestionSpinEditorModel.prototype, "unit", void 0);
|
|
15442
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
15443
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
15444
|
+
], QuestionSpinEditorModel.prototype, "_showUnitsInEditor", void 0);
|
|
15445
|
+
return QuestionSpinEditorModel;
|
|
15446
|
+
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionTextModel"]));
|
|
15447
|
+
|
|
15448
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("spinedit", [
|
|
15449
|
+
"unit"
|
|
15450
|
+
], function () { return new QuestionSpinEditorModel(""); }, "text");
|
|
15451
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionFactory"].Instance.registerQuestion("spinedit", function (name) {
|
|
15452
|
+
return new QuestionSpinEditorModel(name);
|
|
15453
|
+
});
|
|
15454
|
+
|
|
15455
|
+
|
|
15017
15456
|
/***/ }),
|
|
15018
15457
|
|
|
15019
15458
|
/***/ "./src/editable-object.ts":
|
|
@@ -15518,7 +15957,7 @@ var __spreadArray = function (to, from) {
|
|
|
15518
15957
|
/*!******************************!*\
|
|
15519
15958
|
!*** ./src/entries/index.ts ***!
|
|
15520
15959
|
\******************************/
|
|
15521
|
-
/*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
|
|
15960
|
+
/*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
|
|
15522
15961
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
15523
15962
|
|
|
15524
15963
|
"use strict";
|
|
@@ -15720,207 +16159,213 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15720
16159
|
/* harmony import */ var _json5__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../json5 */ "./src/json5.ts");
|
|
15721
16160
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyJSON5", function() { return _json5__WEBPACK_IMPORTED_MODULE_37__["SurveyJSON5"]; });
|
|
15722
16161
|
|
|
15723
|
-
/* harmony import */ var
|
|
15724
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
16162
|
+
/* harmony import */ var _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../custom-questions/question-spin-editor */ "./src/custom-questions/question-spin-editor.ts");
|
|
16163
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionSpinEditorModel", function() { return _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_38__["QuestionSpinEditorModel"]; });
|
|
16164
|
+
|
|
16165
|
+
/* harmony import */ var _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../custom-questions/question-color */ "./src/custom-questions/question-color.ts");
|
|
16166
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionColorModel", function() { return _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_39__["QuestionColorModel"]; });
|
|
16167
|
+
|
|
16168
|
+
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../property-grid */ "./src/property-grid/index.ts");
|
|
16169
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSurveyJSONForPropertyGrid", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["setSurveyJSONForPropertyGrid"]; });
|
|
15725
16170
|
|
|
15726
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyEditorSetupValue", function() { return
|
|
16171
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyEditorSetupValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyEditorSetupValue"]; });
|
|
15727
16172
|
|
|
15728
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return
|
|
16173
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorCollection"]; });
|
|
15729
16174
|
|
|
15730
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTitleActionsCreator", function() { return
|
|
16175
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTitleActionsCreator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridTitleActionsCreator"]; });
|
|
15731
16176
|
|
|
15732
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyJSONGenerator", function() { return
|
|
16177
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyJSONGenerator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyJSONGenerator"]; });
|
|
15733
16178
|
|
|
15734
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridModel", function() { return
|
|
16179
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridModel", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridModel"]; });
|
|
15735
16180
|
|
|
15736
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditor", function() { return
|
|
16181
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditor"]; });
|
|
15737
16182
|
|
|
15738
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return
|
|
16183
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorBoolean"]; });
|
|
15739
16184
|
|
|
15740
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return
|
|
16185
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorStringBase"]; });
|
|
15741
16186
|
|
|
15742
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return
|
|
16187
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorString"]; });
|
|
15743
16188
|
|
|
15744
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return
|
|
16189
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorNumber"]; });
|
|
15745
16190
|
|
|
15746
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return
|
|
16191
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorImageSize"]; });
|
|
15747
16192
|
|
|
15748
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return
|
|
16193
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorText"]; });
|
|
15749
16194
|
|
|
15750
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorHtml", function() { return
|
|
16195
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorHtml", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorHtml"]; });
|
|
15751
16196
|
|
|
15752
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorColor", function() { return
|
|
16197
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorColor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorColor"]; });
|
|
15753
16198
|
|
|
15754
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringArray", function() { return
|
|
16199
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringArray", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorStringArray"]; });
|
|
15755
16200
|
|
|
15756
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorDropdown", function() { return
|
|
16201
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorDropdown", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorDropdown"]; });
|
|
15757
16202
|
|
|
15758
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorSet", function() { return
|
|
16203
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorSet", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorSet"]; });
|
|
15759
16204
|
|
|
15760
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorPage", function() { return
|
|
16205
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorPage", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorPage"]; });
|
|
15761
16206
|
|
|
15762
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestion", function() { return
|
|
16207
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestion", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorQuestion"]; });
|
|
15763
16208
|
|
|
15764
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionSelectBase", function() { return
|
|
16209
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionSelectBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorQuestionSelectBase"]; });
|
|
15765
16210
|
|
|
15766
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionValue", function() { return
|
|
16211
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_40__["PropertyGridEditorQuestionValue"]; });
|
|
15767
16212
|
|
|
15768
|
-
/* harmony import */ var
|
|
15769
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return
|
|
16213
|
+
/* harmony import */ var _property_grid_condition__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../property-grid/condition */ "./src/property-grid/condition.ts");
|
|
16214
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_41__["PropertyGridEditorExpression"]; });
|
|
15770
16215
|
|
|
15771
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCondition", function() { return
|
|
16216
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCondition", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_41__["PropertyGridEditorCondition"]; });
|
|
15772
16217
|
|
|
15773
|
-
/* harmony import */ var
|
|
15774
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return
|
|
16218
|
+
/* harmony import */ var _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../property-grid/matrices */ "./src/property-grid/matrices.ts");
|
|
16219
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrix"]; });
|
|
15775
16220
|
|
|
15776
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixItemValues", function() { return
|
|
16221
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixItemValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixItemValues"]; });
|
|
15777
16222
|
|
|
15778
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixColumns", function() { return
|
|
16223
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixColumns", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixColumns"]; });
|
|
15779
16224
|
|
|
15780
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixPages", function() { return
|
|
16225
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixPages", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixPages"]; });
|
|
15781
16226
|
|
|
15782
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixCalculatedValues", function() { return
|
|
16227
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixCalculatedValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixCalculatedValues"]; });
|
|
15783
16228
|
|
|
15784
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixHtmlConditions", function() { return
|
|
16229
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixHtmlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixHtmlConditions"]; });
|
|
15785
16230
|
|
|
15786
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixUrlConditions", function() { return
|
|
16231
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixUrlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixUrlConditions"]; });
|
|
15787
16232
|
|
|
15788
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMutlipleTextItems", function() { return
|
|
16233
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMutlipleTextItems", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixMutlipleTextItems"]; });
|
|
15789
16234
|
|
|
15790
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMultipleTypes", function() { return
|
|
16235
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMultipleTypes", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixMultipleTypes"]; });
|
|
15791
16236
|
|
|
15792
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixValidators", function() { return
|
|
16237
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixValidators", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixValidators"]; });
|
|
15793
16238
|
|
|
15794
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixTriggers", function() { return
|
|
16239
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixTriggers", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorMatrixTriggers"]; });
|
|
15795
16240
|
|
|
15796
|
-
/* harmony import */ var
|
|
15797
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return
|
|
16241
|
+
/* harmony import */ var _property_grid_bindings__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../property-grid/bindings */ "./src/property-grid/bindings.ts");
|
|
16242
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return _property_grid_bindings__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorBindings"]; });
|
|
15798
16243
|
|
|
15799
|
-
/* harmony import */ var
|
|
15800
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridViewModel", function() { return
|
|
16244
|
+
/* harmony import */ var _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../property-grid/property-grid-view-model */ "./src/property-grid/property-grid-view-model.ts");
|
|
16245
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridViewModel", function() { return _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_44__["PropertyGridViewModel"]; });
|
|
15801
16246
|
|
|
15802
|
-
/* harmony import */ var
|
|
15803
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorItem", function() { return
|
|
16247
|
+
/* harmony import */ var _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../property-grid/object-selector */ "./src/property-grid/object-selector.ts");
|
|
16248
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorItem", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_45__["ObjectSelectorItem"]; });
|
|
15804
16249
|
|
|
15805
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelector", function() { return
|
|
16250
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelector", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_45__["ObjectSelector"]; });
|
|
15806
16251
|
|
|
15807
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorModel", function() { return
|
|
16252
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorModel", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_45__["ObjectSelectorModel"]; });
|
|
15808
16253
|
|
|
15809
|
-
/* harmony import */ var
|
|
15810
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return
|
|
16254
|
+
/* harmony import */ var _property_grid_restfull__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../property-grid/restfull */ "./src/property-grid/restfull.ts");
|
|
16255
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return _property_grid_restfull__WEBPACK_IMPORTED_MODULE_46__["PropertyGridEditorQuestionRestfull"]; });
|
|
15811
16256
|
|
|
15812
|
-
/* harmony import */ var
|
|
15813
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return
|
|
16257
|
+
/* harmony import */ var _property_grid_values__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../property-grid/values */ "./src/property-grid/values.ts");
|
|
16258
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_47__["PropertyGridValueEditorBase"]; });
|
|
15814
16259
|
|
|
15815
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridCellsEditor", function() { return
|
|
16260
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridCellsEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_47__["PropertyGridCellsEditor"]; });
|
|
15816
16261
|
|
|
15817
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditor", function() { return
|
|
16262
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_47__["PropertyGridValueEditor"]; });
|
|
15818
16263
|
|
|
15819
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridRowValueEditor", function() { return
|
|
16264
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridRowValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_47__["PropertyGridRowValueEditor"]; });
|
|
15820
16265
|
|
|
15821
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridPanelValueEditor", function() { return
|
|
16266
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridPanelValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_47__["PropertyGridPanelValueEditor"]; });
|
|
15822
16267
|
|
|
15823
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueEditor", function() { return
|
|
16268
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_47__["PropertyGridTriggerValueEditor"]; });
|
|
15824
16269
|
|
|
15825
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueInLogicEditor", function() { return
|
|
16270
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueInLogicEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_47__["PropertyGridTriggerValueInLogicEditor"]; });
|
|
15826
16271
|
|
|
15827
|
-
/* harmony import */ var
|
|
15828
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyGridCss", function() { return
|
|
16272
|
+
/* harmony import */ var _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../property-grid-theme/property-grid */ "./src/property-grid-theme/property-grid.ts");
|
|
16273
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyGridCss", function() { return _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_48__["propertyGridCss"]; });
|
|
15829
16274
|
|
|
15830
|
-
/* harmony import */ var
|
|
15831
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionConverter", function() { return
|
|
16275
|
+
/* harmony import */ var _questionconverter__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../questionconverter */ "./src/questionconverter.ts");
|
|
16276
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionConverter", function() { return _questionconverter__WEBPACK_IMPORTED_MODULE_49__["QuestionConverter"]; });
|
|
15832
16277
|
|
|
15833
|
-
/* harmony import */ var
|
|
15834
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return
|
|
16278
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../svgbundle */ "./src/svgbundle.ts");
|
|
16279
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return _svgbundle__WEBPACK_IMPORTED_MODULE_50__["svgBundle"]; });
|
|
15835
16280
|
|
|
15836
|
-
/* harmony import */ var
|
|
15837
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return
|
|
16281
|
+
/* harmony import */ var _textWorker__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../textWorker */ "./src/textWorker.ts");
|
|
16282
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_51__["SurveyTextWorker"]; });
|
|
15838
16283
|
|
|
15839
|
-
/* harmony import */ var
|
|
15840
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxCategory", function() { return
|
|
16284
|
+
/* harmony import */ var _toolbox__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../toolbox */ "./src/toolbox.ts");
|
|
16285
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxCategory", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_52__["QuestionToolboxCategory"]; });
|
|
15841
16286
|
|
|
15842
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxItem", function() { return
|
|
16287
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxItem", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_52__["QuestionToolboxItem"]; });
|
|
15843
16288
|
|
|
15844
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolbox", function() { return
|
|
16289
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolbox", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_52__["QuestionToolbox"]; });
|
|
15845
16290
|
|
|
15846
|
-
/* harmony import */ var
|
|
15847
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return
|
|
16291
|
+
/* harmony import */ var _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../components/side-bar/side-bar-model */ "./src/components/side-bar/side-bar-model.ts");
|
|
16292
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_53__["SidebarModel"]; });
|
|
15848
16293
|
|
|
15849
|
-
/* harmony import */ var
|
|
15850
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return
|
|
16294
|
+
/* harmony import */ var _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../components/side-bar/side-bar-tab-model */ "./src/components/side-bar/side-bar-tab-model.ts");
|
|
16295
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_54__["SidebarTabModel"]; });
|
|
15851
16296
|
|
|
15852
|
-
/* harmony import */ var
|
|
15853
|
-
/* empty/unused harmony star reexport *//* harmony import */ var
|
|
15854
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return
|
|
16297
|
+
/* harmony import */ var _utils_events__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../utils/events */ "./src/utils/events.ts");
|
|
16298
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
16299
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["getNextItemValue"]; });
|
|
15855
16300
|
|
|
15856
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemText", function() { return
|
|
16301
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemText", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["getNextItemText"]; });
|
|
15857
16302
|
|
|
15858
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextValue", function() { return
|
|
16303
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["getNextValue"]; });
|
|
15859
16304
|
|
|
15860
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findParentNode", function() { return
|
|
16305
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findParentNode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["findParentNode"]; });
|
|
15861
16306
|
|
|
15862
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusFirstControl", function() { return
|
|
16307
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusFirstControl", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["focusFirstControl"]; });
|
|
15863
16308
|
|
|
15864
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstNonTextElement", function() { return
|
|
16309
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstNonTextElement", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["getFirstNonTextElement"]; });
|
|
15865
16310
|
|
|
15866
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNodesFromKoComponentInfo", function() { return
|
|
16311
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNodesFromKoComponentInfo", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["getNodesFromKoComponentInfo"]; });
|
|
15867
16312
|
|
|
15868
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyExists", function() { return
|
|
16313
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyExists", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["propertyExists"]; });
|
|
15869
16314
|
|
|
15870
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPropertyVisible", function() { return
|
|
16315
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPropertyVisible", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["isPropertyVisible"]; });
|
|
15871
16316
|
|
|
15872
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toggleHovered", function() { return
|
|
16317
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toggleHovered", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["toggleHovered"]; });
|
|
15873
16318
|
|
|
15874
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearNewLines", function() { return
|
|
16319
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearNewLines", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["clearNewLines"]; });
|
|
15875
16320
|
|
|
15876
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return
|
|
16321
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["select"]; });
|
|
15877
16322
|
|
|
15878
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyObject", function() { return
|
|
16323
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyObject", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["copyObject"]; });
|
|
15879
16324
|
|
|
15880
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyCssClasses", function() { return
|
|
16325
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyCssClasses", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["copyCssClasses"]; });
|
|
15881
16326
|
|
|
15882
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assignDefaultV2Classes", function() { return
|
|
16327
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assignDefaultV2Classes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["assignDefaultV2Classes"]; });
|
|
15883
16328
|
|
|
15884
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return
|
|
16329
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["wrapTextByCurlyBraces"]; });
|
|
15885
16330
|
|
|
15886
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return
|
|
16331
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["capitalize"]; });
|
|
15887
16332
|
|
|
15888
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return
|
|
16333
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_56__["notShortCircuitAnd"]; });
|
|
15889
16334
|
|
|
15890
|
-
/* harmony import */ var
|
|
15891
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return
|
|
16335
|
+
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
16336
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return _question_editor_definition__WEBPACK_IMPORTED_MODULE_57__["SurveyQuestionEditorDefinition"]; });
|
|
15892
16337
|
|
|
15893
|
-
/* harmony import */ var
|
|
15894
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return
|
|
16338
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
16339
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_58__["ObjType"]; });
|
|
15895
16340
|
|
|
15896
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHelper", function() { return
|
|
16341
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHelper", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_58__["SurveyHelper"]; });
|
|
15897
16342
|
|
|
15898
|
-
/* harmony import */ var
|
|
15899
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeManager", function() { return
|
|
16343
|
+
/* harmony import */ var _utils_resizer__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../utils/resizer */ "./src/utils/resizer.ts");
|
|
16344
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeManager", function() { return _utils_resizer__WEBPACK_IMPORTED_MODULE_59__["ResizeManager"]; });
|
|
15900
16345
|
|
|
15901
|
-
/* harmony import */ var
|
|
15902
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoPlugin", function() { return
|
|
16346
|
+
/* harmony import */ var _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../plugins/undo-redo */ "./src/plugins/undo-redo/index.ts");
|
|
16347
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoPlugin", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_60__["UndoRedoPlugin"]; });
|
|
15903
16348
|
|
|
15904
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "undoRedoTransaction", function() { return
|
|
16349
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "undoRedoTransaction", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_60__["undoRedoTransaction"]; });
|
|
15905
16350
|
|
|
15906
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreUndoRedo", function() { return
|
|
16351
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreUndoRedo", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_60__["ignoreUndoRedo"]; });
|
|
15907
16352
|
|
|
15908
|
-
/* harmony import */ var
|
|
15909
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoManager", function() { return
|
|
16353
|
+
/* harmony import */ var _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../plugins/undo-redo/undo-redo-manager */ "./src/plugins/undo-redo/undo-redo-manager.ts");
|
|
16354
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoManager", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_61__["UndoRedoManager"]; });
|
|
15910
16355
|
|
|
15911
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transaction", function() { return
|
|
16356
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transaction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_61__["Transaction"]; });
|
|
15912
16357
|
|
|
15913
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoAction", function() { return
|
|
16358
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_61__["UndoRedoAction"]; });
|
|
15914
16359
|
|
|
15915
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoArrayAction", function() { return
|
|
16360
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoArrayAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_61__["UndoRedoArrayAction"]; });
|
|
15916
16361
|
|
|
15917
|
-
/* harmony import */ var
|
|
15918
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return
|
|
16362
|
+
/* harmony import */ var _pages_controller__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../pages-controller */ "./src/pages-controller.ts");
|
|
16363
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return _pages_controller__WEBPACK_IMPORTED_MODULE_62__["PagesController"]; });
|
|
15919
16364
|
|
|
15920
|
-
/* harmony import */ var
|
|
15921
|
-
/* harmony import */ var
|
|
16365
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
16366
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
|
|
15922
16367
|
var Version;
|
|
15923
|
-
Version = "" + "1.9.
|
|
16368
|
+
Version = "" + "1.9.82";
|
|
15924
16369
|
|
|
15925
16370
|
|
|
15926
16371
|
|
|
@@ -15961,6 +16406,9 @@ Version = "" + "1.9.80";
|
|
|
15961
16406
|
|
|
15962
16407
|
|
|
15963
16408
|
|
|
16409
|
+
//custom questions for property grid
|
|
16410
|
+
|
|
16411
|
+
|
|
15964
16412
|
|
|
15965
16413
|
|
|
15966
16414
|
|
|
@@ -15996,8 +16444,8 @@ __webpack_require__(/*! ../property-grid-theme/property-grid.scss */ "./src/prop
|
|
|
15996
16444
|
__webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
15997
16445
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
15998
16446
|
|
|
15999
|
-
|
|
16000
|
-
Object(
|
|
16447
|
+
survey_core__WEBPACK_IMPORTED_MODULE_63__["settings"].supportCreatorV2 = true;
|
|
16448
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_63__["checkLibraryVersion"])("" + "1.9.82", "survey-creator-core");
|
|
16001
16449
|
|
|
16002
16450
|
|
|
16003
16451
|
/***/ }),
|
|
@@ -18244,6 +18692,10 @@ var enStrings = {
|
|
|
18244
18692
|
expressionInvalid: "The logic expression is empty or invalid. Please correct it.",
|
|
18245
18693
|
noActionError: "Please, add at least one action.",
|
|
18246
18694
|
actionInvalid: "Please, fix problems in your action(s).",
|
|
18695
|
+
uncompletedRule_title: "Leave the tab?",
|
|
18696
|
+
uncompletedRule_text: "One or more logical rules are uncompleted. If you leave the tab, those changes that cannot be applied will vanish. Are you sure you want to leave?",
|
|
18697
|
+
uncompletedRule_apply: "Yes",
|
|
18698
|
+
uncompletedRule_cancel: "No, I want to complete the rules",
|
|
18247
18699
|
expressionSetup: "",
|
|
18248
18700
|
actionsSetup: ""
|
|
18249
18701
|
}
|
|
@@ -18425,7 +18877,7 @@ var enStrings = {
|
|
|
18425
18877
|
maxTimeToFinishPage: "Time limit to finish one page (in seconds)",
|
|
18426
18878
|
image: {
|
|
18427
18879
|
imageHeight: "Image height (in CSS-accepted values)",
|
|
18428
|
-
imageWidth: "Image width (in CSS-accepted values)"
|
|
18880
|
+
imageWidth: "Image width (in CSS-accepted values)"
|
|
18429
18881
|
},
|
|
18430
18882
|
page: {
|
|
18431
18883
|
maxTimeToFinish: "Time limit to finish the page (in seconds)"
|
|
@@ -18869,78 +19321,81 @@ var enStrings = {
|
|
|
18869
19321
|
multiSelect: "Allow multiple selection",
|
|
18870
19322
|
showLabel: "Show image captions",
|
|
18871
19323
|
value: "Value",
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18889
|
-
|
|
18890
|
-
|
|
18891
|
-
|
|
18892
|
-
|
|
18893
|
-
|
|
18894
|
-
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
|
|
18901
|
-
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18913
|
-
|
|
18914
|
-
|
|
18915
|
-
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
|
|
18922
|
-
|
|
18923
|
-
|
|
18924
|
-
|
|
18925
|
-
|
|
18926
|
-
|
|
18927
|
-
|
|
18928
|
-
|
|
18929
|
-
|
|
18930
|
-
|
|
18931
|
-
|
|
18932
|
-
|
|
18933
|
-
|
|
18934
|
-
|
|
18935
|
-
|
|
18936
|
-
|
|
18937
|
-
|
|
18938
|
-
|
|
18939
|
-
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
19324
|
+
tabAlign: "Tab alignment",
|
|
19325
|
+
description: "Description",
|
|
19326
|
+
logoFit: "Logo fit",
|
|
19327
|
+
pages: "Pages",
|
|
19328
|
+
questions: "Questions",
|
|
19329
|
+
triggers: "Triggers",
|
|
19330
|
+
calculatedValues: "Calculated values",
|
|
19331
|
+
surveyId: "Survey id",
|
|
19332
|
+
surveyPostId: "Survey post id",
|
|
19333
|
+
surveyShowDataSaving: "Survey show data saving",
|
|
19334
|
+
questionDescriptionLocation: "Question description location",
|
|
19335
|
+
progressBarType: "Progress bar type",
|
|
19336
|
+
showTOC: "Show TOC",
|
|
19337
|
+
tocLocation: "Toc location",
|
|
19338
|
+
questionTitlePattern: "Question title pattern",
|
|
19339
|
+
widthMode: "Width mode",
|
|
19340
|
+
showBrandInfo: "Show brand info",
|
|
19341
|
+
useDisplayValuesInDynamicTexts: "Use display values in dynamic texts",
|
|
19342
|
+
visibleIf: "Visible if",
|
|
19343
|
+
titleLocation: "Title location",
|
|
19344
|
+
descriptionLocation: "Description location",
|
|
19345
|
+
defaultValueExpression: "Default value expression",
|
|
19346
|
+
requiredIf: "Required if",
|
|
19347
|
+
validators: "Validators",
|
|
19348
|
+
bindings: "Bindings",
|
|
19349
|
+
renderAs: "Render as",
|
|
19350
|
+
attachOriginalItems: "Attach original items",
|
|
19351
|
+
choices: "Choices",
|
|
19352
|
+
choicesByUrl: "Choices by url",
|
|
19353
|
+
currency: "Currency",
|
|
19354
|
+
cellHint: "Cell hint",
|
|
19355
|
+
isUnique: "Is unique",
|
|
19356
|
+
showInMultipleColumns: "Show in multiple columns",
|
|
19357
|
+
totalMaximumFractionDigits: "Total maximum fraction digits",
|
|
19358
|
+
totalMinimumFractionDigits: "Total minimum fraction digits",
|
|
19359
|
+
columns: "Columns",
|
|
19360
|
+
detailElements: "Detail elements",
|
|
19361
|
+
allowAdaptiveActions: "Allow adaptive actions",
|
|
19362
|
+
defaultRowValue: "Default row value",
|
|
19363
|
+
detailPanelShowOnAdding: "Detail panel show on adding",
|
|
19364
|
+
choicesLazyLoadEnabled: "Choices lazy load enabled",
|
|
19365
|
+
choicesLazyLoadPageSize: "Choices lazy load page size",
|
|
19366
|
+
inputFieldComponent: "Input field component",
|
|
19367
|
+
itemComponent: "Item component",
|
|
19368
|
+
min: "Min",
|
|
19369
|
+
max: "Max",
|
|
19370
|
+
minValueExpression: "Min value expression",
|
|
19371
|
+
maxValueExpression: "Max value expression",
|
|
19372
|
+
step: "Step",
|
|
19373
|
+
dataList: "Data list",
|
|
19374
|
+
itemSize: "Item size",
|
|
19375
|
+
elements: "Elements",
|
|
19376
|
+
content: "Content",
|
|
19377
|
+
navigationButtonsVisibility: "Navigation buttons visibility",
|
|
19378
|
+
navigationTitle: "Navigation title",
|
|
19379
|
+
navigationDescription: "Navigation description",
|
|
19380
|
+
longTap: "Long tap",
|
|
19381
|
+
autoGrow: "Auto grow",
|
|
19382
|
+
acceptCarriageReturn: "Accept carriage return",
|
|
19383
|
+
displayMode: "Display mode",
|
|
19384
|
+
rateType: "Rate type",
|
|
19385
|
+
label: "Label",
|
|
19386
|
+
contentMode: "Content mode",
|
|
19387
|
+
imageFit: "Image fit",
|
|
19388
|
+
altText: "Alt text",
|
|
19389
|
+
height: "Height",
|
|
19390
|
+
penColor: "Pen color",
|
|
19391
|
+
backgroundColor: "Background color",
|
|
19392
|
+
templateElements: "Template elements",
|
|
19393
|
+
operator: "Operator",
|
|
19394
|
+
isVariable: "Is variable",
|
|
19395
|
+
runExpression: "Run expression",
|
|
19396
|
+
showCaption: "Show caption",
|
|
19397
|
+
iconName: "Icon name",
|
|
19398
|
+
iconSize: "Icon size" // Auto-generated string
|
|
18944
19399
|
}
|
|
18945
19400
|
};
|
|
18946
19401
|
// Uncomment the line below if you create a custom dictionary.
|
|
@@ -19942,6 +20397,22 @@ var propertyGridCss = {
|
|
|
19942
20397
|
itemIcon: "spg-action-button__icon",
|
|
19943
20398
|
itemTitle: "spg-action-button__title",
|
|
19944
20399
|
},
|
|
20400
|
+
spinedit: {
|
|
20401
|
+
root: "spg-input spg-spin-editor spg-input-container",
|
|
20402
|
+
control: "spg-spin-editor__input spg-input-container__input",
|
|
20403
|
+
buttonsContainer: "spg-spin-editor__buttons-container",
|
|
20404
|
+
arrowButton: "spg-input__edit-button",
|
|
20405
|
+
increaseButtonIcon: "icon-arrow-up",
|
|
20406
|
+
decreaseButtonIcon: "icon-arrow-down"
|
|
20407
|
+
},
|
|
20408
|
+
color: {
|
|
20409
|
+
root: "spg-input spg-color-editor spg-input-container",
|
|
20410
|
+
swatch: "spg-color-editor__color-swatch",
|
|
20411
|
+
colorInput: "spg-color-editor__color-input",
|
|
20412
|
+
control: "spg-color-editor__input spg-input-container__input",
|
|
20413
|
+
colorDropdown: "spg-input__edit-button",
|
|
20414
|
+
colorDrodownIcon: "icon-drop-down-arrow"
|
|
20415
|
+
}
|
|
19945
20416
|
};
|
|
19946
20417
|
|
|
19947
20418
|
|
|
@@ -20090,7 +20561,7 @@ var CellsEditor = /** @class */ (function (_super) {
|
|
|
20090
20561
|
CellsEditor.prototype.buildColumns = function () {
|
|
20091
20562
|
var columns = this.matrix.columns;
|
|
20092
20563
|
for (var i = 0; i < columns.length; i++) {
|
|
20093
|
-
this.editMatrix.addColumn(columns[i].value, columns[i].text);
|
|
20564
|
+
this.editMatrix.addColumn("" + columns[i].value, columns[i].text);
|
|
20094
20565
|
}
|
|
20095
20566
|
};
|
|
20096
20567
|
CellsEditor.prototype.buildRows = function () {
|
|
@@ -20690,6 +21161,14 @@ var ConditionEditor = /** @class */ (function (_super) {
|
|
|
20690
21161
|
enumerable: false,
|
|
20691
21162
|
configurable: true
|
|
20692
21163
|
});
|
|
21164
|
+
ConditionEditor.prototype.isEmpty = function () {
|
|
21165
|
+
if (this.panel.panels.length === 0)
|
|
21166
|
+
return true;
|
|
21167
|
+
if (this.panel.panels.length > 1)
|
|
21168
|
+
return false;
|
|
21169
|
+
var item = this.createEditorItemFromPanel(this.panel.panels[0]);
|
|
21170
|
+
return !item.questionName;
|
|
21171
|
+
};
|
|
20693
21172
|
ConditionEditor.prototype.hasErrorInUI = function () {
|
|
20694
21173
|
var creator = this.survey.creator;
|
|
20695
21174
|
if (!this.isReady) {
|
|
@@ -21132,7 +21611,7 @@ var ConditionEditor = /** @class */ (function (_super) {
|
|
|
21132
21611
|
options.cssClasses.mainRoot += " svc-logic-condition-remove-question";
|
|
21133
21612
|
}
|
|
21134
21613
|
// options.cssClasses.mainRoot += "sd-question sd-row__question";
|
|
21135
|
-
if (options.question.name === "questionValue") {
|
|
21614
|
+
if (options.question.name === "questionValue" || options.question.isContentElement) {
|
|
21136
21615
|
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assignDefaultV2Classes"])(options.cssClasses, options.question.getType());
|
|
21137
21616
|
options.cssClasses.mainRoot += " svc-logic-question-value";
|
|
21138
21617
|
options.cssClasses.error.root = "svc-logic-operator__error";
|
|
@@ -22515,7 +22994,7 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
22515
22994
|
return row.allowEditRow;
|
|
22516
22995
|
};
|
|
22517
22996
|
PropertyGridModel.prototype.calculateMatrixAllowOperations = function (question, row) {
|
|
22518
|
-
var rowOptions = { allowDelete: this.onMatrixAllowRemoveRow(question, row), allowEdit: true };
|
|
22997
|
+
var rowOptions = { allowDelete: this.onMatrixAllowRemoveRow(question, row), allowEdit: true, allowAdd: undefined };
|
|
22519
22998
|
this.options.onCollectionItemAllowingCallback(this.obj, question.property, question.value, row.editingObj, rowOptions);
|
|
22520
22999
|
row.allowDeleteRow = rowOptions.allowDelete;
|
|
22521
23000
|
row.allowEditRow = rowOptions.allowEdit;
|
|
@@ -24731,6 +25210,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
24731
25210
|
rating: {
|
|
24732
25211
|
properties: [
|
|
24733
25212
|
{ name: "displayMode", tab: "layout" },
|
|
25213
|
+
{ name: "rateCount", tab: "rateValues" },
|
|
24734
25214
|
{ name: "rateMin", tab: "rateValues" },
|
|
24735
25215
|
{ name: "rateMax", tab: "rateValues" },
|
|
24736
25216
|
{ name: "rateStep", tab: "rateValues" },
|
|
@@ -25017,6 +25497,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
25017
25497
|
paneldynamic: {
|
|
25018
25498
|
properties: [
|
|
25019
25499
|
"renderMode",
|
|
25500
|
+
"tabAlign",
|
|
25020
25501
|
"panelCount",
|
|
25021
25502
|
"minPanelCount",
|
|
25022
25503
|
"maxPanelCount",
|
|
@@ -27146,7 +27627,7 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
27146
27627
|
return questions;
|
|
27147
27628
|
};
|
|
27148
27629
|
QuestionToolbox.prototype.dispose = function () { };
|
|
27149
|
-
QuestionToolbox.hiddenTypes = ["buttongroup", "linkvalue", "embeddedsurvey"];
|
|
27630
|
+
QuestionToolbox.hiddenTypes = ["buttongroup", "linkvalue", "embeddedsurvey", "spinedit", "color"];
|
|
27150
27631
|
QuestionToolbox.defaultIconName = "icon-default";
|
|
27151
27632
|
QuestionToolbox.defaultCategories = {
|
|
27152
27633
|
toolboxChoiceCategory: ["radiogroup", "rating", "checkbox", "dropdown", "tagbox", "boolean", "file", "imagepicker", "ranking"],
|