@progress/kendo-vue-progressbars 3.5.0-dev.202208020811 → 3.5.1-dev.202208110751
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cdn/js/kendo-vue-progressbars.js +1 -1
- package/dist/es/common/BaseProps.js +1 -0
- package/dist/es/common/utils.js +5 -5
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/progressbar/interfaces/LabelProps.js +1 -0
- package/dist/es/progressbar/interfaces/ProgressBarAnimation.js +1 -0
- package/dist/es/progressbar/interfaces/ProgressBarHandle.js +1 -0
- package/dist/es/progressbar/interfaces/ProgressBarProps.js +1 -0
- package/dist/esm/additionalTypes.ts +21 -0
- package/dist/esm/common/BaseProps.d.ts +74 -0
- package/dist/esm/common/BaseProps.js +1 -0
- package/dist/esm/common/constants.d.ts +16 -0
- package/dist/esm/common/constants.js +16 -0
- package/dist/esm/common/utils.d.ts +16 -0
- package/dist/esm/common/utils.js +34 -0
- package/dist/esm/main.d.ts +5 -0
- package/dist/esm/main.js +5 -0
- package/dist/esm/package-metadata.d.ts +5 -0
- package/dist/esm/package-metadata.js +11 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/progressbar/ProgressBar.d.ts +54 -0
- package/dist/esm/progressbar/ProgressBar.js +243 -0
- package/dist/esm/progressbar/interfaces/LabelProps.d.ts +9 -0
- package/dist/esm/progressbar/interfaces/LabelProps.js +1 -0
- package/dist/esm/progressbar/interfaces/ProgressBarAnimation.d.ts +9 -0
- package/dist/esm/progressbar/interfaces/ProgressBarAnimation.js +1 -0
- package/dist/esm/progressbar/interfaces/ProgressBarHandle.d.ts +21 -0
- package/dist/esm/progressbar/interfaces/ProgressBarHandle.js +4 -0
- package/dist/esm/progressbar/interfaces/ProgressBarProps.d.ts +29 -0
- package/dist/esm/progressbar/interfaces/ProgressBarProps.js +1 -0
- package/dist/npm/common/utils.js +13 -9
- package/dist/npm/main.js +6 -2
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/progressbar/ProgressBar.js +20 -20
- package/package.json +14 -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-
|
|
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-
|
|
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:1659427414,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:1659427210,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(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueProgressbars=t(require("vue"),require("@progress/kendo-licensing")):e.KendoVueProgressbars=t(e.Vue,e.KendoLicensing)}(self,(function(e,t){return(()=>{"use strict";var n={125:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NO_ANIMATION=t.DEFAULT_ANIMATION_DURATION=t.LABEL_DECIMALS=t.MIN_RATIO=void 0,t.MIN_RATIO=1e-5,t.LABEL_DECIMALS=3,t.DEFAULT_ANIMATION_DURATION=400,t.NO_ANIMATION=0},761:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateRatio=t.updateProgress=t.calculatePercentage=t.truncateNumber=void 0;var i=n(125);t.truncateNumber=function(e){var t=e.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,i.LABEL_DECIMALS))},t.calculatePercentage=function(e,t,n){var i=Math.abs((t-e)/100);return Math.abs((n-e)/i)},t.updateProgress=function(e,t,n,i){var r=Math.max(n,.01),a=100/r*100;e&&t&&(e.style.width=i?"100%":"".concat(r,"%"),t.style.width=i?"100%":"".concat(a,"%"),e.style.height=i?"".concat(r,"%"):"100%",t.style.height=i?"".concat(a,"%"):"100%")},t.calculateRatio=function(e,t,n){return Math.max((n-e)/(t-e),i.MIN_RATIO)}},545:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(973),t),r(n(958),t),r(n(606),t),r(n(27),t),r(n(910),t)},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660203534,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:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressBarVue2=t.ProgressBar=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t}(n(895)),o=a.h,s=a.version&&"3"===a.version[0],u=n(811),l=n(680),p=n(761),c=n(125),d=n(680),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(e){return["start","center","end"].includes(e)}},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(e){return["horizontal","vertical"].includes(e)}},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,l.getRef)(this,"progressStatus"),this._progressStatusWrap=(0,l.getRef)(this,"progressStatusWrap"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,l.isRtl)(this.$el)?"rtl":"ltr",this.animationFrame=(0,u.animate)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:s?void 0:function(){(0,u.cancelAnimation)(this.animationFrame)},unmounted:function(){(0,u.cancelAnimation)(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(e,t){this.prevValue=t,this.animationFrame=(0,u.animate)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})}},computed:{wrapperClass:function(){var e=this.$props,t=e.disabled,n=e.reverse,i="vertical"===e.orientation;return{"k-widget k-progressbar":!0,"k-progressbar-horizontal":!i,"k-progressbar-vertical":i,"k-progressbar-reverse":n,"k-progressbar-indeterminate":null===e.value,"k-disabled":t}},isVertical:function(){return"vertical"===this.orientation},animationDuration:function(){var e=this.$props.animation;return"boolean"!=typeof e&&void 0!==e?e.duration:e?c.DEFAULT_ANIMATION_DURATION:c.NO_ANIMATION}},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){var t=o||e,n=this.$props,i=n.disabled,r=n.labelVisible,a=n.labelPlacement,s=n.max,u=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,y=(0,p.truncateNumber)(m),b={value:m},x=this.$props.labelRender?l.templateRendering.call(this,this.$props.labelRender,l.getListeners.call(this)):void 0,E=t("span",{class:"k-progress-status"},y),O=l.getTemplate.call(this,{h:t,template:x,defaultRendering:E,additionalProps:b}),_=r?this.$props.label?t("span",{class:"k-progress-status"},[this.$props.label]):O:void 0,j=(0,l.classNames)("k-progress-status-wrap",{"k-progress-start":"start"===a,"k-progress-center":"center"===a,"k-progress-end":"end"===a||void 0===a});return t("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:(0,l.getTabIndex)(c,i),role:"progressbar","aria-valuemin":u,"aria-valuemax":s,"aria-valuenow":g?void 0:m,"aria-disabled":i},tabindex:(0,l.getTabIndex)(c,i),role:"progressbar","aria-valuemin":u,"aria-valuemax":s,"aria-valuenow":g?void 0:m,"aria-disabled":i},[t("span",{class:j+(h?" "+h:""),style:d},[_]),t("div",{class:"k-selected",style:f,ref:(0,l.setRef)(this,"progressStatus")},[t("span",{class:j+(v?" "+v:""),ref:(0,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 e=(0,p.calculatePercentage)(this.min,this.max,this.prevValue);(0,p.updateProgress)(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleUpdate:function(e){var t=(0,p.calculatePercentage)(this.min,this.max,this.prevValue+(this.value-this.prevValue)*e);(0,p.updateProgress)(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleEnd:function(){var e=(0,p.calculatePercentage)(this.min,this.max,this.value);(0,p.updateProgress)(this._progressStatus,this._progressStatusWrap,e,this.isVertical)}}};t.ProgressBarVue2=f;var v=f;t.ProgressBar=v},910:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},27:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},958:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},606:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},941:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationVue2=t.Animation=void 0;var i=n(895),r=i.h,a=i.version&&"3"===i.version[0],o=n(389),s=n(680),u=n(420),l=n(947).default.styles,p={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(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:a?function(){return{v3:!!a}}:void 0,created:function(){(0,s.validatePackage)(u.packageMetadata)},render:function(e){var t=r||e,n=(0,s.getDefaultSlots)(this),i=this.$props,a=(i.id,i.tag,i.role),u=i.className,p=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}}(i,["id","tag","role","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[l["animation-container"],l["animation-container-relative"],u]);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:a},class:p,role:a},[t(o.AnimationChild,{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])])}};t.AnimationVue2=p;var c=p;t.Animation=c},389:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationChildVue2=t.AnimationChild=void 0;var r=n(895),a=r.h,o=r.version&&"3"===r.version[0],s=r.ref,u=r.Transition,l=n(947),p=n(680),c=l.default.styles,d={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:o?function(){return{v3:!!o,elementRef:s(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(e){this.$emit("beforeenter",{animatedElement:e,target:this})},onEnter:function(e){this.animationStep="entering",this.$emit("entering",{animatedElement:e,target:this})},onAfterEnter:function(e){this.animationStep="entered",this.$emit("entered",{animatedElement:e,target:this})},onBeforeLeave:function(e){this.$emit("exit",{animatedElement:e,target:this})},onLeave:function(e){this.animationStep="exiting",this.$emit("exiting",{animatedElement:e,target:this})},onAfterLeave:function(e){this.animationStep="exited",this.$emit("exited",{animatedElement:e,target:this})}},render:function(e){var t=this,n=a||e,r=this.$props,o=r.appear,s=r.enter,l=r.exit,d=r.transitionName,h=r.transitionEnterDuration,f=r.transitionExitDuration,v=(r.className,r.componentChildClassName),m=(r.mountOnEnter,r.unmountOnExit,r.animationEnteringStyle),g=r.animationEnteredStyle,y=r.animationExitingStyle,b=r.animationExitedStyle,x=(function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}}(r,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),(0,p.getDefaultSlots)(this)),E=this.v3?o:!!x,O=this.v3?u:"transition",_=[v,c["child-animation-container"]],j=s?h:0,P=l?f:0,D=[i({transitionDelay:"0ms",transitionDuration:"".concat(E?j:P,"ms")},this.$props.transitionStyle),{entering:i({transitionDuration:"".concat(j,"ms")},m),entered:i({},g),exiting:i({transitionDuration:"".concat(P,"ms")},y),exited:i({},b)}[this.animationStep]],S={enter:j,leave:P},k=[E?n("div",{style:D,class:_,ref:this.v3?function(e){t.elementRef=e}:"element"},[x]):null];return n(O,{duration:S,attrs:this.v3?null:{duration:S,name:d,appear:o,appearClass:c["".concat(d,"-appear")]||"".concat(d,"-appear"),appearToClass:c["".concat(d,"-appear-active")]||"".concat(d,"-appear-active"),enterClass:c["".concat(d,"-enter")]||"".concat(d,"-enter"),enterToClass:c["".concat(d,"-enter-active")]||"".concat(d,"-enter-active"),leaveClass:c["".concat(d,"-exit")]||"".concat(d,"-exit"),leaveToClass:c["".concat(d,"-exit-active")]||"".concat(d,"-exit-active")},name:d,appear:o,appearFromClass:c["".concat(d,"-appear")]||"".concat(d,"-appear"),enterFromClass:c["".concat(d,"-enter")]||"".concat(d,"-enter"),leaveFromClass:c["".concat(d,"-exit")]||"".concat(d,"-exit"),appearToClass:c["".concat(d,"-appear-active")]||"".concat(d,"-appear-active"),enterToClass:c["".concat(d,"-enter-active")]||"".concat(d,"-enter-active"),leaveToClass:c["".concat(d,"-exit-active")]||"".concat(d,"-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 k}:k)}};t.AnimationChildVue2=d;var h=d;t.AnimationChild=h},483:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExpandVue2=t.Expand=void 0;var i=n(895),r=i.h,a=i.version&&"3"===i.version[0],o=n(941),s=n(680),u={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:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=r||e,n=(0,s.getDefaultSlots)(this),i=this.$props,a=(i.direction,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}}(i,["direction"]),"expand-".concat(this.$props.direction));return t(o.Animation,{transitionName:a,attrs:this.v3?void 0:{transitionName:a,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.ExpandVue2=u;var l=u;t.Expand=l},367:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FadeVue2=t.Fade=void 0;var i=n(895),r=i.h,a=i.version&&"3"===i.version[0],o=n(941),s=n(680),u={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:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=r||e,n=(0,s.getDefaultSlots)(this);return t(o.Animation,{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])}};t.FadeVue2=u;var l=u;t.Fade=l},756:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PushVue2=t.Push=void 0;var i=n(895),r=i.h,a=i.version&&"3"===i.version[0],o=n(941),s=n(680),u={position:"absolute",top:"0",left:"0"},l={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:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=r||e,n=(0,s.getDefaultSlots)(this),i="push-".concat(this.$props.direction);return t(o.Animation,{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?u: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?u:void 0},this.v3?function(){return[n]}:[n])}};t.PushVue2=l;var p=l;t.Push=p},468:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RevealVue2=t.Reveal=void 0;var i=n(895),r=i.h,a=i.version&&"3"===i.version[0],o=n(941),s=n(947),u=n(680),l=function(){},p={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(e){var t=this.$props.onEnter;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentIsEntering:function(e){var t=this.$props.onEntering;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentWillExit:function(e){var t=this.$props.onExit;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},updateContainerDimensions:function(e,t){void 0===t&&(t=l);var n=e?e.firstElementChild:null;if(n){var i=s.default.outerHeight(n),r=s.default.outerWidth(n);this.$data.maxHeight=i,this.$data.maxWidth=r,t()}}},computed:{animationEnteringStyle:{get:function(){var e;return{maxHeight:(e="vertical"===this.$props.direction?{maxHeight:this.maxHeight?"".concat(this.maxHeight,"px"):null}:{maxWidth:this.maxWidth?"".concat(this.maxWidth,"px"):null}).maxHeight,maxWidth:e.maxWidth}}}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=r||e,n=(0,u.getDefaultSlots)(this),i=this.$props,a=(i.direction,i.childFactory,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}}(i,["direction","childFactory"]),"reveal-".concat(this.$props.direction));return t(o.Animation,{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:a},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:a},this.v3?function(){return[n]}:[n])}};t.RevealVue2=p;var c=p;t.Reveal=c},929:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SlideVue2=t.Slide=void 0;var i=n(895),r=i.h,a=i.version&&"3"===i.version[0],o=n(941),s=n(680),u={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(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=r||e,n=(0,s.getDefaultSlots)(this),i=this.$props,a=(i.direction,i.id),u=(function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}}(i,["direction","id"]),"slide-".concat(this.$props.direction));return t(o.Animation,{id:a,attrs:this.v3?void 0:{id:a,transitionName:u,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:u,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])}};t.SlideVue2=u;var l=u;t.Slide=l},524:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomVue2=t.Zoom=void 0;var i=n(895),r=i.h,a=i.version&&"3"===i.version[0],o=n(941),s=n(680),u={position:"absolute",top:"0",left:"0"},l={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:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=r||e,n=(0,s.getDefaultSlots)(this),i="zoom-".concat(this.$props.direction);return t(o.Animation,{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?u: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?u:void 0},this.v3?function(){return[n]}:[n])}};t.ZoomVue2=l;var p=l;t.Zoom=p},173:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cancelAnimation=t.animate=void 0,t.animate=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i,r=e.duration,a=t&&1-t;return e.onStart&&e.onStart(),n=window.requestAnimationFrame((function o(s){i||(i=s);var u=(s-i+1)/r+a;u<=1?(e.onUpdate&&e.onUpdate(u),n=window.requestAnimationFrame(o),t=u):(e.onEnd&&e.onEnd(1),t=0)}))},t.cancelAnimation=function(e){e&&window.cancelAnimationFrame(e)}},811:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cancelAnimation=t.animate=t.RevealVue2=t.Reveal=t.ZoomVue2=t.Zoom=t.SlideVue2=t.Slide=t.PushVue2=t.Push=t.ExpandVue2=t.Expand=t.FadeVue2=t.Fade=t.AnimationChildVue2=t.AnimationChild=t.AnimationVue2=t.Animation=void 0;var i=n(941);Object.defineProperty(t,"Animation",{enumerable:!0,get:function(){return i.Animation}}),Object.defineProperty(t,"AnimationVue2",{enumerable:!0,get:function(){return i.AnimationVue2}});var r=n(389);Object.defineProperty(t,"AnimationChild",{enumerable:!0,get:function(){return r.AnimationChild}}),Object.defineProperty(t,"AnimationChildVue2",{enumerable:!0,get:function(){return r.AnimationChildVue2}});var a=n(367);Object.defineProperty(t,"Fade",{enumerable:!0,get:function(){return a.Fade}}),Object.defineProperty(t,"FadeVue2",{enumerable:!0,get:function(){return a.FadeVue2}});var o=n(483);Object.defineProperty(t,"Expand",{enumerable:!0,get:function(){return o.Expand}}),Object.defineProperty(t,"ExpandVue2",{enumerable:!0,get:function(){return o.ExpandVue2}});var s=n(756);Object.defineProperty(t,"Push",{enumerable:!0,get:function(){return s.Push}}),Object.defineProperty(t,"PushVue2",{enumerable:!0,get:function(){return s.PushVue2}});var u=n(929);Object.defineProperty(t,"Slide",{enumerable:!0,get:function(){return u.Slide}}),Object.defineProperty(t,"SlideVue2",{enumerable:!0,get:function(){return u.SlideVue2}});var l=n(524);Object.defineProperty(t,"Zoom",{enumerable:!0,get:function(){return l.Zoom}}),Object.defineProperty(t,"ZoomVue2",{enumerable:!0,get:function(){return l.ZoomVue2}});var p=n(468);Object.defineProperty(t,"Reveal",{enumerable:!0,get:function(){return p.Reveal}}),Object.defineProperty(t,"RevealVue2",{enumerable:!0,get:function(){return p.RevealVue2}});var c=n(173);Object.defineProperty(t,"animate",{enumerable:!0,get:function(){return c.animate}}),Object.defineProperty(t,"cancelAnimation",{enumerable:!0,get:function(){return c.cancelAnimation}})},420:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660203164,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"}},947:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={outerHeight:function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),i=parseFloat(t.marginBottom);return e.offsetHeight+n+i},outerWidth:function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),i=parseFloat(t.marginRight);return e.offsetWidth+n+i},styles:{"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"}}},346:(e,t,n)=>{var i;function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.DraggableVue2=t.Draggable=void 0;var a=n(895),o=(a.h,a.version&&"3"===a.version[0]),s=n(154),u=n(123),l=(r(i={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new s.default({press:this.press,drag:this.drag,release:this.release})},setup:o?function(){return{v3:!!o}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:o?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",o?function(){return{v3:!!o}}:void 0),r(i,"render",(function(e){return(0,u.getDefaultSlots)(this)})),i);t.DraggableVue2=l;var p=l;t.Draggable=p},770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var n=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);t.canUseDOM=n},820:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.classNames=void 0;var i=n(650);t.classNames=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?t.classNames.apply(void 0,e):(0,i.isObject)(e)?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")}},920:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.cloneArray=t.cloneValue=t.cloneObject=t.clone=t.cloneDate=void 0;var i=n(650);function r(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[n]=a(i,t[n])}}function a(e,n){if(Array.isArray(e))return o(e);if(e instanceof Date)return(0,t.cloneDate)(e);if(e&&(0,i.isObject)(e)){var a=n||{};return r(e,a),a}return e}function o(e){return e.map((function(e){return a(e,void 0)}))}t.cloneDate=function(e){return e?new Date(e.getTime()):null},t.clone=function(e){var t={};return r(e,t),t},t.cloneObject=r,t.cloneValue=a,t.cloneArray=o},374:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FIELD_REGEX=void 0,t.FIELD_REGEX=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g},123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSlots=void 0,t.getDefaultSlots=function(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}},580:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.focusContainer=t.focusLastFocusableChild=t.focusFirstFocusableChild=t.lastFocusableChild=t.firstFocusableChild=void 0;var i=n(385),r='input, [tabindex]:not([tabindex="-1"])';t.firstFocusableChild=function(e){if(e){var t=e.querySelectorAll(r);if(t.length&&t[0].focus)return t[0]}},t.lastFocusableChild=function(e){if(e){var t=e.querySelectorAll(r);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},t.focusFirstFocusableChild=function(e){if(e){var t=e.querySelectorAll(r);t.length&&t[0].focus&&t[0].focus()}},t.focusLastFocusableChild=function(e){if(e){var t=e.querySelectorAll(r);t.length&&t[t.length-1].focus&&t[t.length-1].focus()}},t.focusContainer=function(e,n){var r=!0;if(e.keyCode!==i.Keys.enter&&e.target===n)return!1;if(e.keyCode===i.Keys.enter&&e.target===n)r=!0,setTimeout((function(){(0,t.focusFirstFocusableChild)(n)}),1);else if(e.keyCode===i.Keys.esc)r=!1,n.focus();else if(e.keyCode===i.Keys.tab){var a=(0,t.firstFocusableChild)(n),o=(0,t.lastFocusableChild)(n);o&&!e.shiftKey&&e.target===o&&(e.preventDefault(),a.focus()),a&&e.shiftKey&&e.target===a&&(e.preventDefault(),o.focus())}return r}},369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTabIndex=void 0,t.getTabIndex=function(e,t,n){var i="string"==typeof e?parseInt(e,void 0):e;if(NaN!==i)return void 0!==i?i:t?n?void 0:-1:0}},504:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getter=void 0;var i=n(374),r={undefined:function(){}};t.getter=function(e){if(r[e])return r[e];var t=[];return e.replace(i.FIELD_REGEX,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),r[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},r[e]}},350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.guid=void 0,t.guid=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n}},650:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isObject=void 0,t.isObject=function(e){return"object"==typeof e}},777:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getDir=t.isRtl=void 0;var i=n(770);t.isRtl=function(e){return Boolean(i.canUseDOM&&e&&"rtl"===getComputedStyle(e).direction)},t.getDir=function(e,t){if(!t&&i.canUseDOM&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}},385:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Keys=void 0,t.Keys={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}},681:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getListeners=t.hasListener=void 0,t.hasListener=function(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]},t.getListeners=function(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}},680:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.validatePackage=t.setter=t.getter=t.getDir=t.isRtl=t.getDefaultSlots=t.getTabIndex=t.templateDefinition=t.templateRendering=t.getTemplate=t.cloneDate=t.cloneObject=t.cloneValue=t.cloneArray=t.Draggable=t.clone=t.focusContainer=t.focusLastFocusableChild=t.lastFocusableChild=t.focusFirstFocusableChild=t.firstFocusableChild=t.canUseDOM=t.hasListener=t.getListeners=t.isObject=t.noop=t.Keys=t.guid=t.classNames=t.setRef=t.getRef=void 0;var a=n(820);Object.defineProperty(t,"classNames",{enumerable:!0,get:function(){return a.classNames}});var o=n(350);Object.defineProperty(t,"guid",{enumerable:!0,get:function(){return o.guid}});var s=n(385);Object.defineProperty(t,"Keys",{enumerable:!0,get:function(){return s.Keys}});var u=n(770);Object.defineProperty(t,"canUseDOM",{enumerable:!0,get:function(){return u.canUseDOM}});var l=n(360);Object.defineProperty(t,"getRef",{enumerable:!0,get:function(){return l.getRef}}),Object.defineProperty(t,"setRef",{enumerable:!0,get:function(){return l.setRef}});var p=n(580);Object.defineProperty(t,"focusFirstFocusableChild",{enumerable:!0,get:function(){return p.focusFirstFocusableChild}}),Object.defineProperty(t,"focusLastFocusableChild",{enumerable:!0,get:function(){return p.focusLastFocusableChild}}),Object.defineProperty(t,"focusContainer",{enumerable:!0,get:function(){return p.focusContainer}}),Object.defineProperty(t,"firstFocusableChild",{enumerable:!0,get:function(){return p.firstFocusableChild}}),Object.defineProperty(t,"lastFocusableChild",{enumerable:!0,get:function(){return p.lastFocusableChild}});var c=n(346);Object.defineProperty(t,"Draggable",{enumerable:!0,get:function(){return c.Draggable}});var d=n(920);Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return d.clone}}),Object.defineProperty(t,"cloneArray",{enumerable:!0,get:function(){return d.cloneArray}}),Object.defineProperty(t,"cloneValue",{enumerable:!0,get:function(){return d.cloneValue}}),Object.defineProperty(t,"cloneObject",{enumerable:!0,get:function(){return d.cloneObject}}),Object.defineProperty(t,"cloneDate",{enumerable:!0,get:function(){return d.cloneDate}});var h=n(650);Object.defineProperty(t,"isObject",{enumerable:!0,get:function(){return h.isObject}});var f=n(482);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return f.noop}});var v=n(504);Object.defineProperty(t,"getter",{enumerable:!0,get:function(){return v.getter}});var m=n(63);Object.defineProperty(t,"setter",{enumerable:!0,get:function(){return m.setter}});var g=n(681);Object.defineProperty(t,"hasListener",{enumerable:!0,get:function(){return g.hasListener}}),Object.defineProperty(t,"getListeners",{enumerable:!0,get:function(){return g.getListeners}});var y=n(337);Object.defineProperty(t,"templateRendering",{enumerable:!0,get:function(){return y.templateRendering}}),Object.defineProperty(t,"getTemplate",{enumerable:!0,get:function(){return y.getTemplate}}),Object.defineProperty(t,"templateDefinition",{enumerable:!0,get:function(){return y.templateDefinition}});var b=n(369);Object.defineProperty(t,"getTabIndex",{enumerable:!0,get:function(){return b.getTabIndex}});var x=n(123);Object.defineProperty(t,"getDefaultSlots",{enumerable:!0,get:function(){return x.getDefaultSlots}});var E=n(777);Object.defineProperty(t,"isRtl",{enumerable:!0,get:function(){return E.isRtl}}),Object.defineProperty(t,"getDir",{enumerable:!0,get:function(){return E.getDir}});var O=n(940);Object.defineProperty(t,"validatePackage",{enumerable:!0,get:function(){return O.validatePackage}}),r(n(484),t)},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},360:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setRef=t.getRef=void 0,t.getRef=function(e,t,n){return e.v3?e["".concat(t,"Ref")]:e.$refs["".concat(n||t)]},t.setRef=function(e,t,n){return e.v3?function(n){e["".concat(t,"Ref")]=n}:n||t}},63:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setter=void 0;var i=n(374),r={undefined:function(e){return e}};t.setter=function(e){if(r[e])return r[e];var t=[];return e.replace(i.FIELD_REGEX,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),r[e]=function(e,n){for(var i=e,r=t.length-1,a=0;a<r&&i;a++)i=i[t[a]]=i[t[a]]||{};i[t[r]]=n},r[e]}},337:function(e,t,n){var i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.transformListeners=t.getTemplate=t.templateRendering=t.templateDefinition=void 0;var r=n(895),a=n(650),o=r,s=o.version&&"3"===o.version[0];function u(e){if(!e)return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];t["on"+r.charAt(0).toUpperCase()+r.slice(1)]=e[r]}return t}t.templateDefinition={type:[String,Function,Object,Boolean],default:function(){}},t.templateRendering=function(e,t){if(e||!1===e){var n=s?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{kt:!0,type:"slot",render:n,listeners:t}:"string"==typeof e||(0,a.isObject)(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}},t.getTemplate=function(e){var t,n,r,a=e.h,o=e.template,l=e.defaultRendering,p=e.defaultSlots,c=e.additionalProps,d=e.additionalListeners,h=e.swapDefaultSlots;if(!o||o&&!0===o.render)return l;if(s){var f=l?l.props:{};t=i(i({},u(d)),o.listeners),n=i(i(i({},f),c),t),r=i(i({},n),t)}else{var v=l&&l.componentOptions,m=v?l.componentOptions.listeners:{},g=v?l.componentOptions.propsData:{};t=i(i(i(i({},m),d),u(d)),o.listeners),r={props:n=i(i(i({},g),c),t),on:t}}if("slot"===o.type){var y=o.render({props:n,listeners:t,methods:t,defaultSlots:p});return y?y[0]:void 0}return"renderFunction"===o.type?h?o.render?o.render(a,l,p,n,t):void 0:o.render?o.render(a,l,n,t,p):void 0:a(o.render,r,s?function(){return[p]}:[p])},t.transformListeners=u},484:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.kendoThemeMaps=void 0,t.kendoThemeMaps={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},940:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validatePackage=void 0;var i=n(302);t.validatePackage=function(e){if(void 0!==i)i.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}},154:(e,t,n)=>{n.r(t),n.d(t,{Draggable:()=>p,default:()=>d});var i=function(e,t){return function(n){return t(e(n))}},r=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},o=function(){},s=function(e){return e.preventDefault()},u=/touch/;function l(e){return e.type.match(u)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var p=function(e){var t=this,n=e.press;void 0===n&&(n=o);var u=e.drag;void 0===u&&(u=o);var p=e.release;void 0===p&&(p=o);var c=e.mouseOnly;void 0===c&&(c=!1),this._pressHandler=i(l,n),this._dragHandler=i(l,u),this._releaseHandler=i(l,p),this._ignoreMouse=!1,this._mouseOnly=c,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(r(t.document,"mousemove",t._mousemove),r(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(r(t.document,"pointermove",t._pointermove),r(t.document,"pointerup",t._pointerup),r(t.document,"pointercancel",t._pointerup),r(t.document,"contextmenu",s),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",s),t._releaseHandler(e))}},c={document:{configurable:!0}};p.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},c.document.get=function(){return this._element?this._element.ownerDocument:document},p.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},p.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?r(e,"pointerdown",this._pointerdown):(r(e,"mousedown",this._mousedown),this._mouseOnly||(r(e,"touchstart",this._touchstart),r(e,"touchmove",this._touchmove),r(e,"touchend",this._touchend)))},p.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",s),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},p.prototype._usePointers=function(){return!this._mouseOnly&&p.supportPointerEvent()},p.prototype.update=function(e){var t=e.press;void 0===t&&(t=o);var n=e.drag;void 0===n&&(n=o);var r=e.release;void 0===r&&(r=o);var a=e.mouseOnly;void 0===a&&(a=!1),this._pressHandler=i(l,t),this._dragHandler=i(l,n),this._releaseHandler=i(l,r),this._mouseOnly=a},p.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(p.prototype,c),p.default=p;const d=p},302:e=>{e.exports=t},895:t=>{t.exports=e}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var a=i[e]={exports:{}};return n[e].call(a.exports,a,a.exports,r),a.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(545)})()}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/common/utils.js
CHANGED
|
@@ -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 ? ""
|
|
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
|
|
24
|
-
progressWrapRef.style.width = !isVertical ? progressWrapPercentage
|
|
25
|
-
progressRef.style.height = isVertical ? progressPercentage
|
|
26
|
-
progressWrapRef.style.height = isVertical ? progressWrapPercentage
|
|
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:
|
|
8
|
+
publishDate: 1660203534,
|
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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 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';
|
package/dist/esm/main.js
ADDED
|
@@ -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,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: 1660203534,
|
|
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,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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/npm/common/utils.js
CHANGED
|
@@ -5,33 +5,37 @@ var constants_1 = require("./constants");
|
|
|
5
5
|
/**
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
var truncateNumber = function (value) {
|
|
9
9
|
var numberParts = value.toString().split('.');
|
|
10
|
-
return numberParts.length === 1 ? ""
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
27
|
-
progressWrapRef.style.width = !isVertical ? progressWrapPercentage
|
|
28
|
-
progressRef.style.height = isVertical ? progressPercentage
|
|
29
|
-
progressWrapRef.style.height = isVertical ? progressWrapPercentage
|
|
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
|
-
|
|
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.
|
|
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" && !
|
|
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:
|
|
11
|
+
publishDate: 1660203534,
|
|
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.
|
|
4
|
+
"version": "3.5.1-dev.202208110751",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-vue.git"
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
"types": "dist/npm/main.d.ts",
|
|
11
11
|
"module": "dist/es/main.js",
|
|
12
12
|
"jsnext:main": "dist/es/main.js",
|
|
13
|
+
"exports": {
|
|
14
|
+
"node": "./dist/esm/main.js",
|
|
15
|
+
"import": "./dist/es/main.js",
|
|
16
|
+
"require": "./dist/npm/main.js",
|
|
17
|
+
"default": "./dist/npm/main.js"
|
|
18
|
+
},
|
|
13
19
|
"scripts": {
|
|
14
20
|
"test": "cd ../../ && npm run test -- --testPathPattern=/packages/progressbars/.*",
|
|
15
21
|
"start": "gulp start",
|
|
@@ -38,15 +44,15 @@
|
|
|
38
44
|
"devDependencies": {
|
|
39
45
|
"@progress/kendo-drawing": "^1.8.0",
|
|
40
46
|
"@progress/kendo-licensing": "^1.0.1",
|
|
41
|
-
"@progress/kendo-vue-animation": "3.5.
|
|
42
|
-
"@progress/kendo-vue-buttons": "3.5.
|
|
43
|
-
"@progress/kendo-vue-dropdowns": "3.5.
|
|
44
|
-
"@progress/kendo-vue-form": "3.5.
|
|
45
|
-
"@progress/kendo-vue-inputs": "3.5.
|
|
46
|
-
"@progress/kendo-vue-intl": "3.5.
|
|
47
|
+
"@progress/kendo-vue-animation": "3.5.1-dev.202208110751",
|
|
48
|
+
"@progress/kendo-vue-buttons": "3.5.1-dev.202208110751",
|
|
49
|
+
"@progress/kendo-vue-dropdowns": "3.5.1-dev.202208110751",
|
|
50
|
+
"@progress/kendo-vue-form": "3.5.1-dev.202208110751",
|
|
51
|
+
"@progress/kendo-vue-inputs": "3.5.1-dev.202208110751",
|
|
52
|
+
"@progress/kendo-vue-intl": "3.5.1-dev.202208110751"
|
|
47
53
|
},
|
|
48
54
|
"dependencies": {
|
|
49
|
-
"@progress/kendo-vue-common": "3.5.
|
|
55
|
+
"@progress/kendo-vue-common": "3.5.1-dev.202208110751"
|
|
50
56
|
},
|
|
51
57
|
"@progress": {
|
|
52
58
|
"friendlyName": "ProgressBars",
|