@dialpad/dialtone-vue 2.49.0 → 2.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dialtone-vue.common.js +102 -91
- package/dist/dialtone-vue.umd.js +120 -109
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +3 -3
|
@@ -7999,8 +7999,8 @@ return [_c('ul',{ref:"listWrapper",class:_vm.listClasses,attrs:{"id":_vm.listId,
|
|
|
7999
7999
|
var dropdownvue_type_template_id_70cb2bdc_staticRenderFns = []
|
|
8000
8000
|
|
|
8001
8001
|
|
|
8002
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=
|
|
8003
|
-
var
|
|
8002
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/popover/popover.vue?vue&type=template&id=47e76c3e&
|
|
8003
|
+
var popovervue_type_template_id_47e76c3e_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.modal && _vm.isOpen)?_c('portal',[_c('div',{staticClass:"d-modal--transparent",attrs:{"aria-hidden":_vm.modal && _vm.isOpen ? 'false' : 'true'},on:{"click":function($event){$event.preventDefault();$event.stopPropagation();}}})]):_vm._e(),_c(_vm.elementType,_vm._g({ref:"popover",tag:"component",class:['d-popover', { 'd-popover__anchor--opened': _vm.isOpen }],attrs:{"data-qa":"dt-popover-container"}},_vm.$listeners),[_c('div',{ref:"anchor",attrs:{"id":!_vm.ariaLabelledby && _vm.labelledBy,"data-qa":"dt-popover-anchor","tabindex":_vm.openOnContext ? 0 : undefined},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"contextmenu":_vm.onContext,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.preventDefault();return _vm.onArrowKeyPress.apply(null, arguments)}],"!keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"escape",undefined,$event.key,undefined)){ return null; }return _vm.closePopover.apply(null, arguments)}}},[_vm._t("anchor",null,{"attrs":{
|
|
8004
8004
|
'aria-expanded': _vm.isOpen.toString(),
|
|
8005
8005
|
'aria-controls': _vm.id,
|
|
8006
8006
|
'aria-haspopup': _vm.role,
|
|
@@ -8011,7 +8011,7 @@ var popovervue_type_template_id_c1b2b9f2_render = function () {var _vm=this;var
|
|
|
8011
8011
|
'd-popover__content',
|
|
8012
8012
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
8013
8013
|
_vm.contentClass ],attrs:{"data-qa":"dt-popover-content"}},[_vm._t("content",null,{"close":_vm.closePopover})],2),(_vm.$slots.footerContent)?_c('popover-header-footer',{ref:"popover__footer",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"type":"footer","content-class":_vm.footerClass},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("footerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),(_vm.showVisuallyHiddenClose)?_c('sr-only-close-button',{attrs:{"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel},on:{"close":_vm.closePopover}}):_vm._e()],1)],1)],1)}
|
|
8014
|
-
var
|
|
8014
|
+
var popovervue_type_template_id_47e76c3e_staticRenderFns = []
|
|
8015
8015
|
|
|
8016
8016
|
|
|
8017
8017
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -13363,39 +13363,49 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13363
13363
|
},
|
|
13364
13364
|
|
|
13365
13365
|
modal(modal) {
|
|
13366
|
-
|
|
13367
|
-
|
|
13366
|
+
var _this$tip;
|
|
13367
|
+
|
|
13368
|
+
(_this$tip = this.tip) === null || _this$tip === void 0 ? void 0 : _this$tip.setProps({
|
|
13369
|
+
zIndex: modal ? 650 : this.calculateAnchorZindex()
|
|
13368
13370
|
});
|
|
13369
13371
|
},
|
|
13370
13372
|
|
|
13371
13373
|
offset(offset) {
|
|
13372
|
-
|
|
13374
|
+
var _this$tip2;
|
|
13375
|
+
|
|
13376
|
+
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.setProps({
|
|
13373
13377
|
offset
|
|
13374
13378
|
});
|
|
13375
13379
|
},
|
|
13376
13380
|
|
|
13377
13381
|
sticky(sticky) {
|
|
13378
|
-
|
|
13382
|
+
var _this$tip3;
|
|
13383
|
+
|
|
13384
|
+
(_this$tip3 = this.tip) === null || _this$tip3 === void 0 ? void 0 : _this$tip3.setProps({
|
|
13379
13385
|
sticky
|
|
13380
13386
|
});
|
|
13381
13387
|
},
|
|
13382
13388
|
|
|
13383
13389
|
fallbackPlacements() {
|
|
13384
|
-
|
|
13390
|
+
var _this$tip4;
|
|
13391
|
+
|
|
13392
|
+
(_this$tip4 = this.tip) === null || _this$tip4 === void 0 ? void 0 : _this$tip4.setProps({
|
|
13385
13393
|
popperOptions: this.popperOptions()
|
|
13386
13394
|
});
|
|
13387
13395
|
},
|
|
13388
13396
|
|
|
13389
13397
|
tether() {
|
|
13390
|
-
|
|
13398
|
+
var _this$tip5;
|
|
13399
|
+
|
|
13400
|
+
(_this$tip5 = this.tip) === null || _this$tip5 === void 0 ? void 0 : _this$tip5.setProps({
|
|
13391
13401
|
popperOptions: this.popperOptions()
|
|
13392
13402
|
});
|
|
13393
13403
|
},
|
|
13394
13404
|
|
|
13395
13405
|
placement(placement) {
|
|
13396
|
-
var _this$
|
|
13406
|
+
var _this$tip6;
|
|
13397
13407
|
|
|
13398
|
-
(_this$
|
|
13408
|
+
(_this$tip6 = this.tip) === null || _this$tip6 === void 0 ? void 0 : _this$tip6.setProps({
|
|
13399
13409
|
placement
|
|
13400
13410
|
});
|
|
13401
13411
|
},
|
|
@@ -13411,65 +13421,31 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13411
13421
|
|
|
13412
13422
|
isOpen(isOpen, isPrev) {
|
|
13413
13423
|
if (isOpen) {
|
|
13414
|
-
|
|
13415
|
-
passive: false
|
|
13416
|
-
});
|
|
13417
|
-
this.tip.setProps({
|
|
13418
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex()
|
|
13419
|
-
});
|
|
13420
|
-
this.tip.show();
|
|
13421
|
-
this.addClosePopoverEventListener();
|
|
13424
|
+
this.initTippyInstance();
|
|
13422
13425
|
} else if (!isOpen && isPrev !== isOpen) {
|
|
13423
|
-
this.
|
|
13426
|
+
this.removeEventListeners();
|
|
13424
13427
|
this.tip.hide();
|
|
13425
|
-
window.removeEventListener('wheel', this.preventScrolling, {
|
|
13426
|
-
passive: false
|
|
13427
|
-
});
|
|
13428
13428
|
}
|
|
13429
13429
|
}
|
|
13430
13430
|
|
|
13431
13431
|
},
|
|
13432
13432
|
|
|
13433
13433
|
mounted() {
|
|
13434
|
-
// support single anchor for popover, not multi anchor
|
|
13435
13434
|
const externalAnchorEl = document.getElementById(this.externalAnchor);
|
|
13436
13435
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
13437
|
-
this.popoverContentEl = this.$refs.content.$el;
|
|
13438
|
-
|
|
13439
|
-
if (this.contentWidth === 'anchor') {
|
|
13440
|
-
window.addEventListener('resize', this.onResize);
|
|
13441
|
-
}
|
|
13442
|
-
|
|
13443
|
-
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
13444
|
-
popperOptions: this.popperOptions(),
|
|
13445
|
-
contentElement: this.popoverContentEl,
|
|
13446
|
-
placement: this.placement,
|
|
13447
|
-
offset: this.offset,
|
|
13448
|
-
sticky: this.sticky,
|
|
13449
|
-
appendTo: this.appendTo,
|
|
13450
|
-
interactive: true,
|
|
13451
|
-
trigger: 'manual',
|
|
13452
|
-
// We have to manage hideOnClick functionality manually to handle
|
|
13453
|
-
// popover within popover situations.
|
|
13454
|
-
hideOnClick: false,
|
|
13455
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
13456
|
-
onClickOutside: this.onClickOutside,
|
|
13457
|
-
onShow: this.onShow
|
|
13458
|
-
}); // immediate watcher fires before mounted, so have this here in case
|
|
13459
|
-
// show prop was initially set to true.
|
|
13436
|
+
this.popoverContentEl = this.$refs.content.$el;
|
|
13460
13437
|
|
|
13461
13438
|
if (this.isOpen) {
|
|
13462
|
-
this.
|
|
13439
|
+
this.initTippyInstance();
|
|
13463
13440
|
}
|
|
13464
13441
|
},
|
|
13465
13442
|
|
|
13466
13443
|
beforeDestroy() {
|
|
13467
|
-
var _this$
|
|
13444
|
+
var _this$tip7;
|
|
13468
13445
|
|
|
13469
|
-
|
|
13470
|
-
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.destroy();
|
|
13446
|
+
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
|
|
13471
13447
|
this.removeReferences();
|
|
13472
|
-
this.
|
|
13448
|
+
this.removeEventListeners();
|
|
13473
13449
|
},
|
|
13474
13450
|
|
|
13475
13451
|
/******************
|
|
@@ -13511,18 +13487,16 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13511
13487
|
(_this$open = this.open) !== null && _this$open !== void 0 ? _this$open : this.anchorEl.contains(e.target) && !((_this$anchorEl = this.anchorEl) !== null && _this$anchorEl !== void 0 && _this$anchorEl.disabled) && this.toggleOpen();
|
|
13512
13488
|
},
|
|
13513
13489
|
|
|
13514
|
-
onContext(event) {
|
|
13515
|
-
var _this$tip3;
|
|
13516
|
-
|
|
13490
|
+
async onContext(event) {
|
|
13517
13491
|
if (!this.openOnContext) {
|
|
13518
13492
|
return;
|
|
13519
13493
|
}
|
|
13520
13494
|
|
|
13521
13495
|
event.preventDefault();
|
|
13522
|
-
|
|
13523
|
-
|
|
13524
|
-
});
|
|
13496
|
+
this.isOpen = true;
|
|
13497
|
+
await this.$nextTick();
|
|
13525
13498
|
this.tip.setProps({
|
|
13499
|
+
placement: 'right-start',
|
|
13526
13500
|
getReferenceClientRect: () => ({
|
|
13527
13501
|
width: 0,
|
|
13528
13502
|
height: 0,
|
|
@@ -13532,7 +13506,6 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13532
13506
|
right: event.clientX
|
|
13533
13507
|
})
|
|
13534
13508
|
});
|
|
13535
|
-
this.toggleOpen();
|
|
13536
13509
|
},
|
|
13537
13510
|
|
|
13538
13511
|
toggleOpen() {
|
|
@@ -13551,12 +13524,26 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13551
13524
|
}
|
|
13552
13525
|
},
|
|
13553
13526
|
|
|
13554
|
-
|
|
13527
|
+
addEventListeners() {
|
|
13555
13528
|
window.addEventListener('dt-popover-close', this.closePopover);
|
|
13529
|
+
window.addEventListener('wheel', this.preventScrolling, {
|
|
13530
|
+
passive: false
|
|
13531
|
+
}); // align popover content width when contentWidth is 'anchor'
|
|
13532
|
+
|
|
13533
|
+
if (this.contentWidth === 'anchor') {
|
|
13534
|
+
window.addEventListener('resize', this.onResize);
|
|
13535
|
+
}
|
|
13556
13536
|
},
|
|
13557
13537
|
|
|
13558
|
-
|
|
13538
|
+
removeEventListeners() {
|
|
13559
13539
|
window.removeEventListener('dt-popover-close', this.closePopover);
|
|
13540
|
+
window.removeEventListener('wheel', this.preventScrolling, {
|
|
13541
|
+
passive: false
|
|
13542
|
+
});
|
|
13543
|
+
|
|
13544
|
+
if (this.contentWidth === 'anchor') {
|
|
13545
|
+
window.removeEventListener('resize', this.onResize);
|
|
13546
|
+
}
|
|
13560
13547
|
},
|
|
13561
13548
|
|
|
13562
13549
|
closePopover() {
|
|
@@ -13588,15 +13575,15 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13588
13575
|
},
|
|
13589
13576
|
|
|
13590
13577
|
async onLeaveTransitionComplete() {
|
|
13591
|
-
var _this$
|
|
13578
|
+
var _this$tip8;
|
|
13592
13579
|
|
|
13593
13580
|
if (this.modal) {
|
|
13594
|
-
this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
13581
|
+
await this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
13595
13582
|
|
|
13596
13583
|
await this.$nextTick();
|
|
13597
13584
|
}
|
|
13598
13585
|
|
|
13599
|
-
(_this$
|
|
13586
|
+
(_this$tip8 = this.tip) === null || _this$tip8 === void 0 ? void 0 : _this$tip8.unmount();
|
|
13600
13587
|
this.$emit('opened', false);
|
|
13601
13588
|
|
|
13602
13589
|
if (this.open !== null) {
|
|
@@ -13690,6 +13677,30 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13690
13677
|
// if there are no focusable elements at all focus the dialog itself
|
|
13691
13678
|
this.$refs.content.$el.focus();
|
|
13692
13679
|
}
|
|
13680
|
+
},
|
|
13681
|
+
|
|
13682
|
+
initTippyInstance() {
|
|
13683
|
+
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
13684
|
+
popperOptions: this.popperOptions(),
|
|
13685
|
+
contentElement: this.popoverContentEl,
|
|
13686
|
+
placement: this.placement,
|
|
13687
|
+
offset: this.offset,
|
|
13688
|
+
sticky: this.sticky,
|
|
13689
|
+
appendTo: this.appendTo,
|
|
13690
|
+
interactive: true,
|
|
13691
|
+
trigger: 'manual',
|
|
13692
|
+
// We have to manage hideOnClick functionality manually to handle
|
|
13693
|
+
// popover within popover situations.
|
|
13694
|
+
hideOnClick: false,
|
|
13695
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
13696
|
+
onClickOutside: this.onClickOutside,
|
|
13697
|
+
onShow: this.onShow
|
|
13698
|
+
});
|
|
13699
|
+
this.tip.setProps({
|
|
13700
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex()
|
|
13701
|
+
});
|
|
13702
|
+
this.tip.show();
|
|
13703
|
+
this.addEventListeners();
|
|
13693
13704
|
}
|
|
13694
13705
|
|
|
13695
13706
|
}
|
|
@@ -13711,8 +13722,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(230);
|
|
|
13711
13722
|
|
|
13712
13723
|
var popover_component = normalizeComponent(
|
|
13713
13724
|
popover_popovervue_type_script_lang_js_,
|
|
13714
|
-
|
|
13715
|
-
|
|
13725
|
+
popovervue_type_template_id_47e76c3e_render,
|
|
13726
|
+
popovervue_type_template_id_47e76c3e_staticRenderFns,
|
|
13716
13727
|
false,
|
|
13717
13728
|
null,
|
|
13718
13729
|
null,
|
|
@@ -18252,9 +18263,9 @@ var checkbox_group_component = normalizeComponent(
|
|
|
18252
18263
|
/* harmony default export */ const checkbox_group = (checkbox_group_component.exports);
|
|
18253
18264
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
18254
18265
|
|
|
18255
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/chip/chip.vue?vue&type=template&id=
|
|
18256
|
-
var
|
|
18257
|
-
var
|
|
18266
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/chip/chip.vue?vue&type=template&id=9f4db318&
|
|
18267
|
+
var chipvue_type_template_id_9f4db318_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:"d-chip"},[_c(_vm.interactive ? 'button' : 'span',_vm._g({tag:"component",class:_vm.chipClasses(),attrs:{"id":_vm.id,"type":_vm.interactive && 'button',"data-qa":"dt-chip","aria-labelledby":_vm.ariaLabel ? undefined : (_vm.id + "-content"),"aria-label":_vm.ariaLabel}},_vm.chipListeners),[(_vm.$slots.icon)?_c('span',{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[_vm._t("icon")],2):(_vm.$slots.avatar)?_c('span',{attrs:{"data-qa":"dt-chip-avatar"}},[_vm._t("avatar")],2):_vm._e(),(_vm.$slots.default)?_c('span',{class:['d-truncate', 'd-chip__text', _vm.contentClass],attrs:{"id":(_vm.id + "-content"),"data-qa":"dt-chip-label"}},[_vm._t("default")],2):_vm._e()]),(!_vm.hideClose)?_c('dt-button',_vm._b({class:_vm.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":_vm.closeButtonProps.ariaLabel},on:{"click":function($event){return _vm.$emit('close')}},scopedSlots:_vm._u([{key:"icon",fn:function(){return [_c('dt-icon',{attrs:{"name":"close","size":_vm.closeButtonIconSize}})]},proxy:true}],null,false,1192647893)},'dt-button',_vm.closeButtonProps,false)):_vm._e()],1)}
|
|
18268
|
+
var chipvue_type_template_id_9f4db318_staticRenderFns = []
|
|
18258
18269
|
|
|
18259
18270
|
|
|
18260
18271
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
@@ -18510,8 +18521,8 @@ const CHIP_ICON_SIZES = {
|
|
|
18510
18521
|
;
|
|
18511
18522
|
var chip_component = normalizeComponent(
|
|
18512
18523
|
chip_chipvue_type_script_lang_js_,
|
|
18513
|
-
|
|
18514
|
-
|
|
18524
|
+
chipvue_type_template_id_9f4db318_render,
|
|
18525
|
+
chipvue_type_template_id_9f4db318_staticRenderFns,
|
|
18515
18526
|
false,
|
|
18516
18527
|
null,
|
|
18517
18528
|
null,
|
|
@@ -20394,15 +20405,15 @@ var root_layout_component = normalizeComponent(
|
|
|
20394
20405
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
20395
20406
|
|
|
20396
20407
|
|
|
20397
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=
|
|
20398
|
-
var
|
|
20408
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=template&id=ad3e7dce&
|
|
20409
|
+
var combobox_with_popovervue_type_template_id_ad3e7dce_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"loading":_vm.loading,"label":_vm.label,"label-visible":_vm.labelVisible,"size":_vm.size,"description":_vm.description,"empty-list":_vm.emptyList,"empty-state-message":_vm.emptyStateMessage,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
|
|
20399
20410
|
var inputProps = ref.inputProps;
|
|
20400
|
-
return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"
|
|
20411
|
+
return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }return _vm.openOnArrowKeyPress($event)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }return _vm.openOnArrowKeyPress($event)}]}},[_vm._t("input",null,{"inputProps":inputProps,"onInput":_vm.handleDisplayList})],2)]}},{key:"list",fn:function(ref){
|
|
20401
20412
|
var opened = ref.opened;
|
|
20402
20413
|
var listProps = ref.listProps;
|
|
20403
20414
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
20404
|
-
return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":
|
|
20405
|
-
var
|
|
20415
|
+
return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":false,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","initial-focus-element":"none","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false,"visually-hidden-close-label":_vm.visuallyHiddenCloseLabel,"visually-hidden-close":_vm.visuallyHiddenClose},on:{"update:open":function($event){_vm.isListShown=$event},"opened":function($event){return opened($event, arguments[1]);}},scopedSlots:_vm._u([{key:"headerContent",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"content",fn:function(){return [_c('div',{ref:"listWrapper",class:[_vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass],on:{"mouseleave":clearHighlightIndex,"focusout":clearHighlightIndex}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(_vm.emptyList && _vm.emptyStateMessage)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',listProps,false)):_vm._t("list",null,{"listProps":listProps})],2)]},proxy:true},{key:"footerContent",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
|
|
20416
|
+
var combobox_with_popovervue_type_template_id_ad3e7dce_staticRenderFns = []
|
|
20406
20417
|
|
|
20407
20418
|
|
|
20408
20419
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue?vue&type=script&lang=js&
|
|
@@ -20509,9 +20520,6 @@ var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
|
20509
20520
|
//
|
|
20510
20521
|
//
|
|
20511
20522
|
//
|
|
20512
|
-
//
|
|
20513
|
-
//
|
|
20514
|
-
//
|
|
20515
20523
|
|
|
20516
20524
|
|
|
20517
20525
|
|
|
@@ -20771,6 +20779,12 @@ var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
|
20771
20779
|
},
|
|
20772
20780
|
|
|
20773
20781
|
isListShown(val) {
|
|
20782
|
+
if (val) {
|
|
20783
|
+
window.addEventListener('mousedown', this.onFocusOut);
|
|
20784
|
+
} else {
|
|
20785
|
+
window.removeEventListener('mousedown', this.onFocusOut);
|
|
20786
|
+
}
|
|
20787
|
+
|
|
20774
20788
|
this.onOpened(val);
|
|
20775
20789
|
}
|
|
20776
20790
|
|
|
@@ -20835,17 +20849,14 @@ var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
|
20835
20849
|
},
|
|
20836
20850
|
|
|
20837
20851
|
onFocusOut(e) {
|
|
20838
|
-
|
|
20839
|
-
|
|
20840
|
-
|
|
20841
|
-
|
|
20842
|
-
|
|
20843
|
-
|
|
20844
|
-
}) || this.visuallyHiddenClose; // If outside the combobox then close
|
|
20852
|
+
// Check if the focus change was to another target within the combobox component
|
|
20853
|
+
const isComboboxStillFocused = Object.keys(this.$refs).some(refName => {
|
|
20854
|
+
const ref = this.$refs[refName];
|
|
20855
|
+
return ref.$el ? ref.$el.contains(e.target) : ref.contains(e.target);
|
|
20856
|
+
});
|
|
20857
|
+
if (isComboboxStillFocused) return; // If outside the combobox then close
|
|
20845
20858
|
|
|
20846
|
-
|
|
20847
|
-
this.closeComboboxList();
|
|
20848
|
-
}
|
|
20859
|
+
this.closeComboboxList();
|
|
20849
20860
|
},
|
|
20850
20861
|
|
|
20851
20862
|
openOnArrowKeyPress() {
|
|
@@ -20870,8 +20881,8 @@ var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
|
20870
20881
|
;
|
|
20871
20882
|
var combobox_with_popover_component = normalizeComponent(
|
|
20872
20883
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
20873
|
-
|
|
20874
|
-
|
|
20884
|
+
combobox_with_popovervue_type_template_id_ad3e7dce_render,
|
|
20885
|
+
combobox_with_popovervue_type_template_id_ad3e7dce_staticRenderFns,
|
|
20875
20886
|
false,
|
|
20876
20887
|
null,
|
|
20877
20888
|
null,
|