@stackoverflow/stacks 2.5.7 → 2.6.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/dist/components/popover/tooltip.d.ts +6 -0
- package/dist/css/stacks.css +46 -55
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.js +83 -72
- package/dist/js/stacks.min.js +1 -1
- package/lib/components/badge/badge.less +269 -258
- package/lib/components/button/button.less +475 -473
- package/lib/components/input_textarea/input_textarea.less +150 -150
- package/lib/components/link/link.less +136 -136
- package/lib/components/popover/tooltip.ts +366 -343
- package/lib/components/sidebar-widget/sidebar-widget.less +218 -257
- package/lib/test/visual-test-utils.ts +63 -58
- package/package.json +115 -115
package/dist/js/stacks.js
CHANGED
|
@@ -78,7 +78,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
78
78
|
showToast: () => (/* reexport */ showToast)
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
;//
|
|
81
|
+
;// ./node_modules/@hotwired/stimulus/dist/stimulus.js
|
|
82
82
|
/*
|
|
83
83
|
Stimulus 3.2.1
|
|
84
84
|
Copyright © 2023 Basecamp, LLC
|
|
@@ -2643,7 +2643,7 @@ Controller.values = {};
|
|
|
2643
2643
|
|
|
2644
2644
|
|
|
2645
2645
|
|
|
2646
|
-
;//
|
|
2646
|
+
;// ./lib/stacks.ts
|
|
2647
2647
|
|
|
2648
2648
|
class StacksApplication extends Application {
|
|
2649
2649
|
load(head, ...rest) {
|
|
@@ -2726,7 +2726,7 @@ function addController(name, controller) {
|
|
|
2726
2726
|
application.register(name, createController(controller));
|
|
2727
2727
|
}
|
|
2728
2728
|
|
|
2729
|
-
;//
|
|
2729
|
+
;// ./lib/components/banner/banner.ts
|
|
2730
2730
|
|
|
2731
2731
|
class BannerController extends StacksController {
|
|
2732
2732
|
/**
|
|
@@ -2834,7 +2834,7 @@ function toggleBanner(element, show) {
|
|
|
2834
2834
|
show ? controller.show() : controller.hide();
|
|
2835
2835
|
}
|
|
2836
2836
|
|
|
2837
|
-
;//
|
|
2837
|
+
;// ./lib/components/expandable/expandable.ts
|
|
2838
2838
|
|
|
2839
2839
|
// Radio buttons only trigger a change event when they're *checked*, but not when
|
|
2840
2840
|
// they're *unchecked*. Therefore, if we have an active `s-expandable-control` in
|
|
@@ -3028,7 +3028,7 @@ class ExpandableController extends StacksController {
|
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
3030
3030
|
|
|
3031
|
-
;//
|
|
3031
|
+
;// ./lib/components/modal/modal.ts
|
|
3032
3032
|
|
|
3033
3033
|
class ModalController extends StacksController {
|
|
3034
3034
|
connect() {
|
|
@@ -3312,7 +3312,7 @@ function toggleModal(element, show) {
|
|
|
3312
3312
|
show ? controller.show() : controller.hide();
|
|
3313
3313
|
}
|
|
3314
3314
|
|
|
3315
|
-
;//
|
|
3315
|
+
;// ./lib/components/navigation/navigation.ts
|
|
3316
3316
|
|
|
3317
3317
|
class TabListController extends StacksController {
|
|
3318
3318
|
connect() {
|
|
@@ -3420,7 +3420,7 @@ class TabListController extends StacksController {
|
|
|
3420
3420
|
}
|
|
3421
3421
|
}
|
|
3422
3422
|
|
|
3423
|
-
;//
|
|
3423
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
3424
3424
|
function getWindow(node) {
|
|
3425
3425
|
if (node == null) {
|
|
3426
3426
|
return window;
|
|
@@ -3433,7 +3433,7 @@ function getWindow(node) {
|
|
|
3433
3433
|
|
|
3434
3434
|
return node;
|
|
3435
3435
|
}
|
|
3436
|
-
;//
|
|
3436
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
|
|
3437
3437
|
|
|
3438
3438
|
|
|
3439
3439
|
function isElement(node) {
|
|
@@ -3457,11 +3457,11 @@ function isShadowRoot(node) {
|
|
|
3457
3457
|
}
|
|
3458
3458
|
|
|
3459
3459
|
|
|
3460
|
-
;//
|
|
3460
|
+
;// ./node_modules/@popperjs/core/lib/utils/math.js
|
|
3461
3461
|
var math_max = Math.max;
|
|
3462
3462
|
var math_min = Math.min;
|
|
3463
3463
|
var round = Math.round;
|
|
3464
|
-
;//
|
|
3464
|
+
;// ./node_modules/@popperjs/core/lib/utils/userAgent.js
|
|
3465
3465
|
function getUAString() {
|
|
3466
3466
|
var uaData = navigator.userAgentData;
|
|
3467
3467
|
|
|
@@ -3473,12 +3473,12 @@ function getUAString() {
|
|
|
3473
3473
|
|
|
3474
3474
|
return navigator.userAgent;
|
|
3475
3475
|
}
|
|
3476
|
-
;//
|
|
3476
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
|
|
3477
3477
|
|
|
3478
3478
|
function isLayoutViewport() {
|
|
3479
3479
|
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
3480
3480
|
}
|
|
3481
|
-
;//
|
|
3481
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
3482
3482
|
|
|
3483
3483
|
|
|
3484
3484
|
|
|
@@ -3520,7 +3520,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
|
3520
3520
|
y: y
|
|
3521
3521
|
};
|
|
3522
3522
|
}
|
|
3523
|
-
;//
|
|
3523
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js
|
|
3524
3524
|
|
|
3525
3525
|
function getWindowScroll(node) {
|
|
3526
3526
|
var win = getWindow(node);
|
|
@@ -3531,14 +3531,14 @@ function getWindowScroll(node) {
|
|
|
3531
3531
|
scrollTop: scrollTop
|
|
3532
3532
|
};
|
|
3533
3533
|
}
|
|
3534
|
-
;//
|
|
3534
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js
|
|
3535
3535
|
function getHTMLElementScroll(element) {
|
|
3536
3536
|
return {
|
|
3537
3537
|
scrollLeft: element.scrollLeft,
|
|
3538
3538
|
scrollTop: element.scrollTop
|
|
3539
3539
|
};
|
|
3540
3540
|
}
|
|
3541
|
-
;//
|
|
3541
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js
|
|
3542
3542
|
|
|
3543
3543
|
|
|
3544
3544
|
|
|
@@ -3550,18 +3550,18 @@ function getNodeScroll(node) {
|
|
|
3550
3550
|
return getHTMLElementScroll(node);
|
|
3551
3551
|
}
|
|
3552
3552
|
}
|
|
3553
|
-
;//
|
|
3553
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
|
|
3554
3554
|
function getNodeName(element) {
|
|
3555
3555
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
3556
3556
|
}
|
|
3557
|
-
;//
|
|
3557
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
|
|
3558
3558
|
|
|
3559
3559
|
function getDocumentElement(element) {
|
|
3560
3560
|
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3561
3561
|
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
3562
3562
|
element.document) || window.document).documentElement;
|
|
3563
3563
|
}
|
|
3564
|
-
;//
|
|
3564
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
|
|
3565
3565
|
|
|
3566
3566
|
|
|
3567
3567
|
|
|
@@ -3575,12 +3575,12 @@ function getWindowScrollBarX(element) {
|
|
|
3575
3575
|
// this (e.g. Edge 2019, IE11, Safari)
|
|
3576
3576
|
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
3577
3577
|
}
|
|
3578
|
-
;//
|
|
3578
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
|
|
3579
3579
|
|
|
3580
3580
|
function getComputedStyle_getComputedStyle(element) {
|
|
3581
3581
|
return getWindow(element).getComputedStyle(element);
|
|
3582
3582
|
}
|
|
3583
|
-
;//
|
|
3583
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js
|
|
3584
3584
|
|
|
3585
3585
|
function isScrollParent(element) {
|
|
3586
3586
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
@@ -3591,7 +3591,7 @@ function isScrollParent(element) {
|
|
|
3591
3591
|
|
|
3592
3592
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
3593
3593
|
}
|
|
3594
|
-
;//
|
|
3594
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js
|
|
3595
3595
|
|
|
3596
3596
|
|
|
3597
3597
|
|
|
@@ -3650,7 +3650,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
3650
3650
|
height: rect.height
|
|
3651
3651
|
};
|
|
3652
3652
|
}
|
|
3653
|
-
;//
|
|
3653
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
|
|
3654
3654
|
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
3655
3655
|
// means it doesn't take into account transforms.
|
|
3656
3656
|
|
|
@@ -3676,7 +3676,7 @@ function getLayoutRect(element) {
|
|
|
3676
3676
|
height: height
|
|
3677
3677
|
};
|
|
3678
3678
|
}
|
|
3679
|
-
;//
|
|
3679
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js
|
|
3680
3680
|
|
|
3681
3681
|
|
|
3682
3682
|
|
|
@@ -3696,7 +3696,7 @@ function getParentNode(element) {
|
|
|
3696
3696
|
|
|
3697
3697
|
);
|
|
3698
3698
|
}
|
|
3699
|
-
;//
|
|
3699
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js
|
|
3700
3700
|
|
|
3701
3701
|
|
|
3702
3702
|
|
|
@@ -3713,7 +3713,7 @@ function getScrollParent(node) {
|
|
|
3713
3713
|
|
|
3714
3714
|
return getScrollParent(getParentNode(node));
|
|
3715
3715
|
}
|
|
3716
|
-
;//
|
|
3716
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
|
|
3717
3717
|
|
|
3718
3718
|
|
|
3719
3719
|
|
|
@@ -3740,12 +3740,12 @@ function listScrollParents(element, list) {
|
|
|
3740
3740
|
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3741
3741
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3742
3742
|
}
|
|
3743
|
-
;//
|
|
3743
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
|
|
3744
3744
|
|
|
3745
3745
|
function isTableElement(element) {
|
|
3746
3746
|
return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
|
|
3747
3747
|
}
|
|
3748
|
-
;//
|
|
3748
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
|
|
3749
3749
|
|
|
3750
3750
|
|
|
3751
3751
|
|
|
@@ -3815,7 +3815,7 @@ function getOffsetParent(element) {
|
|
|
3815
3815
|
|
|
3816
3816
|
return offsetParent || getContainingBlock(element) || window;
|
|
3817
3817
|
}
|
|
3818
|
-
;//
|
|
3818
|
+
;// ./node_modules/@popperjs/core/lib/enums.js
|
|
3819
3819
|
var enums_top = 'top';
|
|
3820
3820
|
var bottom = 'bottom';
|
|
3821
3821
|
var right = 'right';
|
|
@@ -3847,7 +3847,7 @@ var beforeWrite = 'beforeWrite';
|
|
|
3847
3847
|
var write = 'write';
|
|
3848
3848
|
var afterWrite = 'afterWrite';
|
|
3849
3849
|
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
3850
|
-
;//
|
|
3850
|
+
;// ./node_modules/@popperjs/core/lib/utils/orderModifiers.js
|
|
3851
3851
|
// source: https://stackoverflow.com/questions/49875255
|
|
3852
3852
|
|
|
3853
3853
|
function order(modifiers) {
|
|
@@ -3892,7 +3892,7 @@ function orderModifiers(modifiers) {
|
|
|
3892
3892
|
}));
|
|
3893
3893
|
}, []);
|
|
3894
3894
|
}
|
|
3895
|
-
;//
|
|
3895
|
+
;// ./node_modules/@popperjs/core/lib/utils/debounce.js
|
|
3896
3896
|
function debounce(fn) {
|
|
3897
3897
|
var pending;
|
|
3898
3898
|
return function () {
|
|
@@ -3908,7 +3908,7 @@ function debounce(fn) {
|
|
|
3908
3908
|
return pending;
|
|
3909
3909
|
};
|
|
3910
3910
|
}
|
|
3911
|
-
;//
|
|
3911
|
+
;// ./node_modules/@popperjs/core/lib/utils/mergeByName.js
|
|
3912
3912
|
function mergeByName(modifiers) {
|
|
3913
3913
|
var merged = modifiers.reduce(function (merged, current) {
|
|
3914
3914
|
var existing = merged[current.name];
|
|
@@ -3923,7 +3923,7 @@ function mergeByName(modifiers) {
|
|
|
3923
3923
|
return merged[key];
|
|
3924
3924
|
});
|
|
3925
3925
|
}
|
|
3926
|
-
;//
|
|
3926
|
+
;// ./node_modules/@popperjs/core/lib/createPopper.js
|
|
3927
3927
|
|
|
3928
3928
|
|
|
3929
3929
|
|
|
@@ -4123,7 +4123,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4123
4123
|
var createPopper = /*#__PURE__*/(/* unused pure expression or super */ null && (popperGenerator())); // eslint-disable-next-line import/no-unused-modules
|
|
4124
4124
|
|
|
4125
4125
|
|
|
4126
|
-
;//
|
|
4126
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/eventListeners.js
|
|
4127
4127
|
// eslint-disable-next-line import/no-unused-modules
|
|
4128
4128
|
|
|
4129
4129
|
var passive = {
|
|
@@ -4173,20 +4173,20 @@ function effect(_ref) {
|
|
|
4173
4173
|
effect: effect,
|
|
4174
4174
|
data: {}
|
|
4175
4175
|
});
|
|
4176
|
-
;//
|
|
4176
|
+
;// ./node_modules/@popperjs/core/lib/utils/getBasePlacement.js
|
|
4177
4177
|
|
|
4178
4178
|
function getBasePlacement(placement) {
|
|
4179
4179
|
return placement.split('-')[0];
|
|
4180
4180
|
}
|
|
4181
|
-
;//
|
|
4181
|
+
;// ./node_modules/@popperjs/core/lib/utils/getVariation.js
|
|
4182
4182
|
function getVariation(placement) {
|
|
4183
4183
|
return placement.split('-')[1];
|
|
4184
4184
|
}
|
|
4185
|
-
;//
|
|
4185
|
+
;// ./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js
|
|
4186
4186
|
function getMainAxisFromPlacement(placement) {
|
|
4187
4187
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
4188
4188
|
}
|
|
4189
|
-
;//
|
|
4189
|
+
;// ./node_modules/@popperjs/core/lib/utils/computeOffsets.js
|
|
4190
4190
|
|
|
4191
4191
|
|
|
4192
4192
|
|
|
@@ -4257,7 +4257,7 @@ function computeOffsets(_ref) {
|
|
|
4257
4257
|
|
|
4258
4258
|
return offsets;
|
|
4259
4259
|
}
|
|
4260
|
-
;//
|
|
4260
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js
|
|
4261
4261
|
|
|
4262
4262
|
|
|
4263
4263
|
function popperOffsets(_ref) {
|
|
@@ -4283,7 +4283,7 @@ function popperOffsets(_ref) {
|
|
|
4283
4283
|
fn: popperOffsets,
|
|
4284
4284
|
data: {}
|
|
4285
4285
|
});
|
|
4286
|
-
;//
|
|
4286
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js
|
|
4287
4287
|
|
|
4288
4288
|
|
|
4289
4289
|
|
|
@@ -4453,7 +4453,7 @@ function computeStyles(_ref5) {
|
|
|
4453
4453
|
fn: computeStyles,
|
|
4454
4454
|
data: {}
|
|
4455
4455
|
});
|
|
4456
|
-
;//
|
|
4456
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/applyStyles.js
|
|
4457
4457
|
|
|
4458
4458
|
// This modifier takes the styles prepared by the `computeStyles` modifier
|
|
4459
4459
|
// and applies them to the HTMLElements such as popper and arrow
|
|
@@ -4538,7 +4538,7 @@ function applyStyles_effect(_ref2) {
|
|
|
4538
4538
|
effect: applyStyles_effect,
|
|
4539
4539
|
requires: ['computeStyles']
|
|
4540
4540
|
});
|
|
4541
|
-
;//
|
|
4541
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/offset.js
|
|
4542
4542
|
|
|
4543
4543
|
// eslint-disable-next-line import/no-unused-modules
|
|
4544
4544
|
|
|
@@ -4593,7 +4593,7 @@ function offset(_ref2) {
|
|
|
4593
4593
|
requires: ['popperOffsets'],
|
|
4594
4594
|
fn: offset
|
|
4595
4595
|
});
|
|
4596
|
-
;//
|
|
4596
|
+
;// ./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
|
|
4597
4597
|
var hash = {
|
|
4598
4598
|
left: 'right',
|
|
4599
4599
|
right: 'left',
|
|
@@ -4605,7 +4605,7 @@ function getOppositePlacement(placement) {
|
|
|
4605
4605
|
return hash[matched];
|
|
4606
4606
|
});
|
|
4607
4607
|
}
|
|
4608
|
-
;//
|
|
4608
|
+
;// ./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js
|
|
4609
4609
|
var getOppositeVariationPlacement_hash = {
|
|
4610
4610
|
start: 'end',
|
|
4611
4611
|
end: 'start'
|
|
@@ -4615,7 +4615,7 @@ function getOppositeVariationPlacement(placement) {
|
|
|
4615
4615
|
return getOppositeVariationPlacement_hash[matched];
|
|
4616
4616
|
});
|
|
4617
4617
|
}
|
|
4618
|
-
;//
|
|
4618
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js
|
|
4619
4619
|
|
|
4620
4620
|
|
|
4621
4621
|
|
|
@@ -4647,7 +4647,7 @@ function getViewportRect(element, strategy) {
|
|
|
4647
4647
|
y: y
|
|
4648
4648
|
};
|
|
4649
4649
|
}
|
|
4650
|
-
;//
|
|
4650
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js
|
|
4651
4651
|
|
|
4652
4652
|
|
|
4653
4653
|
|
|
@@ -4677,7 +4677,7 @@ function getDocumentRect(element) {
|
|
|
4677
4677
|
y: y
|
|
4678
4678
|
};
|
|
4679
4679
|
}
|
|
4680
|
-
;//
|
|
4680
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/contains.js
|
|
4681
4681
|
|
|
4682
4682
|
function contains(parent, child) {
|
|
4683
4683
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
@@ -4701,7 +4701,7 @@ function contains(parent, child) {
|
|
|
4701
4701
|
|
|
4702
4702
|
return false;
|
|
4703
4703
|
}
|
|
4704
|
-
;//
|
|
4704
|
+
;// ./node_modules/@popperjs/core/lib/utils/rectToClientRect.js
|
|
4705
4705
|
function rectToClientRect(rect) {
|
|
4706
4706
|
return Object.assign({}, rect, {
|
|
4707
4707
|
left: rect.x,
|
|
@@ -4710,7 +4710,7 @@ function rectToClientRect(rect) {
|
|
|
4710
4710
|
bottom: rect.y + rect.height
|
|
4711
4711
|
});
|
|
4712
4712
|
}
|
|
4713
|
-
;//
|
|
4713
|
+
;// ./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js
|
|
4714
4714
|
|
|
4715
4715
|
|
|
4716
4716
|
|
|
@@ -4781,7 +4781,7 @@ function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
|
4781
4781
|
clippingRect.y = clippingRect.top;
|
|
4782
4782
|
return clippingRect;
|
|
4783
4783
|
}
|
|
4784
|
-
;//
|
|
4784
|
+
;// ./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js
|
|
4785
4785
|
function getFreshSideObject() {
|
|
4786
4786
|
return {
|
|
4787
4787
|
top: 0,
|
|
@@ -4790,19 +4790,19 @@ function getFreshSideObject() {
|
|
|
4790
4790
|
left: 0
|
|
4791
4791
|
};
|
|
4792
4792
|
}
|
|
4793
|
-
;//
|
|
4793
|
+
;// ./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js
|
|
4794
4794
|
|
|
4795
4795
|
function mergePaddingObject(paddingObject) {
|
|
4796
4796
|
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
4797
4797
|
}
|
|
4798
|
-
;//
|
|
4798
|
+
;// ./node_modules/@popperjs/core/lib/utils/expandToHashMap.js
|
|
4799
4799
|
function expandToHashMap(value, keys) {
|
|
4800
4800
|
return keys.reduce(function (hashMap, key) {
|
|
4801
4801
|
hashMap[key] = value;
|
|
4802
4802
|
return hashMap;
|
|
4803
4803
|
}, {});
|
|
4804
4804
|
}
|
|
4805
|
-
;//
|
|
4805
|
+
;// ./node_modules/@popperjs/core/lib/utils/detectOverflow.js
|
|
4806
4806
|
|
|
4807
4807
|
|
|
4808
4808
|
|
|
@@ -4868,7 +4868,7 @@ function detectOverflow(state, options) {
|
|
|
4868
4868
|
|
|
4869
4869
|
return overflowOffsets;
|
|
4870
4870
|
}
|
|
4871
|
-
;//
|
|
4871
|
+
;// ./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js
|
|
4872
4872
|
|
|
4873
4873
|
|
|
4874
4874
|
|
|
@@ -4912,7 +4912,7 @@ function computeAutoPlacement(state, options) {
|
|
|
4912
4912
|
return overflows[a] - overflows[b];
|
|
4913
4913
|
});
|
|
4914
4914
|
}
|
|
4915
|
-
;//
|
|
4915
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/flip.js
|
|
4916
4916
|
|
|
4917
4917
|
|
|
4918
4918
|
|
|
@@ -5060,11 +5060,11 @@ function flip(_ref) {
|
|
|
5060
5060
|
_skip: false
|
|
5061
5061
|
}
|
|
5062
5062
|
});
|
|
5063
|
-
;//
|
|
5063
|
+
;// ./node_modules/@popperjs/core/lib/utils/getAltAxis.js
|
|
5064
5064
|
function getAltAxis(axis) {
|
|
5065
5065
|
return axis === 'x' ? 'y' : 'x';
|
|
5066
5066
|
}
|
|
5067
|
-
;//
|
|
5067
|
+
;// ./node_modules/@popperjs/core/lib/utils/within.js
|
|
5068
5068
|
|
|
5069
5069
|
function within(min, value, max) {
|
|
5070
5070
|
return math_max(min, math_min(value, max));
|
|
@@ -5073,7 +5073,7 @@ function withinMaxClamp(min, value, max) {
|
|
|
5073
5073
|
var v = within(min, value, max);
|
|
5074
5074
|
return v > max ? max : v;
|
|
5075
5075
|
}
|
|
5076
|
-
;//
|
|
5076
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
|
|
5077
5077
|
|
|
5078
5078
|
|
|
5079
5079
|
|
|
@@ -5216,7 +5216,7 @@ function preventOverflow(_ref) {
|
|
|
5216
5216
|
fn: preventOverflow,
|
|
5217
5217
|
requiresIfExists: ['offset']
|
|
5218
5218
|
});
|
|
5219
|
-
;//
|
|
5219
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/arrow.js
|
|
5220
5220
|
|
|
5221
5221
|
|
|
5222
5222
|
|
|
@@ -5307,7 +5307,7 @@ function arrow_effect(_ref2) {
|
|
|
5307
5307
|
requires: ['popperOffsets'],
|
|
5308
5308
|
requiresIfExists: ['preventOverflow']
|
|
5309
5309
|
});
|
|
5310
|
-
;//
|
|
5310
|
+
;// ./node_modules/@popperjs/core/lib/modifiers/hide.js
|
|
5311
5311
|
|
|
5312
5312
|
|
|
5313
5313
|
|
|
@@ -5369,7 +5369,7 @@ function hide(_ref) {
|
|
|
5369
5369
|
requiresIfExists: ['preventOverflow'],
|
|
5370
5370
|
fn: hide
|
|
5371
5371
|
});
|
|
5372
|
-
;//
|
|
5372
|
+
;// ./node_modules/@popperjs/core/lib/popper.js
|
|
5373
5373
|
|
|
5374
5374
|
|
|
5375
5375
|
|
|
@@ -5390,7 +5390,7 @@ var popper_createPopper = /*#__PURE__*/popperGenerator({
|
|
|
5390
5390
|
// eslint-disable-next-line import/no-unused-modules
|
|
5391
5391
|
|
|
5392
5392
|
|
|
5393
|
-
;//
|
|
5393
|
+
;// ./lib/components/popover/popover.ts
|
|
5394
5394
|
|
|
5395
5395
|
|
|
5396
5396
|
class BasePopoverController extends StacksController {
|
|
@@ -5869,7 +5869,7 @@ function toggleController(el, controllerName, include) {
|
|
|
5869
5869
|
el.setAttribute("data-controller", Array.from(controllers).join(" "));
|
|
5870
5870
|
}
|
|
5871
5871
|
|
|
5872
|
-
;//
|
|
5872
|
+
;// ./lib/components/table/table.ts
|
|
5873
5873
|
|
|
5874
5874
|
/**
|
|
5875
5875
|
* The string values of these enumerations should correspond with `aria-sort` valid values.
|
|
@@ -6108,7 +6108,7 @@ function buildIndexOrGetCellSlot(section, findCell) {
|
|
|
6108
6108
|
return findCell ? -1 : index;
|
|
6109
6109
|
}
|
|
6110
6110
|
|
|
6111
|
-
;//
|
|
6111
|
+
;// ./lib/components/toast/toast.ts
|
|
6112
6112
|
|
|
6113
6113
|
class ToastController extends StacksController {
|
|
6114
6114
|
connect() {
|
|
@@ -6366,7 +6366,7 @@ function toggleToast(element, show) {
|
|
|
6366
6366
|
show ? controller.show() : controller.hide();
|
|
6367
6367
|
}
|
|
6368
6368
|
|
|
6369
|
-
;//
|
|
6369
|
+
;// ./lib/components/popover/tooltip.ts
|
|
6370
6370
|
|
|
6371
6371
|
|
|
6372
6372
|
class TooltipController extends BasePopoverController {
|
|
@@ -6516,6 +6516,16 @@ class TooltipController extends BasePopoverController {
|
|
|
6516
6516
|
this.scheduleHide();
|
|
6517
6517
|
}
|
|
6518
6518
|
}
|
|
6519
|
+
/**
|
|
6520
|
+
* Hides the tooltip if the focus is not on the popover element.
|
|
6521
|
+
* @param event A focusout event object from the reference or popover element
|
|
6522
|
+
*/
|
|
6523
|
+
hideIfNotFocused(event) {
|
|
6524
|
+
if (!this.referenceElement.contains(event.relatedTarget) &&
|
|
6525
|
+
!this.popoverElement.contains(event.relatedTarget)) {
|
|
6526
|
+
this.scheduleHide();
|
|
6527
|
+
}
|
|
6528
|
+
}
|
|
6519
6529
|
hideOnEscapeKeyEvent(event) {
|
|
6520
6530
|
if (event.key === "Escape") {
|
|
6521
6531
|
this.scheduleHide();
|
|
@@ -6527,12 +6537,14 @@ class TooltipController extends BasePopoverController {
|
|
|
6527
6537
|
bindKeyboardEvents() {
|
|
6528
6538
|
this.boundScheduleShow =
|
|
6529
6539
|
this.boundScheduleShow || this.scheduleShow.bind(this);
|
|
6530
|
-
this.boundHide = this.boundHide || this.scheduleHide.bind(this);
|
|
6531
6540
|
this.boundHideOnEscapeKeyEvent =
|
|
6532
6541
|
this.boundHideOnEscapeKeyEvent ||
|
|
6533
6542
|
this.hideOnEscapeKeyEvent.bind(this);
|
|
6543
|
+
this.boundHideIfNotFocused =
|
|
6544
|
+
this.boundHideIfNotFocused || this.hideIfNotFocused.bind(this);
|
|
6534
6545
|
this.referenceElement.addEventListener("focus", this.boundScheduleShow);
|
|
6535
|
-
this.referenceElement.addEventListener("
|
|
6546
|
+
this.referenceElement.addEventListener("focusout", this.boundHideIfNotFocused.bind(this));
|
|
6547
|
+
this.popoverElement.addEventListener("focusout", this.boundHideIfNotFocused.bind(this));
|
|
6536
6548
|
document.addEventListener("keyup", this.boundHideOnEscapeKeyEvent);
|
|
6537
6549
|
}
|
|
6538
6550
|
/**
|
|
@@ -6540,7 +6552,8 @@ class TooltipController extends BasePopoverController {
|
|
|
6540
6552
|
*/
|
|
6541
6553
|
unbindKeyboardEvents() {
|
|
6542
6554
|
this.referenceElement.removeEventListener("focus", this.boundScheduleShow);
|
|
6543
|
-
this.referenceElement.removeEventListener("
|
|
6555
|
+
this.referenceElement.removeEventListener("focusout", this.boundHideIfNotFocused);
|
|
6556
|
+
this.referenceElement.removeEventListener("focusout", this.boundHideIfNotFocused);
|
|
6544
6557
|
document.removeEventListener("keyup", this.boundHideOnEscapeKeyEvent);
|
|
6545
6558
|
}
|
|
6546
6559
|
/**
|
|
@@ -6563,8 +6576,6 @@ class TooltipController extends BasePopoverController {
|
|
|
6563
6576
|
unbindMouseEvents() {
|
|
6564
6577
|
this.referenceElement.removeEventListener("mouseover", this.boundScheduleShow);
|
|
6565
6578
|
this.referenceElement.removeEventListener("mouseout", this.boundHide);
|
|
6566
|
-
this.referenceElement.removeEventListener("focus", this.boundScheduleShow);
|
|
6567
|
-
this.referenceElement.removeEventListener("blur", this.boundHide);
|
|
6568
6579
|
this.popoverElement.removeEventListener("mouseover", this.boundClearActiveTimeout);
|
|
6569
6580
|
this.popoverElement.removeEventListener("mouseout", this.boundHide);
|
|
6570
6581
|
}
|
|
@@ -6618,7 +6629,7 @@ function applyOptionsAndTitleAttributes(element, options) {
|
|
|
6618
6629
|
}
|
|
6619
6630
|
}
|
|
6620
6631
|
|
|
6621
|
-
;//
|
|
6632
|
+
;// ./lib/components/uploader/uploader.ts
|
|
6622
6633
|
|
|
6623
6634
|
class UploaderController extends StacksController {
|
|
6624
6635
|
connect() {
|
|
@@ -6783,7 +6794,7 @@ UploaderController.targets = ["input", "previews", "uploader"];
|
|
|
6783
6794
|
UploaderController.FILE_DISPLAY_LIMIT = 10;
|
|
6784
6795
|
UploaderController.MAX_FILE_SIZE = 1024 * 1024 * 10; // 10 MB
|
|
6785
6796
|
|
|
6786
|
-
;//
|
|
6797
|
+
;// ./lib/controllers.ts
|
|
6787
6798
|
// export all controllers *with helpers* so they can be bulk re-exported by the package entry point
|
|
6788
6799
|
|
|
6789
6800
|
|
|
@@ -6795,7 +6806,7 @@ UploaderController.MAX_FILE_SIZE = 1024 * 1024 * 10; // 10 MB
|
|
|
6795
6806
|
|
|
6796
6807
|
|
|
6797
6808
|
|
|
6798
|
-
;//
|
|
6809
|
+
;// ./lib/index.ts
|
|
6799
6810
|
|
|
6800
6811
|
|
|
6801
6812
|
|