zhyp-vue2-common-ui 0.1.0 → 0.3.0
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/README.md +4 -4
- package/lib/zhyp-vue2-common-ui.common.js +473 -3
- package/lib/zhyp-vue2-common-ui.common.js.map +1 -0
- package/lib/zhyp-vue2-common-ui.css +1 -1
- package/lib/zhyp-vue2-common-ui.umd.js +473 -3
- package/lib/zhyp-vue2-common-ui.umd.js.map +1 -0
- package/lib/zhyp-vue2-common-ui.umd.min.js +1 -1
- package/lib/zhyp-vue2-common-ui.umd.min.js.map +1 -0
- package/package.json +6 -1
- package/packages/battery-charging/index.js +7 -0
- package/packages/battery-charging/src/index.vue +126 -0
- package/packages/button/index.js +9 -0
- package/packages/button/src/button.vue +60 -0
- package/packages/index.js +26 -0
- package/.prettierrc.json +0 -4
- package/src/utils/common.js +0 -16
|
@@ -171,6 +171,16 @@ module.exports = !DESCRIPTORS && !fails(function () {
|
|
|
171
171
|
});
|
|
172
172
|
|
|
173
173
|
|
|
174
|
+
/***/ }),
|
|
175
|
+
|
|
176
|
+
/***/ "1be4":
|
|
177
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
178
|
+
|
|
179
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
180
|
+
|
|
181
|
+
module.exports = getBuiltIn('document', 'documentElement');
|
|
182
|
+
|
|
183
|
+
|
|
174
184
|
/***/ }),
|
|
175
185
|
|
|
176
186
|
/***/ "1c0b":
|
|
@@ -357,6 +367,44 @@ var getBuiltIn = __webpack_require__("d066");
|
|
|
357
367
|
module.exports = getBuiltIn('navigator', 'userAgent') || '';
|
|
358
368
|
|
|
359
369
|
|
|
370
|
+
/***/ }),
|
|
371
|
+
|
|
372
|
+
/***/ "37e8":
|
|
373
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
374
|
+
|
|
375
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
376
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
377
|
+
var anObject = __webpack_require__("825a");
|
|
378
|
+
var objectKeys = __webpack_require__("df75");
|
|
379
|
+
|
|
380
|
+
// `Object.defineProperties` method
|
|
381
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
382
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
383
|
+
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
384
|
+
anObject(O);
|
|
385
|
+
var keys = objectKeys(Properties);
|
|
386
|
+
var length = keys.length;
|
|
387
|
+
var index = 0;
|
|
388
|
+
var key;
|
|
389
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
|
390
|
+
return O;
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
/***/ }),
|
|
395
|
+
|
|
396
|
+
/***/ "3bbe":
|
|
397
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
398
|
+
|
|
399
|
+
var isObject = __webpack_require__("861d");
|
|
400
|
+
|
|
401
|
+
module.exports = function (it) {
|
|
402
|
+
if (!isObject(it) && it !== null) {
|
|
403
|
+
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
|
404
|
+
} return it;
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
|
|
360
408
|
/***/ }),
|
|
361
409
|
|
|
362
410
|
/***/ "428f":
|
|
@@ -508,6 +556,51 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
508
556
|
};
|
|
509
557
|
|
|
510
558
|
|
|
559
|
+
/***/ }),
|
|
560
|
+
|
|
561
|
+
/***/ "5899":
|
|
562
|
+
/***/ (function(module, exports) {
|
|
563
|
+
|
|
564
|
+
// a string of all valid unicode whitespaces
|
|
565
|
+
module.exports = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
566
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
/***/ }),
|
|
570
|
+
|
|
571
|
+
/***/ "58a8":
|
|
572
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
573
|
+
|
|
574
|
+
var requireObjectCoercible = __webpack_require__("1d80");
|
|
575
|
+
var whitespaces = __webpack_require__("5899");
|
|
576
|
+
|
|
577
|
+
var whitespace = '[' + whitespaces + ']';
|
|
578
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
579
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
580
|
+
|
|
581
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
582
|
+
var createMethod = function (TYPE) {
|
|
583
|
+
return function ($this) {
|
|
584
|
+
var string = String(requireObjectCoercible($this));
|
|
585
|
+
if (TYPE & 1) string = string.replace(ltrim, '');
|
|
586
|
+
if (TYPE & 2) string = string.replace(rtrim, '');
|
|
587
|
+
return string;
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
module.exports = {
|
|
592
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
593
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
594
|
+
start: createMethod(1),
|
|
595
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
596
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
597
|
+
end: createMethod(2),
|
|
598
|
+
// `String.prototype.trim` method
|
|
599
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
600
|
+
trim: createMethod(3)
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
|
|
511
604
|
/***/ }),
|
|
512
605
|
|
|
513
606
|
/***/ "5c6c":
|
|
@@ -679,6 +772,30 @@ var TEMPLATE = String(String).split('String');
|
|
|
679
772
|
});
|
|
680
773
|
|
|
681
774
|
|
|
775
|
+
/***/ }),
|
|
776
|
+
|
|
777
|
+
/***/ "7156":
|
|
778
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
779
|
+
|
|
780
|
+
var isObject = __webpack_require__("861d");
|
|
781
|
+
var setPrototypeOf = __webpack_require__("d2bb");
|
|
782
|
+
|
|
783
|
+
// makes subclassing work correct for wrapped built-ins
|
|
784
|
+
module.exports = function ($this, dummy, Wrapper) {
|
|
785
|
+
var NewTarget, NewTargetPrototype;
|
|
786
|
+
if (
|
|
787
|
+
// it can work only with native `setPrototypeOf`
|
|
788
|
+
setPrototypeOf &&
|
|
789
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
790
|
+
typeof (NewTarget = dummy.constructor) == 'function' &&
|
|
791
|
+
NewTarget !== Wrapper &&
|
|
792
|
+
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
793
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
794
|
+
) setPrototypeOf($this, NewTargetPrototype);
|
|
795
|
+
return $this;
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
|
|
682
799
|
/***/ }),
|
|
683
800
|
|
|
684
801
|
/***/ "7418":
|
|
@@ -719,6 +836,91 @@ module.exports = function (argument) {
|
|
|
719
836
|
};
|
|
720
837
|
|
|
721
838
|
|
|
839
|
+
/***/ }),
|
|
840
|
+
|
|
841
|
+
/***/ "7c73":
|
|
842
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
843
|
+
|
|
844
|
+
var anObject = __webpack_require__("825a");
|
|
845
|
+
var defineProperties = __webpack_require__("37e8");
|
|
846
|
+
var enumBugKeys = __webpack_require__("7839");
|
|
847
|
+
var hiddenKeys = __webpack_require__("d012");
|
|
848
|
+
var html = __webpack_require__("1be4");
|
|
849
|
+
var documentCreateElement = __webpack_require__("cc12");
|
|
850
|
+
var sharedKey = __webpack_require__("f772");
|
|
851
|
+
|
|
852
|
+
var GT = '>';
|
|
853
|
+
var LT = '<';
|
|
854
|
+
var PROTOTYPE = 'prototype';
|
|
855
|
+
var SCRIPT = 'script';
|
|
856
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
857
|
+
|
|
858
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
859
|
+
|
|
860
|
+
var scriptTag = function (content) {
|
|
861
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
865
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
866
|
+
activeXDocument.write(scriptTag(''));
|
|
867
|
+
activeXDocument.close();
|
|
868
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
869
|
+
activeXDocument = null; // avoid memory leak
|
|
870
|
+
return temp;
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
874
|
+
var NullProtoObjectViaIFrame = function () {
|
|
875
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
876
|
+
var iframe = documentCreateElement('iframe');
|
|
877
|
+
var JS = 'java' + SCRIPT + ':';
|
|
878
|
+
var iframeDocument;
|
|
879
|
+
iframe.style.display = 'none';
|
|
880
|
+
html.appendChild(iframe);
|
|
881
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
882
|
+
iframe.src = String(JS);
|
|
883
|
+
iframeDocument = iframe.contentWindow.document;
|
|
884
|
+
iframeDocument.open();
|
|
885
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
886
|
+
iframeDocument.close();
|
|
887
|
+
return iframeDocument.F;
|
|
888
|
+
};
|
|
889
|
+
|
|
890
|
+
// Check for document.domain and active x support
|
|
891
|
+
// No need to use active x approach when document.domain is not set
|
|
892
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
893
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
894
|
+
// avoid IE GC bug
|
|
895
|
+
var activeXDocument;
|
|
896
|
+
var NullProtoObject = function () {
|
|
897
|
+
try {
|
|
898
|
+
/* global ActiveXObject -- old IE */
|
|
899
|
+
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
|
900
|
+
} catch (error) { /* ignore */ }
|
|
901
|
+
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
|
902
|
+
var length = enumBugKeys.length;
|
|
903
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
904
|
+
return NullProtoObject();
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
hiddenKeys[IE_PROTO] = true;
|
|
908
|
+
|
|
909
|
+
// `Object.create` method
|
|
910
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
911
|
+
module.exports = Object.create || function create(O, Properties) {
|
|
912
|
+
var result;
|
|
913
|
+
if (O !== null) {
|
|
914
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
|
915
|
+
result = new EmptyConstructor();
|
|
916
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
917
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
918
|
+
result[IE_PROTO] = O;
|
|
919
|
+
} else result = NullProtoObject();
|
|
920
|
+
return Properties === undefined ? result : defineProperties(result, Properties);
|
|
921
|
+
};
|
|
922
|
+
|
|
923
|
+
|
|
722
924
|
/***/ }),
|
|
723
925
|
|
|
724
926
|
/***/ "7f9a":
|
|
@@ -960,6 +1162,17 @@ exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attrib
|
|
|
960
1162
|
};
|
|
961
1163
|
|
|
962
1164
|
|
|
1165
|
+
/***/ }),
|
|
1166
|
+
|
|
1167
|
+
/***/ "9c14":
|
|
1168
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1169
|
+
|
|
1170
|
+
"use strict";
|
|
1171
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9f9e");
|
|
1172
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
1173
|
+
/* unused harmony reexport * */
|
|
1174
|
+
|
|
1175
|
+
|
|
963
1176
|
/***/ }),
|
|
964
1177
|
|
|
965
1178
|
/***/ "9d7d":
|
|
@@ -971,6 +1184,13 @@ exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attrib
|
|
|
971
1184
|
/* unused harmony reexport * */
|
|
972
1185
|
|
|
973
1186
|
|
|
1187
|
+
/***/ }),
|
|
1188
|
+
|
|
1189
|
+
/***/ "9f9e":
|
|
1190
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1191
|
+
|
|
1192
|
+
// extracted by mini-css-extract-plugin
|
|
1193
|
+
|
|
974
1194
|
/***/ }),
|
|
975
1195
|
|
|
976
1196
|
/***/ "a55b":
|
|
@@ -993,6 +1213,94 @@ module.exports = function (argument) {
|
|
|
993
1213
|
};
|
|
994
1214
|
|
|
995
1215
|
|
|
1216
|
+
/***/ }),
|
|
1217
|
+
|
|
1218
|
+
/***/ "a9e3":
|
|
1219
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1220
|
+
|
|
1221
|
+
"use strict";
|
|
1222
|
+
|
|
1223
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
1224
|
+
var global = __webpack_require__("da84");
|
|
1225
|
+
var isForced = __webpack_require__("94ca");
|
|
1226
|
+
var redefine = __webpack_require__("6eeb");
|
|
1227
|
+
var has = __webpack_require__("5135");
|
|
1228
|
+
var classof = __webpack_require__("c6b6");
|
|
1229
|
+
var inheritIfRequired = __webpack_require__("7156");
|
|
1230
|
+
var toPrimitive = __webpack_require__("c04e");
|
|
1231
|
+
var fails = __webpack_require__("d039");
|
|
1232
|
+
var create = __webpack_require__("7c73");
|
|
1233
|
+
var getOwnPropertyNames = __webpack_require__("241c").f;
|
|
1234
|
+
var getOwnPropertyDescriptor = __webpack_require__("06cf").f;
|
|
1235
|
+
var defineProperty = __webpack_require__("9bf2").f;
|
|
1236
|
+
var trim = __webpack_require__("58a8").trim;
|
|
1237
|
+
|
|
1238
|
+
var NUMBER = 'Number';
|
|
1239
|
+
var NativeNumber = global[NUMBER];
|
|
1240
|
+
var NumberPrototype = NativeNumber.prototype;
|
|
1241
|
+
|
|
1242
|
+
// Opera ~12 has broken Object#toString
|
|
1243
|
+
var BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;
|
|
1244
|
+
|
|
1245
|
+
// `ToNumber` abstract operation
|
|
1246
|
+
// https://tc39.es/ecma262/#sec-tonumber
|
|
1247
|
+
var toNumber = function (argument) {
|
|
1248
|
+
var it = toPrimitive(argument, false);
|
|
1249
|
+
var first, third, radix, maxCode, digits, length, index, code;
|
|
1250
|
+
if (typeof it == 'string' && it.length > 2) {
|
|
1251
|
+
it = trim(it);
|
|
1252
|
+
first = it.charCodeAt(0);
|
|
1253
|
+
if (first === 43 || first === 45) {
|
|
1254
|
+
third = it.charCodeAt(2);
|
|
1255
|
+
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
1256
|
+
} else if (first === 48) {
|
|
1257
|
+
switch (it.charCodeAt(1)) {
|
|
1258
|
+
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
|
|
1259
|
+
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
|
1260
|
+
default: return +it;
|
|
1261
|
+
}
|
|
1262
|
+
digits = it.slice(2);
|
|
1263
|
+
length = digits.length;
|
|
1264
|
+
for (index = 0; index < length; index++) {
|
|
1265
|
+
code = digits.charCodeAt(index);
|
|
1266
|
+
// parseInt parses a string to a first unavailable symbol
|
|
1267
|
+
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
1268
|
+
if (code < 48 || code > maxCode) return NaN;
|
|
1269
|
+
} return parseInt(digits, radix);
|
|
1270
|
+
}
|
|
1271
|
+
} return +it;
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
// `Number` constructor
|
|
1275
|
+
// https://tc39.es/ecma262/#sec-number-constructor
|
|
1276
|
+
if (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
1277
|
+
var NumberWrapper = function Number(value) {
|
|
1278
|
+
var it = arguments.length < 1 ? 0 : value;
|
|
1279
|
+
var dummy = this;
|
|
1280
|
+
return dummy instanceof NumberWrapper
|
|
1281
|
+
// check on 1..constructor(foo) case
|
|
1282
|
+
&& (BROKEN_CLASSOF ? fails(function () { NumberPrototype.valueOf.call(dummy); }) : classof(dummy) != NUMBER)
|
|
1283
|
+
? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);
|
|
1284
|
+
};
|
|
1285
|
+
for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (
|
|
1286
|
+
// ES3:
|
|
1287
|
+
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
|
1288
|
+
// ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
1289
|
+
'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
|
|
1290
|
+
'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,' +
|
|
1291
|
+
// ESNext
|
|
1292
|
+
'fromString,range'
|
|
1293
|
+
).split(','), j = 0, key; keys.length > j; j++) {
|
|
1294
|
+
if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {
|
|
1295
|
+
defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
NumberWrapper.prototype = NumberPrototype;
|
|
1299
|
+
NumberPrototype.constructor = NumberWrapper;
|
|
1300
|
+
redefine(global, NUMBER, NumberWrapper);
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
|
|
996
1304
|
/***/ }),
|
|
997
1305
|
|
|
998
1306
|
/***/ "b0c0":
|
|
@@ -1149,6 +1457,13 @@ module.exports = function (input, PREFERRED_STRING) {
|
|
|
1149
1457
|
};
|
|
1150
1458
|
|
|
1151
1459
|
|
|
1460
|
+
/***/ }),
|
|
1461
|
+
|
|
1462
|
+
/***/ "c0dd":
|
|
1463
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1464
|
+
|
|
1465
|
+
// extracted by mini-css-extract-plugin
|
|
1466
|
+
|
|
1152
1467
|
/***/ }),
|
|
1153
1468
|
|
|
1154
1469
|
/***/ "c430":
|
|
@@ -1330,6 +1645,50 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
1330
1645
|
} : $propertyIsEnumerable;
|
|
1331
1646
|
|
|
1332
1647
|
|
|
1648
|
+
/***/ }),
|
|
1649
|
+
|
|
1650
|
+
/***/ "d2bb":
|
|
1651
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1652
|
+
|
|
1653
|
+
/* eslint-disable no-proto -- safe */
|
|
1654
|
+
var anObject = __webpack_require__("825a");
|
|
1655
|
+
var aPossiblePrototype = __webpack_require__("3bbe");
|
|
1656
|
+
|
|
1657
|
+
// `Object.setPrototypeOf` method
|
|
1658
|
+
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1659
|
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1660
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1661
|
+
module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1662
|
+
var CORRECT_SETTER = false;
|
|
1663
|
+
var test = {};
|
|
1664
|
+
var setter;
|
|
1665
|
+
try {
|
|
1666
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1667
|
+
setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
|
|
1668
|
+
setter.call(test, []);
|
|
1669
|
+
CORRECT_SETTER = test instanceof Array;
|
|
1670
|
+
} catch (error) { /* empty */ }
|
|
1671
|
+
return function setPrototypeOf(O, proto) {
|
|
1672
|
+
anObject(O);
|
|
1673
|
+
aPossiblePrototype(proto);
|
|
1674
|
+
if (CORRECT_SETTER) setter.call(O, proto);
|
|
1675
|
+
else O.__proto__ = proto;
|
|
1676
|
+
return O;
|
|
1677
|
+
};
|
|
1678
|
+
}() : undefined);
|
|
1679
|
+
|
|
1680
|
+
|
|
1681
|
+
/***/ }),
|
|
1682
|
+
|
|
1683
|
+
/***/ "d7ed":
|
|
1684
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1685
|
+
|
|
1686
|
+
"use strict";
|
|
1687
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_06d2c260_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c0dd");
|
|
1688
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_06d2c260_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_06d2c260_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
1689
|
+
/* unused harmony reexport * */
|
|
1690
|
+
|
|
1691
|
+
|
|
1333
1692
|
/***/ }),
|
|
1334
1693
|
|
|
1335
1694
|
/***/ "d81d":
|
|
@@ -1375,6 +1734,22 @@ module.exports =
|
|
|
1375
1734
|
|
|
1376
1735
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
1377
1736
|
|
|
1737
|
+
/***/ }),
|
|
1738
|
+
|
|
1739
|
+
/***/ "df75":
|
|
1740
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1741
|
+
|
|
1742
|
+
var internalObjectKeys = __webpack_require__("ca84");
|
|
1743
|
+
var enumBugKeys = __webpack_require__("7839");
|
|
1744
|
+
|
|
1745
|
+
// `Object.keys` method
|
|
1746
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
1747
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1748
|
+
module.exports = Object.keys || function keys(O) {
|
|
1749
|
+
return internalObjectKeys(O, enumBugKeys);
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
|
|
1378
1753
|
/***/ }),
|
|
1379
1754
|
|
|
1380
1755
|
/***/ "e893":
|
|
@@ -1465,7 +1840,7 @@ var es_array_map = __webpack_require__("d81d");
|
|
|
1465
1840
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
1466
1841
|
var es_function_name = __webpack_require__("b0c0");
|
|
1467
1842
|
|
|
1468
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1843
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7a592888-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=7b7f9f78&scoped=true&
|
|
1469
1844
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:"co-button",class:[_vm.type ? 'co-button--' + _vm.type : '']},[_vm._t("default")],2)}
|
|
1470
1845
|
var staticRenderFns = []
|
|
1471
1846
|
|
|
@@ -1633,13 +2008,107 @@ src_button.install = function (Vue) {
|
|
|
1633
2008
|
};
|
|
1634
2009
|
|
|
1635
2010
|
/* harmony default export */ var packages_button = (src_button);
|
|
2011
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7a592888-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/battery-charging/src/index.vue?vue&type=template&id=06d2c260&scoped=true&
|
|
2012
|
+
var srcvue_type_template_id_06d2c260_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"co-battery-charging",style:({'--percent': _vm.percentWithSingle, '--color': _vm.color, '--width': _vm.width + 'px', '--widthNum': _vm.width})},[_vm._m(0),_c('div',{staticClass:"content"},[_vm._t("default")],2)])}
|
|
2013
|
+
var srcvue_type_template_id_06d2c260_scoped_true_staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"battery"},[_c('div',{staticClass:"g-wave"}),_c('div',{staticClass:"g-wave"}),_c('div',{staticClass:"g-wave"}),_c('div',{staticClass:"bg-opacity"})])}]
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
// CONCATENATED MODULE: ./packages/battery-charging/src/index.vue?vue&type=template&id=06d2c260&scoped=true&
|
|
2017
|
+
|
|
2018
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
2019
|
+
var es_number_constructor = __webpack_require__("a9e3");
|
|
2020
|
+
|
|
2021
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/battery-charging/src/index.vue?vue&type=script&lang=js&
|
|
2022
|
+
|
|
2023
|
+
//
|
|
2024
|
+
//
|
|
2025
|
+
//
|
|
2026
|
+
//
|
|
2027
|
+
//
|
|
2028
|
+
//
|
|
2029
|
+
//
|
|
2030
|
+
//
|
|
2031
|
+
//
|
|
2032
|
+
//
|
|
2033
|
+
//
|
|
2034
|
+
//
|
|
2035
|
+
//
|
|
2036
|
+
//
|
|
2037
|
+
//
|
|
2038
|
+
/* harmony default export */ var srcvue_type_script_lang_js_ = ({
|
|
2039
|
+
name: 'CoBatteryCharging',
|
|
2040
|
+
props: {
|
|
2041
|
+
percent: {
|
|
2042
|
+
type: Number,
|
|
2043
|
+
default: 0
|
|
2044
|
+
},
|
|
2045
|
+
color: {
|
|
2046
|
+
type: String,
|
|
2047
|
+
default: '#0bd5be'
|
|
2048
|
+
},
|
|
2049
|
+
width: {
|
|
2050
|
+
type: Number,
|
|
2051
|
+
default: 200
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
computed: {
|
|
2055
|
+
percentWithSingle: function percentWithSingle() {
|
|
2056
|
+
if (this.percent > 90) {
|
|
2057
|
+
return '90%';
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
return this.percent + '%';
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
});
|
|
2064
|
+
// CONCATENATED MODULE: ./packages/battery-charging/src/index.vue?vue&type=script&lang=js&
|
|
2065
|
+
/* harmony default export */ var battery_charging_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
|
|
2066
|
+
// EXTERNAL MODULE: ./packages/battery-charging/src/index.vue?vue&type=style&index=0&id=06d2c260&lang=scss&scoped=true&
|
|
2067
|
+
var srcvue_type_style_index_0_id_06d2c260_lang_scss_scoped_true_ = __webpack_require__("d7ed");
|
|
2068
|
+
|
|
2069
|
+
// EXTERNAL MODULE: ./packages/battery-charging/src/index.vue?vue&type=style&index=1&lang=scss&
|
|
2070
|
+
var srcvue_type_style_index_1_lang_scss_ = __webpack_require__("9c14");
|
|
2071
|
+
|
|
2072
|
+
// CONCATENATED MODULE: ./packages/battery-charging/src/index.vue
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
|
|
2080
|
+
/* normalize component */
|
|
2081
|
+
|
|
2082
|
+
var src_component = normalizeComponent(
|
|
2083
|
+
battery_charging_srcvue_type_script_lang_js_,
|
|
2084
|
+
srcvue_type_template_id_06d2c260_scoped_true_render,
|
|
2085
|
+
srcvue_type_template_id_06d2c260_scoped_true_staticRenderFns,
|
|
2086
|
+
false,
|
|
2087
|
+
null,
|
|
2088
|
+
"06d2c260",
|
|
2089
|
+
null
|
|
2090
|
+
|
|
2091
|
+
)
|
|
2092
|
+
|
|
2093
|
+
/* harmony default export */ var battery_charging_src = (src_component.exports);
|
|
2094
|
+
// CONCATENATED MODULE: ./packages/battery-charging/index.js
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
battery_charging_src.install = function (Vue) {
|
|
2100
|
+
Vue.component(battery_charging_src.name, battery_charging_src);
|
|
2101
|
+
};
|
|
2102
|
+
|
|
2103
|
+
/* harmony default export */ var battery_charging = (battery_charging_src);
|
|
1636
2104
|
// CONCATENATED MODULE: ./packages/index.js
|
|
1637
2105
|
|
|
1638
2106
|
|
|
1639
2107
|
|
|
1640
2108
|
|
|
1641
2109
|
|
|
1642
|
-
|
|
2110
|
+
|
|
2111
|
+
var components = [packages_button, battery_charging];
|
|
1643
2112
|
|
|
1644
2113
|
var install = function install(Vue) {
|
|
1645
2114
|
if (install.installed) return;
|
|
@@ -1654,7 +2123,8 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
1654
2123
|
|
|
1655
2124
|
/* harmony default export */ var packages_0 = ({
|
|
1656
2125
|
install: install,
|
|
1657
|
-
CoButton: packages_button
|
|
2126
|
+
CoButton: packages_button,
|
|
2127
|
+
CoBatteryCharging: battery_charging
|
|
1658
2128
|
});
|
|
1659
2129
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
1660
2130
|
|