@dialpad/dialtone-vue 3.34.0 → 3.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dialtone-vue.common.js +179 -155
- package/dist/dialtone-vue.umd.js +181 -157
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +3 -3
|
@@ -193,7 +193,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-section[tabindex=\"-1\"]:focu
|
|
|
193
193
|
|
|
194
194
|
/***/ }),
|
|
195
195
|
|
|
196
|
-
/***/
|
|
196
|
+
/***/ 273:
|
|
197
197
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
198
198
|
|
|
199
199
|
"use strict";
|
|
@@ -1684,19 +1684,19 @@ var update = add("4d925410", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1684
1684
|
|
|
1685
1685
|
/***/ }),
|
|
1686
1686
|
|
|
1687
|
-
/***/
|
|
1687
|
+
/***/ 786:
|
|
1688
1688
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1689
1689
|
|
|
1690
1690
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1691
1691
|
|
|
1692
1692
|
// load the styles
|
|
1693
|
-
var content = __webpack_require__(
|
|
1693
|
+
var content = __webpack_require__(273);
|
|
1694
1694
|
if(content.__esModule) content = content.default;
|
|
1695
1695
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1696
1696
|
if(content.locals) module.exports = content.locals;
|
|
1697
1697
|
// add the styles to the DOM
|
|
1698
1698
|
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
1699
|
-
var update = add("
|
|
1699
|
+
var update = add("5f7d7664", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1700
1700
|
|
|
1701
1701
|
/***/ }),
|
|
1702
1702
|
|
|
@@ -7401,11 +7401,11 @@ function dropdownvue_type_template_id_d36ba644_render(_ctx, _cache, $props, $set
|
|
|
7401
7401
|
}
|
|
7402
7402
|
;// CONCATENATED MODULE: ./components/dropdown/dropdown.vue?vue&type=template&id=d36ba644
|
|
7403
7403
|
|
|
7404
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=template&id=
|
|
7404
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=template&id=4e81d3c3
|
|
7405
7405
|
|
|
7406
|
-
const
|
|
7407
|
-
const
|
|
7408
|
-
function
|
|
7406
|
+
const popovervue_type_template_id_4e81d3c3_hoisted_1 = ["aria-hidden"];
|
|
7407
|
+
const popovervue_type_template_id_4e81d3c3_hoisted_2 = ["id", "tabindex"];
|
|
7408
|
+
function popovervue_type_template_id_4e81d3c3_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7409
7409
|
const _component_popover_header_footer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("popover-header-footer");
|
|
7410
7410
|
|
|
7411
7411
|
const _component_sr_only_close_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("sr-only-close-button");
|
|
@@ -7418,9 +7418,8 @@ function popovervue_type_template_id_1c311181_render(_ctx, _cache, $props, $setu
|
|
|
7418
7418
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
7419
7419
|
class: "d-modal--transparent",
|
|
7420
7420
|
"aria-hidden": $props.modal && $data.isOpen ? 'false' : 'true',
|
|
7421
|
-
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent", "stop"]))
|
|
7422
|
-
|
|
7423
|
-
}, null, 40, popovervue_type_template_id_1c311181_hoisted_1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.elementType), {
|
|
7421
|
+
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent", "stop"]))
|
|
7422
|
+
}, null, 8, popovervue_type_template_id_4e81d3c3_hoisted_1)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.elementType), {
|
|
7424
7423
|
ref: "popover",
|
|
7425
7424
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-popover', {
|
|
7426
7425
|
'd-popover__anchor--opened': $data.isOpen
|
|
@@ -7432,18 +7431,18 @@ function popovervue_type_template_id_1c311181_render(_ctx, _cache, $props, $setu
|
|
|
7432
7431
|
ref: "anchor",
|
|
7433
7432
|
"data-qa": "dt-popover-anchor",
|
|
7434
7433
|
tabindex: $props.openOnContext ? 0 : undefined,
|
|
7435
|
-
onClickCapture: _cache[
|
|
7434
|
+
onClickCapture: _cache[1] || (_cache[1] = function () {
|
|
7436
7435
|
return $options.defaultToggleOpen && $options.defaultToggleOpen(...arguments);
|
|
7437
7436
|
}),
|
|
7438
|
-
onContextmenu: _cache[
|
|
7437
|
+
onContextmenu: _cache[2] || (_cache[2] = function () {
|
|
7439
7438
|
return $options.onContext && $options.onContext(...arguments);
|
|
7440
7439
|
}),
|
|
7441
|
-
onKeydown: [_cache[
|
|
7440
|
+
onKeydown: [_cache[3] || (_cache[3] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(function () {
|
|
7442
7441
|
return $options.onArrowKeyPress && $options.onArrowKeyPress(...arguments);
|
|
7443
|
-
}, ["prevent"]), ["up"])), _cache[
|
|
7442
|
+
}, ["prevent"]), ["up"])), _cache[4] || (_cache[4] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(function () {
|
|
7444
7443
|
return $options.onArrowKeyPress && $options.onArrowKeyPress(...arguments);
|
|
7445
|
-
}, ["prevent"]), ["down"])), _cache[
|
|
7446
|
-
onKeydownCapture: _cache[
|
|
7444
|
+
}, ["prevent"]), ["down"])), _cache[6] || (_cache[6] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($event => _ctx.$emit('keydown', $event), ["enter"])), _cache[7] || (_cache[7] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($event => _ctx.$emit('keydown', $event), ["space"]))],
|
|
7445
|
+
onKeydownCapture: _cache[5] || (_cache[5] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)(function () {
|
|
7447
7446
|
return $options.closePopover && $options.closePopover(...arguments);
|
|
7448
7447
|
}, ["escape"]))
|
|
7449
7448
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "anchor", {
|
|
@@ -7452,7 +7451,7 @@ function popovervue_type_template_id_1c311181_render(_ctx, _cache, $props, $setu
|
|
|
7452
7451
|
'aria-controls': $props.id,
|
|
7453
7452
|
'aria-haspopup': $props.role
|
|
7454
7453
|
}
|
|
7455
|
-
})], 40,
|
|
7454
|
+
})], 40, popovervue_type_template_id_4e81d3c3_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_lazy_show, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
7456
7455
|
id: $props.id,
|
|
7457
7456
|
ref: "content",
|
|
7458
7457
|
role: $props.role,
|
|
@@ -7473,9 +7472,7 @@ function popovervue_type_template_id_1c311181_render(_ctx, _cache, $props, $setu
|
|
|
7473
7472
|
},
|
|
7474
7473
|
css: _ctx.$attrs.css,
|
|
7475
7474
|
tabindex: $props.contentTabindex
|
|
7476
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.popoverListeners), {
|
|
7477
|
-
onWheel: _cache[9] || (_cache[9] = e => $data.isOpen && $props.modal && e.preventDefault())
|
|
7478
|
-
}), {
|
|
7475
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.popoverListeners)), {
|
|
7479
7476
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [_ctx.$slots.headerContent || $props.showCloseButton ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_popover_header_footer, {
|
|
7480
7477
|
key: 0,
|
|
7481
7478
|
ref: "popover__header",
|
|
@@ -7517,7 +7514,7 @@ function popovervue_type_template_id_1c311181_render(_ctx, _cache, $props, $setu
|
|
|
7517
7514
|
_: 3
|
|
7518
7515
|
}, 8, ["class"]))]);
|
|
7519
7516
|
}
|
|
7520
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=
|
|
7517
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=4e81d3c3
|
|
7521
7518
|
|
|
7522
7519
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
7523
7520
|
function getWindow(node) {
|
|
@@ -12605,39 +12602,49 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12605
12602
|
},
|
|
12606
12603
|
|
|
12607
12604
|
modal(modal) {
|
|
12608
|
-
|
|
12609
|
-
|
|
12605
|
+
var _this$tip;
|
|
12606
|
+
|
|
12607
|
+
(_this$tip = this.tip) === null || _this$tip === void 0 ? void 0 : _this$tip.setProps({
|
|
12608
|
+
zIndex: modal ? 650 : this.calculateAnchorZindex()
|
|
12610
12609
|
});
|
|
12611
12610
|
},
|
|
12612
12611
|
|
|
12613
12612
|
offset(offset) {
|
|
12614
|
-
|
|
12613
|
+
var _this$tip2;
|
|
12614
|
+
|
|
12615
|
+
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.setProps({
|
|
12615
12616
|
offset
|
|
12616
12617
|
});
|
|
12617
12618
|
},
|
|
12618
12619
|
|
|
12619
12620
|
sticky(sticky) {
|
|
12620
|
-
|
|
12621
|
+
var _this$tip3;
|
|
12622
|
+
|
|
12623
|
+
(_this$tip3 = this.tip) === null || _this$tip3 === void 0 ? void 0 : _this$tip3.setProps({
|
|
12621
12624
|
sticky
|
|
12622
12625
|
});
|
|
12623
12626
|
},
|
|
12624
12627
|
|
|
12625
12628
|
fallbackPlacements() {
|
|
12626
|
-
|
|
12629
|
+
var _this$tip4;
|
|
12630
|
+
|
|
12631
|
+
(_this$tip4 = this.tip) === null || _this$tip4 === void 0 ? void 0 : _this$tip4.setProps({
|
|
12627
12632
|
popperOptions: this.popperOptions()
|
|
12628
12633
|
});
|
|
12629
12634
|
},
|
|
12630
12635
|
|
|
12631
12636
|
tether() {
|
|
12632
|
-
|
|
12637
|
+
var _this$tip5;
|
|
12638
|
+
|
|
12639
|
+
(_this$tip5 = this.tip) === null || _this$tip5 === void 0 ? void 0 : _this$tip5.setProps({
|
|
12633
12640
|
popperOptions: this.popperOptions()
|
|
12634
12641
|
});
|
|
12635
12642
|
},
|
|
12636
12643
|
|
|
12637
12644
|
placement(placement) {
|
|
12638
|
-
var _this$
|
|
12645
|
+
var _this$tip6;
|
|
12639
12646
|
|
|
12640
|
-
(_this$
|
|
12647
|
+
(_this$tip6 = this.tip) === null || _this$tip6 === void 0 ? void 0 : _this$tip6.setProps({
|
|
12641
12648
|
placement
|
|
12642
12649
|
});
|
|
12643
12650
|
},
|
|
@@ -12653,13 +12660,9 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12653
12660
|
|
|
12654
12661
|
isOpen(isOpen, isPrev) {
|
|
12655
12662
|
if (isOpen) {
|
|
12656
|
-
this.
|
|
12657
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex()
|
|
12658
|
-
});
|
|
12659
|
-
this.tip.show();
|
|
12660
|
-
this.addClosePopoverEventListener();
|
|
12663
|
+
this.initTippyInstance();
|
|
12661
12664
|
} else if (!isOpen && isPrev !== isOpen) {
|
|
12662
|
-
this.
|
|
12665
|
+
this.removeEventListeners();
|
|
12663
12666
|
this.tip.hide();
|
|
12664
12667
|
}
|
|
12665
12668
|
}
|
|
@@ -12667,45 +12670,21 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12667
12670
|
},
|
|
12668
12671
|
|
|
12669
12672
|
mounted() {
|
|
12670
|
-
// support single anchor for popover, not multi anchor
|
|
12671
12673
|
const externalAnchorEl = document.getElementById(this.externalAnchor);
|
|
12672
12674
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
12673
|
-
this.popoverContentEl = this.$refs.content.$el;
|
|
12674
|
-
|
|
12675
|
-
if (this.contentWidth === 'anchor') {
|
|
12676
|
-
window.addEventListener('resize', this.onResize);
|
|
12677
|
-
}
|
|
12678
|
-
|
|
12679
|
-
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
12680
|
-
popperOptions: this.popperOptions(),
|
|
12681
|
-
contentElement: this.popoverContentEl,
|
|
12682
|
-
placement: this.placement,
|
|
12683
|
-
offset: this.offset,
|
|
12684
|
-
sticky: this.sticky,
|
|
12685
|
-
appendTo: this.appendTo,
|
|
12686
|
-
interactive: true,
|
|
12687
|
-
trigger: 'manual',
|
|
12688
|
-
// We have to manage hideOnClick functionality manually to handle
|
|
12689
|
-
// popover within popover situations.
|
|
12690
|
-
hideOnClick: false,
|
|
12691
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
12692
|
-
onClickOutside: this.onClickOutside,
|
|
12693
|
-
onShow: this.onShow
|
|
12694
|
-
}); // immediate watcher fires before mounted, so have this here in case
|
|
12695
|
-
// show prop was initially set to true.
|
|
12675
|
+
this.popoverContentEl = this.$refs.content.$el;
|
|
12696
12676
|
|
|
12697
12677
|
if (this.isOpen) {
|
|
12698
|
-
this.
|
|
12678
|
+
this.initTippyInstance();
|
|
12699
12679
|
}
|
|
12700
12680
|
},
|
|
12701
12681
|
|
|
12702
12682
|
beforeUnmount() {
|
|
12703
|
-
var _this$
|
|
12683
|
+
var _this$tip7;
|
|
12704
12684
|
|
|
12705
|
-
|
|
12706
|
-
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.destroy();
|
|
12685
|
+
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
|
|
12707
12686
|
this.removeReferences();
|
|
12708
|
-
this.
|
|
12687
|
+
this.removeEventListeners();
|
|
12709
12688
|
},
|
|
12710
12689
|
|
|
12711
12690
|
/******************
|
|
@@ -12753,18 +12732,16 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12753
12732
|
}
|
|
12754
12733
|
},
|
|
12755
12734
|
|
|
12756
|
-
onContext(event) {
|
|
12757
|
-
var _this$tip3;
|
|
12758
|
-
|
|
12735
|
+
async onContext(event) {
|
|
12759
12736
|
if (!this.openOnContext) {
|
|
12760
12737
|
return;
|
|
12761
12738
|
}
|
|
12762
12739
|
|
|
12763
12740
|
event.preventDefault();
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
});
|
|
12741
|
+
this.isOpen = true;
|
|
12742
|
+
await this.$nextTick();
|
|
12767
12743
|
this.tip.setProps({
|
|
12744
|
+
placement: 'right-start',
|
|
12768
12745
|
getReferenceClientRect: () => ({
|
|
12769
12746
|
width: 0,
|
|
12770
12747
|
height: 0,
|
|
@@ -12774,7 +12751,6 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12774
12751
|
right: event.clientX
|
|
12775
12752
|
})
|
|
12776
12753
|
});
|
|
12777
|
-
this.toggleOpen();
|
|
12778
12754
|
},
|
|
12779
12755
|
|
|
12780
12756
|
toggleOpen() {
|
|
@@ -12795,18 +12771,40 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12795
12771
|
this.$emit('keydown', e);
|
|
12796
12772
|
},
|
|
12797
12773
|
|
|
12798
|
-
|
|
12774
|
+
addEventListeners() {
|
|
12799
12775
|
window.addEventListener('dt-popover-close', this.closePopover);
|
|
12776
|
+
window.addEventListener('wheel', this.preventScrolling, {
|
|
12777
|
+
passive: false
|
|
12778
|
+
}); // align popover content width when contentWidth is 'anchor'
|
|
12779
|
+
|
|
12780
|
+
if (this.contentWidth === 'anchor') {
|
|
12781
|
+
window.addEventListener('resize', this.onResize);
|
|
12782
|
+
}
|
|
12800
12783
|
},
|
|
12801
12784
|
|
|
12802
|
-
|
|
12785
|
+
removeEventListeners() {
|
|
12803
12786
|
window.removeEventListener('dt-popover-close', this.closePopover);
|
|
12787
|
+
window.removeEventListener('wheel', this.preventScrolling, {
|
|
12788
|
+
passive: false
|
|
12789
|
+
});
|
|
12790
|
+
|
|
12791
|
+
if (this.contentWidth === 'anchor') {
|
|
12792
|
+
window.removeEventListener('resize', this.onResize);
|
|
12793
|
+
}
|
|
12804
12794
|
},
|
|
12805
12795
|
|
|
12806
12796
|
closePopover() {
|
|
12807
12797
|
this.isOpen = false;
|
|
12808
12798
|
},
|
|
12809
12799
|
|
|
12800
|
+
/*
|
|
12801
|
+
* Prevents scrolling only when the popover is set to modal
|
|
12802
|
+
**/
|
|
12803
|
+
preventScrolling(e) {
|
|
12804
|
+
if (!this.modal) return;
|
|
12805
|
+
e.preventDefault();
|
|
12806
|
+
},
|
|
12807
|
+
|
|
12810
12808
|
removeReferences() {
|
|
12811
12809
|
this.anchorEl = null;
|
|
12812
12810
|
this.popoverContentEl = null;
|
|
@@ -12824,15 +12822,15 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12824
12822
|
},
|
|
12825
12823
|
|
|
12826
12824
|
async onLeaveTransitionComplete() {
|
|
12827
|
-
var _this$
|
|
12825
|
+
var _this$tip8;
|
|
12828
12826
|
|
|
12829
12827
|
if (this.modal) {
|
|
12830
|
-
this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
12828
|
+
await this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
12831
12829
|
|
|
12832
12830
|
await this.$nextTick();
|
|
12833
12831
|
}
|
|
12834
12832
|
|
|
12835
|
-
(_this$
|
|
12833
|
+
(_this$tip8 = this.tip) === null || _this$tip8 === void 0 ? void 0 : _this$tip8.unmount();
|
|
12836
12834
|
this.$emit('opened', false);
|
|
12837
12835
|
|
|
12838
12836
|
if (this.open !== null) {
|
|
@@ -12928,15 +12926,39 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12928
12926
|
// if there are no focusable elements at all focus the dialog itself
|
|
12929
12927
|
this.$refs.content.$el.focus();
|
|
12930
12928
|
}
|
|
12929
|
+
},
|
|
12930
|
+
|
|
12931
|
+
initTippyInstance() {
|
|
12932
|
+
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
12933
|
+
popperOptions: this.popperOptions(),
|
|
12934
|
+
contentElement: this.popoverContentEl,
|
|
12935
|
+
placement: this.placement,
|
|
12936
|
+
offset: this.offset,
|
|
12937
|
+
sticky: this.sticky,
|
|
12938
|
+
appendTo: this.appendTo,
|
|
12939
|
+
interactive: true,
|
|
12940
|
+
trigger: 'manual',
|
|
12941
|
+
// We have to manage hideOnClick functionality manually to handle
|
|
12942
|
+
// popover within popover situations.
|
|
12943
|
+
hideOnClick: false,
|
|
12944
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
12945
|
+
onClickOutside: this.onClickOutside,
|
|
12946
|
+
onShow: this.onShow
|
|
12947
|
+
});
|
|
12948
|
+
this.tip.setProps({
|
|
12949
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex()
|
|
12950
|
+
});
|
|
12951
|
+
this.tip.show();
|
|
12952
|
+
this.addEventListeners();
|
|
12931
12953
|
}
|
|
12932
12954
|
|
|
12933
12955
|
}
|
|
12934
12956
|
});
|
|
12935
12957
|
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=script&lang=js
|
|
12936
12958
|
|
|
12937
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=style&index=0&id=
|
|
12938
|
-
var
|
|
12939
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=style&index=0&id=
|
|
12959
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=style&index=0&id=4e81d3c3&lang=less
|
|
12960
|
+
var popovervue_type_style_index_0_id_4e81d3c3_lang_less = __webpack_require__(786);
|
|
12961
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=style&index=0&id=4e81d3c3&lang=less
|
|
12940
12962
|
|
|
12941
12963
|
;// CONCATENATED MODULE: ./components/popover/popover.vue
|
|
12942
12964
|
|
|
@@ -12946,7 +12968,7 @@ var popovervue_type_style_index_0_id_1c311181_lang_less = __webpack_require__(16
|
|
|
12946
12968
|
;
|
|
12947
12969
|
|
|
12948
12970
|
|
|
12949
|
-
const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue_type_script_lang_js, [['render',
|
|
12971
|
+
const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue_type_script_lang_js, [['render',popovervue_type_template_id_4e81d3c3_render]])
|
|
12950
12972
|
|
|
12951
12973
|
/* harmony default export */ const popover = (popover_exports_);
|
|
12952
12974
|
;// CONCATENATED MODULE: ./components/popover/index.js
|
|
@@ -15694,65 +15716,73 @@ const notice_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(noticevue_t
|
|
|
15694
15716
|
;// CONCATENATED MODULE: ./components/notice/index.js
|
|
15695
15717
|
|
|
15696
15718
|
|
|
15697
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/pagination/pagination.vue?vue&type=template&id=
|
|
15719
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/pagination/pagination.vue?vue&type=template&id=57c28750
|
|
15698
15720
|
|
|
15699
|
-
const
|
|
15700
|
-
const
|
|
15721
|
+
const paginationvue_type_template_id_57c28750_hoisted_1 = ["aria-label"];
|
|
15722
|
+
const paginationvue_type_template_id_57c28750_hoisted_2 = {
|
|
15701
15723
|
key: 0,
|
|
15702
|
-
|
|
15703
|
-
|
|
15724
|
+
class: "d-fc-tertiary d-w24 d-ta-center",
|
|
15725
|
+
"data-qa": "dt-pagination-separator"
|
|
15704
15726
|
};
|
|
15705
|
-
function
|
|
15727
|
+
function paginationvue_type_template_id_57c28750_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15706
15728
|
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
15707
15729
|
|
|
15708
15730
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
15709
15731
|
|
|
15710
15732
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("nav", {
|
|
15711
15733
|
"aria-label": $props.ariaLabel,
|
|
15712
|
-
class: "d-d-flex d-fd-row d-
|
|
15734
|
+
class: "d-d-flex d-fd-row d-gg4 d-ai-center"
|
|
15713
15735
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_button, {
|
|
15714
|
-
class: "d-
|
|
15736
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["d-px8", $options.isFirstPage ? 'd-fc-black-300 h:d-fc-black-300 d-bgc-transparent' : 'd-fc-tertiary']),
|
|
15715
15737
|
"data-qa": "dt-pagination-prev",
|
|
15716
15738
|
"aria-label": $props.prevAriaLabel,
|
|
15739
|
+
kind: "muted",
|
|
15717
15740
|
importance: $options.isFirstPage ? 'primary' : 'clear',
|
|
15718
15741
|
disabled: $options.isFirstPage,
|
|
15719
15742
|
onClick: _cache[0] || (_cache[0] = $event => $options.changePage($data.currentPage - 1))
|
|
15720
15743
|
}, {
|
|
15721
15744
|
icon: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_icon, {
|
|
15722
15745
|
name: "chevron-left",
|
|
15723
|
-
size: "
|
|
15746
|
+
size: "300"
|
|
15724
15747
|
})]),
|
|
15725
15748
|
_: 1
|
|
15726
|
-
}, 8, ["aria-label", "importance", "disabled"]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($options.pages, (page, index) => {
|
|
15749
|
+
}, 8, ["aria-label", "importance", "disabled", "class"]), ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($options.pages, (page, index) => {
|
|
15727
15750
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
15728
|
-
key: `page-${page}-${index}
|
|
15729
|
-
|
|
15751
|
+
key: `page-${page}-${index}`,
|
|
15752
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)({
|
|
15753
|
+
'd-as-flex-end': isNaN(Number(page))
|
|
15754
|
+
})
|
|
15755
|
+
}, [isNaN(Number(page)) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", paginationvue_type_template_id_57c28750_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_icon, {
|
|
15756
|
+
name: "more-horizontal",
|
|
15757
|
+
size: "300"
|
|
15758
|
+
})])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_button, {
|
|
15730
15759
|
key: 1,
|
|
15731
15760
|
"aria-label": $props.pageNumberAriaLabel(page),
|
|
15761
|
+
kind: $data.currentPage === page ? 'default' : 'muted',
|
|
15732
15762
|
importance: $data.currentPage === page ? 'primary' : 'clear',
|
|
15733
|
-
class: "
|
|
15734
|
-
"label-class": "d-fs-200",
|
|
15763
|
+
"label-class": "",
|
|
15735
15764
|
onClick: $event => $options.changePage(page)
|
|
15736
15765
|
}, {
|
|
15737
15766
|
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(page), 1)]),
|
|
15738
15767
|
_: 2
|
|
15739
|
-
}, 1032, ["aria-label", "importance", "onClick"]))]);
|
|
15768
|
+
}, 1032, ["aria-label", "kind", "importance", "onClick"]))], 2);
|
|
15740
15769
|
}), 128)), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_button, {
|
|
15741
|
-
class: "d-
|
|
15770
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["d-px8", $options.isLastPage ? 'd-fc-black-300 h:d-fc-black-300 d-bgc-transparent' : 'd-fc-tertiary']),
|
|
15742
15771
|
"data-qa": "dt-pagination-next",
|
|
15743
15772
|
"aria-label": $props.nextAriaLabel,
|
|
15744
15773
|
disabled: $options.isLastPage,
|
|
15774
|
+
kind: "muted",
|
|
15745
15775
|
importance: $options.isLastPage ? 'primary' : 'clear',
|
|
15746
15776
|
onClick: _cache[1] || (_cache[1] = $event => $options.changePage($data.currentPage + 1))
|
|
15747
15777
|
}, {
|
|
15748
15778
|
icon: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_icon, {
|
|
15749
15779
|
name: "chevron-right",
|
|
15750
|
-
size: "
|
|
15780
|
+
size: "300"
|
|
15751
15781
|
})]),
|
|
15752
15782
|
_: 1
|
|
15753
|
-
}, 8, ["aria-label", "disabled", "importance"])], 8,
|
|
15783
|
+
}, 8, ["aria-label", "disabled", "importance", "class"])], 8, paginationvue_type_template_id_57c28750_hoisted_1);
|
|
15754
15784
|
}
|
|
15755
|
-
;// CONCATENATED MODULE: ./components/pagination/pagination.vue?vue&type=template&id=
|
|
15785
|
+
;// CONCATENATED MODULE: ./components/pagination/pagination.vue?vue&type=template&id=57c28750
|
|
15756
15786
|
|
|
15757
15787
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/pagination/pagination.vue?vue&type=script&lang=js
|
|
15758
15788
|
|
|
@@ -15907,7 +15937,7 @@ function paginationvue_type_template_id_0f3daac1_render(_ctx, _cache, $props, $s
|
|
|
15907
15937
|
|
|
15908
15938
|
|
|
15909
15939
|
;
|
|
15910
|
-
const pagination_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(paginationvue_type_script_lang_js, [['render',
|
|
15940
|
+
const pagination_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(paginationvue_type_script_lang_js, [['render',paginationvue_type_template_id_57c28750_render]])
|
|
15911
15941
|
|
|
15912
15942
|
/* harmony default export */ const pagination = (pagination_exports_);
|
|
15913
15943
|
;// CONCATENATED MODULE: ./components/pagination/index.js
|
|
@@ -17090,26 +17120,27 @@ const checkbox_group_exports_ = checkbox_groupvue_type_script_lang_js;
|
|
|
17090
17120
|
/* harmony default export */ const checkbox_group = (checkbox_group_exports_);
|
|
17091
17121
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
17092
17122
|
|
|
17093
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/chip/chip.vue?vue&type=template&id=
|
|
17123
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/chip/chip.vue?vue&type=template&id=7cc71ad9
|
|
17094
17124
|
|
|
17095
|
-
const
|
|
17125
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_1 = {
|
|
17126
|
+
class: "d-chip"
|
|
17127
|
+
};
|
|
17128
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_2 = {
|
|
17096
17129
|
key: 0,
|
|
17097
17130
|
"data-qa": "dt-chip-icon",
|
|
17098
17131
|
class: "d-chip__icon"
|
|
17099
17132
|
};
|
|
17100
|
-
const
|
|
17133
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_3 = {
|
|
17101
17134
|
key: 1,
|
|
17102
17135
|
"data-qa": "dt-chip-avatar"
|
|
17103
17136
|
};
|
|
17104
|
-
const
|
|
17105
|
-
function
|
|
17137
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_4 = ["id"];
|
|
17138
|
+
function chipvue_type_template_id_7cc71ad9_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17106
17139
|
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
17107
17140
|
|
|
17108
17141
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
17109
17142
|
|
|
17110
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
17111
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-chip', _ctx.parentClass])
|
|
17112
|
-
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.interactive ? 'button' : 'span'), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
17143
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_7cc71ad9_hoisted_1, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.interactive ? 'button' : 'span'), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
17113
17144
|
id: $props.id,
|
|
17114
17145
|
type: $props.interactive && 'button',
|
|
17115
17146
|
class: $options.chipClasses(),
|
|
@@ -17117,12 +17148,12 @@ function chipvue_type_template_id_f2b79d66_render(_ctx, _cache, $props, $setup,
|
|
|
17117
17148
|
"aria-labelledby": $props.ariaLabel ? undefined : `${$props.id}-content`,
|
|
17118
17149
|
"aria-label": $props.ariaLabel
|
|
17119
17150
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.chipListeners)), {
|
|
17120
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [_ctx.$slots.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span",
|
|
17151
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [_ctx.$slots.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_7cc71ad9_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "icon")])) : _ctx.$slots.avatar ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", chipvue_type_template_id_7cc71ad9_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "avatar")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), _ctx.$slots.default ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
17121
17152
|
key: 2,
|
|
17122
17153
|
id: `${$props.id}-content`,
|
|
17123
17154
|
"data-qa": "dt-chip-label",
|
|
17124
17155
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-truncate', 'd-chip__text', $props.contentClass])
|
|
17125
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10,
|
|
17156
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10, chipvue_type_template_id_7cc71ad9_hoisted_4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]),
|
|
17126
17157
|
_: 3
|
|
17127
17158
|
}, 16, ["id", "type", "class", "aria-labelledby", "aria-label"])), !$props.hideClose ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_dt_button, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
17128
17159
|
key: 0
|
|
@@ -17137,9 +17168,9 @@ function chipvue_type_template_id_f2b79d66_render(_ctx, _cache, $props, $setup,
|
|
|
17137
17168
|
size: $options.closeButtonIconSize
|
|
17138
17169
|
}, null, 8, ["size"])]),
|
|
17139
17170
|
_: 1
|
|
17140
|
-
}, 16, ["class", "aria-label"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]
|
|
17171
|
+
}, 16, ["class", "aria-label"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
17141
17172
|
}
|
|
17142
|
-
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=
|
|
17173
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=7cc71ad9
|
|
17143
17174
|
|
|
17144
17175
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
17145
17176
|
const CHIP_SIZE_MODIFIERS = {
|
|
@@ -17335,7 +17366,7 @@ const CHIP_ICON_SIZES = {
|
|
|
17335
17366
|
|
|
17336
17367
|
|
|
17337
17368
|
;
|
|
17338
|
-
const chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(chipvue_type_script_lang_js, [['render',
|
|
17369
|
+
const chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(chipvue_type_script_lang_js, [['render',chipvue_type_template_id_7cc71ad9_render]])
|
|
17339
17370
|
|
|
17340
17371
|
/* harmony default export */ const chip = (chip_exports_);
|
|
17341
17372
|
;// CONCATENATED MODULE: ./components/chip/index.js
|
|
@@ -19023,11 +19054,17 @@ const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_l
|
|
|
19023
19054
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19024
19055
|
|
|
19025
19056
|
|
|
19026
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19057
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=6b1072ea
|
|
19027
19058
|
|
|
19028
|
-
const
|
|
19029
|
-
const
|
|
19030
|
-
|
|
19059
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1 = ["id"];
|
|
19060
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_2 = {
|
|
19061
|
+
ref: "header"
|
|
19062
|
+
};
|
|
19063
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3 = ["onMouseleave", "onFocusout"];
|
|
19064
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_4 = {
|
|
19065
|
+
ref: "footer"
|
|
19066
|
+
};
|
|
19067
|
+
function combobox_with_popovervue_type_template_id_6b1072ea_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19031
19068
|
const _component_combobox_loading_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-loading-list");
|
|
19032
19069
|
|
|
19033
19070
|
const _component_combobox_empty_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-empty-list");
|
|
@@ -19062,14 +19099,11 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19062
19099
|
onFocusin: _cache[0] || (_cache[0] = function () {
|
|
19063
19100
|
return $options.onFocusIn && $options.onFocusIn(...arguments);
|
|
19064
19101
|
}),
|
|
19065
|
-
|
|
19066
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19067
|
-
}),
|
|
19068
|
-
onKeydown: [_cache[2] || (_cache[2] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($event => $options.openOnArrowKeyPress($event), ["up"])), _cache[3] || (_cache[3] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($event => $options.openOnArrowKeyPress($event), ["down"]))]
|
|
19102
|
+
onKeydown: [_cache[1] || (_cache[1] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($event => $options.openOnArrowKeyPress($event), ["up"])), _cache[2] || (_cache[2] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withKeys)($event => $options.openOnArrowKeyPress($event), ["down"]))]
|
|
19069
19103
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "input", {
|
|
19070
19104
|
inputProps: inputProps,
|
|
19071
19105
|
onInput: $options.handleDisplayList
|
|
19072
|
-
})], 40,
|
|
19106
|
+
})], 40, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1)];
|
|
19073
19107
|
}),
|
|
19074
19108
|
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref2 => {
|
|
19075
19109
|
let {
|
|
@@ -19080,8 +19114,8 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19080
19114
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_popover, {
|
|
19081
19115
|
ref: "popover",
|
|
19082
19116
|
open: $data.isListShown,
|
|
19083
|
-
"onUpdate:open": _cache[
|
|
19084
|
-
"hide-on-click":
|
|
19117
|
+
"onUpdate:open": _cache[3] || (_cache[3] = $event => $data.isListShown = $event),
|
|
19118
|
+
"hide-on-click": false,
|
|
19085
19119
|
"max-height": $props.maxHeight,
|
|
19086
19120
|
"max-width": $props.maxWidth,
|
|
19087
19121
|
offset: $props.popoverOffset,
|
|
@@ -19104,10 +19138,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19104
19138
|
ref: "listWrapper",
|
|
19105
19139
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)([$data.DROPDOWN_PADDING_CLASSES[$props.padding], $props.listClass]),
|
|
19106
19140
|
onMouseleave: clearHighlightIndex,
|
|
19107
|
-
onFocusout:
|
|
19108
|
-
clearHighlightIndex;
|
|
19109
|
-
$options.onFocusOut;
|
|
19110
|
-
}
|
|
19141
|
+
onFocusout: clearHighlightIndex
|
|
19111
19142
|
}, [$props.loading ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_combobox_loading_list, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
19112
19143
|
key: 0
|
|
19113
19144
|
}, listProps)), null, 16)) : $props.emptyList && $props.emptyStateMessage ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_combobox_empty_list, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
@@ -19117,32 +19148,22 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19117
19148
|
}), null, 16, ["message"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
19118
19149
|
key: 2,
|
|
19119
19150
|
listProps: listProps
|
|
19120
|
-
})], 42,
|
|
19151
|
+
})], 42, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3)]),
|
|
19121
19152
|
_: 2
|
|
19122
19153
|
}, [_ctx.$slots.header ? {
|
|
19123
19154
|
name: "headerContent",
|
|
19124
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
19125
|
-
ref: "header",
|
|
19126
|
-
onFocusout: _cache[4] || (_cache[4] = function () {
|
|
19127
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19128
|
-
})
|
|
19129
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 544)]),
|
|
19155
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_with_popovervue_type_template_id_6b1072ea_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 512)]),
|
|
19130
19156
|
key: "0"
|
|
19131
19157
|
} : undefined, _ctx.$slots.footer ? {
|
|
19132
19158
|
name: "footerContent",
|
|
19133
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
19134
|
-
ref: "footer",
|
|
19135
|
-
onFocusout: _cache[5] || (_cache[5] = function () {
|
|
19136
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19137
|
-
})
|
|
19138
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 544)]),
|
|
19159
|
+
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", combobox_with_popovervue_type_template_id_6b1072ea_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 512)]),
|
|
19139
19160
|
key: "1"
|
|
19140
|
-
} : undefined]), 1032, ["open", "
|
|
19161
|
+
} : undefined]), 1032, ["open", "max-height", "max-width", "offset", "sticky", "external-anchor", "content-width", "visually-hidden-close-label", "visually-hidden-close", "onOpened"])];
|
|
19141
19162
|
}),
|
|
19142
19163
|
_: 3
|
|
19143
19164
|
}, 16, ["loading", "label", "label-visible", "size", "description", "empty-list", "empty-state-message", "show-list", "on-beginning-of-list", "on-end-of-list", "list-id"]);
|
|
19144
19165
|
}
|
|
19145
|
-
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19166
|
+
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=6b1072ea
|
|
19146
19167
|
|
|
19147
19168
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js
|
|
19148
19169
|
|
|
@@ -19404,6 +19425,12 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19404
19425
|
},
|
|
19405
19426
|
|
|
19406
19427
|
isListShown(val) {
|
|
19428
|
+
if (val) {
|
|
19429
|
+
window.addEventListener('mousedown', this.onFocusOut);
|
|
19430
|
+
} else {
|
|
19431
|
+
window.removeEventListener('mousedown', this.onFocusOut);
|
|
19432
|
+
}
|
|
19433
|
+
|
|
19407
19434
|
this.onOpened(val);
|
|
19408
19435
|
}
|
|
19409
19436
|
|
|
@@ -19468,17 +19495,14 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19468
19495
|
},
|
|
19469
19496
|
|
|
19470
19497
|
onFocusOut(e) {
|
|
19471
|
-
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
19476
|
-
|
|
19477
|
-
}) || this.visuallyHiddenClose; // If outside the combobox then close
|
|
19498
|
+
// Check if the focus change was to another target within the combobox component
|
|
19499
|
+
const isComboboxStillFocused = Object.keys(this.$refs).some(refName => {
|
|
19500
|
+
const ref = this.$refs[refName];
|
|
19501
|
+
return ref.$el ? ref.$el.contains(e.target) : ref.contains(e.target);
|
|
19502
|
+
});
|
|
19503
|
+
if (isComboboxStillFocused) return; // If outside the combobox then close
|
|
19478
19504
|
|
|
19479
|
-
|
|
19480
|
-
this.closeComboboxList();
|
|
19481
|
-
}
|
|
19505
|
+
this.closeComboboxList();
|
|
19482
19506
|
},
|
|
19483
19507
|
|
|
19484
19508
|
openOnArrowKeyPress() {
|
|
@@ -19499,7 +19523,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19499
19523
|
|
|
19500
19524
|
|
|
19501
19525
|
;
|
|
19502
|
-
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',
|
|
19526
|
+
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',combobox_with_popovervue_type_template_id_6b1072ea_render]])
|
|
19503
19527
|
|
|
19504
19528
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_exports_);
|
|
19505
19529
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|