@progress/kendo-vue-grid 7.1.0-develop.3 → 7.1.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.
- package/Grid.js +1 -1
- package/Grid.mjs +599 -553
- package/GridNav.js +1 -1
- package/GridNav.mjs +3 -1
- package/GridState.js +1 -1
- package/GridState.mjs +80 -60
- package/VirtualScroll.js +1 -1
- package/VirtualScroll.mjs +65 -109
- package/cells/GridHierarchyCell.js +1 -1
- package/cells/GridHierarchyCell.mjs +13 -14
- package/common.js +1 -1
- package/common.mjs +2 -0
- package/{GridNoRecords.js → components/noRecords/GridNoRecords.js} +1 -1
- package/{GridNoRecords.mjs → components/noRecords/GridNoRecords.mjs} +1 -1
- package/components/noRecords/GridNoRecordsContainer.js +8 -0
- package/components/noRecords/GridNoRecordsContainer.mjs +30 -0
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/index.d.mts +76 -19
- package/index.d.ts +76 -19
- package/index.js +1 -1
- package/index.mjs +30 -29
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +12 -12
- package/rows/GridRow.js +1 -1
- package/rows/GridRow.mjs +18 -17
- package/utils/main.js +1 -1
- package/utils/main.mjs +30 -22
- package/VirtualScrollFixed.js +0 -8
- package/VirtualScrollFixed.mjs +0 -86
package/GridNav.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 o=require("vue"),e=require("@progress/kendo-vue-common"),n=o.defineComponent({name:"KendoGridNav",props:{currentData:Array},inject:{onNavKeyDown:{default:e.noop},onNavFocus:{default:e.noop},onNavMount:{default:e.noop},handleDispatchFocus:{default:e.noop},kbContext:{default:null},navigation:{default:null}},mounted(){this.onNavMount({scope:this.$el||void 0})},updated(){this.onNavMount({scope:this.$el||void 0})},methods:{onKeyDown(t){this.onNavKeyDown(t,{navigation:this.navigation,kbContext:this.kbContext,onNavigationAction:this.onNavigationAction}),this.$emit("keydown",{dataItems:this.getLeafDataItems(),componentId:this._gridId,selectedField:this.$props.selectedField,event:t})},onFocus(t){this.onNavFocus(t,{kbContext:this.kbContext})},onNavigationAction(t){this.$emit("navigationaction",{focusElement:t.focusElement,event:t.event})},getLeafDataItems(){return this.$props.currentData.filter(t=>t.rowType==="data").map(t=>t.dataItem)}},render(){const t=e.getDefaultSlots(this);return o.createVNode("div",{onKeydown:this.onKeyDown,onFocusin:this.onFocus,"data-keyboardnavscope":!0},[t])}});exports.GridNav=n;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),e=require("@progress/kendo-vue-common"),n=o.defineComponent({name:"KendoGridNav",props:{currentData:Array,id:String},inject:{onNavKeyDown:{default:e.noop},onNavFocus:{default:e.noop},onNavMount:{default:e.noop},handleDispatchFocus:{default:e.noop},kbContext:{default:null},navigation:{default:null}},mounted(){this.onNavMount({scope:this.$el||void 0})},updated(){this.onNavMount({scope:this.$el||void 0})},methods:{onKeyDown(t){this.onNavKeyDown(t,{navigation:this.navigation,kbContext:this.kbContext,onNavigationAction:this.onNavigationAction}),this.$emit("keydown",{dataItems:this.getLeafDataItems(),componentId:this._gridId,selectedField:this.$props.selectedField,event:t})},onFocus(t){this.onNavFocus(t,{kbContext:this.kbContext})},onNavigationAction(t){this.$emit("navigationaction",{focusElement:t.focusElement,event:t.event})},getLeafDataItems(){return this.$props.currentData.filter(t=>t.rowType==="data").map(t=>t.dataItem)}},render(){const t=e.getDefaultSlots(this);return o.createVNode("div",{onKeydown:this.onKeyDown,onFocusin:this.onFocus,id:this.$props.id,"data-keyboardnavscope":!0},[t])}});exports.GridNav=n;
|
package/GridNav.mjs
CHANGED
|
@@ -10,7 +10,8 @@ import { noop as e, getDefaultSlots as a } from "@progress/kendo-vue-common";
|
|
|
10
10
|
const d = /* @__PURE__ */ o({
|
|
11
11
|
name: "KendoGridNav",
|
|
12
12
|
props: {
|
|
13
|
-
currentData: Array
|
|
13
|
+
currentData: Array,
|
|
14
|
+
id: String
|
|
14
15
|
},
|
|
15
16
|
inject: {
|
|
16
17
|
onNavKeyDown: {
|
|
@@ -77,6 +78,7 @@ const d = /* @__PURE__ */ o({
|
|
|
77
78
|
return n("div", {
|
|
78
79
|
onKeydown: this.onKeyDown,
|
|
79
80
|
onFocusin: this.onFocus,
|
|
81
|
+
id: this.$props.id,
|
|
80
82
|
"data-keyboardnavscope": !0
|
|
81
83
|
}, [t]);
|
|
82
84
|
}
|
package/GridState.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 n=require("vue"),T=require("./key.js"),V=require("./common.js"),j=require("@progress/kendo-vue-common"),A=n.defineComponent({name:"KendoVueGridStateProvider",inheritAttrs:!1,props:V.gridProps,setup(e,{emit:l}){var u,c,d,o,h,g,r,i,s;const t=n.ref({filter:(u=e.defaultFilter)!=null?u:e.filter,highlight:e.highlight,search:(c=e.defaultSearch)!=null?c:e.search,sort:(d=e.defaultSort)!=null?d:e.sort,take:(o=e.defaultTake)!=null?o:e.take,skip:(h=e.defaultSkip)!=null?h:e.skip,group:(g=e.defaultGroup)!=null?g:e.group,detailExpand:(r=e.defaultDetailExpand)!=null?r:e.detailExpand,groupExpand:(i=e.defaultGroupExpand)!=null?i:e.groupExpand,columnsState:(s=e.defaultColumnsState)!=null?s:e.columnsState}),f=a=>{t.value={...t.value,...a.data},l("datastatechange",a)},v=n.computed(()=>e.filter||t.value.filter||null),x=a=>{t.value.filter=a.filter,l("filterchange",a)};n.watch(()=>e.filter,a=>{t.value.filter=a});const S=n.computed(()=>e.search||t.value.search||null),k=a=>{t.value.search=a.search,l("searchchange",a)};n.watch(()=>e.search,a=>{t.value.search=a});const E=n.computed(()=>e.sort||t.value.sort||[]),m=a=>{t.value.sort=a.sort,l("sortchange",a)};n.watch(()=>e.sort,a=>{t.value.sort=a});const C=n.computed(()=>e.skip||t.value.skip||0),w=n.computed(()=>e.take||t.value.take||0),p=a=>{t.value.skip=a.page.skip,t.value.take=a.page.take,l("pagechange",a)};n.watch(()=>e.skip,a=>{t.value.skip=a}),n.watch(()=>e.take,a=>{t.value.take=a});const G=n.computed(()=>e.group||t.value.group||[]),P=a=>{t.value.group=a.group,l("groupchange",a)};n.watch(()=>e.group,a=>{t.value.group=a});const q=n.computed(()=>e.detailExpand||t.value.detailExpand||{}),y=a=>{t.value.detailExpand=a.detailExpand,l("detailexpandchange",a)};n.watch(()=>e.detailExpand,a=>{t.value.detailExpand=a});const D=n.computed(()=>e.groupExpand||t.value.groupExpand||[]),K=a=>{t.value.groupExpand=a.groupExpand,l("groupexpandchange",a)};n.watch(()=>e.groupExpand,a=>{t.value.groupExpand=a});const b=n.computed(()=>e.columnsState||e.defaultColumnsState||[]),F=a=>{t.value.columnsState=a.columnsState,l("columnsstatechange",a)};n.watch(()=>e.columnsState,a=>{t.value.columnsState=a}),n.provide(T.KendoKey,{sort:E,sortchange:m,filter:v,filterchange:x,search:S,searchchange:k,skip:C,take:w,pagechange:p,group:G,groupchange:P,detailExpand:q,detailexpandchange:y,groupExpand:D,groupexpandchange:K,columnsState:b,columnsstatechange:F,datastatechange:f})},render(){return j.getDefaultSlots(this)}});exports.GridStateProvider=A;
|
package/GridState.mjs
CHANGED
|
@@ -5,90 +5,110 @@
|
|
|
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 { KendoKey as
|
|
10
|
-
import { gridProps as
|
|
11
|
-
import { getDefaultSlots as
|
|
12
|
-
const
|
|
8
|
+
import { defineComponent as b, ref as j, computed as n, watch as u, provide as q } from "vue";
|
|
9
|
+
import { KendoKey as z } from "./key.mjs";
|
|
10
|
+
import { gridProps as B } from "./common.mjs";
|
|
11
|
+
import { getDefaultSlots as H } from "@progress/kendo-vue-common";
|
|
12
|
+
const N = /* @__PURE__ */ b({
|
|
13
13
|
name: "KendoVueGridStateProvider",
|
|
14
14
|
inheritAttrs: !1,
|
|
15
|
-
props:
|
|
15
|
+
props: B,
|
|
16
16
|
setup(e, {
|
|
17
17
|
emit: l
|
|
18
18
|
}) {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
var d, c, o, g, h, r, i, s, f;
|
|
20
|
+
const t = j({
|
|
21
|
+
// edit: props.defaultEdit ?? props.edit,
|
|
22
|
+
filter: (d = e.defaultFilter) != null ? d : e.filter,
|
|
23
|
+
highlight: e.highlight,
|
|
24
|
+
// select: props.defaultSelect ?? props.select,
|
|
25
|
+
search: (c = e.defaultSearch) != null ? c : e.search,
|
|
26
|
+
sort: (o = e.defaultSort) != null ? o : e.sort,
|
|
27
|
+
take: (g = e.defaultTake) != null ? g : e.take,
|
|
28
|
+
skip: (h = e.defaultSkip) != null ? h : e.skip,
|
|
29
|
+
group: (r = e.defaultGroup) != null ? r : e.group,
|
|
30
|
+
detailExpand: (i = e.defaultDetailExpand) != null ? i : e.detailExpand,
|
|
31
|
+
groupExpand: (s = e.defaultGroupExpand) != null ? s : e.groupExpand,
|
|
32
|
+
columnsState: (f = e.defaultColumnsState) != null ? f : e.columnsState
|
|
33
|
+
}), x = (a) => {
|
|
34
|
+
t.value = {
|
|
35
|
+
...t.value,
|
|
36
|
+
...a.data
|
|
37
|
+
}, l("datastatechange", a);
|
|
38
|
+
}, v = n(() => e.filter || t.value.filter || null), S = (a) => {
|
|
39
|
+
t.value.filter = a.filter, l("filterchange", a);
|
|
21
40
|
};
|
|
22
|
-
|
|
23
|
-
|
|
41
|
+
u(() => e.filter, (a) => {
|
|
42
|
+
t.value.filter = a;
|
|
24
43
|
});
|
|
25
|
-
const
|
|
26
|
-
|
|
44
|
+
const E = n(() => e.search || t.value.search || null), k = (a) => {
|
|
45
|
+
t.value.search = a.search, l("searchchange", a);
|
|
27
46
|
};
|
|
28
|
-
|
|
29
|
-
|
|
47
|
+
u(() => e.search, (a) => {
|
|
48
|
+
t.value.search = a;
|
|
30
49
|
});
|
|
31
|
-
const
|
|
32
|
-
|
|
50
|
+
const m = n(() => e.sort || t.value.sort || []), C = (a) => {
|
|
51
|
+
t.value.sort = a.sort, l("sortchange", a);
|
|
33
52
|
};
|
|
34
|
-
|
|
35
|
-
|
|
53
|
+
u(() => e.sort, (a) => {
|
|
54
|
+
t.value.sort = a;
|
|
36
55
|
});
|
|
37
|
-
const
|
|
38
|
-
|
|
56
|
+
const G = n(() => e.skip || t.value.skip || 0), p = n(() => e.take || t.value.take || 0), D = (a) => {
|
|
57
|
+
t.value.skip = a.page.skip, t.value.take = a.page.take, l("pagechange", a);
|
|
39
58
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}),
|
|
43
|
-
|
|
59
|
+
u(() => e.skip, (a) => {
|
|
60
|
+
t.value.skip = a;
|
|
61
|
+
}), u(() => e.take, (a) => {
|
|
62
|
+
t.value.take = a;
|
|
44
63
|
});
|
|
45
|
-
const
|
|
46
|
-
|
|
64
|
+
const P = n(() => e.group || t.value.group || []), K = (a) => {
|
|
65
|
+
t.value.group = a.group, l("groupchange", a);
|
|
47
66
|
};
|
|
48
|
-
|
|
49
|
-
|
|
67
|
+
u(() => e.group, (a) => {
|
|
68
|
+
t.value.group = a;
|
|
50
69
|
});
|
|
51
|
-
const
|
|
52
|
-
|
|
70
|
+
const F = n(() => e.detailExpand || t.value.detailExpand || {}), w = (a) => {
|
|
71
|
+
t.value.detailExpand = a.detailExpand, l("detailexpandchange", a);
|
|
53
72
|
};
|
|
54
|
-
|
|
55
|
-
|
|
73
|
+
u(() => e.detailExpand, (a) => {
|
|
74
|
+
t.value.detailExpand = a;
|
|
56
75
|
});
|
|
57
|
-
const
|
|
58
|
-
|
|
76
|
+
const y = n(() => e.groupExpand || t.value.groupExpand || []), A = (a) => {
|
|
77
|
+
t.value.groupExpand = a.groupExpand, l("groupexpandchange", a);
|
|
59
78
|
};
|
|
60
|
-
|
|
61
|
-
|
|
79
|
+
u(() => e.groupExpand, (a) => {
|
|
80
|
+
t.value.groupExpand = a;
|
|
62
81
|
});
|
|
63
|
-
const
|
|
64
|
-
|
|
82
|
+
const T = n(() => e.columnsState || e.defaultColumnsState || []), V = (a) => {
|
|
83
|
+
t.value.columnsState = a.columnsState, l("columnsstatechange", a);
|
|
65
84
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}),
|
|
69
|
-
sort:
|
|
70
|
-
sortchange:
|
|
71
|
-
filter:
|
|
72
|
-
filterchange:
|
|
73
|
-
search:
|
|
74
|
-
searchchange:
|
|
75
|
-
skip:
|
|
76
|
-
take:
|
|
77
|
-
pagechange:
|
|
78
|
-
group:
|
|
79
|
-
groupchange:
|
|
80
|
-
detailExpand:
|
|
81
|
-
detailexpandchange:
|
|
82
|
-
groupExpand:
|
|
83
|
-
groupexpandchange:
|
|
84
|
-
columnsState:
|
|
85
|
-
columnsstatechange:
|
|
85
|
+
u(() => e.columnsState, (a) => {
|
|
86
|
+
t.value.columnsState = a;
|
|
87
|
+
}), q(z, {
|
|
88
|
+
sort: m,
|
|
89
|
+
sortchange: C,
|
|
90
|
+
filter: v,
|
|
91
|
+
filterchange: S,
|
|
92
|
+
search: E,
|
|
93
|
+
searchchange: k,
|
|
94
|
+
skip: G,
|
|
95
|
+
take: p,
|
|
96
|
+
pagechange: D,
|
|
97
|
+
group: P,
|
|
98
|
+
groupchange: K,
|
|
99
|
+
detailExpand: F,
|
|
100
|
+
detailexpandchange: w,
|
|
101
|
+
groupExpand: y,
|
|
102
|
+
groupexpandchange: A,
|
|
103
|
+
columnsState: T,
|
|
104
|
+
columnsstatechange: V,
|
|
105
|
+
datastatechange: x
|
|
86
106
|
});
|
|
87
107
|
},
|
|
88
108
|
render() {
|
|
89
|
-
return
|
|
109
|
+
return H(this);
|
|
90
110
|
}
|
|
91
111
|
});
|
|
92
112
|
export {
|
|
93
|
-
|
|
113
|
+
N as GridStateProvider
|
|
94
114
|
};
|
package/VirtualScroll.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"});class
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./utils/main.js");require("@progress/kendo-vue-common");class c{constructor(){this.table=null,this.tableBody=null,this.container=null,this.scrollHeightContainer=null,this.total=0,this.scrollableVirtual=!1,this.pageSize=0,this.fixedScroll=!1,this.tableTransform="",this.scrollSyncing=!1,this.firstToLoad=0,this.lastScrollTop=0,this.firstLoaded=0,this.lastLoaded=0,this.scrollHandler=this.scrollHandler.bind(this)}reset(){this.firstToLoad=0,this.firstLoaded=0,this.lastLoaded=0,this.rowHeightService=void 0,!this.fixedScroll&&this.container&&this.container.scrollTop!==0&&(this.scrollSyncing=!0,this.container.scrollTop=0,this.lastScrollTop=0,this.translate(0,!0))}scrollHandler(t){if(this.scrollSyncing){this.scrollSyncing=!1;return}if(!this.scrollableVirtual||!this.container||!this.table||!this.rowHeightService||!this.container)return;const i=this.container.scrollTop,e=this.lastScrollTop>=i,o=!e;this.lastScrollTop=i;const r=this.container.offsetHeight;let s=this.rowHeightService.index(i);const a=this.rowHeightService.index(i+r),h=Math.max(s+this.pageSize-this.total,0);if(s=Math.max(s-h,0),o&&a>=this.lastLoaded&&this.lastLoaded<this.total-1)this.firstToLoad=s,this.loadPage(t);else if(e&&s<this.firstToLoad){const n=Math.max(Math.floor(this.pageSize*.3)-h,0);this.firstToLoad=Math.max(s-n,0),this.loadPage(t)}}update(){var i;const t=this.getItemHeights();if(this.firstLoaded>this.firstToLoad){const e=Math.min(this.firstLoaded-this.firstToLoad,this.pageSize),o=this.getTotalHeight(e,t),r=this.getExpectedTotalHeight(e),s=o-r;s!==0&&this.adjustScroll(s)}(i=this.rowHeightService)==null||i.update(this.firstToLoad,t),this.setScrollHeightContainerHeight(),this.firstLoaded=this.firstToLoad,this.lastLoaded=this.firstLoaded+t.length-1}loadPage(t){this.rowHeightService&&(this.translate(this.rowHeightService.offset(this.firstToLoad)),this.changePage(this.firstToLoad,t))}translate(t,i){this.scrollableVirtual&&this.table&&(i?this.table.style.transform="translateY("+t+"px)":this.tableTransform="translateY("+t+"px)")}changePage(t,i){this.PageChange&&this.PageChange({skip:Math.max(0,t),take:this.pageSize},i)}adjustScroll(t){this.scrollSyncing=!0,this.container&&(this.container.scrollTop+=t)}setScrollHeightContainerHeight(){var t;if(this.scrollableVirtual&&this.scrollHeightContainer){let i=((t=this.rowHeightService)==null?void 0:t.totalHeight())||0;i=l.firefox?Math.min(l.firefoxMaxHeight,i):i,this.scrollHeightContainer.style.height=i+"px"}}getItemHeights(){const t=[];return this.tableBody&&Array.from(this.tableBody.children).forEach(i=>{const e=i.getBoundingClientRect().height;i.classList.contains("k-detail-row")?t[t.length-1]+=e:t.push(e)}),t}getTotalHeight(t,i){return i.slice(0,t).reduce((e,o)=>e+o,0)}getExpectedTotalHeight(t){const i=this.rowHeightService;if(!i)return 0;const e=this.firstToLoad+(t-1);return i.offset(e)+i.height(e)-i.offset(this.firstToLoad)}}exports.VirtualScroll=c;
|
package/VirtualScroll.mjs
CHANGED
|
@@ -5,130 +5,86 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const i = this.container.clientHeight, n = this.container.querySelectorAll(".k-group-footer").length, l = Math.ceil(i / o[0].line), h = Math.ceil(n / l), a = Math.max(h, Math.ceil((o.length - l) / 2));
|
|
14
|
-
let r = 0;
|
|
15
|
-
for (let p = 0; p < a; p++)
|
|
16
|
-
r += o[p].line + o[p].acc;
|
|
17
|
-
const c = h ? n / (1 + h) : 0, g = l + l / 2 + c;
|
|
18
|
-
return {
|
|
19
|
-
topItemsCount: a,
|
|
20
|
-
topItemsHeight: r,
|
|
21
|
-
itemsNeededOnScreen: g
|
|
22
|
-
};
|
|
23
|
-
}, this.horizontalScrollbarHeight = () => this.container ? this.container.offsetHeight - this.container.clientHeight : 0, s && (this.topCacheCount = t, this.attendedSkip = -this.topCacheCount), this.scrollHandler = this.scrollHandler.bind(this);
|
|
8
|
+
import { firefox as n, firefoxMaxHeight as c } from "./utils/main.mjs";
|
|
9
|
+
import "@progress/kendo-vue-common";
|
|
10
|
+
class H {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.table = null, this.tableBody = null, this.container = null, this.scrollHeightContainer = null, this.total = 0, this.scrollableVirtual = !1, this.pageSize = 0, this.fixedScroll = !1, this.tableTransform = "", this.scrollSyncing = !1, this.firstToLoad = 0, this.lastScrollTop = 0, this.firstLoaded = 0, this.lastLoaded = 0, this.scrollHandler = this.scrollHandler.bind(this);
|
|
24
13
|
}
|
|
25
|
-
|
|
26
|
-
|
|
14
|
+
reset() {
|
|
15
|
+
this.firstToLoad = 0, this.firstLoaded = 0, this.lastLoaded = 0, this.rowHeightService = void 0, !this.fixedScroll && this.container && this.container.scrollTop !== 0 && (this.scrollSyncing = !0, this.container.scrollTop = 0, this.lastScrollTop = 0, this.translate(0, !0));
|
|
16
|
+
}
|
|
17
|
+
scrollHandler(t) {
|
|
18
|
+
if (this.scrollSyncing) {
|
|
19
|
+
this.scrollSyncing = !1;
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (!this.scrollableVirtual || !this.container || !this.table || !this.rowHeightService || !this.container)
|
|
23
|
+
return;
|
|
24
|
+
const i = this.container.scrollTop, e = this.lastScrollTop >= i, o = !e;
|
|
25
|
+
this.lastScrollTop = i;
|
|
26
|
+
const h = this.container.offsetHeight;
|
|
27
|
+
let s = this.rowHeightService.index(i);
|
|
28
|
+
const a = this.rowHeightService.index(i + h), r = Math.max(s + this.pageSize - this.total, 0);
|
|
29
|
+
if (s = Math.max(s - r, 0), o && a >= this.lastLoaded && this.lastLoaded < this.total - 1)
|
|
30
|
+
this.firstToLoad = s, this.loadPage(t);
|
|
31
|
+
else if (e && s < this.firstToLoad) {
|
|
32
|
+
const l = Math.max(Math.floor(this.pageSize * 0.3) - r, 0);
|
|
33
|
+
this.firstToLoad = Math.max(s - l, 0), this.loadPage(t);
|
|
34
|
+
}
|
|
27
35
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
for (let e = 0; e < t.length; e++) {
|
|
35
|
-
if (t[e].className.indexOf("k-grouping-row") > -1) {
|
|
36
|
-
o += t[e].scrollHeight;
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
t[e].className.indexOf("k-detail-row") > -1 ? s[s.length - 1].line += t[e].scrollHeight : (s.push({
|
|
40
|
-
line: t[e].scrollHeight,
|
|
41
|
-
acc: o
|
|
42
|
-
}), o = 0);
|
|
36
|
+
update() {
|
|
37
|
+
var i;
|
|
38
|
+
const t = this.getItemHeights();
|
|
39
|
+
if (this.firstLoaded > this.firstToLoad) {
|
|
40
|
+
const e = Math.min(this.firstLoaded - this.firstToLoad, this.pageSize), o = this.getTotalHeight(e, t), h = this.getExpectedTotalHeight(e), s = o - h;
|
|
41
|
+
s !== 0 && this.adjustScroll(s);
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
(i = this.rowHeightService) == null || i.update(this.firstToLoad, t), this.setScrollHeightContainerHeight(), this.firstLoaded = this.firstToLoad, this.lastLoaded = this.firstLoaded + t.length - 1;
|
|
44
|
+
}
|
|
45
|
+
loadPage(t) {
|
|
46
|
+
this.rowHeightService && (this.translate(this.rowHeightService.offset(this.firstToLoad)), this.changePage(this.firstToLoad, t));
|
|
45
47
|
}
|
|
46
|
-
|
|
47
|
-
this.
|
|
48
|
+
translate(t, i) {
|
|
49
|
+
this.scrollableVirtual && this.table && (i ? this.table.style.transform = "translateY(" + t + "px)" : this.tableTransform = "translateY(" + t + "px)");
|
|
50
|
+
}
|
|
51
|
+
changePage(t, i) {
|
|
52
|
+
this.PageChange && this.PageChange(
|
|
48
53
|
{
|
|
49
|
-
skip: Math.max(0,
|
|
54
|
+
skip: Math.max(0, t),
|
|
50
55
|
take: this.pageSize
|
|
51
56
|
},
|
|
52
|
-
|
|
57
|
+
i
|
|
53
58
|
);
|
|
54
59
|
}
|
|
55
|
-
|
|
56
|
-
this.
|
|
57
|
-
}
|
|
58
|
-
reset() {
|
|
59
|
-
this.scrollSyncing = !0, !this.fixedScroll && (this.container && (this.container.scrollTop = 0), this.translate(0));
|
|
60
|
+
adjustScroll(t) {
|
|
61
|
+
this.scrollSyncing = !0, this.container && (this.container.scrollTop += t);
|
|
60
62
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const {
|
|
67
|
-
topItemsCount: n,
|
|
68
|
-
topItemsHeight: l,
|
|
69
|
-
itemsNeededOnScreen: h
|
|
70
|
-
} = this.topItems(t, !!this.topCacheCount), a = o - e;
|
|
71
|
-
if (!(a > l || t.length <= h)) {
|
|
72
|
-
for (; i < this.topCacheCount + this.attendedSkip - this.realSkip + n && this.propsSkip - i > 0 && !(e + (t[t.length - 1 - i].line + t[t.length - 1 - i].acc) + a <= o); )
|
|
73
|
-
e -= t[t.length - 1 - i].line + t[t.length - 1 - i].acc, i++;
|
|
74
|
-
if (i === 0 && this.topCacheCount === 0 && this.attendedSkip > 0 && (e = Math.max(e - t[0].line, 0), i = 1), this.propsSkip - i <= 0 && e > o) {
|
|
75
|
-
this.translate(0), this.changePage(0, s), this.container.scrollTop = 0;
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
if (e > o && (e = o), e !== this.tableTranslate) {
|
|
79
|
-
this.translate(Math.max(0, e - l));
|
|
80
|
-
const r = Math.max(0, this.propsSkip - i - n);
|
|
81
|
-
this.changePage(r, s);
|
|
82
|
-
}
|
|
63
|
+
setScrollHeightContainerHeight() {
|
|
64
|
+
var t;
|
|
65
|
+
if (this.scrollableVirtual && this.scrollHeightContainer) {
|
|
66
|
+
let i = ((t = this.rowHeightService) == null ? void 0 : t.totalHeight()) || 0;
|
|
67
|
+
i = n ? Math.min(c, i) : i, this.scrollHeightContainer.style.height = i + "px";
|
|
83
68
|
}
|
|
84
69
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
topItemsCount: n,
|
|
92
|
-
topItemsHeight: l,
|
|
93
|
-
itemsNeededOnScreen: h
|
|
94
|
-
} = this.topItems(t, !!this.topCacheCount);
|
|
95
|
-
for (; i < t.length - this.topCacheCount && !(e + t[i].line + t[i].acc > o); )
|
|
96
|
-
e += t[i].line + t[i].acc, i++;
|
|
97
|
-
n > this.propsSkip + i || t.length <= h || (i >= t.length - this.topCacheCount && this.propsSkip + i >= this.total ? (this.translate(e - l), this.changePage(this.total - 1 - n, s)) : e !== this.tableTranslate && this.propsSkip + i - n !== this.propsSkip && (this.translate(e - l), this.changePage(this.propsSkip + i - n, s)));
|
|
70
|
+
getItemHeights() {
|
|
71
|
+
const t = [];
|
|
72
|
+
return this.tableBody && Array.from(this.tableBody.children).forEach((i) => {
|
|
73
|
+
const e = i.getBoundingClientRect().height;
|
|
74
|
+
i.classList.contains("k-detail-row") ? t[t.length - 1] += e : t.push(e);
|
|
75
|
+
}), t;
|
|
98
76
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
let o = Math.floor(t);
|
|
102
|
-
o >= this.total && (o = this.total - 1);
|
|
103
|
-
const e = Math.min(t - o, 1);
|
|
104
|
-
let i = 0;
|
|
105
|
-
const n = o - this.propsSkip, l = this.rowHeights;
|
|
106
|
-
n >= 0 && n <= 1 ? i = -((l[0].line + l[0].acc) * e) : n === -1 && (i = -((l[l.length - 1].line + l[l.length - 1].acc) * e));
|
|
107
|
-
const {
|
|
108
|
-
topItemsCount: h,
|
|
109
|
-
topItemsHeight: a,
|
|
110
|
-
itemsNeededOnScreen: r
|
|
111
|
-
} = this.topItems(l, !!this.topCacheCount), c = Math.max(
|
|
112
|
-
0,
|
|
113
|
-
i - a - this.horizontalScrollbarHeight() + this.containerHeight * t / this.total
|
|
114
|
-
);
|
|
115
|
-
this.prevScrollPos < c && l.length <= r || (this.translate(c), this.changePage(o - h, s));
|
|
77
|
+
getTotalHeight(t, i) {
|
|
78
|
+
return i.slice(0, t).reduce((e, o) => e + o, 0);
|
|
116
79
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
const t = this.container.scrollTop, o = this.prevScrollPos;
|
|
125
|
-
if (this.prevScrollPos = t, this.askedSkip !== void 0) {
|
|
126
|
-
this.translate(this.containerHeight * this.askedSkip / this.total), this.changePage(this.askedSkip, s), this.prevScrollPos = t, this.askedSkip = void 0;
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
t - o < 0 && t > this.tableTranslate - this.table.scrollHeight / 10 ? this.localScrollUp(s) : t - o > 0 && t < this.tableTranslate + this.table.scrollHeight * 2 / 3 ? this.localScrollDown(s) : this.scrollNonStrict(s), this.prevScrollPos = t;
|
|
80
|
+
getExpectedTotalHeight(t) {
|
|
81
|
+
const i = this.rowHeightService;
|
|
82
|
+
if (!i)
|
|
83
|
+
return 0;
|
|
84
|
+
const e = this.firstToLoad + (t - 1);
|
|
85
|
+
return i.offset(e) + i.height(e) - i.offset(this.firstToLoad);
|
|
130
86
|
}
|
|
131
87
|
}
|
|
132
88
|
export {
|
|
133
|
-
|
|
89
|
+
H as VirtualScroll
|
|
134
90
|
};
|
|
@@ -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 i=require("vue"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),l=require("@progress/kendo-vue-common"),o=require("@progress/kendo-vue-data-tools"),u=require("@progress/kendo-vue-intl"),r=require("../messages/main.js"),p=require("@progress/kendo-svg-icons"),h=i.defineComponent({name:"KendoGridHierarchyCell",inheritAttrs:!1,props:{id:String,field:String,dataItem:Object,format:String,type:String,className:String,colSpan:Number,columnIndex:Number,columnsCount:Number,rowType:String,level:Number,expanded:Boolean,editor:String,isSelected:Boolean,dataIndex:Number,ariaColumnIndex:Number,render:[String,Function,Object],isRtl:Boolean},emits:{change:null,cellkeydown:null},inject:{kendo:{default:null},kendoIntlService:{default:null},kendoLocalizationService:{default:null},getKeyboardNavigationAttributes:{default:l.noop}},methods:{triggerStateChange(){const e=this.kendo;e.dataItemKey&&this.$props.dataItem[e.dataItemKey]!==void 0&&(e==null||e.dispatchDetailExpand({type:o.DETAIL_EXPAND_ACTION.TOGGLE,id:this.$props.dataItem[e.dataItemKey]}))},triggerKeydown(e,t){this.$emit("cellkeydown",{event:e,dataItem:this.$props.dataItem,field:this.$props.field,expanded:t}),!e.defaultPrevented&&e.keyCode===l.Keys.enter&&(e.preventDefault(),this.$emit("change",{dataItem:this.$props.dataItem,dataIndex:this.$props.dataIndex,event:e,field:this.$props.field,value:!t}),this.triggerStateChange())},clickHandler(e,t,n){e.preventDefault(),this.$emit("change",{dataItem:t,event:e,field:void 0,value:!n}),this.triggerStateChange()}},computed:{wrapperClass(){return{"k-table-td":!0,"k-hierarchy-cell":!0,[this.className||""]:this.className}}},render(){let e=null;const t=this.getKeyboardNavigationAttributes(this.$props.id),n=u.provideLocalizationService(this),d=n.toLanguageString(r.collapseDetailAriaLabel,r.messages[r.collapseDetailAriaLabel]),c=n.toLanguageString(r.expandDetailAriaLabel,r.messages[r.expandDetailAriaLabel]);if(this.$props.rowType==="groupFooter")e=i.createVNode("td",{class:this.wrapperClass},null);else if(this.$props.rowType!=="groupHeader"){const a=this.$props.expanded;e=i.createVNode("td",{style:this.$attrs.style,onKeydown:s=>{this.triggerKeydown(s,a)},class:this.wrapperClass,"aria-expanded":a?"true":"false",role:"gridcell","aria-colindex":this.$props.ariaColumnIndex,tabindex:t.tabIndex,"data-keyboardnavlevel":t[o.KEYBOARD_NAV_DATA_LEVEL],"data-keyboardnavid":t[o.KEYBOARD_NAV_DATA_ID]},[i.createVNode("a",{onClick:s=>{this.clickHandler(s,this.$props.dataItem,a)},href:"#",tabindex:-1,title:a?d:c,"aria-label":a?d:c},[i.createVNode(l.Icon,{name:a?"minus":"plus",icon:a?p.minusIcon:p.plusIcon},null)])])}return l.getTemplate.call(this,{h:i.h,template:this.$props.render,defaultRendering:e,additionalProps:this.$props,additionalListeners:{keydown:this.triggerKeydown,click:this.clickHandler}})}});exports.GridHierarchyCell=h;
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as c, createVNode as r, h as m } from "vue";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { KEYBOARD_NAV_DATA_ID as y, KEYBOARD_NAV_DATA_LEVEL as b, DETAIL_EXPAND_ACTION as $ } from "@progress/kendo-vue-data-tools";
|
|
9
|
+
import { noop as u, Icon as h, getTemplate as g, Keys as f } from "@progress/kendo-vue-common";
|
|
10
|
+
import { KEYBOARD_NAV_DATA_ID as y, KEYBOARD_NAV_DATA_LEVEL as I, DETAIL_EXPAND_ACTION as b } from "@progress/kendo-vue-data-tools";
|
|
12
11
|
import { provideLocalizationService as S } from "@progress/kendo-vue-intl";
|
|
13
12
|
import { collapseDetailAriaLabel as s, messages as d, expandDetailAriaLabel as p } from "../messages/main.mjs";
|
|
14
|
-
import { minusIcon as
|
|
15
|
-
const
|
|
13
|
+
import { minusIcon as $, plusIcon as k } from "@progress/kendo-svg-icons";
|
|
14
|
+
const K = /* @__PURE__ */ c({
|
|
16
15
|
name: "KendoGridHierarchyCell",
|
|
17
16
|
inheritAttrs: !1,
|
|
18
17
|
props: {
|
|
@@ -50,14 +49,14 @@ const L = /* @__PURE__ */ c({
|
|
|
50
49
|
default: null
|
|
51
50
|
},
|
|
52
51
|
getKeyboardNavigationAttributes: {
|
|
53
|
-
default:
|
|
52
|
+
default: u
|
|
54
53
|
}
|
|
55
54
|
},
|
|
56
55
|
methods: {
|
|
57
56
|
triggerStateChange() {
|
|
58
57
|
const e = this.kendo;
|
|
59
58
|
e.dataItemKey && this.$props.dataItem[e.dataItemKey] !== void 0 && (e == null || e.dispatchDetailExpand({
|
|
60
|
-
type:
|
|
59
|
+
type: b.TOGGLE,
|
|
61
60
|
id: this.$props.dataItem[e.dataItemKey]
|
|
62
61
|
}));
|
|
63
62
|
},
|
|
@@ -67,7 +66,7 @@ const L = /* @__PURE__ */ c({
|
|
|
67
66
|
dataItem: this.$props.dataItem,
|
|
68
67
|
field: this.$props.field,
|
|
69
68
|
expanded: t
|
|
70
|
-
}), !e.defaultPrevented && e.keyCode ===
|
|
69
|
+
}), !e.defaultPrevented && e.keyCode === f.enter && (e.preventDefault(), this.$emit("change", {
|
|
71
70
|
dataItem: this.$props.dataItem,
|
|
72
71
|
dataIndex: this.$props.dataIndex,
|
|
73
72
|
event: e,
|
|
@@ -101,7 +100,7 @@ const L = /* @__PURE__ */ c({
|
|
|
101
100
|
class: this.wrapperClass
|
|
102
101
|
}, null);
|
|
103
102
|
else if (this.$props.rowType !== "groupHeader") {
|
|
104
|
-
const a =
|
|
103
|
+
const a = this.$props.expanded;
|
|
105
104
|
e = r("td", {
|
|
106
105
|
style: this.$attrs.style,
|
|
107
106
|
onKeydown: (n) => {
|
|
@@ -112,7 +111,7 @@ const L = /* @__PURE__ */ c({
|
|
|
112
111
|
role: "gridcell",
|
|
113
112
|
"aria-colindex": this.$props.ariaColumnIndex,
|
|
114
113
|
tabindex: t.tabIndex,
|
|
115
|
-
"data-keyboardnavlevel": t[
|
|
114
|
+
"data-keyboardnavlevel": t[I],
|
|
116
115
|
"data-keyboardnavid": t[y]
|
|
117
116
|
}, [r("a", {
|
|
118
117
|
onClick: (n) => {
|
|
@@ -122,12 +121,12 @@ const L = /* @__PURE__ */ c({
|
|
|
122
121
|
tabindex: -1,
|
|
123
122
|
title: a ? l : o,
|
|
124
123
|
"aria-label": a ? l : o
|
|
125
|
-
}, [r(
|
|
124
|
+
}, [r(h, {
|
|
126
125
|
name: a ? "minus" : "plus",
|
|
127
|
-
icon: a ?
|
|
126
|
+
icon: a ? $ : k
|
|
128
127
|
}, null)])]);
|
|
129
128
|
}
|
|
130
|
-
return
|
|
129
|
+
return g.call(this, {
|
|
131
130
|
h: m,
|
|
132
131
|
template: this.$props.render,
|
|
133
132
|
defaultRendering: e,
|
|
@@ -140,5 +139,5 @@ const L = /* @__PURE__ */ c({
|
|
|
140
139
|
}
|
|
141
140
|
});
|
|
142
141
|
export {
|
|
143
|
-
|
|
142
|
+
K as GridHierarchyCell
|
|
144
143
|
};
|
package/common.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"});require("vue");const t=require("@progress/kendo-vue-common"),n={autoProcessData:[Boolean,Object],topCacheCount:{type:Number,default:0},collapsedGroups:{type:Array,default:function(){return[]}},uniqueField:String,totalGroupedHeight:Number,allGroupedItems:Object,alternatePerGroup:Boolean,columns:Array,columnsState:{type:Array,default:function(){}},defaultColumnsState:{type:Array,default:function(){}},columnVirtualization:Boolean,dataItems:[Array,Object],sortable:[Boolean,Object],defaultSort:Array,sort:Array,filterable:Boolean,filterOperators:Object,filterCellRender:[String,Function,Object],headerCellRender:[String,Function,Object],showLoader:{type:Boolean,default:void 0},loader:[String,Function,Object,Boolean],defaultFilter:Object,filter:Object,defaultSearch:Object,search:Object,searchFields:Array,highlight:Object,pageable:[Boolean,Object],pageSize:Number,total:Number,skip:Number,defaultSkip:Number,take:Number,defaultTake:Number,expandField:String,expandColumn:Object,selectedField:String,cellRender:[String,Function,Object],rowRender:[String,Function,Object],resizable:Boolean,reorderable:Boolean,group:Array,defaultGroup:Array,groupable:[Boolean,Object],groupExpand:Array,defaultGroupExpand:Array,detailExpand:Object,defaultDetailExpand:Object,editField:String,rowClass:Function,scrollable:{type:String,default:"scrollable"},size:{type:String,default:"medium",validator:function(e){return["small","medium"].includes(e)}},pager:[String,Function,Object],rowHeight:Number,detailRowHeight:Number,detail:[String,Function,Object],columnMenu:[Boolean,String,Function,Object],columnMenuAnimate:{type:[Boolean,Object],default:function(){return!0}},columnMenuIcon:t.SvgIcon,dataItemKey:String,navigatable:{type:Boolean,default:!1},onItemchange:Function,onExpandchange:Function,onDatastatechange:Function,onPagechange:Function,onSortchange:Function,onFilterchange:Function,onGroupchange:Function,onSearchchange:Function,onGroupexpandchange:Function,onDetailexpandchange:Function};exports.gridProps=n;
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");const t=require("@progress/kendo-vue-common"),n={id:String,autoProcessData:[Boolean,Object],topCacheCount:{type:Number,default:0},collapsedGroups:{type:Array,default:function(){return[]}},uniqueField:String,totalGroupedHeight:Number,allGroupedItems:Object,alternatePerGroup:Boolean,columns:Array,columnsState:{type:Array,default:function(){}},defaultColumnsState:{type:Array,default:function(){}},columnVirtualization:Boolean,dataItems:[Array,Object],sortable:[Boolean,Object],defaultSort:Array,sort:Array,filterable:Boolean,filterOperators:Object,filterCellRender:[String,Function,Object],headerCellRender:[String,Function,Object],showLoader:{type:Boolean,default:void 0},loader:[String,Function,Object,Boolean],defaultFilter:Object,filter:Object,defaultSearch:Object,search:Object,searchFields:Array,highlight:Object,pageable:[Boolean,Object],pageSize:Number,total:Number,fixedScroll:Boolean,skip:Number,defaultSkip:Number,take:Number,defaultTake:Number,expandField:String,expandColumn:Object,selectedField:String,cellRender:[String,Function,Object],rowRender:[String,Function,Object],resizable:Boolean,reorderable:Boolean,group:Array,defaultGroup:Array,groupable:[Boolean,Object],groupExpand:Array,defaultGroupExpand:Array,detailExpand:Object,defaultDetailExpand:Object,editField:String,rowClass:Function,scrollable:{type:String,default:"scrollable"},size:{type:String,default:"medium",validator:function(e){return["small","medium"].includes(e)}},pager:[String,Function,Object],rowHeight:Number,detailRowHeight:Number,detail:[String,Function,Object],columnMenu:[Boolean,String,Function,Object],columnMenuAnimate:{type:[Boolean,Object],default:function(){return!0}},columnMenuIcon:t.SvgIcon,dataItemKey:String,navigatable:{type:Boolean,default:!1},onItemchange:Function,onExpandchange:Function,onDatastatechange:Function,onPagechange:Function,onSortchange:Function,onFilterchange:Function,onGroupchange:Function,onSearchchange:Function,onGroupexpandchange:Function,onDetailexpandchange:Function};exports.gridProps=n;
|
package/common.mjs
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
import "vue";
|
|
9
9
|
import { SvgIcon as t } from "@progress/kendo-vue-common";
|
|
10
10
|
const o = {
|
|
11
|
+
id: String,
|
|
11
12
|
autoProcessData: [Boolean, Object],
|
|
12
13
|
topCacheCount: {
|
|
13
14
|
type: Number,
|
|
@@ -57,6 +58,7 @@ const o = {
|
|
|
57
58
|
pageable: [Boolean, Object],
|
|
58
59
|
pageSize: Number,
|
|
59
60
|
total: Number,
|
|
61
|
+
fixedScroll: Boolean,
|
|
60
62
|
skip: Number,
|
|
61
63
|
defaultSkip: Number,
|
|
62
64
|
take: Number,
|
|
@@ -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 o=require("vue"),t=require("@progress/kendo-vue-intl"),n=require("
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),t=require("@progress/kendo-vue-intl"),n=require("../../messages/main.js"),r=require("@progress/kendo-vue-common"),c=o.defineComponent({name:"GridNoRecords",inject:{kendoLocalizationService:{default:null}},setup(){return{kendoLocalizationService:o.inject("kendoLocalizationService",{})}},render(){const e=r.getDefaultSlots(this),i=t.provideLocalizationService(this).toLanguageString(n.noRecords,n.messages[n.noRecords]);return e?o.createVNode("div",null,[e]):i}});exports.GridNoRecords=c;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as t, createVNode as n, inject as r } from "vue";
|
|
9
9
|
import { provideLocalizationService as c } from "@progress/kendo-vue-intl";
|
|
10
|
-
import { noRecords as o, messages as a } from "
|
|
10
|
+
import { noRecords as o, messages as a } from "../../messages/main.mjs";
|
|
11
11
|
import { getDefaultSlots as l } from "@progress/kendo-vue-common";
|
|
12
12
|
const v = /* @__PURE__ */ t({
|
|
13
13
|
name: "GridNoRecords",
|
|
@@ -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 e=require("vue"),t=require("@progress/kendo-vue-data-tools"),o=require("@progress/kendo-vue-common"),n=e.defineComponent({name:"GridNoRecordsContainer",props:{id:String},render(){const s=o.getDefaultSlots(this),r=o.uGrid;return e.createVNode("div",{key:"no-records",class:o.classNames(r.noRecords({}))},[e.createVNode("div",e.mergeProps({class:o.classNames(r.noRecordsTemplate({}))},{[t.KEYBOARD_NAV_DATA_ID]:this.$props.id}),[s])])}});exports.GridNoRecordsContainer=n;
|