@dialpad/dialtone-vue 2.48.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 +129 -95
- package/dist/dialtone-vue.umd.js +127 -93
- package/dist/dialtone-vue.umd.min.js +1 -1
- package/package.json +3 -3
package/dist/dialtone-vue.umd.js
CHANGED
|
@@ -8009,19 +8009,19 @@ return [_c('ul',{ref:"listWrapper",class:_vm.listClasses,attrs:{"id":_vm.listId,
|
|
|
8009
8009
|
var dropdownvue_type_template_id_70cb2bdc_staticRenderFns = []
|
|
8010
8010
|
|
|
8011
8011
|
|
|
8012
|
-
;// 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=
|
|
8013
|
-
var
|
|
8012
|
+
;// 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&
|
|
8013
|
+
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":{
|
|
8014
8014
|
'aria-expanded': _vm.isOpen.toString(),
|
|
8015
8015
|
'aria-controls': _vm.id,
|
|
8016
8016
|
'aria-haspopup': _vm.role,
|
|
8017
8017
|
}})],2),_c('dt-lazy-show',_vm._g({ref:"content",class:['d-popover__dialog', { 'd-popover__dialog--modal': _vm.modal }, _vm.dialogClass],style:({
|
|
8018
8018
|
'max-height': _vm.maxHeight,
|
|
8019
8019
|
'max-width': _vm.maxWidth,
|
|
8020
|
-
}),attrs:{"id":_vm.id,"role":_vm.role,"data-qa":"dt-popover","aria-hidden":("" + (!_vm.isOpen)),"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"aria-modal":("" + (!_vm.modal)),"transition":_vm.transition,"show":_vm.isOpen,"tabindex":_vm.contentTabindex,"appear":""}
|
|
8020
|
+
}),attrs:{"id":_vm.id,"role":_vm.role,"data-qa":"dt-popover","aria-hidden":("" + (!_vm.isOpen)),"aria-labelledby":_vm.labelledBy,"aria-label":_vm.ariaLabel,"aria-modal":("" + (!_vm.modal)),"transition":_vm.transition,"show":_vm.isOpen,"tabindex":_vm.contentTabindex,"appear":""}},_vm.popoverListeners),[(_vm.$slots.headerContent || _vm.showCloseButton)?_c('popover-header-footer',{ref:"popover__header",class:_vm.POPOVER_HEADER_FOOTER_PADDING_CLASSES[_vm.padding],attrs:{"content-class":_vm.headerClass,"type":"header","show-close-button":_vm.showCloseButton,"close-button-props":_vm.closeButtonProps},on:{"close":_vm.closePopover},scopedSlots:_vm._u([{key:"content",fn:function(){return [_vm._t("headerContent",null,{"close":_vm.closePopover})]},proxy:true}],null,true)}):_vm._e(),_c('div',{ref:"popover__content",class:[
|
|
8021
8021
|
'd-popover__content',
|
|
8022
8022
|
_vm.POPOVER_PADDING_CLASSES[_vm.padding],
|
|
8023
8023
|
_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)}
|
|
8024
|
-
var
|
|
8024
|
+
var popovervue_type_template_id_47e76c3e_staticRenderFns = []
|
|
8025
8025
|
|
|
8026
8026
|
|
|
8027
8027
|
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
|
|
@@ -12969,8 +12969,6 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
12969
12969
|
//
|
|
12970
12970
|
//
|
|
12971
12971
|
//
|
|
12972
|
-
//
|
|
12973
|
-
//
|
|
12974
12972
|
|
|
12975
12973
|
/* eslint-disable max-lines */
|
|
12976
12974
|
|
|
@@ -13375,39 +13373,49 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13375
13373
|
},
|
|
13376
13374
|
|
|
13377
13375
|
modal(modal) {
|
|
13378
|
-
|
|
13379
|
-
|
|
13376
|
+
var _this$tip;
|
|
13377
|
+
|
|
13378
|
+
(_this$tip = this.tip) === null || _this$tip === void 0 ? void 0 : _this$tip.setProps({
|
|
13379
|
+
zIndex: modal ? 650 : this.calculateAnchorZindex()
|
|
13380
13380
|
});
|
|
13381
13381
|
},
|
|
13382
13382
|
|
|
13383
13383
|
offset(offset) {
|
|
13384
|
-
|
|
13384
|
+
var _this$tip2;
|
|
13385
|
+
|
|
13386
|
+
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.setProps({
|
|
13385
13387
|
offset
|
|
13386
13388
|
});
|
|
13387
13389
|
},
|
|
13388
13390
|
|
|
13389
13391
|
sticky(sticky) {
|
|
13390
|
-
|
|
13392
|
+
var _this$tip3;
|
|
13393
|
+
|
|
13394
|
+
(_this$tip3 = this.tip) === null || _this$tip3 === void 0 ? void 0 : _this$tip3.setProps({
|
|
13391
13395
|
sticky
|
|
13392
13396
|
});
|
|
13393
13397
|
},
|
|
13394
13398
|
|
|
13395
13399
|
fallbackPlacements() {
|
|
13396
|
-
|
|
13400
|
+
var _this$tip4;
|
|
13401
|
+
|
|
13402
|
+
(_this$tip4 = this.tip) === null || _this$tip4 === void 0 ? void 0 : _this$tip4.setProps({
|
|
13397
13403
|
popperOptions: this.popperOptions()
|
|
13398
13404
|
});
|
|
13399
13405
|
},
|
|
13400
13406
|
|
|
13401
13407
|
tether() {
|
|
13402
|
-
|
|
13408
|
+
var _this$tip5;
|
|
13409
|
+
|
|
13410
|
+
(_this$tip5 = this.tip) === null || _this$tip5 === void 0 ? void 0 : _this$tip5.setProps({
|
|
13403
13411
|
popperOptions: this.popperOptions()
|
|
13404
13412
|
});
|
|
13405
13413
|
},
|
|
13406
13414
|
|
|
13407
13415
|
placement(placement) {
|
|
13408
|
-
var _this$
|
|
13416
|
+
var _this$tip6;
|
|
13409
13417
|
|
|
13410
|
-
(_this$
|
|
13418
|
+
(_this$tip6 = this.tip) === null || _this$tip6 === void 0 ? void 0 : _this$tip6.setProps({
|
|
13411
13419
|
placement
|
|
13412
13420
|
});
|
|
13413
13421
|
},
|
|
@@ -13423,13 +13431,9 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13423
13431
|
|
|
13424
13432
|
isOpen(isOpen, isPrev) {
|
|
13425
13433
|
if (isOpen) {
|
|
13426
|
-
this.
|
|
13427
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex()
|
|
13428
|
-
});
|
|
13429
|
-
this.tip.show();
|
|
13430
|
-
this.addClosePopoverEventListener();
|
|
13434
|
+
this.initTippyInstance();
|
|
13431
13435
|
} else if (!isOpen && isPrev !== isOpen) {
|
|
13432
|
-
this.
|
|
13436
|
+
this.removeEventListeners();
|
|
13433
13437
|
this.tip.hide();
|
|
13434
13438
|
}
|
|
13435
13439
|
}
|
|
@@ -13437,45 +13441,21 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13437
13441
|
},
|
|
13438
13442
|
|
|
13439
13443
|
mounted() {
|
|
13440
|
-
// support single anchor for popover, not multi anchor
|
|
13441
13444
|
const externalAnchorEl = document.getElementById(this.externalAnchor);
|
|
13442
13445
|
this.anchorEl = externalAnchorEl !== null && externalAnchorEl !== void 0 ? externalAnchorEl : this.$refs.anchor.children[0];
|
|
13443
|
-
this.popoverContentEl = this.$refs.content.$el;
|
|
13444
|
-
|
|
13445
|
-
if (this.contentWidth === 'anchor') {
|
|
13446
|
-
window.addEventListener('resize', this.onResize);
|
|
13447
|
-
}
|
|
13448
|
-
|
|
13449
|
-
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
13450
|
-
popperOptions: this.popperOptions(),
|
|
13451
|
-
contentElement: this.popoverContentEl,
|
|
13452
|
-
placement: this.placement,
|
|
13453
|
-
offset: this.offset,
|
|
13454
|
-
sticky: this.sticky,
|
|
13455
|
-
appendTo: this.appendTo,
|
|
13456
|
-
interactive: true,
|
|
13457
|
-
trigger: 'manual',
|
|
13458
|
-
// We have to manage hideOnClick functionality manually to handle
|
|
13459
|
-
// popover within popover situations.
|
|
13460
|
-
hideOnClick: false,
|
|
13461
|
-
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
13462
|
-
onClickOutside: this.onClickOutside,
|
|
13463
|
-
onShow: this.onShow
|
|
13464
|
-
}); // immediate watcher fires before mounted, so have this here in case
|
|
13465
|
-
// show prop was initially set to true.
|
|
13446
|
+
this.popoverContentEl = this.$refs.content.$el;
|
|
13466
13447
|
|
|
13467
13448
|
if (this.isOpen) {
|
|
13468
|
-
this.
|
|
13449
|
+
this.initTippyInstance();
|
|
13469
13450
|
}
|
|
13470
13451
|
},
|
|
13471
13452
|
|
|
13472
13453
|
beforeDestroy() {
|
|
13473
|
-
var _this$
|
|
13454
|
+
var _this$tip7;
|
|
13474
13455
|
|
|
13475
|
-
|
|
13476
|
-
(_this$tip2 = this.tip) === null || _this$tip2 === void 0 ? void 0 : _this$tip2.destroy();
|
|
13456
|
+
(_this$tip7 = this.tip) === null || _this$tip7 === void 0 ? void 0 : _this$tip7.destroy();
|
|
13477
13457
|
this.removeReferences();
|
|
13478
|
-
this.
|
|
13458
|
+
this.removeEventListeners();
|
|
13479
13459
|
},
|
|
13480
13460
|
|
|
13481
13461
|
/******************
|
|
@@ -13517,18 +13497,16 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13517
13497
|
(_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();
|
|
13518
13498
|
},
|
|
13519
13499
|
|
|
13520
|
-
onContext(event) {
|
|
13521
|
-
var _this$tip3;
|
|
13522
|
-
|
|
13500
|
+
async onContext(event) {
|
|
13523
13501
|
if (!this.openOnContext) {
|
|
13524
13502
|
return;
|
|
13525
13503
|
}
|
|
13526
13504
|
|
|
13527
13505
|
event.preventDefault();
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
});
|
|
13506
|
+
this.isOpen = true;
|
|
13507
|
+
await this.$nextTick();
|
|
13531
13508
|
this.tip.setProps({
|
|
13509
|
+
placement: 'right-start',
|
|
13532
13510
|
getReferenceClientRect: () => ({
|
|
13533
13511
|
width: 0,
|
|
13534
13512
|
height: 0,
|
|
@@ -13538,7 +13516,6 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13538
13516
|
right: event.clientX
|
|
13539
13517
|
})
|
|
13540
13518
|
});
|
|
13541
|
-
this.toggleOpen();
|
|
13542
13519
|
},
|
|
13543
13520
|
|
|
13544
13521
|
toggleOpen() {
|
|
@@ -13557,18 +13534,40 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13557
13534
|
}
|
|
13558
13535
|
},
|
|
13559
13536
|
|
|
13560
|
-
|
|
13537
|
+
addEventListeners() {
|
|
13561
13538
|
window.addEventListener('dt-popover-close', this.closePopover);
|
|
13539
|
+
window.addEventListener('wheel', this.preventScrolling, {
|
|
13540
|
+
passive: false
|
|
13541
|
+
}); // align popover content width when contentWidth is 'anchor'
|
|
13542
|
+
|
|
13543
|
+
if (this.contentWidth === 'anchor') {
|
|
13544
|
+
window.addEventListener('resize', this.onResize);
|
|
13545
|
+
}
|
|
13562
13546
|
},
|
|
13563
13547
|
|
|
13564
|
-
|
|
13548
|
+
removeEventListeners() {
|
|
13565
13549
|
window.removeEventListener('dt-popover-close', this.closePopover);
|
|
13550
|
+
window.removeEventListener('wheel', this.preventScrolling, {
|
|
13551
|
+
passive: false
|
|
13552
|
+
});
|
|
13553
|
+
|
|
13554
|
+
if (this.contentWidth === 'anchor') {
|
|
13555
|
+
window.removeEventListener('resize', this.onResize);
|
|
13556
|
+
}
|
|
13566
13557
|
},
|
|
13567
13558
|
|
|
13568
13559
|
closePopover() {
|
|
13569
13560
|
this.isOpen = false;
|
|
13570
13561
|
},
|
|
13571
13562
|
|
|
13563
|
+
/*
|
|
13564
|
+
* Prevents scrolling only when the popover is set to modal
|
|
13565
|
+
**/
|
|
13566
|
+
preventScrolling(e) {
|
|
13567
|
+
if (!this.modal) return;
|
|
13568
|
+
e.preventDefault();
|
|
13569
|
+
},
|
|
13570
|
+
|
|
13572
13571
|
removeReferences() {
|
|
13573
13572
|
this.anchorEl = null;
|
|
13574
13573
|
this.popoverContentEl = null;
|
|
@@ -13586,15 +13585,15 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13586
13585
|
},
|
|
13587
13586
|
|
|
13588
13587
|
async onLeaveTransitionComplete() {
|
|
13589
|
-
var _this$
|
|
13588
|
+
var _this$tip8;
|
|
13590
13589
|
|
|
13591
13590
|
if (this.modal) {
|
|
13592
|
-
this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
13591
|
+
await this.focusFirstElement(this.$refs.anchor); // await next tick in case the user wants to change focus themselves.
|
|
13593
13592
|
|
|
13594
13593
|
await this.$nextTick();
|
|
13595
13594
|
}
|
|
13596
13595
|
|
|
13597
|
-
(_this$
|
|
13596
|
+
(_this$tip8 = this.tip) === null || _this$tip8 === void 0 ? void 0 : _this$tip8.unmount();
|
|
13598
13597
|
this.$emit('opened', false);
|
|
13599
13598
|
|
|
13600
13599
|
if (this.open !== null) {
|
|
@@ -13688,6 +13687,30 @@ var popover_header_footer_component = normalizeComponent(
|
|
|
13688
13687
|
// if there are no focusable elements at all focus the dialog itself
|
|
13689
13688
|
this.$refs.content.$el.focus();
|
|
13690
13689
|
}
|
|
13690
|
+
},
|
|
13691
|
+
|
|
13692
|
+
initTippyInstance() {
|
|
13693
|
+
this.tip = tippy_utils_createTippy(this.anchorEl, {
|
|
13694
|
+
popperOptions: this.popperOptions(),
|
|
13695
|
+
contentElement: this.popoverContentEl,
|
|
13696
|
+
placement: this.placement,
|
|
13697
|
+
offset: this.offset,
|
|
13698
|
+
sticky: this.sticky,
|
|
13699
|
+
appendTo: this.appendTo,
|
|
13700
|
+
interactive: true,
|
|
13701
|
+
trigger: 'manual',
|
|
13702
|
+
// We have to manage hideOnClick functionality manually to handle
|
|
13703
|
+
// popover within popover situations.
|
|
13704
|
+
hideOnClick: false,
|
|
13705
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
|
|
13706
|
+
onClickOutside: this.onClickOutside,
|
|
13707
|
+
onShow: this.onShow
|
|
13708
|
+
});
|
|
13709
|
+
this.tip.setProps({
|
|
13710
|
+
zIndex: this.modal ? 650 : this.calculateAnchorZindex()
|
|
13711
|
+
});
|
|
13712
|
+
this.tip.show();
|
|
13713
|
+
this.addEventListeners();
|
|
13691
13714
|
}
|
|
13692
13715
|
|
|
13693
13716
|
}
|
|
@@ -13709,8 +13732,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(532);
|
|
|
13709
13732
|
|
|
13710
13733
|
var popover_component = normalizeComponent(
|
|
13711
13734
|
popover_popovervue_type_script_lang_js_,
|
|
13712
|
-
|
|
13713
|
-
|
|
13735
|
+
popovervue_type_template_id_47e76c3e_render,
|
|
13736
|
+
popovervue_type_template_id_47e76c3e_staticRenderFns,
|
|
13714
13737
|
false,
|
|
13715
13738
|
null,
|
|
13716
13739
|
null,
|
|
@@ -16714,9 +16737,9 @@ var notice_component = normalizeComponent(
|
|
|
16714
16737
|
;// CONCATENATED MODULE: ./components/notice/index.js
|
|
16715
16738
|
|
|
16716
16739
|
|
|
16717
|
-
;// 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/pagination/pagination.vue?vue&type=template&id=
|
|
16718
|
-
var
|
|
16719
|
-
var
|
|
16740
|
+
;// 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/pagination/pagination.vue?vue&type=template&id=8a1dbe50&
|
|
16741
|
+
var paginationvue_type_template_id_8a1dbe50_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:"d-d-flex d-fd-row d-gg4 d-ai-center",attrs:{"aria-label":_vm.ariaLabel}},[_c('dt-button',{staticClass:"d-px8",class:_vm.isFirstPage ? 'd-fc-black-300 h:d-fc-black-300 d-bgc-transparent' : 'd-fc-tertiary',attrs:{"data-qa":"dt-pagination-prev","aria-label":_vm.prevAriaLabel,"kind":"muted","importance":_vm.isFirstPage ? 'primary' : 'clear',"disabled":_vm.isFirstPage},on:{"click":function($event){return _vm.changePage(_vm.currentPage - 1)}}},[_c('template',{slot:"icon"},[_c('dt-icon',{attrs:{"name":"chevron-left","size":"300"}})],1)],2),_vm._l((_vm.pages),function(page,index){return _c('div',{key:("page-" + page + "-" + index),class:{ 'd-as-flex-end': isNaN(Number(page)) }},[(isNaN(Number(page)))?_c('div',{staticClass:"d-fc-tertiary d-w24 d-ta-center",attrs:{"data-qa":"dt-pagination-separator"}},[_c('dt-icon',{attrs:{"name":"more-horizontal","size":"300"}})],1):_c('dt-button',{attrs:{"aria-label":_vm.pageNumberAriaLabel(page),"kind":_vm.currentPage === page ? 'default' : 'muted',"importance":_vm.currentPage === page ? 'primary' : 'clear',"label-class":""},on:{"click":function($event){return _vm.changePage(page)}}},[_vm._v(" "+_vm._s(page)+" ")])],1)}),_c('dt-button',{staticClass:"d-px8",class:_vm.isLastPage ? 'd-fc-black-300 h:d-fc-black-300 d-bgc-transparent' : 'd-fc-tertiary',attrs:{"data-qa":"dt-pagination-next","aria-label":_vm.nextAriaLabel,"disabled":_vm.isLastPage,"kind":"muted","importance":_vm.isLastPage ? 'primary' : 'clear'},on:{"click":function($event){return _vm.changePage(_vm.currentPage + 1)}}},[_c('template',{slot:"icon"},[_c('dt-icon',{attrs:{"name":"chevron-right","size":"300"}})],1)],2)],2)}
|
|
16742
|
+
var paginationvue_type_template_id_8a1dbe50_staticRenderFns = []
|
|
16720
16743
|
|
|
16721
16744
|
|
|
16722
16745
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[0].rules[0].use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./components/pagination/pagination.vue?vue&type=script&lang=js&
|
|
@@ -16782,6 +16805,17 @@ var paginationvue_type_template_id_7e2cf07e_staticRenderFns = []
|
|
|
16782
16805
|
//
|
|
16783
16806
|
//
|
|
16784
16807
|
//
|
|
16808
|
+
//
|
|
16809
|
+
//
|
|
16810
|
+
//
|
|
16811
|
+
//
|
|
16812
|
+
//
|
|
16813
|
+
//
|
|
16814
|
+
//
|
|
16815
|
+
//
|
|
16816
|
+
//
|
|
16817
|
+
//
|
|
16818
|
+
//
|
|
16785
16819
|
|
|
16786
16820
|
|
|
16787
16821
|
/**
|
|
@@ -16938,8 +16972,8 @@ var paginationvue_type_template_id_7e2cf07e_staticRenderFns = []
|
|
|
16938
16972
|
;
|
|
16939
16973
|
var pagination_component = normalizeComponent(
|
|
16940
16974
|
pagination_paginationvue_type_script_lang_js_,
|
|
16941
|
-
|
|
16942
|
-
|
|
16975
|
+
paginationvue_type_template_id_8a1dbe50_render,
|
|
16976
|
+
paginationvue_type_template_id_8a1dbe50_staticRenderFns,
|
|
16943
16977
|
false,
|
|
16944
16978
|
null,
|
|
16945
16979
|
null,
|
|
@@ -18239,9 +18273,9 @@ var checkbox_group_component = normalizeComponent(
|
|
|
18239
18273
|
/* harmony default export */ const checkbox_group = (checkbox_group_component.exports);
|
|
18240
18274
|
;// CONCATENATED MODULE: ./components/checkbox_group/index.js
|
|
18241
18275
|
|
|
18242
|
-
;// 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=
|
|
18243
|
-
var
|
|
18244
|
-
var
|
|
18276
|
+
;// 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&
|
|
18277
|
+
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)}
|
|
18278
|
+
var chipvue_type_template_id_9f4db318_staticRenderFns = []
|
|
18245
18279
|
|
|
18246
18280
|
|
|
18247
18281
|
;// CONCATENATED MODULE: ./components/chip/chip_constants.js
|
|
@@ -18497,8 +18531,8 @@ const CHIP_ICON_SIZES = {
|
|
|
18497
18531
|
;
|
|
18498
18532
|
var chip_component = normalizeComponent(
|
|
18499
18533
|
chip_chipvue_type_script_lang_js_,
|
|
18500
|
-
|
|
18501
|
-
|
|
18534
|
+
chipvue_type_template_id_9f4db318_render,
|
|
18535
|
+
chipvue_type_template_id_9f4db318_staticRenderFns,
|
|
18502
18536
|
false,
|
|
18503
18537
|
null,
|
|
18504
18538
|
null,
|
|
@@ -20381,15 +20415,15 @@ var root_layout_component = normalizeComponent(
|
|
|
20381
20415
|
;// CONCATENATED MODULE: ./components/root_layout/index.js
|
|
20382
20416
|
|
|
20383
20417
|
|
|
20384
|
-
;// 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=
|
|
20385
|
-
var
|
|
20418
|
+
;// 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&
|
|
20419
|
+
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){
|
|
20386
20420
|
var inputProps = ref.inputProps;
|
|
20387
|
-
return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"
|
|
20421
|
+
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){
|
|
20388
20422
|
var opened = ref.opened;
|
|
20389
20423
|
var listProps = ref.listProps;
|
|
20390
20424
|
var clearHighlightIndex = ref.clearHighlightIndex;
|
|
20391
|
-
return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":
|
|
20392
|
-
var
|
|
20425
|
+
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))}
|
|
20426
|
+
var combobox_with_popovervue_type_template_id_ad3e7dce_staticRenderFns = []
|
|
20393
20427
|
|
|
20394
20428
|
|
|
20395
20429
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80[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&
|
|
@@ -20496,9 +20530,6 @@ var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
|
20496
20530
|
//
|
|
20497
20531
|
//
|
|
20498
20532
|
//
|
|
20499
|
-
//
|
|
20500
|
-
//
|
|
20501
|
-
//
|
|
20502
20533
|
|
|
20503
20534
|
|
|
20504
20535
|
|
|
@@ -20758,6 +20789,12 @@ var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
|
20758
20789
|
},
|
|
20759
20790
|
|
|
20760
20791
|
isListShown(val) {
|
|
20792
|
+
if (val) {
|
|
20793
|
+
window.addEventListener('mousedown', this.onFocusOut);
|
|
20794
|
+
} else {
|
|
20795
|
+
window.removeEventListener('mousedown', this.onFocusOut);
|
|
20796
|
+
}
|
|
20797
|
+
|
|
20761
20798
|
this.onOpened(val);
|
|
20762
20799
|
}
|
|
20763
20800
|
|
|
@@ -20822,17 +20859,14 @@ var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
|
20822
20859
|
},
|
|
20823
20860
|
|
|
20824
20861
|
onFocusOut(e) {
|
|
20825
|
-
|
|
20826
|
-
|
|
20827
|
-
|
|
20828
|
-
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
|
-
}) || this.visuallyHiddenClose; // If outside the combobox then close
|
|
20862
|
+
// Check if the focus change was to another target within the combobox component
|
|
20863
|
+
const isComboboxStillFocused = Object.keys(this.$refs).some(refName => {
|
|
20864
|
+
const ref = this.$refs[refName];
|
|
20865
|
+
return ref.$el ? ref.$el.contains(e.target) : ref.contains(e.target);
|
|
20866
|
+
});
|
|
20867
|
+
if (isComboboxStillFocused) return; // If outside the combobox then close
|
|
20832
20868
|
|
|
20833
|
-
|
|
20834
|
-
this.closeComboboxList();
|
|
20835
|
-
}
|
|
20869
|
+
this.closeComboboxList();
|
|
20836
20870
|
},
|
|
20837
20871
|
|
|
20838
20872
|
openOnArrowKeyPress() {
|
|
@@ -20857,8 +20891,8 @@ var combobox_with_popovervue_type_template_id_7d75f1f4_staticRenderFns = []
|
|
|
20857
20891
|
;
|
|
20858
20892
|
var combobox_with_popover_component = normalizeComponent(
|
|
20859
20893
|
combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
|
|
20860
|
-
|
|
20861
|
-
|
|
20894
|
+
combobox_with_popovervue_type_template_id_ad3e7dce_render,
|
|
20895
|
+
combobox_with_popovervue_type_template_id_ad3e7dce_staticRenderFns,
|
|
20862
20896
|
false,
|
|
20863
20897
|
null,
|
|
20864
20898
|
null,
|