@dialpad/dialtone-vue 3.35.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.common.js +177 -159
- package/dist/dialtone-vue.umd.js +177 -159
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +3 -3
|
@@ -145,7 +145,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-default-list-item,.dt-default-list
|
|
|
145
145
|
|
|
146
146
|
/***/ }),
|
|
147
147
|
|
|
148
|
-
/***/
|
|
148
|
+
/***/ 399:
|
|
149
149
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
150
150
|
|
|
151
151
|
"use strict";
|
|
@@ -162,7 +162,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
162
162
|
|
|
163
163
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
164
164
|
// Module
|
|
165
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-item:not(.dt-list-item--static){cursor:pointer}.dt-list-item--focusable:focus,.dt-list-item--focusable:focus-within,.dt-list-item--highlighted{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.05)}.dt-list-item--highlighted:active{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.1)}.dt-list-item:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--su2) var(--focus-ring)}", ""]);
|
|
165
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".dt-list-item:not(.dt-list-item--static){cursor:pointer;border-radius:var(--size-300)}.dt-list-item--focusable:focus,.dt-list-item--focusable:focus-within,.dt-list-item--highlighted{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.05)}.dt-list-item--highlighted:active{background-color:hsla(var(--black-900-h),var(--black-900-s),var(--black-900-l),.1)}.dt-list-item:focus-visible{outline:none;box-shadow:inset 0 0 0 var(--su2) var(--focus-ring)}", ""]);
|
|
166
166
|
// Exports
|
|
167
167
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
168
168
|
|
|
@@ -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";
|
|
@@ -1652,19 +1652,19 @@ var update = add("0c78fb76", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1652
1652
|
|
|
1653
1653
|
/***/ }),
|
|
1654
1654
|
|
|
1655
|
-
/***/
|
|
1655
|
+
/***/ 897:
|
|
1656
1656
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1657
1657
|
|
|
1658
1658
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1659
1659
|
|
|
1660
1660
|
// load the styles
|
|
1661
|
-
var content = __webpack_require__(
|
|
1661
|
+
var content = __webpack_require__(399);
|
|
1662
1662
|
if(content.__esModule) content = content.default;
|
|
1663
1663
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1664
1664
|
if(content.locals) module.exports = content.locals;
|
|
1665
1665
|
// add the styles to the DOM
|
|
1666
1666
|
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
1667
|
-
var update = add("
|
|
1667
|
+
var update = add("61c1a254", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1668
1668
|
|
|
1669
1669
|
/***/ }),
|
|
1670
1670
|
|
|
@@ -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
|
|
|
@@ -5176,9 +5176,9 @@ function combobox_loading_listvue_type_template_id_07d9971d_render(_ctx, _cache,
|
|
|
5176
5176
|
}
|
|
5177
5177
|
;// CONCATENATED MODULE: ./components/combobox/combobox_loading-list.vue?vue&type=template&id=07d9971d
|
|
5178
5178
|
|
|
5179
|
-
;// 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/list_item/list_item.vue?vue&type=template&id=
|
|
5179
|
+
;// 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/list_item/list_item.vue?vue&type=template&id=65cb4fdd
|
|
5180
5180
|
|
|
5181
|
-
function
|
|
5181
|
+
function list_itemvue_type_template_id_65cb4fdd_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5182
5182
|
return (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), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
5183
5183
|
id: $props.id,
|
|
5184
5184
|
class: ['dt-list-item d-ls-none', {
|
|
@@ -5205,7 +5205,7 @@ function list_itemvue_type_template_id_5817ca14_render(_ctx, _cache, $props, $se
|
|
|
5205
5205
|
_: 3
|
|
5206
5206
|
}, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
|
|
5207
5207
|
}
|
|
5208
|
-
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=template&id=
|
|
5208
|
+
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=template&id=65cb4fdd
|
|
5209
5209
|
|
|
5210
5210
|
;// CONCATENATED MODULE: ./components/list_item/list_item_constants.js
|
|
5211
5211
|
const LIST_ITEM_TYPES = {
|
|
@@ -5465,9 +5465,9 @@ const default_list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(
|
|
|
5465
5465
|
});
|
|
5466
5466
|
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=script&lang=js
|
|
5467
5467
|
|
|
5468
|
-
// 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/list_item/list_item.vue?vue&type=style&index=0&id=
|
|
5469
|
-
var
|
|
5470
|
-
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=style&index=0&id=
|
|
5468
|
+
// 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/list_item/list_item.vue?vue&type=style&index=0&id=65cb4fdd&lang=less
|
|
5469
|
+
var list_itemvue_type_style_index_0_id_65cb4fdd_lang_less = __webpack_require__(897);
|
|
5470
|
+
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=style&index=0&id=65cb4fdd&lang=less
|
|
5471
5471
|
|
|
5472
5472
|
;// CONCATENATED MODULE: ./components/list_item/list_item.vue
|
|
5473
5473
|
|
|
@@ -5477,7 +5477,7 @@ var list_itemvue_type_style_index_0_id_5817ca14_lang_less = __webpack_require__(
|
|
|
5477
5477
|
;
|
|
5478
5478
|
|
|
5479
5479
|
|
|
5480
|
-
const list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(list_itemvue_type_script_lang_js, [['render',
|
|
5480
|
+
const list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(list_itemvue_type_script_lang_js, [['render',list_itemvue_type_template_id_65cb4fdd_render]])
|
|
5481
5481
|
|
|
5482
5482
|
/* harmony default export */ const list_item = (list_item_exports_);
|
|
5483
5483
|
;// CONCATENATED MODULE: ./components/list_item/index.js
|
|
@@ -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
|
|
@@ -12966,8 +12977,8 @@ const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue
|
|
|
12966
12977
|
;// CONCATENATED MODULE: ./components/dropdown/dropdown_constants.js
|
|
12967
12978
|
const DROPDOWN_PADDING_CLASSES = {
|
|
12968
12979
|
none: undefined,
|
|
12969
|
-
small: 'd-
|
|
12970
|
-
large: 'd-
|
|
12980
|
+
small: 'd-py0',
|
|
12981
|
+
large: 'd-py4'
|
|
12971
12982
|
};
|
|
12972
12983
|
;// 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/dropdown/dropdown.vue?vue&type=script&lang=js
|
|
12973
12984
|
|
|
@@ -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 = {
|
|
@@ -17173,8 +17185,8 @@ const CHIP_CLOSE_BUTTON_SIZE_MODIFIERS = {
|
|
|
17173
17185
|
};
|
|
17174
17186
|
const CHIP_ICON_SIZES = {
|
|
17175
17187
|
xs: '200',
|
|
17176
|
-
sm: '
|
|
17177
|
-
md: '
|
|
17188
|
+
sm: '200',
|
|
17189
|
+
md: '200'
|
|
17178
17190
|
};
|
|
17179
17191
|
/* harmony default export */ const chip_constants = ({
|
|
17180
17192
|
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
|
|
@@ -17985,25 +17997,25 @@ const toast_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(toastvue_typ
|
|
|
17985
17997
|
;// CONCATENATED MODULE: ./components/toast/index.js
|
|
17986
17998
|
|
|
17987
17999
|
|
|
17988
|
-
;// 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/toggle/toggle.vue?vue&type=template&id=
|
|
18000
|
+
;// 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/toggle/toggle.vue?vue&type=template&id=2b01a980
|
|
17989
18001
|
|
|
17990
|
-
const
|
|
18002
|
+
const togglevue_type_template_id_2b01a980_hoisted_1 = {
|
|
17991
18003
|
class: "d-d-flex d-ai-center"
|
|
17992
18004
|
};
|
|
17993
|
-
const
|
|
17994
|
-
const
|
|
17995
|
-
const
|
|
18005
|
+
const togglevue_type_template_id_2b01a980_hoisted_2 = ["for"];
|
|
18006
|
+
const togglevue_type_template_id_2b01a980_hoisted_3 = ["id", "role", "aria-checked", "disabled", "aria-disabled"];
|
|
18007
|
+
const togglevue_type_template_id_2b01a980_hoisted_4 = {
|
|
17996
18008
|
key: 0,
|
|
17997
18009
|
class: "d-toggle__inner"
|
|
17998
18010
|
};
|
|
17999
|
-
function
|
|
18000
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
18011
|
+
function togglevue_type_template_id_2b01a980_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18012
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", togglevue_type_template_id_2b01a980_hoisted_1, [_ctx.$slots.default ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("label", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
18001
18013
|
key: 0,
|
|
18002
18014
|
class: $props.labelClass,
|
|
18003
18015
|
for: $props.id
|
|
18004
18016
|
}, $props.labelChildProps, {
|
|
18005
18017
|
"data-qa": "toggle-label"
|
|
18006
|
-
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 16,
|
|
18018
|
+
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 16, togglevue_type_template_id_2b01a980_hoisted_2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("button", (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.mergeProps)({
|
|
18007
18019
|
id: $props.id,
|
|
18008
18020
|
role: $options.toggleRole,
|
|
18009
18021
|
type: "button",
|
|
@@ -18011,9 +18023,9 @@ function togglevue_type_template_id_54ed4aa0_render(_ctx, _cache, $props, $setup
|
|
|
18011
18023
|
disabled: $props.disabled,
|
|
18012
18024
|
"aria-disabled": $props.disabled.toString(),
|
|
18013
18025
|
class: $options.toggleClasses
|
|
18014
|
-
}, $options.inputListeners), [$props.showIcon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span",
|
|
18026
|
+
}, $options.inputListeners), [$props.showIcon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", togglevue_type_template_id_2b01a980_hoisted_4)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 16, togglevue_type_template_id_2b01a980_hoisted_3)]);
|
|
18015
18027
|
}
|
|
18016
|
-
;// CONCATENATED MODULE: ./components/toggle/toggle.vue?vue&type=template&id=
|
|
18028
|
+
;// CONCATENATED MODULE: ./components/toggle/toggle.vue?vue&type=template&id=2b01a980
|
|
18017
18029
|
|
|
18018
18030
|
;// CONCATENATED MODULE: ./components/toggle/toggle_constants.js
|
|
18019
18031
|
const TOGGLE_SIZE_MODIFIERS = {
|
|
@@ -18073,6 +18085,16 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
|
|
|
18073
18085
|
validator: v => TOGGLE_CHECKED_VALUES.includes(v)
|
|
18074
18086
|
},
|
|
18075
18087
|
|
|
18088
|
+
/**
|
|
18089
|
+
* Whether the component toggles on click. If you set this to false it means you will handle the toggling manually
|
|
18090
|
+
* via the checked prop or v-model. Change events will still be triggered.
|
|
18091
|
+
* @values true, false
|
|
18092
|
+
*/
|
|
18093
|
+
toggleOnClick: {
|
|
18094
|
+
type: Boolean,
|
|
18095
|
+
default: true
|
|
18096
|
+
},
|
|
18097
|
+
|
|
18076
18098
|
/**
|
|
18077
18099
|
* The size of the toggle.
|
|
18078
18100
|
* @values sm, md
|
|
@@ -18161,8 +18183,11 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
|
|
|
18161
18183
|
|
|
18162
18184
|
methods: {
|
|
18163
18185
|
toggleCheckedValue() {
|
|
18164
|
-
this
|
|
18165
|
-
|
|
18186
|
+
this.$emit('change', !this.internalChecked);
|
|
18187
|
+
|
|
18188
|
+
if (this.toggleOnClick) {
|
|
18189
|
+
this.internalChecked = !this.internalChecked;
|
|
18190
|
+
}
|
|
18166
18191
|
},
|
|
18167
18192
|
|
|
18168
18193
|
hasSlotLabel() {
|
|
@@ -18189,7 +18214,7 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
|
|
|
18189
18214
|
|
|
18190
18215
|
|
|
18191
18216
|
;
|
|
18192
|
-
const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_type_script_lang_js, [['render',
|
|
18217
|
+
const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_type_script_lang_js, [['render',togglevue_type_template_id_2b01a980_render]])
|
|
18193
18218
|
|
|
18194
18219
|
/* harmony default export */ const toggle = (toggle_exports_);
|
|
18195
18220
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
@@ -19042,11 +19067,17 @@ const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_l
|
|
|
19042
19067
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19043
19068
|
|
|
19044
19069
|
|
|
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=
|
|
19070
|
+
;// 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
19071
|
|
|
19047
|
-
const
|
|
19048
|
-
const
|
|
19049
|
-
|
|
19072
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1 = ["id"];
|
|
19073
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_2 = {
|
|
19074
|
+
ref: "header"
|
|
19075
|
+
};
|
|
19076
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3 = ["onMouseleave", "onFocusout"];
|
|
19077
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_4 = {
|
|
19078
|
+
ref: "footer"
|
|
19079
|
+
};
|
|
19080
|
+
function combobox_with_popovervue_type_template_id_6b1072ea_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19050
19081
|
const _component_combobox_loading_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-loading-list");
|
|
19051
19082
|
|
|
19052
19083
|
const _component_combobox_empty_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-empty-list");
|
|
@@ -19081,14 +19112,11 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19081
19112
|
onFocusin: _cache[0] || (_cache[0] = function () {
|
|
19082
19113
|
return $options.onFocusIn && $options.onFocusIn(...arguments);
|
|
19083
19114
|
}),
|
|
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"]))]
|
|
19115
|
+
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
19116
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "input", {
|
|
19089
19117
|
inputProps: inputProps,
|
|
19090
19118
|
onInput: $options.handleDisplayList
|
|
19091
|
-
})], 40,
|
|
19119
|
+
})], 40, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1)];
|
|
19092
19120
|
}),
|
|
19093
19121
|
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref2 => {
|
|
19094
19122
|
let {
|
|
@@ -19099,8 +19127,8 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19099
19127
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_popover, {
|
|
19100
19128
|
ref: "popover",
|
|
19101
19129
|
open: $data.isListShown,
|
|
19102
|
-
"onUpdate:open": _cache[
|
|
19103
|
-
"hide-on-click":
|
|
19130
|
+
"onUpdate:open": _cache[3] || (_cache[3] = $event => $data.isListShown = $event),
|
|
19131
|
+
"hide-on-click": false,
|
|
19104
19132
|
"max-height": $props.maxHeight,
|
|
19105
19133
|
"max-width": $props.maxWidth,
|
|
19106
19134
|
offset: $props.popoverOffset,
|
|
@@ -19123,10 +19151,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19123
19151
|
ref: "listWrapper",
|
|
19124
19152
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)([$data.DROPDOWN_PADDING_CLASSES[$props.padding], $props.listClass]),
|
|
19125
19153
|
onMouseleave: clearHighlightIndex,
|
|
19126
|
-
onFocusout:
|
|
19127
|
-
clearHighlightIndex;
|
|
19128
|
-
$options.onFocusOut;
|
|
19129
|
-
}
|
|
19154
|
+
onFocusout: clearHighlightIndex
|
|
19130
19155
|
}, [$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
19156
|
key: 0
|
|
19132
19157
|
}, 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 +19161,22 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19136
19161
|
}), null, 16, ["message"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
19137
19162
|
key: 2,
|
|
19138
19163
|
listProps: listProps
|
|
19139
|
-
})], 42,
|
|
19164
|
+
})], 42, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3)]),
|
|
19140
19165
|
_: 2
|
|
19141
19166
|
}, [_ctx.$slots.header ? {
|
|
19142
19167
|
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)]),
|
|
19168
|
+
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
19169
|
key: "0"
|
|
19150
19170
|
} : undefined, _ctx.$slots.footer ? {
|
|
19151
19171
|
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)]),
|
|
19172
|
+
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
19173
|
key: "1"
|
|
19159
|
-
} : undefined]), 1032, ["open", "
|
|
19174
|
+
} : undefined]), 1032, ["open", "max-height", "max-width", "offset", "sticky", "external-anchor", "content-width", "visually-hidden-close-label", "visually-hidden-close", "onOpened"])];
|
|
19160
19175
|
}),
|
|
19161
19176
|
_: 3
|
|
19162
19177
|
}, 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
19178
|
}
|
|
19164
|
-
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19179
|
+
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=6b1072ea
|
|
19165
19180
|
|
|
19166
19181
|
;// 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
19182
|
|
|
@@ -19423,6 +19438,12 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19423
19438
|
},
|
|
19424
19439
|
|
|
19425
19440
|
isListShown(val) {
|
|
19441
|
+
if (val) {
|
|
19442
|
+
window.addEventListener('mousedown', this.onFocusOut);
|
|
19443
|
+
} else {
|
|
19444
|
+
window.removeEventListener('mousedown', this.onFocusOut);
|
|
19445
|
+
}
|
|
19446
|
+
|
|
19426
19447
|
this.onOpened(val);
|
|
19427
19448
|
}
|
|
19428
19449
|
|
|
@@ -19487,17 +19508,14 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19487
19508
|
},
|
|
19488
19509
|
|
|
19489
19510
|
onFocusOut(e) {
|
|
19490
|
-
|
|
19491
|
-
|
|
19492
|
-
|
|
19493
|
-
|
|
19494
|
-
|
|
19495
|
-
|
|
19496
|
-
}) || this.visuallyHiddenClose; // If outside the combobox then close
|
|
19511
|
+
// Check if the focus change was to another target within the combobox component
|
|
19512
|
+
const isComboboxStillFocused = Object.keys(this.$refs).some(refName => {
|
|
19513
|
+
const ref = this.$refs[refName];
|
|
19514
|
+
return ref.$el ? ref.$el.contains(e.target) : ref.contains(e.target);
|
|
19515
|
+
});
|
|
19516
|
+
if (isComboboxStillFocused) return; // If outside the combobox then close
|
|
19497
19517
|
|
|
19498
|
-
|
|
19499
|
-
this.closeComboboxList();
|
|
19500
|
-
}
|
|
19518
|
+
this.closeComboboxList();
|
|
19501
19519
|
},
|
|
19502
19520
|
|
|
19503
19521
|
openOnArrowKeyPress() {
|
|
@@ -19518,7 +19536,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19518
19536
|
|
|
19519
19537
|
|
|
19520
19538
|
;
|
|
19521
|
-
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',
|
|
19539
|
+
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
19540
|
|
|
19523
19541
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_exports_);
|
|
19524
19542
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|