@progress/kendo-vue-layout 7.0.0-develop.4 → 7.0.0-develop.6
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/dist/cdn/js/kendo-vue-layout.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/drawer/Drawer.mjs +21 -20
- package/drawer/DrawerNavigation.js +1 -1
- package/drawer/DrawerNavigation.mjs +28 -25
- package/index.d.mts +6 -0
- package/index.d.ts +6 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
- package/panelbar/PanelBar.js +1 -1
- package/panelbar/PanelBar.mjs +44 -42
- package/tabstrip/TabStrip.js +1 -1
- package/tabstrip/TabStrip.mjs +49 -46
- package/tilelayout/TileLayout.js +1 -1
- package/tilelayout/TileLayout.mjs +62 -59
package/drawer/Drawer.mjs
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { DrawerNavigation as
|
|
10
|
-
import { getDefaultSlots as y, templateRendering as l, getListeners as
|
|
8
|
+
import { defineComponent as g, createVNode as m } from "vue";
|
|
9
|
+
import { DrawerNavigation as v } from "./DrawerNavigation.mjs";
|
|
10
|
+
import { getDefaultSlots as y, templateRendering as l, getListeners as c, getDir as k, validatePackage as x, shouldShowValidationUI as S, getLicenseMessage as b } from "@progress/kendo-vue-common";
|
|
11
11
|
import { packageMetadata as h } from "../package-metadata.mjs";
|
|
12
|
-
const
|
|
12
|
+
const N = /* @__PURE__ */ g({
|
|
13
13
|
name: "KendoDrawer",
|
|
14
14
|
emits: {
|
|
15
15
|
select: null,
|
|
@@ -65,7 +65,7 @@ const C = /* @__PURE__ */ v({
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
created() {
|
|
68
|
-
x(h), this.showLicenseWatermark = S(h);
|
|
68
|
+
x(h), this.showLicenseWatermark = S(h), this.licenseMessage = b(h);
|
|
69
69
|
},
|
|
70
70
|
data() {
|
|
71
71
|
const {
|
|
@@ -73,11 +73,11 @@ const C = /* @__PURE__ */ v({
|
|
|
73
73
|
mode: t,
|
|
74
74
|
position: i,
|
|
75
75
|
animation: d,
|
|
76
|
-
mini:
|
|
76
|
+
mini: o,
|
|
77
77
|
width: r,
|
|
78
78
|
miniWidth: n,
|
|
79
79
|
items: a,
|
|
80
|
-
item:
|
|
80
|
+
item: s
|
|
81
81
|
} = this.$props;
|
|
82
82
|
return {
|
|
83
83
|
currentDir: "ltr",
|
|
@@ -87,13 +87,14 @@ const C = /* @__PURE__ */ v({
|
|
|
87
87
|
dir: this.currentDir,
|
|
88
88
|
position: i,
|
|
89
89
|
animation: d,
|
|
90
|
-
mini:
|
|
90
|
+
mini: o,
|
|
91
91
|
width: r,
|
|
92
92
|
miniWidth: n,
|
|
93
93
|
items: a,
|
|
94
|
-
item:
|
|
94
|
+
item: s
|
|
95
95
|
},
|
|
96
|
-
showLicenseWatermark: !1
|
|
96
|
+
showLicenseWatermark: !1,
|
|
97
|
+
licenseMessage: void 0
|
|
97
98
|
};
|
|
98
99
|
},
|
|
99
100
|
mounted() {
|
|
@@ -105,13 +106,13 @@ const C = /* @__PURE__ */ v({
|
|
|
105
106
|
mode: t,
|
|
106
107
|
position: i,
|
|
107
108
|
animation: d,
|
|
108
|
-
mini:
|
|
109
|
+
mini: o,
|
|
109
110
|
width: r,
|
|
110
111
|
miniWidth: n,
|
|
111
112
|
items: a,
|
|
112
|
-
item:
|
|
113
|
+
item: s
|
|
113
114
|
} = this.$props;
|
|
114
|
-
this.drawer.expanded = e, this.drawer.mode = t, this.drawer.dir = this.currentDir, this.drawer.position = i, this.drawer.animation = d, this.drawer.mini =
|
|
115
|
+
this.drawer.expanded = e, this.drawer.mode = t, this.drawer.dir = this.currentDir, this.drawer.position = i, this.drawer.animation = d, this.drawer.mini = o, this.drawer.width = r, this.drawer.miniWidth = n, this.drawer.items = a, this.drawer.item = s;
|
|
115
116
|
},
|
|
116
117
|
provide() {
|
|
117
118
|
return {
|
|
@@ -139,20 +140,20 @@ const C = /* @__PURE__ */ v({
|
|
|
139
140
|
items: t,
|
|
140
141
|
tabIndex: i,
|
|
141
142
|
mode: d,
|
|
142
|
-
expanded:
|
|
143
|
+
expanded: o,
|
|
143
144
|
item: r,
|
|
144
145
|
navigationHeader: n,
|
|
145
146
|
navigationFooter: a,
|
|
146
|
-
navigationContent:
|
|
147
|
-
} = this.$props, u = r ? l.call(this, r,
|
|
148
|
-
return
|
|
147
|
+
navigationContent: s
|
|
148
|
+
} = this.$props, u = r ? l.call(this, r, c.call(this)) : void 0, p = n ? l.call(this, n, c.call(this)) : void 0, w = a ? l.call(this, a, c.call(this)) : void 0, f = s ? l.call(this, s, c.call(this)) : void 0;
|
|
149
|
+
return m("div", {
|
|
149
150
|
class: this.drawerClassNames,
|
|
150
151
|
dir: this.currentDir,
|
|
151
152
|
tabindex: i
|
|
152
|
-
}, [d === "overlay" &&
|
|
153
|
+
}, [d === "overlay" && o && m("div", {
|
|
153
154
|
class: "k-overlay",
|
|
154
155
|
onClick: this.onOverlayClick
|
|
155
|
-
}, null), t &&
|
|
156
|
+
}, null), t && m(v, {
|
|
156
157
|
onSelect: this.handleSelect,
|
|
157
158
|
item: u,
|
|
158
159
|
header: p,
|
|
@@ -178,5 +179,5 @@ const C = /* @__PURE__ */ v({
|
|
|
178
179
|
}
|
|
179
180
|
});
|
|
180
181
|
export {
|
|
181
|
-
|
|
182
|
+
N as Drawer
|
|
182
183
|
};
|
|
@@ -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=require("vue"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),L=require("./DrawerItem.js"),n=require("@progress/kendo-vue-common"),j=240,R=50,V={duration:200},_={duration:0},E=e.defineComponent({name:"KendoDrawerNavigation",props:{item:[Object],header:[Object],footer:[Object],content:[Object],tabIndex:Number,showLicenseWatermark:Boolean,licenseMessage:String,onSelect:Function},inject:{kendoDrawer:{default:null}},computed:{navigationClassNames(){const{position:a}=this.kendoDrawer;return{"k-widget k-drawer":!0,"k-drawer-start":a==="start","k-drawer-end":a==="end"}}},render(){const a=n.getDefaultSlots(this),{animation:i,expanded:l,mode:c,position:m,mini:s,dir:p,width:u,miniWidth:h,items:w}=this.kendoDrawer,D=this.$props.header,N=this.$props.footer,g=this.$props.content,t=typeof i!="boolean"?i:i===!1?_:V,f=u||j,k=h||R,I={opacity:1,flexBasis:f+"px",WebkitTransition:"all "+(t&&t.duration)+"ms",transition:"all "+(t&&t.duration)+"ms"},y={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(t&&t.duration)+"ms",transition:"all "+(t&&t.duration)+"ms"},T={opacity:s?1:0,flexBasis:s?k+"px":0,WebkitTransition:"all "+(t&&t.duration)+"ms",transition:"all "+(t&&t.duration)+"ms"},b={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(t&&t.duration)+"ms",transition:"all "+(t&&t.duration)+"ms"},W={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(t&&t.duration)+"ms",transition:"all "+(t&&t.duration)+"ms"},v={transform:"translateX(0%)",WebkitTransitionDuration:(t&&t.duration)+"ms",transitionDuration:(t&&t.duration)+"ms"},x=this.showLicenseWatermark?e.createVNode(n.WatermarkOverlay,{message:this.licenseMessage},null):null,O=l?c==="push"?I:y:c==="push"?T:p==="ltr"&&m==="start"||p==="rtl"&&m==="end"?s?v:b:s?v:W,S=w&&e.createVNode("ul",{class:"k-drawer-items",role:"menubar","aria-orientation":"vertical","aria-expanded":l},[w.map(function(r,d){let o=this.$props.item;o&&!o.type&&!o.render&&(o=n.templateRendering.call(this,this.$props.item,n.getListeners.call(this)));const C=e.createVNode(L.DrawerItem,{key:d,index:d,onClick:this.onDrawerItemSelect,text:r.text,icon:r.icon,svgIcon:r.svgIcon,separator:r.separator,selected:r.selected,targetItem:r.targetItem},null);return n.getTemplate.call(this,{h:e.h,template:o,defaultRendering:C,additionalProps:{...r,index:d},additionalListeners:{click:this.onDrawerItemSelect}})},this),x]),A=n.getTemplate.call(this,{h:e.h,template:D}),M=n.getTemplate.call(this,{h:e.h,template:N}),$=n.getTemplate.call(this,{h:e.h,template:g});return e.createVNode("div",{style:O,class:this.navigationClassNames},[e.createVNode("div",{class:"k-drawer-wrapper",style:!l&&s&&c==="overlay"?{width:k+"px"}:{width:f+"px"}},[A,g?$:S||a,M])])},methods:{focus(a){this.$el&&this.$el.focus(a)},onDrawerItemSelect(a,i){this.$emit("select",a,i)}}});exports.DrawerNavigation=E;
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as
|
|
9
|
-
import { DrawerItem as
|
|
10
|
-
import { getDefaultSlots as
|
|
8
|
+
import { defineComponent as R, createVNode as s, h as o } from "vue";
|
|
9
|
+
import { DrawerItem as _ } from "./DrawerItem.mjs";
|
|
10
|
+
import { getDefaultSlots as j, WatermarkOverlay as E, templateRendering as F, getListeners as X, getTemplate as l } from "@progress/kendo-vue-common";
|
|
11
11
|
const P = 240, B = 50, H = {
|
|
12
12
|
duration: 200
|
|
13
13
|
}, U = {
|
|
14
14
|
duration: 0
|
|
15
|
-
}, J = /* @__PURE__ */
|
|
15
|
+
}, J = /* @__PURE__ */ R({
|
|
16
16
|
name: "KendoDrawerNavigation",
|
|
17
17
|
props: {
|
|
18
18
|
item: [Object],
|
|
@@ -21,6 +21,7 @@ const P = 240, B = 50, H = {
|
|
|
21
21
|
content: [Object],
|
|
22
22
|
tabIndex: Number,
|
|
23
23
|
showLicenseWatermark: Boolean,
|
|
24
|
+
licenseMessage: String,
|
|
24
25
|
onSelect: Function
|
|
25
26
|
},
|
|
26
27
|
inject: {
|
|
@@ -41,19 +42,19 @@ const P = 240, B = 50, H = {
|
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
44
|
render() {
|
|
44
|
-
const e =
|
|
45
|
+
const e = j(this), {
|
|
45
46
|
animation: n,
|
|
46
47
|
expanded: c,
|
|
47
48
|
mode: d,
|
|
48
49
|
position: p,
|
|
49
50
|
mini: r,
|
|
50
|
-
dir:
|
|
51
|
-
width:
|
|
51
|
+
dir: h,
|
|
52
|
+
width: u,
|
|
52
53
|
miniWidth: w,
|
|
53
54
|
items: f
|
|
54
|
-
} = this.kendoDrawer, I = this.$props.header, y = this.$props.footer,
|
|
55
|
+
} = this.kendoDrawer, I = this.$props.header, y = this.$props.footer, g = this.$props.content, t = typeof n != "boolean" ? n : n === !1 ? U : H, k = u || P, D = w || B, N = {
|
|
55
56
|
opacity: 1,
|
|
56
|
-
flexBasis:
|
|
57
|
+
flexBasis: k + "px",
|
|
57
58
|
WebkitTransition: "all " + (t && t.duration) + "ms",
|
|
58
59
|
/* Safari */
|
|
59
60
|
transition: "all " + (t && t.duration) + "ms"
|
|
@@ -86,15 +87,17 @@ const P = 240, B = 50, H = {
|
|
|
86
87
|
WebkitTransitionDuration: (t && t.duration) + "ms",
|
|
87
88
|
/* Safari */
|
|
88
89
|
transitionDuration: (t && t.duration) + "ms"
|
|
89
|
-
}, O = this.showLicenseWatermark ?
|
|
90
|
+
}, O = this.showLicenseWatermark ? s(E, {
|
|
91
|
+
message: this.licenseMessage
|
|
92
|
+
}, null) : null, A = c ? d === "push" ? N : b : d === "push" ? x : h === "ltr" && p === "start" || h === "rtl" && p === "end" ? r ? v : T : r ? v : W, S = f && s("ul", {
|
|
90
93
|
class: "k-drawer-items",
|
|
91
94
|
role: "menubar",
|
|
92
95
|
"aria-orientation": "vertical",
|
|
93
96
|
"aria-expanded": c
|
|
94
97
|
}, [f.map(function(a, m) {
|
|
95
98
|
let i = this.$props.item;
|
|
96
|
-
i && !i.type && !i.render && (i =
|
|
97
|
-
const
|
|
99
|
+
i && !i.type && !i.render && (i = F.call(this, this.$props.item, X.call(this)));
|
|
100
|
+
const C = s(_, {
|
|
98
101
|
key: m,
|
|
99
102
|
index: m,
|
|
100
103
|
onClick: this.onDrawerItemSelect,
|
|
@@ -106,9 +109,9 @@ const P = 240, B = 50, H = {
|
|
|
106
109
|
targetItem: a.targetItem
|
|
107
110
|
}, null);
|
|
108
111
|
return l.call(this, {
|
|
109
|
-
h:
|
|
112
|
+
h: o,
|
|
110
113
|
template: i,
|
|
111
|
-
defaultRendering:
|
|
114
|
+
defaultRendering: C,
|
|
112
115
|
additionalProps: {
|
|
113
116
|
...a,
|
|
114
117
|
index: m
|
|
@@ -117,27 +120,27 @@ const P = 240, B = 50, H = {
|
|
|
117
120
|
click: this.onDrawerItemSelect
|
|
118
121
|
}
|
|
119
122
|
});
|
|
120
|
-
}, this), O]),
|
|
121
|
-
h:
|
|
123
|
+
}, this), O]), $ = l.call(this, {
|
|
124
|
+
h: o,
|
|
122
125
|
template: I
|
|
123
|
-
}),
|
|
124
|
-
h:
|
|
126
|
+
}), L = l.call(this, {
|
|
127
|
+
h: o,
|
|
125
128
|
template: y
|
|
126
|
-
}),
|
|
127
|
-
h:
|
|
128
|
-
template:
|
|
129
|
+
}), M = l.call(this, {
|
|
130
|
+
h: o,
|
|
131
|
+
template: g
|
|
129
132
|
});
|
|
130
|
-
return
|
|
133
|
+
return s("div", {
|
|
131
134
|
style: A,
|
|
132
135
|
class: this.navigationClassNames
|
|
133
|
-
}, [
|
|
136
|
+
}, [s("div", {
|
|
134
137
|
class: "k-drawer-wrapper",
|
|
135
138
|
style: !c && r && d === "overlay" ? {
|
|
136
139
|
width: D + "px"
|
|
137
140
|
} : {
|
|
138
|
-
width:
|
|
141
|
+
width: k + "px"
|
|
139
142
|
}
|
|
140
|
-
}, [
|
|
143
|
+
}, [$, g ? M : S || e, L])]);
|
|
141
144
|
},
|
|
142
145
|
methods: {
|
|
143
146
|
focus(e) {
|
package/index.d.mts
CHANGED
|
@@ -1878,6 +1878,7 @@ items: DrawerItemProps_2[];
|
|
|
1878
1878
|
item: any;
|
|
1879
1879
|
};
|
|
1880
1880
|
showLicenseWatermark: boolean;
|
|
1881
|
+
licenseMessage: any;
|
|
1881
1882
|
}, {
|
|
1882
1883
|
drawerClassNames(): DrawerComputed['drawerClassNames'];
|
|
1883
1884
|
}, {
|
|
@@ -2096,6 +2097,7 @@ footer: PropType<any>;
|
|
|
2096
2097
|
content: PropType<any>;
|
|
2097
2098
|
tabIndex: PropType<number>;
|
|
2098
2099
|
showLicenseWatermark: PropType<boolean>;
|
|
2100
|
+
licenseMessage: PropType<string>;
|
|
2099
2101
|
onSelect: PropType<(event: DrawerSelectEvent_2) => void>;
|
|
2100
2102
|
}>, {}, {}, {
|
|
2101
2103
|
navigationClassNames(): DrawerNavigationComputed['navigationClassNames'];
|
|
@@ -2109,6 +2111,7 @@ footer: PropType<any>;
|
|
|
2109
2111
|
content: PropType<any>;
|
|
2110
2112
|
tabIndex: PropType<number>;
|
|
2111
2113
|
showLicenseWatermark: PropType<boolean>;
|
|
2114
|
+
licenseMessage: PropType<string>;
|
|
2112
2115
|
onSelect: PropType<(event: DrawerSelectEvent_2) => void>;
|
|
2113
2116
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2114
2117
|
|
|
@@ -2128,6 +2131,7 @@ export declare interface DrawerNavigationProps {
|
|
|
2128
2131
|
footer?: any;
|
|
2129
2132
|
content?: any;
|
|
2130
2133
|
showLicenseWatermark?: boolean;
|
|
2134
|
+
licenseMessage?: string;
|
|
2131
2135
|
tabIndex?: number;
|
|
2132
2136
|
onSelect?: (event: DrawerSelectEvent) => void;
|
|
2133
2137
|
}
|
|
@@ -4180,6 +4184,7 @@ dir: PropType<string>;
|
|
|
4180
4184
|
currentShowAll: boolean;
|
|
4181
4185
|
currentTabs: any[];
|
|
4182
4186
|
showLicenseWatermark: boolean;
|
|
4187
|
+
licenseMessage: any;
|
|
4183
4188
|
}, {
|
|
4184
4189
|
compTabs(): any;
|
|
4185
4190
|
}, {
|
|
@@ -4666,6 +4671,7 @@ ignoreDrag: FunctionConstructor;
|
|
|
4666
4671
|
}>, {}, {
|
|
4667
4672
|
currentPositions: any[];
|
|
4668
4673
|
showLicenseWatermark: boolean;
|
|
4674
|
+
licenseMessage: any;
|
|
4669
4675
|
}, {
|
|
4670
4676
|
compPositions(): any;
|
|
4671
4677
|
wrapperClass(): {
|
package/index.d.ts
CHANGED
|
@@ -1878,6 +1878,7 @@ items: DrawerItemProps_2[];
|
|
|
1878
1878
|
item: any;
|
|
1879
1879
|
};
|
|
1880
1880
|
showLicenseWatermark: boolean;
|
|
1881
|
+
licenseMessage: any;
|
|
1881
1882
|
}, {
|
|
1882
1883
|
drawerClassNames(): DrawerComputed['drawerClassNames'];
|
|
1883
1884
|
}, {
|
|
@@ -2096,6 +2097,7 @@ footer: PropType<any>;
|
|
|
2096
2097
|
content: PropType<any>;
|
|
2097
2098
|
tabIndex: PropType<number>;
|
|
2098
2099
|
showLicenseWatermark: PropType<boolean>;
|
|
2100
|
+
licenseMessage: PropType<string>;
|
|
2099
2101
|
onSelect: PropType<(event: DrawerSelectEvent_2) => void>;
|
|
2100
2102
|
}>, {}, {}, {
|
|
2101
2103
|
navigationClassNames(): DrawerNavigationComputed['navigationClassNames'];
|
|
@@ -2109,6 +2111,7 @@ footer: PropType<any>;
|
|
|
2109
2111
|
content: PropType<any>;
|
|
2110
2112
|
tabIndex: PropType<number>;
|
|
2111
2113
|
showLicenseWatermark: PropType<boolean>;
|
|
2114
|
+
licenseMessage: PropType<string>;
|
|
2112
2115
|
onSelect: PropType<(event: DrawerSelectEvent_2) => void>;
|
|
2113
2116
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2114
2117
|
|
|
@@ -2128,6 +2131,7 @@ export declare interface DrawerNavigationProps {
|
|
|
2128
2131
|
footer?: any;
|
|
2129
2132
|
content?: any;
|
|
2130
2133
|
showLicenseWatermark?: boolean;
|
|
2134
|
+
licenseMessage?: string;
|
|
2131
2135
|
tabIndex?: number;
|
|
2132
2136
|
onSelect?: (event: DrawerSelectEvent) => void;
|
|
2133
2137
|
}
|
|
@@ -4180,6 +4184,7 @@ dir: PropType<string>;
|
|
|
4180
4184
|
currentShowAll: boolean;
|
|
4181
4185
|
currentTabs: any[];
|
|
4182
4186
|
showLicenseWatermark: boolean;
|
|
4187
|
+
licenseMessage: any;
|
|
4183
4188
|
}, {
|
|
4184
4189
|
compTabs(): any;
|
|
4185
4190
|
}, {
|
|
@@ -4666,6 +4671,7 @@ ignoreDrag: FunctionConstructor;
|
|
|
4666
4671
|
}>, {}, {
|
|
4667
4672
|
currentPositions: any[];
|
|
4668
4673
|
showLicenseWatermark: boolean;
|
|
4674
|
+
licenseMessage: any;
|
|
4669
4675
|
}, {
|
|
4670
4676
|
compPositions(): any;
|
|
4671
4677
|
wrapperClass(): {
|
package/package-metadata.js
CHANGED
|
@@ -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-layout",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-layout",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1754860161,version:"7.0.0-develop.6",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/components/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "7.0.0-develop.
|
|
13
|
+
publishDate: 1754860161,
|
|
14
|
+
version: "7.0.0-develop.6",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/components/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-layout",
|
|
3
|
-
"version": "7.0.0-develop.
|
|
3
|
+
"version": "7.0.0-develop.6",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@progress/kendo-licensing": "^1.
|
|
22
|
-
"@progress/kendo-vue-animation": "7.0.0-develop.
|
|
23
|
-
"@progress/kendo-vue-common": "7.0.0-develop.
|
|
24
|
-
"@progress/kendo-vue-intl": "7.0.0-develop.
|
|
25
|
-
"@progress/kendo-vue-popup": "7.0.0-develop.
|
|
26
|
-
"@progress/kendo-vue-progressbars": "7.0.0-develop.
|
|
27
|
-
"@progress/kendo-svg-icons": "^4.
|
|
21
|
+
"@progress/kendo-licensing": "^1.7.0",
|
|
22
|
+
"@progress/kendo-vue-animation": "7.0.0-develop.6",
|
|
23
|
+
"@progress/kendo-vue-common": "7.0.0-develop.6",
|
|
24
|
+
"@progress/kendo-vue-intl": "7.0.0-develop.6",
|
|
25
|
+
"@progress/kendo-vue-popup": "7.0.0-develop.6",
|
|
26
|
+
"@progress/kendo-vue-progressbars": "7.0.0-develop.6",
|
|
27
|
+
"@progress/kendo-svg-icons": "^4.4.0",
|
|
28
28
|
"vue": "^3.0.2"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {},
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"package": {
|
|
45
45
|
"productName": "Kendo UI for Vue",
|
|
46
46
|
"productCode": "KENDOUIVUE",
|
|
47
|
-
"publishDate":
|
|
47
|
+
"publishDate": 1754860161,
|
|
48
48
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/components/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
49
49
|
}
|
|
50
50
|
},
|
package/panelbar/PanelBar.js
CHANGED
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("vue"),h=require("./PanelBarItem.js"),o=require("./util.js"),n=require("@progress/kendo-vue-common"),l=require("../package-metadata.js"),s=require("./interfaces/NavigationAction.js"),p=c.defineComponent({name:"KendoPanelBar",emits:{select:null,keydown:null},props:{animation:{type:Boolean,default:!0},items:Array,dir:String,selected:[String,Number],expanded:{type:Array,default:void 0},focused:[String,Number],expandMode:{type:String,default:"multiple",validator:function(e){return["single","multiple"].includes(e)}},className:String,keepItemsMounted:Boolean},created(){this.activeDescendant=null,n.validatePackage(l.packageMetadata),this.showLicenseWatermark=n.shouldShowValidationUI(l.packageMetadata),this.licenseMessage=n.getLicenseMessage(l.packageMetadata)},data(){const e=o.getInitialState(this.$props,this.expandMode);return e.currentFocused||(e.currentFocused=o.getFirstId(this.$props)),e},computed:{selectedItem(){const{selected:e=this.currentSelected}=this.$props;return e},expandedItems(){return this.$props.expanded!==void 0?this.$props.expanded||[]:this.currentExpanded},computedItems(){const e={currentExpanded:[],...this.$data,selected:this.selectedItem},i={animation:this.$props.animation,keepItemsMounted:this.$props.keepItemsMounted,state:e,expanded:this.expandedItems,handleSelect:this.handleSelect};return o.renderChildren.call(this,this.items,i)}},provide(){return{dispatchItemSelect:this.handleSelect}},render(){const e=n.classNames("k-panelbar",this.$props.className),i=this.showLicenseWatermark?c.createVNode(n.WatermarkOverlay,{message:this.licenseMessage},null):null;return c.createVNode("ul",{dir:this.$props.dir,role:"tree",tabindex:0,onKeydown:this.handleKeyDown,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,class:e,"aria-activedescendant":this.activeDescendant},[this.computedItems.map(function(t){return c.h(h.PanelBarItem,{...t,item:t})},this),i])},methods:{handleSelect(e){this.onSelect(e),this.onFocus(e)},onSelect(e){const i=o.flatChildren(this.computedItems);let t,a;if(i.forEach(r=>{r.uniquePrivateKey===(e.uniquePrivateKey||this.currentFocused)&&(t=r)}),t){let r;switch(this.expandMode){case"single":a=[...t.parentUniquePrivateKey,t.uniquePrivateKey],o.isArrayEqual(this.expandedItems,a)&&(t.parentUniquePrivateKey?a=[...t.parentUniquePrivateKey]:a=[]);break;case"multiple":a=this.expandedItems.slice(),r=a.indexOf(t.uniquePrivateKey),r===-1?a.push(t.uniquePrivateKey):a.splice(r,1);break;default:a=this.expandedItems.slice();break}this.currentSelected=t.uniquePrivateKey,this.currentExpanded=a,this.$emit("select",{target:t,expandedItems:a})}},onFocus(e,i=0){const t=o.flatVisibleChildren(this.computedItems);let a;t.forEach((r,d)=>{if(r.uniquePrivateKey===(e.uniquePrivateKey||this.currentFocused)){let u=d+i<0?0:d+i>t.length?t.length-1:d+i;a=t[u]}}),a&&(this.activeDescendant=a.id,this.currentFocused=a.uniquePrivateKey)},onNavigate(e,i){let t;switch(i){case s.NavigationAction.Previous:t=-1,this.onFocus(e,t);break;case s.NavigationAction.Next:t=1,this.onFocus(e,t);break;case s.NavigationAction.Toggle:this.onSelect(e);break}},handleWrapperFocus(){this.wrapperFocused||(this.wrapperFocused=!0)},handleWrapperBlur(){this.wrapperFocused=!1},handleKeyDown(e){const i=this._element&&getComputedStyle(this._element).direction==="rtl"||!1;if(e.target===e.currentTarget){const t=e.keyCode;let a;switch(t){case n.Keys.left:a=i?s.NavigationAction.Next:s.NavigationAction.Previous;break;case n.Keys.up:a=s.NavigationAction.Previous;break;case n.Keys.right:a=i?s.NavigationAction.Previous:s.NavigationAction.Next;break;case n.Keys.down:a=s.NavigationAction.Next;break;case n.Keys.space:case n.Keys.enter:a=s.NavigationAction.Toggle;break;default:a=null;break}a!==null&&(e.preventDefault(),this.onNavigate(e,a))}this.$emit("keydown",e)}}});exports.PanelBar=p;
|
package/panelbar/PanelBar.mjs
CHANGED
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { defineComponent as u, createVNode as
|
|
8
|
+
import { defineComponent as u, createVNode as o, h as p } from "vue";
|
|
9
9
|
import { PanelBarItem as h } from "./PanelBarItem.mjs";
|
|
10
|
-
import { flatVisibleChildren as m, flatChildren as f, isArrayEqual as
|
|
11
|
-
import { Keys as n, classNames as v, WatermarkOverlay as I, validatePackage as P, shouldShowValidationUI as S } from "@progress/kendo-vue-common";
|
|
12
|
-
import { packageMetadata as
|
|
13
|
-
import { NavigationAction as
|
|
14
|
-
const
|
|
10
|
+
import { flatVisibleChildren as m, flatChildren as f, isArrayEqual as g, renderChildren as y, getInitialState as k, getFirstId as x } from "./util.mjs";
|
|
11
|
+
import { Keys as n, classNames as v, WatermarkOverlay as I, validatePackage as P, shouldShowValidationUI as S, getLicenseMessage as b } from "@progress/kendo-vue-common";
|
|
12
|
+
import { packageMetadata as l } from "../package-metadata.mjs";
|
|
13
|
+
import { NavigationAction as i } from "./interfaces/NavigationAction.mjs";
|
|
14
|
+
const C = /* @__PURE__ */ u({
|
|
15
15
|
name: "KendoPanelBar",
|
|
16
16
|
emits: {
|
|
17
17
|
select: null,
|
|
@@ -41,11 +41,11 @@ const $ = /* @__PURE__ */ u({
|
|
|
41
41
|
keepItemsMounted: Boolean
|
|
42
42
|
},
|
|
43
43
|
created() {
|
|
44
|
-
this.activeDescendant = null, P(
|
|
44
|
+
this.activeDescendant = null, P(l), this.showLicenseWatermark = S(l), this.licenseMessage = b(l);
|
|
45
45
|
},
|
|
46
46
|
data() {
|
|
47
|
-
const e =
|
|
48
|
-
return e.currentFocused || (e.currentFocused =
|
|
47
|
+
const e = k(this.$props, this.expandMode);
|
|
48
|
+
return e.currentFocused || (e.currentFocused = x(this.$props)), e;
|
|
49
49
|
},
|
|
50
50
|
computed: {
|
|
51
51
|
selectedItem() {
|
|
@@ -62,14 +62,14 @@ const $ = /* @__PURE__ */ u({
|
|
|
62
62
|
currentExpanded: [],
|
|
63
63
|
...this.$data,
|
|
64
64
|
selected: this.selectedItem
|
|
65
|
-
},
|
|
65
|
+
}, a = {
|
|
66
66
|
animation: this.$props.animation,
|
|
67
67
|
keepItemsMounted: this.$props.keepItemsMounted,
|
|
68
68
|
state: e,
|
|
69
69
|
expanded: this.expandedItems,
|
|
70
70
|
handleSelect: this.handleSelect
|
|
71
71
|
};
|
|
72
|
-
return
|
|
72
|
+
return y.call(this, this.items, a);
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
provide() {
|
|
@@ -78,8 +78,10 @@ const $ = /* @__PURE__ */ u({
|
|
|
78
78
|
};
|
|
79
79
|
},
|
|
80
80
|
render() {
|
|
81
|
-
const e = v("k-panelbar", this.$props.className),
|
|
82
|
-
|
|
81
|
+
const e = v("k-panelbar", this.$props.className), a = this.showLicenseWatermark ? o(I, {
|
|
82
|
+
message: this.licenseMessage
|
|
83
|
+
}, null) : null;
|
|
84
|
+
return o("ul", {
|
|
83
85
|
dir: this.$props.dir,
|
|
84
86
|
role: "tree",
|
|
85
87
|
tabindex: 0,
|
|
@@ -93,56 +95,56 @@ const $ = /* @__PURE__ */ u({
|
|
|
93
95
|
...t,
|
|
94
96
|
item: t
|
|
95
97
|
});
|
|
96
|
-
}, this),
|
|
98
|
+
}, this), a]);
|
|
97
99
|
},
|
|
98
100
|
methods: {
|
|
99
101
|
handleSelect(e) {
|
|
100
102
|
this.onSelect(e), this.onFocus(e);
|
|
101
103
|
},
|
|
102
104
|
onSelect(e) {
|
|
103
|
-
const
|
|
104
|
-
let t,
|
|
105
|
-
if (
|
|
105
|
+
const a = f(this.computedItems);
|
|
106
|
+
let t, s;
|
|
107
|
+
if (a.forEach((r) => {
|
|
106
108
|
r.uniquePrivateKey === (e.uniquePrivateKey || this.currentFocused) && (t = r);
|
|
107
109
|
}), t) {
|
|
108
110
|
let r;
|
|
109
111
|
switch (this.expandMode) {
|
|
110
112
|
case "single":
|
|
111
|
-
|
|
113
|
+
s = [...t.parentUniquePrivateKey, t.uniquePrivateKey], g(this.expandedItems, s) && (t.parentUniquePrivateKey ? s = [...t.parentUniquePrivateKey] : s = []);
|
|
112
114
|
break;
|
|
113
115
|
case "multiple":
|
|
114
|
-
|
|
116
|
+
s = this.expandedItems.slice(), r = s.indexOf(t.uniquePrivateKey), r === -1 ? s.push(t.uniquePrivateKey) : s.splice(r, 1);
|
|
115
117
|
break;
|
|
116
118
|
default:
|
|
117
|
-
|
|
119
|
+
s = this.expandedItems.slice();
|
|
118
120
|
break;
|
|
119
121
|
}
|
|
120
|
-
this.currentSelected = t.uniquePrivateKey, this.currentExpanded =
|
|
122
|
+
this.currentSelected = t.uniquePrivateKey, this.currentExpanded = s, this.$emit("select", {
|
|
121
123
|
target: t,
|
|
122
|
-
expandedItems:
|
|
124
|
+
expandedItems: s
|
|
123
125
|
});
|
|
124
126
|
}
|
|
125
127
|
},
|
|
126
|
-
onFocus(e,
|
|
128
|
+
onFocus(e, a = 0) {
|
|
127
129
|
const t = m(this.computedItems);
|
|
128
|
-
let
|
|
130
|
+
let s;
|
|
129
131
|
t.forEach((r, d) => {
|
|
130
132
|
if (r.uniquePrivateKey === (e.uniquePrivateKey || this.currentFocused)) {
|
|
131
|
-
let c = d +
|
|
132
|
-
|
|
133
|
+
let c = d + a < 0 ? 0 : d + a > t.length ? t.length - 1 : d + a;
|
|
134
|
+
s = t[c];
|
|
133
135
|
}
|
|
134
|
-
}),
|
|
136
|
+
}), s && (this.activeDescendant = s.id, this.currentFocused = s.uniquePrivateKey);
|
|
135
137
|
},
|
|
136
|
-
onNavigate(e,
|
|
138
|
+
onNavigate(e, a) {
|
|
137
139
|
let t;
|
|
138
|
-
switch (
|
|
139
|
-
case
|
|
140
|
+
switch (a) {
|
|
141
|
+
case i.Previous:
|
|
140
142
|
t = -1, this.onFocus(e, t);
|
|
141
143
|
break;
|
|
142
|
-
case
|
|
144
|
+
case i.Next:
|
|
143
145
|
t = 1, this.onFocus(e, t);
|
|
144
146
|
break;
|
|
145
|
-
case
|
|
147
|
+
case i.Toggle:
|
|
146
148
|
this.onSelect(e);
|
|
147
149
|
break;
|
|
148
150
|
}
|
|
@@ -154,37 +156,37 @@ const $ = /* @__PURE__ */ u({
|
|
|
154
156
|
this.wrapperFocused = !1;
|
|
155
157
|
},
|
|
156
158
|
handleKeyDown(e) {
|
|
157
|
-
const
|
|
159
|
+
const a = this._element && getComputedStyle(this._element).direction === "rtl" || !1;
|
|
158
160
|
if (e.target === e.currentTarget) {
|
|
159
161
|
const t = e.keyCode;
|
|
160
|
-
let
|
|
162
|
+
let s;
|
|
161
163
|
switch (t) {
|
|
162
164
|
case n.left:
|
|
163
|
-
|
|
165
|
+
s = a ? i.Next : i.Previous;
|
|
164
166
|
break;
|
|
165
167
|
case n.up:
|
|
166
|
-
|
|
168
|
+
s = i.Previous;
|
|
167
169
|
break;
|
|
168
170
|
case n.right:
|
|
169
|
-
|
|
171
|
+
s = a ? i.Previous : i.Next;
|
|
170
172
|
break;
|
|
171
173
|
case n.down:
|
|
172
|
-
|
|
174
|
+
s = i.Next;
|
|
173
175
|
break;
|
|
174
176
|
case n.space:
|
|
175
177
|
case n.enter:
|
|
176
|
-
|
|
178
|
+
s = i.Toggle;
|
|
177
179
|
break;
|
|
178
180
|
default:
|
|
179
|
-
|
|
181
|
+
s = null;
|
|
180
182
|
break;
|
|
181
183
|
}
|
|
182
|
-
|
|
184
|
+
s !== null && (e.preventDefault(), this.onNavigate(e, s));
|
|
183
185
|
}
|
|
184
186
|
this.$emit("keydown", e);
|
|
185
187
|
}
|
|
186
188
|
}
|
|
187
189
|
});
|
|
188
190
|
export {
|
|
189
|
-
|
|
191
|
+
C as PanelBar
|
|
190
192
|
};
|
package/tabstrip/TabStrip.js
CHANGED
|
@@ -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 n=require("vue"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./TabStripNavigation.js"),g=require("./TabStripContent.js"),s=require("@progress/kendo-vue-common"),r=require("../package-metadata.js"),m=n.defineComponent({name:"KendoTabStrip",emits:{select:null},props:{animation:{type:Boolean,default:!0},size:{type:String,default:"medium"},selected:Number,tabPosition:{type:String,default:"top"},tabAlignment:{type:String,default:"start"},tabs:{type:Array,default:void 0},tabIndex:Number,dir:String},data(){return{currentShowAll:!0,currentTabs:[],showLicenseWatermark:!1,licenseMessage:void 0}},computed:{compTabs(){return this.tabs!==void 0?this.tabs.map(function(e){const t=s.templateRendering.call(this,e.content,s.getListeners.call(this)),a=s.templateRendering.call(this,e.titleRender,s.getListeners.call(this));return{...e,content:t,titleRender:a}},this):this.currentTabs}},provide(){return{addRenderTitle:this.addRenderTitle,addTab:this.addTab,removeTab:this.removeTab}},created(){this.keyBinding={[s.Keys.left]:()=>this.prevNavigatableTab(),[s.Keys.right]:()=>this.nextNavigatableTab(),[s.Keys.down]:()=>this.nextNavigatableTab(),[s.Keys.up]:()=>this.prevNavigatableTab(),[s.Keys.home]:()=>0,[s.Keys.end]:()=>this.compTabs.length-1},s.validatePackage(r.packageMetadata),this.showLicenseWatermark=s.shouldShowValidationUI(r.packageMetadata),this.licenseMessage=s.getLicenseMessage(r.packageMetadata)},watch:{selected(e,t){this.$props.animation&&(this.currentShowAll=!1,this.$nextTick(function(){this.currentShowAll=!0}))}},methods:{addRenderTitle(e,t){const a=this.compTabs.findIndex(i=>i.tabId===e);this.compTabs[a].titleRender=t},addTab(e){this.currentTabs.push(e)},removeTab(e){const t=this.currentTabs.findIndex(a=>a.tabId===e);this.currentTabs.splice(t,1)},onSelect(e){this.$props.selected!==e&&this.$emit("select",{selected:e})},onKeyDown(e){let t;switch(e.keyCode){case s.Keys.left:t=this.keyBinding[this.invertKeys(s.Keys.left,s.Keys.right)];break;case s.Keys.right:t=this.keyBinding[this.invertKeys(s.Keys.right,s.Keys.left)];break;case s.Keys.up:t=this.keyBinding[s.Keys.up];break;case s.Keys.down:t=this.keyBinding[s.Keys.down];break;case s.Keys.home:t=this.keyBinding[s.Keys.home];break;case s.Keys.end:t=this.keyBinding[s.Keys.end];break}t&&(e.preventDefault(),this.onSelect(t()))},invertKeys(e,t){return this.$el&&getComputedStyle(this.$el).direction==="rtl"||!1?t:e},firstNavigatableTab(){const e=this.compTabs.length;if(e){for(let t=0;t<e;t++)if(!this.compTabs[t].disabled)return t}},lastNavigatableTab(){const e=this.compTabs.length;if(e){for(let t=e-1;t>0;t--)if(!this.compTabs[t].disabled)return t}},prevNavigatableTab(){const e=this.compTabs.length,{selected:t}=this.$props,a=t?t-1:-1;if(a<0)return this.lastNavigatableTab();if(e)for(let i=a;i>-1;i--){if(!this.compTabs[i].disabled)return i;if(i===0)return this.lastNavigatableTab()}},nextNavigatableTab(){const e=this.compTabs.length,{selected:t}=this.$props,a=t?t+1:1;if(a>=e)return this.firstNavigatableTab();if(e)for(let i=a;i<e;i++){if(!this.compTabs[i].disabled)return i;if(i+1===e)return this.firstNavigatableTab()}}},render(){const{tabPosition:e,size:t,tabIndex:a=0}=this.$props,i=e==="bottom",d=s.classNames("k-widget","k-pos-relative","k-tabstrip",{[`k-tabstrip-${s.kendoThemeMaps.sizeMap[t]||t}`]:t,"k-tabstrip-left":e==="left","k-tabstrip-right":e==="right","k-tabstrip-bottom":e==="bottom","k-tabstrip-top":e==="top"}),c=this.showLicenseWatermark?n.createVNode(s.WatermarkOverlay,{message:this.licenseMessage},null):null,h=function(b){const{selected:o}=b,p=s.getDefaultSlots(this),u={index:o,animation:this.$props.animation,tabs:this.compTabs,hasTabs:this.tabs!==void 0,selected:o,showAll:this.currentShowAll};return n.h(g.TabStripContent,{...u},p)};return n.createVNode("div",{dir:this.$props.dir,class:d},[!i&&n.createVNode(l.TabStripNavigation,{tabs:this.compTabs,selected:this.$props.selected,tabAlignment:this.$props.tabAlignment,onSelect:this.onSelect,onKeydown:this.onKeyDown,tabIndex:a},null),h.call(this,this.$props),i&&n.createVNode(l.TabStripNavigation,{tabs:this.compTabs,tabAlignment:this.$props.tabAlignment,selected:this.$props.selected,onSelect:this.onSelect,onKeydown:this.onKeyDown,tabIndex:a},null),c])}});exports.TabStrip=m;
|