@wg-npm/survey-analyzer 0.5.734 → 0.6.216

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.
@@ -1,4 +1,5 @@
1
1
  import Vue from 'vue';
2
+ import Component$2, { createDecorator } from 'vue-class-component';
2
3
 
3
4
  /******************************************************************************
4
5
  Copyright (c) Microsoft Corporation.
@@ -31,277 +32,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
31
32
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
32
33
  };
33
34
 
34
- /**
35
- * vue-class-component v7.2.6
36
- * (c) 2015-present Evan You
37
- * @license MIT
38
- */
39
- function _typeof(obj) {
40
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
41
- _typeof = function (obj) {
42
- return typeof obj;
43
- };
44
- } else {
45
- _typeof = function (obj) {
46
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
47
- };
48
- }
49
- return _typeof(obj);
50
- }
51
- function _defineProperty(obj, key, value) {
52
- if (key in obj) {
53
- Object.defineProperty(obj, key, {
54
- value: value,
55
- enumerable: true,
56
- configurable: true,
57
- writable: true
58
- });
59
- } else {
60
- obj[key] = value;
61
- }
62
- return obj;
63
- }
64
- function _toConsumableArray(arr) {
65
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
66
- }
67
- function _arrayWithoutHoles(arr) {
68
- if (Array.isArray(arr)) {
69
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
70
- return arr2;
71
- }
72
- }
73
- function _iterableToArray(iter) {
74
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
75
- }
76
- function _nonIterableSpread() {
77
- throw new TypeError("Invalid attempt to spread non-iterable instance");
78
- }
79
-
80
- // The rational behind the verbose Reflect-feature check below is the fact that there are polyfills
81
- // which add an implementation for Reflect.defineMetadata but not for Reflect.getOwnMetadataKeys.
82
- // Without this check consumers will encounter hard to track down runtime errors.
83
- function reflectionIsSupported() {
84
- return typeof Reflect !== 'undefined' && Reflect.defineMetadata && Reflect.getOwnMetadataKeys;
85
- }
86
- function copyReflectionMetadata(to, from) {
87
- forwardMetadata(to, from);
88
- Object.getOwnPropertyNames(from.prototype).forEach(function (key) {
89
- forwardMetadata(to.prototype, from.prototype, key);
90
- });
91
- Object.getOwnPropertyNames(from).forEach(function (key) {
92
- forwardMetadata(to, from, key);
93
- });
94
- }
95
- function forwardMetadata(to, from, propertyKey) {
96
- var metaKeys = propertyKey ? Reflect.getOwnMetadataKeys(from, propertyKey) : Reflect.getOwnMetadataKeys(from);
97
- metaKeys.forEach(function (metaKey) {
98
- var metadata = propertyKey ? Reflect.getOwnMetadata(metaKey, from, propertyKey) : Reflect.getOwnMetadata(metaKey, from);
99
- if (propertyKey) {
100
- Reflect.defineMetadata(metaKey, metadata, to, propertyKey);
101
- } else {
102
- Reflect.defineMetadata(metaKey, metadata, to);
103
- }
104
- });
105
- }
106
- var fakeArray = {
107
- __proto__: []
108
- };
109
- var hasProto = fakeArray instanceof Array;
110
- function createDecorator(factory) {
111
- return function (target, key, index) {
112
- var Ctor = typeof target === 'function' ? target : target.constructor;
113
- if (!Ctor.__decorators__) {
114
- Ctor.__decorators__ = [];
115
- }
116
- if (typeof index !== 'number') {
117
- index = undefined;
118
- }
119
- Ctor.__decorators__.push(function (options) {
120
- return factory(options, key, index);
121
- });
122
- };
123
- }
124
- function isPrimitive$1(value) {
125
- var type = _typeof(value);
126
- return value == null || type !== 'object' && type !== 'function';
127
- }
128
- function warn(message) {
129
- if (typeof console !== 'undefined') {
130
- console.warn('[vue-class-component] ' + message);
131
- }
132
- }
133
- function collectDataFromConstructor(vm, Component) {
134
- // override _init to prevent to init as Vue instance
135
- var originalInit = Component.prototype._init;
136
- Component.prototype._init = function () {
137
- var _this = this;
138
-
139
- // proxy to actual vm
140
- var keys = Object.getOwnPropertyNames(vm); // 2.2.0 compat (props are no longer exposed as self properties)
141
-
142
- if (vm.$options.props) {
143
- for (var key in vm.$options.props) {
144
- if (!vm.hasOwnProperty(key)) {
145
- keys.push(key);
146
- }
147
- }
148
- }
149
- keys.forEach(function (key) {
150
- Object.defineProperty(_this, key, {
151
- get: function get() {
152
- return vm[key];
153
- },
154
- set: function set(value) {
155
- vm[key] = value;
156
- },
157
- configurable: true
158
- });
159
- });
160
- }; // should be acquired class property values
161
-
162
- var data = new Component(); // restore original _init to avoid memory leak (#209)
163
-
164
- Component.prototype._init = originalInit; // create plain data object
165
-
166
- var plainData = {};
167
- Object.keys(data).forEach(function (key) {
168
- if (data[key] !== undefined) {
169
- plainData[key] = data[key];
170
- }
171
- });
172
- if (process.env.NODE_ENV !== 'production') {
173
- if (!(Component.prototype instanceof Vue) && Object.keys(plainData).length > 0) {
174
- warn('Component class must inherit Vue or its descendant class ' + 'when class property is used.');
175
- }
176
- }
177
- return plainData;
178
- }
179
- var $internalHooks = ['data', 'beforeCreate', 'created', 'beforeMount', 'mounted', 'beforeDestroy', 'destroyed', 'beforeUpdate', 'updated', 'activated', 'deactivated', 'render', 'errorCaptured', 'serverPrefetch' // 2.6
180
- ];
181
- function componentFactory(Component) {
182
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
183
- options.name = options.name || Component._componentTag || Component.name; // prototype props.
184
-
185
- var proto = Component.prototype;
186
- Object.getOwnPropertyNames(proto).forEach(function (key) {
187
- if (key === 'constructor') {
188
- return;
189
- } // hooks
190
-
191
- if ($internalHooks.indexOf(key) > -1) {
192
- options[key] = proto[key];
193
- return;
194
- }
195
- var descriptor = Object.getOwnPropertyDescriptor(proto, key);
196
- if (descriptor.value !== void 0) {
197
- // methods
198
- if (typeof descriptor.value === 'function') {
199
- (options.methods || (options.methods = {}))[key] = descriptor.value;
200
- } else {
201
- // typescript decorated data
202
- (options.mixins || (options.mixins = [])).push({
203
- data: function data() {
204
- return _defineProperty({}, key, descriptor.value);
205
- }
206
- });
207
- }
208
- } else if (descriptor.get || descriptor.set) {
209
- // computed properties
210
- (options.computed || (options.computed = {}))[key] = {
211
- get: descriptor.get,
212
- set: descriptor.set
213
- };
214
- }
215
- });
216
- (options.mixins || (options.mixins = [])).push({
217
- data: function data() {
218
- return collectDataFromConstructor(this, Component);
219
- }
220
- }); // decorate options
221
-
222
- var decorators = Component.__decorators__;
223
- if (decorators) {
224
- decorators.forEach(function (fn) {
225
- return fn(options);
226
- });
227
- delete Component.__decorators__;
228
- } // find super
229
-
230
- var superProto = Object.getPrototypeOf(Component.prototype);
231
- var Super = superProto instanceof Vue ? superProto.constructor : Vue;
232
- var Extended = Super.extend(options);
233
- forwardStaticMembers(Extended, Component, Super);
234
- if (reflectionIsSupported()) {
235
- copyReflectionMetadata(Extended, Component);
236
- }
237
- return Extended;
238
- }
239
- var reservedPropertyNames = [
240
- // Unique id
241
- 'cid',
242
- // Super Vue constructor
243
- 'super',
244
- // Component options that will be used by the component
245
- 'options', 'superOptions', 'extendOptions', 'sealedOptions',
246
- // Private assets
247
- 'component', 'directive', 'filter'];
248
- var shouldIgnore = {
249
- prototype: true,
250
- arguments: true,
251
- callee: true,
252
- caller: true
253
- };
254
- function forwardStaticMembers(Extended, Original, Super) {
255
- // We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
256
- Object.getOwnPropertyNames(Original).forEach(function (key) {
257
- // Skip the properties that should not be overwritten
258
- if (shouldIgnore[key]) {
259
- return;
260
- } // Some browsers does not allow reconfigure built-in properties
261
-
262
- var extendedDescriptor = Object.getOwnPropertyDescriptor(Extended, key);
263
- if (extendedDescriptor && !extendedDescriptor.configurable) {
264
- return;
265
- }
266
- var descriptor = Object.getOwnPropertyDescriptor(Original, key); // If the user agent does not support `__proto__` or its family (IE <= 10),
267
- // the sub class properties may be inherited properties from the super class in TypeScript.
268
- // We need to exclude such properties to prevent to overwrite
269
- // the component options object which stored on the extended constructor (See #192).
270
- // If the value is a referenced value (object or function),
271
- // we can check equality of them and exclude it if they have the same reference.
272
- // If it is a primitive value, it will be forwarded for safety.
273
-
274
- if (!hasProto) {
275
- // Only `cid` is explicitly exluded from property forwarding
276
- // because we cannot detect whether it is a inherited property or not
277
- // on the no `__proto__` environment even though the property is reserved.
278
- if (key === 'cid') {
279
- return;
280
- }
281
- var superDescriptor = Object.getOwnPropertyDescriptor(Super, key);
282
- if (!isPrimitive$1(descriptor.value) && superDescriptor && superDescriptor.value === descriptor.value) {
283
- return;
284
- }
285
- } // Warn if the users manually declare reserved properties
286
-
287
- if (process.env.NODE_ENV !== 'production' && reservedPropertyNames.indexOf(key) >= 0) {
288
- warn("Static property name '".concat(key, "' declared on class '").concat(Original.name, "' ") + 'conflicts with reserved property name of Vue internal. ' + 'It may cause unexpected behavior of the component. Consider renaming the property.');
289
- }
290
- Object.defineProperty(Extended, key, descriptor);
291
- });
292
- }
293
- function Component$2(options) {
294
- if (typeof options === 'function') {
295
- return componentFactory(options);
296
- }
297
- return function (Component) {
298
- return componentFactory(Component, options);
299
- };
300
- }
301
- Component$2.registerHooks = function registerHooks(keys) {
302
- $internalHooks.push.apply($internalHooks, _toConsumableArray(keys));
303
- };
304
-
305
35
  (undefined && undefined.__spreadArrays) || function () {
306
36
  for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
307
37
  for (var r = Array(s), k = 0, i = 0; i < il; i++)
@@ -38982,9 +38712,9 @@ function baseTrim(string) {
38982
38712
  var _baseTrim = baseTrim;
38983
38713
 
38984
38714
  /** Built-in value references. */
38985
- var Symbol$1 = _root.Symbol;
38715
+ var Symbol = _root.Symbol;
38986
38716
 
38987
- var _Symbol = Symbol$1;
38717
+ var _Symbol = Symbol;
38988
38718
 
38989
38719
  /** Used for built-in method references. */
38990
38720
  var objectProto$1 = Object.prototype;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wg-npm/survey-analyzer",
3
- "version": "0.5.734",
3
+ "version": "0.6.216",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -11,8 +11,8 @@
11
11
  "lint-fix": "eslint \"**/*.ts\" \"**/*.vue\" --fix --no-error-on-unmatched-pattern"
12
12
  },
13
13
  "peerDependencies": {
14
- "@wg-npm/survey-core": "0.5.734",
15
- "@wg-npm/survey-service-api": "0.5.734",
14
+ "@wg-npm/survey-core": "0.6.216",
15
+ "@wg-npm/survey-service-api": "0.6.216",
16
16
  "echarts": "^4.8.0",
17
17
  "vue": "^2.6.11",
18
18
  "vue-echarts": "^4.0.3"
@@ -28,8 +28,8 @@
28
28
  "@typescript-eslint/parser": "^3.6.0",
29
29
  "@vue/eslint-config-prettier": "^6.0.0",
30
30
  "@vue/eslint-config-typescript": "^5.0.2",
31
- "@wg-npm/survey-core": "0.5.734",
32
- "@wg-npm/survey-service-api": "0.5.734",
31
+ "@wg-npm/survey-core": "0.6.216",
32
+ "@wg-npm/survey-service-api": "0.6.216",
33
33
  "acorn": "^7.3.1",
34
34
  "echarts": "^4.8.0",
35
35
  "eslint": "^7.4.0",
@@ -61,7 +61,7 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "1a7bfa8ef1611380ab786a53939c3f3d4fd4807f",
64
+ "gitHead": "a1830f73b7c481bc7cb041e900b9360aabb9c99b",
65
65
  "rollup": {
66
66
  "external": [
67
67
  "vue",