@progress/kendo-vue-progressbars 3.5.0 → 3.5.1-dev.202208100944

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.
Files changed (36) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/js/kendo-vue-progressbars.js +1 -1
  3. package/dist/es/common/BaseProps.js +1 -0
  4. package/dist/es/common/utils.js +5 -5
  5. package/dist/es/package-metadata.js +1 -1
  6. package/dist/es/progressbar/interfaces/LabelProps.js +1 -0
  7. package/dist/es/progressbar/interfaces/ProgressBarAnimation.js +1 -0
  8. package/dist/es/progressbar/interfaces/ProgressBarHandle.js +1 -0
  9. package/dist/es/progressbar/interfaces/ProgressBarProps.js +1 -0
  10. package/dist/esm/additionalTypes.ts +21 -0
  11. package/dist/esm/common/BaseProps.d.ts +74 -0
  12. package/dist/esm/common/BaseProps.js +1 -0
  13. package/dist/esm/common/constants.d.ts +16 -0
  14. package/dist/esm/common/constants.js +16 -0
  15. package/dist/esm/common/utils.d.ts +16 -0
  16. package/dist/esm/common/utils.js +34 -0
  17. package/dist/esm/main.d.ts +5 -0
  18. package/dist/esm/main.js +5 -0
  19. package/dist/esm/package-metadata.d.ts +5 -0
  20. package/dist/esm/package-metadata.js +11 -0
  21. package/dist/esm/package.json +3 -0
  22. package/dist/esm/progressbar/ProgressBar.d.ts +54 -0
  23. package/dist/esm/progressbar/ProgressBar.js +243 -0
  24. package/dist/esm/progressbar/interfaces/LabelProps.d.ts +9 -0
  25. package/dist/esm/progressbar/interfaces/LabelProps.js +1 -0
  26. package/dist/esm/progressbar/interfaces/ProgressBarAnimation.d.ts +9 -0
  27. package/dist/esm/progressbar/interfaces/ProgressBarAnimation.js +1 -0
  28. package/dist/esm/progressbar/interfaces/ProgressBarHandle.d.ts +21 -0
  29. package/dist/esm/progressbar/interfaces/ProgressBarHandle.js +4 -0
  30. package/dist/esm/progressbar/interfaces/ProgressBarProps.d.ts +29 -0
  31. package/dist/esm/progressbar/interfaces/ProgressBarProps.js +1 -0
  32. package/dist/npm/common/utils.js +13 -9
  33. package/dist/npm/main.js +6 -2
  34. package/dist/npm/package-metadata.js +1 -1
  35. package/dist/npm/progressbar/ProgressBar.js +20 -20
  36. package/package.json +8 -8
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  > **Important**
8
8
  > * This package is а part of [Kendo UI for Vue](https://www.telerik.com/kendo-vue-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars)—a commercial UI library.
9
9
  > * You will need to install a license key when adding the package to your project. For more information, please refer to the [Kendo UI for Vue My License page](https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars).
10
- > * To receive a license key, you need to either [purchase a license](https://www.telerik.com/kendo-vue-ui/pricing/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars). Doing so indicates that you [accept the Kendo UI for Vue License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendovue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars).
10
+ > * To receive a license key, you need to either [purchase a license](https://www.telerik.com/purchase/kendo-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars) or register for a [free trial](https://www.telerik.com/download-login-v2-kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars). Doing so indicates that you [accept the Kendo UI for Vue License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendovue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars).
11
11
  > * The 30-day free trial gives you access to all the Kendo UI for Vue components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the Kendo UI for Vue dev team!
12
12
  >
13
13
  > [Start using Kendo UI for Vue](https://www.telerik.com/download-login-v2-kendo-vue-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars) and speed up your development process!
@@ -42,7 +42,7 @@ For any issues you might encounter while working with the Kendo UI for Vue Progr
42
42
  * [Kendo UI for Vue Roadmap](https://www.telerik.com/kendo-vue-ui/roadmap/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars)
43
43
  * [Blogs](https://www.telerik.com/blogs/tag/vue?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars)
44
44
  * [Demos, documentation, and component reference](https://www.telerik.com/kendo-vue-ui/components/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars)
45
- * [Kendo UI for Vue pricing and licensing](https://www.telerik.com/kendo-vue-ui/pricing/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars)
45
+ * [Kendo UI for Vue pricing and licensing](https://www.telerik.com/purchase/kendo-ui/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-vue-trial-npm-progressbars)
46
46
 
47
47
  *Copyright © 2022 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
48
48
 
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing"],e):"object"==typeof exports?exports.KendoVueProgressbars=e(require("vue"),require("@progress/kendo-licensing")):t.KendoVueProgressbars=e(t.Vue,t.KendoLicensing)}(window,(function(t,e){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"getRef",(function(){return u})),n.d(e,"setRef",(function(){return p})),n.d(e,"classNames",(function(){return r})),n.d(e,"guid",(function(){return o})),n.d(e,"Keys",(function(){return a})),n.d(e,"noop",(function(){return M})),n.d(e,"isObject",(function(){return i})),n.d(e,"getListeners",(function(){return H})),n.d(e,"hasListener",(function(){return W})),n.d(e,"canUseDOM",(function(){return s})),n.d(e,"firstFocusableChild",(function(){return c})),n.d(e,"focusFirstFocusableChild",(function(){return h})),n.d(e,"lastFocusableChild",(function(){return d})),n.d(e,"focusLastFocusableChild",(function(){return f})),n.d(e,"focusContainer",(function(){return v})),n.d(e,"clone",(function(){return z})),n.d(e,"Draggable",(function(){return P})),n.d(e,"cloneArray",(function(){return L})),n.d(e,"cloneValue",(function(){return T})),n.d(e,"cloneObject",(function(){return B})),n.d(e,"cloneDate",(function(){return A})),n.d(e,"getTemplate",(function(){return G})),n.d(e,"templateRendering",(function(){return Z})),n.d(e,"templateDefinition",(function(){return Y})),n.d(e,"getTabIndex",(function(){return Q})),n.d(e,"getDefaultSlots",(function(){return w})),n.d(e,"isRtl",(function(){return tt})),n.d(e,"getDir",(function(){return et})),n.d(e,"getter",(function(){return R})),n.d(e,"setter",(function(){return U})),n.d(e,"validatePackage",(function(){return it})),n.d(e,"kendoThemeMaps",(function(){return rt}));var i=function(t){return"object"==typeof t},r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?r.apply(void 0,t):i(t)?Object.keys(t).map((function(e,n){return t[n]||t[e]&&e||null})).filter((function(t){return null!==t})).join(" "):t})).filter((function(t){return!!t})).join(" ")},o=function(){var t,e,n="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(n+="-"),n+=(12===t?4:16===t?3&e|8:e).toString(16);return n},a={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},s=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function u(t,e,n){return t.v3?t[e+"Ref"]:t.$refs[""+(n||e)]}function p(t,e,n){return t.v3?function(n){t[e+"Ref"]=n}:n||e}var l='input, [tabindex]:not([tabindex="-1"])',c=function(t){if(t){var e=t.querySelectorAll(l);if(e.length&&e[0].focus)return e[0]}},d=function(t){if(t){var e=t.querySelectorAll(l);if(e.length&&e[e.length-1].focus)return e[e.length-1]}},h=function(t){if(t){var e=t.querySelectorAll(l);e.length&&e[0].focus&&e[0].focus()}},f=function(t){if(t){var e=t.querySelectorAll(l);e.length&&e[e.length-1].focus&&e[e.length-1].focus()}},v=function(t,e){var n=!0;if(t.keyCode!==a.enter&&t.target===e)return!1;if(t.keyCode===a.enter&&t.target===e)n=!0,setTimeout((function(){h(e)}),1);else if(t.keyCode===a.esc)n=!1,e.focus();else if(t.keyCode===a.tab){var i=c(e),r=d(e);r&&!t.shiftKey&&t.target===r&&(t.preventDefault(),i.focus()),i&&t.shiftKey&&t.target===i&&(t.preventDefault(),r.focus())}return n},m=n(0),g=function(t,e){return function(n){return e(t(n))}},x=function(t,e,n){return t.addEventListener&&t.addEventListener(e,n)},y=function(t,e,n){return t&&t.removeEventListener&&t.removeEventListener(e,n)},E=function(){},b=function(t){return t.preventDefault()},k=/touch/;function $(t){return t.type.match(k)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var S=function(t){var e=this,n=t.press;void 0===n&&(n=E);var i=t.drag;void 0===i&&(i=E);var r=t.release;void 0===r&&(r=E);var o=t.mouseOnly;void 0===o&&(o=!1),this._pressHandler=g($,n),this._dragHandler=g($,i),this._releaseHandler=g($,r),this._ignoreMouse=!1,this._mouseOnly=o,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var n=t.which;n&&n>1||e._ignoreMouse||(x(e.document,"mousemove",e._mousemove),x(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){y(e.document,"mousemove",e._mousemove),y(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(x(e.document,"pointermove",e._pointermove),x(e.document,"pointerup",e._pointerup),x(e.document,"pointercancel",e._pointerup),x(e.document,"contextmenu",b),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(y(e.document,"pointermove",e._pointermove),y(e.document,"pointerup",e._pointerup),y(e.document,"pointercancel",e._pointerup),y(e.document,"contextmenu",b),e._releaseHandler(t))}},O={document:{configurable:!0}};S.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},O.document.get=function(){return this._element?this._element.ownerDocument:document},S.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},S.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?x(t,"pointerdown",this._pointerdown):(x(t,"mousedown",this._mousedown),this._mouseOnly||(x(t,"touchstart",this._touchstart),x(t,"touchmove",this._touchmove),x(t,"touchend",this._touchend)))},S.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return y(t,"pointerdown",this._pointerdown),y(this.document,"pointermove",this._pointermove),y(this.document,"pointerup",this._pointerup),y(this.document,"contextmenu",b),void y(this.document,"pointercancel",this._pointerup);y(t,"mousedown",this._mousedown),this._mouseOnly||(y(t,"touchstart",this._touchstart),y(t,"touchmove",this._touchmove),y(t,"touchend",this._touchend))},S.prototype._usePointers=function(){return!this._mouseOnly&&S.supportPointerEvent()},S.prototype.update=function(t){var e=t.press;void 0===e&&(e=E);var n=t.drag;void 0===n&&(n=E);var i=t.release;void 0===i&&(i=E);var r=t.mouseOnly;void 0===r&&(r=!1),this._pressHandler=g($,e),this._dragHandler=g($,n),this._releaseHandler=g($,i),this._mouseOnly=r},S.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(S.prototype,O),S.default=S;var D,_=S;function w(t){var e=t.$slots.default;return t.v3&&e&&"function"==typeof e?e():e}function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C=m,j=(C.h,C.version&&"3"===C.version[0]),P=(N(D={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new _({press:this.press,drag:this.drag,release:this.release})},setup:j?function(){return{v3:!!j}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:j?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(t){this.element&&this.$emit("press",t,this.element)},drag:function(t){this.element&&this.$emit("drag",t,this.element)},release:function(t){this.element&&this.$emit("release",t,this.element)}}},"setup",j?function(){return{v3:!!j}}:void 0),N(D,"render",(function(t){return w(this)})),D),A=function(t){return t?new Date(t.getTime()):null};function z(t){var e={};return B(t,e),e}function B(t,e){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e[n]=T(i,e[n])}}function T(t,e){if(Array.isArray(t))return L(t);if(t instanceof Date)return A(t);if(t&&i(t)){var n=e||{};return B(t,n),n}return t}function L(t){return t.map((function(t){return T(t,void 0)}))}var M=function(){},I=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,F={};function R(t){if(F[t])return F[t];var e=[];return t.replace(I,(function(t,n,i,r){e.push(void 0!==n?n:i||r)})),F[t]=function(t){for(var n=t,i=0;i<e.length&&n;i++)n=n[e[i]];return n},F[t]}F.undefined=function(){};var V={};function U(t){if(V[t])return V[t];var e=[];return t.replace(I,(function(t,n,i,r){e.push(void 0!==n?n:i||r)})),V[t]=function(t,n){for(var i=t,r=e.length-1,o=0;o<r&&i;o++)i=i[e[o]]=i[e[o]]||{};i[e[r]]=n},V[t]}function W(t){return this.v3?Object.keys(this.$attrs).map((function(t){return t.toLowerCase()})).some((function(e){return e.endsWith(t.toLowerCase())})):this.$listeners[t]}function H(){if(this.v3){var t={};for(var e in this.$attrs)e.startsWith("on")&&(t[e]=this.$attrs[e]);return t}return this.$listeners}V.undefined=function(t){return t};var K=function(){return(K=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},q=m,X=q.version&&"3"===q.version[0],Y={type:[String,Function,Object,Boolean],default:function(){}};function Z(t,e){if(t||!1===t){var n=X?this.$slots[t]||(t.toLowerCase?this.$slots[t.toLowerCase()]:null):this.$scopedSlots[t]||(t.toLowerCase?this.$scopedSlots[t.toLowerCase()]:null);return"string"==typeof t&&n?{kt:!0,type:"slot",render:n,listeners:e}:"string"==typeof t||i(t)||"function"==typeof t&&t.component?{kt:!0,type:"component",render:t,listeners:e}:{kt:!0,type:"renderFunction",render:t,listeners:e}}}function G(t){var e,n,i,r=t.h,o=t.template,a=t.defaultRendering,s=t.defaultSlots,u=t.additionalProps,p=t.additionalListeners,l=t.swapDefaultSlots;if(!o||o&&!0===o.render)return a;if(X){var c=a?a.props:{};e=K(K({},J(p)),o.listeners),n=K(K(K({},c),u),e),i=K(K({},n),e)}else{var d=a&&a.componentOptions,h=d?a.componentOptions.listeners:{},f=d?a.componentOptions.propsData:{};e=K(K(K(K({},h),p),J(p)),o.listeners),i={props:n=K(K(K({},f),u),e),on:e}}if("slot"===o.type){var v=o.render({props:n,listeners:e,methods:e,defaultSlots:s});return v?v[0]:void 0}return"renderFunction"===o.type?l?o.render?o.render(r,a,s,n,e):void 0:o.render?o.render(r,a,n,e,s):void 0:r(o.render,i,X?function(){return[s]}:[s])}function J(t){if(!t)return t;for(var e={},n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];e["on"+r.charAt(0).toUpperCase()+r.slice(1)]=t[r]}return e}var Q=function(t,e,n){var i="string"==typeof t?parseInt(t,void 0):t;if(NaN!==i)return void 0!==i?i:e?n?void 0:-1:0};function tt(t){return Boolean(s&&t&&"rtl"===getComputedStyle(t).direction)}function et(t,e){if(!e&&s&&t){var n=window.getComputedStyle(t).direction;if(n)return n}return e}var nt=n(2);function it(t){if(void 0!==nt)nt.validatePackage(t);else{var e="License activation failed for "+t.name+"\n";e+="The @progress/kendo-licensing script is not loaded.\n",e+="See "+t.licensingDocsUrl+" for more information.\n",console.warn(e)}}var rt={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NO_ANIMATION=e.DEFAULT_ANIMATION_DURATION=e.LABEL_DECIMALS=e.MIN_RATIO=void 0,e.MIN_RATIO=1e-5,e.LABEL_DECIMALS=3,e.DEFAULT_ANIMATION_DURATION=400,e.NO_ANIMATION=0},function(t,e,n){"use strict";var i=Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]},r=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(5),e),r(n(8),e),r(n(9),e),r(n(10),e),r(n(11),e)},function(t,e,n){"use strict";var i=Object.create?function(t,e,n,i){void 0===i&&(i=n),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]},r=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBarVue2=e.ProgressBar=void 0;var a=o(n(0)),s=a.h,u=a.version&&"3"===a.version[0],p=n(12),l=n(1),c=n(6),d=n(3),h=n(1),f=n(7),v={name:"KendoProgressBar",props:{animation:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},label:String,labelRender:[String,Object,Function],labelVisible:{type:Boolean,default:!0},labelPlacement:{type:String,default:void 0,validator:function(t){return["start","center","end"].includes(t)}},dir:{type:String,default:void 0},max:{type:Number,default:100},min:{type:Number,default:0},value:{type:Number,default:0},orientation:{type:String,default:"horizontal",validator:function(t){return["horizontal","vertical"].includes(t)}},tabIndex:Number,emptyStyle:Object,emptyClassName:String,progressStyle:Object,progressClassName:String},created:function(){h.validatePackage(f.packageMetadata),this.currentDir=this.$props.dir},mounted:function(){this._progressStatus=l.getRef(this,"progressStatus"),this._progressStatusWrap=l.getRef(this,"progressStatusWrap"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:l.isRtl(this.$el)?"rtl":"ltr",this.animationFrame=p.animate({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:u?void 0:function(){p.cancelAnimation(this.animationFrame)},unmounted:function(){p.cancelAnimation(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(t,e){this.prevValue=e,this.animationFrame=p.animate({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})}},computed:{wrapperClass:function(){var t=this.$props,e=t.disabled,n=t.reverse,i="vertical"===t.orientation;return{"k-widget k-progressbar":!0,"k-progressbar-horizontal":!i,"k-progressbar-vertical":i,"k-progressbar-reverse":n,"k-progressbar-indeterminate":null===t.value,"k-disabled":e}},isVertical:function(){return"vertical"===this.orientation},animationDuration:function(){var t=this.$props.animation;return"boolean"!=typeof t&&void 0!==t?t.duration:t?d.DEFAULT_ANIMATION_DURATION:d.NO_ANIMATION}},setup:u?function(){return{v3:!!u}}:void 0,render:function(t){var e=s||t,n=this.$props,i=n.disabled,r=n.labelVisible,o=n.labelPlacement,a=n.max,u=n.min,p=n.tabIndex,d=n.emptyStyle,h=n.emptyClassName,f=n.progressStyle,v=n.progressClassName,m=this.$props.value||0,g=null===this.$props.value,x=c.truncateNumber(m),y={value:m},E=this.$props.labelRender?l.templateRendering.call(this,this.$props.labelRender,l.getListeners.call(this)):void 0,b=e("span",{class:"k-progress-status"},x),k=l.getTemplate.call(this,{h:e,template:E,defaultRendering:b,additionalProps:y}),$=r?this.$props.label?e("span",{class:"k-progress-status"},[this.$props.label]):k:void 0,S=l.classNames("k-progress-status-wrap",{"k-progress-start":"start"===o,"k-progress-center":"center"===o,"k-progress-end":"end"===o||void 0===o});return e("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:l.getTabIndex(p,i),role:"progressbar","aria-valuemin":u,"aria-valuemax":a,"aria-valuenow":g?void 0:m,"aria-disabled":i},tabindex:l.getTabIndex(p,i),role:"progressbar","aria-valuemin":u,"aria-valuemax":a,"aria-valuenow":g?void 0:m,"aria-disabled":i},[e("span",{class:S+(h?" "+h:""),style:d},[$]),e("div",{class:"k-selected",style:f,ref:l.setRef(this,"progressStatus")},[e("span",{class:S+(v?" "+v:""),ref:l.setRef(this,"progressStatusWrap")},[$])])])},methods:{focus:function(){this.$el&&this.$el.focus()},progressStatusElement:function(){return this._progressStatus},progressStatusWrapElement:function(){return this._progressStatusWrap},handleStart:function(){var t=c.calculatePercentage(this.min,this.max,this.prevValue);c.updateProgress(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleUpdate:function(t){var e=c.calculatePercentage(this.min,this.max,this.prevValue+(this.value-this.prevValue)*t);c.updateProgress(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleEnd:function(){var t=c.calculatePercentage(this.min,this.max,this.value);c.updateProgress(this._progressStatus,this._progressStatusWrap,t,this.isVertical)}}};e.ProgressBarVue2=v;var m=v;e.ProgressBar=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculateRatio=e.updateProgress=e.calculatePercentage=e.truncateNumber=void 0;var i=n(3);e.truncateNumber=function(t){var e=t.toString().split(".");return 1===e.length?""+e[0]:e[0]+"."+e[1].substr(0,i.LABEL_DECIMALS)},e.calculatePercentage=function(t,e,n){var i=Math.abs((e-t)/100);return Math.abs((n-t)/i)},e.updateProgress=function(t,e,n,i){var r=Math.max(n,.01),o=100/r*100;t&&e&&(t.style.width=i?"100%":r+"%",e.style.width=i?"100%":o+"%",t.style.height=i?r+"%":"100%",e.style.height=i?o+"%":"100%")},e.calculateRatio=function(t,e,n){return Math.max((n-t)/(e-t),i.MIN_RATIO)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428926,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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";n.r(e),n.d(e,"Animation",(function(){return O})),n.d(e,"AnimationVue2",(function(){return S})),n.d(e,"AnimationChild",(function(){return g})),n.d(e,"AnimationChildVue2",(function(){return m})),n.d(e,"Fade",(function(){return C})),n.d(e,"FadeVue2",(function(){return N})),n.d(e,"Expand",(function(){return T})),n.d(e,"ExpandVue2",(function(){return B})),n.d(e,"Push",(function(){return V})),n.d(e,"PushVue2",(function(){return R})),n.d(e,"Slide",(function(){return X})),n.d(e,"SlideVue2",(function(){return q})),n.d(e,"Zoom",(function(){return tt})),n.d(e,"ZoomVue2",(function(){return Q})),n.d(e,"Reveal",(function(){return st})),n.d(e,"RevealVue2",(function(){return at})),n.d(e,"animate",(function(){return ut})),n.d(e,"cancelAnimation",(function(){return pt}));var i=n(0),r=function(t){if(!t)return 0;var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop),i=parseFloat(e.marginBottom);return t.offsetHeight+n+i},o=function(t){if(!t)return 0;var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginLeft),i=parseFloat(e.marginRight);return t.offsetWidth+n+i},a={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"},s=n(1),u=function(){return(u=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},p=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},l=i,c=l.h,d=l.version&&"3"===l.version[0],h=l.ref,f=l.Transition,v=a,m={props:{in:Boolean,transitionName:{type:String,required:!0},transitionStyle:Object,componentChildClassName:[Array],className:String,appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:Number,transitionExitDuration:Number,mountOnEnter:Boolean,unmountOnExit:Boolean,animationEnteringStyle:Object,animationEnteredStyle:Object,animationExitingStyle:Object,animationExitedStyle:Object},created:function(){this.animationStep=""},setup:d?function(){return{v3:!!d,elementRef:h(null)}}:void 0,mounted:function(){this._element=this.v3?this.elementRef||null:this.$refs.element||null},computed:{element:{get:function(){return this._element}}},methods:{onBeforeEnter:function(t){this.$emit("beforeenter",{animatedElement:t,target:this})},onEnter:function(t){this.animationStep="entering",this.$emit("entering",{animatedElement:t,target:this})},onAfterEnter:function(t){this.animationStep="entered",this.$emit("entered",{animatedElement:t,target:this})},onBeforeLeave:function(t){this.$emit("exit",{animatedElement:t,target:this})},onLeave:function(t){this.animationStep="exiting",this.$emit("exiting",{animatedElement:t,target:this})},onAfterLeave:function(t){this.animationStep="exited",this.$emit("exited",{animatedElement:t,target:this})}},render:function(t){var e=this,n=c||t,i=this.$props,r=i.appear,o=i.enter,a=i.exit,l=i.transitionName,d=i.transitionEnterDuration,h=i.transitionExitDuration,m=(i.className,i.componentChildClassName),g=(i.mountOnEnter,i.unmountOnExit,i.animationEnteringStyle),x=i.animationEnteredStyle,y=i.animationExitingStyle,E=i.animationExitedStyle,b=(p(i,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),Object(s.getDefaultSlots)(this)),k=this.v3?r:!!b,$=this.v3?f:"transition",S=[m,v["child-animation-container"]],O=o?d:0,D=a?h:0,_=[u({transitionDelay:"0ms",transitionDuration:k?O+"ms":D+"ms"},this.$props.transitionStyle),{entering:u({transitionDuration:O+"ms"},g),entered:u({},x),exiting:u({transitionDuration:D+"ms"},y),exited:u({},E)}[this.animationStep]],w={enter:O,leave:D},N=[k?n("div",{style:_,class:S,ref:this.v3?function(t){e.elementRef=t}:"element"},[b]):null];return n($,{duration:w,attrs:this.v3?null:{duration:w,name:l,appear:r,appearClass:v[l+"-appear"]||l+"-appear",appearToClass:v[l+"-appear-active"]||l+"-appear-active",enterClass:v[l+"-enter"]||l+"-enter",enterToClass:v[l+"-enter-active"]||l+"-enter-active",leaveClass:v[l+"-exit"]||l+"-exit",leaveToClass:v[l+"-exit-active"]||l+"-exit-active"},name:l,appear:r,appearFromClass:v[l+"-appear"]||l+"-appear",enterFromClass:v[l+"-enter"]||l+"-enter",leaveFromClass:v[l+"-exit"]||l+"-exit",appearToClass:v[l+"-appear-active"]||l+"-appear-active",enterToClass:v[l+"-enter-active"]||l+"-enter-active",leaveToClass:v[l+"-exit-active"]||l+"-exit-active",onBeforeEnter:this.onBeforeEnter,on:this.v3?null:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave},onEnter:this.onEnter,onAfterEnter:this.onAfterEnter,onBeforeLeave:this.onBeforeLeave,onLeave:this.onLeave,onAfterLeave:this.onAfterLeave},this.v3?function(){return N}:N)}},g=m,x={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428708,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"},y=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},E=i,b=E.h,k=E.version&&"3"===E.version[0],$=a,S={props:{childFactory:Object,className:String,tag:String,id:String,animationEnteringStyle:Object,animationExitingStyle:Object,componentChildClassName:[Array],transitionName:{type:String,required:!0},appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number},transitionExitDuration:{type:Number}},methods:{onEntering:function(t){this.$emit("entering",t)},onEnter:function(t){this.$emit("enter",t)},onEntered:function(t){this.$emit("entered",t)},onExit:function(t){this.$emit("exit",t)},onExiting:function(t){this.$emit("exiting",t)},onExited:function(t){this.$emit("exited",t)}},setup:k?function(){return{v3:!!k}}:void 0,created:function(){Object(s.validatePackage)(x)},render:function(t){var e=b||t,n=Object(s.getDefaultSlots)(this),i=this.$props,r=(i.id,i.tag,i.role),o=i.className,a=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,y(i,["id","tag","role","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[$["animation-container"],$["animation-container-relative"],o]);return e("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:r},class:a,role:r},[e(g,{key:"some",appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,onBeforeenter:this.onEnter,on:this.v3?void 0:{beforeenter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])])}},O=S,D=i,_=D.h,w=D.version&&"3"===D.version[0],N={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:500},transitionExitDuration:{type:Number,default:500},childFactory:Object,className:String,tag:String,id:String},setup:w?function(){return{v3:!!w}}:void 0,render:function(t){var e=_||t,n=Object(s.getDefaultSlots)(this);return e(O,{transitionName:"fade",attrs:this.v3?void 0:{transitionName:"fade",appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},C=N,j=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},P=i,A=P.h,z=P.version&&"3"===P.version[0],B={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"vertical"},tag:String,id:String},setup:z?function(){return{v3:!!z}}:void 0,render:function(t){var e=A||t,n=Object(s.getDefaultSlots)(this),i=this.$props,r=(i.direction,j(i,["direction"]),"expand-"+this.$props.direction);return e(O,{transitionName:r,attrs:this.v3?void 0:{transitionName:r,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},T=B,L=i,M=L.h,I=L.version&&"3"===L.version[0],F={position:"absolute",top:"0",left:"0"},R={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"right"},tag:String,id:String},setup:I?function(){return{v3:!!I}}:void 0,render:function(t){var e=M||t,n=Object(s.getDefaultSlots)(this),i="push-"+this.$props.direction;return e(O,{transitionName:i,attrs:this.v3?void 0:{transitionName:i,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?F:void 0},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?F:void 0},this.v3?function(){return[n]}:[n])}},V=R,U=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},W=i,H=W.h,K=W.version&&"3"===W.version[0],q={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},componentChildClassName:[Array],childFactory:Object,className:String,direction:{type:String,default:"down"},tag:String,id:String,role:String},methods:{onEntering:function(t){this.$emit("entering",t)},onEnter:function(t){this.$emit("enter",t)},onEntered:function(t){this.$emit("entered",t)},onExit:function(t){this.$emit("exit",t)},onExiting:function(t){this.$emit("exiting",t)},onExited:function(t){this.$emit("exited",t)}},setup:K?function(){return{v3:!!K}}:void 0,render:function(t){var e=H||t,n=Object(s.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.id),o=(U(i,["direction","id"]),"slide-"+this.$props.direction);return e(O,{id:r,attrs:this.v3?void 0:{id:r,transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,onEnter:this.onEnter,on:this.v3?void 0:{enter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},X=q,Y=i,Z=Y.h,G=Y.version&&"3"===Y.version[0],J={position:"absolute",top:"0",left:"0"},Q={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},stackChildren:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"out"},tag:String,id:String},setup:G?function(){return{v3:!!G}}:void 0,render:function(t){var e=Z||t,n=Object(s.getDefaultSlots)(this),i="zoom-"+this.$props.direction;return e(O,{transitionName:i,attrs:this.v3?void 0:{transitionName:i,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?J:void 0},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?J:void 0},this.v3?function(){return[n]}:[n])}},tt=Q,et=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n},nt=i,it=nt.h,rt=nt.version&&"3"===nt.version[0],ot=function(){},at={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"vertical"},tag:String,id:String},data:function(){return{maxHeight:"",maxWidth:""}},methods:{componentWillEnter:function(t){var e=this.$props.onEnter;this.updateContainerDimensions(t.animatedElement,(function(){e&&e.call(void 0,t)}))},componentIsEntering:function(t){var e=this.$props.onEntering;this.updateContainerDimensions(t.animatedElement,(function(){e&&e.call(void 0,t)}))},componentWillExit:function(t){var e=this.$props.onExit;this.updateContainerDimensions(t.animatedElement,(function(){e&&e.call(void 0,t)}))},updateContainerDimensions:function(t,e){void 0===e&&(e=ot);var n=t?t.firstElementChild:null;if(n){var i=r(n),a=o(n);this.$data.maxHeight=i,this.$data.maxWidth=a,e()}}},computed:{animationEnteringStyle:{get:function(){var t;return{maxHeight:(t="vertical"===this.$props.direction?{maxHeight:this.maxHeight?this.maxHeight+"px":null}:{maxWidth:this.maxWidth?this.maxWidth+"px":null}).maxHeight,maxWidth:t.maxWidth}}}},setup:rt?function(){return{v3:!!rt}}:void 0,render:function(t){var e=it||t,n=Object(s.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.childFactory,et(i,["direction","childFactory"]),"reveal-"+this.$props.direction);return e(O,{appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,onEnter:this.componentWillEnter,on:this.v3?void 0:{enter:this.componentWillEnter,entering:this.componentIsEntering,exit:this.componentWillExit},onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},this.v3?function(){return[n]}:[n])}},st=at,ut=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0);var i,r=t.duration,o=e&&1-e;t.onStart&&t.onStart();return n=window.requestAnimationFrame((function a(s){i||(i=s);var u=(s-i+1)/r+o;u<=1?(t.onUpdate&&t.onUpdate(u),n=window.requestAnimationFrame(a),e=u):(t.onEnd&&t.onEnd(1),e=0)}))},pt=function(t){t&&window.cancelAnimationFrame(t)}}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing"],e):"object"==typeof exports?exports.KendoVueProgressbars=e(require("vue"),require("@progress/kendo-licensing")):t.KendoVueProgressbars=e(t.Vue,t.KendoLicensing)}(self,(function(t,e){return(()=>{"use strict";var n={125:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NO_ANIMATION=e.DEFAULT_ANIMATION_DURATION=e.LABEL_DECIMALS=e.MIN_RATIO=void 0,e.MIN_RATIO=1e-5,e.LABEL_DECIMALS=3,e.DEFAULT_ANIMATION_DURATION=400,e.NO_ANIMATION=0},761:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.calculateRatio=e.updateProgress=e.calculatePercentage=e.truncateNumber=void 0;var i=n(125);e.truncateNumber=function(t){var e=t.toString().split(".");return 1===e.length?"".concat(e[0]):"".concat(e[0],".").concat(e[1].substr(0,i.LABEL_DECIMALS))},e.calculatePercentage=function(t,e,n){var i=Math.abs((e-t)/100);return Math.abs((n-t)/i)},e.updateProgress=function(t,e,n,i){var r=Math.max(n,.01),a=100/r*100;t&&e&&(t.style.width=i?"100%":"".concat(r,"%"),e.style.width=i?"100%":"".concat(a,"%"),t.style.height=i?"".concat(r,"%"):"100%",e.style.height=i?"".concat(a,"%"):"100%")},e.calculateRatio=function(t,e,n){return Math.max((n-t)/(e-t),i.MIN_RATIO)}},545:(t,e,n)=>{var i=Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]},r=function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n(973),e),r(n(958),e),r(n(606),e),r(n(27),e),r(n(910),e)},169:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123903,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"}},973:(t,e,n)=>{var i=Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]},r=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressBarVue2=e.ProgressBar=void 0;var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return r(e,t),e}(n(895)),o=a.h,s=a.version&&"3"===a.version[0],p=n(498),u=n(984),l=n(761),c=n(125),d=n(984),h=n(169),f={name:"KendoProgressBar",props:{animation:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},label:String,labelRender:[String,Object,Function],labelVisible:{type:Boolean,default:!0},labelPlacement:{type:String,default:void 0,validator:function(t){return["start","center","end"].includes(t)}},dir:{type:String,default:void 0},max:{type:Number,default:100},min:{type:Number,default:0},value:{type:Number,default:0},orientation:{type:String,default:"horizontal",validator:function(t){return["horizontal","vertical"].includes(t)}},tabIndex:Number,emptyStyle:Object,emptyClassName:String,progressStyle:Object,progressClassName:String},created:function(){(0,d.validatePackage)(h.packageMetadata),this.currentDir=this.$props.dir},mounted:function(){this._progressStatus=(0,u.getRef)(this,"progressStatus"),this._progressStatusWrap=(0,u.getRef)(this,"progressStatusWrap"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,u.isRtl)(this.$el)?"rtl":"ltr",this.animationFrame=(0,p.animate)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:s?void 0:function(){(0,p.cancelAnimation)(this.animationFrame)},unmounted:function(){(0,p.cancelAnimation)(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(t,e){this.prevValue=e,this.animationFrame=(0,p.animate)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})}},computed:{wrapperClass:function(){var t=this.$props,e=t.disabled,n=t.reverse,i="vertical"===t.orientation;return{"k-widget k-progressbar":!0,"k-progressbar-horizontal":!i,"k-progressbar-vertical":i,"k-progressbar-reverse":n,"k-progressbar-indeterminate":null===t.value,"k-disabled":e}},isVertical:function(){return"vertical"===this.orientation},animationDuration:function(){var t=this.$props.animation;return"boolean"!=typeof t&&void 0!==t?t.duration:t?c.DEFAULT_ANIMATION_DURATION:c.NO_ANIMATION}},setup:s?function(){return{v3:!!s}}:void 0,render:function(t){var e=o||t,n=this.$props,i=n.disabled,r=n.labelVisible,a=n.labelPlacement,s=n.max,p=n.min,c=n.tabIndex,d=n.emptyStyle,h=n.emptyClassName,f=n.progressStyle,v=n.progressClassName,m=this.$props.value||0,g=null===this.$props.value,x=(0,l.truncateNumber)(m),y={value:m},E=this.$props.labelRender?u.templateRendering.call(this,this.$props.labelRender,u.getListeners.call(this)):void 0,b=e("span",{class:"k-progress-status"},x),k=u.getTemplate.call(this,{h:e,template:E,defaultRendering:b,additionalProps:y}),$=r?this.$props.label?e("span",{class:"k-progress-status"},[this.$props.label]):k:void 0,S=(0,u.classNames)("k-progress-status-wrap",{"k-progress-start":"start"===a,"k-progress-center":"center"===a,"k-progress-end":"end"===a||void 0===a});return e("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:(0,u.getTabIndex)(c,i),role:"progressbar","aria-valuemin":p,"aria-valuemax":s,"aria-valuenow":g?void 0:m,"aria-disabled":i},tabindex:(0,u.getTabIndex)(c,i),role:"progressbar","aria-valuemin":p,"aria-valuemax":s,"aria-valuenow":g?void 0:m,"aria-disabled":i},[e("span",{class:S+(h?" "+h:""),style:d},[$]),e("div",{class:"k-selected",style:f,ref:(0,u.setRef)(this,"progressStatus")},[e("span",{class:S+(v?" "+v:""),ref:(0,u.setRef)(this,"progressStatusWrap")},[$])])])},methods:{focus:function(){this.$el&&this.$el.focus()},progressStatusElement:function(){return this._progressStatus},progressStatusWrapElement:function(){return this._progressStatusWrap},handleStart:function(){var t=(0,l.calculatePercentage)(this.min,this.max,this.prevValue);(0,l.updateProgress)(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleUpdate:function(t){var e=(0,l.calculatePercentage)(this.min,this.max,this.prevValue+(this.value-this.prevValue)*t);(0,l.updateProgress)(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleEnd:function(){var t=(0,l.calculatePercentage)(this.min,this.max,this.value);(0,l.updateProgress)(this._progressStatus,this._progressStatusWrap,t,this.isVertical)}}};e.ProgressBarVue2=f;var v=f;e.ProgressBar=v},910:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},27:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},958:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},606:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},498:(t,e,n)=>{n.r(e),n.d(e,{Animation:()=>b,AnimationChild:()=>f,AnimationChildVue2:()=>h,AnimationVue2:()=>E,Expand:()=>j,ExpandVue2:()=>C,Fade:()=>D,FadeVue2:()=>O,Push:()=>L,PushVue2:()=>T,Reveal:()=>tt,RevealVue2:()=>Q,Slide:()=>V,SlideVue2:()=>R,Zoom:()=>X,ZoomVue2:()=>q,animate:()=>et,cancelAnimation:()=>nt});var i=n(895);const r={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"};var a=n(984),o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},o.apply(this,arguments)},s=i,p=s.h,u=s.version&&"3"===s.version[0],l=s.ref,c=s.Transition,d=r,h={props:{in:Boolean,transitionName:{type:String,required:!0},transitionStyle:Object,componentChildClassName:[Array],className:String,appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:Number,transitionExitDuration:Number,mountOnEnter:Boolean,unmountOnExit:Boolean,animationEnteringStyle:Object,animationEnteredStyle:Object,animationExitingStyle:Object,animationExitedStyle:Object},created:function(){this.animationStep=""},setup:u?function(){return{v3:!!u,elementRef:l(null)}}:void 0,mounted:function(){this._element=this.v3?this.elementRef||null:this.$refs.element||null},computed:{element:{get:function(){return this._element}}},methods:{onBeforeEnter:function(t){this.$emit("beforeenter",{animatedElement:t,target:this})},onEnter:function(t){this.animationStep="entering",this.$emit("entering",{animatedElement:t,target:this})},onAfterEnter:function(t){this.animationStep="entered",this.$emit("entered",{animatedElement:t,target:this})},onBeforeLeave:function(t){this.$emit("exit",{animatedElement:t,target:this})},onLeave:function(t){this.animationStep="exiting",this.$emit("exiting",{animatedElement:t,target:this})},onAfterLeave:function(t){this.animationStep="exited",this.$emit("exited",{animatedElement:t,target:this})}},render:function(t){var e=this,n=p||t,i=this.$props,r=i.appear,s=i.enter,u=i.exit,l=i.transitionName,h=i.transitionEnterDuration,f=i.transitionExitDuration,v=(i.className,i.componentChildClassName),m=(i.mountOnEnter,i.unmountOnExit,i.animationEnteringStyle),g=i.animationEnteredStyle,x=i.animationExitingStyle,y=i.animationExitedStyle,E=(function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}}(i,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),(0,a.getDefaultSlots)(this)),b=this.v3?r:!!E,k=this.v3?c:"transition",$=[v,d["child-animation-container"]],S=s?h:0,O=u?f:0,D=[o({transitionDelay:"0ms",transitionDuration:"".concat(b?S:O,"ms")},this.$props.transitionStyle),{entering:o({transitionDuration:"".concat(S,"ms")},m),entered:o({},g),exiting:o({transitionDuration:"".concat(O,"ms")},x),exited:o({},y)}[this.animationStep]],_={enter:S,leave:O},w=[b?n("div",{style:D,class:$,ref:this.v3?function(t){e.elementRef=t}:"element"},[E]):null];return n(k,{duration:_,attrs:this.v3?null:{duration:_,name:l,appear:r,appearClass:d["".concat(l,"-appear")]||"".concat(l,"-appear"),appearToClass:d["".concat(l,"-appear-active")]||"".concat(l,"-appear-active"),enterClass:d["".concat(l,"-enter")]||"".concat(l,"-enter"),enterToClass:d["".concat(l,"-enter-active")]||"".concat(l,"-enter-active"),leaveClass:d["".concat(l,"-exit")]||"".concat(l,"-exit"),leaveToClass:d["".concat(l,"-exit-active")]||"".concat(l,"-exit-active")},name:l,appear:r,appearFromClass:d["".concat(l,"-appear")]||"".concat(l,"-appear"),enterFromClass:d["".concat(l,"-enter")]||"".concat(l,"-enter"),leaveFromClass:d["".concat(l,"-exit")]||"".concat(l,"-exit"),appearToClass:d["".concat(l,"-appear-active")]||"".concat(l,"-appear-active"),enterToClass:d["".concat(l,"-enter-active")]||"".concat(l,"-enter-active"),leaveToClass:d["".concat(l,"-exit-active")]||"".concat(l,"-exit-active"),onBeforeEnter:this.onBeforeEnter,on:this.v3?null:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave},onEnter:this.onEnter,onAfterEnter:this.onAfterEnter,onBeforeLeave:this.onBeforeLeave,onLeave:this.onLeave,onAfterLeave:this.onAfterLeave},this.v3?function(){return w}:w)}},f=h,v={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123555,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"},m=i,g=m.h,x=m.version&&"3"===m.version[0],y=r,E={props:{childFactory:Object,className:String,tag:String,id:String,animationEnteringStyle:Object,animationExitingStyle:Object,componentChildClassName:[Array],transitionName:{type:String,required:!0},appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number},transitionExitDuration:{type:Number}},methods:{onEntering:function(t){this.$emit("entering",t)},onEnter:function(t){this.$emit("enter",t)},onEntered:function(t){this.$emit("entered",t)},onExit:function(t){this.$emit("exit",t)},onExiting:function(t){this.$emit("exiting",t)},onExited:function(t){this.$emit("exited",t)}},setup:x?function(){return{v3:!!x}}:void 0,created:function(){(0,a.validatePackage)(v)},render:function(t){var e=g||t,n=(0,a.getDefaultSlots)(this),i=this.$props,r=(i.id,i.tag,i.role),o=i.className,s=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}}(i,["id","tag","role","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[y["animation-container"],y["animation-container-relative"],o]);return e("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:r},class:s,role:r},[e(f,{key:"some",appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,onBeforeenter:this.onEnter,on:this.v3?void 0:{beforeenter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])])}},b=E,k=i,$=k.h,S=k.version&&"3"===k.version[0],O={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:500},transitionExitDuration:{type:Number,default:500},childFactory:Object,className:String,tag:String,id:String},setup:S?function(){return{v3:!!S}}:void 0,render:function(t){var e=$||t,n=(0,a.getDefaultSlots)(this);return e(b,{transitionName:"fade",attrs:this.v3?void 0:{transitionName:"fade",appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},D=O,_=i,w=_.h,N=_.version&&"3"===_.version[0],C={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"vertical"},tag:String,id:String},setup:N?function(){return{v3:!!N}}:void 0,render:function(t){var e=w||t,n=(0,a.getDefaultSlots)(this),i=this.$props,r=(i.direction,function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}}(i,["direction"]),"expand-".concat(this.$props.direction));return e(b,{transitionName:r,attrs:this.v3?void 0:{transitionName:r,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},j=C,P=i,A=P.h,z=P.version&&"3"===P.version[0],B={position:"absolute",top:"0",left:"0"},T={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"right"},tag:String,id:String},setup:z?function(){return{v3:!!z}}:void 0,render:function(t){var e=A||t,n=(0,a.getDefaultSlots)(this),i="push-".concat(this.$props.direction);return e(b,{transitionName:i,attrs:this.v3?void 0:{transitionName:i,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?B:void 0},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?B:void 0},this.v3?function(){return[n]}:[n])}},L=T,M=i,I=M.h,F=M.version&&"3"===M.version[0],R={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},componentChildClassName:[Array],childFactory:Object,className:String,direction:{type:String,default:"down"},tag:String,id:String,role:String},methods:{onEntering:function(t){this.$emit("entering",t)},onEnter:function(t){this.$emit("enter",t)},onEntered:function(t){this.$emit("entered",t)},onExit:function(t){this.$emit("exit",t)},onExiting:function(t){this.$emit("exiting",t)},onExited:function(t){this.$emit("exited",t)}},setup:F?function(){return{v3:!!F}}:void 0,render:function(t){var e=I||t,n=(0,a.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.id),o=(function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}}(i,["direction","id"]),"slide-".concat(this.$props.direction));return e(b,{id:r,attrs:this.v3?void 0:{id:r,transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,onEnter:this.onEnter,on:this.v3?void 0:{enter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},V=R,U=i,W=U.h,H=U.version&&"3"===U.version[0],K={position:"absolute",top:"0",left:"0"},q={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},stackChildren:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"out"},tag:String,id:String},setup:H?function(){return{v3:!!H}}:void 0,render:function(t){var e=W||t,n=(0,a.getDefaultSlots)(this),i="zoom-".concat(this.$props.direction);return e(b,{transitionName:i,attrs:this.v3?void 0:{transitionName:i,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?K:void 0},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationExitingStyle:this.$props.stackChildren?K:void 0},this.v3?function(){return[n]}:[n])}},X=q,Y=i,Z=Y.h,G=Y.version&&"3"===Y.version[0],J=function(){},Q={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"vertical"},tag:String,id:String},data:function(){return{maxHeight:"",maxWidth:""}},methods:{componentWillEnter:function(t){var e=this.$props.onEnter;this.updateContainerDimensions(t.animatedElement,(function(){e&&e.call(void 0,t)}))},componentIsEntering:function(t){var e=this.$props.onEntering;this.updateContainerDimensions(t.animatedElement,(function(){e&&e.call(void 0,t)}))},componentWillExit:function(t){var e=this.$props.onExit;this.updateContainerDimensions(t.animatedElement,(function(){e&&e.call(void 0,t)}))},updateContainerDimensions:function(t,e){void 0===e&&(e=J);var n=t?t.firstElementChild:null;if(n){var i=function(t){if(!t)return 0;var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop),i=parseFloat(e.marginBottom);return t.offsetHeight+n+i}(n),r=function(t){if(!t)return 0;var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginLeft),i=parseFloat(e.marginRight);return t.offsetWidth+n+i}(n);this.$data.maxHeight=i,this.$data.maxWidth=r,e()}}},computed:{animationEnteringStyle:{get:function(){var t;return{maxHeight:(t="vertical"===this.$props.direction?{maxHeight:this.maxHeight?"".concat(this.maxHeight,"px"):null}:{maxWidth:this.maxWidth?"".concat(this.maxWidth,"px"):null}).maxHeight,maxWidth:t.maxWidth}}}},setup:G?function(){return{v3:!!G}}:void 0,render:function(t){var e=Z||t,n=(0,a.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.childFactory,function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}}(i,["direction","childFactory"]),"reveal-".concat(this.$props.direction));return e(b,{appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,onEnter:this.componentWillEnter,on:this.v3?void 0:{enter:this.componentWillEnter,entering:this.componentIsEntering,exit:this.componentWillExit},onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},this.v3?function(){return[n]}:[n])}},tt=Q,et=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0);var i,r=t.duration,a=e&&1-e;return t.onStart&&t.onStart(),n=window.requestAnimationFrame((function o(s){i||(i=s);var p=(s-i+1)/r+a;p<=1?(t.onUpdate&&t.onUpdate(p),n=window.requestAnimationFrame(o),e=p):(t.onEnd&&t.onEnd(1),e=0)}))},nt=function(t){t&&window.cancelAnimationFrame(t)}},984:(t,e,n)=>{n.r(e),n.d(e,{Draggable:()=>P,Keys:()=>o,canUseDOM:()=>s,classNames:()=>r,clone:()=>z,cloneArray:()=>L,cloneDate:()=>A,cloneObject:()=>B,cloneValue:()=>T,firstFocusableChild:()=>c,focusContainer:()=>v,focusFirstFocusableChild:()=>h,focusLastFocusableChild:()=>f,getDefaultSlots:()=>_,getDir:()=>et,getListeners:()=>H,getRef:()=>p,getTabIndex:()=>Q,getTemplate:()=>G,getter:()=>R,guid:()=>a,hasListener:()=>W,isObject:()=>i,isRtl:()=>tt,kendoThemeMaps:()=>rt,lastFocusableChild:()=>d,noop:()=>M,setRef:()=>u,setter:()=>U,templateDefinition:()=>Y,templateRendering:()=>Z,validatePackage:()=>it});var i=function(t){return"object"==typeof t},r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?r.apply(void 0,t):i(t)?Object.keys(t).map((function(e,n){return t[n]||t[e]&&e||null})).filter((function(t){return null!==t})).join(" "):t})).filter((function(t){return!!t})).join(" ")},a=function(){var t,e,n="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(n+="-"),n+=(12===t?4:16===t?3&e|8:e).toString(16);return n},o={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},s=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function p(t,e,n){return t.v3?t["".concat(e,"Ref")]:t.$refs["".concat(n||e)]}function u(t,e,n){return t.v3?function(n){t["".concat(e,"Ref")]=n}:n||e}var l='input, [tabindex]:not([tabindex="-1"])',c=function(t){if(t){var e=t.querySelectorAll(l);if(e.length&&e[0].focus)return e[0]}},d=function(t){if(t){var e=t.querySelectorAll(l);if(e.length&&e[e.length-1].focus)return e[e.length-1]}},h=function(t){if(t){var e=t.querySelectorAll(l);e.length&&e[0].focus&&e[0].focus()}},f=function(t){if(t){var e=t.querySelectorAll(l);e.length&&e[e.length-1].focus&&e[e.length-1].focus()}},v=function(t,e){var n=!0;if(t.keyCode!==o.enter&&t.target===e)return!1;if(t.keyCode===o.enter&&t.target===e)n=!0,setTimeout((function(){h(e)}),1);else if(t.keyCode===o.esc)n=!1,e.focus();else if(t.keyCode===o.tab){var i=c(e),r=d(e);r&&!t.shiftKey&&t.target===r&&(t.preventDefault(),i.focus()),i&&t.shiftKey&&t.target===i&&(t.preventDefault(),r.focus())}return n},m=n(895),g=function(t,e){return function(n){return e(t(n))}},x=function(t,e,n){return t.addEventListener&&t.addEventListener(e,n)},y=function(t,e,n){return t&&t.removeEventListener&&t.removeEventListener(e,n)},E=function(){},b=function(t){return t.preventDefault()},k=/touch/;function $(t){return t.type.match(k)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var S=function(t){var e=this,n=t.press;void 0===n&&(n=E);var i=t.drag;void 0===i&&(i=E);var r=t.release;void 0===r&&(r=E);var a=t.mouseOnly;void 0===a&&(a=!1),this._pressHandler=g($,n),this._dragHandler=g($,i),this._releaseHandler=g($,r),this._ignoreMouse=!1,this._mouseOnly=a,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var n=t.which;n&&n>1||e._ignoreMouse||(x(e.document,"mousemove",e._mousemove),x(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){y(e.document,"mousemove",e._mousemove),y(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(x(e.document,"pointermove",e._pointermove),x(e.document,"pointerup",e._pointerup),x(e.document,"pointercancel",e._pointerup),x(e.document,"contextmenu",b),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(y(e.document,"pointermove",e._pointermove),y(e.document,"pointerup",e._pointerup),y(e.document,"pointercancel",e._pointerup),y(e.document,"contextmenu",b),e._releaseHandler(t))}},O={document:{configurable:!0}};S.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},O.document.get=function(){return this._element?this._element.ownerDocument:document},S.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},S.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?x(t,"pointerdown",this._pointerdown):(x(t,"mousedown",this._mousedown),this._mouseOnly||(x(t,"touchstart",this._touchstart),x(t,"touchmove",this._touchmove),x(t,"touchend",this._touchend)))},S.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return y(t,"pointerdown",this._pointerdown),y(this.document,"pointermove",this._pointermove),y(this.document,"pointerup",this._pointerup),y(this.document,"contextmenu",b),void y(this.document,"pointercancel",this._pointerup);y(t,"mousedown",this._mousedown),this._mouseOnly||(y(t,"touchstart",this._touchstart),y(t,"touchmove",this._touchmove),y(t,"touchend",this._touchend))},S.prototype._usePointers=function(){return!this._mouseOnly&&S.supportPointerEvent()},S.prototype.update=function(t){var e=t.press;void 0===e&&(e=E);var n=t.drag;void 0===n&&(n=E);var i=t.release;void 0===i&&(i=E);var r=t.mouseOnly;void 0===r&&(r=!1),this._pressHandler=g($,e),this._dragHandler=g($,n),this._releaseHandler=g($,i),this._mouseOnly=r},S.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(S.prototype,O),S.default=S;const D=S;function _(t){var e=t.$slots.default;return t.v3&&e&&"function"==typeof e?e():e}var w;function N(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C=m,j=(C.h,C.version&&"3"===C.version[0]),P=(N(w={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new D({press:this.press,drag:this.drag,release:this.release})},setup:j?function(){return{v3:!!j}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:j?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(t){this.element&&this.$emit("press",t,this.element)},drag:function(t){this.element&&this.$emit("drag",t,this.element)},release:function(t){this.element&&this.$emit("release",t,this.element)}}},"setup",j?function(){return{v3:!!j}}:void 0),N(w,"render",(function(t){return _(this)})),w),A=function(t){return t?new Date(t.getTime()):null};function z(t){var e={};return B(t,e),e}function B(t,e){for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];e[n]=T(i,e[n])}}function T(t,e){if(Array.isArray(t))return L(t);if(t instanceof Date)return A(t);if(t&&i(t)){var n=e||{};return B(t,n),n}return t}function L(t){return t.map((function(t){return T(t,void 0)}))}var M=function(){},I=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,F={};function R(t){if(F[t])return F[t];var e=[];return t.replace(I,(function(t,n,i,r){e.push(void 0!==n?n:i||r)})),F[t]=function(t){for(var n=t,i=0;i<e.length&&n;i++)n=n[e[i]];return n},F[t]}F.undefined=function(){};var V={};function U(t){if(V[t])return V[t];var e=[];return t.replace(I,(function(t,n,i,r){e.push(void 0!==n?n:i||r)})),V[t]=function(t,n){for(var i=t,r=e.length-1,a=0;a<r&&i;a++)i=i[e[a]]=i[e[a]]||{};i[e[r]]=n},V[t]}function W(t){return this.v3?Object.keys(this.$attrs).map((function(t){return t.toLowerCase()})).some((function(e){return e.endsWith(t.toLowerCase())})):this.$listeners[t]}function H(){if(this.v3){var t={};for(var e in this.$attrs)e.startsWith("on")&&(t[e]=this.$attrs[e]);return t}return this.$listeners}V.undefined=function(t){return t};var K=function(){return K=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},K.apply(this,arguments)},q=m,X=q.version&&"3"===q.version[0],Y={type:[String,Function,Object,Boolean],default:function(){}};function Z(t,e){if(t||!1===t){var n=X?this.$slots[t]||(t.toLowerCase?this.$slots[t.toLowerCase()]:null):this.$scopedSlots[t]||(t.toLowerCase?this.$scopedSlots[t.toLowerCase()]:null);return"string"==typeof t&&n?{kt:!0,type:"slot",render:n,listeners:e}:"string"==typeof t||i(t)||"function"==typeof t&&t.component?{kt:!0,type:"component",render:t,listeners:e}:{kt:!0,type:"renderFunction",render:t,listeners:e}}}function G(t){var e,n,i,r=t.h,a=t.template,o=t.defaultRendering,s=t.defaultSlots,p=t.additionalProps,u=t.additionalListeners,l=t.swapDefaultSlots;if(!a||a&&!0===a.render)return o;if(X){var c=o?o.props:{};e=K(K({},J(u)),a.listeners),n=K(K(K({},c),p),e),i=K(K({},n),e)}else{var d=o&&o.componentOptions,h=d?o.componentOptions.listeners:{},f=d?o.componentOptions.propsData:{};e=K(K(K(K({},h),u),J(u)),a.listeners),i={props:n=K(K(K({},f),p),e),on:e}}if("slot"===a.type){var v=a.render({props:n,listeners:e,methods:e,defaultSlots:s});return v?v[0]:void 0}return"renderFunction"===a.type?l?a.render?a.render(r,o,s,n,e):void 0:a.render?a.render(r,o,n,e,s):void 0:r(a.render,i,X?function(){return[s]}:[s])}function J(t){if(!t)return t;for(var e={},n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];e["on"+r.charAt(0).toUpperCase()+r.slice(1)]=t[r]}return e}var Q=function(t,e,n){var i="string"==typeof t?parseInt(t,void 0):t;if(NaN!==i)return void 0!==i?i:e?n?void 0:-1:0};function tt(t){return Boolean(s&&t&&"rtl"===getComputedStyle(t).direction)}function et(t,e){if(!e&&s&&t){var n=window.getComputedStyle(t).direction;if(n)return n}return e}var nt=n(302);function it(t){if(void 0!==nt)nt.validatePackage(t);else{var e="License activation failed for ".concat(t.name,"\n");e+="The @progress/kendo-licensing script is not loaded.\n",e+="See ".concat(t.licensingDocsUrl," for more information.\n"),console.warn(e)}}var rt={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},302:t=>{t.exports=e},895:e=>{e.exports=t}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var a=i[t]={exports:{}};return n[t](a,a.exports,r),a.exports}return r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r(545)})()}));
@@ -0,0 +1 @@
1
+ export {};
@@ -4,7 +4,7 @@ import { LABEL_DECIMALS, MIN_RATIO } from './constants';
4
4
  */
5
5
  export var truncateNumber = function (value) {
6
6
  var numberParts = value.toString().split('.');
7
- return numberParts.length === 1 ? "" + numberParts[0] : numberParts[0] + "." + numberParts[1].substr(0, LABEL_DECIMALS);
7
+ return numberParts.length === 1 ? "".concat(numberParts[0]) : "".concat(numberParts[0], ".").concat(numberParts[1].substr(0, LABEL_DECIMALS));
8
8
  };
9
9
  /**
10
10
  * @hidden
@@ -20,10 +20,10 @@ export var updateProgress = function (progressRef, progressWrapRef, percentage,
20
20
  var progressPercentage = Math.max(percentage, 0.01);
21
21
  var progressWrapPercentage = (100 / progressPercentage) * 100;
22
22
  if (progressRef && progressWrapRef) {
23
- progressRef.style.width = !isVertical ? progressPercentage + "%" : '100%';
24
- progressWrapRef.style.width = !isVertical ? progressWrapPercentage + "%" : '100%';
25
- progressRef.style.height = isVertical ? progressPercentage + "%" : '100%';
26
- progressWrapRef.style.height = isVertical ? progressWrapPercentage + "%" : '100%';
23
+ progressRef.style.width = !isVertical ? "".concat(progressPercentage, "%") : '100%';
24
+ progressWrapRef.style.width = !isVertical ? "".concat(progressWrapPercentage, "%") : '100%';
25
+ progressRef.style.height = isVertical ? "".concat(progressPercentage, "%") : '100%';
26
+ progressWrapRef.style.height = isVertical ? "".concat(progressWrapPercentage, "%") : '100%';
27
27
  }
28
28
  };
29
29
  /**
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-progressbars',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1659428926,
8
+ publishDate: 1660123903,
9
9
  version: '',
10
10
  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
11
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
1
  /**
2
2
  * The ProgressBar ref.
3
3
  */
4
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ // @ts-ignore
2
+ import { DefineComponent } from 'vue';
3
+ // @ts-ignore
4
+ import * as Vue from 'vue';
5
+
6
+ /**
7
+ * @hidden
8
+ */
9
+ // @ts-ignore
10
+ type Vue2type = Vue.default;
11
+
12
+ /**
13
+ * @hidden
14
+ */
15
+ // @ts-ignore
16
+ import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
17
+ /**
18
+ * @hidden
19
+ */
20
+ // @ts-ignore
21
+ export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export interface BaseProps {
5
+ /**
6
+ * Sets one of the two visually distinct types of progress bar.
7
+ *
8
+ * @hidden
9
+ */
10
+ type?: 'linear' | 'circular';
11
+ /**
12
+ * Sets the value of the progress bar. Has to be between `min` and `max` values. Defaults to `0`.
13
+ * Set `null` to enable the indeterminate state of the progress bar.
14
+ * See examples ([here]({% slug overview_progressbar %})).
15
+ */
16
+ value?: number | null;
17
+ /**
18
+ * The minimum value of the progress bar. Defaults to `0`.
19
+ */
20
+ min?: number;
21
+ /**
22
+ * The maximum value of the progress bar. Defaults to `100`.
23
+ */
24
+ max?: number;
25
+ /**
26
+ * Represents the `dir` HTML attribute. This is used to switch from LTR to RTL.
27
+ */
28
+ dir?: string;
29
+ /**
30
+ * Sets the disabled state of the progress bar.
31
+ * See examples ([here]({% slug progressbar_disabled %})).
32
+ */
33
+ disabled?: boolean;
34
+ /**
35
+ * Defines the orientation of the progress bar.
36
+ * See examples ([here]({% slug progressbar_orientation %})) .
37
+ * Defaults to `horizontal`.
38
+ */
39
+ orientation?: 'horizontal' | 'vertical' | string;
40
+ /**
41
+ * If set to `true`, the progress bar will be reversed.
42
+ * See examples ([here]({% slug progressbar_direction %})).
43
+ * Defaults to `false`.
44
+ */
45
+ reverse?: boolean;
46
+ /**
47
+ * Specifies a list of CSS classes that will be added to the progress bar element.
48
+ */
49
+ className?: string;
50
+ /**
51
+ * The styles that are applied to the inner element which represents the empty portion of the progress bar.
52
+ * See examples ([here]({% slug progressbar_appearance %})).
53
+ */
54
+ emptyStyle?: object;
55
+ /**
56
+ * Sets additional classes to the inner element which represents the empty portion of the progress bar.
57
+ * See examples ([here]({% slug progressbar_appearance %})).
58
+ */
59
+ emptyClassName?: string;
60
+ /**
61
+ * The styles that are applied to the inner element which represents the full portion of the progress bar.
62
+ * See examples ([here]({% slug progressbar_appearance %})).
63
+ */
64
+ progressStyle?: object;
65
+ /**
66
+ * Sets additional classes to the inner element which represents the full portion of the progress bar.
67
+ * See examples ([here]({% slug progressbar_appearance %})).
68
+ */
69
+ progressClassName?: string;
70
+ /**
71
+ * Sets the `tabIndex` property of the progress bar.
72
+ */
73
+ tabIndex?: number;
74
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export declare const MIN_RATIO = 0.00001;
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const LABEL_DECIMALS = 3;
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const DEFAULT_ANIMATION_DURATION = 400;
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare const NO_ANIMATION = 0;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export var MIN_RATIO = 0.00001;
5
+ /**
6
+ * @hidden
7
+ */
8
+ export var LABEL_DECIMALS = 3;
9
+ /**
10
+ * @hidden
11
+ */
12
+ export var DEFAULT_ANIMATION_DURATION = 400;
13
+ /**
14
+ * @hidden
15
+ */
16
+ export var NO_ANIMATION = 0;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export declare const truncateNumber: (value: number) => string;
5
+ /**
6
+ * @hidden
7
+ */
8
+ export declare const calculatePercentage: (min: number, max: number, value: number) => number;
9
+ /**
10
+ * @hidden
11
+ */
12
+ export declare const updateProgress: (progressRef: any, progressWrapRef: any, percentage: number, isVertical: boolean) => void;
13
+ /**
14
+ * @hidden
15
+ */
16
+ export declare const calculateRatio: (min: number, max: number, value: number) => number;
@@ -0,0 +1,34 @@
1
+ import { LABEL_DECIMALS, MIN_RATIO } from './constants.js';
2
+ /**
3
+ * @hidden
4
+ */
5
+ export var truncateNumber = function (value) {
6
+ var numberParts = value.toString().split('.');
7
+ return numberParts.length === 1 ? "".concat(numberParts[0]) : "".concat(numberParts[0], ".").concat(numberParts[1].substr(0, LABEL_DECIMALS));
8
+ };
9
+ /**
10
+ * @hidden
11
+ */
12
+ export var calculatePercentage = function (min, max, value) {
13
+ var onePercent = Math.abs((max - min) / 100);
14
+ return Math.abs((value - min) / onePercent);
15
+ };
16
+ /**
17
+ * @hidden
18
+ */
19
+ export var updateProgress = function (progressRef, progressWrapRef, percentage, isVertical) {
20
+ var progressPercentage = Math.max(percentage, 0.01);
21
+ var progressWrapPercentage = (100 / progressPercentage) * 100;
22
+ if (progressRef && progressWrapRef) {
23
+ progressRef.style.width = !isVertical ? "".concat(progressPercentage, "%") : '100%';
24
+ progressWrapRef.style.width = !isVertical ? "".concat(progressWrapPercentage, "%") : '100%';
25
+ progressRef.style.height = isVertical ? "".concat(progressPercentage, "%") : '100%';
26
+ progressWrapRef.style.height = isVertical ? "".concat(progressWrapPercentage, "%") : '100%';
27
+ }
28
+ };
29
+ /**
30
+ * @hidden
31
+ */
32
+ export var calculateRatio = function (min, max, value) {
33
+ return Math.max((value - min) / (max - min), MIN_RATIO);
34
+ };
@@ -0,0 +1,5 @@
1
+ export * from './progressbar/ProgressBar';
2
+ export * from './progressbar/interfaces/ProgressBarHandle';
3
+ export * from './progressbar/interfaces/ProgressBarProps';
4
+ export * from './progressbar/interfaces/ProgressBarAnimation';
5
+ export * from './progressbar/interfaces/LabelProps';
@@ -0,0 +1,5 @@
1
+ export * from './progressbar/ProgressBar.js';
2
+ export * from './progressbar/interfaces/ProgressBarHandle.js';
3
+ export * from './progressbar/interfaces/ProgressBarProps.js';
4
+ export * from './progressbar/interfaces/ProgressBarAnimation.js';
5
+ export * from './progressbar/interfaces/LabelProps.js';
@@ -0,0 +1,5 @@
1
+ import { PackageMetadata } from '@progress/kendo-licensing';
2
+ /**
3
+ * @hidden
4
+ */
5
+ export declare const packageMetadata: PackageMetadata;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @hidden
3
+ */
4
+ export var packageMetadata = {
5
+ name: '@progress/kendo-vue-progressbars',
6
+ productName: 'Kendo UI for Vue',
7
+ productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
+ publishDate: 1660123903,
9
+ version: '',
10
+ 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
+ };
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
@@ -0,0 +1,54 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => {});
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ import { ProgressBarProps } from './interfaces/ProgressBarProps';
7
+ /**
8
+ * @hidden
9
+ */
10
+ export interface ProgressBarState {
11
+ _progressStatus?: any;
12
+ _progressStatusWrap?: any;
13
+ animationFrame: any;
14
+ prevValue: number;
15
+ v3: boolean;
16
+ }
17
+ /**
18
+ * @hidden
19
+ */
20
+ export interface ProgressBarComputed {
21
+ [key: string]: any;
22
+ wrapperClass: object;
23
+ isVertical: boolean;
24
+ animationDuration: number;
25
+ }
26
+ /**
27
+ * @hidden
28
+ */
29
+ export interface ProgressBarMethods {
30
+ [key: string]: any;
31
+ focus: (e: any) => void;
32
+ toggleIfApplicable: () => void;
33
+ handleClick: (event: any) => void;
34
+ }
35
+ /**
36
+ * @hidden
37
+ */
38
+ export interface ProgressBarData {
39
+ currentActive: boolean;
40
+ }
41
+ /**
42
+ * @hidden
43
+ */
44
+ export interface ProgressBarAll extends Vue2type, ProgressBarMethods, ProgressBarData, ProgressBarComputed, ProgressBarState {
45
+ }
46
+ /**
47
+ * @hidden
48
+ */
49
+ declare let ProgressBarVue2: ComponentOptions<ProgressBarAll, DefaultData<ProgressBarData>, DefaultMethods<ProgressBarAll>, ProgressBarComputed, RecordPropsDefinition<ProgressBarProps>>;
50
+ /**
51
+ * @hidden
52
+ */
53
+ declare const ProgressBar: DefineComponent<ProgressBarProps, any, ProgressBarData, ProgressBarComputed, ProgressBarMethods, {}, {}, {}, string, ProgressBarProps, ProgressBarProps, {}>;
54
+ export { ProgressBar, ProgressBarVue2 };
@@ -0,0 +1,243 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ import { animate, cancelAnimation } from '@progress/kendo-vue-animation';
7
+ import { classNames, isRtl, getTabIndex, templateRendering, getListeners, getTemplate, setRef, getRef } from '@progress/kendo-vue-common';
8
+ import { calculatePercentage, updateProgress, truncateNumber } from '../common/utils.js';
9
+ import { DEFAULT_ANIMATION_DURATION, NO_ANIMATION } from '../common/constants.js';
10
+ import { validatePackage } from '@progress/kendo-vue-common';
11
+ import { packageMetadata } from '../package-metadata.js';
12
+ /**
13
+ * @hidden
14
+ */
15
+
16
+ var ProgressBarVue2 = {
17
+ name: 'KendoProgressBar',
18
+ props: {
19
+ animation: {
20
+ type: [Boolean, Object],
21
+ default: false
22
+ },
23
+ disabled: {
24
+ type: Boolean,
25
+ default: false
26
+ },
27
+ reverse: {
28
+ type: Boolean,
29
+ default: false
30
+ },
31
+ label: String,
32
+ labelRender: [String, Object, Function],
33
+ labelVisible: {
34
+ type: Boolean,
35
+ default: true
36
+ },
37
+ labelPlacement: {
38
+ type: String,
39
+ default: undefined,
40
+ validator: function validator(value) {
41
+ return ['start', 'center', 'end'].includes(value);
42
+ }
43
+ },
44
+ dir: {
45
+ type: String,
46
+ default: undefined
47
+ },
48
+ max: {
49
+ type: Number,
50
+ default: 100
51
+ },
52
+ min: {
53
+ type: Number,
54
+ default: 0
55
+ },
56
+ value: {
57
+ type: Number,
58
+ default: 0
59
+ },
60
+ orientation: {
61
+ type: String,
62
+ default: 'horizontal',
63
+ validator: function validator(value) {
64
+ return ['horizontal', 'vertical'].includes(value);
65
+ }
66
+ },
67
+ tabIndex: Number,
68
+ emptyStyle: Object,
69
+ emptyClassName: String,
70
+ progressStyle: Object,
71
+ progressClassName: String
72
+ },
73
+ created: function created() {
74
+ validatePackage(packageMetadata);
75
+ this.currentDir = this.$props.dir;
76
+ },
77
+ mounted: function mounted() {
78
+ this._progressStatus = getRef(this, 'progressStatus');
79
+ this._progressStatusWrap = getRef(this, 'progressStatusWrap');
80
+ this.currentDir = this.$props.dir !== undefined ? this.$props.dir : isRtl(this.$el) ? 'rtl' : 'ltr';
81
+ this.animationFrame = animate({
82
+ duration: this.animationDuration,
83
+ onStart: this.handleStart,
84
+ onUpdate: this.handleUpdate,
85
+ onEnd: this.handleEnd
86
+ });
87
+ },
88
+ destroyed: !!isV3 ? undefined : function () {
89
+ cancelAnimation(this.animationFrame);
90
+ },
91
+ // @ts-ignore
92
+ unmounted: function unmounted() {
93
+ cancelAnimation(this.animationFrame);
94
+ },
95
+ data: function data() {
96
+ return {
97
+ currentDir: undefined
98
+ };
99
+ },
100
+ watch: {
101
+ value: function value(_newValue, oldValue) {
102
+ this.prevValue = oldValue;
103
+ this.animationFrame = animate({
104
+ duration: this.animationDuration,
105
+ onStart: this.handleStart,
106
+ onUpdate: this.handleUpdate,
107
+ onEnd: this.handleEnd
108
+ });
109
+ }
110
+ },
111
+ computed: {
112
+ wrapperClass: function wrapperClass() {
113
+ var _a = this.$props,
114
+ disabled = _a.disabled,
115
+ reverse = _a.reverse,
116
+ orientation = _a.orientation,
117
+ value = _a.value;
118
+ var isVertical = orientation === 'vertical';
119
+ var indeterminateProp = value === null;
120
+ return {
121
+ 'k-widget k-progressbar': true,
122
+ 'k-progressbar-horizontal': !isVertical,
123
+ 'k-progressbar-vertical': isVertical,
124
+ 'k-progressbar-reverse': reverse,
125
+ 'k-progressbar-indeterminate': indeterminateProp,
126
+ 'k-disabled': disabled
127
+ };
128
+ },
129
+ isVertical: function isVertical() {
130
+ return this.orientation === 'vertical';
131
+ },
132
+ animationDuration: function animationDuration() {
133
+ var animation = this.$props.animation;
134
+ return typeof animation !== 'boolean' && animation !== undefined ? animation.duration : animation ? DEFAULT_ANIMATION_DURATION : NO_ANIMATION;
135
+ }
136
+ },
137
+ // @ts-ignore
138
+ setup: !isV3 ? undefined : function () {
139
+ var v3 = !!isV3;
140
+ return {
141
+ v3: v3
142
+ };
143
+ },
144
+ // @ts-ignore
145
+ render: function render(createElement) {
146
+ var h = gh || createElement;
147
+ var _a = this.$props,
148
+ disabled = _a.disabled,
149
+ labelVisible = _a.labelVisible,
150
+ labelPlacement = _a.labelPlacement,
151
+ max = _a.max,
152
+ min = _a.min,
153
+ tabIndex = _a.tabIndex,
154
+ emptyStyle = _a.emptyStyle,
155
+ emptyClassName = _a.emptyClassName,
156
+ progressStyle = _a.progressStyle,
157
+ progressClassName = _a.progressClassName;
158
+ var value = this.$props.value || 0;
159
+ var indeterminateProp = this.$props.value === null;
160
+ var formattedLabel = truncateNumber(value);
161
+ var labelProps = {
162
+ value: value
163
+ };
164
+ var label = this.$props.labelRender ? templateRendering.call(this, this.$props.labelRender, getListeners.call(this)) : undefined;
165
+ var labelDefaultRendering = h('span', {
166
+ 'class': 'k-progress-status'
167
+ }, formattedLabel);
168
+ var toggleButtonRendering = getTemplate.call(this, {
169
+ h: h,
170
+ template: label,
171
+ defaultRendering: labelDefaultRendering,
172
+ additionalProps: labelProps
173
+ });
174
+ var renderLabel = labelVisible ? this.$props.label ? h("span", {
175
+ "class": 'k-progress-status'
176
+ }, [this.$props.label]) : toggleButtonRendering : undefined;
177
+ var positionClasses = classNames('k-progress-status-wrap', {
178
+ 'k-progress-start': labelPlacement === 'start',
179
+ 'k-progress-center': labelPlacement === 'center',
180
+ 'k-progress-end': labelPlacement === 'end' || labelPlacement === undefined
181
+ });
182
+ return h("div", {
183
+ "class": this.wrapperClass,
184
+ dir: this.currentDir,
185
+ attrs: this.v3 ? undefined : {
186
+ dir: this.currentDir,
187
+ tabindex: getTabIndex(tabIndex, disabled),
188
+ role: 'progressbar',
189
+ "aria-valuemin": min,
190
+ "aria-valuemax": max,
191
+ "aria-valuenow": indeterminateProp ? undefined : value,
192
+ "aria-disabled": disabled
193
+ },
194
+ tabindex: getTabIndex(tabIndex, disabled),
195
+ role: 'progressbar',
196
+ "aria-valuemin": min,
197
+ "aria-valuemax": max,
198
+ "aria-valuenow": indeterminateProp ? undefined : value,
199
+ "aria-disabled": disabled
200
+ }, [h("span", {
201
+ "class": positionClasses + (emptyClassName ? ' ' + emptyClassName : ''),
202
+ style: emptyStyle
203
+ }, [renderLabel]), h("div", {
204
+ "class": 'k-selected',
205
+ style: progressStyle,
206
+ ref: setRef(this, 'progressStatus')
207
+ }, [h("span", {
208
+ "class": positionClasses + (progressClassName ? ' ' + progressClassName : ''),
209
+ ref: setRef(this, 'progressStatusWrap')
210
+ }, [renderLabel])])]);
211
+ },
212
+ methods: {
213
+ focus: function focus() {
214
+ if (this.$el) {
215
+ this.$el.focus();
216
+ }
217
+ },
218
+ progressStatusElement: function progressStatusElement() {
219
+ return this._progressStatus;
220
+ },
221
+ progressStatusWrapElement: function progressStatusWrapElement() {
222
+ return this._progressStatusWrap;
223
+ },
224
+ handleStart: function handleStart() {
225
+ var percentage = calculatePercentage(this.min, this.max, this.prevValue);
226
+ updateProgress(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
227
+ },
228
+ handleUpdate: function handleUpdate(progress) {
229
+ var percentage = calculatePercentage(this.min, this.max, this.prevValue + (this.value - this.prevValue) * progress);
230
+ updateProgress(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
231
+ },
232
+ handleEnd: function handleEnd() {
233
+ var percentage = calculatePercentage(this.min, this.max, this.value);
234
+ updateProgress(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
235
+ }
236
+ }
237
+ };
238
+ /**
239
+ * @hidden
240
+ */
241
+
242
+ var ProgressBar = ProgressBarVue2;
243
+ export { ProgressBar, ProgressBarVue2 };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * An interface for the ProgressBar label.
3
+ */
4
+ export interface LabelProps {
5
+ /**
6
+ * Represents the current value of the ProgressBar.
7
+ */
8
+ value?: number | null;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Specifies the animation settings of the ProgressBar.
3
+ */
4
+ export interface ProgressBarAnimation {
5
+ /**
6
+ * Specifies the duration of the ProgressBar animation. Defaults to `400`.
7
+ */
8
+ duration: number;
9
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The ProgressBar ref.
3
+ */
4
+ export interface ProgressBarHandle {
5
+ /**
6
+ * The ProgressBar element.
7
+ */
8
+ element: HTMLDivElement | null;
9
+ /**
10
+ * The progress status element.
11
+ */
12
+ progressStatusElement: HTMLDivElement | null;
13
+ /**
14
+ * The progress status wrap element.
15
+ */
16
+ progressStatusWrapElement: HTMLSpanElement | null;
17
+ /**
18
+ * Focus the ProgressBar.
19
+ */
20
+ focus: () => void;
21
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * The ProgressBar ref.
3
+ */
4
+ export {};
@@ -0,0 +1,29 @@
1
+ import { BaseProps } from '../../common/BaseProps';
2
+ import { ProgressBarAnimation } from './ProgressBarAnimation';
3
+ /**
4
+ * Represents the props of the [Kendo UI for Vue ProgressBar component]({% slug overview_progressbar %}).
5
+ */
6
+ export interface ProgressBarProps extends BaseProps {
7
+ /**
8
+ * Specifies the animation settings of the ProgressBar. Defaults to `false`.
9
+ * If boolean, enables or disables the default animation.
10
+ * Use ProgressBarAnimation to set slide animation with customizable duration option. Accepts a number in milliseconds.
11
+ */
12
+ animation?: boolean | ProgressBarAnimation;
13
+ /**
14
+ * Overrides the default label ([see example]({% slug progressbar_label %})).
15
+ */
16
+ label?: any;
17
+ /**
18
+ * Overrides the default label template ([see example]({% slug progressbar_label %})).
19
+ */
20
+ labelRender?: any;
21
+ /**
22
+ * Sets the visibility of the progress status label. Defaults to `true`.
23
+ */
24
+ labelVisible?: boolean;
25
+ /**
26
+ * Sets the position of the progress status label. Defaults to `end` ([see example]({% slug progressbar_label %})).
27
+ */
28
+ labelPlacement?: 'start' | 'center' | 'end' | any;
29
+ }
@@ -5,33 +5,37 @@ var constants_1 = require("./constants");
5
5
  /**
6
6
  * @hidden
7
7
  */
8
- exports.truncateNumber = function (value) {
8
+ var truncateNumber = function (value) {
9
9
  var numberParts = value.toString().split('.');
10
- return numberParts.length === 1 ? "" + numberParts[0] : numberParts[0] + "." + numberParts[1].substr(0, constants_1.LABEL_DECIMALS);
10
+ return numberParts.length === 1 ? "".concat(numberParts[0]) : "".concat(numberParts[0], ".").concat(numberParts[1].substr(0, constants_1.LABEL_DECIMALS));
11
11
  };
12
+ exports.truncateNumber = truncateNumber;
12
13
  /**
13
14
  * @hidden
14
15
  */
15
- exports.calculatePercentage = function (min, max, value) {
16
+ var calculatePercentage = function (min, max, value) {
16
17
  var onePercent = Math.abs((max - min) / 100);
17
18
  return Math.abs((value - min) / onePercent);
18
19
  };
20
+ exports.calculatePercentage = calculatePercentage;
19
21
  /**
20
22
  * @hidden
21
23
  */
22
- exports.updateProgress = function (progressRef, progressWrapRef, percentage, isVertical) {
24
+ var updateProgress = function (progressRef, progressWrapRef, percentage, isVertical) {
23
25
  var progressPercentage = Math.max(percentage, 0.01);
24
26
  var progressWrapPercentage = (100 / progressPercentage) * 100;
25
27
  if (progressRef && progressWrapRef) {
26
- progressRef.style.width = !isVertical ? progressPercentage + "%" : '100%';
27
- progressWrapRef.style.width = !isVertical ? progressWrapPercentage + "%" : '100%';
28
- progressRef.style.height = isVertical ? progressPercentage + "%" : '100%';
29
- progressWrapRef.style.height = isVertical ? progressWrapPercentage + "%" : '100%';
28
+ progressRef.style.width = !isVertical ? "".concat(progressPercentage, "%") : '100%';
29
+ progressWrapRef.style.width = !isVertical ? "".concat(progressWrapPercentage, "%") : '100%';
30
+ progressRef.style.height = isVertical ? "".concat(progressPercentage, "%") : '100%';
31
+ progressWrapRef.style.height = isVertical ? "".concat(progressWrapPercentage, "%") : '100%';
30
32
  }
31
33
  };
34
+ exports.updateProgress = updateProgress;
32
35
  /**
33
36
  * @hidden
34
37
  */
35
- exports.calculateRatio = function (min, max, value) {
38
+ var calculateRatio = function (min, max, value) {
36
39
  return Math.max((value - min) / (max - min), constants_1.MIN_RATIO);
37
40
  };
41
+ exports.calculateRatio = calculateRatio;
package/dist/npm/main.js CHANGED
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
8
12
  }));
9
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./progressbar/ProgressBar"), exports);
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-progressbars',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1659428926,
11
+ publishDate: 1660123903,
12
12
  version: '',
13
13
  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'
14
14
  };
@@ -85,14 +85,14 @@ var ProgressBarVue2 = {
85
85
  progressClassName: String
86
86
  },
87
87
  created: function created() {
88
- kendo_vue_common_2.validatePackage(package_metadata_1.packageMetadata);
88
+ (0, kendo_vue_common_2.validatePackage)(package_metadata_1.packageMetadata);
89
89
  this.currentDir = this.$props.dir;
90
90
  },
91
91
  mounted: function mounted() {
92
- this._progressStatus = kendo_vue_common_1.getRef(this, 'progressStatus');
93
- this._progressStatusWrap = kendo_vue_common_1.getRef(this, 'progressStatusWrap');
94
- this.currentDir = this.$props.dir !== undefined ? this.$props.dir : kendo_vue_common_1.isRtl(this.$el) ? 'rtl' : 'ltr';
95
- this.animationFrame = kendo_vue_animation_1.animate({
92
+ this._progressStatus = (0, kendo_vue_common_1.getRef)(this, 'progressStatus');
93
+ this._progressStatusWrap = (0, kendo_vue_common_1.getRef)(this, 'progressStatusWrap');
94
+ this.currentDir = this.$props.dir !== undefined ? this.$props.dir : (0, kendo_vue_common_1.isRtl)(this.$el) ? 'rtl' : 'ltr';
95
+ this.animationFrame = (0, kendo_vue_animation_1.animate)({
96
96
  duration: this.animationDuration,
97
97
  onStart: this.handleStart,
98
98
  onUpdate: this.handleUpdate,
@@ -100,11 +100,11 @@ var ProgressBarVue2 = {
100
100
  });
101
101
  },
102
102
  destroyed: !!isV3 ? undefined : function () {
103
- kendo_vue_animation_1.cancelAnimation(this.animationFrame);
103
+ (0, kendo_vue_animation_1.cancelAnimation)(this.animationFrame);
104
104
  },
105
105
  // @ts-ignore
106
106
  unmounted: function unmounted() {
107
- kendo_vue_animation_1.cancelAnimation(this.animationFrame);
107
+ (0, kendo_vue_animation_1.cancelAnimation)(this.animationFrame);
108
108
  },
109
109
  data: function data() {
110
110
  return {
@@ -114,7 +114,7 @@ var ProgressBarVue2 = {
114
114
  watch: {
115
115
  value: function value(_newValue, oldValue) {
116
116
  this.prevValue = oldValue;
117
- this.animationFrame = kendo_vue_animation_1.animate({
117
+ this.animationFrame = (0, kendo_vue_animation_1.animate)({
118
118
  duration: this.animationDuration,
119
119
  onStart: this.handleStart,
120
120
  onUpdate: this.handleUpdate,
@@ -171,7 +171,7 @@ var ProgressBarVue2 = {
171
171
  progressClassName = _a.progressClassName;
172
172
  var value = this.$props.value || 0;
173
173
  var indeterminateProp = this.$props.value === null;
174
- var formattedLabel = utils_1.truncateNumber(value);
174
+ var formattedLabel = (0, utils_1.truncateNumber)(value);
175
175
  var labelProps = {
176
176
  value: value
177
177
  };
@@ -188,7 +188,7 @@ var ProgressBarVue2 = {
188
188
  var renderLabel = labelVisible ? this.$props.label ? h("span", {
189
189
  "class": 'k-progress-status'
190
190
  }, [this.$props.label]) : toggleButtonRendering : undefined;
191
- var positionClasses = kendo_vue_common_1.classNames('k-progress-status-wrap', {
191
+ var positionClasses = (0, kendo_vue_common_1.classNames)('k-progress-status-wrap', {
192
192
  'k-progress-start': labelPlacement === 'start',
193
193
  'k-progress-center': labelPlacement === 'center',
194
194
  'k-progress-end': labelPlacement === 'end' || labelPlacement === undefined
@@ -198,14 +198,14 @@ var ProgressBarVue2 = {
198
198
  dir: this.currentDir,
199
199
  attrs: this.v3 ? undefined : {
200
200
  dir: this.currentDir,
201
- tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
201
+ tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
202
202
  role: 'progressbar',
203
203
  "aria-valuemin": min,
204
204
  "aria-valuemax": max,
205
205
  "aria-valuenow": indeterminateProp ? undefined : value,
206
206
  "aria-disabled": disabled
207
207
  },
208
- tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
208
+ tabindex: (0, kendo_vue_common_1.getTabIndex)(tabIndex, disabled),
209
209
  role: 'progressbar',
210
210
  "aria-valuemin": min,
211
211
  "aria-valuemax": max,
@@ -217,10 +217,10 @@ var ProgressBarVue2 = {
217
217
  }, [renderLabel]), h("div", {
218
218
  "class": 'k-selected',
219
219
  style: progressStyle,
220
- ref: kendo_vue_common_1.setRef(this, 'progressStatus')
220
+ ref: (0, kendo_vue_common_1.setRef)(this, 'progressStatus')
221
221
  }, [h("span", {
222
222
  "class": positionClasses + (progressClassName ? ' ' + progressClassName : ''),
223
- ref: kendo_vue_common_1.setRef(this, 'progressStatusWrap')
223
+ ref: (0, kendo_vue_common_1.setRef)(this, 'progressStatusWrap')
224
224
  }, [renderLabel])])]);
225
225
  },
226
226
  methods: {
@@ -236,16 +236,16 @@ var ProgressBarVue2 = {
236
236
  return this._progressStatusWrap;
237
237
  },
238
238
  handleStart: function handleStart() {
239
- var percentage = utils_1.calculatePercentage(this.min, this.max, this.prevValue);
240
- utils_1.updateProgress(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
239
+ var percentage = (0, utils_1.calculatePercentage)(this.min, this.max, this.prevValue);
240
+ (0, utils_1.updateProgress)(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
241
241
  },
242
242
  handleUpdate: function handleUpdate(progress) {
243
- var percentage = utils_1.calculatePercentage(this.min, this.max, this.prevValue + (this.value - this.prevValue) * progress);
244
- utils_1.updateProgress(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
243
+ var percentage = (0, utils_1.calculatePercentage)(this.min, this.max, this.prevValue + (this.value - this.prevValue) * progress);
244
+ (0, utils_1.updateProgress)(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
245
245
  },
246
246
  handleEnd: function handleEnd() {
247
- var percentage = utils_1.calculatePercentage(this.min, this.max, this.value);
248
- utils_1.updateProgress(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
247
+ var percentage = (0, utils_1.calculatePercentage)(this.min, this.max, this.value);
248
+ (0, utils_1.updateProgress)(this._progressStatus, this._progressStatusWrap, percentage, this.isVertical);
249
249
  }
250
250
  }
251
251
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-progressbars",
3
3
  "description": "Kendo UI for Vue ProgressBars package",
4
- "version": "3.5.0",
4
+ "version": "3.5.1-dev.202208100944",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -38,15 +38,15 @@
38
38
  "devDependencies": {
39
39
  "@progress/kendo-drawing": "^1.8.0",
40
40
  "@progress/kendo-licensing": "^1.0.1",
41
- "@progress/kendo-vue-animation": "3.5.0",
42
- "@progress/kendo-vue-buttons": "3.5.0",
43
- "@progress/kendo-vue-dropdowns": "3.5.0",
44
- "@progress/kendo-vue-form": "3.5.0",
45
- "@progress/kendo-vue-inputs": "3.5.0",
46
- "@progress/kendo-vue-intl": "3.5.0"
41
+ "@progress/kendo-vue-animation": "3.5.1-dev.202208100944",
42
+ "@progress/kendo-vue-buttons": "3.5.1-dev.202208100944",
43
+ "@progress/kendo-vue-dropdowns": "3.5.1-dev.202208100944",
44
+ "@progress/kendo-vue-form": "3.5.1-dev.202208100944",
45
+ "@progress/kendo-vue-inputs": "3.5.1-dev.202208100944",
46
+ "@progress/kendo-vue-intl": "3.5.1-dev.202208100944"
47
47
  },
48
48
  "dependencies": {
49
- "@progress/kendo-vue-common": "3.5.0"
49
+ "@progress/kendo-vue-common": "3.5.1-dev.202208100944"
50
50
  },
51
51
  "@progress": {
52
52
  "friendlyName": "ProgressBars",