@revolist/vue-datagrid 3.6.16 → 3.6.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.
- package/dist/component.d.ts +0 -2
- package/dist/vgrid.js +1 -1
- package/package.json +1 -1
- package/src/component.tsx +0 -2
package/dist/component.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import Vue from "vue";
|
|
2
|
-
import { RevoGrid as RevoGridComponent } from "@revolist/revogrid/custom-element";
|
|
3
|
-
export { RevoGridComponent };
|
|
4
2
|
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
3
|
export default _default;
|
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/
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("vue"),require("@revolist/revogrid/loader")):"function"==typeof define&&define.amd?define("VGrid",["vue","@revolist/revogrid/loader"],r):"object"==typeof exports?exports.VGrid=r(require("vue"),require("@revolist/revogrid/loader")):e.VGrid=r(e.vue,e["@revolist/revogrid/loader"])}(self,((e,r)=>(()=>{"use strict";var t={829:e=>{e.exports=r},748:r=>{r.exports=e}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,o),i.exports}o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{VGrid:()=>g,VGridPlugin:()=>y,VGridVueEditor:()=>x,VGridVueTemplate:()=>w,VGridVueTemplateConstructor:()=>m,default:()=>V});var e=o(748),r=o.n(e),t=function(){return t=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},t.apply(this,arguments)};r().config.ignoredElements=[/revo-\w*/];var n=["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={},a=[];n.forEach((function(e){var r=e;u[r]=e,a.push(r),r=e.toLowerCase(),u[r]=e,a.push(r),r=e.split(/(?=[A-Z])/).join("-"),u[r]=e,a.push(r)}));var s=n.reduce((function(e,r){return e[r]=function(e){this.$refs.grid[r]=e},e}),{});const l=r().extend({name:"vue-data-grid",props:a,watch:s,render:function(e){var r={};for(var n in this.$props)r[n]=this.$props[n];return e("revo-grid",{ref:"grid",domProps:r,on:t({},this.$listeners)})}});var c=function(){return c=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},c.apply(this,arguments)},f=function(e,t,n){if(!t)return null;var o;if((null==t?void 0:t.childNodes.length)&&(o=t.childNodes[0]),!o)return o=document.createElement("span"),t.appendChild(o),"object"==typeof e&&(e=r().extend(e)),new e({el:o,propsData:n});var i=o.__vue__;if(i)for(var u in n)i.$props[u]=n[u];return i};var d=function(){return d=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},d.apply(this,arguments)};const p=function(){function e(e,r,t,n){this.VueEditorConstructor=e,this.column=r,this.save=t,this.close=n,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=f(this.VueEditorConstructor,e,d(d({},this.editCell),{save:this.save,close:this.close}));r&&(this.vueEl=r)}},e}();var v=o(829),h=!1,y={install:function(e){h||(h=!0,e.component("vue-data-grid",g))}},b=(0,v.defineCustomElements)(),g=function(){return e=void 0,r=void 0,n=function(){return function(e,r){var t,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;u;)try{if(t=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=r.call(e,u)}catch(e){i=[6,e],n=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}(this,(function(e){switch(e.label){case 0:return[4,b];case 1:return e.sent(),[2,l]}}))},new((t=void 0)||(t=Promise))((function(o,i){function u(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(u,a)}s((n=n.apply(e,r||[])).next())}));var e,r,t,n},w=function(e,r){return function(t,n){var o=r?c(c({},r),n):n;return t("span",{ref:function(r){return f(e,r,o)}})}},m=f,x=function(e){return function(r,t,n){return new p(e,r,t,n)}},j=null;"undefined"!=typeof window?j=window.Vue:void 0!==o.g&&(j=o.g.Vue),j&&j.use(y);const V=g})(),i})()));
|
package/package.json
CHANGED
package/src/component.tsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import Vue, { CreateElement } from "vue";
|
|
2
2
|
import RevoGrid from "@revolist/revogrid";
|
|
3
|
-
import { RevoGrid as RevoGridComponent } from "@revolist/revogrid/custom-element";
|
|
4
3
|
|
|
5
4
|
type Prop = keyof RevoGrid.Components.RevoGrid;
|
|
6
5
|
type Grid = RevoGrid.Components.RevoGrid;
|
|
@@ -61,7 +60,6 @@ const watch = props.reduce((res: WatchResult, p: Prop) => {
|
|
|
61
60
|
return res;
|
|
62
61
|
}, {});
|
|
63
62
|
|
|
64
|
-
export { RevoGridComponent };
|
|
65
63
|
export default Vue.extend({
|
|
66
64
|
name: "vue-data-grid",
|
|
67
65
|
props: propsExtended,
|