@progress/kendo-vue-layout 10.2.0-develop.4 → 10.2.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/contextmenu/ContextMenu.d.ts +15 -1
- package/contextmenu/ContextMenu.js +1 -1
- package/contextmenu/ContextMenu.mjs +34 -27
- package/dist/cdn/js/kendo-vue-layout.js +1 -1
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/menu/BaseMenuItemInternalProps.d.ts +4 -0
- package/menu/MenuProps.d.ts +35 -0
- package/menu/components/Menu.d.ts +11 -3
- package/menu/components/Menu.js +1 -1
- package/menu/components/Menu.mjs +46 -34
- package/menu/components/MenuItemInternal.d.ts +20 -4
- package/menu/components/MenuItemInternal.js +1 -1
- package/menu/components/MenuItemInternal.mjs +156 -82
- package/menu/components/MenuItemLink.d.ts +8 -0
- package/menu/components/MenuItemLink.js +1 -1
- package/menu/components/MenuItemLink.mjs +13 -11
- package/menu/models/BaseMenuItem.d.ts +36 -0
- package/menu/models/MenuItemActionsRenderProps.d.ts +17 -0
- package/menu/models/MenuItemGroupHeaderRenderProps.d.ts +17 -0
- package/menu/utils/getNewItemIdUponKeyboardNavigation.js +1 -1
- package/menu/utils/getNewItemIdUponKeyboardNavigation.mjs +57 -62
- package/menu/utils/itemsIdsUtils.d.ts +0 -16
- package/menu/utils/itemsIdsUtils.js +1 -1
- package/menu/utils/itemsIdsUtils.mjs +23 -40
- package/menu/utils/misc.d.ts +8 -0
- package/menu/utils/misc.js +1 -1
- package/menu/utils/misc.mjs +23 -14
- package/menu/utils/navigableItems.d.ts +28 -0
- package/menu/utils/navigableItems.js +8 -0
- package/menu/utils/navigableItems.mjs +45 -0
- package/menu/utils/prepareInputItemsForInternalWork.js +1 -1
- package/menu/utils/prepareInputItemsForInternalWork.mjs +58 -46
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +7 -7
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { Keys as r } from "@progress/kendo-vue-common";
|
|
9
|
-
import { isIdZeroLevel as i,
|
|
9
|
+
import { isIdZeroLevel as i, getRootParentId as p, getDirectParentId as l, isIdFirstLevel as $, getItemById as j } from "./itemsIdsUtils.mjs";
|
|
10
|
+
import { getFirstNavigableChildId as G, isNavigableItem as K, getLastNavigableChildId as q, getNavigableSiblingId as J } from "./navigableItems.mjs";
|
|
10
11
|
const Q = /\S/;
|
|
11
|
-
function
|
|
12
|
-
const
|
|
13
|
-
switch (
|
|
12
|
+
function k(g, n, H, b, u, s) {
|
|
13
|
+
const U = f();
|
|
14
|
+
switch (H) {
|
|
14
15
|
case r.left:
|
|
15
|
-
return
|
|
16
|
+
return P();
|
|
16
17
|
case r.right:
|
|
17
18
|
return B();
|
|
18
19
|
case r.up:
|
|
@@ -25,99 +26,93 @@ function V(a, n, G, S, g, s) {
|
|
|
25
26
|
case r.home:
|
|
26
27
|
return W();
|
|
27
28
|
case r.end:
|
|
28
|
-
return Z();
|
|
29
|
-
case r.esc:
|
|
30
29
|
return _();
|
|
30
|
+
case r.esc:
|
|
31
|
+
return M();
|
|
31
32
|
default:
|
|
32
|
-
return
|
|
33
|
+
return Z() ? X() : n;
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
35
|
+
function P() {
|
|
36
|
+
return u ? s ? E() : C() : s ? F() : v();
|
|
36
37
|
}
|
|
37
38
|
function B() {
|
|
38
|
-
return
|
|
39
|
+
return u ? s ? C() : E() : s ? v() : F();
|
|
39
40
|
}
|
|
40
41
|
function z() {
|
|
41
|
-
return
|
|
42
|
+
return u ? o() : i(n) ? c() : o();
|
|
42
43
|
}
|
|
43
44
|
function A() {
|
|
44
|
-
return
|
|
45
|
+
return u ? h() : i(n) ? N() : h();
|
|
45
46
|
}
|
|
46
47
|
function R() {
|
|
47
|
-
return
|
|
48
|
+
return U.disabled ? n : d() ? G(n, U.items) : p(n);
|
|
48
49
|
}
|
|
49
50
|
function W() {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
function Z() {
|
|
53
|
-
const e = y();
|
|
54
|
-
return e[e.length - 1].id;
|
|
51
|
+
var t, e;
|
|
52
|
+
return (e = (t = S().find(K)) == null ? void 0 : t.id) != null ? e : n;
|
|
55
53
|
}
|
|
56
54
|
function _() {
|
|
57
|
-
|
|
55
|
+
var t, e;
|
|
56
|
+
return (e = (t = [...S()].reverse().find(K)) == null ? void 0 : t.id) != null ? e : n;
|
|
58
57
|
}
|
|
59
58
|
function M() {
|
|
60
|
-
|
|
61
|
-
return p ? p.id : n;
|
|
59
|
+
return i(n) ? n : l(n);
|
|
62
60
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
61
|
+
function X() {
|
|
62
|
+
const t = b.toLowerCase(), e = S().filter(K), a = e.findIndex((y) => y.id === n), x = a < 0 ? -1 : a, O = e.slice(x + 1).concat(e.slice(0, x + 1)).find((y) => (y.text || "").toLowerCase().startsWith(t));
|
|
63
|
+
return O ? O.id : n;
|
|
65
64
|
}
|
|
66
|
-
function
|
|
67
|
-
return i(n) ?
|
|
65
|
+
function v() {
|
|
66
|
+
return i(n) ? h() : $(n) ? c(h(p(n))) : l(n);
|
|
68
67
|
}
|
|
69
68
|
function C() {
|
|
70
|
-
return i(n) ?
|
|
71
|
-
d() ? n : u(b(n))
|
|
72
|
-
);
|
|
69
|
+
return i(n) ? N() : l(n);
|
|
73
70
|
}
|
|
74
71
|
function F() {
|
|
72
|
+
return i(n) ? o() : c(
|
|
73
|
+
d() ? n : o(p(n))
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
function E() {
|
|
75
77
|
return c(
|
|
76
|
-
i(n) || d() ? n :
|
|
78
|
+
i(n) || d() ? n : o(p(n))
|
|
77
79
|
);
|
|
78
80
|
}
|
|
79
|
-
function c(
|
|
80
|
-
return
|
|
81
|
+
function c(t) {
|
|
82
|
+
return L(!0, t);
|
|
81
83
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
84
|
+
function N(t) {
|
|
85
|
+
return L(!1, t);
|
|
84
86
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
87
|
-
}
|
|
88
|
-
function l(e, t) {
|
|
89
|
-
return e === void 0 && (e = n), t === void 0 && (t = a), D(e, t);
|
|
87
|
+
function Z() {
|
|
88
|
+
return b.length === 1 && Q.test(b);
|
|
90
89
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
90
|
+
function f(t, e) {
|
|
91
|
+
return t === void 0 && (t = n), e === void 0 && (e = g), j(t, e);
|
|
93
92
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
93
|
+
function d(t) {
|
|
94
|
+
return f(t).items.length > 0;
|
|
96
95
|
}
|
|
97
|
-
function
|
|
98
|
-
return
|
|
96
|
+
function h(t) {
|
|
97
|
+
return w(!1, t);
|
|
99
98
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
return t[t.length - 1].id;
|
|
99
|
+
function o(t) {
|
|
100
|
+
return w(!0, t);
|
|
103
101
|
}
|
|
104
|
-
function
|
|
105
|
-
return i(n) ?
|
|
102
|
+
function S() {
|
|
103
|
+
return i(n) ? g : f(l(n), g).items;
|
|
106
104
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
109
|
-
const
|
|
110
|
-
return d(
|
|
105
|
+
function L(t, e) {
|
|
106
|
+
e === void 0 && (e = n);
|
|
107
|
+
const a = f(e);
|
|
108
|
+
return d(e) && !a.disabled ? t ? G(e, a.items) : q(e, a.items) : e;
|
|
111
109
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
const o = f(t), w = O(t), p = l(o).items.length;
|
|
117
|
-
return J(P(e, w, p), o);
|
|
118
|
-
}
|
|
110
|
+
function w(t, e) {
|
|
111
|
+
e === void 0 && (e = n);
|
|
112
|
+
const a = i(e) ? g : f(l(e)).items;
|
|
113
|
+
return J(a, t, e);
|
|
119
114
|
}
|
|
120
115
|
}
|
|
121
116
|
export {
|
|
122
|
-
|
|
117
|
+
k as getNewItemIdUponKeyboardNavigation
|
|
123
118
|
};
|
|
@@ -29,10 +29,6 @@ export declare function getRootParentId(itemId: string): string;
|
|
|
29
29
|
* @hidden
|
|
30
30
|
*/
|
|
31
31
|
export declare function getIdWithoutRootParentId(itemId: string): string;
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
export declare function getFirstChildId(itemId: string): string;
|
|
36
32
|
/**
|
|
37
33
|
* @hidden
|
|
38
34
|
*/
|
|
@@ -57,15 +53,3 @@ export declare function isIdZeroLevel(itemId: string): boolean;
|
|
|
57
53
|
* @hidden
|
|
58
54
|
*/
|
|
59
55
|
export declare function isIdFirstLevel(itemId: string): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* @hidden
|
|
62
|
-
*/
|
|
63
|
-
export declare function isFirstItemFromSiblings(itemId: string): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
export declare function getShortId(itemId: string): string;
|
|
68
|
-
/**
|
|
69
|
-
* @hidden
|
|
70
|
-
*/
|
|
71
|
-
export declare function getDirectSiblingIdForLevelZero(next: boolean, shortItemId: string, siblingsCount: number): string;
|
|
@@ -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 n="",l="0",r="_";function s(t,e){if(f(t))return e[Number(t)];{const u=e[Number(c(t))];return u.items?s(i(t),u.items):void 0}}function c(t){return o(t)?t:t.split(r)[0]}function i(t){if(o(t))return t;{const e=t.indexOf(r);return t.substring(e+1)}}function a(t,e){return e.indexOf(t)===0?e.length===t.length||e.charAt(t.length)===r:!1}function g(t,e){return e?e+r+t:t}function E(t){const e=t.lastIndexOf(r);return e<0?n:t.substring(0,e)}function o(t){return t===n||t.indexOf(r)<0}function f(t){return t!==n&&t.indexOf(r)<0}function O(t){return I(t)===1}function I(t){return t.split(r).length-1}exports.EMPTY_ID=n;exports.SEPARATOR=r;exports.ZERO_LEVEL_ZERO_ITEM_ID=l;exports.createId=g;exports.getDirectParentId=E;exports.getIdWithoutRootParentId=i;exports.getItemById=s;exports.getRootParentId=c;exports.isIdEmptyOrZeroLevel=o;exports.isIdFirstLevel=O;exports.isIdZeroLevel=f;exports.shouldOpenItem=a;
|
|
@@ -5,19 +5,19 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
if (
|
|
8
|
+
const f = "", A = "0", E = "_";
|
|
9
|
+
function u(n, r) {
|
|
10
|
+
if (R(n))
|
|
11
11
|
return r[Number(n)];
|
|
12
12
|
{
|
|
13
|
-
const t = r[Number(
|
|
14
|
-
return t.items ?
|
|
13
|
+
const t = r[Number(o(n))];
|
|
14
|
+
return t.items ? u(s(n), t.items) : void 0;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function o(n) {
|
|
18
18
|
return e(n) ? n : n.split("_")[0];
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function s(n) {
|
|
21
21
|
if (e(n))
|
|
22
22
|
return n;
|
|
23
23
|
{
|
|
@@ -25,56 +25,39 @@ function c(n) {
|
|
|
25
25
|
return n.substring(r + 1);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return f("0", n);
|
|
30
|
-
}
|
|
31
|
-
function g(n, r) {
|
|
28
|
+
function O(n, r) {
|
|
32
29
|
return r.indexOf(n) === 0 ? r.length === n.length || r.charAt(n.length) === "_" : !1;
|
|
33
30
|
}
|
|
34
|
-
function
|
|
31
|
+
function P(n, r) {
|
|
35
32
|
return r ? r + "_" + n : n;
|
|
36
33
|
}
|
|
37
|
-
function
|
|
34
|
+
function i(n) {
|
|
38
35
|
const r = n.lastIndexOf("_");
|
|
39
36
|
return r < 0 ? "" : n.substring(0, r);
|
|
40
37
|
}
|
|
41
38
|
function e(n) {
|
|
42
39
|
return n === "" || n.indexOf("_") < 0;
|
|
43
40
|
}
|
|
44
|
-
function
|
|
41
|
+
function R(n) {
|
|
45
42
|
return n !== "" && n.indexOf("_") < 0;
|
|
46
43
|
}
|
|
47
|
-
function P(n) {
|
|
48
|
-
return R(n) === 1;
|
|
49
|
-
}
|
|
50
44
|
function a(n) {
|
|
51
|
-
return
|
|
45
|
+
return c(n) === 1;
|
|
52
46
|
}
|
|
53
|
-
function
|
|
54
|
-
const r = n.lastIndexOf("_");
|
|
55
|
-
return r < 0 ? n : n.substring(r + 1);
|
|
56
|
-
}
|
|
57
|
-
function T(n, r, t) {
|
|
58
|
-
return u(r) ? n ? Number(r) < t - 1 ? (Number(r) + 1).toString() : "0" : Number(r) > 0 ? (Number(r) - 1).toString() : (t - 1).toString() : r;
|
|
59
|
-
}
|
|
60
|
-
function R(n) {
|
|
47
|
+
function c(n) {
|
|
61
48
|
return n.split("_").length - 1;
|
|
62
49
|
}
|
|
63
50
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
51
|
+
f as EMPTY_ID,
|
|
52
|
+
E as SEPARATOR,
|
|
66
53
|
A as ZERO_LEVEL_ZERO_ITEM_ID,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
o as getItemById,
|
|
73
|
-
i as getRootParentId,
|
|
74
|
-
s as getShortId,
|
|
75
|
-
a as isFirstItemFromSiblings,
|
|
54
|
+
P as createId,
|
|
55
|
+
i as getDirectParentId,
|
|
56
|
+
s as getIdWithoutRootParentId,
|
|
57
|
+
u as getItemById,
|
|
58
|
+
o as getRootParentId,
|
|
76
59
|
e as isIdEmptyOrZeroLevel,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
60
|
+
a as isIdFirstLevel,
|
|
61
|
+
R as isIdZeroLevel,
|
|
62
|
+
O as shouldOpenItem
|
|
80
63
|
};
|
package/menu/utils/misc.d.ts
CHANGED
|
@@ -21,3 +21,11 @@ export declare function convertBoolDirectionToString(isDirectionRightToLeft?: bo
|
|
|
21
21
|
* @hidden
|
|
22
22
|
*/
|
|
23
23
|
export declare function getDOMElementId(menuGuid: string, itemId: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare function getDOMPopupListId(menuGuid: string, parentItemId: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare function hasRenderableContent(content: any): boolean;
|
package/menu/utils/misc.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 i=require("../consts.js"),s=require("./itemsIdsUtils.js"),n=require("vue");function f(r,e,t){const o=d(r,e,t);return t?o==="downward"?i.POPUP_SETTINGS_RTL.downward:i.POPUP_SETTINGS_RTL.leftward:o==="downward"?i.POPUP_SETTINGS.downward:i.POPUP_SETTINGS.rightward}function d(r,e,t){return s.isIdZeroLevel(r)?e?t?"leftward":"rightward":"downward":t?"leftward":"rightward"}function a(r){return r?"rtl":"ltr"}function l(r,e){return`${r}_${e}`}function g(r,e){return`${l(r,e)}_popup`}function u(r){return r==null||typeof r=="boolean"?!1:typeof r=="string"?r.trim().length>0:typeof r=="number"?!0:Array.isArray(r)?r.some(u):n.isVNode(r)?r.type===n.Comment?!1:r.type===n.Text?typeof r.children=="string"&&r.children.trim().length>0:r.type===n.Fragment?u(r.children):!0:!0}exports.convertBoolDirectionToString=a;exports.getChildrenPosition=d;exports.getDOMElementId=l;exports.getDOMPopupListId=g;exports.getPopupSettings=f;exports.hasRenderableContent=u;
|
package/menu/utils/misc.mjs
CHANGED
|
@@ -5,24 +5,33 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { POPUP_SETTINGS_RTL as
|
|
9
|
-
import { isIdZeroLevel as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
import { POPUP_SETTINGS_RTL as u, POPUP_SETTINGS as n } from "../consts.mjs";
|
|
9
|
+
import { isIdZeroLevel as f } from "./itemsIdsUtils.mjs";
|
|
10
|
+
import { isVNode as o, Comment as l, Text as a, Fragment as p } from "vue";
|
|
11
|
+
function h(r, e, i) {
|
|
12
|
+
const t = w(r, e, i);
|
|
13
|
+
return i ? t === "downward" ? u.downward : u.leftward : t === "downward" ? n.downward : n.rightward;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
return
|
|
15
|
+
function w(r, e, i) {
|
|
16
|
+
return f(r) ? e ? i ? "leftward" : "rightward" : "downward" : i ? "leftward" : "rightward";
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function y(r) {
|
|
18
19
|
return r ? "rtl" : "ltr";
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
return `${r}_${
|
|
21
|
+
function s(r, e) {
|
|
22
|
+
return `${r}_${e}`;
|
|
23
|
+
}
|
|
24
|
+
function S(r, e) {
|
|
25
|
+
return `${s(r, e)}_popup`;
|
|
26
|
+
}
|
|
27
|
+
function d(r) {
|
|
28
|
+
return r == null || typeof r == "boolean" ? !1 : typeof r == "string" ? r.trim().length > 0 : typeof r == "number" ? !0 : Array.isArray(r) ? r.some(d) : o(r) ? r.type === l ? !1 : r.type === a ? typeof r.children == "string" && r.children.trim().length > 0 : r.type === p ? d(r.children) : !0 : !0;
|
|
22
29
|
}
|
|
23
30
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
y as convertBoolDirectionToString,
|
|
32
|
+
w as getChildrenPosition,
|
|
33
|
+
s as getDOMElementId,
|
|
34
|
+
S as getDOMPopupListId,
|
|
35
|
+
h as getPopupSettings,
|
|
36
|
+
d as hasRenderableContent
|
|
28
37
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { MenuItemInternalModel } from '../models/MenuItemModel';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare function isNavigableItem(item: MenuItemInternalModel): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare function getNavigableSiblingId(siblings: MenuItemInternalModel[], next: boolean, currentItemId: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
export declare function getFirstNavigableChildId(parentItemId: string, children: MenuItemInternalModel[]): string;
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare function getLastNavigableChildId(parentItemId: string, children: MenuItemInternalModel[]): string;
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export declare function getFirstNavigableRootId(items: MenuItemInternalModel[]): string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./itemsIdsUtils.js");function n(e){return!e.groupHeader&&!e.separator}function o(e,i,t){if(e.length===0)return t;const a=e.findIndex(d=>d.id===t);if(a===-1)return t;let r=(a+(i?1:-1)+e.length)%e.length;for(let d=0;d<e.length;d++){const g=e[r];if(n(g))return g.id;r=(r+(i?1:-1)+e.length)%e.length}return t}function f(e,i){var t,a;return(a=(t=i.find(n))==null?void 0:t.id)!=null?a:e}function u(e,i){var t,a;return(a=(t=[...i].reverse().find(n))==null?void 0:t.id)!=null?a:e}function v(e){var i,t;return(t=(i=e.find(n))==null?void 0:i.id)!=null?t:l.ZERO_LEVEL_ZERO_ITEM_ID}exports.getFirstNavigableChildId=f;exports.getFirstNavigableRootId=v;exports.getLastNavigableChildId=u;exports.getNavigableSiblingId=o;exports.isNavigableItem=n;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ZERO_LEVEL_ZERO_ITEM_ID as o } from "./itemsIdsUtils.mjs";
|
|
9
|
+
function a(e) {
|
|
10
|
+
return !e.groupHeader && !e.separator;
|
|
11
|
+
}
|
|
12
|
+
function g(e, n, t) {
|
|
13
|
+
if (e.length === 0)
|
|
14
|
+
return t;
|
|
15
|
+
const r = e.findIndex((d) => d.id === t);
|
|
16
|
+
if (r === -1)
|
|
17
|
+
return t;
|
|
18
|
+
let i = (r + (n ? 1 : -1) + e.length) % e.length;
|
|
19
|
+
for (let d = 0; d < e.length; d++) {
|
|
20
|
+
const f = e[i];
|
|
21
|
+
if (a(f))
|
|
22
|
+
return f.id;
|
|
23
|
+
i = (i + (n ? 1 : -1) + e.length) % e.length;
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
}
|
|
27
|
+
function l(e, n) {
|
|
28
|
+
var t, r;
|
|
29
|
+
return (r = (t = n.find(a)) == null ? void 0 : t.id) != null ? r : e;
|
|
30
|
+
}
|
|
31
|
+
function h(e, n) {
|
|
32
|
+
var t, r;
|
|
33
|
+
return (r = (t = [...n].reverse().find(a)) == null ? void 0 : t.id) != null ? r : e;
|
|
34
|
+
}
|
|
35
|
+
function c(e) {
|
|
36
|
+
var n, t;
|
|
37
|
+
return (t = (n = e.find(a)) == null ? void 0 : n.id) != null ? t : o;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
l as getFirstNavigableChildId,
|
|
41
|
+
c as getFirstNavigableRootId,
|
|
42
|
+
h as getLastNavigableChildId,
|
|
43
|
+
g as getNavigableSiblingId,
|
|
44
|
+
a as isNavigableItem
|
|
45
|
+
};
|
|
@@ -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 i=require("@progress/kendo-vue-common"),c=require("./itemsIdsUtils.js");function S(t){return t&&t.length>0?{items:L.call(this,t),inputItems:t}:{items:[],inputItems:[]}}function y(t){let e={};const{text:s,url:n,icon:o,svgIcon:r,description:u,disabled:f,cssClass:l,popupClass:p,cssStyle:d,separator:a,render:g,linkRender:v,contentRender:h,data:I,groupHeader:C,groupHeaderRender:m,actionsRender:R}=t;return C&&!a?(e.groupHeader=!0,s!==void 0&&(e.text=s),o!==void 0&&(e.icon=o),r!==void 0&&(e.svgIcon=r),l!==void 0&&(e.cssClass=l),d!==void 0&&(e.cssStyle=d),m!==void 0&&(e.groupHeaderRender=i.templateRendering.call(this,m,i.getListeners.call(this))),e):(s!==void 0&&(e.text=s),n!==void 0&&(e.url=n),o!==void 0&&(e.icon=o),r!==void 0&&(e.svgIcon=r),u!==void 0&&(e.description=u),f!==void 0&&(e.disabled=f),l!==void 0&&(e.cssClass=l),p!==void 0&&(e.popupClass=p),d!==void 0&&(e.cssStyle=d),a!==void 0&&(e.separator=a),g!==void 0&&(e.render=i.templateRendering.call(this,g,i.getListeners.call(this))),v!==void 0&&(e.linkRender=i.templateRendering.call(this,v,i.getListeners.call(this))),h!==void 0&&(e.contentRender=i.templateRendering.call(this,h,i.getListeners.call(this))),R!==void 0&&(e.actionsRender=i.templateRendering.call(this,R,i.getListeners.call(this))),I!==void 0&&(e.data=I),e)}function L(t,e){const s=[];for(let n=0;n<t.length;n++){const o=t[n],r=y.call(this,o);r.id=c.createId(n.toString(),e),r.isLastFromSiblings=n===t.length-1,r.items=b.call(this,o,r),s.push(r)}return s}function b(t,e){return t.groupHeader&&!t.separator?[]:t.contentRender?[{contentParentItemId:e.id,id:c.createId(c.ZERO_LEVEL_ZERO_ITEM_ID,e.id),isLastFromSiblings:!0,contentRender:i.templateRendering.call(this,t.contentRender,i.getListeners.call(this)),items:[]}]:t.items?L.call(this,t.items,e.id):[]}exports.prepareInputItemsForInternalWork=S;
|
|
@@ -5,66 +5,78 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import { templateRendering as
|
|
9
|
-
import { createId as
|
|
10
|
-
function
|
|
11
|
-
return
|
|
12
|
-
items:
|
|
13
|
-
inputItems:
|
|
8
|
+
import { templateRendering as o, getListeners as l } from "@progress/kendo-vue-common";
|
|
9
|
+
import { createId as C, ZERO_LEVEL_ZERO_ITEM_ID as x } from "./itemsIdsUtils.mjs";
|
|
10
|
+
function O(i) {
|
|
11
|
+
return i && i.length > 0 ? {
|
|
12
|
+
items: H.call(this, i),
|
|
13
|
+
inputItems: i
|
|
14
14
|
} : { items: [], inputItems: [] };
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
let
|
|
16
|
+
function y(i) {
|
|
17
|
+
let e = {};
|
|
18
18
|
const {
|
|
19
|
-
text:
|
|
20
|
-
url:
|
|
21
|
-
icon:
|
|
22
|
-
svgIcon:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
text: s,
|
|
20
|
+
url: r,
|
|
21
|
+
icon: n,
|
|
22
|
+
svgIcon: t,
|
|
23
|
+
description: f,
|
|
24
|
+
disabled: u,
|
|
25
|
+
cssClass: c,
|
|
26
|
+
popupClass: p,
|
|
27
|
+
cssStyle: d,
|
|
28
|
+
separator: a,
|
|
29
|
+
render: v,
|
|
30
|
+
linkRender: h,
|
|
31
|
+
contentRender: I,
|
|
32
|
+
data: g,
|
|
33
|
+
groupHeader: S,
|
|
34
|
+
groupHeaderRender: m,
|
|
35
|
+
actionsRender: R
|
|
36
|
+
} = i;
|
|
37
|
+
return S && !a ? (e.groupHeader = !0, s !== void 0 && (e.text = s), n !== void 0 && (e.icon = n), t !== void 0 && (e.svgIcon = t), c !== void 0 && (e.cssClass = c), d !== void 0 && (e.cssStyle = d), m !== void 0 && (e.groupHeaderRender = o.call(
|
|
38
|
+
this,
|
|
39
|
+
m,
|
|
40
|
+
l.call(this)
|
|
41
|
+
)), e) : (s !== void 0 && (e.text = s), r !== void 0 && (e.url = r), n !== void 0 && (e.icon = n), t !== void 0 && (e.svgIcon = t), f !== void 0 && (e.description = f), u !== void 0 && (e.disabled = u), c !== void 0 && (e.cssClass = c), p !== void 0 && (e.popupClass = p), d !== void 0 && (e.cssStyle = d), a !== void 0 && (e.separator = a), v !== void 0 && (e.render = o.call(
|
|
42
|
+
this,
|
|
43
|
+
v,
|
|
44
|
+
l.call(this)
|
|
45
|
+
)), h !== void 0 && (e.linkRender = o.call(
|
|
34
46
|
this,
|
|
35
47
|
h,
|
|
36
|
-
|
|
37
|
-
)),
|
|
48
|
+
l.call(this)
|
|
49
|
+
)), I !== void 0 && (e.contentRender = o.call(
|
|
38
50
|
this,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
)),
|
|
51
|
+
I,
|
|
52
|
+
l.call(this)
|
|
53
|
+
)), R !== void 0 && (e.actionsRender = o.call(
|
|
42
54
|
this,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
)),
|
|
55
|
+
R,
|
|
56
|
+
l.call(this)
|
|
57
|
+
)), g !== void 0 && (e.data = g), e);
|
|
46
58
|
}
|
|
47
|
-
function
|
|
48
|
-
const
|
|
49
|
-
for (let
|
|
50
|
-
const
|
|
51
|
-
|
|
59
|
+
function H(i, e) {
|
|
60
|
+
const s = [];
|
|
61
|
+
for (let r = 0; r < i.length; r++) {
|
|
62
|
+
const n = i[r], t = y.call(this, n);
|
|
63
|
+
t.id = C(r.toString(), e), t.isLastFromSiblings = r === i.length - 1, t.items = E.call(this, n, t), s.push(t);
|
|
52
64
|
}
|
|
53
|
-
return
|
|
65
|
+
return s;
|
|
54
66
|
}
|
|
55
|
-
function E(
|
|
56
|
-
return
|
|
57
|
-
contentParentItemId:
|
|
58
|
-
id:
|
|
67
|
+
function E(i, e) {
|
|
68
|
+
return i.groupHeader && !i.separator ? [] : i.contentRender ? [{
|
|
69
|
+
contentParentItemId: e.id,
|
|
70
|
+
id: C(x, e.id),
|
|
59
71
|
isLastFromSiblings: !0,
|
|
60
|
-
contentRender:
|
|
72
|
+
contentRender: o.call(
|
|
61
73
|
this,
|
|
62
|
-
|
|
63
|
-
|
|
74
|
+
i.contentRender,
|
|
75
|
+
l.call(this)
|
|
64
76
|
),
|
|
65
77
|
items: []
|
|
66
|
-
}] :
|
|
78
|
+
}] : i.items ? H.call(this, i.items, e.id) : [];
|
|
67
79
|
}
|
|
68
80
|
export {
|
|
69
|
-
|
|
81
|
+
O as prepareInputItemsForInternalWork
|
|
70
82
|
};
|
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: 1792677104,version:"10.2.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: "10.2.0-develop.
|
|
13
|
+
publishDate: 1792677104,
|
|
14
|
+
version: "10.2.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 {
|