@progress/kendo-vue-scrollview 6.4.1 → 6.4.2-develop.3

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/ScrollView.mjs CHANGED
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { defineComponent as m, h as p, createVNode as e } from "vue";
9
- import { validatePackage as f, getRef as w, isRtl as g, templateRendering as k, getListeners as y, getTemplate as R, setRef as I, Icon as l, classNames as C, Keys as r } from "@progress/kendo-vue-common";
9
+ import { Keys as l, templateRendering as f, getListeners as w, getTemplate as g, setRef as k, Icon as r, classNames as y, getRef as R, isRtl as I, validatePackage as C } from "@progress/kendo-vue-common";
10
10
  import { packageMetadata as A } from "./package-metadata.mjs";
11
11
  import { chevronRightIcon as n, chevronLeftIcon as h } from "@progress/kendo-svg-icons";
12
12
  const D = /* @__PURE__ */ m({
@@ -47,10 +47,10 @@ const D = /* @__PURE__ */ m({
47
47
  }
48
48
  },
49
49
  created() {
50
- f(A), this.timeoutRef = null;
50
+ C(A), this.timeoutRef = null;
51
51
  },
52
52
  mounted() {
53
- this.wrapElement = w(this, "wrapElement"), this.currentDir = this.$props.dir !== void 0 ? this.$props.dir : g(this.$el) ? "rtl" : "ltr", this.runAutomaticChange();
53
+ this.wrapElement = R(this, "wrapElement"), this.currentDir = this.$props.dir !== void 0 ? this.$props.dir : I(this.$el) ? "rtl" : "ltr", this.runAutomaticChange();
54
54
  },
55
55
  updated() {
56
56
  const t = this.dataItems.length;
@@ -88,7 +88,7 @@ const D = /* @__PURE__ */ m({
88
88
  arrows: i,
89
89
  content: o
90
90
  } = this.$props, c = this.dataItems.length, d = this.dataItems.map(function(a, s) {
91
- const v = k.call(this, a.content || o, y.call(this)), u = R.call(this, {
91
+ const v = f.call(this, a.content || o, w.call(this)), u = g.call(this, {
92
92
  h: p,
93
93
  template: v,
94
94
  defaultRendering: null,
@@ -110,14 +110,14 @@ const D = /* @__PURE__ */ m({
110
110
  }, [e("div", {
111
111
  class: "k-scrollview-wrap k-scrollview-animate",
112
112
  style: `--kendo-scrollview-views:${c}; --kendo-scrollview-current:${this.active};`,
113
- ref: I(this, "wrapElement")
113
+ ref: k(this, "wrapElement")
114
114
  }, [d]), e("div", {
115
115
  class: "k-scrollview-elements"
116
116
  }, [i && [this.displayLeftArrow && e("span", {
117
117
  class: "k-scrollview-prev",
118
118
  "aria-label": "previous",
119
119
  onClick: this.handlePrevClick
120
- }, [e(l, {
120
+ }, [e(r, {
121
121
  name: this.isRtl ? "chevron-right" : "chevron-left",
122
122
  icon: this.isRtl ? n : h,
123
123
  size: "xxxlarge"
@@ -125,7 +125,7 @@ const D = /* @__PURE__ */ m({
125
125
  class: "k-scrollview-next",
126
126
  "aria-label": "next",
127
127
  onClick: this.handleNextClick
128
- }, [e(l, {
128
+ }, [e(r, {
129
129
  name: this.isRtl ? "chevron-left" : "chevron-right",
130
130
  icon: this.isRtl ? h : n,
131
131
  size: "xxxlarge"
@@ -135,7 +135,7 @@ const D = /* @__PURE__ */ m({
135
135
  class: "k-scrollview-nav"
136
136
  }, [this.dataItems.map(function(a, s) {
137
137
  return e("li", {
138
- class: C("k-link", {
138
+ class: y("k-link", {
139
139
  "k-primary": this.active === s + 1
140
140
  }),
141
141
  key: s + 1,
@@ -176,10 +176,10 @@ const D = /* @__PURE__ */ m({
176
176
  },
177
177
  handleKeyDown(t) {
178
178
  switch (t.keyCode) {
179
- case r.left:
179
+ case l.left:
180
180
  t.preventDefault(), this.isRtl ? this.next() : this.prev();
181
181
  break;
182
- case r.right:
182
+ case l.right:
183
183
  t.preventDefault(), this.isRtl ? this.prev() : this.next();
184
184
  break;
185
185
  }
@@ -12,4 +12,4 @@
12
12
  * Licensed under commercial license. See LICENSE.md in the package root for more information
13
13
  *-------------------------------------------------------------------------------------------
14
14
  */
15
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-common"),require("@progress/kendo-svg-icons")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common","@progress/kendo-svg-icons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueScrollview={},e.Vue,e.KendoVueCommon,e.KendoSVGIcons)}(this,(function(e,t,i,s){"use strict";const a={name:"@progress/kendo-vue-scrollview",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:0,version:"6.4.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"},r=t.defineComponent({name:"KendoScrollView",props:{activeView:{type:Number,default:1},dataItems:{type:Array,default:function(){return[]}},arrows:{type:Boolean,default:!0},automaticViewChange:{type:Boolean,default:!0},automaticViewChangeInterval:{type:Number,default:5e3},content:[Object,String,Function],dir:String,endless:Boolean,pageable:{type:Boolean,default:!0},pagerOverlay:{type:String,default:"none"}},created(){i.validatePackage(a),this.timeoutRef=null},mounted(){this.wrapElement=i.getRef(this,"wrapElement"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:i.isRtl(this.$el)?"rtl":"ltr",this.runAutomaticChange()},updated(){const e=this.dataItems.length;this.wrapElement&&(this.wrapElement.style.setProperty("--kendo-scrollview-views",`${e}`),this.wrapElement.style.setProperty("--kendo-scrollview-current",`${this.active}`)),this.runAutomaticChange()},data(){return{active:this.activeView||1,currentDir:void 0}},computed:{scrollViewClasses(){return{"k-scrollview":!0,"k-scrollview-light":"light"===this.pagerOverlay,"k-scrollview-dark":"dark"===this.pagerOverlay}},displayLeftArrow(){let e;return e=this.isRtl?this.active<this.dataItems.length:this.active>1,(this.endless||e)&&this.dataItems.length>0},displayRightArrow(){let e;return e=this.isRtl?this.active>1:this.active<this.dataItems.length,(this.endless||e)&&this.dataItems.length>0},isRtl(){return"rtl"===this.currentDir}},render(){const{pageable:e,arrows:a,content:r}=this.$props,l=this.dataItems.length,n=this.dataItems.map((function(e,s){const a=i.templateRendering.call(this,e.content||r,i.getListeners.call(this)),l=i.getTemplate.call(this,{h:t.h,template:a,defaultRendering:null,additionalProps:{item:e,items:this.dataItems}});return t.createVNode("div",{class:"k-scrollview-view","aria-hidden":this.active!==s+1},[l])}),this);return t.createVNode("div",{class:this.scrollViewClasses,tabindex:0,dir:this.currentDir,onKeydown:this.handleKeyDown},[t.createVNode("div",{class:"k-scrollview-wrap k-scrollview-animate",style:`--kendo-scrollview-views:${l}; --kendo-scrollview-current:${this.active};`,ref:i.setRef(this,"wrapElement")},[n]),t.createVNode("div",{class:"k-scrollview-elements"},[a&&[this.displayLeftArrow&&t.createVNode("span",{class:"k-scrollview-prev","aria-label":"previous",onClick:this.handlePrevClick},[t.createVNode(i.Icon,{name:this.isRtl?"chevron-right":"chevron-left",icon:this.isRtl?s.chevronRightIcon:s.chevronLeftIcon,size:"xxxlarge"},null)]),this.displayRightArrow&&t.createVNode("span",{class:"k-scrollview-next","aria-label":"next",onClick:this.handleNextClick},[t.createVNode(i.Icon,{name:this.isRtl?"chevron-left":"chevron-right",icon:this.isRtl?s.chevronLeftIcon:s.chevronRightIcon,size:"xxxlarge"},null)])],e&&t.createVNode("div",{class:"k-scrollview-nav-wrap"},[t.createVNode("ul",{class:"k-scrollview-nav"},[this.dataItems.map((function(e,s){return t.createVNode("li",{class:i.classNames("k-link",{"k-primary":this.active===s+1}),key:s+1,onClick:()=>this.setActive(s+1)},null)}),this)])])])])},methods:{runAutomaticChange(){if(this.automaticViewChange){this.resetTimeout();const e=this,t=this.active;this.timeoutRef=setTimeout((function(){e.setActive(t===e.dataItems.length?e.endless?1:t:t+1)}),this.automaticViewChangeInterval)}},resetTimeout(){this.timeoutRef&&clearTimeout(this.timeoutRef)},setActive(e){this.active=e},focusElement(){this.$el&&this.$el.focus()},prev(){this.endless?this.active>1?this.setActive(this.active-1):this.setActive(this.dataItems.length):this.active>1&&this.setActive(this.active-1)},next(){this.endless?this.active<this.dataItems.length?this.setActive(this.active+1):this.setActive(1):this.active<this.dataItems.length&&this.setActive(this.active+1)},handlePrevClick(){this.isRtl?this.next():this.prev()},handleNextClick(){this.isRtl?this.prev():this.next()},handleKeyDown(e){switch(e.keyCode){case i.Keys.left:e.preventDefault(),this.isRtl?this.next():this.prev();break;case i.Keys.right:e.preventDefault(),this.isRtl?this.prev():this.next()}}}});e.ScrollView=r}));
15
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@progress/kendo-vue-common"),require("@progress/kendo-svg-icons")):"function"==typeof define&&define.amd?define(["exports","vue","@progress/kendo-vue-common","@progress/kendo-svg-icons"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoVueScrollview={},e.Vue,e.KendoVueCommon,e.KendoSVGIcons)}(this,(function(e,t,i,s){"use strict";const a={name:"@progress/kendo-vue-scrollview",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:0,version:"6.4.2-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"},r=t.defineComponent({name:"KendoScrollView",props:{activeView:{type:Number,default:1},dataItems:{type:Array,default:function(){return[]}},arrows:{type:Boolean,default:!0},automaticViewChange:{type:Boolean,default:!0},automaticViewChangeInterval:{type:Number,default:5e3},content:[Object,String,Function],dir:String,endless:Boolean,pageable:{type:Boolean,default:!0},pagerOverlay:{type:String,default:"none"}},created(){i.validatePackage(a),this.timeoutRef=null},mounted(){this.wrapElement=i.getRef(this,"wrapElement"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:i.isRtl(this.$el)?"rtl":"ltr",this.runAutomaticChange()},updated(){const e=this.dataItems.length;this.wrapElement&&(this.wrapElement.style.setProperty("--kendo-scrollview-views",`${e}`),this.wrapElement.style.setProperty("--kendo-scrollview-current",`${this.active}`)),this.runAutomaticChange()},data(){return{active:this.activeView||1,currentDir:void 0}},computed:{scrollViewClasses(){return{"k-scrollview":!0,"k-scrollview-light":"light"===this.pagerOverlay,"k-scrollview-dark":"dark"===this.pagerOverlay}},displayLeftArrow(){let e;return e=this.isRtl?this.active<this.dataItems.length:this.active>1,(this.endless||e)&&this.dataItems.length>0},displayRightArrow(){let e;return e=this.isRtl?this.active>1:this.active<this.dataItems.length,(this.endless||e)&&this.dataItems.length>0},isRtl(){return"rtl"===this.currentDir}},render(){const{pageable:e,arrows:a,content:r}=this.$props,l=this.dataItems.length,n=this.dataItems.map((function(e,s){const a=i.templateRendering.call(this,e.content||r,i.getListeners.call(this)),l=i.getTemplate.call(this,{h:t.h,template:a,defaultRendering:null,additionalProps:{item:e,items:this.dataItems}});return t.createVNode("div",{class:"k-scrollview-view","aria-hidden":this.active!==s+1},[l])}),this);return t.createVNode("div",{class:this.scrollViewClasses,tabindex:0,dir:this.currentDir,onKeydown:this.handleKeyDown},[t.createVNode("div",{class:"k-scrollview-wrap k-scrollview-animate",style:`--kendo-scrollview-views:${l}; --kendo-scrollview-current:${this.active};`,ref:i.setRef(this,"wrapElement")},[n]),t.createVNode("div",{class:"k-scrollview-elements"},[a&&[this.displayLeftArrow&&t.createVNode("span",{class:"k-scrollview-prev","aria-label":"previous",onClick:this.handlePrevClick},[t.createVNode(i.Icon,{name:this.isRtl?"chevron-right":"chevron-left",icon:this.isRtl?s.chevronRightIcon:s.chevronLeftIcon,size:"xxxlarge"},null)]),this.displayRightArrow&&t.createVNode("span",{class:"k-scrollview-next","aria-label":"next",onClick:this.handleNextClick},[t.createVNode(i.Icon,{name:this.isRtl?"chevron-left":"chevron-right",icon:this.isRtl?s.chevronLeftIcon:s.chevronRightIcon,size:"xxxlarge"},null)])],e&&t.createVNode("div",{class:"k-scrollview-nav-wrap"},[t.createVNode("ul",{class:"k-scrollview-nav"},[this.dataItems.map((function(e,s){return t.createVNode("li",{class:i.classNames("k-link",{"k-primary":this.active===s+1}),key:s+1,onClick:()=>this.setActive(s+1)},null)}),this)])])])])},methods:{runAutomaticChange(){if(this.automaticViewChange){this.resetTimeout();const e=this,t=this.active;this.timeoutRef=setTimeout((function(){e.setActive(t===e.dataItems.length?e.endless?1:t:t+1)}),this.automaticViewChangeInterval)}},resetTimeout(){this.timeoutRef&&clearTimeout(this.timeoutRef)},setActive(e){this.active=e},focusElement(){this.$el&&this.$el.focus()},prev(){this.endless?this.active>1?this.setActive(this.active-1):this.setActive(this.dataItems.length):this.active>1&&this.setActive(this.active-1)},next(){this.endless?this.active<this.dataItems.length?this.setActive(this.active+1):this.setActive(1):this.active<this.dataItems.length&&this.setActive(this.active+1)},handlePrevClick(){this.isRtl?this.next():this.prev()},handleNextClick(){this.isRtl?this.prev():this.next()},handleKeyDown(e){switch(e.keyCode){case i.Keys.left:e.preventDefault(),this.isRtl?this.next():this.prev();break;case i.Keys.right:e.preventDefault(),this.isRtl?this.prev():this.next()}}}});e.ScrollView=r}));
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-scrollview",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1748962318,version:"6.4.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-scrollview",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1750422020,version:"6.4.2-develop.3",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1748962318,
14
- version: "6.4.1",
13
+ publishDate: 1750422020,
14
+ version: "6.4.2-develop.3",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-scrollview",
3
- "version": "6.4.1",
3
+ "version": "6.4.2-develop.3",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -19,7 +19,7 @@
19
19
  "sideEffects": false,
20
20
  "peerDependencies": {
21
21
  "@progress/kendo-licensing": "^1.4.0",
22
- "@progress/kendo-vue-common": "6.4.1",
22
+ "@progress/kendo-vue-common": "6.4.2-develop.3",
23
23
  "@progress/kendo-svg-icons": "^4.0.0",
24
24
  "vue": "^3.0.2"
25
25
  },
@@ -40,7 +40,7 @@
40
40
  "package": {
41
41
  "productName": "Kendo UI for Vue",
42
42
  "productCode": "KENDOUIVUE",
43
- "publishDate": 1748962318,
43
+ "publishDate": 1750422020,
44
44
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/"
45
45
  }
46
46
  },