Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-vue-form

Package Overview
Dependencies
Maintainers
1
Versions
388
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-vue-form - npm Package Compare versions

Comparing version 2.5.1-dev.202109301242 to 2.5.1-dev.202110051346

2

dist/cdn/js/kendo-vue-form.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueForm=t(require("vue"),require("@progress/kendo-licensing")):e.KendoVueForm=t(e.Vue,e.KendoLicensing)}(window,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"classNames",(function(){return r})),n.d(t,"guid",(function(){return o})),n.d(t,"Keys",(function(){return i})),n.d(t,"noop",(function(){return S})),n.d(t,"getListeners",(function(){return C})),n.d(t,"hasListener",(function(){return T})),n.d(t,"canUseDOM",(function(){return u})),n.d(t,"focusFirstFocusableChild",(function(){return s})),n.d(t,"clone",(function(){return P})),n.d(t,"Draggable",(function(){return _})),n.d(t,"cloneArray",(function(){return w})),n.d(t,"cloneValue",(function(){return B})),n.d(t,"cloneObject",(function(){return k})),n.d(t,"cloneDate",(function(){return j})),n.d(t,"getTemplate",(function(){return R})),n.d(t,"templateRendering",(function(){return N})),n.d(t,"getTabIndex",(function(){return H})),n.d(t,"getDefaultSlots",(function(){return F})),n.d(t,"isRtl",(function(){return K})),n.d(t,"getter",(function(){return V})),n.d(t,"setter",(function(){return E})),n.d(t,"validatePackage",(function(){return I}));var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},i={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},u=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),s=function(e){if(e){var t=e.querySelectorAll('input, [tabindex]:not([tabindex="-1"])');t.length&&t[0].focus&&t[0].focus()}},a=n(0),d=function(e,t){return function(n){return t(e(n))}},l=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},c=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},f=function(){},h=function(e){return e.preventDefault()},m=/touch/;function p(e){return e.type.match(m)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var v=function(e){var t=this,n=e.press;void 0===n&&(n=f);var r=e.drag;void 0===r&&(r=f);var o=e.release;void 0===o&&(o=f);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=d(p,n),this._dragHandler=d(p,r),this._releaseHandler=d(p,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(l(document,"mousemove",t._mousemove),l(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){c(document,"mousemove",t._mousemove),c(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(l(document,"pointermove",t._pointermove),l(document,"pointerup",t._pointerup),l(document,"pointercancel",t._pointerup),l(document,"contextmenu",h),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(c(document,"pointermove",t._pointermove),c(document,"pointerup",t._pointerup),c(document,"pointercancel",t._pointerup),c(document,"contextmenu",h),t._releaseHandler(e))}};v.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},v.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},v.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?l(e,"pointerdown",this._pointerdown):(l(e,"mousedown",this._mousedown),this._mouseOnly||(l(e,"touchstart",this._touchstart),l(e,"touchmove",this._touchmove),l(e,"touchend",this._touchend)))},v.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return c(e,"pointerdown",this._pointerdown),c(document,"pointermove",this._pointermove),c(document,"pointerup",this._pointerup),c(document,"contextmenu",h),void c(document,"pointercancel",this._pointerup);c(e,"mousedown",this._mousedown),this._mouseOnly||(c(e,"touchstart",this._touchstart),c(e,"touchmove",this._touchmove),c(e,"touchend",this._touchend))},v.prototype._usePointers=function(){return!this._mouseOnly&&v.supportPointerEvent()},v.prototype.update=function(e){var t=e.press;void 0===t&&(t=f);var n=e.drag;void 0===n&&(n=f);var r=e.release;void 0===r&&(r=f);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=d(p,t),this._dragHandler=d(p,n),this._releaseHandler=d(p,r),this._mouseOnly=o},v.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},v.default=v;var y,g=v;function F(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=a.h,_=(b(y={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new g({press:this.press,drag:this.drag,release:this.release})},setup:O?function(){return{v3:!!O}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:O?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",O?function(){return{v3:!!O}}:void 0),b(y,"render",(function(e){return F(this)})),y),j=function(e){return e?new Date(e.getTime()):null};function P(e){var t={};return k(e,t),t}function k(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=B(r,t[n])}}function B(e,t){if(Array.isArray(e))return w(e);if(e instanceof Date)return j(e);if(e&&"object"==typeof e){var n=t||{};return k(e,n),n}return e}function w(e){return e.map((function(e){return B(e,void 0)}))}var S=function(){},$=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,M={};function V(e){if(M[e])return M[e];var t=[];return e.replace($,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),M[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},M[e]}M.undefined=function(){};var A={};function E(e){if(A[e])return A[e];var t=[];return e.replace($,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),A[e]=function(e,n){for(var r=e,o=t.length-1,i=0;i<o&&r;i++)r=r[t[i]]=r[t[i]]||{};r[t[o]]=n},A[e]}function T(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]}function C(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}A.undefined=function(e){return e};var x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},D=a.h;function N(e,t){if(e){var n=D?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{type:"slot",render:n,listeners:t}:"string"==typeof e||"object"==typeof e||"function"==typeof e&&e.component?{type:"component",render:e,listeners:t}:{type:"renderFunction",render:e,listeners:t}}}function R(e){var t,n,r,o=e.h,i=e.template,u=e.defaultRendering,s=e.defaultSlots,a=e.additionalProps,d=e.additionalListeners,l=e.swapDefaultSlots;if(!i)return u;if(D){var c=u?u.props:{};t=x(x({},L(d)),i.listeners),n=x(x(x({},c),a),t),r=x(x({},n),t)}else{var f=u&&u.componentOptions,h=f?u.componentOptions.listeners:{},m=f?u.componentOptions.propsData:{};t=x(x(x(x({},h),d),L(d)),i.listeners),r={props:n=x(x(x({},m),a),t),on:t}}if("slot"===i.type){var p=i.render({props:n,listeners:t,methods:t,defaultSlots:s});return p?p[0]:void 0}return"renderFunction"===i.type?l?i.render(o,u,s,n,t):i.render(o,u,n,t,s):o(i.render,r,D?function(){return[s]}:[s])}function L(e){if(!e)return e;for(var t={},n=Object.keys(e),r=0;r<n.length;r++){var o=n[r];t["on"+o.charAt(0).toUpperCase()+o.slice(1)]=e[o]}return t}var H=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0};function K(e){return Boolean(u&&e&&"rtl"===getComputedStyle(e).direction)}var U=n(3);function I(e){if(void 0!==U)U.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-form",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1633005379,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormElementVue3=t.FormElement=t.FieldWrapperVue3=t.FieldWrapper=t.FormVue3=t.Form=t.FieldVue3=t.Field=t.FieldArrayVue3=t.FieldArray=void 0;var r=n(5);Object.defineProperty(t,"Field",{enumerable:!0,get:function(){return r.Field}}),Object.defineProperty(t,"FieldVue3",{enumerable:!0,get:function(){return r.FieldVue3}});var o=n(6);Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return o.Form}}),Object.defineProperty(t,"FormVue3",{enumerable:!0,get:function(){return o.FormVue3}});var i=n(7);Object.defineProperty(t,"FieldArray",{enumerable:!0,get:function(){return i.FieldArray}}),Object.defineProperty(t,"FieldArrayVue3",{enumerable:!0,get:function(){return i.FieldArrayVue3}});var u=n(8);Object.defineProperty(t,"FieldWrapper",{enumerable:!0,get:function(){return u.FieldWrapper}}),Object.defineProperty(t,"FieldWrapperVue3",{enumerable:!0,get:function(){return u.FieldWrapperVue3}});var s=n(9);Object.defineProperty(t,"FormElement",{enumerable:!0,get:function(){return s.FormElement}}),Object.defineProperty(t,"FormElementVue3",{enumerable:!0,get:function(){return s.FormElementVue3}})},function(e,t,n){"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldVue3=t.Field=void 0;var a=u(n(0)).h,d=n(1),l={name:"KendoField",props:{value:[String,Number,Boolean,Object,Array],component:[String,Number,Boolean,Object],render:[String,Number,Boolean,Object],validationMessage:String,touched:Boolean,modified:Boolean,visited:Boolean,valid:Boolean,validator:[Function,Array],name:String,id:String},created:function(){if(this.kendoForm)return this.kendoForm.registerField(this.$props.name,this.$props.validator)},inject:{kendoForm:{default:null}},methods:{handleOnChange:function(e){var t=e?void 0!==e.value?e.value:e.target?e.target.value:e.target:e;this.kendoForm.onChange(this.$props.name,{value:t}),this.$emit("change",e)},onNativeComponentChange:function(e){this.kendoForm.onChange(this.$props.name,{value:e.target.value})},handleOnBlur:function(){this.kendoForm.onBlur(this.$props.name)},handleOnFocus:function(){this.kendoForm.onFocus(this.$props.name)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.name,i=n.component,u=(n.validator,n.render,n.id);s(n,["name","component","validator","render","id"]);if(!this.kendoForm)return null;var l=this.kendoForm.values[o];if("string"==typeof i&&"input"===i)return t(i,r(r({attrs:this.$attrs},this.$attrs),{onChange:this.onNativeComponentChange,onBlur:this.handleOnBlur,onFocus:this.handleOnFocus,on:this.v3?void 0:{change:this.handleOnChange,blur:this.handleOnBlur,focus:this.handleOnFocus},domProps:this.v3?void 0:{value:l||""},value:l||""}));if(i){var c=i?d.templateRendering.call(this,i,d.getListeners.call(this)):null;return d.getTemplate.call(this,{h:t,template:c,additionalProps:r({value:l,validationMessage:this.kendoForm.errors[o],touched:this.kendoForm.touchedByField[o],modified:this.kendoForm.modifiedByField[o],visited:this.kendoForm.visitedByField[o],valid:!(Boolean(this.kendoForm.errors[o])&&this.kendoForm.touchedByField[o]),name:o,id:u},this.$attrs),additionalListeners:{change:this.handleOnChange,blur:this.handleOnBlur,focus:this.handleOnFocus}})}}};t.Field=l;var c=l;t.FieldVue3=c},function(e,t,n){"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},s=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,s=i.length;u<s;u++,o++)r[o]=i[u];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.FormVue3=t.Form=void 0;var a=n(1),d=n(2),l=u(n(0)).h,c=n(1),f={name:"KendoForm",props:{renderForm:[Object,Function],initialValues:Object,validator:Function,ignoreModified:Boolean},created:function(){this._accumulatorTimeout=void 0,a.validatePackage(d.packageMetadata),this.form.values=a.clone(this.$props.initialValues)},mounted:function(){this.form.errors=this.getErrors(),this.form.allowSubmit=this.allowSubmit(),this.form.valid=this.isValid()},destroyed:l?void 0:function(){this.onDestroy()},unmounted:function(){this.onDestroy()},data:function(){return{validatorsByField:{},fields:[],unmounted:!1,form:{id:this.id,errors:{},values:{},modifiedByField:{},touchedByField:{},visitedByField:{},valid:!1,modified:!1,touched:!1,visited:!1,submitted:!1,valueGetter:this.valueGetter,allowSubmit:!1,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm,registerField:this.onFieldRegister,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}}},provide:function(){return{kendoForm:this.$data.form}},watch:{"form.values":function(){this.form.errors=this.getErrors(),this.form.allowSubmit=this.allowSubmit(),this.form.valid=this.isValid()},"form.touchedByField":function(e){this.form.touched=this.isFormTouched(e,this.fields),this.form.allowSubmit=this.allowSubmit()},"form.modifiedByField":function(e){this.form.modified=this.isFormModified(e,this.fields),this.form.allowSubmit=this.allowSubmit()},"form.visitedByField":function(e){this.form.visited=this.isFormVisited(e,this.fields)}},methods:{isValid:function(){return this.isFormValid(this.form.errors)},formErrors:function(){if(this.$props.validator)return this.$props.validator(this.form.values,this.valueGetter)},getErrors:function(){var e=this,t={},n=this.validatorsByField;return Object.keys(this.fields).forEach((function(r){if(t[r]="",n[r]){var o=[];n[r].forEach((function(e){Array.isArray(e)?o.push.apply(o,e):o.push(e)})),o.find((function(n){if(n){var o=n(e.valueGetter(r),e.valueGetter,{name:r});if(o)return t[r]=o,!0}return!1}))}})),this.formErrors()&&a.cloneObject(this.formErrors(),t),t},accumulatedForceUpdate:function(){var e=this;this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout),this._accumulatorTimeout=window.setTimeout((function(){e._accumulatorTimeout=void 0}),0)},resetForm:function(){this.form.values=a.clone(this.$props.initialValues),this.id=a.guid(),this.form.touchedByField={},this.form.visitedByField={},this.form.modifiedByField={},this.form.submitted=!1},onReset:function(){this.resetForm()},addField:function(e){this.fields[e]=!0},onSubmit:function(e){var t={},n=this.fields;e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation()),Object.keys(n).forEach((function(e){t[e]=!0})),this.form.visitedByField=r({},t),this.form.touchedByField=r({},t);var o=this.form.values,i=this.isValid(),u=this.isFormModified(this.form.modifiedByField,n);this.$emit("submitclick",{values:o,isValid:i,isModified:u,event:e}),i&&(this.$props.ignoreModified||u)&&(this.form.submitted=!0,this.$emit("submit",o,e))},onChange:function(e,t){var n,o=t.value;this.addField(e),this.form.modifiedByField[e]||(this.form.modifiedByField=r(r({},this.form.modifiedByField),((n={})[e]=!0,n))),this.valueSetter(e,o)},onFocus:function(e){var t;this.form.visitedByField[e]||(this.form.visitedByField=r(r({},this.form.visitedByField),((t={})[e]=!0,t)))},onBlur:function(e){var t;this.form.touchedByField[e]||(this.onFocus(e),this.form.touchedByField=r(r({},this.form.touchedByField),((t={})[e]=!0,t)))},onFieldRegister:function(e,t){var n,o=this;this.addField(e);var i=this.validatorsByField[e]||[],u=i.length;return this.validatorsByField=r(r({},this.validatorsByField),((n={})[e]=s(i,[t]),n)),this.accumulatedForceUpdate(),function(){var t;if(!o._unmounted){var n=s(o.validatorsByField[e]||[]),i=Boolean(n[u]);n[u]=void 0,o.validatorsByField=r(r({},o.validatorsByField),((t={})[e]=n,t)),i&&o.accumulatedForceUpdate()}}},isFormValid:function(e){return!Object.keys(e).some((function(t){return Boolean(e[t])}))},isFormModified:function(e,t){return Object.keys(t).some((function(t){return e[t]}))},isFormHasNotTouched:function(e,t){return Object.keys(t).some((function(t){return!e[t]}))},isFormTouched:function(e,t){return Object.keys(t).some((function(t){return e[t]}))},isFormVisited:function(e,t){return Object.keys(t).some((function(t){return e[t]}))},formHasNotTouched:function(){return this.isFormHasNotTouched(this.form.touchedByField,this.fields)},allowSubmit:function(){return this.formHasNotTouched()&&!this.isValid()||this.isValid()&&(this.$props.ignoreModified||this.isFormModified(this.form.modifiedByField,this.fields))},valueGetter:function(e){return this.form.values[e]},valueSetter:function(e,t){var n;this.form.values=r(r({},this.form.values),((n={})[e]=t,n))},onArrayAction:function(e){var t;this.addField(e),this.form.modifiedByField[e]||(this.form.modifiedByField=r(r({},this.form.modifiedByField),((t={})[e]=!0,t))),this.onBlur(e,!0)},onInsert:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[]);n.splice(t.index,0,t.value),this.valueSetter(e,n)},onUnshift:function(e,t){this.onInsert(e,{value:t.value,index:0})},onPush:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[],[t.value]);this.valueSetter(e,n)},onPop:function(e){this.onArrayAction(e);var t=s(this.valueGetter(e)||[]),n=t.pop();return this.valueSetter(e,t),n},onRemove:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[]),r=n.splice(t.index,1);return this.valueSetter(e,n),r},onReplace:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[]);n.splice(t.index,1,t.value),this.valueSetter(e,n)},onMove:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[]),r=n[t.prevIndex];n.splice(t.prevIndex,1),n.splice(t.nextIndex,0,r),this.valueSetter(e,n)},onDestroy:function(){this.unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){return(l||e)("div",[c.getDefaultSlots(this)])}};t.Form=f;var h=f;t.FormVue3=h},function(e,t,n){"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldArrayVue3=t.FieldArray=void 0;var s=u(n(0)).h,a=n(1),d={name:"KendoFieldArray",props:{value:[String,Number,Boolean,Object,Array],component:[String,Number,Boolean,Object],validationMessage:String,touched:Boolean,modified:Boolean,validator:[Function,Array],visited:Boolean,valid:Boolean,name:String,id:String},created:function(){if(this.kendoForm)return this.kendoForm.registerField(this.$props.name,this.$props.validator)},methods:{onUnshift:function(e){this.kendoForm.onUnshift(this.$props.name,e)},onPush:function(e){this.kendoForm.onPush(this.$props.name,e)},onInsert:function(e){this.kendoForm.onInsert(this.$props.name,e)},onPop:function(){this.kendoForm.onPop(this.$props.name)},onRemove:function(e){this.kendoForm.onRemove(this.$props.name,e)},onReplace:function(e){this.kendoForm.onReplace(this.$props.name,e)},onMove:function(e){this.kendoForm.onMove(this.$props.name,e)}},setup:s?function(){return{v3:!!s}}:void 0,inject:{kendoForm:{default:null}},render:function(e){var t=s||e,n=this.$props,o=n.name,i=n.component,u=n.id;if(!this.kendoForm)return null;var d=this.kendoForm.values[o];if(i){var l=i?a.templateRendering.call(this,i,a.getListeners.call(this)):null;return a.getTemplate.call(this,{h:t,template:l,additionalProps:r({value:d,validationMessage:this.kendoForm.errors[o],touched:this.kendoForm.touchedByField[o],modified:this.kendoForm.modifiedByField[o],visited:this.kendoForm.visitedByField[o],valid:!(Boolean(this.kendoForm.errors[o])&&this.kendoForm.touchedByField[o]),name:o,id:u},this.$attrs),additionalListeners:{unshift:this.onUnshift,push:this.onPush,insert:this.onInsert,pop:this.onPop,remove:this.onRemove,replace:this.onReplace,move:this.onMove}})}}};t.FieldArray=d;var l=d;t.FieldArrayVue3=l},function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldWrapperVue3=t.FieldWrapper=void 0;var u=i(n(0)).h,s=n(2),a=n(1),d={name:"KendoFieldWrapper",props:{dir:String},created:function(){a.validatePackage(s.packageMetadata)},computed:{fieldClassName:function(){return{"k-form-field":!0,"k-rtl":"rtl"===this.$props.dir}}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=u||e,n=a.getDefaultSlots(this);return t("div",{class:this.fieldClassName},[n])}};t.FieldWrapper=d;var l=d;t.FieldWrapperVue3=l},function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FormElementVue3=t.FormElement=void 0;var u=i(n(0)).h,s=n(2),a=n(1),d={name:"KendoFormElement",props:{horizontal:Boolean},created:function(){a.validatePackage(s.packageMetadata)},inject:{kendoForm:{default:null}},computed:{formElementClassName:function(){return{"k-form":!0,"k-form-horizontal":!0===this.$props.horizontal}}},methods:{handleSubmit:function(e){this.kendoForm&&this.kendoForm.onSubmit(e)}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=u||e,n=a.getDefaultSlots(this);return t("form",{class:this.formElementClassName,onSubmit:this.handleSubmit,on:this.v3?void 0:{submit:this.handleSubmit}},[n])}};t.FormElement=d;var l=d;t.FormElementVue3=l}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueForm=t(require("vue"),require("@progress/kendo-licensing")):e.KendoVueForm=t(e.Vue,e.KendoLicensing)}(window,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.r(t),n.d(t,"classNames",(function(){return r})),n.d(t,"guid",(function(){return o})),n.d(t,"Keys",(function(){return i})),n.d(t,"noop",(function(){return S})),n.d(t,"getListeners",(function(){return C})),n.d(t,"hasListener",(function(){return T})),n.d(t,"canUseDOM",(function(){return u})),n.d(t,"focusFirstFocusableChild",(function(){return s})),n.d(t,"clone",(function(){return P})),n.d(t,"Draggable",(function(){return _})),n.d(t,"cloneArray",(function(){return w})),n.d(t,"cloneValue",(function(){return B})),n.d(t,"cloneObject",(function(){return k})),n.d(t,"cloneDate",(function(){return j})),n.d(t,"getTemplate",(function(){return R})),n.d(t,"templateRendering",(function(){return N})),n.d(t,"getTabIndex",(function(){return H})),n.d(t,"getDefaultSlots",(function(){return F})),n.d(t,"isRtl",(function(){return K})),n.d(t,"getter",(function(){return V})),n.d(t,"setter",(function(){return E})),n.d(t,"validatePackage",(function(){return I}));var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},i={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},u=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),s=function(e){if(e){var t=e.querySelectorAll('input, [tabindex]:not([tabindex="-1"])');t.length&&t[0].focus&&t[0].focus()}},a=n(0),d=function(e,t){return function(n){return t(e(n))}},l=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},c=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},f=function(){},h=function(e){return e.preventDefault()},m=/touch/;function p(e){return e.type.match(m)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var v=function(e){var t=this,n=e.press;void 0===n&&(n=f);var r=e.drag;void 0===r&&(r=f);var o=e.release;void 0===o&&(o=f);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=d(p,n),this._dragHandler=d(p,r),this._releaseHandler=d(p,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(l(document,"mousemove",t._mousemove),l(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){c(document,"mousemove",t._mousemove),c(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(l(document,"pointermove",t._pointermove),l(document,"pointerup",t._pointerup),l(document,"pointercancel",t._pointerup),l(document,"contextmenu",h),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(c(document,"pointermove",t._pointermove),c(document,"pointerup",t._pointerup),c(document,"pointercancel",t._pointerup),c(document,"contextmenu",h),t._releaseHandler(e))}};v.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},v.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},v.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?l(e,"pointerdown",this._pointerdown):(l(e,"mousedown",this._mousedown),this._mouseOnly||(l(e,"touchstart",this._touchstart),l(e,"touchmove",this._touchmove),l(e,"touchend",this._touchend)))},v.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return c(e,"pointerdown",this._pointerdown),c(document,"pointermove",this._pointermove),c(document,"pointerup",this._pointerup),c(document,"contextmenu",h),void c(document,"pointercancel",this._pointerup);c(e,"mousedown",this._mousedown),this._mouseOnly||(c(e,"touchstart",this._touchstart),c(e,"touchmove",this._touchmove),c(e,"touchend",this._touchend))},v.prototype._usePointers=function(){return!this._mouseOnly&&v.supportPointerEvent()},v.prototype.update=function(e){var t=e.press;void 0===t&&(t=f);var n=e.drag;void 0===n&&(n=f);var r=e.release;void 0===r&&(r=f);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=d(p,t),this._dragHandler=d(p,n),this._releaseHandler=d(p,r),this._mouseOnly=o},v.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},v.default=v;var y,g=v;function F(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=a.h,_=(b(y={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new g({press:this.press,drag:this.drag,release:this.release})},setup:O?function(){return{v3:!!O}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:O?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",O?function(){return{v3:!!O}}:void 0),b(y,"render",(function(e){return F(this)})),y),j=function(e){return e?new Date(e.getTime()):null};function P(e){var t={};return k(e,t),t}function k(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=B(r,t[n])}}function B(e,t){if(Array.isArray(e))return w(e);if(e instanceof Date)return j(e);if(e&&"object"==typeof e){var n=t||{};return k(e,n),n}return e}function w(e){return e.map((function(e){return B(e,void 0)}))}var S=function(){},$=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,M={};function V(e){if(M[e])return M[e];var t=[];return e.replace($,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),M[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},M[e]}M.undefined=function(){};var A={};function E(e){if(A[e])return A[e];var t=[];return e.replace($,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),A[e]=function(e,n){for(var r=e,o=t.length-1,i=0;i<o&&r;i++)r=r[t[i]]=r[t[i]]||{};r[t[o]]=n},A[e]}function T(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]}function C(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}A.undefined=function(e){return e};var x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},D=a.h;function N(e,t){if(e){var n=D?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{type:"slot",render:n,listeners:t}:"string"==typeof e||"object"==typeof e||"function"==typeof e&&e.component?{type:"component",render:e,listeners:t}:{type:"renderFunction",render:e,listeners:t}}}function R(e){var t,n,r,o=e.h,i=e.template,u=e.defaultRendering,s=e.defaultSlots,a=e.additionalProps,d=e.additionalListeners,l=e.swapDefaultSlots;if(!i)return u;if(D){var c=u?u.props:{};t=x(x({},L(d)),i.listeners),n=x(x(x({},c),a),t),r=x(x({},n),t)}else{var f=u&&u.componentOptions,h=f?u.componentOptions.listeners:{},m=f?u.componentOptions.propsData:{};t=x(x(x(x({},h),d),L(d)),i.listeners),r={props:n=x(x(x({},m),a),t),on:t}}if("slot"===i.type){var p=i.render({props:n,listeners:t,methods:t,defaultSlots:s});return p?p[0]:void 0}return"renderFunction"===i.type?l?i.render(o,u,s,n,t):i.render(o,u,n,t,s):o(i.render,r,D?function(){return[s]}:[s])}function L(e){if(!e)return e;for(var t={},n=Object.keys(e),r=0;r<n.length;r++){var o=n[r];t["on"+o.charAt(0).toUpperCase()+o.slice(1)]=e[o]}return t}var H=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0};function K(e){return Boolean(u&&e&&"rtl"===getComputedStyle(e).direction)}var U=n(3);function I(e){if(void 0!==U)U.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-form",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1633441243,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormElementVue3=t.FormElement=t.FieldWrapperVue3=t.FieldWrapper=t.FormVue3=t.Form=t.FieldVue3=t.Field=t.FieldArrayVue3=t.FieldArray=void 0;var r=n(5);Object.defineProperty(t,"Field",{enumerable:!0,get:function(){return r.Field}}),Object.defineProperty(t,"FieldVue3",{enumerable:!0,get:function(){return r.FieldVue3}});var o=n(6);Object.defineProperty(t,"Form",{enumerable:!0,get:function(){return o.Form}}),Object.defineProperty(t,"FormVue3",{enumerable:!0,get:function(){return o.FormVue3}});var i=n(7);Object.defineProperty(t,"FieldArray",{enumerable:!0,get:function(){return i.FieldArray}}),Object.defineProperty(t,"FieldArrayVue3",{enumerable:!0,get:function(){return i.FieldArrayVue3}});var u=n(8);Object.defineProperty(t,"FieldWrapper",{enumerable:!0,get:function(){return u.FieldWrapper}}),Object.defineProperty(t,"FieldWrapperVue3",{enumerable:!0,get:function(){return u.FieldWrapperVue3}});var s=n(9);Object.defineProperty(t,"FormElement",{enumerable:!0,get:function(){return s.FormElement}}),Object.defineProperty(t,"FormElementVue3",{enumerable:!0,get:function(){return s.FormElementVue3}})},function(e,t,n){"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldVue3=t.Field=void 0;var a=u(n(0)).h,d=n(1),l={name:"KendoField",props:{value:[String,Number,Boolean,Object,Array],component:[String,Number,Boolean,Object],render:[String,Number,Boolean,Object],validationMessage:String,touched:Boolean,modified:Boolean,visited:Boolean,valid:Boolean,validator:[Function,Array],name:String,id:String},created:function(){if(this.kendoForm)return this.kendoForm.registerField(this.$props.name,this.$props.validator)},inject:{kendoForm:{default:null}},methods:{handleOnChange:function(e){var t=e?void 0!==e.value?e.value:e.target?e.target.value:e.target:e;this.kendoForm.onChange(this.$props.name,{value:t}),this.$emit("change",e)},onNativeComponentChange:function(e){this.kendoForm.onChange(this.$props.name,{value:e.target.value})},handleOnBlur:function(){this.kendoForm.onBlur(this.$props.name)},handleOnFocus:function(){this.kendoForm.onFocus(this.$props.name)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.name,i=n.component,u=(n.validator,n.render,n.id);s(n,["name","component","validator","render","id"]);if(!this.kendoForm)return null;var l=this.kendoForm.values[o];if("string"==typeof i&&"input"===i)return t(i,r(r({attrs:this.$attrs},this.$attrs),{onChange:this.onNativeComponentChange,onBlur:this.handleOnBlur,onFocus:this.handleOnFocus,on:this.v3?void 0:{change:this.handleOnChange,blur:this.handleOnBlur,focus:this.handleOnFocus},domProps:this.v3?void 0:{value:l||""},value:l||""}));if(i){var c=i?d.templateRendering.call(this,i,d.getListeners.call(this)):null;return d.getTemplate.call(this,{h:t,template:c,additionalProps:r({value:l,validationMessage:this.kendoForm.errors[o],touched:this.kendoForm.touchedByField[o],modified:this.kendoForm.modifiedByField[o],visited:this.kendoForm.visitedByField[o],valid:!(Boolean(this.kendoForm.errors[o])&&this.kendoForm.touchedByField[o]),name:o,id:u},this.$attrs),additionalListeners:{change:this.handleOnChange,blur:this.handleOnBlur,focus:this.handleOnFocus}})}}};t.Field=l;var c=l;t.FieldVue3=c},function(e,t,n){"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},s=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],u=0,s=i.length;u<s;u++,o++)r[o]=i[u];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.FormVue3=t.Form=void 0;var a=n(1),d=n(2),l=u(n(0)).h,c=n(1),f={name:"KendoForm",props:{renderForm:[Object,Function],initialValues:Object,validator:Function,ignoreModified:Boolean},created:function(){this._accumulatorTimeout=void 0,a.validatePackage(d.packageMetadata),this.form.values=a.clone(this.$props.initialValues)},mounted:function(){this.form.errors=this.getErrors(),this.form.allowSubmit=this.allowSubmit(),this.form.valid=this.isValid()},destroyed:l?void 0:function(){this.onDestroy()},unmounted:function(){this.onDestroy()},data:function(){return{validatorsByField:{},fields:[],unmounted:!1,form:{id:this.id,errors:{},values:{},modifiedByField:{},touchedByField:{},visitedByField:{},valid:!1,modified:!1,touched:!1,visited:!1,submitted:!1,valueGetter:this.valueGetter,allowSubmit:!1,onChange:this.onChange,onSubmit:this.onSubmit,onFormReset:this.resetForm,registerField:this.onFieldRegister,onFocus:this.onFocus,onBlur:this.onBlur,onUnshift:this.onUnshift,onPush:this.onPush,onInsert:this.onInsert,onPop:this.onPop,onRemove:this.onRemove,onReplace:this.onReplace,onMove:this.onMove}}},provide:function(){return{kendoForm:this.$data.form}},watch:{"form.values":function(){this.form.errors=this.getErrors(),this.form.allowSubmit=this.allowSubmit(),this.form.valid=this.isValid()},"form.touchedByField":function(e){this.form.touched=this.isFormTouched(e,this.fields),this.form.allowSubmit=this.allowSubmit()},"form.modifiedByField":function(e){this.form.modified=this.isFormModified(e,this.fields),this.form.allowSubmit=this.allowSubmit()},"form.visitedByField":function(e){this.form.visited=this.isFormVisited(e,this.fields)}},methods:{isValid:function(){return this.isFormValid(this.form.errors)},formErrors:function(){if(this.$props.validator)return this.$props.validator(this.form.values,this.valueGetter)},getErrors:function(){var e=this,t={},n=this.validatorsByField;return Object.keys(this.fields).forEach((function(r){if(t[r]="",n[r]){var o=[];n[r].forEach((function(e){Array.isArray(e)?o.push.apply(o,e):o.push(e)})),o.find((function(n){if(n){var o=n(e.valueGetter(r),e.valueGetter,{name:r});if(o)return t[r]=o,!0}return!1}))}})),this.formErrors()&&a.cloneObject(this.formErrors(),t),t},accumulatedForceUpdate:function(){var e=this;this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout),this._accumulatorTimeout=window.setTimeout((function(){e._accumulatorTimeout=void 0}),0)},resetForm:function(){this.form.values=a.clone(this.$props.initialValues),this.id=a.guid(),this.form.touchedByField={},this.form.visitedByField={},this.form.modifiedByField={},this.form.submitted=!1},onReset:function(){this.resetForm()},addField:function(e){this.fields[e]=!0},onSubmit:function(e){var t={},n=this.fields;e&&("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation()),Object.keys(n).forEach((function(e){t[e]=!0})),this.form.visitedByField=r({},t),this.form.touchedByField=r({},t);var o=this.form.values,i=this.isValid(),u=this.isFormModified(this.form.modifiedByField,n);this.$emit("submitclick",{values:o,isValid:i,isModified:u,event:e}),i&&(this.$props.ignoreModified||u)&&(this.form.submitted=!0,this.$emit("submit",o,e))},onChange:function(e,t){var n,o=t.value;this.addField(e),this.form.modifiedByField[e]||(this.form.modifiedByField=r(r({},this.form.modifiedByField),((n={})[e]=!0,n))),this.valueSetter(e,o)},onFocus:function(e){var t;this.form.visitedByField[e]||(this.form.visitedByField=r(r({},this.form.visitedByField),((t={})[e]=!0,t)))},onBlur:function(e){var t;this.form.touchedByField[e]||(this.onFocus(e),this.form.touchedByField=r(r({},this.form.touchedByField),((t={})[e]=!0,t)))},onFieldRegister:function(e,t){var n,o=this;this.addField(e);var i=this.validatorsByField[e]||[],u=i.length;return this.validatorsByField=r(r({},this.validatorsByField),((n={})[e]=s(i,[t]),n)),this.accumulatedForceUpdate(),function(){var t;if(!o._unmounted){var n=s(o.validatorsByField[e]||[]),i=Boolean(n[u]);n[u]=void 0,o.validatorsByField=r(r({},o.validatorsByField),((t={})[e]=n,t)),i&&o.accumulatedForceUpdate()}}},isFormValid:function(e){return!Object.keys(e).some((function(t){return Boolean(e[t])}))},isFormModified:function(e,t){return Object.keys(t).some((function(t){return e[t]}))},isFormHasNotTouched:function(e,t){return Object.keys(t).some((function(t){return!e[t]}))},isFormTouched:function(e,t){return Object.keys(t).some((function(t){return e[t]}))},isFormVisited:function(e,t){return Object.keys(t).some((function(t){return e[t]}))},formHasNotTouched:function(){return this.isFormHasNotTouched(this.form.touchedByField,this.fields)},allowSubmit:function(){return this.formHasNotTouched()&&!this.isValid()||this.isValid()&&(this.$props.ignoreModified||this.isFormModified(this.form.modifiedByField,this.fields))},valueGetter:function(e){return this.form.values[e]},valueSetter:function(e,t){var n;this.form.values=r(r({},this.form.values),((n={})[e]=t,n))},onArrayAction:function(e){var t;this.addField(e),this.form.modifiedByField[e]||(this.form.modifiedByField=r(r({},this.form.modifiedByField),((t={})[e]=!0,t))),this.onBlur(e,!0)},onInsert:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[]);n.splice(t.index,0,t.value),this.valueSetter(e,n)},onUnshift:function(e,t){this.onInsert(e,{value:t.value,index:0})},onPush:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[],[t.value]);this.valueSetter(e,n)},onPop:function(e){this.onArrayAction(e);var t=s(this.valueGetter(e)||[]),n=t.pop();return this.valueSetter(e,t),n},onRemove:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[]),r=n.splice(t.index,1);return this.valueSetter(e,n),r},onReplace:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[]);n.splice(t.index,1,t.value),this.valueSetter(e,n)},onMove:function(e,t){this.onArrayAction(e);var n=s(this.valueGetter(e)||[]),r=n[t.prevIndex];n.splice(t.prevIndex,1),n.splice(t.nextIndex,0,r),this.valueSetter(e,n)},onDestroy:function(){this.unmounted=!0,this._accumulatorTimeout&&clearTimeout(this._accumulatorTimeout)}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){return(l||e)("div",[c.getDefaultSlots(this)])}};t.Form=f;var h=f;t.FormVue3=h},function(e,t,n){"use strict";var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldArrayVue3=t.FieldArray=void 0;var s=u(n(0)).h,a=n(1),d={name:"KendoFieldArray",props:{value:[String,Number,Boolean,Object,Array],component:[String,Number,Boolean,Object],validationMessage:String,touched:Boolean,modified:Boolean,validator:[Function,Array],visited:Boolean,valid:Boolean,name:String,id:String},created:function(){if(this.kendoForm)return this.kendoForm.registerField(this.$props.name,this.$props.validator)},methods:{onUnshift:function(e){this.kendoForm.onUnshift(this.$props.name,e)},onPush:function(e){this.kendoForm.onPush(this.$props.name,e)},onInsert:function(e){this.kendoForm.onInsert(this.$props.name,e)},onPop:function(){this.kendoForm.onPop(this.$props.name)},onRemove:function(e){this.kendoForm.onRemove(this.$props.name,e)},onReplace:function(e){this.kendoForm.onReplace(this.$props.name,e)},onMove:function(e){this.kendoForm.onMove(this.$props.name,e)}},setup:s?function(){return{v3:!!s}}:void 0,inject:{kendoForm:{default:null}},render:function(e){var t=s||e,n=this.$props,o=n.name,i=n.component,u=n.id;if(!this.kendoForm)return null;var d=this.kendoForm.values[o];if(i){var l=i?a.templateRendering.call(this,i,a.getListeners.call(this)):null;return a.getTemplate.call(this,{h:t,template:l,additionalProps:r({value:d,validationMessage:this.kendoForm.errors[o],touched:this.kendoForm.touchedByField[o],modified:this.kendoForm.modifiedByField[o],visited:this.kendoForm.visitedByField[o],valid:!(Boolean(this.kendoForm.errors[o])&&this.kendoForm.touchedByField[o]),name:o,id:u},this.$attrs),additionalListeners:{unshift:this.onUnshift,push:this.onPush,insert:this.onInsert,pop:this.onPop,remove:this.onRemove,replace:this.onReplace,move:this.onMove}})}}};t.FieldArray=d;var l=d;t.FieldArrayVue3=l},function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldWrapperVue3=t.FieldWrapper=void 0;var u=i(n(0)).h,s=n(2),a=n(1),d={name:"KendoFieldWrapper",props:{dir:String},created:function(){a.validatePackage(s.packageMetadata)},computed:{fieldClassName:function(){return{"k-form-field":!0,"k-rtl":"rtl"===this.$props.dir}}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=u||e,n=a.getDefaultSlots(this);return t("div",{class:this.fieldClassName},[n])}};t.FieldWrapper=d;var l=d;t.FieldWrapperVue3=l},function(e,t,n){"use strict";var r=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FormElementVue3=t.FormElement=void 0;var u=i(n(0)).h,s=n(2),a=n(1),d={name:"KendoFormElement",props:{horizontal:Boolean},created:function(){a.validatePackage(s.packageMetadata)},inject:{kendoForm:{default:null}},computed:{formElementClassName:function(){return{"k-form":!0,"k-form-horizontal":!0===this.$props.horizontal}}},methods:{handleSubmit:function(e){this.kendoForm&&this.kendoForm.onSubmit(e)}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=u||e,n=a.getDefaultSlots(this);return t("form",{class:this.formElementClassName,onSubmit:this.handleSubmit,on:this.v3?void 0:{submit:this.handleSubmit}},[n])}};t.FormElement=d;var l=d;t.FormElementVue3=l}])}));

@@ -8,5 +8,5 @@ /**

productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
publishDate: 1633005379,
publishDate: 1633441243,
version: '',
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
};

@@ -11,5 +11,5 @@ "use strict";

productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
publishDate: 1633005379,
publishDate: 1633441243,
version: '',
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
};
{
"name": "@progress/kendo-vue-form",
"description": "Kendo UI for Vue Form package",
"version": "2.5.1-dev.202109301242",
"version": "2.5.1-dev.202110051346",
"repository": {

@@ -36,3 +36,3 @@ "type": "git",

"dependencies": {
"@progress/kendo-vue-common": "2.5.1-dev.202109301242"
"@progress/kendo-vue-common": "2.5.1-dev.202110051346"
},

@@ -53,13 +53,13 @@ "@progress": {

"@progress/kendo-licensing": "^1.1.0",
"@progress/kendo-vue-buttons": "2.5.1-dev.202109301242",
"@progress/kendo-vue-data-tools": "2.5.1-dev.202109301242",
"@progress/kendo-vue-dateinputs": "2.5.1-dev.202109301242",
"@progress/kendo-vue-dropdowns": "2.5.1-dev.202109301242",
"@progress/kendo-vue-grid": "2.5.1-dev.202109301242",
"@progress/kendo-vue-inputs": "2.5.1-dev.202109301242",
"@progress/kendo-vue-intl": "2.5.1-dev.202109301242",
"@progress/kendo-vue-labels": "2.5.1-dev.202109301242",
"@progress/kendo-vue-layout": "2.5.1-dev.202109301242",
"@progress/kendo-vue-upload": "2.5.1-dev.202109301242"
"@progress/kendo-vue-buttons": "2.5.1-dev.202110051346",
"@progress/kendo-vue-data-tools": "2.5.1-dev.202110051346",
"@progress/kendo-vue-dateinputs": "2.5.1-dev.202110051346",
"@progress/kendo-vue-dropdowns": "2.5.1-dev.202110051346",
"@progress/kendo-vue-grid": "2.5.1-dev.202110051346",
"@progress/kendo-vue-inputs": "2.5.1-dev.202110051346",
"@progress/kendo-vue-intl": "2.5.1-dev.202110051346",
"@progress/kendo-vue-labels": "2.5.1-dev.202110051346",
"@progress/kendo-vue-layout": "2.5.1-dev.202110051346",
"@progress/kendo-vue-upload": "2.5.1-dev.202110051346"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc