@dialpad/dialtone-vue 2.16.0 → 2.19.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.
@@ -1131,6 +1131,7 @@ __webpack_require__.d(__webpack_exports__, {
1131
1131
  "DtListSection": () => (/* reexport */ list_section),
1132
1132
  "DtModal": () => (/* reexport */ modal_modal),
1133
1133
  "DtNotice": () => (/* reexport */ notice),
1134
+ "DtPagination": () => (/* reexport */ pagination),
1134
1135
  "DtPopover": () => (/* reexport */ popover),
1135
1136
  "DtRadio": () => (/* reexport */ radio_radio),
1136
1137
  "DtRadioGroup": () => (/* reexport */ radio_group),
@@ -1186,6 +1187,7 @@ __webpack_require__.d(__webpack_exports__, {
1186
1187
  "TOOLTIP_DIRECTIONS": () => (/* reexport */ TOOLTIP_DIRECTIONS),
1187
1188
  "TOOLTIP_HIDE_ON_CLICK_VARIANTS": () => (/* reexport */ TOOLTIP_HIDE_ON_CLICK_VARIANTS),
1188
1189
  "TOOLTIP_KIND_MODIFIERS": () => (/* reexport */ TOOLTIP_KIND_MODIFIERS),
1190
+ "TOOLTIP_STICKY_VALUES": () => (/* reexport */ TOOLTIP_STICKY_VALUES),
1189
1191
  "USER_STATUS_COLOR_MODIFIERS": () => (/* reexport */ USER_STATUS_COLOR_MODIFIERS),
1190
1192
  "VALIDATION_MESSAGE_TYPES": () => (/* reexport */ VALIDATION_MESSAGE_TYPES),
1191
1193
  "codeToEmojiData": () => (/* reexport */ codeToEmojiData),
@@ -3252,9 +3254,9 @@ var button_group_component = normalizeComponent(
3252
3254
  ;// CONCATENATED MODULE: ./components/button_group/index.js
3253
3255
 
3254
3256
 
3255
- ;// 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/combobox/combobox.vue?vue&type=template&id=0f032a37&
3256
- var comboboxvue_type_template_id_0f032a37_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();return _vm.onKeyValidation($event, 'onEscapeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }return _vm.onKeyValidation($event, 'onEnterKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKey')}]}},[_c('div',{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[_vm._t("input",null,{"inputProps":_vm.inputProps})],2),(_vm.showList)?_c('div',{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"focusout":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',_vm.listProps,false)):_vm._t("list",null,{"listProps":_vm.listProps,"opened":_vm.onOpen,"clearHighlightIndex":_vm.clearHighlightIndex})],2):_vm._e()])}
3257
- var comboboxvue_type_template_id_0f032a37_staticRenderFns = []
3257
+ ;// 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/combobox/combobox.vue?vue&type=template&id=62892fd4&
3258
+ var comboboxvue_type_template_id_62892fd4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{on:{"keydown":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }$event.stopPropagation();return _vm.onKeyValidation($event, 'onEscapeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }if($event.ctrlKey||$event.shiftKey||$event.altKey||$event.metaKey){ return null; }return _vm.onKeyValidation($event, 'onEnterKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"up",38,$event.key,["Up","ArrowUp"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onUpKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"down",40,$event.key,["Down","ArrowDown"])){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onDownKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"home",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onHomeKey')},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"end",undefined,$event.key,undefined)){ return null; }$event.stopPropagation();$event.preventDefault();return _vm.onKeyValidation($event, 'onEndKey')}]}},[_c('div',{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[_vm._t("input",null,{"inputProps":_vm.inputProps})],2),(_vm.showList)?_c('div',{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{"mouseleave":_vm.clearHighlightIndex,"focusout":_vm.clearHighlightIndex,"!mousemove":function($event){return _vm.onMouseHighlight.apply(null, arguments)}}},[(_vm.isLoading && !_vm.listRenderedOutside)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',_vm.listProps,false)):(_vm.isListEmpty && !_vm.listRenderedOutside)?_c('combobox-empty-list',_vm._b({attrs:{"message":_vm.emptyStateMessage}},'combobox-empty-list',_vm.listProps,false)):_vm._t("list",null,{"listProps":_vm.listProps,"opened":_vm.onOpen,"clearHighlightIndex":_vm.clearHighlightIndex,"isLoading":_vm.isLoading,"isListEmpty":_vm.isListEmpty})],2):_vm._e()])}
3259
+ var comboboxvue_type_template_id_62892fd4_staticRenderFns = []
3258
3260
 
3259
3261
 
3260
3262
  ;// CONCATENATED MODULE: ./common/mixins/dom.js
@@ -3554,22 +3556,20 @@ const ERROR_INVALID_LIST_ELEMENT = 'listElementKey is required or the referenced
3554
3556
  this.setHighlightIndex(this._itemsLength() - 1);
3555
3557
  },
3556
3558
 
3557
- async setHighlightIndex(num) {
3559
+ setHighlightIndex(num) {
3558
3560
  this[indexKey] = num;
3559
3561
  this[idKey] = this._getItemId(num);
3560
3562
 
3561
3563
  if (this._itemsLength() && afterHighlightMethod) {
3562
- await this.$nextTick();
3563
3564
  this[afterHighlightMethod](num);
3564
3565
  }
3565
3566
  },
3566
3567
 
3567
- async setHighlightId(id) {
3568
+ setHighlightId(id) {
3568
3569
  this[idKey] = id;
3569
3570
  this[indexKey] = this._getItemIndex(id);
3570
3571
 
3571
3572
  if (this._itemsLength() && afterHighlightMethod) {
3572
- await this.$nextTick();
3573
3573
  this[afterHighlightMethod](this._getItemIndex(id));
3574
3574
  }
3575
3575
  },
@@ -4711,6 +4711,62 @@ var combobox_loading_list_component = normalizeComponent(
4711
4711
  )
4712
4712
 
4713
4713
  /* harmony default export */ const combobox_loading_list = (combobox_loading_list_component.exports);
4714
+ ;// 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/combobox/combobox_empty-list.vue?vue&type=template&id=85c21112&
4715
+ var combobox_empty_listvue_type_template_id_85c21112_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ol',{staticClass:"d-p0",attrs:{"data-qa":"dt-combobox-empty-list"}},[_c('dt-list-item',{staticClass:"d-d-flex d-jc-center",attrs:{"role":"option","navigation-type":"arrow-keys"}},[_c('span',[_vm._v(_vm._s(_vm.message))])])],1)}
4716
+ var combobox_empty_listvue_type_template_id_85c21112_staticRenderFns = []
4717
+
4718
+
4719
+ ;// 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/combobox/combobox_empty-list.vue?vue&type=script&lang=js&
4720
+ //
4721
+ //
4722
+ //
4723
+ //
4724
+ //
4725
+ //
4726
+ //
4727
+ //
4728
+ //
4729
+ //
4730
+ //
4731
+ //
4732
+ //
4733
+ //
4734
+ //
4735
+
4736
+ /* harmony default export */ const combobox_empty_listvue_type_script_lang_js_ = ({
4737
+ name: 'ComboboxEmptyList',
4738
+ components: {
4739
+ DtListItem: list_item
4740
+ },
4741
+ props: {
4742
+ message: {
4743
+ type: String,
4744
+ required: true
4745
+ }
4746
+ }
4747
+ });
4748
+ ;// CONCATENATED MODULE: ./components/combobox/combobox_empty-list.vue?vue&type=script&lang=js&
4749
+ /* harmony default export */ const combobox_combobox_empty_listvue_type_script_lang_js_ = (combobox_empty_listvue_type_script_lang_js_);
4750
+ ;// CONCATENATED MODULE: ./components/combobox/combobox_empty-list.vue
4751
+
4752
+
4753
+
4754
+
4755
+
4756
+ /* normalize component */
4757
+ ;
4758
+ var combobox_empty_list_component = normalizeComponent(
4759
+ combobox_combobox_empty_listvue_type_script_lang_js_,
4760
+ combobox_empty_listvue_type_template_id_85c21112_render,
4761
+ combobox_empty_listvue_type_template_id_85c21112_staticRenderFns,
4762
+ false,
4763
+ null,
4764
+ null,
4765
+ null
4766
+
4767
+ )
4768
+
4769
+ /* harmony default export */ const combobox_empty_list = (combobox_empty_list_component.exports);
4714
4770
  ;// 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/combobox/combobox.vue?vue&type=script&lang=js&
4715
4771
  //
4716
4772
  //
@@ -4752,13 +4808,22 @@ var combobox_loading_list_component = normalizeComponent(
4752
4808
  //
4753
4809
  //
4754
4810
  //
4811
+ //
4812
+ //
4813
+ //
4814
+ //
4815
+ //
4816
+ //
4817
+ //
4818
+
4755
4819
 
4756
4820
 
4757
4821
 
4758
4822
  /* harmony default export */ const comboboxvue_type_script_lang_js_ = ({
4759
4823
  name: 'DtCombobox',
4760
4824
  components: {
4761
- ComboboxLoadingList: combobox_loading_list
4825
+ ComboboxLoadingList: combobox_loading_list,
4826
+ ComboboxEmptyList: combobox_empty_list
4762
4827
  },
4763
4828
  mixins: [keyboard_list_navigation({
4764
4829
  indexKey: 'highlightIndex',
@@ -4829,6 +4894,14 @@ var combobox_loading_list_component = normalizeComponent(
4829
4894
  loading: {
4830
4895
  type: Boolean,
4831
4896
  default: false
4897
+ },
4898
+
4899
+ /**
4900
+ * Message to show when the list is empty
4901
+ */
4902
+ emptyStateMessage: {
4903
+ type: String,
4904
+ default: ''
4832
4905
  }
4833
4906
  },
4834
4907
  emits: ['select', 'escape', 'highlight', 'opened'],
@@ -4838,7 +4911,9 @@ var combobox_loading_list_component = normalizeComponent(
4838
4911
  // If the list is rendered at the root, rather than as a child
4839
4912
  // of this component, this is the ref to that dom element. Set
4840
4913
  // by the onOpen method.
4841
- outsideRenderedListRef: null
4914
+ outsideRenderedListRef: null,
4915
+ isListEmpty: undefined,
4916
+ isLoading: undefined
4842
4917
  };
4843
4918
  },
4844
4919
 
@@ -4889,20 +4964,35 @@ var combobox_loading_list_component = normalizeComponent(
4889
4964
  watch: {
4890
4965
  showList(showList) {
4891
4966
  // When the list's visibility changes reset the highlight index.
4892
- this.$nextTick(function () {
4893
- if (!this.listRenderedOutside) {
4894
- this.setInitialHighlightIndex();
4895
- this.$emit('opened', showList);
4896
- }
4897
- });
4967
+ if (!this.listRenderedOutside) {
4968
+ this.setInitialHighlightIndex();
4969
+ this.$emit('opened', showList);
4970
+ }
4898
4971
 
4899
4972
  if (!showList && this.outsideRenderedListRef) {
4900
4973
  this.outsideRenderedListRef.removeEventListener('mousemove', this.onMouseHighlight);
4901
4974
  this.outsideRenderedListRef = null;
4975
+ this.isListEmpty = undefined;
4902
4976
  }
4977
+ },
4978
+
4979
+ loading(isLoading) {
4980
+ this.isListEmpty = undefined;
4981
+ this.isLoading = isLoading;
4982
+ this.$nextTick(() => {
4983
+ this.isListEmpty = this.checkItemsLength();
4984
+ this.setInitialHighlightIndex();
4985
+ });
4903
4986
  }
4904
4987
 
4905
4988
  },
4989
+
4990
+ async mounted() {
4991
+ this.isLoading = this.loading;
4992
+ await this.$nextTick();
4993
+ this.isListEmpty = this.checkItemsLength();
4994
+ },
4995
+
4906
4996
  methods: {
4907
4997
  onMouseHighlight(e) {
4908
4998
  if (this.loading) return;
@@ -4914,9 +5004,9 @@ var combobox_loading_list_component = normalizeComponent(
4914
5004
  },
4915
5005
 
4916
5006
  getListElement() {
4917
- var _this$outsideRendered;
5007
+ var _this$outsideRendered, _this$$refs$listWrapp;
4918
5008
 
4919
- return (_this$outsideRendered = this.outsideRenderedListRef) !== null && _this$outsideRendered !== void 0 ? _this$outsideRendered : this.$refs.listWrapper.querySelector("#".concat(this.listId));
5009
+ return (_this$outsideRendered = this.outsideRenderedListRef) !== null && _this$outsideRendered !== void 0 ? _this$outsideRendered : (_this$$refs$listWrapp = this.$refs.listWrapper) === null || _this$$refs$listWrapp === void 0 ? void 0 : _this$$refs$listWrapp.querySelector("#".concat(this.listId));
4920
5010
  },
4921
5011
 
4922
5012
  clearHighlightIndex() {
@@ -4931,7 +5021,7 @@ var combobox_loading_list_component = normalizeComponent(
4931
5021
  },
4932
5022
 
4933
5023
  onEnterKey() {
4934
- if (this.loading) return;
5024
+ if (this.loading || this.isListEmpty) return;
4935
5025
 
4936
5026
  if (this.highlightIndex >= 0) {
4937
5027
  this.$emit('select', this.highlightIndex);
@@ -4950,24 +5040,30 @@ var combobox_loading_list_component = normalizeComponent(
4950
5040
  this.$emit('opened', open);
4951
5041
 
4952
5042
  if (open) {
5043
+ this.isListEmpty = this.checkItemsLength();
4953
5044
  this.setInitialHighlightIndex();
4954
5045
  }
4955
5046
  },
4956
5047
 
4957
5048
  onKeyValidation(e, eventHandler) {
4958
- if (!this.showList || !this.getListElement()) {
4959
- return;
4960
- }
4961
-
5049
+ if (!this.showList || !this.getListElement()) return;
4962
5050
  this[eventHandler](e);
4963
5051
  },
4964
5052
 
4965
5053
  setInitialHighlightIndex() {
4966
- if (this.showList) {
5054
+ if (!this.showList) return;
5055
+ this.$nextTick(() => {
4967
5056
  // When the list's is shown, reset the highlight index.
4968
5057
  // If the list is loading, set to -1
4969
5058
  this.setHighlightIndex(this.loading ? -1 : 0);
4970
- }
5059
+ });
5060
+ },
5061
+
5062
+ checkItemsLength() {
5063
+ if (!this.showList) return undefined;
5064
+ const list = this.getListElement();
5065
+ const options = list === null || list === void 0 ? void 0 : list.querySelectorAll("[role=\"option\"]");
5066
+ return (options === null || options === void 0 ? void 0 : options.length) === 0;
4971
5067
  }
4972
5068
 
4973
5069
  }
@@ -4984,8 +5080,8 @@ var combobox_loading_list_component = normalizeComponent(
4984
5080
  ;
4985
5081
  var combobox_component = normalizeComponent(
4986
5082
  combobox_comboboxvue_type_script_lang_js_,
4987
- comboboxvue_type_template_id_0f032a37_render,
4988
- comboboxvue_type_template_id_0f032a37_staticRenderFns,
5083
+ comboboxvue_type_template_id_62892fd4_render,
5084
+ comboboxvue_type_template_id_62892fd4_staticRenderFns,
4989
5085
  false,
4990
5086
  null,
4991
5087
  null,
@@ -5005,8 +5101,8 @@ return [_c('ul',{ref:"listWrapper",class:['d-ps-relative', 'd-px0', _vm.DROPDOWN
5005
5101
  var dropdownvue_type_template_id_02d3f006_staticRenderFns = []
5006
5102
 
5007
5103
 
5008
- ;// 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=97535496&
5009
- var popovervue_type_template_id_97535496_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--modal-opened': _vm.modal && _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"},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"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)}],"wheel":function (e) { return (_vm.isOpen && _vm.modal) && e.preventDefault(); },"!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":{
5104
+ ;// 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=52edae7f&
5105
+ var popovervue_type_template_id_52edae7f_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--modal-opened': _vm.modal && _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"},on:{"!click":function($event){return _vm.defaultToggleOpen.apply(null, arguments)},"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)}],"wheel":function (e) { return (_vm.isOpen && _vm.modal) && e.preventDefault(); },"!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":{
5010
5106
  'aria-expanded': _vm.isOpen.toString(),
5011
5107
  'aria-controls': _vm.id,
5012
5108
  'aria-haspopup': _vm.role,
@@ -5017,7 +5113,7 @@ var popovervue_type_template_id_97535496_render = function () {var _vm=this;var
5017
5113
  'd-popover__content',
5018
5114
  _vm.POPOVER_PADDING_CLASSES[_vm.padding],
5019
5115
  _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()],1)],1)],1)}
5020
- var popovervue_type_template_id_97535496_staticRenderFns = []
5116
+ var popovervue_type_template_id_52edae7f_staticRenderFns = []
5021
5117
 
5022
5118
 
5023
5119
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
@@ -9420,6 +9516,7 @@ const getArrowDetected = fn => ({
9420
9516
 
9421
9517
 
9422
9518
  const BASE_TIPPY_DIRECTIONS = ['bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'top', 'top-start', 'top-end'];
9519
+ const TIPPY_STICKY_VALUES = [true, false, 'reference', 'popper'];
9423
9520
  const tippy_utils_createTippy = (anchorElement, options) => {
9424
9521
  const {
9425
9522
  contentElement
@@ -9427,6 +9524,7 @@ const tippy_utils_createTippy = (anchorElement, options) => {
9427
9524
  };
9428
9525
  delete options.contentElement;
9429
9526
  return tippy_esm(anchorElement, { ...options,
9527
+ plugins: [sticky],
9430
9528
  render: () => getContentWrapper(contentElement)
9431
9529
  });
9432
9530
  };
@@ -9435,18 +9533,27 @@ const getPopperOptions = function () {
9435
9533
  boundary = 'clippingParents',
9436
9534
  fallbackPlacements = [],
9437
9535
  onChangePlacement = () => {},
9438
- hasHideModifierEnabled = false
9536
+ hasHideModifierEnabled = false,
9537
+ // If set to false the dialog will display over top of the anchor when there is insufficient space.
9538
+ // if set to true it will never move from its position relative to the anchor and will clip instead.
9539
+ tether = true
9439
9540
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
9440
9541
  return {
9441
9542
  modifiers: [{
9442
9543
  name: 'flip',
9443
9544
  options: {
9444
- fallbackPlacements: fallbackPlacements,
9545
+ fallbackPlacements,
9445
9546
  boundary
9446
9547
  }
9447
9548
  }, {
9448
9549
  name: 'hide',
9449
9550
  enabled: hasHideModifierEnabled
9551
+ }, {
9552
+ name: 'preventOverflow',
9553
+ options: {
9554
+ altAxis: !tether,
9555
+ tether
9556
+ }
9450
9557
  }, getArrowDetected(_ref => {
9451
9558
  let {
9452
9559
  state
@@ -9502,6 +9609,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
9502
9609
  const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
9503
9610
  const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
9504
9611
  const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
9612
+ const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
9505
9613
  const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
9506
9614
  ;// 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/lazy_show/lazy_show.vue?vue&type=template&id=9ffa4e8c&
9507
9615
  var lazy_showvue_type_template_id_9ffa4e8c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',_vm._g({attrs:{"name":_vm.transition,"appear":_vm.appear}},_vm.$listeners),[_c('div',_vm._g({directives:[{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}]},_vm.$listeners),[(_vm.initialized)?_vm._t("default"):_vm._e()],2)])}
@@ -10221,6 +10329,30 @@ var popover_header_footer_component = normalizeComponent(
10221
10329
  default: 'bottom-end'
10222
10330
  },
10223
10331
 
10332
+ /**
10333
+ * If set to false the dialog will display over top of the anchor when there is insufficient space.
10334
+ * If set to true it will never move from its position relative to the anchor and will clip instead.
10335
+ */
10336
+ tether: {
10337
+ type: Boolean,
10338
+ default: true
10339
+ },
10340
+
10341
+ /**
10342
+ * If the popover sticks to the anchor. This is usually not needed, but can be needed
10343
+ * if the reference element's position is animating, or to automatically update the popover
10344
+ * position in those cases the DOM layout changes the reference element's position.
10345
+ * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
10346
+ * checks the "popper" rect for changes.
10347
+ */
10348
+ sticky: {
10349
+ type: [Boolean, String],
10350
+ default: false,
10351
+ validator: sticky => {
10352
+ return POPOVER_STICKY_VALUES.includes(sticky);
10353
+ }
10354
+ },
10355
+
10224
10356
  /**
10225
10357
  * Determines maximum height for the popover before overflow.
10226
10358
  * Possible units rem|px|em
@@ -10334,16 +10466,25 @@ var popover_header_footer_component = normalizeComponent(
10334
10466
 
10335
10467
  offset(offset) {
10336
10468
  this.tip.setProps({
10337
- offset: offset
10469
+ offset
10338
10470
  });
10339
10471
  },
10340
10472
 
10341
- fallbackPlacements(fallbackPlacements) {
10473
+ sticky(sticky) {
10342
10474
  this.tip.setProps({
10343
- popperOptions: getPopperOptions({
10344
- fallbackPlacements: fallbackPlacements,
10345
- hasHideModifierEnabled: true
10346
- })
10475
+ sticky
10476
+ });
10477
+ },
10478
+
10479
+ fallbackPlacements() {
10480
+ this.tip.setProps({
10481
+ popperOptions: this.popperOptions()
10482
+ });
10483
+ },
10484
+
10485
+ tether() {
10486
+ this.tip.setProps({
10487
+ popperOptions: this.popperOptions()
10347
10488
  });
10348
10489
  },
10349
10490
 
@@ -10387,13 +10528,11 @@ var popover_header_footer_component = normalizeComponent(
10387
10528
  }
10388
10529
 
10389
10530
  this.tip = tippy_utils_createTippy(this.anchorEl, {
10390
- popperOptions: getPopperOptions({
10391
- fallbackPlacements: this.fallbackPlacements,
10392
- hasHideModifierEnabled: true
10393
- }),
10531
+ popperOptions: this.popperOptions(),
10394
10532
  contentElement: this.popoverContentEl,
10395
10533
  placement: this.placement,
10396
10534
  offset: this.offset,
10535
+ sticky: this.sticky,
10397
10536
  appendTo: document.body,
10398
10537
  interactive: true,
10399
10538
  trigger: 'manual',
@@ -10424,6 +10563,14 @@ var popover_header_footer_component = normalizeComponent(
10424
10563
  * METHODS *
10425
10564
  ******************/
10426
10565
  methods: {
10566
+ popperOptions() {
10567
+ return getPopperOptions({
10568
+ fallbackPlacements: this.fallbackPlacements,
10569
+ tether: this.tether,
10570
+ hasHideModifierEnabled: true
10571
+ });
10572
+ },
10573
+
10427
10574
  validateProps() {
10428
10575
  if (this.modal && this.initialFocusElement === 'none') {
10429
10576
  console.error('If the popover is modal you must set the ' + 'initialFocusElement prop. Possible values: "dialog", "first", HTMLElement');
@@ -10615,8 +10762,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(532);
10615
10762
 
10616
10763
  var popover_component = normalizeComponent(
10617
10764
  popover_popovervue_type_script_lang_js_,
10618
- popovervue_type_template_id_97535496_render,
10619
- popovervue_type_template_id_97535496_staticRenderFns,
10765
+ popovervue_type_template_id_52edae7f_render,
10766
+ popovervue_type_template_id_52edae7f_staticRenderFns,
10620
10767
  false,
10621
10768
  null,
10622
10769
  null,
@@ -13551,6 +13698,275 @@ var notice_component = normalizeComponent(
13551
13698
  ;// CONCATENATED MODULE: ./components/notice/index.js
13552
13699
 
13553
13700
 
13701
+ ;// 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=3592a77a&
13702
+ var paginationvue_type_template_id_3592a77a_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-gg2 d-ai-center",attrs:{"aria-label":_vm.ariaLabel}},[_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"data-qa":"dt-pagination-prev","aria-label":_vm.prevAriaLabel,"importance":_vm.isFirstPage ? 'primary' : 'clear',"disabled":_vm.isFirstPage},on:{"click":function($event){return _vm.changePage(_vm.currentPage - 1)}}},[_c('template',{slot:"icon"},[_c('icon-chevron-left')],1)],2),_vm._l((_vm.pages),function(page,index){return _c('div',{key:("page-" + page + "-" + index)},[(isNaN(Number(page)))?_c('div',{staticClass:"d-h32 d-w32 d-d-flex d-ai-center d-jc-center",attrs:{"data-qa":"dt-pagination-separator"}},[_vm._v(" … ")]):_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"aria-label":_vm.pageNumberAriaLabel(page),"importance":_vm.currentPage === page ? 'primary' : 'clear',"label-class":"d-fs14"},on:{"click":function($event){return _vm.changePage(page)}}},[_vm._v(" "+_vm._s(page)+" ")])],1)}),_c('dt-button',{staticClass:"d-h32 d-w32",attrs:{"data-qa":"dt-pagination-next","aria-label":_vm.nextAriaLabel,"disabled":_vm.isLastPage,"importance":_vm.isLastPage ? 'primary' : 'clear'},on:{"click":function($event){return _vm.changePage(_vm.currentPage + 1)}}},[_c('template',{slot:"icon"},[_c('icon-chevron-right')],1)],2)],2)}
13703
+ var paginationvue_type_template_id_3592a77a_staticRenderFns = []
13704
+
13705
+
13706
+ ;// 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!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronLeft.vue?vue&type=template&id=bdbc37f6&
13707
+ var IconChevronLeftvue_type_template_id_bdbc37f6_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__chevronLeft",attrs:{"aria-hidden":"true","aria-label":"Chevron Left","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}})])}
13708
+ var IconChevronLeftvue_type_template_id_bdbc37f6_staticRenderFns = []
13709
+
13710
+
13711
+ ;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronLeft.vue
13712
+
13713
+ var IconChevronLeft_script = {}
13714
+
13715
+
13716
+ /* normalize component */
13717
+ ;
13718
+ var IconChevronLeft_component = normalizeComponent(
13719
+ IconChevronLeft_script,
13720
+ IconChevronLeftvue_type_template_id_bdbc37f6_render,
13721
+ IconChevronLeftvue_type_template_id_bdbc37f6_staticRenderFns,
13722
+ false,
13723
+ null,
13724
+ null,
13725
+ null
13726
+
13727
+ )
13728
+
13729
+ /* harmony default export */ const IconChevronLeft = (IconChevronLeft_component.exports);
13730
+ ;// 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!./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronRight.vue?vue&type=template&id=c72b3d10&
13731
+ var IconChevronRightvue_type_template_id_c72b3d10_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('svg',{staticClass:"d-svg d-svg--system d-svg__chevronRight",attrs:{"aria-hidden":"true","aria-label":"Chevron Right","viewBox":"0 0 24 24"}},[_c('path',{attrs:{"d":"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}})])}
13732
+ var IconChevronRightvue_type_template_id_c72b3d10_staticRenderFns = []
13733
+
13734
+
13735
+ ;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronRight.vue
13736
+
13737
+ var IconChevronRight_script = {}
13738
+
13739
+
13740
+ /* normalize component */
13741
+ ;
13742
+ var IconChevronRight_component = normalizeComponent(
13743
+ IconChevronRight_script,
13744
+ IconChevronRightvue_type_template_id_c72b3d10_render,
13745
+ IconChevronRightvue_type_template_id_c72b3d10_staticRenderFns,
13746
+ false,
13747
+ null,
13748
+ null,
13749
+ null
13750
+
13751
+ )
13752
+
13753
+ /* harmony default export */ const IconChevronRight = (IconChevronRight_component.exports);
13754
+ ;// 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&
13755
+ //
13756
+ //
13757
+ //
13758
+ //
13759
+ //
13760
+ //
13761
+ //
13762
+ //
13763
+ //
13764
+ //
13765
+ //
13766
+ //
13767
+ //
13768
+ //
13769
+ //
13770
+ //
13771
+ //
13772
+ //
13773
+ //
13774
+ //
13775
+ //
13776
+ //
13777
+ //
13778
+ //
13779
+ //
13780
+ //
13781
+ //
13782
+ //
13783
+ //
13784
+ //
13785
+ //
13786
+ //
13787
+ //
13788
+ //
13789
+ //
13790
+ //
13791
+ //
13792
+ //
13793
+ //
13794
+ //
13795
+ //
13796
+ //
13797
+ //
13798
+ //
13799
+ //
13800
+ //
13801
+ //
13802
+ //
13803
+ //
13804
+ //
13805
+ //
13806
+ //
13807
+ //
13808
+ //
13809
+ //
13810
+ //
13811
+
13812
+
13813
+
13814
+ /* harmony default export */ const paginationvue_type_script_lang_js_ = ({
13815
+ name: 'DtPagination',
13816
+ components: {
13817
+ DtButton: button_button,
13818
+ IconChevronLeft: IconChevronLeft,
13819
+ IconChevronRight: IconChevronRight
13820
+ },
13821
+ props: {
13822
+ /**
13823
+ * Descriptive label for the pagination content.
13824
+ */
13825
+ ariaLabel: {
13826
+ type: String,
13827
+ required: true
13828
+ },
13829
+
13830
+ /**
13831
+ * The total number of the pages
13832
+ */
13833
+ totalPages: {
13834
+ type: Number,
13835
+ required: true
13836
+ },
13837
+
13838
+ /**
13839
+ * Descriptive label for the previous button.
13840
+ */
13841
+ prevAriaLabel: {
13842
+ type: String,
13843
+ required: true
13844
+ },
13845
+
13846
+ /**
13847
+ * Descriptive label for the next button.
13848
+ */
13849
+ nextAriaLabel: {
13850
+ type: String,
13851
+ required: true
13852
+ },
13853
+
13854
+ /**
13855
+ * A method that will be called to get the aria label of each page.
13856
+ */
13857
+ pageNumberAriaLabel: {
13858
+ type: Function,
13859
+ required: true
13860
+ },
13861
+
13862
+ /**
13863
+ * The active current page in the list of pages, defaults to the first page
13864
+ */
13865
+ activePage: {
13866
+ type: Number,
13867
+ default: 1
13868
+ },
13869
+
13870
+ /**
13871
+ * Determines the max pages to be shown in the list. Using an odd number is recommended.
13872
+ * If an even number is given, then it will be rounded down to the nearest odd number to always
13873
+ * keep current page in the middle when current page is in the mid-range.
13874
+ */
13875
+ maxVisible: {
13876
+ type: Number,
13877
+ default: 5
13878
+ }
13879
+ },
13880
+ emits: ['change'],
13881
+
13882
+ data() {
13883
+ return {
13884
+ currentPage: this.activePage
13885
+ };
13886
+ },
13887
+
13888
+ computed: {
13889
+ isFirstPage() {
13890
+ return this.currentPage === 1;
13891
+ },
13892
+
13893
+ isLastPage() {
13894
+ return this.currentPage === this.totalPages;
13895
+ },
13896
+
13897
+ pages() {
13898
+ if (this.maxVisible === 0) {
13899
+ return [];
13900
+ }
13901
+
13902
+ if (this.totalPages <= this.maxVisible) {
13903
+ return this.range(1, this.totalPages);
13904
+ }
13905
+
13906
+ const start = this.maxVisible - 1;
13907
+ const end = this.totalPages - start + 1;
13908
+
13909
+ if (this.currentPage < start) {
13910
+ return [...this.range(1, start), '...', this.totalPages];
13911
+ }
13912
+
13913
+ if (this.currentPage > end) {
13914
+ return [1, '...', ...this.range(end, this.totalPages)];
13915
+ } // rounding to the nearest odd according to the maxlength to always show the page number in the middle.
13916
+
13917
+
13918
+ const total = this.maxVisible - (3 - this.maxVisible % 2);
13919
+ const centerIndex = Math.floor(total / 2);
13920
+ const left = this.currentPage - centerIndex;
13921
+ const right = this.currentPage + centerIndex;
13922
+ return [1, '...', ...this.range(left, right), '...', this.totalPages];
13923
+ }
13924
+
13925
+ },
13926
+ watch: {},
13927
+ methods: {
13928
+ range(from, to) {
13929
+ const range = [];
13930
+ from = from > 0 ? from : 1;
13931
+
13932
+ for (let i = from; i <= to; i++) {
13933
+ range.push(i);
13934
+ }
13935
+
13936
+ return range;
13937
+ },
13938
+
13939
+ changePage(page) {
13940
+ this.currentPage = page;
13941
+ this.$emit('change', this.currentPage);
13942
+ }
13943
+
13944
+ }
13945
+ });
13946
+ ;// CONCATENATED MODULE: ./components/pagination/pagination.vue?vue&type=script&lang=js&
13947
+ /* harmony default export */ const pagination_paginationvue_type_script_lang_js_ = (paginationvue_type_script_lang_js_);
13948
+ ;// CONCATENATED MODULE: ./components/pagination/pagination.vue
13949
+
13950
+
13951
+
13952
+
13953
+
13954
+ /* normalize component */
13955
+ ;
13956
+ var pagination_component = normalizeComponent(
13957
+ pagination_paginationvue_type_script_lang_js_,
13958
+ paginationvue_type_template_id_3592a77a_render,
13959
+ paginationvue_type_template_id_3592a77a_staticRenderFns,
13960
+ false,
13961
+ null,
13962
+ null,
13963
+ null
13964
+
13965
+ )
13966
+
13967
+ /* harmony default export */ const pagination = (pagination_component.exports);
13968
+ ;// CONCATENATED MODULE: ./components/pagination/index.js
13969
+
13554
13970
  ;// 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/radio/radio.vue?vue&type=template&id=1e978b0c&
13555
13971
  var radiovue_type_template_id_1e978b0c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',[_c('div',{class:['d-radio-group', { 'd-radio-group--disabled': _vm.internalDisabled }]},[_c('div',{staticClass:"d-radio__input"},[_c('input',_vm._g(_vm._b({class:['d-radio', _vm.inputValidationClass, _vm.inputClass],attrs:{"name":_vm.internalName,"disabled":_vm.internalDisabled,"type":"radio"},domProps:{"checked":_vm.internalChecked,"value":_vm.value}},'input',_vm.$attrs,false),_vm.inputListeners))]),_c('div',{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[_c('div',_vm._b({class:_vm.labelClass,attrs:{"data-qa":"radio-label"}},'div',_vm.labelChildProps,false),[_vm._t("default",function(){return [_vm._v(_vm._s(_vm.label))]})],2),(_vm.$slots.description || _vm.description)?_c('div',_vm._b({class:['d-description', _vm.descriptionClass],attrs:{"data-qa":"radio-description"}},'div',_vm.descriptionChildProps,false),[_vm._t("description",function(){return [_vm._v(_vm._s(_vm.description))]})],2):_vm._e(),_c('dt-validation-messages',_vm._b({class:_vm.messagesClass,attrs:{"validation-messages":_vm.formattedMessages,"show-messages":_vm.showMessages,"data-qa":"dt-radio-validation-messages"}},'dt-validation-messages',_vm.messagesChildProps,false))],1)])])}
13556
13972
  var radiovue_type_template_id_1e978b0c_staticRenderFns = []
@@ -15744,15 +16160,15 @@ var toggle_component = normalizeComponent(
15744
16160
  /* harmony default export */ const toggle = (toggle_component.exports);
15745
16161
  ;// CONCATENATED MODULE: ./components/toggle/index.js
15746
16162
 
15747
- ;// 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/tooltip/tooltip.vue?vue&type=template&id=06e65b4f&
15748
- var tooltipvue_type_template_id_06e65b4f_render = function () {
16163
+ ;// 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/tooltip/tooltip.vue?vue&type=template&id=662e4cf7&
16164
+ var tooltipvue_type_template_id_662e4cf7_render = function () {
15749
16165
  var _obj;
15750
16166
  var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"data-qa":"dt-tooltip-container"}},[_c('div',{ref:"anchor",attrs:{"data-qa":"dt-tooltip-anchor"},on:{"focusin":_vm.onEnterAnchor,"focusout":_vm.onLeaveAnchor,"mouseenter":_vm.onEnterAnchor,"mouseleave":_vm.onLeaveAnchor,"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"esc",27,$event.key,["Esc","Escape"])){ return null; }return _vm.onLeaveAnchor.apply(null, arguments)}}},[_vm._t("anchor")],2),_c('dt-lazy-show',{ref:"content",class:[
15751
16167
  'd-tooltip',
15752
16168
  ("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
15753
16169
  ( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
15754
16170
  _vm.contentClass ],attrs:{"id":_vm.id,"show":_vm.isShown && (!!_vm.message.trim() || !!_vm.$slots.default),"role":"tooltip","aria-hidden":"false","data-qa":"dt-tooltip","appear":"","transition":_vm.transition},on:{"after-leave":_vm.onLeaveTransitionComplete,"after-enter":_vm.onEnterTransitionComplete}},[_vm._t("default",function(){return [_vm._v(" "+_vm._s(_vm.message)+" ")]})],2)],1)}
15755
- var tooltipvue_type_template_id_06e65b4f_staticRenderFns = []
16171
+ var tooltipvue_type_template_id_662e4cf7_staticRenderFns = []
15756
16172
 
15757
16173
 
15758
16174
  ;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
@@ -15767,6 +16183,7 @@ const TOOLTIP_KIND_MODIFIERS = {
15767
16183
  inverted: "d-tooltip--inverted",
15768
16184
  hide: "d-tooltip--hide"
15769
16185
  };
16186
+ const TOOLTIP_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
15770
16187
  const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
15771
16188
  ;// 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/tooltip/tooltip.vue?vue&type=script&lang=js&
15772
16189
  //
@@ -15876,6 +16293,21 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
15876
16293
 
15877
16294
  },
15878
16295
 
16296
+ /**
16297
+ * If the tooltip sticks to the anchor. This is usually not needed, but can be needed
16298
+ * if the reference element's position is animating, or to automatically update the popover
16299
+ * position in those cases the DOM layout changes the reference element's position.
16300
+ * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
16301
+ * checks the "popper" rect for changes.
16302
+ */
16303
+ sticky: {
16304
+ type: [Boolean, String],
16305
+ default: false,
16306
+ validator: sticky => {
16307
+ return TOOLTIP_STICKY_VALUES.includes(sticky);
16308
+ }
16309
+ },
16310
+
15879
16311
  /**
15880
16312
  * Additional css classes for the tooltip content element.
15881
16313
  * Can accept all of String, Object, and Array, i.e. has the
@@ -15937,6 +16369,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
15937
16369
  interactive: false,
15938
16370
  trigger: 'manual',
15939
16371
  placement: this.placement,
16372
+ sticky: this.sticky,
15940
16373
  popperOptions: getPopperOptions({
15941
16374
  fallbackPlacements: this.fallbackPlacements,
15942
16375
  hasHideModifierEnabled: true,
@@ -15967,6 +16400,12 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
15967
16400
  } else {
15968
16401
  this.tip.hide();
15969
16402
  }
16403
+ },
16404
+
16405
+ sticky(sticky) {
16406
+ this.tip.setProps({
16407
+ sticky
16408
+ });
15970
16409
  }
15971
16410
 
15972
16411
  },
@@ -16087,8 +16526,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(228);
16087
16526
 
16088
16527
  var tooltip_component = normalizeComponent(
16089
16528
  tooltip_tooltipvue_type_script_lang_js_,
16090
- tooltipvue_type_template_id_06e65b4f_render,
16091
- tooltipvue_type_template_id_06e65b4f_staticRenderFns,
16529
+ tooltipvue_type_template_id_662e4cf7_render,
16530
+ tooltipvue_type_template_id_662e4cf7_staticRenderFns,
16092
16531
  false,
16093
16532
  null,
16094
16533
  null,
@@ -16723,15 +17162,17 @@ var root_layout_component = normalizeComponent(
16723
17162
  ;// CONCATENATED MODULE: ./components/root_layout/index.js
16724
17163
 
16725
17164
 
16726
- ;// 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=0ce1b850&
16727
- var combobox_with_popovervue_type_template_id_0ce1b850_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-combobox',_vm._g({ref:"combobox",attrs:{"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-aria-label":_vm.listAriaLabel,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
17165
+ ;// 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=108db852&
17166
+ var combobox_with_popovervue_type_template_id_108db852_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,"show-list":_vm.isListShown,"on-beginning-of-list":_vm.onBeginningOfList,"on-end-of-list":_vm.onEndOfList,"list-aria-label":_vm.listAriaLabel,"list-rendered-outside":true,"list-id":_vm.listId,"data-qa":"dt-combobox"},scopedSlots:_vm._u([{key:"input",fn:function(ref){
16728
17167
  var inputProps = ref.inputProps;
16729
17168
  return [_c('div',{ref:"input",attrs:{"id":_vm.externalAnchor},on:{"focusin":_vm.onFocusIn,"focusout":_vm.onFocusOut,"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){
16730
17169
  var opened = ref.opened;
16731
17170
  var listProps = ref.listProps;
16732
17171
  var clearHighlightIndex = ref.clearHighlightIndex;
16733
- return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":true,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"placement":"bottom-start","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false},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",on:{"focusout":_vm.onFocusOut}},[_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":function($event){clearHighlightIndex; _vm.onFocusOut;}}},[(_vm.loading)?_c('combobox-loading-list',_vm._b({class:[_vm.DROPDOWN_PADDING_CLASSES[_vm.padding], _vm.listClass]},'combobox-loading-list',listProps,false)):_vm._t("list",null,{"listProps":listProps})],2)]},proxy:true},{key:"footerContent",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer",on:{"focusout":_vm.onFocusOut}},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
16734
- var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
17172
+ var isLoading = ref.isLoading;
17173
+ var isListEmpty = ref.isListEmpty;
17174
+ return [_c('dt-popover',{ref:"popover",attrs:{"open":_vm.isListShown,"hide-on-click":_vm.showList === null,"max-height":_vm.maxHeight,"max-width":_vm.maxWidth,"offset":_vm.popoverOffset,"sticky":_vm.popoverSticky,"placement":"bottom-start","padding":"none","role":"listbox","external-anchor":_vm.externalAnchor,"content-width":_vm.contentWidth,"content-tabindex":null,"modal":false,"auto-focus":false},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",on:{"focusout":_vm.onFocusOut}},[_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":function($event){clearHighlightIndex; _vm.onFocusOut;}}},[(isLoading)?_c('combobox-loading-list',_vm._b({},'combobox-loading-list',listProps,false)):(isListEmpty)?_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",on:{"focusout":_vm.onFocusOut}},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})]}}],null,true)},_vm.comboboxListeners))}
17175
+ var combobox_with_popovervue_type_template_id_108db852_staticRenderFns = []
16735
17176
 
16736
17177
 
16737
17178
  ;// 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&
@@ -16827,6 +17268,13 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16827
17268
  //
16828
17269
  //
16829
17270
  //
17271
+ //
17272
+ //
17273
+ //
17274
+ //
17275
+ //
17276
+ //
17277
+
16830
17278
 
16831
17279
 
16832
17280
 
@@ -16836,7 +17284,8 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16836
17284
  components: {
16837
17285
  DtCombobox: combobox,
16838
17286
  DtPopover: popover,
16839
- ComboboxLoadingList: combobox_loading_list
17287
+ ComboboxLoadingList: combobox_loading_list,
17288
+ ComboboxEmptyList: combobox_empty_list
16840
17289
  },
16841
17290
  props: {
16842
17291
  /**
@@ -16952,6 +17401,14 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16952
17401
  default: () => [0, 4]
16953
17402
  },
16954
17403
 
17404
+ /**
17405
+ * If the popover sticks to the input.
17406
+ */
17407
+ popoverSticky: {
17408
+ type: [Boolean, String],
17409
+ default: false
17410
+ },
17411
+
16955
17412
  /**
16956
17413
  * Displays the list when the combobox is focused, before the user has typed anything.
16957
17414
  * When this is enabled the list will not close after selection.
@@ -16967,6 +17424,14 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16967
17424
  loading: {
16968
17425
  type: Boolean,
16969
17426
  default: false
17427
+ },
17428
+
17429
+ /**
17430
+ * Message to show when the list is empty
17431
+ */
17432
+ emptyStateMessage: {
17433
+ type: String,
17434
+ default: ''
16970
17435
  }
16971
17436
  },
16972
17437
  emits: ['select', 'escape', 'highlight', 'opened'],
@@ -17007,13 +17472,7 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
17007
17472
 
17008
17473
  },
17009
17474
  methods: {
17010
- async handleDisplayList(value) {
17011
- if (this.isListShown) {
17012
- // After the list is updated, hightlight the first item
17013
- await this.$nextTick();
17014
- this.$refs.combobox.setInitialHighlightIndex();
17015
- }
17016
-
17475
+ handleDisplayList(value) {
17017
17476
  if (!this.hasSuggestionList) {
17018
17477
  if (value) {
17019
17478
  // Displays the list after the user has typed anything
@@ -17107,8 +17566,8 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
17107
17566
  ;
17108
17567
  var combobox_with_popover_component = normalizeComponent(
17109
17568
  combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
17110
- combobox_with_popovervue_type_template_id_0ce1b850_render,
17111
- combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns,
17569
+ combobox_with_popovervue_type_template_id_108db852_render,
17570
+ combobox_with_popovervue_type_template_id_108db852_staticRenderFns,
17112
17571
  false,
17113
17572
  null,
17114
17573
  null,
@@ -17119,11 +17578,11 @@ var combobox_with_popover_component = normalizeComponent(
17119
17578
  /* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
17120
17579
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
17121
17580
 
17122
- ;// 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_multi_select/combobox_multi_select.vue?vue&type=template&id=907d2f60&
17123
- var combobox_multi_selectvue_type_template_id_907d2f60_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-combobox-with-popover',{ref:"comboboxWithPopover",attrs:{"list-aria-label":"listAriaLabel","show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"content-width":"anchor"},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
17581
+ ;// 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_multi_select/combobox_multi_select.vue?vue&type=template&id=50e5c78d&
17582
+ var combobox_multi_selectvue_type_template_id_50e5c78d_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('dt-recipe-combobox-with-popover',{ref:"comboboxWithPopover",attrs:{"list-aria-label":"listAriaLabel","show-list":_vm.showList,"max-height":_vm.listMaxHeight,"popover-offset":_vm.popoverOffset,"has-suggestion-list":_vm.hasSuggestionList,"content-width":"anchor"},on:{"select":_vm.onComboboxSelect},scopedSlots:_vm._u([{key:"input",fn:function(ref){
17124
17583
  var onInput = ref.onInput;
17125
17584
  return [_c('span',{ref:"inputSlotWrapper",staticClass:"d-ps-relative"},[_c('span',{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2"},_vm._l((_vm.selectedItems),function(item){return _c('dt-chip',_vm._g({key:item.id,ref:"chips",refInFor:true,staticClass:"d-mt4 d-mx2 d-zi-base1",attrs:{"close-button-props":{ ariaLabel: 'close' },"size":_vm.size},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"backspace",undefined,$event.key,undefined)){ return null; }return _vm.onChipRemove(item)},"close":function($event){return _vm.onChipRemove(item)}}},_vm.chipListeners),[_vm._v(" "+_vm._s(item)+" ")])}),1),_c('dt-input',_vm._g({ref:"input",staticClass:"d-fl-grow1 d-mb4",attrs:{"label":_vm.label,"description":_vm.description,"placeholder":_vm.inputPlaceHolder,"show-messages":_vm.showInputMessages,"messages":_vm.inputMessages,"size":_vm.size},on:{"input":onInput},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}},_vm.inputListeners)),_c('dt-validation-messages',{attrs:{"validation-messages":_vm.maxSelectedMessage,"show-messages":_vm.showValidationMessages}})],1)]}},{key:"header",fn:function(){return [(_vm.$slots.header)?_c('div',{ref:"header"},[_vm._t("header")],2):_vm._e()]},proxy:true},{key:"list",fn:function(){return [_c('div',{ref:"list"},[(!_vm.loading)?_vm._t("list"):_c('div',{staticClass:"d-ta-center d-py16"},[_vm._v(" "+_vm._s(_vm.loadingMessage)+" ")])],2)]},proxy:true},{key:"footer",fn:function(){return [(_vm.$slots.footer)?_c('div',{ref:"footer"},[_vm._t("footer")],2):_vm._e()]},proxy:true}],null,true)})}
17126
- var combobox_multi_selectvue_type_template_id_907d2f60_staticRenderFns = []
17585
+ var combobox_multi_selectvue_type_template_id_50e5c78d_staticRenderFns = []
17127
17586
 
17128
17587
 
17129
17588
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
@@ -17558,7 +18017,6 @@ const MULTI_SELECT_SIZES = {
17558
18017
  var _this$resizeWindowObs;
17559
18018
 
17560
18019
  (_this$resizeWindowObs = this.resizeWindowObserver) === null || _this$resizeWindowObs === void 0 ? void 0 : _this$resizeWindowObs.unobserve(document.body);
17561
- console.log('Combobox Multi Select: Unobserve window resize before destory');
17562
18020
  },
17563
18021
 
17564
18022
  methods: {
@@ -17760,8 +18218,8 @@ const MULTI_SELECT_SIZES = {
17760
18218
  ;
17761
18219
  var combobox_multi_select_component = normalizeComponent(
17762
18220
  combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
17763
- combobox_multi_selectvue_type_template_id_907d2f60_render,
17764
- combobox_multi_selectvue_type_template_id_907d2f60_staticRenderFns,
18221
+ combobox_multi_selectvue_type_template_id_50e5c78d_render,
18222
+ combobox_multi_selectvue_type_template_id_50e5c78d_staticRenderFns,
17765
18223
  false,
17766
18224
  null,
17767
18225
  null,
@@ -18119,6 +18577,7 @@ var top_banner_info_component = normalizeComponent(
18119
18577
 
18120
18578
 
18121
18579
 
18580
+
18122
18581
 
18123
18582
 
18124
18583
  /// Recipes