@progress/kendo-vue-layout 8.4.0-develop.3 → 8.4.0-develop.4
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/appbar/AppBar.d.ts +2 -0
- package/appbar/AppBar.js +1 -1
- package/appbar/AppBar.mjs +15 -12
- package/appbar/interfaces/AppBarProps.d.ts +11 -8
- package/bottomnavigation/BottomNavigation.js +1 -1
- package/bottomnavigation/BottomNavigation.mjs +4 -4
- package/bottomnavigation/BottomNavigationProps.d.ts +5 -15
- package/bottomnavigation/models/utils.d.ts +1 -6
- package/bottomnavigation/models/utils.js +1 -1
- package/bottomnavigation/models/utils.mjs +7 -12
- package/card/Avatar.d.ts +3 -3
- package/card/Avatar.js +1 -1
- package/card/Avatar.mjs +6 -6
- package/card/interfaces/AvatarProps.d.ts +3 -5
- package/dist/cdn/js/kendo-vue-layout.js +1 -1
- package/expansionpanel/ExpansionPanel.d.ts +48 -1
- package/expansionpanel/ExpansionPanel.js +1 -1
- package/expansionpanel/ExpansionPanel.mjs +41 -49
- package/expansionpanel/ExpansionPanelContent.js +1 -1
- package/expansionpanel/ExpansionPanelContent.mjs +11 -24
- package/menu/components/MenuItemArrow.js +1 -1
- package/menu/components/MenuItemArrow.mjs +11 -11
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -8
- package/splitter/SplitterBar.d.ts +2 -2
- package/splitter/SplitterBar.js +1 -1
- package/splitter/SplitterBar.mjs +70 -56
- package/stepper/Step.js +1 -1
- package/stepper/Step.mjs +1 -1
package/splitter/SplitterBar.mjs
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
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 { Keys as
|
|
8
|
+
import { defineComponent as m, createVNode as n } from "vue";
|
|
9
|
+
import { Keys as a, classNames as x, Draggable as w, Icon as d } from "@progress/kendo-vue-common";
|
|
10
10
|
import { provideLocalizationService as k } from "@progress/kendo-vue-intl";
|
|
11
|
-
import { splitterPaneLabel as
|
|
12
|
-
import {
|
|
13
|
-
const C = /* @__PURE__ */
|
|
11
|
+
import { splitterPaneLabel as f, messages as $ } from "../messages/main.mjs";
|
|
12
|
+
import { chevronLeftIcon as c, chevronRightIcon as p, chevronDownIcon as b, chevronUpIcon as v } from "@progress/kendo-svg-icons";
|
|
13
|
+
const C = /* @__PURE__ */ m({
|
|
14
14
|
name: "KendoSplitterBar",
|
|
15
15
|
emits: {
|
|
16
16
|
drag: null,
|
|
@@ -37,16 +37,16 @@ const C = /* @__PURE__ */ v({
|
|
|
37
37
|
isStatic() {
|
|
38
38
|
const {
|
|
39
39
|
prev: t,
|
|
40
|
-
next:
|
|
41
|
-
} = this.$props, e = t.resizable &&
|
|
42
|
-
return !e && !
|
|
40
|
+
next: r
|
|
41
|
+
} = this.$props, e = t.resizable && r.resizable, s = t.collapsible || r.collapsible;
|
|
42
|
+
return !e && !s;
|
|
43
43
|
},
|
|
44
44
|
isDraggable() {
|
|
45
45
|
const {
|
|
46
46
|
prev: t,
|
|
47
|
-
next:
|
|
48
|
-
} = this.$props, e = t.resizable &&
|
|
49
|
-
return !!e && !
|
|
47
|
+
next: r
|
|
48
|
+
} = this.$props, e = t.resizable && r.resizable, s = t.collapsed || r.collapsed;
|
|
49
|
+
return !!e && !s;
|
|
50
50
|
},
|
|
51
51
|
isHorizontal() {
|
|
52
52
|
return this.$props.orientation === "horizontal";
|
|
@@ -66,25 +66,25 @@ const C = /* @__PURE__ */ v({
|
|
|
66
66
|
this.$el && (this.draggable = this.$refs.draggable);
|
|
67
67
|
},
|
|
68
68
|
render() {
|
|
69
|
-
const t = this.isDraggable,
|
|
69
|
+
const t = this.isDraggable, r = this.isStatic, e = this.isHorizontal, s = x("k-splitbar", {
|
|
70
70
|
"k-focus": this.focused,
|
|
71
71
|
"k-splitbar-horizontal": e,
|
|
72
72
|
"k-splitbar-vertical": !e,
|
|
73
73
|
"k-splitbar-draggable-horizontal": e && t,
|
|
74
74
|
"k-splitbar-draggable-vertical": !e && t,
|
|
75
|
-
"k-splitbar-static-horizontal": e &&
|
|
76
|
-
"k-splitbar-static-vertical": !e &&
|
|
77
|
-
}), i = this.previousArrowName(e), o = this.previousArrowSVG(e), h = this.nextArrowName(e),
|
|
78
|
-
return
|
|
79
|
-
onPress: (
|
|
80
|
-
onDrag: (
|
|
81
|
-
onRelease: (
|
|
75
|
+
"k-splitbar-static-horizontal": e && r,
|
|
76
|
+
"k-splitbar-static-vertical": !e && r
|
|
77
|
+
}), i = this.previousArrowName(e), o = this.previousArrowSVG(e), h = this.nextArrowName(e), u = this.nextArrowSVG(e), g = k(this).toLanguageString(f, $[f]);
|
|
78
|
+
return n(w, {
|
|
79
|
+
onPress: (l) => this.onDrag(l, !0, !1),
|
|
80
|
+
onDrag: (l) => this.onDrag(l, !1, !1),
|
|
81
|
+
onRelease: (l) => this.onDrag(l, !1, !0),
|
|
82
82
|
ref: "draggable"
|
|
83
83
|
}, {
|
|
84
|
-
default: () => [
|
|
85
|
-
tabindex:
|
|
84
|
+
default: () => [n("div", {
|
|
85
|
+
tabindex: r ? -1 : 0,
|
|
86
86
|
role: "separator",
|
|
87
|
-
class:
|
|
87
|
+
class: s,
|
|
88
88
|
style: {
|
|
89
89
|
touchAction: "none"
|
|
90
90
|
},
|
|
@@ -92,33 +92,33 @@ const C = /* @__PURE__ */ v({
|
|
|
92
92
|
onFocusout: this.onBlur,
|
|
93
93
|
onDblclick: this.onToggle,
|
|
94
94
|
onKeydown: this.onKeyDown,
|
|
95
|
-
"aria-label":
|
|
95
|
+
"aria-label": g,
|
|
96
96
|
"aria-orientation": this.isHorizontal ? "vertical" : "horizontal"
|
|
97
|
-
}, [this.prev.collapsible &&
|
|
97
|
+
}, [this.prev.collapsible && n("span", {
|
|
98
98
|
class: "k-collapse-prev",
|
|
99
99
|
onClick: this.onPrevToggle
|
|
100
|
-
}, [
|
|
100
|
+
}, [n(d, {
|
|
101
101
|
name: i,
|
|
102
102
|
icon: o,
|
|
103
103
|
size: "xsmall"
|
|
104
|
-
}, null)]),
|
|
104
|
+
}, null)]), n("div", {
|
|
105
105
|
class: "k-resize-handle"
|
|
106
|
-
}, null), this.next.collapsible &&
|
|
106
|
+
}, null), this.next.collapsible && n("span", {
|
|
107
107
|
class: "k-collapse-next",
|
|
108
108
|
onClick: this.onNextToggle
|
|
109
|
-
}, [
|
|
109
|
+
}, [n(d, {
|
|
110
110
|
name: h,
|
|
111
|
-
icon:
|
|
111
|
+
icon: u,
|
|
112
112
|
size: "xsmall"
|
|
113
113
|
}, null)])])]
|
|
114
114
|
});
|
|
115
115
|
},
|
|
116
116
|
methods: {
|
|
117
|
-
onDrag(t,
|
|
118
|
-
const
|
|
117
|
+
onDrag(t, r, e) {
|
|
118
|
+
const s = t, {
|
|
119
119
|
index: i
|
|
120
120
|
} = this.$props, o = this.draggable && this.draggable.element;
|
|
121
|
-
!e &&
|
|
121
|
+
!e && s && s.originalEvent.preventDefault(), o && !this.isStatic && this.isDraggable && this.$emit("drag", s, o, i, r, e);
|
|
122
122
|
},
|
|
123
123
|
onFocus() {
|
|
124
124
|
this.focused = !0;
|
|
@@ -128,57 +128,71 @@ const C = /* @__PURE__ */ v({
|
|
|
128
128
|
},
|
|
129
129
|
onToggle(t) {
|
|
130
130
|
const {
|
|
131
|
-
index:
|
|
131
|
+
index: r,
|
|
132
132
|
prev: e,
|
|
133
|
-
next:
|
|
133
|
+
next: s
|
|
134
134
|
} = this.$props;
|
|
135
|
-
(e.collapsible ||
|
|
135
|
+
(e.collapsible || s.collapsible) && this.$emit("toggle", e.collapsible ? r : r + 1, t);
|
|
136
136
|
},
|
|
137
137
|
onPrevToggle(t) {
|
|
138
138
|
const {
|
|
139
|
-
index:
|
|
139
|
+
index: r,
|
|
140
140
|
prev: e
|
|
141
141
|
} = this.$props;
|
|
142
|
-
e.collapsible && this.$emit("toggle",
|
|
142
|
+
e.collapsible && this.$emit("toggle", r, t);
|
|
143
143
|
},
|
|
144
144
|
onNextToggle(t) {
|
|
145
145
|
const {
|
|
146
|
-
index:
|
|
146
|
+
index: r,
|
|
147
147
|
next: e
|
|
148
148
|
} = this.$props;
|
|
149
|
-
e.collapsible && this.$emit("toggle",
|
|
149
|
+
e.collapsible && this.$emit("toggle", r + 1, t);
|
|
150
150
|
},
|
|
151
151
|
onKeyDown(t) {
|
|
152
|
-
const
|
|
153
|
-
index:
|
|
154
|
-
} = this.$props, i = this.draggable && this.draggable.element, o = (h,
|
|
155
|
-
t.preventDefault(), this.$emit("keyboardresize", h,
|
|
152
|
+
const r = t && t.keyCode, e = this.isHorizontal, {
|
|
153
|
+
index: s
|
|
154
|
+
} = this.$props, i = this.draggable && this.draggable.element, o = (h, u, g) => {
|
|
155
|
+
t.preventDefault(), this.$emit("keyboardresize", h, u, g, t);
|
|
156
156
|
};
|
|
157
|
-
i && (
|
|
157
|
+
i && (r === a.enter ? (t.preventDefault(), this.onToggle(t)) : this.isDraggable && (e && r === a.left ? o(i, s, -10) : e && r === a.right ? o(i, s, 10) : !e && r === a.up ? o(i, s, -10) : !e && r === a.down && o(i, s, 10)));
|
|
158
158
|
},
|
|
159
159
|
previousArrowName(t) {
|
|
160
160
|
const {
|
|
161
|
-
prev:
|
|
162
|
-
} = this.$props, e =
|
|
163
|
-
return t && !e ? this.isRtl ? "
|
|
161
|
+
prev: r
|
|
162
|
+
} = this.$props, e = r.collapsed;
|
|
163
|
+
return t && !e ? this.isRtl ? "chevron-right" : "chevron-left" : t && e ? this.isRtl ? "chevron-left" : "chevron-right" : !t && !e ? "chevron-up" : !t && e ? "chevron-down" : "";
|
|
164
164
|
},
|
|
165
165
|
previousArrowSVG(t) {
|
|
166
166
|
const {
|
|
167
|
-
prev:
|
|
168
|
-
} = this.$props, e =
|
|
169
|
-
|
|
167
|
+
prev: r
|
|
168
|
+
} = this.$props, e = r.collapsed;
|
|
169
|
+
if (t && !e)
|
|
170
|
+
return this.isRtl ? p : c;
|
|
171
|
+
if (t && e)
|
|
172
|
+
return this.isRtl ? c : p;
|
|
173
|
+
if (!t && !e)
|
|
174
|
+
return v;
|
|
175
|
+
if (!t && e)
|
|
176
|
+
return b;
|
|
170
177
|
},
|
|
171
178
|
nextArrowName(t) {
|
|
172
179
|
const {
|
|
173
|
-
next:
|
|
174
|
-
} = this.$props, e =
|
|
175
|
-
return t && !e ? this.isRtl ? "
|
|
180
|
+
next: r
|
|
181
|
+
} = this.$props, e = r.collapsed;
|
|
182
|
+
return t && !e ? this.isRtl ? "chevron-left" : "chevron-right" : t && e ? this.isRtl ? "chevron-right" : "chevron-left" : !t && !e ? "chevron-down" : !t && e ? "chevron-up" : "";
|
|
176
183
|
},
|
|
177
184
|
nextArrowSVG(t) {
|
|
178
185
|
const {
|
|
179
|
-
next:
|
|
180
|
-
} = this.$props, e =
|
|
181
|
-
|
|
186
|
+
next: r
|
|
187
|
+
} = this.$props, e = r.collapsed;
|
|
188
|
+
if (t && !e)
|
|
189
|
+
return this.isRtl ? c : p;
|
|
190
|
+
if (t && e)
|
|
191
|
+
return this.isRtl ? p : c;
|
|
192
|
+
if (!t && !e)
|
|
193
|
+
return b;
|
|
194
|
+
if (!t && e)
|
|
195
|
+
return v;
|
|
182
196
|
}
|
|
183
197
|
}
|
|
184
198
|
});
|
package/stepper/Step.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 t=require("vue"),r=require("@progress/kendo-vue-common"),q=require("@progress/kendo-vue-intl"),k=require("@progress/kendo-svg-icons"),S=require("./contants.js"),b=require("./messages/main.js"),D=t.defineComponent({name:"KendoStep",props:{current:Boolean,disabled:Boolean,icon:String,svgIcon:Object,index:Number,isValid:{type:Boolean,default:void 0},focused:Boolean,label:String,optional:Boolean,tabIndex:{type:Number,default:0},text:String,animationDuration:[Boolean,Number],isVertical:Boolean,item:[String,Object,Boolean,Function],linear:Boolean,mode:String,numOfSteps:Number,value:Number,successIcon:String,successSvgIcon:Object,errorIcon:String,errorSvgIcon:Object,onChange:Function,onFocus:Function},inject:{kendoLocalizationService:{default:null}},computed:{itemClassNames(){const{current:e,disabled:n,focused:i,index:o,isValid:s,optional:d}=this.$props;return{"k-step":!0,"k-step-first":o===0,"k-step-last":this.numOfSteps&&o===this.numOfSteps-1,"k-step-done":o<this.value,"k-step-current":e,"k-step-optional":d,"k-disabled":n,"k-focus":i,"k-step-error":s!==void 0&&!s,"k-step-success":s}},itemStyles(){const{index:e}=this.$props,n=!this.linear||e===this.value-1||e===this.value||e===this.value+1;return{maxWidth:this.isVertical?void 0:`calc(100% / ${this.numOfSteps})`,pointerEvents:n?void 0:"none"}}},watch:{focused(e){this.aElement=this.$refs.aElement,this.aElement&&e&&this.aElement.focus()}},setup(){return{kendoLocalizationService:t.inject("kendoLocalizationService",{})}},render(){const e=r.getDefaultSlots(this),{current:n,disabled:i,focused:o,icon:s,svgIcon:d,index:a,isValid:c,label:l,optional:I,tabIndex:m,text:g,animationDuration:u,item:v,linear:N,mode:V,value:p,successIcon:x,successSvgIcon:C,errorIcon:O,errorSvgIcon:F}=this.$props,y=!N||a===p-1||a===p||a===p+1,B=q.provideLocalizationService(this),$=(f=>B.toLanguageString(f,b.messages[f]))(b.optionalText),z=typeof u=="number"?u:u!==!1?S.DEFAULT_ANIMATION_DURATION:S.NO_ANIMATION,L=c?x||"check-circle":O||"exclamation-circle",j=c?C||k.
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("@progress/kendo-vue-common"),q=require("@progress/kendo-vue-intl"),k=require("@progress/kendo-svg-icons"),S=require("./contants.js"),b=require("./messages/main.js"),D=t.defineComponent({name:"KendoStep",props:{current:Boolean,disabled:Boolean,icon:String,svgIcon:Object,index:Number,isValid:{type:Boolean,default:void 0},focused:Boolean,label:String,optional:Boolean,tabIndex:{type:Number,default:0},text:String,animationDuration:[Boolean,Number],isVertical:Boolean,item:[String,Object,Boolean,Function],linear:Boolean,mode:String,numOfSteps:Number,value:Number,successIcon:String,successSvgIcon:Object,errorIcon:String,errorSvgIcon:Object,onChange:Function,onFocus:Function},inject:{kendoLocalizationService:{default:null}},computed:{itemClassNames(){const{current:e,disabled:n,focused:i,index:o,isValid:s,optional:d}=this.$props;return{"k-step":!0,"k-step-first":o===0,"k-step-last":this.numOfSteps&&o===this.numOfSteps-1,"k-step-done":o<this.value,"k-step-current":e,"k-step-optional":d,"k-disabled":n,"k-focus":i,"k-step-error":s!==void 0&&!s,"k-step-success":s}},itemStyles(){const{index:e}=this.$props,n=!this.linear||e===this.value-1||e===this.value||e===this.value+1;return{maxWidth:this.isVertical?void 0:`calc(100% / ${this.numOfSteps})`,pointerEvents:n?void 0:"none"}}},watch:{focused(e){this.aElement=this.$refs.aElement,this.aElement&&e&&this.aElement.focus()}},setup(){return{kendoLocalizationService:t.inject("kendoLocalizationService",{})}},render(){const e=r.getDefaultSlots(this),{current:n,disabled:i,focused:o,icon:s,svgIcon:d,index:a,isValid:c,label:l,optional:I,tabIndex:m,text:g,animationDuration:u,item:v,linear:N,mode:V,value:p,successIcon:x,successSvgIcon:C,errorIcon:O,errorSvgIcon:F}=this.$props,y=!N||a===p-1||a===p||a===p+1,B=q.provideLocalizationService(this),$=(f=>B.toLanguageString(f,b.messages[f]))(b.optionalText),z=typeof u=="number"?u:u!==!1?S.DEFAULT_ANIMATION_DURATION:S.NO_ANIMATION,L=c?x||"check-circle":O||"exclamation-circle",j=c?C||k.checkIcon:F||k.exclamationCircleIcon,h=t.createVNode(r.Icon,{class:"k-step-indicator-icon",name:r.getIconName(L),icon:j,"aria-hidden":"true"},null),A=function(){return V!=="labels"?t.createVNode("span",{class:"k-step-indicator","aria-hidden":!0,style:{transitionDuration:z+"ms"}},[this.getStepIndicatorContent(l,s,d,g,a,c,h)]):null},E=function(){return t.createVNode("span",{class:"k-step-label"},[l&&t.createVNode("span",{class:"k-step-text"},[l]),l&&c!==void 0&&h,I&&t.createVNode("span",{class:"k-step-label-optional"},[$])])};return t.createVNode("li",{class:this.itemClassNames,style:this.itemStyles},[t.createVNode("a",{ref:"aElement",class:"k-step-link",title:l||void 0,onClick:this.handleClick,onFocusin:this.handleFocus,"tab-index":m||(n?0:-1),"aria-current":n?!0:void 0,"aria-disabled":i||!y||void 0,"aria-invalid":c!==void 0&&!c||void 0},[v?e:[A.call(this),E.call(this)]])])},methods:{getStepIndicatorContent(e,n,i,o,s,d,a){return e?n||i?t.createVNode(r.Icon,{class:"k-step-indicator-icon",name:n,icon:i},null):t.createVNode("span",{class:"k-step-indicator-text"},[o||s+1]):d!==void 0?a:n||i?t.createVNode(r.Icon,{class:"k-step-indicator-icon",name:n,icon:i},null):t.createVNode("span",{class:"k-step-indicator-text"},[o||s+1])},focus(){this.$el&&r.focusFirstFocusableChild(this.$el)},handleClick(e){this.disabled||this.$emit("change",{event:e,value:this.index,component:this})},handleFocus(e){this.disabled||this.$emit("focus",e)}}});exports.Step=D;
|
package/stepper/Step.mjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { defineComponent as E, createVNode as n, inject as j } from "vue";
|
|
9
9
|
import { focusFirstFocusableChild as D, Icon as p, getDefaultSlots as V, getIconName as M } from "@progress/kendo-vue-common";
|
|
10
10
|
import { provideLocalizationService as T } from "@progress/kendo-vue-intl";
|
|
11
|
-
import {
|
|
11
|
+
import { checkIcon as w, exclamationCircleIcon as _ } from "@progress/kendo-svg-icons";
|
|
12
12
|
import { DEFAULT_ANIMATION_DURATION as U, NO_ANIMATION as K } from "./contants.mjs";
|
|
13
13
|
import { messages as R, optionalText as W } from "./messages/main.mjs";
|
|
14
14
|
const Y = /* @__PURE__ */ E({
|