@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.
@@ -1113,6 +1113,7 @@ __webpack_require__.d(__webpack_exports__, {
1113
1113
  "DtListSection": () => (/* reexport */ list_section),
1114
1114
  "DtModal": () => (/* reexport */ modal_modal),
1115
1115
  "DtNotice": () => (/* reexport */ notice),
1116
+ "DtPagination": () => (/* reexport */ pagination),
1116
1117
  "DtPopover": () => (/* reexport */ popover),
1117
1118
  "DtRadio": () => (/* reexport */ radio_radio),
1118
1119
  "DtRadioGroup": () => (/* reexport */ radio_group),
@@ -1168,6 +1169,7 @@ __webpack_require__.d(__webpack_exports__, {
1168
1169
  "TOOLTIP_DIRECTIONS": () => (/* reexport */ TOOLTIP_DIRECTIONS),
1169
1170
  "TOOLTIP_HIDE_ON_CLICK_VARIANTS": () => (/* reexport */ TOOLTIP_HIDE_ON_CLICK_VARIANTS),
1170
1171
  "TOOLTIP_KIND_MODIFIERS": () => (/* reexport */ TOOLTIP_KIND_MODIFIERS),
1172
+ "TOOLTIP_STICKY_VALUES": () => (/* reexport */ TOOLTIP_STICKY_VALUES),
1171
1173
  "USER_STATUS_COLOR_MODIFIERS": () => (/* reexport */ USER_STATUS_COLOR_MODIFIERS),
1172
1174
  "VALIDATION_MESSAGE_TYPES": () => (/* reexport */ VALIDATION_MESSAGE_TYPES),
1173
1175
  "codeToEmojiData": () => (/* reexport */ codeToEmojiData),
@@ -3234,9 +3236,9 @@ var button_group_component = normalizeComponent(
3234
3236
  ;// CONCATENATED MODULE: ./components/button_group/index.js
3235
3237
 
3236
3238
 
3237
- ;// 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&
3238
- 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()])}
3239
- var comboboxvue_type_template_id_0f032a37_staticRenderFns = []
3239
+ ;// 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&
3240
+ 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()])}
3241
+ var comboboxvue_type_template_id_62892fd4_staticRenderFns = []
3240
3242
 
3241
3243
 
3242
3244
  ;// CONCATENATED MODULE: ./common/mixins/dom.js
@@ -3536,22 +3538,20 @@ const ERROR_INVALID_LIST_ELEMENT = 'listElementKey is required or the referenced
3536
3538
  this.setHighlightIndex(this._itemsLength() - 1);
3537
3539
  },
3538
3540
 
3539
- async setHighlightIndex(num) {
3541
+ setHighlightIndex(num) {
3540
3542
  this[indexKey] = num;
3541
3543
  this[idKey] = this._getItemId(num);
3542
3544
 
3543
3545
  if (this._itemsLength() && afterHighlightMethod) {
3544
- await this.$nextTick();
3545
3546
  this[afterHighlightMethod](num);
3546
3547
  }
3547
3548
  },
3548
3549
 
3549
- async setHighlightId(id) {
3550
+ setHighlightId(id) {
3550
3551
  this[idKey] = id;
3551
3552
  this[indexKey] = this._getItemIndex(id);
3552
3553
 
3553
3554
  if (this._itemsLength() && afterHighlightMethod) {
3554
- await this.$nextTick();
3555
3555
  this[afterHighlightMethod](this._getItemIndex(id));
3556
3556
  }
3557
3557
  },
@@ -4693,6 +4693,62 @@ var combobox_loading_list_component = normalizeComponent(
4693
4693
  )
4694
4694
 
4695
4695
  /* harmony default export */ const combobox_loading_list = (combobox_loading_list_component.exports);
4696
+ ;// 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&
4697
+ 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)}
4698
+ var combobox_empty_listvue_type_template_id_85c21112_staticRenderFns = []
4699
+
4700
+
4701
+ ;// 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!./components/combobox/combobox_empty-list.vue?vue&type=script&lang=js&
4702
+ //
4703
+ //
4704
+ //
4705
+ //
4706
+ //
4707
+ //
4708
+ //
4709
+ //
4710
+ //
4711
+ //
4712
+ //
4713
+ //
4714
+ //
4715
+ //
4716
+ //
4717
+
4718
+ /* harmony default export */ const combobox_empty_listvue_type_script_lang_js_ = ({
4719
+ name: 'ComboboxEmptyList',
4720
+ components: {
4721
+ DtListItem: list_item
4722
+ },
4723
+ props: {
4724
+ message: {
4725
+ type: String,
4726
+ required: true
4727
+ }
4728
+ }
4729
+ });
4730
+ ;// CONCATENATED MODULE: ./components/combobox/combobox_empty-list.vue?vue&type=script&lang=js&
4731
+ /* harmony default export */ const combobox_combobox_empty_listvue_type_script_lang_js_ = (combobox_empty_listvue_type_script_lang_js_);
4732
+ ;// CONCATENATED MODULE: ./components/combobox/combobox_empty-list.vue
4733
+
4734
+
4735
+
4736
+
4737
+
4738
+ /* normalize component */
4739
+ ;
4740
+ var combobox_empty_list_component = normalizeComponent(
4741
+ combobox_combobox_empty_listvue_type_script_lang_js_,
4742
+ combobox_empty_listvue_type_template_id_85c21112_render,
4743
+ combobox_empty_listvue_type_template_id_85c21112_staticRenderFns,
4744
+ false,
4745
+ null,
4746
+ null,
4747
+ null
4748
+
4749
+ )
4750
+
4751
+ /* harmony default export */ const combobox_empty_list = (combobox_empty_list_component.exports);
4696
4752
  ;// 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!./components/combobox/combobox.vue?vue&type=script&lang=js&
4697
4753
  //
4698
4754
  //
@@ -4734,13 +4790,22 @@ var combobox_loading_list_component = normalizeComponent(
4734
4790
  //
4735
4791
  //
4736
4792
  //
4793
+ //
4794
+ //
4795
+ //
4796
+ //
4797
+ //
4798
+ //
4799
+ //
4800
+
4737
4801
 
4738
4802
 
4739
4803
 
4740
4804
  /* harmony default export */ const comboboxvue_type_script_lang_js_ = ({
4741
4805
  name: 'DtCombobox',
4742
4806
  components: {
4743
- ComboboxLoadingList: combobox_loading_list
4807
+ ComboboxLoadingList: combobox_loading_list,
4808
+ ComboboxEmptyList: combobox_empty_list
4744
4809
  },
4745
4810
  mixins: [keyboard_list_navigation({
4746
4811
  indexKey: 'highlightIndex',
@@ -4811,6 +4876,14 @@ var combobox_loading_list_component = normalizeComponent(
4811
4876
  loading: {
4812
4877
  type: Boolean,
4813
4878
  default: false
4879
+ },
4880
+
4881
+ /**
4882
+ * Message to show when the list is empty
4883
+ */
4884
+ emptyStateMessage: {
4885
+ type: String,
4886
+ default: ''
4814
4887
  }
4815
4888
  },
4816
4889
  emits: ['select', 'escape', 'highlight', 'opened'],
@@ -4820,7 +4893,9 @@ var combobox_loading_list_component = normalizeComponent(
4820
4893
  // If the list is rendered at the root, rather than as a child
4821
4894
  // of this component, this is the ref to that dom element. Set
4822
4895
  // by the onOpen method.
4823
- outsideRenderedListRef: null
4896
+ outsideRenderedListRef: null,
4897
+ isListEmpty: undefined,
4898
+ isLoading: undefined
4824
4899
  };
4825
4900
  },
4826
4901
 
@@ -4871,20 +4946,35 @@ var combobox_loading_list_component = normalizeComponent(
4871
4946
  watch: {
4872
4947
  showList(showList) {
4873
4948
  // When the list's visibility changes reset the highlight index.
4874
- this.$nextTick(function () {
4875
- if (!this.listRenderedOutside) {
4876
- this.setInitialHighlightIndex();
4877
- this.$emit('opened', showList);
4878
- }
4879
- });
4949
+ if (!this.listRenderedOutside) {
4950
+ this.setInitialHighlightIndex();
4951
+ this.$emit('opened', showList);
4952
+ }
4880
4953
 
4881
4954
  if (!showList && this.outsideRenderedListRef) {
4882
4955
  this.outsideRenderedListRef.removeEventListener('mousemove', this.onMouseHighlight);
4883
4956
  this.outsideRenderedListRef = null;
4957
+ this.isListEmpty = undefined;
4884
4958
  }
4959
+ },
4960
+
4961
+ loading(isLoading) {
4962
+ this.isListEmpty = undefined;
4963
+ this.isLoading = isLoading;
4964
+ this.$nextTick(() => {
4965
+ this.isListEmpty = this.checkItemsLength();
4966
+ this.setInitialHighlightIndex();
4967
+ });
4885
4968
  }
4886
4969
 
4887
4970
  },
4971
+
4972
+ async mounted() {
4973
+ this.isLoading = this.loading;
4974
+ await this.$nextTick();
4975
+ this.isListEmpty = this.checkItemsLength();
4976
+ },
4977
+
4888
4978
  methods: {
4889
4979
  onMouseHighlight(e) {
4890
4980
  if (this.loading) return;
@@ -4896,9 +4986,9 @@ var combobox_loading_list_component = normalizeComponent(
4896
4986
  },
4897
4987
 
4898
4988
  getListElement() {
4899
- var _this$outsideRendered;
4989
+ var _this$outsideRendered, _this$$refs$listWrapp;
4900
4990
 
4901
- return (_this$outsideRendered = this.outsideRenderedListRef) !== null && _this$outsideRendered !== void 0 ? _this$outsideRendered : this.$refs.listWrapper.querySelector("#".concat(this.listId));
4991
+ 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));
4902
4992
  },
4903
4993
 
4904
4994
  clearHighlightIndex() {
@@ -4913,7 +5003,7 @@ var combobox_loading_list_component = normalizeComponent(
4913
5003
  },
4914
5004
 
4915
5005
  onEnterKey() {
4916
- if (this.loading) return;
5006
+ if (this.loading || this.isListEmpty) return;
4917
5007
 
4918
5008
  if (this.highlightIndex >= 0) {
4919
5009
  this.$emit('select', this.highlightIndex);
@@ -4932,24 +5022,30 @@ var combobox_loading_list_component = normalizeComponent(
4932
5022
  this.$emit('opened', open);
4933
5023
 
4934
5024
  if (open) {
5025
+ this.isListEmpty = this.checkItemsLength();
4935
5026
  this.setInitialHighlightIndex();
4936
5027
  }
4937
5028
  },
4938
5029
 
4939
5030
  onKeyValidation(e, eventHandler) {
4940
- if (!this.showList || !this.getListElement()) {
4941
- return;
4942
- }
4943
-
5031
+ if (!this.showList || !this.getListElement()) return;
4944
5032
  this[eventHandler](e);
4945
5033
  },
4946
5034
 
4947
5035
  setInitialHighlightIndex() {
4948
- if (this.showList) {
5036
+ if (!this.showList) return;
5037
+ this.$nextTick(() => {
4949
5038
  // When the list's is shown, reset the highlight index.
4950
5039
  // If the list is loading, set to -1
4951
5040
  this.setHighlightIndex(this.loading ? -1 : 0);
4952
- }
5041
+ });
5042
+ },
5043
+
5044
+ checkItemsLength() {
5045
+ if (!this.showList) return undefined;
5046
+ const list = this.getListElement();
5047
+ const options = list === null || list === void 0 ? void 0 : list.querySelectorAll("[role=\"option\"]");
5048
+ return (options === null || options === void 0 ? void 0 : options.length) === 0;
4953
5049
  }
4954
5050
 
4955
5051
  }
@@ -4966,8 +5062,8 @@ var combobox_loading_list_component = normalizeComponent(
4966
5062
  ;
4967
5063
  var combobox_component = normalizeComponent(
4968
5064
  combobox_comboboxvue_type_script_lang_js_,
4969
- comboboxvue_type_template_id_0f032a37_render,
4970
- comboboxvue_type_template_id_0f032a37_staticRenderFns,
5065
+ comboboxvue_type_template_id_62892fd4_render,
5066
+ comboboxvue_type_template_id_62892fd4_staticRenderFns,
4971
5067
  false,
4972
5068
  null,
4973
5069
  null,
@@ -4987,8 +5083,8 @@ return [_c('ul',{ref:"listWrapper",class:['d-ps-relative', 'd-px0', _vm.DROPDOWN
4987
5083
  var dropdownvue_type_template_id_02d3f006_staticRenderFns = []
4988
5084
 
4989
5085
 
4990
- ;// 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&
4991
- 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":{
5086
+ ;// 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&
5087
+ 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":{
4992
5088
  'aria-expanded': _vm.isOpen.toString(),
4993
5089
  'aria-controls': _vm.id,
4994
5090
  'aria-haspopup': _vm.role,
@@ -4999,7 +5095,7 @@ var popovervue_type_template_id_97535496_render = function () {var _vm=this;var
4999
5095
  'd-popover__content',
5000
5096
  _vm.POPOVER_PADDING_CLASSES[_vm.padding],
5001
5097
  _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)}
5002
- var popovervue_type_template_id_97535496_staticRenderFns = []
5098
+ var popovervue_type_template_id_52edae7f_staticRenderFns = []
5003
5099
 
5004
5100
 
5005
5101
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
@@ -9402,6 +9498,7 @@ const getArrowDetected = fn => ({
9402
9498
 
9403
9499
 
9404
9500
  const BASE_TIPPY_DIRECTIONS = ['bottom', 'bottom-start', 'bottom-end', 'right', 'right-start', 'right-end', 'left', 'left-start', 'left-end', 'top', 'top-start', 'top-end'];
9501
+ const TIPPY_STICKY_VALUES = [true, false, 'reference', 'popper'];
9405
9502
  const tippy_utils_createTippy = (anchorElement, options) => {
9406
9503
  const {
9407
9504
  contentElement
@@ -9409,6 +9506,7 @@ const tippy_utils_createTippy = (anchorElement, options) => {
9409
9506
  };
9410
9507
  delete options.contentElement;
9411
9508
  return tippy_esm(anchorElement, { ...options,
9509
+ plugins: [sticky],
9412
9510
  render: () => getContentWrapper(contentElement)
9413
9511
  });
9414
9512
  };
@@ -9417,18 +9515,27 @@ const getPopperOptions = function () {
9417
9515
  boundary = 'clippingParents',
9418
9516
  fallbackPlacements = [],
9419
9517
  onChangePlacement = () => {},
9420
- hasHideModifierEnabled = false
9518
+ hasHideModifierEnabled = false,
9519
+ // If set to false the dialog will display over top of the anchor when there is insufficient space.
9520
+ // if set to true it will never move from its position relative to the anchor and will clip instead.
9521
+ tether = true
9421
9522
  } = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
9422
9523
  return {
9423
9524
  modifiers: [{
9424
9525
  name: 'flip',
9425
9526
  options: {
9426
- fallbackPlacements: fallbackPlacements,
9527
+ fallbackPlacements,
9427
9528
  boundary
9428
9529
  }
9429
9530
  }, {
9430
9531
  name: 'hide',
9431
9532
  enabled: hasHideModifierEnabled
9533
+ }, {
9534
+ name: 'preventOverflow',
9535
+ options: {
9536
+ altAxis: !tether,
9537
+ tether
9538
+ }
9432
9539
  }, getArrowDetected(_ref => {
9433
9540
  let {
9434
9541
  state
@@ -9484,6 +9591,7 @@ const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
9484
9591
  const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];
9485
9592
  const POPOVER_CONTENT_WIDTHS = [null, 'anchor'];
9486
9593
  const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];
9594
+ const POPOVER_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
9487
9595
  const POPOVER_DIRECTIONS = [...BASE_TIPPY_DIRECTIONS];
9488
9596
  ;// 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&
9489
9597
  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)])}
@@ -10203,6 +10311,30 @@ var popover_header_footer_component = normalizeComponent(
10203
10311
  default: 'bottom-end'
10204
10312
  },
10205
10313
 
10314
+ /**
10315
+ * If set to false the dialog will display over top of the anchor when there is insufficient space.
10316
+ * If set to true it will never move from its position relative to the anchor and will clip instead.
10317
+ */
10318
+ tether: {
10319
+ type: Boolean,
10320
+ default: true
10321
+ },
10322
+
10323
+ /**
10324
+ * If the popover sticks to the anchor. This is usually not needed, but can be needed
10325
+ * if the reference element's position is animating, or to automatically update the popover
10326
+ * position in those cases the DOM layout changes the reference element's position.
10327
+ * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
10328
+ * checks the "popper" rect for changes.
10329
+ */
10330
+ sticky: {
10331
+ type: [Boolean, String],
10332
+ default: false,
10333
+ validator: sticky => {
10334
+ return POPOVER_STICKY_VALUES.includes(sticky);
10335
+ }
10336
+ },
10337
+
10206
10338
  /**
10207
10339
  * Determines maximum height for the popover before overflow.
10208
10340
  * Possible units rem|px|em
@@ -10316,16 +10448,25 @@ var popover_header_footer_component = normalizeComponent(
10316
10448
 
10317
10449
  offset(offset) {
10318
10450
  this.tip.setProps({
10319
- offset: offset
10451
+ offset
10320
10452
  });
10321
10453
  },
10322
10454
 
10323
- fallbackPlacements(fallbackPlacements) {
10455
+ sticky(sticky) {
10324
10456
  this.tip.setProps({
10325
- popperOptions: getPopperOptions({
10326
- fallbackPlacements: fallbackPlacements,
10327
- hasHideModifierEnabled: true
10328
- })
10457
+ sticky
10458
+ });
10459
+ },
10460
+
10461
+ fallbackPlacements() {
10462
+ this.tip.setProps({
10463
+ popperOptions: this.popperOptions()
10464
+ });
10465
+ },
10466
+
10467
+ tether() {
10468
+ this.tip.setProps({
10469
+ popperOptions: this.popperOptions()
10329
10470
  });
10330
10471
  },
10331
10472
 
@@ -10369,13 +10510,11 @@ var popover_header_footer_component = normalizeComponent(
10369
10510
  }
10370
10511
 
10371
10512
  this.tip = tippy_utils_createTippy(this.anchorEl, {
10372
- popperOptions: getPopperOptions({
10373
- fallbackPlacements: this.fallbackPlacements,
10374
- hasHideModifierEnabled: true
10375
- }),
10513
+ popperOptions: this.popperOptions(),
10376
10514
  contentElement: this.popoverContentEl,
10377
10515
  placement: this.placement,
10378
10516
  offset: this.offset,
10517
+ sticky: this.sticky,
10379
10518
  appendTo: document.body,
10380
10519
  interactive: true,
10381
10520
  trigger: 'manual',
@@ -10406,6 +10545,14 @@ var popover_header_footer_component = normalizeComponent(
10406
10545
  * METHODS *
10407
10546
  ******************/
10408
10547
  methods: {
10548
+ popperOptions() {
10549
+ return getPopperOptions({
10550
+ fallbackPlacements: this.fallbackPlacements,
10551
+ tether: this.tether,
10552
+ hasHideModifierEnabled: true
10553
+ });
10554
+ },
10555
+
10409
10556
  validateProps() {
10410
10557
  if (this.modal && this.initialFocusElement === 'none') {
10411
10558
  console.error('If the popover is modal you must set the ' + 'initialFocusElement prop. Possible values: "dialog", "first", HTMLElement');
@@ -10597,8 +10744,8 @@ var popovervue_type_style_index_0_lang_less_ = __webpack_require__(230);
10597
10744
 
10598
10745
  var popover_component = normalizeComponent(
10599
10746
  popover_popovervue_type_script_lang_js_,
10600
- popovervue_type_template_id_97535496_render,
10601
- popovervue_type_template_id_97535496_staticRenderFns,
10747
+ popovervue_type_template_id_52edae7f_render,
10748
+ popovervue_type_template_id_52edae7f_staticRenderFns,
10602
10749
  false,
10603
10750
  null,
10604
10751
  null,
@@ -13533,6 +13680,275 @@ var notice_component = normalizeComponent(
13533
13680
  ;// CONCATENATED MODULE: ./components/notice/index.js
13534
13681
 
13535
13682
 
13683
+ ;// 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&
13684
+ 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)}
13685
+ var paginationvue_type_template_id_3592a77a_staticRenderFns = []
13686
+
13687
+
13688
+ ;// 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&
13689
+ 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"}})])}
13690
+ var IconChevronLeftvue_type_template_id_bdbc37f6_staticRenderFns = []
13691
+
13692
+
13693
+ ;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronLeft.vue
13694
+
13695
+ var IconChevronLeft_script = {}
13696
+
13697
+
13698
+ /* normalize component */
13699
+ ;
13700
+ var IconChevronLeft_component = normalizeComponent(
13701
+ IconChevronLeft_script,
13702
+ IconChevronLeftvue_type_template_id_bdbc37f6_render,
13703
+ IconChevronLeftvue_type_template_id_bdbc37f6_staticRenderFns,
13704
+ false,
13705
+ null,
13706
+ null,
13707
+ null
13708
+
13709
+ )
13710
+
13711
+ /* harmony default export */ const IconChevronLeft = (IconChevronLeft_component.exports);
13712
+ ;// 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&
13713
+ 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"}})])}
13714
+ var IconChevronRightvue_type_template_id_c72b3d10_staticRenderFns = []
13715
+
13716
+
13717
+ ;// CONCATENATED MODULE: ./node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconChevronRight.vue
13718
+
13719
+ var IconChevronRight_script = {}
13720
+
13721
+
13722
+ /* normalize component */
13723
+ ;
13724
+ var IconChevronRight_component = normalizeComponent(
13725
+ IconChevronRight_script,
13726
+ IconChevronRightvue_type_template_id_c72b3d10_render,
13727
+ IconChevronRightvue_type_template_id_c72b3d10_staticRenderFns,
13728
+ false,
13729
+ null,
13730
+ null,
13731
+ null
13732
+
13733
+ )
13734
+
13735
+ /* harmony default export */ const IconChevronRight = (IconChevronRight_component.exports);
13736
+ ;// 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!./components/pagination/pagination.vue?vue&type=script&lang=js&
13737
+ //
13738
+ //
13739
+ //
13740
+ //
13741
+ //
13742
+ //
13743
+ //
13744
+ //
13745
+ //
13746
+ //
13747
+ //
13748
+ //
13749
+ //
13750
+ //
13751
+ //
13752
+ //
13753
+ //
13754
+ //
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
+ /* harmony default export */ const paginationvue_type_script_lang_js_ = ({
13797
+ name: 'DtPagination',
13798
+ components: {
13799
+ DtButton: button_button,
13800
+ IconChevronLeft: IconChevronLeft,
13801
+ IconChevronRight: IconChevronRight
13802
+ },
13803
+ props: {
13804
+ /**
13805
+ * Descriptive label for the pagination content.
13806
+ */
13807
+ ariaLabel: {
13808
+ type: String,
13809
+ required: true
13810
+ },
13811
+
13812
+ /**
13813
+ * The total number of the pages
13814
+ */
13815
+ totalPages: {
13816
+ type: Number,
13817
+ required: true
13818
+ },
13819
+
13820
+ /**
13821
+ * Descriptive label for the previous button.
13822
+ */
13823
+ prevAriaLabel: {
13824
+ type: String,
13825
+ required: true
13826
+ },
13827
+
13828
+ /**
13829
+ * Descriptive label for the next button.
13830
+ */
13831
+ nextAriaLabel: {
13832
+ type: String,
13833
+ required: true
13834
+ },
13835
+
13836
+ /**
13837
+ * A method that will be called to get the aria label of each page.
13838
+ */
13839
+ pageNumberAriaLabel: {
13840
+ type: Function,
13841
+ required: true
13842
+ },
13843
+
13844
+ /**
13845
+ * The active current page in the list of pages, defaults to the first page
13846
+ */
13847
+ activePage: {
13848
+ type: Number,
13849
+ default: 1
13850
+ },
13851
+
13852
+ /**
13853
+ * Determines the max pages to be shown in the list. Using an odd number is recommended.
13854
+ * If an even number is given, then it will be rounded down to the nearest odd number to always
13855
+ * keep current page in the middle when current page is in the mid-range.
13856
+ */
13857
+ maxVisible: {
13858
+ type: Number,
13859
+ default: 5
13860
+ }
13861
+ },
13862
+ emits: ['change'],
13863
+
13864
+ data() {
13865
+ return {
13866
+ currentPage: this.activePage
13867
+ };
13868
+ },
13869
+
13870
+ computed: {
13871
+ isFirstPage() {
13872
+ return this.currentPage === 1;
13873
+ },
13874
+
13875
+ isLastPage() {
13876
+ return this.currentPage === this.totalPages;
13877
+ },
13878
+
13879
+ pages() {
13880
+ if (this.maxVisible === 0) {
13881
+ return [];
13882
+ }
13883
+
13884
+ if (this.totalPages <= this.maxVisible) {
13885
+ return this.range(1, this.totalPages);
13886
+ }
13887
+
13888
+ const start = this.maxVisible - 1;
13889
+ const end = this.totalPages - start + 1;
13890
+
13891
+ if (this.currentPage < start) {
13892
+ return [...this.range(1, start), '...', this.totalPages];
13893
+ }
13894
+
13895
+ if (this.currentPage > end) {
13896
+ return [1, '...', ...this.range(end, this.totalPages)];
13897
+ } // rounding to the nearest odd according to the maxlength to always show the page number in the middle.
13898
+
13899
+
13900
+ const total = this.maxVisible - (3 - this.maxVisible % 2);
13901
+ const centerIndex = Math.floor(total / 2);
13902
+ const left = this.currentPage - centerIndex;
13903
+ const right = this.currentPage + centerIndex;
13904
+ return [1, '...', ...this.range(left, right), '...', this.totalPages];
13905
+ }
13906
+
13907
+ },
13908
+ watch: {},
13909
+ methods: {
13910
+ range(from, to) {
13911
+ const range = [];
13912
+ from = from > 0 ? from : 1;
13913
+
13914
+ for (let i = from; i <= to; i++) {
13915
+ range.push(i);
13916
+ }
13917
+
13918
+ return range;
13919
+ },
13920
+
13921
+ changePage(page) {
13922
+ this.currentPage = page;
13923
+ this.$emit('change', this.currentPage);
13924
+ }
13925
+
13926
+ }
13927
+ });
13928
+ ;// CONCATENATED MODULE: ./components/pagination/pagination.vue?vue&type=script&lang=js&
13929
+ /* harmony default export */ const pagination_paginationvue_type_script_lang_js_ = (paginationvue_type_script_lang_js_);
13930
+ ;// CONCATENATED MODULE: ./components/pagination/pagination.vue
13931
+
13932
+
13933
+
13934
+
13935
+
13936
+ /* normalize component */
13937
+ ;
13938
+ var pagination_component = normalizeComponent(
13939
+ pagination_paginationvue_type_script_lang_js_,
13940
+ paginationvue_type_template_id_3592a77a_render,
13941
+ paginationvue_type_template_id_3592a77a_staticRenderFns,
13942
+ false,
13943
+ null,
13944
+ null,
13945
+ null
13946
+
13947
+ )
13948
+
13949
+ /* harmony default export */ const pagination = (pagination_component.exports);
13950
+ ;// CONCATENATED MODULE: ./components/pagination/index.js
13951
+
13536
13952
  ;// 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&
13537
13953
  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)])])}
13538
13954
  var radiovue_type_template_id_1e978b0c_staticRenderFns = []
@@ -15726,15 +16142,15 @@ var toggle_component = normalizeComponent(
15726
16142
  /* harmony default export */ const toggle = (toggle_component.exports);
15727
16143
  ;// CONCATENATED MODULE: ./components/toggle/index.js
15728
16144
 
15729
- ;// 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&
15730
- var tooltipvue_type_template_id_06e65b4f_render = function () {
16145
+ ;// 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&
16146
+ var tooltipvue_type_template_id_662e4cf7_render = function () {
15731
16147
  var _obj;
15732
16148
  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:[
15733
16149
  'd-tooltip',
15734
16150
  ("d-tooltip__arrow-tippy--" + _vm.currentPlacement),
15735
16151
  ( _obj = {}, _obj[ _vm.TOOLTIP_KIND_MODIFIERS.inverted ] = _vm.inverted, _obj ),
15736
16152
  _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)}
15737
- var tooltipvue_type_template_id_06e65b4f_staticRenderFns = []
16153
+ var tooltipvue_type_template_id_662e4cf7_staticRenderFns = []
15738
16154
 
15739
16155
 
15740
16156
  ;// CONCATENATED MODULE: ./components/tooltip/tooltip_constants.js
@@ -15749,6 +16165,7 @@ const TOOLTIP_KIND_MODIFIERS = {
15749
16165
  inverted: "d-tooltip--inverted",
15750
16166
  hide: "d-tooltip--hide"
15751
16167
  };
16168
+ const TOOLTIP_STICKY_VALUES = [...TIPPY_STICKY_VALUES];
15752
16169
  const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
15753
16170
  ;// 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!./components/tooltip/tooltip.vue?vue&type=script&lang=js&
15754
16171
  //
@@ -15858,6 +16275,21 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
15858
16275
 
15859
16276
  },
15860
16277
 
16278
+ /**
16279
+ * If the tooltip sticks to the anchor. This is usually not needed, but can be needed
16280
+ * if the reference element's position is animating, or to automatically update the popover
16281
+ * position in those cases the DOM layout changes the reference element's position.
16282
+ * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
16283
+ * checks the "popper" rect for changes.
16284
+ */
16285
+ sticky: {
16286
+ type: [Boolean, String],
16287
+ default: false,
16288
+ validator: sticky => {
16289
+ return TOOLTIP_STICKY_VALUES.includes(sticky);
16290
+ }
16291
+ },
16292
+
15861
16293
  /**
15862
16294
  * Additional css classes for the tooltip content element.
15863
16295
  * Can accept all of String, Object, and Array, i.e. has the
@@ -15919,6 +16351,7 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
15919
16351
  interactive: false,
15920
16352
  trigger: 'manual',
15921
16353
  placement: this.placement,
16354
+ sticky: this.sticky,
15922
16355
  popperOptions: getPopperOptions({
15923
16356
  fallbackPlacements: this.fallbackPlacements,
15924
16357
  hasHideModifierEnabled: true,
@@ -15949,6 +16382,12 @@ const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];
15949
16382
  } else {
15950
16383
  this.tip.hide();
15951
16384
  }
16385
+ },
16386
+
16387
+ sticky(sticky) {
16388
+ this.tip.setProps({
16389
+ sticky
16390
+ });
15952
16391
  }
15953
16392
 
15954
16393
  },
@@ -16069,8 +16508,8 @@ var tooltipvue_type_style_index_0_lang_less_ = __webpack_require__(213);
16069
16508
 
16070
16509
  var tooltip_component = normalizeComponent(
16071
16510
  tooltip_tooltipvue_type_script_lang_js_,
16072
- tooltipvue_type_template_id_06e65b4f_render,
16073
- tooltipvue_type_template_id_06e65b4f_staticRenderFns,
16511
+ tooltipvue_type_template_id_662e4cf7_render,
16512
+ tooltipvue_type_template_id_662e4cf7_staticRenderFns,
16074
16513
  false,
16075
16514
  null,
16076
16515
  null,
@@ -16705,15 +17144,17 @@ var root_layout_component = normalizeComponent(
16705
17144
  ;// CONCATENATED MODULE: ./components/root_layout/index.js
16706
17145
 
16707
17146
 
16708
- ;// 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&
16709
- 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){
17147
+ ;// 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&
17148
+ 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){
16710
17149
  var inputProps = ref.inputProps;
16711
17150
  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){
16712
17151
  var opened = ref.opened;
16713
17152
  var listProps = ref.listProps;
16714
17153
  var clearHighlightIndex = ref.clearHighlightIndex;
16715
- 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))}
16716
- var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
17154
+ var isLoading = ref.isLoading;
17155
+ var isListEmpty = ref.isListEmpty;
17156
+ 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))}
17157
+ var combobox_with_popovervue_type_template_id_108db852_staticRenderFns = []
16717
17158
 
16718
17159
 
16719
17160
  ;// 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&
@@ -16809,6 +17250,13 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16809
17250
  //
16810
17251
  //
16811
17252
  //
17253
+ //
17254
+ //
17255
+ //
17256
+ //
17257
+ //
17258
+ //
17259
+
16812
17260
 
16813
17261
 
16814
17262
 
@@ -16818,7 +17266,8 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16818
17266
  components: {
16819
17267
  DtCombobox: combobox,
16820
17268
  DtPopover: popover,
16821
- ComboboxLoadingList: combobox_loading_list
17269
+ ComboboxLoadingList: combobox_loading_list,
17270
+ ComboboxEmptyList: combobox_empty_list
16822
17271
  },
16823
17272
  props: {
16824
17273
  /**
@@ -16934,6 +17383,14 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16934
17383
  default: () => [0, 4]
16935
17384
  },
16936
17385
 
17386
+ /**
17387
+ * If the popover sticks to the input.
17388
+ */
17389
+ popoverSticky: {
17390
+ type: [Boolean, String],
17391
+ default: false
17392
+ },
17393
+
16937
17394
  /**
16938
17395
  * Displays the list when the combobox is focused, before the user has typed anything.
16939
17396
  * When this is enabled the list will not close after selection.
@@ -16949,6 +17406,14 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16949
17406
  loading: {
16950
17407
  type: Boolean,
16951
17408
  default: false
17409
+ },
17410
+
17411
+ /**
17412
+ * Message to show when the list is empty
17413
+ */
17414
+ emptyStateMessage: {
17415
+ type: String,
17416
+ default: ''
16952
17417
  }
16953
17418
  },
16954
17419
  emits: ['select', 'escape', 'highlight', 'opened'],
@@ -16989,13 +17454,7 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
16989
17454
 
16990
17455
  },
16991
17456
  methods: {
16992
- async handleDisplayList(value) {
16993
- if (this.isListShown) {
16994
- // After the list is updated, hightlight the first item
16995
- await this.$nextTick();
16996
- this.$refs.combobox.setInitialHighlightIndex();
16997
- }
16998
-
17457
+ handleDisplayList(value) {
16999
17458
  if (!this.hasSuggestionList) {
17000
17459
  if (value) {
17001
17460
  // Displays the list after the user has typed anything
@@ -17089,8 +17548,8 @@ var combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns = []
17089
17548
  ;
17090
17549
  var combobox_with_popover_component = normalizeComponent(
17091
17550
  combobox_with_popover_combobox_with_popovervue_type_script_lang_js_,
17092
- combobox_with_popovervue_type_template_id_0ce1b850_render,
17093
- combobox_with_popovervue_type_template_id_0ce1b850_staticRenderFns,
17551
+ combobox_with_popovervue_type_template_id_108db852_render,
17552
+ combobox_with_popovervue_type_template_id_108db852_staticRenderFns,
17094
17553
  false,
17095
17554
  null,
17096
17555
  null,
@@ -17101,11 +17560,11 @@ var combobox_with_popover_component = normalizeComponent(
17101
17560
  /* harmony default export */ const combobox_with_popover = (combobox_with_popover_component.exports);
17102
17561
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_with_popover/index.js
17103
17562
 
17104
- ;// 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&
17105
- 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){
17563
+ ;// 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&
17564
+ 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){
17106
17565
  var onInput = ref.onInput;
17107
17566
  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)})}
17108
- var combobox_multi_selectvue_type_template_id_907d2f60_staticRenderFns = []
17567
+ var combobox_multi_selectvue_type_template_id_50e5c78d_staticRenderFns = []
17109
17568
 
17110
17569
 
17111
17570
  ;// CONCATENATED MODULE: ./recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.js
@@ -17540,7 +17999,6 @@ const MULTI_SELECT_SIZES = {
17540
17999
  var _this$resizeWindowObs;
17541
18000
 
17542
18001
  (_this$resizeWindowObs = this.resizeWindowObserver) === null || _this$resizeWindowObs === void 0 ? void 0 : _this$resizeWindowObs.unobserve(document.body);
17543
- console.log('Combobox Multi Select: Unobserve window resize before destory');
17544
18002
  },
17545
18003
 
17546
18004
  methods: {
@@ -17742,8 +18200,8 @@ const MULTI_SELECT_SIZES = {
17742
18200
  ;
17743
18201
  var combobox_multi_select_component = normalizeComponent(
17744
18202
  combobox_multi_select_combobox_multi_selectvue_type_script_lang_js_,
17745
- combobox_multi_selectvue_type_template_id_907d2f60_render,
17746
- combobox_multi_selectvue_type_template_id_907d2f60_staticRenderFns,
18203
+ combobox_multi_selectvue_type_template_id_50e5c78d_render,
18204
+ combobox_multi_selectvue_type_template_id_50e5c78d_staticRenderFns,
17747
18205
  false,
17748
18206
  null,
17749
18207
  null,
@@ -18101,6 +18559,7 @@ var top_banner_info_component = normalizeComponent(
18101
18559
 
18102
18560
 
18103
18561
 
18562
+
18104
18563
 
18105
18564
 
18106
18565
  /// Recipes