@dialpad/dialtone-vue 3.35.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 +135 -130
- package/dist/dialtone-vue.umd.js +135 -130
- 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");
|
|
@@ -7419,7 +7419,7 @@ function popovervue_type_template_id_68f0a8f5_render(_ctx, _cache, $props, $setu
|
|
|
7419
7419
|
class: "d-modal--transparent",
|
|
7420
7420
|
"aria-hidden": $props.modal && $data.isOpen ? 'false' : 'true',
|
|
7421
7421
|
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent", "stop"]))
|
|
7422
|
-
}, null, 8,
|
|
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), {
|
|
7423
7423
|
ref: "popover",
|
|
7424
7424
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-popover', {
|
|
7425
7425
|
'd-popover__anchor--opened': $data.isOpen
|
|
@@ -7451,7 +7451,7 @@ function popovervue_type_template_id_68f0a8f5_render(_ctx, _cache, $props, $setu
|
|
|
7451
7451
|
'aria-controls': $props.id,
|
|
7452
7452
|
'aria-haspopup': $props.role
|
|
7453
7453
|
}
|
|
7454
|
-
})], 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)({
|
|
7455
7455
|
id: $props.id,
|
|
7456
7456
|
ref: "content",
|
|
7457
7457
|
role: $props.role,
|
|
@@ -7514,7 +7514,7 @@ function popovervue_type_template_id_68f0a8f5_render(_ctx, _cache, $props, $setu
|
|
|
7514
7514
|
_: 3
|
|
7515
7515
|
}, 8, ["class"]))]);
|
|
7516
7516
|
}
|
|
7517
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=
|
|
7517
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=4e81d3c3
|
|
7518
7518
|
|
|
7519
7519
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
7520
7520
|
function getWindow(node) {
|
|
@@ -12602,39 +12602,49 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12602
12602
|
},
|
|
12603
12603
|
|
|
12604
12604
|
modal(modal) {
|
|
12605
|
-
|
|
12606
|
-
|
|
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()
|
|
12607
12609
|
});
|
|
12608
12610
|
},
|
|
12609
12611
|
|
|
12610
12612
|
offset(offset) {
|
|
12611
|
-
|
|
12613
|
+
var _this$tip2;
|
|
12614
|
+
|
|
12615
|
+
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.setProps({
|
|
12612
12616
|
offset
|
|
12613
12617
|
});
|
|
12614
12618
|
},
|
|
12615
12619
|
|
|
12616
12620
|
sticky(sticky) {
|
|
12617
|
-
|
|
12621
|
+
var _this$tip3;
|
|
12622
|
+
|
|
12623
|
+
(_this$tip3 = this.tip) === null || _this$tip3 === void 0 ? void 0 : _this$tip3.setProps({
|
|
12618
12624
|
sticky
|
|
12619
12625
|
});
|
|
12620
12626
|
},
|
|
12621
12627
|
|
|
12622
12628
|
fallbackPlacements() {
|
|
12623
|
-
|
|
12629
|
+
var _this$tip4;
|
|
12630
|
+
|
|
12631
|
+
(_this$tip4 = this.tip) === null || _this$tip4 === void 0 ? void 0 : _this$tip4.setProps({
|
|
12624
12632
|
popperOptions: this.popperOptions()
|
|
12625
12633
|
});
|
|
12626
12634
|
},
|
|
12627
12635
|
|
|
12628
12636
|
tether() {
|
|
12629
|
-
|
|
12637
|
+
var _this$tip5;
|
|
12638
|
+
|
|
12639
|
+
(_this$tip5 = this.tip) === null || _this$tip5 === void 0 ? void 0 : _this$tip5.setProps({
|
|
12630
12640
|
popperOptions: this.popperOptions()
|
|
12631
12641
|
});
|
|
12632
12642
|
},
|
|
12633
12643
|
|
|
12634
12644
|
placement(placement) {
|
|
12635
|
-
var _this$
|
|
12645
|
+
var _this$tip6;
|
|
12636
12646
|
|
|
12637
|
-
(_this$
|
|
12647
|
+
(_this$tip6 = this.tip) === null || _this$tip6 === void 0 ? void 0 : _this$tip6.setProps({
|
|
12638
12648
|
placement
|
|
12639
12649
|
});
|
|
12640
12650
|
},
|
|
@@ -12650,65 +12660,31 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12650
12660
|
|
|
12651
12661
|
isOpen(isOpen, isPrev) {
|
|
12652
12662
|
if (isOpen) {
|
|
12653
|
-
|
|
12654
|
-
passive: false
|
|
12655
|
-
});
|
|
12656
|
-
this.tip.setProps({
|
|
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
|
-
window.removeEventListener('wheel', this.preventScrolling, {
|
|
12665
|
-
passive: false
|
|
12666
|
-
});
|
|
12667
12667
|
}
|
|
12668
12668
|
}
|
|
12669
12669
|
|
|
12670
12670
|
},
|
|
12671
12671
|
|
|
12672
12672
|
mounted() {
|
|
12673
|
-
// support single anchor for popover, not multi anchor
|
|
12674
12673
|
const externalAnchorEl = document.getElementById(this.externalAnchor);
|
|
12675
12674
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
12676
|
-
this.popoverContentEl = this.$refs.content.$el;
|
|
12677
|
-
|
|
12678
|
-
if (this.contentWidth === 'anchor') {
|
|
12679
|
-
window.addEventListener('resize', this.onResize);
|
|
12680
|
-
}
|
|
12681
|
-
|
|
12682
|
-
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
12683
|
-
popperOptions: this.popperOptions(),
|
|
12684
|
-
contentElement: this.popoverContentEl,
|
|
12685
|
-
placement: this.placement,
|
|
12686
|
-
offset: this.offset,
|
|
12687
|
-
sticky: this.sticky,
|
|
12688
|
-
appendTo: this.appendTo,
|
|
12689
|
-
interactive: true,
|
|
12690
|
-
trigger: 'manual',
|
|
12691
|
-
// We have to manage hideOnClick functionality manually to handle
|
|
12692
|
-
// popover within popover situations.
|
|
12693
|
-
hideOnClick: false,
|
|
12694
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
12695
|
-
onClickOutside: this.onClickOutside,
|
|
12696
|
-
onShow: this.onShow
|
|
12697
|
-
}); // immediate watcher fires before mounted, so have this here in case
|
|
12698
|
-
// show prop was initially set to true.
|
|
12675
|
+
this.popoverContentEl = this.$refs.content.$el;
|
|
12699
12676
|
|
|
12700
12677
|
if (this.isOpen) {
|
|
12701
|
-
this.
|
|
12678
|
+
this.initTippyInstance();
|
|
12702
12679
|
}
|
|
12703
12680
|
},
|
|
12704
12681
|
|
|
12705
12682
|
beforeUnmount() {
|
|
12706
|
-
var _this$
|
|
12683
|
+
var _this$tip7;
|
|
12707
12684
|
|
|
12708
|
-
|
|
12709
|
-
(_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();
|
|
12710
12686
|
this.removeReferences();
|
|
12711
|
-
this.
|
|
12687
|
+
this.removeEventListeners();
|
|
12712
12688
|
},
|
|
12713
12689
|
|
|
12714
12690
|
/******************
|
|
@@ -12756,18 +12732,16 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12756
12732
|
}
|
|
12757
12733
|
},
|
|
12758
12734
|
|
|
12759
|
-
onContext(event) {
|
|
12760
|
-
var _this$tip3;
|
|
12761
|
-
|
|
12735
|
+
async onContext(event) {
|
|
12762
12736
|
if (!this.openOnContext) {
|
|
12763
12737
|
return;
|
|
12764
12738
|
}
|
|
12765
12739
|
|
|
12766
12740
|
event.preventDefault();
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
});
|
|
12741
|
+
this.isOpen = true;
|
|
12742
|
+
await this.$nextTick();
|
|
12770
12743
|
this.tip.setProps({
|
|
12744
|
+
placement: 'right-start',
|
|
12771
12745
|
getReferenceClientRect: () => ({
|
|
12772
12746
|
width: 0,
|
|
12773
12747
|
height: 0,
|
|
@@ -12777,7 +12751,6 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12777
12751
|
right: event.clientX
|
|
12778
12752
|
})
|
|
12779
12753
|
});
|
|
12780
|
-
this.toggleOpen();
|
|
12781
12754
|
},
|
|
12782
12755
|
|
|
12783
12756
|
toggleOpen() {
|
|
@@ -12798,12 +12771,26 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12798
12771
|
this.$emit('keydown', e);
|
|
12799
12772
|
},
|
|
12800
12773
|
|
|
12801
|
-
|
|
12774
|
+
addEventListeners() {
|
|
12802
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
|
+
}
|
|
12803
12783
|
},
|
|
12804
12784
|
|
|
12805
|
-
|
|
12785
|
+
removeEventListeners() {
|
|
12806
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
|
+
}
|
|
12807
12794
|
},
|
|
12808
12795
|
|
|
12809
12796
|
closePopover() {
|
|
@@ -12835,15 +12822,15 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12835
12822
|
},
|
|
12836
12823
|
|
|
12837
12824
|
async onLeaveTransitionComplete() {
|
|
12838
|
-
var _this$
|
|
12825
|
+
var _this$tip8;
|
|
12839
12826
|
|
|
12840
12827
|
if (this.modal) {
|
|
12841
|
-
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.
|
|
12842
12829
|
|
|
12843
12830
|
await this.$nextTick();
|
|
12844
12831
|
}
|
|
12845
12832
|
|
|
12846
|
-
(_this$
|
|
12833
|
+
(_this$tip8 = this.tip) === null || _this$tip8 === void 0 ? void 0 : _this$tip8.unmount();
|
|
12847
12834
|
this.$emit('opened', false);
|
|
12848
12835
|
|
|
12849
12836
|
if (this.open !== null) {
|
|
@@ -12939,15 +12926,39 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12939
12926
|
// if there are no focusable elements at all focus the dialog itself
|
|
12940
12927
|
this.$refs.content.$el.focus();
|
|
12941
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();
|
|
12942
12953
|
}
|
|
12943
12954
|
|
|
12944
12955
|
}
|
|
12945
12956
|
});
|
|
12946
12957
|
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=script&lang=js
|
|
12947
12958
|
|
|
12948
|
-
// 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=
|
|
12949
|
-
var
|
|
12950
|
-
;// 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
|
|
12951
12962
|
|
|
12952
12963
|
;// CONCATENATED MODULE: ./components/popover/popover.vue
|
|
12953
12964
|
|
|
@@ -12957,7 +12968,7 @@ var popovervue_type_style_index_0_id_68f0a8f5_lang_less = __webpack_require__(82
|
|
|
12957
12968
|
;
|
|
12958
12969
|
|
|
12959
12970
|
|
|
12960
|
-
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]])
|
|
12961
12972
|
|
|
12962
12973
|
/* harmony default export */ const popover = (popover_exports_);
|
|
12963
12974
|
;// CONCATENATED MODULE: ./components/popover/index.js
|
|
@@ -17109,26 +17120,27 @@ const checkbox_group_exports_ = checkbox_groupvue_type_script_lang_js;
|
|
|
17109
17120
|
/* harmony default export */ const checkbox_group = (checkbox_group_exports_);
|
|
17110
17121
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
17111
17122
|
|
|
17112
|
-
;// 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
|
|
17113
17124
|
|
|
17114
|
-
const
|
|
17125
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_1 = {
|
|
17126
|
+
class: "d-chip"
|
|
17127
|
+
};
|
|
17128
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_2 = {
|
|
17115
17129
|
key: 0,
|
|
17116
17130
|
"data-qa": "dt-chip-icon",
|
|
17117
17131
|
class: "d-chip__icon"
|
|
17118
17132
|
};
|
|
17119
|
-
const
|
|
17133
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_3 = {
|
|
17120
17134
|
key: 1,
|
|
17121
17135
|
"data-qa": "dt-chip-avatar"
|
|
17122
17136
|
};
|
|
17123
|
-
const
|
|
17124
|
-
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) {
|
|
17125
17139
|
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
17126
17140
|
|
|
17127
17141
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
17128
17142
|
|
|
17129
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
17130
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-chip', _ctx.parentClass])
|
|
17131
|
-
}, [((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)({
|
|
17132
17144
|
id: $props.id,
|
|
17133
17145
|
type: $props.interactive && 'button',
|
|
17134
17146
|
class: $options.chipClasses(),
|
|
@@ -17136,12 +17148,12 @@ function chipvue_type_template_id_f2b79d66_render(_ctx, _cache, $props, $setup,
|
|
|
17136
17148
|
"aria-labelledby": $props.ariaLabel ? undefined : `${$props.id}-content`,
|
|
17137
17149
|
"aria-label": $props.ariaLabel
|
|
17138
17150
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.chipListeners)), {
|
|
17139
|
-
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", {
|
|
17140
17152
|
key: 2,
|
|
17141
17153
|
id: `${$props.id}-content`,
|
|
17142
17154
|
"data-qa": "dt-chip-label",
|
|
17143
17155
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-truncate', 'd-chip__text', $props.contentClass])
|
|
17144
|
-
}, [(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)]),
|
|
17145
17157
|
_: 3
|
|
17146
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)({
|
|
17147
17159
|
key: 0
|
|
@@ -17156,9 +17168,9 @@ function chipvue_type_template_id_f2b79d66_render(_ctx, _cache, $props, $setup,
|
|
|
17156
17168
|
size: $options.closeButtonIconSize
|
|
17157
17169
|
}, null, 8, ["size"])]),
|
|
17158
17170
|
_: 1
|
|
17159
|
-
}, 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)]);
|
|
17160
17172
|
}
|
|
17161
|
-
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=
|
|
17173
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=7cc71ad9
|
|
17162
17174
|
|
|
17163
17175
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
17164
17176
|
const CHIP_SIZE_MODIFIERS = {
|
|
@@ -17354,7 +17366,7 @@ const CHIP_ICON_SIZES = {
|
|
|
17354
17366
|
|
|
17355
17367
|
|
|
17356
17368
|
;
|
|
17357
|
-
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]])
|
|
17358
17370
|
|
|
17359
17371
|
/* harmony default export */ const chip = (chip_exports_);
|
|
17360
17372
|
;// CONCATENATED MODULE: ./components/chip/index.js
|
|
@@ -19042,11 +19054,17 @@ const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_l
|
|
|
19042
19054
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19043
19055
|
|
|
19044
19056
|
|
|
19045
|
-
;// 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
|
|
19046
19058
|
|
|
19047
|
-
const
|
|
19048
|
-
const
|
|
19049
|
-
|
|
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) {
|
|
19050
19068
|
const _component_combobox_loading_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-loading-list");
|
|
19051
19069
|
|
|
19052
19070
|
const _component_combobox_empty_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-empty-list");
|
|
@@ -19081,14 +19099,11 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19081
19099
|
onFocusin: _cache[0] || (_cache[0] = function () {
|
|
19082
19100
|
return $options.onFocusIn && $options.onFocusIn(...arguments);
|
|
19083
19101
|
}),
|
|
19084
|
-
|
|
19085
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19086
|
-
}),
|
|
19087
|
-
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"]))]
|
|
19088
19103
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "input", {
|
|
19089
19104
|
inputProps: inputProps,
|
|
19090
19105
|
onInput: $options.handleDisplayList
|
|
19091
|
-
})], 40,
|
|
19106
|
+
})], 40, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1)];
|
|
19092
19107
|
}),
|
|
19093
19108
|
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref2 => {
|
|
19094
19109
|
let {
|
|
@@ -19099,8 +19114,8 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19099
19114
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_popover, {
|
|
19100
19115
|
ref: "popover",
|
|
19101
19116
|
open: $data.isListShown,
|
|
19102
|
-
"onUpdate:open": _cache[
|
|
19103
|
-
"hide-on-click":
|
|
19117
|
+
"onUpdate:open": _cache[3] || (_cache[3] = $event => $data.isListShown = $event),
|
|
19118
|
+
"hide-on-click": false,
|
|
19104
19119
|
"max-height": $props.maxHeight,
|
|
19105
19120
|
"max-width": $props.maxWidth,
|
|
19106
19121
|
offset: $props.popoverOffset,
|
|
@@ -19123,10 +19138,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19123
19138
|
ref: "listWrapper",
|
|
19124
19139
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)([$data.DROPDOWN_PADDING_CLASSES[$props.padding], $props.listClass]),
|
|
19125
19140
|
onMouseleave: clearHighlightIndex,
|
|
19126
|
-
onFocusout:
|
|
19127
|
-
clearHighlightIndex;
|
|
19128
|
-
$options.onFocusOut;
|
|
19129
|
-
}
|
|
19141
|
+
onFocusout: clearHighlightIndex
|
|
19130
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)({
|
|
19131
19143
|
key: 0
|
|
19132
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)({
|
|
@@ -19136,32 +19148,22 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19136
19148
|
}), null, 16, ["message"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
19137
19149
|
key: 2,
|
|
19138
19150
|
listProps: listProps
|
|
19139
|
-
})], 42,
|
|
19151
|
+
})], 42, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3)]),
|
|
19140
19152
|
_: 2
|
|
19141
19153
|
}, [_ctx.$slots.header ? {
|
|
19142
19154
|
name: "headerContent",
|
|
19143
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
19144
|
-
ref: "header",
|
|
19145
|
-
onFocusout: _cache[4] || (_cache[4] = function () {
|
|
19146
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19147
|
-
})
|
|
19148
|
-
}, [(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)]),
|
|
19149
19156
|
key: "0"
|
|
19150
19157
|
} : undefined, _ctx.$slots.footer ? {
|
|
19151
19158
|
name: "footerContent",
|
|
19152
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
19153
|
-
ref: "footer",
|
|
19154
|
-
onFocusout: _cache[5] || (_cache[5] = function () {
|
|
19155
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19156
|
-
})
|
|
19157
|
-
}, [(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)]),
|
|
19158
19160
|
key: "1"
|
|
19159
|
-
} : 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"])];
|
|
19160
19162
|
}),
|
|
19161
19163
|
_: 3
|
|
19162
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"]);
|
|
19163
19165
|
}
|
|
19164
|
-
;// 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
|
|
19165
19167
|
|
|
19166
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
|
|
19167
19169
|
|
|
@@ -19423,6 +19425,12 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19423
19425
|
},
|
|
19424
19426
|
|
|
19425
19427
|
isListShown(val) {
|
|
19428
|
+
if (val) {
|
|
19429
|
+
window.addEventListener('mousedown', this.onFocusOut);
|
|
19430
|
+
} else {
|
|
19431
|
+
window.removeEventListener('mousedown', this.onFocusOut);
|
|
19432
|
+
}
|
|
19433
|
+
|
|
19426
19434
|
this.onOpened(val);
|
|
19427
19435
|
}
|
|
19428
19436
|
|
|
@@ -19487,17 +19495,14 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19487
19495
|
},
|
|
19488
19496
|
|
|
19489
19497
|
onFocusOut(e) {
|
|
19490
|
-
|
|
19491
|
-
|
|
19492
|
-
|
|
19493
|
-
|
|
19494
|
-
|
|
19495
|
-
|
|
19496
|
-
}) || 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
|
|
19497
19504
|
|
|
19498
|
-
|
|
19499
|
-
this.closeComboboxList();
|
|
19500
|
-
}
|
|
19505
|
+
this.closeComboboxList();
|
|
19501
19506
|
},
|
|
19502
19507
|
|
|
19503
19508
|
openOnArrowKeyPress() {
|
|
@@ -19518,7 +19523,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19518
19523
|
|
|
19519
19524
|
|
|
19520
19525
|
;
|
|
19521
|
-
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]])
|
|
19522
19527
|
|
|
19523
19528
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_exports_);
|
|
19524
19529
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|