@equinor/echo-components 0.5.26 → 0.5.29
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/components/blackLink/BlackLink.d.ts +11 -0
- package/dist/components/copyToClipboard/CopyToClipboard.d.ts +6 -0
- package/dist/components/echoTooltip/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/echoTooltip/index.d.ts +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +512 -59
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Icon as Icon$1, Button, DotProgress, Banner, CircularProgress, Typography, Dialog, Search, Radio, Slider, Menu, Autocomplete, Tooltip as Tooltip$1 } from '@equinor/eds-core-react';
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import React__default, { useState, useEffect, createElement, Component, useCallback, PureComponent, useRef, useLayoutEffect, useMemo, createContext, useContext, forwardRef, isValidElement, cloneElement, useDebugValue } from 'react';
|
|
3
|
+
import { Icon as Icon$1, Button, DotProgress, Banner, CircularProgress, Typography, TextField, Dialog, Search, Radio, Slider, Menu, Autocomplete, Tooltip as Tooltip$1 } from '@equinor/eds-core-react';
|
|
4
4
|
import * as ReactDOM from 'react-dom';
|
|
5
5
|
import ReactDOM__default, { findDOMNode, createPortal } from 'react-dom';
|
|
6
6
|
import * as edsIcons from '@equinor/eds-icons';
|
|
@@ -34,8 +34,33 @@ function styleInject(css, ref) {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
var css_248z$
|
|
38
|
-
styleInject(css_248z$
|
|
37
|
+
var css_248z$D = ":root{--xSmall:0.25rem;--small:0.5rem;--medium:1rem;--large:1.5rem;--xLarge:2rem;--black:#000;--white:#fff;--equiBlue1:#233746;--equiBlue2:#d7e1ed;--equiBlue3:#d5eaf4;--equiGray1:#87929a;--equiGray2:#b4bbc0;--equiGray3:#d1d5d8;--equiGray4:#e3e6e8;--equiGray5:#f7f7f7;--equiRed1:#ff1243;--darkEquiRed:#ce183e;--equiGreen1:#006f79;--equiGreen2:#deedee;--equiGreen3:#e6faec;--equiGreen4:#c3f3d2;--echoText:#3d3d3d;--disabledBackgroundColor:#eaeaea;--disabledColor:#6f6f6f;--pm01:#0f0;--pm02:#ff1493;--pm03:#0ff;--pm04:#9400d3;--pm05:#1e90ff;--pm06:#ffdead;--pm010:#ff4500;--pm015:#228b22;--pm020:#00008b;--onGoing:#fbca36;--done:#4bb748;--asBuilt:#007079;--planned:#4bb748;--future:#52c0ff;--historic:#ff7d98;--outOfService:#ff9200;--reserved:#243746;--voided:#eb0000;--default:#dcdcdc;--ok:#23ef2a;--os:#adaead;--pa:#f94693;--pb:#fd0;--unknown:#525252;--rfccSent:#bcf316;--rfccPartly:#c7f316;--rfcc:#60f316;--rfocSent:#0dccf2;--rfocPartly:#1accf2;--rfoc:#0d59f2;--rfccRejected:#ff1243;--rfocRejected:#ff1243;--handoverError:#eb0000;--priorityHigh:#ff1243;--priorityMedium:#fbca36;--systems:#d5eaf4;--locations:#3eb54a;--ofpDark:#f4d6a2;--ofpLight:#faebce;--warningText:#ad6200;--warningIcon:#ff9200;--warningBackground:#ffe7d6;--dropDownButtonBackground:#f0f0f0;--dropDownTextColor:grey;--searchBarBackground:#f7f7f7;--highSeverity:#ffc1c1;--mediumSeverity:#ffe7d6;--lowSeverity:#dce6ee;--defaultSeverity:#d5eaf4;--highSeverityText:#eb0000;--mediumSeverityText:#52c0ff;--lowSeverityText:#4bb748;--defaultSeverityText:#3d3d3d;--toggleActive:#4bb748;--toggleInactive:#b30d2f;--hoverIcon:#004f55;--hoverIconWithNotification:#b30d2f;--tertiaryText:#6f6f6f}#root,body,html{height:100%;overflow:hidden;width:100%}html[data-theme=dark]{--equiGreen1:#006f79}body,h1,h2,h3,h4,h5,h6,label,p{color:var(--echoText)}body,html,span{font-family:Equinor!important}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-track{background:#f7f7f7;border-radius:5px}::-webkit-scrollbar-thumb{background:#007079;border-radius:5px}::-webkit-scrollbar-thumb:hover{background:#004f55}button,input{appearance:none;background:transparent;border:inherit;color:inherit;font:inherit;outline:0}input,input:after,input:before{-webkit-user-select:initial;-khtml-user-select:initial;-moz-user-select:initial;-ms-user-select:initial;user-select:auto}";
|
|
38
|
+
styleInject(css_248z$D);
|
|
39
|
+
|
|
40
|
+
var css_248z$C = ".BlackLink-module_linkElement__WGkkg{align-items:center;color:var(--echoText);display:flex;gap:.5rem;text-decoration:none}.BlackLink-module_linkElement__WGkkg>label{cursor:pointer}.BlackLink-module_linkElement__WGkkg>span{line-height:0}.BlackLink-module_linkElement__WGkkg:hover{text-decoration:underline}.BlackLink-module_linkElement__WGkkg:focus{outline:1px dashed #007079;text-decoration:underline}.BlackLink-module_linkIcon__GW-93{min-height:24px;min-width:24px}";
|
|
41
|
+
var styles$p = {"linkElement":"BlackLink-module_linkElement__WGkkg","linkIcon":"BlackLink-module_linkIcon__GW-93"};
|
|
42
|
+
styleInject(css_248z$C);
|
|
43
|
+
|
|
44
|
+
var BlackLink = function BlackLink(_ref) {
|
|
45
|
+
var href = _ref.href,
|
|
46
|
+
linkText = _ref.linkText,
|
|
47
|
+
preserveTab = _ref.preserveTab;
|
|
48
|
+
return /*#__PURE__*/React__default.createElement("a", {
|
|
49
|
+
className: styles$p.linkElement,
|
|
50
|
+
id: linkText,
|
|
51
|
+
href: href,
|
|
52
|
+
tabIndex: 0,
|
|
53
|
+
target: !preserveTab ? '_blank' : undefined,
|
|
54
|
+
rel: "noreferrer"
|
|
55
|
+
}, /*#__PURE__*/React__default.createElement("label", {
|
|
56
|
+
htmlFor: linkText
|
|
57
|
+
}, linkText), /*#__PURE__*/React__default.createElement(Icon, {
|
|
58
|
+
className: styles$p.linkIcon,
|
|
59
|
+
color: 'var(--echoText)',
|
|
60
|
+
name: "external_link",
|
|
61
|
+
size: 24
|
|
62
|
+
}));
|
|
63
|
+
};
|
|
39
64
|
|
|
40
65
|
/**
|
|
41
66
|
* Component that work's as a eds icon wrapper, it imports all eds possible icons
|
|
@@ -216,9 +241,9 @@ function _toConsumableArray$1(arr) {
|
|
|
216
241
|
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$1();
|
|
217
242
|
}
|
|
218
243
|
|
|
219
|
-
var css_248z$
|
|
244
|
+
var css_248z$B = ".dataInfoButton-module_button__N4F5j{background-color:var(--white)!important;border:2px solid var(--equiGreen1)!important;box-shadow:0 4px 4px rgba(0,0,0,.25);color:var(--asBuilt)!important;height:48px!important;margin:3px!important;width:48px!important}.dataInfoButton-module_button__N4F5j:hover{background:#deedee!important}.dataInfoButton-module_buttonWithBadge__Qjm3a:after{background:var(--white);border:1px solid var(--asBuilt);border-radius:100%;box-sizing:unset;color:var(--equiGreen1);content:attr(data-count)!important;display:block;font-size:9px;font-style:normal;font-weight:700;height:18px!important;left:25px!important;line-height:20px;position:absolute;text-align:center;top:-5px!important;width:18px!important}";
|
|
220
245
|
var style$a = {"button":"dataInfoButton-module_button__N4F5j","buttonWithBadge":"dataInfoButton-module_buttonWithBadge__Qjm3a"};
|
|
221
|
-
styleInject(css_248z$
|
|
246
|
+
styleInject(css_248z$B);
|
|
222
247
|
|
|
223
248
|
/**
|
|
224
249
|
* Component that renders a data information button with a badge to indicate the number of items under that scoped type
|
|
@@ -244,9 +269,9 @@ var DataInfoButton = function DataInfoButton(_ref) {
|
|
|
244
269
|
}, data.label);
|
|
245
270
|
};
|
|
246
271
|
|
|
247
|
-
var css_248z$
|
|
272
|
+
var css_248z$A = ".dataInfoPopover-module_wrapper__l8JCd{display:flex;flex-direction:column;position:absolute;right:0;z-index:10}.dataInfoPopover-module_arrow__KXQ5a{align-self:flex-end;border-bottom:7px solid rgba(0,0,0,.4);border-left:7px solid transparent;border-right:7px solid transparent;height:0;margin-right:17px;margin-top:3px;position:relative;width:0}.dataInfoPopover-module_optionsPopover__ZPXbv .arrow:after{border-bottom-color:rgba(0,0,0,.4)}.dataInfoPopover-module_optionsPopover__ZPXbv .arrow:before{border-bottom:0}.dataInfoPopover-module_optionsPopover__ZPXbv{align-self:flex-end;background:rgba(0,0,0,.4);border:0;border-radius:5px;display:flex;justify-content:space-between;max-width:max-content;padding:var(--small);position:relative}@media screen and (max-width:440px){.dataInfoPopover-module_optionsPopover__ZPXbv{max-width:270px}}.dataInfoPopover-module_groupWrapper__InWuY{display:flex;flex-direction:column;flex-wrap:wrap}@media screen and (max-width:440px){.dataInfoPopover-module_wrapper__l8JCd{left:0}.dataInfoPopover-module_arrow__KXQ5a{align-self:flex-start;margin-left:15px}.dataInfoPopover-module_optionsPopover__ZPXbv{align-self:flex-start}}.dataInfoPopover-module_banner__QtiKf{white-space:nowrap}.dataInfoPopover-module_infoMessage__lqzTe{color:var(--equiGray4)!important}.dataInfoPopover-module_banner__QtiKf>div{padding:0 16px 0 0!important}.dataInfoPopover-module_banner__QtiKf>hr{display:none}";
|
|
248
273
|
var style$9 = {"wrapper":"dataInfoPopover-module_wrapper__l8JCd","arrow":"dataInfoPopover-module_arrow__KXQ5a","optionsPopover":"dataInfoPopover-module_optionsPopover__ZPXbv","groupWrapper":"dataInfoPopover-module_groupWrapper__InWuY","banner":"dataInfoPopover-module_banner__QtiKf","infoMessage":"dataInfoPopover-module_infoMessage__lqzTe"};
|
|
249
|
-
styleInject(css_248z$
|
|
274
|
+
styleInject(css_248z$A);
|
|
250
275
|
|
|
251
276
|
/**
|
|
252
277
|
* Component that renders a popover with data information buttons
|
|
@@ -313,9 +338,9 @@ var DataInfoPopover = function DataInfoPopover(_ref) {
|
|
|
313
338
|
})));
|
|
314
339
|
};
|
|
315
340
|
|
|
316
|
-
var css_248z$
|
|
341
|
+
var css_248z$z = ".buttonWithPopover-module_button__FDyTt{background-color:var(--white)!important;border:3px solid var(--white)!important;border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);box-sizing:border-box;height:46px!important;width:46px!important}.buttonWithPopover-module_button__FDyTt:hover{background:#deedee!important}.buttonWithPopover-module_wrapper__-pQfB{position:relative}.buttonWithPopover-module_spinner__LMbqe{height:34px!important;margin:3px;width:34px!important}";
|
|
317
342
|
var style$8 = {"button":"buttonWithPopover-module_button__FDyTt","wrapper":"buttonWithPopover-module_wrapper__-pQfB","spinner":"buttonWithPopover-module_spinner__LMbqe"};
|
|
318
|
-
styleInject(css_248z$
|
|
343
|
+
styleInject(css_248z$z);
|
|
319
344
|
|
|
320
345
|
/**
|
|
321
346
|
* Component that renders a round button, that opens a popover upon being clicked
|
|
@@ -365,9 +390,9 @@ var ButtonWithPopover = function ButtonWithPopover(_ref) {
|
|
|
365
390
|
}));
|
|
366
391
|
};
|
|
367
392
|
|
|
368
|
-
var css_248z$
|
|
369
|
-
var styles$
|
|
370
|
-
styleInject(css_248z$
|
|
393
|
+
var css_248z$y = ".tagIcon-module_icon__FVhlT{border:3px solid var(--white);border-radius:10rem;box-sizing:border-box;height:46px;padding:8px;position:relative;transform-origin:left top;width:46px}.tagIcon-module_shadow__dAk0l{border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);height:46px;width:46px}";
|
|
394
|
+
var styles$o = {"icon":"tagIcon-module_icon__FVhlT","shadow":"tagIcon-module_shadow__dAk0l"};
|
|
395
|
+
styleInject(css_248z$y);
|
|
371
396
|
|
|
372
397
|
/**
|
|
373
398
|
* Component that will wrap the provided icon with a background color (usually the legend color)
|
|
@@ -385,7 +410,7 @@ var TagIcon = function TagIcon(_ref) {
|
|
|
385
410
|
style: {
|
|
386
411
|
background: legendColor
|
|
387
412
|
},
|
|
388
|
-
className: "".concat(styles$
|
|
413
|
+
className: "".concat(styles$o.icon)
|
|
389
414
|
}, icon);
|
|
390
415
|
};
|
|
391
416
|
|
|
@@ -399,13 +424,13 @@ var TagIcon = function TagIcon(_ref) {
|
|
|
399
424
|
var TagIconShadowWrapper = function TagIconShadowWrapper(_ref) {
|
|
400
425
|
var children = _ref.children;
|
|
401
426
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
402
|
-
className: "".concat(styles$
|
|
427
|
+
className: "".concat(styles$o.shadow)
|
|
403
428
|
}, children);
|
|
404
429
|
};
|
|
405
430
|
|
|
406
|
-
var css_248z$
|
|
407
|
-
var styles$
|
|
408
|
-
styleInject(css_248z$
|
|
431
|
+
var css_248z$x = ".tagContextMenu-module_contextWrapper__o8wWz{border-radius:10rem;cursor:pointer;width:fit-content}.tagContextMenu-module_contextWrapperExpanded__FJI8c{cursor:pointer;display:flex;flex-wrap:wrap}.tagContextMenu-module_selected__4L6WK{box-shadow:0 0 10px 5px var(--toggleActive)}.tagContextMenu-module_tagInfoWrapper__y4LBf{align-items:center;background-color:var(--white);border-radius:10rem;box-shadow:0 4px 4px rgba(0,0,0,.25);box-sizing:unset;display:flex;height:52px;overflow:hidden;padding:1px;width:100%}.tagContextMenu-module_tagText__8GaFk{cursor:pointer;margin:auto;max-width:240px;min-width:55px;overflow:hidden;padding:0 var(--small) 0 var(--small);text-align:start;text-overflow:ellipsis;white-space:nowrap;width:100%}@media screen and (max-width:440px){.tagContextMenu-module_tagText__8GaFk{max-width:140px;min-width:140px}}@media screen and (min-width:440px) and (max-width:560px){.tagContextMenu-module_tagText__8GaFk{max-width:240px}}.tagContextMenu-module_tagHeader__NW1El{color:var(--equiGreen1)!important;font-weight:700!important;overflow:hidden;text-overflow:ellipsis}.tagContextMenu-module_tagDescription__lrT1D{overflow:hidden;text-overflow:ellipsis}.tagContextMenu-module_tagInfoIcon__AMpqu{margin:3px}";
|
|
432
|
+
var styles$n = {"contextWrapper":"tagContextMenu-module_contextWrapper__o8wWz","contextWrapperExpanded":"tagContextMenu-module_contextWrapperExpanded__FJI8c","selected":"tagContextMenu-module_selected__4L6WK","tagInfoWrapper":"tagContextMenu-module_tagInfoWrapper__y4LBf","tagText":"tagContextMenu-module_tagText__8GaFk","tagHeader":"tagContextMenu-module_tagHeader__NW1El","tagDescription":"tagContextMenu-module_tagDescription__lrT1D","tagInfoIcon":"tagContextMenu-module_tagInfoIcon__AMpqu"};
|
|
433
|
+
styleInject(css_248z$x);
|
|
409
434
|
|
|
410
435
|
/**
|
|
411
436
|
* Component that renders a tag context menu that can be expanded and closed upon click
|
|
@@ -435,20 +460,20 @@ var TagContextMenu = function TagContextMenu(_ref) {
|
|
|
435
460
|
children = _ref.children;
|
|
436
461
|
if (expanded) {
|
|
437
462
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
438
|
-
className: styles$
|
|
463
|
+
className: styles$n.contextWrapperExpanded,
|
|
439
464
|
onClick: openTagInformation
|
|
440
465
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
441
|
-
className: styles$
|
|
466
|
+
className: styles$n.tagInfoWrapper
|
|
442
467
|
}, children, /*#__PURE__*/React__default.createElement("div", {
|
|
443
|
-
className: styles$
|
|
468
|
+
className: styles$n.tagText
|
|
444
469
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
445
470
|
variant: "h5",
|
|
446
|
-
className: styles$
|
|
471
|
+
className: styles$n.tagHeader
|
|
447
472
|
}, tagNo), /*#__PURE__*/React__default.createElement(Typography, {
|
|
448
473
|
variant: "body_short",
|
|
449
|
-
className: styles$
|
|
474
|
+
className: styles$n.tagDescription
|
|
450
475
|
}, description)), /*#__PURE__*/React__default.createElement("div", {
|
|
451
|
-
className: styles$
|
|
476
|
+
className: styles$n.tagInfoIcon
|
|
452
477
|
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
453
478
|
variant: "ghost_icon"
|
|
454
479
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
@@ -459,7 +484,7 @@ var TagContextMenu = function TagContextMenu(_ref) {
|
|
|
459
484
|
} else {
|
|
460
485
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
461
486
|
"data-testid": "open-tag-info",
|
|
462
|
-
className: "".concat(styles$
|
|
487
|
+
className: "".concat(styles$n.contextWrapper, " ").concat(selected ? selectedClassName ? selectedClassName : styles$n.selected : ''),
|
|
463
488
|
onClick: function onClick() {
|
|
464
489
|
setExpanded(true);
|
|
465
490
|
}
|
|
@@ -467,9 +492,9 @@ var TagContextMenu = function TagContextMenu(_ref) {
|
|
|
467
492
|
}
|
|
468
493
|
};
|
|
469
494
|
|
|
470
|
-
var css_248z$
|
|
495
|
+
var css_248z$w = ".contextMenu-module_wrapper__p-0Zc{display:flex;flex-wrap:wrap;position:absolute;width:fit-content}.contextMenu-module_wrapper__p-0Zc>div:first-child{margin-right:4px}@media screen and (max-width:440px){.contextMenu-module_wrapper__p-0Zc{max-width:250px}.contextMenu-module_wrapper__p-0Zc>div:first-child{margin-bottom:5px}}";
|
|
471
496
|
var style$7 = {"wrapper":"contextMenu-module_wrapper__p-0Zc"};
|
|
472
|
-
styleInject(css_248z$
|
|
497
|
+
styleInject(css_248z$w);
|
|
473
498
|
|
|
474
499
|
/**
|
|
475
500
|
* Component that renders full context menu functionality, meant for displaying tag context menu.
|
|
@@ -553,6 +578,460 @@ function getAugmentedNamespace(n) {
|
|
|
553
578
|
return a;
|
|
554
579
|
}
|
|
555
580
|
|
|
581
|
+
var regeneratorRuntimeExports = {};
|
|
582
|
+
var regeneratorRuntime$1 = {
|
|
583
|
+
get exports(){ return regeneratorRuntimeExports; },
|
|
584
|
+
set exports(v){ regeneratorRuntimeExports = v; },
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
var _typeofExports = {};
|
|
588
|
+
var _typeof$E = {
|
|
589
|
+
get exports(){ return _typeofExports; },
|
|
590
|
+
set exports(v){ _typeofExports = v; },
|
|
591
|
+
};
|
|
592
|
+
|
|
593
|
+
(function (module) {
|
|
594
|
+
function _typeof(obj) {
|
|
595
|
+
"@babel/helpers - typeof";
|
|
596
|
+
|
|
597
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
598
|
+
return typeof obj;
|
|
599
|
+
} : function (obj) {
|
|
600
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
601
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
602
|
+
}
|
|
603
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
604
|
+
} (_typeof$E));
|
|
605
|
+
|
|
606
|
+
(function (module) {
|
|
607
|
+
var _typeof = _typeofExports["default"];
|
|
608
|
+
function _regeneratorRuntime() {
|
|
609
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
610
|
+
return exports;
|
|
611
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
612
|
+
var exports = {},
|
|
613
|
+
Op = Object.prototype,
|
|
614
|
+
hasOwn = Op.hasOwnProperty,
|
|
615
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
616
|
+
obj[key] = desc.value;
|
|
617
|
+
},
|
|
618
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
619
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
620
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
621
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
622
|
+
function define(obj, key, value) {
|
|
623
|
+
return Object.defineProperty(obj, key, {
|
|
624
|
+
value: value,
|
|
625
|
+
enumerable: !0,
|
|
626
|
+
configurable: !0,
|
|
627
|
+
writable: !0
|
|
628
|
+
}), obj[key];
|
|
629
|
+
}
|
|
630
|
+
try {
|
|
631
|
+
define({}, "");
|
|
632
|
+
} catch (err) {
|
|
633
|
+
define = function define(obj, key, value) {
|
|
634
|
+
return obj[key] = value;
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
638
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
639
|
+
generator = Object.create(protoGenerator.prototype),
|
|
640
|
+
context = new Context(tryLocsList || []);
|
|
641
|
+
return defineProperty(generator, "_invoke", {
|
|
642
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
643
|
+
}), generator;
|
|
644
|
+
}
|
|
645
|
+
function tryCatch(fn, obj, arg) {
|
|
646
|
+
try {
|
|
647
|
+
return {
|
|
648
|
+
type: "normal",
|
|
649
|
+
arg: fn.call(obj, arg)
|
|
650
|
+
};
|
|
651
|
+
} catch (err) {
|
|
652
|
+
return {
|
|
653
|
+
type: "throw",
|
|
654
|
+
arg: err
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
exports.wrap = wrap;
|
|
659
|
+
var ContinueSentinel = {};
|
|
660
|
+
function Generator() {}
|
|
661
|
+
function GeneratorFunction() {}
|
|
662
|
+
function GeneratorFunctionPrototype() {}
|
|
663
|
+
var IteratorPrototype = {};
|
|
664
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
665
|
+
return this;
|
|
666
|
+
});
|
|
667
|
+
var getProto = Object.getPrototypeOf,
|
|
668
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
669
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
670
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
671
|
+
function defineIteratorMethods(prototype) {
|
|
672
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
673
|
+
define(prototype, method, function (arg) {
|
|
674
|
+
return this._invoke(method, arg);
|
|
675
|
+
});
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
679
|
+
function invoke(method, arg, resolve, reject) {
|
|
680
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
681
|
+
if ("throw" !== record.type) {
|
|
682
|
+
var result = record.arg,
|
|
683
|
+
value = result.value;
|
|
684
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
685
|
+
invoke("next", value, resolve, reject);
|
|
686
|
+
}, function (err) {
|
|
687
|
+
invoke("throw", err, resolve, reject);
|
|
688
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
689
|
+
result.value = unwrapped, resolve(result);
|
|
690
|
+
}, function (error) {
|
|
691
|
+
return invoke("throw", error, resolve, reject);
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
reject(record.arg);
|
|
695
|
+
}
|
|
696
|
+
var previousPromise;
|
|
697
|
+
defineProperty(this, "_invoke", {
|
|
698
|
+
value: function value(method, arg) {
|
|
699
|
+
function callInvokeWithMethodAndArg() {
|
|
700
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
701
|
+
invoke(method, arg, resolve, reject);
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
709
|
+
var state = "suspendedStart";
|
|
710
|
+
return function (method, arg) {
|
|
711
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
712
|
+
if ("completed" === state) {
|
|
713
|
+
if ("throw" === method) throw arg;
|
|
714
|
+
return doneResult();
|
|
715
|
+
}
|
|
716
|
+
for (context.method = method, context.arg = arg;;) {
|
|
717
|
+
var delegate = context.delegate;
|
|
718
|
+
if (delegate) {
|
|
719
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
720
|
+
if (delegateResult) {
|
|
721
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
722
|
+
return delegateResult;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
726
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
727
|
+
context.dispatchException(context.arg);
|
|
728
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
729
|
+
state = "executing";
|
|
730
|
+
var record = tryCatch(innerFn, self, context);
|
|
731
|
+
if ("normal" === record.type) {
|
|
732
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
733
|
+
return {
|
|
734
|
+
value: record.arg,
|
|
735
|
+
done: context.done
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
743
|
+
var methodName = context.method,
|
|
744
|
+
method = delegate.iterator[methodName];
|
|
745
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
746
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
747
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
748
|
+
var info = record.arg;
|
|
749
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
750
|
+
}
|
|
751
|
+
function pushTryEntry(locs) {
|
|
752
|
+
var entry = {
|
|
753
|
+
tryLoc: locs[0]
|
|
754
|
+
};
|
|
755
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
756
|
+
}
|
|
757
|
+
function resetTryEntry(entry) {
|
|
758
|
+
var record = entry.completion || {};
|
|
759
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
760
|
+
}
|
|
761
|
+
function Context(tryLocsList) {
|
|
762
|
+
this.tryEntries = [{
|
|
763
|
+
tryLoc: "root"
|
|
764
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
765
|
+
}
|
|
766
|
+
function values(iterable) {
|
|
767
|
+
if (iterable) {
|
|
768
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
769
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
770
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
771
|
+
if (!isNaN(iterable.length)) {
|
|
772
|
+
var i = -1,
|
|
773
|
+
next = function next() {
|
|
774
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
775
|
+
return next.value = undefined, next.done = !0, next;
|
|
776
|
+
};
|
|
777
|
+
return next.next = next;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
return {
|
|
781
|
+
next: doneResult
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
function doneResult() {
|
|
785
|
+
return {
|
|
786
|
+
value: undefined,
|
|
787
|
+
done: !0
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
791
|
+
value: GeneratorFunctionPrototype,
|
|
792
|
+
configurable: !0
|
|
793
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
794
|
+
value: GeneratorFunction,
|
|
795
|
+
configurable: !0
|
|
796
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
797
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
798
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
799
|
+
}, exports.mark = function (genFun) {
|
|
800
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
801
|
+
}, exports.awrap = function (arg) {
|
|
802
|
+
return {
|
|
803
|
+
__await: arg
|
|
804
|
+
};
|
|
805
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
806
|
+
return this;
|
|
807
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
808
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
809
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
810
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
811
|
+
return result.done ? result.value : iter.next();
|
|
812
|
+
});
|
|
813
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
814
|
+
return this;
|
|
815
|
+
}), define(Gp, "toString", function () {
|
|
816
|
+
return "[object Generator]";
|
|
817
|
+
}), exports.keys = function (val) {
|
|
818
|
+
var object = Object(val),
|
|
819
|
+
keys = [];
|
|
820
|
+
for (var key in object) keys.push(key);
|
|
821
|
+
return keys.reverse(), function next() {
|
|
822
|
+
for (; keys.length;) {
|
|
823
|
+
var key = keys.pop();
|
|
824
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
825
|
+
}
|
|
826
|
+
return next.done = !0, next;
|
|
827
|
+
};
|
|
828
|
+
}, exports.values = values, Context.prototype = {
|
|
829
|
+
constructor: Context,
|
|
830
|
+
reset: function reset(skipTempReset) {
|
|
831
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
832
|
+
},
|
|
833
|
+
stop: function stop() {
|
|
834
|
+
this.done = !0;
|
|
835
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
836
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
837
|
+
return this.rval;
|
|
838
|
+
},
|
|
839
|
+
dispatchException: function dispatchException(exception) {
|
|
840
|
+
if (this.done) throw exception;
|
|
841
|
+
var context = this;
|
|
842
|
+
function handle(loc, caught) {
|
|
843
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
844
|
+
}
|
|
845
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
846
|
+
var entry = this.tryEntries[i],
|
|
847
|
+
record = entry.completion;
|
|
848
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
849
|
+
if (entry.tryLoc <= this.prev) {
|
|
850
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
851
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
852
|
+
if (hasCatch && hasFinally) {
|
|
853
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
854
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
855
|
+
} else if (hasCatch) {
|
|
856
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
857
|
+
} else {
|
|
858
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
859
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
abrupt: function abrupt(type, arg) {
|
|
865
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
866
|
+
var entry = this.tryEntries[i];
|
|
867
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
868
|
+
var finallyEntry = entry;
|
|
869
|
+
break;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
873
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
874
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
875
|
+
},
|
|
876
|
+
complete: function complete(record, afterLoc) {
|
|
877
|
+
if ("throw" === record.type) throw record.arg;
|
|
878
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
879
|
+
},
|
|
880
|
+
finish: function finish(finallyLoc) {
|
|
881
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
882
|
+
var entry = this.tryEntries[i];
|
|
883
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
"catch": function _catch(tryLoc) {
|
|
887
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
888
|
+
var entry = this.tryEntries[i];
|
|
889
|
+
if (entry.tryLoc === tryLoc) {
|
|
890
|
+
var record = entry.completion;
|
|
891
|
+
if ("throw" === record.type) {
|
|
892
|
+
var thrown = record.arg;
|
|
893
|
+
resetTryEntry(entry);
|
|
894
|
+
}
|
|
895
|
+
return thrown;
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
throw new Error("illegal catch attempt");
|
|
899
|
+
},
|
|
900
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
901
|
+
return this.delegate = {
|
|
902
|
+
iterator: values(iterable),
|
|
903
|
+
resultName: resultName,
|
|
904
|
+
nextLoc: nextLoc
|
|
905
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
906
|
+
}
|
|
907
|
+
}, exports;
|
|
908
|
+
}
|
|
909
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
910
|
+
} (regeneratorRuntime$1));
|
|
911
|
+
|
|
912
|
+
// TODO(Babel 8): Remove this file.
|
|
913
|
+
|
|
914
|
+
var runtime = regeneratorRuntimeExports();
|
|
915
|
+
var regenerator = runtime;
|
|
916
|
+
|
|
917
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
918
|
+
try {
|
|
919
|
+
regeneratorRuntime = runtime;
|
|
920
|
+
} catch (accidentalStrictMode) {
|
|
921
|
+
if (typeof globalThis === "object") {
|
|
922
|
+
globalThis.regeneratorRuntime = runtime;
|
|
923
|
+
} else {
|
|
924
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
/******************************************************************************
|
|
929
|
+
Copyright (c) Microsoft Corporation.
|
|
930
|
+
|
|
931
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
932
|
+
purpose with or without fee is hereby granted.
|
|
933
|
+
|
|
934
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
935
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
936
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
937
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
938
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
939
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
940
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
941
|
+
***************************************************************************** */
|
|
942
|
+
|
|
943
|
+
function __rest(s, e) {
|
|
944
|
+
var t = {};
|
|
945
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
946
|
+
t[p] = s[p];
|
|
947
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
948
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
949
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
950
|
+
t[p[i]] = s[p[i]];
|
|
951
|
+
}
|
|
952
|
+
return t;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
956
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
957
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
958
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
959
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
960
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
961
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
var css_248z$v = ".CopyToClipboard-module_copyToClipboardContainer__xA1rT{cursor:pointer;display:flex;gap:.5rem}.CopyToClipboard-module_readonlyInput__rfIQF{border-bottom:1px solid var(--equiGray1);cursor:pointer;min-width:100px;pointer-events:none}";
|
|
966
|
+
var styles$m = {"copyToClipboardContainer":"CopyToClipboard-module_copyToClipboardContainer__xA1rT","readonlyInput":"CopyToClipboard-module_readonlyInput__rfIQF"};
|
|
967
|
+
styleInject(css_248z$v);
|
|
968
|
+
|
|
969
|
+
var CopyToClipboard = function CopyToClipboard(props) {
|
|
970
|
+
var _a;
|
|
971
|
+
var _useState = useState(false),
|
|
972
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
973
|
+
textIsCopied = _useState2[0],
|
|
974
|
+
setTextIsCopied = _useState2[1];
|
|
975
|
+
function handleClipboard(copyableText) {
|
|
976
|
+
return __awaiter(this, void 0, void 0, /*#__PURE__*/regenerator.mark(function _callee() {
|
|
977
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
978
|
+
while (1) switch (_context.prev = _context.next) {
|
|
979
|
+
case 0:
|
|
980
|
+
if (!(copyableText && copyableText.length > 0)) {
|
|
981
|
+
_context.next = 5;
|
|
982
|
+
break;
|
|
983
|
+
}
|
|
984
|
+
_context.next = 3;
|
|
985
|
+
return navigator.clipboard.writeText(copyableText);
|
|
986
|
+
case 3:
|
|
987
|
+
setTimeout(function () {
|
|
988
|
+
return setTextIsCopied(false);
|
|
989
|
+
}, 2000);
|
|
990
|
+
setTextIsCopied(true);
|
|
991
|
+
case 5:
|
|
992
|
+
case "end":
|
|
993
|
+
return _context.stop();
|
|
994
|
+
}
|
|
995
|
+
}, _callee);
|
|
996
|
+
}));
|
|
997
|
+
}
|
|
998
|
+
function handleReadonlySelect(originElement) {
|
|
999
|
+
var edsInput = originElement.querySelector('input');
|
|
1000
|
+
if (edsInput instanceof HTMLInputElement) {
|
|
1001
|
+
edsInput.disabled = false;
|
|
1002
|
+
edsInput.focus();
|
|
1003
|
+
edsInput.select();
|
|
1004
|
+
edsInput.disabled = true;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1008
|
+
id: "copy-to-clipboard-container",
|
|
1009
|
+
className: styles$m.copyToClipboardContainer,
|
|
1010
|
+
tabIndex: -1,
|
|
1011
|
+
role: "generic"
|
|
1012
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1013
|
+
onClick: function onClick(e) {
|
|
1014
|
+
return handleReadonlySelect(e.currentTarget);
|
|
1015
|
+
},
|
|
1016
|
+
tabIndex: -1,
|
|
1017
|
+
role: "generic"
|
|
1018
|
+
}, /*#__PURE__*/React__default.createElement(TextField, {
|
|
1019
|
+
className: styles$m.readonlyInput,
|
|
1020
|
+
id: "copy-".concat((_a = props.copyableText) === null || _a === void 0 ? void 0 : _a.substring(0, 8)),
|
|
1021
|
+
value: props.copyableText,
|
|
1022
|
+
disabled: true
|
|
1023
|
+
})), /*#__PURE__*/React__default.createElement(Button, {
|
|
1024
|
+
className: styles$m.readonlyCopyableField,
|
|
1025
|
+
variant: "outlined",
|
|
1026
|
+
onClick: function onClick() {
|
|
1027
|
+
return handleClipboard(props.copyableText);
|
|
1028
|
+
},
|
|
1029
|
+
disabled: !(props.copyableText.length > 0)
|
|
1030
|
+
}, /*#__PURE__*/React__default.createElement(Icon$1, {
|
|
1031
|
+
name: textIsCopied ? 'check' : 'copy'
|
|
1032
|
+
}), "Copy"));
|
|
1033
|
+
};
|
|
1034
|
+
|
|
556
1035
|
var classnamesExports$1 = {};
|
|
557
1036
|
var classnames$3 = {
|
|
558
1037
|
get exports(){ return classnamesExports$1; },
|
|
@@ -15006,33 +15485,6 @@ var EchoHeader = function EchoHeader(_ref) {
|
|
|
15006
15485
|
}, CustomSection && /*#__PURE__*/React__default.createElement(CustomSection, null)));
|
|
15007
15486
|
};
|
|
15008
15487
|
|
|
15009
|
-
/******************************************************************************
|
|
15010
|
-
Copyright (c) Microsoft Corporation.
|
|
15011
|
-
|
|
15012
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
15013
|
-
purpose with or without fee is hereby granted.
|
|
15014
|
-
|
|
15015
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
15016
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15017
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15018
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
15019
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15020
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15021
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15022
|
-
***************************************************************************** */
|
|
15023
|
-
|
|
15024
|
-
function __rest(s, e) {
|
|
15025
|
-
var t = {};
|
|
15026
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15027
|
-
t[p] = s[p];
|
|
15028
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
15029
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
15030
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
15031
|
-
t[p[i]] = s[p[i]];
|
|
15032
|
-
}
|
|
15033
|
-
return t;
|
|
15034
|
-
}
|
|
15035
|
-
|
|
15036
15488
|
/*!
|
|
15037
15489
|
* tabbable 6.1.1
|
|
15038
15490
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -17175,7 +17627,7 @@ var EchoTooltip = Object.freeze({
|
|
|
17175
17627
|
TooltipContent: TooltipContent
|
|
17176
17628
|
});
|
|
17177
17629
|
|
|
17178
|
-
var css_248z$l = ".floatingActionButton-module_button__-08q2.floatingActionButton-module_primary__Os-YA{background:rgba(0,0,0,.
|
|
17630
|
+
var css_248z$l = ".floatingActionButton-module_button__-08q2.floatingActionButton-module_primary__Os-YA{background:rgba(0,0,0,.8);color:var(--white)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_primary__Os-YA:hover{background:rgba(0,0,0,.9);color:var(--white)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_active__nXRwO{background:var(--equiGreen3);border:1px solid var(--echoText);color:var(--echoText)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_active__nXRwO:hover{background:var(--equiGreen4);border:1px solid var(--echoText);color:var(--echoText)}.floatingActionButton-module_button__-08q2.floatingActionButton-module_circle_icon__mdkpf{min-height:48px;min-width:48px}.floatingActionButton-module_button__-08q2.floatingActionButton-module_square_icon__aAEVQ{border-radius:4px;min-height:48px;min-width:48px}.floatingActionButton-module_button__-08q2.floatingActionButton-module_square_icon__aAEVQ:hover{border-radius:4px}";
|
|
17179
17631
|
var style$3 = {"button":"floatingActionButton-module_button__-08q2","primary":"floatingActionButton-module_primary__Os-YA","active":"floatingActionButton-module_active__nXRwO","circle_icon":"floatingActionButton-module_circle_icon__mdkpf","square_icon":"floatingActionButton-module_square_icon__aAEVQ"};
|
|
17180
17632
|
styleInject(css_248z$l);
|
|
17181
17633
|
|
|
@@ -17225,7 +17677,7 @@ var FloatingActionButton = function FloatingActionButton(_ref) {
|
|
|
17225
17677
|
}), variant === 'square_icon_with_text' && label);
|
|
17226
17678
|
};
|
|
17227
17679
|
|
|
17228
|
-
var css_248z$k = ".floatingSearchBar-module_searchbarWrapper__-sSMM{max-width:344px;position:relative}.floatingSearchBar-module_searchbar__0U3fZ div[class^=Input__Container]{background:none;box-shadow:none;height:48px}.floatingSearchBar-module_searchbar__0U3fZ div[class^=Input__Container]:focus-within{outline:none}.floatingSearchBar-module_searchbar__0U3fZ input{--eds-input-adornment-color:#fff!important;background:rgba(0,0,0,.
|
|
17680
|
+
var css_248z$k = ".floatingSearchBar-module_searchbarWrapper__-sSMM{max-width:344px;position:relative}.floatingSearchBar-module_searchbar__0U3fZ div[class^=Input__Container]{background:none;box-shadow:none;height:48px}.floatingSearchBar-module_searchbar__0U3fZ div[class^=Input__Container]:focus-within{outline:none}.floatingSearchBar-module_searchbar__0U3fZ input{--eds-input-adornment-color:#fff!important;background:rgba(0,0,0,.8);border-radius:4px;color:#dee5e7}.floatingSearchBar-module_searchbar__0U3fZ svg{color:#dee5e7}.floatingSearchBar-module_searchbar__0U3fZ input::placeholder{color:#dee5e7}.floatingSearchBar-module_searchbar__0U3fZ input:focus,.floatingSearchBar-module_searchbar__0U3fZ input:hover{background:rgba(0,0,0,.9)}.floatingSearchBar-module_searchbar__0U3fZ button{opacity:.6}.floatingSearchBar-module_searchbar__0U3fZ button:hover{background:transparent;opacity:1}.floatingSearchBar-module_searchbar__0U3fZ button:focus{opacity:1;outline-color:var(--white)}.floatingSearchBar-module_items__oxyVh{background:pink;background:rgba(0,0,0,.9);border-radius:4px;color:#fff;font-size:16px;font-style:normal;font-weight:400;line-height:16px;list-style:none;margin-top:4px;padding:8px 0;position:absolute;width:100%}.floatingSearchBar-module_item__nxfxG{padding:1rem 1.5rem}.floatingSearchBar-module_item__nxfxG:hover{background:hsla(0,0%,100%,.16);cursor:pointer}.floatingSearchBar-module_activeItem__IQ7gz{background:hsla(0,0%,100%,.16)}";
|
|
17229
17681
|
var style$2 = {"searchbarWrapper":"floatingSearchBar-module_searchbarWrapper__-sSMM","searchbar":"floatingSearchBar-module_searchbar__0U3fZ","items":"floatingSearchBar-module_items__oxyVh","item":"floatingSearchBar-module_item__nxfxG","activeItem":"floatingSearchBar-module_activeItem__IQ7gz"};
|
|
17230
17682
|
styleInject(css_248z$k);
|
|
17231
17683
|
|
|
@@ -23976,8 +24428,8 @@ var PanelContentWrapper = function PanelContentWrapper(_ref) {
|
|
|
23976
24428
|
}, children));
|
|
23977
24429
|
};
|
|
23978
24430
|
|
|
23979
|
-
var css_248z$9 = ".sidebarButton-module_button__37sG4{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;overflow:hidden;padding:.5em 0;position:relative;width:100%}.sidebarButton-module_button__37sG4:focus-visible{outline:1px dashed var(--asBuilt)}.sidebarButton-module_button__37sG4:hover{background-color:var(--equiGreen2)}.sidebarButton-module_button__37sG4
|
|
23980
|
-
var styles$8 = {"button":"sidebarButton-module_button__37sG4","
|
|
24431
|
+
var css_248z$9 = ".sidebarButton-module_button__37sG4{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;padding:.5em 0;position:relative;width:100%}.sidebarButton-module_button__37sG4:focus-visible{outline:1px dashed var(--asBuilt)}.sidebarButton-module_button__37sG4:hover{background-color:var(--equiGreen2)}.sidebarButton-module_button__37sG4[aria-pressed=true]{background-color:var(--equiGreen3);border-color:var(--asBuilt)}.sidebarButton-module_button__37sG4:hover[aria-pressed=true]{background-color:var(--equiGreen4);border-color:var(--hoverIcon)}.sidebarButton-module_button__37sG4 svg{height:21px;width:21px}.sidebarButton-module_button__37sG4:hover .sidebarButton-module_text__S0hrv,.sidebarButton-module_button__37sG4:hover svg{fill:var(--hoverIcon);color:var(--hoverIcon)!important}.sidebarButton-module_button__37sG4[aria-pressed=true] .sidebarButton-module_text__S0hrv,.sidebarButton-module_button__37sG4[aria-pressed=true] svg{fill:var(--asBuilt);color:var(--asBuilt)!important}.sidebarButton-module_text__S0hrv{color:var(--echoText)!important;font-size:11px!important;font-weight:500!important;line-height:12px!important;margin-top:.25em!important;min-width:100%!important;overflow:hidden!important;text-align:center!important;text-overflow:ellipsis!important;white-space:nowrap!important;width:100%!important}.sidebarButton-module_rightBarButton__nh2hd{border-left:2px solid hsla(0,0%,100%,0);height:56px!important;left:-2px;width:64px!important}.sidebarButton-module_leftBarButton__C5g1N{border-right:2px solid hsla(0,0%,100%,0);height:56px;width:64px}.sidebarButton-module_bottomBarButton__UJRT3{border-top:2px solid hsla(0,0%,100%,0);height:100%;padding:.25em 0 .5em}.sidebarButton-module_tabButton__eQISU{border-right:2px solid hsla(0,0%,100%,0);height:56px;width:100%}.sidebarButton-module_rightBarButton__nh2hd:hover{border-left:2px solid var(--default)}.sidebarButton-module_leftBarButton__C5g1N:hover{border-right:2px solid var(--default)}.sidebarButton-module_leftBarButton__C5g1N[aria-pressed=true],.sidebarButton-module_rightBarButton__nh2hd[aria-pressed=true]{border-color:var(--asBuilt)!important}.sidebarButton-module_tabItemCount__nQc-M{align-items:center;background-color:var(--white);border:1px solid var(--equiGreen1);border-radius:50%;color:var(--equiGreen1);display:flex;font-size:11.5px;font-weight:800;height:fit-content;justify-content:center;min-height:21px;min-width:21px;position:absolute;right:3px;top:3px;width:fit-content}@media screen and (max-width:927px) and (orientation:landscape){.sidebarButton-module_bottomBarButton__UJRT3{border-right:2px solid hsla(0,0%,100%,0);border-top:none;height:-webkit-fill-available}}@media screen and (max-width:767px) and (orientation:portrait),screen and (max-width:927px) and (orientation:landscape){.sidebarButton-module_rightBarButton__nh2hd{border-bottom:2px solid hsla(0,0%,100%,0)!important;border-left:none!important;height:48px!important;left:0;padding:.25em 0 .5em}.sidebarButton-module_rightBarButton__nh2hd:hover{border-bottom:2px solid var(--default)}.sidebarButton-module_rightBarButton__nh2hd:hover[aria-pressed=true],.sidebarButton-module_rightBarButton__nh2hd[aria-pressed=true]{border-bottom:2px solid var(--asBuilt)}}";
|
|
24432
|
+
var styles$8 = {"button":"sidebarButton-module_button__37sG4","text":"sidebarButton-module_text__S0hrv","rightBarButton":"sidebarButton-module_rightBarButton__nh2hd","leftBarButton":"sidebarButton-module_leftBarButton__C5g1N","bottomBarButton":"sidebarButton-module_bottomBarButton__UJRT3","tabButton":"sidebarButton-module_tabButton__eQISU","tabItemCount":"sidebarButton-module_tabItemCount__nQc-M"};
|
|
23981
24433
|
styleInject(css_248z$9);
|
|
23982
24434
|
|
|
23983
24435
|
/**
|
|
@@ -24019,7 +24471,8 @@ var SidebarButton = function SidebarButton(_ref) {
|
|
|
24019
24471
|
type: "button",
|
|
24020
24472
|
onClick: onClick,
|
|
24021
24473
|
id: id,
|
|
24022
|
-
|
|
24474
|
+
"aria-pressed": active,
|
|
24475
|
+
className: classnames$2(styles$8.button, (_classnames = {}, _defineProperty$1(_classnames, styles$8.leftBarButton, buttonPosition === 'left'), _defineProperty$1(_classnames, styles$8.rightBarButton, buttonPosition === 'right'), _defineProperty$1(_classnames, styles$8.bottomBarButton, buttonPosition === 'bottom'), _defineProperty$1(_classnames, styles$8.tabButton, buttonPosition === 'tab'), _classnames))
|
|
24023
24476
|
}, children, count && count > 1 && /*#__PURE__*/React__default.createElement("span", {
|
|
24024
24477
|
className: styles$8.tabItemCount
|
|
24025
24478
|
}, count), /*#__PURE__*/React__default.createElement(Typography, {
|
|
@@ -24868,5 +25321,5 @@ var OptionsList = function OptionsList(_ref) {
|
|
|
24868
25321
|
}));
|
|
24869
25322
|
};
|
|
24870
25323
|
|
|
24871
|
-
export { ButtonWithPopover, ContextMenu, DataInfoButton, DialogGenerator, DraggableItemsWrapper, Dropdown, EchoBottomBar, EchoCard, EchoHeader, EchoTooltip, FloatingActionButton, FloatingSearchBar, Icon, IconList, InlineTagIconLink, LinkCard, ListItem, ListRow, MenuButton, OptionsList, Panel, PanelContent, PanelContentWrapper, PanelWrapper, RadioButtonGroup, ReactDatePicker, RoundIconButton, RoundIconButtonVariants, SideSheet, SideSheetOrientation, SidebarButton, SliderField, SplitView, TagCategoryIcon, TagCategoryType, TagContextMenu, TagIcon, TagIconShadowWrapper, TextIconButton, TimePicker, WorkOrderListItem, classnames$1 as classnames, echoIcons, getIcon, notifications_m1, notifications_m2, notifications_m3, notifications_m4, notifications_m5, notifications_m6, notifications_m9, notifications_main_group, punches_main_group, punches_pa, punches_pb, robim_external_ald, robim_external_iwit, robim_external_timp, robim_external_timp_text, themeConst, useIsMobile, useKeyboardNavigation, useListNavigator, usePanelStore, useSectionNavigator, workorders_main_group, workorders_pm01, workorders_pm02, workorders_pm03, workorders_pm04, workorders_pm05, workorders_pm06, workorders_pm10, workorders_pm15, workorders_pm20 };
|
|
25324
|
+
export { BlackLink, ButtonWithPopover, ContextMenu, CopyToClipboard, DataInfoButton, DialogGenerator, DraggableItemsWrapper, Dropdown, EchoBottomBar, EchoCard, EchoHeader, EchoTooltip, FloatingActionButton, FloatingSearchBar, Icon, IconList, InlineTagIconLink, LinkCard, ListItem, ListRow, MenuButton, OptionsList, Panel, PanelContent, PanelContentWrapper, PanelWrapper, RadioButtonGroup, ReactDatePicker, RoundIconButton, RoundIconButtonVariants, SideSheet, SideSheetOrientation, SidebarButton, SliderField, SplitView, TagCategoryIcon, TagCategoryType, TagContextMenu, TagIcon, TagIconShadowWrapper, TextIconButton, TimePicker, WorkOrderListItem, classnames$1 as classnames, echoIcons, getIcon, notifications_m1, notifications_m2, notifications_m3, notifications_m4, notifications_m5, notifications_m6, notifications_m9, notifications_main_group, punches_main_group, punches_pa, punches_pb, robim_external_ald, robim_external_iwit, robim_external_timp, robim_external_timp_text, themeConst, useIsMobile, useKeyboardNavigation, useListNavigator, usePanelStore, useSectionNavigator, workorders_main_group, workorders_pm01, workorders_pm02, workorders_pm03, workorders_pm04, workorders_pm05, workorders_pm06, workorders_pm10, workorders_pm15, workorders_pm20 };
|
|
24872
25325
|
//# sourceMappingURL=index.js.map
|