@revolist/vue-datagrid 3.2.15 → 3.2.18

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.
@@ -1,14 +1,5 @@
1
- import Vue, { CreateElement } from "vue";
1
+ import Vue from "vue";
2
2
  import { RevoGrid as RevoGridComponent } from "@revolist/revogrid/custom-element";
3
- declare type WatchFunction = (this: Vue, newVal: any, oldVal: any) => void;
4
- declare type WatchResult = {
5
- [prop: string]: WatchFunction;
6
- };
7
3
  export { RevoGridComponent };
8
- declare const _default: {
9
- name: string;
10
- props: string[];
11
- watch: WatchResult;
12
- render(this: Vue, h: CreateElement): JSX.Element;
13
- };
4
+ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, Record<string, any>, {}>;
14
5
  export default _default;
package/dist/vgrid.d.ts CHANGED
@@ -2,14 +2,7 @@ declare function install(Vue: any): void;
2
2
  export declare const VGridPlugin: {
3
3
  install: typeof install;
4
4
  };
5
- export declare const VGrid: {
6
- name: string;
7
- props: string[];
8
- watch: {
9
- [prop: string]: (this: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, newVal: any, oldVal: any) => void;
10
- };
11
- render(this: import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, h: import("vue").CreateElement): JSX.Element;
12
- };
5
+ export declare const VGrid: import("vue/types/vue").ExtendedVue<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>, unknown, unknown, unknown, Record<string, any>, {}>;
13
6
  export declare const VGridVueTemplate: (cntr: import("vue").VueConstructor<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>, customProps?: any) => (h: Function, p: any) => JSX.Element;
14
7
  export declare const VGridVueTemplateConstructor: (vueConstructor: import("vue").VueConstructor<import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>>>, e: HTMLElement, p: Record<string, any>) => import("vue").default<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => import("vue").default<Record<string, any>, Record<string, any>, never, never, any>> | null | undefined;
15
8
  export declare const VGridVueEditor: (vueConstructor: import("vue/types/umd").VueConstructor<import("vue/types/umd")>) => (column: import("@revolist/revogrid/dist/types/interfaces").RevoGrid.ColumnDataSchemaModel, save: Function, close: Function) => import("./vue-editor-adapter").default;
package/dist/vgrid.js CHANGED
@@ -1 +1 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@revolist/revogrid/custom-element"),require("vue")):"function"==typeof define&&define.amd?define("VGrid",["@revolist/revogrid/custom-element","vue"],r):"object"==typeof exports?exports.VGrid=r(require("@revolist/revogrid/custom-element"),require("vue")):e.VGrid=r(e["@revolist/revogrid/custom-element"],e.vue)}(self,((e,r)=>(()=>{"use strict";var t={239:r=>{r.exports=e},748:e=>{e.exports=r}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{VGrid:()=>m,VGridPlugin:()=>h,VGridVueEditor:()=>b,VGridVueTemplate:()=>y,VGridVueTemplateConstructor:()=>g,default:()=>j}),n(239);var e=function(){return e=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},e.apply(this,arguments)},r=["rowHeaders","frameSize","rowSize","colSize","range","readonly","resize","canFocus","useClipboard","columns","source","pinnedTopSource","pinnedBottomSource","rowDefinitions","editors","plugins","columnTypes","theme","rowClass","autoSizeColumn","filter","canMoveColumns","trimmedRows","exporting","grouping","stretch"],t={},o=[];r.forEach((function(e){var r=e;t[r]=e,o.push(r),r=e.toLowerCase(),t[r]=e,o.push(r),r=e.split(/(?=[A-Z])/).join("-"),t[r]=e,o.push(r)}));var u=r.reduce((function(e,r){return e[r]=function(e){this.$refs.grid[r]=e},e}),{});const s={name:"vue-data-grid",props:o,watch:u,render:function(r){var t={};for(var o in this.$props)t[o]=this.$props[o];return r("revo-grid",{ref:"grid",domProps:t,on:e({},this.$listeners)})}};var l=n(748),c=n.n(l),a=function(){return a=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},a.apply(this,arguments)},d=function(e,r,t){if(!r)return null;var o;if((null==r?void 0:r.childNodes.length)&&(o=r.childNodes[0]),!o)return o=document.createElement("span"),r.appendChild(o),"object"==typeof e&&(e=c().extend(e)),new e({el:o,propsData:t});var n=o.__vue__;if(n)for(var i in t)n.$props[i]=t[i];return n};var p=function(){return p=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},p.apply(this,arguments)};const f=function(){function e(e,r,t,o){this.VueEditorConstructor=e,this.column=r,this.save=t,this.close=o,this.element=null,this.editCell=null}return e.prototype.componentDidRender=function(){},e.prototype.disconnectedCallback=function(){var e;null===(e=this.vueEl)||void 0===e||e.$destroy(),this.vueEl=void 0},e.prototype.render=function(e){var r=this;return e("span",{ref:function(e){return r.renderAdapter(e)}})},e.prototype.renderAdapter=function(e){if(e){var r=d(this.VueEditorConstructor,e,p(p({},this.editCell),{save:this.save,close:this.close}));r&&(this.vueEl=r)}},e}();var v=!1,h={install:function(e){v||(v=!0,e.component("vue-data-grid",m))}},m=s,y=function(e,r){return function(t,o){var n=r?a(a({},r),o):o;return t("span",{ref:function(r){return d(e,r,n)}})}},g=d,b=function(e){return function(r,t,o){return new f(e,r,t,o)}},w=null;"undefined"!=typeof window?w=window.Vue:void 0!==n.g&&(w=n.g.Vue),w&&w.use(h);const j=m})(),i})()));
1
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("vue"),require("@revolist/revogrid/custom-element")):"function"==typeof define&&define.amd?define("VGrid",["vue","@revolist/revogrid/custom-element"],r):"object"==typeof exports?exports.VGrid=r(require("vue"),require("@revolist/revogrid/custom-element")):e.VGrid=r(e.vue,e["@revolist/revogrid/custom-element"])}(self,((e,r)=>(()=>{"use strict";var t={239:e=>{e.exports=r},748:r=>{r.exports=e}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.r(i),n.d(i,{VGrid:()=>m,VGridPlugin:()=>h,VGridVueEditor:()=>b,VGridVueTemplate:()=>y,VGridVueTemplateConstructor:()=>g,default:()=>j});var e=n(748),r=n.n(e),t=(n(239),function(){return t=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},t.apply(this,arguments)}),o=["rowHeaders","frameSize","rowSize","colSize","range","readonly","resize","canFocus","useClipboard","columns","source","pinnedTopSource","pinnedBottomSource","rowDefinitions","editors","plugins","columnTypes","theme","rowClass","autoSizeColumn","filter","canMoveColumns","trimmedRows","exporting","grouping","stretch"],u={},s=[];o.forEach((function(e){var r=e;u[r]=e,s.push(r),r=e.toLowerCase(),u[r]=e,s.push(r),r=e.split(/(?=[A-Z])/).join("-"),u[r]=e,s.push(r)}));var l=o.reduce((function(e,r){return e[r]=function(e){this.$refs.grid[r]=e},e}),{});const c=r().extend({name:"vue-data-grid",props:s,watch:l,render:function(e){var r={};for(var o in this.$props)r[o]=this.$props[o];return e("revo-grid",{ref:"grid",domProps:r,on:t({},this.$listeners)})}});var a=function(){return a=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},a.apply(this,arguments)},d=function(e,t,o){if(!t)return null;var n;if((null==t?void 0:t.childNodes.length)&&(n=t.childNodes[0]),!n)return n=document.createElement("span"),t.appendChild(n),"object"==typeof e&&(e=r().extend(e)),new e({el:n,propsData:o});var i=n.__vue__;if(i)for(var u in o)i.$props[u]=o[u];return i};var p=function(){return p=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var n in r=arguments[t])Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e},p.apply(this,arguments)};const f=function(){function e(e,r,t,o){this.VueEditorConstructor=e,this.column=r,this.save=t,this.close=o,this.element=null,this.editCell=null}return e.prototype.componentDidRender=function(){},e.prototype.disconnectedCallback=function(){var e;null===(e=this.vueEl)||void 0===e||e.$destroy(),this.vueEl=void 0},e.prototype.render=function(e){var r=this;return e("span",{ref:function(e){return r.renderAdapter(e)}})},e.prototype.renderAdapter=function(e){if(e){var r=d(this.VueEditorConstructor,e,p(p({},this.editCell),{save:this.save,close:this.close}));r&&(this.vueEl=r)}},e}();var v=!1,h={install:function(e){v||(v=!0,e.component("vue-data-grid",m))}},m=c,y=function(e,r){return function(t,o){var n=r?a(a({},r),o):o;return t("span",{ref:function(r){return d(e,r,n)}})}},g=d,b=function(e){return function(r,t,o){return new f(e,r,t,o)}},w=null;"undefined"!=typeof window?w=window.Vue:void 0!==n.g&&(w=n.g.Vue),w&&w.use(h);const j=m})(),i})()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolist/vue-datagrid",
3
- "version": "3.2.15",
3
+ "version": "3.2.18",
4
4
  "description": "Vue data grid spreadsheet",
5
5
  "main": "dist/vgrid.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  "homepage": "https://github.com/revolist/vue-datagrid#readme",
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@revolist/revogrid": "^3.2.15",
34
+ "@revolist/revogrid": "^3.2.18",
35
35
  "@stencil/core": "^2.17.3"
36
36
  },
37
37
  "devDependencies": {
package/src/component.tsx CHANGED
@@ -62,7 +62,7 @@ const watch = props.reduce((res: WatchResult, p: Prop) => {
62
62
  }, {});
63
63
 
64
64
  export { RevoGridComponent };
65
- export default {
65
+ export default Vue.extend({
66
66
  name: "vue-data-grid",
67
67
  props: propsExtended,
68
68
  watch,
@@ -81,4 +81,4 @@ export default {
81
81
  />
82
82
  );
83
83
  },
84
- };
84
+ });