hbte-saas-ui 1.5.5 → 1.5.6
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/lib/hbte-ui.common.js +2512 -57
- package/lib/hbte-ui.css +1 -1
- package/lib/hbte-ui.umd.js +2512 -57
- package/lib/hbte-ui.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hbte-ui.common.js
CHANGED
|
@@ -454,6 +454,47 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
|
|
|
454
454
|
|
|
455
455
|
/* harmony default export */ __webpack_exports__["default"] = (_src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
456
456
|
|
|
457
|
+
/***/ }),
|
|
458
|
+
|
|
459
|
+
/***/ "0d3b":
|
|
460
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
461
|
+
|
|
462
|
+
var fails = __webpack_require__("d039");
|
|
463
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
464
|
+
var IS_PURE = __webpack_require__("c430");
|
|
465
|
+
|
|
466
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
467
|
+
|
|
468
|
+
module.exports = !fails(function () {
|
|
469
|
+
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
470
|
+
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
471
|
+
var searchParams = url.searchParams;
|
|
472
|
+
var result = '';
|
|
473
|
+
url.pathname = 'c%20d';
|
|
474
|
+
searchParams.forEach(function (value, key) {
|
|
475
|
+
searchParams['delete']('b');
|
|
476
|
+
result += key + value;
|
|
477
|
+
});
|
|
478
|
+
return (IS_PURE && !url.toJSON)
|
|
479
|
+
|| !searchParams.sort
|
|
480
|
+
|| url.href !== 'http://a/c%20d?a=1&c=3'
|
|
481
|
+
|| searchParams.get('c') !== '3'
|
|
482
|
+
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|
|
483
|
+
|| !searchParams[ITERATOR]
|
|
484
|
+
// throws in Edge
|
|
485
|
+
|| new URL('https://a@b').username !== 'a'
|
|
486
|
+
|| new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
|
|
487
|
+
// not punycoded in Edge
|
|
488
|
+
|| new URL('http://тест').host !== 'xn--e1aybc'
|
|
489
|
+
// not escaped in Chrome 62-
|
|
490
|
+
|| new URL('http://a#б').hash !== '#%D0%B1'
|
|
491
|
+
// fails in Chrome 66-
|
|
492
|
+
|| result !== 'a1c3'
|
|
493
|
+
// throws in Safari
|
|
494
|
+
|| new URL('http://x', undefined).host !== 'x';
|
|
495
|
+
});
|
|
496
|
+
|
|
497
|
+
|
|
457
498
|
/***/ }),
|
|
458
499
|
|
|
459
500
|
/***/ "0d51":
|
|
@@ -983,6 +1024,25 @@ module.exports = function (iterable, unboundFunction, options) {
|
|
|
983
1024
|
};
|
|
984
1025
|
|
|
985
1026
|
|
|
1027
|
+
/***/ }),
|
|
1028
|
+
|
|
1029
|
+
/***/ "23b3":
|
|
1030
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1031
|
+
|
|
1032
|
+
"use strict";
|
|
1033
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1034
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b0c0");
|
|
1035
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
1036
|
+
/* harmony import */ var _src_main_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d2ee");
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
_src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
|
|
1041
|
+
Vue.component(_src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"].name, _src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
/* harmony default export */ __webpack_exports__["default"] = (_src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
1045
|
+
|
|
986
1046
|
/***/ }),
|
|
987
1047
|
|
|
988
1048
|
/***/ "23cb":
|
|
@@ -1420,6 +1480,1058 @@ module.exports = function (iterator, kind, value) {
|
|
|
1420
1480
|
};
|
|
1421
1481
|
|
|
1422
1482
|
|
|
1483
|
+
/***/ }),
|
|
1484
|
+
|
|
1485
|
+
/***/ "2b3d":
|
|
1486
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1487
|
+
|
|
1488
|
+
"use strict";
|
|
1489
|
+
|
|
1490
|
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
1491
|
+
__webpack_require__("3ca3");
|
|
1492
|
+
var $ = __webpack_require__("23e7");
|
|
1493
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
1494
|
+
var USE_NATIVE_URL = __webpack_require__("0d3b");
|
|
1495
|
+
var global = __webpack_require__("da84");
|
|
1496
|
+
var bind = __webpack_require__("0366");
|
|
1497
|
+
var uncurryThis = __webpack_require__("e330");
|
|
1498
|
+
var defineProperties = __webpack_require__("37e8").f;
|
|
1499
|
+
var redefine = __webpack_require__("6eeb");
|
|
1500
|
+
var anInstance = __webpack_require__("19aa");
|
|
1501
|
+
var hasOwn = __webpack_require__("1a2d");
|
|
1502
|
+
var assign = __webpack_require__("60da");
|
|
1503
|
+
var arrayFrom = __webpack_require__("4df4");
|
|
1504
|
+
var arraySlice = __webpack_require__("4dae");
|
|
1505
|
+
var codeAt = __webpack_require__("6547").codeAt;
|
|
1506
|
+
var toASCII = __webpack_require__("5fb2");
|
|
1507
|
+
var $toString = __webpack_require__("577e");
|
|
1508
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
1509
|
+
var validateArgumentsLength = __webpack_require__("d6d6");
|
|
1510
|
+
var URLSearchParamsModule = __webpack_require__("9861");
|
|
1511
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
1512
|
+
|
|
1513
|
+
var setInternalState = InternalStateModule.set;
|
|
1514
|
+
var getInternalURLState = InternalStateModule.getterFor('URL');
|
|
1515
|
+
var URLSearchParams = URLSearchParamsModule.URLSearchParams;
|
|
1516
|
+
var getInternalSearchParamsState = URLSearchParamsModule.getState;
|
|
1517
|
+
|
|
1518
|
+
var NativeURL = global.URL;
|
|
1519
|
+
var TypeError = global.TypeError;
|
|
1520
|
+
var parseInt = global.parseInt;
|
|
1521
|
+
var floor = Math.floor;
|
|
1522
|
+
var pow = Math.pow;
|
|
1523
|
+
var charAt = uncurryThis(''.charAt);
|
|
1524
|
+
var exec = uncurryThis(/./.exec);
|
|
1525
|
+
var join = uncurryThis([].join);
|
|
1526
|
+
var numberToString = uncurryThis(1.0.toString);
|
|
1527
|
+
var pop = uncurryThis([].pop);
|
|
1528
|
+
var push = uncurryThis([].push);
|
|
1529
|
+
var replace = uncurryThis(''.replace);
|
|
1530
|
+
var shift = uncurryThis([].shift);
|
|
1531
|
+
var split = uncurryThis(''.split);
|
|
1532
|
+
var stringSlice = uncurryThis(''.slice);
|
|
1533
|
+
var toLowerCase = uncurryThis(''.toLowerCase);
|
|
1534
|
+
var unshift = uncurryThis([].unshift);
|
|
1535
|
+
|
|
1536
|
+
var INVALID_AUTHORITY = 'Invalid authority';
|
|
1537
|
+
var INVALID_SCHEME = 'Invalid scheme';
|
|
1538
|
+
var INVALID_HOST = 'Invalid host';
|
|
1539
|
+
var INVALID_PORT = 'Invalid port';
|
|
1540
|
+
|
|
1541
|
+
var ALPHA = /[a-z]/i;
|
|
1542
|
+
// eslint-disable-next-line regexp/no-obscure-range -- safe
|
|
1543
|
+
var ALPHANUMERIC = /[\d+-.a-z]/i;
|
|
1544
|
+
var DIGIT = /\d/;
|
|
1545
|
+
var HEX_START = /^0x/i;
|
|
1546
|
+
var OCT = /^[0-7]+$/;
|
|
1547
|
+
var DEC = /^\d+$/;
|
|
1548
|
+
var HEX = /^[\da-f]+$/i;
|
|
1549
|
+
/* eslint-disable regexp/no-control-character -- safe */
|
|
1550
|
+
var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
|
|
1551
|
+
var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
|
|
1552
|
+
var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g;
|
|
1553
|
+
var TAB_AND_NEW_LINE = /[\t\n\r]/g;
|
|
1554
|
+
/* eslint-enable regexp/no-control-character -- safe */
|
|
1555
|
+
var EOF;
|
|
1556
|
+
|
|
1557
|
+
// https://url.spec.whatwg.org/#ipv4-number-parser
|
|
1558
|
+
var parseIPv4 = function (input) {
|
|
1559
|
+
var parts = split(input, '.');
|
|
1560
|
+
var partsLength, numbers, index, part, radix, number, ipv4;
|
|
1561
|
+
if (parts.length && parts[parts.length - 1] == '') {
|
|
1562
|
+
parts.length--;
|
|
1563
|
+
}
|
|
1564
|
+
partsLength = parts.length;
|
|
1565
|
+
if (partsLength > 4) return input;
|
|
1566
|
+
numbers = [];
|
|
1567
|
+
for (index = 0; index < partsLength; index++) {
|
|
1568
|
+
part = parts[index];
|
|
1569
|
+
if (part == '') return input;
|
|
1570
|
+
radix = 10;
|
|
1571
|
+
if (part.length > 1 && charAt(part, 0) == '0') {
|
|
1572
|
+
radix = exec(HEX_START, part) ? 16 : 8;
|
|
1573
|
+
part = stringSlice(part, radix == 8 ? 1 : 2);
|
|
1574
|
+
}
|
|
1575
|
+
if (part === '') {
|
|
1576
|
+
number = 0;
|
|
1577
|
+
} else {
|
|
1578
|
+
if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part)) return input;
|
|
1579
|
+
number = parseInt(part, radix);
|
|
1580
|
+
}
|
|
1581
|
+
push(numbers, number);
|
|
1582
|
+
}
|
|
1583
|
+
for (index = 0; index < partsLength; index++) {
|
|
1584
|
+
number = numbers[index];
|
|
1585
|
+
if (index == partsLength - 1) {
|
|
1586
|
+
if (number >= pow(256, 5 - partsLength)) return null;
|
|
1587
|
+
} else if (number > 255) return null;
|
|
1588
|
+
}
|
|
1589
|
+
ipv4 = pop(numbers);
|
|
1590
|
+
for (index = 0; index < numbers.length; index++) {
|
|
1591
|
+
ipv4 += numbers[index] * pow(256, 3 - index);
|
|
1592
|
+
}
|
|
1593
|
+
return ipv4;
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1596
|
+
// https://url.spec.whatwg.org/#concept-ipv6-parser
|
|
1597
|
+
// eslint-disable-next-line max-statements -- TODO
|
|
1598
|
+
var parseIPv6 = function (input) {
|
|
1599
|
+
var address = [0, 0, 0, 0, 0, 0, 0, 0];
|
|
1600
|
+
var pieceIndex = 0;
|
|
1601
|
+
var compress = null;
|
|
1602
|
+
var pointer = 0;
|
|
1603
|
+
var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
|
|
1604
|
+
|
|
1605
|
+
var chr = function () {
|
|
1606
|
+
return charAt(input, pointer);
|
|
1607
|
+
};
|
|
1608
|
+
|
|
1609
|
+
if (chr() == ':') {
|
|
1610
|
+
if (charAt(input, 1) != ':') return;
|
|
1611
|
+
pointer += 2;
|
|
1612
|
+
pieceIndex++;
|
|
1613
|
+
compress = pieceIndex;
|
|
1614
|
+
}
|
|
1615
|
+
while (chr()) {
|
|
1616
|
+
if (pieceIndex == 8) return;
|
|
1617
|
+
if (chr() == ':') {
|
|
1618
|
+
if (compress !== null) return;
|
|
1619
|
+
pointer++;
|
|
1620
|
+
pieceIndex++;
|
|
1621
|
+
compress = pieceIndex;
|
|
1622
|
+
continue;
|
|
1623
|
+
}
|
|
1624
|
+
value = length = 0;
|
|
1625
|
+
while (length < 4 && exec(HEX, chr())) {
|
|
1626
|
+
value = value * 16 + parseInt(chr(), 16);
|
|
1627
|
+
pointer++;
|
|
1628
|
+
length++;
|
|
1629
|
+
}
|
|
1630
|
+
if (chr() == '.') {
|
|
1631
|
+
if (length == 0) return;
|
|
1632
|
+
pointer -= length;
|
|
1633
|
+
if (pieceIndex > 6) return;
|
|
1634
|
+
numbersSeen = 0;
|
|
1635
|
+
while (chr()) {
|
|
1636
|
+
ipv4Piece = null;
|
|
1637
|
+
if (numbersSeen > 0) {
|
|
1638
|
+
if (chr() == '.' && numbersSeen < 4) pointer++;
|
|
1639
|
+
else return;
|
|
1640
|
+
}
|
|
1641
|
+
if (!exec(DIGIT, chr())) return;
|
|
1642
|
+
while (exec(DIGIT, chr())) {
|
|
1643
|
+
number = parseInt(chr(), 10);
|
|
1644
|
+
if (ipv4Piece === null) ipv4Piece = number;
|
|
1645
|
+
else if (ipv4Piece == 0) return;
|
|
1646
|
+
else ipv4Piece = ipv4Piece * 10 + number;
|
|
1647
|
+
if (ipv4Piece > 255) return;
|
|
1648
|
+
pointer++;
|
|
1649
|
+
}
|
|
1650
|
+
address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
|
|
1651
|
+
numbersSeen++;
|
|
1652
|
+
if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
|
|
1653
|
+
}
|
|
1654
|
+
if (numbersSeen != 4) return;
|
|
1655
|
+
break;
|
|
1656
|
+
} else if (chr() == ':') {
|
|
1657
|
+
pointer++;
|
|
1658
|
+
if (!chr()) return;
|
|
1659
|
+
} else if (chr()) return;
|
|
1660
|
+
address[pieceIndex++] = value;
|
|
1661
|
+
}
|
|
1662
|
+
if (compress !== null) {
|
|
1663
|
+
swaps = pieceIndex - compress;
|
|
1664
|
+
pieceIndex = 7;
|
|
1665
|
+
while (pieceIndex != 0 && swaps > 0) {
|
|
1666
|
+
swap = address[pieceIndex];
|
|
1667
|
+
address[pieceIndex--] = address[compress + swaps - 1];
|
|
1668
|
+
address[compress + --swaps] = swap;
|
|
1669
|
+
}
|
|
1670
|
+
} else if (pieceIndex != 8) return;
|
|
1671
|
+
return address;
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
var findLongestZeroSequence = function (ipv6) {
|
|
1675
|
+
var maxIndex = null;
|
|
1676
|
+
var maxLength = 1;
|
|
1677
|
+
var currStart = null;
|
|
1678
|
+
var currLength = 0;
|
|
1679
|
+
var index = 0;
|
|
1680
|
+
for (; index < 8; index++) {
|
|
1681
|
+
if (ipv6[index] !== 0) {
|
|
1682
|
+
if (currLength > maxLength) {
|
|
1683
|
+
maxIndex = currStart;
|
|
1684
|
+
maxLength = currLength;
|
|
1685
|
+
}
|
|
1686
|
+
currStart = null;
|
|
1687
|
+
currLength = 0;
|
|
1688
|
+
} else {
|
|
1689
|
+
if (currStart === null) currStart = index;
|
|
1690
|
+
++currLength;
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
if (currLength > maxLength) {
|
|
1694
|
+
maxIndex = currStart;
|
|
1695
|
+
maxLength = currLength;
|
|
1696
|
+
}
|
|
1697
|
+
return maxIndex;
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
// https://url.spec.whatwg.org/#host-serializing
|
|
1701
|
+
var serializeHost = function (host) {
|
|
1702
|
+
var result, index, compress, ignore0;
|
|
1703
|
+
// ipv4
|
|
1704
|
+
if (typeof host == 'number') {
|
|
1705
|
+
result = [];
|
|
1706
|
+
for (index = 0; index < 4; index++) {
|
|
1707
|
+
unshift(result, host % 256);
|
|
1708
|
+
host = floor(host / 256);
|
|
1709
|
+
} return join(result, '.');
|
|
1710
|
+
// ipv6
|
|
1711
|
+
} else if (typeof host == 'object') {
|
|
1712
|
+
result = '';
|
|
1713
|
+
compress = findLongestZeroSequence(host);
|
|
1714
|
+
for (index = 0; index < 8; index++) {
|
|
1715
|
+
if (ignore0 && host[index] === 0) continue;
|
|
1716
|
+
if (ignore0) ignore0 = false;
|
|
1717
|
+
if (compress === index) {
|
|
1718
|
+
result += index ? ':' : '::';
|
|
1719
|
+
ignore0 = true;
|
|
1720
|
+
} else {
|
|
1721
|
+
result += numberToString(host[index], 16);
|
|
1722
|
+
if (index < 7) result += ':';
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
return '[' + result + ']';
|
|
1726
|
+
} return host;
|
|
1727
|
+
};
|
|
1728
|
+
|
|
1729
|
+
var C0ControlPercentEncodeSet = {};
|
|
1730
|
+
var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
|
|
1731
|
+
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
|
|
1732
|
+
});
|
|
1733
|
+
var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
|
|
1734
|
+
'#': 1, '?': 1, '{': 1, '}': 1
|
|
1735
|
+
});
|
|
1736
|
+
var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
|
|
1737
|
+
'/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
|
|
1738
|
+
});
|
|
1739
|
+
|
|
1740
|
+
var percentEncode = function (chr, set) {
|
|
1741
|
+
var code = codeAt(chr, 0);
|
|
1742
|
+
return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
|
|
1743
|
+
};
|
|
1744
|
+
|
|
1745
|
+
// https://url.spec.whatwg.org/#special-scheme
|
|
1746
|
+
var specialSchemes = {
|
|
1747
|
+
ftp: 21,
|
|
1748
|
+
file: null,
|
|
1749
|
+
http: 80,
|
|
1750
|
+
https: 443,
|
|
1751
|
+
ws: 80,
|
|
1752
|
+
wss: 443
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1755
|
+
// https://url.spec.whatwg.org/#windows-drive-letter
|
|
1756
|
+
var isWindowsDriveLetter = function (string, normalized) {
|
|
1757
|
+
var second;
|
|
1758
|
+
return string.length == 2 && exec(ALPHA, charAt(string, 0))
|
|
1759
|
+
&& ((second = charAt(string, 1)) == ':' || (!normalized && second == '|'));
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
// https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
|
|
1763
|
+
var startsWithWindowsDriveLetter = function (string) {
|
|
1764
|
+
var third;
|
|
1765
|
+
return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
|
|
1766
|
+
string.length == 2 ||
|
|
1767
|
+
((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
|
|
1768
|
+
);
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
// https://url.spec.whatwg.org/#single-dot-path-segment
|
|
1772
|
+
var isSingleDot = function (segment) {
|
|
1773
|
+
return segment === '.' || toLowerCase(segment) === '%2e';
|
|
1774
|
+
};
|
|
1775
|
+
|
|
1776
|
+
// https://url.spec.whatwg.org/#double-dot-path-segment
|
|
1777
|
+
var isDoubleDot = function (segment) {
|
|
1778
|
+
segment = toLowerCase(segment);
|
|
1779
|
+
return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
|
|
1780
|
+
};
|
|
1781
|
+
|
|
1782
|
+
// States:
|
|
1783
|
+
var SCHEME_START = {};
|
|
1784
|
+
var SCHEME = {};
|
|
1785
|
+
var NO_SCHEME = {};
|
|
1786
|
+
var SPECIAL_RELATIVE_OR_AUTHORITY = {};
|
|
1787
|
+
var PATH_OR_AUTHORITY = {};
|
|
1788
|
+
var RELATIVE = {};
|
|
1789
|
+
var RELATIVE_SLASH = {};
|
|
1790
|
+
var SPECIAL_AUTHORITY_SLASHES = {};
|
|
1791
|
+
var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
|
|
1792
|
+
var AUTHORITY = {};
|
|
1793
|
+
var HOST = {};
|
|
1794
|
+
var HOSTNAME = {};
|
|
1795
|
+
var PORT = {};
|
|
1796
|
+
var FILE = {};
|
|
1797
|
+
var FILE_SLASH = {};
|
|
1798
|
+
var FILE_HOST = {};
|
|
1799
|
+
var PATH_START = {};
|
|
1800
|
+
var PATH = {};
|
|
1801
|
+
var CANNOT_BE_A_BASE_URL_PATH = {};
|
|
1802
|
+
var QUERY = {};
|
|
1803
|
+
var FRAGMENT = {};
|
|
1804
|
+
|
|
1805
|
+
var URLState = function (url, isBase, base) {
|
|
1806
|
+
var urlString = $toString(url);
|
|
1807
|
+
var baseState, failure, searchParams;
|
|
1808
|
+
if (isBase) {
|
|
1809
|
+
failure = this.parse(urlString);
|
|
1810
|
+
if (failure) throw TypeError(failure);
|
|
1811
|
+
this.searchParams = null;
|
|
1812
|
+
} else {
|
|
1813
|
+
if (base !== undefined) baseState = new URLState(base, true);
|
|
1814
|
+
failure = this.parse(urlString, null, baseState);
|
|
1815
|
+
if (failure) throw TypeError(failure);
|
|
1816
|
+
searchParams = getInternalSearchParamsState(new URLSearchParams());
|
|
1817
|
+
searchParams.bindURL(this);
|
|
1818
|
+
this.searchParams = searchParams;
|
|
1819
|
+
}
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
URLState.prototype = {
|
|
1823
|
+
type: 'URL',
|
|
1824
|
+
// https://url.spec.whatwg.org/#url-parsing
|
|
1825
|
+
// eslint-disable-next-line max-statements -- TODO
|
|
1826
|
+
parse: function (input, stateOverride, base) {
|
|
1827
|
+
var url = this;
|
|
1828
|
+
var state = stateOverride || SCHEME_START;
|
|
1829
|
+
var pointer = 0;
|
|
1830
|
+
var buffer = '';
|
|
1831
|
+
var seenAt = false;
|
|
1832
|
+
var seenBracket = false;
|
|
1833
|
+
var seenPasswordToken = false;
|
|
1834
|
+
var codePoints, chr, bufferCodePoints, failure;
|
|
1835
|
+
|
|
1836
|
+
input = $toString(input);
|
|
1837
|
+
|
|
1838
|
+
if (!stateOverride) {
|
|
1839
|
+
url.scheme = '';
|
|
1840
|
+
url.username = '';
|
|
1841
|
+
url.password = '';
|
|
1842
|
+
url.host = null;
|
|
1843
|
+
url.port = null;
|
|
1844
|
+
url.path = [];
|
|
1845
|
+
url.query = null;
|
|
1846
|
+
url.fragment = null;
|
|
1847
|
+
url.cannotBeABaseURL = false;
|
|
1848
|
+
input = replace(input, LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
input = replace(input, TAB_AND_NEW_LINE, '');
|
|
1852
|
+
|
|
1853
|
+
codePoints = arrayFrom(input);
|
|
1854
|
+
|
|
1855
|
+
while (pointer <= codePoints.length) {
|
|
1856
|
+
chr = codePoints[pointer];
|
|
1857
|
+
switch (state) {
|
|
1858
|
+
case SCHEME_START:
|
|
1859
|
+
if (chr && exec(ALPHA, chr)) {
|
|
1860
|
+
buffer += toLowerCase(chr);
|
|
1861
|
+
state = SCHEME;
|
|
1862
|
+
} else if (!stateOverride) {
|
|
1863
|
+
state = NO_SCHEME;
|
|
1864
|
+
continue;
|
|
1865
|
+
} else return INVALID_SCHEME;
|
|
1866
|
+
break;
|
|
1867
|
+
|
|
1868
|
+
case SCHEME:
|
|
1869
|
+
if (chr && (exec(ALPHANUMERIC, chr) || chr == '+' || chr == '-' || chr == '.')) {
|
|
1870
|
+
buffer += toLowerCase(chr);
|
|
1871
|
+
} else if (chr == ':') {
|
|
1872
|
+
if (stateOverride && (
|
|
1873
|
+
(url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
|
|
1874
|
+
(buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
1875
|
+
(url.scheme == 'file' && !url.host)
|
|
1876
|
+
)) return;
|
|
1877
|
+
url.scheme = buffer;
|
|
1878
|
+
if (stateOverride) {
|
|
1879
|
+
if (url.isSpecial() && specialSchemes[url.scheme] == url.port) url.port = null;
|
|
1880
|
+
return;
|
|
1881
|
+
}
|
|
1882
|
+
buffer = '';
|
|
1883
|
+
if (url.scheme == 'file') {
|
|
1884
|
+
state = FILE;
|
|
1885
|
+
} else if (url.isSpecial() && base && base.scheme == url.scheme) {
|
|
1886
|
+
state = SPECIAL_RELATIVE_OR_AUTHORITY;
|
|
1887
|
+
} else if (url.isSpecial()) {
|
|
1888
|
+
state = SPECIAL_AUTHORITY_SLASHES;
|
|
1889
|
+
} else if (codePoints[pointer + 1] == '/') {
|
|
1890
|
+
state = PATH_OR_AUTHORITY;
|
|
1891
|
+
pointer++;
|
|
1892
|
+
} else {
|
|
1893
|
+
url.cannotBeABaseURL = true;
|
|
1894
|
+
push(url.path, '');
|
|
1895
|
+
state = CANNOT_BE_A_BASE_URL_PATH;
|
|
1896
|
+
}
|
|
1897
|
+
} else if (!stateOverride) {
|
|
1898
|
+
buffer = '';
|
|
1899
|
+
state = NO_SCHEME;
|
|
1900
|
+
pointer = 0;
|
|
1901
|
+
continue;
|
|
1902
|
+
} else return INVALID_SCHEME;
|
|
1903
|
+
break;
|
|
1904
|
+
|
|
1905
|
+
case NO_SCHEME:
|
|
1906
|
+
if (!base || (base.cannotBeABaseURL && chr != '#')) return INVALID_SCHEME;
|
|
1907
|
+
if (base.cannotBeABaseURL && chr == '#') {
|
|
1908
|
+
url.scheme = base.scheme;
|
|
1909
|
+
url.path = arraySlice(base.path);
|
|
1910
|
+
url.query = base.query;
|
|
1911
|
+
url.fragment = '';
|
|
1912
|
+
url.cannotBeABaseURL = true;
|
|
1913
|
+
state = FRAGMENT;
|
|
1914
|
+
break;
|
|
1915
|
+
}
|
|
1916
|
+
state = base.scheme == 'file' ? FILE : RELATIVE;
|
|
1917
|
+
continue;
|
|
1918
|
+
|
|
1919
|
+
case SPECIAL_RELATIVE_OR_AUTHORITY:
|
|
1920
|
+
if (chr == '/' && codePoints[pointer + 1] == '/') {
|
|
1921
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
1922
|
+
pointer++;
|
|
1923
|
+
} else {
|
|
1924
|
+
state = RELATIVE;
|
|
1925
|
+
continue;
|
|
1926
|
+
} break;
|
|
1927
|
+
|
|
1928
|
+
case PATH_OR_AUTHORITY:
|
|
1929
|
+
if (chr == '/') {
|
|
1930
|
+
state = AUTHORITY;
|
|
1931
|
+
break;
|
|
1932
|
+
} else {
|
|
1933
|
+
state = PATH;
|
|
1934
|
+
continue;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
case RELATIVE:
|
|
1938
|
+
url.scheme = base.scheme;
|
|
1939
|
+
if (chr == EOF) {
|
|
1940
|
+
url.username = base.username;
|
|
1941
|
+
url.password = base.password;
|
|
1942
|
+
url.host = base.host;
|
|
1943
|
+
url.port = base.port;
|
|
1944
|
+
url.path = arraySlice(base.path);
|
|
1945
|
+
url.query = base.query;
|
|
1946
|
+
} else if (chr == '/' || (chr == '\\' && url.isSpecial())) {
|
|
1947
|
+
state = RELATIVE_SLASH;
|
|
1948
|
+
} else if (chr == '?') {
|
|
1949
|
+
url.username = base.username;
|
|
1950
|
+
url.password = base.password;
|
|
1951
|
+
url.host = base.host;
|
|
1952
|
+
url.port = base.port;
|
|
1953
|
+
url.path = arraySlice(base.path);
|
|
1954
|
+
url.query = '';
|
|
1955
|
+
state = QUERY;
|
|
1956
|
+
} else if (chr == '#') {
|
|
1957
|
+
url.username = base.username;
|
|
1958
|
+
url.password = base.password;
|
|
1959
|
+
url.host = base.host;
|
|
1960
|
+
url.port = base.port;
|
|
1961
|
+
url.path = arraySlice(base.path);
|
|
1962
|
+
url.query = base.query;
|
|
1963
|
+
url.fragment = '';
|
|
1964
|
+
state = FRAGMENT;
|
|
1965
|
+
} else {
|
|
1966
|
+
url.username = base.username;
|
|
1967
|
+
url.password = base.password;
|
|
1968
|
+
url.host = base.host;
|
|
1969
|
+
url.port = base.port;
|
|
1970
|
+
url.path = arraySlice(base.path);
|
|
1971
|
+
url.path.length--;
|
|
1972
|
+
state = PATH;
|
|
1973
|
+
continue;
|
|
1974
|
+
} break;
|
|
1975
|
+
|
|
1976
|
+
case RELATIVE_SLASH:
|
|
1977
|
+
if (url.isSpecial() && (chr == '/' || chr == '\\')) {
|
|
1978
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
1979
|
+
} else if (chr == '/') {
|
|
1980
|
+
state = AUTHORITY;
|
|
1981
|
+
} else {
|
|
1982
|
+
url.username = base.username;
|
|
1983
|
+
url.password = base.password;
|
|
1984
|
+
url.host = base.host;
|
|
1985
|
+
url.port = base.port;
|
|
1986
|
+
state = PATH;
|
|
1987
|
+
continue;
|
|
1988
|
+
} break;
|
|
1989
|
+
|
|
1990
|
+
case SPECIAL_AUTHORITY_SLASHES:
|
|
1991
|
+
state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
|
|
1992
|
+
if (chr != '/' || charAt(buffer, pointer + 1) != '/') continue;
|
|
1993
|
+
pointer++;
|
|
1994
|
+
break;
|
|
1995
|
+
|
|
1996
|
+
case SPECIAL_AUTHORITY_IGNORE_SLASHES:
|
|
1997
|
+
if (chr != '/' && chr != '\\') {
|
|
1998
|
+
state = AUTHORITY;
|
|
1999
|
+
continue;
|
|
2000
|
+
} break;
|
|
2001
|
+
|
|
2002
|
+
case AUTHORITY:
|
|
2003
|
+
if (chr == '@') {
|
|
2004
|
+
if (seenAt) buffer = '%40' + buffer;
|
|
2005
|
+
seenAt = true;
|
|
2006
|
+
bufferCodePoints = arrayFrom(buffer);
|
|
2007
|
+
for (var i = 0; i < bufferCodePoints.length; i++) {
|
|
2008
|
+
var codePoint = bufferCodePoints[i];
|
|
2009
|
+
if (codePoint == ':' && !seenPasswordToken) {
|
|
2010
|
+
seenPasswordToken = true;
|
|
2011
|
+
continue;
|
|
2012
|
+
}
|
|
2013
|
+
var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
|
|
2014
|
+
if (seenPasswordToken) url.password += encodedCodePoints;
|
|
2015
|
+
else url.username += encodedCodePoints;
|
|
2016
|
+
}
|
|
2017
|
+
buffer = '';
|
|
2018
|
+
} else if (
|
|
2019
|
+
chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
|
|
2020
|
+
(chr == '\\' && url.isSpecial())
|
|
2021
|
+
) {
|
|
2022
|
+
if (seenAt && buffer == '') return INVALID_AUTHORITY;
|
|
2023
|
+
pointer -= arrayFrom(buffer).length + 1;
|
|
2024
|
+
buffer = '';
|
|
2025
|
+
state = HOST;
|
|
2026
|
+
} else buffer += chr;
|
|
2027
|
+
break;
|
|
2028
|
+
|
|
2029
|
+
case HOST:
|
|
2030
|
+
case HOSTNAME:
|
|
2031
|
+
if (stateOverride && url.scheme == 'file') {
|
|
2032
|
+
state = FILE_HOST;
|
|
2033
|
+
continue;
|
|
2034
|
+
} else if (chr == ':' && !seenBracket) {
|
|
2035
|
+
if (buffer == '') return INVALID_HOST;
|
|
2036
|
+
failure = url.parseHost(buffer);
|
|
2037
|
+
if (failure) return failure;
|
|
2038
|
+
buffer = '';
|
|
2039
|
+
state = PORT;
|
|
2040
|
+
if (stateOverride == HOSTNAME) return;
|
|
2041
|
+
} else if (
|
|
2042
|
+
chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
|
|
2043
|
+
(chr == '\\' && url.isSpecial())
|
|
2044
|
+
) {
|
|
2045
|
+
if (url.isSpecial() && buffer == '') return INVALID_HOST;
|
|
2046
|
+
if (stateOverride && buffer == '' && (url.includesCredentials() || url.port !== null)) return;
|
|
2047
|
+
failure = url.parseHost(buffer);
|
|
2048
|
+
if (failure) return failure;
|
|
2049
|
+
buffer = '';
|
|
2050
|
+
state = PATH_START;
|
|
2051
|
+
if (stateOverride) return;
|
|
2052
|
+
continue;
|
|
2053
|
+
} else {
|
|
2054
|
+
if (chr == '[') seenBracket = true;
|
|
2055
|
+
else if (chr == ']') seenBracket = false;
|
|
2056
|
+
buffer += chr;
|
|
2057
|
+
} break;
|
|
2058
|
+
|
|
2059
|
+
case PORT:
|
|
2060
|
+
if (exec(DIGIT, chr)) {
|
|
2061
|
+
buffer += chr;
|
|
2062
|
+
} else if (
|
|
2063
|
+
chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
|
|
2064
|
+
(chr == '\\' && url.isSpecial()) ||
|
|
2065
|
+
stateOverride
|
|
2066
|
+
) {
|
|
2067
|
+
if (buffer != '') {
|
|
2068
|
+
var port = parseInt(buffer, 10);
|
|
2069
|
+
if (port > 0xFFFF) return INVALID_PORT;
|
|
2070
|
+
url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
|
|
2071
|
+
buffer = '';
|
|
2072
|
+
}
|
|
2073
|
+
if (stateOverride) return;
|
|
2074
|
+
state = PATH_START;
|
|
2075
|
+
continue;
|
|
2076
|
+
} else return INVALID_PORT;
|
|
2077
|
+
break;
|
|
2078
|
+
|
|
2079
|
+
case FILE:
|
|
2080
|
+
url.scheme = 'file';
|
|
2081
|
+
if (chr == '/' || chr == '\\') state = FILE_SLASH;
|
|
2082
|
+
else if (base && base.scheme == 'file') {
|
|
2083
|
+
if (chr == EOF) {
|
|
2084
|
+
url.host = base.host;
|
|
2085
|
+
url.path = arraySlice(base.path);
|
|
2086
|
+
url.query = base.query;
|
|
2087
|
+
} else if (chr == '?') {
|
|
2088
|
+
url.host = base.host;
|
|
2089
|
+
url.path = arraySlice(base.path);
|
|
2090
|
+
url.query = '';
|
|
2091
|
+
state = QUERY;
|
|
2092
|
+
} else if (chr == '#') {
|
|
2093
|
+
url.host = base.host;
|
|
2094
|
+
url.path = arraySlice(base.path);
|
|
2095
|
+
url.query = base.query;
|
|
2096
|
+
url.fragment = '';
|
|
2097
|
+
state = FRAGMENT;
|
|
2098
|
+
} else {
|
|
2099
|
+
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
2100
|
+
url.host = base.host;
|
|
2101
|
+
url.path = arraySlice(base.path);
|
|
2102
|
+
url.shortenPath();
|
|
2103
|
+
}
|
|
2104
|
+
state = PATH;
|
|
2105
|
+
continue;
|
|
2106
|
+
}
|
|
2107
|
+
} else {
|
|
2108
|
+
state = PATH;
|
|
2109
|
+
continue;
|
|
2110
|
+
} break;
|
|
2111
|
+
|
|
2112
|
+
case FILE_SLASH:
|
|
2113
|
+
if (chr == '/' || chr == '\\') {
|
|
2114
|
+
state = FILE_HOST;
|
|
2115
|
+
break;
|
|
2116
|
+
}
|
|
2117
|
+
if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
|
|
2118
|
+
if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
|
|
2119
|
+
else url.host = base.host;
|
|
2120
|
+
}
|
|
2121
|
+
state = PATH;
|
|
2122
|
+
continue;
|
|
2123
|
+
|
|
2124
|
+
case FILE_HOST:
|
|
2125
|
+
if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') {
|
|
2126
|
+
if (!stateOverride && isWindowsDriveLetter(buffer)) {
|
|
2127
|
+
state = PATH;
|
|
2128
|
+
} else if (buffer == '') {
|
|
2129
|
+
url.host = '';
|
|
2130
|
+
if (stateOverride) return;
|
|
2131
|
+
state = PATH_START;
|
|
2132
|
+
} else {
|
|
2133
|
+
failure = url.parseHost(buffer);
|
|
2134
|
+
if (failure) return failure;
|
|
2135
|
+
if (url.host == 'localhost') url.host = '';
|
|
2136
|
+
if (stateOverride) return;
|
|
2137
|
+
buffer = '';
|
|
2138
|
+
state = PATH_START;
|
|
2139
|
+
} continue;
|
|
2140
|
+
} else buffer += chr;
|
|
2141
|
+
break;
|
|
2142
|
+
|
|
2143
|
+
case PATH_START:
|
|
2144
|
+
if (url.isSpecial()) {
|
|
2145
|
+
state = PATH;
|
|
2146
|
+
if (chr != '/' && chr != '\\') continue;
|
|
2147
|
+
} else if (!stateOverride && chr == '?') {
|
|
2148
|
+
url.query = '';
|
|
2149
|
+
state = QUERY;
|
|
2150
|
+
} else if (!stateOverride && chr == '#') {
|
|
2151
|
+
url.fragment = '';
|
|
2152
|
+
state = FRAGMENT;
|
|
2153
|
+
} else if (chr != EOF) {
|
|
2154
|
+
state = PATH;
|
|
2155
|
+
if (chr != '/') continue;
|
|
2156
|
+
} break;
|
|
2157
|
+
|
|
2158
|
+
case PATH:
|
|
2159
|
+
if (
|
|
2160
|
+
chr == EOF || chr == '/' ||
|
|
2161
|
+
(chr == '\\' && url.isSpecial()) ||
|
|
2162
|
+
(!stateOverride && (chr == '?' || chr == '#'))
|
|
2163
|
+
) {
|
|
2164
|
+
if (isDoubleDot(buffer)) {
|
|
2165
|
+
url.shortenPath();
|
|
2166
|
+
if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
|
|
2167
|
+
push(url.path, '');
|
|
2168
|
+
}
|
|
2169
|
+
} else if (isSingleDot(buffer)) {
|
|
2170
|
+
if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
|
|
2171
|
+
push(url.path, '');
|
|
2172
|
+
}
|
|
2173
|
+
} else {
|
|
2174
|
+
if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
|
|
2175
|
+
if (url.host) url.host = '';
|
|
2176
|
+
buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
|
|
2177
|
+
}
|
|
2178
|
+
push(url.path, buffer);
|
|
2179
|
+
}
|
|
2180
|
+
buffer = '';
|
|
2181
|
+
if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) {
|
|
2182
|
+
while (url.path.length > 1 && url.path[0] === '') {
|
|
2183
|
+
shift(url.path);
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
if (chr == '?') {
|
|
2187
|
+
url.query = '';
|
|
2188
|
+
state = QUERY;
|
|
2189
|
+
} else if (chr == '#') {
|
|
2190
|
+
url.fragment = '';
|
|
2191
|
+
state = FRAGMENT;
|
|
2192
|
+
}
|
|
2193
|
+
} else {
|
|
2194
|
+
buffer += percentEncode(chr, pathPercentEncodeSet);
|
|
2195
|
+
} break;
|
|
2196
|
+
|
|
2197
|
+
case CANNOT_BE_A_BASE_URL_PATH:
|
|
2198
|
+
if (chr == '?') {
|
|
2199
|
+
url.query = '';
|
|
2200
|
+
state = QUERY;
|
|
2201
|
+
} else if (chr == '#') {
|
|
2202
|
+
url.fragment = '';
|
|
2203
|
+
state = FRAGMENT;
|
|
2204
|
+
} else if (chr != EOF) {
|
|
2205
|
+
url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
2206
|
+
} break;
|
|
2207
|
+
|
|
2208
|
+
case QUERY:
|
|
2209
|
+
if (!stateOverride && chr == '#') {
|
|
2210
|
+
url.fragment = '';
|
|
2211
|
+
state = FRAGMENT;
|
|
2212
|
+
} else if (chr != EOF) {
|
|
2213
|
+
if (chr == "'" && url.isSpecial()) url.query += '%27';
|
|
2214
|
+
else if (chr == '#') url.query += '%23';
|
|
2215
|
+
else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
|
|
2216
|
+
} break;
|
|
2217
|
+
|
|
2218
|
+
case FRAGMENT:
|
|
2219
|
+
if (chr != EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
|
|
2220
|
+
break;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
pointer++;
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2226
|
+
// https://url.spec.whatwg.org/#host-parsing
|
|
2227
|
+
parseHost: function (input) {
|
|
2228
|
+
var result, codePoints, index;
|
|
2229
|
+
if (charAt(input, 0) == '[') {
|
|
2230
|
+
if (charAt(input, input.length - 1) != ']') return INVALID_HOST;
|
|
2231
|
+
result = parseIPv6(stringSlice(input, 1, -1));
|
|
2232
|
+
if (!result) return INVALID_HOST;
|
|
2233
|
+
this.host = result;
|
|
2234
|
+
// opaque host
|
|
2235
|
+
} else if (!this.isSpecial()) {
|
|
2236
|
+
if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
|
|
2237
|
+
result = '';
|
|
2238
|
+
codePoints = arrayFrom(input);
|
|
2239
|
+
for (index = 0; index < codePoints.length; index++) {
|
|
2240
|
+
result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
|
|
2241
|
+
}
|
|
2242
|
+
this.host = result;
|
|
2243
|
+
} else {
|
|
2244
|
+
input = toASCII(input);
|
|
2245
|
+
if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
|
|
2246
|
+
result = parseIPv4(input);
|
|
2247
|
+
if (result === null) return INVALID_HOST;
|
|
2248
|
+
this.host = result;
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
// https://url.spec.whatwg.org/#cannot-have-a-username-password-port
|
|
2252
|
+
cannotHaveUsernamePasswordPort: function () {
|
|
2253
|
+
return !this.host || this.cannotBeABaseURL || this.scheme == 'file';
|
|
2254
|
+
},
|
|
2255
|
+
// https://url.spec.whatwg.org/#include-credentials
|
|
2256
|
+
includesCredentials: function () {
|
|
2257
|
+
return this.username != '' || this.password != '';
|
|
2258
|
+
},
|
|
2259
|
+
// https://url.spec.whatwg.org/#is-special
|
|
2260
|
+
isSpecial: function () {
|
|
2261
|
+
return hasOwn(specialSchemes, this.scheme);
|
|
2262
|
+
},
|
|
2263
|
+
// https://url.spec.whatwg.org/#shorten-a-urls-path
|
|
2264
|
+
shortenPath: function () {
|
|
2265
|
+
var path = this.path;
|
|
2266
|
+
var pathSize = path.length;
|
|
2267
|
+
if (pathSize && (this.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
|
|
2268
|
+
path.length--;
|
|
2269
|
+
}
|
|
2270
|
+
},
|
|
2271
|
+
// https://url.spec.whatwg.org/#concept-url-serializer
|
|
2272
|
+
serialize: function () {
|
|
2273
|
+
var url = this;
|
|
2274
|
+
var scheme = url.scheme;
|
|
2275
|
+
var username = url.username;
|
|
2276
|
+
var password = url.password;
|
|
2277
|
+
var host = url.host;
|
|
2278
|
+
var port = url.port;
|
|
2279
|
+
var path = url.path;
|
|
2280
|
+
var query = url.query;
|
|
2281
|
+
var fragment = url.fragment;
|
|
2282
|
+
var output = scheme + ':';
|
|
2283
|
+
if (host !== null) {
|
|
2284
|
+
output += '//';
|
|
2285
|
+
if (url.includesCredentials()) {
|
|
2286
|
+
output += username + (password ? ':' + password : '') + '@';
|
|
2287
|
+
}
|
|
2288
|
+
output += serializeHost(host);
|
|
2289
|
+
if (port !== null) output += ':' + port;
|
|
2290
|
+
} else if (scheme == 'file') output += '//';
|
|
2291
|
+
output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
|
|
2292
|
+
if (query !== null) output += '?' + query;
|
|
2293
|
+
if (fragment !== null) output += '#' + fragment;
|
|
2294
|
+
return output;
|
|
2295
|
+
},
|
|
2296
|
+
// https://url.spec.whatwg.org/#dom-url-href
|
|
2297
|
+
setHref: function (href) {
|
|
2298
|
+
var failure = this.parse(href);
|
|
2299
|
+
if (failure) throw TypeError(failure);
|
|
2300
|
+
this.searchParams.update();
|
|
2301
|
+
},
|
|
2302
|
+
// https://url.spec.whatwg.org/#dom-url-origin
|
|
2303
|
+
getOrigin: function () {
|
|
2304
|
+
var scheme = this.scheme;
|
|
2305
|
+
var port = this.port;
|
|
2306
|
+
if (scheme == 'blob') try {
|
|
2307
|
+
return new URLConstructor(scheme.path[0]).origin;
|
|
2308
|
+
} catch (error) {
|
|
2309
|
+
return 'null';
|
|
2310
|
+
}
|
|
2311
|
+
if (scheme == 'file' || !this.isSpecial()) return 'null';
|
|
2312
|
+
return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
|
|
2313
|
+
},
|
|
2314
|
+
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
2315
|
+
getProtocol: function () {
|
|
2316
|
+
return this.scheme + ':';
|
|
2317
|
+
},
|
|
2318
|
+
setProtocol: function (protocol) {
|
|
2319
|
+
this.parse($toString(protocol) + ':', SCHEME_START);
|
|
2320
|
+
},
|
|
2321
|
+
// https://url.spec.whatwg.org/#dom-url-username
|
|
2322
|
+
getUsername: function () {
|
|
2323
|
+
return this.username;
|
|
2324
|
+
},
|
|
2325
|
+
setUsername: function (username) {
|
|
2326
|
+
var codePoints = arrayFrom($toString(username));
|
|
2327
|
+
if (this.cannotHaveUsernamePasswordPort()) return;
|
|
2328
|
+
this.username = '';
|
|
2329
|
+
for (var i = 0; i < codePoints.length; i++) {
|
|
2330
|
+
this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
|
2331
|
+
}
|
|
2332
|
+
},
|
|
2333
|
+
// https://url.spec.whatwg.org/#dom-url-password
|
|
2334
|
+
getPassword: function () {
|
|
2335
|
+
return this.password;
|
|
2336
|
+
},
|
|
2337
|
+
setPassword: function (password) {
|
|
2338
|
+
var codePoints = arrayFrom($toString(password));
|
|
2339
|
+
if (this.cannotHaveUsernamePasswordPort()) return;
|
|
2340
|
+
this.password = '';
|
|
2341
|
+
for (var i = 0; i < codePoints.length; i++) {
|
|
2342
|
+
this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
|
|
2343
|
+
}
|
|
2344
|
+
},
|
|
2345
|
+
// https://url.spec.whatwg.org/#dom-url-host
|
|
2346
|
+
getHost: function () {
|
|
2347
|
+
var host = this.host;
|
|
2348
|
+
var port = this.port;
|
|
2349
|
+
return host === null ? ''
|
|
2350
|
+
: port === null ? serializeHost(host)
|
|
2351
|
+
: serializeHost(host) + ':' + port;
|
|
2352
|
+
},
|
|
2353
|
+
setHost: function (host) {
|
|
2354
|
+
if (this.cannotBeABaseURL) return;
|
|
2355
|
+
this.parse(host, HOST);
|
|
2356
|
+
},
|
|
2357
|
+
// https://url.spec.whatwg.org/#dom-url-hostname
|
|
2358
|
+
getHostname: function () {
|
|
2359
|
+
var host = this.host;
|
|
2360
|
+
return host === null ? '' : serializeHost(host);
|
|
2361
|
+
},
|
|
2362
|
+
setHostname: function (hostname) {
|
|
2363
|
+
if (this.cannotBeABaseURL) return;
|
|
2364
|
+
this.parse(hostname, HOSTNAME);
|
|
2365
|
+
},
|
|
2366
|
+
// https://url.spec.whatwg.org/#dom-url-port
|
|
2367
|
+
getPort: function () {
|
|
2368
|
+
var port = this.port;
|
|
2369
|
+
return port === null ? '' : $toString(port);
|
|
2370
|
+
},
|
|
2371
|
+
setPort: function (port) {
|
|
2372
|
+
if (this.cannotHaveUsernamePasswordPort()) return;
|
|
2373
|
+
port = $toString(port);
|
|
2374
|
+
if (port == '') this.port = null;
|
|
2375
|
+
else this.parse(port, PORT);
|
|
2376
|
+
},
|
|
2377
|
+
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
2378
|
+
getPathname: function () {
|
|
2379
|
+
var path = this.path;
|
|
2380
|
+
return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
|
|
2381
|
+
},
|
|
2382
|
+
setPathname: function (pathname) {
|
|
2383
|
+
if (this.cannotBeABaseURL) return;
|
|
2384
|
+
this.path = [];
|
|
2385
|
+
this.parse(pathname, PATH_START);
|
|
2386
|
+
},
|
|
2387
|
+
// https://url.spec.whatwg.org/#dom-url-search
|
|
2388
|
+
getSearch: function () {
|
|
2389
|
+
var query = this.query;
|
|
2390
|
+
return query ? '?' + query : '';
|
|
2391
|
+
},
|
|
2392
|
+
setSearch: function (search) {
|
|
2393
|
+
search = $toString(search);
|
|
2394
|
+
if (search == '') {
|
|
2395
|
+
this.query = null;
|
|
2396
|
+
} else {
|
|
2397
|
+
if ('?' == charAt(search, 0)) search = stringSlice(search, 1);
|
|
2398
|
+
this.query = '';
|
|
2399
|
+
this.parse(search, QUERY);
|
|
2400
|
+
}
|
|
2401
|
+
this.searchParams.update();
|
|
2402
|
+
},
|
|
2403
|
+
// https://url.spec.whatwg.org/#dom-url-searchparams
|
|
2404
|
+
getSearchParams: function () {
|
|
2405
|
+
return this.searchParams.facade;
|
|
2406
|
+
},
|
|
2407
|
+
// https://url.spec.whatwg.org/#dom-url-hash
|
|
2408
|
+
getHash: function () {
|
|
2409
|
+
var fragment = this.fragment;
|
|
2410
|
+
return fragment ? '#' + fragment : '';
|
|
2411
|
+
},
|
|
2412
|
+
setHash: function (hash) {
|
|
2413
|
+
hash = $toString(hash);
|
|
2414
|
+
if (hash == '') {
|
|
2415
|
+
this.fragment = null;
|
|
2416
|
+
return;
|
|
2417
|
+
}
|
|
2418
|
+
if ('#' == charAt(hash, 0)) hash = stringSlice(hash, 1);
|
|
2419
|
+
this.fragment = '';
|
|
2420
|
+
this.parse(hash, FRAGMENT);
|
|
2421
|
+
},
|
|
2422
|
+
update: function () {
|
|
2423
|
+
this.query = this.searchParams.serialize() || null;
|
|
2424
|
+
}
|
|
2425
|
+
};
|
|
2426
|
+
|
|
2427
|
+
// `URL` constructor
|
|
2428
|
+
// https://url.spec.whatwg.org/#url-class
|
|
2429
|
+
var URLConstructor = function URL(url /* , base */) {
|
|
2430
|
+
var that = anInstance(this, URLPrototype);
|
|
2431
|
+
var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
|
|
2432
|
+
var state = setInternalState(that, new URLState(url, false, base));
|
|
2433
|
+
if (!DESCRIPTORS) {
|
|
2434
|
+
that.href = state.serialize();
|
|
2435
|
+
that.origin = state.getOrigin();
|
|
2436
|
+
that.protocol = state.getProtocol();
|
|
2437
|
+
that.username = state.getUsername();
|
|
2438
|
+
that.password = state.getPassword();
|
|
2439
|
+
that.host = state.getHost();
|
|
2440
|
+
that.hostname = state.getHostname();
|
|
2441
|
+
that.port = state.getPort();
|
|
2442
|
+
that.pathname = state.getPathname();
|
|
2443
|
+
that.search = state.getSearch();
|
|
2444
|
+
that.searchParams = state.getSearchParams();
|
|
2445
|
+
that.hash = state.getHash();
|
|
2446
|
+
}
|
|
2447
|
+
};
|
|
2448
|
+
|
|
2449
|
+
var URLPrototype = URLConstructor.prototype;
|
|
2450
|
+
|
|
2451
|
+
var accessorDescriptor = function (getter, setter) {
|
|
2452
|
+
return {
|
|
2453
|
+
get: function () {
|
|
2454
|
+
return getInternalURLState(this)[getter]();
|
|
2455
|
+
},
|
|
2456
|
+
set: setter && function (value) {
|
|
2457
|
+
return getInternalURLState(this)[setter](value);
|
|
2458
|
+
},
|
|
2459
|
+
configurable: true,
|
|
2460
|
+
enumerable: true
|
|
2461
|
+
};
|
|
2462
|
+
};
|
|
2463
|
+
|
|
2464
|
+
if (DESCRIPTORS) {
|
|
2465
|
+
defineProperties(URLPrototype, {
|
|
2466
|
+
// `URL.prototype.href` accessors pair
|
|
2467
|
+
// https://url.spec.whatwg.org/#dom-url-href
|
|
2468
|
+
href: accessorDescriptor('serialize', 'setHref'),
|
|
2469
|
+
// `URL.prototype.origin` getter
|
|
2470
|
+
// https://url.spec.whatwg.org/#dom-url-origin
|
|
2471
|
+
origin: accessorDescriptor('getOrigin'),
|
|
2472
|
+
// `URL.prototype.protocol` accessors pair
|
|
2473
|
+
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
2474
|
+
protocol: accessorDescriptor('getProtocol', 'setProtocol'),
|
|
2475
|
+
// `URL.prototype.username` accessors pair
|
|
2476
|
+
// https://url.spec.whatwg.org/#dom-url-username
|
|
2477
|
+
username: accessorDescriptor('getUsername', 'setUsername'),
|
|
2478
|
+
// `URL.prototype.password` accessors pair
|
|
2479
|
+
// https://url.spec.whatwg.org/#dom-url-password
|
|
2480
|
+
password: accessorDescriptor('getPassword', 'setPassword'),
|
|
2481
|
+
// `URL.prototype.host` accessors pair
|
|
2482
|
+
// https://url.spec.whatwg.org/#dom-url-host
|
|
2483
|
+
host: accessorDescriptor('getHost', 'setHost'),
|
|
2484
|
+
// `URL.prototype.hostname` accessors pair
|
|
2485
|
+
// https://url.spec.whatwg.org/#dom-url-hostname
|
|
2486
|
+
hostname: accessorDescriptor('getHostname', 'setHostname'),
|
|
2487
|
+
// `URL.prototype.port` accessors pair
|
|
2488
|
+
// https://url.spec.whatwg.org/#dom-url-port
|
|
2489
|
+
port: accessorDescriptor('getPort', 'setPort'),
|
|
2490
|
+
// `URL.prototype.pathname` accessors pair
|
|
2491
|
+
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
2492
|
+
pathname: accessorDescriptor('getPathname', 'setPathname'),
|
|
2493
|
+
// `URL.prototype.search` accessors pair
|
|
2494
|
+
// https://url.spec.whatwg.org/#dom-url-search
|
|
2495
|
+
search: accessorDescriptor('getSearch', 'setSearch'),
|
|
2496
|
+
// `URL.prototype.searchParams` getter
|
|
2497
|
+
// https://url.spec.whatwg.org/#dom-url-searchparams
|
|
2498
|
+
searchParams: accessorDescriptor('getSearchParams'),
|
|
2499
|
+
// `URL.prototype.hash` accessors pair
|
|
2500
|
+
// https://url.spec.whatwg.org/#dom-url-hash
|
|
2501
|
+
hash: accessorDescriptor('getHash', 'setHash')
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
// `URL.prototype.toJSON` method
|
|
2506
|
+
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
2507
|
+
redefine(URLPrototype, 'toJSON', function toJSON() {
|
|
2508
|
+
return getInternalURLState(this).serialize();
|
|
2509
|
+
}, { enumerable: true });
|
|
2510
|
+
|
|
2511
|
+
// `URL.prototype.toString` method
|
|
2512
|
+
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
2513
|
+
redefine(URLPrototype, 'toString', function toString() {
|
|
2514
|
+
return getInternalURLState(this).serialize();
|
|
2515
|
+
}, { enumerable: true });
|
|
2516
|
+
|
|
2517
|
+
if (NativeURL) {
|
|
2518
|
+
var nativeCreateObjectURL = NativeURL.createObjectURL;
|
|
2519
|
+
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
2520
|
+
// `URL.createObjectURL` method
|
|
2521
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
2522
|
+
if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
|
|
2523
|
+
// `URL.revokeObjectURL` method
|
|
2524
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
2525
|
+
if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2528
|
+
setToStringTag(URLConstructor, 'URL');
|
|
2529
|
+
|
|
2530
|
+
$({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
2531
|
+
URL: URLConstructor
|
|
2532
|
+
});
|
|
2533
|
+
|
|
2534
|
+
|
|
1423
2535
|
/***/ }),
|
|
1424
2536
|
|
|
1425
2537
|
/***/ "2ba4":
|
|
@@ -20279,59 +21391,6 @@ var uncurryThis = __webpack_require__("e330");
|
|
|
20279
21391
|
module.exports = uncurryThis({}.isPrototypeOf);
|
|
20280
21392
|
|
|
20281
21393
|
|
|
20282
|
-
/***/ }),
|
|
20283
|
-
|
|
20284
|
-
/***/ "3ad2":
|
|
20285
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
20286
|
-
|
|
20287
|
-
var map = {
|
|
20288
|
-
"./adv-query/src/main.vue": "a3f9",
|
|
20289
|
-
"./area-select/src/main.vue": "aa30",
|
|
20290
|
-
"./authority/src/main.vue": "46d3",
|
|
20291
|
-
"./avatar-list/src/main.vue": "e2db",
|
|
20292
|
-
"./custom-query/src/main.vue": "8e19",
|
|
20293
|
-
"./dialog/src/main.vue": "40df",
|
|
20294
|
-
"./edit-area/src/main.vue": "70ec",
|
|
20295
|
-
"./excel/src/main.vue": "d546",
|
|
20296
|
-
"./export-dialog/src/main.vue": "89de",
|
|
20297
|
-
"./filter-drop/src/main.vue": "d3da",
|
|
20298
|
-
"./float-footer/src/main.vue": "905f",
|
|
20299
|
-
"./form-active/src/main.vue": "d5de",
|
|
20300
|
-
"./fragment/src/main.vue": "3e9a",
|
|
20301
|
-
"./full-table/src/main.vue": "ce3c",
|
|
20302
|
-
"./image-viewer/src/main.vue": "72b2",
|
|
20303
|
-
"./nav-menu/src/main.vue": "926c",
|
|
20304
|
-
"./organize-dialog/src/main.vue": "f1ee",
|
|
20305
|
-
"./pagination/src/main.vue": "6549",
|
|
20306
|
-
"./query-form/src/main.vue": "83d9",
|
|
20307
|
-
"./select-vague/src/main.vue": "6f0b",
|
|
20308
|
-
"./svg/src/main.vue": "5b81",
|
|
20309
|
-
"./table-filter/src/main.vue": "9c3d",
|
|
20310
|
-
"./table/src/main.vue": "4740",
|
|
20311
|
-
"./tool-group/src/main.vue": "884a",
|
|
20312
|
-
"./top-bar/src/main.vue": "2ce2"
|
|
20313
|
-
};
|
|
20314
|
-
|
|
20315
|
-
|
|
20316
|
-
function webpackContext(req) {
|
|
20317
|
-
var id = webpackContextResolve(req);
|
|
20318
|
-
return __webpack_require__(id);
|
|
20319
|
-
}
|
|
20320
|
-
function webpackContextResolve(req) {
|
|
20321
|
-
if(!__webpack_require__.o(map, req)) {
|
|
20322
|
-
var e = new Error("Cannot find module '" + req + "'");
|
|
20323
|
-
e.code = 'MODULE_NOT_FOUND';
|
|
20324
|
-
throw e;
|
|
20325
|
-
}
|
|
20326
|
-
return map[req];
|
|
20327
|
-
}
|
|
20328
|
-
webpackContext.keys = function webpackContextKeys() {
|
|
20329
|
-
return Object.keys(map);
|
|
20330
|
-
};
|
|
20331
|
-
webpackContext.resolve = webpackContextResolve;
|
|
20332
|
-
module.exports = webpackContext;
|
|
20333
|
-
webpackContext.id = "3ad2";
|
|
20334
|
-
|
|
20335
21394
|
/***/ }),
|
|
20336
21395
|
|
|
20337
21396
|
/***/ "3bbe":
|
|
@@ -20523,6 +21582,17 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
20523
21582
|
|
|
20524
21583
|
/* harmony default export */ var main = __webpack_exports__["default"] = (component.exports);
|
|
20525
21584
|
|
|
21585
|
+
/***/ }),
|
|
21586
|
+
|
|
21587
|
+
/***/ "3f11":
|
|
21588
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
21589
|
+
|
|
21590
|
+
"use strict";
|
|
21591
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6f87");
|
|
21592
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
21593
|
+
/* unused harmony reexport * */
|
|
21594
|
+
|
|
21595
|
+
|
|
20526
21596
|
/***/ }),
|
|
20527
21597
|
|
|
20528
21598
|
/***/ "3f8c":
|
|
@@ -23507,6 +24577,250 @@ module.exports = {
|
|
|
23507
24577
|
};
|
|
23508
24578
|
|
|
23509
24579
|
|
|
24580
|
+
/***/ }),
|
|
24581
|
+
|
|
24582
|
+
/***/ "5eca":
|
|
24583
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
24584
|
+
|
|
24585
|
+
var map = {
|
|
24586
|
+
"./adv-query/src/main.vue": "a3f9",
|
|
24587
|
+
"./area-select/src/main.vue": "aa30",
|
|
24588
|
+
"./authority/src/main.vue": "46d3",
|
|
24589
|
+
"./avatar-list/src/main.vue": "e2db",
|
|
24590
|
+
"./custom-query/src/main.vue": "8e19",
|
|
24591
|
+
"./dialog/src/main.vue": "40df",
|
|
24592
|
+
"./edit-area/src/main.vue": "70ec",
|
|
24593
|
+
"./excel/src/main.vue": "d546",
|
|
24594
|
+
"./export-dialog/src/main.vue": "89de",
|
|
24595
|
+
"./filter-drop/src/main.vue": "d3da",
|
|
24596
|
+
"./float-footer/src/main.vue": "905f",
|
|
24597
|
+
"./form-active/src/main.vue": "d5de",
|
|
24598
|
+
"./fragment/src/main.vue": "3e9a",
|
|
24599
|
+
"./full-table/src/main.vue": "ce3c",
|
|
24600
|
+
"./image-viewer/src/main.vue": "72b2",
|
|
24601
|
+
"./nav-menu/src/main.vue": "926c",
|
|
24602
|
+
"./organize-dialog/src/main.vue": "f1ee",
|
|
24603
|
+
"./pagination/src/main.vue": "6549",
|
|
24604
|
+
"./query-form/src/main.vue": "83d9",
|
|
24605
|
+
"./select-vague/src/main.vue": "6f0b",
|
|
24606
|
+
"./svg/src/main.vue": "5b81",
|
|
24607
|
+
"./table-filter/src/main.vue": "9c3d",
|
|
24608
|
+
"./table/src/main.vue": "4740",
|
|
24609
|
+
"./tool-group/src/main.vue": "884a",
|
|
24610
|
+
"./top-bar/src/main.vue": "2ce2",
|
|
24611
|
+
"./upload/src/main.vue": "d2ee"
|
|
24612
|
+
};
|
|
24613
|
+
|
|
24614
|
+
|
|
24615
|
+
function webpackContext(req) {
|
|
24616
|
+
var id = webpackContextResolve(req);
|
|
24617
|
+
return __webpack_require__(id);
|
|
24618
|
+
}
|
|
24619
|
+
function webpackContextResolve(req) {
|
|
24620
|
+
if(!__webpack_require__.o(map, req)) {
|
|
24621
|
+
var e = new Error("Cannot find module '" + req + "'");
|
|
24622
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
24623
|
+
throw e;
|
|
24624
|
+
}
|
|
24625
|
+
return map[req];
|
|
24626
|
+
}
|
|
24627
|
+
webpackContext.keys = function webpackContextKeys() {
|
|
24628
|
+
return Object.keys(map);
|
|
24629
|
+
};
|
|
24630
|
+
webpackContext.resolve = webpackContextResolve;
|
|
24631
|
+
module.exports = webpackContext;
|
|
24632
|
+
webpackContext.id = "5eca";
|
|
24633
|
+
|
|
24634
|
+
/***/ }),
|
|
24635
|
+
|
|
24636
|
+
/***/ "5fb2":
|
|
24637
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
24638
|
+
|
|
24639
|
+
"use strict";
|
|
24640
|
+
|
|
24641
|
+
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
24642
|
+
var global = __webpack_require__("da84");
|
|
24643
|
+
var uncurryThis = __webpack_require__("e330");
|
|
24644
|
+
|
|
24645
|
+
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
24646
|
+
var base = 36;
|
|
24647
|
+
var tMin = 1;
|
|
24648
|
+
var tMax = 26;
|
|
24649
|
+
var skew = 38;
|
|
24650
|
+
var damp = 700;
|
|
24651
|
+
var initialBias = 72;
|
|
24652
|
+
var initialN = 128; // 0x80
|
|
24653
|
+
var delimiter = '-'; // '\x2D'
|
|
24654
|
+
var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
|
|
24655
|
+
var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
24656
|
+
var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
24657
|
+
var baseMinusTMin = base - tMin;
|
|
24658
|
+
|
|
24659
|
+
var RangeError = global.RangeError;
|
|
24660
|
+
var exec = uncurryThis(regexSeparators.exec);
|
|
24661
|
+
var floor = Math.floor;
|
|
24662
|
+
var fromCharCode = String.fromCharCode;
|
|
24663
|
+
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
24664
|
+
var join = uncurryThis([].join);
|
|
24665
|
+
var push = uncurryThis([].push);
|
|
24666
|
+
var replace = uncurryThis(''.replace);
|
|
24667
|
+
var split = uncurryThis(''.split);
|
|
24668
|
+
var toLowerCase = uncurryThis(''.toLowerCase);
|
|
24669
|
+
|
|
24670
|
+
/**
|
|
24671
|
+
* Creates an array containing the numeric code points of each Unicode
|
|
24672
|
+
* character in the string. While JavaScript uses UCS-2 internally,
|
|
24673
|
+
* this function will convert a pair of surrogate halves (each of which
|
|
24674
|
+
* UCS-2 exposes as separate characters) into a single code point,
|
|
24675
|
+
* matching UTF-16.
|
|
24676
|
+
*/
|
|
24677
|
+
var ucs2decode = function (string) {
|
|
24678
|
+
var output = [];
|
|
24679
|
+
var counter = 0;
|
|
24680
|
+
var length = string.length;
|
|
24681
|
+
while (counter < length) {
|
|
24682
|
+
var value = charCodeAt(string, counter++);
|
|
24683
|
+
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
24684
|
+
// It's a high surrogate, and there is a next character.
|
|
24685
|
+
var extra = charCodeAt(string, counter++);
|
|
24686
|
+
if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
|
|
24687
|
+
push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
24688
|
+
} else {
|
|
24689
|
+
// It's an unmatched surrogate; only append this code unit, in case the
|
|
24690
|
+
// next code unit is the high surrogate of a surrogate pair.
|
|
24691
|
+
push(output, value);
|
|
24692
|
+
counter--;
|
|
24693
|
+
}
|
|
24694
|
+
} else {
|
|
24695
|
+
push(output, value);
|
|
24696
|
+
}
|
|
24697
|
+
}
|
|
24698
|
+
return output;
|
|
24699
|
+
};
|
|
24700
|
+
|
|
24701
|
+
/**
|
|
24702
|
+
* Converts a digit/integer into a basic code point.
|
|
24703
|
+
*/
|
|
24704
|
+
var digitToBasic = function (digit) {
|
|
24705
|
+
// 0..25 map to ASCII a..z or A..Z
|
|
24706
|
+
// 26..35 map to ASCII 0..9
|
|
24707
|
+
return digit + 22 + 75 * (digit < 26);
|
|
24708
|
+
};
|
|
24709
|
+
|
|
24710
|
+
/**
|
|
24711
|
+
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
24712
|
+
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
24713
|
+
*/
|
|
24714
|
+
var adapt = function (delta, numPoints, firstTime) {
|
|
24715
|
+
var k = 0;
|
|
24716
|
+
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
24717
|
+
delta += floor(delta / numPoints);
|
|
24718
|
+
while (delta > baseMinusTMin * tMax >> 1) {
|
|
24719
|
+
delta = floor(delta / baseMinusTMin);
|
|
24720
|
+
k += base;
|
|
24721
|
+
}
|
|
24722
|
+
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
24723
|
+
};
|
|
24724
|
+
|
|
24725
|
+
/**
|
|
24726
|
+
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
24727
|
+
* Punycode string of ASCII-only symbols.
|
|
24728
|
+
*/
|
|
24729
|
+
var encode = function (input) {
|
|
24730
|
+
var output = [];
|
|
24731
|
+
|
|
24732
|
+
// Convert the input in UCS-2 to an array of Unicode code points.
|
|
24733
|
+
input = ucs2decode(input);
|
|
24734
|
+
|
|
24735
|
+
// Cache the length.
|
|
24736
|
+
var inputLength = input.length;
|
|
24737
|
+
|
|
24738
|
+
// Initialize the state.
|
|
24739
|
+
var n = initialN;
|
|
24740
|
+
var delta = 0;
|
|
24741
|
+
var bias = initialBias;
|
|
24742
|
+
var i, currentValue;
|
|
24743
|
+
|
|
24744
|
+
// Handle the basic code points.
|
|
24745
|
+
for (i = 0; i < input.length; i++) {
|
|
24746
|
+
currentValue = input[i];
|
|
24747
|
+
if (currentValue < 0x80) {
|
|
24748
|
+
push(output, fromCharCode(currentValue));
|
|
24749
|
+
}
|
|
24750
|
+
}
|
|
24751
|
+
|
|
24752
|
+
var basicLength = output.length; // number of basic code points.
|
|
24753
|
+
var handledCPCount = basicLength; // number of code points that have been handled;
|
|
24754
|
+
|
|
24755
|
+
// Finish the basic string with a delimiter unless it's empty.
|
|
24756
|
+
if (basicLength) {
|
|
24757
|
+
push(output, delimiter);
|
|
24758
|
+
}
|
|
24759
|
+
|
|
24760
|
+
// Main encoding loop:
|
|
24761
|
+
while (handledCPCount < inputLength) {
|
|
24762
|
+
// All non-basic code points < n have been handled already. Find the next larger one:
|
|
24763
|
+
var m = maxInt;
|
|
24764
|
+
for (i = 0; i < input.length; i++) {
|
|
24765
|
+
currentValue = input[i];
|
|
24766
|
+
if (currentValue >= n && currentValue < m) {
|
|
24767
|
+
m = currentValue;
|
|
24768
|
+
}
|
|
24769
|
+
}
|
|
24770
|
+
|
|
24771
|
+
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
|
|
24772
|
+
var handledCPCountPlusOne = handledCPCount + 1;
|
|
24773
|
+
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
24774
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
24775
|
+
}
|
|
24776
|
+
|
|
24777
|
+
delta += (m - n) * handledCPCountPlusOne;
|
|
24778
|
+
n = m;
|
|
24779
|
+
|
|
24780
|
+
for (i = 0; i < input.length; i++) {
|
|
24781
|
+
currentValue = input[i];
|
|
24782
|
+
if (currentValue < n && ++delta > maxInt) {
|
|
24783
|
+
throw RangeError(OVERFLOW_ERROR);
|
|
24784
|
+
}
|
|
24785
|
+
if (currentValue == n) {
|
|
24786
|
+
// Represent delta as a generalized variable-length integer.
|
|
24787
|
+
var q = delta;
|
|
24788
|
+
var k = base;
|
|
24789
|
+
while (true) {
|
|
24790
|
+
var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
|
24791
|
+
if (q < t) break;
|
|
24792
|
+
var qMinusT = q - t;
|
|
24793
|
+
var baseMinusT = base - t;
|
|
24794
|
+
push(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
|
|
24795
|
+
q = floor(qMinusT / baseMinusT);
|
|
24796
|
+
k += base;
|
|
24797
|
+
}
|
|
24798
|
+
|
|
24799
|
+
push(output, fromCharCode(digitToBasic(q)));
|
|
24800
|
+
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
24801
|
+
delta = 0;
|
|
24802
|
+
handledCPCount++;
|
|
24803
|
+
}
|
|
24804
|
+
}
|
|
24805
|
+
|
|
24806
|
+
delta++;
|
|
24807
|
+
n++;
|
|
24808
|
+
}
|
|
24809
|
+
return join(output, '');
|
|
24810
|
+
};
|
|
24811
|
+
|
|
24812
|
+
module.exports = function (input) {
|
|
24813
|
+
var encoded = [];
|
|
24814
|
+
var labels = split(replace(toLowerCase(input), regexSeparators, '\u002E'), '.');
|
|
24815
|
+
var i, label;
|
|
24816
|
+
for (i = 0; i < labels.length; i++) {
|
|
24817
|
+
label = labels[i];
|
|
24818
|
+
push(encoded, exec(regexNonASCII, label) ? 'xn--' + encode(label) : label);
|
|
24819
|
+
}
|
|
24820
|
+
return join(encoded, '.');
|
|
24821
|
+
};
|
|
24822
|
+
|
|
24823
|
+
|
|
23510
24824
|
/***/ }),
|
|
23511
24825
|
|
|
23512
24826
|
/***/ "605d":
|
|
@@ -24608,6 +25922,13 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
24608
25922
|
|
|
24609
25923
|
/***/ }),
|
|
24610
25924
|
|
|
25925
|
+
/***/ "6f87":
|
|
25926
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
25927
|
+
|
|
25928
|
+
// extracted by mini-css-extract-plugin
|
|
25929
|
+
|
|
25930
|
+
/***/ }),
|
|
25931
|
+
|
|
24611
25932
|
/***/ "7014":
|
|
24612
25933
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
24613
25934
|
|
|
@@ -27601,6 +28922,397 @@ var POLYFILL = isForced.POLYFILL = 'P';
|
|
|
27601
28922
|
module.exports = isForced;
|
|
27602
28923
|
|
|
27603
28924
|
|
|
28925
|
+
/***/ }),
|
|
28926
|
+
|
|
28927
|
+
/***/ "9861":
|
|
28928
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
28929
|
+
|
|
28930
|
+
"use strict";
|
|
28931
|
+
|
|
28932
|
+
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
28933
|
+
__webpack_require__("e260");
|
|
28934
|
+
var $ = __webpack_require__("23e7");
|
|
28935
|
+
var global = __webpack_require__("da84");
|
|
28936
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
28937
|
+
var call = __webpack_require__("c65b");
|
|
28938
|
+
var uncurryThis = __webpack_require__("e330");
|
|
28939
|
+
var USE_NATIVE_URL = __webpack_require__("0d3b");
|
|
28940
|
+
var redefine = __webpack_require__("6eeb");
|
|
28941
|
+
var redefineAll = __webpack_require__("e2cc");
|
|
28942
|
+
var setToStringTag = __webpack_require__("d44e");
|
|
28943
|
+
var createIteratorConstructor = __webpack_require__("9ed3");
|
|
28944
|
+
var InternalStateModule = __webpack_require__("69f3");
|
|
28945
|
+
var anInstance = __webpack_require__("19aa");
|
|
28946
|
+
var isCallable = __webpack_require__("1626");
|
|
28947
|
+
var hasOwn = __webpack_require__("1a2d");
|
|
28948
|
+
var bind = __webpack_require__("0366");
|
|
28949
|
+
var classof = __webpack_require__("f5df");
|
|
28950
|
+
var anObject = __webpack_require__("825a");
|
|
28951
|
+
var isObject = __webpack_require__("861d");
|
|
28952
|
+
var $toString = __webpack_require__("577e");
|
|
28953
|
+
var create = __webpack_require__("7c73");
|
|
28954
|
+
var createPropertyDescriptor = __webpack_require__("5c6c");
|
|
28955
|
+
var getIterator = __webpack_require__("9a1f");
|
|
28956
|
+
var getIteratorMethod = __webpack_require__("35a1");
|
|
28957
|
+
var validateArgumentsLength = __webpack_require__("d6d6");
|
|
28958
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
28959
|
+
var arraySort = __webpack_require__("addb");
|
|
28960
|
+
|
|
28961
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
28962
|
+
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
28963
|
+
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
28964
|
+
var setInternalState = InternalStateModule.set;
|
|
28965
|
+
var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
|
|
28966
|
+
var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
28967
|
+
|
|
28968
|
+
var n$Fetch = getBuiltIn('fetch');
|
|
28969
|
+
var N$Request = getBuiltIn('Request');
|
|
28970
|
+
var Headers = getBuiltIn('Headers');
|
|
28971
|
+
var RequestPrototype = N$Request && N$Request.prototype;
|
|
28972
|
+
var HeadersPrototype = Headers && Headers.prototype;
|
|
28973
|
+
var RegExp = global.RegExp;
|
|
28974
|
+
var TypeError = global.TypeError;
|
|
28975
|
+
var decodeURIComponent = global.decodeURIComponent;
|
|
28976
|
+
var encodeURIComponent = global.encodeURIComponent;
|
|
28977
|
+
var charAt = uncurryThis(''.charAt);
|
|
28978
|
+
var join = uncurryThis([].join);
|
|
28979
|
+
var push = uncurryThis([].push);
|
|
28980
|
+
var replace = uncurryThis(''.replace);
|
|
28981
|
+
var shift = uncurryThis([].shift);
|
|
28982
|
+
var splice = uncurryThis([].splice);
|
|
28983
|
+
var split = uncurryThis(''.split);
|
|
28984
|
+
var stringSlice = uncurryThis(''.slice);
|
|
28985
|
+
|
|
28986
|
+
var plus = /\+/g;
|
|
28987
|
+
var sequences = Array(4);
|
|
28988
|
+
|
|
28989
|
+
var percentSequence = function (bytes) {
|
|
28990
|
+
return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
|
|
28991
|
+
};
|
|
28992
|
+
|
|
28993
|
+
var percentDecode = function (sequence) {
|
|
28994
|
+
try {
|
|
28995
|
+
return decodeURIComponent(sequence);
|
|
28996
|
+
} catch (error) {
|
|
28997
|
+
return sequence;
|
|
28998
|
+
}
|
|
28999
|
+
};
|
|
29000
|
+
|
|
29001
|
+
var deserialize = function (it) {
|
|
29002
|
+
var result = replace(it, plus, ' ');
|
|
29003
|
+
var bytes = 4;
|
|
29004
|
+
try {
|
|
29005
|
+
return decodeURIComponent(result);
|
|
29006
|
+
} catch (error) {
|
|
29007
|
+
while (bytes) {
|
|
29008
|
+
result = replace(result, percentSequence(bytes--), percentDecode);
|
|
29009
|
+
}
|
|
29010
|
+
return result;
|
|
29011
|
+
}
|
|
29012
|
+
};
|
|
29013
|
+
|
|
29014
|
+
var find = /[!'()~]|%20/g;
|
|
29015
|
+
|
|
29016
|
+
var replacements = {
|
|
29017
|
+
'!': '%21',
|
|
29018
|
+
"'": '%27',
|
|
29019
|
+
'(': '%28',
|
|
29020
|
+
')': '%29',
|
|
29021
|
+
'~': '%7E',
|
|
29022
|
+
'%20': '+'
|
|
29023
|
+
};
|
|
29024
|
+
|
|
29025
|
+
var replacer = function (match) {
|
|
29026
|
+
return replacements[match];
|
|
29027
|
+
};
|
|
29028
|
+
|
|
29029
|
+
var serialize = function (it) {
|
|
29030
|
+
return replace(encodeURIComponent(it), find, replacer);
|
|
29031
|
+
};
|
|
29032
|
+
|
|
29033
|
+
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
29034
|
+
setInternalState(this, {
|
|
29035
|
+
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
29036
|
+
iterator: getIterator(getInternalParamsState(params).entries),
|
|
29037
|
+
kind: kind
|
|
29038
|
+
});
|
|
29039
|
+
}, 'Iterator', function next() {
|
|
29040
|
+
var state = getInternalIteratorState(this);
|
|
29041
|
+
var kind = state.kind;
|
|
29042
|
+
var step = state.iterator.next();
|
|
29043
|
+
var entry = step.value;
|
|
29044
|
+
if (!step.done) {
|
|
29045
|
+
step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
|
|
29046
|
+
} return step;
|
|
29047
|
+
}, true);
|
|
29048
|
+
|
|
29049
|
+
var URLSearchParamsState = function (init) {
|
|
29050
|
+
this.entries = [];
|
|
29051
|
+
this.url = null;
|
|
29052
|
+
|
|
29053
|
+
if (init !== undefined) {
|
|
29054
|
+
if (isObject(init)) this.parseObject(init);
|
|
29055
|
+
else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
|
|
29056
|
+
}
|
|
29057
|
+
};
|
|
29058
|
+
|
|
29059
|
+
URLSearchParamsState.prototype = {
|
|
29060
|
+
type: URL_SEARCH_PARAMS,
|
|
29061
|
+
bindURL: function (url) {
|
|
29062
|
+
this.url = url;
|
|
29063
|
+
this.update();
|
|
29064
|
+
},
|
|
29065
|
+
parseObject: function (object) {
|
|
29066
|
+
var iteratorMethod = getIteratorMethod(object);
|
|
29067
|
+
var iterator, next, step, entryIterator, entryNext, first, second;
|
|
29068
|
+
|
|
29069
|
+
if (iteratorMethod) {
|
|
29070
|
+
iterator = getIterator(object, iteratorMethod);
|
|
29071
|
+
next = iterator.next;
|
|
29072
|
+
while (!(step = call(next, iterator)).done) {
|
|
29073
|
+
entryIterator = getIterator(anObject(step.value));
|
|
29074
|
+
entryNext = entryIterator.next;
|
|
29075
|
+
if (
|
|
29076
|
+
(first = call(entryNext, entryIterator)).done ||
|
|
29077
|
+
(second = call(entryNext, entryIterator)).done ||
|
|
29078
|
+
!call(entryNext, entryIterator).done
|
|
29079
|
+
) throw TypeError('Expected sequence with length 2');
|
|
29080
|
+
push(this.entries, { key: $toString(first.value), value: $toString(second.value) });
|
|
29081
|
+
}
|
|
29082
|
+
} else for (var key in object) if (hasOwn(object, key)) {
|
|
29083
|
+
push(this.entries, { key: key, value: $toString(object[key]) });
|
|
29084
|
+
}
|
|
29085
|
+
},
|
|
29086
|
+
parseQuery: function (query) {
|
|
29087
|
+
if (query) {
|
|
29088
|
+
var attributes = split(query, '&');
|
|
29089
|
+
var index = 0;
|
|
29090
|
+
var attribute, entry;
|
|
29091
|
+
while (index < attributes.length) {
|
|
29092
|
+
attribute = attributes[index++];
|
|
29093
|
+
if (attribute.length) {
|
|
29094
|
+
entry = split(attribute, '=');
|
|
29095
|
+
push(this.entries, {
|
|
29096
|
+
key: deserialize(shift(entry)),
|
|
29097
|
+
value: deserialize(join(entry, '='))
|
|
29098
|
+
});
|
|
29099
|
+
}
|
|
29100
|
+
}
|
|
29101
|
+
}
|
|
29102
|
+
},
|
|
29103
|
+
serialize: function () {
|
|
29104
|
+
var entries = this.entries;
|
|
29105
|
+
var result = [];
|
|
29106
|
+
var index = 0;
|
|
29107
|
+
var entry;
|
|
29108
|
+
while (index < entries.length) {
|
|
29109
|
+
entry = entries[index++];
|
|
29110
|
+
push(result, serialize(entry.key) + '=' + serialize(entry.value));
|
|
29111
|
+
} return join(result, '&');
|
|
29112
|
+
},
|
|
29113
|
+
update: function () {
|
|
29114
|
+
this.entries.length = 0;
|
|
29115
|
+
this.parseQuery(this.url.query);
|
|
29116
|
+
},
|
|
29117
|
+
updateURL: function () {
|
|
29118
|
+
if (this.url) this.url.update();
|
|
29119
|
+
}
|
|
29120
|
+
};
|
|
29121
|
+
|
|
29122
|
+
// `URLSearchParams` constructor
|
|
29123
|
+
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
29124
|
+
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
29125
|
+
anInstance(this, URLSearchParamsPrototype);
|
|
29126
|
+
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
29127
|
+
setInternalState(this, new URLSearchParamsState(init));
|
|
29128
|
+
};
|
|
29129
|
+
|
|
29130
|
+
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
29131
|
+
|
|
29132
|
+
redefineAll(URLSearchParamsPrototype, {
|
|
29133
|
+
// `URLSearchParams.prototype.append` method
|
|
29134
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
29135
|
+
append: function append(name, value) {
|
|
29136
|
+
validateArgumentsLength(arguments.length, 2);
|
|
29137
|
+
var state = getInternalParamsState(this);
|
|
29138
|
+
push(state.entries, { key: $toString(name), value: $toString(value) });
|
|
29139
|
+
state.updateURL();
|
|
29140
|
+
},
|
|
29141
|
+
// `URLSearchParams.prototype.delete` method
|
|
29142
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
|
29143
|
+
'delete': function (name) {
|
|
29144
|
+
validateArgumentsLength(arguments.length, 1);
|
|
29145
|
+
var state = getInternalParamsState(this);
|
|
29146
|
+
var entries = state.entries;
|
|
29147
|
+
var key = $toString(name);
|
|
29148
|
+
var index = 0;
|
|
29149
|
+
while (index < entries.length) {
|
|
29150
|
+
if (entries[index].key === key) splice(entries, index, 1);
|
|
29151
|
+
else index++;
|
|
29152
|
+
}
|
|
29153
|
+
state.updateURL();
|
|
29154
|
+
},
|
|
29155
|
+
// `URLSearchParams.prototype.get` method
|
|
29156
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
|
29157
|
+
get: function get(name) {
|
|
29158
|
+
validateArgumentsLength(arguments.length, 1);
|
|
29159
|
+
var entries = getInternalParamsState(this).entries;
|
|
29160
|
+
var key = $toString(name);
|
|
29161
|
+
var index = 0;
|
|
29162
|
+
for (; index < entries.length; index++) {
|
|
29163
|
+
if (entries[index].key === key) return entries[index].value;
|
|
29164
|
+
}
|
|
29165
|
+
return null;
|
|
29166
|
+
},
|
|
29167
|
+
// `URLSearchParams.prototype.getAll` method
|
|
29168
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
|
29169
|
+
getAll: function getAll(name) {
|
|
29170
|
+
validateArgumentsLength(arguments.length, 1);
|
|
29171
|
+
var entries = getInternalParamsState(this).entries;
|
|
29172
|
+
var key = $toString(name);
|
|
29173
|
+
var result = [];
|
|
29174
|
+
var index = 0;
|
|
29175
|
+
for (; index < entries.length; index++) {
|
|
29176
|
+
if (entries[index].key === key) push(result, entries[index].value);
|
|
29177
|
+
}
|
|
29178
|
+
return result;
|
|
29179
|
+
},
|
|
29180
|
+
// `URLSearchParams.prototype.has` method
|
|
29181
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
|
29182
|
+
has: function has(name) {
|
|
29183
|
+
validateArgumentsLength(arguments.length, 1);
|
|
29184
|
+
var entries = getInternalParamsState(this).entries;
|
|
29185
|
+
var key = $toString(name);
|
|
29186
|
+
var index = 0;
|
|
29187
|
+
while (index < entries.length) {
|
|
29188
|
+
if (entries[index++].key === key) return true;
|
|
29189
|
+
}
|
|
29190
|
+
return false;
|
|
29191
|
+
},
|
|
29192
|
+
// `URLSearchParams.prototype.set` method
|
|
29193
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
29194
|
+
set: function set(name, value) {
|
|
29195
|
+
validateArgumentsLength(arguments.length, 1);
|
|
29196
|
+
var state = getInternalParamsState(this);
|
|
29197
|
+
var entries = state.entries;
|
|
29198
|
+
var found = false;
|
|
29199
|
+
var key = $toString(name);
|
|
29200
|
+
var val = $toString(value);
|
|
29201
|
+
var index = 0;
|
|
29202
|
+
var entry;
|
|
29203
|
+
for (; index < entries.length; index++) {
|
|
29204
|
+
entry = entries[index];
|
|
29205
|
+
if (entry.key === key) {
|
|
29206
|
+
if (found) splice(entries, index--, 1);
|
|
29207
|
+
else {
|
|
29208
|
+
found = true;
|
|
29209
|
+
entry.value = val;
|
|
29210
|
+
}
|
|
29211
|
+
}
|
|
29212
|
+
}
|
|
29213
|
+
if (!found) push(entries, { key: key, value: val });
|
|
29214
|
+
state.updateURL();
|
|
29215
|
+
},
|
|
29216
|
+
// `URLSearchParams.prototype.sort` method
|
|
29217
|
+
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
|
29218
|
+
sort: function sort() {
|
|
29219
|
+
var state = getInternalParamsState(this);
|
|
29220
|
+
arraySort(state.entries, function (a, b) {
|
|
29221
|
+
return a.key > b.key ? 1 : -1;
|
|
29222
|
+
});
|
|
29223
|
+
state.updateURL();
|
|
29224
|
+
},
|
|
29225
|
+
// `URLSearchParams.prototype.forEach` method
|
|
29226
|
+
forEach: function forEach(callback /* , thisArg */) {
|
|
29227
|
+
var entries = getInternalParamsState(this).entries;
|
|
29228
|
+
var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
|
|
29229
|
+
var index = 0;
|
|
29230
|
+
var entry;
|
|
29231
|
+
while (index < entries.length) {
|
|
29232
|
+
entry = entries[index++];
|
|
29233
|
+
boundFunction(entry.value, entry.key, this);
|
|
29234
|
+
}
|
|
29235
|
+
},
|
|
29236
|
+
// `URLSearchParams.prototype.keys` method
|
|
29237
|
+
keys: function keys() {
|
|
29238
|
+
return new URLSearchParamsIterator(this, 'keys');
|
|
29239
|
+
},
|
|
29240
|
+
// `URLSearchParams.prototype.values` method
|
|
29241
|
+
values: function values() {
|
|
29242
|
+
return new URLSearchParamsIterator(this, 'values');
|
|
29243
|
+
},
|
|
29244
|
+
// `URLSearchParams.prototype.entries` method
|
|
29245
|
+
entries: function entries() {
|
|
29246
|
+
return new URLSearchParamsIterator(this, 'entries');
|
|
29247
|
+
}
|
|
29248
|
+
}, { enumerable: true });
|
|
29249
|
+
|
|
29250
|
+
// `URLSearchParams.prototype[@@iterator]` method
|
|
29251
|
+
redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
|
29252
|
+
|
|
29253
|
+
// `URLSearchParams.prototype.toString` method
|
|
29254
|
+
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
29255
|
+
redefine(URLSearchParamsPrototype, 'toString', function toString() {
|
|
29256
|
+
return getInternalParamsState(this).serialize();
|
|
29257
|
+
}, { enumerable: true });
|
|
29258
|
+
|
|
29259
|
+
setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
29260
|
+
|
|
29261
|
+
$({ global: true, forced: !USE_NATIVE_URL }, {
|
|
29262
|
+
URLSearchParams: URLSearchParamsConstructor
|
|
29263
|
+
});
|
|
29264
|
+
|
|
29265
|
+
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
|
29266
|
+
if (!USE_NATIVE_URL && isCallable(Headers)) {
|
|
29267
|
+
var headersHas = uncurryThis(HeadersPrototype.has);
|
|
29268
|
+
var headersSet = uncurryThis(HeadersPrototype.set);
|
|
29269
|
+
|
|
29270
|
+
var wrapRequestOptions = function (init) {
|
|
29271
|
+
if (isObject(init)) {
|
|
29272
|
+
var body = init.body;
|
|
29273
|
+
var headers;
|
|
29274
|
+
if (classof(body) === URL_SEARCH_PARAMS) {
|
|
29275
|
+
headers = init.headers ? new Headers(init.headers) : new Headers();
|
|
29276
|
+
if (!headersHas(headers, 'content-type')) {
|
|
29277
|
+
headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
29278
|
+
}
|
|
29279
|
+
return create(init, {
|
|
29280
|
+
body: createPropertyDescriptor(0, $toString(body)),
|
|
29281
|
+
headers: createPropertyDescriptor(0, headers)
|
|
29282
|
+
});
|
|
29283
|
+
}
|
|
29284
|
+
} return init;
|
|
29285
|
+
};
|
|
29286
|
+
|
|
29287
|
+
if (isCallable(n$Fetch)) {
|
|
29288
|
+
$({ global: true, enumerable: true, forced: true }, {
|
|
29289
|
+
fetch: function fetch(input /* , init */) {
|
|
29290
|
+
return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
29291
|
+
}
|
|
29292
|
+
});
|
|
29293
|
+
}
|
|
29294
|
+
|
|
29295
|
+
if (isCallable(N$Request)) {
|
|
29296
|
+
var RequestConstructor = function Request(input /* , init */) {
|
|
29297
|
+
anInstance(this, RequestPrototype);
|
|
29298
|
+
return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
29299
|
+
};
|
|
29300
|
+
|
|
29301
|
+
RequestPrototype.constructor = RequestConstructor;
|
|
29302
|
+
RequestConstructor.prototype = RequestPrototype;
|
|
29303
|
+
|
|
29304
|
+
$({ global: true, forced: true }, {
|
|
29305
|
+
Request: RequestConstructor
|
|
29306
|
+
});
|
|
29307
|
+
}
|
|
29308
|
+
}
|
|
29309
|
+
|
|
29310
|
+
module.exports = {
|
|
29311
|
+
URLSearchParams: URLSearchParamsConstructor,
|
|
29312
|
+
getState: getInternalParamsState
|
|
29313
|
+
};
|
|
29314
|
+
|
|
29315
|
+
|
|
27604
29316
|
/***/ }),
|
|
27605
29317
|
|
|
27606
29318
|
/***/ "99af":
|
|
@@ -27877,6 +29589,13 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
27877
29589
|
|
|
27878
29590
|
/***/ }),
|
|
27879
29591
|
|
|
29592
|
+
/***/ "9cdf":
|
|
29593
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29594
|
+
|
|
29595
|
+
// extracted by mini-css-extract-plugin
|
|
29596
|
+
|
|
29597
|
+
/***/ }),
|
|
29598
|
+
|
|
27880
29599
|
/***/ "9d7e":
|
|
27881
29600
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
27882
29601
|
|
|
@@ -28986,6 +30705,55 @@ module.exports = function (METHOD_NAME, argument) {
|
|
|
28986
30705
|
};
|
|
28987
30706
|
|
|
28988
30707
|
|
|
30708
|
+
/***/ }),
|
|
30709
|
+
|
|
30710
|
+
/***/ "a79d":
|
|
30711
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30712
|
+
|
|
30713
|
+
"use strict";
|
|
30714
|
+
|
|
30715
|
+
var $ = __webpack_require__("23e7");
|
|
30716
|
+
var IS_PURE = __webpack_require__("c430");
|
|
30717
|
+
var NativePromise = __webpack_require__("fea9");
|
|
30718
|
+
var fails = __webpack_require__("d039");
|
|
30719
|
+
var getBuiltIn = __webpack_require__("d066");
|
|
30720
|
+
var isCallable = __webpack_require__("1626");
|
|
30721
|
+
var speciesConstructor = __webpack_require__("4840");
|
|
30722
|
+
var promiseResolve = __webpack_require__("cdf9");
|
|
30723
|
+
var redefine = __webpack_require__("6eeb");
|
|
30724
|
+
|
|
30725
|
+
// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
|
|
30726
|
+
var NON_GENERIC = !!NativePromise && fails(function () {
|
|
30727
|
+
// eslint-disable-next-line unicorn/no-thenable -- required for testing
|
|
30728
|
+
NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
|
|
30729
|
+
});
|
|
30730
|
+
|
|
30731
|
+
// `Promise.prototype.finally` method
|
|
30732
|
+
// https://tc39.es/ecma262/#sec-promise.prototype.finally
|
|
30733
|
+
$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
|
|
30734
|
+
'finally': function (onFinally) {
|
|
30735
|
+
var C = speciesConstructor(this, getBuiltIn('Promise'));
|
|
30736
|
+
var isFunction = isCallable(onFinally);
|
|
30737
|
+
return this.then(
|
|
30738
|
+
isFunction ? function (x) {
|
|
30739
|
+
return promiseResolve(C, onFinally()).then(function () { return x; });
|
|
30740
|
+
} : onFinally,
|
|
30741
|
+
isFunction ? function (e) {
|
|
30742
|
+
return promiseResolve(C, onFinally()).then(function () { throw e; });
|
|
30743
|
+
} : onFinally
|
|
30744
|
+
);
|
|
30745
|
+
}
|
|
30746
|
+
});
|
|
30747
|
+
|
|
30748
|
+
// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
|
|
30749
|
+
if (!IS_PURE && isCallable(NativePromise)) {
|
|
30750
|
+
var method = getBuiltIn('Promise').prototype['finally'];
|
|
30751
|
+
if (NativePromise.prototype['finally'] !== method) {
|
|
30752
|
+
redefine(NativePromise.prototype, 'finally', method, { unsafe: true });
|
|
30753
|
+
}
|
|
30754
|
+
}
|
|
30755
|
+
|
|
30756
|
+
|
|
28989
30757
|
/***/ }),
|
|
28990
30758
|
|
|
28991
30759
|
/***/ "a9e3":
|
|
@@ -36613,6 +38381,683 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
36613
38381
|
}() : undefined);
|
|
36614
38382
|
|
|
36615
38383
|
|
|
38384
|
+
/***/ }),
|
|
38385
|
+
|
|
38386
|
+
/***/ "d2ee":
|
|
38387
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
38388
|
+
|
|
38389
|
+
"use strict";
|
|
38390
|
+
// ESM COMPAT FLAG
|
|
38391
|
+
__webpack_require__.r(__webpack_exports__);
|
|
38392
|
+
|
|
38393
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b671419-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=5a2b1b66&
|
|
38394
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item",on:{"click":function($event){return _vm.viewFile(item)}}},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right"},[_c('div',{staticClass:"title"},[_vm._v(" "+_vm._s(item.fileName)+" ")]),_c('div',{staticClass:"info"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(item.createTime))]),_c('div',{staticClass:"icon"},[(item.fileType != '2')?_c('i',{staticClass:"icon-main-xiazai mr20",on:{"click":function($event){$event.stopPropagation();return _vm.downloadFile(item)}}}):_vm._e(),(_vm.editAble)?_c('i',{staticClass:"icon-main-shanchu",on:{"click":function($event){$event.stopPropagation();return _vm.remove(index, item.fileName)}}}):_vm._e()])])])],1),_vm._t("default",null,{"fileData":item})],2)}),(_vm.editAble)?_c('div',{staticClass:"upload unit-item"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.netDisc),expression:"netDisc"}],staticClass:"netdisc",on:{"click":_vm.openNetDisc}},[_vm._v(" 选择网盘地址 ")]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.link),expression:"link"}],staticClass:"link",on:{"click":_vm.openLink}},[_vm._v("自定义链接")]),_c('div',{staticClass:"local-file",on:{"click":_vm.openFile}},[_c('i',{staticClass:"el-icon-plus"}),_vm._v(" 上传附件 "),_c('input',{ref:"input",staticClass:"hidden",attrs:{"type":"file","multiple":""},on:{"change":_vm.chooseFile}})])]):_vm._e()],2),_c('NetDisc',{ref:"netDisc",on:{"submit":_vm.addNet}}),_c('CustomLink',{ref:"customLink",on:{"submit":_vm.addLink}})],1)}
|
|
38395
|
+
var staticRenderFns = []
|
|
38396
|
+
|
|
38397
|
+
|
|
38398
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=5a2b1b66&
|
|
38399
|
+
|
|
38400
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
38401
|
+
var es_array_iterator = __webpack_require__("e260");
|
|
38402
|
+
|
|
38403
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
38404
|
+
var es_object_to_string = __webpack_require__("d3b7");
|
|
38405
|
+
|
|
38406
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
38407
|
+
var es_string_iterator = __webpack_require__("3ca3");
|
|
38408
|
+
|
|
38409
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
|
|
38410
|
+
var web_dom_collections_iterator = __webpack_require__("ddb0");
|
|
38411
|
+
|
|
38412
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
|
|
38413
|
+
var web_url = __webpack_require__("2b3d");
|
|
38414
|
+
|
|
38415
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
|
|
38416
|
+
var web_url_search_params = __webpack_require__("9861");
|
|
38417
|
+
|
|
38418
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
38419
|
+
var es_array_from = __webpack_require__("a630");
|
|
38420
|
+
|
|
38421
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
38422
|
+
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
38423
|
+
|
|
38424
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
38425
|
+
var es_array_map = __webpack_require__("d81d");
|
|
38426
|
+
|
|
38427
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
38428
|
+
var es_array_splice = __webpack_require__("a434");
|
|
38429
|
+
|
|
38430
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
38431
|
+
var es_regexp_exec = __webpack_require__("ac1f");
|
|
38432
|
+
|
|
38433
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
38434
|
+
var es_string_split = __webpack_require__("1276");
|
|
38435
|
+
|
|
38436
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
38437
|
+
var es_array_find = __webpack_require__("7db0");
|
|
38438
|
+
|
|
38439
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
38440
|
+
var es_array_includes = __webpack_require__("caad");
|
|
38441
|
+
|
|
38442
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
38443
|
+
var es_string_includes = __webpack_require__("2532");
|
|
38444
|
+
|
|
38445
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b671419-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/NetDisc.vue?vue&type=template&id=7e781764&
|
|
38446
|
+
var NetDiscvue_type_template_id_7e781764_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('hb-dialog',{ref:"dialog",attrs:{"title":"选择网盘地址","width":"700px","top":"0","append-to-body":true,"destroy-on-close":true},on:{"submit":_vm.submit,"closed":_vm.clear}},[_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"wrapper",attrs:{"slot":"normal"},slot:"normal"},[_c('div',{staticClass:"top"},[_c('el-select',{attrs:{"clearable":false},on:{"change":_vm.discChange},model:{value:(_vm.disc),callback:function ($$v) {_vm.disc=$$v},expression:"disc"}},[_c('el-option',{attrs:{"label":"企业网盘","value":1}}),_c('el-option',{attrs:{"label":"我的收藏","value":2}})],1),_c('el-input',{staticClass:"search-ipt ml10",attrs:{"prefix-icon":"el-icon-search","size":"mini","placeholder":"输入文件名查找","clearable":""},nativeOn:{"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.init(0)}},model:{value:(_vm.searchValue),callback:function ($$v) {_vm.searchValue=$$v},expression:"searchValue"}},[_c('template',{slot:"append"},[_c('span',{staticClass:"append-text",on:{"click":function($event){return _vm.init(0)}}},[_vm._v("搜索")])])],2)],1),(_vm.disc === 1)?_c('el-breadcrumb',{staticClass:"custom-breadcrumb mb15",attrs:{"separator-class":"el-icon-arrow-right"}},_vm._l((_vm.breadList),function(item,index){return _c('el-breadcrumb-item',{key:index,nativeOn:{"click":function($event){return _vm.init(item.id, index === _vm.breadList.length - 1)}}},[_c('el-link',{attrs:{"type":index !== _vm.breadList.length - 1 ? 'primary' : '',"underline":false}},[_vm._v(" "+_vm._s(item.name)+" ")])],1)}),1):_vm._e(),_c('div',{staticClass:"tree-wrapper"},[_c('ul',_vm._l((_vm.treeList),function(item){return _c('li',{key:item.id,on:{"click":function($event){return _vm.init(item.id, item.fileType === '1')}}},[_c('div',{staticClass:"flex"},[_c('HbSvg',{staticClass:"mr10",attrs:{"iconClass":_vm._f("filterFileIcon")(true,_vm.getSuffix(item.fileName))}}),_c('div',{staticClass:"title",attrs:{"title":item.fileName}},[_vm._v(" "+_vm._s(item.fileName)+" ")])],1),(item.fileType === '1')?_c('div',{staticClass:"check-box",class:{ selected: _vm.selected.some(function (i) { return i.fileUrl === item.id; }) },on:{"click":function($event){$event.stopPropagation();return _vm.choose(item)}}}):_vm._e()])}),0)])],1)])}
|
|
38447
|
+
var NetDiscvue_type_template_id_7e781764_staticRenderFns = []
|
|
38448
|
+
|
|
38449
|
+
|
|
38450
|
+
// CONCATENATED MODULE: ./packages/upload/src/component/NetDisc.vue?vue&type=template&id=7e781764&
|
|
38451
|
+
|
|
38452
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 5 modules
|
|
38453
|
+
var toConsumableArray = __webpack_require__("2909");
|
|
38454
|
+
|
|
38455
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
38456
|
+
var es_array_find_index = __webpack_require__("c740");
|
|
38457
|
+
|
|
38458
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
38459
|
+
var es_promise = __webpack_require__("e6cf");
|
|
38460
|
+
|
|
38461
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
|
|
38462
|
+
var es_promise_finally = __webpack_require__("a79d");
|
|
38463
|
+
|
|
38464
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/NetDisc.vue?vue&type=script&lang=js&
|
|
38465
|
+
|
|
38466
|
+
|
|
38467
|
+
|
|
38468
|
+
|
|
38469
|
+
|
|
38470
|
+
|
|
38471
|
+
|
|
38472
|
+
|
|
38473
|
+
//
|
|
38474
|
+
//
|
|
38475
|
+
//
|
|
38476
|
+
//
|
|
38477
|
+
//
|
|
38478
|
+
//
|
|
38479
|
+
//
|
|
38480
|
+
//
|
|
38481
|
+
//
|
|
38482
|
+
//
|
|
38483
|
+
//
|
|
38484
|
+
//
|
|
38485
|
+
//
|
|
38486
|
+
//
|
|
38487
|
+
//
|
|
38488
|
+
//
|
|
38489
|
+
//
|
|
38490
|
+
//
|
|
38491
|
+
//
|
|
38492
|
+
//
|
|
38493
|
+
//
|
|
38494
|
+
//
|
|
38495
|
+
//
|
|
38496
|
+
//
|
|
38497
|
+
//
|
|
38498
|
+
//
|
|
38499
|
+
//
|
|
38500
|
+
//
|
|
38501
|
+
//
|
|
38502
|
+
//
|
|
38503
|
+
//
|
|
38504
|
+
//
|
|
38505
|
+
//
|
|
38506
|
+
//
|
|
38507
|
+
//
|
|
38508
|
+
//
|
|
38509
|
+
//
|
|
38510
|
+
//
|
|
38511
|
+
//
|
|
38512
|
+
//
|
|
38513
|
+
//
|
|
38514
|
+
//
|
|
38515
|
+
//
|
|
38516
|
+
//
|
|
38517
|
+
//
|
|
38518
|
+
//
|
|
38519
|
+
//
|
|
38520
|
+
//
|
|
38521
|
+
//
|
|
38522
|
+
//
|
|
38523
|
+
//
|
|
38524
|
+
//
|
|
38525
|
+
//
|
|
38526
|
+
//
|
|
38527
|
+
//
|
|
38528
|
+
//
|
|
38529
|
+
//
|
|
38530
|
+
//
|
|
38531
|
+
//
|
|
38532
|
+
//
|
|
38533
|
+
//
|
|
38534
|
+
//
|
|
38535
|
+
//
|
|
38536
|
+
//
|
|
38537
|
+
//
|
|
38538
|
+
//
|
|
38539
|
+
//
|
|
38540
|
+
//
|
|
38541
|
+
//
|
|
38542
|
+
//
|
|
38543
|
+
//
|
|
38544
|
+
//
|
|
38545
|
+
//
|
|
38546
|
+
//
|
|
38547
|
+
//
|
|
38548
|
+
//
|
|
38549
|
+
//
|
|
38550
|
+
//
|
|
38551
|
+
//
|
|
38552
|
+
//
|
|
38553
|
+
/* harmony default export */ var NetDiscvue_type_script_lang_js_ = ({
|
|
38554
|
+
data: function data() {
|
|
38555
|
+
return {
|
|
38556
|
+
disc: 1,
|
|
38557
|
+
parentId: 0,
|
|
38558
|
+
breadList: [],
|
|
38559
|
+
treeList: [],
|
|
38560
|
+
selected: [],
|
|
38561
|
+
loading: true,
|
|
38562
|
+
searchValue: undefined
|
|
38563
|
+
};
|
|
38564
|
+
},
|
|
38565
|
+
methods: {
|
|
38566
|
+
clear: function clear() {
|
|
38567
|
+
this.parentId = 0;
|
|
38568
|
+
this.breadList = [];
|
|
38569
|
+
this.treeList = [];
|
|
38570
|
+
this.selected = [];
|
|
38571
|
+
this.loading = true;
|
|
38572
|
+
},
|
|
38573
|
+
open: function open() {
|
|
38574
|
+
this.$refs.dialog.open();
|
|
38575
|
+
this.init(this.parentId);
|
|
38576
|
+
},
|
|
38577
|
+
choose: function choose(item) {
|
|
38578
|
+
var index = this.selected.findIndex(function (i) {
|
|
38579
|
+
return i.fileUrl === item.id;
|
|
38580
|
+
});
|
|
38581
|
+
|
|
38582
|
+
if (index === -1) {
|
|
38583
|
+
this.selected.push({
|
|
38584
|
+
fileName: item.fileName,
|
|
38585
|
+
fileUrl: item.id,
|
|
38586
|
+
fileType: "3",
|
|
38587
|
+
downUrl: item.downloadUrl,
|
|
38588
|
+
onlineUrl: item.onlineUrl
|
|
38589
|
+
});
|
|
38590
|
+
} else {
|
|
38591
|
+
this.selected.splice(index, 1);
|
|
38592
|
+
}
|
|
38593
|
+
},
|
|
38594
|
+
getBreadList: function getBreadList() {
|
|
38595
|
+
var _this = this;
|
|
38596
|
+
|
|
38597
|
+
this.$http.get("/ndAuth/bread/".concat(this.parentId), {
|
|
38598
|
+
baseURL: "/platform"
|
|
38599
|
+
}).then(function (res) {
|
|
38600
|
+
_this.breadList = res;
|
|
38601
|
+
}).finally(function () {
|
|
38602
|
+
_this.loading = false;
|
|
38603
|
+
});
|
|
38604
|
+
},
|
|
38605
|
+
getTreeList: function getTreeList() {
|
|
38606
|
+
var _this2 = this;
|
|
38607
|
+
|
|
38608
|
+
this.$http.post("/ndRecord/recordByUser", {
|
|
38609
|
+
pSingle: this.parentId,
|
|
38610
|
+
fileName: this.searchValue
|
|
38611
|
+
}, {
|
|
38612
|
+
baseURL: "/platform"
|
|
38613
|
+
}).then(function (res) {
|
|
38614
|
+
_this2.treeList = res.record;
|
|
38615
|
+
}).finally(function () {
|
|
38616
|
+
_this2.loading = false;
|
|
38617
|
+
});
|
|
38618
|
+
},
|
|
38619
|
+
getCollectList: function getCollectList() {
|
|
38620
|
+
var _this3 = this;
|
|
38621
|
+
|
|
38622
|
+
this.loading = true;
|
|
38623
|
+
this.$http.get("/ndCollect/collectList").then(function (res) {
|
|
38624
|
+
_this3.treeList = res;
|
|
38625
|
+
}).finally(function () {
|
|
38626
|
+
_this3.loading = false;
|
|
38627
|
+
});
|
|
38628
|
+
},
|
|
38629
|
+
init: function init(pid) {
|
|
38630
|
+
var boo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
38631
|
+
|
|
38632
|
+
if (!boo) {
|
|
38633
|
+
this.loading = true;
|
|
38634
|
+
this.selected = [];
|
|
38635
|
+
this.parentId = pid;
|
|
38636
|
+
this.getBreadList();
|
|
38637
|
+
this.getTreeList();
|
|
38638
|
+
}
|
|
38639
|
+
},
|
|
38640
|
+
submit: function submit() {
|
|
38641
|
+
if (this.selected.length) {
|
|
38642
|
+
this.$emit("submit", Object(toConsumableArray["a" /* default */])(this.selected));
|
|
38643
|
+
}
|
|
38644
|
+
|
|
38645
|
+
this.$refs.dialog.close();
|
|
38646
|
+
},
|
|
38647
|
+
discChange: function discChange(val) {
|
|
38648
|
+
if (val === 1) {
|
|
38649
|
+
this.init(this.parentId);
|
|
38650
|
+
return;
|
|
38651
|
+
}
|
|
38652
|
+
|
|
38653
|
+
this.getCollectList();
|
|
38654
|
+
}
|
|
38655
|
+
},
|
|
38656
|
+
computed: {
|
|
38657
|
+
getSuffix: function getSuffix() {
|
|
38658
|
+
return function (filename) {
|
|
38659
|
+
if (!filename) return "";
|
|
38660
|
+
var arr = filename.split(".");
|
|
38661
|
+
|
|
38662
|
+
if (arr.length === 1) {
|
|
38663
|
+
return "";
|
|
38664
|
+
} else {
|
|
38665
|
+
return "." + arr.pop();
|
|
38666
|
+
}
|
|
38667
|
+
};
|
|
38668
|
+
}
|
|
38669
|
+
}
|
|
38670
|
+
});
|
|
38671
|
+
// CONCATENATED MODULE: ./packages/upload/src/component/NetDisc.vue?vue&type=script&lang=js&
|
|
38672
|
+
/* harmony default export */ var component_NetDiscvue_type_script_lang_js_ = (NetDiscvue_type_script_lang_js_);
|
|
38673
|
+
// EXTERNAL MODULE: ./packages/upload/src/component/NetDisc.vue?vue&type=style&index=0&lang=scss&
|
|
38674
|
+
var NetDiscvue_type_style_index_0_lang_scss_ = __webpack_require__("dad1");
|
|
38675
|
+
|
|
38676
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
38677
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
38678
|
+
|
|
38679
|
+
// CONCATENATED MODULE: ./packages/upload/src/component/NetDisc.vue
|
|
38680
|
+
|
|
38681
|
+
|
|
38682
|
+
|
|
38683
|
+
|
|
38684
|
+
|
|
38685
|
+
|
|
38686
|
+
/* normalize component */
|
|
38687
|
+
|
|
38688
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
38689
|
+
component_NetDiscvue_type_script_lang_js_,
|
|
38690
|
+
NetDiscvue_type_template_id_7e781764_render,
|
|
38691
|
+
NetDiscvue_type_template_id_7e781764_staticRenderFns,
|
|
38692
|
+
false,
|
|
38693
|
+
null,
|
|
38694
|
+
null,
|
|
38695
|
+
null
|
|
38696
|
+
|
|
38697
|
+
)
|
|
38698
|
+
|
|
38699
|
+
/* harmony default export */ var NetDisc = (component.exports);
|
|
38700
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b671419-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=template&id=01816d01&
|
|
38701
|
+
var CustomLinkvue_type_template_id_01816d01_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('hb-dialog',{ref:"dialog",attrs:{"width":"480px","title":"添加自定义链接","formData":_vm.formData,"rules":_vm.rules,"append-to-body":true,"destroy-on-close":true},on:{"submit":_vm.submit,"closed":_vm.clear},scopedSlots:_vm._u([{key:"form",fn:function(){return [_c('el-form-item',{attrs:{"label":"文件名","prop":"fileName"}},[_c('el-input',{attrs:{"maxlength":"50"},model:{value:(_vm.formData.fileName),callback:function ($$v) {_vm.$set(_vm.formData, "fileName", $$v)},expression:"formData.fileName"}})],1),_c('el-form-item',{attrs:{"label":"链接","prop":"fileUrl"}},[_c('el-input',{attrs:{"maxlength":"200"},model:{value:(_vm.formData.fileUrl),callback:function ($$v) {_vm.$set(_vm.formData, "fileUrl", $$v)},expression:"formData.fileUrl"}})],1)]},proxy:true}])})}
|
|
38702
|
+
var CustomLinkvue_type_template_id_01816d01_staticRenderFns = []
|
|
38703
|
+
|
|
38704
|
+
|
|
38705
|
+
// CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue?vue&type=template&id=01816d01&
|
|
38706
|
+
|
|
38707
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
38708
|
+
var objectSpread2 = __webpack_require__("5530");
|
|
38709
|
+
|
|
38710
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=script&lang=js&
|
|
38711
|
+
|
|
38712
|
+
//
|
|
38713
|
+
//
|
|
38714
|
+
//
|
|
38715
|
+
//
|
|
38716
|
+
//
|
|
38717
|
+
//
|
|
38718
|
+
//
|
|
38719
|
+
//
|
|
38720
|
+
//
|
|
38721
|
+
//
|
|
38722
|
+
//
|
|
38723
|
+
//
|
|
38724
|
+
//
|
|
38725
|
+
//
|
|
38726
|
+
//
|
|
38727
|
+
//
|
|
38728
|
+
//
|
|
38729
|
+
//
|
|
38730
|
+
//
|
|
38731
|
+
//
|
|
38732
|
+
//
|
|
38733
|
+
//
|
|
38734
|
+
/* harmony default export */ var CustomLinkvue_type_script_lang_js_ = ({
|
|
38735
|
+
data: function data() {
|
|
38736
|
+
return {
|
|
38737
|
+
formData: {
|
|
38738
|
+
fileName: "",
|
|
38739
|
+
fileType: 2,
|
|
38740
|
+
fileUrl: ""
|
|
38741
|
+
},
|
|
38742
|
+
rules: {
|
|
38743
|
+
fileName: [{
|
|
38744
|
+
required: true,
|
|
38745
|
+
message: "请输入文件名",
|
|
38746
|
+
trigger: "change"
|
|
38747
|
+
}],
|
|
38748
|
+
fileUrl: [{
|
|
38749
|
+
required: true,
|
|
38750
|
+
message: "请输入链接",
|
|
38751
|
+
trigger: "change"
|
|
38752
|
+
}]
|
|
38753
|
+
}
|
|
38754
|
+
};
|
|
38755
|
+
},
|
|
38756
|
+
methods: {
|
|
38757
|
+
open: function open() {
|
|
38758
|
+
this.$refs.dialog.open();
|
|
38759
|
+
this.$refs.dialog.clearValidate();
|
|
38760
|
+
},
|
|
38761
|
+
submit: function submit() {
|
|
38762
|
+
this.formData.fileUrl;
|
|
38763
|
+
this.$emit("submit", Object(objectSpread2["a" /* default */])({}, this.formData));
|
|
38764
|
+
this.$refs.dialog.close();
|
|
38765
|
+
},
|
|
38766
|
+
clear: function clear() {
|
|
38767
|
+
this.formData = {
|
|
38768
|
+
fileName: "",
|
|
38769
|
+
fileType: "2",
|
|
38770
|
+
fileUrl: ""
|
|
38771
|
+
};
|
|
38772
|
+
}
|
|
38773
|
+
}
|
|
38774
|
+
});
|
|
38775
|
+
// CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue?vue&type=script&lang=js&
|
|
38776
|
+
/* harmony default export */ var component_CustomLinkvue_type_script_lang_js_ = (CustomLinkvue_type_script_lang_js_);
|
|
38777
|
+
// CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue
|
|
38778
|
+
|
|
38779
|
+
|
|
38780
|
+
|
|
38781
|
+
|
|
38782
|
+
|
|
38783
|
+
/* normalize component */
|
|
38784
|
+
|
|
38785
|
+
var CustomLink_component = Object(componentNormalizer["a" /* default */])(
|
|
38786
|
+
component_CustomLinkvue_type_script_lang_js_,
|
|
38787
|
+
CustomLinkvue_type_template_id_01816d01_render,
|
|
38788
|
+
CustomLinkvue_type_template_id_01816d01_staticRenderFns,
|
|
38789
|
+
false,
|
|
38790
|
+
null,
|
|
38791
|
+
null,
|
|
38792
|
+
null
|
|
38793
|
+
|
|
38794
|
+
)
|
|
38795
|
+
|
|
38796
|
+
/* harmony default export */ var CustomLink = (CustomLink_component.exports);
|
|
38797
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=script&lang=js&
|
|
38798
|
+
|
|
38799
|
+
|
|
38800
|
+
|
|
38801
|
+
|
|
38802
|
+
|
|
38803
|
+
|
|
38804
|
+
|
|
38805
|
+
|
|
38806
|
+
|
|
38807
|
+
|
|
38808
|
+
|
|
38809
|
+
|
|
38810
|
+
|
|
38811
|
+
|
|
38812
|
+
|
|
38813
|
+
//
|
|
38814
|
+
//
|
|
38815
|
+
//
|
|
38816
|
+
//
|
|
38817
|
+
//
|
|
38818
|
+
//
|
|
38819
|
+
//
|
|
38820
|
+
//
|
|
38821
|
+
//
|
|
38822
|
+
//
|
|
38823
|
+
//
|
|
38824
|
+
//
|
|
38825
|
+
//
|
|
38826
|
+
//
|
|
38827
|
+
//
|
|
38828
|
+
//
|
|
38829
|
+
//
|
|
38830
|
+
//
|
|
38831
|
+
//
|
|
38832
|
+
//
|
|
38833
|
+
//
|
|
38834
|
+
//
|
|
38835
|
+
//
|
|
38836
|
+
//
|
|
38837
|
+
//
|
|
38838
|
+
//
|
|
38839
|
+
//
|
|
38840
|
+
//
|
|
38841
|
+
//
|
|
38842
|
+
//
|
|
38843
|
+
//
|
|
38844
|
+
//
|
|
38845
|
+
//
|
|
38846
|
+
//
|
|
38847
|
+
//
|
|
38848
|
+
//
|
|
38849
|
+
//
|
|
38850
|
+
//
|
|
38851
|
+
//
|
|
38852
|
+
//
|
|
38853
|
+
//
|
|
38854
|
+
//
|
|
38855
|
+
//
|
|
38856
|
+
//
|
|
38857
|
+
//
|
|
38858
|
+
//
|
|
38859
|
+
//
|
|
38860
|
+
//
|
|
38861
|
+
//
|
|
38862
|
+
//
|
|
38863
|
+
//
|
|
38864
|
+
//
|
|
38865
|
+
//
|
|
38866
|
+
//
|
|
38867
|
+
//
|
|
38868
|
+
//
|
|
38869
|
+
//
|
|
38870
|
+
|
|
38871
|
+
|
|
38872
|
+
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
|
38873
|
+
name: "HbUpload",
|
|
38874
|
+
componentName: "HbUpload",
|
|
38875
|
+
data: function data() {
|
|
38876
|
+
return {
|
|
38877
|
+
key: Math.random()
|
|
38878
|
+
};
|
|
38879
|
+
},
|
|
38880
|
+
props: {
|
|
38881
|
+
list: {
|
|
38882
|
+
type: Array,
|
|
38883
|
+
default: function _default() {
|
|
38884
|
+
return [];
|
|
38885
|
+
}
|
|
38886
|
+
},
|
|
38887
|
+
editAble: {
|
|
38888
|
+
type: Boolean,
|
|
38889
|
+
default: true
|
|
38890
|
+
},
|
|
38891
|
+
netDisc: {
|
|
38892
|
+
type: Boolean,
|
|
38893
|
+
default: true
|
|
38894
|
+
},
|
|
38895
|
+
link: {
|
|
38896
|
+
type: Boolean,
|
|
38897
|
+
default: true
|
|
38898
|
+
}
|
|
38899
|
+
},
|
|
38900
|
+
methods: {
|
|
38901
|
+
viewFile: function viewFile(item) {
|
|
38902
|
+
if (!item.onlineUrl) {
|
|
38903
|
+
this.$message.error("没有此网盘文件的预览权限!");
|
|
38904
|
+
return;
|
|
38905
|
+
}
|
|
38906
|
+
|
|
38907
|
+
window.open(item.onlineUrl);
|
|
38908
|
+
},
|
|
38909
|
+
downloadFile: function downloadFile(item) {
|
|
38910
|
+
if (!item.downUrl) {
|
|
38911
|
+
this.$message.error("没有此网盘文件的下载权限!");
|
|
38912
|
+
return;
|
|
38913
|
+
}
|
|
38914
|
+
|
|
38915
|
+
var downloadElement = document.createElement("a");
|
|
38916
|
+
downloadElement.href = item.downUrl;
|
|
38917
|
+
downloadElement.download = item.fileName; // 下载后文件名
|
|
38918
|
+
|
|
38919
|
+
document.body.appendChild(downloadElement);
|
|
38920
|
+
downloadElement.click(); // 点击下载
|
|
38921
|
+
|
|
38922
|
+
document.body.removeChild(downloadElement); // 下载完成移除元素
|
|
38923
|
+
|
|
38924
|
+
window.URL.revokeObjectURL(item.downUrl); // 释放掉blob对象
|
|
38925
|
+
},
|
|
38926
|
+
openNetDisc: function openNetDisc() {
|
|
38927
|
+
this.$refs.netDisc.open();
|
|
38928
|
+
},
|
|
38929
|
+
openLink: function openLink() {
|
|
38930
|
+
this.$refs.customLink.open();
|
|
38931
|
+
},
|
|
38932
|
+
openFile: function openFile() {
|
|
38933
|
+
this.$refs.input.click();
|
|
38934
|
+
},
|
|
38935
|
+
chooseFile: function chooseFile(ev) {
|
|
38936
|
+
var _this = this;
|
|
38937
|
+
|
|
38938
|
+
var fileList = Array.from(ev.target.files);
|
|
38939
|
+
console.log(ev);
|
|
38940
|
+
var files = new FormData();
|
|
38941
|
+
fileList.forEach(function (item, index) {
|
|
38942
|
+
files.append("files[".concat(index, "]"), item);
|
|
38943
|
+
});
|
|
38944
|
+
this.$http.post("/sysFiles/uploads", files).then(function (res) {
|
|
38945
|
+
_this.$message.success("上传成功"); //处理返回的数据
|
|
38946
|
+
|
|
38947
|
+
|
|
38948
|
+
var addList = res.map(function (item) {
|
|
38949
|
+
return {
|
|
38950
|
+
fileName: item.fileName,
|
|
38951
|
+
fileType: "1",
|
|
38952
|
+
fileUrl: item.fileUrl,
|
|
38953
|
+
downUrl: item.downUrl,
|
|
38954
|
+
onlineUrl: item.onlineUrl,
|
|
38955
|
+
fileSize: item.fileSize
|
|
38956
|
+
};
|
|
38957
|
+
});
|
|
38958
|
+
addList.forEach(function (item) {
|
|
38959
|
+
_this.list.push(item);
|
|
38960
|
+
});
|
|
38961
|
+
});
|
|
38962
|
+
},
|
|
38963
|
+
addLink: function addLink(data) {
|
|
38964
|
+
this.list.push(data);
|
|
38965
|
+
},
|
|
38966
|
+
addNet: function addNet(arr) {
|
|
38967
|
+
var _this2 = this;
|
|
38968
|
+
|
|
38969
|
+
arr.forEach(function (item) {
|
|
38970
|
+
_this2.list.push(item);
|
|
38971
|
+
});
|
|
38972
|
+
},
|
|
38973
|
+
remove: function remove(index, fileName) {
|
|
38974
|
+
var _this3 = this;
|
|
38975
|
+
|
|
38976
|
+
this.$confirm("\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u9644\u4EF6:".concat(fileName), "提示").then(function () {
|
|
38977
|
+
_this3.list.splice(index, 1);
|
|
38978
|
+
}).catch(function () {});
|
|
38979
|
+
},
|
|
38980
|
+
rerendering: function rerendering() {
|
|
38981
|
+
this.key = Math.random();
|
|
38982
|
+
}
|
|
38983
|
+
},
|
|
38984
|
+
computed: {
|
|
38985
|
+
getSuffix: function getSuffix() {
|
|
38986
|
+
return function (filename) {
|
|
38987
|
+
if (!filename) return "";
|
|
38988
|
+
var arr = filename.split(".");
|
|
38989
|
+
|
|
38990
|
+
if (arr.length === 1) {
|
|
38991
|
+
return "";
|
|
38992
|
+
} else {
|
|
38993
|
+
return "." + arr.pop();
|
|
38994
|
+
}
|
|
38995
|
+
};
|
|
38996
|
+
}
|
|
38997
|
+
},
|
|
38998
|
+
filters: {
|
|
38999
|
+
fileIcon: function fileIcon(isFile, fileType) {
|
|
39000
|
+
var _fileMap$find;
|
|
39001
|
+
|
|
39002
|
+
if (!isFile) {
|
|
39003
|
+
return "icon-color-wenjianjia";
|
|
39004
|
+
}
|
|
39005
|
+
|
|
39006
|
+
var lowerFileType = fileType.toLowerCase();
|
|
39007
|
+
var fileMap = [{
|
|
39008
|
+
suffix: [".jpg", ".jpeg", ".png", ".gif"],
|
|
39009
|
+
icon: "icon-color-JPG"
|
|
39010
|
+
}, {
|
|
39011
|
+
suffix: [".doc", ".docx"],
|
|
39012
|
+
icon: "icon-color-wendang"
|
|
39013
|
+
}, {
|
|
39014
|
+
suffix: [".xls", ".xlsx"],
|
|
39015
|
+
icon: "icon-color-excel"
|
|
39016
|
+
}, {
|
|
39017
|
+
suffix: ".pdf",
|
|
39018
|
+
icon: "icon-color-pdf"
|
|
39019
|
+
}, {
|
|
39020
|
+
suffix: ".txt",
|
|
39021
|
+
icon: "icon-color-txt"
|
|
39022
|
+
}];
|
|
39023
|
+
var iconClass = (_fileMap$find = fileMap.find(function (item) {
|
|
39024
|
+
return typeof item.suffix === "string" ? item.suffix === lowerFileType : item.suffix.includes(lowerFileType);
|
|
39025
|
+
})) === null || _fileMap$find === void 0 ? void 0 : _fileMap$find.icon;
|
|
39026
|
+
return iconClass || "icon-color-qita1";
|
|
39027
|
+
}
|
|
39028
|
+
},
|
|
39029
|
+
components: {
|
|
39030
|
+
NetDisc: NetDisc,
|
|
39031
|
+
CustomLink: CustomLink
|
|
39032
|
+
}
|
|
39033
|
+
});
|
|
39034
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=script&lang=js&
|
|
39035
|
+
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
|
39036
|
+
// EXTERNAL MODULE: ./packages/upload/src/main.vue?vue&type=style&index=0&lang=scss&
|
|
39037
|
+
var mainvue_type_style_index_0_lang_scss_ = __webpack_require__("3f11");
|
|
39038
|
+
|
|
39039
|
+
// CONCATENATED MODULE: ./packages/upload/src/main.vue
|
|
39040
|
+
|
|
39041
|
+
|
|
39042
|
+
|
|
39043
|
+
|
|
39044
|
+
|
|
39045
|
+
|
|
39046
|
+
/* normalize component */
|
|
39047
|
+
|
|
39048
|
+
var main_component = Object(componentNormalizer["a" /* default */])(
|
|
39049
|
+
src_mainvue_type_script_lang_js_,
|
|
39050
|
+
render,
|
|
39051
|
+
staticRenderFns,
|
|
39052
|
+
false,
|
|
39053
|
+
null,
|
|
39054
|
+
null,
|
|
39055
|
+
null
|
|
39056
|
+
|
|
39057
|
+
)
|
|
39058
|
+
|
|
39059
|
+
/* harmony default export */ var main = __webpack_exports__["default"] = (main_component.exports);
|
|
39060
|
+
|
|
36616
39061
|
/***/ }),
|
|
36617
39062
|
|
|
36618
39063
|
/***/ "d39b":
|
|
@@ -36643,7 +39088,8 @@ var map = {
|
|
|
36643
39088
|
"./table-filter/index.js": "008a",
|
|
36644
39089
|
"./table/index.js": "4fde",
|
|
36645
39090
|
"./tool-group/index.js": "bf30",
|
|
36646
|
-
"./top-bar/index.js": "da15"
|
|
39091
|
+
"./top-bar/index.js": "da15",
|
|
39092
|
+
"./upload/index.js": "23b3"
|
|
36647
39093
|
};
|
|
36648
39094
|
|
|
36649
39095
|
|
|
@@ -38107,6 +40553,17 @@ module.exports =
|
|
|
38107
40553
|
|
|
38108
40554
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
38109
40555
|
|
|
40556
|
+
/***/ }),
|
|
40557
|
+
|
|
40558
|
+
/***/ "dad1":
|
|
40559
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
40560
|
+
|
|
40561
|
+
"use strict";
|
|
40562
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NetDisc_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9cdf");
|
|
40563
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NetDisc_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NetDisc_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
40564
|
+
/* unused harmony reexport * */
|
|
40565
|
+
|
|
40566
|
+
|
|
38110
40567
|
/***/ }),
|
|
38111
40568
|
|
|
38112
40569
|
/***/ "dbb4":
|
|
@@ -40182,14 +42639,12 @@ var theme_chalk = __webpack_require__("2be4");
|
|
|
40182
42639
|
|
|
40183
42640
|
|
|
40184
42641
|
|
|
40185
|
-
var requireComponents = __webpack_require__("
|
|
42642
|
+
var requireComponents = __webpack_require__("5eca"); // 代替import进行动态引入,webpack中方法
|
|
40186
42643
|
|
|
40187
42644
|
|
|
40188
42645
|
var modulesArr = __webpack_require__("d39b"); // 只取二级目录,避免取到内层不符合文件结构的index.js
|
|
40189
42646
|
|
|
40190
42647
|
|
|
40191
|
-
// import "@/assets/iconfont/iconfont.css"; // 之后看情况是否需要打包到项目中 不需要就删掉
|
|
40192
|
-
// import "@/assets/css/global.scss"; // 之后看情况是否需要打包到项目中 不需要就删掉
|
|
40193
42648
|
|
|
40194
42649
|
var components = {};
|
|
40195
42650
|
|