12345678 |
- /*!
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: Modeling UI
- * (C) Copyright IBM Corp. 2020
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- (window.caModellingPerspective=window.caModellingPerspective||[]).push([[14],{1013:function(e,t,i){"use strict";i.d(t,"a",function(){return r});var r={UPPER:"upper",LOWER:"lower",NOCHANGE:"no-change"}},1559:function(e,t,i){"use strict";i.r(t),i.d(t,"default",function(){return d});var r,n=i(1),a=i.n(n),l=i(16),s=i(3),o=i(25),c=i(5),u=i(2),p=i(10),h=i(44),g=i(1560),b=i(1570);var d=Object(h.a)(p.c,{initializer:function(e,t){return new b.a({},{selection:t.selection})}})(r=Object(c.e)(function(e){return{saveClean:e.saveClean,isDirty:e.isDirty}})(r=Object(l.observer)(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];return(t=e.call.apply(e,[this].concat(r))||this)._focusRef=function(e){e&&e.focus&&e.focus()},t._onSave=function(){var e=t.props;(0,e.onClose)(e.saveClean)},t._getTid=function(e){return Object(o.a)("cleanDialog",e)},t}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props,t=e.selection,i=e.onClose,r=e.prepareForClose,n=e.isDirty,l=t.length>1?t.length+" "+Object(u.getString)("selected"):t[0].getLabel(),o=Object(u.getString)("cleanValue",{value:l});return a.a.createElement(s.Dialog,{"data-tid":this._getTid(""),onClose:i},a.a.createElement(s.Dialog.Header,{"data-tid":this._getTid("header")},a.a.createElement(s.TruncatedText,{value:o})),a.a.createElement(s.Dialog.Body,null,a.a.createElement(g.a,{ref:this._focusRef})),a.a.createElement(s.Dialog.Footer,null,a.a.createElement(s.Dialog.Button,{primary:!0,"data-tid":this._getTid("ok"),label:Object(u.getString)("clean"),onClick:this._onSave,disabled:r||!n}),a.a.createElement(s.Dialog.Button,{"data-tid":this._getTid("cancel"),label:Object(u.getString)("cancel"),onClick:i})))},t}(n.Component))||r)||r)||r},1560:function(e,t,i){"use strict";i.d(t,"a",function(){return d});var r,n=i(0),a=i.n(n),l=i(3),s=i(1),o=i.n(s),c=i(16),u=i(5),p=i(1561),h=i(1562),g=i(1563),b=i(1565);i(1568);var d=Object(u.e)(function(e){return{datatypes:e.datatypes}})(r=Object(c.observer)(r=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props.datatypes;return o.a.createElement(l.FlexLayout,{direction:"column"},e[a.a.HighLevelDataType.STRING.name()]&&o.a.createElement(o.a.Fragment,null,o.a.createElement(l.FlexItem,null,o.a.createElement(p.a,null)),o.a.createElement(l.FlexItem,null,o.a.createElement(h.a,null)),o.a.createElement(l.FlexItem,null,o.a.createElement(g.a,null))),o.a.createElement(l.FlexItem,null,o.a.createElement(b.a,null)))},t}(s.Component))||r)||r},1561:function(e,t,i){"use strict";i.d(t,"a",function(){return u});var r,n=i(1),a=i.n(n),l=i(16),s=i(3),o=i(5),c=i(2);var u=Object(o.e)(function(e){return{whitespaceTrimChecked:e.whitespaceTrimChecked,isWhitespaceTrimChecked:e.componentStores.cleanWhitespaceStore.isWhitespaceTrimChecked}})(r=Object(l.observer)(r=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props,t=e.isWhitespaceTrimChecked,i=e.whitespaceTrimChecked;return a.a.createElement(s.Container,{gutter:[1,0]},a.a.createElement(s.Label,{label:Object(c.getString)("whitespace"),className:"ba-mui-clean-section-header"}),a.a.createElement(s.Container,{gutter:1,"data-tid":"whitespaceComponent"},a.a.createElement(s.Checkbox,{onChange:i,label:Object(c.getString)("whitespaceClean"),checked:t,indeterminate:void 0===t})))},t}(n.Component))||r)||r},1562:function(e,t,i){"use strict";i.d(t,"a",function(){return p});var r,n=i(1),a=i.n(n),l=i(16),s=i(3),o=i(5),c=i(2),u=i(1013);var p=Object(o.e)(function(e){return{letterCase:e.componentStores.cleanCaseStore.letterCase,setCleanCase:e.setCleanCase,setCleanCaseClick:e.setCleanCaseClick}})(r=Object(l.observer)(r=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props,t=e.letterCase,i=e.setCleanCase,r=e.setCleanCaseClick,n=[{value:u.a.UPPER,label:Object(c.getString)("uppercase")},{value:u.a.LOWER,label:Object(c.getString)("lowercase")},{value:u.a.NOCHANGE,label:Object(c.getString)("noChange")}];return a.a.createElement(s.Container,{gutter:[1,0]},a.a.createElement(s.Label,{label:Object(c.getString)("convertCase"),className:"ba-mui-clean-section-header"}),a.a.createElement(s.Container,{gutter:1},a.a.createElement(s.RadioGroup,{options:n,checked:t,indeterminate:void 0===t,onChange:i,onClick:r})))},t}(n.Component))||r)||r},1563:function(e,t,i){"use strict";i.d(t,"a",function(){return p});var r,n=i(1),a=i.n(n),l=i(16),s=i(3),o=i(5),c=i(2),u=i(1564);var p=Object(o.e)(function(e){return{substringStore:e.componentStores.cleanSubstringStore,setSubstringStartPosition:e.setSubstringStartPosition,setSubstringLength:e.setSubstringLength}})(r=Object(l.observer)(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];return(t=e.call.apply(e,[this].concat(r))||this)._startOnValueChange=function(e,i){var r=t.props.setSubstringStartPosition;Number(e)===Number(i)&&r(e)},t._lengthOnValueChange=function(e,i){var r=t.props.setSubstringLength;Number(e)===Number(i)&&r(e)},t}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props.substringStore,t=e.substringStartPosition,i=e.substringLength,r=e.substringTextPreviewPrefix,n=e.substringTextPreviewStyled,l=e.substringTextPreviewSuffix;return a.a.createElement(s.Container,{gutter:[1,0]},a.a.createElement(s.Label,{label:Object(c.getString)("substringClean"),className:"ba-mui-clean-section-header"}),a.a.createElement(s.Container,{gutter:1},Object(c.getString)("start"),a.a.createElement(s.HSpacer,null),a.a.createElement(s.NumberInput,{id:"numberInputStart","data-tid":"numberInputStart",min:0,scale:0,allowEmpty:!0,value:t||"",placeholder:void 0===t?Object(c.getString)("indeterminate"):"",onValueChange:this._startOnValueChange}),a.a.createElement(s.HSpacer,null),Object(c.getString)("length"),a.a.createElement(s.HSpacer,null),a.a.createElement(s.NumberInput,{id:"numberInputLength","data-tid":"numberInputLength",min:0,scale:0,allowEmpty:!0,value:i||"",placeholder:void 0===i?Object(c.getString)("indeterminate"):"",onValueChange:this._lengthOnValueChange})),a.a.createElement(s.Container,{gutter:[0,1]},Object(c.getString)("preview")),a.a.createElement(s.Container,{gutter:[1,2]},a.a.createElement(u.a,{prefix:r,styled:n,suffix:l})))},t}(n.Component))||r)||r},1564:function(e,t,i){"use strict";i.d(t,"a",function(){return o});var r,n=i(1),a=i.n(n),l=i(16),s=i(3);var o=Object(l.observer)(r=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props,t=e.prefix,i=e.styled,r=e.suffix;return a.a.createElement(s.Container,{"data-tid":"cleanSubstringComponent"},t,a.a.createElement("b",null,a.a.createElement("u",null,i)),r)},t}(n.Component))||r},1565:function(e,t,i){"use strict";i.d(t,"a",function(){return p});var r,n=i(1),a=i.n(n),l=i(16),s=i(3),o=i(5),c=i(2),u=i(1566);var p=Object(o.e)(function(e){return{replaceValuesChecked:e.replaceValuesChecked,replaceNullsChecked:e.replaceNullsChecked,updateReplaceValues:e.updateReplaceValues,updateReplaceNulls:e.updateReplaceNulls,isReplaceNullsChecked:e.componentStores.cleanNullStore.isReplaceNullsChecked,isReplaceValuesChecked:e.componentStores.cleanNullStore.isReplaceValuesChecked,replaceValuesValue:e.componentStores.cleanNullStore.replaceValuesValue,replaceNullsValue:e.componentStores.cleanNullStore.replaceNullsValue}})(r=Object(l.observer)(r=function(e){function t(){return e.apply(this,arguments)||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props,t=e.replaceValuesChecked,i=e.updateReplaceValues,r=e.replaceNullsChecked,n=e.updateReplaceNulls,l=e.isReplaceNullsChecked,o=e.isReplaceValuesChecked,p=e.replaceValuesValue,h=e.replaceNullsValue;return a.a.createElement(s.Container,{gutter:[1,0]},a.a.createElement(s.Label,{label:Object(c.getString)("nullValues"),className:"ba-mui-clean-section-header"}),a.a.createElement("table",{style:{borderCollapse:"separate",borderSpacing:"0 5px"}},a.a.createElement(u.a,{label:Object(c.getString)("replaceValue"),isChecked:o,checkedAction:t,value:p,onChange:i,"data-tid":"replaceValueComponent"}),a.a.createElement(u.a,{label:Object(c.getString)("replaceNulls"),isChecked:l,checkedAction:r,value:h,onChange:n,"data-tid":"replaceNullComponent"})))},t}(n.Component))||r)||r},1566:function(e,t,i){"use strict";i.d(t,"a",function(){return g});var r,n=i(0),a=i.n(n),l=i(3),s=i(1),o=i.n(s),c=i(16),u=i(2),p=i(5),h=i(1567);var g=Object(p.e)(function(e){return{datatypes:e.datatypes,highlevelDatatype:e.highlevelDatatype}})(r=Object(c.observer)(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];return(t=e.call.apply(e,[this].concat(r))||this)._numberInputOnValueChange=function(e){var i=t.props.onChange;void 0!==e&&i(e)},t}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t.prototype.render=function(){var e=this.props,t=e.isChecked,i=e.checkedAction,r=e.label,n=e.value,s=e.onChange,c=this.props,p=c.datatypes,g=c.highlevelDatatype;return o.a.createElement("tr",{"data-tid":this.props["data-tid"]},o.a.createElement("td",null,o.a.createElement(l.Checkbox,{onChange:function(){return i(!t)},label:r,indeterminate:void 0===t,checked:t}),o.a.createElement(l.HSpacer,null)),o.a.createElement("td",null,p[a.a.HighLevelDataType.STRING.name()]&&o.a.createElement(l.TextInput,{fullWidth:!0,placeholder:void 0===n?Object(u.getString)("indeterminate"):Object(u.getString)("emptyString"),value:n,onChange:function(e){return s(e)},style:{width:300}}),(p[a.a.HighLevelDataType.INTEGER.name()]||p[a.a.HighLevelDataType.DECIMAL.name()])&&o.a.createElement(l.NumberInput,{placeholder:void 0===n?Object(u.getString)("indeterminate"):"",value:n,onValueChange:this._numberInputOnValueChange,allowEmpty:!0}),(p[a.a.HighLevelDataType.DATETIME.name()]||p[a.a.HighLevelDataType.DATE.name()]||p[a.a.HighLevelDataType.TIME.name()])&&o.a.createElement(h.a,{placeholder:void 0===n?Object(u.getString)("indeterminate"):"",value:n?String(n):"",highlevelDatatype:g,onChange:s})))},t}(s.Component))||r)||r},1567:function(e,t,i){"use strict";i.d(t,"a",function(){return h});var r,n=i(91),a=i.n(n),l=i(1),s=i.n(l),o=i(16),c=i(3),u=i(17),p=i(34);var h=Object(o.observer)(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];return(t=e.call.apply(e,[this].concat(r))||this).state={date:a()(t.props.value,t._getFormat())},t._onChange=function(e){if(null!==e&&e.isValid()){var i=e.format(t._getFormat());t.props.onChange(i)}t.setState({date:e})},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var i=t.prototype;return i.componentWillReceiveProps=function(e){this.setState({date:a()(e.value,this._getFormat())})},i._getFormat=function(){return Object(p.b)(this.props.highlevelDatatype)},i.render=function(){var e=this.props.highlevelDatatype,t=this.state.date,i=u.getProductLocale(),r=s.a.createElement(c.TimePicker,{onChange:this._onChange,time:t,locale:i,showSec:!0}),n=s.a.createElement(c.SingleDatepicker,{onChange:this._onChange,date:t,numberOfMonths:1,locale:i});return Object(p.f)(e)?n:Object(p.l)(e)?r:Object(p.g)(e)?s.a.createElement(c.FlexLayout,{direction:"row"},s.a.createElement(c.FlexItem,{gutter:[0,1,0,0]},n),s.a.createElement(c.FlexItem,null,r)):null},t}(l.Component))||r},1568:function(e,t,i){var r=i(1569);"string"==typeof r&&(r=[[e.i,r,""]]);var n={hmr:!0,transform:void 0};i(36)(r,n);r.locals&&(e.exports=r.locals)},1569:function(e,t,i){(e.exports=i(32)(void 0)).push([e.i,".ba-mui-clean-section-header{font-weight:700}",""])},1570:function(e,t,i){"use strict";i.d(t,"a",function(){return S});var r,n,a=i(6),l=i(0),s=i.n(l),o=i(2),c=i(8),u=i(26),p=i(260),h=i(27),g=i(9),b=i(5),d=i(1013),f=i(1571),v=i(1572),C=i(1573),m=i(1574);function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}).apply(this,arguments)}function E(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function N(e,t,i,r,n){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}function O(e){if(Object(h.getExpressionType)(e)!==g.u)return{};var t=Object(c.getObjectProperty)(e,g.t);return 0===(Number(t.version)||0)&&(t=function(e){var t={};return t.substringStartPosition=e.substringFuncStartParam,t.substringLength=e.substringFuncCountParam,t.initialExpression=e.expression,"trim"===e.trimAllFunc?t.isWhitespaceTrimChecked=!0:void 0!==e.trimAllFunc&&(t.isWhitespaceTrimChecked=!1),"upper"===e.convertCaseFunc?t.letterCase=d.a.UPPER:"lower"===e.convertCaseFunc?t.letterCase=d.a.LOWER:void 0!==e.convertCaseFunc&&(t.letterCase=d.a.NOCHANGE),e.nullif&&(t.isReplaceValuesChecked=!0,t.replaceValuesValue=e.nullif.length>2&&"'"===e.nullif[0]&&"'"===e.nullif[e.nullif.length-1]?e.nullif.slice(1,e.nullif.length-1):e.nullif),e.replaceNulls&&(t.isReplaceNullsChecked=!0,t.replaceNullsValue=e.replaceNulls.length>2&&"'"===e.replaceNulls[0]&&"'"===e.replaceNulls[e.replaceNulls.length-1]?e.replaceNulls.slice(1,e.replaceNulls.length-1):e.replaceNulls),t}(t)),t}var S=(r=function(e){function t(){for(var t,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).selection=[],t.datatypes=void 0,function(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}(t,"componentStores",n,function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)),t.highlevelDatatype=void 0,t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var i=t.prototype;return i.storeDidMount=function(e){var t=this,i=e.selection;this.datatypes={},i.forEach(function(e){t.datatypes[e.getHighlevelDatatype().name()]=!0,t.selection.push(y({moserObject:e,initialExpression:e.getExpression()},O(e)))}),this.highlevelDatatype=i[0].getHighlevelDatatype(),this.datatypes[s.a.HighLevelDataType.STRING.name()]&&(this.initCleanWhiteSpace(),this.initCleanCase(),this.initCleanSubstring()),this.initCleanNulls()},i.processSelections=function(){var e=this;return this.selection.map(function(t){var i={moserObject:t.moserObject,initialExpression:t.initialExpression,newExpression:e.componentStoresArray.reduce(function(e,i){return i&&i.getExpression(e,t)||e},t.initialExpression),properties:void 0};return e.componentStoresArray.some(function(e){return e.hasNonDefaultProperties(t)})&&(i.properties=e.componentStoresArray.reduce(function(e,i){return i&&i.getProperties(e,t)||e},{})),i})},i._makeProperties=function(e){var t={expression:e.newExpression,property:void 0,nullable:void 0};return e.properties&&(t.property=[{name:g.t,value:Object.assign({func:g.u,version:this.provider.getModule().getVersion(),initialExpression:e.initialExpression},e.properties)}],t.nullable=this.componentStores.cleanNullStore.getNullable()),t},i.removePropertyIfNotCleaned=function(e){!e.properties&&Object(c.removeObjectProperty)(e.moserObject,g.t)},i.saveClean=function(){var e=this,t=[];return this.processSelections().forEach(function(i){var r=i.moserObject;t.push(function(){return Object(h.updateExpressionProperties)(e.context,r,e._makeProperties(i)),e.removePropertyIfNotCleaned(i),Object(p.a)(e.context,{moduleId:e.provider.getModuleId(),moserObject:r,moserObjectParent:Object(h.getParentForExpression)(r)}).then(function(t){return function(){Object(h.updateExpressionProperties)(e.context,r,t.columnList[0])}})})}),Promise.all(t).then(function(t){return e.action(Object(u.b)(Object(o.getString)("clean"))(function(){t.map(function(e){return e()})}))})},i.initCleanWhiteSpace=function(){this.componentStores.cleanWhitespaceStore=new v.a,this.componentStores.cleanWhitespaceStore.initialize(this.selection)},i.whitespaceTrimChecked=function(){this.componentStores.cleanWhitespaceStore.whitespaceTrimChecked()},i.initCleanCase=function(){this.componentStores.cleanCaseStore=new f.a,this.componentStores.cleanCaseStore.initialize(this.selection)},i.setCleanCase=function(e){this.componentStores.cleanCaseStore.setCleanCase(e)},i.setCleanCaseClick=function(){this.componentStores.cleanCaseStore.setCleanCaseClick()},i.initCleanSubstring=function(){this.componentStores.cleanSubstringStore=new C.a,this.componentStores.cleanSubstringStore.initialize(this.selection)},i.setSubstringStartPosition=function(e){this.componentStores.cleanSubstringStore.setSubstringStartPosition(e)},i.setSubstringLength=function(e){this.componentStores.cleanSubstringStore.setSubstringLength(e)},i.initCleanNulls=function(){this.componentStores.cleanNullStore=new m.a,this.componentStores.cleanNullStore.initialize(this.selection)},i.replaceValuesChecked=function(){this.componentStores.cleanNullStore.replaceValuesChecked()},i.replaceNullsChecked=function(){this.componentStores.cleanNullStore.replaceNullsChecked()},i.updateReplaceValues=function(e){this.componentStores.cleanNullStore.updateReplaceValues(e)},i.updateReplaceNulls=function(e){this.componentStores.cleanNullStore.updateReplaceNulls(e)},function(e,t,i){t&&E(e.prototype,t),i&&E(e,i)}(t,[{key:"componentStoresArray",get:function(){return Object.values(this.componentStores).filter(function(e){return e})}},{key:"isDirty",get:function(){return this.componentStoresArray.some(function(e){return e&&e.isDirty})}}]),t}(b.a),n=N(r.prototype,"componentStores",[a.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{cleanWhitespaceStore:null,cleanCaseStore:null,cleanSubstringStore:null,cleanNullStore:null}}}),N(r.prototype,"componentStoresArray",[a.computed],Object.getOwnPropertyDescriptor(r.prototype,"componentStoresArray"),r.prototype),N(r.prototype,"isDirty",[a.computed],Object.getOwnPropertyDescriptor(r.prototype,"isDirty"),r.prototype),N(r.prototype,"saveClean",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"saveClean"),r.prototype),N(r.prototype,"initCleanWhiteSpace",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"initCleanWhiteSpace"),r.prototype),N(r.prototype,"whitespaceTrimChecked",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"whitespaceTrimChecked"),r.prototype),N(r.prototype,"initCleanCase",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"initCleanCase"),r.prototype),N(r.prototype,"setCleanCase",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"setCleanCase"),r.prototype),N(r.prototype,"setCleanCaseClick",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"setCleanCaseClick"),r.prototype),N(r.prototype,"initCleanSubstring",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"initCleanSubstring"),r.prototype),N(r.prototype,"setSubstringStartPosition",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"setSubstringStartPosition"),r.prototype),N(r.prototype,"setSubstringLength",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"setSubstringLength"),r.prototype),N(r.prototype,"initCleanNulls",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"initCleanNulls"),r.prototype),N(r.prototype,"replaceValuesChecked",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"replaceValuesChecked"),r.prototype),N(r.prototype,"replaceNullsChecked",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"replaceNullsChecked"),r.prototype),N(r.prototype,"updateReplaceValues",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"updateReplaceValues"),r.prototype),N(r.prototype,"updateReplaceNulls",[b.c],Object.getOwnPropertyDescriptor(r.prototype,"updateReplaceNulls"),r.prototype),r)},1571:function(e,t,i){"use strict";i.d(t,"a",function(){return c});var r,n,a=i(6),l=i(27),s=i(1013);function o(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c=(n=function(e,t,i,r,n){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}((r=function(){function e(){!function(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}(this,"letterCase",n,this),this.originalLetterCase=void 0,this.notLetterCase=void 0}var t=e.prototype;return t.initialize=function(e){var t,i={upper:0,lower:0,noChange:0,notSet:0};e.forEach(function(e){i.upper+=e.letterCase===s.a.UPPER?1:0,i.lower+=e.letterCase===s.a.LOWER?1:0,i.noChange+=e.letterCase===s.a.NOCHANGE?1:0,i.notSet+=void 0===e.letterCase?1:0}),i.noChange+i.notSet===e.length?t=s.a.NOCHANGE:i.upper===e.length?t=s.a.UPPER:i.lower===e.length&&(t=s.a.LOWER),this.letterCase=t,this.originalLetterCase=t},t._letterCase=function(e){var t;return null!=(t=this.letterCase)?t:e.letterCase},t.getExpression=function(e,t){var i=this._letterCase(t);return i===s.a.LOWER||i===s.a.UPPER?i+" ("+l.EXP_NEWLINE+l.EXP_INDENT1+Object(l.indentExpression)(e,l.EXP_INDENT1)+l.EXP_NEWLINE+")":e},t.setCleanCase=function(e){e!==this.notLetterCase&&(this.letterCase=e),this.notLetterCase=void 0},t.setCleanCaseClick=function(){void 0===this.originalLetterCase&&void 0===this.notLetterCase&&(this.notLetterCase=this.letterCase,this.letterCase=void 0)},t._getProperties=function(e){return{letterCase:this._letterCase(e)}},t.hasNonDefaultProperties=function(e){return this._getProperties(e).letterCase!==s.a.NOCHANGE},t.getProperties=function(e,t){return Object.assign(e,this._getProperties(t))},function(e,t,i){t&&o(e.prototype,t),i&&o(e,i)}(e,[{key:"isDirty",get:function(){return this.originalLetterCase!==this.letterCase}}]),e}()).prototype,"letterCase",[a.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),r)},1572:function(e,t,i){"use strict";i.d(t,"a",function(){return o});var r,n,a=i(6),l=i(27);function s(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=(n=function(e,t,i,r,n){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}((r=function(){function e(){!function(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}(this,"isWhitespaceTrimChecked",n,this),this.originalWhitespaceTrimChecked=void 0}var t=e.prototype;return t.initialize=function(e){var t,i={checked:0,unchecked:0,notSet:0};e.forEach(function(e){i.checked+=!0===e.isWhitespaceTrimChecked?1:0,i.unchecked+=!1===e.isWhitespaceTrimChecked?1:0,i.notSet+=void 0===e.isWhitespaceTrimChecked?1:0}),i.unchecked+i.notSet===e.length?t=!1:i.checked===e.length&&(t=!0),this.isWhitespaceTrimChecked=t,this.originalWhitespaceTrimChecked=t},t._isWhitespaceTrimChecked=function(e){var t;return null!=(t=this.isWhitespaceTrimChecked)?t:e.isWhitespaceTrimChecked},t.getExpression=function(e,t){return this._isWhitespaceTrimChecked(t)?"trim ("+l.EXP_NEWLINE+l.EXP_INDENT1+Object(l.indentExpression)(e,l.EXP_INDENT1)+l.EXP_NEWLINE+")":e},t.whitespaceTrimChecked=function(){!0===this.isWhitespaceTrimChecked?this.isWhitespaceTrimChecked=!1:!1===this.isWhitespaceTrimChecked?this.isWhitespaceTrimChecked=void 0!==this.originalWhitespaceTrimChecked||void 0:this.isWhitespaceTrimChecked=!0},t._getProperties=function(e){return{isWhitespaceTrimChecked:this._isWhitespaceTrimChecked(e)}},t.hasNonDefaultProperties=function(e){return this._getProperties(e).isWhitespaceTrimChecked},t.getProperties=function(e,t){return Object.assign(e,this._getProperties(t))},function(e,t,i){t&&s(e.prototype,t),i&&s(e,i)}(e,[{key:"isDirty",get:function(){return this.isWhitespaceTrimChecked!==this.originalWhitespaceTrimChecked}}]),e}()).prototype,"isWhitespaceTrimChecked",[a.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),r)},1573:function(e,t,i){"use strict";i.d(t,"a",function(){return g});var r,n,a,l,s=i(6),o=i(2),c=i(27);function u(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function p(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,i,r,n){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var g=(n=h((r=function(){function e(){u(this,"substringStartPosition",n,this),u(this,"substringLength",a,this),u(this,"unstyledSubstringTextPreview",l,this),this.substringStartPositionOriginal=void 0,this.substringLengthOriginal=void 0}var t=e.prototype;return t.initialize=function(e){var t,i,r={posValue:null!=(t=e[0].substringStartPosition)?t:"",lenValue:null!=(i=e[0].substringLength)?i:""};e.forEach(function(e){var t,i,n,a;r.posValue=r.posValue===(null!=(t=e.substringStartPosition)?t:"")?null!=(i=e.substringStartPosition)?i:"":void 0,r.lenValue=r.lenValue===(null!=(n=e.substringLength)?n:"")?null!=(a=e.substringLength)?a:"":void 0}),this.substringStartPosition=this.substringStartPositionOriginal=r.posValue,this.substringLength=this.substringLengthOriginal=r.lenValue},t.setSubstringStartPosition=function(e){this.substringStartPosition="0"===e?this.substringStartPositionOriginal:e,""===this.substringStartPosition&&(this.substringLength="")},t.setSubstringLength=function(e){"0"===e?this.substringLength=this.substringLengthOriginal:(this.substringLength=e,""===this.substringStartPosition&&(this.substringStartPosition="1"))},t._substringStartPosition=function(e){var t;return null!=(t=this.substringStartPosition)?t:e.substringStartPosition},t._substringLength=function(e){var t;return null!=(t=this.substringLength)?t:e.substringLength},t.getExpression=function(e,t){var i=this._substringStartPosition(t);if(i){var r=this._substringLength(t);return"substring ("+c.EXP_NEWLINE+c.EXP_INDENT1+Object(c.indentExpression)(e,c.EXP_INDENT1)+c.EXP_NEWLINE+c.EXP_INDENT1+";"+c.EXP_NEWLINE+c.EXP_INDENT1+i+c.EXP_NEWLINE+(r?c.EXP_INDENT1+";"+c.EXP_NEWLINE+c.EXP_INDENT1+r+c.EXP_NEWLINE:"")+")"}return e},t._getProperties=function(e){var t=this._substringStartPosition(e),i=this._substringLength(e);return"1"!==t||i||(t=void 0),{substringStartPosition:t||void 0,substringLength:t&&i?i:void 0}},t.hasNonDefaultProperties=function(e){var t=this._getProperties(e),i=t.substringStartPosition,r=t.substringLength;return!!i||!!r},t.getProperties=function(e,t){return Object.assign(e,this._getProperties(t))},function(e,t,i){t&&p(e.prototype,t),i&&p(e,i)}(e,[{key:"substringTextPreviewPrefix",get:function(){if(!this.substringStartPosition)return this.unstyledSubstringTextPreview;var e=Number(this.substringStartPosition)-1;return this.unstyledSubstringTextPreview.substring(0,e)}},{key:"substringTextPreviewStyled",get:function(){if(!this.substringStartPosition)return"";var e=Number(this.substringStartPosition)-1;if(this.substringLength){var t=e+Number(this.substringLength);return this.unstyledSubstringTextPreview.substring(e,t)}return this.unstyledSubstringTextPreview.substring(e)}},{key:"substringTextPreviewSuffix",get:function(){if(!this.substringStartPosition||!this.substringLength)return"";var e=Number(this.substringStartPosition)-1+Number(this.substringLength);return this.unstyledSubstringTextPreview.substring(e)}},{key:"isDirty",get:function(){return this.substringStartPositionOriginal!==this.substringStartPosition||this.substringLengthOriginal!==this.substringLength}}]),e}()).prototype,"substringStartPosition",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),a=h(r.prototype,"substringLength",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),l=h(r.prototype,"unstyledSubstringTextPreview",[s.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Object(o.getString)("substringPlaceholder")}}),h(r.prototype,"substringTextPreviewPrefix",[s.computed],Object.getOwnPropertyDescriptor(r.prototype,"substringTextPreviewPrefix"),r.prototype),h(r.prototype,"substringTextPreviewStyled",[s.computed],Object.getOwnPropertyDescriptor(r.prototype,"substringTextPreviewStyled"),r.prototype),h(r.prototype,"substringTextPreviewSuffix",[s.computed],Object.getOwnPropertyDescriptor(r.prototype,"substringTextPreviewSuffix"),r.prototype),h(r.prototype,"isDirty",[s.computed],Object.getOwnPropertyDescriptor(r.prototype,"isDirty"),r.prototype),r)},1574:function(e,t,i){"use strict";i.d(t,"a",function(){return b});var r,n,a,l,s,o=i(6),c=i(27),u=i(34);function p(e,t,i,r){i&&Object.defineProperty(e,t,{enumerable:i.enumerable,configurable:i.configurable,writable:i.writable,value:i.initializer?i.initializer.call(r):void 0})}function h(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,i,r,n){var a={};return Object.keys(r).forEach(function(e){a[e]=r[e]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=i.slice().reverse().reduce(function(i,r){return r(e,t,i)||i},a),n&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(n):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var b=(n=g((r=function(){function e(){p(this,"isReplaceValuesChecked",n,this),p(this,"isReplaceNullsChecked",a,this),p(this,"replaceValuesValue",l,this),p(this,"replaceNullsValue",s,this),this.isReplaceValuesCheckedOriginal=void 0,this.isReplaceNullsCheckedOriginal=void 0,this.replaceValuesValueOriginal=void 0,this.replaceNullsValueOriginal=void 0}var t=e.prototype;return t.initialize=function(e){var t,i,r=Object(u.a)(e[0].moserObject),n={valuesChecked:0,valuesUnchecked:0,valuesValue:null!=(t=e[0].replaceValuesValue)?t:r,nullChecked:0,nullUnchecked:0,nullValue:null!=(i=e[0].replaceNullsValue)?i:r};e.forEach(function(e){var t,i;n.valuesChecked+=!0===e.isReplaceValuesChecked?1:0,n.valuesUnchecked+=!0!==e.isReplaceValuesChecked?1:0,void 0!==n.valuesValue&&n.valuesValue!==(null!=(t=e.replaceValuesValue)?t:r)&&(n.valuesValue=void 0),n.nullChecked+=!0===e.isReplaceNullsChecked?1:0,n.nullUnchecked+=!0!==e.isReplaceNullsChecked?1:0,void 0!==n.nullValue&&n.nullValue!==(null!=(i=e.replaceNullsValue)?i:r)&&(n.nullValue=void 0)}),n.valuesUnchecked===e.length?this.isReplaceValuesCheckedOriginal=!1:n.valuesChecked===e.length&&(this.isReplaceValuesCheckedOriginal=!0),n.nullUnchecked===e.length?this.isReplaceNullsCheckedOriginal=!1:n.nullChecked===e.length&&(this.isReplaceNullsCheckedOriginal=!0),this.isReplaceValuesChecked=this.isReplaceValuesCheckedOriginal,this.isReplaceNullsChecked=this.isReplaceNullsCheckedOriginal,this.replaceValuesValue=this.replaceValuesValueOriginal=n.valuesValue,this.replaceNullsValue=this.replaceNullsValueOriginal=n.nullValue},t._isReplaceValuesChecked=function(e){var t;return null!=(t=this.isReplaceValuesChecked)?t:e.isReplaceValuesChecked},t._replaceValuesValue=function(e){var t,i;return null!=(t=null!=(i=this.replaceValuesValue)?i:e.replaceValuesValue)?t:Object(u.a)(e.moserObject)},t.getNullIfExpression=function(e,t){if(this._isReplaceValuesChecked(t)){var i=Object(u.k)(t.moserObject)?"'"+this._replaceValuesValue(t)+"'":this._replaceValuesValue(t);return"nullif ("+c.EXP_NEWLINE+c.EXP_INDENT1+Object(c.indentExpression)(e,c.EXP_INDENT1)+c.EXP_NEWLINE+c.EXP_INDENT1+";"+c.EXP_NEWLINE+c.EXP_INDENT1+i+c.EXP_NEWLINE+")"}return e},t._isReplaceNullsChecked=function(e){var t;return null!=(t=this.isReplaceNullsChecked)?t:e.isReplaceNullsChecked},t._replaceNullsValue=function(e){var t,i;return null!=(t=null!=(i=this.replaceNullsValue)?i:e.replaceNullsValue)?t:Object(u.a)(e.moserObject)},t.getReplaceNullsExpression=function(e,t){if(this._isReplaceNullsChecked(t)){var i=Object(u.k)(t.moserObject)?"'"+this._replaceNullsValue(t)+"'":this._replaceNullsValue(t);return"coalesce ("+c.EXP_NEWLINE+c.EXP_INDENT1+Object(c.indentExpression)(e,c.EXP_INDENT1)+c.EXP_NEWLINE+c.EXP_INDENT1+";"+c.EXP_NEWLINE+c.EXP_INDENT1+i+c.EXP_NEWLINE+")"}return e},t.getExpression=function(e,t){return this.getReplaceNullsExpression(this.getNullIfExpression(e,t),t)},t.replaceValuesChecked=function(){!0===this.isReplaceValuesChecked?this.isReplaceValuesChecked=!1:!1===this.isReplaceValuesChecked?this.isReplaceValuesChecked=void 0!==this.isReplaceValuesCheckedOriginal||void 0:this.isReplaceValuesChecked=!0},t.replaceNullsChecked=function(){!0===this.isReplaceNullsChecked?this.isReplaceNullsChecked=!1:!1===this.isReplaceNullsChecked?this.isReplaceNullsChecked=void 0!==this.isReplaceNullsCheckedOriginal||void 0:this.isReplaceNullsChecked=!0},t.updateReplaceValues=function(e){this.isReplaceValuesChecked=!0,this.replaceValuesValue=e||this.replaceValuesValueOriginal},t.updateReplaceNulls=function(e){this.isReplaceNullsChecked=!0,this.replaceNullsValue=e||this.replaceValuesValueOriginal},t.getNullable=function(){return!!this.isReplaceValuesChecked||!this.isReplaceNullsChecked&&null},t._getProperties=function(e){return{isReplaceValuesChecked:this._isReplaceValuesChecked(e),isReplaceNullsChecked:this._isReplaceNullsChecked(e),replaceValuesValue:this._isReplaceValuesChecked(e)?this._replaceValuesValue(e):void 0,replaceNullsValue:this._isReplaceNullsChecked(e)?this._replaceNullsValue(e):void 0}},t.hasNonDefaultProperties=function(e){var t=this._getProperties(e),i=t.isReplaceValuesChecked,r=t.isReplaceNullsChecked;return i||r},t.getProperties=function(e,t){return Object.assign(e,this._getProperties(t))},function(e,t,i){t&&h(e.prototype,t),i&&h(e,i)}(e,[{key:"isDirty",get:function(){return this.isReplaceValuesCheckedOriginal!==this.isReplaceValuesChecked||this.isReplaceNullsCheckedOriginal!==this.isReplaceNullsChecked||this.isReplaceValuesChecked&&this.replaceValuesValueOriginal!==this.replaceValuesValue||this.isReplaceNullsChecked&&this.replaceNullsValueOriginal!==this.replaceNullsValue}}]),e}()).prototype,"isReplaceValuesChecked",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),a=g(r.prototype,"isReplaceNullsChecked",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),l=g(r.prototype,"replaceValuesValue",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),s=g(r.prototype,"replaceNullsValue",[o.observable],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){}}),g(r.prototype,"isDirty",[o.computed],Object.getOwnPropertyDescriptor(r.prototype,"isDirty"),r.prototype),r)},701:function(e,t,i){"use strict";i.r(t);var r=i(1559);t.default={"components/CleanDialog":r}}}]);
- //# sourceMappingURL=clean.js.map
|