vue-flexmonster 2.9.12-beta.1 → 2.9.13

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Flexmonster Pivot Table & Charts
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # VueJS module for Flexmonster Pivot Table & Charts
1
+ # Vue module for Flexmonster Pivot Table & Charts
2
2
  [![Flexmonster Pivot Table & Charts](https://cdn.flexmonster.com/landing.png)](https://flexmonster.com)
3
3
  Website: www.flexmonster.com
4
4
 
@@ -6,7 +6,7 @@ Website: www.flexmonster.com
6
6
 
7
7
  Flexmonster Pivot is a powerful JavaScript tool for interactive web reporting. It allows you to visualize and analyze data from JSON, CSV, SQL, NoSQL, Elasticsearch, and OLAP data sources quickly and conveniently. Flexmonster is designed to integrate seamlessly with any client-side framework and can be easily embedded into your application.
8
8
 
9
- This repository holds the source code for using [Flexmonster Pivot](https://www.flexmonster.com/) in [Vue](https://vuejs.org/) applications:
9
+ This repository holds the source code for using [Flexmonster Pivot](https://www.flexmonster.com/) in [Vue 2](https://vuejs.org/) and [Vue 3](https://v3.vuejs.org/) applications:
10
10
 
11
11
  * [Usage](#usage)
12
12
  * [Sample Project](#sample-project)
@@ -15,7 +15,9 @@ This repository holds the source code for using [Flexmonster Pivot](https://www.
15
15
 
16
16
  ## <a name="usage"></a>Usage ##
17
17
 
18
- Refer to [Flexmonster Integration with Vue](https://www.flexmonster.com/doc/integration-with-vue/) tutorial for details on the Flexmonster Vue module usage.
18
+ Refer to [Flexmonster Integration with Vue 2](https://www.flexmonster.com/doc/integration-with-vue-2) tutorial for details on the Flexmonster Vue module usage in Vue 2.
19
+
20
+ To integrate with Vue 3, check this guide: [Integration with Vue 3](https://www.flexmonster.com/doc/integration-with-vue-3/).
19
21
 
20
22
  ## <a name="sample-project"></a>Sample Project ##
21
23
 
@@ -29,4 +31,4 @@ Flexmonster Vue module is released as an MIT-licensed add-on to Flexmonster Pivo
29
31
 
30
32
  ## <a name="support-feedback"></a>Support & feedback ##
31
33
 
32
- Please share your feedback or ask questions via [Flexmonster Forum](https://www.flexmonster.com/forum/).
34
+ Please share your feedback or ask questions via [Flexmonster Help Center](https://www.flexmonster.com/help-center/).
package/dist/index.esm.js CHANGED
@@ -1,28 +1,9 @@
1
- /*!
2
- * vue-flexmonster v2.9.11
3
- * (c) Flexmonster <help@flexmonster.com>
4
- * Released under the MIT License.
5
- */
6
- import Vue from 'vue';
7
1
  import Flexmonster from 'flexmonster';
8
2
 
9
- function _typeof(obj) {
10
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
11
- _typeof = function (obj) {
12
- return typeof obj;
13
- };
14
- } else {
15
- _typeof = function (obj) {
16
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
17
- };
18
- }
19
-
20
- return _typeof(obj);
21
- }
22
-
23
3
  //
24
4
  var script = {
25
- name: "Pivot",
5
+ name: 'Pivot',
6
+ // vue component name
26
7
  props: {
27
8
  afterchartdraw: Function,
28
9
  aftergriddraw: Function,
@@ -75,14 +56,16 @@ var script = {
75
56
  width: [Number, String],
76
57
  accessibility: Object
77
58
  },
78
- mounted: function mounted() {
79
- this.flexmonster = new Flexmonster(Object.assign({}, this.$props, {
59
+ mounted: function () {
60
+ this.flexmonster = new Flexmonster({ ...this.$props,
80
61
  container: this.$el
81
- }));
62
+ });
82
63
  },
83
- beforeUpdate: function beforeUpdate() {
64
+
65
+ beforeUpdate() {
84
66
  return false;
85
67
  }
68
+
86
69
  };
87
70
 
88
71
  function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
@@ -161,10 +144,10 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
161
144
  }
162
145
 
163
146
  /* script */
164
- var __vue_script__ = script;
147
+ const __vue_script__ = script;
165
148
  /* template */
166
149
 
167
- var __vue_render__ = function __vue_render__() {
150
+ var __vue_render__ = function () {
168
151
  var _vm = this;
169
152
 
170
153
  var _h = _vm.$createElement;
@@ -177,35 +160,44 @@ var __vue_render__ = function __vue_render__() {
177
160
  var __vue_staticRenderFns__ = [];
178
161
  /* style */
179
162
 
180
- var __vue_inject_styles__ = undefined;
163
+ const __vue_inject_styles__ = undefined;
181
164
  /* scoped */
182
165
 
183
- var __vue_scope_id__ = "data-v-15baf9ca";
166
+ const __vue_scope_id__ = "data-v-243d77ce";
184
167
  /* module identifier */
185
168
 
186
- var __vue_module_identifier__ = undefined;
169
+ const __vue_module_identifier__ = undefined;
187
170
  /* functional template */
188
171
 
189
- var __vue_is_functional_template__ = false;
172
+ const __vue_is_functional_template__ = false;
190
173
  /* style inject */
191
174
 
192
175
  /* style inject SSR */
193
176
 
194
177
  /* style inject shadow dom */
195
178
 
196
- var __vue_component__ = normalizeComponent({
179
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
197
180
  render: __vue_render__,
198
181
  staticRenderFns: __vue_staticRenderFns__
199
182
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
200
183
 
201
- function install(Vue) {
202
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
203
- Vue.component(options.PivotName || 'Pivot', __vue_component__);
204
- } //Allows user to use Pivot as a plugin
184
+ var component = __vue_component__;
185
+
186
+ // Import vue component
187
+ // IIFE injects install function into component, allowing component
188
+ // to be registered via Vue.use() as well as Vue.component(),
189
+
190
+ var entry_esm = /*#__PURE__*/(() => {
191
+ // Get component instance
192
+ const installable = component; // Attach install function executed by Vue.use()
193
+
194
+ installable.install = Vue => {
195
+ Vue.component('Pivot', installable);
196
+ };
205
197
 
206
- if ((typeof window === "undefined" ? "undefined" : _typeof(window)) != undefined && window.Vue && window.Vue == Vue) {
207
- install(window.Vue);
208
- } //Allows user to register Pivot locally, without global registration
198
+ return installable;
199
+ })(); // It's possible to expose named exports when writing components that can
200
+ // also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo';
201
+ // export const RollupDemoDirective = directive;
209
202
 
210
- export default install;
211
- export { __vue_component__ as Pivot };
203
+ export { entry_esm as default };
package/dist/index.js CHANGED
@@ -1,34 +1,116 @@
1
- /*!
2
- * vue-flexmonster v2.9.11
3
- * (c) Flexmonster <help@flexmonster.com>
4
- * Released under the MIT License.
5
- */
6
- 'use strict';
1
+ 'use strict';var Flexmonster=require('flexmonster');function _interopDefaultLegacy(e){return e&&typeof e==='object'&&'default'in e?e:{'default':e}}var Flexmonster__default=/*#__PURE__*/_interopDefaultLegacy(Flexmonster);function ownKeys(object, enumerableOnly) {
2
+ var keys = Object.keys(object);
7
3
 
8
- Object.defineProperty(exports, '__esModule', { value: true });
4
+ if (Object.getOwnPropertySymbols) {
5
+ var symbols = Object.getOwnPropertySymbols(object);
9
6
 
10
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
7
+ if (enumerableOnly) {
8
+ symbols = symbols.filter(function (sym) {
9
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
10
+ });
11
+ }
11
12
 
12
- var Vue = _interopDefault(require('vue'));
13
- var Flexmonster = _interopDefault(require('flexmonster'));
13
+ keys.push.apply(keys, symbols);
14
+ }
15
+
16
+ return keys;
17
+ }
14
18
 
15
- function _typeof(obj) {
16
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
17
- _typeof = function (obj) {
18
- return typeof obj;
19
- };
19
+ function _objectSpread2(target) {
20
+ for (var i = 1; i < arguments.length; i++) {
21
+ var source = arguments[i] != null ? arguments[i] : {};
22
+
23
+ if (i % 2) {
24
+ ownKeys(Object(source), true).forEach(function (key) {
25
+ _defineProperty(target, key, source[key]);
26
+ });
27
+ } else if (Object.getOwnPropertyDescriptors) {
28
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
29
+ } else {
30
+ ownKeys(Object(source)).forEach(function (key) {
31
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
32
+ });
33
+ }
34
+ }
35
+
36
+ return target;
37
+ }
38
+
39
+ function _defineProperty(obj, key, value) {
40
+ if (key in obj) {
41
+ Object.defineProperty(obj, key, {
42
+ value: value,
43
+ enumerable: true,
44
+ configurable: true,
45
+ writable: true
46
+ });
20
47
  } else {
21
- _typeof = function (obj) {
22
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
23
- };
48
+ obj[key] = value;
24
49
  }
25
50
 
26
- return _typeof(obj);
51
+ return obj;
27
52
  }
28
53
 
29
- //
30
- var script = {
31
- name: "Pivot",
54
+ function _slicedToArray(arr, i) {
55
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
56
+ }
57
+
58
+ function _arrayWithHoles(arr) {
59
+ if (Array.isArray(arr)) return arr;
60
+ }
61
+
62
+ function _iterableToArrayLimit(arr, i) {
63
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
64
+
65
+ if (_i == null) return;
66
+ var _arr = [];
67
+ var _n = true;
68
+ var _d = false;
69
+
70
+ var _s, _e;
71
+
72
+ try {
73
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
74
+ _arr.push(_s.value);
75
+
76
+ if (i && _arr.length === i) break;
77
+ }
78
+ } catch (err) {
79
+ _d = true;
80
+ _e = err;
81
+ } finally {
82
+ try {
83
+ if (!_n && _i["return"] != null) _i["return"]();
84
+ } finally {
85
+ if (_d) throw _e;
86
+ }
87
+ }
88
+
89
+ return _arr;
90
+ }
91
+
92
+ function _unsupportedIterableToArray(o, minLen) {
93
+ if (!o) return;
94
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
95
+ var n = Object.prototype.toString.call(o).slice(8, -1);
96
+ if (n === "Object" && o.constructor) n = o.constructor.name;
97
+ if (n === "Map" || n === "Set") return Array.from(o);
98
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
99
+ }
100
+
101
+ function _arrayLikeToArray(arr, len) {
102
+ if (len == null || len > arr.length) len = arr.length;
103
+
104
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
105
+
106
+ return arr2;
107
+ }
108
+
109
+ function _nonIterableRest() {
110
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
111
+ }var script = {
112
+ name: 'Pivot',
113
+ // vue component name
32
114
  props: {
33
115
  afterchartdraw: Function,
34
116
  aftergriddraw: Function,
@@ -82,16 +164,14 @@ var script = {
82
164
  accessibility: Object
83
165
  },
84
166
  mounted: function mounted() {
85
- this.flexmonster = new Flexmonster(Object.assign({}, this.$props, {
167
+ this.flexmonster = new Flexmonster__default["default"](_objectSpread2(_objectSpread2({}, this.$props), {}, {
86
168
  container: this.$el
87
169
  }));
88
170
  },
89
171
  beforeUpdate: function beforeUpdate() {
90
172
  return false;
91
173
  }
92
- };
93
-
94
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
174
+ };function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
95
175
  if (typeof shadowMode !== 'boolean') {
96
176
  createInjectorSSR = createInjector;
97
177
  createInjector = shadowMode;
@@ -164,9 +244,7 @@ function normalizeComponent(template, style, script, scopeId, isFunctionalTempla
164
244
  }
165
245
  }
166
246
  return script;
167
- }
168
-
169
- /* script */
247
+ }/* script */
170
248
  var __vue_script__ = script;
171
249
  /* template */
172
250
 
@@ -177,7 +255,7 @@ var __vue_render__ = function __vue_render__() {
177
255
 
178
256
  var _c = _vm._self._c || _h;
179
257
 
180
- return _c('div', [_vm._v("Pivot")]);
258
+ return _c('div', [_vm._ssrNode("Pivot")]);
181
259
  };
182
260
 
183
261
  var __vue_staticRenderFns__ = [];
@@ -186,10 +264,10 @@ var __vue_staticRenderFns__ = [];
186
264
  var __vue_inject_styles__ = undefined;
187
265
  /* scoped */
188
266
 
189
- var __vue_scope_id__ = "data-v-15baf9ca";
267
+ var __vue_scope_id__ = "data-v-243d77ce";
190
268
  /* module identifier */
191
269
 
192
- var __vue_module_identifier__ = undefined;
270
+ var __vue_module_identifier__ = "data-v-243d77ce";
193
271
  /* functional template */
194
272
 
195
273
  var __vue_is_functional_template__ = false;
@@ -199,19 +277,34 @@ var __vue_is_functional_template__ = false;
199
277
 
200
278
  /* style inject shadow dom */
201
279
 
202
- var __vue_component__ = normalizeComponent({
280
+ var __vue_component__ = /*#__PURE__*/normalizeComponent({
203
281
  render: __vue_render__,
204
282
  staticRenderFns: __vue_staticRenderFns__
205
283
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
206
284
 
207
- function install(Vue) {
208
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
209
- Vue.component(options.PivotName || 'Pivot', __vue_component__);
210
- } //Allows user to use Pivot as a plugin
285
+ var component$1 = __vue_component__;// Import vue component
286
+ // IIFE injects install function into component, allowing component
287
+ // to be registered via Vue.use() as well as Vue.component(),
288
+
289
+ var component = /*#__PURE__*/(function () {
290
+ // Get component instance
291
+ var installable = component$1; // Attach install function executed by Vue.use()
292
+
293
+ installable.install = function (Vue) {
294
+ Vue.component('Pivot', installable);
295
+ };
296
+
297
+ return installable;
298
+ })(); // It's possible to expose named exports when writing components that can
299
+ // also be used as directives, etc. - eg. import { RollupDemoDirective } from 'rollup-demo';
300
+ // export const RollupDemoDirective = directive;
301
+ var namedExports=/*#__PURE__*/Object.freeze({__proto__:null,'default':component});// only expose one global var, with named exports exposed as properties of
302
+ // that global var (eg. plugin.namedExport)
211
303
 
212
- if ((typeof window === "undefined" ? "undefined" : _typeof(window)) != undefined && window.Vue && window.Vue == Vue) {
213
- install(window.Vue);
214
- } //Allows user to register Pivot locally, without global registration
304
+ Object.entries(namedExports).forEach(function (_ref) {
305
+ var _ref2 = _slicedToArray(_ref, 2),
306
+ exportName = _ref2[0],
307
+ exported = _ref2[1];
215
308
 
216
- exports.Pivot = __vue_component__;
217
- exports.default = install;
309
+ if (exportName !== 'default') component[exportName] = exported;
310
+ });module.exports=component;
package/dist/index.min.js CHANGED
@@ -1,7 +1 @@
1
- /*!
2
- * vue-flexmonster v2.9.11
3
- * (c) Flexmonster <help@flexmonster.com>
4
- * Released under the MIT License.
5
- */
6
- "use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var Vue=_interopDefault(require("vue")),Flexmonster=_interopDefault(require("flexmonster"));function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var script={name:"Pivot",props:{afterchartdraw:Function,aftergriddraw:Function,beforegriddraw:Function,beforetoolbarcreated:Function,cellclick:Function,celldoubleclick:Function,componentFolder:String,customizeAPIRequest:Function,customizeCell:Function,customizeChartElement:Function,customizeContextMenu:Function,datachanged:Function,dataerror:Function,datafilecancelled:Function,dataloaded:Function,drillthroughclose:Function,drillthroughopen:Function,fieldslistclose:Function,fieldslistopen:Function,filterclose:Function,filteropen:Function,fullscreen:Function,global:Object,height:[String,Number],licenseKey:String,licenseFilePath:String,loadingdata:Function,loadinglocalization:Function,loadingolapstructure:Function,loadingreportfile:Function,localizationerror:Function,localizationloaded:Function,olapstructureerror:Function,olapstructureloaded:Function,openingreportfile:Function,querycomplete:Function,queryerror:Function,ready:Function,report:[String,Object],reportchange:Function,reportcomplete:Function,reportfilecancelled:Function,reportfileerror:Function,reportfileloaded:Function,runningquery:Function,toolbar:Boolean,unauthorizederror:Function,update:Function,width:[Number,String],accessibility:Object},mounted:function(){this.flexmonster=new Flexmonster(Object.assign({},this.$props,{container:this.$el}))},beforeUpdate:function(){return!1}};function normalizeComponent(e,n,t,o,i,r,c,u,_,l){"boolean"!=typeof c&&(_=u,u=c,c=!1);const a="function"==typeof t?t.options:t;let s;if(e&&e.render&&(a.render=e.render,a.staticRenderFns=e.staticRenderFns,a._compiled=!0,i&&(a.functional=!0)),o&&(a._scopeId=o),r?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,_(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},a._ssrRegister=s):n&&(s=c?function(e){n.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){n.call(this,u(e))}),s)if(a.functional){const e=a.render;a.render=function(n,t){return s.call(t),e(n,t)}}else{const e=a.beforeCreate;a.beforeCreate=e?[].concat(e,s):[s]}return t}var __vue_script__=script,__vue_render__=function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("Pivot")])},__vue_staticRenderFns__=[],__vue_inject_styles__=void 0,__vue_scope_id__="data-v-15baf9ca",__vue_module_identifier__=void 0,__vue_is_functional_template__=!1,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__,__vue_module_identifier__,!1,void 0,void 0,void 0);function install(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(n.PivotName||"Pivot",__vue_component__)}null!=("undefined"==typeof window?"undefined":_typeof(window))&&window.Vue&&window.Vue==Vue&&install(window.Vue),exports.Pivot=__vue_component__,exports.default=install;
7
- //# sourceMappingURL=index.min.js.map
1
+ var Pivot=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(flexmonster);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,u=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e,n,r,o,i,c,u,l,a){"boolean"!=typeof c&&(l=u,u=c,c=!1);const s="function"==typeof n?n.options:n;let f;if(t&&t.render&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0,o&&(s.functional=!0)),r&&(s._scopeId=r),i?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},s._ssrRegister=f):e&&(f=c?function(t){e.call(this,a(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,u(t))}),f)if(s.functional){const t=s.render;s.render=function(e,n){return f.call(n),t(e,n)}}else{const t=s.beforeCreate;s.beforeCreate=t?[].concat(t,f):[f]}return n}var a=l({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._v("Pivot")])},staticRenderFns:[]},undefined,{name:"Pivot",props:{afterchartdraw:Function,aftergriddraw:Function,beforegriddraw:Function,beforetoolbarcreated:Function,cellclick:Function,celldoubleclick:Function,componentFolder:String,customizeAPIRequest:Function,customizeCell:Function,customizeChartElement:Function,customizeContextMenu:Function,datachanged:Function,dataerror:Function,datafilecancelled:Function,dataloaded:Function,drillthroughclose:Function,drillthroughopen:Function,fieldslistclose:Function,fieldslistopen:Function,filterclose:Function,filteropen:Function,fullscreen:Function,global:Object,height:[String,Number],licenseKey:String,licenseFilePath:String,loadingdata:Function,loadinglocalization:Function,loadingolapstructure:Function,loadingreportfile:Function,localizationerror:Function,localizationloaded:Function,olapstructureerror:Function,olapstructureloaded:Function,openingreportfile:Function,querycomplete:Function,queryerror:Function,ready:Function,report:[String,Object],reportchange:Function,reportcomplete:Function,reportfilecancelled:Function,reportfileerror:Function,reportfileloaded:Function,runningquery:Function,toolbar:Boolean,unauthorizederror:Function,update:Function,width:[Number,String],accessibility:Object},mounted:function(){this.flexmonster=new n.default(o(o({},this.$props),{},{container:this.$el}))},beforeUpdate:function(){return!1}},"data-v-243d77ce",false,undefined,!1,void 0,void 0,void 0),s=function(){var t=a;return t.install=function(e){e.component("Pivot",t)},t}(),f=Object.freeze({__proto__:null,default:s});return Object.entries(f).forEach((function(t){var e=c(t,2),n=e[0],r=e[1];"default"!==n&&(s[n]=r)})),s}();
package/package.json CHANGED
@@ -1,48 +1,64 @@
1
1
  {
2
2
  "name": "vue-flexmonster",
3
- "version": "2.9.12-beta.1",
4
- "description": "VueJS Module for Flexmonster Pivot Table & Charts",
5
- "main": "dist/pivot.ssr.js",
6
- "browser": "dist/pivot.esm.js",
7
- "module": "dist/pivot.esm.js",
8
- "unpkg": "dist/pivot.min.js",
3
+ "version": "2.9.13",
4
+ "license": "MIT",
5
+ "description": "Vue 2 and Vue 3 Module for Flexmonster Pivot Table & Charts",
6
+ "main": "dist/index.js",
7
+ "browser": "dist/index.esm.js",
8
+ "module": "dist/index.esm.js",
9
+ "unpkg": "dist/index.min.js",
9
10
  "files": [
10
11
  "dist/*",
11
12
  "vue3/*"
12
13
  ],
14
+ "sideEffects": false,
13
15
  "scripts": {
14
- "dev": "vue serve Pivot.vue",
15
- "build": "bili --bundle-node-modules"
16
+ "serve": "vue-cli-service serve dev/serve.js",
17
+ "prebuild": "rimraf ./dist && rimraf ./vue3",
18
+ "build": "npm run build:vue2 && npm run build:vue3",
19
+ "build:vue3": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
20
+ "build:vue3:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
21
+ "build:vue3:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
22
+ "build:vue3:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife",
23
+ "build:vue2": "cross-env NODE_ENV=production rollup --config build/rollup2.config.js",
24
+ "build:vue2:ssr": "cross-env NODE_ENV=production rollup --config build/rollup2.config.js --format cjs",
25
+ "build:vue2:es": "cross-env NODE_ENV=production rollup --config build/rollup2.config.js --format es",
26
+ "build:vue2:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup2.config.js --format iife"
16
27
  },
17
- "author": {
18
- "name": "Flexmonster",
19
- "email": "help@flexmonster.com"
28
+ "dependencies": {
29
+ "flexmonster": "2.9.13"
20
30
  },
21
- "license": "MIT",
22
31
  "devDependencies": {
23
- "bili": "^4.8.1",
24
- "rollup-plugin-vue": "=5.1.1",
25
- "vue-template-compiler": "^2.6.10"
26
- },
27
- "eslintConfig": {
28
- "root": true,
29
- "env": {
30
- "node": true
31
- },
32
- "extends": [
33
- "plugin:vue/essential",
34
- "eslint:recommended"
35
- ],
36
- "rules": {},
37
- "parserOptions": {
38
- "parser": "babel-eslint"
39
- }
32
+ "@babel/core": "^7.14.6",
33
+ "@babel/preset-env": "^7.14.7",
34
+ "@rollup/plugin-alias": "^3.1.2",
35
+ "@rollup/plugin-babel": "^5.3.0",
36
+ "@rollup/plugin-commonjs": "^14.0.0",
37
+ "@rollup/plugin-node-resolve": "^9.0.0",
38
+ "@rollup/plugin-replace": "^2.4.2",
39
+ "@vue/cli-plugin-babel": "^4.5.13",
40
+ "@vue/cli-service": "^4.5.13",
41
+ "@vue/compiler-sfc": "^3.0.11",
42
+ "cross-env": "^7.0.3",
43
+ "minimist": "^1.2.5",
44
+ "postcss": "^8.2.10",
45
+ "rimraf": "^3.0.2",
46
+ "rollup": "^2.52.8",
47
+ "rollup-plugin-postcss": "^4.0.0",
48
+ "rollup-plugin-terser": "^7.0.2",
49
+ "rollup-plugin-vue": "^6.0.0",
50
+ "rollup-plugin-vue2": "npm:rollup-plugin-vue@^5.1.9",
51
+ "vue-template-compiler": "^2.6.14"
40
52
  },
41
53
  "peerDependencies": {
42
- "flexmonster": "2.9.11"
54
+ "flexmonster": "2.9.13"
43
55
  },
44
- "dependencies": {
45
- "flexmonster": "2.9.11"
56
+ "engines": {
57
+ "node": ">=12"
58
+ },
59
+ "author": {
60
+ "name": "Flexmonster",
61
+ "email": "help@flexmonster.com"
46
62
  },
47
63
  "keywords": [
48
64
  "pivot",
@@ -52,14 +68,16 @@
52
68
  "pivottable",
53
69
  "pivotgrid",
54
70
  "pivotchart",
55
- "vue"
71
+ "vue",
72
+ "vue3",
73
+ "vue2"
56
74
  ],
57
75
  "repository": {
58
76
  "type": "git",
59
77
  "url": "https://github.com/flexmonster/vue-flexmonster"
60
78
  },
61
79
  "bugs": {
62
- "url": "https://flexmonster.com/forum/"
80
+ "url": "https://www.flexmonster.com/technical-support/"
63
81
  },
64
82
  "homepage": "https://flexmonster.com/"
65
83
  }
@@ -103,7 +103,7 @@ var css_248z = "\n@import \"~flexmonster/flexmonster.min.css\";\r\n";
103
103
  styleInject(css_248z);
104
104
 
105
105
  script.render = render;
106
- script.__scopeId = "data-v-375f1cc8";
106
+ script.__scopeId = "data-v-53a0d246";
107
107
 
108
108
  // Import vue component
109
109
  // IIFE injects install function into component, allowing component
@@ -200,7 +200,7 @@ function _nonIterableRest() {
200
200
  }
201
201
  }var css_248z = "\n@import \"~flexmonster/flexmonster.min.css\";\r\n";
202
202
  styleInject(css_248z);script.render = render;
203
- script.__scopeId = "data-v-375f1cc8";// Import vue component
203
+ script.__scopeId = "data-v-53a0d246";// Import vue component
204
204
  // IIFE injects install function into component, allowing component
205
205
  // to be registered via Vue.use() as well as Vue.component(),
206
206
 
@@ -1 +1 @@
1
- var Pivot=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(flexmonster);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,u=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=e.defineComponent({name:"Pivot",props:{afterchartdraw:Function,aftergriddraw:Function,beforegriddraw:Function,beforetoolbarcreated:Function,cellclick:Function,celldoubleclick:Function,componentFolder:String,customizeAPIRequest:Function,customizeCell:Function,customizeChartElement:Function,customizeContextMenu:Function,datachanged:Function,dataerror:Function,datafilecancelled:Function,dataloaded:Function,drillthroughclose:Function,drillthroughopen:Function,fieldslistclose:Function,fieldslistopen:Function,filterclose:Function,filteropen:Function,fullscreen:Function,global:Object,height:[String,Number],licenseKey:String,licenseFilePath:String,loadingdata:Function,loadinglocalization:Function,loadingolapstructure:Function,loadingreportfile:Function,localizationerror:Function,localizationloaded:Function,olapstructureerror:Function,olapstructureloaded:Function,openingreportfile:Function,querycomplete:Function,queryerror:Function,ready:Function,report:[String,Object],reportchange:Function,reportcomplete:Function,reportfilecancelled:Function,reportfileerror:Function,reportfileloaded:Function,runningquery:Function,toolbar:Boolean,unauthorizederror:Function,update:Function,width:[Number,String],accessibility:Object},mounted:function(){this.flexmonster=new r.default(i(i({},this.$props),{},{container:this.$el}))},beforeUpdate:function(){return!1}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('\n@import "~flexmonster/flexmonster.min.css";\r\n'),a.render=function(t,n,r,o,i,c){return e.openBlock(),e.createElementBlock("div",null,"Pivot")},a.__scopeId="data-v-375f1cc8";var f=function(){var e=a;return e.install=function(t){t.component("Pivot",e)},e}(),d=Object.freeze({__proto__:null,default:f});return Object.entries(d).forEach((function(e){var t=u(e,2),n=t[0],r=t[1];"default"!==n&&(f[n]=r)})),f}(Vue);
1
+ var Pivot=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(flexmonster);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,u=!1;try{for(n=n.call(e);!(c=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{c||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=e.defineComponent({name:"Pivot",props:{afterchartdraw:Function,aftergriddraw:Function,beforegriddraw:Function,beforetoolbarcreated:Function,cellclick:Function,celldoubleclick:Function,componentFolder:String,customizeAPIRequest:Function,customizeCell:Function,customizeChartElement:Function,customizeContextMenu:Function,datachanged:Function,dataerror:Function,datafilecancelled:Function,dataloaded:Function,drillthroughclose:Function,drillthroughopen:Function,fieldslistclose:Function,fieldslistopen:Function,filterclose:Function,filteropen:Function,fullscreen:Function,global:Object,height:[String,Number],licenseKey:String,licenseFilePath:String,loadingdata:Function,loadinglocalization:Function,loadingolapstructure:Function,loadingreportfile:Function,localizationerror:Function,localizationloaded:Function,olapstructureerror:Function,olapstructureloaded:Function,openingreportfile:Function,querycomplete:Function,queryerror:Function,ready:Function,report:[String,Object],reportchange:Function,reportcomplete:Function,reportfilecancelled:Function,reportfileerror:Function,reportfileloaded:Function,runningquery:Function,toolbar:Boolean,unauthorizederror:Function,update:Function,width:[Number,String],accessibility:Object},mounted:function(){this.flexmonster=new r.default(i(i({},this.$props),{},{container:this.$el}))},beforeUpdate:function(){return!1}});!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('\n@import "~flexmonster/flexmonster.min.css";\r\n'),a.render=function(t,n,r,o,i,c){return e.openBlock(),e.createElementBlock("div",null,"Pivot")},a.__scopeId="data-v-53a0d246";var f=function(){var e=a;return e.install=function(t){t.component("Pivot",e)},e}(),d=Object.freeze({__proto__:null,default:f});return Object.entries(d).forEach((function(e){var t=u(e,2),n=t[0],r=t[1];"default"!==n&&(f[n]=r)})),f}(Vue);