@processmaker/modeler 1.69.37 → 1.69.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@processmaker/modeler",
|
|
3
|
-
"version": "1.69.
|
|
3
|
+
"version": "1.69.38",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve --mode development",
|
|
6
6
|
"test:unit": "vue-cli-service test:unit",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@fortawesome/free-brands-svg-icons": "^6.4.2",
|
|
44
44
|
"@fortawesome/free-solid-svg-icons": "^5.11.2",
|
|
45
45
|
"@fortawesome/vue-fontawesome": "^0.1.8",
|
|
46
|
-
"@processmaker/screen-builder": "3.8.
|
|
47
|
-
"@processmaker/vue-form-elements": "0.65.
|
|
48
|
-
"@processmaker/vue-multiselect": "2.3.
|
|
46
|
+
"@processmaker/screen-builder": "3.8.32",
|
|
47
|
+
"@processmaker/vue-form-elements": "0.65.7",
|
|
48
|
+
"@processmaker/vue-multiselect": "2.3.1",
|
|
49
49
|
"bootstrap": "^4.3.1",
|
|
50
50
|
"bootstrap-vue": "^2.0.4",
|
|
51
51
|
"bpmn-moddle": "^6.0.0",
|
|
@@ -55523,7 +55523,11 @@ const tY = {
|
|
|
55523
55523
|
return this.dataFormat === "datetime";
|
|
55524
55524
|
},
|
|
55525
55525
|
format() {
|
|
55526
|
-
|
|
55526
|
+
if (this.datepicker) {
|
|
55527
|
+
let O = cT();
|
|
55528
|
+
return /[Hh]{1,2}:[mM]{1,2}/.test(O) || (O = `${O.replace(/[\sHh:msaAzZ]/g, "")} hh:mm A`), O;
|
|
55529
|
+
}
|
|
55530
|
+
return Mx();
|
|
55527
55531
|
},
|
|
55528
55532
|
classList() {
|
|
55529
55533
|
return {
|
|
@@ -99,5 +99,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
99
99
|
`+G._s(Le)+`
|
|
100
100
|
`)])}),0)])])]),G._v(" "),C("table",{staticClass:"vdpTable"},[C("thead",[C("tr",G._l(G.weekdaysSorted,function(Le,ot){return C("th",{key:ot,staticClass:"vdpHeadCell"},[C("span",{staticClass:"vdpHeadCellContent"},[G._v(G._s(Le))])])}),0)]),G._v(" "),C("tbody",{key:G.currentPeriod.year+"-"+G.currentPeriod.month,class:G.directionClass},G._l(G.currentPeriodDates,function(Le,ot){return C("tr",{key:ot,staticClass:"vdpRow"},G._l(Le,function(Mt){return C("td",{key:Mt.dateKey,staticClass:"vdpCell",class:{selectable:G.editable&&!Mt.disabled,selected:Mt.selected,disabled:Mt.disabled,today:Mt.today,outOfRange:Mt.outOfRange},attrs:{"data-id":Mt.dateKey},on:{click:function(mn){G.editable&&G.selectDateItem(Mt)}}},[G._t("cellContent",function(){return[C("div",{staticClass:"vdpCellContent"},[G._v(G._s(Mt.date.getDate()))])]},{item:Mt})],2)}),0)}),0)]),G._v(" "),G.pickTime&&G.currentTime?C("div",{staticClass:"vdpTimeControls"},[C("span",{staticClass:"vdpTimeCaption"},[G._v(G._s(G.setTimeCaption))]),G._v(" "),C("div",{staticClass:"vdpTimeUnit"},[C("pre",[C("span",[G._v(G._s(G.currentTime.hoursFormatted))]),C("br")]),G._v(" "),C("input",{staticClass:"vdpHoursInput",attrs:{type:"number",pattern:"\\d*",disabled:!G.editable},domProps:{value:G.currentTime.hoursFormatted},on:{input:function(Le){return Le.preventDefault(),G.inputHours.apply(null,arguments)},focusin:G.onTimeInputFocus}})]),G._v(" "),G.pickMinutes?C("span",{staticClass:"vdpTimeSeparator"},[G._v(":")]):G._e(),G._v(" "),G.pickMinutes?C("div",{staticClass:"vdpTimeUnit"},[C("pre",[C("span",[G._v(G._s(G.currentTime.minutesFormatted))]),C("br")]),G._v(" "),G.pickMinutes?C("input",{staticClass:"vdpMinutesInput",attrs:{type:"number",pattern:"\\d*",disabled:!G.editable},domProps:{value:G.currentTime.minutesFormatted},on:{input:function(Le){return G.inputTime("setMinutes",Le)},focusin:G.onTimeInputFocus}}):G._e()]):G._e(),G._v(" "),G.pickSeconds?C("span",{staticClass:"vdpTimeSeparator"},[G._v(":")]):G._e(),G._v(" "),G.pickSeconds?C("div",{staticClass:"vdpTimeUnit"},[C("pre",[C("span",[G._v(G._s(G.currentTime.secondsFormatted))]),C("br")]),G._v(" "),G.pickSeconds?C("input",{staticClass:"vdpSecondsInput",attrs:{type:"number",pattern:"\\d*",disabled:!G.editable},domProps:{value:G.currentTime.secondsFormatted},on:{input:function(Le){return G.inputTime("setSeconds",Le)},focusin:G.onTimeInputFocus}}):G._e()]):G._e(),G._v(" "),G.use12HourClock?C("button",{staticClass:"vdp12HourToggleBtn",attrs:{type:"button",disabled:!G.editable},on:{click:function(Le){return G.set12HourClock(G.currentTime.isPM?"AM":"PM")}}},[G._v(`
|
|
101
101
|
`+G._s(G.currentTime.isPM?"PM":"AM")+`
|
|
102
|
-
`)]):G._e()]):G._e()])]):G._e()])],2)},Gt=!(ur=[]),re=zi=_t=null,Pe=typeof(Xt=Xt)=="function"?Xt.options:Xt,At&&(Pe.render=At,Pe.staticRenderFns=ur,Pe._compiled=!0),Gt&&(Pe.functional=!0),zi&&(Pe._scopeId="data-v-"+zi),re?(Xe=function(G){(G=G||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(G=__VUE_SSR_CONTEXT__),_t&&_t.call(this,G),G&&G._registeredComponents&&G._registeredComponents.add(re)},Pe._ssrRegister=Xe):_t&&(Xe=Se?function(){_t.call(this,(Pe.functional?this.parent:this).$root.$options.shadowRoot)}:_t),Xe&&(Pe.functional?(Pe._injectStyles=Xe,$t=Pe.render,Pe.render=function(G,C){return Xe.call(C),$t(G,C)}):(At=Pe.beforeCreate,Pe.beforeCreate=At?[].concat(At,Xe):[Xe]));var Gt,_t,zi,re,Se,Xe,$t,Pe,ur={exports:Xt,options:Pe};Ee.default=ur.exports}],Y={},w.m=$,w.c=Y,w.d=function(_e,Ee,At){w.o(_e,Ee)||Object.defineProperty(_e,Ee,{enumerable:!0,get:At})},w.r=function(_e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_e,"__esModule",{value:!0})},w.t=function(_e,Ee){if(1&Ee&&(_e=w(_e)),8&Ee||4&Ee&&typeof _e=="object"&&_e&&_e.__esModule)return _e;var At=Object.create(null);if(w.r(At),Object.defineProperty(At,"default",{enumerable:!0,value:_e}),2&Ee&&typeof _e!="string")for(var Tt in _e)w.d(At,Tt,(function(cr){return _e[cr]}).bind(null,Tt));return At},w.n=function(_e){var Ee=_e&&_e.__esModule?function(){return _e.default}:function(){return _e};return w.d(Ee,"a",Ee),Ee},w.o=function(_e,Ee){return Object.prototype.hasOwnProperty.call(_e,Ee)},w.p="",w(w.s=2).default;function w(_e){var Ee;return(Y[_e]||(Ee=Y[_e]={i:_e,l:!1,exports:{}},$[_e].call(Ee.exports,Ee,Ee.exports,w),Ee.l=!0,Ee)).exports}var $,Y})})($6);var EV=$6.exports,AV=Mo({extends:Lx(EV),methods:{addCloseEvents(){this.closeEventListener||(this.closeEventListener=O=>this.inspectCloseEvent(O),["click","keyup"].forEach(O=>document.addEventListener(O,this.closeEventListener)))},removeCloseEvents(){this.closeEventListener||(this.closeEventListener=O=>this.inspectCloseEvent(O),["click","keyup"].forEach(O=>document.addEventListener(O,this.closeEventListener)))}}},null,null,!1,null,null,null,null);const zV=AV.exports,oX="",uX="",DV=Yl(),jx=["YYYY-MM-DD","MM/DD/YYYY",Kr.ISO_8601];xu.register("date_or_mustache",function(O,g,w){let $=null;try{$=xo.render(O,{})}catch{$=O}return O!==$||O===""?!0:Kr(O,jx,!0).isValid()},"Must be YYYY-MM-DD, ISO8601, or mustache syntax");const PV={components:{"date-pick":zV,RequiredAsterisk:Dp},mixins:[DV,dl,zp],props:{name:String,placeholder:String,label:String,error:[String,Boolean],helper:String,dataFormat:String,value:[String,Boolean,Date],ariaLabel:String,tabIndex:Number,inputClass:{type:[String,Array,Object],default:"form-control"},dataTest:{type:String,default:"date-picker"},disabled:{type:Boolean,default:!1},minDate:{type:[String,Boolean],default:!1},maxDate:{type:[String,Boolean],default:!1},transientData:{type:Object,default:()=>({})}},data(){return Kr.tz.setDefault(m0()),{validatorErrors:[],date:"",onChangeDate:""}},computed:{datePickerConfig(){return{format:this.format,displayFormat:this.format,pickTime:this.datepicker,parseDate:this.parsingInputDate,editable:!this.disabled,use12HourClock:this.datepicker,isDateDisabled:this.checkMinMaxDateDisabled}},inputAttributes(){return{class:`${this.inputClass}`,placeholder:this.placeholder,name:this.name,"aria-label":this.ariaLabel,"tab-index":this.tabIndex,disabled:this.disabled,readonly:this.isReadOnly}},datepicker(){return this.dataFormat==="datetime"},format(){
|
|
102
|
+
`)]):G._e()]):G._e()])]):G._e()])],2)},Gt=!(ur=[]),re=zi=_t=null,Pe=typeof(Xt=Xt)=="function"?Xt.options:Xt,At&&(Pe.render=At,Pe.staticRenderFns=ur,Pe._compiled=!0),Gt&&(Pe.functional=!0),zi&&(Pe._scopeId="data-v-"+zi),re?(Xe=function(G){(G=G||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(G=__VUE_SSR_CONTEXT__),_t&&_t.call(this,G),G&&G._registeredComponents&&G._registeredComponents.add(re)},Pe._ssrRegister=Xe):_t&&(Xe=Se?function(){_t.call(this,(Pe.functional?this.parent:this).$root.$options.shadowRoot)}:_t),Xe&&(Pe.functional?(Pe._injectStyles=Xe,$t=Pe.render,Pe.render=function(G,C){return Xe.call(C),$t(G,C)}):(At=Pe.beforeCreate,Pe.beforeCreate=At?[].concat(At,Xe):[Xe]));var Gt,_t,zi,re,Se,Xe,$t,Pe,ur={exports:Xt,options:Pe};Ee.default=ur.exports}],Y={},w.m=$,w.c=Y,w.d=function(_e,Ee,At){w.o(_e,Ee)||Object.defineProperty(_e,Ee,{enumerable:!0,get:At})},w.r=function(_e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_e,"__esModule",{value:!0})},w.t=function(_e,Ee){if(1&Ee&&(_e=w(_e)),8&Ee||4&Ee&&typeof _e=="object"&&_e&&_e.__esModule)return _e;var At=Object.create(null);if(w.r(At),Object.defineProperty(At,"default",{enumerable:!0,value:_e}),2&Ee&&typeof _e!="string")for(var Tt in _e)w.d(At,Tt,(function(cr){return _e[cr]}).bind(null,Tt));return At},w.n=function(_e){var Ee=_e&&_e.__esModule?function(){return _e.default}:function(){return _e};return w.d(Ee,"a",Ee),Ee},w.o=function(_e,Ee){return Object.prototype.hasOwnProperty.call(_e,Ee)},w.p="",w(w.s=2).default;function w(_e){var Ee;return(Y[_e]||(Ee=Y[_e]={i:_e,l:!1,exports:{}},$[_e].call(Ee.exports,Ee,Ee.exports,w),Ee.l=!0,Ee)).exports}var $,Y})})($6);var EV=$6.exports,AV=Mo({extends:Lx(EV),methods:{addCloseEvents(){this.closeEventListener||(this.closeEventListener=O=>this.inspectCloseEvent(O),["click","keyup"].forEach(O=>document.addEventListener(O,this.closeEventListener)))},removeCloseEvents(){this.closeEventListener||(this.closeEventListener=O=>this.inspectCloseEvent(O),["click","keyup"].forEach(O=>document.addEventListener(O,this.closeEventListener)))}}},null,null,!1,null,null,null,null);const zV=AV.exports,oX="",uX="",DV=Yl(),jx=["YYYY-MM-DD","MM/DD/YYYY",Kr.ISO_8601];xu.register("date_or_mustache",function(O,g,w){let $=null;try{$=xo.render(O,{})}catch{$=O}return O!==$||O===""?!0:Kr(O,jx,!0).isValid()},"Must be YYYY-MM-DD, ISO8601, or mustache syntax");const PV={components:{"date-pick":zV,RequiredAsterisk:Dp},mixins:[DV,dl,zp],props:{name:String,placeholder:String,label:String,error:[String,Boolean],helper:String,dataFormat:String,value:[String,Boolean,Date],ariaLabel:String,tabIndex:Number,inputClass:{type:[String,Array,Object],default:"form-control"},dataTest:{type:String,default:"date-picker"},disabled:{type:Boolean,default:!1},minDate:{type:[String,Boolean],default:!1},maxDate:{type:[String,Boolean],default:!1},transientData:{type:Object,default:()=>({})}},data(){return Kr.tz.setDefault(m0()),{validatorErrors:[],date:"",onChangeDate:""}},computed:{datePickerConfig(){return{format:this.format,displayFormat:this.format,pickTime:this.datepicker,parseDate:this.parsingInputDate,editable:!this.disabled,use12HourClock:this.datepicker,isDateDisabled:this.checkMinMaxDateDisabled}},inputAttributes(){return{class:`${this.inputClass}`,placeholder:this.placeholder,name:this.name,"aria-label":this.ariaLabel,"tab-index":this.tabIndex,disabled:this.disabled,readonly:this.isReadOnly}},datepicker(){return this.dataFormat==="datetime"},format(){if(this.datepicker){let O=h0();return/[Hh]{1,2}:[mM]{1,2}/.test(O)||(O=`${O.replace(/[\sHh:msaAzZ]/g,"")} hh:mm A`),O}return Ap()},classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error}},errors(){return this.error?[...this.validatorErrors,this.error]:this.validatorErrors}},watch:{validator:{deep:!0,handler(){this.validatorErrors=this.validator&&this.validator.errors.get(this.name)?this.validator.errors.get(this.name):[]}},value(O){this.updateValue(O)}},created(){xu.register("after_min_date",(O,g,w)=>this.parseDate(O)>=this.parseDate(this.minDate),"Must be after or equal Minimum Date"),this.updateValue(this.value)},methods:{updateValue(O){if(O==null){this.$set(this,"date","");return}if(O&&O.length>0){const g=Kr.tz(O,jx,!0,m0());if(!g.isValid())return"";this.date=g.format(this.format)}},parseDate(O){let g=!1;if(typeof O=="string"&&O!==""){try{g=xo.render(O,this.validationData)}catch{g=O}g=Kr(g,jx,!0),g.isValid()||(g=!1)}return g},parseDateToDate(O){let g="";if(typeof O=="string"&&O!==""){try{g=xo.render(O,this.validationData)}catch{g=O}g=Kr(g,jx,!0),g.isValid()?g=g.toDate():g=""}return g},parsingInputDate(O){const g=Kr(O,this.format).local(!0);return g.isValid()?g.toDate():""},checkMinMaxDateDisabled(O){const g=this.minDate?this.parseDateToDate(this.minDate):"",w=this.maxDate?this.parseDateToDate(this.maxDate):"";if(!(g.length===0&&w.length===0)){if(g&&w)return!(O>=g&&O<=w);if(g&&w.length===0)return O<g;if(g.length===0&&w)return O>w}},isDateAndValueTheSame(){if(!this.date&&!this.value)return!0;const O=Kr(this.date,this.datePickerConfig.format),g=this.value?Kr(this.value):null,w=this.dataFormat!=="datetime"?"day":null;return O.isSame(g,w)},submitDate(){if(this.onChangeDate!==""&&(this.date=this.onChangeDate),this.value&&!this.date&&this.$emit("input",""),this.isDateAndValueTheSame())return;const O=this.dataFormat==="date"?Kr.utc(this.date,this.datePickerConfig.format):Kr(this.date,this.datePickerConfig.format);if(O.isBefore(this.parseDateToDate(this.minDate))||O.isAfter(Kr(this.parseDateToDate(this.maxDate))))return null;if(this.dataFormat==="datetime"){const g=Kr.tz(O,m0());this.$emit("input",g.toISOString())}else this.$emit("input",O.toISOString())},onOpen(O){this.onChangeDate="",typeof O=="function"&&O()},clear(){this.date="",this.$emit("input","")},onChangeHandler(O){if(O){const g=Kr(O,[...jx,this.format],!0);g.isValid()&&(this.onChangeDate=g.format(this.format),this.submitDate())}}}};var RV=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group position-relative"},[w("required-asterisk"),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}],staticClass:"mr-2"},[g._v(g._s(g.label))]),w("date-pick",g._b({staticClass:"datePicker",attrs:{format:g.format,"data-test":g.dataTest,"input-attributes":g.inputAttributes},on:{input:g.submitDate},scopedSlots:g._u([{key:"default",fn:function({open:$,inputValue:Y}){return[w("input",g._b({class:[g.classList,"form-control"],attrs:{type:"text"},domProps:{value:Y},on:{focus:function(_e){return g.onOpen($)},click:function(_e){return g.onOpen($)},change:function(_e){return g.onChangeHandler(_e.target.value)}}},"input",g.inputAttributes,!1)),g.date&&!g.isReadOnly?w("button",{staticClass:"vdpClearInput",attrs:{type:"button"},on:{click:g.clear}}):g._e()]}}]),model:{value:g.date,callback:function($){g.date=$},expression:"date"}},"date-pick",g.datePickerConfig,!1)),g.errors.length>0?w("div",{staticClass:"invalid-feedback d-block"},g._l(g.errors,function($,Y){return w("div",{key:Y},[g._v(g._s($))])}),0):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)},MV=[],BV=Mo(PV,RV,MV,!1,null,null,null,null);const N6=BV.exports,sX="",IV={props:["transientData","value","name","config","selected"],data(){return{initiallyOpen:!!this.config.initiallyOpen,items:[],fontAwesomeIcon:!1,svgIcon:!1}},watch:{value:{handler(){this.items=this.value},immediate:!0},items(){this.$emit("input",this.items)}},mounted(){this.getAccordionIcon()},methods:{getAccordionIcon(){this.config.icon.includes("svg")?(this.fontAwesomeIcon=!1,this.svgIcon=!0):(this.fontAwesomeIcon=!0,this.svgIcon=!1)}}};var FV=function(){var g=this,w=g._self._c;return w("div",[w("button",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:`collapse-${g.config.name||g.config.label}`,expression:"`collapse-${config.name || config.label}`"}],staticClass:"accordion-button text-left card-header d-flex align-items-center w-100 pl-3",attrs:{id:`accordion-button-${g.config.name||g.config.label}`}},[g.config.icon?w("div",[g.fontAwesomeIcon?w("i",{staticClass:"fas mr-1 fa-fw",class:`fa-${g.config.icon}`}):g._e(),g.svgIcon?w("img",{staticClass:"mr-1",attrs:{src:g.config.icon,alt:g.config.name+" icon",width:"18px"}}):g._e()]):g._e(),w("span",{staticClass:"ml-1 mr-auto"},[g._v(g._s(g.config.label))]),w("i",{staticClass:"when-opened fas fa-chevron-down accordion-arrow ml-auto"}),w("i",{staticClass:"when-closed fas fa-chevron-right accordion-arrow ml-auto"})]),w("b-collapse",{attrs:{visible:g.initiallyOpen,id:`collapse-${g.config.name||g.config.label}`,accordion:`accordion-${g.config.name}`}},g._l(g.items,function($){return w("div",{key:$.config.name},[w($.component,g._b({tag:"component",staticClass:"pl-3 pr-3 pt-2 pb-2 border-bottom m-0",model:{value:g.transientData[$.config.name],callback:function(Y){g.$set(g.transientData,$.config.name,Y)},expression:"transientData[element.config.name]"}},"component",$.config,!1))],1)}),0)],1)},$V=[],NV=Mo(IV,FV,$V,!1,null,"44540e3d",null,null);const L6=NV.exports,lX="",LV=Yl(),HV={components:{Editor:I6},mixins:[LV,dl],inheritAttrs:!1,props:["error","name","helper","controlClass","content","validationData","label","renderVarHtml"],data(){return{originalEscapeFn:null,customFunctions:{},editorSettings:{inline:!0,menubar:!1,plugins:["link","lists"],toolbar:`undo redo | link | styleselect | bold italic forecolor |
|
|
103
103
|
alignleft aligncenter alignright alignjustify | bullist numlist outdent indent`,skin:!1,relative_urls:!1,convert_urls:!1,remove_script_host:!1}}},computed:{classList(){const O={"is-invalid":this.validator&&this.validator.errorCount||this.error};return this.controlClass&&(O[this.controlClass]=!0),O},rendered(){if(!this.validationData)return this.content;const O=this.makeProxyData();this.overwriteMustacheEscape();try{return this.renderVarHtml?xo.render(this.content,O):xo.render(this.content,O)}catch{return this.renderVarHtml?this.renderVarName:this.content}finally{xo.escape=this.originalEscapeFn}}},methods:{overwriteMustacheEscape(){this.originalEscapeFn=xo.escape,xo.escape=this.mustacheEscapeFn},registerCustomFunction(O,g){this.customFunctions[O]=g},mustacheEscapeFn(O){const g=rD(O);return this.renderVarHtml?g:this.originalEscapeFn(g)}}};var VV=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("div",{class:g.classList},[g.$attrs.disabled?w("div",{domProps:{innerHTML:g._s(g.rendered)}}):w("editor",g._g(g._b({attrs:{value:g.rendered,init:g.editorSettings}},"editor",g.$attrs,!1),g.$listeners))],1),g.validator&&g.validator.errorCount||g.error?w("div",{staticClass:"invalid-feedback"},[g._l(g.validator.errors.get(this.name),function($,Y){return w("div",{key:Y},[g._v(" "+g._s($)+" ")])}),g.error?w("div",[g._v(g._s(g.error))]):g._e()],2):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()])},jV=[],qV=Mo(HV,VV,jV,!1,null,"ff7394a2",null,null);const oD=qV.exports,cX="",UV={extends:oD};var WV=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("div",{class:g.classList},[w("div",{domProps:{innerHTML:g._s(g.rendered)}})]),g.validator&&g.validator.errorCount||g.error?w("div",{staticClass:"invalid-feedback"},[g._l(g.validator.errors.get(this.name),function($,Y){return w("div",{key:Y},[g._v(g._s($))])}),g.error?w("div",[g._v(g._s(g.error))]):g._e()],2):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()])},GV=[],KV=Mo(UV,WV,GV,!1,null,"6b2bf4c0",null,null);const H6=KV.exports;function YV(O){var g=O==null?0:O.length;return g?O[g-1]:void 0}var XV=YV;const JV=Lx(XV),fX="",g0={minute:"minute",hour:"hour",day:"day",month:"month"},ZV={mixins:[dl],props:{value:{type:String,default:"PT1M"},error:null,name:String,label:String,helper:String},data(){return{repeat:null,periodicity:null,periods:[{name:g0.minute,value:"M",isTime:!0},{name:g0.hour,value:"H",isTime:!0},{name:g0.day,value:"D"},{name:g0.month,value:"M"}]}},watch:{value:{handler(O){this.periodicity=this.getPeriodFromDelayString(O),this.repeat=this.getRepeatNumberFromDelayString(O)},immediate:!0},durationExpression:{handler(O){this.$emit("input",O)},immediate:!0}},computed:{classList(){let O={"is-invalid":this.validator&&this.validator.errorCount||this.error};return this.controlClass&&(O[this.controlClass]=!0),O},durationExpression(){return!this.repeat||!this.periodicity?"":this.periodicity.isTime?`PT${this.repeat}${this.periodicity.value}`:`P${this.repeat}${this.periodicity.value}`}},methods:{getPeriodFromDelayString(O){const g=this.isTimePeriod(O),w=JV(O);if(w==="M"){const $=g?g0.minute:g0.month;return this.periods.find(({name:Y})=>Y===$)}return this.periods.find(({value:$})=>$===w)},isTimePeriod(O){return O[1]==="T"},getRepeatNumberFromDelayString(O){const g=O.match(/\d+/);return g&&g[0]}}};var QV=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("label",[g._v(g._s(g.label))]),w("div",{staticClass:"input-group"},[w("input",{directives:[{name:"model",rawName:"v-model",value:g.repeat,expression:"repeat"}],staticClass:"form-control control repeat",class:g.classList,attrs:{type:"number",min:"1"},domProps:{value:g.repeat},on:{input:function($){$.target.composing||(g.repeat=$.target.value)}}}),w("div",{staticClass:"input-group-append"},[w("select",{directives:[{name:"model",rawName:"v-model",value:g.periodicity,expression:"periodicity"}],staticClass:"form-control custom-select",class:g.classList,on:{change:function($){var Y=Array.prototype.filter.call($.target.options,function(_e){return _e.selected}).map(function(_e){var Ee="_value"in _e?_e._value:_e.value;return Ee});g.periodicity=$.target.multiple?Y:Y[0]}}},g._l(g.periods,function($){return w("option",{key:$.name,domProps:{value:$}},[g._v(g._s(g.$t($.name)))])}),0)]),g.validator&&g.validator.errorCount?g._l(g.validator.errors.all(),function($,Y){return w("div",{key:Y,staticClass:"invalid-feedback"},g._l($,function(_e,Ee){return w("div",{key:Ee},[g._v(" "+g._s(_e)+" ")])}),0)}):g._e(),g.error?w("div",{staticClass:"invalid-feedback"},[g._v(g._s(g.error))]):g._e()],2),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()])},ej=[],tj=Mo(ZV,QV,ej,!1,null,null,null,null);const V6=tj.exports,rj={inheritAttrs:!1,mixins:[Yl(),dl],props:["value","optionValue","optionContent","label","error","helper","name","controlClass","placeholder"],computed:{classList(){return{"is-invalid border border-danger":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}}}};var nj=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]),w("multiselect",g._g(g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],class:g.classList,attrs:{value:g.value,name:g.name,"track-by":g.optionValue,label:g.optionContent,placeholder:g.placeholder?g.placeholder:g.$t("type here to search")}},"multiselect",g.$attrs,!1),g.$listeners),[w("template",{slot:"noResult"},[g._v(" "+g._s(g.$t("No elements found. Consider changing the search query."))+" ")]),w("template",{slot:"noOptions"},[g._v(" "+g._s(g.$t("No Data Available"))+" ")])],2),g.validator&&g.validator.errorCount||g.error?w("div",{staticClass:"invalid-feedback"},[g._l(g.validator.errors.get(this.name),function($,Y){return w("div",{key:Y},[g._v(g._s($))])}),g.error?w("div",[g._v(g._s(g.error))]):g._e()],2):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)},aj=[],ij=Mo(rj,nj,aj,!1,null,null,null,null);const j6=ij.exports,oj=Yl(),uj={inheritAttrs:!1,components:{DisplayErrors:mT},mixins:[oj,dl],props:{value:{type:[String,Array,Object]},optionValue:String,optionContent:String,options:Array,label:{type:String,default:""},error:String,helper:String,name:String,controlClass:{type:[String,Array,Object]},placeholder:String,onlyKey:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0}},data(){return{selected:null,reemitInput:!1}},computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},isError(){return this.error}},watch:{value:{immediate:!0,handler(O,g){if(typeof O>"u"||O===null||!Array.isArray(O)||O.length<=0)return;let w=typeof O[0]=="object"?JSON.stringify(this.valueToUseForEmit(O[0])):O[0],$=typeof O[0]=="object"?JSON.stringify(O[0]):O[0];if(w===$&&JSON.stringify(O)===JSON.stringify(g)&&!this.reemitInput)return;this.reemitInput=!1;let Y=[];if(O.forEach(_e=>{let Ee=this.options.find(At=>JSON.stringify(this.keyValue(At))===JSON.stringify(this.keyValue(_e)));Ee&&Y.push(Ee)}),this.multiple){let _e=[];O.map(Ee=>{_e.push(this.valueToUseForEmit(Ee))}),this.$emit("input",_e),this.selected=Y}else this.$emit("input",this.valueToUseForEmit(O[0])),this.selected=Y.length>0?Y[0]:[]}}},methods:{setReemit:function(O){this.reemitInput=O},valueToUseForEmit:function(O){return this.onlyKey?typeof O.value>"u"?O:typeof O.value=="object"?O.value[this.optionValue]:O.value:typeof O.value=="object"?O.value:O},valueType:function(O){return typeof O!="object"?"scalar":typeof O.value=="object"?"nested":"object"},keyValue:function(O){if(this.onlyKey)switch(this.valueType(O)){case"scalar":return O;case"object":return O[this.optionValue];case"nested":return O.value[this.optionValue];default:return O}else switch(this.valueType(O)){case"scalar":return null;case"object":return O;case"nested":return O.value;default:return O}}}};var sj=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[g.label?w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]):g._e(),w("multiselect",g._g(g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],class:{"border border-danger":g.isError},attrs:{name:g.name,multiple:g.multiple,options:g.options,"track-by":g.optionValue,label:g.optionContent,placeholder:g.placeholder?g.placeholder:g.$t("type here to search")},model:{value:g.selected,callback:function($){g.selected=$},expression:"selected"}},"multiselect",g.$attrs,!1),g.$listeners),[w("template",{slot:"noResult"},[g._v(" "+g._s(g.$t("No elements found. Consider changing the search query."))+" ")]),w("template",{slot:"noOptions"},[g._v(" "+g._s(g.$t("No Data Available"))+" ")])],2),g.isError?w("display-errors",{staticClass:"d-block",attrs:{name:g.name,error:g.error}}):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)},lj=[],cj=Mo(uj,sj,lj,!1,null,null,null,null);const q6=cj.exports,fj=Yl(),vj={props:{bootstrapComponent:{type:String,default:"b-form-tags"},bootstrapConfig:{type:String,default:"{}"},value:{default:null},name:{type:String,default:null},label:{type:String,default:""},error:{}},mixins:[fj],data(){return{errorMessage:""}},computed:{model:{get(){return this.value},set(O){this.$emit("input",O)}},bootstrapConfigObject(){let O={};try{O=JSON.parse(this.bootstrapConfig)}catch{O={}}let g=null;return typeof this.error=="string"&&this.error.length>0&&(this.errorMessage=this.error,g=!1),O.state=g,O}}};var dj=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]),w(g.bootstrapComponent,g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],tag:"component",model:{value:g.model,callback:function($){g.model=$},expression:"model"}},"component",g.bootstrapConfigObject,!1)),w("b-form-invalid-feedback",{attrs:{id:"input-live-feedback"}},[g._v(" "+g._s(g.errorMessage)+" ")])],1)},mj=[],hj=Mo(vj,dj,mj,!1,null,null,null,null);const U6=hj.exports,gj={props:{form:{type:String,default:""},formConfig:{type:Array,default:()=>[]},bootstrapComponent:{type:String,default:"b-modal"},bootstrapConfig:{type:String,default:"{}"},value:{default:null},validationData:{default:null},name:{type:String,default:null},label:{type:String,default:""}},data(){return{show:!1}},mounted(){},computed:{wrapperConfig(){const O=[];return typeof this.form=="string"&&this.form.trim()!==""&&(O[this.form]=this.formConfig[this.form]),O},wrapperModel:{get(){return this.validationData},set(O){Object.keys(O).forEach(g=>{this.validationData&&this.$set(this.validationData,g,O[g])})}},bootstrapConfigObject(){let O={};try{O=JSON.parse(this.bootstrapConfig)}catch{O={}}return O}}};var pj=function(){var g=this,w=g._self._c;return w("div",[w("b-button",{on:{click:function($){g.show=!g.show}}},[g._v(g._s(g.label))]),g.form?w("div",[w(g.bootstrapComponent,g._b({tag:"component",model:{value:g.show,callback:function($){g.show=$},expression:"show"}},"component",g.bootstrapConfigObject,!1),[w("vue-form-renderer",{attrs:{page:g.form,config:g.wrapperConfig,"current-page":g.form},model:{value:g.wrapperModel,callback:function($){g.wrapperModel=$},expression:"wrapperModel"}})],1)],1):g._e()],1)},bj=[],yj=Mo(gj,pj,bj,!1,null,null,null,null);const W6=yj.exports,uD={FormInput:m6,FormCheckbox:h6,FormRadioButtonGroup:p6,FormSelect:y6,FormSelectList:w6,FormTextArea:F6,FormDatePicker:N6,FormAccordion:L6,FormHtmlEditor:oD,FormHtmlViewer:H6,FormDelayTimeControl:V6,FormMultiSelect:j6,FormPlainMultiSelect:q6,RequiredAsterisk:Dp,BFormComponent:U6,BWrapperComponent:W6},G6={DataFormatMixin:zp,hasDefaultOptionKeyMixin:hT,ProxyDataMixin:eD,ValidationMixin:dl};function xj(O){if(!this._processMakerVueFormElementsInstalled){this._processMakerVueFormElementsInstalled=!0;for(const g in uD){const w=uD[g].name??g.replace(/^.*[\\/]/,"").replace(/\.[^/.]+$/,"");O.component(w,uD[g])}for(const g in G6)O.mixin(G6[g].name)}}const _j={install:xj};In.BFormComponent=U6,In.BWrapperComponent=W6,In.DataFormatMixin=zp,In.FormAccordion=L6,In.FormCheckbox=h6,In.FormDatePicker=N6,In.FormDelayTimeControl=V6,In.FormHtmlEditor=oD,In.FormHtmlViewer=H6,In.FormInput=m6,In.FormMultiSelect=j6,In.FormPlainMultiSelect=q6,In.FormRadioButtonGroup=p6,In.FormSelect=y6,In.FormSelectList=w6,In.FormTextArea=F6,In.ProxyDataMixin=eD,In.RequiredAsterisk=Dp,In.ValidationMixin=dl,In.dateUtils=o7,In.default=_j,In.formatIfDate=rD,In.getLang=v6,In.getTimezone=m0,In.getUserDateFormat=Ap,In.getUserDateTimeFormat=h0,In.hasDefaultOptionKeyMixin=hT,In.isValidDate=d6,Object.defineProperties(In,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|