gridjs-vue
Advanced tools
Comparing version 3.2.2 to 3.2.3
@@ -1,2 +0,2 @@ | ||
import"core-js/modules/es.object.assign.js";import{Grid as e,createRef as t,h as i,html as n}from"gridjs";import r from"element-ready";import{nanoid as s}from"nanoid";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.search.js";import o from"gridjs/dist/theme/mermaid.css";import a from"vue-runtime-helpers/dist/normalize-component.mjs";import d from"vue-runtime-helpers/dist/inject-style/browser.mjs";function u(){}function c(e,t,i){return i?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var l=a({render:function(){var e=this.$createElement;return(this._self._c||e)("article",{class:"gridjs__wrapper",attrs:{id:"gridjs__"+this.uuid,"data-uuid":this.uuid}})},staticRenderFns:[]},(function(e){e&&e("data-v-678acceb_0",{source:".gridjs__wrapper[data-v-678acceb]{align-items:center;display:flex;height:fit-content;justify-content:center;width:100%}",map:void 0,media:void 0})}),{name:"Grid",props:{autoWidth:{type:Boolean,default:!0},classNames:{type:Object,default:void 0},cols:{type:[Array,Function],default:void 0},from:{type:[String,Function],default:void 0},language:{type:Object,default:void 0},pagination:{type:[Object,Boolean],default:!1},rows:{type:[Array,Function],default:void 0},search:{type:Boolean,default:!1},server:{type:[Object,Function],default:void 0},sort:{type:[Object,Boolean],default:!1},styles:{type:Object,default:void 0},theme:{type:String,default:"mermaid"},width:{type:String,default:"100%"}},data:function(){return{dict:{error:{columnsUndefined:"Column headers are undefined",rowsUndefined:"No data to display"}},grid:null,uuid:null,wrapper:null,themes:{mermaid:o}}},computed:{options:function(){var e={autoWidth:this.autoWidth,columns:this.cols?this.cols:[this.dict.error.columnsUndefined],data:this.rows?this.rows:this.from||this.server?void 0:[[this.dict.error.rowsUndefined]],pagination:this.pagination,sort:this.sort,width:this.width};return this.classNames&&(e.className=this.classNames),this.from&&(e.from="string"==typeof this.from?document.querySelector(this.from):document.createRange().createContextualFragment(this.from())),this.language&&(e.language=this.language),this.search&&(e.search=this.search),this.server&&(e.server=this.server),this.styles&&(e.style=this.styles),e}},watch:{autoWidth:function(){this.update()},classNames:function(){this.update()},cols:function(){this.update()},from:function(){this.update()},language:function(){this.update()},pagination:function(){this.update()},rows:function(){this.update()},search:function(){this.update()},server:function(){this.update()},sort:function(){this.update()},styles:function(){this.update()},width:function(){this.update()}},mounted:function(){try{var t=this;return t.uuid=s(),c(r('[data-uuid="'.concat(t.uuid,'"]'),{stopOnDomReady:!1}),(function(i){return t.wrapper=i,n=function(){t.wrapper&&(t.options.data||t.options.from||t.options.server)&&(t.grid=new e(t.options).render(t.wrapper))},(r=function(){if("none"!==t.theme)return function(e,t){if(!t)return e&&e.then?e.then(u):Promise.resolve()}(t.assignTheme())}())&&r.then?r.then(n):n(r);var n,r}))}catch(e){return Promise.reject(e)}},destroyed:function(){this.grid=void 0,this.wrapper=void 0},methods:{assignTheme:function(){try{var e=document.getElementsByTagName("head")[0],t="gridjs__".concat(this.uuid),i=document.createRange().createContextualFragment('\n <style title="'.concat(t,'_theme" type="text/css">\n ').concat(this.themes[this.theme],"\n </style>\n "));for(var n in e.appendChild(i),document.styleSheets)document.styleSheets[n].title==="".concat(t,"_theme")&&(i=document.styleSheets[n]);if(i instanceof CSSStyleSheet)for(var r in i.cssRules){var s=i.cssRules[r].cssText;if(s&&!/@/g.test(s)){var o="#".concat(t," ").concat(s);i.deleteRule(r),i.insertRule(o,r)}}return c()}catch(e){return Promise.reject(e)}},update:function(){this.grid&&this.grid.updateConfig(this.options).forceRender()}}},"data-v-678acceb",!1,void 0,!1,d,void 0,void 0);function h(e){if(!h.installed){h.installed=!0;e.prototype.$gridjs||(e.prototype.$gridjs={createRef:t,h:i,html:n,render:function(t,i,n,s){return t&&t.current&&(t=t.current),"string"==typeof t&&i?r(t,{stopOnDomReady:!1}).then((function(){new e({render:function(e){return e(i,Object.assign({props:n},s),this.$slots.default)},components:{usrComponent:i}}).$mount(t)})).catch((function(e){console.error(e)})):void console.error("$gridjs.render() requires a target element and a component")},uuid:s}),e.component("Grid",l)}}var m={install:h},p=null;"undefined"!=typeof window?p=window.Vue:"undefined"!=typeof global&&(p=global.Vue),p&&p.use(m);export default l;export{l as Grid,m as GridGlobal,h as install}; | ||
import"core-js/modules/es.object.assign.js";import{Grid as t,createRef as e,h as i,html as n}from"gridjs";import r from"element-ready";import{nanoid as s}from"nanoid";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.search.js";import o from"gridjs/dist/theme/mermaid.css";import a from"vue-runtime-helpers/dist/normalize-component.mjs";import d from"vue-runtime-helpers/dist/inject-style/browser.mjs";function u(){}function c(t,e,i){return i?e?e(t):t:(t&&t.then||(t=Promise.resolve(t)),e?t.then(e):t)}var h=a({render:function(){var t=this.$createElement;return(this._self._c||t)("article",{class:"gridjs__wrapper",attrs:{id:"gridjs__"+this.uuid,"data-uuid":this.uuid}})},staticRenderFns:[]},(function(t){t&&t("data-v-363960b8_0",{source:".gridjs__wrapper[data-v-363960b8]{align-items:center;display:flex;height:fit-content;justify-content:center;width:100%}",map:void 0,media:void 0})}),{name:"Grid",props:{autoWidth:{type:Boolean,default:!0},classNames:{type:Object,default:void 0},cols:{type:[Array,Function],default:void 0},from:{type:[String,Function],default:void 0},height:{type:[String],default:void 0},language:{type:Object,default:void 0},pagination:{type:[Object,Boolean],default:!1},rows:{type:[Array,Function],default:void 0},search:{type:[Object,Boolean],default:!1},server:{type:[Object,Function],default:void 0},sort:{type:[Object,Boolean],default:!1},styles:{type:Object,default:void 0},theme:{type:String,default:"mermaid"},width:{type:String,default:"100%"}},data:function(){return{dict:{error:{columnsUndefined:"Column headers are undefined",rowsUndefined:"No data to display"}},grid:null,uuid:null,wrapper:null,themes:{mermaid:o}}},computed:{options:function(){var t={autoWidth:this.autoWidth,columns:this.cols?this.cols:[this.dict.error.columnsUndefined],data:this.rows?this.rows:this.from||this.server?void 0:[[this.dict.error.rowsUndefined]],height:this.height,pagination:this.pagination,sort:this.sort,width:this.width};return this.classNames&&(t.className=this.classNames),this.from&&(t.from="string"==typeof this.from?document.querySelector(this.from):document.createRange().createContextualFragment(this.from())),this.language&&(t.language=this.language),this.search&&(t.search=this.search),this.server&&(t.server=this.server),this.styles&&(t.style=this.styles),t}},watch:{autoWidth:function(){this.update()},classNames:function(){this.update()},cols:function(){this.update()},from:function(){this.update()},height:function(){this.update()},language:function(){this.update()},pagination:function(){this.update()},rows:function(){this.update()},search:function(){this.update()},server:function(){this.update()},sort:function(){this.update()},styles:function(){this.update()},width:function(){this.update()}},mounted:function(){try{var e=this;return e.uuid=s(),c(r('[data-uuid="'.concat(e.uuid,'"]'),{stopOnDomReady:!1}),(function(i){return e.wrapper=i,n=function(){e.wrapper&&(e.options.data||e.options.from||e.options.server)&&(e.grid=new t(e.options).render(e.wrapper))},(r=function(){if("none"!==e.theme)return function(t,e){if(!e)return t&&t.then?t.then(u):Promise.resolve()}(e.assignTheme())}())&&r.then?r.then(n):n(r);var n,r}))}catch(t){return Promise.reject(t)}},destroyed:function(){this.grid=void 0,this.wrapper=void 0},methods:{assignTheme:function(){try{var t=document.getElementsByTagName("head")[0],e="gridjs__".concat(this.uuid),i=document.createRange().createContextualFragment('\n <style title="'.concat(e,'_theme" type="text/css">\n ').concat(this.themes[this.theme],"\n </style>\n "));for(var n in t.appendChild(i),document.styleSheets)document.styleSheets[n].title==="".concat(e,"_theme")&&(i=document.styleSheets[n]);if(i instanceof CSSStyleSheet)for(var r in i.cssRules){var s=i.cssRules[r].cssText;if(s&&!/@/g.test(s)){var o="#".concat(e," ").concat(s);i.deleteRule(r),i.insertRule(o,r)}}return c()}catch(t){return Promise.reject(t)}},update:function(){this.grid&&this.grid.updateConfig(this.options).forceRender()}}},"data-v-363960b8",!1,void 0,!1,d,void 0,void 0);function l(t){if(!l.installed){l.installed=!0;t.prototype.$gridjs||(t.prototype.$gridjs={createRef:e,h:i,html:n,render:function(e,i,n,s){return e&&e.current&&(e=e.current),"string"==typeof e&&i?r(e,{stopOnDomReady:!1}).then((function(){new t({render:function(t){return t(i,Object.assign({props:n},s),this.$slots.default)},components:{usrComponent:i}}).$mount(e)})).catch((function(t){console.error(t)})):void console.error("$gridjs.render() requires a target element and a component")},uuid:s}),t.component("Grid",h)}}var m={install:l},p=null;"undefined"!=typeof window?p=window.Vue:"undefined"!=typeof global&&(p=global.Vue),p&&p.use(m);export default h;export{h as Grid,m as GridGlobal,l as install}; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es.object.assign.js");var t=require("gridjs"),r=e(require("element-ready")),n=require("nanoid");require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.search.js");var i=e(require("gridjs/dist/theme/mermaid.css")),s=e(require("vue-runtime-helpers/dist/normalize-component.mjs")),o=e(require("vue-runtime-helpers/dist/inject-style/browser.mjs"));function a(){}function u(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var d=s({render:function(){var e=this.$createElement;return(this._self._c||e)("article",{class:"gridjs__wrapper",attrs:{id:"gridjs__"+this.uuid,"data-uuid":this.uuid}})},staticRenderFns:[]},(function(e){e&&e("data-v-678acceb_0",{source:".gridjs__wrapper[data-v-678acceb]{align-items:center;display:flex;height:fit-content;justify-content:center;width:100%}",map:void 0,media:void 0})}),{name:"Grid",props:{autoWidth:{type:Boolean,default:!0},classNames:{type:Object,default:void 0},cols:{type:[Array,Function],default:void 0},from:{type:[String,Function],default:void 0},language:{type:Object,default:void 0},pagination:{type:[Object,Boolean],default:!1},rows:{type:[Array,Function],default:void 0},search:{type:Boolean,default:!1},server:{type:[Object,Function],default:void 0},sort:{type:[Object,Boolean],default:!1},styles:{type:Object,default:void 0},theme:{type:String,default:"mermaid"},width:{type:String,default:"100%"}},data:function(){return{dict:{error:{columnsUndefined:"Column headers are undefined",rowsUndefined:"No data to display"}},grid:null,uuid:null,wrapper:null,themes:{mermaid:i}}},computed:{options:function(){var e={autoWidth:this.autoWidth,columns:this.cols?this.cols:[this.dict.error.columnsUndefined],data:this.rows?this.rows:this.from||this.server?void 0:[[this.dict.error.rowsUndefined]],pagination:this.pagination,sort:this.sort,width:this.width};return this.classNames&&(e.className=this.classNames),this.from&&(e.from="string"==typeof this.from?document.querySelector(this.from):document.createRange().createContextualFragment(this.from())),this.language&&(e.language=this.language),this.search&&(e.search=this.search),this.server&&(e.server=this.server),this.styles&&(e.style=this.styles),e}},watch:{autoWidth:function(){this.update()},classNames:function(){this.update()},cols:function(){this.update()},from:function(){this.update()},language:function(){this.update()},pagination:function(){this.update()},rows:function(){this.update()},search:function(){this.update()},server:function(){this.update()},sort:function(){this.update()},styles:function(){this.update()},width:function(){this.update()}},mounted:function(){try{var e=this;return e.uuid=n.nanoid(),u(r('[data-uuid="'.concat(e.uuid,'"]'),{stopOnDomReady:!1}),(function(r){return e.wrapper=r,n=function(){e.wrapper&&(e.options.data||e.options.from||e.options.server)&&(e.grid=new t.Grid(e.options).render(e.wrapper))},(i=function(){if("none"!==e.theme)return function(e,t){if(!t)return e&&e.then?e.then(a):Promise.resolve()}(e.assignTheme())}())&&i.then?i.then(n):n(i);var n,i}))}catch(e){return Promise.reject(e)}},destroyed:function(){this.grid=void 0,this.wrapper=void 0},methods:{assignTheme:function(){try{var e=document.getElementsByTagName("head")[0],t="gridjs__".concat(this.uuid),r=document.createRange().createContextualFragment('\n <style title="'.concat(t,'_theme" type="text/css">\n ').concat(this.themes[this.theme],"\n </style>\n "));for(var n in e.appendChild(r),document.styleSheets)document.styleSheets[n].title==="".concat(t,"_theme")&&(r=document.styleSheets[n]);if(r instanceof CSSStyleSheet)for(var i in r.cssRules){var s=r.cssRules[i].cssText;if(s&&!/@/g.test(s)){var o="#".concat(t," ").concat(s);r.deleteRule(i),r.insertRule(o,i)}}return u()}catch(e){return Promise.reject(e)}},update:function(){this.grid&&this.grid.updateConfig(this.options).forceRender()}}},"data-v-678acceb",!1,void 0,!1,o,void 0,void 0);function c(e){if(!c.installed){c.installed=!0;e.prototype.$gridjs||(e.prototype.$gridjs={createRef:t.createRef,h:t.h,html:t.html,render:function(t,n,i,s){return t&&t.current&&(t=t.current),"string"==typeof t&&n?r(t,{stopOnDomReady:!1}).then((function(){new e({render:function(e){return e(n,Object.assign({props:i},s),this.$slots.default)},components:{usrComponent:n}}).$mount(t)})).catch((function(e){console.error(e)})):void console.error("$gridjs.render() requires a target element and a component")},uuid:n.nanoid}),e.component("Grid",d)}}var l={install:c},h=null;"undefined"!=typeof window?h=window.Vue:"undefined"!=typeof global&&(h=global.Vue),h&&h.use(l),exports.Grid=d,exports.GridGlobal=l,exports.default=d,exports.install=c; | ||
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es.object.assign.js");var t=require("gridjs"),r=e(require("element-ready")),i=require("nanoid");require("core-js/modules/es.array.concat.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.promise.js"),require("core-js/modules/es.regexp.exec.js"),require("core-js/modules/es.string.search.js");var n=e(require("gridjs/dist/theme/mermaid.css")),s=e(require("vue-runtime-helpers/dist/normalize-component.mjs")),o=e(require("vue-runtime-helpers/dist/inject-style/browser.mjs"));function a(){}function u(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var d=s({render:function(){var e=this.$createElement;return(this._self._c||e)("article",{class:"gridjs__wrapper",attrs:{id:"gridjs__"+this.uuid,"data-uuid":this.uuid}})},staticRenderFns:[]},(function(e){e&&e("data-v-363960b8_0",{source:".gridjs__wrapper[data-v-363960b8]{align-items:center;display:flex;height:fit-content;justify-content:center;width:100%}",map:void 0,media:void 0})}),{name:"Grid",props:{autoWidth:{type:Boolean,default:!0},classNames:{type:Object,default:void 0},cols:{type:[Array,Function],default:void 0},from:{type:[String,Function],default:void 0},height:{type:[String],default:void 0},language:{type:Object,default:void 0},pagination:{type:[Object,Boolean],default:!1},rows:{type:[Array,Function],default:void 0},search:{type:[Object,Boolean],default:!1},server:{type:[Object,Function],default:void 0},sort:{type:[Object,Boolean],default:!1},styles:{type:Object,default:void 0},theme:{type:String,default:"mermaid"},width:{type:String,default:"100%"}},data:function(){return{dict:{error:{columnsUndefined:"Column headers are undefined",rowsUndefined:"No data to display"}},grid:null,uuid:null,wrapper:null,themes:{mermaid:n}}},computed:{options:function(){var e={autoWidth:this.autoWidth,columns:this.cols?this.cols:[this.dict.error.columnsUndefined],data:this.rows?this.rows:this.from||this.server?void 0:[[this.dict.error.rowsUndefined]],height:this.height,pagination:this.pagination,sort:this.sort,width:this.width};return this.classNames&&(e.className=this.classNames),this.from&&(e.from="string"==typeof this.from?document.querySelector(this.from):document.createRange().createContextualFragment(this.from())),this.language&&(e.language=this.language),this.search&&(e.search=this.search),this.server&&(e.server=this.server),this.styles&&(e.style=this.styles),e}},watch:{autoWidth:function(){this.update()},classNames:function(){this.update()},cols:function(){this.update()},from:function(){this.update()},height:function(){this.update()},language:function(){this.update()},pagination:function(){this.update()},rows:function(){this.update()},search:function(){this.update()},server:function(){this.update()},sort:function(){this.update()},styles:function(){this.update()},width:function(){this.update()}},mounted:function(){try{var e=this;return e.uuid=i.nanoid(),u(r('[data-uuid="'.concat(e.uuid,'"]'),{stopOnDomReady:!1}),(function(r){return e.wrapper=r,i=function(){e.wrapper&&(e.options.data||e.options.from||e.options.server)&&(e.grid=new t.Grid(e.options).render(e.wrapper))},(n=function(){if("none"!==e.theme)return function(e,t){if(!t)return e&&e.then?e.then(a):Promise.resolve()}(e.assignTheme())}())&&n.then?n.then(i):i(n);var i,n}))}catch(e){return Promise.reject(e)}},destroyed:function(){this.grid=void 0,this.wrapper=void 0},methods:{assignTheme:function(){try{var e=document.getElementsByTagName("head")[0],t="gridjs__".concat(this.uuid),r=document.createRange().createContextualFragment('\n <style title="'.concat(t,'_theme" type="text/css">\n ').concat(this.themes[this.theme],"\n </style>\n "));for(var i in e.appendChild(r),document.styleSheets)document.styleSheets[i].title==="".concat(t,"_theme")&&(r=document.styleSheets[i]);if(r instanceof CSSStyleSheet)for(var n in r.cssRules){var s=r.cssRules[n].cssText;if(s&&!/@/g.test(s)){var o="#".concat(t," ").concat(s);r.deleteRule(n),r.insertRule(o,n)}}return u()}catch(e){return Promise.reject(e)}},update:function(){this.grid&&this.grid.updateConfig(this.options).forceRender()}}},"data-v-363960b8",!1,void 0,!1,o,void 0,void 0);function c(e){if(!c.installed){c.installed=!0;e.prototype.$gridjs||(e.prototype.$gridjs={createRef:t.createRef,h:t.h,html:t.html,render:function(t,i,n,s){return t&&t.current&&(t=t.current),"string"==typeof t&&i?r(t,{stopOnDomReady:!1}).then((function(){new e({render:function(e){return e(i,Object.assign({props:n},s),this.$slots.default)},components:{usrComponent:i}}).$mount(t)})).catch((function(e){console.error(e)})):void console.error("$gridjs.render() requires a target element and a component")},uuid:i.nanoid}),e.component("Grid",d)}}var h={install:c},l=null;"undefined"!=typeof window?l=window.Vue:"undefined"!=typeof global&&(l=global.Vue),l&&l.use(h),exports.Grid=d,exports.GridGlobal=h,exports.default=d,exports.install=c; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "gridjs-vue", | ||
"description": "A Vue.js wrapper component for Grid.js", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
412760
478