diff --git a/dist/grove-vue-visjs-graph.esm.js b/dist/grove-vue-visjs-graph.esm.js index 5af5db5..6bb6e63 100644 --- a/dist/grove-vue-visjs-graph.esm.js +++ b/dist/grove-vue-visjs-graph.esm.js @@ -62,6 +62,8 @@ var script = { if (Array.isArray(obj)) { return obj.map(function (item) { return this$1.observerClean(item); }); + } else if (Object.prototype.toString.call(obj) === '[object Date]') { + return new Date(obj.valueOf()); } else if (typeof obj === 'object' && obj !== null) { return Object.keys(obj).reduce( function (res, e) { @@ -309,7 +311,7 @@ __vue_render__._withStripped = true; /* style */ var __vue_inject_styles__ = function (inject) { if (!inject) { return } - inject("data-v-03be2188_0", { source: ".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n", map: {"version":3,"sources":["visjs-graph.vue"],"names":[],"mappings":"AAAA;EACE,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ","file":"visjs-graph.vue","sourcesContent":[".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n"]}, media: undefined }); + inject("data-v-0ebb59c4_0", { source: ".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n", map: {"version":3,"sources":["visjs-graph.vue"],"names":[],"mappings":"AAAA;EACE,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ","file":"visjs-graph.vue","sourcesContent":[".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n"]}, media: undefined }); }; /* scoped */ @@ -386,6 +388,8 @@ var script$1 = { if (Array.isArray(obj)) { return obj.map(function (item) { return this$1.observerClean(item); }); + } else if (Object.prototype.toString.call(obj) === '[object Date]') { + return new Date(obj.valueOf()); } else if (typeof obj === 'object' && obj !== null) { return Object.keys(obj).reduce( function (res, e) { diff --git a/dist/grove-vue-visjs-graph.min.js b/dist/grove-vue-visjs-graph.min.js index 5ef49d6..da573e5 100644 --- a/dist/grove-vue-visjs-graph.min.js +++ b/dist/grove-vue-visjs-graph.min.js @@ -62,6 +62,8 @@ var VisjsGraph = (function (exports, mlvisjs) { if (Array.isArray(obj)) { return obj.map(function (item) { return this$1.observerClean(item); }); + } else if (Object.prototype.toString.call(obj) === '[object Date]') { + return new Date(obj.valueOf()); } else if (typeof obj === 'object' && obj !== null) { return Object.keys(obj).reduce( function (res, e) { @@ -309,7 +311,7 @@ var VisjsGraph = (function (exports, mlvisjs) { /* style */ var __vue_inject_styles__ = function (inject) { if (!inject) { return } - inject("data-v-03be2188_0", { source: ".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n", map: {"version":3,"sources":["visjs-graph.vue"],"names":[],"mappings":"AAAA;EACE,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ","file":"visjs-graph.vue","sourcesContent":[".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n"]}, media: undefined }); + inject("data-v-0ebb59c4_0", { source: ".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n", map: {"version":3,"sources":["visjs-graph.vue"],"names":[],"mappings":"AAAA;EACE,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ","file":"visjs-graph.vue","sourcesContent":[".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n"]}, media: undefined }); }; /* scoped */ @@ -386,6 +388,8 @@ var VisjsGraph = (function (exports, mlvisjs) { if (Array.isArray(obj)) { return obj.map(function (item) { return this$1.observerClean(item); }); + } else if (Object.prototype.toString.call(obj) === '[object Date]') { + return new Date(obj.valueOf()); } else if (typeof obj === 'object' && obj !== null) { return Object.keys(obj).reduce( function (res, e) { diff --git a/dist/grove-vue-visjs-graph.umd.js b/dist/grove-vue-visjs-graph.umd.js index 8c36634..c1f7f6d 100644 --- a/dist/grove-vue-visjs-graph.umd.js +++ b/dist/grove-vue-visjs-graph.umd.js @@ -65,6 +65,8 @@ if (Array.isArray(obj)) { return obj.map(function (item) { return this$1.observerClean(item); }); + } else if (Object.prototype.toString.call(obj) === '[object Date]') { + return new Date(obj.valueOf()); } else if (typeof obj === 'object' && obj !== null) { return Object.keys(obj).reduce( function (res, e) { @@ -312,7 +314,7 @@ /* style */ var __vue_inject_styles__ = function (inject) { if (!inject) { return } - inject("data-v-03be2188_0", { source: ".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n", map: {"version":3,"sources":["visjs-graph.vue"],"names":[],"mappings":"AAAA;EACE,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ","file":"visjs-graph.vue","sourcesContent":[".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n"]}, media: undefined }); + inject("data-v-0ebb59c4_0", { source: ".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n", map: {"version":3,"sources":["visjs-graph.vue"],"names":[],"mappings":"AAAA;EACE,kBAAkB;AACpB;AACA;EACE,UAAU;AACZ","file":"visjs-graph.vue","sourcesContent":[".mlvisjs-graph .graph-controls {\n width: fit-content;\n}\n.mlvisjs-graph .graph-controls form {\n padding: 0;\n}\n"]}, media: undefined }); }; /* scoped */ @@ -389,6 +391,8 @@ if (Array.isArray(obj)) { return obj.map(function (item) { return this$1.observerClean(item); }); + } else if (Object.prototype.toString.call(obj) === '[object Date]') { + return new Date(obj.valueOf()); } else if (typeof obj === 'object' && obj !== null) { return Object.keys(obj).reduce( function (res, e) { diff --git a/package-lock.json b/package-lock.json index 94cb93c..8508a26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@marklogic-community/grove-vue-visjs-graph", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e639cd7..d505f88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@marklogic-community/grove-vue-visjs-graph", - "version": "0.1.0", + "version": "0.1.1", "description": "Vue component to visualize RDF relationships and Timelines using Vis.js", "main": "dist/grove-vue-visjs-graph.umd.js", "module": "dist/grove-vue-visjs-graph.esm.js",