@xplortech/apollo-core 0.1.0 → 0.1.1
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/dist/apollo-core/apollo-core.css +2109 -5
- package/dist/apollo-core/apollo-core.esm.js +125 -1
- package/dist/apollo-core/app-globals-0f993ce5.js +3 -0
- package/dist/apollo-core/css-shim-bbdf0cc6.js +4 -0
- package/dist/apollo-core/dom-1f98a75f.js +73 -0
- package/dist/apollo-core/index-912d1a21.js +584 -0
- package/dist/apollo-core/index-f313719f.js +2938 -0
- package/dist/apollo-core/index.esm.js +1 -0
- package/dist/apollo-core/{p-1e6a342a.entry.js → p-6c4f9227.entry.js} +3 -3
- package/dist/apollo-core/shadow-css-67b66845.js +389 -0
- package/dist/apollo-core/xpl-avatar.entry.js +19 -0
- package/dist/apollo-core/xpl-badge.entry.js +17 -0
- package/dist/apollo-core/xpl-breadcrumb-item.entry.js +19 -0
- package/dist/apollo-core/xpl-breadcrumbs.entry.js +14 -0
- package/dist/apollo-core/xpl-button.entry.js +16086 -0
- package/dist/apollo-core/xpl-checkbox.entry.js +14 -0
- package/dist/apollo-core/xpl-choicelist.entry.js +12 -0
- package/dist/apollo-core/xpl-pagination.entry.js +72 -0
- package/dist/apollo-core/xpl-radio.entry.js +14 -0
- package/dist/apollo-core/xpl-table.entry.js +85 -0
- package/dist/apollo-core/xpl-utility-bar.entry.js +12 -0
- package/dist/cjs/apollo-core.cjs.js +112 -4
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-a7379e2b.js +6 -0
- package/dist/cjs/dom-3e7d9c3b.js +75 -0
- package/dist/cjs/index-318d5fc7.js +586 -0
- package/dist/cjs/index-fca88002.js +2973 -0
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/loader.cjs.js +18 -2
- package/dist/cjs/shadow-css-09555044.js +391 -0
- package/dist/cjs/xpl-avatar.cjs.entry.js +23 -0
- package/dist/cjs/{xpl-avatar_7.cjs.entry.js → xpl-avatar_9.cjs.entry.js} +27 -0
- package/dist/cjs/xpl-badge.cjs.entry.js +21 -0
- package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +23 -0
- package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +18 -0
- package/dist/cjs/xpl-button.cjs.entry.js +16090 -0
- package/dist/cjs/xpl-checkbox.cjs.entry.js +18 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +1 -1
- package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
- package/dist/cjs/xpl-radio.cjs.entry.js +18 -0
- package/dist/cjs/xpl-table.cjs.entry.js +89 -0
- package/dist/cjs/xpl-utility-bar.cjs.entry.js +16 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +19 -0
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +12 -0
- package/dist/custom-elements/index.js +560 -2
- package/dist/esm/apollo-core.js +112 -4
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-bbdf0cc6.js +4 -0
- package/dist/esm/dom-1f98a75f.js +73 -0
- package/dist/esm/index-912d1a21.js +584 -0
- package/dist/esm/index-f313719f.js +2938 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +18 -2
- package/dist/esm/shadow-css-67b66845.js +389 -0
- package/dist/esm/xpl-avatar.entry.js +19 -0
- package/dist/esm/{xpl-avatar_7.entry.js → xpl-avatar_9.entry.js} +26 -1
- package/dist/esm/xpl-badge.entry.js +17 -0
- package/dist/esm/xpl-breadcrumb-item.entry.js +19 -0
- package/dist/esm/xpl-breadcrumbs.entry.js +14 -0
- package/dist/esm/xpl-button.entry.js +16086 -0
- package/dist/esm/xpl-checkbox.entry.js +14 -0
- package/dist/esm/xpl-choicelist.entry.js +1 -1
- package/dist/esm/xpl-pagination.entry.js +1 -1
- package/dist/esm/xpl-radio.entry.js +14 -0
- package/dist/esm/xpl-table.entry.js +85 -0
- package/dist/esm/xpl-utility-bar.entry.js +12 -0
- package/dist/stories/breadcrumbs.stories.js +115 -0
- package/dist/stories/table.stories.js +1 -1
- package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/breadcrumbs.stories.d.ts +53 -0
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.d.ts +4 -0
- package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.d.ts +3 -0
- package/package.json +1 -1
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/button.stories.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/table.stories.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/{home/runner/work/apollo → Users/fernandogelin/Projects}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { h, Host, attachShadow, createEvent, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
3
|
|
|
4
|
+
//! Autogenerated index
|
|
5
|
+
|
|
6
|
+
const globalScripts = () => {};
|
|
7
|
+
|
|
4
8
|
const XplAvatar$1 = class extends HTMLElement {
|
|
5
9
|
constructor() {
|
|
6
10
|
super();
|
|
@@ -33,11 +37,41 @@ const XplBadge$1 = class extends HTMLElement {
|
|
|
33
37
|
}
|
|
34
38
|
};
|
|
35
39
|
|
|
40
|
+
const XplBreadcrumbItem$1 = class extends HTMLElement {
|
|
41
|
+
constructor() {
|
|
42
|
+
super();
|
|
43
|
+
this.__registerHost();
|
|
44
|
+
// This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.
|
|
45
|
+
this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
|
|
46
|
+
<path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
|
|
47
|
+
</svg>
|
|
48
|
+
`;
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
return (h(Host, { class: "xpl-breadcrumb-item", role: "listitem" }, h("li", { role: "none" }, h("slot", null)), h("span", { innerHTML: `${this.chevron}` })));
|
|
52
|
+
}
|
|
53
|
+
;
|
|
54
|
+
};
|
|
55
|
+
;
|
|
56
|
+
|
|
57
|
+
const XplBreadcrumbs$1 = class extends HTMLElement {
|
|
58
|
+
constructor() {
|
|
59
|
+
super();
|
|
60
|
+
this.__registerHost();
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
return (h(Host, null, h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, h("ol", { role: "list" }, h("slot", null)))));
|
|
64
|
+
}
|
|
65
|
+
;
|
|
66
|
+
};
|
|
67
|
+
;
|
|
68
|
+
|
|
36
69
|
/*!
|
|
37
70
|
* Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com
|
|
38
71
|
* License - https://fontawesome.com/license (Commercial License)
|
|
39
72
|
*/
|
|
40
73
|
(function () {
|
|
74
|
+
"use strict";
|
|
41
75
|
|
|
42
76
|
function _typeof(obj) {
|
|
43
77
|
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
@@ -2981,11 +3015,14 @@ const XplBadge$1 = class extends HTMLElement {
|
|
|
2981
3015
|
* License - https://fontawesome.com/license (Commercial License)
|
|
2982
3016
|
*/
|
|
2983
3017
|
(function () {
|
|
3018
|
+
"use strict";
|
|
2984
3019
|
|
|
2985
3020
|
var _WINDOW = {};
|
|
3021
|
+
var _DOCUMENT = {};
|
|
2986
3022
|
|
|
2987
3023
|
try {
|
|
2988
3024
|
if (typeof window !== "undefined") _WINDOW = window;
|
|
3025
|
+
if (typeof document !== "undefined") _DOCUMENT = document;
|
|
2989
3026
|
} catch (e) {}
|
|
2990
3027
|
|
|
2991
3028
|
var _ref = _WINDOW.navigator || {},
|
|
@@ -2993,7 +3030,14 @@ const XplBadge$1 = class extends HTMLElement {
|
|
|
2993
3030
|
userAgent = _ref$userAgent === void 0 ? "" : _ref$userAgent;
|
|
2994
3031
|
|
|
2995
3032
|
var WINDOW = _WINDOW;
|
|
2996
|
-
|
|
3033
|
+
var DOCUMENT = _DOCUMENT;
|
|
3034
|
+
var IS_BROWSER = !!WINDOW.document;
|
|
3035
|
+
var IS_DOM =
|
|
3036
|
+
!!DOCUMENT.documentElement &&
|
|
3037
|
+
!!DOCUMENT.head &&
|
|
3038
|
+
typeof DOCUMENT.addEventListener === "function" &&
|
|
3039
|
+
typeof DOCUMENT.createElement === "function";
|
|
3040
|
+
var IS_IE = ~userAgent.indexOf("MSIE") || ~userAgent.indexOf("Trident/");
|
|
2997
3041
|
|
|
2998
3042
|
var NAMESPACE_IDENTIFIER = "___FONT_AWESOME___";
|
|
2999
3043
|
var PRODUCTION = (function () {
|
|
@@ -16160,6 +16204,408 @@ function stringify(arr) {
|
|
|
16160
16204
|
return uuid;
|
|
16161
16205
|
}
|
|
16162
16206
|
|
|
16207
|
+
//
|
|
16208
|
+
// Inspired by https://github.com/LiosK/UUID.js
|
|
16209
|
+
// and http://docs.python.org/library/uuid.html
|
|
16210
|
+
|
|
16211
|
+
var _nodeId;
|
|
16212
|
+
|
|
16213
|
+
var _clockseq; // Previous uuid creation time
|
|
16214
|
+
|
|
16215
|
+
|
|
16216
|
+
var _lastMSecs = 0;
|
|
16217
|
+
var _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details
|
|
16218
|
+
|
|
16219
|
+
function v1(options, buf, offset) {
|
|
16220
|
+
var i = buf && offset || 0;
|
|
16221
|
+
var b = buf || new Array(16);
|
|
16222
|
+
options = options || {};
|
|
16223
|
+
var node = options.node || _nodeId;
|
|
16224
|
+
var clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not
|
|
16225
|
+
// specified. We do this lazily to minimize issues related to insufficient
|
|
16226
|
+
// system entropy. See #189
|
|
16227
|
+
|
|
16228
|
+
if (node == null || clockseq == null) {
|
|
16229
|
+
var seedBytes = options.random || (options.rng || rng)();
|
|
16230
|
+
|
|
16231
|
+
if (node == null) {
|
|
16232
|
+
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
|
16233
|
+
node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]];
|
|
16234
|
+
}
|
|
16235
|
+
|
|
16236
|
+
if (clockseq == null) {
|
|
16237
|
+
// Per 4.2.2, randomize (14 bit) clockseq
|
|
16238
|
+
clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff;
|
|
16239
|
+
}
|
|
16240
|
+
} // UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
|
16241
|
+
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
16242
|
+
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
16243
|
+
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
16244
|
+
|
|
16245
|
+
|
|
16246
|
+
var msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
16247
|
+
// cycle to simulate higher resolution clock
|
|
16248
|
+
|
|
16249
|
+
var nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs)
|
|
16250
|
+
|
|
16251
|
+
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression
|
|
16252
|
+
|
|
16253
|
+
if (dt < 0 && options.clockseq === undefined) {
|
|
16254
|
+
clockseq = clockseq + 1 & 0x3fff;
|
|
16255
|
+
} // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
16256
|
+
// time interval
|
|
16257
|
+
|
|
16258
|
+
|
|
16259
|
+
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) {
|
|
16260
|
+
nsecs = 0;
|
|
16261
|
+
} // Per 4.2.1.2 Throw error if too many uuids are requested
|
|
16262
|
+
|
|
16263
|
+
|
|
16264
|
+
if (nsecs >= 10000) {
|
|
16265
|
+
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
16266
|
+
}
|
|
16267
|
+
|
|
16268
|
+
_lastMSecs = msecs;
|
|
16269
|
+
_lastNSecs = nsecs;
|
|
16270
|
+
_clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
16271
|
+
|
|
16272
|
+
msecs += 12219292800000; // `time_low`
|
|
16273
|
+
|
|
16274
|
+
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
16275
|
+
b[i++] = tl >>> 24 & 0xff;
|
|
16276
|
+
b[i++] = tl >>> 16 & 0xff;
|
|
16277
|
+
b[i++] = tl >>> 8 & 0xff;
|
|
16278
|
+
b[i++] = tl & 0xff; // `time_mid`
|
|
16279
|
+
|
|
16280
|
+
var tmh = msecs / 0x100000000 * 10000 & 0xfffffff;
|
|
16281
|
+
b[i++] = tmh >>> 8 & 0xff;
|
|
16282
|
+
b[i++] = tmh & 0xff; // `time_high_and_version`
|
|
16283
|
+
|
|
16284
|
+
b[i++] = tmh >>> 24 & 0xf | 0x10; // include version
|
|
16285
|
+
|
|
16286
|
+
b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
16287
|
+
|
|
16288
|
+
b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low`
|
|
16289
|
+
|
|
16290
|
+
b[i++] = clockseq & 0xff; // `node`
|
|
16291
|
+
|
|
16292
|
+
for (var n = 0; n < 6; ++n) {
|
|
16293
|
+
b[i + n] = node[n];
|
|
16294
|
+
}
|
|
16295
|
+
|
|
16296
|
+
return buf || stringify(b);
|
|
16297
|
+
}
|
|
16298
|
+
|
|
16299
|
+
function parse(uuid) {
|
|
16300
|
+
if (!validate(uuid)) {
|
|
16301
|
+
throw TypeError('Invalid UUID');
|
|
16302
|
+
}
|
|
16303
|
+
|
|
16304
|
+
var v;
|
|
16305
|
+
var arr = new Uint8Array(16); // Parse ########-....-....-....-............
|
|
16306
|
+
|
|
16307
|
+
arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
|
|
16308
|
+
arr[1] = v >>> 16 & 0xff;
|
|
16309
|
+
arr[2] = v >>> 8 & 0xff;
|
|
16310
|
+
arr[3] = v & 0xff; // Parse ........-####-....-....-............
|
|
16311
|
+
|
|
16312
|
+
arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
|
|
16313
|
+
arr[5] = v & 0xff; // Parse ........-....-####-....-............
|
|
16314
|
+
|
|
16315
|
+
arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
|
|
16316
|
+
arr[7] = v & 0xff; // Parse ........-....-....-####-............
|
|
16317
|
+
|
|
16318
|
+
arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
|
|
16319
|
+
arr[9] = v & 0xff; // Parse ........-....-....-....-############
|
|
16320
|
+
// (Use "/" to avoid 32-bit truncation when bit-shifting high-order bytes)
|
|
16321
|
+
|
|
16322
|
+
arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;
|
|
16323
|
+
arr[11] = v / 0x100000000 & 0xff;
|
|
16324
|
+
arr[12] = v >>> 24 & 0xff;
|
|
16325
|
+
arr[13] = v >>> 16 & 0xff;
|
|
16326
|
+
arr[14] = v >>> 8 & 0xff;
|
|
16327
|
+
arr[15] = v & 0xff;
|
|
16328
|
+
return arr;
|
|
16329
|
+
}
|
|
16330
|
+
|
|
16331
|
+
function stringToBytes(str) {
|
|
16332
|
+
str = unescape(encodeURIComponent(str)); // UTF8 escape
|
|
16333
|
+
|
|
16334
|
+
var bytes = [];
|
|
16335
|
+
|
|
16336
|
+
for (var i = 0; i < str.length; ++i) {
|
|
16337
|
+
bytes.push(str.charCodeAt(i));
|
|
16338
|
+
}
|
|
16339
|
+
|
|
16340
|
+
return bytes;
|
|
16341
|
+
}
|
|
16342
|
+
|
|
16343
|
+
var DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
|
|
16344
|
+
var URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
|
|
16345
|
+
function v35 (name, version, hashfunc) {
|
|
16346
|
+
function generateUUID(value, namespace, buf, offset) {
|
|
16347
|
+
if (typeof value === 'string') {
|
|
16348
|
+
value = stringToBytes(value);
|
|
16349
|
+
}
|
|
16350
|
+
|
|
16351
|
+
if (typeof namespace === 'string') {
|
|
16352
|
+
namespace = parse(namespace);
|
|
16353
|
+
}
|
|
16354
|
+
|
|
16355
|
+
if (namespace.length !== 16) {
|
|
16356
|
+
throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');
|
|
16357
|
+
} // Compute hash of namespace and value, Per 4.3
|
|
16358
|
+
// Future: Use spread syntax when supported on all platforms, e.g. `bytes =
|
|
16359
|
+
// hashfunc([...namespace, ... value])`
|
|
16360
|
+
|
|
16361
|
+
|
|
16362
|
+
var bytes = new Uint8Array(16 + value.length);
|
|
16363
|
+
bytes.set(namespace);
|
|
16364
|
+
bytes.set(value, namespace.length);
|
|
16365
|
+
bytes = hashfunc(bytes);
|
|
16366
|
+
bytes[6] = bytes[6] & 0x0f | version;
|
|
16367
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
16368
|
+
|
|
16369
|
+
if (buf) {
|
|
16370
|
+
offset = offset || 0;
|
|
16371
|
+
|
|
16372
|
+
for (var i = 0; i < 16; ++i) {
|
|
16373
|
+
buf[offset + i] = bytes[i];
|
|
16374
|
+
}
|
|
16375
|
+
|
|
16376
|
+
return buf;
|
|
16377
|
+
}
|
|
16378
|
+
|
|
16379
|
+
return stringify(bytes);
|
|
16380
|
+
} // Function#name is not settable on some platforms (#270)
|
|
16381
|
+
|
|
16382
|
+
|
|
16383
|
+
try {
|
|
16384
|
+
generateUUID.name = name; // eslint-disable-next-line no-empty
|
|
16385
|
+
} catch (err) {} // For CommonJS default export support
|
|
16386
|
+
|
|
16387
|
+
|
|
16388
|
+
generateUUID.DNS = DNS;
|
|
16389
|
+
generateUUID.URL = URL;
|
|
16390
|
+
return generateUUID;
|
|
16391
|
+
}
|
|
16392
|
+
|
|
16393
|
+
/*
|
|
16394
|
+
* Browser-compatible JavaScript MD5
|
|
16395
|
+
*
|
|
16396
|
+
* Modification of JavaScript MD5
|
|
16397
|
+
* https://github.com/blueimp/JavaScript-MD5
|
|
16398
|
+
*
|
|
16399
|
+
* Copyright 2011, Sebastian Tschan
|
|
16400
|
+
* https://blueimp.net
|
|
16401
|
+
*
|
|
16402
|
+
* Licensed under the MIT license:
|
|
16403
|
+
* https://opensource.org/licenses/MIT
|
|
16404
|
+
*
|
|
16405
|
+
* Based on
|
|
16406
|
+
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
|
|
16407
|
+
* Digest Algorithm, as defined in RFC 1321.
|
|
16408
|
+
* Version 2.2 Copyright (C) Paul Johnston 1999 - 2009
|
|
16409
|
+
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
|
16410
|
+
* Distributed under the BSD License
|
|
16411
|
+
* See http://pajhome.org.uk/crypt/md5 for more info.
|
|
16412
|
+
*/
|
|
16413
|
+
function md5(bytes) {
|
|
16414
|
+
if (typeof bytes === 'string') {
|
|
16415
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
16416
|
+
|
|
16417
|
+
bytes = new Uint8Array(msg.length);
|
|
16418
|
+
|
|
16419
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
16420
|
+
bytes[i] = msg.charCodeAt(i);
|
|
16421
|
+
}
|
|
16422
|
+
}
|
|
16423
|
+
|
|
16424
|
+
return md5ToHexEncodedArray(wordsToMd5(bytesToWords(bytes), bytes.length * 8));
|
|
16425
|
+
}
|
|
16426
|
+
/*
|
|
16427
|
+
* Convert an array of little-endian words to an array of bytes
|
|
16428
|
+
*/
|
|
16429
|
+
|
|
16430
|
+
|
|
16431
|
+
function md5ToHexEncodedArray(input) {
|
|
16432
|
+
var output = [];
|
|
16433
|
+
var length32 = input.length * 32;
|
|
16434
|
+
var hexTab = '0123456789abcdef';
|
|
16435
|
+
|
|
16436
|
+
for (var i = 0; i < length32; i += 8) {
|
|
16437
|
+
var x = input[i >> 5] >>> i % 32 & 0xff;
|
|
16438
|
+
var hex = parseInt(hexTab.charAt(x >>> 4 & 0x0f) + hexTab.charAt(x & 0x0f), 16);
|
|
16439
|
+
output.push(hex);
|
|
16440
|
+
}
|
|
16441
|
+
|
|
16442
|
+
return output;
|
|
16443
|
+
}
|
|
16444
|
+
/**
|
|
16445
|
+
* Calculate output length with padding and bit length
|
|
16446
|
+
*/
|
|
16447
|
+
|
|
16448
|
+
|
|
16449
|
+
function getOutputLength(inputLength8) {
|
|
16450
|
+
return (inputLength8 + 64 >>> 9 << 4) + 14 + 1;
|
|
16451
|
+
}
|
|
16452
|
+
/*
|
|
16453
|
+
* Calculate the MD5 of an array of little-endian words, and a bit length.
|
|
16454
|
+
*/
|
|
16455
|
+
|
|
16456
|
+
|
|
16457
|
+
function wordsToMd5(x, len) {
|
|
16458
|
+
/* append padding */
|
|
16459
|
+
x[len >> 5] |= 0x80 << len % 32;
|
|
16460
|
+
x[getOutputLength(len) - 1] = len;
|
|
16461
|
+
var a = 1732584193;
|
|
16462
|
+
var b = -271733879;
|
|
16463
|
+
var c = -1732584194;
|
|
16464
|
+
var d = 271733878;
|
|
16465
|
+
|
|
16466
|
+
for (var i = 0; i < x.length; i += 16) {
|
|
16467
|
+
var olda = a;
|
|
16468
|
+
var oldb = b;
|
|
16469
|
+
var oldc = c;
|
|
16470
|
+
var oldd = d;
|
|
16471
|
+
a = md5ff(a, b, c, d, x[i], 7, -680876936);
|
|
16472
|
+
d = md5ff(d, a, b, c, x[i + 1], 12, -389564586);
|
|
16473
|
+
c = md5ff(c, d, a, b, x[i + 2], 17, 606105819);
|
|
16474
|
+
b = md5ff(b, c, d, a, x[i + 3], 22, -1044525330);
|
|
16475
|
+
a = md5ff(a, b, c, d, x[i + 4], 7, -176418897);
|
|
16476
|
+
d = md5ff(d, a, b, c, x[i + 5], 12, 1200080426);
|
|
16477
|
+
c = md5ff(c, d, a, b, x[i + 6], 17, -1473231341);
|
|
16478
|
+
b = md5ff(b, c, d, a, x[i + 7], 22, -45705983);
|
|
16479
|
+
a = md5ff(a, b, c, d, x[i + 8], 7, 1770035416);
|
|
16480
|
+
d = md5ff(d, a, b, c, x[i + 9], 12, -1958414417);
|
|
16481
|
+
c = md5ff(c, d, a, b, x[i + 10], 17, -42063);
|
|
16482
|
+
b = md5ff(b, c, d, a, x[i + 11], 22, -1990404162);
|
|
16483
|
+
a = md5ff(a, b, c, d, x[i + 12], 7, 1804603682);
|
|
16484
|
+
d = md5ff(d, a, b, c, x[i + 13], 12, -40341101);
|
|
16485
|
+
c = md5ff(c, d, a, b, x[i + 14], 17, -1502002290);
|
|
16486
|
+
b = md5ff(b, c, d, a, x[i + 15], 22, 1236535329);
|
|
16487
|
+
a = md5gg(a, b, c, d, x[i + 1], 5, -165796510);
|
|
16488
|
+
d = md5gg(d, a, b, c, x[i + 6], 9, -1069501632);
|
|
16489
|
+
c = md5gg(c, d, a, b, x[i + 11], 14, 643717713);
|
|
16490
|
+
b = md5gg(b, c, d, a, x[i], 20, -373897302);
|
|
16491
|
+
a = md5gg(a, b, c, d, x[i + 5], 5, -701558691);
|
|
16492
|
+
d = md5gg(d, a, b, c, x[i + 10], 9, 38016083);
|
|
16493
|
+
c = md5gg(c, d, a, b, x[i + 15], 14, -660478335);
|
|
16494
|
+
b = md5gg(b, c, d, a, x[i + 4], 20, -405537848);
|
|
16495
|
+
a = md5gg(a, b, c, d, x[i + 9], 5, 568446438);
|
|
16496
|
+
d = md5gg(d, a, b, c, x[i + 14], 9, -1019803690);
|
|
16497
|
+
c = md5gg(c, d, a, b, x[i + 3], 14, -187363961);
|
|
16498
|
+
b = md5gg(b, c, d, a, x[i + 8], 20, 1163531501);
|
|
16499
|
+
a = md5gg(a, b, c, d, x[i + 13], 5, -1444681467);
|
|
16500
|
+
d = md5gg(d, a, b, c, x[i + 2], 9, -51403784);
|
|
16501
|
+
c = md5gg(c, d, a, b, x[i + 7], 14, 1735328473);
|
|
16502
|
+
b = md5gg(b, c, d, a, x[i + 12], 20, -1926607734);
|
|
16503
|
+
a = md5hh(a, b, c, d, x[i + 5], 4, -378558);
|
|
16504
|
+
d = md5hh(d, a, b, c, x[i + 8], 11, -2022574463);
|
|
16505
|
+
c = md5hh(c, d, a, b, x[i + 11], 16, 1839030562);
|
|
16506
|
+
b = md5hh(b, c, d, a, x[i + 14], 23, -35309556);
|
|
16507
|
+
a = md5hh(a, b, c, d, x[i + 1], 4, -1530992060);
|
|
16508
|
+
d = md5hh(d, a, b, c, x[i + 4], 11, 1272893353);
|
|
16509
|
+
c = md5hh(c, d, a, b, x[i + 7], 16, -155497632);
|
|
16510
|
+
b = md5hh(b, c, d, a, x[i + 10], 23, -1094730640);
|
|
16511
|
+
a = md5hh(a, b, c, d, x[i + 13], 4, 681279174);
|
|
16512
|
+
d = md5hh(d, a, b, c, x[i], 11, -358537222);
|
|
16513
|
+
c = md5hh(c, d, a, b, x[i + 3], 16, -722521979);
|
|
16514
|
+
b = md5hh(b, c, d, a, x[i + 6], 23, 76029189);
|
|
16515
|
+
a = md5hh(a, b, c, d, x[i + 9], 4, -640364487);
|
|
16516
|
+
d = md5hh(d, a, b, c, x[i + 12], 11, -421815835);
|
|
16517
|
+
c = md5hh(c, d, a, b, x[i + 15], 16, 530742520);
|
|
16518
|
+
b = md5hh(b, c, d, a, x[i + 2], 23, -995338651);
|
|
16519
|
+
a = md5ii(a, b, c, d, x[i], 6, -198630844);
|
|
16520
|
+
d = md5ii(d, a, b, c, x[i + 7], 10, 1126891415);
|
|
16521
|
+
c = md5ii(c, d, a, b, x[i + 14], 15, -1416354905);
|
|
16522
|
+
b = md5ii(b, c, d, a, x[i + 5], 21, -57434055);
|
|
16523
|
+
a = md5ii(a, b, c, d, x[i + 12], 6, 1700485571);
|
|
16524
|
+
d = md5ii(d, a, b, c, x[i + 3], 10, -1894986606);
|
|
16525
|
+
c = md5ii(c, d, a, b, x[i + 10], 15, -1051523);
|
|
16526
|
+
b = md5ii(b, c, d, a, x[i + 1], 21, -2054922799);
|
|
16527
|
+
a = md5ii(a, b, c, d, x[i + 8], 6, 1873313359);
|
|
16528
|
+
d = md5ii(d, a, b, c, x[i + 15], 10, -30611744);
|
|
16529
|
+
c = md5ii(c, d, a, b, x[i + 6], 15, -1560198380);
|
|
16530
|
+
b = md5ii(b, c, d, a, x[i + 13], 21, 1309151649);
|
|
16531
|
+
a = md5ii(a, b, c, d, x[i + 4], 6, -145523070);
|
|
16532
|
+
d = md5ii(d, a, b, c, x[i + 11], 10, -1120210379);
|
|
16533
|
+
c = md5ii(c, d, a, b, x[i + 2], 15, 718787259);
|
|
16534
|
+
b = md5ii(b, c, d, a, x[i + 9], 21, -343485551);
|
|
16535
|
+
a = safeAdd(a, olda);
|
|
16536
|
+
b = safeAdd(b, oldb);
|
|
16537
|
+
c = safeAdd(c, oldc);
|
|
16538
|
+
d = safeAdd(d, oldd);
|
|
16539
|
+
}
|
|
16540
|
+
|
|
16541
|
+
return [a, b, c, d];
|
|
16542
|
+
}
|
|
16543
|
+
/*
|
|
16544
|
+
* Convert an array bytes to an array of little-endian words
|
|
16545
|
+
* Characters >255 have their high-byte silently ignored.
|
|
16546
|
+
*/
|
|
16547
|
+
|
|
16548
|
+
|
|
16549
|
+
function bytesToWords(input) {
|
|
16550
|
+
if (input.length === 0) {
|
|
16551
|
+
return [];
|
|
16552
|
+
}
|
|
16553
|
+
|
|
16554
|
+
var length8 = input.length * 8;
|
|
16555
|
+
var output = new Uint32Array(getOutputLength(length8));
|
|
16556
|
+
|
|
16557
|
+
for (var i = 0; i < length8; i += 8) {
|
|
16558
|
+
output[i >> 5] |= (input[i / 8] & 0xff) << i % 32;
|
|
16559
|
+
}
|
|
16560
|
+
|
|
16561
|
+
return output;
|
|
16562
|
+
}
|
|
16563
|
+
/*
|
|
16564
|
+
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
|
16565
|
+
* to work around bugs in some JS interpreters.
|
|
16566
|
+
*/
|
|
16567
|
+
|
|
16568
|
+
|
|
16569
|
+
function safeAdd(x, y) {
|
|
16570
|
+
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
16571
|
+
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
16572
|
+
return msw << 16 | lsw & 0xffff;
|
|
16573
|
+
}
|
|
16574
|
+
/*
|
|
16575
|
+
* Bitwise rotate a 32-bit number to the left.
|
|
16576
|
+
*/
|
|
16577
|
+
|
|
16578
|
+
|
|
16579
|
+
function bitRotateLeft(num, cnt) {
|
|
16580
|
+
return num << cnt | num >>> 32 - cnt;
|
|
16581
|
+
}
|
|
16582
|
+
/*
|
|
16583
|
+
* These functions implement the four basic operations the algorithm uses.
|
|
16584
|
+
*/
|
|
16585
|
+
|
|
16586
|
+
|
|
16587
|
+
function md5cmn(q, a, b, x, s, t) {
|
|
16588
|
+
return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
|
|
16589
|
+
}
|
|
16590
|
+
|
|
16591
|
+
function md5ff(a, b, c, d, x, s, t) {
|
|
16592
|
+
return md5cmn(b & c | ~b & d, a, b, x, s, t);
|
|
16593
|
+
}
|
|
16594
|
+
|
|
16595
|
+
function md5gg(a, b, c, d, x, s, t) {
|
|
16596
|
+
return md5cmn(b & d | c & ~d, a, b, x, s, t);
|
|
16597
|
+
}
|
|
16598
|
+
|
|
16599
|
+
function md5hh(a, b, c, d, x, s, t) {
|
|
16600
|
+
return md5cmn(b ^ c ^ d, a, b, x, s, t);
|
|
16601
|
+
}
|
|
16602
|
+
|
|
16603
|
+
function md5ii(a, b, c, d, x, s, t) {
|
|
16604
|
+
return md5cmn(c ^ (b | ~d), a, b, x, s, t);
|
|
16605
|
+
}
|
|
16606
|
+
|
|
16607
|
+
var v3 = v35('v3', 0x30, md5);
|
|
16608
|
+
|
|
16163
16609
|
function v4(options, buf, offset) {
|
|
16164
16610
|
options = options || {};
|
|
16165
16611
|
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
@@ -16180,6 +16626,113 @@ function v4(options, buf, offset) {
|
|
|
16180
16626
|
return stringify(rnds);
|
|
16181
16627
|
}
|
|
16182
16628
|
|
|
16629
|
+
// Adapted from Chris Veness' SHA1 code at
|
|
16630
|
+
// http://www.movable-type.co.uk/scripts/sha1.html
|
|
16631
|
+
function f(s, x, y, z) {
|
|
16632
|
+
switch (s) {
|
|
16633
|
+
case 0:
|
|
16634
|
+
return x & y ^ ~x & z;
|
|
16635
|
+
|
|
16636
|
+
case 1:
|
|
16637
|
+
return x ^ y ^ z;
|
|
16638
|
+
|
|
16639
|
+
case 2:
|
|
16640
|
+
return x & y ^ x & z ^ y & z;
|
|
16641
|
+
|
|
16642
|
+
case 3:
|
|
16643
|
+
return x ^ y ^ z;
|
|
16644
|
+
}
|
|
16645
|
+
}
|
|
16646
|
+
|
|
16647
|
+
function ROTL(x, n) {
|
|
16648
|
+
return x << n | x >>> 32 - n;
|
|
16649
|
+
}
|
|
16650
|
+
|
|
16651
|
+
function sha1(bytes) {
|
|
16652
|
+
var K = [0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xca62c1d6];
|
|
16653
|
+
var H = [0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0];
|
|
16654
|
+
|
|
16655
|
+
if (typeof bytes === 'string') {
|
|
16656
|
+
var msg = unescape(encodeURIComponent(bytes)); // UTF8 escape
|
|
16657
|
+
|
|
16658
|
+
bytes = [];
|
|
16659
|
+
|
|
16660
|
+
for (var i = 0; i < msg.length; ++i) {
|
|
16661
|
+
bytes.push(msg.charCodeAt(i));
|
|
16662
|
+
}
|
|
16663
|
+
} else if (!Array.isArray(bytes)) {
|
|
16664
|
+
// Convert Array-like to Array
|
|
16665
|
+
bytes = Array.prototype.slice.call(bytes);
|
|
16666
|
+
}
|
|
16667
|
+
|
|
16668
|
+
bytes.push(0x80);
|
|
16669
|
+
var l = bytes.length / 4 + 2;
|
|
16670
|
+
var N = Math.ceil(l / 16);
|
|
16671
|
+
var M = new Array(N);
|
|
16672
|
+
|
|
16673
|
+
for (var _i = 0; _i < N; ++_i) {
|
|
16674
|
+
var arr = new Uint32Array(16);
|
|
16675
|
+
|
|
16676
|
+
for (var j = 0; j < 16; ++j) {
|
|
16677
|
+
arr[j] = bytes[_i * 64 + j * 4] << 24 | bytes[_i * 64 + j * 4 + 1] << 16 | bytes[_i * 64 + j * 4 + 2] << 8 | bytes[_i * 64 + j * 4 + 3];
|
|
16678
|
+
}
|
|
16679
|
+
|
|
16680
|
+
M[_i] = arr;
|
|
16681
|
+
}
|
|
16682
|
+
|
|
16683
|
+
M[N - 1][14] = (bytes.length - 1) * 8 / Math.pow(2, 32);
|
|
16684
|
+
M[N - 1][14] = Math.floor(M[N - 1][14]);
|
|
16685
|
+
M[N - 1][15] = (bytes.length - 1) * 8 & 0xffffffff;
|
|
16686
|
+
|
|
16687
|
+
for (var _i2 = 0; _i2 < N; ++_i2) {
|
|
16688
|
+
var W = new Uint32Array(80);
|
|
16689
|
+
|
|
16690
|
+
for (var t = 0; t < 16; ++t) {
|
|
16691
|
+
W[t] = M[_i2][t];
|
|
16692
|
+
}
|
|
16693
|
+
|
|
16694
|
+
for (var _t = 16; _t < 80; ++_t) {
|
|
16695
|
+
W[_t] = ROTL(W[_t - 3] ^ W[_t - 8] ^ W[_t - 14] ^ W[_t - 16], 1);
|
|
16696
|
+
}
|
|
16697
|
+
|
|
16698
|
+
var a = H[0];
|
|
16699
|
+
var b = H[1];
|
|
16700
|
+
var c = H[2];
|
|
16701
|
+
var d = H[3];
|
|
16702
|
+
var e = H[4];
|
|
16703
|
+
|
|
16704
|
+
for (var _t2 = 0; _t2 < 80; ++_t2) {
|
|
16705
|
+
var s = Math.floor(_t2 / 20);
|
|
16706
|
+
var T = ROTL(a, 5) + f(s, b, c, d) + e + K[s] + W[_t2] >>> 0;
|
|
16707
|
+
e = d;
|
|
16708
|
+
d = c;
|
|
16709
|
+
c = ROTL(b, 30) >>> 0;
|
|
16710
|
+
b = a;
|
|
16711
|
+
a = T;
|
|
16712
|
+
}
|
|
16713
|
+
|
|
16714
|
+
H[0] = H[0] + a >>> 0;
|
|
16715
|
+
H[1] = H[1] + b >>> 0;
|
|
16716
|
+
H[2] = H[2] + c >>> 0;
|
|
16717
|
+
H[3] = H[3] + d >>> 0;
|
|
16718
|
+
H[4] = H[4] + e >>> 0;
|
|
16719
|
+
}
|
|
16720
|
+
|
|
16721
|
+
return [H[0] >> 24 & 0xff, H[0] >> 16 & 0xff, H[0] >> 8 & 0xff, H[0] & 0xff, H[1] >> 24 & 0xff, H[1] >> 16 & 0xff, H[1] >> 8 & 0xff, H[1] & 0xff, H[2] >> 24 & 0xff, H[2] >> 16 & 0xff, H[2] >> 8 & 0xff, H[2] & 0xff, H[3] >> 24 & 0xff, H[3] >> 16 & 0xff, H[3] >> 8 & 0xff, H[3] & 0xff, H[4] >> 24 & 0xff, H[4] >> 16 & 0xff, H[4] >> 8 & 0xff, H[4] & 0xff];
|
|
16722
|
+
}
|
|
16723
|
+
|
|
16724
|
+
var v5 = v35('v5', 0x50, sha1);
|
|
16725
|
+
|
|
16726
|
+
const nil = '00000000-0000-0000-0000-000000000000';
|
|
16727
|
+
|
|
16728
|
+
function version(uuid) {
|
|
16729
|
+
if (!validate(uuid)) {
|
|
16730
|
+
throw TypeError('Invalid UUID');
|
|
16731
|
+
}
|
|
16732
|
+
|
|
16733
|
+
return parseInt(uuid.substr(14, 1), 16);
|
|
16734
|
+
}
|
|
16735
|
+
|
|
16183
16736
|
const XplCheckbox$1 = class extends HTMLElement {
|
|
16184
16737
|
constructor() {
|
|
16185
16738
|
super();
|
|
@@ -16376,8 +16929,11 @@ const XplUtilityBar$1 = class extends HTMLElement {
|
|
|
16376
16929
|
}
|
|
16377
16930
|
};
|
|
16378
16931
|
|
|
16932
|
+
globalScripts();
|
|
16379
16933
|
const XplAvatar = /*@__PURE__*/proxyCustomElement(XplAvatar$1, [4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}]);
|
|
16380
16934
|
const XplBadge = /*@__PURE__*/proxyCustomElement(XplBadge$1, [4,"xpl-badge",{"dot":[4],"variant":[1]}]);
|
|
16935
|
+
const XplBreadcrumbItem = /*@__PURE__*/proxyCustomElement(XplBreadcrumbItem$1, [4,"xpl-breadcrumb-item"]);
|
|
16936
|
+
const XplBreadcrumbs = /*@__PURE__*/proxyCustomElement(XplBreadcrumbs$1, [4,"xpl-breadcrumbs"]);
|
|
16381
16937
|
const XplButton = /*@__PURE__*/proxyCustomElement(XplButton$1, [4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}]);
|
|
16382
16938
|
const XplCheckbox = /*@__PURE__*/proxyCustomElement(XplCheckbox$1, [4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}]);
|
|
16383
16939
|
const XplChoicelist = /*@__PURE__*/proxyCustomElement(XplChoicelist$1, [1,"xpl-choicelist"]);
|
|
@@ -16390,6 +16946,8 @@ const defineCustomElements = (opts) => {
|
|
|
16390
16946
|
[
|
|
16391
16947
|
XplAvatar,
|
|
16392
16948
|
XplBadge,
|
|
16949
|
+
XplBreadcrumbItem,
|
|
16950
|
+
XplBreadcrumbs,
|
|
16393
16951
|
XplButton,
|
|
16394
16952
|
XplCheckbox,
|
|
16395
16953
|
XplChoicelist,
|
|
@@ -16405,4 +16963,4 @@ const defineCustomElements = (opts) => {
|
|
|
16405
16963
|
}
|
|
16406
16964
|
};
|
|
16407
16965
|
|
|
16408
|
-
export { XplAvatar, XplBadge, XplButton, XplCheckbox, XplChoicelist, XplPagination, XplRadio, XplTable, XplUtilityBar, defineCustomElements };
|
|
16966
|
+
export { XplAvatar, XplBadge, XplBreadcrumbItem, XplBreadcrumbs, XplButton, XplCheckbox, XplChoicelist, XplPagination, XplRadio, XplTable, XplUtilityBar, defineCustomElements };
|