@progress/kendo-vue-grid 10.1.0-develop.2 → 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.
@@ -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: any;
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 i=require("vue"),w=require("./Grid.js"),R=require("./GridState.js"),G=require("./common.js"),n=require("@progress/kendo-vue-common"),O=i.defineComponent({name:"KendoVueGrid",props:G.gridProps,setup(e,{expose:t}){const o=i.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,detail:f,columns:x,rowRender:d,pager:T,loader:h,rows:L,...u}=this.$props,g=this.columnsWithTemplates,c=this.cellsWithTemplates,C=this.rowsWithTemplates;return i.createVNode(R.GridStateProvider,u,{default:()=>[i.createVNode(w.Grid,i.mergeProps(u,t,{class:this.$attrs.class,style:this.$attrs.style,columns:g,cells:c,rows:C,cellRender:this.transformTemplate(s,t),rowRender:this.transformTemplate(d,t),pager:this.transformTemplate(T,t),loader:this.transformTemplate(h,t),detail:this.transformTemplate(f,t),toolbar:o,noRecords:a}),null)]})}});exports.RootGrid=O;
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 w, createVNode as i, mergeProps as x, ref as R } from "vue";
9
- import { Grid as O } from "./Grid.mjs";
10
- import { GridStateProvider as W } from "./GridState.mjs";
11
- import { gridProps as G } from "./common.mjs";
12
- import { getDefaultSlots as b, getListeners as l, mapTree as L, templateRendering as P } from "@progress/kendo-vue-common";
13
- const M = /* @__PURE__ */ w({
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: G,
15
+ props: b,
16
16
  setup(e, {
17
17
  expose: t
18
18
  }) {
19
- const o = R(null);
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 ? P.call(this, e, t) : void 0;
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 L(this.$props.columns || [], "children", (t) => {
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 = b(this) || [], t = l.call(this), o = e.filter((r) => {
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
- detail: u,
125
- columns: v,
126
- rowRender: T,
127
- pager: d,
128
- loader: h,
129
- rows: y,
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, g = this.columnsWithTemplates, C = this.cellsWithTemplates, c = this.rowsWithTemplates;
132
- return i(W, f, {
133
- default: () => [i(O, x(f, t, {
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: g,
137
- cells: C,
138
- rows: c,
137
+ columns: C,
138
+ cells: c,
139
+ rows: w,
139
140
  cellRender: this.transformTemplate(s, t),
140
- rowRender: this.transformTemplate(T, t),
141
- pager: this.transformTemplate(d, t),
142
- loader: this.transformTemplate(h, t),
143
- detail: this.transformTemplate(u, t),
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
- M as RootGrid
153
+ S as RootGrid
152
154
  };