@dialpad/dialtone-vue 2.46.1 → 2.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -8
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +1155 -70
- package/dist/dialtone-vue.umd.js +1155 -70
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +9 -3
|
@@ -90,7 +90,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90
90
|
|
|
91
91
|
var ___CSS_LOADER_EXPORT___ = _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
92
92
|
// Module
|
|
93
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".d-context-menu-list{width:
|
|
93
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".d-context-menu-list{width:calc(var(--size-300)*48)}", ""]);
|
|
94
94
|
// Exports
|
|
95
95
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
96
96
|
|
|
@@ -114,7 +114,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
114
114
|
|
|
115
115
|
var ___CSS_LOADER_EXPORT___ = _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
116
116
|
// Module
|
|
117
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-separator{height:
|
|
117
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-item[role=menuitem]{border-radius:var(--size-300)}.dt-list-separator{height:var(--size-100);list-style:none}", ""]);
|
|
118
118
|
// Exports
|
|
119
119
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
120
120
|
|
|
@@ -162,7 +162,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162
162
|
|
|
163
163
|
var ___CSS_LOADER_EXPORT___ = _node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_vue_cli_service_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
164
164
|
// Module
|
|
165
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-item:not(.dt-list-item--static){cursor:pointer}.dt-list-item--focusable:focus,.dt-list-item--focusable:focus-within,.dt-list-item--highlighted{background-color:hsla(var(--black-
|
|
165
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-item:not(.dt-list-item--static){cursor:pointer}.dt-list-item--focusable:focus,.dt-list-item--focusable:focus-within,.dt-list-item--highlighted{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.05)}.dt-list-item--highlighted:active{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.1)}.dt-list-item:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--su2) var(--focus-ring)}", ""]);
|
|
166
166
|
// Exports
|
|
167
167
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
168
168
|
|
|
@@ -528,6 +528,1012 @@ module.exports = function (i) {
|
|
|
528
528
|
return i[1];
|
|
529
529
|
};
|
|
530
530
|
|
|
531
|
+
/***/ }),
|
|
532
|
+
|
|
533
|
+
/***/ 377:
|
|
534
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
535
|
+
|
|
536
|
+
// A library of seedable RNGs implemented in Javascript.
|
|
537
|
+
//
|
|
538
|
+
// Usage:
|
|
539
|
+
//
|
|
540
|
+
// var seedrandom = require('seedrandom');
|
|
541
|
+
// var random = seedrandom(1); // or any seed.
|
|
542
|
+
// var x = random(); // 0 <= x < 1. Every bit is random.
|
|
543
|
+
// var x = random.quick(); // 0 <= x < 1. 32 bits of randomness.
|
|
544
|
+
|
|
545
|
+
// alea, a 53-bit multiply-with-carry generator by Johannes Baagøe.
|
|
546
|
+
// Period: ~2^116
|
|
547
|
+
// Reported to pass all BigCrush tests.
|
|
548
|
+
var alea = __webpack_require__(832);
|
|
549
|
+
|
|
550
|
+
// xor128, a pure xor-shift generator by George Marsaglia.
|
|
551
|
+
// Period: 2^128-1.
|
|
552
|
+
// Reported to fail: MatrixRank and LinearComp.
|
|
553
|
+
var xor128 = __webpack_require__(652);
|
|
554
|
+
|
|
555
|
+
// xorwow, George Marsaglia's 160-bit xor-shift combined plus weyl.
|
|
556
|
+
// Period: 2^192-2^32
|
|
557
|
+
// Reported to fail: CollisionOver, SimpPoker, and LinearComp.
|
|
558
|
+
var xorwow = __webpack_require__(801);
|
|
559
|
+
|
|
560
|
+
// xorshift7, by François Panneton and Pierre L'ecuyer, takes
|
|
561
|
+
// a different approach: it adds robustness by allowing more shifts
|
|
562
|
+
// than Marsaglia's original three. It is a 7-shift generator
|
|
563
|
+
// with 256 bits, that passes BigCrush with no systmatic failures.
|
|
564
|
+
// Period 2^256-1.
|
|
565
|
+
// No systematic BigCrush failures reported.
|
|
566
|
+
var xorshift7 = __webpack_require__(674);
|
|
567
|
+
|
|
568
|
+
// xor4096, by Richard Brent, is a 4096-bit xor-shift with a
|
|
569
|
+
// very long period that also adds a Weyl generator. It also passes
|
|
570
|
+
// BigCrush with no systematic failures. Its long period may
|
|
571
|
+
// be useful if you have many generators and need to avoid
|
|
572
|
+
// collisions.
|
|
573
|
+
// Period: 2^4128-2^32.
|
|
574
|
+
// No systematic BigCrush failures reported.
|
|
575
|
+
var xor4096 = __webpack_require__(618);
|
|
576
|
+
|
|
577
|
+
// Tyche-i, by Samuel Neves and Filipe Araujo, is a bit-shifting random
|
|
578
|
+
// number generator derived from ChaCha, a modern stream cipher.
|
|
579
|
+
// https://eden.dei.uc.pt/~sneves/pubs/2011-snfa2.pdf
|
|
580
|
+
// Period: ~2^127
|
|
581
|
+
// No systematic BigCrush failures reported.
|
|
582
|
+
var tychei = __webpack_require__(49);
|
|
583
|
+
|
|
584
|
+
// The original ARC4-based prng included in this library.
|
|
585
|
+
// Period: ~2^1600
|
|
586
|
+
var sr = __webpack_require__(971);
|
|
587
|
+
|
|
588
|
+
sr.alea = alea;
|
|
589
|
+
sr.xor128 = xor128;
|
|
590
|
+
sr.xorwow = xorwow;
|
|
591
|
+
sr.xorshift7 = xorshift7;
|
|
592
|
+
sr.xor4096 = xor4096;
|
|
593
|
+
sr.tychei = tychei;
|
|
594
|
+
|
|
595
|
+
module.exports = sr;
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
/***/ }),
|
|
599
|
+
|
|
600
|
+
/***/ 832:
|
|
601
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
602
|
+
|
|
603
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
604
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A port of an algorithm by Johannes Baagøe <baagoe@baagoe.com>, 2010
|
|
605
|
+
// http://baagoe.com/en/RandomMusings/javascript/
|
|
606
|
+
// https://github.com/nquinlan/better-random-numbers-for-javascript-mirror
|
|
607
|
+
// Original work is under MIT license -
|
|
608
|
+
|
|
609
|
+
// Copyright (C) 2010 by Johannes Baagøe <baagoe@baagoe.org>
|
|
610
|
+
//
|
|
611
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
612
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
613
|
+
// in the Software without restriction, including without limitation the rights
|
|
614
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
615
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
616
|
+
// furnished to do so, subject to the following conditions:
|
|
617
|
+
//
|
|
618
|
+
// The above copyright notice and this permission notice shall be included in
|
|
619
|
+
// all copies or substantial portions of the Software.
|
|
620
|
+
//
|
|
621
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
622
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
623
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
624
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
625
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
626
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
627
|
+
// THE SOFTWARE.
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
(function(global, module, define) {
|
|
632
|
+
|
|
633
|
+
function Alea(seed) {
|
|
634
|
+
var me = this, mash = Mash();
|
|
635
|
+
|
|
636
|
+
me.next = function() {
|
|
637
|
+
var t = 2091639 * me.s0 + me.c * 2.3283064365386963e-10; // 2^-32
|
|
638
|
+
me.s0 = me.s1;
|
|
639
|
+
me.s1 = me.s2;
|
|
640
|
+
return me.s2 = t - (me.c = t | 0);
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
// Apply the seeding algorithm from Baagoe.
|
|
644
|
+
me.c = 1;
|
|
645
|
+
me.s0 = mash(' ');
|
|
646
|
+
me.s1 = mash(' ');
|
|
647
|
+
me.s2 = mash(' ');
|
|
648
|
+
me.s0 -= mash(seed);
|
|
649
|
+
if (me.s0 < 0) { me.s0 += 1; }
|
|
650
|
+
me.s1 -= mash(seed);
|
|
651
|
+
if (me.s1 < 0) { me.s1 += 1; }
|
|
652
|
+
me.s2 -= mash(seed);
|
|
653
|
+
if (me.s2 < 0) { me.s2 += 1; }
|
|
654
|
+
mash = null;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
function copy(f, t) {
|
|
658
|
+
t.c = f.c;
|
|
659
|
+
t.s0 = f.s0;
|
|
660
|
+
t.s1 = f.s1;
|
|
661
|
+
t.s2 = f.s2;
|
|
662
|
+
return t;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
function impl(seed, opts) {
|
|
666
|
+
var xg = new Alea(seed),
|
|
667
|
+
state = opts && opts.state,
|
|
668
|
+
prng = xg.next;
|
|
669
|
+
prng.int32 = function() { return (xg.next() * 0x100000000) | 0; }
|
|
670
|
+
prng.double = function() {
|
|
671
|
+
return prng() + (prng() * 0x200000 | 0) * 1.1102230246251565e-16; // 2^-53
|
|
672
|
+
};
|
|
673
|
+
prng.quick = prng;
|
|
674
|
+
if (state) {
|
|
675
|
+
if (typeof(state) == 'object') copy(state, xg);
|
|
676
|
+
prng.state = function() { return copy(xg, {}); }
|
|
677
|
+
}
|
|
678
|
+
return prng;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
function Mash() {
|
|
682
|
+
var n = 0xefc8249d;
|
|
683
|
+
|
|
684
|
+
var mash = function(data) {
|
|
685
|
+
data = String(data);
|
|
686
|
+
for (var i = 0; i < data.length; i++) {
|
|
687
|
+
n += data.charCodeAt(i);
|
|
688
|
+
var h = 0.02519603282416938 * n;
|
|
689
|
+
n = h >>> 0;
|
|
690
|
+
h -= n;
|
|
691
|
+
h *= n;
|
|
692
|
+
n = h >>> 0;
|
|
693
|
+
h -= n;
|
|
694
|
+
n += h * 0x100000000; // 2^32
|
|
695
|
+
}
|
|
696
|
+
return (n >>> 0) * 2.3283064365386963e-10; // 2^-32
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
return mash;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
if (module && module.exports) {
|
|
704
|
+
module.exports = impl;
|
|
705
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
706
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
707
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
708
|
+
} else {
|
|
709
|
+
this.alea = impl;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
})(
|
|
713
|
+
this,
|
|
714
|
+
true && module, // present in node.js
|
|
715
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
716
|
+
);
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
/***/ }),
|
|
722
|
+
|
|
723
|
+
/***/ 49:
|
|
724
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
725
|
+
|
|
726
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
727
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of the "Tyche-i" prng algorithm by
|
|
728
|
+
// Samuel Neves and Filipe Araujo.
|
|
729
|
+
// See https://eden.dei.uc.pt/~sneves/pubs/2011-snfa2.pdf
|
|
730
|
+
|
|
731
|
+
(function(global, module, define) {
|
|
732
|
+
|
|
733
|
+
function XorGen(seed) {
|
|
734
|
+
var me = this, strseed = '';
|
|
735
|
+
|
|
736
|
+
// Set up generator function.
|
|
737
|
+
me.next = function() {
|
|
738
|
+
var b = me.b, c = me.c, d = me.d, a = me.a;
|
|
739
|
+
b = (b << 25) ^ (b >>> 7) ^ c;
|
|
740
|
+
c = (c - d) | 0;
|
|
741
|
+
d = (d << 24) ^ (d >>> 8) ^ a;
|
|
742
|
+
a = (a - b) | 0;
|
|
743
|
+
me.b = b = (b << 20) ^ (b >>> 12) ^ c;
|
|
744
|
+
me.c = c = (c - d) | 0;
|
|
745
|
+
me.d = (d << 16) ^ (c >>> 16) ^ a;
|
|
746
|
+
return me.a = (a - b) | 0;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
/* The following is non-inverted tyche, which has better internal
|
|
750
|
+
* bit diffusion, but which is about 25% slower than tyche-i in JS.
|
|
751
|
+
me.next = function() {
|
|
752
|
+
var a = me.a, b = me.b, c = me.c, d = me.d;
|
|
753
|
+
a = (me.a + me.b | 0) >>> 0;
|
|
754
|
+
d = me.d ^ a; d = d << 16 ^ d >>> 16;
|
|
755
|
+
c = me.c + d | 0;
|
|
756
|
+
b = me.b ^ c; b = b << 12 ^ d >>> 20;
|
|
757
|
+
me.a = a = a + b | 0;
|
|
758
|
+
d = d ^ a; me.d = d = d << 8 ^ d >>> 24;
|
|
759
|
+
me.c = c = c + d | 0;
|
|
760
|
+
b = b ^ c;
|
|
761
|
+
return me.b = (b << 7 ^ b >>> 25);
|
|
762
|
+
}
|
|
763
|
+
*/
|
|
764
|
+
|
|
765
|
+
me.a = 0;
|
|
766
|
+
me.b = 0;
|
|
767
|
+
me.c = 2654435769 | 0;
|
|
768
|
+
me.d = 1367130551;
|
|
769
|
+
|
|
770
|
+
if (seed === Math.floor(seed)) {
|
|
771
|
+
// Integer seed.
|
|
772
|
+
me.a = (seed / 0x100000000) | 0;
|
|
773
|
+
me.b = seed | 0;
|
|
774
|
+
} else {
|
|
775
|
+
// String seed.
|
|
776
|
+
strseed += seed;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// Mix in string seed, then discard an initial batch of 64 values.
|
|
780
|
+
for (var k = 0; k < strseed.length + 20; k++) {
|
|
781
|
+
me.b ^= strseed.charCodeAt(k) | 0;
|
|
782
|
+
me.next();
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
function copy(f, t) {
|
|
787
|
+
t.a = f.a;
|
|
788
|
+
t.b = f.b;
|
|
789
|
+
t.c = f.c;
|
|
790
|
+
t.d = f.d;
|
|
791
|
+
return t;
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
function impl(seed, opts) {
|
|
795
|
+
var xg = new XorGen(seed),
|
|
796
|
+
state = opts && opts.state,
|
|
797
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
798
|
+
prng.double = function() {
|
|
799
|
+
do {
|
|
800
|
+
var top = xg.next() >>> 11,
|
|
801
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
802
|
+
result = (top + bot) / (1 << 21);
|
|
803
|
+
} while (result === 0);
|
|
804
|
+
return result;
|
|
805
|
+
};
|
|
806
|
+
prng.int32 = xg.next;
|
|
807
|
+
prng.quick = prng;
|
|
808
|
+
if (state) {
|
|
809
|
+
if (typeof(state) == 'object') copy(state, xg);
|
|
810
|
+
prng.state = function() { return copy(xg, {}); }
|
|
811
|
+
}
|
|
812
|
+
return prng;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
if (module && module.exports) {
|
|
816
|
+
module.exports = impl;
|
|
817
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
818
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
819
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
820
|
+
} else {
|
|
821
|
+
this.tychei = impl;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
})(
|
|
825
|
+
this,
|
|
826
|
+
true && module, // present in node.js
|
|
827
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
828
|
+
);
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
/***/ }),
|
|
834
|
+
|
|
835
|
+
/***/ 652:
|
|
836
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
837
|
+
|
|
838
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
839
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of the "xor128" prng algorithm by
|
|
840
|
+
// George Marsaglia. See http://www.jstatsoft.org/v08/i14/paper
|
|
841
|
+
|
|
842
|
+
(function(global, module, define) {
|
|
843
|
+
|
|
844
|
+
function XorGen(seed) {
|
|
845
|
+
var me = this, strseed = '';
|
|
846
|
+
|
|
847
|
+
me.x = 0;
|
|
848
|
+
me.y = 0;
|
|
849
|
+
me.z = 0;
|
|
850
|
+
me.w = 0;
|
|
851
|
+
|
|
852
|
+
// Set up generator function.
|
|
853
|
+
me.next = function() {
|
|
854
|
+
var t = me.x ^ (me.x << 11);
|
|
855
|
+
me.x = me.y;
|
|
856
|
+
me.y = me.z;
|
|
857
|
+
me.z = me.w;
|
|
858
|
+
return me.w ^= (me.w >>> 19) ^ t ^ (t >>> 8);
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
if (seed === (seed | 0)) {
|
|
862
|
+
// Integer seed.
|
|
863
|
+
me.x = seed;
|
|
864
|
+
} else {
|
|
865
|
+
// String seed.
|
|
866
|
+
strseed += seed;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
// Mix in string seed, then discard an initial batch of 64 values.
|
|
870
|
+
for (var k = 0; k < strseed.length + 64; k++) {
|
|
871
|
+
me.x ^= strseed.charCodeAt(k) | 0;
|
|
872
|
+
me.next();
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
function copy(f, t) {
|
|
877
|
+
t.x = f.x;
|
|
878
|
+
t.y = f.y;
|
|
879
|
+
t.z = f.z;
|
|
880
|
+
t.w = f.w;
|
|
881
|
+
return t;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
function impl(seed, opts) {
|
|
885
|
+
var xg = new XorGen(seed),
|
|
886
|
+
state = opts && opts.state,
|
|
887
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
888
|
+
prng.double = function() {
|
|
889
|
+
do {
|
|
890
|
+
var top = xg.next() >>> 11,
|
|
891
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
892
|
+
result = (top + bot) / (1 << 21);
|
|
893
|
+
} while (result === 0);
|
|
894
|
+
return result;
|
|
895
|
+
};
|
|
896
|
+
prng.int32 = xg.next;
|
|
897
|
+
prng.quick = prng;
|
|
898
|
+
if (state) {
|
|
899
|
+
if (typeof(state) == 'object') copy(state, xg);
|
|
900
|
+
prng.state = function() { return copy(xg, {}); }
|
|
901
|
+
}
|
|
902
|
+
return prng;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
if (module && module.exports) {
|
|
906
|
+
module.exports = impl;
|
|
907
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
908
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
909
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
910
|
+
} else {
|
|
911
|
+
this.xor128 = impl;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
})(
|
|
915
|
+
this,
|
|
916
|
+
true && module, // present in node.js
|
|
917
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
918
|
+
);
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
/***/ }),
|
|
924
|
+
|
|
925
|
+
/***/ 618:
|
|
926
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
927
|
+
|
|
928
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
929
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of Richard Brent's Xorgens xor4096 algorithm.
|
|
930
|
+
//
|
|
931
|
+
// This fast non-cryptographic random number generator is designed for
|
|
932
|
+
// use in Monte-Carlo algorithms. It combines a long-period xorshift
|
|
933
|
+
// generator with a Weyl generator, and it passes all common batteries
|
|
934
|
+
// of stasticial tests for randomness while consuming only a few nanoseconds
|
|
935
|
+
// for each prng generated. For background on the generator, see Brent's
|
|
936
|
+
// paper: "Some long-period random number generators using shifts and xors."
|
|
937
|
+
// http://arxiv.org/pdf/1004.3115v1.pdf
|
|
938
|
+
//
|
|
939
|
+
// Usage:
|
|
940
|
+
//
|
|
941
|
+
// var xor4096 = require('xor4096');
|
|
942
|
+
// random = xor4096(1); // Seed with int32 or string.
|
|
943
|
+
// assert.equal(random(), 0.1520436450538547); // (0, 1) range, 53 bits.
|
|
944
|
+
// assert.equal(random.int32(), 1806534897); // signed int32, 32 bits.
|
|
945
|
+
//
|
|
946
|
+
// For nonzero numeric keys, this impelementation provides a sequence
|
|
947
|
+
// identical to that by Brent's xorgens 3 implementaion in C. This
|
|
948
|
+
// implementation also provides for initalizing the generator with
|
|
949
|
+
// string seeds, or for saving and restoring the state of the generator.
|
|
950
|
+
//
|
|
951
|
+
// On Chrome, this prng benchmarks about 2.1 times slower than
|
|
952
|
+
// Javascript's built-in Math.random().
|
|
953
|
+
|
|
954
|
+
(function(global, module, define) {
|
|
955
|
+
|
|
956
|
+
function XorGen(seed) {
|
|
957
|
+
var me = this;
|
|
958
|
+
|
|
959
|
+
// Set up generator function.
|
|
960
|
+
me.next = function() {
|
|
961
|
+
var w = me.w,
|
|
962
|
+
X = me.X, i = me.i, t, v;
|
|
963
|
+
// Update Weyl generator.
|
|
964
|
+
me.w = w = (w + 0x61c88647) | 0;
|
|
965
|
+
// Update xor generator.
|
|
966
|
+
v = X[(i + 34) & 127];
|
|
967
|
+
t = X[i = ((i + 1) & 127)];
|
|
968
|
+
v ^= v << 13;
|
|
969
|
+
t ^= t << 17;
|
|
970
|
+
v ^= v >>> 15;
|
|
971
|
+
t ^= t >>> 12;
|
|
972
|
+
// Update Xor generator array state.
|
|
973
|
+
v = X[i] = v ^ t;
|
|
974
|
+
me.i = i;
|
|
975
|
+
// Result is the combination.
|
|
976
|
+
return (v + (w ^ (w >>> 16))) | 0;
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
function init(me, seed) {
|
|
980
|
+
var t, v, i, j, w, X = [], limit = 128;
|
|
981
|
+
if (seed === (seed | 0)) {
|
|
982
|
+
// Numeric seeds initialize v, which is used to generates X.
|
|
983
|
+
v = seed;
|
|
984
|
+
seed = null;
|
|
985
|
+
} else {
|
|
986
|
+
// String seeds are mixed into v and X one character at a time.
|
|
987
|
+
seed = seed + '\0';
|
|
988
|
+
v = 0;
|
|
989
|
+
limit = Math.max(limit, seed.length);
|
|
990
|
+
}
|
|
991
|
+
// Initialize circular array and weyl value.
|
|
992
|
+
for (i = 0, j = -32; j < limit; ++j) {
|
|
993
|
+
// Put the unicode characters into the array, and shuffle them.
|
|
994
|
+
if (seed) v ^= seed.charCodeAt((j + 32) % seed.length);
|
|
995
|
+
// After 32 shuffles, take v as the starting w value.
|
|
996
|
+
if (j === 0) w = v;
|
|
997
|
+
v ^= v << 10;
|
|
998
|
+
v ^= v >>> 15;
|
|
999
|
+
v ^= v << 4;
|
|
1000
|
+
v ^= v >>> 13;
|
|
1001
|
+
if (j >= 0) {
|
|
1002
|
+
w = (w + 0x61c88647) | 0; // Weyl.
|
|
1003
|
+
t = (X[j & 127] ^= (v + w)); // Combine xor and weyl to init array.
|
|
1004
|
+
i = (0 == t) ? i + 1 : 0; // Count zeroes.
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
// We have detected all zeroes; make the key nonzero.
|
|
1008
|
+
if (i >= 128) {
|
|
1009
|
+
X[(seed && seed.length || 0) & 127] = -1;
|
|
1010
|
+
}
|
|
1011
|
+
// Run the generator 512 times to further mix the state before using it.
|
|
1012
|
+
// Factoring this as a function slows the main generator, so it is just
|
|
1013
|
+
// unrolled here. The weyl generator is not advanced while warming up.
|
|
1014
|
+
i = 127;
|
|
1015
|
+
for (j = 4 * 128; j > 0; --j) {
|
|
1016
|
+
v = X[(i + 34) & 127];
|
|
1017
|
+
t = X[i = ((i + 1) & 127)];
|
|
1018
|
+
v ^= v << 13;
|
|
1019
|
+
t ^= t << 17;
|
|
1020
|
+
v ^= v >>> 15;
|
|
1021
|
+
t ^= t >>> 12;
|
|
1022
|
+
X[i] = v ^ t;
|
|
1023
|
+
}
|
|
1024
|
+
// Storing state as object members is faster than using closure variables.
|
|
1025
|
+
me.w = w;
|
|
1026
|
+
me.X = X;
|
|
1027
|
+
me.i = i;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
init(me, seed);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
function copy(f, t) {
|
|
1034
|
+
t.i = f.i;
|
|
1035
|
+
t.w = f.w;
|
|
1036
|
+
t.X = f.X.slice();
|
|
1037
|
+
return t;
|
|
1038
|
+
};
|
|
1039
|
+
|
|
1040
|
+
function impl(seed, opts) {
|
|
1041
|
+
if (seed == null) seed = +(new Date);
|
|
1042
|
+
var xg = new XorGen(seed),
|
|
1043
|
+
state = opts && opts.state,
|
|
1044
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
1045
|
+
prng.double = function() {
|
|
1046
|
+
do {
|
|
1047
|
+
var top = xg.next() >>> 11,
|
|
1048
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
1049
|
+
result = (top + bot) / (1 << 21);
|
|
1050
|
+
} while (result === 0);
|
|
1051
|
+
return result;
|
|
1052
|
+
};
|
|
1053
|
+
prng.int32 = xg.next;
|
|
1054
|
+
prng.quick = prng;
|
|
1055
|
+
if (state) {
|
|
1056
|
+
if (state.X) copy(state, xg);
|
|
1057
|
+
prng.state = function() { return copy(xg, {}); }
|
|
1058
|
+
}
|
|
1059
|
+
return prng;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
if (module && module.exports) {
|
|
1063
|
+
module.exports = impl;
|
|
1064
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
1065
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
1066
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1067
|
+
} else {
|
|
1068
|
+
this.xor4096 = impl;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
})(
|
|
1072
|
+
this, // window object or global
|
|
1073
|
+
true && module, // present in node.js
|
|
1074
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
1075
|
+
);
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
/***/ }),
|
|
1079
|
+
|
|
1080
|
+
/***/ 674:
|
|
1081
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1082
|
+
|
|
1083
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
1084
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of the "xorshift7" algorithm by
|
|
1085
|
+
// François Panneton and Pierre L'ecuyer:
|
|
1086
|
+
// "On the Xorgshift Random Number Generators"
|
|
1087
|
+
// http://saluc.engr.uconn.edu/refs/crypto/rng/panneton05onthexorshift.pdf
|
|
1088
|
+
|
|
1089
|
+
(function(global, module, define) {
|
|
1090
|
+
|
|
1091
|
+
function XorGen(seed) {
|
|
1092
|
+
var me = this;
|
|
1093
|
+
|
|
1094
|
+
// Set up generator function.
|
|
1095
|
+
me.next = function() {
|
|
1096
|
+
// Update xor generator.
|
|
1097
|
+
var X = me.x, i = me.i, t, v, w;
|
|
1098
|
+
t = X[i]; t ^= (t >>> 7); v = t ^ (t << 24);
|
|
1099
|
+
t = X[(i + 1) & 7]; v ^= t ^ (t >>> 10);
|
|
1100
|
+
t = X[(i + 3) & 7]; v ^= t ^ (t >>> 3);
|
|
1101
|
+
t = X[(i + 4) & 7]; v ^= t ^ (t << 7);
|
|
1102
|
+
t = X[(i + 7) & 7]; t = t ^ (t << 13); v ^= t ^ (t << 9);
|
|
1103
|
+
X[i] = v;
|
|
1104
|
+
me.i = (i + 1) & 7;
|
|
1105
|
+
return v;
|
|
1106
|
+
};
|
|
1107
|
+
|
|
1108
|
+
function init(me, seed) {
|
|
1109
|
+
var j, w, X = [];
|
|
1110
|
+
|
|
1111
|
+
if (seed === (seed | 0)) {
|
|
1112
|
+
// Seed state array using a 32-bit integer.
|
|
1113
|
+
w = X[0] = seed;
|
|
1114
|
+
} else {
|
|
1115
|
+
// Seed state using a string.
|
|
1116
|
+
seed = '' + seed;
|
|
1117
|
+
for (j = 0; j < seed.length; ++j) {
|
|
1118
|
+
X[j & 7] = (X[j & 7] << 15) ^
|
|
1119
|
+
(seed.charCodeAt(j) + X[(j + 1) & 7] << 13);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
// Enforce an array length of 8, not all zeroes.
|
|
1123
|
+
while (X.length < 8) X.push(0);
|
|
1124
|
+
for (j = 0; j < 8 && X[j] === 0; ++j);
|
|
1125
|
+
if (j == 8) w = X[7] = -1; else w = X[j];
|
|
1126
|
+
|
|
1127
|
+
me.x = X;
|
|
1128
|
+
me.i = 0;
|
|
1129
|
+
|
|
1130
|
+
// Discard an initial 256 values.
|
|
1131
|
+
for (j = 256; j > 0; --j) {
|
|
1132
|
+
me.next();
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
init(me, seed);
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
function copy(f, t) {
|
|
1140
|
+
t.x = f.x.slice();
|
|
1141
|
+
t.i = f.i;
|
|
1142
|
+
return t;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
function impl(seed, opts) {
|
|
1146
|
+
if (seed == null) seed = +(new Date);
|
|
1147
|
+
var xg = new XorGen(seed),
|
|
1148
|
+
state = opts && opts.state,
|
|
1149
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
1150
|
+
prng.double = function() {
|
|
1151
|
+
do {
|
|
1152
|
+
var top = xg.next() >>> 11,
|
|
1153
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
1154
|
+
result = (top + bot) / (1 << 21);
|
|
1155
|
+
} while (result === 0);
|
|
1156
|
+
return result;
|
|
1157
|
+
};
|
|
1158
|
+
prng.int32 = xg.next;
|
|
1159
|
+
prng.quick = prng;
|
|
1160
|
+
if (state) {
|
|
1161
|
+
if (state.x) copy(state, xg);
|
|
1162
|
+
prng.state = function() { return copy(xg, {}); }
|
|
1163
|
+
}
|
|
1164
|
+
return prng;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
if (module && module.exports) {
|
|
1168
|
+
module.exports = impl;
|
|
1169
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
1170
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
1171
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1172
|
+
} else {
|
|
1173
|
+
this.xorshift7 = impl;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
})(
|
|
1177
|
+
this,
|
|
1178
|
+
true && module, // present in node.js
|
|
1179
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
1180
|
+
);
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
|
|
1184
|
+
/***/ }),
|
|
1185
|
+
|
|
1186
|
+
/***/ 801:
|
|
1187
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1188
|
+
|
|
1189
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
1190
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;// A Javascript implementaion of the "xorwow" prng algorithm by
|
|
1191
|
+
// George Marsaglia. See http://www.jstatsoft.org/v08/i14/paper
|
|
1192
|
+
|
|
1193
|
+
(function(global, module, define) {
|
|
1194
|
+
|
|
1195
|
+
function XorGen(seed) {
|
|
1196
|
+
var me = this, strseed = '';
|
|
1197
|
+
|
|
1198
|
+
// Set up generator function.
|
|
1199
|
+
me.next = function() {
|
|
1200
|
+
var t = (me.x ^ (me.x >>> 2));
|
|
1201
|
+
me.x = me.y; me.y = me.z; me.z = me.w; me.w = me.v;
|
|
1202
|
+
return (me.d = (me.d + 362437 | 0)) +
|
|
1203
|
+
(me.v = (me.v ^ (me.v << 4)) ^ (t ^ (t << 1))) | 0;
|
|
1204
|
+
};
|
|
1205
|
+
|
|
1206
|
+
me.x = 0;
|
|
1207
|
+
me.y = 0;
|
|
1208
|
+
me.z = 0;
|
|
1209
|
+
me.w = 0;
|
|
1210
|
+
me.v = 0;
|
|
1211
|
+
|
|
1212
|
+
if (seed === (seed | 0)) {
|
|
1213
|
+
// Integer seed.
|
|
1214
|
+
me.x = seed;
|
|
1215
|
+
} else {
|
|
1216
|
+
// String seed.
|
|
1217
|
+
strseed += seed;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
// Mix in string seed, then discard an initial batch of 64 values.
|
|
1221
|
+
for (var k = 0; k < strseed.length + 64; k++) {
|
|
1222
|
+
me.x ^= strseed.charCodeAt(k) | 0;
|
|
1223
|
+
if (k == strseed.length) {
|
|
1224
|
+
me.d = me.x << 10 ^ me.x >>> 4;
|
|
1225
|
+
}
|
|
1226
|
+
me.next();
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
function copy(f, t) {
|
|
1231
|
+
t.x = f.x;
|
|
1232
|
+
t.y = f.y;
|
|
1233
|
+
t.z = f.z;
|
|
1234
|
+
t.w = f.w;
|
|
1235
|
+
t.v = f.v;
|
|
1236
|
+
t.d = f.d;
|
|
1237
|
+
return t;
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
function impl(seed, opts) {
|
|
1241
|
+
var xg = new XorGen(seed),
|
|
1242
|
+
state = opts && opts.state,
|
|
1243
|
+
prng = function() { return (xg.next() >>> 0) / 0x100000000; };
|
|
1244
|
+
prng.double = function() {
|
|
1245
|
+
do {
|
|
1246
|
+
var top = xg.next() >>> 11,
|
|
1247
|
+
bot = (xg.next() >>> 0) / 0x100000000,
|
|
1248
|
+
result = (top + bot) / (1 << 21);
|
|
1249
|
+
} while (result === 0);
|
|
1250
|
+
return result;
|
|
1251
|
+
};
|
|
1252
|
+
prng.int32 = xg.next;
|
|
1253
|
+
prng.quick = prng;
|
|
1254
|
+
if (state) {
|
|
1255
|
+
if (typeof(state) == 'object') copy(state, xg);
|
|
1256
|
+
prng.state = function() { return copy(xg, {}); }
|
|
1257
|
+
}
|
|
1258
|
+
return prng;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
if (module && module.exports) {
|
|
1262
|
+
module.exports = impl;
|
|
1263
|
+
} else if (__webpack_require__.amdD && __webpack_require__.amdO) {
|
|
1264
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return impl; }).call(exports, __webpack_require__, exports, module),
|
|
1265
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1266
|
+
} else {
|
|
1267
|
+
this.xorwow = impl;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
})(
|
|
1271
|
+
this,
|
|
1272
|
+
true && module, // present in node.js
|
|
1273
|
+
__webpack_require__.amdD // present with an AMD loader
|
|
1274
|
+
);
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
/***/ }),
|
|
1280
|
+
|
|
1281
|
+
/***/ 971:
|
|
1282
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1283
|
+
|
|
1284
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;/*
|
|
1285
|
+
Copyright 2019 David Bau.
|
|
1286
|
+
|
|
1287
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
1288
|
+
a copy of this software and associated documentation files (the
|
|
1289
|
+
"Software"), to deal in the Software without restriction, including
|
|
1290
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
1291
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
1292
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
1293
|
+
the following conditions:
|
|
1294
|
+
|
|
1295
|
+
The above copyright notice and this permission notice shall be
|
|
1296
|
+
included in all copies or substantial portions of the Software.
|
|
1297
|
+
|
|
1298
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
1299
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
1300
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
1301
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
1302
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
1303
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
1304
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1305
|
+
|
|
1306
|
+
*/
|
|
1307
|
+
|
|
1308
|
+
(function (global, pool, math) {
|
|
1309
|
+
//
|
|
1310
|
+
// The following constants are related to IEEE 754 limits.
|
|
1311
|
+
//
|
|
1312
|
+
|
|
1313
|
+
var width = 256, // each RC4 output is 0 <= x < 256
|
|
1314
|
+
chunks = 6, // at least six RC4 outputs for each double
|
|
1315
|
+
digits = 52, // there are 52 significant digits in a double
|
|
1316
|
+
rngname = 'random', // rngname: name for Math.random and Math.seedrandom
|
|
1317
|
+
startdenom = math.pow(width, chunks),
|
|
1318
|
+
significance = math.pow(2, digits),
|
|
1319
|
+
overflow = significance * 2,
|
|
1320
|
+
mask = width - 1,
|
|
1321
|
+
nodecrypto; // node.js crypto module, initialized at the bottom.
|
|
1322
|
+
|
|
1323
|
+
//
|
|
1324
|
+
// seedrandom()
|
|
1325
|
+
// This is the seedrandom function described above.
|
|
1326
|
+
//
|
|
1327
|
+
function seedrandom(seed, options, callback) {
|
|
1328
|
+
var key = [];
|
|
1329
|
+
options = (options == true) ? { entropy: true } : (options || {});
|
|
1330
|
+
|
|
1331
|
+
// Flatten the seed string or build one from local entropy if needed.
|
|
1332
|
+
var shortseed = mixkey(flatten(
|
|
1333
|
+
options.entropy ? [seed, tostring(pool)] :
|
|
1334
|
+
(seed == null) ? autoseed() : seed, 3), key);
|
|
1335
|
+
|
|
1336
|
+
// Use the seed to initialize an ARC4 generator.
|
|
1337
|
+
var arc4 = new ARC4(key);
|
|
1338
|
+
|
|
1339
|
+
// This function returns a random double in [0, 1) that contains
|
|
1340
|
+
// randomness in every bit of the mantissa of the IEEE 754 value.
|
|
1341
|
+
var prng = function() {
|
|
1342
|
+
var n = arc4.g(chunks), // Start with a numerator n < 2 ^ 48
|
|
1343
|
+
d = startdenom, // and denominator d = 2 ^ 48.
|
|
1344
|
+
x = 0; // and no 'extra last byte'.
|
|
1345
|
+
while (n < significance) { // Fill up all significant digits by
|
|
1346
|
+
n = (n + x) * width; // shifting numerator and
|
|
1347
|
+
d *= width; // denominator and generating a
|
|
1348
|
+
x = arc4.g(1); // new least-significant-byte.
|
|
1349
|
+
}
|
|
1350
|
+
while (n >= overflow) { // To avoid rounding up, before adding
|
|
1351
|
+
n /= 2; // last byte, shift everything
|
|
1352
|
+
d /= 2; // right using integer math until
|
|
1353
|
+
x >>>= 1; // we have exactly the desired bits.
|
|
1354
|
+
}
|
|
1355
|
+
return (n + x) / d; // Form the number within [0, 1).
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
prng.int32 = function() { return arc4.g(4) | 0; }
|
|
1359
|
+
prng.quick = function() { return arc4.g(4) / 0x100000000; }
|
|
1360
|
+
prng.double = prng;
|
|
1361
|
+
|
|
1362
|
+
// Mix the randomness into accumulated entropy.
|
|
1363
|
+
mixkey(tostring(arc4.S), pool);
|
|
1364
|
+
|
|
1365
|
+
// Calling convention: what to return as a function of prng, seed, is_math.
|
|
1366
|
+
return (options.pass || callback ||
|
|
1367
|
+
function(prng, seed, is_math_call, state) {
|
|
1368
|
+
if (state) {
|
|
1369
|
+
// Load the arc4 state from the given state if it has an S array.
|
|
1370
|
+
if (state.S) { copy(state, arc4); }
|
|
1371
|
+
// Only provide the .state method if requested via options.state.
|
|
1372
|
+
prng.state = function() { return copy(arc4, {}); }
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
// If called as a method of Math (Math.seedrandom()), mutate
|
|
1376
|
+
// Math.random because that is how seedrandom.js has worked since v1.0.
|
|
1377
|
+
if (is_math_call) { math[rngname] = prng; return seed; }
|
|
1378
|
+
|
|
1379
|
+
// Otherwise, it is a newer calling convention, so return the
|
|
1380
|
+
// prng directly.
|
|
1381
|
+
else return prng;
|
|
1382
|
+
})(
|
|
1383
|
+
prng,
|
|
1384
|
+
shortseed,
|
|
1385
|
+
'global' in options ? options.global : (this == math),
|
|
1386
|
+
options.state);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
//
|
|
1390
|
+
// ARC4
|
|
1391
|
+
//
|
|
1392
|
+
// An ARC4 implementation. The constructor takes a key in the form of
|
|
1393
|
+
// an array of at most (width) integers that should be 0 <= x < (width).
|
|
1394
|
+
//
|
|
1395
|
+
// The g(count) method returns a pseudorandom integer that concatenates
|
|
1396
|
+
// the next (count) outputs from ARC4. Its return value is a number x
|
|
1397
|
+
// that is in the range 0 <= x < (width ^ count).
|
|
1398
|
+
//
|
|
1399
|
+
function ARC4(key) {
|
|
1400
|
+
var t, keylen = key.length,
|
|
1401
|
+
me = this, i = 0, j = me.i = me.j = 0, s = me.S = [];
|
|
1402
|
+
|
|
1403
|
+
// The empty key [] is treated as [0].
|
|
1404
|
+
if (!keylen) { key = [keylen++]; }
|
|
1405
|
+
|
|
1406
|
+
// Set up S using the standard key scheduling algorithm.
|
|
1407
|
+
while (i < width) {
|
|
1408
|
+
s[i] = i++;
|
|
1409
|
+
}
|
|
1410
|
+
for (i = 0; i < width; i++) {
|
|
1411
|
+
s[i] = s[j = mask & (j + key[i % keylen] + (t = s[i]))];
|
|
1412
|
+
s[j] = t;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
// The "g" method returns the next (count) outputs as one number.
|
|
1416
|
+
(me.g = function(count) {
|
|
1417
|
+
// Using instance members instead of closure state nearly doubles speed.
|
|
1418
|
+
var t, r = 0,
|
|
1419
|
+
i = me.i, j = me.j, s = me.S;
|
|
1420
|
+
while (count--) {
|
|
1421
|
+
t = s[i = mask & (i + 1)];
|
|
1422
|
+
r = r * width + s[mask & ((s[i] = s[j = mask & (j + t)]) + (s[j] = t))];
|
|
1423
|
+
}
|
|
1424
|
+
me.i = i; me.j = j;
|
|
1425
|
+
return r;
|
|
1426
|
+
// For robust unpredictability, the function call below automatically
|
|
1427
|
+
// discards an initial batch of values. This is called RC4-drop[256].
|
|
1428
|
+
// See http://google.com/search?q=rsa+fluhrer+response&btnI
|
|
1429
|
+
})(width);
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
//
|
|
1433
|
+
// copy()
|
|
1434
|
+
// Copies internal state of ARC4 to or from a plain object.
|
|
1435
|
+
//
|
|
1436
|
+
function copy(f, t) {
|
|
1437
|
+
t.i = f.i;
|
|
1438
|
+
t.j = f.j;
|
|
1439
|
+
t.S = f.S.slice();
|
|
1440
|
+
return t;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
1443
|
+
//
|
|
1444
|
+
// flatten()
|
|
1445
|
+
// Converts an object tree to nested arrays of strings.
|
|
1446
|
+
//
|
|
1447
|
+
function flatten(obj, depth) {
|
|
1448
|
+
var result = [], typ = (typeof obj), prop;
|
|
1449
|
+
if (depth && typ == 'object') {
|
|
1450
|
+
for (prop in obj) {
|
|
1451
|
+
try { result.push(flatten(obj[prop], depth - 1)); } catch (e) {}
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
return (result.length ? result : typ == 'string' ? obj : obj + '\0');
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
//
|
|
1458
|
+
// mixkey()
|
|
1459
|
+
// Mixes a string seed into a key that is an array of integers, and
|
|
1460
|
+
// returns a shortened string seed that is equivalent to the result key.
|
|
1461
|
+
//
|
|
1462
|
+
function mixkey(seed, key) {
|
|
1463
|
+
var stringseed = seed + '', smear, j = 0;
|
|
1464
|
+
while (j < stringseed.length) {
|
|
1465
|
+
key[mask & j] =
|
|
1466
|
+
mask & ((smear ^= key[mask & j] * 19) + stringseed.charCodeAt(j++));
|
|
1467
|
+
}
|
|
1468
|
+
return tostring(key);
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
//
|
|
1472
|
+
// autoseed()
|
|
1473
|
+
// Returns an object for autoseeding, using window.crypto and Node crypto
|
|
1474
|
+
// module if available.
|
|
1475
|
+
//
|
|
1476
|
+
function autoseed() {
|
|
1477
|
+
try {
|
|
1478
|
+
var out;
|
|
1479
|
+
if (nodecrypto && (out = nodecrypto.randomBytes)) {
|
|
1480
|
+
// The use of 'out' to remember randomBytes makes tight minified code.
|
|
1481
|
+
out = out(width);
|
|
1482
|
+
} else {
|
|
1483
|
+
out = new Uint8Array(width);
|
|
1484
|
+
(global.crypto || global.msCrypto).getRandomValues(out);
|
|
1485
|
+
}
|
|
1486
|
+
return tostring(out);
|
|
1487
|
+
} catch (e) {
|
|
1488
|
+
var browser = global.navigator,
|
|
1489
|
+
plugins = browser && browser.plugins;
|
|
1490
|
+
return [+new Date, global, plugins, global.screen, tostring(pool)];
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
//
|
|
1495
|
+
// tostring()
|
|
1496
|
+
// Converts an array of charcodes to a string
|
|
1497
|
+
//
|
|
1498
|
+
function tostring(a) {
|
|
1499
|
+
return String.fromCharCode.apply(0, a);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
//
|
|
1503
|
+
// When seedrandom.js is loaded, we immediately mix a few bits
|
|
1504
|
+
// from the built-in RNG into the entropy pool. Because we do
|
|
1505
|
+
// not want to interfere with deterministic PRNG state later,
|
|
1506
|
+
// seedrandom will not call math.random on its own again after
|
|
1507
|
+
// initialization.
|
|
1508
|
+
//
|
|
1509
|
+
mixkey(math.random(), pool);
|
|
1510
|
+
|
|
1511
|
+
//
|
|
1512
|
+
// Nodejs and AMD support: export the implementation as a module using
|
|
1513
|
+
// either convention.
|
|
1514
|
+
//
|
|
1515
|
+
if ( true && module.exports) {
|
|
1516
|
+
module.exports = seedrandom;
|
|
1517
|
+
// When in node.js, try using crypto package for autoseeding.
|
|
1518
|
+
try {
|
|
1519
|
+
nodecrypto = __webpack_require__(42);
|
|
1520
|
+
} catch (ex) {}
|
|
1521
|
+
} else if (true) {
|
|
1522
|
+
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return seedrandom; }).call(exports, __webpack_require__, exports, module),
|
|
1523
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
1524
|
+
} else {}
|
|
1525
|
+
|
|
1526
|
+
|
|
1527
|
+
// End anonymous scope, and pass initial values.
|
|
1528
|
+
})(
|
|
1529
|
+
// global: `self` in browsers (including strict mode and web workers),
|
|
1530
|
+
// otherwise `this` in Node and other environments
|
|
1531
|
+
(typeof self !== 'undefined') ? self : this,
|
|
1532
|
+
[], // pool: entropy pool starts empty
|
|
1533
|
+
Math // math: package containing random, pow, and seedrandom
|
|
1534
|
+
);
|
|
1535
|
+
|
|
1536
|
+
|
|
531
1537
|
/***/ }),
|
|
532
1538
|
|
|
533
1539
|
/***/ 627:
|
|
@@ -1066,6 +2072,13 @@ function applyToTag (styleElement, obj) {
|
|
|
1066
2072
|
}
|
|
1067
2073
|
|
|
1068
2074
|
|
|
2075
|
+
/***/ }),
|
|
2076
|
+
|
|
2077
|
+
/***/ 42:
|
|
2078
|
+
/***/ (() => {
|
|
2079
|
+
|
|
2080
|
+
/* (ignored) */
|
|
2081
|
+
|
|
1069
2082
|
/***/ })
|
|
1070
2083
|
|
|
1071
2084
|
/******/ });
|
|
@@ -1083,18 +2096,33 @@ function applyToTag (styleElement, obj) {
|
|
|
1083
2096
|
/******/ // Create a new module (and put it into the cache)
|
|
1084
2097
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1085
2098
|
/******/ id: moduleId,
|
|
1086
|
-
/******/
|
|
2099
|
+
/******/ loaded: false,
|
|
1087
2100
|
/******/ exports: {}
|
|
1088
2101
|
/******/ };
|
|
1089
2102
|
/******/
|
|
1090
2103
|
/******/ // Execute the module function
|
|
1091
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2104
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
2105
|
+
/******/
|
|
2106
|
+
/******/ // Flag the module as loaded
|
|
2107
|
+
/******/ module.loaded = true;
|
|
1092
2108
|
/******/
|
|
1093
2109
|
/******/ // Return the exports of the module
|
|
1094
2110
|
/******/ return module.exports;
|
|
1095
2111
|
/******/ }
|
|
1096
2112
|
/******/
|
|
1097
2113
|
/************************************************************************/
|
|
2114
|
+
/******/ /* webpack/runtime/amd define */
|
|
2115
|
+
/******/ (() => {
|
|
2116
|
+
/******/ __webpack_require__.amdD = function () {
|
|
2117
|
+
/******/ throw new Error('define cannot be used indirect');
|
|
2118
|
+
/******/ };
|
|
2119
|
+
/******/ })();
|
|
2120
|
+
/******/
|
|
2121
|
+
/******/ /* webpack/runtime/amd options */
|
|
2122
|
+
/******/ (() => {
|
|
2123
|
+
/******/ __webpack_require__.amdO = {};
|
|
2124
|
+
/******/ })();
|
|
2125
|
+
/******/
|
|
1098
2126
|
/******/ /* webpack/runtime/compat get default export */
|
|
1099
2127
|
/******/ (() => {
|
|
1100
2128
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
@@ -1135,6 +2163,15 @@ function applyToTag (styleElement, obj) {
|
|
|
1135
2163
|
/******/ };
|
|
1136
2164
|
/******/ })();
|
|
1137
2165
|
/******/
|
|
2166
|
+
/******/ /* webpack/runtime/node module decorator */
|
|
2167
|
+
/******/ (() => {
|
|
2168
|
+
/******/ __webpack_require__.nmd = (module) => {
|
|
2169
|
+
/******/ module.paths = [];
|
|
2170
|
+
/******/ if (!module.children) module.children = [];
|
|
2171
|
+
/******/ return module;
|
|
2172
|
+
/******/ };
|
|
2173
|
+
/******/ })();
|
|
2174
|
+
/******/
|
|
1138
2175
|
/******/ /* webpack/runtime/publicPath */
|
|
1139
2176
|
/******/ (() => {
|
|
1140
2177
|
/******/ __webpack_require__.p = "";
|
|
@@ -1288,7 +2325,7 @@ if (typeof window !== 'undefined') {
|
|
|
1288
2325
|
// Indicate to webpack that this file can be concatenated
|
|
1289
2326
|
/* harmony default export */ const setPublicPath = (null);
|
|
1290
2327
|
|
|
1291
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=
|
|
2328
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/avatar/avatar.vue?vue&type=template&id=4839e656&
|
|
1292
2329
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:[
|
|
1293
2330
|
'd-avatar',
|
|
1294
2331
|
_vm.AVATAR_KIND_MODIFIERS[_vm.kind],
|
|
@@ -1373,6 +2410,9 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpac
|
|
|
1373
2410
|
;// CONCATENATED MODULE: ./common/utils.js
|
|
1374
2411
|
|
|
1375
2412
|
|
|
2413
|
+
|
|
2414
|
+
const seedrandom = __webpack_require__(377);
|
|
2415
|
+
|
|
1376
2416
|
let UNIQUE_ID_COUNTER = 0; // selector to find focusable not hidden inputs
|
|
1377
2417
|
|
|
1378
2418
|
const FOCUSABLE_SELECTOR_NOT_HIDDEN = 'input:not([type=hidden]):not(:disabled)'; // selector to find focusable not disables elements
|
|
@@ -1389,12 +2429,15 @@ function getUniqueString() {
|
|
|
1389
2429
|
}
|
|
1390
2430
|
/**
|
|
1391
2431
|
* Returns a random element from array
|
|
1392
|
-
* @param array
|
|
1393
|
-
* @
|
|
2432
|
+
* @param array - the array to return a random element from
|
|
2433
|
+
* @param {string} seed - use a string to seed the randomization, so it returns the same element each time
|
|
2434
|
+
* based on that string.
|
|
2435
|
+
* @returns {*} - the random element
|
|
1394
2436
|
*/
|
|
1395
2437
|
|
|
1396
|
-
function getRandomElement(array) {
|
|
1397
|
-
|
|
2438
|
+
function getRandomElement(array, seed) {
|
|
2439
|
+
const rng = seedrandom(seed);
|
|
2440
|
+
return array[Math.floor(rng() * array.length)];
|
|
1398
2441
|
}
|
|
1399
2442
|
function formatMessages(messages) {
|
|
1400
2443
|
if (!messages) {
|
|
@@ -1714,6 +2757,9 @@ var component = normalizeComponent(
|
|
|
1714
2757
|
;// CONCATENATED MODULE: ./components/presence/index.js
|
|
1715
2758
|
|
|
1716
2759
|
|
|
2760
|
+
// EXTERNAL MODULE: ./node_modules/seedrandom/index.js
|
|
2761
|
+
var node_modules_seedrandom = __webpack_require__(377);
|
|
2762
|
+
var seedrandom_default = /*#__PURE__*/__webpack_require__.n(node_modules_seedrandom);
|
|
1717
2763
|
;// CONCATENATED MODULE: ./components/avatar/avatar_constants.js
|
|
1718
2764
|
const AVATAR_KIND_MODIFIERS = {
|
|
1719
2765
|
default: '',
|
|
@@ -1786,6 +2832,7 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1786
2832
|
|
|
1787
2833
|
|
|
1788
2834
|
|
|
2835
|
+
|
|
1789
2836
|
/**
|
|
1790
2837
|
* An avatar is a visual representation of a user or object.
|
|
1791
2838
|
* @see https://dialpad.design/components/avatar.html
|
|
@@ -1810,6 +2857,15 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1810
2857
|
|
|
1811
2858
|
},
|
|
1812
2859
|
|
|
2860
|
+
/**
|
|
2861
|
+
* Pass in a seed to get the random color generation based on that string. For example if you pass in a
|
|
2862
|
+
* user ID as the string it will return the same randomly generated colors every time for that user.
|
|
2863
|
+
*/
|
|
2864
|
+
seed: {
|
|
2865
|
+
type: String,
|
|
2866
|
+
default: undefined
|
|
2867
|
+
},
|
|
2868
|
+
|
|
1813
2869
|
/**
|
|
1814
2870
|
* The size of the avatar
|
|
1815
2871
|
* @values xs, sm, md, lg, xl
|
|
@@ -1966,21 +3022,29 @@ const MAX_GRADIENT_COLORS_100 = 2;
|
|
|
1966
3022
|
},
|
|
1967
3023
|
|
|
1968
3024
|
randomizeGradientAngle() {
|
|
1969
|
-
return getRandomElement(AVATAR_ANGLES);
|
|
3025
|
+
return getRandomElement(AVATAR_ANGLES, this.seed);
|
|
1970
3026
|
},
|
|
1971
3027
|
|
|
1972
3028
|
randomizeGradientColorStops() {
|
|
1973
|
-
const colors = new Set();
|
|
3029
|
+
const colors = new Set();
|
|
3030
|
+
let count = 0; // get 3 unique colors, 2 from colorsWith100 and one from colorsWith200
|
|
1974
3031
|
|
|
1975
3032
|
while (colors.size < MAX_GRADIENT_COLORS) {
|
|
3033
|
+
// add count to the seed since we are looking for 3 unique colors. If the seed makes it always
|
|
3034
|
+
// return the same color we'll get an infinite loop.
|
|
3035
|
+
const seedForColor = this.seed === undefined ? undefined : this.seed + count.toString();
|
|
3036
|
+
|
|
1976
3037
|
if (colors.size === MAX_GRADIENT_COLORS_100) {
|
|
1977
|
-
colors.add(getRandomElement(GRADIENT_COLORS.with200));
|
|
3038
|
+
colors.add(getRandomElement(GRADIENT_COLORS.with200, seedForColor));
|
|
1978
3039
|
} else {
|
|
1979
|
-
colors.add(getRandomElement(GRADIENT_COLORS.with100));
|
|
3040
|
+
colors.add(getRandomElement(GRADIENT_COLORS.with100, seedForColor));
|
|
1980
3041
|
}
|
|
3042
|
+
|
|
3043
|
+
count++;
|
|
1981
3044
|
}
|
|
1982
3045
|
|
|
1983
|
-
const
|
|
3046
|
+
const rng = seedrandom_default()(this.seed);
|
|
3047
|
+
const shuffledColors = Array.from(colors).sort(() => 0.5 - rng());
|
|
1984
3048
|
return shuffledColors;
|
|
1985
3049
|
},
|
|
1986
3050
|
|
|
@@ -4499,13 +5563,13 @@ var combobox_loading_listvue_type_template_id_07d9971d_render = function () {var
|
|
|
4499
5563
|
var combobox_loading_listvue_type_template_id_07d9971d_staticRenderFns = []
|
|
4500
5564
|
|
|
4501
5565
|
|
|
4502
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/list_item/list_item.vue?vue&type=template&id=
|
|
4503
|
-
var
|
|
5566
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/list_item/list_item.vue?vue&type=template&id=8f7f45ce&
|
|
5567
|
+
var list_itemvue_type_template_id_8f7f45ce_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.elementType,_vm._g({tag:"component",class:['dt-list-item d-ls-none', {
|
|
4504
5568
|
'dt-list-item--focusable': _vm.isFocusable,
|
|
4505
5569
|
'dt-list-item--highlighted': _vm.isHighlighted,
|
|
4506
5570
|
'dt-list-item--static': !_vm.isHoverable,
|
|
4507
5571
|
}],attrs:{"id":_vm.id,"tabindex":_vm.isFocusable ? 0 : -1,"role":_vm.role,"aria-selected":_vm.isHighlighted}},_vm.listItemListeners),[(_vm.listItemType)?_c(_vm.listItemType,{tag:"component",scopedSlots:_vm._u([_vm._l((_vm.$slots),function(_,slotName){return {key:slotName,fn:function(){return [_vm._t(slotName)]},proxy:true}})],null,true)}):_vm._t("default")],2)}
|
|
4508
|
-
var
|
|
5572
|
+
var list_itemvue_type_template_id_8f7f45ce_staticRenderFns = []
|
|
4509
5573
|
|
|
4510
5574
|
|
|
4511
5575
|
;// CONCATENATED MODULE: ./components/list_item/list_item_constants.js
|
|
@@ -4522,9 +5586,9 @@ const LIST_ITEM_NAVIGATION_TYPES = {
|
|
|
4522
5586
|
LIST_ITEM_TYPES,
|
|
4523
5587
|
LIST_ITEM_NAVIGATION_TYPES
|
|
4524
5588
|
});
|
|
4525
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/list_item/default_list_item.vue?vue&type=template&id=
|
|
4526
|
-
var
|
|
4527
|
-
var
|
|
5589
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/list_item/default_list_item.vue?vue&type=template&id=19664905&
|
|
5590
|
+
var default_list_itemvue_type_template_id_19664905_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"dt-default-list-item d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center"},[(_vm.$slots.left)?_c('section',{staticClass:"dt-default-list-item--left d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pr8",attrs:{"data-qa":"dt-default-list-item-left-wrapper"}},[_vm._t("left")],2):_vm._e(),_c('section',{staticClass:"d-fl-grow1 d-of-hidden"},[(_vm.$slots.default)?_c('div',[_vm._t("default")],2):_vm._e(),(_vm.$slots.subtitle)?_c('div',{class:['d-fs-100 d-fc-black-600', { 'd-mtn2': _vm.$slots.default }],attrs:{"data-qa":"dt-default-list-item-subtitle-wrapper"}},[_vm._t("subtitle")],2):_vm._e(),(_vm.$slots.bottom)?_c('div',{staticClass:"d-mt2",attrs:{"data-qa":"dt-default-list-item-bottom-wrapper"}},[_vm._t("bottom")],2):_vm._e()]),(_vm.$slots.right)?_c('section',{staticClass:"dt-default-list-item--right d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pl8",attrs:{"data-qa":"dt-default-list-item-right-wrapper"}},[_vm._t("right")],2):_vm._e()])}
|
|
5591
|
+
var default_list_itemvue_type_template_id_19664905_staticRenderFns = []
|
|
4528
5592
|
|
|
4529
5593
|
|
|
4530
5594
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/list_item/default_list_item.vue?vue&type=script&lang=js&
|
|
@@ -4591,8 +5655,8 @@ var default_list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(986
|
|
|
4591
5655
|
|
|
4592
5656
|
var default_list_item_component = normalizeComponent(
|
|
4593
5657
|
list_item_default_list_itemvue_type_script_lang_js_,
|
|
4594
|
-
|
|
4595
|
-
|
|
5658
|
+
default_list_itemvue_type_template_id_19664905_render,
|
|
5659
|
+
default_list_itemvue_type_template_id_19664905_staticRenderFns,
|
|
4596
5660
|
false,
|
|
4597
5661
|
null,
|
|
4598
5662
|
null,
|
|
@@ -4833,8 +5897,8 @@ var list_itemvue_type_style_index_0_lang_less_ = __webpack_require__(502);
|
|
|
4833
5897
|
|
|
4834
5898
|
var list_item_component = normalizeComponent(
|
|
4835
5899
|
list_item_list_itemvue_type_script_lang_js_,
|
|
4836
|
-
|
|
4837
|
-
|
|
5900
|
+
list_itemvue_type_template_id_8f7f45ce_render,
|
|
5901
|
+
list_itemvue_type_template_id_8f7f45ce_staticRenderFns,
|
|
4838
5902
|
false,
|
|
4839
5903
|
null,
|
|
4840
5904
|
null,
|
|
@@ -6926,28 +7990,28 @@ var collapsible_component = normalizeComponent(
|
|
|
6926
7990
|
/* harmony default export */ const collapsible = (collapsible_component.exports);
|
|
6927
7991
|
;// CONCATENATED MODULE: ./components/collapsible/index.js
|
|
6928
7992
|
|
|
6929
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown.vue?vue&type=template&id=
|
|
6930
|
-
var
|
|
7993
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown.vue?vue&type=template&id=70cb2bdc&
|
|
7994
|
+
var dropdownvue_type_template_id_70cb2bdc_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-popover',_vm._g({ref:"popover",attrs:{"content-width":_vm.contentWidth,"open":_vm.open,"placement":_vm.placement,"initial-focus-element":_vm.openedWithKeyboard ? 'first' : 'dialog',"fallback-placements":_vm.fallbackPlacements,"padding":"none","role":"menu","modal":_vm.modal,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"open-with-arrow-keys":true,"open-on-context":_vm.openOnContext},scopedSlots:_vm._u([{key:"anchor",fn:function(ref){
|
|
6931
7995
|
var attrs = ref.attrs;
|
|
6932
7996
|
return [_vm._t("anchor",null,null,attrs)]}},{key:"content",fn:function(ref){
|
|
6933
7997
|
var close = ref.close;
|
|
6934
7998
|
return [_c('ul',{ref:"listWrapper",class:_vm.listClasses,attrs:{"id":_vm.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[_vm._t("list",null,{"close":close}),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"tabindex":_vm.isArrowKeyNav ? -1 : 0},on:{"close":close}}):_vm._e()],2)]}}],null,true)},_vm.dropdownListeners))}
|
|
6935
|
-
var
|
|
7999
|
+
var dropdownvue_type_template_id_70cb2bdc_staticRenderFns = []
|
|
6936
8000
|
|
|
6937
8001
|
|
|
6938
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=
|
|
6939
|
-
var
|
|
8002
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=72eb20e1&
|
|
8003
|
+
var popovervue_type_template_id_72eb20e1_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.modal && _vm.isOpen)?_c('portal',[_c('div',{staticClass:"d-modal--transparent",attrs:{"aria-hidden":_vm.modal && _vm.isOpen ? 'false' : 'true'},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();},"wheel":function($event){$event.preventDefault();$event.stopPropagation();}}})]):_vm._e(),_c(_vm.elementType,_vm._g({ref:"popover",tag:"component",class:['d-popover', { 'd-popover__anchor--opened': _vm.isOpen }],attrs:{"data-qa":"dt-popover-container"}},_vm.$listeners),[_c('div',{ref:"anchor",attrs:{"id":!_vm.ariaLabelledby && _vm.labelledBy,"data-qa":"dt-popover-anchor","tabindex":_vm.openOnContext ? 0 : undefined},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"contextmenu":_vm.onContext,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)}],"!keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"escape",undefined,$event.key,undefined)){ return null; }return _vm.closePopover.apply(null, arguments)}}},[_vm._t("anchor",null,{"attrs":{
|
|
6940
8004
|
'aria-expanded': _vm.isOpen.toString(),
|
|
6941
8005
|
'aria-controls': _vm.id,
|
|
6942
8006
|
'aria-haspopup': _vm.role,
|
|
6943
8007
|
}})],2),_c('dt-lazy-show',_vm._g({ref:"content",class:['d-popover__dialog', { 'd-popover__dialog--modal': _vm.modal }, _vm.dialogClass],style:({
|
|
6944
8008
|
'max-height': _vm.maxHeight,
|
|
6945
8009
|
'max-width': _vm.maxWidth,
|
|
6946
|
-
}),attrs:{"id":_vm.id,"role":_vm.role,"data-qa":"dt-popover","aria-hidden":("" + (!_vm.isOpen)),"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"aria-modal":("" + (!_vm.modal)),"transition":_vm.transition,"show":_vm.isOpen,"tabindex":_vm.contentTabindex,"appear":""}},_vm.popoverListeners),[(_vm.$slots.headerContent || _vm.showCloseButton)?_c('popover-header-footer',{ref:"popover__header",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"content-class":_vm.headerClass,"type":"header","show-close-button":_vm.showCloseButton,"close-button-props":_vm.closeButtonProps},on:{"close":_vm.closePopover},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("headerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),_c('div',{ref:"popover__content",class:[
|
|
8010
|
+
}),attrs:{"id":_vm.id,"role":_vm.role,"data-qa":"dt-popover","aria-hidden":("" + (!_vm.isOpen)),"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"aria-modal":("" + (!_vm.modal)),"transition":_vm.transition,"show":_vm.isOpen,"tabindex":_vm.contentTabindex,"appear":""},on:{"wheel":function (e) { return (_vm.isOpen && _vm.modal) && e.preventDefault(); }}},_vm.popoverListeners),[(_vm.$slots.headerContent || _vm.showCloseButton)?_c('popover-header-footer',{ref:"popover__header",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"content-class":_vm.headerClass,"type":"header","show-close-button":_vm.showCloseButton,"close-button-props":_vm.closeButtonProps},on:{"close":_vm.closePopover},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("headerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),_c('div',{ref:"popover__content",class:[
|
|
6947
8011
|
'd-popover__content',
|
|
6948
8012
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
6949
8013
|
_vm.contentClass ],attrs:{"data-qa":"dt-popover-content"}},[_vm._t("content",null,{"close":_vm.closePopover})],2),(_vm.$slots.footerContent)?_c('popover-header-footer',{ref:"popover__footer",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"type":"footer","content-class":_vm.footerClass},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("footerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel},on:{"close":_vm.closePopover}}):_vm._e()],1)],1)],1)}
|
|
6950
|
-
var
|
|
8014
|
+
var popovervue_type_template_id_72eb20e1_staticRenderFns = []
|
|
6951
8015
|
|
|
6952
8016
|
|
|
6953
8017
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -11443,6 +12507,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
|
|
|
11443
12507
|
const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
|
|
11444
12508
|
const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
|
|
11445
12509
|
const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
|
|
12510
|
+
const POPOVER_APPEND_TO_VALUES = ['parent'];
|
|
11446
12511
|
const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
|
|
11447
12512
|
const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
|
|
11448
12513
|
;// CONCATENATED MODULE: ./node_modules/nanoid/non-secure/index.js
|
|
@@ -11895,6 +12960,7 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
11895
12960
|
//
|
|
11896
12961
|
//
|
|
11897
12962
|
//
|
|
12963
|
+
//
|
|
11898
12964
|
|
|
11899
12965
|
/* eslint-disable max-lines */
|
|
11900
12966
|
|
|
@@ -12224,6 +13290,18 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
12224
13290
|
openWithArrowKeys: {
|
|
12225
13291
|
type: Boolean,
|
|
12226
13292
|
default: false
|
|
13293
|
+
},
|
|
13294
|
+
|
|
13295
|
+
/**
|
|
13296
|
+
* Sets the element to which the popover is going to append to.
|
|
13297
|
+
* @values 'parent', HTMLElement,
|
|
13298
|
+
*/
|
|
13299
|
+
appendTo: {
|
|
13300
|
+
type: [HTMLElement, String],
|
|
13301
|
+
default: () => document.body,
|
|
13302
|
+
validator: appendTo => {
|
|
13303
|
+
return POPOVER_APPEND_TO_VALUES.includes(appendTo) || appendTo instanceof HTMLElement;
|
|
13304
|
+
}
|
|
12227
13305
|
}
|
|
12228
13306
|
},
|
|
12229
13307
|
emits: [
|
|
@@ -12364,7 +13442,7 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
12364
13442
|
placement: this.placement,
|
|
12365
13443
|
offset: this.offset,
|
|
12366
13444
|
sticky: this.sticky,
|
|
12367
|
-
appendTo:
|
|
13445
|
+
appendTo: this.appendTo,
|
|
12368
13446
|
interactive: true,
|
|
12369
13447
|
trigger: 'manual',
|
|
12370
13448
|
// We have to manage hideOnClick functionality manually to handle
|
|
@@ -12621,8 +13699,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(230);
|
|
|
12621
13699
|
|
|
12622
13700
|
var popover_component = normalizeComponent(
|
|
12623
13701
|
popover_popovervue_type_script_lang_js_,
|
|
12624
|
-
|
|
12625
|
-
|
|
13702
|
+
popovervue_type_template_id_72eb20e1_render,
|
|
13703
|
+
popovervue_type_template_id_72eb20e1_staticRenderFns,
|
|
12626
13704
|
false,
|
|
12627
13705
|
null,
|
|
12628
13706
|
null,
|
|
@@ -12637,8 +13715,8 @@ var popover_component = normalizeComponent(
|
|
|
12637
13715
|
;// CONCATENATED MODULE: ./components/dropdown/dropdown_constants.js
|
|
12638
13716
|
const DROPDOWN_PADDING_CLASSES = {
|
|
12639
13717
|
none: undefined,
|
|
12640
|
-
small: 'd-
|
|
12641
|
-
large: 'd-
|
|
13718
|
+
small: 'd-py4',
|
|
13719
|
+
large: 'd-py8'
|
|
12642
13720
|
};
|
|
12643
13721
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown.vue?vue&type=script&lang=js&
|
|
12644
13722
|
//
|
|
@@ -12955,7 +14033,7 @@ const DROPDOWN_PADDING_CLASSES = {
|
|
|
12955
14033
|
},
|
|
12956
14034
|
|
|
12957
14035
|
listClasses() {
|
|
12958
|
-
return ['d-ps-relative', 'd-px0', DROPDOWN_PADDING_CLASSES[this.padding], this.listClass, {
|
|
14036
|
+
return ['d-ps-relative', 'd-stack2', 'd-m4', 'd-px0', DROPDOWN_PADDING_CLASSES[this.padding], this.listClass, {
|
|
12959
14037
|
'd-context-menu-list': this.openOnContext
|
|
12960
14038
|
}];
|
|
12961
14039
|
}
|
|
@@ -13090,8 +14168,8 @@ var dropdownvue_type_style_index_0_lang_less_ = __webpack_require__(782);
|
|
|
13090
14168
|
|
|
13091
14169
|
var dropdown_component = normalizeComponent(
|
|
13092
14170
|
dropdown_dropdownvue_type_script_lang_js_,
|
|
13093
|
-
|
|
13094
|
-
|
|
14171
|
+
dropdownvue_type_template_id_70cb2bdc_render,
|
|
14172
|
+
dropdownvue_type_template_id_70cb2bdc_staticRenderFns,
|
|
13095
14173
|
false,
|
|
13096
14174
|
null,
|
|
13097
14175
|
null,
|
|
@@ -13100,9 +14178,9 @@ var dropdown_component = normalizeComponent(
|
|
|
13100
14178
|
)
|
|
13101
14179
|
|
|
13102
14180
|
/* harmony default export */ const dropdown = (dropdown_component.exports);
|
|
13103
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown_list.vue?vue&type=template&id=
|
|
13104
|
-
var
|
|
13105
|
-
var
|
|
14181
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown_list.vue?vue&type=template&id=c83c6b9a&
|
|
14182
|
+
var dropdown_listvue_type_template_id_c83c6b9a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',[(_vm.heading)?_c('div',{staticClass:"dt-dropdown-list--header d-fs12 d-fc-black-400 d-fw-bold d-lh4 d-py4 d-px12 d-d-flex d-ai-center"},[_c('span',[_vm._v(_vm._s(_vm.heading))])]):_vm._e(),_c('ul',{class:['d-ps-relative', 'd-stack2', 'd-px0', _vm.listClass],attrs:{"data-qa":"dt-dropdown-list-wrapper"}},[_vm._t("default")],2)])}
|
|
14183
|
+
var dropdown_listvue_type_template_id_c83c6b9a_staticRenderFns = []
|
|
13106
14184
|
|
|
13107
14185
|
|
|
13108
14186
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown_list.vue?vue&type=script&lang=js&
|
|
@@ -13157,8 +14235,8 @@ var dropdown_listvue_type_template_id_55a3b3f2_staticRenderFns = []
|
|
|
13157
14235
|
;
|
|
13158
14236
|
var dropdown_list_component = normalizeComponent(
|
|
13159
14237
|
dropdown_dropdown_listvue_type_script_lang_js_,
|
|
13160
|
-
|
|
13161
|
-
|
|
14238
|
+
dropdown_listvue_type_template_id_c83c6b9a_render,
|
|
14239
|
+
dropdown_listvue_type_template_id_c83c6b9a_staticRenderFns,
|
|
13162
14240
|
false,
|
|
13163
14241
|
null,
|
|
13164
14242
|
null,
|
|
@@ -13167,9 +14245,9 @@ var dropdown_list_component = normalizeComponent(
|
|
|
13167
14245
|
)
|
|
13168
14246
|
|
|
13169
14247
|
/* harmony default export */ const dropdown_list = (dropdown_list_component.exports);
|
|
13170
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown_separator.vue?vue&type=template&id=
|
|
13171
|
-
var
|
|
13172
|
-
var
|
|
14248
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown_separator.vue?vue&type=template&id=7efcdecb&
|
|
14249
|
+
var dropdown_separatorvue_type_template_id_7efcdecb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"dt-list-separator d-bgc-black-300 d-my4 d-mxn4",attrs:{"aria-hidden":"true"}})}
|
|
14250
|
+
var dropdown_separatorvue_type_template_id_7efcdecb_staticRenderFns = []
|
|
13173
14251
|
|
|
13174
14252
|
|
|
13175
14253
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/dropdown/dropdown_separator.vue?vue&type=script&lang=js&
|
|
@@ -13200,8 +14278,8 @@ var dropdown_separatorvue_type_style_index_0_lang_less_ = __webpack_require__(20
|
|
|
13200
14278
|
|
|
13201
14279
|
var dropdown_separator_component = normalizeComponent(
|
|
13202
14280
|
dropdown_dropdown_separatorvue_type_script_lang_js_,
|
|
13203
|
-
|
|
13204
|
-
|
|
14281
|
+
dropdown_separatorvue_type_template_id_7efcdecb_render,
|
|
14282
|
+
dropdown_separatorvue_type_template_id_7efcdecb_staticRenderFns,
|
|
13205
14283
|
false,
|
|
13206
14284
|
null,
|
|
13207
14285
|
null,
|
|
@@ -17151,9 +18229,9 @@ var checkbox_group_component = normalizeComponent(
|
|
|
17151
18229
|
/* harmony default export */ const checkbox_group = (checkbox_group_component.exports);
|
|
17152
18230
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
17153
18231
|
|
|
17154
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/chip/chip.vue?vue&type=template&id=
|
|
17155
|
-
var
|
|
17156
|
-
var
|
|
18232
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/chip/chip.vue?vue&type=template&id=128cc6e8&
|
|
18233
|
+
var chipvue_type_template_id_128cc6e8_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:['d-chip', _vm.parentClass]},[_c(_vm.interactive ? 'button' : 'span',_vm._g({tag:"component",class:_vm.chipClasses(),attrs:{"id":_vm.id,"type":_vm.interactive && 'button',"data-qa":"dt-chip","aria-labelledby":_vm.ariaLabel ? undefined : (_vm.id + "-content"),"aria-label":_vm.ariaLabel}},_vm.chipListeners),[(_vm.$slots.icon)?_c('span',{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[_vm._t("icon")],2):(_vm.$slots.avatar)?_c('span',{attrs:{"data-qa":"dt-chip-avatar"}},[_vm._t("avatar")],2):_vm._e(),(_vm.$slots.default)?_c('span',{class:['d-truncate', 'd-chip__text', _vm.contentClass],attrs:{"id":(_vm.id + "-content"),"data-qa":"dt-chip-label"}},[_vm._t("default")],2):_vm._e()]),(!_vm.hideClose)?_c('dt-button',_vm._b({class:_vm.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":_vm.closeButtonProps.ariaLabel},on:{"click":function($event){return _vm.$emit('close')}},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{attrs:{"name":"close","size":_vm.closeButtonIconSize}})]},proxy:true}],null,false,1192647893)},'dt-button',_vm.closeButtonProps,false)):_vm._e()],1)}
|
|
18234
|
+
var chipvue_type_template_id_128cc6e8_staticRenderFns = []
|
|
17157
18235
|
|
|
17158
18236
|
|
|
17159
18237
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
@@ -17232,7 +18310,6 @@ const CHIP_ICON_SIZES = {
|
|
|
17232
18310
|
//
|
|
17233
18311
|
//
|
|
17234
18312
|
//
|
|
17235
|
-
//
|
|
17236
18313
|
|
|
17237
18314
|
|
|
17238
18315
|
|
|
@@ -17250,7 +18327,6 @@ const CHIP_ICON_SIZES = {
|
|
|
17250
18327
|
DtButton: button_button,
|
|
17251
18328
|
DtIcon: icon
|
|
17252
18329
|
},
|
|
17253
|
-
inheritAttrs: false,
|
|
17254
18330
|
props: {
|
|
17255
18331
|
/**
|
|
17256
18332
|
* A set of props to be passed into the modal's close button. Requires an 'ariaLabel' property.
|
|
@@ -17321,6 +18397,14 @@ const CHIP_ICON_SIZES = {
|
|
|
17321
18397
|
contentClass: {
|
|
17322
18398
|
type: [String, Array, Object],
|
|
17323
18399
|
default: ''
|
|
18400
|
+
},
|
|
18401
|
+
|
|
18402
|
+
/**
|
|
18403
|
+
* Additional class name for the span element.
|
|
18404
|
+
*/
|
|
18405
|
+
labelClass: {
|
|
18406
|
+
type: [String, Array, Object],
|
|
18407
|
+
default: ''
|
|
17324
18408
|
}
|
|
17325
18409
|
},
|
|
17326
18410
|
emits: [
|
|
@@ -17376,7 +18460,7 @@ const CHIP_ICON_SIZES = {
|
|
|
17376
18460
|
},
|
|
17377
18461
|
methods: {
|
|
17378
18462
|
chipClasses() {
|
|
17379
|
-
return [this.$attrs['grouped-chip'] ? 'd-chip' : 'd-chip__label', CHIP_SIZE_MODIFIERS[this.size]];
|
|
18463
|
+
return [this.$attrs['grouped-chip'] ? ['d-chip', ...this.labelClass] : 'd-chip__label', CHIP_SIZE_MODIFIERS[this.size]];
|
|
17380
18464
|
},
|
|
17381
18465
|
|
|
17382
18466
|
chipCloseButtonClasses() {
|
|
@@ -17403,8 +18487,8 @@ const CHIP_ICON_SIZES = {
|
|
|
17403
18487
|
;
|
|
17404
18488
|
var chip_component = normalizeComponent(
|
|
17405
18489
|
chip_chipvue_type_script_lang_js_,
|
|
17406
|
-
|
|
17407
|
-
|
|
18490
|
+
chipvue_type_template_id_128cc6e8_render,
|
|
18491
|
+
chipvue_type_template_id_128cc6e8_staticRenderFns,
|
|
17408
18492
|
false,
|
|
17409
18493
|
null,
|
|
17410
18494
|
null,
|
|
@@ -19287,15 +20371,15 @@ var root_layout_component = normalizeComponent(
|
|
|
19287
20371
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19288
20372
|
|
|
19289
20373
|
|
|
19290
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19291
|
-
var
|
|
20374
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=7d75f1f4&
|
|
20375
|
+
var combobox_with_popovervue_type_template_id_7d75f1f4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"loading":_vm.loading,"label":_vm.label,"label-visible":_vm.labelVisible,"size":_vm.size,"description":_vm.description,"empty-list":_vm.emptyList,"empty-state-message":_vm.emptyStateMessage,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
19292
20376
|
var inputProps = ref.inputProps;
|
|
19293
20377
|
return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"focusout":_vm.onFocusOut,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }return _vm.openOnArrowKeyPress($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }return _vm.openOnArrowKeyPress($event)}]}},[_vm._t("input",null,{"inputProps":inputProps,"onInput":_vm.handleDisplayList})],2)]}},{key:"list",fn:function(ref){
|
|
19294
20378
|
var opened = ref.opened;
|
|
19295
20379
|
var listProps = ref.listProps;
|
|
19296
20380
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
19297
20381
|
return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":_vm.showList === null,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","initial-focus-element":"none","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose},on:{"update:open":function($event){_vm.isListShown=$event},"opened":function($event){return opened($event, arguments[1]);}},scopedSlots:_vm._u([{key:"headerContent",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header",on:{"focusout":_vm.onFocusOut}},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"content",fn:function(){return [_c('div',{ref:"listWrapper",class:[_vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass],on:{"mouseleave":clearHighlightIndex,"focusout":function($event){clearHighlightIndex; _vm.onFocusOut;}}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(_vm.emptyList && _vm.emptyStateMessage)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',listProps,false)):_vm._t("list",null,{"listProps":listProps})],2)]},proxy:true},{key:"footerContent",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer",on:{"focusout":_vm.onFocusOut}},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
|
|
19298
|
-
var
|
|
20382
|
+
var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
19299
20383
|
|
|
19300
20384
|
|
|
19301
20385
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js&
|
|
@@ -19730,7 +20814,7 @@ var combobox_with_popovervue_type_template_id_dea81786_staticRenderFns = []
|
|
|
19730
20814
|
onFocusOut(e) {
|
|
19731
20815
|
const comboboxRefs = ['input', 'header', 'footer', 'listWrapper']; // Check if the focus change was to another target within the combobox component
|
|
19732
20816
|
|
|
19733
|
-
const isComboboxStillFocused = comboboxRefs.some(ref => {
|
|
20817
|
+
const isComboboxStillFocused = e.relatedTarget === null || comboboxRefs.some(ref => {
|
|
19734
20818
|
var _this$$refs$ref;
|
|
19735
20819
|
|
|
19736
20820
|
return (_this$$refs$ref = this.$refs[ref]) === null || _this$$refs$ref === void 0 ? void 0 : _this$$refs$ref.contains(e.relatedTarget);
|
|
@@ -19763,8 +20847,8 @@ var combobox_with_popovervue_type_template_id_dea81786_staticRenderFns = []
|
|
|
19763
20847
|
;
|
|
19764
20848
|
var combobox_with_popover_component = normalizeComponent(
|
|
19765
20849
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
19766
|
-
|
|
19767
|
-
|
|
20850
|
+
combobox_with_popovervue_type_template_id_7d75f1f4_render,
|
|
20851
|
+
combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns,
|
|
19768
20852
|
false,
|
|
19769
20853
|
null,
|
|
19770
20854
|
null,
|
|
@@ -19775,11 +20859,11 @@ var combobox_with_popover_component = normalizeComponent(
|
|
|
19775
20859
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
|
|
19776
20860
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|
|
19777
20861
|
|
|
19778
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=
|
|
19779
|
-
var
|
|
20862
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue?vue&type=template&id=97461302&
|
|
20863
|
+
var combobox_multi_selectvue_type_template_id_97461302_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-combobox-with-popover',{ref:"comboboxWithPopover",attrs:{"label":_vm.label,"show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose,"content-width":"anchor"},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
19780
20864
|
var onInput = ref.onInput;
|
|
19781
|
-
return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative"},[_c('span',{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2"},_vm._l((_vm.selectedItems),function(item){return _c('dt-chip',_vm._g({key:item.id,ref:"chips",refInFor:true,
|
|
19782
|
-
var
|
|
20865
|
+
return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative d-d-block"},[_c('span',{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2"},_vm._l((_vm.selectedItems),function(item){return _c('dt-chip',_vm._g({key:item.id,ref:"chips",refInFor:true,class:['d-mt4', 'd-mx2', 'd-zi-base1'],attrs:{"label-class":['d-chip__label'],"close-button-props":{ ariaLabel: 'close' },"size":_vm.size},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"backspace",undefined,$event.key,undefined)){ return null; }return _vm.onChipRemove(item)},"close":function($event){return _vm.onChipRemove(item)}}},_vm.chipListeners),[_vm._v(" "+_vm._s(item)+" ")])}),1),_c('dt-input',_vm._g({ref:"input",staticClass:"d-fl-grow1",attrs:{"aria-label":_vm.label,"label":_vm.labelVisible ? _vm.label : '',"description":_vm.description,"placeholder":_vm.inputPlaceHolder,"show-messages":_vm.showInputMessages,"messages":_vm.inputMessages,"size":_vm.size},on:{"input":onInput},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}},_vm.inputListeners)),_c('dt-validation-messages',{attrs:{"validation-messages":_vm.maxSelectedMessage,"show-messages":_vm.showValidationMessages}})],1)]}},{key:"header",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"list",fn:function(){return [_c('div',{ref:"list",on:{"mousedown":function($event){$event.preventDefault();}}},[(!_vm.loading)?_vm._t("list"):_c('div',{staticClass:"d-ta-center d-py16"},[_vm._v(" "+_vm._s(_vm.loadingMessage)+" ")])],2)]},proxy:true},{key:"footer",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})}
|
|
20866
|
+
var combobox_multi_selectvue_type_template_id_97461302_staticRenderFns = []
|
|
19783
20867
|
|
|
19784
20868
|
|
|
19785
20869
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
|
|
@@ -19984,6 +21068,7 @@ const MULTI_SELECT_SIZES = {
|
|
|
19984
21068
|
//
|
|
19985
21069
|
//
|
|
19986
21070
|
//
|
|
21071
|
+
//
|
|
19987
21072
|
|
|
19988
21073
|
|
|
19989
21074
|
|
|
@@ -20461,8 +21546,8 @@ const MULTI_SELECT_SIZES = {
|
|
|
20461
21546
|
;
|
|
20462
21547
|
var combobox_multi_select_component = normalizeComponent(
|
|
20463
21548
|
combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
|
|
20464
|
-
|
|
20465
|
-
|
|
21549
|
+
combobox_multi_selectvue_type_template_id_97461302_render,
|
|
21550
|
+
combobox_multi_selectvue_type_template_id_97461302_staticRenderFns,
|
|
20466
21551
|
false,
|
|
20467
21552
|
null,
|
|
20468
21553
|
null,
|