@progress/kendo-vue-layout 8.4.0-develop.3 → 8.4.0-develop.5

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.
@@ -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 f, createVNode as t, h as g, isVNode as O } from "vue";
9
- import { classNames as b, Icon as k, getTemplate as I } from "@progress/kendo-vue-common";
8
+ import { defineComponent as I, createVNode as e, h as g, isVNode as O } from "vue";
9
+ import { classNames as k, Icon as f, getTemplate as v } from "@progress/kendo-vue-common";
10
10
  import { chevronUpIcon as q, chevronDownIcon as M } from "@progress/kendo-svg-icons";
11
- import { Reveal as U } from "@progress/kendo-vue-animation";
12
- function A(e) {
13
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !O(e);
11
+ import { Reveal as A } from "@progress/kendo-vue-animation";
12
+ function U(n) {
13
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !O(n);
14
14
  }
15
- const R = /* @__PURE__ */ f({
15
+ const R = /* @__PURE__ */ I({
16
16
  name: "KendoPanelBarGroup",
17
17
  props: {
18
18
  item: Object,
@@ -31,16 +31,16 @@ const R = /* @__PURE__ */ f({
31
31
  },
32
32
  render() {
33
33
  const {
34
- item: e,
35
- items: o,
36
- uniquePrivateKey: d,
37
- disabled: r,
34
+ item: n,
35
+ items: i,
36
+ uniquePrivateKey: p,
37
+ disabled: d,
38
38
  expanded: s,
39
- animation: i,
40
- keepItemsMounted: p
41
- } = this.$props, u = {
39
+ animation: o,
40
+ keepItemsMounted: c
41
+ } = this.$props, h = {
42
42
  display: "block"
43
- }, n = I.call(this, {
43
+ }, t = v.call(this, {
44
44
  h: g,
45
45
  template: this.$props.content,
46
46
  defaultRendering: null,
@@ -48,31 +48,37 @@ const R = /* @__PURE__ */ f({
48
48
  ...this.$props,
49
49
  show: this.show
50
50
  }
51
- }), c = !r && s, l = c || p ? o ? t("ul", {
51
+ }), l = !d && s, r = l || c ? i ? e("ul", {
52
52
  role: "group",
53
53
  class: "k-panelbar-group",
54
54
  style: {
55
- display: p ? this.$data.show ? "block" : "none" : "block"
55
+ display: c ? this.$data.show ? "block" : "none" : "block"
56
56
  }
57
- }, [o.map(function(a) {
57
+ }, [i.map(function(b) {
58
58
  return g(D, {
59
- ...a,
60
- item: e
59
+ ...b,
60
+ item: n
61
61
  });
62
- }, this)]) : this.$props.content ? t("div", {
62
+ }, this)]) : this.$props.content ? e("div", {
63
63
  class: "k-panelbar-content"
64
- }, [n]) : null : null;
65
- return (i === void 0 || i) && !r ? t(U, {
66
- appear: c,
64
+ }, [t]) : null : null, a = !l && !c && !i && this.$props.content ? e("div", {
65
+ class: "k-panelbar-content",
66
+ "aria-hidden": "true",
67
+ style: {
68
+ display: "none"
69
+ }
70
+ }, [t]) : null;
71
+ return [(o !== void 0 ? o : !0) && !d ? e(A, {
72
+ appear: l,
67
73
  transitionEnterDuration: 200,
68
74
  transitionExitDuration: 200,
69
- key: d + "_animation",
70
- style: u,
75
+ key: p + "_animation",
76
+ style: h,
71
77
  onEntering: this.handleEntering,
72
78
  onExited: this.handleExited
73
- }, A(l) ? l : {
74
- default: () => [l]
75
- }) : l;
79
+ }, U(r) ? r : {
80
+ default: () => [r]
81
+ }) : r, a];
76
82
  },
77
83
  methods: {
78
84
  handleEntering() {
@@ -82,7 +88,7 @@ const R = /* @__PURE__ */ f({
82
88
  this.keepItemsMounted && (this.show = !1);
83
89
  }
84
90
  }
85
- }), D = /* @__PURE__ */ f({
91
+ }), D = /* @__PURE__ */ I({
86
92
  name: "KendoPanelBarItem",
87
93
  props: {
88
94
  item: Object,
@@ -119,60 +125,60 @@ const R = /* @__PURE__ */ f({
119
125
  },
120
126
  render() {
121
127
  const {
122
- id: e,
123
- item: o,
124
- icon: d,
125
- svgIcon: r,
128
+ id: n,
129
+ item: i,
130
+ icon: p,
131
+ svgIcon: d,
126
132
  items: s,
127
- content: i,
128
- title: p,
129
- uniquePrivateKey: u,
130
- disabled: n,
131
- selected: c,
132
- focused: l,
133
+ content: o,
134
+ title: c,
135
+ uniquePrivateKey: h,
136
+ disabled: t,
137
+ selected: l,
138
+ focused: r,
133
139
  expanded: a,
134
140
  className: y,
135
- level: h,
136
- headerClassName: v,
141
+ level: m,
142
+ headerClassName: b,
137
143
  animation: B,
138
- keepItemsMounted: x
139
- } = this.$props, m = !!s || !!i, C = b("k-panelbar-item", {
140
- "k-panelbar-header": h === 0,
141
- "k-panelbar-item": h !== 0,
142
- "k-expanded": a && m,
143
- "k-disabled": n
144
- }, `k-level-${h}`, y), N = b("k-link", {
145
- "k-selected": !n && c,
146
- "k-focus": l
147
- }, v), P = b("k-panelbar-toggle", {
148
- "k-panelbar-collapse": a && m,
149
- "k-panelbar-expand": !a && m
144
+ keepItemsMounted: C
145
+ } = this.$props, u = !!s || !!o, x = k("k-panelbar-item", {
146
+ "k-panelbar-header": m === 0,
147
+ "k-panelbar-item": m !== 0,
148
+ "k-expanded": a && u,
149
+ "k-disabled": t
150
+ }, `k-level-${m}`, y), N = k("k-link", {
151
+ "k-selected": !t && l,
152
+ "k-focus": r
153
+ }, b), P = k("k-panelbar-toggle", {
154
+ "k-panelbar-collapse": a && u,
155
+ "k-panelbar-expand": !a && u
150
156
  }), S = a ? "chevron-up" : "chevron-down", $ = a ? q : M, j = function() {
151
- return this.imageUrl ? t("img", {
157
+ return this.imageUrl ? e("img", {
152
158
  role: "presentation",
153
159
  class: "k-panelbar-item-icon k-image",
154
160
  src: this.imageUrl
155
- }, null) : d || r ? t(k, {
156
- name: d,
161
+ }, null) : p || d ? e(f, {
162
+ name: p,
157
163
  class: "k-panelbar-item-icon",
158
- icon: r
159
- }, null) : this.iconClass ? t(k, {
164
+ icon: d
165
+ }, null) : this.iconClass ? e(f, {
160
166
  class: "k-panelbar-item-icon " + this.iconClass
161
167
  }, null) : null;
162
- }.call(this), E = !n && (s || i) ? t(k, {
168
+ }.call(this), E = !t && (s || o) ? e(f, {
163
169
  name: S,
164
170
  icon: $,
165
171
  class: P
166
- }, null) : null, w = s || i ? t(R, {
172
+ }, null) : null, w = s || o ? e(R, {
167
173
  items: s,
168
- item: o,
169
- content: i,
170
- uniquePrivateKey: u,
171
- disabled: n,
174
+ item: i,
175
+ content: o,
176
+ uniquePrivateKey: h,
177
+ disabled: t,
172
178
  expanded: a,
173
179
  animation: B,
174
- keepItemsMounted: x
175
- }, null) : null, K = I.call(this, {
180
+ keepItemsMounted: C
181
+ }, null) : null, K = v.call(this, {
176
182
  h: g,
177
183
  template: this.$props.header,
178
184
  defaultRendering: null,
@@ -180,35 +186,34 @@ const R = /* @__PURE__ */ f({
180
186
  ...this.$props
181
187
  }
182
188
  });
183
- return t("li", {
184
- id: e,
185
- class: C,
189
+ return e("li", {
190
+ id: n,
191
+ class: x,
186
192
  role: "treeitem",
187
- "aria-disabled": n,
188
- "aria-hidden": !n && !a,
189
- "aria-selected": !n && c,
190
- "aria-expanded": !n && a && m
191
- }, [t("span", {
193
+ "aria-disabled": t || void 0,
194
+ "aria-selected": !t && l,
195
+ "aria-expanded": u ? !t && a : void 0
196
+ }, [e("span", {
192
197
  class: N,
193
198
  onClick: this.handleItemClick
194
- }, [j, this.$props.header ? K : t("span", {
199
+ }, [j, this.$props.header ? K : e("span", {
195
200
  class: "k-panelbar-item-text"
196
- }, [p]), E]), w]);
201
+ }, [c]), E]), w]);
197
202
  },
198
203
  methods: {
199
204
  handleItemClick() {
200
205
  const {
201
- disabled: e,
202
- id: o
206
+ disabled: n,
207
+ id: i
203
208
  } = this.$props;
204
- e || this.dispatchItemSelect({
209
+ n || this.dispatchItemSelect({
205
210
  uniquePrivateKey: this.$props.uniquePrivateKey,
206
- id: o,
211
+ id: i,
207
212
  target: this
208
213
  });
209
214
  },
210
- childFactory(e) {
211
- return e;
215
+ childFactory(n) {
216
+ return n;
212
217
  }
213
218
  }
214
219
  });
@@ -44,9 +44,9 @@ declare const SplitterBar: import('vue').DefineComponent<import('vue').ExtractPr
44
44
  onPrevToggle(event: any): void;
45
45
  onNextToggle(event: any): void;
46
46
  onKeyDown(event: any): void;
47
- previousArrowName(isHorizontal: boolean): "" | "caret-alt-right" | "caret-alt-left" | "caret-alt-up" | "caret-alt-down";
47
+ previousArrowName(isHorizontal: boolean): "" | "chevron-right" | "chevron-left" | "chevron-up" | "chevron-down";
48
48
  previousArrowSVG(isHorizontal: boolean): import('@progress/kendo-svg-icons').SVGIcon;
49
- nextArrowName(isHorizontal: boolean): "" | "caret-alt-right" | "caret-alt-left" | "caret-alt-up" | "caret-alt-down";
49
+ nextArrowName(isHorizontal: boolean): "" | "chevron-right" | "chevron-left" | "chevron-up" | "chevron-down";
50
50
  nextArrowSVG(isHorizontal: boolean): import('@progress/kendo-svg-icons').SVGIcon;
51
51
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
52
52
  drag: any;
@@ -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"),i=require("@progress/kendo-vue-common"),u=require("@progress/kendo-vue-intl"),d=require("../messages/main.js"),o=require("@progress/kendo-svg-icons"),b=n.defineComponent({name:"KendoSplitterBar",emits:{drag:null,toggle:null,keyboardresize:null},props:{orientation:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},index:Number,prev:Object,next:Object,isRtl:Boolean},created(){this.draggable=null},computed:{isStatic(){const{prev:t,next:s}=this.$props,e=t.resizable&&s.resizable,l=t.collapsible||s.collapsible;return!e&&!l},isDraggable(){const{prev:t,next:s}=this.$props,e=t.resizable&&s.resizable,l=t.collapsed||s.collapsed;return!!e&&!l},isHorizontal(){return this.$props.orientation==="horizontal"}},inject:{kendoLocalizationService:{default:null}},data(){return{focused:!1}},mounted(){this.$el&&(this.draggable=this.$refs.draggable)},render(){const t=this.isDraggable,s=this.isStatic,e=this.isHorizontal,l=i.classNames("k-splitbar",{"k-focus":this.focused,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&t,"k-splitbar-draggable-vertical":!e&&t,"k-splitbar-static-horizontal":e&&s,"k-splitbar-static-vertical":!e&&s}),r=this.previousArrowName(e),a=this.previousArrowSVG(e),p=this.nextArrowName(e),g=this.nextArrowSVG(e),h=u.provideLocalizationService(this).toLanguageString(d.splitterPaneLabel,d.messages[d.splitterPaneLabel]);return n.createVNode(i.Draggable,{onPress:c=>this.onDrag(c,!0,!1),onDrag:c=>this.onDrag(c,!1,!1),onRelease:c=>this.onDrag(c,!1,!0),ref:"draggable"},{default:()=>[n.createVNode("div",{tabindex:s?-1:0,role:"separator",class:l,style:{touchAction:"none"},onFocusin:this.onFocus,onFocusout:this.onBlur,onDblclick:this.onToggle,onKeydown:this.onKeyDown,"aria-label":h,"aria-orientation":this.isHorizontal?"vertical":"horizontal"},[this.prev.collapsible&&n.createVNode("span",{class:"k-collapse-prev",onClick:this.onPrevToggle},[n.createVNode(i.Icon,{name:r,icon:a,size:"xsmall"},null)]),n.createVNode("div",{class:"k-resize-handle"},null),this.next.collapsible&&n.createVNode("span",{class:"k-collapse-next",onClick:this.onNextToggle},[n.createVNode(i.Icon,{name:p,icon:g,size:"xsmall"},null)])])]})},methods:{onDrag(t,s,e){const l=t,{index:r}=this.$props,a=this.draggable&&this.draggable.element;!e&&l&&l.originalEvent.preventDefault(),a&&!this.isStatic&&this.isDraggable&&this.$emit("drag",l,a,r,s,e)},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onToggle(t){const{index:s,prev:e,next:l}=this.$props;(e.collapsible||l.collapsible)&&this.$emit("toggle",e.collapsible?s:s+1,t)},onPrevToggle(t){const{index:s,prev:e}=this.$props;e.collapsible&&this.$emit("toggle",s,t)},onNextToggle(t){const{index:s,next:e}=this.$props;e.collapsible&&this.$emit("toggle",s+1,t)},onKeyDown(t){const s=t&&t.keyCode,e=this.isHorizontal,{index:l}=this.$props,r=this.draggable&&this.draggable.element,a=(p,g,h)=>{t.preventDefault(),this.$emit("keyboardresize",p,g,h,t)};r&&(s===i.Keys.enter?(t.preventDefault(),this.onToggle(t)):this.isDraggable&&(e&&s===i.Keys.left?a(r,l,-10):e&&s===i.Keys.right?a(r,l,10):!e&&s===i.Keys.up?a(r,l,-10):!e&&s===i.Keys.down&&a(r,l,10)))},previousArrowName(t){const{prev:s}=this.$props,e=s.collapsed;return t&&!e?this.isRtl?"caret-alt-right":"caret-alt-left":t&&e?this.isRtl?"caret-alt-left":"caret-alt-right":!t&&!e?"caret-alt-up":!t&&e?"caret-alt-down":""},previousArrowSVG(t){const{prev:s}=this.$props,e=s.collapsed;return t&&!e?this.isRtl?o.caretAltRightIcon:o.caretAltLeftIcon:t&&e?this.isRtl?o.caretAltLeftIcon:o.caretAltRightIcon:!t&&!e?o.caretAltUpIcon:!t&&e?o.caretAltDownIcon:void 0},nextArrowName(t){const{next:s}=this.$props,e=s.collapsed;return t&&!e?this.isRtl?"caret-alt-left":"caret-alt-right":t&&e?this.isRtl?"caret-alt-right":"caret-alt-left":!t&&!e?"caret-alt-down":!t&&e?"caret-alt-up":""},nextArrowSVG(t){const{next:s}=this.$props,e=s.collapsed;return t&&!e?this.isRtl?o.caretAltLeftIcon:o.caretAltRightIcon:t&&e?this.isRtl?o.caretAltRightIcon:o.caretAltLeftIcon:!t&&!e?o.caretAltDownIcon:!t&&e?o.caretAltUpIcon:void 0}}});exports.SplitterBar=b;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),l=require("@progress/kendo-vue-common"),d=require("@progress/kendo-vue-intl"),g=require("../messages/main.js"),s=require("@progress/kendo-svg-icons"),f=a.defineComponent({name:"KendoSplitterBar",emits:{drag:null,toggle:null,keyboardresize:null},props:{orientation:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},index:Number,prev:Object,next:Object,isRtl:Boolean},created(){this.draggable=null},computed:{isStatic(){const{prev:t,next:r}=this.$props,e=t.resizable&&r.resizable,o=t.collapsible||r.collapsible;return!e&&!o},isDraggable(){const{prev:t,next:r}=this.$props,e=t.resizable&&r.resizable,o=t.collapsed||r.collapsed;return!!e&&!o},isHorizontal(){return this.$props.orientation==="horizontal"}},inject:{kendoLocalizationService:{default:null}},data(){return{focused:!1}},mounted(){this.$el&&(this.draggable=this.$refs.draggable)},render(){const t=this.isDraggable,r=this.isStatic,e=this.isHorizontal,o=l.classNames("k-splitbar",{"k-focus":this.focused,"k-splitbar-horizontal":e,"k-splitbar-vertical":!e,"k-splitbar-draggable-horizontal":e&&t,"k-splitbar-draggable-vertical":!e&&t,"k-splitbar-static-horizontal":e&&r,"k-splitbar-static-vertical":!e&&r}),n=this.previousArrowName(e),i=this.previousArrowSVG(e),h=this.nextArrowName(e),p=this.nextArrowSVG(e),u=d.provideLocalizationService(this).toLanguageString(g.splitterPaneLabel,g.messages[g.splitterPaneLabel]);return a.createVNode(l.Draggable,{onPress:c=>this.onDrag(c,!0,!1),onDrag:c=>this.onDrag(c,!1,!1),onRelease:c=>this.onDrag(c,!1,!0),ref:"draggable"},{default:()=>[a.createVNode("div",{tabindex:r?-1:0,role:"separator",class:o,style:{touchAction:"none"},onFocusin:this.onFocus,onFocusout:this.onBlur,onDblclick:this.onToggle,onKeydown:this.onKeyDown,"aria-label":u,"aria-orientation":this.isHorizontal?"vertical":"horizontal"},[this.prev.collapsible&&a.createVNode("span",{class:"k-collapse-prev",onClick:this.onPrevToggle},[a.createVNode(l.Icon,{name:n,icon:i,size:"xsmall"},null)]),a.createVNode("div",{class:"k-resize-handle"},null),this.next.collapsible&&a.createVNode("span",{class:"k-collapse-next",onClick:this.onNextToggle},[a.createVNode(l.Icon,{name:h,icon:p,size:"xsmall"},null)])])]})},methods:{onDrag(t,r,e){const o=t,{index:n}=this.$props,i=this.draggable&&this.draggable.element;!e&&o&&o.originalEvent.preventDefault(),i&&!this.isStatic&&this.isDraggable&&this.$emit("drag",o,i,n,r,e)},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onToggle(t){const{index:r,prev:e,next:o}=this.$props;(e.collapsible||o.collapsible)&&this.$emit("toggle",e.collapsible?r:r+1,t)},onPrevToggle(t){const{index:r,prev:e}=this.$props;e.collapsible&&this.$emit("toggle",r,t)},onNextToggle(t){const{index:r,next:e}=this.$props;e.collapsible&&this.$emit("toggle",r+1,t)},onKeyDown(t){const r=t&&t.keyCode,e=this.isHorizontal,{index:o}=this.$props,n=this.draggable&&this.draggable.element,i=(h,p,u)=>{t.preventDefault(),this.$emit("keyboardresize",h,p,u,t)};n&&(r===l.Keys.enter?(t.preventDefault(),this.onToggle(t)):this.isDraggable&&(e&&r===l.Keys.left?i(n,o,-10):e&&r===l.Keys.right?i(n,o,10):!e&&r===l.Keys.up?i(n,o,-10):!e&&r===l.Keys.down&&i(n,o,10)))},previousArrowName(t){const{prev:r}=this.$props,e=r.collapsed;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":""},previousArrowSVG(t){const{prev:r}=this.$props,e=r.collapsed;if(t&&!e)return this.isRtl?s.chevronRightIcon:s.chevronLeftIcon;if(t&&e)return this.isRtl?s.chevronLeftIcon:s.chevronRightIcon;if(!t&&!e)return s.chevronUpIcon;if(!t&&e)return s.chevronDownIcon},nextArrowName(t){const{next:r}=this.$props,e=r.collapsed;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":""},nextArrowSVG(t){const{next:r}=this.$props,e=r.collapsed;if(t&&!e)return this.isRtl?s.chevronLeftIcon:s.chevronRightIcon;if(t&&e)return this.isRtl?s.chevronRightIcon:s.chevronLeftIcon;if(!t&&!e)return s.chevronDownIcon;if(!t&&e)return s.chevronUpIcon}}});exports.SplitterBar=f;
@@ -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 v, createVNode as r } from "vue";
9
- import { Keys as n, classNames as x, Draggable as w, Icon as u } from "@progress/kendo-vue-common";
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 b, messages as $ } from "../messages/main.mjs";
12
- import { caretAltLeftIcon as c, caretAltRightIcon as p, caretAltDownIcon as f, caretAltUpIcon as m } from "@progress/kendo-svg-icons";
13
- const C = /* @__PURE__ */ v({
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: s
41
- } = this.$props, e = t.resizable && s.resizable, l = t.collapsible || s.collapsible;
42
- return !e && !l;
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: s
48
- } = this.$props, e = t.resizable && s.resizable, l = t.collapsed || s.collapsed;
49
- return !!e && !l;
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, s = this.isStatic, e = this.isHorizontal, l = x("k-splitbar", {
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 && s,
76
- "k-splitbar-static-vertical": !e && s
77
- }), i = this.previousArrowName(e), o = this.previousArrowSVG(e), h = this.nextArrowName(e), g = this.nextArrowSVG(e), d = k(this).toLanguageString(b, $[b]);
78
- return r(w, {
79
- onPress: (a) => this.onDrag(a, !0, !1),
80
- onDrag: (a) => this.onDrag(a, !1, !1),
81
- onRelease: (a) => this.onDrag(a, !1, !0),
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: () => [r("div", {
85
- tabindex: s ? -1 : 0,
84
+ default: () => [n("div", {
85
+ tabindex: r ? -1 : 0,
86
86
  role: "separator",
87
- class: l,
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": d,
95
+ "aria-label": g,
96
96
  "aria-orientation": this.isHorizontal ? "vertical" : "horizontal"
97
- }, [this.prev.collapsible && r("span", {
97
+ }, [this.prev.collapsible && n("span", {
98
98
  class: "k-collapse-prev",
99
99
  onClick: this.onPrevToggle
100
- }, [r(u, {
100
+ }, [n(d, {
101
101
  name: i,
102
102
  icon: o,
103
103
  size: "xsmall"
104
- }, null)]), r("div", {
104
+ }, null)]), n("div", {
105
105
  class: "k-resize-handle"
106
- }, null), this.next.collapsible && r("span", {
106
+ }, null), this.next.collapsible && n("span", {
107
107
  class: "k-collapse-next",
108
108
  onClick: this.onNextToggle
109
- }, [r(u, {
109
+ }, [n(d, {
110
110
  name: h,
111
- icon: g,
111
+ icon: u,
112
112
  size: "xsmall"
113
113
  }, null)])])]
114
114
  });
115
115
  },
116
116
  methods: {
117
- onDrag(t, s, e) {
118
- const l = t, {
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 && l && l.originalEvent.preventDefault(), o && !this.isStatic && this.isDraggable && this.$emit("drag", l, o, i, s, 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: s,
131
+ index: r,
132
132
  prev: e,
133
- next: l
133
+ next: s
134
134
  } = this.$props;
135
- (e.collapsible || l.collapsible) && this.$emit("toggle", e.collapsible ? s : s + 1, t);
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: s,
139
+ index: r,
140
140
  prev: e
141
141
  } = this.$props;
142
- e.collapsible && this.$emit("toggle", s, t);
142
+ e.collapsible && this.$emit("toggle", r, t);
143
143
  },
144
144
  onNextToggle(t) {
145
145
  const {
146
- index: s,
146
+ index: r,
147
147
  next: e
148
148
  } = this.$props;
149
- e.collapsible && this.$emit("toggle", s + 1, t);
149
+ e.collapsible && this.$emit("toggle", r + 1, t);
150
150
  },
151
151
  onKeyDown(t) {
152
- const s = t && t.keyCode, e = this.isHorizontal, {
153
- index: l
154
- } = this.$props, i = this.draggable && this.draggable.element, o = (h, g, d) => {
155
- t.preventDefault(), this.$emit("keyboardresize", h, g, d, t);
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 && (s === n.enter ? (t.preventDefault(), this.onToggle(t)) : this.isDraggable && (e && s === n.left ? o(i, l, -10) : e && s === n.right ? o(i, l, 10) : !e && s === n.up ? o(i, l, -10) : !e && s === n.down && o(i, l, 10)));
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: s
162
- } = this.$props, e = s.collapsed;
163
- return t && !e ? this.isRtl ? "caret-alt-right" : "caret-alt-left" : t && e ? this.isRtl ? "caret-alt-left" : "caret-alt-right" : !t && !e ? "caret-alt-up" : !t && e ? "caret-alt-down" : "";
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: s
168
- } = this.$props, e = s.collapsed;
169
- return t && !e ? this.isRtl ? p : c : t && e ? this.isRtl ? c : p : !t && !e ? m : !t && e ? f : void 0;
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: s
174
- } = this.$props, e = s.collapsed;
175
- return t && !e ? this.isRtl ? "caret-alt-left" : "caret-alt-right" : t && e ? this.isRtl ? "caret-alt-right" : "caret-alt-left" : !t && !e ? "caret-alt-down" : !t && e ? "caret-alt-up" : "";
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: s
180
- } = this.$props, e = s.collapsed;
181
- return t && !e ? this.isRtl ? c : p : t && e ? this.isRtl ? p : c : !t && !e ? f : !t && e ? m : void 0;
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.checkOutlineIcon: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;
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 { checkOutlineIcon as w, exclamationCircleIcon as _ } from "@progress/kendo-svg-icons";
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({