@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
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -203,7 +203,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-section[tabindex=\"-1\"]:focu
|
|
|
203
203
|
|
|
204
204
|
/***/ }),
|
|
205
205
|
|
|
206
|
-
/***/
|
|
206
|
+
/***/ 752:
|
|
207
207
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
208
208
|
|
|
209
209
|
"use strict";
|
|
@@ -1694,19 +1694,19 @@ var update = add("2b02cf58", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1694
1694
|
|
|
1695
1695
|
/***/ }),
|
|
1696
1696
|
|
|
1697
|
-
/***/
|
|
1697
|
+
/***/ 531:
|
|
1698
1698
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1699
1699
|
|
|
1700
1700
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1701
1701
|
|
|
1702
1702
|
// load the styles
|
|
1703
|
-
var content = __webpack_require__(
|
|
1703
|
+
var content = __webpack_require__(752);
|
|
1704
1704
|
if(content.__esModule) content = content.default;
|
|
1705
1705
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1706
1706
|
if(content.locals) module.exports = content.locals;
|
|
1707
1707
|
// add the styles to the DOM
|
|
1708
1708
|
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
1709
|
-
var update = add("
|
|
1709
|
+
var update = add("2105810a", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1710
1710
|
|
|
1711
1711
|
/***/ }),
|
|
1712
1712
|
|
|
@@ -7411,11 +7411,11 @@ function dropdownvue_type_template_id_d36ba644_render(_ctx, _cache, $props, $set
|
|
|
7411
7411
|
}
|
|
7412
7412
|
;// CONCATENATED MODULE: ./components/dropdown/dropdown.vue?vue&type=template&id=d36ba644
|
|
7413
7413
|
|
|
7414
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
7414
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
7415
7415
|
|
|
7416
|
-
const
|
|
7417
|
-
const
|
|
7418
|
-
function
|
|
7416
|
+
const popovervue_type_template_id_4e81d3c3_hoisted_1 = ["aria-hidden"];
|
|
7417
|
+
const popovervue_type_template_id_4e81d3c3_hoisted_2 = ["id", "tabindex"];
|
|
7418
|
+
function popovervue_type_template_id_4e81d3c3_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7419
7419
|
const _component_popover_header_footer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("popover-header-footer");
|
|
7420
7420
|
|
|
7421
7421
|
const _component_sr_only_close_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("sr-only-close-button");
|
|
@@ -7429,7 +7429,7 @@ function popovervue_type_template_id_68f0a8f5_render(_ctx, _cache, $props, $setu
|
|
|
7429
7429
|
class: "d-modal--transparent",
|
|
7430
7430
|
"aria-hidden": $props.modal && $data.isOpen ? 'false' : 'true',
|
|
7431
7431
|
onClick: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)(() => {}, ["prevent", "stop"]))
|
|
7432
|
-
}, null, 8,
|
|
7432
|
+
}, 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), {
|
|
7433
7433
|
ref: "popover",
|
|
7434
7434
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-popover', {
|
|
7435
7435
|
'd-popover__anchor--opened': $data.isOpen
|
|
@@ -7461,7 +7461,7 @@ function popovervue_type_template_id_68f0a8f5_render(_ctx, _cache, $props, $setu
|
|
|
7461
7461
|
'aria-controls': $props.id,
|
|
7462
7462
|
'aria-haspopup': $props.role
|
|
7463
7463
|
}
|
|
7464
|
-
})], 40,
|
|
7464
|
+
})], 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)({
|
|
7465
7465
|
id: $props.id,
|
|
7466
7466
|
ref: "content",
|
|
7467
7467
|
role: $props.role,
|
|
@@ -7524,7 +7524,7 @@ function popovervue_type_template_id_68f0a8f5_render(_ctx, _cache, $props, $setu
|
|
|
7524
7524
|
_: 3
|
|
7525
7525
|
}, 8, ["class"]))]);
|
|
7526
7526
|
}
|
|
7527
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=
|
|
7527
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=template&id=4e81d3c3
|
|
7528
7528
|
|
|
7529
7529
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
|
|
7530
7530
|
function getWindow(node) {
|
|
@@ -12612,39 +12612,49 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12612
12612
|
},
|
|
12613
12613
|
|
|
12614
12614
|
modal(modal) {
|
|
12615
|
-
|
|
12616
|
-
|
|
12615
|
+
var _this$tip;
|
|
12616
|
+
|
|
12617
|
+
(_this$tip = this.tip) === null || _this$tip === void 0 ? void 0 : _this$tip.setProps({
|
|
12618
|
+
zIndex: modal ? 650 : this.calculateAnchorZindex()
|
|
12617
12619
|
});
|
|
12618
12620
|
},
|
|
12619
12621
|
|
|
12620
12622
|
offset(offset) {
|
|
12621
|
-
|
|
12623
|
+
var _this$tip2;
|
|
12624
|
+
|
|
12625
|
+
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.setProps({
|
|
12622
12626
|
offset
|
|
12623
12627
|
});
|
|
12624
12628
|
},
|
|
12625
12629
|
|
|
12626
12630
|
sticky(sticky) {
|
|
12627
|
-
|
|
12631
|
+
var _this$tip3;
|
|
12632
|
+
|
|
12633
|
+
(_this$tip3 = this.tip) === null || _this$tip3 === void 0 ? void 0 : _this$tip3.setProps({
|
|
12628
12634
|
sticky
|
|
12629
12635
|
});
|
|
12630
12636
|
},
|
|
12631
12637
|
|
|
12632
12638
|
fallbackPlacements() {
|
|
12633
|
-
|
|
12639
|
+
var _this$tip4;
|
|
12640
|
+
|
|
12641
|
+
(_this$tip4 = this.tip) === null || _this$tip4 === void 0 ? void 0 : _this$tip4.setProps({
|
|
12634
12642
|
popperOptions: this.popperOptions()
|
|
12635
12643
|
});
|
|
12636
12644
|
},
|
|
12637
12645
|
|
|
12638
12646
|
tether() {
|
|
12639
|
-
|
|
12647
|
+
var _this$tip5;
|
|
12648
|
+
|
|
12649
|
+
(_this$tip5 = this.tip) === null || _this$tip5 === void 0 ? void 0 : _this$tip5.setProps({
|
|
12640
12650
|
popperOptions: this.popperOptions()
|
|
12641
12651
|
});
|
|
12642
12652
|
},
|
|
12643
12653
|
|
|
12644
12654
|
placement(placement) {
|
|
12645
|
-
var _this$
|
|
12655
|
+
var _this$tip6;
|
|
12646
12656
|
|
|
12647
|
-
(_this$
|
|
12657
|
+
(_this$tip6 = this.tip) === null || _this$tip6 === void 0 ? void 0 : _this$tip6.setProps({
|
|
12648
12658
|
placement
|
|
12649
12659
|
});
|
|
12650
12660
|
},
|
|
@@ -12660,65 +12670,31 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12660
12670
|
|
|
12661
12671
|
isOpen(isOpen, isPrev) {
|
|
12662
12672
|
if (isOpen) {
|
|
12663
|
-
|
|
12664
|
-
passive: false
|
|
12665
|
-
});
|
|
12666
|
-
this.tip.setProps({
|
|
12667
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex()
|
|
12668
|
-
});
|
|
12669
|
-
this.tip.show();
|
|
12670
|
-
this.addClosePopoverEventListener();
|
|
12673
|
+
this.initTippyInstance();
|
|
12671
12674
|
} else if (!isOpen && isPrev !== isOpen) {
|
|
12672
|
-
this.
|
|
12675
|
+
this.removeEventListeners();
|
|
12673
12676
|
this.tip.hide();
|
|
12674
|
-
window.removeEventListener('wheel', this.preventScrolling, {
|
|
12675
|
-
passive: false
|
|
12676
|
-
});
|
|
12677
12677
|
}
|
|
12678
12678
|
}
|
|
12679
12679
|
|
|
12680
12680
|
},
|
|
12681
12681
|
|
|
12682
12682
|
mounted() {
|
|
12683
|
-
// support single anchor for popover, not multi anchor
|
|
12684
12683
|
const externalAnchorEl = document.getElementById(this.externalAnchor);
|
|
12685
12684
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
12686
|
-
this.popoverContentEl = this.$refs.content.$el;
|
|
12687
|
-
|
|
12688
|
-
if (this.contentWidth === 'anchor') {
|
|
12689
|
-
window.addEventListener('resize', this.onResize);
|
|
12690
|
-
}
|
|
12691
|
-
|
|
12692
|
-
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
12693
|
-
popperOptions: this.popperOptions(),
|
|
12694
|
-
contentElement: this.popoverContentEl,
|
|
12695
|
-
placement: this.placement,
|
|
12696
|
-
offset: this.offset,
|
|
12697
|
-
sticky: this.sticky,
|
|
12698
|
-
appendTo: this.appendTo,
|
|
12699
|
-
interactive: true,
|
|
12700
|
-
trigger: 'manual',
|
|
12701
|
-
// We have to manage hideOnClick functionality manually to handle
|
|
12702
|
-
// popover within popover situations.
|
|
12703
|
-
hideOnClick: false,
|
|
12704
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
12705
|
-
onClickOutside: this.onClickOutside,
|
|
12706
|
-
onShow: this.onShow
|
|
12707
|
-
}); // immediate watcher fires before mounted, so have this here in case
|
|
12708
|
-
// show prop was initially set to true.
|
|
12685
|
+
this.popoverContentEl = this.$refs.content.$el;
|
|
12709
12686
|
|
|
12710
12687
|
if (this.isOpen) {
|
|
12711
|
-
this.
|
|
12688
|
+
this.initTippyInstance();
|
|
12712
12689
|
}
|
|
12713
12690
|
},
|
|
12714
12691
|
|
|
12715
12692
|
beforeUnmount() {
|
|
12716
|
-
var _this$
|
|
12693
|
+
var _this$tip7;
|
|
12717
12694
|
|
|
12718
|
-
|
|
12719
|
-
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.destroy();
|
|
12695
|
+
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
|
|
12720
12696
|
this.removeReferences();
|
|
12721
|
-
this.
|
|
12697
|
+
this.removeEventListeners();
|
|
12722
12698
|
},
|
|
12723
12699
|
|
|
12724
12700
|
/******************
|
|
@@ -12766,18 +12742,16 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12766
12742
|
}
|
|
12767
12743
|
},
|
|
12768
12744
|
|
|
12769
|
-
onContext(event) {
|
|
12770
|
-
var _this$tip3;
|
|
12771
|
-
|
|
12745
|
+
async onContext(event) {
|
|
12772
12746
|
if (!this.openOnContext) {
|
|
12773
12747
|
return;
|
|
12774
12748
|
}
|
|
12775
12749
|
|
|
12776
12750
|
event.preventDefault();
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
});
|
|
12751
|
+
this.isOpen = true;
|
|
12752
|
+
await this.$nextTick();
|
|
12780
12753
|
this.tip.setProps({
|
|
12754
|
+
placement: 'right-start',
|
|
12781
12755
|
getReferenceClientRect: () => ({
|
|
12782
12756
|
width: 0,
|
|
12783
12757
|
height: 0,
|
|
@@ -12787,7 +12761,6 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12787
12761
|
right: event.clientX
|
|
12788
12762
|
})
|
|
12789
12763
|
});
|
|
12790
|
-
this.toggleOpen();
|
|
12791
12764
|
},
|
|
12792
12765
|
|
|
12793
12766
|
toggleOpen() {
|
|
@@ -12808,12 +12781,26 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12808
12781
|
this.$emit('keydown', e);
|
|
12809
12782
|
},
|
|
12810
12783
|
|
|
12811
|
-
|
|
12784
|
+
addEventListeners() {
|
|
12812
12785
|
window.addEventListener('dt-popover-close', this.closePopover);
|
|
12786
|
+
window.addEventListener('wheel', this.preventScrolling, {
|
|
12787
|
+
passive: false
|
|
12788
|
+
}); // align popover content width when contentWidth is 'anchor'
|
|
12789
|
+
|
|
12790
|
+
if (this.contentWidth === 'anchor') {
|
|
12791
|
+
window.addEventListener('resize', this.onResize);
|
|
12792
|
+
}
|
|
12813
12793
|
},
|
|
12814
12794
|
|
|
12815
|
-
|
|
12795
|
+
removeEventListeners() {
|
|
12816
12796
|
window.removeEventListener('dt-popover-close', this.closePopover);
|
|
12797
|
+
window.removeEventListener('wheel', this.preventScrolling, {
|
|
12798
|
+
passive: false
|
|
12799
|
+
});
|
|
12800
|
+
|
|
12801
|
+
if (this.contentWidth === 'anchor') {
|
|
12802
|
+
window.removeEventListener('resize', this.onResize);
|
|
12803
|
+
}
|
|
12817
12804
|
},
|
|
12818
12805
|
|
|
12819
12806
|
closePopover() {
|
|
@@ -12845,15 +12832,15 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12845
12832
|
},
|
|
12846
12833
|
|
|
12847
12834
|
async onLeaveTransitionComplete() {
|
|
12848
|
-
var _this$
|
|
12835
|
+
var _this$tip8;
|
|
12849
12836
|
|
|
12850
12837
|
if (this.modal) {
|
|
12851
|
-
this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
12838
|
+
await this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
12852
12839
|
|
|
12853
12840
|
await this.$nextTick();
|
|
12854
12841
|
}
|
|
12855
12842
|
|
|
12856
|
-
(_this$
|
|
12843
|
+
(_this$tip8 = this.tip) === null || _this$tip8 === void 0 ? void 0 : _this$tip8.unmount();
|
|
12857
12844
|
this.$emit('opened', false);
|
|
12858
12845
|
|
|
12859
12846
|
if (this.open !== null) {
|
|
@@ -12949,15 +12936,39 @@ const popover_header_footer_exports_ = /*#__PURE__*/(0,exportHelper/* default */
|
|
|
12949
12936
|
// if there are no focusable elements at all focus the dialog itself
|
|
12950
12937
|
this.$refs.content.$el.focus();
|
|
12951
12938
|
}
|
|
12939
|
+
},
|
|
12940
|
+
|
|
12941
|
+
initTippyInstance() {
|
|
12942
|
+
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
12943
|
+
popperOptions: this.popperOptions(),
|
|
12944
|
+
contentElement: this.popoverContentEl,
|
|
12945
|
+
placement: this.placement,
|
|
12946
|
+
offset: this.offset,
|
|
12947
|
+
sticky: this.sticky,
|
|
12948
|
+
appendTo: this.appendTo,
|
|
12949
|
+
interactive: true,
|
|
12950
|
+
trigger: 'manual',
|
|
12951
|
+
// We have to manage hideOnClick functionality manually to handle
|
|
12952
|
+
// popover within popover situations.
|
|
12953
|
+
hideOnClick: false,
|
|
12954
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
12955
|
+
onClickOutside: this.onClickOutside,
|
|
12956
|
+
onShow: this.onShow
|
|
12957
|
+
});
|
|
12958
|
+
this.tip.setProps({
|
|
12959
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex()
|
|
12960
|
+
});
|
|
12961
|
+
this.tip.show();
|
|
12962
|
+
this.addEventListeners();
|
|
12952
12963
|
}
|
|
12953
12964
|
|
|
12954
12965
|
}
|
|
12955
12966
|
});
|
|
12956
12967
|
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=script&lang=js
|
|
12957
12968
|
|
|
12958
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.use[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/popover/popover.vue?vue&type=style&index=0&id=
|
|
12959
|
-
var
|
|
12960
|
-
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=style&index=0&id=
|
|
12969
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-74.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-74.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-74.use[3]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-74.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
|
|
12970
|
+
var popovervue_type_style_index_0_id_4e81d3c3_lang_less = __webpack_require__(531);
|
|
12971
|
+
;// CONCATENATED MODULE: ./components/popover/popover.vue?vue&type=style&index=0&id=4e81d3c3&lang=less
|
|
12961
12972
|
|
|
12962
12973
|
;// CONCATENATED MODULE: ./components/popover/popover.vue
|
|
12963
12974
|
|
|
@@ -12967,7 +12978,7 @@ var popovervue_type_style_index_0_id_68f0a8f5_lang_less = __webpack_require__(56
|
|
|
12967
12978
|
;
|
|
12968
12979
|
|
|
12969
12980
|
|
|
12970
|
-
const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue_type_script_lang_js, [['render',
|
|
12981
|
+
const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue_type_script_lang_js, [['render',popovervue_type_template_id_4e81d3c3_render]])
|
|
12971
12982
|
|
|
12972
12983
|
/* harmony default export */ const popover = (popover_exports_);
|
|
12973
12984
|
;// CONCATENATED MODULE: ./components/popover/index.js
|
|
@@ -17119,26 +17130,27 @@ const checkbox_group_exports_ = checkbox_groupvue_type_script_lang_js;
|
|
|
17119
17130
|
/* harmony default export */ const checkbox_group = (checkbox_group_exports_);
|
|
17120
17131
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
17121
17132
|
|
|
17122
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
17133
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
17123
17134
|
|
|
17124
|
-
const
|
|
17135
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_1 = {
|
|
17136
|
+
class: "d-chip"
|
|
17137
|
+
};
|
|
17138
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_2 = {
|
|
17125
17139
|
key: 0,
|
|
17126
17140
|
"data-qa": "dt-chip-icon",
|
|
17127
17141
|
class: "d-chip__icon"
|
|
17128
17142
|
};
|
|
17129
|
-
const
|
|
17143
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_3 = {
|
|
17130
17144
|
key: 1,
|
|
17131
17145
|
"data-qa": "dt-chip-avatar"
|
|
17132
17146
|
};
|
|
17133
|
-
const
|
|
17134
|
-
function
|
|
17147
|
+
const chipvue_type_template_id_7cc71ad9_hoisted_4 = ["id"];
|
|
17148
|
+
function chipvue_type_template_id_7cc71ad9_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17135
17149
|
const _component_dt_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-icon");
|
|
17136
17150
|
|
|
17137
17151
|
const _component_dt_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("dt-button");
|
|
17138
17152
|
|
|
17139
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", {
|
|
17140
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-chip', _ctx.parentClass])
|
|
17141
|
-
}, [((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)({
|
|
17153
|
+
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)({
|
|
17142
17154
|
id: $props.id,
|
|
17143
17155
|
type: $props.interactive && 'button',
|
|
17144
17156
|
class: $options.chipClasses(),
|
|
@@ -17146,12 +17158,12 @@ function chipvue_type_template_id_f2b79d66_render(_ctx, _cache, $props, $setup,
|
|
|
17146
17158
|
"aria-labelledby": $props.ariaLabel ? undefined : `${$props.id}-content`,
|
|
17147
17159
|
"aria-label": $props.ariaLabel
|
|
17148
17160
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toHandlers)($options.chipListeners)), {
|
|
17149
|
-
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",
|
|
17161
|
+
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", {
|
|
17150
17162
|
key: 2,
|
|
17151
17163
|
id: `${$props.id}-content`,
|
|
17152
17164
|
"data-qa": "dt-chip-label",
|
|
17153
17165
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(['d-truncate', 'd-chip__text', $props.contentClass])
|
|
17154
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 10,
|
|
17166
|
+
}, [(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)]),
|
|
17155
17167
|
_: 3
|
|
17156
17168
|
}, 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)({
|
|
17157
17169
|
key: 0
|
|
@@ -17166,9 +17178,9 @@ function chipvue_type_template_id_f2b79d66_render(_ctx, _cache, $props, $setup,
|
|
|
17166
17178
|
size: $options.closeButtonIconSize
|
|
17167
17179
|
}, null, 8, ["size"])]),
|
|
17168
17180
|
_: 1
|
|
17169
|
-
}, 16, ["class", "aria-label"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]
|
|
17181
|
+
}, 16, ["class", "aria-label"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
17170
17182
|
}
|
|
17171
|
-
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=
|
|
17183
|
+
;// CONCATENATED MODULE: ./components/chip/chip.vue?vue&type=template&id=7cc71ad9
|
|
17172
17184
|
|
|
17173
17185
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
17174
17186
|
const CHIP_SIZE_MODIFIERS = {
|
|
@@ -17364,7 +17376,7 @@ const CHIP_ICON_SIZES = {
|
|
|
17364
17376
|
|
|
17365
17377
|
|
|
17366
17378
|
;
|
|
17367
|
-
const chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(chipvue_type_script_lang_js, [['render',
|
|
17379
|
+
const chip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(chipvue_type_script_lang_js, [['render',chipvue_type_template_id_7cc71ad9_render]])
|
|
17368
17380
|
|
|
17369
17381
|
/* harmony default export */ const chip = (chip_exports_);
|
|
17370
17382
|
;// CONCATENATED MODULE: ./components/chip/index.js
|
|
@@ -19052,11 +19064,17 @@ const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_l
|
|
|
19052
19064
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19053
19065
|
|
|
19054
19066
|
|
|
19055
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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=
|
|
19067
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
19056
19068
|
|
|
19057
|
-
const
|
|
19058
|
-
const
|
|
19059
|
-
|
|
19069
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1 = ["id"];
|
|
19070
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_2 = {
|
|
19071
|
+
ref: "header"
|
|
19072
|
+
};
|
|
19073
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3 = ["onMouseleave", "onFocusout"];
|
|
19074
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_4 = {
|
|
19075
|
+
ref: "footer"
|
|
19076
|
+
};
|
|
19077
|
+
function combobox_with_popovervue_type_template_id_6b1072ea_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19060
19078
|
const _component_combobox_loading_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-loading-list");
|
|
19061
19079
|
|
|
19062
19080
|
const _component_combobox_empty_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-empty-list");
|
|
@@ -19091,14 +19109,11 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19091
19109
|
onFocusin: _cache[0] || (_cache[0] = function () {
|
|
19092
19110
|
return $options.onFocusIn && $options.onFocusIn(...arguments);
|
|
19093
19111
|
}),
|
|
19094
|
-
|
|
19095
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19096
|
-
}),
|
|
19097
|
-
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"]))]
|
|
19112
|
+
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"]))]
|
|
19098
19113
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "input", {
|
|
19099
19114
|
inputProps: inputProps,
|
|
19100
19115
|
onInput: $options.handleDisplayList
|
|
19101
|
-
})], 40,
|
|
19116
|
+
})], 40, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1)];
|
|
19102
19117
|
}),
|
|
19103
19118
|
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref2 => {
|
|
19104
19119
|
let {
|
|
@@ -19109,8 +19124,8 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19109
19124
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_popover, {
|
|
19110
19125
|
ref: "popover",
|
|
19111
19126
|
open: $data.isListShown,
|
|
19112
|
-
"onUpdate:open": _cache[
|
|
19113
|
-
"hide-on-click":
|
|
19127
|
+
"onUpdate:open": _cache[3] || (_cache[3] = $event => $data.isListShown = $event),
|
|
19128
|
+
"hide-on-click": false,
|
|
19114
19129
|
"max-height": $props.maxHeight,
|
|
19115
19130
|
"max-width": $props.maxWidth,
|
|
19116
19131
|
offset: $props.popoverOffset,
|
|
@@ -19133,10 +19148,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19133
19148
|
ref: "listWrapper",
|
|
19134
19149
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)([$data.DROPDOWN_PADDING_CLASSES[$props.padding], $props.listClass]),
|
|
19135
19150
|
onMouseleave: clearHighlightIndex,
|
|
19136
|
-
onFocusout:
|
|
19137
|
-
clearHighlightIndex;
|
|
19138
|
-
$options.onFocusOut;
|
|
19139
|
-
}
|
|
19151
|
+
onFocusout: clearHighlightIndex
|
|
19140
19152
|
}, [$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)({
|
|
19141
19153
|
key: 0
|
|
19142
19154
|
}, 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)({
|
|
@@ -19146,32 +19158,22 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19146
19158
|
}), null, 16, ["message"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
19147
19159
|
key: 2,
|
|
19148
19160
|
listProps: listProps
|
|
19149
|
-
})], 42,
|
|
19161
|
+
})], 42, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3)]),
|
|
19150
19162
|
_: 2
|
|
19151
19163
|
}, [_ctx.$slots.header ? {
|
|
19152
19164
|
name: "headerContent",
|
|
19153
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
19154
|
-
ref: "header",
|
|
19155
|
-
onFocusout: _cache[4] || (_cache[4] = function () {
|
|
19156
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19157
|
-
})
|
|
19158
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "header")], 544)]),
|
|
19165
|
+
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)]),
|
|
19159
19166
|
key: "0"
|
|
19160
19167
|
} : undefined, _ctx.$slots.footer ? {
|
|
19161
19168
|
name: "footerContent",
|
|
19162
|
-
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
19163
|
-
ref: "footer",
|
|
19164
|
-
onFocusout: _cache[5] || (_cache[5] = function () {
|
|
19165
|
-
return $options.onFocusOut && $options.onFocusOut(...arguments);
|
|
19166
|
-
})
|
|
19167
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")], 544)]),
|
|
19169
|
+
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)]),
|
|
19168
19170
|
key: "1"
|
|
19169
|
-
} : undefined]), 1032, ["open", "
|
|
19171
|
+
} : undefined]), 1032, ["open", "max-height", "max-width", "offset", "sticky", "external-anchor", "content-width", "visually-hidden-close-label", "visually-hidden-close", "onOpened"])];
|
|
19170
19172
|
}),
|
|
19171
19173
|
_: 3
|
|
19172
19174
|
}, 16, ["loading", "label", "label-visible", "size", "description", "empty-list", "empty-state-message", "show-list", "on-beginning-of-list", "on-end-of-list", "list-id"]);
|
|
19173
19175
|
}
|
|
19174
|
-
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19176
|
+
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=6b1072ea
|
|
19175
19177
|
|
|
19176
19178
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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
|
|
19177
19179
|
|
|
@@ -19433,6 +19435,12 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19433
19435
|
},
|
|
19434
19436
|
|
|
19435
19437
|
isListShown(val) {
|
|
19438
|
+
if (val) {
|
|
19439
|
+
window.addEventListener('mousedown', this.onFocusOut);
|
|
19440
|
+
} else {
|
|
19441
|
+
window.removeEventListener('mousedown', this.onFocusOut);
|
|
19442
|
+
}
|
|
19443
|
+
|
|
19436
19444
|
this.onOpened(val);
|
|
19437
19445
|
}
|
|
19438
19446
|
|
|
@@ -19497,17 +19505,14 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19497
19505
|
},
|
|
19498
19506
|
|
|
19499
19507
|
onFocusOut(e) {
|
|
19500
|
-
|
|
19501
|
-
|
|
19502
|
-
|
|
19503
|
-
|
|
19504
|
-
|
|
19505
|
-
|
|
19506
|
-
}) || this.visuallyHiddenClose; // If outside the combobox then close
|
|
19508
|
+
// Check if the focus change was to another target within the combobox component
|
|
19509
|
+
const isComboboxStillFocused = Object.keys(this.$refs).some(refName => {
|
|
19510
|
+
const ref = this.$refs[refName];
|
|
19511
|
+
return ref.$el ? ref.$el.contains(e.target) : ref.contains(e.target);
|
|
19512
|
+
});
|
|
19513
|
+
if (isComboboxStillFocused) return; // If outside the combobox then close
|
|
19507
19514
|
|
|
19508
|
-
|
|
19509
|
-
this.closeComboboxList();
|
|
19510
|
-
}
|
|
19515
|
+
this.closeComboboxList();
|
|
19511
19516
|
},
|
|
19512
19517
|
|
|
19513
19518
|
openOnArrowKeyPress() {
|
|
@@ -19528,7 +19533,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19528
19533
|
|
|
19529
19534
|
|
|
19530
19535
|
;
|
|
19531
|
-
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',
|
|
19536
|
+
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]])
|
|
19532
19537
|
|
|
19533
19538
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_exports_);
|
|
19534
19539
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|