@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
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -155,7 +155,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".dt-default-list-item,.dt-default-list
|
|
|
155
155
|
|
|
156
156
|
/***/ }),
|
|
157
157
|
|
|
158
|
-
/***/
|
|
158
|
+
/***/ 731:
|
|
159
159
|
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
160
160
|
|
|
161
161
|
"use strict";
|
|
@@ -172,7 +172,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
172
172
|
|
|
173
173
|
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()));
|
|
174
174
|
// Module
|
|
175
|
-
___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)}", ""]);
|
|
175
|
+
___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)}", ""]);
|
|
176
176
|
// Exports
|
|
177
177
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
178
178
|
|
|
@@ -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";
|
|
@@ -1662,19 +1662,19 @@ var update = add("946fba9c", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
1662
1662
|
|
|
1663
1663
|
/***/ }),
|
|
1664
1664
|
|
|
1665
|
-
/***/
|
|
1665
|
+
/***/ 820:
|
|
1666
1666
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1667
1667
|
|
|
1668
1668
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
1669
1669
|
|
|
1670
1670
|
// load the styles
|
|
1671
|
-
var content = __webpack_require__(
|
|
1671
|
+
var content = __webpack_require__(731);
|
|
1672
1672
|
if(content.__esModule) content = content.default;
|
|
1673
1673
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
|
1674
1674
|
if(content.locals) module.exports = content.locals;
|
|
1675
1675
|
// add the styles to the DOM
|
|
1676
1676
|
var add = (__webpack_require__(402)/* ["default"] */ .Z)
|
|
1677
|
-
var update = add("
|
|
1677
|
+
var update = add("6b5ec190", content, true, {"sourceMap":false,"shadowMode":false});
|
|
1678
1678
|
|
|
1679
1679
|
/***/ }),
|
|
1680
1680
|
|
|
@@ -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
|
|
|
@@ -5186,9 +5186,9 @@ function combobox_loading_listvue_type_template_id_07d9971d_render(_ctx, _cache,
|
|
|
5186
5186
|
}
|
|
5187
5187
|
;// CONCATENATED MODULE: ./components/combobox/combobox_loading-list.vue?vue&type=template&id=07d9971d
|
|
5188
5188
|
|
|
5189
|
-
;// 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/list_item/list_item.vue?vue&type=template&id=
|
|
5189
|
+
;// 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/list_item/list_item.vue?vue&type=template&id=65cb4fdd
|
|
5190
5190
|
|
|
5191
|
-
function
|
|
5191
|
+
function list_itemvue_type_template_id_65cb4fdd_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5192
5192
|
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)({
|
|
5193
5193
|
id: $props.id,
|
|
5194
5194
|
class: ['dt-list-item d-ls-none', {
|
|
@@ -5215,7 +5215,7 @@ function list_itemvue_type_template_id_5817ca14_render(_ctx, _cache, $props, $se
|
|
|
5215
5215
|
_: 3
|
|
5216
5216
|
}, 16, ["id", "class", "tabindex", "role", "aria-selected"]);
|
|
5217
5217
|
}
|
|
5218
|
-
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=template&id=
|
|
5218
|
+
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=template&id=65cb4fdd
|
|
5219
5219
|
|
|
5220
5220
|
;// CONCATENATED MODULE: ./components/list_item/list_item_constants.js
|
|
5221
5221
|
const LIST_ITEM_TYPES = {
|
|
@@ -5475,9 +5475,9 @@ const default_list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(
|
|
|
5475
5475
|
});
|
|
5476
5476
|
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=script&lang=js
|
|
5477
5477
|
|
|
5478
|
-
// 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/list_item/list_item.vue?vue&type=style&index=0&id=
|
|
5479
|
-
var
|
|
5480
|
-
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=style&index=0&id=
|
|
5478
|
+
// 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/list_item/list_item.vue?vue&type=style&index=0&id=65cb4fdd&lang=less
|
|
5479
|
+
var list_itemvue_type_style_index_0_id_65cb4fdd_lang_less = __webpack_require__(820);
|
|
5480
|
+
;// CONCATENATED MODULE: ./components/list_item/list_item.vue?vue&type=style&index=0&id=65cb4fdd&lang=less
|
|
5481
5481
|
|
|
5482
5482
|
;// CONCATENATED MODULE: ./components/list_item/list_item.vue
|
|
5483
5483
|
|
|
@@ -5487,7 +5487,7 @@ var list_itemvue_type_style_index_0_id_5817ca14_lang_less = __webpack_require__(
|
|
|
5487
5487
|
;
|
|
5488
5488
|
|
|
5489
5489
|
|
|
5490
|
-
const list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(list_itemvue_type_script_lang_js, [['render',
|
|
5490
|
+
const list_item_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(list_itemvue_type_script_lang_js, [['render',list_itemvue_type_template_id_65cb4fdd_render]])
|
|
5491
5491
|
|
|
5492
5492
|
/* harmony default export */ const list_item = (list_item_exports_);
|
|
5493
5493
|
;// CONCATENATED MODULE: ./components/list_item/index.js
|
|
@@ -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
|
|
@@ -12976,8 +12987,8 @@ const popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(popovervue
|
|
|
12976
12987
|
;// CONCATENATED MODULE: ./components/dropdown/dropdown_constants.js
|
|
12977
12988
|
const DROPDOWN_PADDING_CLASSES = {
|
|
12978
12989
|
none: undefined,
|
|
12979
|
-
small: 'd-
|
|
12980
|
-
large: 'd-
|
|
12990
|
+
small: 'd-py0',
|
|
12991
|
+
large: 'd-py4'
|
|
12981
12992
|
};
|
|
12982
12993
|
;// 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]!./components/dropdown/dropdown.vue?vue&type=script&lang=js
|
|
12983
12994
|
|
|
@@ -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 = {
|
|
@@ -17183,8 +17195,8 @@ const CHIP_CLOSE_BUTTON_SIZE_MODIFIERS = {
|
|
|
17183
17195
|
};
|
|
17184
17196
|
const CHIP_ICON_SIZES = {
|
|
17185
17197
|
xs: '200',
|
|
17186
|
-
sm: '
|
|
17187
|
-
md: '
|
|
17198
|
+
sm: '200',
|
|
17199
|
+
md: '200'
|
|
17188
17200
|
};
|
|
17189
17201
|
/* harmony default export */ const chip_constants = ({
|
|
17190
17202
|
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
|
|
@@ -17995,25 +18007,25 @@ const toast_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(toastvue_typ
|
|
|
17995
18007
|
;// CONCATENATED MODULE: ./components/toast/index.js
|
|
17996
18008
|
|
|
17997
18009
|
|
|
17998
|
-
;// 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/toggle/toggle.vue?vue&type=template&id=
|
|
18010
|
+
;// 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/toggle/toggle.vue?vue&type=template&id=2b01a980
|
|
17999
18011
|
|
|
18000
|
-
const
|
|
18012
|
+
const togglevue_type_template_id_2b01a980_hoisted_1 = {
|
|
18001
18013
|
class: "d-d-flex d-ai-center"
|
|
18002
18014
|
};
|
|
18003
|
-
const
|
|
18004
|
-
const
|
|
18005
|
-
const
|
|
18015
|
+
const togglevue_type_template_id_2b01a980_hoisted_2 = ["for"];
|
|
18016
|
+
const togglevue_type_template_id_2b01a980_hoisted_3 = ["id", "role", "aria-checked", "disabled", "aria-disabled"];
|
|
18017
|
+
const togglevue_type_template_id_2b01a980_hoisted_4 = {
|
|
18006
18018
|
key: 0,
|
|
18007
18019
|
class: "d-toggle__inner"
|
|
18008
18020
|
};
|
|
18009
|
-
function
|
|
18010
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
18021
|
+
function togglevue_type_template_id_2b01a980_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18022
|
+
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)({
|
|
18011
18023
|
key: 0,
|
|
18012
18024
|
class: $props.labelClass,
|
|
18013
18025
|
for: $props.id
|
|
18014
18026
|
}, $props.labelChildProps, {
|
|
18015
18027
|
"data-qa": "toggle-label"
|
|
18016
|
-
}), [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 16,
|
|
18028
|
+
}), [(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)({
|
|
18017
18029
|
id: $props.id,
|
|
18018
18030
|
role: $options.toggleRole,
|
|
18019
18031
|
type: "button",
|
|
@@ -18021,9 +18033,9 @@ function togglevue_type_template_id_54ed4aa0_render(_ctx, _cache, $props, $setup
|
|
|
18021
18033
|
disabled: $props.disabled,
|
|
18022
18034
|
"aria-disabled": $props.disabled.toString(),
|
|
18023
18035
|
class: $options.toggleClasses
|
|
18024
|
-
}, $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",
|
|
18036
|
+
}, $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)]);
|
|
18025
18037
|
}
|
|
18026
|
-
;// CONCATENATED MODULE: ./components/toggle/toggle.vue?vue&type=template&id=
|
|
18038
|
+
;// CONCATENATED MODULE: ./components/toggle/toggle.vue?vue&type=template&id=2b01a980
|
|
18027
18039
|
|
|
18028
18040
|
;// CONCATENATED MODULE: ./components/toggle/toggle_constants.js
|
|
18029
18041
|
const TOGGLE_SIZE_MODIFIERS = {
|
|
@@ -18083,6 +18095,16 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
|
|
|
18083
18095
|
validator: v => TOGGLE_CHECKED_VALUES.includes(v)
|
|
18084
18096
|
},
|
|
18085
18097
|
|
|
18098
|
+
/**
|
|
18099
|
+
* Whether the component toggles on click. If you set this to false it means you will handle the toggling manually
|
|
18100
|
+
* via the checked prop or v-model. Change events will still be triggered.
|
|
18101
|
+
* @values true, false
|
|
18102
|
+
*/
|
|
18103
|
+
toggleOnClick: {
|
|
18104
|
+
type: Boolean,
|
|
18105
|
+
default: true
|
|
18106
|
+
},
|
|
18107
|
+
|
|
18086
18108
|
/**
|
|
18087
18109
|
* The size of the toggle.
|
|
18088
18110
|
* @values sm, md
|
|
@@ -18171,8 +18193,11 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
|
|
|
18171
18193
|
|
|
18172
18194
|
methods: {
|
|
18173
18195
|
toggleCheckedValue() {
|
|
18174
|
-
this
|
|
18175
|
-
|
|
18196
|
+
this.$emit('change', !this.internalChecked);
|
|
18197
|
+
|
|
18198
|
+
if (this.toggleOnClick) {
|
|
18199
|
+
this.internalChecked = !this.internalChecked;
|
|
18200
|
+
}
|
|
18176
18201
|
},
|
|
18177
18202
|
|
|
18178
18203
|
hasSlotLabel() {
|
|
@@ -18199,7 +18224,7 @@ const TOGGLE_CHECKED_VALUES = [false, true, 'mixed'];
|
|
|
18199
18224
|
|
|
18200
18225
|
|
|
18201
18226
|
;
|
|
18202
|
-
const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_type_script_lang_js, [['render',
|
|
18227
|
+
const toggle_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(togglevue_type_script_lang_js, [['render',togglevue_type_template_id_2b01a980_render]])
|
|
18203
18228
|
|
|
18204
18229
|
/* harmony default export */ const toggle = (toggle_exports_);
|
|
18205
18230
|
;// CONCATENATED MODULE: ./components/toggle/index.js
|
|
@@ -19052,11 +19077,17 @@ const root_layout_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(root_l
|
|
|
19052
19077
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
19053
19078
|
|
|
19054
19079
|
|
|
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=
|
|
19080
|
+
;// 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
19081
|
|
|
19057
|
-
const
|
|
19058
|
-
const
|
|
19059
|
-
|
|
19082
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1 = ["id"];
|
|
19083
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_2 = {
|
|
19084
|
+
ref: "header"
|
|
19085
|
+
};
|
|
19086
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3 = ["onMouseleave", "onFocusout"];
|
|
19087
|
+
const combobox_with_popovervue_type_template_id_6b1072ea_hoisted_4 = {
|
|
19088
|
+
ref: "footer"
|
|
19089
|
+
};
|
|
19090
|
+
function combobox_with_popovervue_type_template_id_6b1072ea_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19060
19091
|
const _component_combobox_loading_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-loading-list");
|
|
19061
19092
|
|
|
19062
19093
|
const _component_combobox_empty_list = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("combobox-empty-list");
|
|
@@ -19091,14 +19122,11 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19091
19122
|
onFocusin: _cache[0] || (_cache[0] = function () {
|
|
19092
19123
|
return $options.onFocusIn && $options.onFocusIn(...arguments);
|
|
19093
19124
|
}),
|
|
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"]))]
|
|
19125
|
+
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
19126
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "input", {
|
|
19099
19127
|
inputProps: inputProps,
|
|
19100
19128
|
onInput: $options.handleDisplayList
|
|
19101
|
-
})], 40,
|
|
19129
|
+
})], 40, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_1)];
|
|
19102
19130
|
}),
|
|
19103
19131
|
list: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(_ref2 => {
|
|
19104
19132
|
let {
|
|
@@ -19109,8 +19137,8 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19109
19137
|
return [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_dt_popover, {
|
|
19110
19138
|
ref: "popover",
|
|
19111
19139
|
open: $data.isListShown,
|
|
19112
|
-
"onUpdate:open": _cache[
|
|
19113
|
-
"hide-on-click":
|
|
19140
|
+
"onUpdate:open": _cache[3] || (_cache[3] = $event => $data.isListShown = $event),
|
|
19141
|
+
"hide-on-click": false,
|
|
19114
19142
|
"max-height": $props.maxHeight,
|
|
19115
19143
|
"max-width": $props.maxWidth,
|
|
19116
19144
|
offset: $props.popoverOffset,
|
|
@@ -19133,10 +19161,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19133
19161
|
ref: "listWrapper",
|
|
19134
19162
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)([$data.DROPDOWN_PADDING_CLASSES[$props.padding], $props.listClass]),
|
|
19135
19163
|
onMouseleave: clearHighlightIndex,
|
|
19136
|
-
onFocusout:
|
|
19137
|
-
clearHighlightIndex;
|
|
19138
|
-
$options.onFocusOut;
|
|
19139
|
-
}
|
|
19164
|
+
onFocusout: clearHighlightIndex
|
|
19140
19165
|
}, [$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
19166
|
key: 0
|
|
19142
19167
|
}, 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 +19171,22 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19146
19171
|
}), null, 16, ["message"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "list", {
|
|
19147
19172
|
key: 2,
|
|
19148
19173
|
listProps: listProps
|
|
19149
|
-
})], 42,
|
|
19174
|
+
})], 42, combobox_with_popovervue_type_template_id_6b1072ea_hoisted_3)]),
|
|
19150
19175
|
_: 2
|
|
19151
19176
|
}, [_ctx.$slots.header ? {
|
|
19152
19177
|
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)]),
|
|
19178
|
+
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
19179
|
key: "0"
|
|
19160
19180
|
} : undefined, _ctx.$slots.footer ? {
|
|
19161
19181
|
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)]),
|
|
19182
|
+
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
19183
|
key: "1"
|
|
19169
|
-
} : undefined]), 1032, ["open", "
|
|
19184
|
+
} : undefined]), 1032, ["open", "max-height", "max-width", "offset", "sticky", "external-anchor", "content-width", "visually-hidden-close-label", "visually-hidden-close", "onOpened"])];
|
|
19170
19185
|
}),
|
|
19171
19186
|
_: 3
|
|
19172
19187
|
}, 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
19188
|
}
|
|
19174
|
-
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
19189
|
+
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=6b1072ea
|
|
19175
19190
|
|
|
19176
19191
|
;// 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
19192
|
|
|
@@ -19433,6 +19448,12 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19433
19448
|
},
|
|
19434
19449
|
|
|
19435
19450
|
isListShown(val) {
|
|
19451
|
+
if (val) {
|
|
19452
|
+
window.addEventListener('mousedown', this.onFocusOut);
|
|
19453
|
+
} else {
|
|
19454
|
+
window.removeEventListener('mousedown', this.onFocusOut);
|
|
19455
|
+
}
|
|
19456
|
+
|
|
19436
19457
|
this.onOpened(val);
|
|
19437
19458
|
}
|
|
19438
19459
|
|
|
@@ -19497,17 +19518,14 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19497
19518
|
},
|
|
19498
19519
|
|
|
19499
19520
|
onFocusOut(e) {
|
|
19500
|
-
|
|
19501
|
-
|
|
19502
|
-
|
|
19503
|
-
|
|
19504
|
-
|
|
19505
|
-
|
|
19506
|
-
}) || this.visuallyHiddenClose; // If outside the combobox then close
|
|
19521
|
+
// Check if the focus change was to another target within the combobox component
|
|
19522
|
+
const isComboboxStillFocused = Object.keys(this.$refs).some(refName => {
|
|
19523
|
+
const ref = this.$refs[refName];
|
|
19524
|
+
return ref.$el ? ref.$el.contains(e.target) : ref.contains(e.target);
|
|
19525
|
+
});
|
|
19526
|
+
if (isComboboxStillFocused) return; // If outside the combobox then close
|
|
19507
19527
|
|
|
19508
|
-
|
|
19509
|
-
this.closeComboboxList();
|
|
19510
|
-
}
|
|
19528
|
+
this.closeComboboxList();
|
|
19511
19529
|
},
|
|
19512
19530
|
|
|
19513
19531
|
openOnArrowKeyPress() {
|
|
@@ -19528,7 +19546,7 @@ function combobox_with_popovervue_type_template_id_35131c6d_render(_ctx, _cache,
|
|
|
19528
19546
|
|
|
19529
19547
|
|
|
19530
19548
|
;
|
|
19531
|
-
const combobox_with_popover_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(combobox_with_popovervue_type_script_lang_js, [['render',
|
|
19549
|
+
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
19550
|
|
|
19533
19551
|
/* harmony default export */ const combobox_with_popover = (combobox_with_popover_exports_);
|
|
19534
19552
|
;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
|