@revolist/vue-datagrid 3.6.13 → 3.6.15
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/dist/component.d.ts +1 -1
- package/dist/vgrid.d.ts +1 -1
- package/dist/vgrid.js +1 -1
- package/package.json +2 -2
- package/src/component.tsx +1 -1
package/dist/component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Vue from "vue";
|
|
2
|
-
import { RevoGrid as RevoGridComponent } from "@revolist/revogrid/custom-element
|
|
2
|
+
import { RevoGrid as RevoGridComponent } from "@revolist/revogrid/custom-element";
|
|
3
3
|
export { RevoGridComponent };
|
|
4
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>, {}>;
|
|
5
5
|
export default _default;
|
package/dist/vgrid.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export declare const VGridPlugin: {
|
|
|
5
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>, {}>;
|
|
6
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;
|
|
7
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;
|
|
8
|
-
export declare const VGridVueEditor: (vueConstructor: import("vue/types/umd").VueConstructor<import("vue/types/umd")>) => (column: import("@revolist/revogrid").RevoGrid.ColumnDataSchemaModel, save: Function, close: Function) => import("./vue-editor-adapter").default;
|
|
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;
|
|
9
9
|
export default VGrid;
|
package/dist/vgrid.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("vue"),require("@revolist/revogrid/custom-element
|
|
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:()=>g,VGridVueTemplateConstructor:()=>y,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)});r().config.ignoredElements=[/revo-\w*/];var 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,g=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)}})}},y=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.6.
|
|
3
|
+
"version": "3.6.15",
|
|
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.6.
|
|
34
|
+
"@revolist/revogrid": "^3.6.14",
|
|
35
35
|
"@stencil/core": "^2.17.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
package/src/component.tsx
CHANGED
|
@@ -6,7 +6,7 @@ type Prop = keyof RevoGrid.Components.RevoGrid;
|
|
|
6
6
|
type Grid = RevoGrid.Components.RevoGrid;
|
|
7
7
|
type WatchFunction = (this: Vue, newVal: any, oldVal: any) => void;
|
|
8
8
|
type WatchResult = { [prop: string]: WatchFunction };
|
|
9
|
-
|
|
9
|
+
Vue.config.ignoredElements = [/revo-\w*/];
|
|
10
10
|
const props: Prop[] = [
|
|
11
11
|
"rowHeaders",
|
|
12
12
|
"frameSize",
|