@progress/kendo-vue-grid 10.1.0 → 10.1.1-develop.1
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/BaseCSVExport.d.ts +1 -1
- package/RootGrid.js +1 -1
- package/RootGrid.mjs +30 -28
- package/dist/cdn/js/kendo-vue-grid.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +13 -13
package/BaseCSVExport.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ declare const BaseCSVExport: import('vue').DefineComponent<import('vue').Extract
|
|
|
91
91
|
hidden?: boolean;
|
|
92
92
|
show?: boolean;
|
|
93
93
|
}[];
|
|
94
|
-
csv:
|
|
94
|
+
csv: boolean | GridCSVExportOptions;
|
|
95
95
|
onCsvexport: (data: any[]) => any[];
|
|
96
96
|
fileName: string;
|
|
97
97
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
package/RootGrid.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 u=require("vue"),R=require("./Grid.js"),G=require("./GridState.js"),O=require("./common.js"),n=require("@progress/kendo-vue-common"),x=u.defineComponent({name:"KendoVueGrid",props:O.gridProps,setup(e,{expose:t}){const o=u.ref(null);t({get element(){var a;return((a=o.value)==null?void 0:a.element)||null},get props(){return e},get columns(){var a;return((a=o.value)==null?void 0:a.columns)||[]},scrollIntoView:a=>{var s;(s=o.value)==null||s.scrollIntoView(a)},fitColumns:a=>{var s;(s=o.value)==null||s.fitColumns(a)},exportAsPdf:()=>{var a;(a=o.value)==null||a.exportAsPdf()}})},methods:{transformTemplate(e,t){return e?n.templateRendering.call(this,e,t):void 0},transformGroupTemplates(e,t){if(e)return{groupHeader:this.transformTemplate(e.groupHeader,t),data:this.transformTemplate(e.data,t),groupFooter:this.transformTemplate(e.groupFooter,t)}},transformCellTemplates(e,t){if(e)return{headerCell:this.transformTemplate(e.headerCell,t),filterCell:this.transformTemplate(e.filterCell,t),footerCell:this.transformTemplate(e.footerCell,t),groupHeader:this.transformTemplate(e.groupHeader,t),data:this.transformTemplate(e.data,t),groupFooter:this.transformTemplate(e.groupFooter,t),select:this.transformGroupTemplates(e.select,t),hierarchy:this.transformGroupTemplates(e.hierarchy,t),group:this.transformGroupTemplates(e.group,t),edit:e.edit?{text:this.transformTemplate(e.edit.text,t),numeric:this.transformTemplate(e.edit.numeric,t),boolean:this.transformTemplate(e.edit.boolean,t),date:this.transformTemplate(e.edit.date,t)}:void 0}},transformRowTemplates(e,t){if(e)return{groupHeader:this.transformTemplate(e.groupHeader,t),data:this.transformTemplate(e.data,t),groupFooter:this.transformTemplate(e.groupFooter,t),pinnedData:this.transformTemplate(e.pinnedData,t)}}},computed:{columnsWithTemplates(){const e=n.getListeners.call(this);return n.mapTree(this.$props.columns||[],"children",t=>{const o={...t};return{...o,cell:this.transformTemplate(o.cell,e),headerCell:this.transformTemplate(o.headerCell,e),filterCell:this.transformTemplate(o.filterCell,e),footerCell:this.transformTemplate(o.footerCell,e),columnMenu:o.columnMenu===!1?!1:this.transformTemplate(o.columnMenu,e),cells:this.transformCellTemplates(o.cells,e)}})},cellsWithTemplates(){const e=n.getListeners.call(this);return this.transformCellTemplates(this.$props.cells,e)},rowsWithTemplates(){const e=n.getListeners.call(this);return this.transformRowTemplates(this.$props.rows,e)}},render(){const e=n.getDefaultSlots(this)||[],t=n.getListeners.call(this),o=e.filter(r=>{var m,l,p;return(r==null?void 0:r.tag)&&r.tag.toLowerCase().indexOf("toolbar")!==-1||(r==null?void 0:r.componentOptions)&&((m=r.componentOptions.tag)==null?void 0:m.toLowerCase().indexOf("toolbar"))!==-1||((p=(l=r==null?void 0:r.type)==null?void 0:l.name)==null?void 0:p.toLowerCase().indexOf("toolbar"))!==-1}),a=e.filter(r=>{var m,l,p;return(r==null?void 0:r.tag)&&r.tag.toLowerCase().indexOf("records")!==-1||(r==null?void 0:r.componentOptions)&&((m=r.componentOptions.tag)==null?void 0:m.toLowerCase().indexOf("records"))!==-1||((p=(l=r==null?void 0:r.type)==null?void 0:l.name)==null?void 0:p.toLowerCase().indexOf("records"))!==-1}),{cellRender:s,columnMenu:f,detail:d,columns:L,rowRender:T,pager:h,loader:g,rows:b,...i}=this.$props,c=this.columnsWithTemplates,C=this.cellsWithTemplates,w=this.rowsWithTemplates;return u.createVNode(G.GridStateProvider,i,{default:()=>[u.createVNode(R.Grid,u.mergeProps(i,t,{class:this.$attrs.class,style:this.$attrs.style,columns:c,cells:C,rows:w,cellRender:this.transformTemplate(s,t),columnMenu:this.transformTemplate(f,t),rowRender:this.transformTemplate(T,t),pager:this.transformTemplate(h,t),loader:this.transformTemplate(g,t),detail:this.transformTemplate(d,t),toolbar:o,noRecords:a}),null)]})}});exports.RootGrid=x;
|
package/RootGrid.mjs
CHANGED
|
@@ -5,18 +5,18 @@
|
|
|
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 { Grid as
|
|
10
|
-
import { GridStateProvider as
|
|
11
|
-
import { gridProps as
|
|
12
|
-
import { getDefaultSlots as
|
|
13
|
-
const
|
|
8
|
+
import { defineComponent as x, createVNode as u, mergeProps as R, ref as O } from "vue";
|
|
9
|
+
import { Grid as W } from "./Grid.mjs";
|
|
10
|
+
import { GridStateProvider as G } from "./GridState.mjs";
|
|
11
|
+
import { gridProps as b } from "./common.mjs";
|
|
12
|
+
import { getDefaultSlots as L, getListeners as l, mapTree as P, templateRendering as v } from "@progress/kendo-vue-common";
|
|
13
|
+
const S = /* @__PURE__ */ x({
|
|
14
14
|
name: "KendoVueGrid",
|
|
15
|
-
props:
|
|
15
|
+
props: b,
|
|
16
16
|
setup(e, {
|
|
17
17
|
expose: t
|
|
18
18
|
}) {
|
|
19
|
-
const o =
|
|
19
|
+
const o = O(null);
|
|
20
20
|
t({
|
|
21
21
|
get element() {
|
|
22
22
|
var a;
|
|
@@ -45,7 +45,7 @@ const M = /* @__PURE__ */ w({
|
|
|
45
45
|
},
|
|
46
46
|
methods: {
|
|
47
47
|
transformTemplate(e, t) {
|
|
48
|
-
return e ?
|
|
48
|
+
return e ? v.call(this, e, t) : void 0;
|
|
49
49
|
},
|
|
50
50
|
transformGroupTemplates(e, t) {
|
|
51
51
|
if (e)
|
|
@@ -88,7 +88,7 @@ const M = /* @__PURE__ */ w({
|
|
|
88
88
|
computed: {
|
|
89
89
|
columnsWithTemplates() {
|
|
90
90
|
const e = l.call(this);
|
|
91
|
-
return
|
|
91
|
+
return P(this.$props.columns || [], "children", (t) => {
|
|
92
92
|
const o = {
|
|
93
93
|
...t
|
|
94
94
|
};
|
|
@@ -113,7 +113,7 @@ const M = /* @__PURE__ */ w({
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
render() {
|
|
116
|
-
const e =
|
|
116
|
+
const e = L(this) || [], t = l.call(this), o = e.filter((r) => {
|
|
117
117
|
var n, m, p;
|
|
118
118
|
return (r == null ? void 0 : r.tag) && r.tag.toLowerCase().indexOf("toolbar") !== -1 || (r == null ? void 0 : r.componentOptions) && ((n = r.componentOptions.tag) == null ? void 0 : n.toLowerCase().indexOf("toolbar")) !== -1 || ((p = (m = r == null ? void 0 : r.type) == null ? void 0 : m.name) == null ? void 0 : p.toLowerCase().indexOf("toolbar")) !== -1;
|
|
119
119
|
}), a = e.filter((r) => {
|
|
@@ -121,26 +121,28 @@ const M = /* @__PURE__ */ w({
|
|
|
121
121
|
return (r == null ? void 0 : r.tag) && r.tag.toLowerCase().indexOf("records") !== -1 || (r == null ? void 0 : r.componentOptions) && ((n = r.componentOptions.tag) == null ? void 0 : n.toLowerCase().indexOf("records")) !== -1 || ((p = (m = r == null ? void 0 : r.type) == null ? void 0 : m.name) == null ? void 0 : p.toLowerCase().indexOf("records")) !== -1;
|
|
122
122
|
}), {
|
|
123
123
|
cellRender: s,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
columnMenu: i,
|
|
125
|
+
detail: T,
|
|
126
|
+
columns: y,
|
|
127
|
+
rowRender: d,
|
|
128
|
+
pager: h,
|
|
129
|
+
loader: g,
|
|
130
|
+
rows: F,
|
|
130
131
|
...f
|
|
131
|
-
} = this.$props,
|
|
132
|
-
return
|
|
133
|
-
default: () => [
|
|
132
|
+
} = this.$props, C = this.columnsWithTemplates, c = this.cellsWithTemplates, w = this.rowsWithTemplates;
|
|
133
|
+
return u(G, f, {
|
|
134
|
+
default: () => [u(W, R(f, t, {
|
|
134
135
|
class: this.$attrs.class,
|
|
135
136
|
style: this.$attrs.style,
|
|
136
|
-
columns:
|
|
137
|
-
cells:
|
|
138
|
-
rows:
|
|
137
|
+
columns: C,
|
|
138
|
+
cells: c,
|
|
139
|
+
rows: w,
|
|
139
140
|
cellRender: this.transformTemplate(s, t),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
columnMenu: this.transformTemplate(i, t),
|
|
142
|
+
rowRender: this.transformTemplate(d, t),
|
|
143
|
+
pager: this.transformTemplate(h, t),
|
|
144
|
+
loader: this.transformTemplate(g, t),
|
|
145
|
+
detail: this.transformTemplate(T, t),
|
|
144
146
|
toolbar: o,
|
|
145
147
|
noRecords: a
|
|
146
148
|
}), null)]
|
|
@@ -148,5 +150,5 @@ const M = /* @__PURE__ */ w({
|
|
|
148
150
|
}
|
|
149
151
|
});
|
|
150
152
|
export {
|
|
151
|
-
|
|
153
|
+
S as RootGrid
|
|
152
154
|
};
|